Add `enable-dir-local-variables'
[emacs.git] / autogen / configure
blob1251680b94210472618848e0f12e50046759153b
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for emacs 24.3.50.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
8 # Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
32 esac
36 as_nl='
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
91 # Find who we are. Look in the path if we contain no directory separator.
92 case $0 in #((
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
97 IFS=$as_save_IFS
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100 done
101 IFS=$as_save_IFS
104 esac
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
108 as_myself=$0
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112 exit 1
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136 if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 emulate sh
139 NULLCMD=:
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 setopt NO_GLOB_SUBST
144 else
145 case \`(set -o) 2>/dev/null\` in #(
146 *posix*) :
147 set -o posix ;; #(
148 *) :
150 esac
153 as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
159 exitcode=0
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
166 else
167 exitcode=1; echo positional parameters were not saved.
169 test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev/null; then :
176 as_have_required=yes
177 else
178 as_have_required=no
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
182 else
183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184 as_found=false
185 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
187 IFS=$as_save_IFS
188 test -z "$as_dir" && as_dir=.
189 as_found=:
190 case $as_dir in #(
192 for as_base in sh bash ksh sh5; do
193 # Try only shells that exist, to save several forks.
194 as_shell=$as_dir/$as_base
195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 CONFIG_SHELL=$as_shell as_have_required=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 break 2
202 done;;
203 esac
204 as_found=false
205 done
206 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208 CONFIG_SHELL=$SHELL as_have_required=yes
209 fi; }
210 IFS=$as_save_IFS
213 if test "x$CONFIG_SHELL" != x; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
217 BASH_ENV=/dev/null
218 ENV=/dev/null
219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220 export CONFIG_SHELL
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224 if test x$as_have_required = xno; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x${ZSH_VERSION+set} = xset ; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230 else
231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232 $0: including any error possibly output before this
233 $0: message. Then install a modern shell, or manually run
234 $0: the script under such a shell if you do have one."
236 exit 1
240 SHELL=${CONFIG_SHELL-/bin/sh}
241 export SHELL
242 # Unset more variables known to interfere with behavior of common tools.
243 CLICOLOR_FORCE= GREP_OPTIONS=
244 unset CLICOLOR_FORCE GREP_OPTIONS
246 ## --------------------- ##
247 ## M4sh Shell Functions. ##
248 ## --------------------- ##
249 # as_fn_unset VAR
250 # ---------------
251 # Portably unset VAR.
252 as_fn_unset ()
254 { eval $1=; unset $1;}
256 as_unset=as_fn_unset
258 # as_fn_set_status STATUS
259 # -----------------------
260 # Set $? to STATUS, without forking.
261 as_fn_set_status ()
263 return $1
264 } # as_fn_set_status
266 # as_fn_exit STATUS
267 # -----------------
268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
269 as_fn_exit ()
271 set +e
272 as_fn_set_status $1
273 exit $1
274 } # as_fn_exit
276 # as_fn_mkdir_p
277 # -------------
278 # Create "$as_dir" as a directory, including parents if necessary.
279 as_fn_mkdir_p ()
282 case $as_dir in #(
283 -*) as_dir=./$as_dir;;
284 esac
285 test -d "$as_dir" || eval $as_mkdir_p || {
286 as_dirs=
287 while :; do
288 case $as_dir in #(
289 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290 *) as_qdir=$as_dir;;
291 esac
292 as_dirs="'$as_qdir' $as_dirs"
293 as_dir=`$as_dirname -- "$as_dir" ||
294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295 X"$as_dir" : 'X\(//\)[^/]' \| \
296 X"$as_dir" : 'X\(//\)$' \| \
297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298 $as_echo X"$as_dir" |
299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
300 s//\1/
303 /^X\(\/\/\)[^/].*/{
304 s//\1/
307 /^X\(\/\/\)$/{
308 s//\1/
311 /^X\(\/\).*/{
312 s//\1/
315 s/.*/./; q'`
316 test -d "$as_dir" && break
317 done
318 test -z "$as_dirs" || eval "mkdir $as_dirs"
319 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
322 } # as_fn_mkdir_p
323 # as_fn_append VAR VALUE
324 # ----------------------
325 # Append the text in VALUE to the end of the definition contained in VAR. Take
326 # advantage of any shell optimizations that allow amortized linear growth over
327 # repeated appends, instead of the typical quadratic growth present in naive
328 # implementations.
329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330 eval 'as_fn_append ()
332 eval $1+=\$2
334 else
335 as_fn_append ()
337 eval $1=\$$1\$2
339 fi # as_fn_append
341 # as_fn_arith ARG...
342 # ------------------
343 # Perform arithmetic evaluation on the ARGs, and store the result in the
344 # global $as_val. Take advantage of shells that can avoid forks. The arguments
345 # must be portable across $(()) and expr.
346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
347 eval 'as_fn_arith ()
349 as_val=$(( $* ))
351 else
352 as_fn_arith ()
354 as_val=`expr "$@" || test $? -eq 1`
356 fi # as_fn_arith
359 # as_fn_error ERROR [LINENO LOG_FD]
360 # ---------------------------------
361 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363 # script with status $?, using 1 if that was 0.
364 as_fn_error ()
366 as_status=$?; test $as_status -eq 0 && as_status=1
367 if test "$3"; then
368 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
371 $as_echo "$as_me: error: $1" >&2
372 as_fn_exit $as_status
373 } # as_fn_error
375 if expr a : '\(a\)' >/dev/null 2>&1 &&
376 test "X`expr 00001 : '.*\(...\)'`" = X001; then
377 as_expr=expr
378 else
379 as_expr=false
382 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
383 as_basename=basename
384 else
385 as_basename=false
388 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
389 as_dirname=dirname
390 else
391 as_dirname=false
394 as_me=`$as_basename -- "$0" ||
395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396 X"$0" : 'X\(//\)$' \| \
397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
398 $as_echo X/"$0" |
399 sed '/^.*\/\([^/][^/]*\)\/*$/{
400 s//\1/
403 /^X\/\(\/\/\)$/{
404 s//\1/
407 /^X\/\(\/\).*/{
408 s//\1/
411 s/.*/./; q'`
413 # Avoid depending upon Character Ranges.
414 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417 as_cr_digits='0123456789'
418 as_cr_alnum=$as_cr_Letters$as_cr_digits
421 as_lineno_1=$LINENO as_lineno_1a=$LINENO
422 as_lineno_2=$LINENO as_lineno_2a=$LINENO
423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
426 sed -n '
428 /[$]LINENO/=
429 ' <$as_myself |
430 sed '
431 s/[$]LINENO.*/&-/
432 t lineno
434 :lineno
436 :loop
437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
438 t loop
439 s/-\n.*//
440 ' >$as_me.lineno &&
441 chmod +x "$as_me.lineno" ||
442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
444 # Don't try to exec as it changes $[0], causing all sort of problems
445 # (the dirname of $[0] is not the place where we might find the
446 # original and so on. Autoconf is especially sensitive to this).
447 . "./$as_me.lineno"
448 # Exit status is that of the last command.
449 exit
452 ECHO_C= ECHO_N= ECHO_T=
453 case `echo -n x` in #(((((
454 -n*)
455 case `echo 'xy\c'` in
456 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
457 xy) ECHO_C='\c';;
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
459 ECHO_T=' ';;
460 esac;;
462 ECHO_N='-n';;
463 esac
465 rm -f conf$$ conf$$.exe conf$$.file
466 if test -d conf$$.dir; then
467 rm -f conf$$.dir/conf$$.file
468 else
469 rm -f conf$$.dir
470 mkdir conf$$.dir 2>/dev/null
472 if (echo >conf$$.file) 2>/dev/null; then
473 if ln -s conf$$.file conf$$ 2>/dev/null; then
474 as_ln_s='ln -s'
475 # ... but there are two gotchas:
476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478 # In both cases, we have to default to `cp -p'.
479 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
480 as_ln_s='cp -p'
481 elif ln conf$$.file conf$$ 2>/dev/null; then
482 as_ln_s=ln
483 else
484 as_ln_s='cp -p'
486 else
487 as_ln_s='cp -p'
489 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490 rmdir conf$$.dir 2>/dev/null
492 if mkdir -p . 2>/dev/null; then
493 as_mkdir_p='mkdir -p "$as_dir"'
494 else
495 test -d ./-p && rmdir ./-p
496 as_mkdir_p=false
499 if test -x / >/dev/null 2>&1; then
500 as_test_x='test -x'
501 else
502 if ls -dL / >/dev/null 2>&1; then
503 as_ls_L_option=L
504 else
505 as_ls_L_option=
507 as_test_x='
508 eval sh -c '\''
509 if test -d "$1"; then
510 test -d "$1/.";
511 else
512 case $1 in #(
513 -*)set "./$1";;
514 esac;
515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516 ???[sx]*):;;*)false;;esac;fi
517 '\'' sh
520 as_executable_p=$as_test_x
522 # Sed expression to map a string onto a valid CPP name.
523 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
525 # Sed expression to map a string onto a valid variable name.
526 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
529 test -n "$DJDIR" || exec 7<&0 </dev/null
530 exec 6>&1
532 # Name of the host.
533 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
534 # so uname gets run too.
535 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
538 # Initializations.
540 ac_default_prefix=/usr/local
541 ac_clean_files=
542 ac_config_libobj_dir=.
543 LIBOBJS=
544 cross_compiling=no
545 subdirs=
546 MFLAGS=
547 MAKEFLAGS=
549 # Identity of this package.
550 PACKAGE_NAME='emacs'
551 PACKAGE_TARNAME='emacs'
552 PACKAGE_VERSION='24.3.50'
553 PACKAGE_STRING='emacs 24.3.50'
554 PACKAGE_BUGREPORT=''
555 PACKAGE_URL=''
557 ac_unique_file="src/lisp.h"
558 # Factoring default headers for most tests.
559 ac_includes_default="\
560 #include <stdio.h>
561 #ifdef HAVE_SYS_TYPES_H
562 # include <sys/types.h>
563 #endif
564 #ifdef HAVE_SYS_STAT_H
565 # include <sys/stat.h>
566 #endif
567 #ifdef STDC_HEADERS
568 # include <stdlib.h>
569 # include <stddef.h>
570 #else
571 # ifdef HAVE_STDLIB_H
572 # include <stdlib.h>
573 # endif
574 #endif
575 #ifdef HAVE_STRING_H
576 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
577 # include <memory.h>
578 # endif
579 # include <string.h>
580 #endif
581 #ifdef HAVE_STRINGS_H
582 # include <strings.h>
583 #endif
584 #ifdef HAVE_INTTYPES_H
585 # include <inttypes.h>
586 #endif
587 #ifdef HAVE_STDINT_H
588 # include <stdint.h>
589 #endif
590 #ifdef HAVE_UNISTD_H
591 # include <unistd.h>
592 #endif"
594 ac_header_list=
595 ac_func_list=
596 gl_getopt_required=POSIX
597 gl_getopt_required=POSIX
598 ac_subst_vars='gltests_LTLIBOBJS
599 gltests_LIBOBJS
600 gl_LTLIBOBJS
601 gl_LIBOBJS
602 am__EXEEXT_FALSE
603 am__EXEEXT_TRUE
604 LTLIBOBJS
605 LIBOBJS
606 SUBDIR_MAKEFILES_IN
607 WINDOW_SYSTEM_OBJ
608 LIB_GCC
609 LD_FIRSTFLAG
610 LD_SWITCH_SYSTEM_TEMACS
611 LIBGNU_LTLIBDEPS
612 LIBGNU_LIBDEPS
613 gltests_WITNESS
614 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_FALSE
615 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_TRUE
616 gl_GNULIB_ENABLED_verify_FALSE
617 gl_GNULIB_ENABLED_verify_TRUE
618 gl_GNULIB_ENABLED_strtoull_FALSE
619 gl_GNULIB_ENABLED_strtoull_TRUE
620 gl_GNULIB_ENABLED_strtoll_FALSE
621 gl_GNULIB_ENABLED_strtoll_TRUE
622 gl_GNULIB_ENABLED_stat_FALSE
623 gl_GNULIB_ENABLED_stat_TRUE
624 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_FALSE
625 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_TRUE
626 gl_GNULIB_ENABLED_pathmax_FALSE
627 gl_GNULIB_ENABLED_pathmax_TRUE
628 gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_FALSE
629 gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_TRUE
630 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_FALSE
631 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_TRUE
632 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE
633 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE
634 gl_GNULIB_ENABLED_getgroups_FALSE
635 gl_GNULIB_ENABLED_getgroups_TRUE
636 gl_GNULIB_ENABLED_euidaccess_FALSE
637 gl_GNULIB_ENABLED_euidaccess_TRUE
638 gl_GNULIB_ENABLED_dosname_FALSE
639 gl_GNULIB_ENABLED_dosname_TRUE
640 gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_FALSE
641 gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_TRUE
642 LTLIBINTL
643 LIBINTL
644 LIB_EACCESS
645 WINDOWS_64_BIT_OFF_T
646 HAVE_UNISTD_H
647 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
648 NEXT_UNISTD_H
649 LIB_TIMER_TIME
650 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
651 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
652 TIME_H_DEFINES_STRUCT_TIMESPEC
653 NEXT_AS_FIRST_DIRECTIVE_TIME_H
654 NEXT_TIME_H
655 WINDOWS_64_BIT_ST_SIZE
656 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
657 NEXT_SYS_STAT_H
658 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
659 NEXT_STDLIB_H
660 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
661 NEXT_STDIO_H
662 REPLACE_VSPRINTF
663 REPLACE_VSNPRINTF
664 REPLACE_VPRINTF
665 REPLACE_VFPRINTF
666 REPLACE_VDPRINTF
667 REPLACE_VASPRINTF
668 REPLACE_TMPFILE
669 REPLACE_STDIO_WRITE_FUNCS
670 REPLACE_STDIO_READ_FUNCS
671 REPLACE_SPRINTF
672 REPLACE_SNPRINTF
673 REPLACE_RENAMEAT
674 REPLACE_RENAME
675 REPLACE_REMOVE
676 REPLACE_PRINTF
677 REPLACE_POPEN
678 REPLACE_PERROR
679 REPLACE_OBSTACK_PRINTF
680 REPLACE_GETLINE
681 REPLACE_GETDELIM
682 REPLACE_FTELLO
683 REPLACE_FTELL
684 REPLACE_FSEEKO
685 REPLACE_FSEEK
686 REPLACE_FREOPEN
687 REPLACE_FPURGE
688 REPLACE_FPRINTF
689 REPLACE_FOPEN
690 REPLACE_FFLUSH
691 REPLACE_FDOPEN
692 REPLACE_FCLOSE
693 REPLACE_DPRINTF
694 HAVE_VDPRINTF
695 HAVE_VASPRINTF
696 HAVE_RENAMEAT
697 HAVE_POPEN
698 HAVE_PCLOSE
699 HAVE_FTELLO
700 HAVE_FSEEKO
701 HAVE_DPRINTF
702 HAVE_DECL_VSNPRINTF
703 HAVE_DECL_SNPRINTF
704 HAVE_DECL_OBSTACK_PRINTF
705 HAVE_DECL_GETLINE
706 HAVE_DECL_GETDELIM
707 HAVE_DECL_FTELLO
708 HAVE_DECL_FSEEKO
709 HAVE_DECL_FPURGE
710 GNULIB_VSPRINTF_POSIX
711 GNULIB_VSNPRINTF
712 GNULIB_VPRINTF_POSIX
713 GNULIB_VPRINTF
714 GNULIB_VFPRINTF_POSIX
715 GNULIB_VFPRINTF
716 GNULIB_VDPRINTF
717 GNULIB_VSCANF
718 GNULIB_VFSCANF
719 GNULIB_VASPRINTF
720 GNULIB_TMPFILE
721 GNULIB_STDIO_H_SIGPIPE
722 GNULIB_STDIO_H_NONBLOCKING
723 GNULIB_SPRINTF_POSIX
724 GNULIB_SNPRINTF
725 GNULIB_SCANF
726 GNULIB_RENAMEAT
727 GNULIB_RENAME
728 GNULIB_REMOVE
729 GNULIB_PUTS
730 GNULIB_PUTCHAR
731 GNULIB_PUTC
732 GNULIB_PRINTF_POSIX
733 GNULIB_PRINTF
734 GNULIB_POPEN
735 GNULIB_PERROR
736 GNULIB_PCLOSE
737 GNULIB_OBSTACK_PRINTF_POSIX
738 GNULIB_OBSTACK_PRINTF
739 GNULIB_GETLINE
740 GNULIB_GETDELIM
741 GNULIB_GETCHAR
742 GNULIB_GETC
743 GNULIB_FWRITE
744 GNULIB_FTELLO
745 GNULIB_FTELL
746 GNULIB_FSEEKO
747 GNULIB_FSEEK
748 GNULIB_FSCANF
749 GNULIB_FREOPEN
750 GNULIB_FREAD
751 GNULIB_FPUTS
752 GNULIB_FPUTC
753 GNULIB_FPURGE
754 GNULIB_FPRINTF_POSIX
755 GNULIB_FPRINTF
756 GNULIB_FOPEN
757 GNULIB_FGETS
758 GNULIB_FGETC
759 GNULIB_FFLUSH
760 GNULIB_FDOPEN
761 GNULIB_FCLOSE
762 GNULIB_DPRINTF
763 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
764 NEXT_STDDEF_H
765 GL_GENERATE_STDDEF_H_FALSE
766 GL_GENERATE_STDDEF_H_TRUE
767 STDDEF_H
768 HAVE_WCHAR_T
769 REPLACE_NULL
770 HAVE__BOOL
771 GL_GENERATE_STDBOOL_H_FALSE
772 GL_GENERATE_STDBOOL_H_TRUE
773 STDBOOL_H
774 GL_GENERATE_STDARG_H_FALSE
775 GL_GENERATE_STDARG_H_TRUE
776 STDARG_H
777 NEXT_AS_FIRST_DIRECTIVE_STDARG_H
778 NEXT_STDARG_H
779 GL_GENERATE_STDALIGN_H_FALSE
780 GL_GENERATE_STDALIGN_H_TRUE
781 STDALIGN_H
782 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
783 NEXT_SIGNAL_H
784 LIB_PTHREAD_SIGMASK
785 REPLACE_RAISE
786 REPLACE_PTHREAD_SIGMASK
787 HAVE_SIGHANDLER_T
788 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
789 HAVE_STRUCT_SIGACTION_SA_SIGACTION
790 HAVE_SIGACTION
791 HAVE_SIGINFO_T
792 HAVE_SIGSET_T
793 HAVE_RAISE
794 HAVE_PTHREAD_SIGMASK
795 HAVE_POSIX_SIGNALBLOCKING
796 GNULIB_SIGACTION
797 GNULIB_SIGPROCMASK
798 GNULIB_SIGNAL_H_SIGPIPE
799 GNULIB_RAISE
800 GNULIB_PTHREAD_SIGMASK
801 HAVE_SYS_SELECT_H
802 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H
803 NEXT_SYS_SELECT_H
804 REPLACE_SELECT
805 REPLACE_PSELECT
806 HAVE_PSELECT
807 GNULIB_SELECT
808 GNULIB_PSELECT
809 REPLACE_TIMEGM
810 REPLACE_NANOSLEEP
811 REPLACE_MKTIME
812 REPLACE_LOCALTIME_R
813 HAVE_TIMEGM
814 HAVE_STRPTIME
815 HAVE_NANOSLEEP
816 HAVE_DECL_LOCALTIME_R
817 GNULIB_TIME_R
818 GNULIB_TIMEGM
819 GNULIB_STRPTIME
820 GNULIB_NANOSLEEP
821 GNULIB_MKTIME
822 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
823 NEXT_INTTYPES_H
824 UINT64_MAX_EQ_ULONG_MAX
825 UINT32_MAX_LT_UINTMAX_MAX
826 PRIPTR_PREFIX
827 PRI_MACROS_BROKEN
828 INT64_MAX_EQ_LONG_MAX
829 INT32_MAX_LT_INTMAX_MAX
830 REPLACE_STRTOIMAX
831 HAVE_DECL_STRTOUMAX
832 HAVE_DECL_STRTOIMAX
833 HAVE_DECL_IMAXDIV
834 HAVE_DECL_IMAXABS
835 GNULIB_STRTOUMAX
836 GNULIB_STRTOIMAX
837 GNULIB_IMAXDIV
838 GNULIB_IMAXABS
839 GL_GENERATE_STDINT_H_FALSE
840 GL_GENERATE_STDINT_H_TRUE
841 STDINT_H
842 WINT_T_SUFFIX
843 WCHAR_T_SUFFIX
844 SIG_ATOMIC_T_SUFFIX
845 SIZE_T_SUFFIX
846 PTRDIFF_T_SUFFIX
847 HAVE_SIGNED_WINT_T
848 HAVE_SIGNED_WCHAR_T
849 HAVE_SIGNED_SIG_ATOMIC_T
850 BITSIZEOF_WINT_T
851 BITSIZEOF_WCHAR_T
852 BITSIZEOF_SIG_ATOMIC_T
853 BITSIZEOF_SIZE_T
854 BITSIZEOF_PTRDIFF_T
855 APPLE_UNIVERSAL_BUILD
856 HAVE_SYS_BITYPES_H
857 HAVE_SYS_INTTYPES_H
858 HAVE_STDINT_H
859 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
860 NEXT_STDINT_H
861 HAVE_SYS_TYPES_H
862 HAVE_INTTYPES_H
863 HAVE_WCHAR_H
864 HAVE_UNSIGNED_LONG_LONG_INT
865 HAVE_LONG_LONG_INT
866 HAVE_WINSOCK2_H
867 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
868 NEXT_SYS_TIME_H
869 REPLACE_STRUCT_TIMEVAL
870 REPLACE_GETTIMEOFDAY
871 HAVE_SYS_TIME_H
872 HAVE_STRUCT_TIMEVAL
873 HAVE_GETTIMEOFDAY
874 GNULIB_GETTIMEOFDAY
875 GNULIB_GL_UNISTD_H_GETOPT
876 GETOPT_H
877 HAVE_GETOPT_H
878 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
879 NEXT_GETOPT_H
880 GETLOADAVG_LIBS
881 REPLACE_WCTOMB
882 REPLACE_UNSETENV
883 REPLACE_STRTOD
884 REPLACE_SETENV
885 REPLACE_REALPATH
886 REPLACE_REALLOC
887 REPLACE_RANDOM_R
888 REPLACE_PUTENV
889 REPLACE_PTSNAME_R
890 REPLACE_PTSNAME
891 REPLACE_MKSTEMP
892 REPLACE_MBTOWC
893 REPLACE_MALLOC
894 REPLACE_CANONICALIZE_FILE_NAME
895 REPLACE_CALLOC
896 HAVE_DECL_UNSETENV
897 HAVE_UNLOCKPT
898 HAVE_SYS_LOADAVG_H
899 HAVE_STRUCT_RANDOM_DATA
900 HAVE_STRTOULL
901 HAVE_STRTOLL
902 HAVE_STRTOD
903 HAVE_DECL_SETENV
904 HAVE_SETENV
905 HAVE_SECURE_GETENV
906 HAVE_RPMATCH
907 HAVE_REALPATH
908 HAVE_RANDOM_R
909 HAVE_RANDOM_H
910 HAVE_RANDOM
911 HAVE_PTSNAME_R
912 HAVE_PTSNAME
913 HAVE_POSIX_OPENPT
914 HAVE_MKSTEMPS
915 HAVE_MKSTEMP
916 HAVE_MKOSTEMPS
917 HAVE_MKOSTEMP
918 HAVE_MKDTEMP
919 HAVE_GRANTPT
920 HAVE_GETSUBOPT
921 HAVE_DECL_GETLOADAVG
922 HAVE_CANONICALIZE_FILE_NAME
923 HAVE_ATOLL
924 HAVE__EXIT
925 GNULIB_WCTOMB
926 GNULIB_UNSETENV
927 GNULIB_UNLOCKPT
928 GNULIB_SYSTEM_POSIX
929 GNULIB_STRTOULL
930 GNULIB_STRTOLL
931 GNULIB_STRTOD
932 GNULIB_SETENV
933 GNULIB_SECURE_GETENV
934 GNULIB_RPMATCH
935 GNULIB_REALPATH
936 GNULIB_REALLOC_POSIX
937 GNULIB_RANDOM_R
938 GNULIB_RANDOM
939 GNULIB_PUTENV
940 GNULIB_PTSNAME_R
941 GNULIB_PTSNAME
942 GNULIB_POSIX_OPENPT
943 GNULIB_MKSTEMPS
944 GNULIB_MKSTEMP
945 GNULIB_MKOSTEMPS
946 GNULIB_MKOSTEMP
947 GNULIB_MKDTEMP
948 GNULIB_MBTOWC
949 GNULIB_MALLOC_POSIX
950 GNULIB_GRANTPT
951 GNULIB_GETSUBOPT
952 GNULIB_GETLOADAVG
953 GNULIB_CANONICALIZE_FILE_NAME
954 GNULIB_CALLOC_POSIX
955 GNULIB_ATOLL
956 GNULIB__EXIT
957 REPLACE_UTIMENSAT
958 REPLACE_STAT
959 REPLACE_MKNOD
960 REPLACE_MKFIFO
961 REPLACE_MKDIR
962 REPLACE_LSTAT
963 REPLACE_FUTIMENS
964 REPLACE_FSTATAT
965 REPLACE_FSTAT
966 HAVE_UTIMENSAT
967 HAVE_MKNODAT
968 HAVE_MKNOD
969 HAVE_MKFIFOAT
970 HAVE_MKFIFO
971 HAVE_MKDIRAT
972 HAVE_LSTAT
973 HAVE_LCHMOD
974 HAVE_FUTIMENS
975 HAVE_FSTATAT
976 HAVE_FCHMODAT
977 GNULIB_UTIMENSAT
978 GNULIB_STAT
979 GNULIB_MKNODAT
980 GNULIB_MKNOD
981 GNULIB_MKFIFOAT
982 GNULIB_MKFIFO
983 GNULIB_MKDIRAT
984 GNULIB_LSTAT
985 GNULIB_LCHMOD
986 GNULIB_FUTIMENS
987 GNULIB_FSTATAT
988 GNULIB_FSTAT
989 GNULIB_FCHMODAT
990 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H
991 NEXT_FCNTL_H
992 REPLACE_OPENAT
993 REPLACE_OPEN
994 REPLACE_FCNTL
995 HAVE_OPENAT
996 HAVE_FCNTL
997 GNULIB_OPENAT
998 GNULIB_OPEN
999 GNULIB_NONBLOCKING
1000 GNULIB_FCNTL
1001 GL_GENERATE_EXECINFO_H_FALSE
1002 GL_GENERATE_EXECINFO_H_TRUE
1003 LIB_EXECINFO
1004 EXECINFO_H
1005 HAVE_DIRENT_H
1006 NEXT_AS_FIRST_DIRECTIVE_DIRENT_H
1007 NEXT_DIRENT_H
1008 PRAGMA_COLUMNS
1009 PRAGMA_SYSTEM_HEADER
1010 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1011 INCLUDE_NEXT
1012 REPLACE_FDOPENDIR
1013 REPLACE_DIRFD
1014 REPLACE_CLOSEDIR
1015 REPLACE_OPENDIR
1016 HAVE_ALPHASORT
1017 HAVE_SCANDIR
1018 HAVE_FDOPENDIR
1019 HAVE_DECL_FDOPENDIR
1020 HAVE_DECL_DIRFD
1021 HAVE_CLOSEDIR
1022 HAVE_REWINDDIR
1023 HAVE_READDIR
1024 HAVE_OPENDIR
1025 GNULIB_ALPHASORT
1026 GNULIB_SCANDIR
1027 GNULIB_FDOPENDIR
1028 GNULIB_DIRFD
1029 GNULIB_CLOSEDIR
1030 GNULIB_REWINDDIR
1031 GNULIB_READDIR
1032 GNULIB_OPENDIR
1033 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
1034 UNISTD_H_HAVE_WINSOCK2_H
1035 REPLACE_WRITE
1036 REPLACE_USLEEP
1037 REPLACE_UNLINKAT
1038 REPLACE_UNLINK
1039 REPLACE_TTYNAME_R
1040 REPLACE_SYMLINK
1041 REPLACE_SLEEP
1042 REPLACE_RMDIR
1043 REPLACE_READLINK
1044 REPLACE_READ
1045 REPLACE_PWRITE
1046 REPLACE_PREAD
1047 REPLACE_LSEEK
1048 REPLACE_LINKAT
1049 REPLACE_LINK
1050 REPLACE_LCHOWN
1051 REPLACE_ISATTY
1052 REPLACE_GETPAGESIZE
1053 REPLACE_GETGROUPS
1054 REPLACE_GETLOGIN_R
1055 REPLACE_GETDOMAINNAME
1056 REPLACE_GETCWD
1057 REPLACE_FTRUNCATE
1058 REPLACE_FCHOWNAT
1059 REPLACE_DUP2
1060 REPLACE_DUP
1061 REPLACE_CLOSE
1062 REPLACE_CHOWN
1063 HAVE_SYS_PARAM_H
1064 HAVE_OS_H
1065 HAVE_DECL_TTYNAME_R
1066 HAVE_DECL_SETHOSTNAME
1067 HAVE_DECL_GETUSERSHELL
1068 HAVE_DECL_GETPAGESIZE
1069 HAVE_DECL_GETLOGIN_R
1070 HAVE_DECL_GETDOMAINNAME
1071 HAVE_DECL_FDATASYNC
1072 HAVE_DECL_FCHDIR
1073 HAVE_DECL_ENVIRON
1074 HAVE_USLEEP
1075 HAVE_UNLINKAT
1076 HAVE_SYMLINKAT
1077 HAVE_SYMLINK
1078 HAVE_SLEEP
1079 HAVE_SETHOSTNAME
1080 HAVE_READLINKAT
1081 HAVE_READLINK
1082 HAVE_PWRITE
1083 HAVE_PREAD
1084 HAVE_PIPE2
1085 HAVE_PIPE
1086 HAVE_LINKAT
1087 HAVE_LINK
1088 HAVE_LCHOWN
1089 HAVE_GROUP_MEMBER
1090 HAVE_GETPAGESIZE
1091 HAVE_GETLOGIN
1092 HAVE_GETHOSTNAME
1093 HAVE_GETGROUPS
1094 HAVE_GETDTABLESIZE
1095 HAVE_FTRUNCATE
1096 HAVE_FSYNC
1097 HAVE_FDATASYNC
1098 HAVE_FCHOWNAT
1099 HAVE_FCHDIR
1100 HAVE_FACCESSAT
1101 HAVE_EUIDACCESS
1102 HAVE_DUP3
1103 HAVE_DUP2
1104 HAVE_CHOWN
1105 GNULIB_WRITE
1106 GNULIB_USLEEP
1107 GNULIB_UNLINKAT
1108 GNULIB_UNLINK
1109 GNULIB_UNISTD_H_SIGPIPE
1110 GNULIB_UNISTD_H_NONBLOCKING
1111 GNULIB_TTYNAME_R
1112 GNULIB_SYMLINKAT
1113 GNULIB_SYMLINK
1114 GNULIB_SLEEP
1115 GNULIB_SETHOSTNAME
1116 GNULIB_RMDIR
1117 GNULIB_READLINKAT
1118 GNULIB_READLINK
1119 GNULIB_READ
1120 GNULIB_PWRITE
1121 GNULIB_PREAD
1122 GNULIB_PIPE2
1123 GNULIB_PIPE
1124 GNULIB_LSEEK
1125 GNULIB_LINKAT
1126 GNULIB_LINK
1127 GNULIB_LCHOWN
1128 GNULIB_ISATTY
1129 GNULIB_GROUP_MEMBER
1130 GNULIB_GETUSERSHELL
1131 GNULIB_GETPAGESIZE
1132 GNULIB_GETLOGIN_R
1133 GNULIB_GETLOGIN
1134 GNULIB_GETHOSTNAME
1135 GNULIB_GETGROUPS
1136 GNULIB_GETDTABLESIZE
1137 GNULIB_GETDOMAINNAME
1138 GNULIB_GETCWD
1139 GNULIB_FTRUNCATE
1140 GNULIB_FSYNC
1141 GNULIB_FDATASYNC
1142 GNULIB_FCHOWNAT
1143 GNULIB_FCHDIR
1144 GNULIB_FACCESSAT
1145 GNULIB_EUIDACCESS
1146 GNULIB_ENVIRON
1147 GNULIB_DUP3
1148 GNULIB_DUP2
1149 GNULIB_DUP
1150 GNULIB_CLOSE
1151 GNULIB_CHOWN
1152 GNULIB_CHDIR
1153 LIB_CLOCK_GETTIME
1154 GL_GENERATE_ALLOCA_H_FALSE
1155 GL_GENERATE_ALLOCA_H_TRUE
1156 ALLOCA_H
1157 ALLOCA
1158 GL_COND_LIBTOOL_FALSE
1159 GL_COND_LIBTOOL_TRUE
1160 POST_ALLOC_OBJ
1161 PRE_ALLOC_OBJ
1162 CYGWIN_OBJ
1163 RALLOC_OBJ
1164 OLDXMENU_DEPS
1165 LIBX_OTHER
1166 LIBXMENU
1167 OLDXMENU
1168 OLDXMENU_TARGET
1169 LIBXT_OTHER
1170 TOOLKIT_LIBW
1171 WIDGET_OBJ
1172 XOBJ
1173 XMENU_OBJ
1174 FONT_OBJ
1175 OTHER_FILES
1176 GNU_OBJC_CFLAGS
1177 ns_appsrc
1178 ns_appresdir
1179 ns_appbindir
1180 ns_appdir
1181 X_TOOLKIT_TYPE
1182 GNUSTEP_CFLAGS
1183 C_SWITCH_X_SITE
1184 LD_SWITCH_X_SITE
1185 gameuser
1186 gamedir
1187 bitmapdir
1188 archlibdir
1189 etcdir
1190 x_default_search_path
1191 lisppath
1192 locallisppath
1193 standardlisppath
1194 leimdir
1195 lispdir
1196 srcdir
1197 canonical
1198 configuration
1199 version
1200 copyright
1201 KRB4LIB
1202 DESLIB
1203 KRB5LIB
1204 CRYPTOLIB
1205 COM_ERRLIB
1206 LIBRESOLV
1207 LIBHESIOD
1208 TERMCAP_OBJ
1209 LIBS_TERMCAP
1210 BLESSMAIL_TARGET
1211 LIBS_MAIL
1212 liblockfile
1213 LIBXML2_LIBS
1214 LIBXML2_CFLAGS
1215 LIBXSM
1216 LIBGPM
1217 LIBGIF
1218 LIBTIFF
1219 LIBPNG
1220 LIBJPEG
1221 LIBXPM
1222 M17N_FLT_LIBS
1223 M17N_FLT_CFLAGS
1224 LIBOTF_LIBS
1225 LIBOTF_CFLAGS
1226 FREETYPE_LIBS
1227 FREETYPE_CFLAGS
1228 XFT_LIBS
1229 XFT_CFLAGS
1230 FONTCONFIG_LIBS
1231 FONTCONFIG_CFLAGS
1232 LIBXMU
1233 LIBXTR6
1234 LIBACL_LIBS
1235 LIBGNUTLS_LIBS
1236 LIBGNUTLS_CFLAGS
1237 LIBSELINUX_LIBS
1238 SETTINGS_LIBS
1239 SETTINGS_CFLAGS
1240 GOBJECT_LIBS
1241 GOBJECT_CFLAGS
1242 GCONF_LIBS
1243 GCONF_CFLAGS
1244 GSETTINGS_LIBS
1245 GSETTINGS_CFLAGS
1246 DBUS_OBJ
1247 DBUS_LIBS
1248 DBUS_CFLAGS
1249 GTK_OBJ
1250 GTK_LIBS
1251 GTK_CFLAGS
1252 IMAGEMAGICK_LIBS
1253 IMAGEMAGICK_CFLAGS
1254 RSVG_LIBS
1255 RSVG_CFLAGS
1256 LIB_PTHREAD
1257 VMLIMIT_OBJ
1258 GMALLOC_OBJ
1259 HAVE_XSERVER
1260 W32_RES_LINK
1261 W32_RES
1262 W32_LIBS
1263 W32_OBJ
1264 WINDRES
1265 LIB_STANDARD
1266 NS_OBJC_OBJ
1267 NS_OBJ
1268 ns_self_contained
1269 INSTALL_ARCH_INDEP_EXTRA
1270 LIBS_GNUSTEP
1271 LD_SWITCH_X_SITE_RPATH
1272 XMKMF
1273 DEPFLAGS
1274 MKDEPDIR
1275 CFLAGS_SOUND
1276 ALSA_LIBS
1277 ALSA_CFLAGS
1278 LIBSOUND
1279 PKG_CONFIG
1280 CRT_DIR
1281 START_FILES
1282 LIB_MATH
1283 LIBS_SYSTEM
1284 C_SWITCH_SYSTEM
1285 UNEXEC_OBJ
1286 C_SWITCH_MACHINE
1287 LD_SWITCH_SYSTEM
1288 CANNOT_DUMP
1289 INFO_OPTS
1290 INFO_EXT
1291 HAVE_MAKEINFO
1292 PAXCTL
1293 GZIP_PROG
1294 INSTALL_INFO
1295 LN_S
1296 GNULIB_WARN_CFLAGS
1297 WARN_CFLAGS
1298 WERROR_CFLAGS
1299 RANLIB
1300 ARFLAGS
1302 EGREP
1303 GREP
1305 am__fastdepCC_FALSE
1306 am__fastdepCC_TRUE
1307 CCDEPMODE
1308 AMDEPBACKSLASH
1309 AMDEP_FALSE
1310 AMDEP_TRUE
1311 am__quote
1312 am__include
1313 DEPDIR
1314 OBJEXT
1315 EXEEXT
1316 ac_ct_CC
1317 CPPFLAGS
1318 LDFLAGS
1319 CFLAGS
1321 host_os
1322 host_vendor
1323 host_cpu
1324 host
1325 build_os
1326 build_vendor
1327 build_cpu
1328 build
1329 PROFILING_CFLAGS
1330 GZIP_INFO
1331 cache_file
1332 am__untar
1333 am__tar
1334 AMTAR
1335 am__leading_dot
1336 SET_MAKE
1338 mkdir_p
1339 MKDIR_P
1340 INSTALL_STRIP_PROGRAM
1341 STRIP
1342 install_sh
1343 MAKEINFO
1344 AUTOHEADER
1345 AUTOMAKE
1346 AUTOCONF
1347 ACLOCAL
1348 VERSION
1349 PACKAGE
1350 CYGPATH_W
1351 am__isrc
1352 INSTALL_DATA
1353 INSTALL_SCRIPT
1354 INSTALL_PROGRAM
1355 target_alias
1356 host_alias
1357 build_alias
1358 LIBS
1359 ECHO_T
1360 ECHO_N
1361 ECHO_C
1362 DEFS
1363 mandir
1364 localedir
1365 libdir
1366 psdir
1367 pdfdir
1368 dvidir
1369 htmldir
1370 infodir
1371 docdir
1372 oldincludedir
1373 includedir
1374 localstatedir
1375 sharedstatedir
1376 sysconfdir
1377 datadir
1378 datarootdir
1379 libexecdir
1380 sbindir
1381 bindir
1382 program_transform_name
1383 prefix
1384 exec_prefix
1385 PACKAGE_URL
1386 PACKAGE_BUGREPORT
1387 PACKAGE_STRING
1388 PACKAGE_VERSION
1389 PACKAGE_TARNAME
1390 PACKAGE_NAME
1391 PATH_SEPARATOR
1392 SHELL'
1393 ac_subst_files='deps_frag
1394 lisp_frag'
1395 ac_user_opts='
1396 enable_option_checking
1397 with_all
1398 with_pop
1399 with_kerberos
1400 with_kerberos5
1401 with_hesiod
1402 with_mmdf
1403 with_mail_unlink
1404 with_mailhost
1405 with_sound
1406 with_x_toolkit
1407 with_wide_int
1408 with_xpm
1409 with_jpeg
1410 with_tiff
1411 with_gif
1412 with_png
1413 with_rsvg
1414 with_xml2
1415 with_imagemagick
1416 with_xft
1417 with_libotf
1418 with_m17n_flt
1419 with_toolkit_scroll_bars
1420 with_xaw3d
1421 with_xim
1422 with_ns
1423 with_w32
1424 with_gpm
1425 with_dbus
1426 with_gconf
1427 with_gsettings
1428 with_selinux
1429 with_acl
1430 with_gnutls
1431 with_inotify
1432 with_makeinfo
1433 with_compress_info
1434 with_pkg_config_prog
1435 with_crt_dir
1436 with_gameuser
1437 with_gnustep_conf
1438 enable_ns_self_contained
1439 enable_locallisppath
1440 enable_checking
1441 enable_check_lisp_object_type
1442 enable_profiling
1443 enable_autodepend
1444 enable_gtk_deprecation_warnings
1445 enable_dependency_tracking
1446 enable_largefile
1447 enable_gcc_warnings
1448 enable_link_time_optimization
1449 with_x
1451 ac_precious_vars='build_alias
1452 host_alias
1453 target_alias
1455 CFLAGS
1456 LDFLAGS
1457 LIBS
1458 CPPFLAGS
1460 XMKMF'
1463 # Initialize some variables set by options.
1464 ac_init_help=
1465 ac_init_version=false
1466 ac_unrecognized_opts=
1467 ac_unrecognized_sep=
1468 # The variables have the same names as the options, with
1469 # dashes changed to underlines.
1470 cache_file=/dev/null
1471 exec_prefix=NONE
1472 no_create=
1473 no_recursion=
1474 prefix=NONE
1475 program_prefix=NONE
1476 program_suffix=NONE
1477 program_transform_name=s,x,x,
1478 silent=
1479 site=
1480 srcdir=
1481 verbose=
1482 x_includes=NONE
1483 x_libraries=NONE
1485 # Installation directory options.
1486 # These are left unexpanded so users can "make install exec_prefix=/foo"
1487 # and all the variables that are supposed to be based on exec_prefix
1488 # by default will actually change.
1489 # Use braces instead of parens because sh, perl, etc. also accept them.
1490 # (The list follows the same order as the GNU Coding Standards.)
1491 bindir='${exec_prefix}/bin'
1492 sbindir='${exec_prefix}/sbin'
1493 libexecdir='${exec_prefix}/libexec'
1494 datarootdir='${prefix}/share'
1495 datadir='${datarootdir}'
1496 sysconfdir='${prefix}/etc'
1497 sharedstatedir='${prefix}/com'
1498 localstatedir='${prefix}/var'
1499 includedir='${prefix}/include'
1500 oldincludedir='/usr/include'
1501 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1502 infodir='${datarootdir}/info'
1503 htmldir='${docdir}'
1504 dvidir='${docdir}'
1505 pdfdir='${docdir}'
1506 psdir='${docdir}'
1507 libdir='${exec_prefix}/lib'
1508 localedir='${datarootdir}/locale'
1509 mandir='${datarootdir}/man'
1511 ac_prev=
1512 ac_dashdash=
1513 for ac_option
1515 # If the previous option needs an argument, assign it.
1516 if test -n "$ac_prev"; then
1517 eval $ac_prev=\$ac_option
1518 ac_prev=
1519 continue
1522 case $ac_option in
1523 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1524 *) ac_optarg=yes ;;
1525 esac
1527 # Accept the important Cygnus configure options, so we can diagnose typos.
1529 case $ac_dashdash$ac_option in
1531 ac_dashdash=yes ;;
1533 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1534 ac_prev=bindir ;;
1535 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1536 bindir=$ac_optarg ;;
1538 -build | --build | --buil | --bui | --bu)
1539 ac_prev=build_alias ;;
1540 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1541 build_alias=$ac_optarg ;;
1543 -cache-file | --cache-file | --cache-fil | --cache-fi \
1544 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1545 ac_prev=cache_file ;;
1546 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1547 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1548 cache_file=$ac_optarg ;;
1550 --config-cache | -C)
1551 cache_file=config.cache ;;
1553 -datadir | --datadir | --datadi | --datad)
1554 ac_prev=datadir ;;
1555 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1556 datadir=$ac_optarg ;;
1558 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1559 | --dataroo | --dataro | --datar)
1560 ac_prev=datarootdir ;;
1561 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1562 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1563 datarootdir=$ac_optarg ;;
1565 -disable-* | --disable-*)
1566 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1567 # Reject names that are not valid shell variable names.
1568 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1569 as_fn_error "invalid feature name: $ac_useropt"
1570 ac_useropt_orig=$ac_useropt
1571 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1572 case $ac_user_opts in
1574 "enable_$ac_useropt"
1575 "*) ;;
1576 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1577 ac_unrecognized_sep=', ';;
1578 esac
1579 eval enable_$ac_useropt=no ;;
1581 -docdir | --docdir | --docdi | --doc | --do)
1582 ac_prev=docdir ;;
1583 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1584 docdir=$ac_optarg ;;
1586 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1587 ac_prev=dvidir ;;
1588 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1589 dvidir=$ac_optarg ;;
1591 -enable-* | --enable-*)
1592 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1593 # Reject names that are not valid shell variable names.
1594 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1595 as_fn_error "invalid feature name: $ac_useropt"
1596 ac_useropt_orig=$ac_useropt
1597 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1598 case $ac_user_opts in
1600 "enable_$ac_useropt"
1601 "*) ;;
1602 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1603 ac_unrecognized_sep=', ';;
1604 esac
1605 eval enable_$ac_useropt=\$ac_optarg ;;
1607 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1608 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1609 | --exec | --exe | --ex)
1610 ac_prev=exec_prefix ;;
1611 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1612 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1613 | --exec=* | --exe=* | --ex=*)
1614 exec_prefix=$ac_optarg ;;
1616 -gas | --gas | --ga | --g)
1617 # Obsolete; use --with-gas.
1618 with_gas=yes ;;
1620 -help | --help | --hel | --he | -h)
1621 ac_init_help=long ;;
1622 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1623 ac_init_help=recursive ;;
1624 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1625 ac_init_help=short ;;
1627 -host | --host | --hos | --ho)
1628 ac_prev=host_alias ;;
1629 -host=* | --host=* | --hos=* | --ho=*)
1630 host_alias=$ac_optarg ;;
1632 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1633 ac_prev=htmldir ;;
1634 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1635 | --ht=*)
1636 htmldir=$ac_optarg ;;
1638 -includedir | --includedir | --includedi | --included | --include \
1639 | --includ | --inclu | --incl | --inc)
1640 ac_prev=includedir ;;
1641 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1642 | --includ=* | --inclu=* | --incl=* | --inc=*)
1643 includedir=$ac_optarg ;;
1645 -infodir | --infodir | --infodi | --infod | --info | --inf)
1646 ac_prev=infodir ;;
1647 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1648 infodir=$ac_optarg ;;
1650 -libdir | --libdir | --libdi | --libd)
1651 ac_prev=libdir ;;
1652 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1653 libdir=$ac_optarg ;;
1655 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1656 | --libexe | --libex | --libe)
1657 ac_prev=libexecdir ;;
1658 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1659 | --libexe=* | --libex=* | --libe=*)
1660 libexecdir=$ac_optarg ;;
1662 -localedir | --localedir | --localedi | --localed | --locale)
1663 ac_prev=localedir ;;
1664 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1665 localedir=$ac_optarg ;;
1667 -localstatedir | --localstatedir | --localstatedi | --localstated \
1668 | --localstate | --localstat | --localsta | --localst | --locals)
1669 ac_prev=localstatedir ;;
1670 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1671 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1672 localstatedir=$ac_optarg ;;
1674 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1675 ac_prev=mandir ;;
1676 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1677 mandir=$ac_optarg ;;
1679 -nfp | --nfp | --nf)
1680 # Obsolete; use --without-fp.
1681 with_fp=no ;;
1683 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1684 | --no-cr | --no-c | -n)
1685 no_create=yes ;;
1687 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1688 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1689 no_recursion=yes ;;
1691 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1692 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1693 | --oldin | --oldi | --old | --ol | --o)
1694 ac_prev=oldincludedir ;;
1695 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1696 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1697 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1698 oldincludedir=$ac_optarg ;;
1700 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1701 ac_prev=prefix ;;
1702 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1703 prefix=$ac_optarg ;;
1705 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1706 | --program-pre | --program-pr | --program-p)
1707 ac_prev=program_prefix ;;
1708 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1709 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1710 program_prefix=$ac_optarg ;;
1712 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1713 | --program-suf | --program-su | --program-s)
1714 ac_prev=program_suffix ;;
1715 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1716 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1717 program_suffix=$ac_optarg ;;
1719 -program-transform-name | --program-transform-name \
1720 | --program-transform-nam | --program-transform-na \
1721 | --program-transform-n | --program-transform- \
1722 | --program-transform | --program-transfor \
1723 | --program-transfo | --program-transf \
1724 | --program-trans | --program-tran \
1725 | --progr-tra | --program-tr | --program-t)
1726 ac_prev=program_transform_name ;;
1727 -program-transform-name=* | --program-transform-name=* \
1728 | --program-transform-nam=* | --program-transform-na=* \
1729 | --program-transform-n=* | --program-transform-=* \
1730 | --program-transform=* | --program-transfor=* \
1731 | --program-transfo=* | --program-transf=* \
1732 | --program-trans=* | --program-tran=* \
1733 | --progr-tra=* | --program-tr=* | --program-t=*)
1734 program_transform_name=$ac_optarg ;;
1736 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1737 ac_prev=pdfdir ;;
1738 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1739 pdfdir=$ac_optarg ;;
1741 -psdir | --psdir | --psdi | --psd | --ps)
1742 ac_prev=psdir ;;
1743 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1744 psdir=$ac_optarg ;;
1746 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1747 | -silent | --silent | --silen | --sile | --sil)
1748 silent=yes ;;
1750 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1751 ac_prev=sbindir ;;
1752 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1753 | --sbi=* | --sb=*)
1754 sbindir=$ac_optarg ;;
1756 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1757 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1758 | --sharedst | --shareds | --shared | --share | --shar \
1759 | --sha | --sh)
1760 ac_prev=sharedstatedir ;;
1761 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1762 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1763 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1764 | --sha=* | --sh=*)
1765 sharedstatedir=$ac_optarg ;;
1767 -site | --site | --sit)
1768 ac_prev=site ;;
1769 -site=* | --site=* | --sit=*)
1770 site=$ac_optarg ;;
1772 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1773 ac_prev=srcdir ;;
1774 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1775 srcdir=$ac_optarg ;;
1777 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1778 | --syscon | --sysco | --sysc | --sys | --sy)
1779 ac_prev=sysconfdir ;;
1780 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1781 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1782 sysconfdir=$ac_optarg ;;
1784 -target | --target | --targe | --targ | --tar | --ta | --t)
1785 ac_prev=target_alias ;;
1786 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1787 target_alias=$ac_optarg ;;
1789 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1790 verbose=yes ;;
1792 -version | --version | --versio | --versi | --vers | -V)
1793 ac_init_version=: ;;
1795 -with-* | --with-*)
1796 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1797 # Reject names that are not valid shell variable names.
1798 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1799 as_fn_error "invalid package name: $ac_useropt"
1800 ac_useropt_orig=$ac_useropt
1801 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1802 case $ac_user_opts in
1804 "with_$ac_useropt"
1805 "*) ;;
1806 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1807 ac_unrecognized_sep=', ';;
1808 esac
1809 eval with_$ac_useropt=\$ac_optarg ;;
1811 -without-* | --without-*)
1812 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1813 # Reject names that are not valid shell variable names.
1814 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1815 as_fn_error "invalid package name: $ac_useropt"
1816 ac_useropt_orig=$ac_useropt
1817 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1818 case $ac_user_opts in
1820 "with_$ac_useropt"
1821 "*) ;;
1822 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1823 ac_unrecognized_sep=', ';;
1824 esac
1825 eval with_$ac_useropt=no ;;
1827 --x)
1828 # Obsolete; use --with-x.
1829 with_x=yes ;;
1831 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1832 | --x-incl | --x-inc | --x-in | --x-i)
1833 ac_prev=x_includes ;;
1834 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1835 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1836 x_includes=$ac_optarg ;;
1838 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1839 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1840 ac_prev=x_libraries ;;
1841 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1842 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1843 x_libraries=$ac_optarg ;;
1845 -*) as_fn_error "unrecognized option: \`$ac_option'
1846 Try \`$0 --help' for more information."
1849 *=*)
1850 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1851 # Reject names that are not valid shell variable names.
1852 case $ac_envvar in #(
1853 '' | [0-9]* | *[!_$as_cr_alnum]* )
1854 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1855 esac
1856 eval $ac_envvar=\$ac_optarg
1857 export $ac_envvar ;;
1860 # FIXME: should be removed in autoconf 3.0.
1861 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1862 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1863 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1864 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1867 esac
1868 done
1870 if test -n "$ac_prev"; then
1871 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1872 as_fn_error "missing argument to $ac_option"
1875 if test -n "$ac_unrecognized_opts"; then
1876 case $enable_option_checking in
1877 no) ;;
1878 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1879 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1880 esac
1883 # Check all directory arguments for consistency.
1884 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1885 datadir sysconfdir sharedstatedir localstatedir includedir \
1886 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1887 libdir localedir mandir
1889 eval ac_val=\$$ac_var
1890 # Remove trailing slashes.
1891 case $ac_val in
1892 */ )
1893 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1894 eval $ac_var=\$ac_val;;
1895 esac
1896 # Be sure to have absolute directory names.
1897 case $ac_val in
1898 [\\/$]* | ?:[\\/]* ) continue;;
1899 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1900 esac
1901 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1902 done
1904 # There might be people who depend on the old broken behavior: `$host'
1905 # used to hold the argument of --host etc.
1906 # FIXME: To remove some day.
1907 build=$build_alias
1908 host=$host_alias
1909 target=$target_alias
1911 # FIXME: To remove some day.
1912 if test "x$host_alias" != x; then
1913 if test "x$build_alias" = x; then
1914 cross_compiling=maybe
1915 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1916 If a cross compiler is detected then cross compile mode will be used." >&2
1917 elif test "x$build_alias" != "x$host_alias"; then
1918 cross_compiling=yes
1922 ac_tool_prefix=
1923 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1925 test "$silent" = yes && exec 6>/dev/null
1928 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1929 ac_ls_di=`ls -di .` &&
1930 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1931 as_fn_error "working directory cannot be determined"
1932 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1933 as_fn_error "pwd does not report name of working directory"
1936 # Find the source files, if location was not specified.
1937 if test -z "$srcdir"; then
1938 ac_srcdir_defaulted=yes
1939 # Try the directory containing this script, then the parent directory.
1940 ac_confdir=`$as_dirname -- "$as_myself" ||
1941 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1942 X"$as_myself" : 'X\(//\)[^/]' \| \
1943 X"$as_myself" : 'X\(//\)$' \| \
1944 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1945 $as_echo X"$as_myself" |
1946 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1947 s//\1/
1950 /^X\(\/\/\)[^/].*/{
1951 s//\1/
1954 /^X\(\/\/\)$/{
1955 s//\1/
1958 /^X\(\/\).*/{
1959 s//\1/
1962 s/.*/./; q'`
1963 srcdir=$ac_confdir
1964 if test ! -r "$srcdir/$ac_unique_file"; then
1965 srcdir=..
1967 else
1968 ac_srcdir_defaulted=no
1970 if test ! -r "$srcdir/$ac_unique_file"; then
1971 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1972 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1974 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1975 ac_abs_confdir=`(
1976 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1977 pwd)`
1978 # When building in place, set srcdir=.
1979 if test "$ac_abs_confdir" = "$ac_pwd"; then
1980 srcdir=.
1982 # Remove unnecessary trailing slashes from srcdir.
1983 # Double slashes in file names in object file debugging info
1984 # mess up M-x gdb in Emacs.
1985 case $srcdir in
1986 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1987 esac
1988 for ac_var in $ac_precious_vars; do
1989 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1990 eval ac_env_${ac_var}_value=\$${ac_var}
1991 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1992 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1993 done
1996 # Report the --help message.
1998 if test "$ac_init_help" = "long"; then
1999 # Omit some internal or obsolete options to make the list less imposing.
2000 # This message is too long to be a string in the A/UX 3.1 sh.
2001 cat <<_ACEOF
2002 \`configure' configures emacs 24.3.50 to adapt to many kinds of systems.
2004 Usage: $0 [OPTION]... [VAR=VALUE]...
2006 To assign environment variables (e.g., CC, CFLAGS...), specify them as
2007 VAR=VALUE. See below for descriptions of some of the useful variables.
2009 Defaults for the options are specified in brackets.
2011 Configuration:
2012 -h, --help display this help and exit
2013 --help=short display options specific to this package
2014 --help=recursive display the short help of all the included packages
2015 -V, --version display version information and exit
2016 -q, --quiet, --silent do not print \`checking...' messages
2017 --cache-file=FILE cache test results in FILE [disabled]
2018 -C, --config-cache alias for \`--cache-file=config.cache'
2019 -n, --no-create do not create output files
2020 --srcdir=DIR find the sources in DIR [configure dir or \`..']
2022 Installation directories:
2023 --prefix=PREFIX install architecture-independent files in PREFIX
2024 [$ac_default_prefix]
2025 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
2026 [PREFIX]
2028 By default, \`make install' will install all the files in
2029 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
2030 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
2031 for instance \`--prefix=\$HOME'.
2033 For better control, use the options below.
2035 Fine tuning of the installation directories:
2036 --bindir=DIR user executables [EPREFIX/bin]
2037 --sbindir=DIR system admin executables [EPREFIX/sbin]
2038 --libexecdir=DIR program executables [EPREFIX/libexec]
2039 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
2040 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
2041 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
2042 --libdir=DIR object code libraries [EPREFIX/lib]
2043 --includedir=DIR C header files [PREFIX/include]
2044 --oldincludedir=DIR C header files for non-gcc [/usr/include]
2045 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
2046 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
2047 --infodir=DIR info documentation [DATAROOTDIR/info]
2048 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
2049 --mandir=DIR man documentation [DATAROOTDIR/man]
2050 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
2051 --htmldir=DIR html documentation [DOCDIR]
2052 --dvidir=DIR dvi documentation [DOCDIR]
2053 --pdfdir=DIR pdf documentation [DOCDIR]
2054 --psdir=DIR ps documentation [DOCDIR]
2055 _ACEOF
2057 cat <<\_ACEOF
2059 Program names:
2060 --program-prefix=PREFIX prepend PREFIX to installed program names
2061 --program-suffix=SUFFIX append SUFFIX to installed program names
2062 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
2064 X features:
2065 --x-includes=DIR X include files are in DIR
2066 --x-libraries=DIR X library files are in DIR
2068 System types:
2069 --build=BUILD configure for building on BUILD [guessed]
2070 --host=HOST cross-compile to build programs to run on HOST [BUILD]
2071 _ACEOF
2074 if test -n "$ac_init_help"; then
2075 case $ac_init_help in
2076 short | recursive ) echo "Configuration of emacs 24.3.50:";;
2077 esac
2078 cat <<\_ACEOF
2080 Optional Features:
2081 --disable-option-checking ignore unrecognized --enable/--with options
2082 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
2083 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
2084 --disable-ns-self-contained
2085 disable self contained build under NeXTstep
2086 --enable-locallisppath=PATH
2087 directories Emacs should search for lisp files
2088 specific to this site
2089 --enable-checking[=LIST]
2090 enable expensive run-time checks. With LIST, enable
2091 only specific categories of checks. Categories are:
2092 all,yes,no. Flags are: stringbytes, stringoverrun,
2093 stringfreelist, xmallocoverrun, conslist, glyphs
2094 --enable-check-lisp-object-type
2095 enable compile time checks for the Lisp_Object data
2096 type. This is useful for development for catching
2097 certain types of bugs.
2098 --enable-profiling build emacs with low-level, gprof profiling support.
2099 Mainly useful for debugging Emacs itself. May not
2100 work on all platforms. Stops profiler.el working.
2101 --enable-autodepend automatically generate dependencies to .h-files.
2102 Requires GNU Make and Gcc. Enabled if GNU Make and
2103 Gcc is found
2104 --enable-gtk-deprecation-warnings
2105 Show Gtk+/Gdk deprecation warnings for Gtk+ >= 3.0
2106 --disable-dependency-tracking speeds up one-time build
2107 --enable-dependency-tracking do not reject slow dependency extractors
2108 --disable-largefile omit support for large files
2109 --enable-gcc-warnings turn on lots of GCC warnings/errors. This is
2110 intended for developers, and may generate false
2111 alarms when used with older or non-GNU development
2112 tools.
2113 --enable-link-time-optimization
2114 build emacs with link-time optimization. This is
2115 supported only for GCC since 4.5.0.
2117 Optional Packages:
2118 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
2119 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
2120 --without-all omit almost all features and build small executable
2121 with minimal dependencies
2122 --without-pop don't support POP mail retrieval with movemail
2123 --with-kerberos support Kerberos-authenticated POP
2124 --with-kerberos5 support Kerberos version 5 authenticated POP
2125 --with-hesiod support Hesiod to get the POP server host
2126 --with-mmdf support MMDF mailboxes
2127 --with-mail-unlink unlink, rather than empty, mail spool after reading
2128 --with-mailhost=HOSTNAME
2129 string giving default POP mail host
2130 --without-sound don't compile with sound support
2131 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes or gtk, gtk2,
2132 gtk3, lucid or athena, motif, no)
2133 --with-wide-int prefer wide Emacs integers (typically 62-bit)
2134 --without-xpm don't compile with XPM image support
2135 --without-jpeg don't compile with JPEG image support
2136 --without-tiff don't compile with TIFF image support
2137 --without-gif don't compile with GIF image support
2138 --without-png don't compile with PNG image support
2139 --without-rsvg don't compile with SVG image support
2140 --without-xml2 don't compile with XML parsing support
2141 --without-imagemagick don't compile with ImageMagick image support
2142 --without-xft don't use XFT for anti aliased fonts
2143 --without-libotf don't use libotf for OpenType font support
2144 --without-m17n-flt don't use m17n-flt for text shaping
2145 --without-toolkit-scroll-bars
2146 don't use Motif or Xaw3d scroll bars
2147 --without-xaw3d don't use Xaw3d
2148 --without-xim don't use X11 XIM
2149 --with-ns use NeXTstep (Cocoa or GNUstep) windowing system
2150 --with-w32 use native MS Windows GUI
2151 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
2152 console
2153 --without-dbus don't compile with D-Bus support
2154 --without-gconf don't compile with GConf support
2155 --without-gsettings don't compile with GSettings support
2156 --without-selinux don't compile with SELinux support
2157 --without-acl don't compile with ACL support
2158 --without-gnutls don't use -lgnutls for SSL/TLS support
2159 --without-inotify don't compile with inotify (file-watch) support
2160 --without-makeinfo don't require makeinfo for building manuals
2161 --without-compress-info don't compress the installed Info pages
2162 --with-pkg-config-prog=FILENAME
2163 file name of pkg-config for finding GTK and librsvg
2164 --with-crt-dir=DIR directory containing crtn.o etc. The default is
2165 /usr/lib, or /usr/lib64 on some platforms.
2166 --with-gameuser=USER user for shared game score files
2167 --with-gnustep-conf=FILENAME
2168 name of GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
2169 or /etc/GNUstep/GNUstep.conf
2170 --with-x use the X Window System
2172 Some influential environment variables:
2173 CC C compiler command
2174 CFLAGS C compiler flags
2175 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2176 nonstandard directory <lib dir>
2177 LIBS libraries to pass to the linker, e.g. -l<library>
2178 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2179 you have headers in a nonstandard directory <include dir>
2180 CPP C preprocessor
2181 XMKMF Path to xmkmf, Makefile generator for X Window System
2183 Use these variables to override the choices made by `configure' or to help
2184 it to find libraries and programs with nonstandard names/locations.
2186 Report bugs to the package provider.
2187 _ACEOF
2188 ac_status=$?
2191 if test "$ac_init_help" = "recursive"; then
2192 # If there are subdirs, report their specific --help.
2193 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2194 test -d "$ac_dir" ||
2195 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2196 continue
2197 ac_builddir=.
2199 case "$ac_dir" in
2200 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2202 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2203 # A ".." for each directory in $ac_dir_suffix.
2204 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2205 case $ac_top_builddir_sub in
2206 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2207 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2208 esac ;;
2209 esac
2210 ac_abs_top_builddir=$ac_pwd
2211 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2212 # for backward compatibility:
2213 ac_top_builddir=$ac_top_build_prefix
2215 case $srcdir in
2216 .) # We are building in place.
2217 ac_srcdir=.
2218 ac_top_srcdir=$ac_top_builddir_sub
2219 ac_abs_top_srcdir=$ac_pwd ;;
2220 [\\/]* | ?:[\\/]* ) # Absolute name.
2221 ac_srcdir=$srcdir$ac_dir_suffix;
2222 ac_top_srcdir=$srcdir
2223 ac_abs_top_srcdir=$srcdir ;;
2224 *) # Relative name.
2225 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2226 ac_top_srcdir=$ac_top_build_prefix$srcdir
2227 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2228 esac
2229 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2231 cd "$ac_dir" || { ac_status=$?; continue; }
2232 # Check for guested configure.
2233 if test -f "$ac_srcdir/configure.gnu"; then
2234 echo &&
2235 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2236 elif test -f "$ac_srcdir/configure"; then
2237 echo &&
2238 $SHELL "$ac_srcdir/configure" --help=recursive
2239 else
2240 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2241 fi || ac_status=$?
2242 cd "$ac_pwd" || { ac_status=$?; break; }
2243 done
2246 test -n "$ac_init_help" && exit $ac_status
2247 if $ac_init_version; then
2248 cat <<\_ACEOF
2249 emacs configure 24.3.50
2250 generated by GNU Autoconf 2.65
2252 Copyright (C) 2009 Free Software Foundation, Inc.
2253 This configure script is free software; the Free Software Foundation
2254 gives unlimited permission to copy, distribute and modify it.
2255 _ACEOF
2256 exit
2259 ## ------------------------ ##
2260 ## Autoconf initialization. ##
2261 ## ------------------------ ##
2263 # ac_fn_c_try_compile LINENO
2264 # --------------------------
2265 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2266 ac_fn_c_try_compile ()
2268 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2269 rm -f conftest.$ac_objext
2270 if { { ac_try="$ac_compile"
2271 case "(($ac_try" in
2272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2273 *) ac_try_echo=$ac_try;;
2274 esac
2275 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2276 $as_echo "$ac_try_echo"; } >&5
2277 (eval "$ac_compile") 2>conftest.err
2278 ac_status=$?
2279 if test -s conftest.err; then
2280 grep -v '^ *+' conftest.err >conftest.er1
2281 cat conftest.er1 >&5
2282 mv -f conftest.er1 conftest.err
2284 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2285 test $ac_status = 0; } && {
2286 test -z "$ac_c_werror_flag" ||
2287 test ! -s conftest.err
2288 } && test -s conftest.$ac_objext; then :
2289 ac_retval=0
2290 else
2291 $as_echo "$as_me: failed program was:" >&5
2292 sed 's/^/| /' conftest.$ac_ext >&5
2294 ac_retval=1
2296 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2297 as_fn_set_status $ac_retval
2299 } # ac_fn_c_try_compile
2301 # ac_fn_c_try_cpp LINENO
2302 # ----------------------
2303 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2304 ac_fn_c_try_cpp ()
2306 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2307 if { { ac_try="$ac_cpp conftest.$ac_ext"
2308 case "(($ac_try" in
2309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2310 *) ac_try_echo=$ac_try;;
2311 esac
2312 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2313 $as_echo "$ac_try_echo"; } >&5
2314 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2315 ac_status=$?
2316 if test -s conftest.err; then
2317 grep -v '^ *+' conftest.err >conftest.er1
2318 cat conftest.er1 >&5
2319 mv -f conftest.er1 conftest.err
2321 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2322 test $ac_status = 0; } >/dev/null && {
2323 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2324 test ! -s conftest.err
2325 }; then :
2326 ac_retval=0
2327 else
2328 $as_echo "$as_me: failed program was:" >&5
2329 sed 's/^/| /' conftest.$ac_ext >&5
2331 ac_retval=1
2333 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2334 as_fn_set_status $ac_retval
2336 } # ac_fn_c_try_cpp
2338 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2339 # -------------------------------------------------------
2340 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2341 # the include files in INCLUDES and setting the cache variable VAR
2342 # accordingly.
2343 ac_fn_c_check_header_mongrel ()
2345 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2346 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2348 $as_echo_n "checking for $2... " >&6; }
2349 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2350 $as_echo_n "(cached) " >&6
2352 eval ac_res=\$$3
2353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2354 $as_echo "$ac_res" >&6; }
2355 else
2356 # Is the header compilable?
2357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2358 $as_echo_n "checking $2 usability... " >&6; }
2359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2360 /* end confdefs.h. */
2362 #include <$2>
2363 _ACEOF
2364 if ac_fn_c_try_compile "$LINENO"; then :
2365 ac_header_compiler=yes
2366 else
2367 ac_header_compiler=no
2369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2371 $as_echo "$ac_header_compiler" >&6; }
2373 # Is the header present?
2374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2375 $as_echo_n "checking $2 presence... " >&6; }
2376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2377 /* end confdefs.h. */
2378 #include <$2>
2379 _ACEOF
2380 if ac_fn_c_try_cpp "$LINENO"; then :
2381 ac_header_preproc=yes
2382 else
2383 ac_header_preproc=no
2385 rm -f conftest.err conftest.$ac_ext
2386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2387 $as_echo "$ac_header_preproc" >&6; }
2389 # So? What about this header?
2390 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2391 yes:no: )
2392 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2393 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2394 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2395 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2397 no:yes:* )
2398 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2399 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2400 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2401 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2402 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2403 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2404 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2405 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2406 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2407 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2409 esac
2410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2411 $as_echo_n "checking for $2... " >&6; }
2412 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2413 $as_echo_n "(cached) " >&6
2414 else
2415 eval "$3=\$ac_header_compiler"
2417 eval ac_res=\$$3
2418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2419 $as_echo "$ac_res" >&6; }
2421 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2423 } # ac_fn_c_check_header_mongrel
2425 # ac_fn_c_try_run LINENO
2426 # ----------------------
2427 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2428 # that executables *can* be run.
2429 ac_fn_c_try_run ()
2431 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2432 if { { ac_try="$ac_link"
2433 case "(($ac_try" in
2434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2435 *) ac_try_echo=$ac_try;;
2436 esac
2437 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2438 $as_echo "$ac_try_echo"; } >&5
2439 (eval "$ac_link") 2>&5
2440 ac_status=$?
2441 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2442 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2443 { { case "(($ac_try" in
2444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2445 *) ac_try_echo=$ac_try;;
2446 esac
2447 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2448 $as_echo "$ac_try_echo"; } >&5
2449 (eval "$ac_try") 2>&5
2450 ac_status=$?
2451 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2452 test $ac_status = 0; }; }; then :
2453 ac_retval=0
2454 else
2455 $as_echo "$as_me: program exited with status $ac_status" >&5
2456 $as_echo "$as_me: failed program was:" >&5
2457 sed 's/^/| /' conftest.$ac_ext >&5
2459 ac_retval=$ac_status
2461 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2462 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2463 as_fn_set_status $ac_retval
2465 } # ac_fn_c_try_run
2467 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2468 # -------------------------------------------------------
2469 # Tests whether HEADER exists and can be compiled using the include files in
2470 # INCLUDES, setting the cache variable VAR accordingly.
2471 ac_fn_c_check_header_compile ()
2473 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2475 $as_echo_n "checking for $2... " >&6; }
2476 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2477 $as_echo_n "(cached) " >&6
2478 else
2479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2480 /* end confdefs.h. */
2482 #include <$2>
2483 _ACEOF
2484 if ac_fn_c_try_compile "$LINENO"; then :
2485 eval "$3=yes"
2486 else
2487 eval "$3=no"
2489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2491 eval ac_res=\$$3
2492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2493 $as_echo "$ac_res" >&6; }
2494 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2496 } # ac_fn_c_check_header_compile
2498 # ac_fn_c_try_link LINENO
2499 # -----------------------
2500 # Try to link conftest.$ac_ext, and return whether this succeeded.
2501 ac_fn_c_try_link ()
2503 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2504 rm -f conftest.$ac_objext conftest$ac_exeext
2505 if { { ac_try="$ac_link"
2506 case "(($ac_try" in
2507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2508 *) ac_try_echo=$ac_try;;
2509 esac
2510 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2511 $as_echo "$ac_try_echo"; } >&5
2512 (eval "$ac_link") 2>conftest.err
2513 ac_status=$?
2514 if test -s conftest.err; then
2515 grep -v '^ *+' conftest.err >conftest.er1
2516 cat conftest.er1 >&5
2517 mv -f conftest.er1 conftest.err
2519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2520 test $ac_status = 0; } && {
2521 test -z "$ac_c_werror_flag" ||
2522 test ! -s conftest.err
2523 } && test -s conftest$ac_exeext && {
2524 test "$cross_compiling" = yes ||
2525 $as_test_x conftest$ac_exeext
2526 }; then :
2527 ac_retval=0
2528 else
2529 $as_echo "$as_me: failed program was:" >&5
2530 sed 's/^/| /' conftest.$ac_ext >&5
2532 ac_retval=1
2534 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2535 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2536 # interfere with the next link command; also delete a directory that is
2537 # left behind by Apple's compiler. We do this before executing the actions.
2538 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2539 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2540 as_fn_set_status $ac_retval
2542 } # ac_fn_c_try_link
2544 # ac_fn_c_check_decl LINENO SYMBOL VAR
2545 # ------------------------------------
2546 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2547 ac_fn_c_check_decl ()
2549 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2551 $as_echo_n "checking whether $2 is declared... " >&6; }
2552 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2553 $as_echo_n "(cached) " >&6
2554 else
2555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2556 /* end confdefs.h. */
2559 main ()
2561 #ifndef $2
2562 (void) $2;
2563 #endif
2566 return 0;
2568 _ACEOF
2569 if ac_fn_c_try_compile "$LINENO"; then :
2570 eval "$3=yes"
2571 else
2572 eval "$3=no"
2574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2576 eval ac_res=\$$3
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2578 $as_echo "$ac_res" >&6; }
2579 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2581 } # ac_fn_c_check_decl
2583 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2584 # ----------------------------------------------
2585 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2586 ac_fn_c_check_header_preproc ()
2588 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2590 $as_echo_n "checking for $2... " >&6; }
2591 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2592 $as_echo_n "(cached) " >&6
2593 else
2594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2595 /* end confdefs.h. */
2596 #include <$2>
2597 _ACEOF
2598 if ac_fn_c_try_cpp "$LINENO"; then :
2599 eval "$3=yes"
2600 else
2601 eval "$3=no"
2603 rm -f conftest.err conftest.$ac_ext
2605 eval ac_res=\$$3
2606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2607 $as_echo "$ac_res" >&6; }
2608 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2610 } # ac_fn_c_check_header_preproc
2612 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2613 # ----------------------------------------------------
2614 # Tries to find if the field MEMBER exists in type AGGR, after including
2615 # INCLUDES, setting cache variable VAR accordingly.
2616 ac_fn_c_check_member ()
2618 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2620 $as_echo_n "checking for $2.$3... " >&6; }
2621 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2622 $as_echo_n "(cached) " >&6
2623 else
2624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2625 /* end confdefs.h. */
2628 main ()
2630 static $2 ac_aggr;
2631 if (ac_aggr.$3)
2632 return 0;
2634 return 0;
2636 _ACEOF
2637 if ac_fn_c_try_compile "$LINENO"; then :
2638 eval "$4=yes"
2639 else
2640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2641 /* end confdefs.h. */
2644 main ()
2646 static $2 ac_aggr;
2647 if (sizeof ac_aggr.$3)
2648 return 0;
2650 return 0;
2652 _ACEOF
2653 if ac_fn_c_try_compile "$LINENO"; then :
2654 eval "$4=yes"
2655 else
2656 eval "$4=no"
2658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2662 eval ac_res=\$$4
2663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2664 $as_echo "$ac_res" >&6; }
2665 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2667 } # ac_fn_c_check_member
2669 # ac_fn_c_check_func LINENO FUNC VAR
2670 # ----------------------------------
2671 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2672 ac_fn_c_check_func ()
2674 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2676 $as_echo_n "checking for $2... " >&6; }
2677 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2678 $as_echo_n "(cached) " >&6
2679 else
2680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2681 /* end confdefs.h. */
2682 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2683 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2684 #define $2 innocuous_$2
2686 /* System header to define __stub macros and hopefully few prototypes,
2687 which can conflict with char $2 (); below.
2688 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2689 <limits.h> exists even on freestanding compilers. */
2691 #ifdef __STDC__
2692 # include <limits.h>
2693 #else
2694 # include <assert.h>
2695 #endif
2697 #undef $2
2699 /* Override any GCC internal prototype to avoid an error.
2700 Use char because int might match the return type of a GCC
2701 builtin and then its argument prototype would still apply. */
2702 #ifdef __cplusplus
2703 extern "C"
2704 #endif
2705 char $2 ();
2706 /* The GNU C library defines this for functions which it implements
2707 to always fail with ENOSYS. Some functions are actually named
2708 something starting with __ and the normal name is an alias. */
2709 #if defined __stub_$2 || defined __stub___$2
2710 choke me
2711 #endif
2714 main ()
2716 return $2 ();
2718 return 0;
2720 _ACEOF
2721 if ac_fn_c_try_link "$LINENO"; then :
2722 eval "$3=yes"
2723 else
2724 eval "$3=no"
2726 rm -f core conftest.err conftest.$ac_objext \
2727 conftest$ac_exeext 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_func
2736 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2737 # -------------------------------------------
2738 # Tests whether TYPE exists after having included INCLUDES, setting cache
2739 # variable VAR accordingly.
2740 ac_fn_c_check_type ()
2742 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2744 $as_echo_n "checking for $2... " >&6; }
2745 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2746 $as_echo_n "(cached) " >&6
2747 else
2748 eval "$3=no"
2749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2750 /* end confdefs.h. */
2753 main ()
2755 if (sizeof ($2))
2756 return 0;
2758 return 0;
2760 _ACEOF
2761 if ac_fn_c_try_compile "$LINENO"; then :
2762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2763 /* end confdefs.h. */
2766 main ()
2768 if (sizeof (($2)))
2769 return 0;
2771 return 0;
2773 _ACEOF
2774 if ac_fn_c_try_compile "$LINENO"; then :
2776 else
2777 eval "$3=yes"
2779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2783 eval ac_res=\$$3
2784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2785 $as_echo "$ac_res" >&6; }
2786 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2788 } # ac_fn_c_check_type
2790 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2791 # --------------------------------------------
2792 # Tries to find the compile-time value of EXPR in a program that includes
2793 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2794 # computed
2795 ac_fn_c_compute_int ()
2797 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2798 if test "$cross_compiling" = yes; then
2799 # Depending upon the size, compute the lo and hi bounds.
2800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2801 /* end confdefs.h. */
2804 main ()
2806 static int test_array [1 - 2 * !(($2) >= 0)];
2807 test_array [0] = 0
2810 return 0;
2812 _ACEOF
2813 if ac_fn_c_try_compile "$LINENO"; then :
2814 ac_lo=0 ac_mid=0
2815 while :; do
2816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2817 /* end confdefs.h. */
2820 main ()
2822 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2823 test_array [0] = 0
2826 return 0;
2828 _ACEOF
2829 if ac_fn_c_try_compile "$LINENO"; then :
2830 ac_hi=$ac_mid; break
2831 else
2832 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2833 if test $ac_lo -le $ac_mid; then
2834 ac_lo= ac_hi=
2835 break
2837 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2840 done
2841 else
2842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2843 /* end confdefs.h. */
2846 main ()
2848 static int test_array [1 - 2 * !(($2) < 0)];
2849 test_array [0] = 0
2852 return 0;
2854 _ACEOF
2855 if ac_fn_c_try_compile "$LINENO"; then :
2856 ac_hi=-1 ac_mid=-1
2857 while :; do
2858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2859 /* end confdefs.h. */
2862 main ()
2864 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2865 test_array [0] = 0
2868 return 0;
2870 _ACEOF
2871 if ac_fn_c_try_compile "$LINENO"; then :
2872 ac_lo=$ac_mid; break
2873 else
2874 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2875 if test $ac_mid -le $ac_hi; then
2876 ac_lo= ac_hi=
2877 break
2879 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2882 done
2883 else
2884 ac_lo= ac_hi=
2886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2889 # Binary search between lo and hi bounds.
2890 while test "x$ac_lo" != "x$ac_hi"; do
2891 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2893 /* end confdefs.h. */
2896 main ()
2898 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2899 test_array [0] = 0
2902 return 0;
2904 _ACEOF
2905 if ac_fn_c_try_compile "$LINENO"; then :
2906 ac_hi=$ac_mid
2907 else
2908 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2911 done
2912 case $ac_lo in #((
2913 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2914 '') ac_retval=1 ;;
2915 esac
2916 else
2917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2918 /* end confdefs.h. */
2920 static long int longval () { return $2; }
2921 static unsigned long int ulongval () { return $2; }
2922 #include <stdio.h>
2923 #include <stdlib.h>
2925 main ()
2928 FILE *f = fopen ("conftest.val", "w");
2929 if (! f)
2930 return 1;
2931 if (($2) < 0)
2933 long int i = longval ();
2934 if (i != ($2))
2935 return 1;
2936 fprintf (f, "%ld", i);
2938 else
2940 unsigned long int i = ulongval ();
2941 if (i != ($2))
2942 return 1;
2943 fprintf (f, "%lu", i);
2945 /* Do not output a trailing newline, as this causes \r\n confusion
2946 on some platforms. */
2947 return ferror (f) || fclose (f) != 0;
2950 return 0;
2952 _ACEOF
2953 if ac_fn_c_try_run "$LINENO"; then :
2954 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2955 else
2956 ac_retval=1
2958 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2959 conftest.$ac_objext conftest.beam conftest.$ac_ext
2960 rm -f conftest.val
2963 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2964 as_fn_set_status $ac_retval
2966 } # ac_fn_c_compute_int
2967 cat >config.log <<_ACEOF
2968 This file contains any messages produced by compilers while
2969 running configure, to aid debugging if configure makes a mistake.
2971 It was created by emacs $as_me 24.3.50, which was
2972 generated by GNU Autoconf 2.65. Invocation command line was
2974 $ $0 $@
2976 _ACEOF
2977 exec 5>>config.log
2979 cat <<_ASUNAME
2980 ## --------- ##
2981 ## Platform. ##
2982 ## --------- ##
2984 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2985 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2986 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2987 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2988 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2990 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2991 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2993 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2994 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2995 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2996 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2997 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2998 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2999 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3001 _ASUNAME
3003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3004 for as_dir in $PATH
3006 IFS=$as_save_IFS
3007 test -z "$as_dir" && as_dir=.
3008 $as_echo "PATH: $as_dir"
3009 done
3010 IFS=$as_save_IFS
3012 } >&5
3014 cat >&5 <<_ACEOF
3017 ## ----------- ##
3018 ## Core tests. ##
3019 ## ----------- ##
3021 _ACEOF
3024 # Keep a trace of the command line.
3025 # Strip out --no-create and --no-recursion so they do not pile up.
3026 # Strip out --silent because we don't want to record it for future runs.
3027 # Also quote any args containing shell meta-characters.
3028 # Make two passes to allow for proper duplicate-argument suppression.
3029 ac_configure_args=
3030 ac_configure_args0=
3031 ac_configure_args1=
3032 ac_must_keep_next=false
3033 for ac_pass in 1 2
3035 for ac_arg
3037 case $ac_arg in
3038 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3039 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3040 | -silent | --silent | --silen | --sile | --sil)
3041 continue ;;
3042 *\'*)
3043 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3044 esac
3045 case $ac_pass in
3046 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3048 as_fn_append ac_configure_args1 " '$ac_arg'"
3049 if test $ac_must_keep_next = true; then
3050 ac_must_keep_next=false # Got value, back to normal.
3051 else
3052 case $ac_arg in
3053 *=* | --config-cache | -C | -disable-* | --disable-* \
3054 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3055 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3056 | -with-* | --with-* | -without-* | --without-* | --x)
3057 case "$ac_configure_args0 " in
3058 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3059 esac
3061 -* ) ac_must_keep_next=true ;;
3062 esac
3064 as_fn_append ac_configure_args " '$ac_arg'"
3066 esac
3067 done
3068 done
3069 { ac_configure_args0=; unset ac_configure_args0;}
3070 { ac_configure_args1=; unset ac_configure_args1;}
3072 # When interrupted or exit'd, cleanup temporary files, and complete
3073 # config.log. We remove comments because anyway the quotes in there
3074 # would cause problems or look ugly.
3075 # WARNING: Use '\'' to represent an apostrophe within the trap.
3076 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3077 trap 'exit_status=$?
3078 # Save into config.log some information that might help in debugging.
3080 echo
3082 cat <<\_ASBOX
3083 ## ---------------- ##
3084 ## Cache variables. ##
3085 ## ---------------- ##
3086 _ASBOX
3087 echo
3088 # The following way of writing the cache mishandles newlines in values,
3090 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3091 eval ac_val=\$$ac_var
3092 case $ac_val in #(
3093 *${as_nl}*)
3094 case $ac_var in #(
3095 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3096 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3097 esac
3098 case $ac_var in #(
3099 _ | IFS | as_nl) ;; #(
3100 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3101 *) { eval $ac_var=; unset $ac_var;} ;;
3102 esac ;;
3103 esac
3104 done
3105 (set) 2>&1 |
3106 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3107 *${as_nl}ac_space=\ *)
3108 sed -n \
3109 "s/'\''/'\''\\\\'\'''\''/g;
3110 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3111 ;; #(
3113 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3115 esac |
3116 sort
3118 echo
3120 cat <<\_ASBOX
3121 ## ----------------- ##
3122 ## Output variables. ##
3123 ## ----------------- ##
3124 _ASBOX
3125 echo
3126 for ac_var in $ac_subst_vars
3128 eval ac_val=\$$ac_var
3129 case $ac_val in
3130 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3131 esac
3132 $as_echo "$ac_var='\''$ac_val'\''"
3133 done | sort
3134 echo
3136 if test -n "$ac_subst_files"; then
3137 cat <<\_ASBOX
3138 ## ------------------- ##
3139 ## File substitutions. ##
3140 ## ------------------- ##
3141 _ASBOX
3142 echo
3143 for ac_var in $ac_subst_files
3145 eval ac_val=\$$ac_var
3146 case $ac_val in
3147 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3148 esac
3149 $as_echo "$ac_var='\''$ac_val'\''"
3150 done | sort
3151 echo
3154 if test -s confdefs.h; then
3155 cat <<\_ASBOX
3156 ## ----------- ##
3157 ## confdefs.h. ##
3158 ## ----------- ##
3159 _ASBOX
3160 echo
3161 cat confdefs.h
3162 echo
3164 test "$ac_signal" != 0 &&
3165 $as_echo "$as_me: caught signal $ac_signal"
3166 $as_echo "$as_me: exit $exit_status"
3167 } >&5
3168 rm -f core *.core core.conftest.* &&
3169 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3170 exit $exit_status
3172 for ac_signal in 1 2 13 15; do
3173 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3174 done
3175 ac_signal=0
3177 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3178 rm -f -r conftest* confdefs.h
3180 $as_echo "/* confdefs.h */" > confdefs.h
3182 # Predefined preprocessor variables.
3184 cat >>confdefs.h <<_ACEOF
3185 #define PACKAGE_NAME "$PACKAGE_NAME"
3186 _ACEOF
3188 cat >>confdefs.h <<_ACEOF
3189 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3190 _ACEOF
3192 cat >>confdefs.h <<_ACEOF
3193 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3194 _ACEOF
3196 cat >>confdefs.h <<_ACEOF
3197 #define PACKAGE_STRING "$PACKAGE_STRING"
3198 _ACEOF
3200 cat >>confdefs.h <<_ACEOF
3201 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3202 _ACEOF
3204 cat >>confdefs.h <<_ACEOF
3205 #define PACKAGE_URL "$PACKAGE_URL"
3206 _ACEOF
3209 # Let the site file select an alternate cache file if it wants to.
3210 # Prefer an explicitly selected file to automatically selected ones.
3211 ac_site_file1=NONE
3212 ac_site_file2=NONE
3213 if test -n "$CONFIG_SITE"; then
3214 ac_site_file1=$CONFIG_SITE
3215 elif test "x$prefix" != xNONE; then
3216 ac_site_file1=$prefix/share/config.site
3217 ac_site_file2=$prefix/etc/config.site
3218 else
3219 ac_site_file1=$ac_default_prefix/share/config.site
3220 ac_site_file2=$ac_default_prefix/etc/config.site
3222 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3224 test "x$ac_site_file" = xNONE && continue
3225 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3226 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3227 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3228 sed 's/^/| /' "$ac_site_file" >&5
3229 . "$ac_site_file"
3231 done
3233 if test -r "$cache_file"; then
3234 # Some versions of bash will fail to source /dev/null (special files
3235 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3236 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3238 $as_echo "$as_me: loading cache $cache_file" >&6;}
3239 case $cache_file in
3240 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3241 *) . "./$cache_file";;
3242 esac
3244 else
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3246 $as_echo "$as_me: creating cache $cache_file" >&6;}
3247 >$cache_file
3250 as_fn_append ac_header_list " linux/version.h"
3251 as_fn_append ac_header_list " sys/systeminfo.h"
3252 as_fn_append ac_header_list " coff.h"
3253 as_fn_append ac_header_list " pty.h"
3254 as_fn_append ac_header_list " sys/vlimit.h"
3255 as_fn_append ac_header_list " sys/resource.h"
3256 as_fn_append ac_header_list " sys/utsname.h"
3257 as_fn_append ac_header_list " pwd.h"
3258 as_fn_append ac_header_list " utmp.h"
3259 as_fn_append ac_header_list " util.h"
3260 as_fn_append ac_header_list " sys/socket.h"
3261 as_fn_append ac_header_list " stdlib.h"
3262 as_fn_append ac_header_list " unistd.h"
3263 as_fn_append ac_header_list " sys/param.h"
3264 as_fn_append ac_header_list " pthread.h"
3265 as_fn_append ac_header_list " malloc/malloc.h"
3266 as_fn_append ac_header_list " maillock.h"
3267 as_fn_append ac_header_list " sys/un.h"
3268 as_fn_append ac_func_list " tzset"
3269 as_fn_append ac_func_list " readlinkat"
3270 as_fn_append ac_header_list " dirent.h"
3271 as_fn_append ac_header_list " execinfo.h"
3272 as_fn_append ac_func_list " faccessat"
3273 as_fn_append ac_func_list " fdopendir"
3274 as_fn_append ac_header_list " stdio_ext.h"
3275 as_fn_append ac_func_list " __fpending"
3276 as_fn_append ac_func_list " fstatat"
3277 gl_getopt_required=GNU
3278 as_fn_append ac_header_list " getopt.h"
3279 as_fn_append ac_func_list " gettimeofday"
3280 as_fn_append ac_func_list " nanotime"
3281 as_fn_append ac_header_list " sys/time.h"
3282 as_fn_append ac_header_list " wchar.h"
3283 as_fn_append ac_header_list " stdint.h"
3284 as_fn_append ac_header_list " inttypes.h"
3285 as_fn_append ac_func_list " lstat"
3286 as_fn_append ac_func_list " alarm"
3287 as_fn_append ac_header_list " sys/select.h"
3288 as_fn_append ac_func_list " pselect"
3289 as_fn_append ac_func_list " pthread_sigmask"
3290 as_fn_append ac_func_list " readlink"
3291 as_fn_append ac_func_list " strtoimax"
3292 as_fn_append ac_func_list " strtoumax"
3293 as_fn_append ac_func_list " symlink"
3294 as_fn_append ac_header_list " sys/stat.h"
3295 as_fn_append ac_func_list " localtime_r"
3296 as_fn_append ac_header_list " utime.h"
3297 as_fn_append ac_func_list " futimes"
3298 as_fn_append ac_func_list " futimesat"
3299 as_fn_append ac_func_list " futimens"
3300 as_fn_append ac_func_list " utimensat"
3301 as_fn_append ac_func_list " lutimes"
3302 # Check that the precious variables saved in the cache have kept the same
3303 # value.
3304 ac_cache_corrupted=false
3305 for ac_var in $ac_precious_vars; do
3306 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3307 eval ac_new_set=\$ac_env_${ac_var}_set
3308 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3309 eval ac_new_val=\$ac_env_${ac_var}_value
3310 case $ac_old_set,$ac_new_set in
3311 set,)
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3313 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3314 ac_cache_corrupted=: ;;
3315 ,set)
3316 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3317 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3318 ac_cache_corrupted=: ;;
3319 ,);;
3321 if test "x$ac_old_val" != "x$ac_new_val"; then
3322 # differences in whitespace do not lead to failure.
3323 ac_old_val_w=`echo x $ac_old_val`
3324 ac_new_val_w=`echo x $ac_new_val`
3325 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3326 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3327 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3328 ac_cache_corrupted=:
3329 else
3330 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3331 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3332 eval $ac_var=\$ac_old_val
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3335 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3336 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3337 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3338 fi;;
3339 esac
3340 # Pass precious variables to config.status.
3341 if test "$ac_new_set" = set; then
3342 case $ac_new_val in
3343 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3344 *) ac_arg=$ac_var=$ac_new_val ;;
3345 esac
3346 case " $ac_configure_args " in
3347 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3348 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3349 esac
3351 done
3352 if $ac_cache_corrupted; then
3353 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3354 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3355 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3356 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3357 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3359 ## -------------------- ##
3360 ## Main body of script. ##
3361 ## -------------------- ##
3363 ac_ext=c
3364 ac_cpp='$CPP $CPPFLAGS'
3365 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3366 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3367 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3370 emacs_config_options="$@"
3371 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
3374 ac_aux_dir=
3375 for ac_dir in build-aux "$srcdir"/build-aux; do
3376 for ac_t in install-sh install.sh shtool; do
3377 if test -f "$ac_dir/$ac_t"; then
3378 ac_aux_dir=$ac_dir
3379 ac_install_sh="$ac_aux_dir/$ac_t -c"
3380 break 2
3382 done
3383 done
3384 if test -z "$ac_aux_dir"; then
3385 as_fn_error "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
3388 # These three variables are undocumented and unsupported,
3389 # and are intended to be withdrawn in a future Autoconf release.
3390 # They can cause serious problems if a builder's source tree is in a directory
3391 # whose full name contains unusual characters.
3392 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3393 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3394 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3397 am__api_version='1.11'
3399 # Find a good install program. We prefer a C program (faster),
3400 # so one script is as good as another. But avoid the broken or
3401 # incompatible versions:
3402 # SysV /etc/install, /usr/sbin/install
3403 # SunOS /usr/etc/install
3404 # IRIX /sbin/install
3405 # AIX /bin/install
3406 # AmigaOS /C/install, which installs bootblocks on floppy discs
3407 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3408 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3409 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3410 # OS/2's system install, which has a completely different semantic
3411 # ./install, which can be erroneously created by make from ./install.sh.
3412 # Reject install programs that cannot install multiple files.
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3414 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3415 if test -z "$INSTALL"; then
3416 if test "${ac_cv_path_install+set}" = set; then :
3417 $as_echo_n "(cached) " >&6
3418 else
3419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3420 for as_dir in $PATH
3422 IFS=$as_save_IFS
3423 test -z "$as_dir" && as_dir=.
3424 # Account for people who put trailing slashes in PATH elements.
3425 case $as_dir/ in #((
3426 ./ | .// | /[cC]/* | \
3427 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3428 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3429 /usr/ucb/* ) ;;
3431 # OSF1 and SCO ODT 3.0 have their own names for install.
3432 # Don't use installbsd from OSF since it installs stuff as root
3433 # by default.
3434 for ac_prog in ginstall scoinst install; do
3435 for ac_exec_ext in '' $ac_executable_extensions; do
3436 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3437 if test $ac_prog = install &&
3438 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3439 # AIX install. It has an incompatible calling convention.
3441 elif test $ac_prog = install &&
3442 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3443 # program-specific install script used by HP pwplus--don't use.
3445 else
3446 rm -rf conftest.one conftest.two conftest.dir
3447 echo one > conftest.one
3448 echo two > conftest.two
3449 mkdir conftest.dir
3450 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3451 test -s conftest.one && test -s conftest.two &&
3452 test -s conftest.dir/conftest.one &&
3453 test -s conftest.dir/conftest.two
3454 then
3455 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3456 break 3
3460 done
3461 done
3463 esac
3465 done
3466 IFS=$as_save_IFS
3468 rm -rf conftest.one conftest.two conftest.dir
3471 if test "${ac_cv_path_install+set}" = set; then
3472 INSTALL=$ac_cv_path_install
3473 else
3474 # As a last resort, use the slow shell script. Don't cache a
3475 # value for INSTALL within a source directory, because that will
3476 # break other packages using the cache if that directory is
3477 # removed, or if the value is a relative name.
3478 INSTALL=$ac_install_sh
3481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3482 $as_echo "$INSTALL" >&6; }
3484 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3485 # It thinks the first close brace ends the variable substitution.
3486 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3488 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3490 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3493 $as_echo_n "checking whether build environment is sane... " >&6; }
3494 # Just in case
3495 sleep 1
3496 echo timestamp > conftest.file
3497 # Reject unsafe characters in $srcdir or the absolute working directory
3498 # name. Accept space and tab only in the latter.
3499 am_lf='
3501 case `pwd` in
3502 *[\\\"\#\$\&\'\`$am_lf]*)
3503 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3504 esac
3505 case $srcdir in
3506 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3507 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3508 esac
3510 # Do `set' in a subshell so we don't clobber the current shell's
3511 # arguments. Must try -L first in case configure is actually a
3512 # symlink; some systems play weird games with the mod time of symlinks
3513 # (eg FreeBSD returns the mod time of the symlink's containing
3514 # directory).
3515 if (
3516 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3517 if test "$*" = "X"; then
3518 # -L didn't work.
3519 set X `ls -t "$srcdir/configure" conftest.file`
3521 rm -f conftest.file
3522 if test "$*" != "X $srcdir/configure conftest.file" \
3523 && test "$*" != "X conftest.file $srcdir/configure"; then
3525 # If neither matched, then we have a broken ls. This can happen
3526 # if, for instance, CONFIG_SHELL is bash and it inherits a
3527 # broken ls alias from the environment. This has actually
3528 # happened. Such a system could not be considered "sane".
3529 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3530 alias in your environment" "$LINENO" 5
3533 test "$2" = conftest.file
3535 then
3536 # Ok.
3538 else
3539 as_fn_error "newly created file is older than distributed files!
3540 Check your system clock" "$LINENO" 5
3542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3543 $as_echo "yes" >&6; }
3544 test "$program_prefix" != NONE &&
3545 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3546 # Use a double $ so make ignores it.
3547 test "$program_suffix" != NONE &&
3548 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3549 # Double any \ or $.
3550 # By default was `s,x,x', remove it if useless.
3551 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3552 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3554 # expand $ac_aux_dir to an absolute path
3555 am_aux_dir=`cd $ac_aux_dir && pwd`
3557 if test x"${MISSING+set}" != xset; then
3558 case $am_aux_dir in
3559 *\ * | *\ *)
3560 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3562 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3563 esac
3565 # Use eval to expand $SHELL
3566 if eval "$MISSING --run true"; then
3567 am_missing_run="$MISSING --run "
3568 else
3569 am_missing_run=
3570 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3571 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3574 if test x"${install_sh}" != xset; then
3575 case $am_aux_dir in
3576 *\ * | *\ *)
3577 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3579 install_sh="\${SHELL} $am_aux_dir/install-sh"
3580 esac
3583 # Installed binaries are usually stripped using `strip' when the user
3584 # run `make install-strip'. However `strip' might not be the right
3585 # tool to use in cross-compilation environments, therefore Automake
3586 # will honor the `STRIP' environment variable to overrule this program.
3587 if test "$cross_compiling" != no; then
3588 if test -n "$ac_tool_prefix"; then
3589 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3590 set dummy ${ac_tool_prefix}strip; ac_word=$2
3591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3592 $as_echo_n "checking for $ac_word... " >&6; }
3593 if test "${ac_cv_prog_STRIP+set}" = set; then :
3594 $as_echo_n "(cached) " >&6
3595 else
3596 if test -n "$STRIP"; then
3597 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3598 else
3599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3600 for as_dir in $PATH
3602 IFS=$as_save_IFS
3603 test -z "$as_dir" && as_dir=.
3604 for ac_exec_ext in '' $ac_executable_extensions; do
3605 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3606 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3608 break 2
3610 done
3611 done
3612 IFS=$as_save_IFS
3616 STRIP=$ac_cv_prog_STRIP
3617 if test -n "$STRIP"; then
3618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3619 $as_echo "$STRIP" >&6; }
3620 else
3621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3622 $as_echo "no" >&6; }
3627 if test -z "$ac_cv_prog_STRIP"; then
3628 ac_ct_STRIP=$STRIP
3629 # Extract the first word of "strip", so it can be a program name with args.
3630 set dummy strip; ac_word=$2
3631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3632 $as_echo_n "checking for $ac_word... " >&6; }
3633 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3634 $as_echo_n "(cached) " >&6
3635 else
3636 if test -n "$ac_ct_STRIP"; then
3637 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3638 else
3639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3640 for as_dir in $PATH
3642 IFS=$as_save_IFS
3643 test -z "$as_dir" && as_dir=.
3644 for ac_exec_ext in '' $ac_executable_extensions; do
3645 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3646 ac_cv_prog_ac_ct_STRIP="strip"
3647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3648 break 2
3650 done
3651 done
3652 IFS=$as_save_IFS
3656 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3657 if test -n "$ac_ct_STRIP"; then
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3659 $as_echo "$ac_ct_STRIP" >&6; }
3660 else
3661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3662 $as_echo "no" >&6; }
3665 if test "x$ac_ct_STRIP" = x; then
3666 STRIP=":"
3667 else
3668 case $cross_compiling:$ac_tool_warned in
3669 yes:)
3670 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3671 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3672 ac_tool_warned=yes ;;
3673 esac
3674 STRIP=$ac_ct_STRIP
3676 else
3677 STRIP="$ac_cv_prog_STRIP"
3681 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3684 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3685 if test -z "$MKDIR_P"; then
3686 if test "${ac_cv_path_mkdir+set}" = set; then :
3687 $as_echo_n "(cached) " >&6
3688 else
3689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3690 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3692 IFS=$as_save_IFS
3693 test -z "$as_dir" && as_dir=.
3694 for ac_prog in mkdir gmkdir; do
3695 for ac_exec_ext in '' $ac_executable_extensions; do
3696 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3697 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3698 'mkdir (GNU coreutils) '* | \
3699 'mkdir (coreutils) '* | \
3700 'mkdir (fileutils) '4.1*)
3701 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3702 break 3;;
3703 esac
3704 done
3705 done
3706 done
3707 IFS=$as_save_IFS
3711 test -d ./--version && rmdir ./--version
3712 if test "${ac_cv_path_mkdir+set}" = set; then
3713 MKDIR_P="$ac_cv_path_mkdir -p"
3714 else
3715 # As a last resort, use the slow shell script. Don't cache a
3716 # value for MKDIR_P within a source directory, because that will
3717 # break other packages using the cache if that directory is
3718 # removed, or if the value is a relative name.
3719 MKDIR_P="$ac_install_sh -d"
3722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3723 $as_echo "$MKDIR_P" >&6; }
3725 mkdir_p="$MKDIR_P"
3726 case $mkdir_p in
3727 [\\/$]* | ?:[\\/]*) ;;
3728 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3729 esac
3731 for ac_prog in gawk mawk nawk awk
3733 # Extract the first word of "$ac_prog", so it can be a program name with args.
3734 set dummy $ac_prog; ac_word=$2
3735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3736 $as_echo_n "checking for $ac_word... " >&6; }
3737 if test "${ac_cv_prog_AWK+set}" = set; then :
3738 $as_echo_n "(cached) " >&6
3739 else
3740 if test -n "$AWK"; then
3741 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3742 else
3743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3744 for as_dir in $PATH
3746 IFS=$as_save_IFS
3747 test -z "$as_dir" && as_dir=.
3748 for ac_exec_ext in '' $ac_executable_extensions; do
3749 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3750 ac_cv_prog_AWK="$ac_prog"
3751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3752 break 2
3754 done
3755 done
3756 IFS=$as_save_IFS
3760 AWK=$ac_cv_prog_AWK
3761 if test -n "$AWK"; then
3762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3763 $as_echo "$AWK" >&6; }
3764 else
3765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3766 $as_echo "no" >&6; }
3770 test -n "$AWK" && break
3771 done
3773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3774 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3775 set x ${MAKE-make}
3776 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3777 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3778 $as_echo_n "(cached) " >&6
3779 else
3780 cat >conftest.make <<\_ACEOF
3781 SHELL = /bin/sh
3782 all:
3783 @echo '@@@%%%=$(MAKE)=@@@%%%'
3784 _ACEOF
3785 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3786 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3787 *@@@%%%=?*=@@@%%%*)
3788 eval ac_cv_prog_make_${ac_make}_set=yes;;
3790 eval ac_cv_prog_make_${ac_make}_set=no;;
3791 esac
3792 rm -f conftest.make
3794 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3796 $as_echo "yes" >&6; }
3797 SET_MAKE=
3798 else
3799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3800 $as_echo "no" >&6; }
3801 SET_MAKE="MAKE=${MAKE-make}"
3804 rm -rf .tst 2>/dev/null
3805 mkdir .tst 2>/dev/null
3806 if test -d .tst; then
3807 am__leading_dot=.
3808 else
3809 am__leading_dot=_
3811 rmdir .tst 2>/dev/null
3813 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3814 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3815 # is not polluted with repeated "-I."
3816 am__isrc=' -I$(srcdir)'
3817 # test to see if srcdir already configured
3818 if test -f $srcdir/config.status; then
3819 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3823 # test whether we have cygpath
3824 if test -z "$CYGPATH_W"; then
3825 if (cygpath --version) >/dev/null 2>/dev/null; then
3826 CYGPATH_W='cygpath -w'
3827 else
3828 CYGPATH_W=echo
3833 # Define the identity of the package.
3834 PACKAGE='emacs'
3835 VERSION='24.3.50'
3838 cat >>confdefs.h <<_ACEOF
3839 #define PACKAGE "$PACKAGE"
3840 _ACEOF
3843 cat >>confdefs.h <<_ACEOF
3844 #define VERSION "$VERSION"
3845 _ACEOF
3847 # Some tools Automake needs.
3849 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3852 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3855 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3858 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3861 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3863 # We need awk for the "check" target. The system "awk" is bad on
3864 # some platforms.
3865 # Always define AMTAR for backward compatibility.
3867 AMTAR=${AMTAR-"${am_missing_run}tar"}
3869 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3878 lispdir='${datadir}/emacs/${version}/lisp'
3879 leimdir='${datadir}/emacs/${version}/leim'
3880 standardlisppath='${lispdir}:${leimdir}'
3881 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
3882 '${datadir}/emacs/site-lisp'
3883 lisppath='${locallisppath}:${standardlisppath}'
3884 etcdir='${datadir}/emacs/${version}/etc'
3885 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
3886 docdir='${datadir}/emacs/${version}/etc'
3887 gamedir='${localstatedir}/games/emacs'
3890 # Check whether --with-all was given.
3891 if test "${with_all+set}" = set; then :
3892 withval=$with_all; with_features=$withval
3893 else
3894 with_features=yes
3901 # Check whether --with-pop was given.
3902 if test "${with_pop+set}" = set; then :
3903 withval=$with_pop;
3904 else
3905 with_pop=$with_features
3908 if test "$with_pop" = yes; then
3909 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
3914 # Check whether --with-kerberos was given.
3915 if test "${with_kerberos+set}" = set; then :
3916 withval=$with_kerberos;
3917 else
3918 with_kerberos=no
3921 if test "$with_kerberos" != no; then
3922 $as_echo "#define KERBEROS 1" >>confdefs.h
3927 # Check whether --with-kerberos5 was given.
3928 if test "${with_kerberos5+set}" = set; then :
3929 withval=$with_kerberos5;
3930 else
3931 with_kerberos5=no
3934 if test "${with_kerberos5}" != no; then
3935 if test "${with_kerberos}" = no; then
3936 with_kerberos=yes
3937 $as_echo "#define KERBEROS 1" >>confdefs.h
3941 $as_echo "#define KERBEROS5 1" >>confdefs.h
3946 # Check whether --with-hesiod was given.
3947 if test "${with_hesiod+set}" = set; then :
3948 withval=$with_hesiod;
3949 else
3950 with_hesiod=no
3953 if test "$with_hesiod" != no; then
3955 $as_echo "#define HESIOD 1" >>confdefs.h
3960 # Check whether --with-mmdf was given.
3961 if test "${with_mmdf+set}" = set; then :
3962 withval=$with_mmdf;
3963 else
3964 with_mmdf=no
3967 if test "$with_mmdf" != no; then
3969 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
3974 # Check whether --with-mail-unlink was given.
3975 if test "${with_mail_unlink+set}" = set; then :
3976 withval=$with_mail_unlink;
3977 else
3978 with_mail_unlink=no
3981 if test "$with_mail_unlink" != no; then
3983 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
3988 # Check whether --with-mailhost was given.
3989 if test "${with_mailhost+set}" = set; then :
3990 withval=$with_mailhost;
3991 cat >>confdefs.h <<_ACEOF
3992 #define MAILHOST "$withval"
3993 _ACEOF
3999 # Check whether --with-sound was given.
4000 if test "${with_sound+set}" = set; then :
4001 withval=$with_sound;
4002 else
4003 with_sound=$with_features
4008 # Check whether --with-x-toolkit was given.
4009 if test "${with_x_toolkit+set}" = set; then :
4010 withval=$with_x_toolkit; case "${withval}" in
4011 y | ye | yes ) val=gtk ;;
4012 n | no ) val=no ;;
4013 l | lu | luc | luci | lucid ) val=lucid ;;
4014 a | at | ath | athe | athen | athena ) val=athena ;;
4015 m | mo | mot | moti | motif ) val=motif ;;
4016 g | gt | gtk ) val=gtk ;;
4017 gtk2 ) val=gtk2 ;;
4018 gtk3 ) val=gtk3 ;;
4020 as_fn_error "\`--with-x-toolkit=$withval' is invalid;
4021 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk',
4022 \`gtk2' or \`gtk3'. \`yes' and \`gtk' are synonyms.
4023 \`athena' and \`lucid' are synonyms." "$LINENO" 5
4025 esac
4026 with_x_toolkit=$val
4032 # Check whether --with-wide-int was given.
4033 if test "${with_wide_int+set}" = set; then :
4034 withval=$with_wide_int;
4035 else
4036 with_wide_int=no
4039 if test "$with_wide_int" = yes; then
4041 $as_echo "#define WIDE_EMACS_INT 1" >>confdefs.h
4046 # Check whether --with-xpm was given.
4047 if test "${with_xpm+set}" = set; then :
4048 withval=$with_xpm;
4049 else
4050 with_xpm=$with_features
4054 # Check whether --with-jpeg was given.
4055 if test "${with_jpeg+set}" = set; then :
4056 withval=$with_jpeg;
4057 else
4058 with_jpeg=$with_features
4062 # Check whether --with-tiff was given.
4063 if test "${with_tiff+set}" = set; then :
4064 withval=$with_tiff;
4065 else
4066 with_tiff=$with_features
4070 # Check whether --with-gif was given.
4071 if test "${with_gif+set}" = set; then :
4072 withval=$with_gif;
4073 else
4074 with_gif=$with_features
4078 # Check whether --with-png was given.
4079 if test "${with_png+set}" = set; then :
4080 withval=$with_png;
4081 else
4082 with_png=$with_features
4086 # Check whether --with-rsvg was given.
4087 if test "${with_rsvg+set}" = set; then :
4088 withval=$with_rsvg;
4089 else
4090 with_rsvg=$with_features
4094 # Check whether --with-xml2 was given.
4095 if test "${with_xml2+set}" = set; then :
4096 withval=$with_xml2;
4097 else
4098 with_xml2=$with_features
4102 # Check whether --with-imagemagick was given.
4103 if test "${with_imagemagick+set}" = set; then :
4104 withval=$with_imagemagick;
4105 else
4106 with_imagemagick=$with_features
4111 # Check whether --with-xft was given.
4112 if test "${with_xft+set}" = set; then :
4113 withval=$with_xft;
4114 else
4115 with_xft=$with_features
4119 # Check whether --with-libotf was given.
4120 if test "${with_libotf+set}" = set; then :
4121 withval=$with_libotf;
4122 else
4123 with_libotf=$with_features
4127 # Check whether --with-m17n-flt was given.
4128 if test "${with_m17n_flt+set}" = set; then :
4129 withval=$with_m17n_flt;
4130 else
4131 with_m17n_flt=$with_features
4136 # Check whether --with-toolkit-scroll-bars was given.
4137 if test "${with_toolkit_scroll_bars+set}" = set; then :
4138 withval=$with_toolkit_scroll_bars;
4139 else
4140 with_toolkit_scroll_bars=$with_features
4144 # Check whether --with-xaw3d was given.
4145 if test "${with_xaw3d+set}" = set; then :
4146 withval=$with_xaw3d;
4147 else
4148 with_xaw3d=$with_features
4152 # Check whether --with-xim was given.
4153 if test "${with_xim+set}" = set; then :
4154 withval=$with_xim;
4155 else
4156 with_xim=$with_features
4160 # Check whether --with-ns was given.
4161 if test "${with_ns+set}" = set; then :
4162 withval=$with_ns;
4163 else
4164 with_ns=no
4168 # Check whether --with-w32 was given.
4169 if test "${with_w32+set}" = set; then :
4170 withval=$with_w32;
4171 else
4172 with_w32=no
4177 # Check whether --with-gpm was given.
4178 if test "${with_gpm+set}" = set; then :
4179 withval=$with_gpm;
4180 else
4181 with_gpm=$with_features
4185 # Check whether --with-dbus was given.
4186 if test "${with_dbus+set}" = set; then :
4187 withval=$with_dbus;
4188 else
4189 with_dbus=$with_features
4193 # Check whether --with-gconf was given.
4194 if test "${with_gconf+set}" = set; then :
4195 withval=$with_gconf;
4196 else
4197 with_gconf=$with_features
4201 # Check whether --with-gsettings was given.
4202 if test "${with_gsettings+set}" = set; then :
4203 withval=$with_gsettings;
4204 else
4205 with_gsettings=$with_features
4209 # Check whether --with-selinux was given.
4210 if test "${with_selinux+set}" = set; then :
4211 withval=$with_selinux;
4212 else
4213 with_selinux=$with_features
4217 # Check whether --with-acl was given.
4218 if test "${with_acl+set}" = set; then :
4219 withval=$with_acl;
4220 else
4221 with_acl=$with_features
4225 # Check whether --with-gnutls was given.
4226 if test "${with_gnutls+set}" = set; then :
4227 withval=$with_gnutls;
4228 else
4229 with_gnutls=$with_features
4233 # Check whether --with-inotify was given.
4234 if test "${with_inotify+set}" = set; then :
4235 withval=$with_inotify;
4236 else
4237 with_inotify=$with_features
4241 ## For the times when you want to build Emacs but don't have
4242 ## a suitable makeinfo, and can live without the manuals.
4244 # Check whether --with-makeinfo was given.
4245 if test "${with_makeinfo+set}" = set; then :
4246 withval=$with_makeinfo;
4247 else
4248 with_makeinfo=$with_features
4252 ## Makefile.in needs the cache file name.
4255 ## This is an option because I do not know if all info/man support
4256 ## compressed files, nor how to test if they do so.
4258 # Check whether --with-compress-info was given.
4259 if test "${with_compress_info+set}" = set; then :
4260 withval=$with_compress_info;
4261 else
4262 with_compress_info=$with_features
4265 if test $with_compress_info = yes; then
4266 GZIP_INFO=yes
4267 else
4268 GZIP_INFO=
4273 # Check whether --with-pkg-config-prog was given.
4274 if test "${with_pkg_config_prog+set}" = set; then :
4275 withval=$with_pkg_config_prog;
4278 if test "X${with_pkg_config_prog}" != X; then
4279 if test "${with_pkg_config_prog}" != yes; then
4280 PKG_CONFIG="${with_pkg_config_prog}"
4284 CRT_DIR=
4286 # Check whether --with-crt-dir was given.
4287 if test "${with_crt_dir+set}" = set; then :
4288 withval=$with_crt_dir;
4291 CRT_DIR="${with_crt_dir}"
4294 # Check whether --with-gameuser was given.
4295 if test "${with_gameuser+set}" = set; then :
4296 withval=$with_gameuser;
4299 test "X${with_gameuser}" != X && test "${with_gameuser}" != yes \
4300 && gameuser="${with_gameuser}"
4301 test "X$gameuser" = X && gameuser=games
4304 # Check whether --with-gnustep-conf was given.
4305 if test "${with_gnustep_conf+set}" = set; then :
4306 withval=$with_gnustep_conf;
4309 test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
4310 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
4311 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
4312 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
4314 # Check whether --enable-ns-self-contained was given.
4315 if test "${enable_ns_self_contained+set}" = set; then :
4316 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
4317 else
4318 EN_NS_SELF_CONTAINED=yes
4322 # Check whether --enable-locallisppath was given.
4323 if test "${enable_locallisppath+set}" = set; then :
4324 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
4325 locallisppath=
4326 elif test "${enableval}" != "yes"; then
4327 locallisppath=${enableval}
4332 # Check whether --enable-checking was given.
4333 if test "${enable_checking+set}" = set; then :
4334 enableval=$enable_checking; ac_checking_flags="${enableval}"
4337 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
4338 for check in $ac_checking_flags
4340 case $check in
4341 # these set all the flags to specific states
4342 yes) ac_enable_checking=1 ;;
4343 no) ac_enable_checking= ;
4344 ac_gc_check_stringbytes= ;
4345 ac_gc_check_string_overrun= ;
4346 ac_gc_check_string_free_list= ;
4347 ac_xmalloc_overrun= ;
4348 ac_gc_check_cons_list= ;
4349 ac_glyphs_debug= ;;
4350 all) ac_enable_checking=1 ;
4351 ac_gc_check_stringbytes=1 ;
4352 ac_gc_check_string_overrun=1 ;
4353 ac_gc_check_string_free_list=1 ;
4354 ac_xmalloc_overrun=1 ;
4355 ac_gc_check_cons_list=1 ;
4356 ac_glyphs_debug=1 ;;
4357 # these enable particular checks
4358 stringbytes) ac_gc_check_stringbytes=1 ;;
4359 stringoverrun) ac_gc_check_string_overrun=1 ;;
4360 stringfreelist) ac_gc_check_string_free_list=1 ;;
4361 xmallocoverrun) ac_xmalloc_overrun=1 ;;
4362 conslist) ac_gc_check_cons_list=1 ;;
4363 glyphs) ac_glyphs_debug=1 ;;
4364 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
4365 esac
4366 done
4367 IFS="$ac_save_IFS"
4369 if test x$ac_enable_checking != x ; then
4371 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
4374 if test x$ac_gc_check_stringbytes != x ; then
4376 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
4379 if test x$ac_gc_check_string_overrun != x ; then
4381 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
4384 if test x$ac_gc_check_string_free_list != x ; then
4386 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
4389 if test x$ac_xmalloc_overrun != x ; then
4391 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
4394 if test x$ac_gc_check_cons_list != x ; then
4396 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
4399 if test x$ac_glyphs_debug != x ; then
4401 $as_echo "#define GLYPH_DEBUG 1" >>confdefs.h
4405 # Check whether --enable-check-lisp-object-type was given.
4406 if test "${enable_check_lisp_object_type+set}" = set; then :
4407 enableval=$enable_check_lisp_object_type; if test "${enableval}" != "no"; then
4409 $as_echo "#define CHECK_LISP_OBJECT_TYPE 1" >>confdefs.h
4416 # Check whether --enable-profiling was given.
4417 if test "${enable_profiling+set}" = set; then :
4418 enableval=$enable_profiling; ac_enable_profiling="${enableval}"
4421 if test x$ac_enable_profiling != x ; then
4422 PROFILING_CFLAGS="-DPROFILING=1 -pg"
4423 else
4424 PROFILING_CFLAGS=
4428 # Check whether --enable-autodepend was given.
4429 if test "${enable_autodepend+set}" = set; then :
4430 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}"
4431 else
4432 ac_enable_autodepend=yes
4436 # Check whether --enable-gtk-deprecation-warnings was given.
4437 if test "${enable_gtk_deprecation_warnings+set}" = set; then :
4438 enableval=$enable_gtk_deprecation_warnings; ac_enable_gtk_deprecation_warnings="${enableval}"
4442 #### Make srcdir absolute, if it isn't already. It's important to
4443 #### avoid running the file name through pwd unnecessarily, since pwd can
4444 #### give you automounter prefixes, which can go away. We do all this
4445 #### so Emacs can find its files when run uninstalled.
4446 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
4447 unset CDPATH
4448 case "${srcdir}" in
4449 /* ) ;;
4451 ## We may be able to use the $PWD environment variable to make this
4452 ## absolute. But sometimes PWD is inaccurate.
4453 ## Note: we used to use $PWD at the end instead of `pwd`,
4454 ## but that tested only for a well-formed and valid PWD,
4455 ## it did not object when PWD was well-formed and valid but just wrong.
4456 if test ".$PWD" != "." && test ".`(cd "$PWD" ; sh -c pwd)`" = ".`pwd`" ;
4457 then
4458 srcdir="$PWD"
4459 else
4460 srcdir=`(cd "$srcdir"; pwd)`
4463 * ) srcdir=`(cd "$srcdir"; pwd)` ;;
4464 esac
4466 ### Canonicalize the configuration name.
4468 # Make sure we can run config.sub.
4469 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4470 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4473 $as_echo_n "checking build system type... " >&6; }
4474 if test "${ac_cv_build+set}" = set; then :
4475 $as_echo_n "(cached) " >&6
4476 else
4477 ac_build_alias=$build_alias
4478 test "x$ac_build_alias" = x &&
4479 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4480 test "x$ac_build_alias" = x &&
4481 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4482 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4483 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4487 $as_echo "$ac_cv_build" >&6; }
4488 case $ac_cv_build in
4489 *-*-*) ;;
4490 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4491 esac
4492 build=$ac_cv_build
4493 ac_save_IFS=$IFS; IFS='-'
4494 set x $ac_cv_build
4495 shift
4496 build_cpu=$1
4497 build_vendor=$2
4498 shift; shift
4499 # Remember, the first character of IFS is used to create $*,
4500 # except with old shells:
4501 build_os=$*
4502 IFS=$ac_save_IFS
4503 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4507 $as_echo_n "checking host system type... " >&6; }
4508 if test "${ac_cv_host+set}" = set; then :
4509 $as_echo_n "(cached) " >&6
4510 else
4511 if test "x$host_alias" = x; then
4512 ac_cv_host=$ac_cv_build
4513 else
4514 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4515 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4520 $as_echo "$ac_cv_host" >&6; }
4521 case $ac_cv_host in
4522 *-*-*) ;;
4523 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4524 esac
4525 host=$ac_cv_host
4526 ac_save_IFS=$IFS; IFS='-'
4527 set x $ac_cv_host
4528 shift
4529 host_cpu=$1
4530 host_vendor=$2
4531 shift; shift
4532 # Remember, the first character of IFS is used to create $*,
4533 # except with old shells:
4534 host_os=$*
4535 IFS=$ac_save_IFS
4536 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4539 canonical=$host
4540 configuration=${host_alias-${build_alias-$host}}
4544 ### If you add support for a new configuration, add code to this
4545 ### switch statement to recognize your configuration name and select
4546 ### the appropriate operating system file.
4548 ### You would hope that you could choose an s/*.h
4549 ### file based on the operating system portion. However, it turns out
4550 ### that each s/*.h file is pretty manufacturer-specific.
4551 ### So we basically have to have a special case for each
4552 ### configuration name.
4554 ### As far as handling version numbers on operating systems is
4555 ### concerned, make sure things will fail in a fixable way. If
4556 ### /etc/MACHINES doesn't say anything about version numbers, be
4557 ### prepared to handle anything reasonably. If version numbers
4558 ### matter, be sure /etc/MACHINES says something about it.
4560 opsys='' unported=no
4561 case "${canonical}" in
4563 ## GNU/Linux and similar ports
4564 *-*-linux* )
4565 opsys=gnu-linux
4568 ## FreeBSD ports
4569 *-*-freebsd* )
4570 opsys=freebsd
4573 ## FreeBSD kernel + glibc based userland
4574 *-*-kfreebsd*gnu* )
4575 opsys=gnu-kfreebsd
4578 ## NetBSD ports
4579 *-*-netbsd* )
4580 opsys=netbsd
4583 ## OpenBSD ports
4584 *-*-openbsd* )
4585 opsys=openbsd
4588 ## Apple Darwin / Mac OS X
4589 *-apple-darwin* )
4590 case "${canonical}" in
4591 i[3456]86-* ) ;;
4592 powerpc-* ) ;;
4593 x86_64-* ) ;;
4594 * ) unported=yes ;;
4595 esac
4596 opsys=darwin
4597 ## Use fink packages if available.
4598 ## FIXME find a better way to do this: http://debbugs.gnu.org/11507
4599 ## if test -d /sw/include && test -d /sw/lib; then
4600 ## GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
4601 ## NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
4602 ## fi
4605 ## HP 9000 series 700 and 800, running HP/UX
4606 hppa*-hp-hpux10.2* )
4607 opsys=hpux10-20
4609 hppa*-hp-hpux1[1-9]* )
4610 opsys=hpux11
4611 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
4614 ## IBM machines
4615 rs6000-ibm-aix4.[23]* )
4616 opsys=aix4-2
4618 powerpc-ibm-aix4.[23]* )
4619 opsys=aix4-2
4621 rs6000-ibm-aix[56]* )
4622 opsys=aix4-2
4624 powerpc-ibm-aix[56]* )
4625 opsys=aix4-2
4628 ## Silicon Graphics machines
4629 ## Iris 4D
4630 mips-sgi-irix6.5 )
4631 opsys=irix6-5
4632 # Without defining _LANGUAGE_C, things get masked out in the headers
4633 # so that, for instance, grepping for `free' in stdlib.h fails and
4634 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
4635 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
4638 ## Suns
4639 *-sun-solaris* \
4640 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* \
4641 | x86_64-*-solaris2* | x86_64-*-sunos5*)
4642 case "${canonical}" in
4643 i[3456]86-*-* ) ;;
4644 amd64-*-*|x86_64-*-*) ;;
4645 sparc* ) ;;
4646 * ) unported=yes ;;
4647 esac
4648 case "${canonical}" in
4649 *-sunos5.6* | *-solaris2.6* )
4650 opsys=sol2-6
4651 RANLIB="ar -ts"
4653 *-sunos5.[7-9]* | *-solaris2.[7-9]* )
4654 opsys=sol2-6
4655 emacs_check_sunpro_c=yes
4657 *-sunos5* | *-solaris* )
4658 opsys=sol2-10
4659 emacs_check_sunpro_c=yes
4661 esac
4662 ## Watch out for a compiler that we know will not work.
4663 case "${canonical}" in
4664 *-solaris* | *-sunos5* )
4665 if [ "x$CC" = x/usr/ucb/cc ]; then
4666 ## /usr/ucb/cc doesn't work;
4667 ## we should find some other compiler that does work.
4668 unset CC
4671 *) ;;
4672 esac
4675 ## Intel 386 machines where we don't care about the manufacturer.
4676 i[3456]86-*-* )
4677 case "${canonical}" in
4678 *-cygwin ) opsys=cygwin ;;
4679 *-darwin* ) opsys=darwin ;;
4680 *-sysv4.2uw* ) opsys=unixware ;;
4681 *-sysv5uw* ) opsys=unixware ;;
4682 *-sysv5OpenUNIX* ) opsys=unixware ;;
4683 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
4684 esac
4688 unported=yes
4690 esac
4692 ### If the code above didn't choose an operating system, just choose
4693 ### an operating system based on the configuration name. You really
4694 ### only want to use this when you have no idea what the right
4695 ### operating system is; if you know what operating systems a machine
4696 ### runs, it's cleaner to make it explicit in the case statement
4697 ### above.
4698 if test x"${opsys}" = x; then
4699 case "${canonical}" in
4700 *-gnu* ) opsys=gnu ;;
4702 unported=yes
4704 esac
4709 if test $unported = yes; then
4710 as_fn_error "Emacs hasn't been ported to \`${canonical}' systems.
4711 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
4715 #### Choose a compiler.
4717 ac_ext=c
4718 ac_cpp='$CPP $CPPFLAGS'
4719 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4720 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4721 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4722 if test -n "$ac_tool_prefix"; then
4723 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4724 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4726 $as_echo_n "checking for $ac_word... " >&6; }
4727 if test "${ac_cv_prog_CC+set}" = set; then :
4728 $as_echo_n "(cached) " >&6
4729 else
4730 if test -n "$CC"; then
4731 ac_cv_prog_CC="$CC" # Let the user override the test.
4732 else
4733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4734 for as_dir in $PATH
4736 IFS=$as_save_IFS
4737 test -z "$as_dir" && as_dir=.
4738 for ac_exec_ext in '' $ac_executable_extensions; do
4739 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4740 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4742 break 2
4744 done
4745 done
4746 IFS=$as_save_IFS
4750 CC=$ac_cv_prog_CC
4751 if test -n "$CC"; then
4752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4753 $as_echo "$CC" >&6; }
4754 else
4755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4756 $as_echo "no" >&6; }
4761 if test -z "$ac_cv_prog_CC"; then
4762 ac_ct_CC=$CC
4763 # Extract the first word of "gcc", so it can be a program name with args.
4764 set dummy gcc; ac_word=$2
4765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4766 $as_echo_n "checking for $ac_word... " >&6; }
4767 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4768 $as_echo_n "(cached) " >&6
4769 else
4770 if test -n "$ac_ct_CC"; then
4771 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4772 else
4773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4774 for as_dir in $PATH
4776 IFS=$as_save_IFS
4777 test -z "$as_dir" && as_dir=.
4778 for ac_exec_ext in '' $ac_executable_extensions; do
4779 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4780 ac_cv_prog_ac_ct_CC="gcc"
4781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4782 break 2
4784 done
4785 done
4786 IFS=$as_save_IFS
4790 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4791 if test -n "$ac_ct_CC"; then
4792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4793 $as_echo "$ac_ct_CC" >&6; }
4794 else
4795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4796 $as_echo "no" >&6; }
4799 if test "x$ac_ct_CC" = x; then
4800 CC=""
4801 else
4802 case $cross_compiling:$ac_tool_warned in
4803 yes:)
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4805 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4806 ac_tool_warned=yes ;;
4807 esac
4808 CC=$ac_ct_CC
4810 else
4811 CC="$ac_cv_prog_CC"
4814 if test -z "$CC"; then
4815 if test -n "$ac_tool_prefix"; then
4816 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4817 set dummy ${ac_tool_prefix}cc; ac_word=$2
4818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4819 $as_echo_n "checking for $ac_word... " >&6; }
4820 if test "${ac_cv_prog_CC+set}" = set; then :
4821 $as_echo_n "(cached) " >&6
4822 else
4823 if test -n "$CC"; then
4824 ac_cv_prog_CC="$CC" # Let the user override the test.
4825 else
4826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4827 for as_dir in $PATH
4829 IFS=$as_save_IFS
4830 test -z "$as_dir" && as_dir=.
4831 for ac_exec_ext in '' $ac_executable_extensions; do
4832 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4833 ac_cv_prog_CC="${ac_tool_prefix}cc"
4834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4835 break 2
4837 done
4838 done
4839 IFS=$as_save_IFS
4843 CC=$ac_cv_prog_CC
4844 if test -n "$CC"; then
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4846 $as_echo "$CC" >&6; }
4847 else
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4849 $as_echo "no" >&6; }
4855 if test -z "$CC"; then
4856 # Extract the first word of "cc", so it can be a program name with args.
4857 set dummy cc; ac_word=$2
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4859 $as_echo_n "checking for $ac_word... " >&6; }
4860 if test "${ac_cv_prog_CC+set}" = set; then :
4861 $as_echo_n "(cached) " >&6
4862 else
4863 if test -n "$CC"; then
4864 ac_cv_prog_CC="$CC" # Let the user override the test.
4865 else
4866 ac_prog_rejected=no
4867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4868 for as_dir in $PATH
4870 IFS=$as_save_IFS
4871 test -z "$as_dir" && as_dir=.
4872 for ac_exec_ext in '' $ac_executable_extensions; do
4873 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4874 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4875 ac_prog_rejected=yes
4876 continue
4878 ac_cv_prog_CC="cc"
4879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4880 break 2
4882 done
4883 done
4884 IFS=$as_save_IFS
4886 if test $ac_prog_rejected = yes; then
4887 # We found a bogon in the path, so make sure we never use it.
4888 set dummy $ac_cv_prog_CC
4889 shift
4890 if test $# != 0; then
4891 # We chose a different compiler from the bogus one.
4892 # However, it has the same basename, so the bogon will be chosen
4893 # first if we set CC to just the basename; use the full file name.
4894 shift
4895 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4900 CC=$ac_cv_prog_CC
4901 if test -n "$CC"; then
4902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4903 $as_echo "$CC" >&6; }
4904 else
4905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4906 $as_echo "no" >&6; }
4911 if test -z "$CC"; then
4912 if test -n "$ac_tool_prefix"; then
4913 for ac_prog in cl.exe
4915 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4916 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4918 $as_echo_n "checking for $ac_word... " >&6; }
4919 if test "${ac_cv_prog_CC+set}" = set; then :
4920 $as_echo_n "(cached) " >&6
4921 else
4922 if test -n "$CC"; then
4923 ac_cv_prog_CC="$CC" # Let the user override the test.
4924 else
4925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4926 for as_dir in $PATH
4928 IFS=$as_save_IFS
4929 test -z "$as_dir" && as_dir=.
4930 for ac_exec_ext in '' $ac_executable_extensions; do
4931 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4932 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4934 break 2
4936 done
4937 done
4938 IFS=$as_save_IFS
4942 CC=$ac_cv_prog_CC
4943 if test -n "$CC"; then
4944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4945 $as_echo "$CC" >&6; }
4946 else
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4948 $as_echo "no" >&6; }
4952 test -n "$CC" && break
4953 done
4955 if test -z "$CC"; then
4956 ac_ct_CC=$CC
4957 for ac_prog in cl.exe
4959 # Extract the first word of "$ac_prog", so it can be a program name with args.
4960 set dummy $ac_prog; ac_word=$2
4961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4962 $as_echo_n "checking for $ac_word... " >&6; }
4963 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4964 $as_echo_n "(cached) " >&6
4965 else
4966 if test -n "$ac_ct_CC"; then
4967 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4968 else
4969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4970 for as_dir in $PATH
4972 IFS=$as_save_IFS
4973 test -z "$as_dir" && as_dir=.
4974 for ac_exec_ext in '' $ac_executable_extensions; do
4975 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4976 ac_cv_prog_ac_ct_CC="$ac_prog"
4977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4978 break 2
4980 done
4981 done
4982 IFS=$as_save_IFS
4986 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4987 if test -n "$ac_ct_CC"; then
4988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4989 $as_echo "$ac_ct_CC" >&6; }
4990 else
4991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4992 $as_echo "no" >&6; }
4996 test -n "$ac_ct_CC" && break
4997 done
4999 if test "x$ac_ct_CC" = x; then
5000 CC=""
5001 else
5002 case $cross_compiling:$ac_tool_warned in
5003 yes:)
5004 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5005 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5006 ac_tool_warned=yes ;;
5007 esac
5008 CC=$ac_ct_CC
5015 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5016 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5017 as_fn_error "no acceptable C compiler found in \$PATH
5018 See \`config.log' for more details." "$LINENO" 5; }
5020 # Provide some information about the compiler.
5021 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5022 set X $ac_compile
5023 ac_compiler=$2
5024 for ac_option in --version -v -V -qversion; do
5025 { { ac_try="$ac_compiler $ac_option >&5"
5026 case "(($ac_try" in
5027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5028 *) ac_try_echo=$ac_try;;
5029 esac
5030 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5031 $as_echo "$ac_try_echo"; } >&5
5032 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5033 ac_status=$?
5034 if test -s conftest.err; then
5035 sed '10a\
5036 ... rest of stderr output deleted ...
5037 10q' conftest.err >conftest.er1
5038 cat conftest.er1 >&5
5040 rm -f conftest.er1 conftest.err
5041 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5042 test $ac_status = 0; }
5043 done
5045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5046 /* end confdefs.h. */
5049 main ()
5053 return 0;
5055 _ACEOF
5056 ac_clean_files_save=$ac_clean_files
5057 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
5058 # Try to create an executable without -o first, disregard a.out.
5059 # It will help us diagnose broken compilers, and finding out an intuition
5060 # of exeext.
5061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
5062 $as_echo_n "checking whether the C compiler works... " >&6; }
5063 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
5065 # The possible output files:
5066 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
5068 ac_rmfiles=
5069 for ac_file in $ac_files
5071 case $ac_file in
5072 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5073 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
5074 esac
5075 done
5076 rm -f $ac_rmfiles
5078 if { { ac_try="$ac_link_default"
5079 case "(($ac_try" in
5080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5081 *) ac_try_echo=$ac_try;;
5082 esac
5083 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5084 $as_echo "$ac_try_echo"; } >&5
5085 (eval "$ac_link_default") 2>&5
5086 ac_status=$?
5087 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5088 test $ac_status = 0; }; then :
5089 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
5090 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
5091 # in a Makefile. We should not override ac_cv_exeext if it was cached,
5092 # so that the user can short-circuit this test for compilers unknown to
5093 # Autoconf.
5094 for ac_file in $ac_files ''
5096 test -f "$ac_file" || continue
5097 case $ac_file in
5098 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
5100 [ab].out )
5101 # We found the default executable, but exeext='' is most
5102 # certainly right.
5103 break;;
5104 *.* )
5105 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
5106 then :; else
5107 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5109 # We set ac_cv_exeext here because the later test for it is not
5110 # safe: cross compilers may not add the suffix if given an `-o'
5111 # argument, so we may need to know it at that point already.
5112 # Even if this section looks crufty: it has the advantage of
5113 # actually working.
5114 break;;
5116 break;;
5117 esac
5118 done
5119 test "$ac_cv_exeext" = no && ac_cv_exeext=
5121 else
5122 ac_file=''
5124 if test -z "$ac_file"; then :
5125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5126 $as_echo "no" >&6; }
5127 $as_echo "$as_me: failed program was:" >&5
5128 sed 's/^/| /' conftest.$ac_ext >&5
5130 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5131 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5132 { as_fn_set_status 77
5133 as_fn_error "C compiler cannot create executables
5134 See \`config.log' for more details." "$LINENO" 5; }; }
5135 else
5136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5137 $as_echo "yes" >&6; }
5139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5140 $as_echo_n "checking for C compiler default output file name... " >&6; }
5141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5142 $as_echo "$ac_file" >&6; }
5143 ac_exeext=$ac_cv_exeext
5145 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
5146 ac_clean_files=$ac_clean_files_save
5147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5148 $as_echo_n "checking for suffix of executables... " >&6; }
5149 if { { ac_try="$ac_link"
5150 case "(($ac_try" in
5151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5152 *) ac_try_echo=$ac_try;;
5153 esac
5154 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5155 $as_echo "$ac_try_echo"; } >&5
5156 (eval "$ac_link") 2>&5
5157 ac_status=$?
5158 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5159 test $ac_status = 0; }; then :
5160 # If both `conftest.exe' and `conftest' are `present' (well, observable)
5161 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
5162 # work properly (i.e., refer to `conftest.exe'), while it won't with
5163 # `rm'.
5164 for ac_file in conftest.exe conftest conftest.*; do
5165 test -f "$ac_file" || continue
5166 case $ac_file in
5167 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5168 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5169 break;;
5170 * ) break;;
5171 esac
5172 done
5173 else
5174 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5175 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5176 as_fn_error "cannot compute suffix of executables: cannot compile and link
5177 See \`config.log' for more details." "$LINENO" 5; }
5179 rm -f conftest conftest$ac_cv_exeext
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5181 $as_echo "$ac_cv_exeext" >&6; }
5183 rm -f conftest.$ac_ext
5184 EXEEXT=$ac_cv_exeext
5185 ac_exeext=$EXEEXT
5186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5187 /* end confdefs.h. */
5188 #include <stdio.h>
5190 main ()
5192 FILE *f = fopen ("conftest.out", "w");
5193 return ferror (f) || fclose (f) != 0;
5196 return 0;
5198 _ACEOF
5199 ac_clean_files="$ac_clean_files conftest.out"
5200 # Check that the compiler produces executables we can run. If not, either
5201 # the compiler is broken, or we cross compile.
5202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5203 $as_echo_n "checking whether we are cross compiling... " >&6; }
5204 if test "$cross_compiling" != yes; then
5205 { { ac_try="$ac_link"
5206 case "(($ac_try" in
5207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5208 *) ac_try_echo=$ac_try;;
5209 esac
5210 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5211 $as_echo "$ac_try_echo"; } >&5
5212 (eval "$ac_link") 2>&5
5213 ac_status=$?
5214 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5215 test $ac_status = 0; }
5216 if { ac_try='./conftest$ac_cv_exeext'
5217 { { case "(($ac_try" in
5218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5219 *) ac_try_echo=$ac_try;;
5220 esac
5221 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5222 $as_echo "$ac_try_echo"; } >&5
5223 (eval "$ac_try") 2>&5
5224 ac_status=$?
5225 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5226 test $ac_status = 0; }; }; then
5227 cross_compiling=no
5228 else
5229 if test "$cross_compiling" = maybe; then
5230 cross_compiling=yes
5231 else
5232 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5233 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5234 as_fn_error "cannot run C compiled programs.
5235 If you meant to cross compile, use \`--host'.
5236 See \`config.log' for more details." "$LINENO" 5; }
5240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5241 $as_echo "$cross_compiling" >&6; }
5243 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5244 ac_clean_files=$ac_clean_files_save
5245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5246 $as_echo_n "checking for suffix of object files... " >&6; }
5247 if test "${ac_cv_objext+set}" = set; then :
5248 $as_echo_n "(cached) " >&6
5249 else
5250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5251 /* end confdefs.h. */
5254 main ()
5258 return 0;
5260 _ACEOF
5261 rm -f conftest.o conftest.obj
5262 if { { ac_try="$ac_compile"
5263 case "(($ac_try" in
5264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5265 *) ac_try_echo=$ac_try;;
5266 esac
5267 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5268 $as_echo "$ac_try_echo"; } >&5
5269 (eval "$ac_compile") 2>&5
5270 ac_status=$?
5271 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5272 test $ac_status = 0; }; then :
5273 for ac_file in conftest.o conftest.obj conftest.*; do
5274 test -f "$ac_file" || continue;
5275 case $ac_file in
5276 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5277 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5278 break;;
5279 esac
5280 done
5281 else
5282 $as_echo "$as_me: failed program was:" >&5
5283 sed 's/^/| /' conftest.$ac_ext >&5
5285 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5286 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5287 as_fn_error "cannot compute suffix of object files: cannot compile
5288 See \`config.log' for more details." "$LINENO" 5; }
5290 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5293 $as_echo "$ac_cv_objext" >&6; }
5294 OBJEXT=$ac_cv_objext
5295 ac_objext=$OBJEXT
5296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5297 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5298 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5299 $as_echo_n "(cached) " >&6
5300 else
5301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5302 /* end confdefs.h. */
5305 main ()
5307 #ifndef __GNUC__
5308 choke me
5309 #endif
5312 return 0;
5314 _ACEOF
5315 if ac_fn_c_try_compile "$LINENO"; then :
5316 ac_compiler_gnu=yes
5317 else
5318 ac_compiler_gnu=no
5320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5321 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5325 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5326 if test $ac_compiler_gnu = yes; then
5327 GCC=yes
5328 else
5329 GCC=
5331 ac_test_CFLAGS=${CFLAGS+set}
5332 ac_save_CFLAGS=$CFLAGS
5333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5334 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5335 if test "${ac_cv_prog_cc_g+set}" = set; then :
5336 $as_echo_n "(cached) " >&6
5337 else
5338 ac_save_c_werror_flag=$ac_c_werror_flag
5339 ac_c_werror_flag=yes
5340 ac_cv_prog_cc_g=no
5341 CFLAGS="-g"
5342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5343 /* end confdefs.h. */
5346 main ()
5350 return 0;
5352 _ACEOF
5353 if ac_fn_c_try_compile "$LINENO"; then :
5354 ac_cv_prog_cc_g=yes
5355 else
5356 CFLAGS=""
5357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5358 /* end confdefs.h. */
5361 main ()
5365 return 0;
5367 _ACEOF
5368 if ac_fn_c_try_compile "$LINENO"; then :
5370 else
5371 ac_c_werror_flag=$ac_save_c_werror_flag
5372 CFLAGS="-g"
5373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5374 /* end confdefs.h. */
5377 main ()
5381 return 0;
5383 _ACEOF
5384 if ac_fn_c_try_compile "$LINENO"; then :
5385 ac_cv_prog_cc_g=yes
5387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5392 ac_c_werror_flag=$ac_save_c_werror_flag
5394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5395 $as_echo "$ac_cv_prog_cc_g" >&6; }
5396 if test "$ac_test_CFLAGS" = set; then
5397 CFLAGS=$ac_save_CFLAGS
5398 elif test $ac_cv_prog_cc_g = yes; then
5399 if test "$GCC" = yes; then
5400 CFLAGS="-g -O2"
5401 else
5402 CFLAGS="-g"
5404 else
5405 if test "$GCC" = yes; then
5406 CFLAGS="-O2"
5407 else
5408 CFLAGS=
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5412 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5413 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5414 $as_echo_n "(cached) " >&6
5415 else
5416 ac_cv_prog_cc_c89=no
5417 ac_save_CC=$CC
5418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5419 /* end confdefs.h. */
5420 #include <stdarg.h>
5421 #include <stdio.h>
5422 #include <sys/types.h>
5423 #include <sys/stat.h>
5424 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5425 struct buf { int x; };
5426 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5427 static char *e (p, i)
5428 char **p;
5429 int i;
5431 return p[i];
5433 static char *f (char * (*g) (char **, int), char **p, ...)
5435 char *s;
5436 va_list v;
5437 va_start (v,p);
5438 s = g (p, va_arg (v,int));
5439 va_end (v);
5440 return s;
5443 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5444 function prototypes and stuff, but not '\xHH' hex character constants.
5445 These don't provoke an error unfortunately, instead are silently treated
5446 as 'x'. The following induces an error, until -std is added to get
5447 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5448 array size at least. It's necessary to write '\x00'==0 to get something
5449 that's true only with -std. */
5450 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5452 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5453 inside strings and character constants. */
5454 #define FOO(x) 'x'
5455 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5457 int test (int i, double x);
5458 struct s1 {int (*f) (int a);};
5459 struct s2 {int (*f) (double a);};
5460 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5461 int argc;
5462 char **argv;
5464 main ()
5466 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5468 return 0;
5470 _ACEOF
5471 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5472 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5474 CC="$ac_save_CC $ac_arg"
5475 if ac_fn_c_try_compile "$LINENO"; then :
5476 ac_cv_prog_cc_c89=$ac_arg
5478 rm -f core conftest.err conftest.$ac_objext
5479 test "x$ac_cv_prog_cc_c89" != "xno" && break
5480 done
5481 rm -f conftest.$ac_ext
5482 CC=$ac_save_CC
5485 # AC_CACHE_VAL
5486 case "x$ac_cv_prog_cc_c89" in
5488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5489 $as_echo "none needed" >&6; } ;;
5490 xno)
5491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5492 $as_echo "unsupported" >&6; } ;;
5494 CC="$CC $ac_cv_prog_cc_c89"
5495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5496 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5497 esac
5498 if test "x$ac_cv_prog_cc_c89" != xno; then :
5502 ac_ext=c
5503 ac_cpp='$CPP $CPPFLAGS'
5504 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5505 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5506 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5507 DEPDIR="${am__leading_dot}deps"
5509 ac_config_commands="$ac_config_commands depfiles"
5512 am_make=${MAKE-make}
5513 cat > confinc << 'END'
5514 am__doit:
5515 @echo this is the am__doit target
5516 .PHONY: am__doit
5518 # If we don't find an include directive, just comment out the code.
5519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5520 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5521 am__include="#"
5522 am__quote=
5523 _am_result=none
5524 # First try GNU make style include.
5525 echo "include confinc" > confmf
5526 # Ignore all kinds of additional output from `make'.
5527 case `$am_make -s -f confmf 2> /dev/null` in #(
5528 *the\ am__doit\ target*)
5529 am__include=include
5530 am__quote=
5531 _am_result=GNU
5533 esac
5534 # Now try BSD make style include.
5535 if test "$am__include" = "#"; then
5536 echo '.include "confinc"' > confmf
5537 case `$am_make -s -f confmf 2> /dev/null` in #(
5538 *the\ am__doit\ target*)
5539 am__include=.include
5540 am__quote="\""
5541 _am_result=BSD
5543 esac
5547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5548 $as_echo "$_am_result" >&6; }
5549 rm -f confinc confmf
5551 # Check whether --enable-dependency-tracking was given.
5552 if test "${enable_dependency_tracking+set}" = set; then :
5553 enableval=$enable_dependency_tracking;
5556 if test "x$enable_dependency_tracking" != xno; then
5557 am_depcomp="$ac_aux_dir/depcomp"
5558 AMDEPBACKSLASH='\'
5560 if test "x$enable_dependency_tracking" != xno; then
5561 AMDEP_TRUE=
5562 AMDEP_FALSE='#'
5563 else
5564 AMDEP_TRUE='#'
5565 AMDEP_FALSE=
5570 depcc="$CC" am_compiler_list=
5572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5573 $as_echo_n "checking dependency style of $depcc... " >&6; }
5574 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5575 $as_echo_n "(cached) " >&6
5576 else
5577 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5578 # We make a subdir and do the tests there. Otherwise we can end up
5579 # making bogus files that we don't know about and never remove. For
5580 # instance it was reported that on HP-UX the gcc test will end up
5581 # making a dummy file named `D' -- because `-MD' means `put the output
5582 # in D'.
5583 mkdir conftest.dir
5584 # Copy depcomp to subdir because otherwise we won't find it if we're
5585 # using a relative directory.
5586 cp "$am_depcomp" conftest.dir
5587 cd conftest.dir
5588 # We will build objects and dependencies in a subdirectory because
5589 # it helps to detect inapplicable dependency modes. For instance
5590 # both Tru64's cc and ICC support -MD to output dependencies as a
5591 # side effect of compilation, but ICC will put the dependencies in
5592 # the current directory while Tru64 will put them in the object
5593 # directory.
5594 mkdir sub
5596 am_cv_CC_dependencies_compiler_type=none
5597 if test "$am_compiler_list" = ""; then
5598 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5600 am__universal=false
5601 case " $depcc " in #(
5602 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5603 esac
5605 for depmode in $am_compiler_list; do
5606 # Setup a source with many dependencies, because some compilers
5607 # like to wrap large dependency lists on column 80 (with \), and
5608 # we should not choose a depcomp mode which is confused by this.
5610 # We need to recreate these files for each test, as the compiler may
5611 # overwrite some of them when testing with obscure command lines.
5612 # This happens at least with the AIX C compiler.
5613 : > sub/conftest.c
5614 for i in 1 2 3 4 5 6; do
5615 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5616 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5617 # Solaris 8's {/usr,}/bin/sh.
5618 touch sub/conftst$i.h
5619 done
5620 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5622 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5623 # mode. It turns out that the SunPro C++ compiler does not properly
5624 # handle `-M -o', and we need to detect this. Also, some Intel
5625 # versions had trouble with output in subdirs
5626 am__obj=sub/conftest.${OBJEXT-o}
5627 am__minus_obj="-o $am__obj"
5628 case $depmode in
5629 gcc)
5630 # This depmode causes a compiler race in universal mode.
5631 test "$am__universal" = false || continue
5633 nosideeffect)
5634 # after this tag, mechanisms are not by side-effect, so they'll
5635 # only be used when explicitly requested
5636 if test "x$enable_dependency_tracking" = xyes; then
5637 continue
5638 else
5639 break
5642 msvisualcpp | msvcmsys)
5643 # This compiler won't grok `-c -o', but also, the minuso test has
5644 # not run yet. These depmodes are late enough in the game, and
5645 # so weak that their functioning should not be impacted.
5646 am__obj=conftest.${OBJEXT-o}
5647 am__minus_obj=
5649 none) break ;;
5650 esac
5651 if depmode=$depmode \
5652 source=sub/conftest.c object=$am__obj \
5653 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5654 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5655 >/dev/null 2>conftest.err &&
5656 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5657 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5658 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5659 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5660 # icc doesn't choke on unknown options, it will just issue warnings
5661 # or remarks (even with -Werror). So we grep stderr for any message
5662 # that says an option was ignored or not supported.
5663 # When given -MP, icc 7.0 and 7.1 complain thusly:
5664 # icc: Command line warning: ignoring option '-M'; no argument required
5665 # The diagnosis changed in icc 8.0:
5666 # icc: Command line remark: option '-MP' not supported
5667 if (grep 'ignoring option' conftest.err ||
5668 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5669 am_cv_CC_dependencies_compiler_type=$depmode
5670 break
5673 done
5675 cd ..
5676 rm -rf conftest.dir
5677 else
5678 am_cv_CC_dependencies_compiler_type=none
5682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5683 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5684 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5687 test "x$enable_dependency_tracking" != xno \
5688 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5689 am__fastdepCC_TRUE=
5690 am__fastdepCC_FALSE='#'
5691 else
5692 am__fastdepCC_TRUE='#'
5693 am__fastdepCC_FALSE=
5697 if test "x$CC" != xcc; then
5698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5699 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5700 else
5701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5702 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5704 set dummy $CC; ac_cc=`$as_echo "$2" |
5705 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5706 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
5707 $as_echo_n "(cached) " >&6
5708 else
5709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5710 /* end confdefs.h. */
5713 main ()
5717 return 0;
5719 _ACEOF
5720 # Make sure it works both with $CC and with simple cc.
5721 # We do the test twice because some compilers refuse to overwrite an
5722 # existing .o file with -o, though they will create one.
5723 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5724 rm -f conftest2.*
5725 if { { case "(($ac_try" in
5726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5727 *) ac_try_echo=$ac_try;;
5728 esac
5729 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5730 $as_echo "$ac_try_echo"; } >&5
5731 (eval "$ac_try") 2>&5
5732 ac_status=$?
5733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5734 test $ac_status = 0; } &&
5735 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5737 *) ac_try_echo=$ac_try;;
5738 esac
5739 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5740 $as_echo "$ac_try_echo"; } >&5
5741 (eval "$ac_try") 2>&5
5742 ac_status=$?
5743 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5744 test $ac_status = 0; };
5745 then
5746 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5747 if test "x$CC" != xcc; then
5748 # Test first that cc exists at all.
5749 if { ac_try='cc -c conftest.$ac_ext >&5'
5750 { { case "(($ac_try" in
5751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5752 *) ac_try_echo=$ac_try;;
5753 esac
5754 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5755 $as_echo "$ac_try_echo"; } >&5
5756 (eval "$ac_try") 2>&5
5757 ac_status=$?
5758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5759 test $ac_status = 0; }; }; then
5760 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5761 rm -f conftest2.*
5762 if { { case "(($ac_try" in
5763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5764 *) ac_try_echo=$ac_try;;
5765 esac
5766 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5767 $as_echo "$ac_try_echo"; } >&5
5768 (eval "$ac_try") 2>&5
5769 ac_status=$?
5770 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5771 test $ac_status = 0; } &&
5772 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5774 *) ac_try_echo=$ac_try;;
5775 esac
5776 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5777 $as_echo "$ac_try_echo"; } >&5
5778 (eval "$ac_try") 2>&5
5779 ac_status=$?
5780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5781 test $ac_status = 0; };
5782 then
5783 # cc works too.
5785 else
5786 # cc exists but doesn't like -o.
5787 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5791 else
5792 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5794 rm -f core conftest*
5797 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5799 $as_echo "yes" >&6; }
5800 else
5801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5802 $as_echo "no" >&6; }
5804 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5808 # FIXME: we rely on the cache variable name because
5809 # there is no other way.
5810 set dummy $CC
5811 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5812 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5813 if test "$am_t" != yes; then
5814 # Losing compiler, so override with the script.
5815 # FIXME: It is wrong to rewrite CC.
5816 # But if we don't then we get into trouble of one sort or another.
5817 # A longer-term fix would be to have automake use am__CC in this case,
5818 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5819 CC="$am_aux_dir/compile $CC"
5824 if test x$GCC = xyes; then
5825 test "x$GCC_TEST_OPTIONS" != x && CC="$CC $GCC_TEST_OPTIONS"
5826 else
5827 test "x$NON_GCC_TEST_OPTIONS" != x && CC="$CC $NON_GCC_TEST_OPTIONS"
5830 # Avoid gnulib's tests for O_NOATIME and O_NOFOLLOW, as we don't use them.
5832 # Avoid gnulib's threadlib module, as we do threads our own way.
5835 # Initialize gnulib right after choosing the compiler.
5837 ac_ext=c
5838 ac_cpp='$CPP $CPPFLAGS'
5839 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5840 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5841 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5843 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5844 # On Suns, sometimes $CPP names a directory.
5845 if test -n "$CPP" && test -d "$CPP"; then
5846 CPP=
5848 if test -z "$CPP"; then
5849 if test "${ac_cv_prog_CPP+set}" = set; then :
5850 $as_echo_n "(cached) " >&6
5851 else
5852 # Double quotes because CPP needs to be expanded
5853 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5855 ac_preproc_ok=false
5856 for ac_c_preproc_warn_flag in '' yes
5858 # Use a header file that comes with gcc, so configuring glibc
5859 # with a fresh cross-compiler works.
5860 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5861 # <limits.h> exists even on freestanding compilers.
5862 # On the NeXT, cc -E runs the code through the compiler's parser,
5863 # not just through cpp. "Syntax error" is here to catch this case.
5864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5865 /* end confdefs.h. */
5866 #ifdef __STDC__
5867 # include <limits.h>
5868 #else
5869 # include <assert.h>
5870 #endif
5871 Syntax error
5872 _ACEOF
5873 if ac_fn_c_try_cpp "$LINENO"; then :
5875 else
5876 # Broken: fails on valid input.
5877 continue
5879 rm -f conftest.err conftest.$ac_ext
5881 # OK, works on sane cases. Now check whether nonexistent headers
5882 # can be detected and how.
5883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5884 /* end confdefs.h. */
5885 #include <ac_nonexistent.h>
5886 _ACEOF
5887 if ac_fn_c_try_cpp "$LINENO"; then :
5888 # Broken: success on invalid input.
5889 continue
5890 else
5891 # Passes both tests.
5892 ac_preproc_ok=:
5893 break
5895 rm -f conftest.err conftest.$ac_ext
5897 done
5898 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5899 rm -f conftest.err conftest.$ac_ext
5900 if $ac_preproc_ok; then :
5901 break
5904 done
5905 ac_cv_prog_CPP=$CPP
5908 CPP=$ac_cv_prog_CPP
5909 else
5910 ac_cv_prog_CPP=$CPP
5912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5913 $as_echo "$CPP" >&6; }
5914 ac_preproc_ok=false
5915 for ac_c_preproc_warn_flag in '' yes
5917 # Use a header file that comes with gcc, so configuring glibc
5918 # with a fresh cross-compiler works.
5919 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5920 # <limits.h> exists even on freestanding compilers.
5921 # On the NeXT, cc -E runs the code through the compiler's parser,
5922 # not just through cpp. "Syntax error" is here to catch this case.
5923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5924 /* end confdefs.h. */
5925 #ifdef __STDC__
5926 # include <limits.h>
5927 #else
5928 # include <assert.h>
5929 #endif
5930 Syntax error
5931 _ACEOF
5932 if ac_fn_c_try_cpp "$LINENO"; then :
5934 else
5935 # Broken: fails on valid input.
5936 continue
5938 rm -f conftest.err conftest.$ac_ext
5940 # OK, works on sane cases. Now check whether nonexistent headers
5941 # can be detected and how.
5942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5943 /* end confdefs.h. */
5944 #include <ac_nonexistent.h>
5945 _ACEOF
5946 if ac_fn_c_try_cpp "$LINENO"; then :
5947 # Broken: success on invalid input.
5948 continue
5949 else
5950 # Passes both tests.
5951 ac_preproc_ok=:
5952 break
5954 rm -f conftest.err conftest.$ac_ext
5956 done
5957 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5958 rm -f conftest.err conftest.$ac_ext
5959 if $ac_preproc_ok; then :
5961 else
5962 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5963 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5964 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5965 See \`config.log' for more details." "$LINENO" 5; }
5968 ac_ext=c
5969 ac_cpp='$CPP $CPPFLAGS'
5970 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5971 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5972 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5976 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5977 if test "${ac_cv_path_GREP+set}" = set; then :
5978 $as_echo_n "(cached) " >&6
5979 else
5980 if test -z "$GREP"; then
5981 ac_path_GREP_found=false
5982 # Loop through the user's path and test for each of PROGNAME-LIST
5983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5984 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5986 IFS=$as_save_IFS
5987 test -z "$as_dir" && as_dir=.
5988 for ac_prog in grep ggrep; do
5989 for ac_exec_ext in '' $ac_executable_extensions; do
5990 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5991 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5992 # Check for GNU ac_path_GREP and select it if it is found.
5993 # Check for GNU $ac_path_GREP
5994 case `"$ac_path_GREP" --version 2>&1` in
5995 *GNU*)
5996 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5998 ac_count=0
5999 $as_echo_n 0123456789 >"conftest.in"
6000 while :
6002 cat "conftest.in" "conftest.in" >"conftest.tmp"
6003 mv "conftest.tmp" "conftest.in"
6004 cp "conftest.in" "conftest.nl"
6005 $as_echo 'GREP' >> "conftest.nl"
6006 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6007 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6008 as_fn_arith $ac_count + 1 && ac_count=$as_val
6009 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6010 # Best one so far, save it but keep looking for a better one
6011 ac_cv_path_GREP="$ac_path_GREP"
6012 ac_path_GREP_max=$ac_count
6014 # 10*(2^10) chars as input seems more than enough
6015 test $ac_count -gt 10 && break
6016 done
6017 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6018 esac
6020 $ac_path_GREP_found && break 3
6021 done
6022 done
6023 done
6024 IFS=$as_save_IFS
6025 if test -z "$ac_cv_path_GREP"; then
6026 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6028 else
6029 ac_cv_path_GREP=$GREP
6033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6034 $as_echo "$ac_cv_path_GREP" >&6; }
6035 GREP="$ac_cv_path_GREP"
6038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6039 $as_echo_n "checking for egrep... " >&6; }
6040 if test "${ac_cv_path_EGREP+set}" = set; then :
6041 $as_echo_n "(cached) " >&6
6042 else
6043 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6044 then ac_cv_path_EGREP="$GREP -E"
6045 else
6046 if test -z "$EGREP"; then
6047 ac_path_EGREP_found=false
6048 # Loop through the user's path and test for each of PROGNAME-LIST
6049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6050 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6052 IFS=$as_save_IFS
6053 test -z "$as_dir" && as_dir=.
6054 for ac_prog in egrep; do
6055 for ac_exec_ext in '' $ac_executable_extensions; do
6056 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6057 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6058 # Check for GNU ac_path_EGREP and select it if it is found.
6059 # Check for GNU $ac_path_EGREP
6060 case `"$ac_path_EGREP" --version 2>&1` in
6061 *GNU*)
6062 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6064 ac_count=0
6065 $as_echo_n 0123456789 >"conftest.in"
6066 while :
6068 cat "conftest.in" "conftest.in" >"conftest.tmp"
6069 mv "conftest.tmp" "conftest.in"
6070 cp "conftest.in" "conftest.nl"
6071 $as_echo 'EGREP' >> "conftest.nl"
6072 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6073 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6074 as_fn_arith $ac_count + 1 && ac_count=$as_val
6075 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6076 # Best one so far, save it but keep looking for a better one
6077 ac_cv_path_EGREP="$ac_path_EGREP"
6078 ac_path_EGREP_max=$ac_count
6080 # 10*(2^10) chars as input seems more than enough
6081 test $ac_count -gt 10 && break
6082 done
6083 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6084 esac
6086 $ac_path_EGREP_found && break 3
6087 done
6088 done
6089 done
6090 IFS=$as_save_IFS
6091 if test -z "$ac_cv_path_EGREP"; then
6092 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6094 else
6095 ac_cv_path_EGREP=$EGREP
6100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6101 $as_echo "$ac_cv_path_EGREP" >&6; }
6102 EGREP="$ac_cv_path_EGREP"
6107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
6108 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
6109 if test "${gl_cv_c_amsterdam_compiler+set}" = set; then :
6110 $as_echo_n "(cached) " >&6
6111 else
6113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6114 /* end confdefs.h. */
6116 #ifdef __ACK__
6117 Amsterdam
6118 #endif
6120 _ACEOF
6121 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6122 $EGREP "Amsterdam" >/dev/null 2>&1; then :
6123 gl_cv_c_amsterdam_compiler=yes
6124 else
6125 gl_cv_c_amsterdam_compiler=no
6127 rm -f conftest*
6131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
6132 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
6133 if test -z "$AR"; then
6134 if test $gl_cv_c_amsterdam_compiler = yes; then
6135 AR='cc -c.a'
6136 if test -z "$ARFLAGS"; then
6137 ARFLAGS='-o'
6139 else
6140 if test -n "$ac_tool_prefix"; then
6141 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6142 set dummy ${ac_tool_prefix}ar; ac_word=$2
6143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6144 $as_echo_n "checking for $ac_word... " >&6; }
6145 if test "${ac_cv_prog_AR+set}" = set; then :
6146 $as_echo_n "(cached) " >&6
6147 else
6148 if test -n "$AR"; then
6149 ac_cv_prog_AR="$AR" # Let the user override the test.
6150 else
6151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6152 for as_dir in $PATH
6154 IFS=$as_save_IFS
6155 test -z "$as_dir" && as_dir=.
6156 for ac_exec_ext in '' $ac_executable_extensions; do
6157 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6158 ac_cv_prog_AR="${ac_tool_prefix}ar"
6159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6160 break 2
6162 done
6163 done
6164 IFS=$as_save_IFS
6168 AR=$ac_cv_prog_AR
6169 if test -n "$AR"; then
6170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6171 $as_echo "$AR" >&6; }
6172 else
6173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6174 $as_echo "no" >&6; }
6179 if test -z "$ac_cv_prog_AR"; then
6180 ac_ct_AR=$AR
6181 # Extract the first word of "ar", so it can be a program name with args.
6182 set dummy ar; ac_word=$2
6183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6184 $as_echo_n "checking for $ac_word... " >&6; }
6185 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6186 $as_echo_n "(cached) " >&6
6187 else
6188 if test -n "$ac_ct_AR"; then
6189 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6190 else
6191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6192 for as_dir in $PATH
6194 IFS=$as_save_IFS
6195 test -z "$as_dir" && as_dir=.
6196 for ac_exec_ext in '' $ac_executable_extensions; do
6197 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6198 ac_cv_prog_ac_ct_AR="ar"
6199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6200 break 2
6202 done
6203 done
6204 IFS=$as_save_IFS
6208 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6209 if test -n "$ac_ct_AR"; then
6210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6211 $as_echo "$ac_ct_AR" >&6; }
6212 else
6213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6214 $as_echo "no" >&6; }
6217 if test "x$ac_ct_AR" = x; then
6218 AR="ar"
6219 else
6220 case $cross_compiling:$ac_tool_warned in
6221 yes:)
6222 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6223 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6224 ac_tool_warned=yes ;;
6225 esac
6226 AR=$ac_ct_AR
6228 else
6229 AR="$ac_cv_prog_AR"
6232 if test -z "$ARFLAGS"; then
6233 ARFLAGS='cru'
6236 else
6237 if test -z "$ARFLAGS"; then
6238 ARFLAGS='cru'
6243 if test -z "$RANLIB"; then
6244 if test $gl_cv_c_amsterdam_compiler = yes; then
6245 RANLIB=':'
6246 else
6247 if test -n "$ac_tool_prefix"; then
6248 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6249 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6251 $as_echo_n "checking for $ac_word... " >&6; }
6252 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6253 $as_echo_n "(cached) " >&6
6254 else
6255 if test -n "$RANLIB"; then
6256 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6257 else
6258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6259 for as_dir in $PATH
6261 IFS=$as_save_IFS
6262 test -z "$as_dir" && as_dir=.
6263 for ac_exec_ext in '' $ac_executable_extensions; do
6264 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6265 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6267 break 2
6269 done
6270 done
6271 IFS=$as_save_IFS
6275 RANLIB=$ac_cv_prog_RANLIB
6276 if test -n "$RANLIB"; then
6277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6278 $as_echo "$RANLIB" >&6; }
6279 else
6280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6281 $as_echo "no" >&6; }
6286 if test -z "$ac_cv_prog_RANLIB"; then
6287 ac_ct_RANLIB=$RANLIB
6288 # Extract the first word of "ranlib", so it can be a program name with args.
6289 set dummy ranlib; ac_word=$2
6290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6291 $as_echo_n "checking for $ac_word... " >&6; }
6292 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6293 $as_echo_n "(cached) " >&6
6294 else
6295 if test -n "$ac_ct_RANLIB"; then
6296 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6297 else
6298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6299 for as_dir in $PATH
6301 IFS=$as_save_IFS
6302 test -z "$as_dir" && as_dir=.
6303 for ac_exec_ext in '' $ac_executable_extensions; do
6304 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6305 ac_cv_prog_ac_ct_RANLIB="ranlib"
6306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6307 break 2
6309 done
6310 done
6311 IFS=$as_save_IFS
6315 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6316 if test -n "$ac_ct_RANLIB"; then
6317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6318 $as_echo "$ac_ct_RANLIB" >&6; }
6319 else
6320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6321 $as_echo "no" >&6; }
6324 if test "x$ac_ct_RANLIB" = x; then
6325 RANLIB=":"
6326 else
6327 case $cross_compiling:$ac_tool_warned in
6328 yes:)
6329 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6330 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6331 ac_tool_warned=yes ;;
6332 esac
6333 RANLIB=$ac_ct_RANLIB
6335 else
6336 RANLIB="$ac_cv_prog_RANLIB"
6343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6344 $as_echo_n "checking for ANSI C header files... " >&6; }
6345 if test "${ac_cv_header_stdc+set}" = set; then :
6346 $as_echo_n "(cached) " >&6
6347 else
6348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6349 /* end confdefs.h. */
6350 #include <stdlib.h>
6351 #include <stdarg.h>
6352 #include <string.h>
6353 #include <float.h>
6356 main ()
6360 return 0;
6362 _ACEOF
6363 if ac_fn_c_try_compile "$LINENO"; then :
6364 ac_cv_header_stdc=yes
6365 else
6366 ac_cv_header_stdc=no
6368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6370 if test $ac_cv_header_stdc = yes; then
6371 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6373 /* end confdefs.h. */
6374 #include <string.h>
6376 _ACEOF
6377 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6378 $EGREP "memchr" >/dev/null 2>&1; then :
6380 else
6381 ac_cv_header_stdc=no
6383 rm -f conftest*
6387 if test $ac_cv_header_stdc = yes; then
6388 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6390 /* end confdefs.h. */
6391 #include <stdlib.h>
6393 _ACEOF
6394 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6395 $EGREP "free" >/dev/null 2>&1; then :
6397 else
6398 ac_cv_header_stdc=no
6400 rm -f conftest*
6404 if test $ac_cv_header_stdc = yes; then
6405 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6406 if test "$cross_compiling" = yes; then :
6408 else
6409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6410 /* end confdefs.h. */
6411 #include <ctype.h>
6412 #include <stdlib.h>
6413 #if ((' ' & 0x0FF) == 0x020)
6414 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6415 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6416 #else
6417 # define ISLOWER(c) \
6418 (('a' <= (c) && (c) <= 'i') \
6419 || ('j' <= (c) && (c) <= 'r') \
6420 || ('s' <= (c) && (c) <= 'z'))
6421 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6422 #endif
6424 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6426 main ()
6428 int i;
6429 for (i = 0; i < 256; i++)
6430 if (XOR (islower (i), ISLOWER (i))
6431 || toupper (i) != TOUPPER (i))
6432 return 2;
6433 return 0;
6435 _ACEOF
6436 if ac_fn_c_try_run "$LINENO"; then :
6438 else
6439 ac_cv_header_stdc=no
6441 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6442 conftest.$ac_objext conftest.beam conftest.$ac_ext
6447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6448 $as_echo "$ac_cv_header_stdc" >&6; }
6449 if test $ac_cv_header_stdc = yes; then
6451 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6455 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6456 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6457 inttypes.h stdint.h unistd.h
6458 do :
6459 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6460 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6462 eval as_val=\$$as_ac_Header
6463 if test "x$as_val" = x""yes; then :
6464 cat >>confdefs.h <<_ACEOF
6465 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6466 _ACEOF
6470 done
6474 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6475 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
6476 MINIX=yes
6477 else
6478 MINIX=
6482 if test "$MINIX" = yes; then
6484 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6487 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6490 $as_echo "#define _MINIX 1" >>confdefs.h
6493 $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
6498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6499 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6500 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
6501 $as_echo_n "(cached) " >&6
6502 else
6503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6504 /* end confdefs.h. */
6506 # define __EXTENSIONS__ 1
6507 $ac_includes_default
6509 main ()
6513 return 0;
6515 _ACEOF
6516 if ac_fn_c_try_compile "$LINENO"; then :
6517 ac_cv_safe_to_define___extensions__=yes
6518 else
6519 ac_cv_safe_to_define___extensions__=no
6521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6524 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6525 test $ac_cv_safe_to_define___extensions__ = yes &&
6526 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6528 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6530 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
6532 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6534 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6536 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
6539 $as_echo_n "checking whether _XOPEN_SOURCE should be defined... " >&6; }
6540 if test "${ac_cv_should_define__xopen_source+set}" = set; then :
6541 $as_echo_n "(cached) " >&6
6542 else
6543 ac_cv_should_define__xopen_source=no
6544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6545 /* end confdefs.h. */
6547 #include <wchar.h>
6548 mbstate_t x;
6550 main ()
6554 return 0;
6556 _ACEOF
6557 if ac_fn_c_try_compile "$LINENO"; then :
6559 else
6560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6561 /* end confdefs.h. */
6563 #define _XOPEN_SOURCE 500
6564 #include <wchar.h>
6565 mbstate_t x;
6567 main ()
6571 return 0;
6573 _ACEOF
6574 if ac_fn_c_try_compile "$LINENO"; then :
6575 ac_cv_should_define__xopen_source=yes
6577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
6582 $as_echo "$ac_cv_should_define__xopen_source" >&6; }
6583 test $ac_cv_should_define__xopen_source = yes &&
6584 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
6593 # Check whether --enable-largefile was given.
6594 if test "${enable_largefile+set}" = set; then :
6595 enableval=$enable_largefile;
6598 if test "$enable_largefile" != no; then
6600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6601 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6602 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
6603 $as_echo_n "(cached) " >&6
6604 else
6605 ac_cv_sys_largefile_CC=no
6606 if test "$GCC" != yes; then
6607 ac_save_CC=$CC
6608 while :; do
6609 # IRIX 6.2 and later do not support large files by default,
6610 # so use the C compiler's -n32 option if that helps.
6611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6612 /* end confdefs.h. */
6613 #include <sys/types.h>
6614 /* Check that off_t can represent 2**63 - 1 correctly.
6615 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6616 since some C++ compilers masquerading as C compilers
6617 incorrectly reject 9223372036854775807. */
6618 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6619 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6620 && LARGE_OFF_T % 2147483647 == 1)
6621 ? 1 : -1];
6623 main ()
6627 return 0;
6629 _ACEOF
6630 if ac_fn_c_try_compile "$LINENO"; then :
6631 break
6633 rm -f core conftest.err conftest.$ac_objext
6634 CC="$CC -n32"
6635 if ac_fn_c_try_compile "$LINENO"; then :
6636 ac_cv_sys_largefile_CC=' -n32'; break
6638 rm -f core conftest.err conftest.$ac_objext
6639 break
6640 done
6641 CC=$ac_save_CC
6642 rm -f conftest.$ac_ext
6645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6646 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6647 if test "$ac_cv_sys_largefile_CC" != no; then
6648 CC=$CC$ac_cv_sys_largefile_CC
6651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6652 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6653 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
6654 $as_echo_n "(cached) " >&6
6655 else
6656 while :; do
6657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6658 /* end confdefs.h. */
6659 #include <sys/types.h>
6660 /* Check that off_t can represent 2**63 - 1 correctly.
6661 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6662 since some C++ compilers masquerading as C compilers
6663 incorrectly reject 9223372036854775807. */
6664 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6665 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6666 && LARGE_OFF_T % 2147483647 == 1)
6667 ? 1 : -1];
6669 main ()
6673 return 0;
6675 _ACEOF
6676 if ac_fn_c_try_compile "$LINENO"; then :
6677 ac_cv_sys_file_offset_bits=no; break
6679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6681 /* end confdefs.h. */
6682 #define _FILE_OFFSET_BITS 64
6683 #include <sys/types.h>
6684 /* Check that off_t can represent 2**63 - 1 correctly.
6685 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6686 since some C++ compilers masquerading as C compilers
6687 incorrectly reject 9223372036854775807. */
6688 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6689 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6690 && LARGE_OFF_T % 2147483647 == 1)
6691 ? 1 : -1];
6693 main ()
6697 return 0;
6699 _ACEOF
6700 if ac_fn_c_try_compile "$LINENO"; then :
6701 ac_cv_sys_file_offset_bits=64; break
6703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6704 ac_cv_sys_file_offset_bits=unknown
6705 break
6706 done
6708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6709 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6710 case $ac_cv_sys_file_offset_bits in #(
6711 no | unknown) ;;
6713 cat >>confdefs.h <<_ACEOF
6714 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6715 _ACEOF
6717 esac
6718 rm -rf conftest*
6719 if test $ac_cv_sys_file_offset_bits = unknown; then
6720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6721 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6722 if test "${ac_cv_sys_large_files+set}" = set; then :
6723 $as_echo_n "(cached) " >&6
6724 else
6725 while :; do
6726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6727 /* end confdefs.h. */
6728 #include <sys/types.h>
6729 /* Check that off_t can represent 2**63 - 1 correctly.
6730 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6731 since some C++ compilers masquerading as C compilers
6732 incorrectly reject 9223372036854775807. */
6733 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6734 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6735 && LARGE_OFF_T % 2147483647 == 1)
6736 ? 1 : -1];
6738 main ()
6742 return 0;
6744 _ACEOF
6745 if ac_fn_c_try_compile "$LINENO"; then :
6746 ac_cv_sys_large_files=no; break
6748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6750 /* end confdefs.h. */
6751 #define _LARGE_FILES 1
6752 #include <sys/types.h>
6753 /* Check that off_t can represent 2**63 - 1 correctly.
6754 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6755 since some C++ compilers masquerading as C compilers
6756 incorrectly reject 9223372036854775807. */
6757 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6758 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6759 && LARGE_OFF_T % 2147483647 == 1)
6760 ? 1 : -1];
6762 main ()
6766 return 0;
6768 _ACEOF
6769 if ac_fn_c_try_compile "$LINENO"; then :
6770 ac_cv_sys_large_files=1; break
6772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6773 ac_cv_sys_large_files=unknown
6774 break
6775 done
6777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6778 $as_echo "$ac_cv_sys_large_files" >&6; }
6779 case $ac_cv_sys_large_files in #(
6780 no | unknown) ;;
6782 cat >>confdefs.h <<_ACEOF
6783 #define _LARGE_FILES $ac_cv_sys_large_files
6784 _ACEOF
6786 esac
6787 rm -rf conftest*
6791 $as_echo "#define _DARWIN_USE_64_BIT_INODE 1" >>confdefs.h
6795 case $ac_cv_prog_cc_stdc in #(
6796 no) :
6797 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6798 *) :
6799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
6800 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
6801 if test "${ac_cv_prog_cc_c99+set}" = set; then :
6802 $as_echo_n "(cached) " >&6
6803 else
6804 ac_cv_prog_cc_c99=no
6805 ac_save_CC=$CC
6806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6807 /* end confdefs.h. */
6808 #include <stdarg.h>
6809 #include <stdbool.h>
6810 #include <stdlib.h>
6811 #include <wchar.h>
6812 #include <stdio.h>
6814 // Check varargs macros. These examples are taken from C99 6.10.3.5.
6815 #define debug(...) fprintf (stderr, __VA_ARGS__)
6816 #define showlist(...) puts (#__VA_ARGS__)
6817 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6818 static void
6819 test_varargs_macros (void)
6821 int x = 1234;
6822 int y = 5678;
6823 debug ("Flag");
6824 debug ("X = %d\n", x);
6825 showlist (The first, second, and third items.);
6826 report (x>y, "x is %d but y is %d", x, y);
6829 // Check long long types.
6830 #define BIG64 18446744073709551615ull
6831 #define BIG32 4294967295ul
6832 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6833 #if !BIG_OK
6834 your preprocessor is broken;
6835 #endif
6836 #if BIG_OK
6837 #else
6838 your preprocessor is broken;
6839 #endif
6840 static long long int bignum = -9223372036854775807LL;
6841 static unsigned long long int ubignum = BIG64;
6843 struct incomplete_array
6845 int datasize;
6846 double data[];
6849 struct named_init {
6850 int number;
6851 const wchar_t *name;
6852 double average;
6855 typedef const char *ccp;
6857 static inline int
6858 test_restrict (ccp restrict text)
6860 // See if C++-style comments work.
6861 // Iterate through items via the restricted pointer.
6862 // Also check for declarations in for loops.
6863 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6864 continue;
6865 return 0;
6868 // Check varargs and va_copy.
6869 static void
6870 test_varargs (const char *format, ...)
6872 va_list args;
6873 va_start (args, format);
6874 va_list args_copy;
6875 va_copy (args_copy, args);
6877 const char *str;
6878 int number;
6879 float fnumber;
6881 while (*format)
6883 switch (*format++)
6885 case 's': // string
6886 str = va_arg (args_copy, const char *);
6887 break;
6888 case 'd': // int
6889 number = va_arg (args_copy, int);
6890 break;
6891 case 'f': // float
6892 fnumber = va_arg (args_copy, double);
6893 break;
6894 default:
6895 break;
6898 va_end (args_copy);
6899 va_end (args);
6903 main ()
6906 // Check bool.
6907 _Bool success = false;
6909 // Check restrict.
6910 if (test_restrict ("String literal") == 0)
6911 success = true;
6912 char *restrict newvar = "Another string";
6914 // Check varargs.
6915 test_varargs ("s, d' f .", "string", 65, 34.234);
6916 test_varargs_macros ();
6918 // Check flexible array members.
6919 struct incomplete_array *ia =
6920 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6921 ia->datasize = 10;
6922 for (int i = 0; i < ia->datasize; ++i)
6923 ia->data[i] = i * 1.234;
6925 // Check named initializers.
6926 struct named_init ni = {
6927 .number = 34,
6928 .name = L"Test wide string",
6929 .average = 543.34343,
6932 ni.number = 58;
6934 int dynamic_array[ni.number];
6935 dynamic_array[ni.number - 1] = 543;
6937 // work around unused variable warnings
6938 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6939 || dynamic_array[ni.number - 1] != 543);
6942 return 0;
6944 _ACEOF
6945 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
6947 CC="$ac_save_CC $ac_arg"
6948 if ac_fn_c_try_compile "$LINENO"; then :
6949 ac_cv_prog_cc_c99=$ac_arg
6951 rm -f core conftest.err conftest.$ac_objext
6952 test "x$ac_cv_prog_cc_c99" != "xno" && break
6953 done
6954 rm -f conftest.$ac_ext
6955 CC=$ac_save_CC
6958 # AC_CACHE_VAL
6959 case "x$ac_cv_prog_cc_c99" in
6961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6962 $as_echo "none needed" >&6; } ;;
6963 xno)
6964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6965 $as_echo "unsupported" >&6; } ;;
6967 CC="$CC $ac_cv_prog_cc_c99"
6968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
6969 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6970 esac
6971 if test "x$ac_cv_prog_cc_c99" != xno; then :
6972 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
6973 else
6974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6975 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6976 if test "${ac_cv_prog_cc_c89+set}" = set; then :
6977 $as_echo_n "(cached) " >&6
6978 else
6979 ac_cv_prog_cc_c89=no
6980 ac_save_CC=$CC
6981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6982 /* end confdefs.h. */
6983 #include <stdarg.h>
6984 #include <stdio.h>
6985 #include <sys/types.h>
6986 #include <sys/stat.h>
6987 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6988 struct buf { int x; };
6989 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6990 static char *e (p, i)
6991 char **p;
6992 int i;
6994 return p[i];
6996 static char *f (char * (*g) (char **, int), char **p, ...)
6998 char *s;
6999 va_list v;
7000 va_start (v,p);
7001 s = g (p, va_arg (v,int));
7002 va_end (v);
7003 return s;
7006 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
7007 function prototypes and stuff, but not '\xHH' hex character constants.
7008 These don't provoke an error unfortunately, instead are silently treated
7009 as 'x'. The following induces an error, until -std is added to get
7010 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
7011 array size at least. It's necessary to write '\x00'==0 to get something
7012 that's true only with -std. */
7013 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
7015 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
7016 inside strings and character constants. */
7017 #define FOO(x) 'x'
7018 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
7020 int test (int i, double x);
7021 struct s1 {int (*f) (int a);};
7022 struct s2 {int (*f) (double a);};
7023 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7024 int argc;
7025 char **argv;
7027 main ()
7029 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
7031 return 0;
7033 _ACEOF
7034 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
7035 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7037 CC="$ac_save_CC $ac_arg"
7038 if ac_fn_c_try_compile "$LINENO"; then :
7039 ac_cv_prog_cc_c89=$ac_arg
7041 rm -f core conftest.err conftest.$ac_objext
7042 test "x$ac_cv_prog_cc_c89" != "xno" && break
7043 done
7044 rm -f conftest.$ac_ext
7045 CC=$ac_save_CC
7048 # AC_CACHE_VAL
7049 case "x$ac_cv_prog_cc_c89" in
7051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7052 $as_echo "none needed" >&6; } ;;
7053 xno)
7054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7055 $as_echo "unsupported" >&6; } ;;
7057 CC="$CC $ac_cv_prog_cc_c89"
7058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
7059 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
7060 esac
7061 if test "x$ac_cv_prog_cc_c89" != xno; then :
7062 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
7063 else
7064 ac_cv_prog_cc_stdc=no
7069 esac
7070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
7071 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
7072 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
7073 $as_echo_n "(cached) " >&6
7076 case $ac_cv_prog_cc_stdc in #(
7077 no) :
7078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7079 $as_echo "unsupported" >&6; } ;; #(
7080 '') :
7081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7082 $as_echo "none needed" >&6; } ;; #(
7083 *) :
7084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
7085 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
7086 esac
7090 # Code from module alloca-opt:
7091 # Code from module allocator:
7092 # Code from module at-internal:
7093 # Code from module c-ctype:
7094 # Code from module c-strcase:
7095 # Code from module careadlinkat:
7096 # Code from module clock-time:
7097 # Code from module close-stream:
7098 # Code from module crypto/md5:
7099 # Code from module crypto/sha1:
7100 # Code from module crypto/sha256:
7101 # Code from module crypto/sha512:
7102 # Code from module dirent:
7103 # Code from module dosname:
7104 # Code from module dtoastr:
7105 # Code from module dtotimespec:
7106 # Code from module dup2:
7107 # Code from module environ:
7108 # Code from module euidaccess:
7109 # Code from module execinfo:
7110 # Code from module extensions:
7112 # Code from module extern-inline:
7113 # Code from module faccessat:
7114 # Code from module fcntl-h:
7115 # Code from module fdopendir:
7116 # Code from module filemode:
7117 # Code from module fpending:
7118 # Code from module fstatat:
7119 # Code from module getgroups:
7120 # Code from module getloadavg:
7121 # Code from module getopt-gnu:
7122 # Code from module getopt-posix:
7123 # Code from module gettext-h:
7124 # Code from module gettime:
7125 # Code from module gettimeofday:
7126 # Code from module group-member:
7127 # Code from module ignore-value:
7128 # Code from module include_next:
7129 # Code from module intprops:
7130 # Code from module inttypes-incomplete:
7131 # Code from module largefile:
7133 # Code from module lstat:
7134 # Code from module manywarnings:
7135 # Code from module mktime:
7136 # Code from module multiarch:
7137 # Code from module nocrash:
7138 # Code from module openat-h:
7139 # Code from module pathmax:
7140 # Code from module pselect:
7141 # Code from module pthread_sigmask:
7142 # Code from module putenv:
7143 # Code from module readlink:
7144 # Code from module readlinkat:
7145 # Code from module root-uid:
7146 # Code from module sig2str:
7147 # Code from module signal-h:
7148 # Code from module snippet/_Noreturn:
7149 # Code from module snippet/arg-nonnull:
7150 # Code from module snippet/c++defs:
7151 # Code from module snippet/warn-on-use:
7152 # Code from module socklen:
7153 # Code from module ssize_t:
7154 # Code from module stat:
7155 # Code from module stat-time:
7156 # Code from module stdalign:
7157 # Code from module stdarg:
7161 # Code from module stdbool:
7162 # Code from module stddef:
7163 # Code from module stdint:
7164 # Code from module stdio:
7165 # Code from module stdlib:
7166 # Code from module strftime:
7167 # Code from module strtoimax:
7168 # Code from module strtoll:
7169 # Code from module strtoull:
7170 # Code from module strtoumax:
7171 # Code from module symlink:
7172 # Code from module sys_select:
7173 # Code from module sys_stat:
7174 # Code from module sys_time:
7175 # Code from module time:
7176 # Code from module time_r:
7177 # Code from module timer-time:
7178 # Code from module timespec:
7179 # Code from module timespec-add:
7180 # Code from module timespec-sub:
7181 # Code from module u64:
7182 # Code from module unistd:
7183 # Code from module unsetenv:
7184 # Code from module utimens:
7185 # Code from module verify:
7186 # Code from module warnings:
7187 # Code from module xalloc-oversized:
7190 # It's helpful to have C macros available to GDB, so prefer -g3 to -g
7191 # if -g3 works and the user does not specify CFLAGS.
7192 # This test must follow gl_EARLY; otherwise AC_LINK_IFELSE complains.
7193 if test "$ac_test_CFLAGS" != set; then
7194 case $CFLAGS in
7195 '-g')
7196 emacs_g3_CFLAGS='-g3';;
7197 '-g -O2')
7198 emacs_g3_CFLAGS='-g3 -O2';;
7200 emacs_g3_CFLAGS='';;
7201 esac
7202 if test -n "$emacs_g3_CFLAGS"; then
7203 emacs_save_CFLAGS=$CFLAGS
7204 CFLAGS=$emacs_g3_CFLAGS
7205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts $emacs_g3_CFLAGS" >&5
7206 $as_echo_n "checking whether $CC accepts $emacs_g3_CFLAGS... " >&6; }
7207 if test "${emacs_cv_prog_cc_g3+set}" = set; then :
7208 $as_echo_n "(cached) " >&6
7209 else
7210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7211 /* end confdefs.h. */
7214 main ()
7218 return 0;
7220 _ACEOF
7221 if ac_fn_c_try_link "$LINENO"; then :
7222 emacs_cv_prog_cc_g3=yes
7223 else
7224 emacs_cv_prog_cc_g3=no
7226 rm -f core conftest.err conftest.$ac_objext \
7227 conftest$ac_exeext conftest.$ac_ext
7229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_prog_cc_g3" >&5
7230 $as_echo "$emacs_cv_prog_cc_g3" >&6; }
7231 if test $emacs_cv_prog_cc_g3 = yes; then
7232 CFLAGS=$emacs_g3_CFLAGS
7233 else
7234 CFLAGS=$emacs_save_CFLAGS
7239 # Check whether --enable-gcc-warnings was given.
7240 if test "${enable_gcc_warnings+set}" = set; then :
7241 enableval=$enable_gcc_warnings; case $enableval in
7242 yes|no) ;;
7243 *) as_fn_error "bad value $enableval for gcc-warnings option" "$LINENO" 5 ;;
7244 esac
7245 gl_gcc_warnings=$enableval
7246 else
7247 gl_gcc_warnings=no
7252 # Check whether --enable-link-time-optimization was given.
7253 if test "${enable_link_time_optimization+set}" = set; then :
7254 enableval=$enable_link_time_optimization; if test "${enableval}" != "no"; then
7255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether link-time optimization is supported" >&5
7256 $as_echo_n "checking whether link-time optimization is supported... " >&6; }
7257 ac_lto_supported=no
7258 if test x$GCC = xyes; then
7259 CPUS=`getconf _NPROCESSORS_ONLN 2>/dev/null`
7260 if test x$CPUS != x; then
7261 LTO="-flto=$CPUS"
7262 else
7263 LTO="-flto"
7265 old_CFLAGS=$CFLAGS
7266 CFLAGS="$CFLAGS $LTO"
7267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7268 /* end confdefs.h. */
7271 main ()
7275 return 0;
7277 _ACEOF
7278 if ac_fn_c_try_compile "$LINENO"; then :
7279 ac_lto_supported=yes
7280 else
7281 ac_lto_supported=no
7283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7284 CFLAGS="$old_CFLAGS"
7286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_lto_supported" >&5
7287 $as_echo "$ac_lto_supported" >&6; }
7288 if test "$ac_lto_supported" = "yes"; then
7289 CFLAGS="$CFLAGS $LTO"
7295 # gl_GCC_VERSION_IFELSE([major], [minor], [run-if-found], [run-if-not-found])
7296 # ------------------------------------------------
7297 # If $CPP is gcc-MAJOR.MINOR or newer, then run RUN-IF-FOUND.
7298 # Otherwise, run RUN-IF-NOT-FOUND.
7301 # When compiling with GCC, prefer -isystem to -I when including system
7302 # include files, to avoid generating useless diagnostics for the files.
7303 if test "$gl_gcc_warnings" != yes; then
7304 isystem='-I'
7305 else
7306 isystem='-isystem '
7308 # This, $nw, is the list of warnings we disable.
7311 case $with_x_toolkit in
7312 lucid | athena | motif)
7313 # Old toolkits mishandle 'const'.
7314 nw="$nw -Wwrite-strings"
7317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Werror" >&5
7318 $as_echo_n "checking whether C compiler handles -Werror... " >&6; }
7319 if test "${gl_cv_warn_c__Werror+set}" = set; then :
7320 $as_echo_n "(cached) " >&6
7321 else
7323 gl_save_compiler_FLAGS="$CFLAGS"
7324 as_fn_append CFLAGS " -Werror"
7325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7326 /* end confdefs.h. */
7329 main ()
7333 return 0;
7335 _ACEOF
7336 if ac_fn_c_try_compile "$LINENO"; then :
7337 gl_cv_warn_c__Werror=yes
7338 else
7339 gl_cv_warn_c__Werror=no
7341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7342 CFLAGS="$gl_save_compiler_FLAGS"
7345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Werror" >&5
7346 $as_echo "$gl_cv_warn_c__Werror" >&6; }
7347 if test "x$gl_cv_warn_c__Werror" = x""yes; then :
7348 as_fn_append WERROR_CFLAGS " -Werror"
7353 esac
7356 nw="$nw -Waggregate-return" # anachronistic
7357 nw="$nw -Wlong-long" # C90 is anachronistic
7358 nw="$nw -Wc++-compat" # We don't care about C++ compilers
7359 nw="$nw -Wundef" # Warns on '#if GNULIB_FOO' etc in gnulib
7360 nw="$nw -Wtraditional" # Warns on #elif which we use often
7361 nw="$nw -Wcast-qual" # Too many warnings for now
7362 nw="$nw -Wconversion" # Too many warnings for now
7363 nw="$nw -Wsystem-headers" # Don't let system headers trigger warnings
7364 nw="$nw -Wsign-conversion" # Too many warnings for now
7365 nw="$nw -Woverlength-strings" # Not a problem these days
7366 nw="$nw -Wtraditional-conversion" # Too many warnings for now
7367 nw="$nw -Wunreachable-code" # so buggy that it's now silently ignored
7368 nw="$nw -Wpadded" # Our structs are not padded
7369 nw="$nw -Wredundant-decls" # we regularly (re)declare functions
7370 nw="$nw -Wlogical-op" # any use of fwrite provokes this
7371 nw="$nw -Wformat-nonliteral" # we do this a lot
7372 nw="$nw -Wvla" # warnings in gettext.h
7373 nw="$nw -Wnested-externs" # use of XARGMATCH/verify_function__
7374 nw="$nw -Wswitch-enum" # Too many warnings for now
7375 nw="$nw -Wswitch-default" # Too many warnings for now
7376 nw="$nw -Wfloat-equal" # warns about high-quality code
7377 nw="$nw -Winline" # OK to ignore 'inline'
7378 nw="$nw -Wjump-misses-init" # We sometimes safely jump over init.
7379 nw="$nw -Wstrict-overflow" # OK to optimize assuming that
7380 # signed overflow has undefined behavior
7381 nw="$nw -Wsync-nand" # irrelevant here, and provokes ObjC warning
7382 nw="$nw -Wunsafe-loop-optimizations" # OK to suppress unsafe optimizations
7384 # Emacs doesn't care about shadowing; see
7385 # <http://lists.gnu.org/archive/html/emacs-diffs/2011-11/msg00265.html>.
7386 nw="$nw -Wshadow"
7388 # Emacs's use of alloca inhibits protecting the stack.
7389 nw="$nw -Wstack-protector"
7391 # The following line should be removable at some point.
7392 nw="$nw -Wsuggest-attribute=pure"
7396 if test -n "$GCC"; then
7398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is supported" >&5
7399 $as_echo_n "checking whether -Wno-missing-field-initializers is supported... " >&6; }
7400 if test "${gl_cv_cc_nomfi_supported+set}" = set; then :
7401 $as_echo_n "(cached) " >&6
7402 else
7404 gl_save_CFLAGS="$CFLAGS"
7405 CFLAGS="$CFLAGS -W -Werror -Wno-missing-field-initializers"
7406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7407 /* end confdefs.h. */
7410 main ()
7414 return 0;
7416 _ACEOF
7417 if ac_fn_c_try_compile "$LINENO"; then :
7418 gl_cv_cc_nomfi_supported=yes
7419 else
7420 gl_cv_cc_nomfi_supported=no
7422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7423 CFLAGS="$gl_save_CFLAGS"
7426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_supported" >&5
7427 $as_echo "$gl_cv_cc_nomfi_supported" >&6; }
7429 if test "$gl_cv_cc_nomfi_supported" = yes; then
7430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is needed" >&5
7431 $as_echo_n "checking whether -Wno-missing-field-initializers is needed... " >&6; }
7432 if test "${gl_cv_cc_nomfi_needed+set}" = set; then :
7433 $as_echo_n "(cached) " >&6
7434 else
7436 gl_save_CFLAGS="$CFLAGS"
7437 CFLAGS="$CFLAGS -W -Werror"
7438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7439 /* end confdefs.h. */
7440 void f (void)
7442 typedef struct { int a; int b; } s_t;
7443 s_t s1 = { 0, };
7447 main ()
7451 return 0;
7453 _ACEOF
7454 if ac_fn_c_try_compile "$LINENO"; then :
7455 gl_cv_cc_nomfi_needed=no
7456 else
7457 gl_cv_cc_nomfi_needed=yes
7459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7460 CFLAGS="$gl_save_CFLAGS"
7464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_needed" >&5
7465 $as_echo "$gl_cv_cc_nomfi_needed" >&6; }
7468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wuninitialized is supported" >&5
7469 $as_echo_n "checking whether -Wuninitialized is supported... " >&6; }
7470 if test "${gl_cv_cc_uninitialized_supported+set}" = set; then :
7471 $as_echo_n "(cached) " >&6
7472 else
7474 gl_save_CFLAGS="$CFLAGS"
7475 CFLAGS="$CFLAGS -Werror -Wuninitialized"
7476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7477 /* end confdefs.h. */
7480 main ()
7484 return 0;
7486 _ACEOF
7487 if ac_fn_c_try_compile "$LINENO"; then :
7488 gl_cv_cc_uninitialized_supported=yes
7489 else
7490 gl_cv_cc_uninitialized_supported=no
7492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7493 CFLAGS="$gl_save_CFLAGS"
7496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_uninitialized_supported" >&5
7497 $as_echo "$gl_cv_cc_uninitialized_supported" >&6; }
7501 # List all gcc warning categories.
7502 gl_manywarn_set=
7503 for gl_manywarn_item in \
7504 -W \
7505 -Wabi \
7506 -Waddress \
7507 -Wall \
7508 -Warray-bounds \
7509 -Wattributes \
7510 -Wbad-function-cast \
7511 -Wbuiltin-macro-redefined \
7512 -Wcast-align \
7513 -Wchar-subscripts \
7514 -Wclobbered \
7515 -Wcomment \
7516 -Wcomments \
7517 -Wcoverage-mismatch \
7518 -Wcpp \
7519 -Wdeprecated \
7520 -Wdeprecated-declarations \
7521 -Wdisabled-optimization \
7522 -Wdiv-by-zero \
7523 -Wdouble-promotion \
7524 -Wempty-body \
7525 -Wendif-labels \
7526 -Wenum-compare \
7527 -Wextra \
7528 -Wformat-contains-nul \
7529 -Wformat-extra-args \
7530 -Wformat-nonliteral \
7531 -Wformat-security \
7532 -Wformat-y2k \
7533 -Wformat-zero-length \
7534 -Wformat=2 \
7535 -Wfree-nonheap-object \
7536 -Wignored-qualifiers \
7537 -Wimplicit \
7538 -Wimplicit-function-declaration \
7539 -Wimplicit-int \
7540 -Winit-self \
7541 -Winline \
7542 -Wint-to-pointer-cast \
7543 -Winvalid-memory-model \
7544 -Winvalid-pch \
7545 -Wjump-misses-init \
7546 -Wlogical-op \
7547 -Wmain \
7548 -Wmaybe-uninitialized \
7549 -Wmissing-braces \
7550 -Wmissing-declarations \
7551 -Wmissing-field-initializers \
7552 -Wmissing-format-attribute \
7553 -Wmissing-include-dirs \
7554 -Wmissing-noreturn \
7555 -Wmissing-parameter-type \
7556 -Wmissing-prototypes \
7557 -Wmudflap \
7558 -Wmultichar \
7559 -Wnarrowing \
7560 -Wnested-externs \
7561 -Wnonnull \
7562 -Wnormalized=nfc \
7563 -Wold-style-declaration \
7564 -Wold-style-definition \
7565 -Woverflow \
7566 -Woverlength-strings \
7567 -Woverride-init \
7568 -Wpacked \
7569 -Wpacked-bitfield-compat \
7570 -Wparentheses \
7571 -Wpointer-arith \
7572 -Wpointer-sign \
7573 -Wpointer-to-int-cast \
7574 -Wpragmas \
7575 -Wreturn-type \
7576 -Wsequence-point \
7577 -Wshadow \
7578 -Wsizeof-pointer-memaccess \
7579 -Wstack-protector \
7580 -Wstrict-aliasing \
7581 -Wstrict-overflow \
7582 -Wstrict-prototypes \
7583 -Wsuggest-attribute=const \
7584 -Wsuggest-attribute=format \
7585 -Wsuggest-attribute=noreturn \
7586 -Wsuggest-attribute=pure \
7587 -Wswitch \
7588 -Wswitch-default \
7589 -Wsync-nand \
7590 -Wsystem-headers \
7591 -Wtrampolines \
7592 -Wtrigraphs \
7593 -Wtype-limits \
7594 -Wuninitialized \
7595 -Wunknown-pragmas \
7596 -Wunreachable-code \
7597 -Wunsafe-loop-optimizations \
7598 -Wunused \
7599 -Wunused-but-set-parameter \
7600 -Wunused-but-set-variable \
7601 -Wunused-function \
7602 -Wunused-label \
7603 -Wunused-local-typedefs \
7604 -Wunused-macros \
7605 -Wunused-parameter \
7606 -Wunused-result \
7607 -Wunused-value \
7608 -Wunused-variable \
7609 -Wvarargs \
7610 -Wvariadic-macros \
7611 -Wvector-operation-performance \
7612 -Wvla \
7613 -Wvolatile-register-var \
7614 -Wwrite-strings \
7616 ; do
7617 gl_manywarn_set="$gl_manywarn_set $gl_manywarn_item"
7618 done
7620 # Disable specific options as needed.
7621 if test "$gl_cv_cc_nomfi_needed" = yes; then
7622 gl_manywarn_set="$gl_manywarn_set -Wno-missing-field-initializers"
7625 if test "$gl_cv_cc_uninitialized_supported" = no; then
7626 gl_manywarn_set="$gl_manywarn_set -Wno-uninitialized"
7629 ws=$gl_manywarn_set
7632 gl_warn_set=
7633 set x $ws; shift
7634 for gl_warn_item
7636 case " $nw " in
7637 *" $gl_warn_item "*)
7640 gl_warn_set="$gl_warn_set $gl_warn_item"
7642 esac
7643 done
7644 ws=$gl_warn_set
7646 for w in $ws; do
7647 as_gl_Warn=`$as_echo "gl_cv_warn_c_$w" | $as_tr_sh`
7648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles $w" >&5
7649 $as_echo_n "checking whether C compiler handles $w... " >&6; }
7650 if { as_var=$as_gl_Warn; eval "test \"\${$as_var+set}\" = set"; }; then :
7651 $as_echo_n "(cached) " >&6
7652 else
7654 gl_save_compiler_FLAGS="$CFLAGS"
7655 as_fn_append CFLAGS " $w"
7656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7657 /* end confdefs.h. */
7660 main ()
7664 return 0;
7666 _ACEOF
7667 if ac_fn_c_try_compile "$LINENO"; then :
7668 eval "$as_gl_Warn=yes"
7669 else
7670 eval "$as_gl_Warn=no"
7672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7673 CFLAGS="$gl_save_compiler_FLAGS"
7676 eval ac_res=\$$as_gl_Warn
7677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7678 $as_echo "$ac_res" >&6; }
7679 eval as_val=\$$as_gl_Warn
7680 if test "x$as_val" = x""yes; then :
7681 as_fn_append WARN_CFLAGS " $w"
7685 done
7686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-missing-field-initializers" >&5
7687 $as_echo_n "checking whether C compiler handles -Wno-missing-field-initializers... " >&6; }
7688 if test "${gl_cv_warn_c__Wno_missing_field_initializers+set}" = set; then :
7689 $as_echo_n "(cached) " >&6
7690 else
7692 gl_save_compiler_FLAGS="$CFLAGS"
7693 as_fn_append CFLAGS " -Wno-missing-field-initializers"
7694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7695 /* end confdefs.h. */
7698 main ()
7702 return 0;
7704 _ACEOF
7705 if ac_fn_c_try_compile "$LINENO"; then :
7706 gl_cv_warn_c__Wno_missing_field_initializers=yes
7707 else
7708 gl_cv_warn_c__Wno_missing_field_initializers=no
7710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7711 CFLAGS="$gl_save_compiler_FLAGS"
7714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_missing_field_initializers" >&5
7715 $as_echo "$gl_cv_warn_c__Wno_missing_field_initializers" >&6; }
7716 if test "x$gl_cv_warn_c__Wno_missing_field_initializers" = x""yes; then :
7717 as_fn_append WARN_CFLAGS " -Wno-missing-field-initializers"
7720 # We need this one
7721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-sign-compare" >&5
7722 $as_echo_n "checking whether C compiler handles -Wno-sign-compare... " >&6; }
7723 if test "${gl_cv_warn_c__Wno_sign_compare+set}" = set; then :
7724 $as_echo_n "(cached) " >&6
7725 else
7727 gl_save_compiler_FLAGS="$CFLAGS"
7728 as_fn_append CFLAGS " -Wno-sign-compare"
7729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7730 /* end confdefs.h. */
7733 main ()
7737 return 0;
7739 _ACEOF
7740 if ac_fn_c_try_compile "$LINENO"; then :
7741 gl_cv_warn_c__Wno_sign_compare=yes
7742 else
7743 gl_cv_warn_c__Wno_sign_compare=no
7745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7746 CFLAGS="$gl_save_compiler_FLAGS"
7749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_sign_compare" >&5
7750 $as_echo "$gl_cv_warn_c__Wno_sign_compare" >&6; }
7751 if test "x$gl_cv_warn_c__Wno_sign_compare" = x""yes; then :
7752 as_fn_append WARN_CFLAGS " -Wno-sign-compare"
7755 # Too many warnings for now
7756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-type-limits" >&5
7757 $as_echo_n "checking whether C compiler handles -Wno-type-limits... " >&6; }
7758 if test "${gl_cv_warn_c__Wno_type_limits+set}" = set; then :
7759 $as_echo_n "(cached) " >&6
7760 else
7762 gl_save_compiler_FLAGS="$CFLAGS"
7763 as_fn_append CFLAGS " -Wno-type-limits"
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_compile "$LINENO"; then :
7776 gl_cv_warn_c__Wno_type_limits=yes
7777 else
7778 gl_cv_warn_c__Wno_type_limits=no
7780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7781 CFLAGS="$gl_save_compiler_FLAGS"
7784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_type_limits" >&5
7785 $as_echo "$gl_cv_warn_c__Wno_type_limits" >&6; }
7786 if test "x$gl_cv_warn_c__Wno_type_limits" = x""yes; then :
7787 as_fn_append WARN_CFLAGS " -Wno-type-limits"
7790 # Too many warnings for now
7791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-switch" >&5
7792 $as_echo_n "checking whether C compiler handles -Wno-switch... " >&6; }
7793 if test "${gl_cv_warn_c__Wno_switch+set}" = set; then :
7794 $as_echo_n "(cached) " >&6
7795 else
7797 gl_save_compiler_FLAGS="$CFLAGS"
7798 as_fn_append CFLAGS " -Wno-switch"
7799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7800 /* end confdefs.h. */
7803 main ()
7807 return 0;
7809 _ACEOF
7810 if ac_fn_c_try_compile "$LINENO"; then :
7811 gl_cv_warn_c__Wno_switch=yes
7812 else
7813 gl_cv_warn_c__Wno_switch=no
7815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7816 CFLAGS="$gl_save_compiler_FLAGS"
7819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_switch" >&5
7820 $as_echo "$gl_cv_warn_c__Wno_switch" >&6; }
7821 if test "x$gl_cv_warn_c__Wno_switch" = x""yes; then :
7822 as_fn_append WARN_CFLAGS " -Wno-switch"
7825 # Too many warnings for now
7826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-unused-parameter" >&5
7827 $as_echo_n "checking whether C compiler handles -Wno-unused-parameter... " >&6; }
7828 if test "${gl_cv_warn_c__Wno_unused_parameter+set}" = set; then :
7829 $as_echo_n "(cached) " >&6
7830 else
7832 gl_save_compiler_FLAGS="$CFLAGS"
7833 as_fn_append CFLAGS " -Wno-unused-parameter"
7834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7835 /* end confdefs.h. */
7838 main ()
7842 return 0;
7844 _ACEOF
7845 if ac_fn_c_try_compile "$LINENO"; then :
7846 gl_cv_warn_c__Wno_unused_parameter=yes
7847 else
7848 gl_cv_warn_c__Wno_unused_parameter=no
7850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7851 CFLAGS="$gl_save_compiler_FLAGS"
7854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_unused_parameter" >&5
7855 $as_echo "$gl_cv_warn_c__Wno_unused_parameter" >&6; }
7856 if test "x$gl_cv_warn_c__Wno_unused_parameter" = x""yes; then :
7857 as_fn_append WARN_CFLAGS " -Wno-unused-parameter"
7860 # Too many warnings for now
7861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-format-nonliteral" >&5
7862 $as_echo_n "checking whether C compiler handles -Wno-format-nonliteral... " >&6; }
7863 if test "${gl_cv_warn_c__Wno_format_nonliteral+set}" = set; then :
7864 $as_echo_n "(cached) " >&6
7865 else
7867 gl_save_compiler_FLAGS="$CFLAGS"
7868 as_fn_append CFLAGS " -Wno-format-nonliteral"
7869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7870 /* end confdefs.h. */
7873 main ()
7877 return 0;
7879 _ACEOF
7880 if ac_fn_c_try_compile "$LINENO"; then :
7881 gl_cv_warn_c__Wno_format_nonliteral=yes
7882 else
7883 gl_cv_warn_c__Wno_format_nonliteral=no
7885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7886 CFLAGS="$gl_save_compiler_FLAGS"
7889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_format_nonliteral" >&5
7890 $as_echo "$gl_cv_warn_c__Wno_format_nonliteral" >&6; }
7891 if test "x$gl_cv_warn_c__Wno_format_nonliteral" = x""yes; then :
7892 as_fn_append WARN_CFLAGS " -Wno-format-nonliteral"
7897 # In spite of excluding -Wlogical-op above, it is enabled, as of
7898 # gcc 4.5.0 20090517.
7899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-logical-op" >&5
7900 $as_echo_n "checking whether C compiler handles -Wno-logical-op... " >&6; }
7901 if test "${gl_cv_warn_c__Wno_logical_op+set}" = set; then :
7902 $as_echo_n "(cached) " >&6
7903 else
7905 gl_save_compiler_FLAGS="$CFLAGS"
7906 as_fn_append CFLAGS " -Wno-logical-op"
7907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7908 /* end confdefs.h. */
7911 main ()
7915 return 0;
7917 _ACEOF
7918 if ac_fn_c_try_compile "$LINENO"; then :
7919 gl_cv_warn_c__Wno_logical_op=yes
7920 else
7921 gl_cv_warn_c__Wno_logical_op=no
7923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7924 CFLAGS="$gl_save_compiler_FLAGS"
7927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_logical_op" >&5
7928 $as_echo "$gl_cv_warn_c__Wno_logical_op" >&6; }
7929 if test "x$gl_cv_warn_c__Wno_logical_op" = x""yes; then :
7930 as_fn_append WARN_CFLAGS " -Wno-logical-op"
7935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -fdiagnostics-show-option" >&5
7936 $as_echo_n "checking whether C compiler handles -fdiagnostics-show-option... " >&6; }
7937 if test "${gl_cv_warn_c__fdiagnostics_show_option+set}" = set; then :
7938 $as_echo_n "(cached) " >&6
7939 else
7941 gl_save_compiler_FLAGS="$CFLAGS"
7942 as_fn_append CFLAGS " -fdiagnostics-show-option"
7943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7944 /* end confdefs.h. */
7947 main ()
7951 return 0;
7953 _ACEOF
7954 if ac_fn_c_try_compile "$LINENO"; then :
7955 gl_cv_warn_c__fdiagnostics_show_option=yes
7956 else
7957 gl_cv_warn_c__fdiagnostics_show_option=no
7959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7960 CFLAGS="$gl_save_compiler_FLAGS"
7963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__fdiagnostics_show_option" >&5
7964 $as_echo "$gl_cv_warn_c__fdiagnostics_show_option" >&6; }
7965 if test "x$gl_cv_warn_c__fdiagnostics_show_option" = x""yes; then :
7966 as_fn_append WARN_CFLAGS " -fdiagnostics-show-option"
7970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -funit-at-a-time" >&5
7971 $as_echo_n "checking whether C compiler handles -funit-at-a-time... " >&6; }
7972 if test "${gl_cv_warn_c__funit_at_a_time+set}" = set; then :
7973 $as_echo_n "(cached) " >&6
7974 else
7976 gl_save_compiler_FLAGS="$CFLAGS"
7977 as_fn_append CFLAGS " -funit-at-a-time"
7978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7979 /* end confdefs.h. */
7982 main ()
7986 return 0;
7988 _ACEOF
7989 if ac_fn_c_try_compile "$LINENO"; then :
7990 gl_cv_warn_c__funit_at_a_time=yes
7991 else
7992 gl_cv_warn_c__funit_at_a_time=no
7994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7995 CFLAGS="$gl_save_compiler_FLAGS"
7998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__funit_at_a_time" >&5
7999 $as_echo "$gl_cv_warn_c__funit_at_a_time" >&6; }
8000 if test "x$gl_cv_warn_c__funit_at_a_time" = x""yes; then :
8001 as_fn_append WARN_CFLAGS " -funit-at-a-time"
8007 $as_echo "#define lint 1" >>confdefs.h
8011 $as_echo "#define GNULIB_PORTCHECK 1" >>confdefs.h
8014 # We use a slightly smaller set of warning options for lib/.
8015 # Remove the following and save the result in GNULIB_WARN_CFLAGS.
8017 nw="$nw -Wunused-macros"
8020 gl_warn_set=
8021 set x $WARN_CFLAGS; shift
8022 for gl_warn_item
8024 case " $nw " in
8025 *" $gl_warn_item "*)
8028 gl_warn_set="$gl_warn_set $gl_warn_item"
8030 esac
8031 done
8032 GNULIB_WARN_CFLAGS=$gl_warn_set
8039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8040 $as_echo_n "checking whether ln -s works... " >&6; }
8041 LN_S=$as_ln_s
8042 if test "$LN_S" = "ln -s"; then
8043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8044 $as_echo "yes" >&6; }
8045 else
8046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
8047 $as_echo "no, using $LN_S" >&6; }
8051 # Extract the first word of "install-info", so it can be a program name with args.
8052 set dummy install-info; ac_word=$2
8053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8054 $as_echo_n "checking for $ac_word... " >&6; }
8055 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
8056 $as_echo_n "(cached) " >&6
8057 else
8058 case $INSTALL_INFO in
8059 [\\/]* | ?:[\\/]*)
8060 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
8063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8064 for as_dir in $PATH$PATH_SEPARATOR/usr/sbin$PATH_SEPARATOR/sbin
8066 IFS=$as_save_IFS
8067 test -z "$as_dir" && as_dir=.
8068 for ac_exec_ext in '' $ac_executable_extensions; do
8069 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8070 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
8071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8072 break 2
8074 done
8075 done
8076 IFS=$as_save_IFS
8078 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
8080 esac
8082 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
8083 if test -n "$INSTALL_INFO"; then
8084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
8085 $as_echo "$INSTALL_INFO" >&6; }
8086 else
8087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8088 $as_echo "no" >&6; }
8092 # Extract the first word of "gzip", so it can be a program name with args.
8093 set dummy gzip; ac_word=$2
8094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8095 $as_echo_n "checking for $ac_word... " >&6; }
8096 if test "${ac_cv_path_GZIP_PROG+set}" = set; then :
8097 $as_echo_n "(cached) " >&6
8098 else
8099 case $GZIP_PROG in
8100 [\\/]* | ?:[\\/]*)
8101 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
8104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8105 for as_dir in $PATH
8107 IFS=$as_save_IFS
8108 test -z "$as_dir" && as_dir=.
8109 for ac_exec_ext in '' $ac_executable_extensions; do
8110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8111 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
8112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8113 break 2
8115 done
8116 done
8117 IFS=$as_save_IFS
8120 esac
8122 GZIP_PROG=$ac_cv_path_GZIP_PROG
8123 if test -n "$GZIP_PROG"; then
8124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
8125 $as_echo "$GZIP_PROG" >&6; }
8126 else
8127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8128 $as_echo "no" >&6; }
8133 if test $opsys = gnu-linux; then
8134 # Extract the first word of "paxctl", so it can be a program name with args.
8135 set dummy paxctl; ac_word=$2
8136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8137 $as_echo_n "checking for $ac_word... " >&6; }
8138 if test "${ac_cv_path_PAXCTL+set}" = set; then :
8139 $as_echo_n "(cached) " >&6
8140 else
8141 case $PAXCTL in
8142 [\\/]* | ?:[\\/]*)
8143 ac_cv_path_PAXCTL="$PAXCTL" # Let the user override the test with a path.
8146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8147 for as_dir in $PATH$PATH_SEPARATOR/sbin$PATH_SEPARATOR/usr/sbin
8149 IFS=$as_save_IFS
8150 test -z "$as_dir" && as_dir=.
8151 for ac_exec_ext in '' $ac_executable_extensions; do
8152 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8153 ac_cv_path_PAXCTL="$as_dir/$ac_word$ac_exec_ext"
8154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8155 break 2
8157 done
8158 done
8159 IFS=$as_save_IFS
8162 esac
8164 PAXCTL=$ac_cv_path_PAXCTL
8165 if test -n "$PAXCTL"; then
8166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PAXCTL" >&5
8167 $as_echo "$PAXCTL" >&6; }
8168 else
8169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8170 $as_echo "no" >&6; }
8174 if test "X$PAXCTL" != X; then
8175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether binaries have a PT_PAX_FLAGS header" >&5
8176 $as_echo_n "checking whether binaries have a PT_PAX_FLAGS header... " >&6; }
8177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8178 /* end confdefs.h. */
8181 main ()
8185 return 0;
8187 _ACEOF
8188 if ac_fn_c_try_link "$LINENO"; then :
8189 if $PAXCTL -v conftest$EXEEXT >/dev/null 2>&1; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8190 $as_echo "yes" >&6; }
8191 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8192 $as_echo "no" >&6; }; PAXCTL=""; fi
8194 rm -f core conftest.err conftest.$ac_objext \
8195 conftest$ac_exeext conftest.$ac_ext
8199 ## Need makeinfo >= 4.7 (?) to build the manuals.
8200 # Extract the first word of "makeinfo", so it can be a program name with args.
8201 set dummy makeinfo; ac_word=$2
8202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8203 $as_echo_n "checking for $ac_word... " >&6; }
8204 if test "${ac_cv_path_MAKEINFO+set}" = set; then :
8205 $as_echo_n "(cached) " >&6
8206 else
8207 case $MAKEINFO in
8208 [\\/]* | ?:[\\/]*)
8209 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
8212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8213 for as_dir in $PATH
8215 IFS=$as_save_IFS
8216 test -z "$as_dir" && as_dir=.
8217 for ac_exec_ext in '' $ac_executable_extensions; do
8218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8219 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
8220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8221 break 2
8223 done
8224 done
8225 IFS=$as_save_IFS
8227 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
8229 esac
8231 MAKEINFO=$ac_cv_path_MAKEINFO
8232 if test -n "$MAKEINFO"; then
8233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8234 $as_echo "$MAKEINFO" >&6; }
8235 else
8236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8237 $as_echo "no" >&6; }
8241 if test "$MAKEINFO" != "no"; then
8242 case `
8243 $MAKEINFO --version 2> /dev/null |
8244 $EGREP 'texinfo[^0-9]*([1-4][0-9]+|[5-9]|4\.[7-9]|4\.[1-6][0-9]+)'
8245 ` in
8246 '') MAKEINFO=no;;
8247 esac
8250 ## Makeinfo is unusual. For a released Emacs, the manuals are
8251 ## pre-built, and not deleted by the normal clean rules. makeinfo is
8252 ## therefore in the category of "special tools" not normally required, which
8253 ## configure does not have to check for (eg autoconf itself).
8254 ## In a Bazaar checkout on the other hand, the manuals are not included.
8255 ## So makeinfo is a requirement to build from Bazaar, and configure
8256 ## should test for it as it does for any other build requirement.
8257 ## We use the presence of $srcdir/info/emacs to distinguish a release,
8258 ## with pre-built manuals, from a Bazaar checkout.
8259 HAVE_MAKEINFO=yes
8261 if test "$MAKEINFO" = "no"; then
8262 MAKEINFO=makeinfo
8263 if test "x${with_makeinfo}" = "xno"; then
8264 HAVE_MAKEINFO=no
8265 elif test ! -e "$srcdir/info/emacs" && test ! -e "$srcdir/info/emacs.info"; then
8266 as_fn_error "You do not seem to have makeinfo >= 4.7, and your
8267 source tree does not seem to have pre-built manuals in the \`info' directory.
8268 Either install a suitable version of makeinfo, or re-run configure
8269 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
8274 INFO_EXT=.info
8275 INFO_OPTS=--no-split
8280 if test x$GCC = xyes; then
8281 test "x$GCC_LINK_TEST_OPTIONS" != x && \
8282 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
8283 else
8284 test "x$NON_GCC_LINK_TEST_OPTIONS" != x && \
8285 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
8289 late_LDFLAGS=$LDFLAGS
8290 if test x$GCC = xyes; then
8291 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
8292 else
8293 LDFLAGS="$LDFLAGS -znocombreloc"
8296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
8297 $as_echo_n "checking for -znocombreloc... " >&6; }
8298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8299 /* end confdefs.h. */
8302 main ()
8306 return 0;
8308 _ACEOF
8309 if ac_fn_c_try_link "$LINENO"; then :
8310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8311 $as_echo "yes" >&6; }
8312 else
8313 LDFLAGS=$late_LDFLAGS
8314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8315 $as_echo "no" >&6; }
8317 rm -f core conftest.err conftest.$ac_objext \
8318 conftest$ac_exeext conftest.$ac_ext
8321 test "x$CANNOT_DUMP" = "x" && CANNOT_DUMP=no
8322 case "$opsys" in
8323 your-opsys-here) CANNOT_DUMP=yes ;;
8324 esac
8326 test "$CANNOT_DUMP" = "yes" && \
8328 $as_echo "#define CANNOT_DUMP 1" >>confdefs.h
8334 UNEXEC_OBJ=unexelf.o
8335 case "$opsys" in
8336 # MSDOS uses unexcoff.o
8337 # MSWindows uses unexw32.o
8338 aix4-2)
8339 UNEXEC_OBJ=unexaix.o
8341 cygwin)
8342 UNEXEC_OBJ=unexcw.o
8344 darwin)
8345 UNEXEC_OBJ=unexmacosx.o
8347 hpux10-20 | hpux11)
8348 UNEXEC_OBJ=unexhp9k800.o
8350 sol2-10)
8351 # Use the Solaris dldump() function, called from unexsol.c, to dump
8352 # emacs, instead of the generic ELF dump code found in unexelf.c.
8353 # The resulting binary has a complete symbol table, and is better
8354 # for debugging and other observability tools (debuggers, pstack, etc).
8356 # If you encounter a problem using dldump(), please consider sending
8357 # a message to the OpenSolaris tools-linking mailing list:
8358 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
8360 # It is likely that dldump() works with older Solaris too, but this has
8361 # not been tested, so for now this change is for Solaris 10 or newer.
8362 UNEXEC_OBJ=unexsol.o
8364 esac
8366 LD_SWITCH_SYSTEM=
8367 case "$opsys" in
8368 freebsd)
8369 ## Let `ld' find image libs and similar things in /usr/local/lib.
8370 ## The system compiler, GCC, has apparently been modified to not
8371 ## look there, contrary to what a stock GCC would do.
8372 ### It's not our place to do this. See bug#10313#17.
8373 ### LD_SWITCH_SYSTEM=-L/usr/local/lib
8377 gnu-linux)
8378 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
8379 case $host_cpu in mips*) LD_SWITCH_SYSTEM="-G 0";; esac
8382 netbsd)
8383 ### It's not our place to do this. See bug#10313#17.
8384 ### LD_SWITCH_SYSTEM="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
8388 openbsd)
8389 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
8390 ## otherwise Emacs dumps core on elf systems.
8391 LD_SWITCH_SYSTEM="-Z"
8393 esac
8396 ac_link="$ac_link $LD_SWITCH_SYSTEM"
8398 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_RPATH,
8399 ## which has not been defined yet. When this was handled with cpp,
8400 ## it was expanded to null when configure sourced the s/*.h file.
8401 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
8402 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
8403 ## (or somesuch), but because it is supposed to go at the _front_
8404 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
8405 ## Compare with the gnu-linux case below, which added to the end
8406 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
8407 ## LD_SWITCH_SYSTEM_TEMACS.
8408 case "$opsys" in
8409 netbsd|openbsd)
8410 LD_SWITCH_SYSTEM="\$(LD_SWITCH_X_SITE_RPATH) $LD_SWITCH_SYSTEM" ;;
8411 esac
8414 C_SWITCH_MACHINE=
8415 case $canonical in
8416 alpha*)
8417 ac_fn_c_check_decl "$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
8418 if test "x$ac_cv_have_decl___ELF__" = x""yes; then :
8422 if test "$ac_cv_have_decl___ELF__" = "yes"; then
8423 ## With ELF, make sure that all common symbols get allocated to in the
8424 ## data section. Otherwise, the dump of temacs may miss variables in
8425 ## the shared library that have been initialized. For example, with
8426 ## GNU libc, __malloc_initialized would normally be resolved to the
8427 ## shared library's .bss section, which is fatal.
8428 if test "x$GCC" = "xyes"; then
8429 C_SWITCH_MACHINE="-fno-common"
8430 else
8431 as_fn_error "What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
8433 else
8434 UNEXEC_OBJ=unexalpha.o
8437 esac
8442 C_SWITCH_SYSTEM=
8443 ## Some programs in src produce warnings saying certain subprograms
8444 ## are too complex and need a MAXMEM value greater than 2000 for
8445 ## additional optimization. --nils@exp-math.uni-essen.de
8446 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
8447 C_SWITCH_SYSTEM="-ma -qmaxmem=4000"
8448 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
8449 ## It is redundant in glibc2, since we define _GNU_SOURCE.
8453 LIBS_SYSTEM=
8454 case "$opsys" in
8455 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
8456 aix4-2) LIBS_SYSTEM="-lrts -lIM -liconv" ;;
8458 freebsd) LIBS_SYSTEM="-lutil" ;;
8460 hpux*) LIBS_SYSTEM="-l:libdld.sl" ;;
8462 sol2*) LIBS_SYSTEM="-lsocket -lnsl" ;;
8464 ## Motif needs -lgen.
8465 unixware) LIBS_SYSTEM="-lsocket -lnsl -lelf -lgen" ;;
8466 esac
8470 ### Make sure subsequent tests use flags consistent with the build flags.
8472 if test x"${OVERRIDE_CPPFLAGS}" != x; then
8473 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
8474 else
8475 CPPFLAGS="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
8478 # Suppress obsolescent Autoconf test for size_t; Emacs assumes C89 or better.
8480 # Likewise for obsolescent test for uid_t, gid_t; Emacs assumes them.
8484 LIB_MATH=-lm
8485 LIB_STANDARD=
8486 START_FILES=
8487 SYSTEM_TYPE=`echo $opsys | sed -e 's/[0-9].*//' -e 's|-|/|'`
8489 case $opsys in
8490 cygwin )
8491 LIB_MATH=
8492 START_FILES='pre-crt0.o'
8494 darwin )
8495 ## Adding -lm confuses the dynamic linker, so omit it.
8496 LIB_MATH=
8497 START_FILES='pre-crt0.o'
8499 freebsd )
8500 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
8501 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
8502 SYSTEM_TYPE=berkeley-unix
8504 gnu-linux | gnu-kfreebsd )
8505 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
8506 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
8508 hpux10-20 | hpux11 )
8509 LIB_STANDARD=-lc
8510 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o'
8512 netbsd | openbsd )
8513 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
8514 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
8515 SYSTEM_TYPE=berkeley-unix
8518 sol2* | unixware )
8519 SYSTEM_TYPE=usg-unix-v
8522 esac
8527 cat >>confdefs.h <<_ACEOF
8528 #define SYSTEM_TYPE "$SYSTEM_TYPE"
8529 _ACEOF
8532 crt_files=
8534 for file in x $LIB_STANDARD $START_FILES; do
8535 case "$file" in
8536 *CRT_DIR*) crt_files="$crt_files `echo $file | sed -e 's|.*/||'`" ;;
8537 esac
8538 done
8540 if test "x$crt_files" != x; then
8542 ## If user specified a crt-dir, use that unconditionally.
8543 crt_gcc=no
8545 if test "X$CRT_DIR" = "X"; then
8547 CRT_DIR=/usr/lib # default
8549 case "$canonical" in
8550 x86_64-*-linux-gnu* | s390x-*-linux-gnu*)
8551 ## On x86-64 and s390x GNU/Linux distributions, the standard library
8552 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
8553 ## For anything else (eg /usr/lib32), it is up the user to specify
8554 ## the location (bug#5655).
8555 ## Test for crtn.o, not just the directory, because sometimes the
8556 ## directory exists but does not have the relevant files (bug#1287).
8557 ## FIXME better to test for binary compatibility somehow.
8558 test -e /usr/lib64/crtn.o && CRT_DIR=/usr/lib64
8561 powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*) CRT_DIR=/usr/lib64 ;;
8562 esac
8564 case "$opsys" in
8565 hpux10-20) CRT_DIR=/lib ;;
8566 esac
8568 test "x${GCC}" = xyes && crt_gcc=yes
8570 fi # CRT_DIR = ""
8572 crt_missing=
8574 for file in $crt_files; do
8576 ## If we're using gcc, try to determine it automatically by asking
8577 ## gcc. [If this doesn't work, CRT_DIR will remain at the
8578 ## system-dependent default from above.]
8579 if test $crt_gcc = yes && test ! -e $CRT_DIR/$file; then
8581 crt_file=`$CC --print-file-name=$file 2>/dev/null`
8582 case "$crt_file" in
8583 */*)
8584 CRT_DIR=`$as_dirname -- "$crt_file" ||
8585 $as_expr X"$crt_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8586 X"$crt_file" : 'X\(//\)[^/]' \| \
8587 X"$crt_file" : 'X\(//\)$' \| \
8588 X"$crt_file" : 'X\(/\)' \| . 2>/dev/null ||
8589 $as_echo X"$crt_file" |
8590 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8591 s//\1/
8594 /^X\(\/\/\)[^/].*/{
8595 s//\1/
8598 /^X\(\/\/\)$/{
8599 s//\1/
8602 /^X\(\/\).*/{
8603 s//\1/
8606 s/.*/./; q'`
8608 esac
8611 crt_gcc=no
8613 test -e $CRT_DIR/$file || crt_missing="$crt_missing $file"
8614 done # $crt_files
8616 test "x$crt_missing" = x || \
8617 as_fn_error "Required file(s) not found:$crt_missing
8618 Try using the --with-crt-dir option." "$LINENO" 5
8620 fi # crt_files != ""
8624 case $opsys in
8625 netbsd | openbsd )
8626 if test -f $CRT_DIR/crti.o; then
8628 test -f $CRT_DIR/crtn.o || \
8629 as_fn_error "Required file not found: crtn.o" "$LINENO" 5
8631 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
8632 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
8635 esac
8638 pre_PKG_CONFIG_CFLAGS=$CFLAGS
8639 pre_PKG_CONFIG_LIBS=$LIBS
8641 # Extract the first word of "pkg-config", so it can be a program name with args.
8642 set dummy pkg-config; ac_word=$2
8643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8644 $as_echo_n "checking for $ac_word... " >&6; }
8645 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8646 $as_echo_n "(cached) " >&6
8647 else
8648 case $PKG_CONFIG in
8649 [\\/]* | ?:[\\/]*)
8650 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8654 for as_dir in $PATH
8656 IFS=$as_save_IFS
8657 test -z "$as_dir" && as_dir=.
8658 for ac_exec_ext in '' $ac_executable_extensions; do
8659 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8660 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8662 break 2
8664 done
8665 done
8666 IFS=$as_save_IFS
8668 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8670 esac
8672 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8673 if test -n "$PKG_CONFIG"; then
8674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8675 $as_echo "$PKG_CONFIG" >&6; }
8676 else
8677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8678 $as_echo "no" >&6; }
8686 if test "${with_sound}" != "no"; then
8687 # Sound support for GNU/Linux and the free BSDs.
8688 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
8689 do :
8690 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8691 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8692 eval as_val=\$$as_ac_Header
8693 if test "x$as_val" = x""yes; then :
8694 cat >>confdefs.h <<_ACEOF
8695 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8696 _ACEOF
8697 have_sound_header=yes
8700 done
8702 # Emulation library used on NetBSD.
8703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
8704 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
8705 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
8706 $as_echo_n "(cached) " >&6
8707 else
8708 ac_check_lib_save_LIBS=$LIBS
8709 LIBS="-lossaudio $LIBS"
8710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8711 /* end confdefs.h. */
8713 /* Override any GCC internal prototype to avoid an error.
8714 Use char because int might match the return type of a GCC
8715 builtin and then its argument prototype would still apply. */
8716 #ifdef __cplusplus
8717 extern "C"
8718 #endif
8719 char _oss_ioctl ();
8721 main ()
8723 return _oss_ioctl ();
8725 return 0;
8727 _ACEOF
8728 if ac_fn_c_try_link "$LINENO"; then :
8729 ac_cv_lib_ossaudio__oss_ioctl=yes
8730 else
8731 ac_cv_lib_ossaudio__oss_ioctl=no
8733 rm -f core conftest.err conftest.$ac_objext \
8734 conftest$ac_exeext conftest.$ac_ext
8735 LIBS=$ac_check_lib_save_LIBS
8737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
8738 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
8739 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x""yes; then :
8740 LIBSOUND=-lossaudio
8741 else
8742 LIBSOUND=
8747 ALSA_REQUIRED=1.0.0
8748 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
8750 succeeded=no
8752 if test "$PKG_CONFIG" = "no" ; then
8753 HAVE_ALSA=no
8754 else
8755 PKG_CONFIG_MIN_VERSION=0.9.0
8756 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
8758 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
8760 if "$PKG_CONFIG" --exists "$ALSA_MODULES" 2>&5 &&
8761 ALSA_CFLAGS=`"$PKG_CONFIG" --cflags "$ALSA_MODULES" 2>&5` &&
8762 ALSA_LIBS=`"$PKG_CONFIG" --libs "$ALSA_MODULES" 2>&5`; then
8763 edit_cflags="
8764 s,///*,/,g
8765 s/^/ /
8766 s/ -I/ $isystem/g
8767 s/^ //
8769 ALSA_CFLAGS=`$as_echo "$ALSA_CFLAGS" | sed -e "$edit_cflags"`
8770 ALSA_LIBS=`$as_echo "$ALSA_LIBS" | sed -e 's,///*,/,g'`
8771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$ALSA_CFLAGS' LIBS='$ALSA_LIBS'" >&5
8772 $as_echo "yes CFLAGS='$ALSA_CFLAGS' LIBS='$ALSA_LIBS'" >&6; }
8773 succeeded=yes
8774 else
8775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8776 $as_echo "no" >&6; }
8777 ALSA_CFLAGS=""
8778 ALSA_LIBS=""
8779 ## If we have a custom action on failure, don't print errors, but
8780 ## do set a variable so people can do so. Do it in a subshell
8781 ## to capture any diagnostics in invoking pkg-config.
8782 ALSA_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "$ALSA_MODULES") 2>&1`
8788 else
8789 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8790 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8794 if test $succeeded = yes; then
8795 HAVE_ALSA=yes
8796 else
8797 HAVE_ALSA=no
8800 if test $HAVE_ALSA = yes; then
8801 SAVE_CFLAGS="$CFLAGS"
8802 SAVE_LIBS="$LIBS"
8803 CFLAGS="$ALSA_CFLAGS $CFLAGS"
8804 LIBS="$ALSA_LIBS $LIBS"
8805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8806 /* end confdefs.h. */
8807 #include <asoundlib.h>
8809 main ()
8811 snd_lib_error_set_handler (0);
8813 return 0;
8815 _ACEOF
8816 if ac_fn_c_try_compile "$LINENO"; then :
8817 emacs_alsa_normal=yes
8818 else
8819 emacs_alsa_normal=no
8821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8822 if test "$emacs_alsa_normal" != yes; then
8823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8824 /* end confdefs.h. */
8825 #include <alsa/asoundlib.h>
8827 main ()
8829 snd_lib_error_set_handler (0);
8831 return 0;
8833 _ACEOF
8834 if ac_fn_c_try_compile "$LINENO"; then :
8835 emacs_alsa_subdir=yes
8836 else
8837 emacs_alsa_subdir=no
8839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8840 if test "$emacs_alsa_subdir" != yes; then
8841 as_fn_error "pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
8843 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
8846 CFLAGS="$SAVE_CFLAGS"
8847 LIBS="$SAVE_LIBS"
8848 LIBSOUND="$LIBSOUND $ALSA_LIBS"
8849 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
8851 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
8855 if test x$have_sound_header = xyes || test $HAVE_ALSA = yes; then
8856 case "$opsys" in
8857 gnu-linux|freebsd|netbsd)
8859 $as_echo "#define HAVE_SOUND 1" >>confdefs.h
8862 esac
8871 for ac_header in $ac_header_list
8872 do :
8873 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8874 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8876 eval as_val=\$$as_ac_Header
8877 if test "x$as_val" = x""yes; then :
8878 cat >>confdefs.h <<_ACEOF
8879 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8880 _ACEOF
8884 done
8908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
8909 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
8910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8911 /* end confdefs.h. */
8912 #include <sys/personality.h>
8914 main ()
8916 personality (PER_LINUX32)
8918 return 0;
8920 _ACEOF
8921 if ac_fn_c_try_compile "$LINENO"; then :
8922 emacs_cv_personality_linux32=yes
8923 else
8924 emacs_cv_personality_linux32=no
8926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
8928 $as_echo "$emacs_cv_personality_linux32" >&6; }
8930 if test $emacs_cv_personality_linux32 = yes; then
8932 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
8936 for ac_header in term.h
8937 do :
8938 ac_fn_c_check_header_preproc "$LINENO" "term.h" "ac_cv_header_term_h"
8939 if test "x$ac_cv_header_term_h" = x""yes; then :
8940 cat >>confdefs.h <<_ACEOF
8941 #define HAVE_TERM_H 1
8942 _ACEOF
8946 done
8948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8949 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8950 if test "${ac_cv_header_time+set}" = set; then :
8951 $as_echo_n "(cached) " >&6
8952 else
8953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8954 /* end confdefs.h. */
8955 #include <sys/types.h>
8956 #include <sys/time.h>
8957 #include <time.h>
8960 main ()
8962 if ((struct tm *) 0)
8963 return 0;
8965 return 0;
8967 _ACEOF
8968 if ac_fn_c_try_compile "$LINENO"; then :
8969 ac_cv_header_time=yes
8970 else
8971 ac_cv_header_time=no
8973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8976 $as_echo "$ac_cv_header_time" >&6; }
8977 if test $ac_cv_header_time = yes; then
8979 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8983 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "#include <signal.h>
8986 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then :
8987 ac_have_decl=1
8988 else
8989 ac_have_decl=0
8992 cat >>confdefs.h <<_ACEOF
8993 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
8994 _ACEOF
8996 if test $ac_cv_have_decl_sys_siglist != yes; then
8997 # For Tru64, at least:
8998 ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "#include <signal.h>
9001 if test "x$ac_cv_have_decl___sys_siglist" = x""yes; then :
9002 ac_have_decl=1
9003 else
9004 ac_have_decl=0
9007 cat >>confdefs.h <<_ACEOF
9008 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
9009 _ACEOF
9011 if test $ac_cv_have_decl___sys_siglist = yes; then
9013 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
9017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
9018 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
9019 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
9020 $as_echo_n "(cached) " >&6
9021 else
9022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9023 /* end confdefs.h. */
9024 #include <sys/types.h>
9025 #include <sys/wait.h>
9026 #ifndef WEXITSTATUS
9027 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
9028 #endif
9029 #ifndef WIFEXITED
9030 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9031 #endif
9034 main ()
9036 int s;
9037 wait (&s);
9038 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9040 return 0;
9042 _ACEOF
9043 if ac_fn_c_try_compile "$LINENO"; then :
9044 ac_cv_header_sys_wait_h=yes
9045 else
9046 ac_cv_header_sys_wait_h=no
9048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
9051 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
9052 if test $ac_cv_header_sys_wait_h = yes; then
9054 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
9059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
9060 $as_echo_n "checking for speed_t... " >&6; }
9061 if test "${emacs_cv_speed_t+set}" = set; then :
9062 $as_echo_n "(cached) " >&6
9063 else
9064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9065 /* end confdefs.h. */
9066 #include <termios.h>
9068 main ()
9070 speed_t x = 1;
9072 return 0;
9074 _ACEOF
9075 if ac_fn_c_try_compile "$LINENO"; then :
9076 emacs_cv_speed_t=yes
9077 else
9078 emacs_cv_speed_t=no
9080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
9083 $as_echo "$emacs_cv_speed_t" >&6; }
9084 if test $emacs_cv_speed_t = yes; then
9086 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
9093 for ac_header in net/if.h
9094 do :
9095 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
9096 #if HAVE_SYS_SOCKET_H
9097 #include <sys/socket.h>
9098 #endif
9100 if test "x$ac_cv_header_net_if_h" = x""yes; then :
9101 cat >>confdefs.h <<_ACEOF
9102 #define HAVE_NET_IF_H 1
9103 _ACEOF
9107 done
9109 for ac_header in ifaddrs.h
9110 do :
9111 ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default
9112 #if HAVE_SYS_SOCKET_H
9113 #include <sys/socket.h>
9114 #endif
9116 if test "x$ac_cv_header_ifaddrs_h" = x""yes; then :
9117 cat >>confdefs.h <<_ACEOF
9118 #define HAVE_IFADDRS_H 1
9119 _ACEOF
9123 done
9125 for ac_header in net/if_dl.h
9126 do :
9127 ac_fn_c_check_header_compile "$LINENO" "net/if_dl.h" "ac_cv_header_net_if_dl_h" "$ac_includes_default
9128 #if HAVE_SYS_SOCKET_H
9129 #include <sys/socket.h>
9130 #endif
9132 if test "x$ac_cv_header_net_if_dl_h" = x""yes; then :
9133 cat >>confdefs.h <<_ACEOF
9134 #define HAVE_NET_IF_DL_H 1
9135 _ACEOF
9139 done
9142 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
9143 #if HAVE_SYS_SOCKET_H
9144 #include <sys/socket.h>
9145 #endif
9146 #if HAVE_NET_IF_H
9147 #include <net/if.h>
9148 #endif
9150 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x""yes; then :
9152 cat >>confdefs.h <<_ACEOF
9153 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
9154 _ACEOF
9158 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
9159 #if HAVE_SYS_SOCKET_H
9160 #include <sys/socket.h>
9161 #endif
9162 #if HAVE_NET_IF_H
9163 #include <net/if.h>
9164 #endif
9166 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x""yes; then :
9168 cat >>confdefs.h <<_ACEOF
9169 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
9170 _ACEOF
9174 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
9175 #if HAVE_SYS_SOCKET_H
9176 #include <sys/socket.h>
9177 #endif
9178 #if HAVE_NET_IF_H
9179 #include <net/if.h>
9180 #endif
9182 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x""yes; then :
9184 cat >>confdefs.h <<_ACEOF
9185 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
9186 _ACEOF
9190 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
9191 #if HAVE_SYS_SOCKET_H
9192 #include <sys/socket.h>
9193 #endif
9194 #if HAVE_NET_IF_H
9195 #include <net/if.h>
9196 #endif
9198 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x""yes; then :
9200 cat >>confdefs.h <<_ACEOF
9201 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
9202 _ACEOF
9206 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
9207 #if HAVE_SYS_SOCKET_H
9208 #include <sys/socket.h>
9209 #endif
9210 #if HAVE_NET_IF_H
9211 #include <net/if.h>
9212 #endif
9214 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x""yes; then :
9216 cat >>confdefs.h <<_ACEOF
9217 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
9218 _ACEOF
9222 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr.sa_len" "ac_cv_member_struct_ifreq_ifr_addr_sa_len" "$ac_includes_default
9223 #if HAVE_SYS_SOCKET_H
9224 #include <sys/socket.h>
9225 #endif
9226 #if HAVE_NET_IF_H
9227 #include <net/if.h>
9228 #endif
9230 if test "x$ac_cv_member_struct_ifreq_ifr_addr_sa_len" = x""yes; then :
9232 cat >>confdefs.h <<_ACEOF
9233 #define HAVE_STRUCT_IFREQ_IFR_ADDR_SA_LEN 1
9234 _ACEOF
9242 DEPFLAGS=
9243 MKDEPDIR=":"
9244 deps_frag=deps.mk
9245 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
9246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
9247 $as_echo_n "checking whether we are using GNU Make... " >&6; }
9248 HAVE_GNU_MAKE=no
9249 testval=`${MAKE-make} --version 2>/dev/null | grep 'GNU Make'`
9250 if test "x$testval" != x; then
9251 HAVE_GNU_MAKE=yes
9252 else
9253 ac_enable_autodepend=no
9255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
9256 $as_echo "$HAVE_GNU_MAKE" >&6; }
9257 if test $HAVE_GNU_MAKE = yes; then
9258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
9259 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
9260 SAVE_CFLAGS="$CFLAGS"
9261 CFLAGS="$CFLAGS -MMD -MF deps.d -MP"
9262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9263 /* end confdefs.h. */
9266 main ()
9270 return 0;
9272 _ACEOF
9273 if ac_fn_c_try_compile "$LINENO"; then :
9275 else
9276 ac_enable_autodepend=no
9278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9279 CFLAGS="$SAVE_CFLAGS"
9280 test -f deps.d || ac_enable_autodepend=no
9281 rm -rf deps.d
9282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
9283 $as_echo "$ac_enable_autodepend" >&6; }
9285 if test $ac_enable_autodepend = yes; then
9286 DEPFLAGS='-MMD -MF ${DEPDIR}/$*.d -MP'
9287 ## MKDIR_P is documented (see AC_PROG_MKDIR_P) to be parallel-safe.
9288 MKDEPDIR='${MKDIR_P} ${DEPDIR}'
9289 deps_frag=autodeps.mk
9292 deps_frag=$srcdir/src/$deps_frag
9298 lisp_frag=$srcdir/src/lisp.mk
9302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
9303 $as_echo_n "checking for long file names... " >&6; }
9304 if test "${ac_cv_sys_long_file_names+set}" = set; then :
9305 $as_echo_n "(cached) " >&6
9306 else
9307 ac_cv_sys_long_file_names=yes
9308 # Test for long file names in all the places we know might matter:
9309 # . the current directory, where building will happen
9310 # $prefix/lib where we will be installing things
9311 # $exec_prefix/lib likewise
9312 # $TMPDIR if set, where it might want to write temporary files
9313 # /tmp where it might want to write temporary files
9314 # /var/tmp likewise
9315 # /usr/tmp likewise
9316 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9317 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9318 # in the usual case where exec_prefix is '${prefix}'.
9319 case $ac_dir in #(
9320 . | /* | ?:[\\/]*) ;; #(
9321 *) continue;;
9322 esac
9323 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9324 ac_xdir=$ac_dir/cf$$
9325 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9326 ac_tf1=$ac_xdir/conftest9012345
9327 ac_tf2=$ac_xdir/conftest9012346
9328 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9329 ac_cv_sys_long_file_names=no
9330 rm -f -r "$ac_xdir" 2>/dev/null
9331 test $ac_cv_sys_long_file_names = no && break
9332 done
9334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
9335 $as_echo "$ac_cv_sys_long_file_names" >&6; }
9336 if test $ac_cv_sys_long_file_names = yes; then
9338 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
9343 #### Choose a window system.
9345 ## We leave window_system equal to none if
9346 ## we end up building without one. Any new window system should
9347 ## set window_system to an appropriate value and add objects to
9348 ## window-system-specific substs.
9350 window_system=none
9351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
9352 $as_echo_n "checking for X... " >&6; }
9355 # Check whether --with-x was given.
9356 if test "${with_x+set}" = set; then :
9357 withval=$with_x;
9360 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9361 if test "x$with_x" = xno; then
9362 # The user explicitly disabled X.
9363 have_x=disabled
9364 else
9365 case $x_includes,$x_libraries in #(
9366 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
9367 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
9368 $as_echo_n "(cached) " >&6
9369 else
9370 # One or both of the vars are not set, and there is no cached value.
9371 ac_x_includes=no ac_x_libraries=no
9372 rm -f -r conftest.dir
9373 if mkdir conftest.dir; then
9374 cd conftest.dir
9375 cat >Imakefile <<'_ACEOF'
9376 incroot:
9377 @echo incroot='${INCROOT}'
9378 usrlibdir:
9379 @echo usrlibdir='${USRLIBDIR}'
9380 libdir:
9381 @echo libdir='${LIBDIR}'
9382 _ACEOF
9383 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9384 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9385 for ac_var in incroot usrlibdir libdir; do
9386 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9387 done
9388 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9389 for ac_extension in a so sl dylib la dll; do
9390 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9391 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9392 ac_im_usrlibdir=$ac_im_libdir; break
9394 done
9395 # Screen out bogus values from the imake configuration. They are
9396 # bogus both because they are the default anyway, and because
9397 # using them would break gcc on systems where it needs fixed includes.
9398 case $ac_im_incroot in
9399 /usr/include) ac_x_includes= ;;
9400 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9401 esac
9402 case $ac_im_usrlibdir in
9403 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
9404 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9405 esac
9407 cd ..
9408 rm -f -r conftest.dir
9411 # Standard set of common directories for X headers.
9412 # Check X11 before X11Rn because it is often a symlink to the current release.
9413 ac_x_header_dirs='
9414 /usr/X11/include
9415 /usr/X11R7/include
9416 /usr/X11R6/include
9417 /usr/X11R5/include
9418 /usr/X11R4/include
9420 /usr/include/X11
9421 /usr/include/X11R7
9422 /usr/include/X11R6
9423 /usr/include/X11R5
9424 /usr/include/X11R4
9426 /usr/local/X11/include
9427 /usr/local/X11R7/include
9428 /usr/local/X11R6/include
9429 /usr/local/X11R5/include
9430 /usr/local/X11R4/include
9432 /usr/local/include/X11
9433 /usr/local/include/X11R7
9434 /usr/local/include/X11R6
9435 /usr/local/include/X11R5
9436 /usr/local/include/X11R4
9438 /usr/X386/include
9439 /usr/x386/include
9440 /usr/XFree86/include/X11
9442 /usr/include
9443 /usr/local/include
9444 /usr/unsupported/include
9445 /usr/athena/include
9446 /usr/local/x11r5/include
9447 /usr/lpp/Xamples/include
9449 /usr/openwin/include
9450 /usr/openwin/share/include'
9452 if test "$ac_x_includes" = no; then
9453 # Guess where to find include files, by looking for Xlib.h.
9454 # First, try using that file with no special directory specified.
9455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9456 /* end confdefs.h. */
9457 #include <X11/Xlib.h>
9458 _ACEOF
9459 if ac_fn_c_try_cpp "$LINENO"; then :
9460 # We can compile using X headers with no special include directory.
9461 ac_x_includes=
9462 else
9463 for ac_dir in $ac_x_header_dirs; do
9464 if test -r "$ac_dir/X11/Xlib.h"; then
9465 ac_x_includes=$ac_dir
9466 break
9468 done
9470 rm -f conftest.err conftest.$ac_ext
9471 fi # $ac_x_includes = no
9473 if test "$ac_x_libraries" = no; then
9474 # Check for the libraries.
9475 # See if we find them without any special options.
9476 # Don't add to $LIBS permanently.
9477 ac_save_LIBS=$LIBS
9478 LIBS="-lX11 $LIBS"
9479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9480 /* end confdefs.h. */
9481 #include <X11/Xlib.h>
9483 main ()
9485 XrmInitialize ()
9487 return 0;
9489 _ACEOF
9490 if ac_fn_c_try_link "$LINENO"; then :
9491 LIBS=$ac_save_LIBS
9492 # We can link X programs with no special library path.
9493 ac_x_libraries=
9494 else
9495 LIBS=$ac_save_LIBS
9496 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9498 # Don't even attempt the hair of trying to link an X program!
9499 for ac_extension in a so sl dylib la dll; do
9500 if test -r "$ac_dir/libX11.$ac_extension"; then
9501 ac_x_libraries=$ac_dir
9502 break 2
9504 done
9505 done
9507 rm -f core conftest.err conftest.$ac_objext \
9508 conftest$ac_exeext conftest.$ac_ext
9509 fi # $ac_x_libraries = no
9511 case $ac_x_includes,$ac_x_libraries in #(
9512 no,* | *,no | *\'*)
9513 # Didn't find X, or a directory has "'" in its name.
9514 ac_cv_have_x="have_x=no";; #(
9516 # Record where we found X for the cache.
9517 ac_cv_have_x="have_x=yes\
9518 ac_x_includes='$ac_x_includes'\
9519 ac_x_libraries='$ac_x_libraries'"
9520 esac
9522 ;; #(
9523 *) have_x=yes;;
9524 esac
9525 eval "$ac_cv_have_x"
9526 fi # $with_x != no
9528 if test "$have_x" != yes; then
9529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
9530 $as_echo "$have_x" >&6; }
9531 no_x=yes
9532 else
9533 # If each of the values was on the command line, it overrides each guess.
9534 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9535 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9536 # Update the cache value to reflect the command line values.
9537 ac_cv_have_x="have_x=yes\
9538 ac_x_includes='$x_includes'\
9539 ac_x_libraries='$x_libraries'"
9540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
9541 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
9544 if test "$no_x" != yes; then
9545 window_system=x11
9548 LD_SWITCH_X_SITE_RPATH=
9549 if test "${x_libraries}" != NONE; then
9550 if test -n "${x_libraries}"; then
9551 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9552 LD_SWITCH_X_SITE_RPATH=-Wl,-rpath,`echo ${x_libraries} | sed -e "s/:/ -Wl,-rpath,/g"`
9554 x_default_search_path=""
9555 x_search_path=${x_libraries}
9556 if test -z "${x_search_path}"; then
9557 x_search_path=/usr/lib
9559 for x_library in `echo ${x_search_path}: | \
9560 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9561 x_search_path="\
9562 ${x_library}/X11/%L/%T/%N%C%S:\
9563 ${x_library}/X11/%l/%T/%N%C%S:\
9564 ${x_library}/X11/%T/%N%C%S:\
9565 ${x_library}/X11/%L/%T/%N%S:\
9566 ${x_library}/X11/%l/%T/%N%S:\
9567 ${x_library}/X11/%T/%N%S"
9568 if test x"${x_default_search_path}" = x; then
9569 x_default_search_path=${x_search_path}
9570 else
9571 x_default_search_path="${x_search_path}:${x_default_search_path}"
9573 done
9577 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9578 C_SWITCH_X_SITE="$isystem"`echo ${x_includes} | sed -e "s/:/ $isystem/g"`
9581 if test x"${x_includes}" = x; then
9582 bitmapdir=/usr/include/X11/bitmaps
9583 else
9584 # accumulate include directories that have X11 bitmap subdirectories
9585 bmd_acc="dummyval"
9586 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9587 if test -d "${bmd}/X11/bitmaps"; then
9588 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9590 if test -d "${bmd}/bitmaps"; then
9591 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9593 done
9594 if test ${bmd_acc} != "dummyval"; then
9595 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9599 HAVE_NS=no
9600 NS_IMPL_COCOA=no
9601 NS_IMPL_GNUSTEP=no
9602 tmp_CPPFLAGS="$CPPFLAGS"
9603 tmp_CFLAGS="$CFLAGS"
9604 CPPFLAGS="$CPPFLAGS -x objective-c"
9605 CFLAGS="$CFLAGS -x objective-c"
9606 GNU_OBJC_CFLAGS=
9607 LIBS_GNUSTEP=
9608 if test "${with_ns}" != no; then
9609 if test "${opsys}" = darwin; then
9610 NS_IMPL_COCOA=yes
9611 ns_appdir=`pwd`/nextstep/Emacs.app
9612 ns_appbindir=${ns_appdir}/Contents/MacOS
9613 ns_appresdir=${ns_appdir}/Contents/Resources
9614 ns_appsrc=Cocoa/Emacs.base
9615 elif test -f $GNUSTEP_CONFIG_FILE; then
9616 NS_IMPL_GNUSTEP=yes
9617 ns_appdir=`pwd`/nextstep/Emacs.app
9618 ns_appbindir=${ns_appdir}
9619 ns_appresdir=${ns_appdir}/Resources
9620 ns_appsrc=GNUstep/Emacs.base
9621 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9622 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9623 GNUSTEP_LOCAL_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
9624 GNUSTEP_LOCAL_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
9625 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
9626 GNUSTEP_LOCAL_HEADERS="-I${GNUSTEP_LOCAL_HEADERS}"
9627 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
9628 GNUSTEP_LOCAL_LIBRARIES="-L${GNUSTEP_LOCAL_LIBRARIES}"
9629 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9630 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9631 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
9632 LIBS_GNUSTEP="-lgnustep-gui -lgnustep-base -lobjc -lpthread"
9633 LIB_STANDARD=
9634 START_FILES=
9635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS" >&5
9636 $as_echo_n "checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS... " >&6; }
9637 if test "${emacs_cv_objc_exceptions+set}" = set; then :
9638 $as_echo_n "(cached) " >&6
9639 else
9640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9641 /* end confdefs.h. */
9642 #include <GNUstepBase/GSConfig.h>
9644 main ()
9646 #if defined BASE_NATIVE_OBJC_EXCEPTIONS && BASE_NATIVE_OBJC_EXCEPTIONS > 0
9648 #else
9649 fail;
9650 #endif
9652 return 0;
9654 _ACEOF
9655 if ac_fn_c_try_compile "$LINENO"; then :
9656 emacs_cv_objc_exceptions=yes
9657 else
9658 emacs_cv_objc_exceptions=no
9660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_objc_exceptions" >&5
9663 $as_echo "$emacs_cv_objc_exceptions" >&6; }
9664 if test $emacs_cv_objc_exceptions = yes; then
9666 $as_echo "#define _NATIVE_OBJC_EXCEPTIONS 1" >>confdefs.h
9668 GNU_OBJC_CFLAGS="-fobjc-exceptions"
9672 CFLAGS="$CFLAGS $GNU_OBJC_CFLAGS"
9674 ac_fn_c_check_header_mongrel "$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
9675 if test "x$ac_cv_header_AppKit_AppKit_h" = x""yes; then :
9676 HAVE_NS=yes
9677 else
9678 as_fn_error "\`--with-ns' was specified, but the include
9679 files are missing or cannot be compiled." "$LINENO" 5
9684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9685 /* end confdefs.h. */
9686 #include <AppKit/AppKit.h>
9688 main ()
9691 #ifdef MAC_OS_X_VERSION_MAX_ALLOWED
9692 #if MAC_OS_X_VERSION_MAX_ALLOWED >= 1040
9693 ; /* OK */
9694 #else
9695 #error "OSX 10.4 or newer required"
9696 #endif
9697 #endif
9700 return 0;
9702 _ACEOF
9703 if ac_fn_c_try_compile "$LINENO"; then :
9704 ns_osx_have_104=yes
9705 else
9706 ns_osx_have_104=no
9708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9710 /* end confdefs.h. */
9711 #include <Foundation/NSObjCRuntime.h>
9713 main ()
9715 NSInteger i;
9717 return 0;
9719 _ACEOF
9720 if ac_fn_c_try_compile "$LINENO"; then :
9721 ns_have_nsinteger=yes
9722 else
9723 ns_have_nsinteger=no
9725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9726 if test $ns_osx_have_104 = no; then
9727 as_fn_error "\`OSX 10.4 or newer is required'" "$LINENO" 5;
9729 if test $ns_have_nsinteger = yes; then
9731 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
9738 INSTALL_ARCH_INDEP_EXTRA=install-etc
9739 ns_self_contained=no
9740 NS_OBJ=
9741 NS_OBJC_OBJ=
9742 if test "${HAVE_NS}" = yes; then
9743 if test "$with_toolkit_scroll_bars" = "no"; then
9744 as_fn_error "Non-toolkit scroll bars are not implemented for Nextstep." "$LINENO" 5
9747 window_system=nextstep
9748 # set up packaging dirs
9749 if test "${EN_NS_SELF_CONTAINED}" = yes; then
9750 ns_self_contained=yes
9751 prefix=${ns_appresdir}
9752 exec_prefix=${ns_appbindir}
9753 libexecdir="\${ns_appbindir}/libexec"
9754 archlibdir="\${ns_appbindir}/libexec"
9755 docdir="\${ns_appresdir}/etc"
9756 etcdir="\${ns_appresdir}/etc"
9757 infodir="\${ns_appresdir}/info"
9758 mandir="\${ns_appresdir}/man"
9759 lispdir="\${ns_appresdir}/lisp"
9760 leimdir="\${ns_appresdir}/leim"
9761 INSTALL_ARCH_INDEP_EXTRA=
9763 NS_OBJC_OBJ="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o"
9765 CFLAGS="$tmp_CFLAGS"
9766 CPPFLAGS="$tmp_CPPFLAGS"
9773 HAVE_W32=no
9774 W32_OBJ=
9775 W32_LIBS=
9776 W32_RES=
9777 W32_RES_LINK=
9778 if test "${with_w32}" != no; then
9779 if test "${opsys}" != "cygwin"; then
9780 as_fn_error "Using w32 with an autotools build is only supported for Cygwin." "$LINENO" 5
9782 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
9783 if test "x$ac_cv_header_windows_h" = x""yes; then :
9784 HAVE_W32=yes
9785 else
9786 as_fn_error "\`--with-w32' was specified, but windows.h
9787 cannot be found." "$LINENO" 5
9792 $as_echo "#define HAVE_NTGUI 1" >>confdefs.h
9794 if test -n "$ac_tool_prefix"; then
9795 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
9796 set dummy ${ac_tool_prefix}windres; ac_word=$2
9797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9798 $as_echo_n "checking for $ac_word... " >&6; }
9799 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9800 $as_echo_n "(cached) " >&6
9801 else
9802 if test -n "$WINDRES"; then
9803 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9804 else
9805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9806 for as_dir in $PATH
9808 IFS=$as_save_IFS
9809 test -z "$as_dir" && as_dir=.
9810 for ac_exec_ext in '' $ac_executable_extensions; do
9811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9812 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
9813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9814 break 2
9816 done
9817 done
9818 IFS=$as_save_IFS
9822 WINDRES=$ac_cv_prog_WINDRES
9823 if test -n "$WINDRES"; then
9824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9825 $as_echo "$WINDRES" >&6; }
9826 else
9827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9828 $as_echo "no" >&6; }
9833 if test -z "$ac_cv_prog_WINDRES"; then
9834 ac_ct_WINDRES=$WINDRES
9835 # Extract the first word of "windres", so it can be a program name with args.
9836 set dummy windres; ac_word=$2
9837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9838 $as_echo_n "checking for $ac_word... " >&6; }
9839 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then :
9840 $as_echo_n "(cached) " >&6
9841 else
9842 if test -n "$ac_ct_WINDRES"; then
9843 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
9844 else
9845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9846 for as_dir in $PATH
9848 IFS=$as_save_IFS
9849 test -z "$as_dir" && as_dir=.
9850 for ac_exec_ext in '' $ac_executable_extensions; do
9851 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9852 ac_cv_prog_ac_ct_WINDRES="windres"
9853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9854 break 2
9856 done
9857 done
9858 IFS=$as_save_IFS
9862 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
9863 if test -n "$ac_ct_WINDRES"; then
9864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
9865 $as_echo "$ac_ct_WINDRES" >&6; }
9866 else
9867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9868 $as_echo "no" >&6; }
9871 if test "x$ac_ct_WINDRES" = x; then
9872 WINDRES="as_fn_error "No resource compiler found." "$LINENO" 5"
9873 else
9874 case $cross_compiling:$ac_tool_warned in
9875 yes:)
9876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9877 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9878 ac_tool_warned=yes ;;
9879 esac
9880 WINDRES=$ac_ct_WINDRES
9882 else
9883 WINDRES="$ac_cv_prog_WINDRES"
9886 W32_OBJ="w32fns.o w32menu.o w32reg.o w32font.o w32term.o"
9887 W32_OBJ="$W32_OBJ w32xfns.o w32select.o w32uniscribe.o"
9888 W32_LIBS="$W32_LIBS -lkernel32 -luser32 -lgdi32 -lole32 -lcomdlg32"
9889 W32_LIBS="$W32_LIBS -lusp10 -lcomctl32 -lwinspool"
9890 W32_RES="emacs.res"
9891 # Tell the linker that emacs.res is an object (which we compile from
9892 # the rc file), not a linker script.
9893 W32_RES_LINK="-Wl,-bpe-i386 -Wl,emacs.res"
9900 if test "${HAVE_W32}" = "yes"; then
9901 window_system=w32
9902 with_xft=no
9905 ## $window_system is now set to the window system we will
9906 ## ultimately use.
9908 term_header=
9909 HAVE_X_WINDOWS=no
9910 HAVE_X11=no
9911 USE_X_TOOLKIT=none
9913 case "${window_system}" in
9914 x11 )
9915 HAVE_X_WINDOWS=yes
9916 HAVE_X11=yes
9917 term_header=xterm.h
9918 case "${with_x_toolkit}" in
9919 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9920 motif ) USE_X_TOOLKIT=MOTIF ;;
9921 gtk ) with_gtk=yes
9922 term_header=gtkutil.h
9923 USE_X_TOOLKIT=none ;;
9924 gtk2 ) with_gtk2=yes
9925 term_header=gtkutil.h
9926 USE_X_TOOLKIT=none ;;
9927 gtk3 ) with_gtk3=yes
9928 term_header=gtkutil.h
9929 USE_X_TOOLKIT=none ;;
9930 no ) USE_X_TOOLKIT=none ;;
9931 * ) USE_X_TOOLKIT=maybe ;;
9932 esac
9934 nextstep )
9935 term_header=nsterm.h
9937 w32 )
9938 term_header=w32term.h
9940 esac
9942 if test -n "${term_header}"; then
9944 cat >>confdefs.h <<_ACEOF
9945 #define TERM_HEADER "${term_header}"
9946 _ACEOF
9950 if test "$window_system" = none && test "X$with_x" != "Xno"; then
9951 # Extract the first word of "X", so it can be a program name with args.
9952 set dummy X; ac_word=$2
9953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9954 $as_echo_n "checking for $ac_word... " >&6; }
9955 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then :
9956 $as_echo_n "(cached) " >&6
9957 else
9958 if test -n "$HAVE_XSERVER"; then
9959 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9960 else
9961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9962 for as_dir in $PATH
9964 IFS=$as_save_IFS
9965 test -z "$as_dir" && as_dir=.
9966 for ac_exec_ext in '' $ac_executable_extensions; do
9967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9968 ac_cv_prog_HAVE_XSERVER="true"
9969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9970 break 2
9972 done
9973 done
9974 IFS=$as_save_IFS
9976 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9979 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9980 if test -n "$HAVE_XSERVER"; then
9981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
9982 $as_echo "$HAVE_XSERVER" >&6; }
9983 else
9984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9985 $as_echo "no" >&6; }
9989 if test "$HAVE_XSERVER" = true ||
9990 test -n "$DISPLAY" ||
9991 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
9992 as_fn_error "You seem to be running X, but no X development libraries
9993 were found. You should install the relevant development files for X
9994 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9995 sure you have development files for image handling, i.e.
9996 tiff, gif, jpeg, png and xpm.
9997 If you are sure you want Emacs compiled without X window support, pass
9998 --without-x
9999 to configure." "$LINENO" 5
10003 ### If we're using X11, we should use the X menu package.
10004 HAVE_MENUS=no
10005 case ${HAVE_X11} in
10006 yes ) HAVE_MENUS=yes ;;
10007 esac
10009 # Does the opsystem file prohibit the use of the GNU malloc?
10010 # Assume not, until told otherwise.
10011 GNU_MALLOC=yes
10013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc is Doug Lea style" >&5
10014 $as_echo_n "checking whether malloc is Doug Lea style... " >&6; }
10015 if test "${emacs_cv_var_doug_lea_malloc+set}" = set; then :
10016 $as_echo_n "(cached) " >&6
10017 else
10018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10019 /* end confdefs.h. */
10020 #include <malloc.h>
10021 static void hook (void) {}
10023 main ()
10025 malloc_set_state (malloc_get_state ());
10026 __after_morecore_hook = hook;
10027 __malloc_initialize_hook = hook;
10029 return 0;
10031 _ACEOF
10032 if ac_fn_c_try_link "$LINENO"; then :
10033 emacs_cv_var_doug_lea_malloc=yes
10034 else
10035 emacs_cv_var_doug_lea_malloc=no
10037 rm -f core conftest.err conftest.$ac_objext \
10038 conftest$ac_exeext conftest.$ac_ext
10040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var_doug_lea_malloc" >&5
10041 $as_echo "$emacs_cv_var_doug_lea_malloc" >&6; }
10042 doug_lea_malloc=$emacs_cv_var_doug_lea_malloc
10045 system_malloc=no
10046 case "$opsys" in
10047 ## darwin ld insists on the use of malloc routines in the System framework.
10048 darwin|sol2-10) system_malloc=yes ;;
10049 esac
10051 if test "${system_malloc}" = "yes"; then
10053 $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
10055 GNU_MALLOC=no
10056 GNU_MALLOC_reason="
10057 (The GNU allocators don't work with this system configuration.)"
10058 GMALLOC_OBJ=
10059 VMLIMIT_OBJ=
10060 else
10061 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ=gmalloc.o
10062 VMLIMIT_OBJ=vm-limit.o
10067 if test "$doug_lea_malloc" = "yes" ; then
10068 if test "$GNU_MALLOC" = yes ; then
10069 GNU_MALLOC_reason="
10070 (Using Doug Lea's new malloc from the GNU C Library.)"
10073 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
10076 ## Use mmap directly for allocating larger buffers.
10077 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
10078 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
10079 ## Does the AC_FUNC_MMAP test below make this check unnecessary?
10080 case "$opsys" in
10081 gnu*) REL_ALLOC=no ;;
10082 esac
10085 if test x"${REL_ALLOC}" = x; then
10086 REL_ALLOC=${GNU_MALLOC}
10089 use_mmap_for_buffers=no
10090 case "$opsys" in
10091 cygwin|freebsd|irix6-5) use_mmap_for_buffers=yes ;;
10092 esac
10101 for ac_func in getpagesize
10102 do :
10103 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
10104 if test "x$ac_cv_func_getpagesize" = x""yes; then :
10105 cat >>confdefs.h <<_ACEOF
10106 #define HAVE_GETPAGESIZE 1
10107 _ACEOF
10110 done
10112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
10113 $as_echo_n "checking for working mmap... " >&6; }
10114 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
10115 $as_echo_n "(cached) " >&6
10116 else
10117 if test "$cross_compiling" = yes; then :
10118 ac_cv_func_mmap_fixed_mapped=no
10119 else
10120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10121 /* end confdefs.h. */
10122 $ac_includes_default
10123 /* malloc might have been renamed as rpl_malloc. */
10124 #undef malloc
10126 /* Thanks to Mike Haertel and Jim Avera for this test.
10127 Here is a matrix of mmap possibilities:
10128 mmap private not fixed
10129 mmap private fixed at somewhere currently unmapped
10130 mmap private fixed at somewhere already mapped
10131 mmap shared not fixed
10132 mmap shared fixed at somewhere currently unmapped
10133 mmap shared fixed at somewhere already mapped
10134 For private mappings, we should verify that changes cannot be read()
10135 back from the file, nor mmap's back from the file at a different
10136 address. (There have been systems where private was not correctly
10137 implemented like the infamous i386 svr4.0, and systems where the
10138 VM page cache was not coherent with the file system buffer cache
10139 like early versions of FreeBSD and possibly contemporary NetBSD.)
10140 For shared mappings, we should conversely verify that changes get
10141 propagated back to all the places they're supposed to be.
10143 Grep wants private fixed already mapped.
10144 The main things grep needs to know about mmap are:
10145 * does it exist and is it safe to write into the mmap'd area
10146 * how to use it (BSD variants) */
10148 #include <fcntl.h>
10149 #include <sys/mman.h>
10151 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10152 char *malloc ();
10153 #endif
10155 /* This mess was copied from the GNU getpagesize.h. */
10156 #ifndef HAVE_GETPAGESIZE
10157 # ifdef _SC_PAGESIZE
10158 # define getpagesize() sysconf(_SC_PAGESIZE)
10159 # else /* no _SC_PAGESIZE */
10160 # ifdef HAVE_SYS_PARAM_H
10161 # include <sys/param.h>
10162 # ifdef EXEC_PAGESIZE
10163 # define getpagesize() EXEC_PAGESIZE
10164 # else /* no EXEC_PAGESIZE */
10165 # ifdef NBPG
10166 # define getpagesize() NBPG * CLSIZE
10167 # ifndef CLSIZE
10168 # define CLSIZE 1
10169 # endif /* no CLSIZE */
10170 # else /* no NBPG */
10171 # ifdef NBPC
10172 # define getpagesize() NBPC
10173 # else /* no NBPC */
10174 # ifdef PAGESIZE
10175 # define getpagesize() PAGESIZE
10176 # endif /* PAGESIZE */
10177 # endif /* no NBPC */
10178 # endif /* no NBPG */
10179 # endif /* no EXEC_PAGESIZE */
10180 # else /* no HAVE_SYS_PARAM_H */
10181 # define getpagesize() 8192 /* punt totally */
10182 # endif /* no HAVE_SYS_PARAM_H */
10183 # endif /* no _SC_PAGESIZE */
10185 #endif /* no HAVE_GETPAGESIZE */
10188 main ()
10190 char *data, *data2, *data3;
10191 const char *cdata2;
10192 int i, pagesize;
10193 int fd, fd2;
10195 pagesize = getpagesize ();
10197 /* First, make a file with some known garbage in it. */
10198 data = (char *) malloc (pagesize);
10199 if (!data)
10200 return 1;
10201 for (i = 0; i < pagesize; ++i)
10202 *(data + i) = rand ();
10203 umask (0);
10204 fd = creat ("conftest.mmap", 0600);
10205 if (fd < 0)
10206 return 2;
10207 if (write (fd, data, pagesize) != pagesize)
10208 return 3;
10209 close (fd);
10211 /* Next, check that the tail of a page is zero-filled. File must have
10212 non-zero length, otherwise we risk SIGBUS for entire page. */
10213 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
10214 if (fd2 < 0)
10215 return 4;
10216 cdata2 = "";
10217 if (write (fd2, cdata2, 1) != 1)
10218 return 5;
10219 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
10220 if (data2 == MAP_FAILED)
10221 return 6;
10222 for (i = 0; i < pagesize; ++i)
10223 if (*(data2 + i))
10224 return 7;
10225 close (fd2);
10226 if (munmap (data2, pagesize))
10227 return 8;
10229 /* Next, try to mmap the file at a fixed address which already has
10230 something else allocated at it. If we can, also make sure that
10231 we see the same garbage. */
10232 fd = open ("conftest.mmap", O_RDWR);
10233 if (fd < 0)
10234 return 9;
10235 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10236 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10237 return 10;
10238 for (i = 0; i < pagesize; ++i)
10239 if (*(data + i) != *(data2 + i))
10240 return 11;
10242 /* Finally, make sure that changes to the mapped area do not
10243 percolate back to the file as seen by read(). (This is a bug on
10244 some variants of i386 svr4.0.) */
10245 for (i = 0; i < pagesize; ++i)
10246 *(data2 + i) = *(data2 + i) + 1;
10247 data3 = (char *) malloc (pagesize);
10248 if (!data3)
10249 return 12;
10250 if (read (fd, data3, pagesize) != pagesize)
10251 return 13;
10252 for (i = 0; i < pagesize; ++i)
10253 if (*(data + i) != *(data3 + i))
10254 return 14;
10255 close (fd);
10256 return 0;
10258 _ACEOF
10259 if ac_fn_c_try_run "$LINENO"; then :
10260 ac_cv_func_mmap_fixed_mapped=yes
10261 else
10262 ac_cv_func_mmap_fixed_mapped=no
10264 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10265 conftest.$ac_objext conftest.beam conftest.$ac_ext
10269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
10270 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
10271 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10273 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
10276 rm -f conftest.mmap conftest.txt
10278 if test $use_mmap_for_buffers = yes; then
10280 $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
10282 REL_ALLOC=no
10285 LIBS="$LIBS_SYSTEM $LIBS"
10287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
10288 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
10289 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
10290 $as_echo_n "(cached) " >&6
10291 else
10292 ac_check_lib_save_LIBS=$LIBS
10293 LIBS="-ldnet $LIBS"
10294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10295 /* end confdefs.h. */
10297 /* Override any GCC internal prototype to avoid an error.
10298 Use char because int might match the return type of a GCC
10299 builtin and then its argument prototype would still apply. */
10300 #ifdef __cplusplus
10301 extern "C"
10302 #endif
10303 char dnet_ntoa ();
10305 main ()
10307 return dnet_ntoa ();
10309 return 0;
10311 _ACEOF
10312 if ac_fn_c_try_link "$LINENO"; then :
10313 ac_cv_lib_dnet_dnet_ntoa=yes
10314 else
10315 ac_cv_lib_dnet_dnet_ntoa=no
10317 rm -f core conftest.err conftest.$ac_objext \
10318 conftest$ac_exeext conftest.$ac_ext
10319 LIBS=$ac_check_lib_save_LIBS
10321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10322 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10323 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
10324 cat >>confdefs.h <<_ACEOF
10325 #define HAVE_LIBDNET 1
10326 _ACEOF
10328 LIBS="-ldnet $LIBS"
10333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
10334 $as_echo_n "checking for main in -lXbsd... " >&6; }
10335 if test "${ac_cv_lib_Xbsd_main+set}" = set; then :
10336 $as_echo_n "(cached) " >&6
10337 else
10338 ac_check_lib_save_LIBS=$LIBS
10339 LIBS="-lXbsd $LIBS"
10340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10341 /* end confdefs.h. */
10345 main ()
10347 return main ();
10349 return 0;
10351 _ACEOF
10352 if ac_fn_c_try_link "$LINENO"; then :
10353 ac_cv_lib_Xbsd_main=yes
10354 else
10355 ac_cv_lib_Xbsd_main=no
10357 rm -f core conftest.err conftest.$ac_objext \
10358 conftest$ac_exeext conftest.$ac_ext
10359 LIBS=$ac_check_lib_save_LIBS
10361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
10362 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
10363 if test "x$ac_cv_lib_Xbsd_main" = x""yes; then :
10364 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10368 LIB_PTHREAD=
10372 if test "$ac_cv_header_pthread_h"; then
10373 if test "$GMALLOC_OBJ" = gmalloc.o; then
10374 emacs_pthread_function=pthread_atfork
10375 else
10376 emacs_pthread_function=pthread_self
10378 as_ac_Lib=`$as_echo "ac_cv_lib_pthread_$emacs_pthread_function" | $as_tr_sh`
10379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $emacs_pthread_function in -lpthread" >&5
10380 $as_echo_n "checking for $emacs_pthread_function in -lpthread... " >&6; }
10381 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
10382 $as_echo_n "(cached) " >&6
10383 else
10384 ac_check_lib_save_LIBS=$LIBS
10385 LIBS="-lpthread $LIBS"
10386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10387 /* end confdefs.h. */
10389 /* Override any GCC internal prototype to avoid an error.
10390 Use char because int might match the return type of a GCC
10391 builtin and then its argument prototype would still apply. */
10392 #ifdef __cplusplus
10393 extern "C"
10394 #endif
10395 char $emacs_pthread_function ();
10397 main ()
10399 return $emacs_pthread_function ();
10401 return 0;
10403 _ACEOF
10404 if ac_fn_c_try_link "$LINENO"; then :
10405 eval "$as_ac_Lib=yes"
10406 else
10407 eval "$as_ac_Lib=no"
10409 rm -f core conftest.err conftest.$ac_objext \
10410 conftest$ac_exeext conftest.$ac_ext
10411 LIBS=$ac_check_lib_save_LIBS
10413 eval ac_res=\$$as_ac_Lib
10414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10415 $as_echo "$ac_res" >&6; }
10416 eval as_val=\$$as_ac_Lib
10417 if test "x$as_val" = x""yes; then :
10418 HAVE_PTHREAD=yes
10422 if test "$HAVE_PTHREAD" = yes; then
10423 case "${canonical}" in
10424 *-hpux*) ;;
10425 *) LIB_PTHREAD="-lpthread"
10426 LIBS="$LIB_PTHREAD $LIBS" ;;
10427 esac
10429 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
10434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
10435 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
10436 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then :
10437 $as_echo_n "(cached) " >&6
10438 else
10439 ac_check_lib_save_LIBS=$LIBS
10440 LIBS="-lpthreads $LIBS"
10441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10442 /* end confdefs.h. */
10444 /* Override any GCC internal prototype to avoid an error.
10445 Use char because int might match the return type of a GCC
10446 builtin and then its argument prototype would still apply. */
10447 #ifdef __cplusplus
10448 extern "C"
10449 #endif
10450 char cma_open ();
10452 main ()
10454 return cma_open ();
10456 return 0;
10458 _ACEOF
10459 if ac_fn_c_try_link "$LINENO"; then :
10460 ac_cv_lib_pthreads_cma_open=yes
10461 else
10462 ac_cv_lib_pthreads_cma_open=no
10464 rm -f core conftest.err conftest.$ac_objext \
10465 conftest$ac_exeext conftest.$ac_ext
10466 LIBS=$ac_check_lib_save_LIBS
10468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
10469 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
10470 if test "x$ac_cv_lib_pthreads_cma_open" = x""yes; then :
10471 cat >>confdefs.h <<_ACEOF
10472 #define HAVE_LIBPTHREADS 1
10473 _ACEOF
10475 LIBS="-lpthreads $LIBS"
10480 ## Note: when using cpp in s/aix4.2.h, this definition depended on
10481 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
10482 ## the system file was sourced. Hence the value of LIBS_SYSTEM
10483 ## added to LIBS in configure would never contain the pthreads part,
10484 ## but the value used in Makefiles might. FIXME?
10486 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
10487 ## be harmless on older versions of X where it happens to exist.
10488 test "$opsys" = "aix4-2" && \
10489 test $ac_cv_lib_pthreads_cma_open = yes && \
10490 LIBS_SYSTEM="$LIBS_SYSTEM -lpthreads"
10493 case ${host_os} in
10494 aix*)
10495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
10496 $as_echo_n "checking for -bbigtoc option... " >&6; }
10497 if test "${gdb_cv_bigtoc+set}" = set; then :
10498 $as_echo_n "(cached) " >&6
10499 else
10501 case $GCC in
10502 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
10503 *) gdb_cv_bigtoc=-bbigtoc ;;
10504 esac
10506 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10508 /* end confdefs.h. */
10511 main ()
10513 int i;
10515 return 0;
10517 _ACEOF
10518 if ac_fn_c_try_link "$LINENO"; then :
10520 else
10521 gdb_cv_bigtoc=
10523 rm -f core conftest.err conftest.$ac_objext \
10524 conftest$ac_exeext conftest.$ac_ext
10527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
10528 $as_echo "$gdb_cv_bigtoc" >&6; }
10530 esac
10532 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10533 # used for the tests that follow. We set them back to REAL_CFLAGS and
10534 # REAL_CPPFLAGS later on.
10536 REAL_CFLAGS="$CFLAGS"
10537 REAL_CPPFLAGS="$CPPFLAGS"
10539 if test "${HAVE_X11}" = "yes"; then
10540 DEFS="$C_SWITCH_X_SITE $DEFS"
10541 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10542 LIBS="-lX11 $LIBS"
10543 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10544 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10546 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10547 # This is handled by LD_SWITCH_X_SITE_RPATH during the real build,
10548 # but it's more convenient here to set LD_RUN_PATH since this
10549 # also works on hosts that don't understand LD_SWITCH_X_SITE_RPATH.
10550 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10551 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10552 export LD_RUN_PATH
10555 if test "${opsys}" = "gnu-linux"; then
10556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
10557 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
10558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10559 /* end confdefs.h. */
10562 main ()
10564 XOpenDisplay ("foo");
10566 return 0;
10568 _ACEOF
10569 if ac_fn_c_try_link "$LINENO"; then :
10570 xgnu_linux_first_failure=no
10571 else
10572 xgnu_linux_first_failure=yes
10574 rm -f core conftest.err conftest.$ac_objext \
10575 conftest$ac_exeext conftest.$ac_ext
10576 if test "${xgnu_linux_first_failure}" = "yes"; then
10577 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
10578 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
10579 OLD_CPPFLAGS="$CPPFLAGS"
10580 OLD_LIBS="$LIBS"
10581 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
10582 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
10583 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
10584 LIBS="$LIBS -b i486-linuxaout"
10585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10586 /* end confdefs.h. */
10589 main ()
10591 XOpenDisplay ("foo");
10593 return 0;
10595 _ACEOF
10596 if ac_fn_c_try_link "$LINENO"; then :
10597 xgnu_linux_second_failure=no
10598 else
10599 xgnu_linux_second_failure=yes
10601 rm -f core conftest.err conftest.$ac_objext \
10602 conftest$ac_exeext conftest.$ac_ext
10603 if test "${xgnu_linux_second_failure}" = "yes"; then
10604 # If we get the same failure with -b, there is no use adding -b.
10605 # So take it out. This plays safe.
10606 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10607 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10608 CPPFLAGS="$OLD_CPPFLAGS"
10609 LIBS="$OLD_LIBS"
10610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10611 $as_echo "no" >&6; }
10612 else
10613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10614 $as_echo "yes" >&6; }
10616 else
10617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10618 $as_echo "no" >&6; }
10622 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10623 # header files included from there.
10624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
10625 $as_echo_n "checking for Xkb... " >&6; }
10626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10627 /* end confdefs.h. */
10628 #include <X11/Xlib.h>
10629 #include <X11/XKBlib.h>
10631 main ()
10633 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10635 return 0;
10637 _ACEOF
10638 if ac_fn_c_try_link "$LINENO"; then :
10639 emacs_xkb=yes
10640 else
10641 emacs_xkb=no
10643 rm -f core conftest.err conftest.$ac_objext \
10644 conftest$ac_exeext conftest.$ac_ext
10645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
10646 $as_echo "$emacs_xkb" >&6; }
10647 if test $emacs_xkb = yes; then
10649 $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
10653 for ac_func in XrmSetDatabase XScreenResourceString \
10654 XScreenNumberOfScreen
10655 do :
10656 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10657 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10658 eval as_val=\$$as_ac_var
10659 if test "x$as_val" = x""yes; then :
10660 cat >>confdefs.h <<_ACEOF
10661 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10662 _ACEOF
10665 done
10669 if test "${window_system}" = "x11"; then
10670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
10671 $as_echo_n "checking X11 version 6... " >&6; }
10672 if test "${emacs_cv_x11_version_6+set}" = set; then :
10673 $as_echo_n "(cached) " >&6
10674 else
10675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10676 /* end confdefs.h. */
10677 #include <X11/Xlib.h>
10679 main ()
10681 #if XlibSpecificationRelease < 6
10682 fail;
10683 #endif
10686 return 0;
10688 _ACEOF
10689 if ac_fn_c_try_link "$LINENO"; then :
10690 emacs_cv_x11_version_6=yes
10691 else
10692 emacs_cv_x11_version_6=no
10694 rm -f core conftest.err conftest.$ac_objext \
10695 conftest$ac_exeext conftest.$ac_ext
10698 if test $emacs_cv_x11_version_6 = yes; then
10699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
10700 $as_echo "6 or newer" >&6; }
10702 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
10705 $as_echo "#define HAVE_X_I18N 1" >>confdefs.h
10707 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
10708 ## XIM support.
10709 case "$opsys" in
10710 sol2-*) : ;;
10712 $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
10715 esac
10716 else
10717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
10718 $as_echo "before 6" >&6; }
10723 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
10724 HAVE_RSVG=no
10725 if test "${HAVE_X11}" = "yes" || test "${HAVE_NS}" = "yes"; then
10726 if test "${with_rsvg}" != "no"; then
10727 RSVG_REQUIRED=2.11.0
10728 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
10731 succeeded=no
10733 if test "$PKG_CONFIG" = "no" ; then
10735 else
10736 PKG_CONFIG_MIN_VERSION=0.9.0
10737 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
10739 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
10741 if "$PKG_CONFIG" --exists "$RSVG_MODULE" 2>&5 &&
10742 RSVG_CFLAGS=`"$PKG_CONFIG" --cflags "$RSVG_MODULE" 2>&5` &&
10743 RSVG_LIBS=`"$PKG_CONFIG" --libs "$RSVG_MODULE" 2>&5`; then
10744 edit_cflags="
10745 s,///*,/,g
10746 s/^/ /
10747 s/ -I/ $isystem/g
10748 s/^ //
10750 RSVG_CFLAGS=`$as_echo "$RSVG_CFLAGS" | sed -e "$edit_cflags"`
10751 RSVG_LIBS=`$as_echo "$RSVG_LIBS" | sed -e 's,///*,/,g'`
10752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$RSVG_CFLAGS' LIBS='$RSVG_LIBS'" >&5
10753 $as_echo "yes CFLAGS='$RSVG_CFLAGS' LIBS='$RSVG_LIBS'" >&6; }
10754 succeeded=yes
10755 else
10756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10757 $as_echo "no" >&6; }
10758 RSVG_CFLAGS=""
10759 RSVG_LIBS=""
10760 ## If we have a custom action on failure, don't print errors, but
10761 ## do set a variable so people can do so. Do it in a subshell
10762 ## to capture any diagnostics in invoking pkg-config.
10763 RSVG_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "$RSVG_MODULE") 2>&1`
10769 else
10770 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10771 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10775 if test $succeeded = yes; then
10776 HAVE_RSVG=yes
10777 else
10784 if test $HAVE_RSVG = yes; then
10786 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
10788 CFLAGS="$CFLAGS $RSVG_CFLAGS"
10789 LIBS="$RSVG_LIBS $LIBS"
10794 HAVE_IMAGEMAGICK=no
10795 if test "${HAVE_X11}" = "yes"; then
10796 if test "${with_imagemagick}" != "no"; then
10797 ## 6.2.8 is the earliest version known to work, but earlier versions
10798 ## might work - let us know if you find one.
10799 ## 6.0.7 does not work. See bug#7955.
10800 IMAGEMAGICK_MODULE="Wand >= 6.2.8"
10802 succeeded=no
10804 if test "$PKG_CONFIG" = "no" ; then
10806 else
10807 PKG_CONFIG_MIN_VERSION=0.9.0
10808 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
10810 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
10812 if "$PKG_CONFIG" --exists "$IMAGEMAGICK_MODULE" 2>&5 &&
10813 IMAGEMAGICK_CFLAGS=`"$PKG_CONFIG" --cflags "$IMAGEMAGICK_MODULE" 2>&5` &&
10814 IMAGEMAGICK_LIBS=`"$PKG_CONFIG" --libs "$IMAGEMAGICK_MODULE" 2>&5`; then
10815 edit_cflags="
10816 s,///*,/,g
10817 s/^/ /
10818 s/ -I/ $isystem/g
10819 s/^ //
10821 IMAGEMAGICK_CFLAGS=`$as_echo "$IMAGEMAGICK_CFLAGS" | sed -e "$edit_cflags"`
10822 IMAGEMAGICK_LIBS=`$as_echo "$IMAGEMAGICK_LIBS" | sed -e 's,///*,/,g'`
10823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$IMAGEMAGICK_CFLAGS' LIBS='$IMAGEMAGICK_LIBS'" >&5
10824 $as_echo "yes CFLAGS='$IMAGEMAGICK_CFLAGS' LIBS='$IMAGEMAGICK_LIBS'" >&6; }
10825 succeeded=yes
10826 else
10827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10828 $as_echo "no" >&6; }
10829 IMAGEMAGICK_CFLAGS=""
10830 IMAGEMAGICK_LIBS=""
10831 ## If we have a custom action on failure, don't print errors, but
10832 ## do set a variable so people can do so. Do it in a subshell
10833 ## to capture any diagnostics in invoking pkg-config.
10834 IMAGEMAGICK_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "$IMAGEMAGICK_MODULE") 2>&1`
10840 else
10841 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10842 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10846 if test $succeeded = yes; then
10847 HAVE_IMAGEMAGICK=yes
10848 else
10855 if test $HAVE_IMAGEMAGICK = yes; then
10857 $as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
10859 CFLAGS="$CFLAGS $IMAGEMAGICK_CFLAGS"
10860 LIBS="$IMAGEMAGICK_LIBS $LIBS"
10861 for ac_func in MagickExportImagePixels MagickMergeImageLayers
10862 do :
10863 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10864 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10865 eval as_val=\$$as_ac_var
10866 if test "x$as_val" = x""yes; then :
10867 cat >>confdefs.h <<_ACEOF
10868 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10869 _ACEOF
10872 done
10879 HAVE_GTK=no
10880 GTK_OBJ=
10881 check_gtk2=no
10882 gtk3_pkg_errors=
10883 if test "${with_gtk3}" = "yes" || test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
10884 GLIB_REQUIRED=2.28
10885 GTK_REQUIRED=3.0
10886 GTK_MODULES="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10889 succeeded=no
10891 if test "$PKG_CONFIG" = "no" ; then
10892 pkg_check_gtk=no
10893 else
10894 PKG_CONFIG_MIN_VERSION=0.9.0
10895 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
10897 $as_echo_n "checking for $GTK_MODULES... " >&6; }
10899 if "$PKG_CONFIG" --exists "$GTK_MODULES" 2>&5 &&
10900 GTK_CFLAGS=`"$PKG_CONFIG" --cflags "$GTK_MODULES" 2>&5` &&
10901 GTK_LIBS=`"$PKG_CONFIG" --libs "$GTK_MODULES" 2>&5`; then
10902 edit_cflags="
10903 s,///*,/,g
10904 s/^/ /
10905 s/ -I/ $isystem/g
10906 s/^ //
10908 GTK_CFLAGS=`$as_echo "$GTK_CFLAGS" | sed -e "$edit_cflags"`
10909 GTK_LIBS=`$as_echo "$GTK_LIBS" | sed -e 's,///*,/,g'`
10910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&5
10911 $as_echo "yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&6; }
10912 succeeded=yes
10913 else
10914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10915 $as_echo "no" >&6; }
10916 GTK_CFLAGS=""
10917 GTK_LIBS=""
10918 ## If we have a custom action on failure, don't print errors, but
10919 ## do set a variable so people can do so. Do it in a subshell
10920 ## to capture any diagnostics in invoking pkg-config.
10921 GTK_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "$GTK_MODULES") 2>&1`
10927 else
10928 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10929 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10933 if test $succeeded = yes; then
10934 pkg_check_gtk=yes
10935 else
10936 pkg_check_gtk=no
10939 if test "$pkg_check_gtk" = "no" && test "$with_gtk3" = "yes"; then
10940 as_fn_error "$GTK_PKG_ERRORS" "$LINENO" 5
10942 if test "$pkg_check_gtk" = "yes"; then
10944 $as_echo "#define HAVE_GTK3 1" >>confdefs.h
10946 GTK_OBJ=emacsgtkfixed.o
10947 term_header=gtkutil.h
10948 USE_GTK_TOOLKIT="GTK3"
10949 if test "x$ac_enable_gtk_deprecation_warnings" = x; then
10950 GTK_CFLAGS="$GTK_CFLAGS -DGDK_DISABLE_DEPRECATION_WARNINGS"
10952 else
10953 check_gtk2=yes
10954 gtk3_pkg_errors="$GTK_PKG_ERRORS "
10958 if test "${with_gtk2}" = "yes" || test "$check_gtk2" = "yes"; then
10959 GLIB_REQUIRED=2.10
10960 GTK_REQUIRED=2.10
10961 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10964 succeeded=no
10966 if test "$PKG_CONFIG" = "no" ; then
10967 pkg_check_gtk=no
10968 else
10969 PKG_CONFIG_MIN_VERSION=0.9.0
10970 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
10972 $as_echo_n "checking for $GTK_MODULES... " >&6; }
10974 if "$PKG_CONFIG" --exists "$GTK_MODULES" 2>&5 &&
10975 GTK_CFLAGS=`"$PKG_CONFIG" --cflags "$GTK_MODULES" 2>&5` &&
10976 GTK_LIBS=`"$PKG_CONFIG" --libs "$GTK_MODULES" 2>&5`; then
10977 edit_cflags="
10978 s,///*,/,g
10979 s/^/ /
10980 s/ -I/ $isystem/g
10981 s/^ //
10983 GTK_CFLAGS=`$as_echo "$GTK_CFLAGS" | sed -e "$edit_cflags"`
10984 GTK_LIBS=`$as_echo "$GTK_LIBS" | sed -e 's,///*,/,g'`
10985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&5
10986 $as_echo "yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&6; }
10987 succeeded=yes
10988 else
10989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10990 $as_echo "no" >&6; }
10991 GTK_CFLAGS=""
10992 GTK_LIBS=""
10993 ## If we have a custom action on failure, don't print errors, but
10994 ## do set a variable so people can do so. Do it in a subshell
10995 ## to capture any diagnostics in invoking pkg-config.
10996 GTK_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "$GTK_MODULES") 2>&1`
11002 else
11003 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11004 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11008 if test $succeeded = yes; then
11009 pkg_check_gtk=yes
11010 else
11011 pkg_check_gtk=no
11014 if test "$pkg_check_gtk" = "no" &&
11015 { test "$with_gtk" = yes || test "$with_gtk2" = "yes"; }
11016 then
11017 as_fn_error "$gtk3_pkg_errors$GTK_PKG_ERRORS" "$LINENO" 5
11019 test "$pkg_check_gtk" = "yes" && USE_GTK_TOOLKIT="GTK2"
11022 if test x"$pkg_check_gtk" = xyes; then
11026 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
11027 CFLAGS="$CFLAGS $GTK_CFLAGS"
11028 LIBS="$GTK_LIBS $LIBS"
11029 GTK_COMPILES=no
11030 for ac_func in gtk_main
11031 do :
11032 ac_fn_c_check_func "$LINENO" "gtk_main" "ac_cv_func_gtk_main"
11033 if test "x$ac_cv_func_gtk_main" = x""yes; then :
11034 cat >>confdefs.h <<_ACEOF
11035 #define HAVE_GTK_MAIN 1
11036 _ACEOF
11037 GTK_COMPILES=yes
11039 done
11041 if test "${GTK_COMPILES}" != "yes"; then
11042 if test "$USE_X_TOOLKIT" != "maybe"; then
11043 as_fn_error "Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
11045 else
11046 HAVE_GTK=yes
11048 $as_echo "#define USE_GTK 1" >>confdefs.h
11050 GTK_OBJ="gtkutil.o $GTK_OBJ"
11051 USE_X_TOOLKIT=none
11052 if "$PKG_CONFIG" --atleast-version=2.10 gtk+-2.0; then
11054 else
11055 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
11056 closing open displays. This is no problem if you just use
11057 one display, but if you use more than one and close one of them
11058 Emacs may crash." >&5
11059 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
11060 closing open displays. This is no problem if you just use
11061 one display, but if you use more than one and close one of them
11062 Emacs may crash." >&2;}
11063 sleep 3
11071 if test "${HAVE_GTK}" = "yes"; then
11073 if test "$with_toolkit_scroll_bars" != no; then
11074 with_toolkit_scroll_bars=yes
11077 HAVE_GTK_FILE_SELECTION=no
11078 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
11079 #include <gtk/gtk.h>
11081 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x""yes; then :
11082 HAVE_GTK_FILE_SELECTION=yes
11083 else
11084 HAVE_GTK_FILE_SELECTION=no
11087 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
11088 for ac_func in gtk_file_selection_new
11089 do :
11090 ac_fn_c_check_func "$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
11091 if test "x$ac_cv_func_gtk_file_selection_new" = x""yes; then :
11092 cat >>confdefs.h <<_ACEOF
11093 #define HAVE_GTK_FILE_SELECTION_NEW 1
11094 _ACEOF
11097 done
11101 HAVE_GTK_HANDLE_BOX=no
11102 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_HANDLE_BOX" "ac_cv_have_decl_GTK_TYPE_HANDLE_BOX" "$ac_includes_default
11103 #include <gtk/gtk.h>
11105 if test "x$ac_cv_have_decl_GTK_TYPE_HANDLE_BOX" = x""yes; then :
11106 HAVE_GTK_HANDLE_BOX=yes
11107 else
11108 HAVE_GTK_HANDLE_BOX=no
11111 if test "$HAVE_GTK_HANDLE_BOX" = yes; then
11112 for ac_func in gtk_handle_box_new
11113 do :
11114 ac_fn_c_check_func "$LINENO" "gtk_handle_box_new" "ac_cv_func_gtk_handle_box_new"
11115 if test "x$ac_cv_func_gtk_handle_box_new" = x""yes; then :
11116 cat >>confdefs.h <<_ACEOF
11117 #define HAVE_GTK_HANDLE_BOX_NEW 1
11118 _ACEOF
11121 done
11125 HAVE_GTK_TEAROFF_MENU_ITEM=no
11126 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_TEAROFF_MENU_ITEM" "ac_cv_have_decl_GTK_TYPE_TEAROFF_MENU_ITEM" "$ac_includes_default
11127 #include <gtk/gtk.h>
11129 if test "x$ac_cv_have_decl_GTK_TYPE_TEAROFF_MENU_ITEM" = x""yes; then :
11130 HAVE_GTK_TEAROFF_MENU_ITEM=yes
11131 else
11132 HAVE_GTK_TEAROFF_MENU_ITEM=no
11135 if test "$HAVE_GTK_TEAROFF_MENU_ITEM" = yes; then
11136 for ac_func in gtk_tearoff_menu_item_new
11137 do :
11138 ac_fn_c_check_func "$LINENO" "gtk_tearoff_menu_item_new" "ac_cv_func_gtk_tearoff_menu_item_new"
11139 if test "x$ac_cv_func_gtk_tearoff_menu_item_new" = x""yes; then :
11140 cat >>confdefs.h <<_ACEOF
11141 #define HAVE_GTK_TEAROFF_MENU_ITEM_NEW 1
11142 _ACEOF
11145 done
11149 for ac_func in gtk_widget_get_window gtk_widget_set_has_window \
11150 gtk_dialog_get_action_area gtk_widget_get_sensitive \
11151 gtk_widget_get_mapped gtk_adjustment_get_page_size \
11152 gtk_orientable_set_orientation \
11153 gtk_window_set_has_resize_grip
11154 do :
11155 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11156 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11157 eval as_val=\$$as_ac_var
11158 if test "x$as_val" = x""yes; then :
11159 cat >>confdefs.h <<_ACEOF
11160 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11161 _ACEOF
11164 done
11167 term_header=gtkutil.h
11170 HAVE_DBUS=no
11171 DBUS_OBJ=
11172 if test "${with_dbus}" = "yes"; then
11174 succeeded=no
11176 if test "$PKG_CONFIG" = "no" ; then
11177 HAVE_DBUS=no
11178 else
11179 PKG_CONFIG_MIN_VERSION=0.9.0
11180 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
11182 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
11184 if "$PKG_CONFIG" --exists "dbus-1 >= 1.0" 2>&5 &&
11185 DBUS_CFLAGS=`"$PKG_CONFIG" --cflags "dbus-1 >= 1.0" 2>&5` &&
11186 DBUS_LIBS=`"$PKG_CONFIG" --libs "dbus-1 >= 1.0" 2>&5`; then
11187 edit_cflags="
11188 s,///*,/,g
11189 s/^/ /
11190 s/ -I/ $isystem/g
11191 s/^ //
11193 DBUS_CFLAGS=`$as_echo "$DBUS_CFLAGS" | sed -e "$edit_cflags"`
11194 DBUS_LIBS=`$as_echo "$DBUS_LIBS" | sed -e 's,///*,/,g'`
11195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$DBUS_CFLAGS' LIBS='$DBUS_LIBS'" >&5
11196 $as_echo "yes CFLAGS='$DBUS_CFLAGS' LIBS='$DBUS_LIBS'" >&6; }
11197 succeeded=yes
11198 else
11199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11200 $as_echo "no" >&6; }
11201 DBUS_CFLAGS=""
11202 DBUS_LIBS=""
11203 ## If we have a custom action on failure, don't print errors, but
11204 ## do set a variable so people can do so. Do it in a subshell
11205 ## to capture any diagnostics in invoking pkg-config.
11206 DBUS_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "dbus-1 >= 1.0") 2>&1`
11212 else
11213 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11214 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11218 if test $succeeded = yes; then
11219 HAVE_DBUS=yes
11220 else
11221 HAVE_DBUS=no
11224 if test "$HAVE_DBUS" = yes; then
11225 LIBS="$LIBS $DBUS_LIBS"
11227 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
11229 for ac_func in dbus_watch_get_unix_fd \
11230 dbus_type_is_valid \
11231 dbus_validate_bus_name \
11232 dbus_validate_path \
11233 dbus_validate_interface \
11234 dbus_validate_member
11235 do :
11236 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11237 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11238 eval as_val=\$$as_ac_var
11239 if test "x$as_val" = x""yes; then :
11240 cat >>confdefs.h <<_ACEOF
11241 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11242 _ACEOF
11245 done
11247 DBUS_OBJ=dbusbind.o
11252 HAVE_GSETTINGS=no
11253 if test "${HAVE_X11}" = "yes" && test "${with_gsettings}" = "yes"; then
11255 succeeded=no
11257 if test "$PKG_CONFIG" = "no" ; then
11258 HAVE_GSETTINGS=no
11259 else
11260 PKG_CONFIG_MIN_VERSION=0.9.0
11261 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gio-2.0 >= 2.26" >&5
11263 $as_echo_n "checking for gio-2.0 >= 2.26... " >&6; }
11265 if "$PKG_CONFIG" --exists "gio-2.0 >= 2.26" 2>&5 &&
11266 GSETTINGS_CFLAGS=`"$PKG_CONFIG" --cflags "gio-2.0 >= 2.26" 2>&5` &&
11267 GSETTINGS_LIBS=`"$PKG_CONFIG" --libs "gio-2.0 >= 2.26" 2>&5`; then
11268 edit_cflags="
11269 s,///*,/,g
11270 s/^/ /
11271 s/ -I/ $isystem/g
11272 s/^ //
11274 GSETTINGS_CFLAGS=`$as_echo "$GSETTINGS_CFLAGS" | sed -e "$edit_cflags"`
11275 GSETTINGS_LIBS=`$as_echo "$GSETTINGS_LIBS" | sed -e 's,///*,/,g'`
11276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GSETTINGS_CFLAGS' LIBS='$GSETTINGS_LIBS'" >&5
11277 $as_echo "yes CFLAGS='$GSETTINGS_CFLAGS' LIBS='$GSETTINGS_LIBS'" >&6; }
11278 succeeded=yes
11279 else
11280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11281 $as_echo "no" >&6; }
11282 GSETTINGS_CFLAGS=""
11283 GSETTINGS_LIBS=""
11284 ## If we have a custom action on failure, don't print errors, but
11285 ## do set a variable so people can do so. Do it in a subshell
11286 ## to capture any diagnostics in invoking pkg-config.
11287 GSETTINGS_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "gio-2.0 >= 2.26") 2>&1`
11293 else
11294 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11295 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11299 if test $succeeded = yes; then
11300 HAVE_GSETTINGS=yes
11301 else
11302 HAVE_GSETTINGS=no
11305 if test "$HAVE_GSETTINGS" = "yes"; then
11307 $as_echo "#define HAVE_GSETTINGS 1" >>confdefs.h
11309 SETTINGS_CFLAGS="$GSETTINGS_CFLAGS"
11310 SETTINGS_LIBS="$GSETTINGS_LIBS"
11314 HAVE_GCONF=no
11315 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
11317 succeeded=no
11319 if test "$PKG_CONFIG" = "no" ; then
11320 HAVE_GCONF=no
11321 else
11322 PKG_CONFIG_MIN_VERSION=0.9.0
11323 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
11325 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
11327 if "$PKG_CONFIG" --exists "gconf-2.0 >= 2.13" 2>&5 &&
11328 GCONF_CFLAGS=`"$PKG_CONFIG" --cflags "gconf-2.0 >= 2.13" 2>&5` &&
11329 GCONF_LIBS=`"$PKG_CONFIG" --libs "gconf-2.0 >= 2.13" 2>&5`; then
11330 edit_cflags="
11331 s,///*,/,g
11332 s/^/ /
11333 s/ -I/ $isystem/g
11334 s/^ //
11336 GCONF_CFLAGS=`$as_echo "$GCONF_CFLAGS" | sed -e "$edit_cflags"`
11337 GCONF_LIBS=`$as_echo "$GCONF_LIBS" | sed -e 's,///*,/,g'`
11338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GCONF_CFLAGS' LIBS='$GCONF_LIBS'" >&5
11339 $as_echo "yes CFLAGS='$GCONF_CFLAGS' LIBS='$GCONF_LIBS'" >&6; }
11340 succeeded=yes
11341 else
11342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11343 $as_echo "no" >&6; }
11344 GCONF_CFLAGS=""
11345 GCONF_LIBS=""
11346 ## If we have a custom action on failure, don't print errors, but
11347 ## do set a variable so people can do so. Do it in a subshell
11348 ## to capture any diagnostics in invoking pkg-config.
11349 GCONF_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "gconf-2.0 >= 2.13") 2>&1`
11355 else
11356 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11357 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11361 if test $succeeded = yes; then
11362 HAVE_GCONF=yes
11363 else
11364 HAVE_GCONF=no
11367 if test "$HAVE_GCONF" = yes; then
11369 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
11371 SETTINGS_CFLAGS="$SETTINGS_CFLAGS $GCONF_CFLAGS"
11372 SETTINGS_LIBS="$SETTINGS_LIBS $GCONF_LIBS"
11376 if test "$HAVE_GSETTINGS" = "yes" || test "$HAVE_GCONF" = "yes"; then
11378 succeeded=no
11380 if test "$PKG_CONFIG" = "no" ; then
11381 HAVE_GOBJECT=no
11382 else
11383 PKG_CONFIG_MIN_VERSION=0.9.0
11384 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gobject-2.0 >= 2.0" >&5
11386 $as_echo_n "checking for gobject-2.0 >= 2.0... " >&6; }
11388 if "$PKG_CONFIG" --exists "gobject-2.0 >= 2.0" 2>&5 &&
11389 GOBJECT_CFLAGS=`"$PKG_CONFIG" --cflags "gobject-2.0 >= 2.0" 2>&5` &&
11390 GOBJECT_LIBS=`"$PKG_CONFIG" --libs "gobject-2.0 >= 2.0" 2>&5`; then
11391 edit_cflags="
11392 s,///*,/,g
11393 s/^/ /
11394 s/ -I/ $isystem/g
11395 s/^ //
11397 GOBJECT_CFLAGS=`$as_echo "$GOBJECT_CFLAGS" | sed -e "$edit_cflags"`
11398 GOBJECT_LIBS=`$as_echo "$GOBJECT_LIBS" | sed -e 's,///*,/,g'`
11399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GOBJECT_CFLAGS' LIBS='$GOBJECT_LIBS'" >&5
11400 $as_echo "yes CFLAGS='$GOBJECT_CFLAGS' LIBS='$GOBJECT_LIBS'" >&6; }
11401 succeeded=yes
11402 else
11403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11404 $as_echo "no" >&6; }
11405 GOBJECT_CFLAGS=""
11406 GOBJECT_LIBS=""
11407 ## If we have a custom action on failure, don't print errors, but
11408 ## do set a variable so people can do so. Do it in a subshell
11409 ## to capture any diagnostics in invoking pkg-config.
11410 GOBJECT_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "gobject-2.0 >= 2.0") 2>&1`
11416 else
11417 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11418 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11422 if test $succeeded = yes; then
11423 HAVE_GOBJECT=yes
11424 else
11425 HAVE_GOBJECT=no
11428 if test "$HAVE_GOBJECT" = "yes"; then
11429 SETTINGS_CFLAGS="$SETTINGS_CFLAGS $GOBJECT_CFLAGS"
11430 SETTINGS_LIBS="$SETTINGS_LIBS $GOBJECT_LIBS"
11432 SAVE_CFLAGS="$CFLAGS"
11433 SAVE_LIBS="$LIBS"
11434 CFLAGS="$SETTINGS_CFLAGS $CFLAGS"
11435 LIBS="$SETTINGS_LIBS $LIBS"
11436 for ac_func in g_type_init
11437 do :
11438 ac_fn_c_check_func "$LINENO" "g_type_init" "ac_cv_func_g_type_init"
11439 if test "x$ac_cv_func_g_type_init" = x""yes; then :
11440 cat >>confdefs.h <<_ACEOF
11441 #define HAVE_G_TYPE_INIT 1
11442 _ACEOF
11445 done
11447 CFLAGS="$SAVE_CFLAGS"
11448 LIBS="$SAVE_LIBS"
11454 HAVE_LIBSELINUX=no
11455 LIBSELINUX_LIBS=
11456 if test "${with_selinux}" = "yes"; then
11457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
11458 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
11459 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then :
11460 $as_echo_n "(cached) " >&6
11461 else
11462 ac_check_lib_save_LIBS=$LIBS
11463 LIBS="-lselinux $LIBS"
11464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11465 /* end confdefs.h. */
11467 /* Override any GCC internal prototype to avoid an error.
11468 Use char because int might match the return type of a GCC
11469 builtin and then its argument prototype would still apply. */
11470 #ifdef __cplusplus
11471 extern "C"
11472 #endif
11473 char lgetfilecon ();
11475 main ()
11477 return lgetfilecon ();
11479 return 0;
11481 _ACEOF
11482 if ac_fn_c_try_link "$LINENO"; then :
11483 ac_cv_lib_selinux_lgetfilecon=yes
11484 else
11485 ac_cv_lib_selinux_lgetfilecon=no
11487 rm -f core conftest.err conftest.$ac_objext \
11488 conftest$ac_exeext conftest.$ac_ext
11489 LIBS=$ac_check_lib_save_LIBS
11491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
11492 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
11493 if test "x$ac_cv_lib_selinux_lgetfilecon" = x""yes; then :
11494 HAVE_LIBSELINUX=yes
11495 else
11496 HAVE_LIBSELINUX=no
11499 if test "$HAVE_LIBSELINUX" = yes; then
11501 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
11503 LIBSELINUX_LIBS=-lselinux
11508 HAVE_GNUTLS=no
11509 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY=no
11510 if test "${with_gnutls}" = "yes" ; then
11512 succeeded=no
11514 if test "$PKG_CONFIG" = "no" ; then
11515 HAVE_GNUTLS=no
11516 else
11517 PKG_CONFIG_MIN_VERSION=0.9.0
11518 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.6.6" >&5
11520 $as_echo_n "checking for gnutls >= 2.6.6... " >&6; }
11522 if "$PKG_CONFIG" --exists "gnutls >= 2.6.6" 2>&5 &&
11523 LIBGNUTLS_CFLAGS=`"$PKG_CONFIG" --cflags "gnutls >= 2.6.6" 2>&5` &&
11524 LIBGNUTLS_LIBS=`"$PKG_CONFIG" --libs "gnutls >= 2.6.6" 2>&5`; then
11525 edit_cflags="
11526 s,///*,/,g
11527 s/^/ /
11528 s/ -I/ $isystem/g
11529 s/^ //
11531 LIBGNUTLS_CFLAGS=`$as_echo "$LIBGNUTLS_CFLAGS" | sed -e "$edit_cflags"`
11532 LIBGNUTLS_LIBS=`$as_echo "$LIBGNUTLS_LIBS" | sed -e 's,///*,/,g'`
11533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBGNUTLS_CFLAGS' LIBS='$LIBGNUTLS_LIBS'" >&5
11534 $as_echo "yes CFLAGS='$LIBGNUTLS_CFLAGS' LIBS='$LIBGNUTLS_LIBS'" >&6; }
11535 succeeded=yes
11536 else
11537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11538 $as_echo "no" >&6; }
11539 LIBGNUTLS_CFLAGS=""
11540 LIBGNUTLS_LIBS=""
11541 ## If we have a custom action on failure, don't print errors, but
11542 ## do set a variable so people can do so. Do it in a subshell
11543 ## to capture any diagnostics in invoking pkg-config.
11544 LIBGNUTLS_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "gnutls >= 2.6.6") 2>&1`
11550 else
11551 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11552 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11556 if test $succeeded = yes; then
11557 HAVE_GNUTLS=yes
11558 else
11559 HAVE_GNUTLS=no
11562 if test "${HAVE_GNUTLS}" = "yes"; then
11564 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
11568 CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
11569 LIBS="$LIBGNUTLS_LIBS $LIBS"
11570 for ac_func in gnutls_certificate_set_verify_function
11571 do :
11572 ac_fn_c_check_func "$LINENO" "gnutls_certificate_set_verify_function" "ac_cv_func_gnutls_certificate_set_verify_function"
11573 if test "x$ac_cv_func_gnutls_certificate_set_verify_function" = x""yes; then :
11574 cat >>confdefs.h <<_ACEOF
11575 #define HAVE_GNUTLS_CERTIFICATE_SET_VERIFY_FUNCTION 1
11576 _ACEOF
11577 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY=yes
11579 done
11582 if test "${HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY}" = "yes"; then
11584 $as_echo "#define HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY 1" >>confdefs.h
11592 if test "${with_inotify}" = "yes"; then
11593 for ac_header in sys/inotify.h
11594 do :
11595 ac_fn_c_check_header_mongrel "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
11596 if test "x$ac_cv_header_sys_inotify_h" = x""yes; then :
11597 cat >>confdefs.h <<_ACEOF
11598 #define HAVE_SYS_INOTIFY_H 1
11599 _ACEOF
11603 done
11605 if test "$ac_cv_header_sys_inotify_h" = yes ; then
11606 ac_fn_c_check_func "$LINENO" "inotify_init1" "ac_cv_func_inotify_init1"
11607 if test "x$ac_cv_func_inotify_init1" = x""yes; then :
11613 if test "$ac_cv_func_inotify_init1" = yes; then
11615 $as_echo "#define HAVE_INOTIFY 1" >>confdefs.h
11619 HAVE_POSIX_ACL=no
11620 LIBACL_LIBS=
11621 if test "${with_acl}" = "yes"; then
11622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_set_file in -lacl" >&5
11623 $as_echo_n "checking for acl_set_file in -lacl... " >&6; }
11624 if test "${ac_cv_lib_acl_acl_set_file+set}" = set; then :
11625 $as_echo_n "(cached) " >&6
11626 else
11627 ac_check_lib_save_LIBS=$LIBS
11628 LIBS="-lacl $LIBS"
11629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11630 /* end confdefs.h. */
11632 /* Override any GCC internal prototype to avoid an error.
11633 Use char because int might match the return type of a GCC
11634 builtin and then its argument prototype would still apply. */
11635 #ifdef __cplusplus
11636 extern "C"
11637 #endif
11638 char acl_set_file ();
11640 main ()
11642 return acl_set_file ();
11644 return 0;
11646 _ACEOF
11647 if ac_fn_c_try_link "$LINENO"; then :
11648 ac_cv_lib_acl_acl_set_file=yes
11649 else
11650 ac_cv_lib_acl_acl_set_file=no
11652 rm -f core conftest.err conftest.$ac_objext \
11653 conftest$ac_exeext conftest.$ac_ext
11654 LIBS=$ac_check_lib_save_LIBS
11656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_acl_acl_set_file" >&5
11657 $as_echo "$ac_cv_lib_acl_acl_set_file" >&6; }
11658 if test "x$ac_cv_lib_acl_acl_set_file" = x""yes; then :
11659 HAVE_POSIX_ACL=yes
11660 else
11661 HAVE_POSIX_ACL=no
11664 if test "$HAVE_POSIX_ACL" = yes; then
11666 $as_echo "#define HAVE_POSIX_ACL 1" >>confdefs.h
11668 LIBACL_LIBS=-lacl
11669 else
11670 ac_fn_c_check_func "$LINENO" "acl_set_file" "ac_cv_func_acl_set_file"
11671 if test "x$ac_cv_func_acl_set_file" = x""yes; then :
11672 HAVE_POSIX_ACL=yes
11673 else
11674 HAVE_POSIX_ACL=no
11677 if test "$HAVE_POSIX_ACL" = yes; then
11679 $as_echo "#define HAVE_POSIX_ACL 1" >>confdefs.h
11686 HAVE_XAW3D=no
11687 LUCID_LIBW=
11688 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
11689 if test "$with_xaw3d" != no; then
11690 if test "${emacs_cv_xaw3d+set}" = set; then :
11691 $as_echo_n "(cached) " >&6
11692 else
11693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11694 /* end confdefs.h. */
11696 #include <X11/Intrinsic.h>
11697 #include <X11/Xaw3d/Simple.h>
11699 main ()
11703 return 0;
11705 _ACEOF
11706 if ac_fn_c_try_link "$LINENO"; then :
11707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XawScrollbarSetThumb in -lXaw3d" >&5
11708 $as_echo_n "checking for XawScrollbarSetThumb in -lXaw3d... " >&6; }
11709 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then :
11710 $as_echo_n "(cached) " >&6
11711 else
11712 ac_check_lib_save_LIBS=$LIBS
11713 LIBS="-lXaw3d $LIBS"
11714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11715 /* end confdefs.h. */
11717 /* Override any GCC internal prototype to avoid an error.
11718 Use char because int might match the return type of a GCC
11719 builtin and then its argument prototype would still apply. */
11720 #ifdef __cplusplus
11721 extern "C"
11722 #endif
11723 char XawScrollbarSetThumb ();
11725 main ()
11727 return XawScrollbarSetThumb ();
11729 return 0;
11731 _ACEOF
11732 if ac_fn_c_try_link "$LINENO"; then :
11733 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
11734 else
11735 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
11737 rm -f core conftest.err conftest.$ac_objext \
11738 conftest$ac_exeext conftest.$ac_ext
11739 LIBS=$ac_check_lib_save_LIBS
11741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
11742 $as_echo "$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
11743 if test "x$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" = x""yes; then :
11744 emacs_cv_xaw3d=yes
11745 else
11746 emacs_cv_xaw3d=no
11749 else
11750 emacs_cv_xaw3d=no
11752 rm -f core conftest.err conftest.$ac_objext \
11753 conftest$ac_exeext conftest.$ac_ext
11756 else
11757 emacs_cv_xaw3d=no
11759 if test $emacs_cv_xaw3d = yes; then
11760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
11761 $as_echo_n "checking for xaw3d... " >&6; }
11762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
11763 $as_echo "yes; using Lucid toolkit" >&6; }
11764 USE_X_TOOLKIT=LUCID
11765 HAVE_XAW3D=yes
11766 LUCID_LIBW=-lXaw3d
11768 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
11770 else
11771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
11772 $as_echo_n "checking for xaw3d... " >&6; }
11773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11774 $as_echo "no" >&6; }
11775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
11776 $as_echo_n "checking for libXaw... " >&6; }
11777 if test "${emacs_cv_xaw+set}" = set; then :
11778 $as_echo_n "(cached) " >&6
11779 else
11780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11781 /* end confdefs.h. */
11783 #include <X11/Intrinsic.h>
11784 #include <X11/Xaw/Simple.h>
11786 main ()
11790 return 0;
11792 _ACEOF
11793 if ac_fn_c_try_link "$LINENO"; then :
11794 emacs_cv_xaw=yes
11795 else
11796 emacs_cv_xaw=no
11798 rm -f core conftest.err conftest.$ac_objext \
11799 conftest$ac_exeext conftest.$ac_ext
11802 if test $emacs_cv_xaw = yes; then
11803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
11804 $as_echo "yes; using Lucid toolkit" >&6; }
11805 USE_X_TOOLKIT=LUCID
11806 LUCID_LIBW=-lXaw
11807 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
11808 as_fn_error "Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
11809 else
11810 as_fn_error "No X toolkit could be found.
11811 If you are sure you want Emacs compiled without an X toolkit, pass
11812 --with-x-toolkit=no
11813 to configure. Otherwise, install the development libraries for the toolkit
11814 that you want to use (e.g. Gtk+) and re-run configure." "$LINENO" 5
11819 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
11821 LIBXTR6=
11822 if test "${USE_X_TOOLKIT}" != "none"; then
11823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
11824 $as_echo_n "checking X11 toolkit version... " >&6; }
11825 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then :
11826 $as_echo_n "(cached) " >&6
11827 else
11828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11829 /* end confdefs.h. */
11830 #include <X11/Intrinsic.h>
11832 main ()
11834 #if XtSpecificationRelease < 6
11835 fail;
11836 #endif
11839 return 0;
11841 _ACEOF
11842 if ac_fn_c_try_link "$LINENO"; then :
11843 emacs_cv_x11_toolkit_version_6=yes
11844 else
11845 emacs_cv_x11_toolkit_version_6=no
11847 rm -f core conftest.err conftest.$ac_objext \
11848 conftest$ac_exeext conftest.$ac_ext
11851 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
11852 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
11854 $as_echo "6 or newer" >&6; }
11856 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
11858 LIBXTR6="-lSM -lICE"
11859 case "$opsys" in
11860 ## Use libw.a along with X11R6 Xt.
11861 unixware) LIBXTR6="$LIBXTR6 -lw" ;;
11862 esac
11863 else
11864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
11865 $as_echo "before 6" >&6; }
11868 OLDLIBS="$LIBS"
11869 if test x$HAVE_X11XTR6 = xyes; then
11870 LIBS="-lXt -lSM -lICE $LIBS"
11871 else
11872 LIBS="-lXt $LIBS"
11874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
11875 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
11876 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then :
11877 $as_echo_n "(cached) " >&6
11878 else
11879 ac_check_lib_save_LIBS=$LIBS
11880 LIBS="-lXmu $LIBS"
11881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11882 /* end confdefs.h. */
11884 /* Override any GCC internal prototype to avoid an error.
11885 Use char because int might match the return type of a GCC
11886 builtin and then its argument prototype would still apply. */
11887 #ifdef __cplusplus
11888 extern "C"
11889 #endif
11890 char XmuConvertStandardSelection ();
11892 main ()
11894 return XmuConvertStandardSelection ();
11896 return 0;
11898 _ACEOF
11899 if ac_fn_c_try_link "$LINENO"; then :
11900 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
11901 else
11902 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
11904 rm -f core conftest.err conftest.$ac_objext \
11905 conftest$ac_exeext conftest.$ac_ext
11906 LIBS=$ac_check_lib_save_LIBS
11908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
11909 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
11910 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x""yes; then :
11911 cat >>confdefs.h <<_ACEOF
11912 #define HAVE_LIBXMU 1
11913 _ACEOF
11915 LIBS="-lXmu $LIBS"
11919 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
11923 LIBXMU=-lXmu
11924 case $opsys in
11925 ## These systems don't supply Xmu.
11926 hpux* | aix4-2 )
11927 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU=
11929 esac
11932 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
11933 if test "${HAVE_X11}" = "yes"; then
11934 if test "${USE_X_TOOLKIT}" != "none"; then
11935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
11936 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
11937 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
11938 $as_echo_n "(cached) " >&6
11939 else
11940 ac_check_lib_save_LIBS=$LIBS
11941 LIBS="-lXext $LIBS"
11942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11943 /* end confdefs.h. */
11945 /* Override any GCC internal prototype to avoid an error.
11946 Use char because int might match the return type of a GCC
11947 builtin and then its argument prototype would still apply. */
11948 #ifdef __cplusplus
11949 extern "C"
11950 #endif
11951 char XShapeQueryExtension ();
11953 main ()
11955 return XShapeQueryExtension ();
11957 return 0;
11959 _ACEOF
11960 if ac_fn_c_try_link "$LINENO"; then :
11961 ac_cv_lib_Xext_XShapeQueryExtension=yes
11962 else
11963 ac_cv_lib_Xext_XShapeQueryExtension=no
11965 rm -f core conftest.err conftest.$ac_objext \
11966 conftest$ac_exeext conftest.$ac_ext
11967 LIBS=$ac_check_lib_save_LIBS
11969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
11970 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
11971 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then :
11972 cat >>confdefs.h <<_ACEOF
11973 #define HAVE_LIBXEXT 1
11974 _ACEOF
11976 LIBS="-lXext $LIBS"
11983 LIBXP=
11984 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11985 # OpenMotif may be installed in such a way on some GNU/Linux systems.
11986 if test -d /usr/include/openmotif; then
11987 CPPFLAGS="-I/usr/include/openmotif $CPPFLAGS"
11988 emacs_cv_openmotif=yes
11989 case "$canonical" in
11990 x86_64-*-linux-gnu* | powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*)
11991 test -d /usr/lib64/openmotif && LDFLAGS="-L/usr/lib64/openmotif $LDFLAGS"
11994 test -d /usr/lib/openmotif && LDFLAGS="-L/usr/lib/openmotif $LDFLAGS"
11995 esac
11996 else
11997 emacs_cv_openmotif=no
11999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for (Open)Motif version 2.1" >&5
12000 $as_echo_n "checking for (Open)Motif version 2.1... " >&6; }
12001 if test "${emacs_cv_motif_version_2_1+set}" = set; then :
12002 $as_echo_n "(cached) " >&6
12003 else
12004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12005 /* end confdefs.h. */
12006 #include <Xm/Xm.h>
12008 main ()
12010 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12011 int x = 5;
12012 #else
12013 Motif version prior to 2.1.
12014 #endif
12016 return 0;
12018 _ACEOF
12019 if ac_fn_c_try_compile "$LINENO"; then :
12020 emacs_cv_motif_version_2_1=yes
12021 else
12022 emacs_cv_motif_version_2_1=no
12024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
12027 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
12028 if test $emacs_cv_motif_version_2_1 = yes; then
12029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
12030 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
12031 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then :
12032 $as_echo_n "(cached) " >&6
12033 else
12034 ac_check_lib_save_LIBS=$LIBS
12035 LIBS="-lXp $LIBS"
12036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12037 /* end confdefs.h. */
12039 /* Override any GCC internal prototype to avoid an error.
12040 Use char because int might match the return type of a GCC
12041 builtin and then its argument prototype would still apply. */
12042 #ifdef __cplusplus
12043 extern "C"
12044 #endif
12045 char XpCreateContext ();
12047 main ()
12049 return XpCreateContext ();
12051 return 0;
12053 _ACEOF
12054 if ac_fn_c_try_link "$LINENO"; then :
12055 ac_cv_lib_Xp_XpCreateContext=yes
12056 else
12057 ac_cv_lib_Xp_XpCreateContext=no
12059 rm -f core conftest.err conftest.$ac_objext \
12060 conftest$ac_exeext conftest.$ac_ext
12061 LIBS=$ac_check_lib_save_LIBS
12063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12064 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
12065 if test "x$ac_cv_lib_Xp_XpCreateContext" = x""yes; then :
12066 LIBXP=-lXp
12069 if test x$emacs_cv_openmotif = xyes; then
12070 REAL_CPPFLAGS="-I/usr/include/openmotif $REAL_CPPFLAGS"
12072 else
12073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
12074 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
12075 if test "${emacs_cv_lesstif+set}" = set; then :
12076 $as_echo_n "(cached) " >&6
12077 else
12078 # We put this in CFLAGS temporarily to precede other -I options
12079 # that might be in CFLAGS temporarily.
12080 # We put this in CPPFLAGS where it precedes the other -I options.
12081 OLD_CPPFLAGS=$CPPFLAGS
12082 OLD_CFLAGS=$CFLAGS
12083 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12084 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12086 /* end confdefs.h. */
12087 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12089 main ()
12091 int x = 5;
12093 return 0;
12095 _ACEOF
12096 if ac_fn_c_try_compile "$LINENO"; then :
12097 emacs_cv_lesstif=yes
12098 else
12099 emacs_cv_lesstif=no
12101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
12104 $as_echo "$emacs_cv_lesstif" >&6; }
12105 if test $emacs_cv_lesstif = yes; then
12106 # Make sure this -I option remains in CPPFLAGS after it is set
12107 # back to REAL_CPPFLAGS.
12108 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12109 # have those other -I options anyway. Ultimately, having this
12110 # directory ultimately in CPPFLAGS will be enough.
12111 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12112 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12113 else
12114 CFLAGS=$OLD_CFLAGS
12115 CPPFLAGS=$OLD_CPPFLAGS
12118 ac_fn_c_check_header_mongrel "$LINENO" "Xm/BulletinB.h" "ac_cv_header_Xm_BulletinB_h" "$ac_includes_default"
12119 if test "x$ac_cv_header_Xm_BulletinB_h" = x""yes; then :
12121 else
12122 as_fn_error "Motif toolkit requested but requirements not found." "$LINENO" 5
12129 USE_TOOLKIT_SCROLL_BARS=no
12130 if test "${with_toolkit_scroll_bars}" != "no"; then
12131 if test "${USE_X_TOOLKIT}" != "none"; then
12132 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12133 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12135 HAVE_XAW3D=no
12136 USE_TOOLKIT_SCROLL_BARS=yes
12137 elif test "${HAVE_XAW3D}" = "yes" || test "${USE_X_TOOLKIT}" = "LUCID"; then
12138 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12140 USE_TOOLKIT_SCROLL_BARS=yes
12142 elif test "${HAVE_GTK}" = "yes"; then
12143 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12145 USE_TOOLKIT_SCROLL_BARS=yes
12146 elif test "${HAVE_NS}" = "yes"; then
12147 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12149 USE_TOOLKIT_SCROLL_BARS=yes
12150 elif test "${HAVE_W32}" = "yes"; then
12151 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12153 USE_TOOLKIT_SCROLL_BARS=yes
12157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12158 /* end confdefs.h. */
12160 #include <X11/Xlib.h>
12161 #include <X11/Xresource.h>
12163 main ()
12165 XIMProc callback;
12167 return 0;
12169 _ACEOF
12170 if ac_fn_c_try_compile "$LINENO"; then :
12171 HAVE_XIM=yes
12173 $as_echo "#define HAVE_XIM 1" >>confdefs.h
12175 else
12176 HAVE_XIM=no
12178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12181 if test "${with_xim}" != "no"; then
12183 $as_echo "#define USE_XIM 1" >>confdefs.h
12188 if test "${HAVE_XIM}" != "no"; then
12189 late_CFLAGS=$CFLAGS
12190 if test "$GCC" = yes; then
12191 CFLAGS="$CFLAGS --pedantic-errors"
12193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12194 /* end confdefs.h. */
12196 #include <X11/Xlib.h>
12197 #include <X11/Xresource.h>
12199 main ()
12201 Display *display;
12202 XrmDatabase db;
12203 char *res_name;
12204 char *res_class;
12205 XIMProc callback;
12206 XPointer *client_data;
12207 #ifndef __GNUC__
12208 /* If we're not using GCC, it's probably not XFree86, and this is
12209 probably right, but we can't use something like --pedantic-errors. */
12210 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12211 char*, XIMProc, XPointer*);
12212 #endif
12213 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12214 client_data);
12216 return 0;
12218 _ACEOF
12219 if ac_fn_c_try_compile "$LINENO"; then :
12220 emacs_cv_arg6_star=yes
12222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12223 if test "$emacs_cv_arg6_star" = yes; then
12224 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
12226 else
12227 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
12230 CFLAGS=$late_CFLAGS
12233 ### Start of font-backend (under any platform) section.
12234 # (nothing here yet -- this is a placeholder)
12235 ### End of font-backend (under any platform) section.
12237 ### Start of font-backend (under X11) section.
12238 if test "${HAVE_X11}" = "yes"; then
12240 succeeded=no
12242 if test "$PKG_CONFIG" = "no" ; then
12243 HAVE_FC=no
12244 else
12245 PKG_CONFIG_MIN_VERSION=0.9.0
12246 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
12248 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
12250 if "$PKG_CONFIG" --exists "fontconfig >= 2.2.0" 2>&5 &&
12251 FONTCONFIG_CFLAGS=`"$PKG_CONFIG" --cflags "fontconfig >= 2.2.0" 2>&5` &&
12252 FONTCONFIG_LIBS=`"$PKG_CONFIG" --libs "fontconfig >= 2.2.0" 2>&5`; then
12253 edit_cflags="
12254 s,///*,/,g
12255 s/^/ /
12256 s/ -I/ $isystem/g
12257 s/^ //
12259 FONTCONFIG_CFLAGS=`$as_echo "$FONTCONFIG_CFLAGS" | sed -e "$edit_cflags"`
12260 FONTCONFIG_LIBS=`$as_echo "$FONTCONFIG_LIBS" | sed -e 's,///*,/,g'`
12261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$FONTCONFIG_CFLAGS' LIBS='$FONTCONFIG_LIBS'" >&5
12262 $as_echo "yes CFLAGS='$FONTCONFIG_CFLAGS' LIBS='$FONTCONFIG_LIBS'" >&6; }
12263 succeeded=yes
12264 else
12265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12266 $as_echo "no" >&6; }
12267 FONTCONFIG_CFLAGS=""
12268 FONTCONFIG_LIBS=""
12269 ## If we have a custom action on failure, don't print errors, but
12270 ## do set a variable so people can do so. Do it in a subshell
12271 ## to capture any diagnostics in invoking pkg-config.
12272 FONTCONFIG_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "fontconfig >= 2.2.0") 2>&1`
12278 else
12279 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12280 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12284 if test $succeeded = yes; then
12285 HAVE_FC=yes
12286 else
12287 HAVE_FC=no
12291 ## Use -lXft if available, unless `--with-xft=no'.
12292 HAVE_XFT=maybe
12293 if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then
12294 with_xft="no";
12296 if test "x${with_xft}" != "xno"; then
12299 succeeded=no
12301 if test "$PKG_CONFIG" = "no" ; then
12302 HAVE_XFT=no
12303 else
12304 PKG_CONFIG_MIN_VERSION=0.9.0
12305 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
12307 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
12309 if "$PKG_CONFIG" --exists "xft >= 0.13.0" 2>&5 &&
12310 XFT_CFLAGS=`"$PKG_CONFIG" --cflags "xft >= 0.13.0" 2>&5` &&
12311 XFT_LIBS=`"$PKG_CONFIG" --libs "xft >= 0.13.0" 2>&5`; then
12312 edit_cflags="
12313 s,///*,/,g
12314 s/^/ /
12315 s/ -I/ $isystem/g
12316 s/^ //
12318 XFT_CFLAGS=`$as_echo "$XFT_CFLAGS" | sed -e "$edit_cflags"`
12319 XFT_LIBS=`$as_echo "$XFT_LIBS" | sed -e 's,///*,/,g'`
12320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$XFT_CFLAGS' LIBS='$XFT_LIBS'" >&5
12321 $as_echo "yes CFLAGS='$XFT_CFLAGS' LIBS='$XFT_LIBS'" >&6; }
12322 succeeded=yes
12323 else
12324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12325 $as_echo "no" >&6; }
12326 XFT_CFLAGS=""
12327 XFT_LIBS=""
12328 ## If we have a custom action on failure, don't print errors, but
12329 ## do set a variable so people can do so. Do it in a subshell
12330 ## to capture any diagnostics in invoking pkg-config.
12331 XFT_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "xft >= 0.13.0") 2>&1`
12337 else
12338 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12339 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12343 if test $succeeded = yes; then
12345 else
12346 HAVE_XFT=no
12349 ## Because xftfont.c uses XRenderQueryExtension, we also
12350 ## need to link to -lXrender.
12351 HAVE_XRENDER=no
12352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
12353 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
12354 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
12355 $as_echo_n "(cached) " >&6
12356 else
12357 ac_check_lib_save_LIBS=$LIBS
12358 LIBS="-lXrender $LIBS"
12359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12360 /* end confdefs.h. */
12362 /* Override any GCC internal prototype to avoid an error.
12363 Use char because int might match the return type of a GCC
12364 builtin and then its argument prototype would still apply. */
12365 #ifdef __cplusplus
12366 extern "C"
12367 #endif
12368 char XRenderQueryExtension ();
12370 main ()
12372 return XRenderQueryExtension ();
12374 return 0;
12376 _ACEOF
12377 if ac_fn_c_try_link "$LINENO"; then :
12378 ac_cv_lib_Xrender_XRenderQueryExtension=yes
12379 else
12380 ac_cv_lib_Xrender_XRenderQueryExtension=no
12382 rm -f core conftest.err conftest.$ac_objext \
12383 conftest$ac_exeext conftest.$ac_ext
12384 LIBS=$ac_check_lib_save_LIBS
12386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
12387 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
12388 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x""yes; then :
12389 HAVE_XRENDER=yes
12392 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
12393 OLD_CPPFLAGS="$CPPFLAGS"
12394 OLD_CFLAGS="$CFLAGS"
12395 OLD_LIBS="$LIBS"
12396 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
12397 CFLAGS="$CFLAGS $XFT_CFLAGS"
12398 XFT_LIBS="-lXrender $XFT_LIBS"
12399 LIBS="$XFT_LIBS $LIBS"
12400 ac_fn_c_check_header_mongrel "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
12401 if test "x$ac_cv_header_X11_Xft_Xft_h" = x""yes; then :
12402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
12403 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
12404 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then :
12405 $as_echo_n "(cached) " >&6
12406 else
12407 ac_check_lib_save_LIBS=$LIBS
12408 LIBS="-lXft $XFT_LIBS $LIBS"
12409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12410 /* end confdefs.h. */
12412 /* Override any GCC internal prototype to avoid an error.
12413 Use char because int might match the return type of a GCC
12414 builtin and then its argument prototype would still apply. */
12415 #ifdef __cplusplus
12416 extern "C"
12417 #endif
12418 char XftFontOpen ();
12420 main ()
12422 return XftFontOpen ();
12424 return 0;
12426 _ACEOF
12427 if ac_fn_c_try_link "$LINENO"; then :
12428 ac_cv_lib_Xft_XftFontOpen=yes
12429 else
12430 ac_cv_lib_Xft_XftFontOpen=no
12432 rm -f core conftest.err conftest.$ac_objext \
12433 conftest$ac_exeext conftest.$ac_ext
12434 LIBS=$ac_check_lib_save_LIBS
12436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12437 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
12438 if test "x$ac_cv_lib_Xft_XftFontOpen" = x""yes; then :
12439 HAVE_XFT=yes
12446 if test "${HAVE_XFT}" = "yes"; then
12448 $as_echo "#define HAVE_XFT 1" >>confdefs.h
12451 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
12452 else
12453 CPPFLAGS="$OLD_CPPFLAGS"
12454 CFLAGS="$OLD_CFLAGS"
12455 LIBS="$OLD_LIBS"
12456 fi # "${HAVE_XFT}" = "yes"
12457 fi # "$HAVE_XFT" != no
12458 fi # "x${with_xft}" != "xno"
12460 ## We used to allow building with FreeType and without Xft.
12461 ## However, the ftx font backend driver is not in good shape.
12462 if test "$HAVE_XFT" != "yes"; then
12463 HAVE_XFT=no
12464 HAVE_FREETYPE=no
12465 else
12467 succeeded=no
12469 if test "$PKG_CONFIG" = "no" ; then
12470 HAVE_FREETYPE=no
12471 else
12472 PKG_CONFIG_MIN_VERSION=0.9.0
12473 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype2" >&5
12475 $as_echo_n "checking for freetype2... " >&6; }
12477 if "$PKG_CONFIG" --exists "freetype2" 2>&5 &&
12478 FREETYPE_CFLAGS=`"$PKG_CONFIG" --cflags "freetype2" 2>&5` &&
12479 FREETYPE_LIBS=`"$PKG_CONFIG" --libs "freetype2" 2>&5`; then
12480 edit_cflags="
12481 s,///*,/,g
12482 s/^/ /
12483 s/ -I/ $isystem/g
12484 s/^ //
12486 FREETYPE_CFLAGS=`$as_echo "$FREETYPE_CFLAGS" | sed -e "$edit_cflags"`
12487 FREETYPE_LIBS=`$as_echo "$FREETYPE_LIBS" | sed -e 's,///*,/,g'`
12488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$FREETYPE_CFLAGS' LIBS='$FREETYPE_LIBS'" >&5
12489 $as_echo "yes CFLAGS='$FREETYPE_CFLAGS' LIBS='$FREETYPE_LIBS'" >&6; }
12490 succeeded=yes
12491 else
12492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12493 $as_echo "no" >&6; }
12494 FREETYPE_CFLAGS=""
12495 FREETYPE_LIBS=""
12496 ## If we have a custom action on failure, don't print errors, but
12497 ## do set a variable so people can do so. Do it in a subshell
12498 ## to capture any diagnostics in invoking pkg-config.
12499 FREETYPE_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "freetype2") 2>&1`
12505 else
12506 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12507 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12511 if test $succeeded = yes; then
12512 HAVE_FREETYPE=yes
12513 else
12514 HAVE_FREETYPE=no
12518 test "$HAVE_FREETYPE" = "no" && as_fn_error "libxft requires libfreetype" "$LINENO" 5
12521 HAVE_LIBOTF=no
12522 if test "${HAVE_FREETYPE}" = "yes"; then
12524 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
12526 if test "${with_libotf}" != "no"; then
12528 succeeded=no
12530 if test "$PKG_CONFIG" = "no" ; then
12531 HAVE_LIBOTF=no
12532 else
12533 PKG_CONFIG_MIN_VERSION=0.9.0
12534 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
12536 $as_echo_n "checking for libotf... " >&6; }
12538 if "$PKG_CONFIG" --exists "libotf" 2>&5 &&
12539 LIBOTF_CFLAGS=`"$PKG_CONFIG" --cflags "libotf" 2>&5` &&
12540 LIBOTF_LIBS=`"$PKG_CONFIG" --libs "libotf" 2>&5`; then
12541 edit_cflags="
12542 s,///*,/,g
12543 s/^/ /
12544 s/ -I/ $isystem/g
12545 s/^ //
12547 LIBOTF_CFLAGS=`$as_echo "$LIBOTF_CFLAGS" | sed -e "$edit_cflags"`
12548 LIBOTF_LIBS=`$as_echo "$LIBOTF_LIBS" | sed -e 's,///*,/,g'`
12549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBOTF_CFLAGS' LIBS='$LIBOTF_LIBS'" >&5
12550 $as_echo "yes CFLAGS='$LIBOTF_CFLAGS' LIBS='$LIBOTF_LIBS'" >&6; }
12551 succeeded=yes
12552 else
12553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12554 $as_echo "no" >&6; }
12555 LIBOTF_CFLAGS=""
12556 LIBOTF_LIBS=""
12557 ## If we have a custom action on failure, don't print errors, but
12558 ## do set a variable so people can do so. Do it in a subshell
12559 ## to capture any diagnostics in invoking pkg-config.
12560 LIBOTF_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "libotf") 2>&1`
12566 else
12567 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12568 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12572 if test $succeeded = yes; then
12573 HAVE_LIBOTF=yes
12574 else
12575 HAVE_LIBOTF=no
12578 if test "$HAVE_LIBOTF" = "yes"; then
12580 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
12582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
12583 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
12584 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then :
12585 $as_echo_n "(cached) " >&6
12586 else
12587 ac_check_lib_save_LIBS=$LIBS
12588 LIBS="-lotf $LIBS"
12589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12590 /* end confdefs.h. */
12592 /* Override any GCC internal prototype to avoid an error.
12593 Use char because int might match the return type of a GCC
12594 builtin and then its argument prototype would still apply. */
12595 #ifdef __cplusplus
12596 extern "C"
12597 #endif
12598 char OTF_get_variation_glyphs ();
12600 main ()
12602 return OTF_get_variation_glyphs ();
12604 return 0;
12606 _ACEOF
12607 if ac_fn_c_try_link "$LINENO"; then :
12608 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
12609 else
12610 ac_cv_lib_otf_OTF_get_variation_glyphs=no
12612 rm -f core conftest.err conftest.$ac_objext \
12613 conftest$ac_exeext conftest.$ac_ext
12614 LIBS=$ac_check_lib_save_LIBS
12616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
12617 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
12618 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x""yes; then :
12619 HAVE_OTF_GET_VARIATION_GLYPHS=yes
12620 else
12621 HAVE_OTF_GET_VARIATION_GLYPHS=no
12624 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
12626 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
12633 HAVE_M17N_FLT=no
12634 if test "${HAVE_LIBOTF}" = yes; then
12635 if test "${with_m17n_flt}" != "no"; then
12637 succeeded=no
12639 if test "$PKG_CONFIG" = "no" ; then
12640 HAVE_M17N_FLT=no
12641 else
12642 PKG_CONFIG_MIN_VERSION=0.9.0
12643 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
12645 $as_echo_n "checking for m17n-flt... " >&6; }
12647 if "$PKG_CONFIG" --exists "m17n-flt" 2>&5 &&
12648 M17N_FLT_CFLAGS=`"$PKG_CONFIG" --cflags "m17n-flt" 2>&5` &&
12649 M17N_FLT_LIBS=`"$PKG_CONFIG" --libs "m17n-flt" 2>&5`; then
12650 edit_cflags="
12651 s,///*,/,g
12652 s/^/ /
12653 s/ -I/ $isystem/g
12654 s/^ //
12656 M17N_FLT_CFLAGS=`$as_echo "$M17N_FLT_CFLAGS" | sed -e "$edit_cflags"`
12657 M17N_FLT_LIBS=`$as_echo "$M17N_FLT_LIBS" | sed -e 's,///*,/,g'`
12658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$M17N_FLT_CFLAGS' LIBS='$M17N_FLT_LIBS'" >&5
12659 $as_echo "yes CFLAGS='$M17N_FLT_CFLAGS' LIBS='$M17N_FLT_LIBS'" >&6; }
12660 succeeded=yes
12661 else
12662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12663 $as_echo "no" >&6; }
12664 M17N_FLT_CFLAGS=""
12665 M17N_FLT_LIBS=""
12666 ## If we have a custom action on failure, don't print errors, but
12667 ## do set a variable so people can do so. Do it in a subshell
12668 ## to capture any diagnostics in invoking pkg-config.
12669 M17N_FLT_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "m17n-flt") 2>&1`
12675 else
12676 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12677 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12681 if test $succeeded = yes; then
12682 HAVE_M17N_FLT=yes
12683 else
12684 HAVE_M17N_FLT=no
12687 if test "$HAVE_M17N_FLT" = "yes"; then
12689 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
12694 else
12695 HAVE_XFT=no
12696 HAVE_FREETYPE=no
12697 HAVE_LIBOTF=no
12698 HAVE_M17N_FLT=no
12701 ### End of font-backend (under X11) section.
12712 ### Use -lXpm if available, unless `--with-xpm=no'.
12713 HAVE_XPM=no
12714 LIBXPM=
12716 if test "${HAVE_W32}" = "yes"; then
12717 if test "${with_xpm}" != "no"; then
12718 SAVE_CPPFLAGS="$CPPFLAGS"
12719 SAVE_LDFLAGS="$LDFLAGS"
12720 CPPFLAGS="$CPPFLAGS -I/usr/include/noX"
12721 LDFLAGS="$LDFLAGS -L/usr/lib/noX"
12722 ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
12723 if test "x$ac_cv_header_X11_xpm_h" = x""yes; then :
12724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToImage in -lXpm" >&5
12725 $as_echo_n "checking for XpmReadFileToImage in -lXpm... " >&6; }
12726 if test "${ac_cv_lib_Xpm_XpmReadFileToImage+set}" = set; then :
12727 $as_echo_n "(cached) " >&6
12728 else
12729 ac_check_lib_save_LIBS=$LIBS
12730 LIBS="-lXpm $LIBS"
12731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12732 /* end confdefs.h. */
12734 /* Override any GCC internal prototype to avoid an error.
12735 Use char because int might match the return type of a GCC
12736 builtin and then its argument prototype would still apply. */
12737 #ifdef __cplusplus
12738 extern "C"
12739 #endif
12740 char XpmReadFileToImage ();
12742 main ()
12744 return XpmReadFileToImage ();
12746 return 0;
12748 _ACEOF
12749 if ac_fn_c_try_link "$LINENO"; then :
12750 ac_cv_lib_Xpm_XpmReadFileToImage=yes
12751 else
12752 ac_cv_lib_Xpm_XpmReadFileToImage=no
12754 rm -f core conftest.err conftest.$ac_objext \
12755 conftest$ac_exeext conftest.$ac_ext
12756 LIBS=$ac_check_lib_save_LIBS
12758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToImage" >&5
12759 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToImage" >&6; }
12760 if test "x$ac_cv_lib_Xpm_XpmReadFileToImage" = x""yes; then :
12761 HAVE_XPM=yes
12767 if test "${HAVE_XPM}" = "yes"; then
12768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
12769 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
12770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12771 /* end confdefs.h. */
12772 #include "X11/xpm.h"
12773 #ifndef XpmReturnAllocPixels
12774 no_return_alloc_pixels
12775 #endif
12777 _ACEOF
12778 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12779 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then :
12780 HAVE_XPM=no
12781 else
12782 HAVE_XPM=yes
12784 rm -f conftest*
12787 if test "${HAVE_XPM}" = "yes"; then
12788 REAL_CPPFLAGS="$REAL_CPPFLAGS -I/usr/include/noX"
12789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12790 $as_echo "yes" >&6; }
12791 else
12792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12793 $as_echo "no" >&6; }
12794 CPPFLAGS="$SAVE_CPPFLAGS"
12795 LDFLAGS="$SAVE_LDFLAGS"
12800 if test "${HAVE_XPM}" = "yes"; then
12802 $as_echo "#define HAVE_XPM 1" >>confdefs.h
12804 LIBXPM=-lXpm
12808 if test "${HAVE_X11}" = "yes"; then
12809 if test "${with_xpm}" != "no"; then
12810 ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
12811 if test "x$ac_cv_header_X11_xpm_h" = x""yes; then :
12812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
12813 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
12814 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then :
12815 $as_echo_n "(cached) " >&6
12816 else
12817 ac_check_lib_save_LIBS=$LIBS
12818 LIBS="-lXpm -lX11 $LIBS"
12819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12820 /* end confdefs.h. */
12822 /* Override any GCC internal prototype to avoid an error.
12823 Use char because int might match the return type of a GCC
12824 builtin and then its argument prototype would still apply. */
12825 #ifdef __cplusplus
12826 extern "C"
12827 #endif
12828 char XpmReadFileToPixmap ();
12830 main ()
12832 return XpmReadFileToPixmap ();
12834 return 0;
12836 _ACEOF
12837 if ac_fn_c_try_link "$LINENO"; then :
12838 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
12839 else
12840 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
12842 rm -f core conftest.err conftest.$ac_objext \
12843 conftest$ac_exeext conftest.$ac_ext
12844 LIBS=$ac_check_lib_save_LIBS
12846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
12847 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
12848 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x""yes; then :
12849 HAVE_XPM=yes
12855 if test "${HAVE_XPM}" = "yes"; then
12856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
12857 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
12858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12859 /* end confdefs.h. */
12860 #include "X11/xpm.h"
12861 #ifndef XpmReturnAllocPixels
12862 no_return_alloc_pixels
12863 #endif
12865 _ACEOF
12866 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12867 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then :
12868 HAVE_XPM=no
12869 else
12870 HAVE_XPM=yes
12872 rm -f conftest*
12875 if test "${HAVE_XPM}" = "yes"; then
12876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12877 $as_echo "yes" >&6; }
12878 else
12879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12880 $as_echo "no" >&6; }
12885 if test "${HAVE_XPM}" = "yes"; then
12887 $as_echo "#define HAVE_XPM 1" >>confdefs.h
12889 LIBXPM=-lXpm
12895 ### Use -ljpeg if available, unless `--with-jpeg=no'.
12896 HAVE_JPEG=no
12897 LIBJPEG=
12898 if test "${HAVE_X11}" = "yes" || test "${HAVE_W32}" = "yes"; then
12899 if test "${with_jpeg}" != "no"; then
12900 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
12901 if test "x$ac_cv_header_jerror_h" = x""yes; then :
12902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
12903 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
12904 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then :
12905 $as_echo_n "(cached) " >&6
12906 else
12907 ac_check_lib_save_LIBS=$LIBS
12908 LIBS="-ljpeg $LIBS"
12909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12910 /* end confdefs.h. */
12912 /* Override any GCC internal prototype to avoid an error.
12913 Use char because int might match the return type of a GCC
12914 builtin and then its argument prototype would still apply. */
12915 #ifdef __cplusplus
12916 extern "C"
12917 #endif
12918 char jpeg_destroy_compress ();
12920 main ()
12922 return jpeg_destroy_compress ();
12924 return 0;
12926 _ACEOF
12927 if ac_fn_c_try_link "$LINENO"; then :
12928 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
12929 else
12930 ac_cv_lib_jpeg_jpeg_destroy_compress=no
12932 rm -f core conftest.err conftest.$ac_objext \
12933 conftest$ac_exeext conftest.$ac_ext
12934 LIBS=$ac_check_lib_save_LIBS
12936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
12937 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
12938 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x""yes; then :
12939 HAVE_JPEG=yes
12947 if test "${HAVE_JPEG}" = "yes"; then
12948 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
12950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12951 /* end confdefs.h. */
12952 #include <jpeglib.h>
12953 version=JPEG_LIB_VERSION
12955 _ACEOF
12956 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12957 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then :
12958 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
12960 else
12961 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
12962 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
12963 HAVE_JPEG=no
12965 rm -f conftest*
12968 if test "${HAVE_JPEG}" = "yes"; then
12969 LIBJPEG=-ljpeg
12974 ### Use -lpng if available, unless `--with-png=no'.
12975 HAVE_PNG=no
12976 LIBPNG=
12977 if test "${HAVE_X11}" = "yes" || test "${HAVE_W32}" = "yes"; then
12978 if test "${with_png}" != "no"; then
12979 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
12980 # in /usr/include/libpng.
12981 for ac_header in png.h libpng/png.h
12982 do :
12983 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12984 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12985 eval as_val=\$$as_ac_Header
12986 if test "x$as_val" = x""yes; then :
12987 cat >>confdefs.h <<_ACEOF
12988 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12989 _ACEOF
12990 break
12993 done
12995 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
12996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
12997 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
12998 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then :
12999 $as_echo_n "(cached) " >&6
13000 else
13001 ac_check_lib_save_LIBS=$LIBS
13002 LIBS="-lpng -lz -lm $LIBS"
13003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13004 /* end confdefs.h. */
13006 /* Override any GCC internal prototype to avoid an error.
13007 Use char because int might match the return type of a GCC
13008 builtin and then its argument prototype would still apply. */
13009 #ifdef __cplusplus
13010 extern "C"
13011 #endif
13012 char png_get_channels ();
13014 main ()
13016 return png_get_channels ();
13018 return 0;
13020 _ACEOF
13021 if ac_fn_c_try_link "$LINENO"; then :
13022 ac_cv_lib_png_png_get_channels=yes
13023 else
13024 ac_cv_lib_png_png_get_channels=no
13026 rm -f core conftest.err conftest.$ac_objext \
13027 conftest$ac_exeext conftest.$ac_ext
13028 LIBS=$ac_check_lib_save_LIBS
13030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
13031 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
13032 if test "x$ac_cv_lib_png_png_get_channels" = x""yes; then :
13033 HAVE_PNG=yes
13039 if test "${HAVE_PNG}" = "yes"; then
13041 $as_echo "#define HAVE_PNG 1" >>confdefs.h
13043 LIBPNG="-lpng -lz -lm"
13045 ac_fn_c_check_decl "$LINENO" "png_longjmp" "ac_cv_have_decl_png_longjmp" "#ifdef HAVE_LIBPNG_PNG_H
13046 # include <libpng/png.h>
13047 #else
13048 # include <png.h>
13049 #endif
13052 if test "x$ac_cv_have_decl_png_longjmp" = x""yes; then :
13054 else
13056 $as_echo "#define PNG_DEPSTRUCT /**/" >>confdefs.h
13064 ### Use -ltiff if available, unless `--with-tiff=no'.
13065 HAVE_TIFF=no
13066 LIBTIFF=
13067 if test "${HAVE_X11}" = "yes" || test "${HAVE_W32}" = "yes"; then
13068 if test "${with_tiff}" != "no"; then
13069 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
13070 if test "x$ac_cv_header_tiffio_h" = x""yes; then :
13071 tifflibs="-lz -lm"
13072 # At least one tiff package requires the jpeg library.
13073 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
13074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
13075 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
13076 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then :
13077 $as_echo_n "(cached) " >&6
13078 else
13079 ac_check_lib_save_LIBS=$LIBS
13080 LIBS="-ltiff $tifflibs $LIBS"
13081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13082 /* end confdefs.h. */
13084 /* Override any GCC internal prototype to avoid an error.
13085 Use char because int might match the return type of a GCC
13086 builtin and then its argument prototype would still apply. */
13087 #ifdef __cplusplus
13088 extern "C"
13089 #endif
13090 char TIFFGetVersion ();
13092 main ()
13094 return TIFFGetVersion ();
13096 return 0;
13098 _ACEOF
13099 if ac_fn_c_try_link "$LINENO"; then :
13100 ac_cv_lib_tiff_TIFFGetVersion=yes
13101 else
13102 ac_cv_lib_tiff_TIFFGetVersion=no
13104 rm -f core conftest.err conftest.$ac_objext \
13105 conftest$ac_exeext conftest.$ac_ext
13106 LIBS=$ac_check_lib_save_LIBS
13108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
13109 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
13110 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x""yes; then :
13111 HAVE_TIFF=yes
13119 if test "${HAVE_TIFF}" = "yes"; then
13121 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
13123 LIBTIFF=-ltiff
13128 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
13129 HAVE_GIF=no
13130 LIBGIF=
13131 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no" \
13132 || test "${HAVE_W32}" = "yes"; then
13133 ac_fn_c_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
13134 if test "x$ac_cv_header_gif_lib_h" = x""yes; then :
13135 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
13136 # Earlier versions can crash Emacs.
13137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
13138 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
13139 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then :
13140 $as_echo_n "(cached) " >&6
13141 else
13142 ac_check_lib_save_LIBS=$LIBS
13143 LIBS="-lgif $LIBS"
13144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13145 /* end confdefs.h. */
13147 /* Override any GCC internal prototype to avoid an error.
13148 Use char because int might match the return type of a GCC
13149 builtin and then its argument prototype would still apply. */
13150 #ifdef __cplusplus
13151 extern "C"
13152 #endif
13153 char EGifPutExtensionLast ();
13155 main ()
13157 return EGifPutExtensionLast ();
13159 return 0;
13161 _ACEOF
13162 if ac_fn_c_try_link "$LINENO"; then :
13163 ac_cv_lib_gif_EGifPutExtensionLast=yes
13164 else
13165 ac_cv_lib_gif_EGifPutExtensionLast=no
13167 rm -f core conftest.err conftest.$ac_objext \
13168 conftest$ac_exeext conftest.$ac_ext
13169 LIBS=$ac_check_lib_save_LIBS
13171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
13172 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
13173 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x""yes; then :
13174 HAVE_GIF=yes
13175 else
13176 HAVE_GIF=maybe
13183 if test "$HAVE_GIF" = yes; then
13184 LIBGIF=-lgif
13185 elif test "$HAVE_GIF" = maybe; then
13186 # If gif_lib.h but no libgif, try libungif.
13187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
13188 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
13189 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then :
13190 $as_echo_n "(cached) " >&6
13191 else
13192 ac_check_lib_save_LIBS=$LIBS
13193 LIBS="-lungif $LIBS"
13194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13195 /* end confdefs.h. */
13197 /* Override any GCC internal prototype to avoid an error.
13198 Use char because int might match the return type of a GCC
13199 builtin and then its argument prototype would still apply. */
13200 #ifdef __cplusplus
13201 extern "C"
13202 #endif
13203 char EGifPutExtensionLast ();
13205 main ()
13207 return EGifPutExtensionLast ();
13209 return 0;
13211 _ACEOF
13212 if ac_fn_c_try_link "$LINENO"; then :
13213 ac_cv_lib_ungif_EGifPutExtensionLast=yes
13214 else
13215 ac_cv_lib_ungif_EGifPutExtensionLast=no
13217 rm -f core conftest.err conftest.$ac_objext \
13218 conftest$ac_exeext conftest.$ac_ext
13219 LIBS=$ac_check_lib_save_LIBS
13221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
13222 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
13223 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x""yes; then :
13224 HAVE_GIF=yes
13225 else
13226 HAVE_GIF=no
13229 test "$HAVE_GIF" = yes && LIBGIF=-lungif
13232 if test "${HAVE_GIF}" = "yes"; then
13234 $as_echo "#define HAVE_GIF 1" >>confdefs.h
13240 if test "${HAVE_X11}" = "yes"; then
13241 MISSING=""
13242 WITH_NO=""
13243 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
13244 MISSING="libXpm" && WITH_NO="--with-xpm=no"
13245 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
13246 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
13247 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
13248 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
13249 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
13250 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
13251 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
13252 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
13254 if test "X${MISSING}" != X; then
13255 as_fn_error "The following required libraries were not found:
13256 $MISSING
13257 Maybe some development libraries/packages are missing?
13258 If you don't want to link with them give
13259 $WITH_NO
13260 as options to configure" "$LINENO" 5
13264 ### Use -lgpm if available, unless `--with-gpm=no'.
13265 HAVE_GPM=no
13266 LIBGPM=
13267 if test "${with_gpm}" != "no"; then
13268 ac_fn_c_check_header_mongrel "$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
13269 if test "x$ac_cv_header_gpm_h" = x""yes; then :
13270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
13271 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
13272 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then :
13273 $as_echo_n "(cached) " >&6
13274 else
13275 ac_check_lib_save_LIBS=$LIBS
13276 LIBS="-lgpm $LIBS"
13277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13278 /* end confdefs.h. */
13280 /* Override any GCC internal prototype to avoid an error.
13281 Use char because int might match the return type of a GCC
13282 builtin and then its argument prototype would still apply. */
13283 #ifdef __cplusplus
13284 extern "C"
13285 #endif
13286 char Gpm_Open ();
13288 main ()
13290 return Gpm_Open ();
13292 return 0;
13294 _ACEOF
13295 if ac_fn_c_try_link "$LINENO"; then :
13296 ac_cv_lib_gpm_Gpm_Open=yes
13297 else
13298 ac_cv_lib_gpm_Gpm_Open=no
13300 rm -f core conftest.err conftest.$ac_objext \
13301 conftest$ac_exeext conftest.$ac_ext
13302 LIBS=$ac_check_lib_save_LIBS
13304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
13305 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
13306 if test "x$ac_cv_lib_gpm_Gpm_Open" = x""yes; then :
13307 HAVE_GPM=yes
13314 if test "${HAVE_GPM}" = "yes"; then
13316 $as_echo "#define HAVE_GPM 1" >>confdefs.h
13318 LIBGPM=-lgpm
13327 GNUSTEP_CFLAGS=
13328 ### Use NeXTstep API to implement GUI.
13329 if test "${HAVE_NS}" = "yes"; then
13331 $as_echo "#define HAVE_NS 1" >>confdefs.h
13333 if test "${NS_IMPL_COCOA}" = "yes"; then
13335 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
13338 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
13340 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
13342 # See also .m.o rule in Makefile.in */
13343 # FIXME: are all these flags really needed? Document here why. */
13344 GNUSTEP_CFLAGS="-D_REENTRANT -fPIC -fno-strict-aliasing -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
13345 ## Extra CFLAGS applied to src/*.m files.
13346 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"
13348 # We also have mouse menus.
13349 HAVE_MENUS=yes
13350 OTHER_FILES=ns-app
13353 if test "${HAVE_W32}" = "yes"; then
13354 HAVE_MENUS=yes
13357 ### Use session management (-lSM -lICE) if available
13358 HAVE_X_SM=no
13359 LIBXSM=
13360 if test "${HAVE_X11}" = "yes"; then
13361 ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
13362 if test "x$ac_cv_header_X11_SM_SMlib_h" = x""yes; then :
13363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
13364 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
13365 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then :
13366 $as_echo_n "(cached) " >&6
13367 else
13368 ac_check_lib_save_LIBS=$LIBS
13369 LIBS="-lSM -lICE $LIBS"
13370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13371 /* end confdefs.h. */
13373 /* Override any GCC internal prototype to avoid an error.
13374 Use char because int might match the return type of a GCC
13375 builtin and then its argument prototype would still apply. */
13376 #ifdef __cplusplus
13377 extern "C"
13378 #endif
13379 char SmcOpenConnection ();
13381 main ()
13383 return SmcOpenConnection ();
13385 return 0;
13387 _ACEOF
13388 if ac_fn_c_try_link "$LINENO"; then :
13389 ac_cv_lib_SM_SmcOpenConnection=yes
13390 else
13391 ac_cv_lib_SM_SmcOpenConnection=no
13393 rm -f core conftest.err conftest.$ac_objext \
13394 conftest$ac_exeext conftest.$ac_ext
13395 LIBS=$ac_check_lib_save_LIBS
13397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
13398 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
13399 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x""yes; then :
13400 HAVE_X_SM=yes
13407 if test "${HAVE_X_SM}" = "yes"; then
13409 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
13411 LIBXSM="-lSM -lICE"
13412 case "$LIBS" in
13413 *-lSM*) ;;
13414 *) LIBS="$LIBXSM $LIBS" ;;
13415 esac
13420 ### Use libxml (-lxml2) if available
13421 HAVE_LIBXML2=no
13422 if test "${with_xml2}" != "no"; then
13423 ### I'm not sure what the version number should be, so I just guessed.
13425 succeeded=no
13427 if test "$PKG_CONFIG" = "no" ; then
13428 HAVE_LIBXML2=no
13429 else
13430 PKG_CONFIG_MIN_VERSION=0.9.0
13431 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.6.17" >&5
13433 $as_echo_n "checking for libxml-2.0 > 2.6.17... " >&6; }
13435 if "$PKG_CONFIG" --exists "libxml-2.0 > 2.6.17" 2>&5 &&
13436 LIBXML2_CFLAGS=`"$PKG_CONFIG" --cflags "libxml-2.0 > 2.6.17" 2>&5` &&
13437 LIBXML2_LIBS=`"$PKG_CONFIG" --libs "libxml-2.0 > 2.6.17" 2>&5`; then
13438 edit_cflags="
13439 s,///*,/,g
13440 s/^/ /
13441 s/ -I/ $isystem/g
13442 s/^ //
13444 LIBXML2_CFLAGS=`$as_echo "$LIBXML2_CFLAGS" | sed -e "$edit_cflags"`
13445 LIBXML2_LIBS=`$as_echo "$LIBXML2_LIBS" | sed -e 's,///*,/,g'`
13446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBXML2_CFLAGS' LIBS='$LIBXML2_LIBS'" >&5
13447 $as_echo "yes CFLAGS='$LIBXML2_CFLAGS' LIBS='$LIBXML2_LIBS'" >&6; }
13448 succeeded=yes
13449 else
13450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13451 $as_echo "no" >&6; }
13452 LIBXML2_CFLAGS=""
13453 LIBXML2_LIBS=""
13454 ## If we have a custom action on failure, don't print errors, but
13455 ## do set a variable so people can do so. Do it in a subshell
13456 ## to capture any diagnostics in invoking pkg-config.
13457 LIBXML2_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "libxml-2.0 > 2.6.17") 2>&1`
13463 else
13464 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13465 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13469 if test $succeeded = yes; then
13470 HAVE_LIBXML2=yes
13471 else
13472 HAVE_LIBXML2=no
13475 if test "${HAVE_LIBXML2}" = "yes"; then
13476 LIBS="$LIBXML2_LIBS $LIBS"
13477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
13478 $as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
13479 if test "${ac_cv_lib_xml2_htmlReadMemory+set}" = set; then :
13480 $as_echo_n "(cached) " >&6
13481 else
13482 ac_check_lib_save_LIBS=$LIBS
13483 LIBS="-lxml2 $LIBS"
13484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13485 /* end confdefs.h. */
13487 /* Override any GCC internal prototype to avoid an error.
13488 Use char because int might match the return type of a GCC
13489 builtin and then its argument prototype would still apply. */
13490 #ifdef __cplusplus
13491 extern "C"
13492 #endif
13493 char htmlReadMemory ();
13495 main ()
13497 return htmlReadMemory ();
13499 return 0;
13501 _ACEOF
13502 if ac_fn_c_try_link "$LINENO"; then :
13503 ac_cv_lib_xml2_htmlReadMemory=yes
13504 else
13505 ac_cv_lib_xml2_htmlReadMemory=no
13507 rm -f core conftest.err conftest.$ac_objext \
13508 conftest$ac_exeext conftest.$ac_ext
13509 LIBS=$ac_check_lib_save_LIBS
13511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
13512 $as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
13513 if test "x$ac_cv_lib_xml2_htmlReadMemory" = x""yes; then :
13514 HAVE_LIBXML2=yes
13515 else
13516 HAVE_LIBXML2=no
13519 if test "${HAVE_LIBXML2}" = "yes"; then
13521 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
13523 else
13524 LIBXML2_LIBS=""
13525 LIBXML2_CFLAGS=""
13532 # If netdb.h doesn't declare h_errno, we must declare it by hand.
13533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
13534 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
13535 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then :
13536 $as_echo_n "(cached) " >&6
13537 else
13538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13539 /* end confdefs.h. */
13540 #include <netdb.h>
13542 main ()
13544 return h_errno;
13546 return 0;
13548 _ACEOF
13549 if ac_fn_c_try_link "$LINENO"; then :
13550 emacs_cv_netdb_declares_h_errno=yes
13551 else
13552 emacs_cv_netdb_declares_h_errno=no
13554 rm -f core conftest.err conftest.$ac_objext \
13555 conftest$ac_exeext conftest.$ac_ext
13557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
13558 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
13559 if test $emacs_cv_netdb_declares_h_errno = yes; then
13561 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
13565 # sqrt and other floating-point functions such as fmod and frexp
13566 # are found in -lm on most systems.
13567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
13568 $as_echo_n "checking for sqrt in -lm... " >&6; }
13569 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
13570 $as_echo_n "(cached) " >&6
13571 else
13572 ac_check_lib_save_LIBS=$LIBS
13573 LIBS="-lm $LIBS"
13574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13575 /* end confdefs.h. */
13577 /* Override any GCC internal prototype to avoid an error.
13578 Use char because int might match the return type of a GCC
13579 builtin and then its argument prototype would still apply. */
13580 #ifdef __cplusplus
13581 extern "C"
13582 #endif
13583 char sqrt ();
13585 main ()
13587 return sqrt ();
13589 return 0;
13591 _ACEOF
13592 if ac_fn_c_try_link "$LINENO"; then :
13593 ac_cv_lib_m_sqrt=yes
13594 else
13595 ac_cv_lib_m_sqrt=no
13597 rm -f core conftest.err conftest.$ac_objext \
13598 conftest$ac_exeext conftest.$ac_ext
13599 LIBS=$ac_check_lib_save_LIBS
13601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
13602 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
13603 if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
13604 cat >>confdefs.h <<_ACEOF
13605 #define HAVE_LIBM 1
13606 _ACEOF
13608 LIBS="-lm $LIBS"
13613 # Check for mail-locking functions in a "mail" library. Probably this should
13614 # have the same check as for liblockfile below.
13615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
13616 $as_echo_n "checking for maillock in -lmail... " >&6; }
13617 if test "${ac_cv_lib_mail_maillock+set}" = set; then :
13618 $as_echo_n "(cached) " >&6
13619 else
13620 ac_check_lib_save_LIBS=$LIBS
13621 LIBS="-lmail $LIBS"
13622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13623 /* end confdefs.h. */
13625 /* Override any GCC internal prototype to avoid an error.
13626 Use char because int might match the return type of a GCC
13627 builtin and then its argument prototype would still apply. */
13628 #ifdef __cplusplus
13629 extern "C"
13630 #endif
13631 char maillock ();
13633 main ()
13635 return maillock ();
13637 return 0;
13639 _ACEOF
13640 if ac_fn_c_try_link "$LINENO"; then :
13641 ac_cv_lib_mail_maillock=yes
13642 else
13643 ac_cv_lib_mail_maillock=no
13645 rm -f core conftest.err conftest.$ac_objext \
13646 conftest$ac_exeext conftest.$ac_ext
13647 LIBS=$ac_check_lib_save_LIBS
13649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
13650 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
13651 if test "x$ac_cv_lib_mail_maillock" = x""yes; then :
13652 have_mail=yes
13653 else
13654 have_mail=no
13657 if test $have_mail = yes; then
13658 LIBS_MAIL=-lmail
13659 LIBS="$LIBS_MAIL $LIBS"
13661 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
13663 else
13664 LIBS_MAIL=
13666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
13667 $as_echo_n "checking for maillock in -llockfile... " >&6; }
13668 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then :
13669 $as_echo_n "(cached) " >&6
13670 else
13671 ac_check_lib_save_LIBS=$LIBS
13672 LIBS="-llockfile $LIBS"
13673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13674 /* end confdefs.h. */
13676 /* Override any GCC internal prototype to avoid an error.
13677 Use char because int might match the return type of a GCC
13678 builtin and then its argument prototype would still apply. */
13679 #ifdef __cplusplus
13680 extern "C"
13681 #endif
13682 char maillock ();
13684 main ()
13686 return maillock ();
13688 return 0;
13690 _ACEOF
13691 if ac_fn_c_try_link "$LINENO"; then :
13692 ac_cv_lib_lockfile_maillock=yes
13693 else
13694 ac_cv_lib_lockfile_maillock=no
13696 rm -f core conftest.err conftest.$ac_objext \
13697 conftest$ac_exeext conftest.$ac_ext
13698 LIBS=$ac_check_lib_save_LIBS
13700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
13701 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
13702 if test "x$ac_cv_lib_lockfile_maillock" = x""yes; then :
13703 have_lockfile=yes
13704 else
13705 have_lockfile=no
13708 if test $have_lockfile = yes; then
13709 LIBS_MAIL=-llockfile
13710 LIBS="$LIBS_MAIL $LIBS"
13712 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
13714 else
13715 # If we have the shared liblockfile, assume we must use it for mail
13716 # locking (e.g. Debian). If we couldn't link against liblockfile
13717 # (no liblockfile.a installed), ensure that we don't need to.
13718 # Extract the first word of "liblockfile.so", so it can be a program name with args.
13719 set dummy liblockfile.so; ac_word=$2
13720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13721 $as_echo_n "checking for $ac_word... " >&6; }
13722 if test "${ac_cv_prog_liblockfile+set}" = set; then :
13723 $as_echo_n "(cached) " >&6
13724 else
13725 if test -n "$liblockfile"; then
13726 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
13727 else
13728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13729 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
13730 for as_dir in $as_dummy
13732 IFS=$as_save_IFS
13733 test -z "$as_dir" && as_dir=.
13734 for ac_exec_ext in '' $ac_executable_extensions; do
13735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13736 ac_cv_prog_liblockfile="yes"
13737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13738 break 2
13740 done
13741 done
13742 IFS=$as_save_IFS
13744 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
13747 liblockfile=$ac_cv_prog_liblockfile
13748 if test -n "$liblockfile"; then
13749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
13750 $as_echo "$liblockfile" >&6; }
13751 else
13752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13753 $as_echo "no" >&6; }
13757 if test $ac_cv_prog_liblockfile = yes; then
13758 as_fn_error "Shared liblockfile found but can't link against it.
13759 This probably means that movemail could lose mail.
13760 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
13768 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
13769 ## interlock access to the mail spool. The alternative is a lock file named
13770 ## /usr/spool/mail/$USER.lock.
13771 mail_lock=no
13772 case "$opsys" in
13773 aix4-2) mail_lock="lockf" ;;
13775 gnu|freebsd|netbsd|openbsd|darwin|irix6-5) mail_lock="flock" ;;
13777 ## On GNU/Linux systems, both methods are used by various mail programs.
13778 ## I assume most people are using newer mailers that have heard of flock.
13779 ## Change this if you need to.
13780 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
13781 ## configure gets the right answers, and that means *NOT* using flock.
13782 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
13783 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
13784 ## Debian maintainer hasn't provided a clean fix for Emacs.
13785 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
13786 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
13787 ## correct logic. -- fx
13788 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
13789 ## liblockfile is a Free Software replacement for libmail, used on
13790 ## Debian systems and elsewhere. -rfr.
13791 gnu-*)
13792 mail_lock="flock"
13793 if test $have_mail = yes || test $have_lockfile = yes; then
13794 test $ac_cv_header_maillock_h = yes && mail_lock=no
13797 esac
13799 BLESSMAIL_TARGET=
13800 case "$mail_lock" in
13801 flock)
13802 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
13805 lockf)
13806 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
13809 *) BLESSMAIL_TARGET="need-blessmail" ;;
13810 esac
13814 for ac_func in gethostname \
13815 getrusage get_current_dir_name \
13816 lrand48 \
13817 select getpagesize setlocale \
13818 utimes getrlimit setrlimit shutdown getaddrinfo \
13819 strsignal setitimer \
13820 sendto recvfrom getsockname getpeername getifaddrs freeifaddrs \
13821 gai_strerror mkstemp getline getdelim fsync sync \
13822 difftime posix_memalign \
13823 getpwent endpwent getgrent endgrent \
13824 touchlock \
13825 cfmakeraw cfsetspeed copysign __executable_start
13826 do :
13827 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13828 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13829 eval as_val=\$$as_ac_var
13830 if test "x$as_val" = x""yes; then :
13831 cat >>confdefs.h <<_ACEOF
13832 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13833 _ACEOF
13836 done
13839 ## Eric Backus <ericb@lsid.hp.com> says, HP-UX 9.x on HP 700 machines
13840 ## has a broken `rint' in some library versions including math library
13841 ## version number A.09.05.
13842 ## You can fix the math library by installing patch number PHSS_4630.
13843 ## But we can fix it more reliably for Emacs by just not using rint.
13844 ## We also skip HAVE_RANDOM - see comments in src/conf_post.h.
13845 case $opsys in
13846 hpux*) : ;;
13847 *) for ac_func in random rint
13848 do :
13849 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13850 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13851 eval as_val=\$$as_ac_var
13852 if test "x$as_val" = x""yes; then :
13853 cat >>confdefs.h <<_ACEOF
13854 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13855 _ACEOF
13858 done
13860 esac
13862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unwind_init" >&5
13863 $as_echo_n "checking for __builtin_unwind_init... " >&6; }
13864 if test "${emacs_cv_func___builtin_unwind_init+set}" = set; then :
13865 $as_echo_n "(cached) " >&6
13866 else
13867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13868 /* end confdefs.h. */
13871 main ()
13873 __builtin_unwind_init ();
13875 return 0;
13877 _ACEOF
13878 if ac_fn_c_try_link "$LINENO"; then :
13879 emacs_cv_func___builtin_unwind_init=yes
13880 else
13881 emacs_cv_func___builtin_unwind_init=no
13883 rm -f core conftest.err conftest.$ac_objext \
13884 conftest$ac_exeext conftest.$ac_ext
13886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func___builtin_unwind_init" >&5
13887 $as_echo "$emacs_cv_func___builtin_unwind_init" >&6; }
13888 if test $emacs_cv_func___builtin_unwind_init = yes; then
13890 $as_echo "#define HAVE___BUILTIN_UNWIND_INIT 1" >>confdefs.h
13898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13899 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
13900 if test "${ac_cv_sys_largefile_source+set}" = set; then :
13901 $as_echo_n "(cached) " >&6
13902 else
13903 while :; do
13904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13905 /* end confdefs.h. */
13906 #include <sys/types.h> /* for off_t */
13907 #include <stdio.h>
13909 main ()
13911 int (*fp) (FILE *, off_t, int) = fseeko;
13912 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13914 return 0;
13916 _ACEOF
13917 if ac_fn_c_try_link "$LINENO"; then :
13918 ac_cv_sys_largefile_source=no; break
13920 rm -f core conftest.err conftest.$ac_objext \
13921 conftest$ac_exeext conftest.$ac_ext
13922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13923 /* end confdefs.h. */
13924 #define _LARGEFILE_SOURCE 1
13925 #include <sys/types.h> /* for off_t */
13926 #include <stdio.h>
13928 main ()
13930 int (*fp) (FILE *, off_t, int) = fseeko;
13931 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13933 return 0;
13935 _ACEOF
13936 if ac_fn_c_try_link "$LINENO"; then :
13937 ac_cv_sys_largefile_source=1; break
13939 rm -f core conftest.err conftest.$ac_objext \
13940 conftest$ac_exeext conftest.$ac_ext
13941 ac_cv_sys_largefile_source=unknown
13942 break
13943 done
13945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
13946 $as_echo "$ac_cv_sys_largefile_source" >&6; }
13947 case $ac_cv_sys_largefile_source in #(
13948 no | unknown) ;;
13950 cat >>confdefs.h <<_ACEOF
13951 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13952 _ACEOF
13954 esac
13955 rm -rf conftest*
13957 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13958 # in glibc 2.1.3, but that breaks too many other things.
13959 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13960 if test $ac_cv_sys_largefile_source != unknown; then
13962 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
13967 # UNIX98 PTYs.
13968 for ac_func in grantpt
13969 do :
13970 ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt"
13971 if test "x$ac_cv_func_grantpt" = x""yes; then :
13972 cat >>confdefs.h <<_ACEOF
13973 #define HAVE_GRANTPT 1
13974 _ACEOF
13977 done
13980 # PTY-related GNU extensions.
13981 for ac_func in getpt posix_openpt
13982 do :
13983 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13984 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13985 eval as_val=\$$as_ac_var
13986 if test "x$as_val" = x""yes; then :
13987 cat >>confdefs.h <<_ACEOF
13988 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13989 _ACEOF
13992 done
13995 # Check this now, so that we will NOT find the above functions in ncurses.
13996 # That is because we have not set up to link ncurses in lib-src.
13997 # It's better to believe a function is not available
13998 # than to expect to find it in ncurses.
13999 # Also we need tputs and friends to be able to build at all.
14000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
14001 $as_echo_n "checking for library containing tputs... " >&6; }
14002 # Run a test program that contains a call to tputs, a call that is
14003 # never executed. This tests whether a pre-'main' dynamic linker
14004 # works with the library. It's too much trouble to actually call
14005 # tputs in the test program, due to portability hassles. When
14006 # cross-compiling, assume the test program will run if it links.
14008 # Maybe curses should be tried earlier?
14009 # See http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9736#35
14010 for tputs_library in '' tinfo ncurses terminfo termcap curses; do
14011 OLIBS=$LIBS
14012 if test -z "$tputs_library"; then
14013 LIBS_TERMCAP=
14014 msg='none required'
14015 else
14016 LIBS_TERMCAP=-l$tputs_library
14017 msg=$LIBS_TERMCAP
14018 LIBS="$LIBS_TERMCAP $LIBS"
14020 if test "$cross_compiling" = yes; then :
14021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14022 /* end confdefs.h. */
14024 extern void tputs (const char *, int, int (*)(int));
14025 int main (int argc, char **argv)
14027 if (argc == 10000)
14028 tputs (argv[0], 0, 0);
14029 return 0;
14032 _ACEOF
14033 if ac_fn_c_try_link "$LINENO"; then :
14035 else
14036 msg=no
14038 rm -f core conftest.err conftest.$ac_objext \
14039 conftest$ac_exeext conftest.$ac_ext
14040 else
14041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14042 /* end confdefs.h. */
14044 extern void tputs (const char *, int, int (*)(int));
14045 int main (int argc, char **argv)
14047 if (argc == 10000)
14048 tputs (argv[0], 0, 0);
14049 return 0;
14052 _ACEOF
14053 if ac_fn_c_try_run "$LINENO"; then :
14055 else
14056 msg=no
14058 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14059 conftest.$ac_objext conftest.beam conftest.$ac_ext
14062 LIBS=$OLIBS
14063 if test "X$msg" != Xno; then
14064 break
14066 done
14067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5
14068 $as_echo "$msg" >&6; }
14069 if test "X$msg" = Xno; then
14070 as_fn_error "The required function \`tputs' was not found in any library.
14071 The following libraries were tried (in order):
14072 libtinfo, libncurses, libterminfo, libtermcap, libcurses
14073 Please try installing whichever of these libraries is most appropriate
14074 for your system, together with its header files.
14075 For example, a libncurses-dev(el) or similar package." "$LINENO" 5
14078 ## Use termcap instead of terminfo?
14079 ## Only true for: freebsd < 40000, ms-w32, msdos, netbsd < 599002500.
14080 TERMINFO=yes
14081 ## FIXME? In the cases below where we unconditionally set
14082 ## LIBS_TERMCAP="-lncurses", this overrides LIBS_TERMCAP = -ltinfo,
14083 ## if that was found above to have tputs.
14084 ## Should we use the gnu* logic everywhere?
14085 case "$opsys" in
14086 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
14087 ## The ncurses library has been moved out of the System framework in
14088 ## Mac OS X 10.2. So if configure detects it, set the command-line
14089 ## option to use it.
14090 darwin) LIBS_TERMCAP="-lncurses" ;;
14092 gnu*) test -z "$LIBS_TERMCAP" && LIBS_TERMCAP="-lncurses" ;;
14094 freebsd)
14095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
14096 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
14097 if test "${emacs_cv_freebsd_terminfo+set}" = set; then :
14098 $as_echo_n "(cached) " >&6
14099 else
14100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14101 /* end confdefs.h. */
14102 #include <osreldate.h>
14104 main ()
14106 #if __FreeBSD_version < 400000
14107 fail;
14108 #endif
14111 return 0;
14113 _ACEOF
14114 if ac_fn_c_try_link "$LINENO"; then :
14115 emacs_cv_freebsd_terminfo=yes
14116 else
14117 emacs_cv_freebsd_terminfo=no
14119 rm -f core conftest.err conftest.$ac_objext \
14120 conftest$ac_exeext conftest.$ac_ext
14124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
14125 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
14127 if test $emacs_cv_freebsd_terminfo = yes; then
14128 LIBS_TERMCAP="-lncurses"
14129 else
14130 TERMINFO=no
14131 LIBS_TERMCAP="-ltermcap"
14135 netbsd)
14136 if test "x$LIBS_TERMCAP" != "x-lterminfo"; then
14137 TERMINFO=no
14138 LIBS_TERMCAP="-ltermcap"
14142 openbsd) LIBS_TERMCAP="-lncurses" ;;
14144 ## hpux: Make sure we get select from libc rather than from libcurses
14145 ## because libcurses on HPUX 10.10 has a broken version of select.
14146 ## We used to use -lc -lcurses, but this may be cleaner.
14147 ## FIXME? But TERMINFO = yes on hpux (it used to be explicitly
14148 # set that way, now it uses the default). Isn't this a contradiction?
14149 hpux*) LIBS_TERMCAP="-ltermcap" ;;
14151 esac
14153 TERMCAP_OBJ=tparam.o
14154 if test $TERMINFO = yes; then
14156 $as_echo "#define TERMINFO 1" >>confdefs.h
14158 TERMCAP_OBJ=terminfo.o
14164 # Do we have res_init, for detecting changes in /etc/resolv.conf?
14165 # On Darwin, res_init appears not to be useful: see bug#562 and
14166 # http://lists.gnu.org/archive/html/emacs-devel/2007-11/msg01467.html
14167 resolv=no
14169 if test $opsys != darwin; then
14171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14172 /* end confdefs.h. */
14173 #include <netinet/in.h>
14174 #include <arpa/nameser.h>
14175 #include <resolv.h>
14177 main ()
14179 return res_init();
14181 return 0;
14183 _ACEOF
14184 if ac_fn_c_try_link "$LINENO"; then :
14185 have_res_init=yes
14186 else
14187 have_res_init=no
14189 rm -f core conftest.err conftest.$ac_objext \
14190 conftest$ac_exeext conftest.$ac_ext
14191 if test "$have_res_init" = no; then
14192 OLIBS="$LIBS"
14193 LIBS="$LIBS -lresolv"
14194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
14195 $as_echo_n "checking for res_init with -lresolv... " >&6; }
14196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14197 /* end confdefs.h. */
14198 #include <netinet/in.h>
14199 #include <arpa/nameser.h>
14200 #include <resolv.h>
14202 main ()
14204 return res_init();
14206 return 0;
14208 _ACEOF
14209 if ac_fn_c_try_link "$LINENO"; then :
14210 have_res_init=yes
14211 else
14212 have_res_init=no
14214 rm -f core conftest.err conftest.$ac_objext \
14215 conftest$ac_exeext conftest.$ac_ext
14216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
14217 $as_echo "$have_res_init" >&6; }
14218 if test "$have_res_init" = yes ; then
14219 resolv=yes
14221 LIBS="$OLIBS"
14224 if test "$have_res_init" = yes; then
14226 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
14230 # Do we need the Hesiod library to provide the support routines?
14231 LIBHESIOD=
14232 if test "$with_hesiod" != no ; then
14233 # Don't set $LIBS here -- see comments above. FIXME which comments?
14234 ac_fn_c_check_func "$LINENO" "res_send" "ac_cv_func_res_send"
14235 if test "x$ac_cv_func_res_send" = x""yes; then :
14237 else
14238 ac_fn_c_check_func "$LINENO" "__res_send" "ac_cv_func___res_send"
14239 if test "x$ac_cv_func___res_send" = x""yes; then :
14241 else
14242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
14243 $as_echo_n "checking for res_send in -lresolv... " >&6; }
14244 if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
14245 $as_echo_n "(cached) " >&6
14246 else
14247 ac_check_lib_save_LIBS=$LIBS
14248 LIBS="-lresolv $LIBS"
14249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14250 /* end confdefs.h. */
14252 /* Override any GCC internal prototype to avoid an error.
14253 Use char because int might match the return type of a GCC
14254 builtin and then its argument prototype would still apply. */
14255 #ifdef __cplusplus
14256 extern "C"
14257 #endif
14258 char res_send ();
14260 main ()
14262 return res_send ();
14264 return 0;
14266 _ACEOF
14267 if ac_fn_c_try_link "$LINENO"; then :
14268 ac_cv_lib_resolv_res_send=yes
14269 else
14270 ac_cv_lib_resolv_res_send=no
14272 rm -f core conftest.err conftest.$ac_objext \
14273 conftest$ac_exeext conftest.$ac_ext
14274 LIBS=$ac_check_lib_save_LIBS
14276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
14277 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
14278 if test "x$ac_cv_lib_resolv_res_send" = x""yes; then :
14279 resolv=yes
14280 else
14281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
14282 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
14283 if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
14284 $as_echo_n "(cached) " >&6
14285 else
14286 ac_check_lib_save_LIBS=$LIBS
14287 LIBS="-lresolv $LIBS"
14288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14289 /* end confdefs.h. */
14291 /* Override any GCC internal prototype to avoid an error.
14292 Use char because int might match the return type of a GCC
14293 builtin and then its argument prototype would still apply. */
14294 #ifdef __cplusplus
14295 extern "C"
14296 #endif
14297 char __res_send ();
14299 main ()
14301 return __res_send ();
14303 return 0;
14305 _ACEOF
14306 if ac_fn_c_try_link "$LINENO"; then :
14307 ac_cv_lib_resolv___res_send=yes
14308 else
14309 ac_cv_lib_resolv___res_send=no
14311 rm -f core conftest.err conftest.$ac_objext \
14312 conftest$ac_exeext conftest.$ac_ext
14313 LIBS=$ac_check_lib_save_LIBS
14315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
14316 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
14317 if test "x$ac_cv_lib_resolv___res_send" = x""yes; then :
14318 resolv=yes
14327 if test "$resolv" = yes ; then
14328 RESOLVLIB=-lresolv
14329 else
14330 RESOLVLIB=
14332 ac_fn_c_check_func "$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
14333 if test "x$ac_cv_func_hes_getmailhost" = x""yes; then :
14335 else
14336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
14337 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
14338 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
14339 $as_echo_n "(cached) " >&6
14340 else
14341 ac_check_lib_save_LIBS=$LIBS
14342 LIBS="-lhesiod $RESOLVLIB $LIBS"
14343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14344 /* end confdefs.h. */
14346 /* Override any GCC internal prototype to avoid an error.
14347 Use char because int might match the return type of a GCC
14348 builtin and then its argument prototype would still apply. */
14349 #ifdef __cplusplus
14350 extern "C"
14351 #endif
14352 char hes_getmailhost ();
14354 main ()
14356 return hes_getmailhost ();
14358 return 0;
14360 _ACEOF
14361 if ac_fn_c_try_link "$LINENO"; then :
14362 ac_cv_lib_hesiod_hes_getmailhost=yes
14363 else
14364 ac_cv_lib_hesiod_hes_getmailhost=no
14366 rm -f core conftest.err conftest.$ac_objext \
14367 conftest$ac_exeext conftest.$ac_ext
14368 LIBS=$ac_check_lib_save_LIBS
14370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
14371 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
14372 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x""yes; then :
14373 hesiod=yes
14374 else
14381 if test x"$hesiod" = xyes; then
14383 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
14385 LIBHESIOD=-lhesiod
14390 # Do we need libresolv (due to res_init or Hesiod)?
14391 if test "$resolv" = yes && test $opsys != darwin; then
14393 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
14395 LIBRESOLV=-lresolv
14396 else
14397 LIBRESOLV=
14401 # These tell us which Kerberos-related libraries to use.
14402 COM_ERRLIB=
14403 CRYPTOLIB=
14404 KRB5LIB=
14405 DESLIB=
14406 KRB4LIB=
14408 if test "${with_kerberos}" != no; then
14409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
14410 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
14411 if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
14412 $as_echo_n "(cached) " >&6
14413 else
14414 ac_check_lib_save_LIBS=$LIBS
14415 LIBS="-lcom_err $LIBS"
14416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14417 /* end confdefs.h. */
14419 /* Override any GCC internal prototype to avoid an error.
14420 Use char because int might match the return type of a GCC
14421 builtin and then its argument prototype would still apply. */
14422 #ifdef __cplusplus
14423 extern "C"
14424 #endif
14425 char com_err ();
14427 main ()
14429 return com_err ();
14431 return 0;
14433 _ACEOF
14434 if ac_fn_c_try_link "$LINENO"; then :
14435 ac_cv_lib_com_err_com_err=yes
14436 else
14437 ac_cv_lib_com_err_com_err=no
14439 rm -f core conftest.err conftest.$ac_objext \
14440 conftest$ac_exeext conftest.$ac_ext
14441 LIBS=$ac_check_lib_save_LIBS
14443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
14444 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
14445 if test "x$ac_cv_lib_com_err_com_err" = x""yes; then :
14446 have_com_err=yes
14447 else
14448 have_com_err=no
14451 if test $have_com_err = yes; then
14452 COM_ERRLIB=-lcom_err
14453 LIBS="$COM_ERRLIB $LIBS"
14455 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
14458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
14459 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
14460 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
14461 $as_echo_n "(cached) " >&6
14462 else
14463 ac_check_lib_save_LIBS=$LIBS
14464 LIBS="-lcrypto $LIBS"
14465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14466 /* end confdefs.h. */
14468 /* Override any GCC internal prototype to avoid an error.
14469 Use char because int might match the return type of a GCC
14470 builtin and then its argument prototype would still apply. */
14471 #ifdef __cplusplus
14472 extern "C"
14473 #endif
14474 char mit_des_cbc_encrypt ();
14476 main ()
14478 return mit_des_cbc_encrypt ();
14480 return 0;
14482 _ACEOF
14483 if ac_fn_c_try_link "$LINENO"; then :
14484 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
14485 else
14486 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
14488 rm -f core conftest.err conftest.$ac_objext \
14489 conftest$ac_exeext conftest.$ac_ext
14490 LIBS=$ac_check_lib_save_LIBS
14492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
14493 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
14494 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x""yes; then :
14495 have_crypto=yes
14496 else
14497 have_crypto=no
14500 if test $have_crypto = yes; then
14501 CRYPTOLIB=-lcrypto
14502 LIBS="$CRYPTOLIB $LIBS"
14504 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
14507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
14508 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
14509 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
14510 $as_echo_n "(cached) " >&6
14511 else
14512 ac_check_lib_save_LIBS=$LIBS
14513 LIBS="-lk5crypto $LIBS"
14514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14515 /* end confdefs.h. */
14517 /* Override any GCC internal prototype to avoid an error.
14518 Use char because int might match the return type of a GCC
14519 builtin and then its argument prototype would still apply. */
14520 #ifdef __cplusplus
14521 extern "C"
14522 #endif
14523 char mit_des_cbc_encrypt ();
14525 main ()
14527 return mit_des_cbc_encrypt ();
14529 return 0;
14531 _ACEOF
14532 if ac_fn_c_try_link "$LINENO"; then :
14533 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
14534 else
14535 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
14537 rm -f core conftest.err conftest.$ac_objext \
14538 conftest$ac_exeext conftest.$ac_ext
14539 LIBS=$ac_check_lib_save_LIBS
14541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
14542 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
14543 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x""yes; then :
14544 have_k5crypto=yes
14545 else
14546 have_k5crypto=no
14549 if test $have_k5crypto = yes; then
14550 CRYPTOLIB=-lk5crypto
14551 LIBS="$CRYPTOLIB $LIBS"
14553 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
14556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
14557 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
14558 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
14559 $as_echo_n "(cached) " >&6
14560 else
14561 ac_check_lib_save_LIBS=$LIBS
14562 LIBS="-lkrb5 $LIBS"
14563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14564 /* end confdefs.h. */
14566 /* Override any GCC internal prototype to avoid an error.
14567 Use char because int might match the return type of a GCC
14568 builtin and then its argument prototype would still apply. */
14569 #ifdef __cplusplus
14570 extern "C"
14571 #endif
14572 char krb5_init_context ();
14574 main ()
14576 return krb5_init_context ();
14578 return 0;
14580 _ACEOF
14581 if ac_fn_c_try_link "$LINENO"; then :
14582 ac_cv_lib_krb5_krb5_init_context=yes
14583 else
14584 ac_cv_lib_krb5_krb5_init_context=no
14586 rm -f core conftest.err conftest.$ac_objext \
14587 conftest$ac_exeext conftest.$ac_ext
14588 LIBS=$ac_check_lib_save_LIBS
14590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
14591 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
14592 if test "x$ac_cv_lib_krb5_krb5_init_context" = x""yes; then :
14593 have_krb5=yes
14594 else
14595 have_krb5=no
14598 if test $have_krb5=yes; then
14599 KRB5LIB=-lkrb5
14600 LIBS="$KRB5LIB $LIBS"
14602 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
14605 if test "${with_kerberos5}" = no; then
14606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
14607 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
14608 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
14609 $as_echo_n "(cached) " >&6
14610 else
14611 ac_check_lib_save_LIBS=$LIBS
14612 LIBS="-ldes425 $LIBS"
14613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14614 /* end confdefs.h. */
14616 /* Override any GCC internal prototype to avoid an error.
14617 Use char because int might match the return type of a GCC
14618 builtin and then its argument prototype would still apply. */
14619 #ifdef __cplusplus
14620 extern "C"
14621 #endif
14622 char des_cbc_encrypt ();
14624 main ()
14626 return des_cbc_encrypt ();
14628 return 0;
14630 _ACEOF
14631 if ac_fn_c_try_link "$LINENO"; then :
14632 ac_cv_lib_des425_des_cbc_encrypt=yes
14633 else
14634 ac_cv_lib_des425_des_cbc_encrypt=no
14636 rm -f core conftest.err conftest.$ac_objext \
14637 conftest$ac_exeext conftest.$ac_ext
14638 LIBS=$ac_check_lib_save_LIBS
14640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
14641 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
14642 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x""yes; then :
14643 have_des425=yes
14644 else
14645 have_des425=no
14648 if test $have_des425 = yes; then
14649 DESLIB=-ldes425
14650 LIBS="$DESLIB $LIBS"
14652 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
14654 else
14655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
14656 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
14657 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
14658 $as_echo_n "(cached) " >&6
14659 else
14660 ac_check_lib_save_LIBS=$LIBS
14661 LIBS="-ldes $LIBS"
14662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14663 /* end confdefs.h. */
14665 /* Override any GCC internal prototype to avoid an error.
14666 Use char because int might match the return type of a GCC
14667 builtin and then its argument prototype would still apply. */
14668 #ifdef __cplusplus
14669 extern "C"
14670 #endif
14671 char des_cbc_encrypt ();
14673 main ()
14675 return des_cbc_encrypt ();
14677 return 0;
14679 _ACEOF
14680 if ac_fn_c_try_link "$LINENO"; then :
14681 ac_cv_lib_des_des_cbc_encrypt=yes
14682 else
14683 ac_cv_lib_des_des_cbc_encrypt=no
14685 rm -f core conftest.err conftest.$ac_objext \
14686 conftest$ac_exeext conftest.$ac_ext
14687 LIBS=$ac_check_lib_save_LIBS
14689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
14690 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
14691 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x""yes; then :
14692 have_des=yes
14693 else
14694 have_des=no
14697 if test $have_des = yes; then
14698 DESLIB=-ldes
14699 LIBS="$DESLIB $LIBS"
14701 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
14705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
14706 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
14707 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
14708 $as_echo_n "(cached) " >&6
14709 else
14710 ac_check_lib_save_LIBS=$LIBS
14711 LIBS="-lkrb4 $LIBS"
14712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14713 /* end confdefs.h. */
14715 /* Override any GCC internal prototype to avoid an error.
14716 Use char because int might match the return type of a GCC
14717 builtin and then its argument prototype would still apply. */
14718 #ifdef __cplusplus
14719 extern "C"
14720 #endif
14721 char krb_get_cred ();
14723 main ()
14725 return krb_get_cred ();
14727 return 0;
14729 _ACEOF
14730 if ac_fn_c_try_link "$LINENO"; then :
14731 ac_cv_lib_krb4_krb_get_cred=yes
14732 else
14733 ac_cv_lib_krb4_krb_get_cred=no
14735 rm -f core conftest.err conftest.$ac_objext \
14736 conftest$ac_exeext conftest.$ac_ext
14737 LIBS=$ac_check_lib_save_LIBS
14739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
14740 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
14741 if test "x$ac_cv_lib_krb4_krb_get_cred" = x""yes; then :
14742 have_krb4=yes
14743 else
14744 have_krb4=no
14747 if test $have_krb4 = yes; then
14748 KRB4LIB=-lkrb4
14749 LIBS="$KRB4LIB $LIBS"
14751 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
14753 else
14754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
14755 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
14756 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
14757 $as_echo_n "(cached) " >&6
14758 else
14759 ac_check_lib_save_LIBS=$LIBS
14760 LIBS="-lkrb $LIBS"
14761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14762 /* end confdefs.h. */
14764 /* Override any GCC internal prototype to avoid an error.
14765 Use char because int might match the return type of a GCC
14766 builtin and then its argument prototype would still apply. */
14767 #ifdef __cplusplus
14768 extern "C"
14769 #endif
14770 char krb_get_cred ();
14772 main ()
14774 return krb_get_cred ();
14776 return 0;
14778 _ACEOF
14779 if ac_fn_c_try_link "$LINENO"; then :
14780 ac_cv_lib_krb_krb_get_cred=yes
14781 else
14782 ac_cv_lib_krb_krb_get_cred=no
14784 rm -f core conftest.err conftest.$ac_objext \
14785 conftest$ac_exeext conftest.$ac_ext
14786 LIBS=$ac_check_lib_save_LIBS
14788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
14789 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
14790 if test "x$ac_cv_lib_krb_krb_get_cred" = x""yes; then :
14791 have_krb=yes
14792 else
14793 have_krb=no
14796 if test $have_krb = yes; then
14797 KRB4LIB=-lkrb
14798 LIBS="$KRB4LIB $LIBS"
14800 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
14806 if test "${with_kerberos5}" != no; then
14807 for ac_header in krb5.h
14808 do :
14809 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
14810 if test "x$ac_cv_header_krb5_h" = x""yes; then :
14811 cat >>confdefs.h <<_ACEOF
14812 #define HAVE_KRB5_H 1
14813 _ACEOF
14814 ac_fn_c_check_member "$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
14816 if test "x$ac_cv_member_krb5_error_text" = x""yes; then :
14818 cat >>confdefs.h <<_ACEOF
14819 #define HAVE_KRB5_ERROR_TEXT 1
14820 _ACEOF
14824 ac_fn_c_check_member "$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
14826 if test "x$ac_cv_member_krb5_error_e_text" = x""yes; then :
14828 cat >>confdefs.h <<_ACEOF
14829 #define HAVE_KRB5_ERROR_E_TEXT 1
14830 _ACEOF
14837 done
14839 else
14840 for ac_header in des.h
14841 do :
14842 ac_fn_c_check_header_mongrel "$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
14843 if test "x$ac_cv_header_des_h" = x""yes; then :
14844 cat >>confdefs.h <<_ACEOF
14845 #define HAVE_DES_H 1
14846 _ACEOF
14848 else
14849 for ac_header in kerberosIV/des.h
14850 do :
14851 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
14852 if test "x$ac_cv_header_kerberosIV_des_h" = x""yes; then :
14853 cat >>confdefs.h <<_ACEOF
14854 #define HAVE_KERBEROSIV_DES_H 1
14855 _ACEOF
14857 else
14858 for ac_header in kerberos/des.h
14859 do :
14860 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
14861 if test "x$ac_cv_header_kerberos_des_h" = x""yes; then :
14862 cat >>confdefs.h <<_ACEOF
14863 #define HAVE_KERBEROS_DES_H 1
14864 _ACEOF
14868 done
14872 done
14876 done
14878 for ac_header in krb.h
14879 do :
14880 ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
14881 if test "x$ac_cv_header_krb_h" = x""yes; then :
14882 cat >>confdefs.h <<_ACEOF
14883 #define HAVE_KRB_H 1
14884 _ACEOF
14886 else
14887 for ac_header in kerberosIV/krb.h
14888 do :
14889 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
14890 if test "x$ac_cv_header_kerberosIV_krb_h" = x""yes; then :
14891 cat >>confdefs.h <<_ACEOF
14892 #define HAVE_KERBEROSIV_KRB_H 1
14893 _ACEOF
14895 else
14896 for ac_header in kerberos/krb.h
14897 do :
14898 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
14899 if test "x$ac_cv_header_kerberos_krb_h" = x""yes; then :
14900 cat >>confdefs.h <<_ACEOF
14901 #define HAVE_KERBEROS_KRB_H 1
14902 _ACEOF
14906 done
14910 done
14914 done
14917 for ac_header in com_err.h
14918 do :
14919 ac_fn_c_check_header_mongrel "$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
14920 if test "x$ac_cv_header_com_err_h" = x""yes; then :
14921 cat >>confdefs.h <<_ACEOF
14922 #define HAVE_COM_ERR_H 1
14923 _ACEOF
14927 done
14940 for ac_func in $ac_func_list
14941 do :
14942 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14943 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14944 eval as_val=\$$as_ac_var
14945 if test "x$as_val" = x""yes; then :
14946 cat >>confdefs.h <<_ACEOF
14947 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14948 _ACEOF
14951 done
14956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
14957 $as_echo_n "checking whether localtime caches TZ... " >&6; }
14958 if test "${emacs_cv_localtime_cache+set}" = set; then :
14959 $as_echo_n "(cached) " >&6
14960 else
14961 if test x$ac_cv_func_tzset = xyes; then
14962 if test "$cross_compiling" = yes; then :
14963 # If we have tzset, assume the worst when cross-compiling.
14964 emacs_cv_localtime_cache=yes
14965 else
14966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14967 /* end confdefs.h. */
14968 #include <time.h>
14969 char TZ_GMT0[] = "TZ=GMT0";
14970 char TZ_PST8[] = "TZ=PST8";
14971 main()
14973 time_t now = time ((time_t *) 0);
14974 int hour_GMT0, hour_unset;
14975 if (putenv (TZ_GMT0) != 0)
14976 exit (1);
14977 hour_GMT0 = localtime (&now)->tm_hour;
14978 unsetenv("TZ");
14979 hour_unset = localtime (&now)->tm_hour;
14980 if (putenv (TZ_PST8) != 0)
14981 exit (1);
14982 if (localtime (&now)->tm_hour == hour_GMT0)
14983 exit (1);
14984 unsetenv("TZ");
14985 if (localtime (&now)->tm_hour != hour_unset)
14986 exit (1);
14987 exit (0);
14989 _ACEOF
14990 if ac_fn_c_try_run "$LINENO"; then :
14991 emacs_cv_localtime_cache=no
14992 else
14993 emacs_cv_localtime_cache=yes
14995 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14996 conftest.$ac_objext conftest.beam conftest.$ac_ext
14999 else
15000 # If we lack tzset, report that localtime does not cache TZ,
15001 # since we can't invalidate the cache if we don't have tzset.
15002 emacs_cv_localtime_cache=no
15005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
15006 $as_echo "$emacs_cv_localtime_cache" >&6; }
15007 if test $emacs_cv_localtime_cache = yes; then
15009 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
15013 ok_so_far=yes
15014 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
15015 if test "x$ac_cv_func_socket" = x""yes; then :
15017 else
15018 ok_so_far=no
15021 if test $ok_so_far = yes; then
15022 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
15023 if test "x$ac_cv_header_netinet_in_h" = x""yes; then :
15025 else
15026 ok_so_far=no
15031 if test $ok_so_far = yes; then
15032 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
15033 if test "x$ac_cv_header_arpa_inet_h" = x""yes; then :
15035 else
15036 ok_so_far=no
15041 if test $ok_so_far = yes; then
15043 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
15047 if test -f /usr/lpp/X11/bin/smt.exp; then
15049 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
15053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
15054 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
15055 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
15056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15057 $as_echo "yes" >&6; }
15059 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
15061 else
15062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15063 $as_echo "no" >&6; }
15066 case $canonical in
15067 *-solaris2.4 | *-solaris2.4.*)
15068 : ${ac_cv_func_vfork_works=no};;
15069 esac
15071 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
15072 if test "x$ac_cv_type_pid_t" = x""yes; then :
15074 else
15076 cat >>confdefs.h <<_ACEOF
15077 #define pid_t int
15078 _ACEOF
15082 for ac_header in vfork.h
15083 do :
15084 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
15085 if test "x$ac_cv_header_vfork_h" = x""yes; then :
15086 cat >>confdefs.h <<_ACEOF
15087 #define HAVE_VFORK_H 1
15088 _ACEOF
15092 done
15094 for ac_func in fork vfork
15095 do :
15096 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15097 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15098 eval as_val=\$$as_ac_var
15099 if test "x$as_val" = x""yes; then :
15100 cat >>confdefs.h <<_ACEOF
15101 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15102 _ACEOF
15105 done
15107 if test "x$ac_cv_func_fork" = xyes; then
15108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
15109 $as_echo_n "checking for working fork... " >&6; }
15110 if test "${ac_cv_func_fork_works+set}" = set; then :
15111 $as_echo_n "(cached) " >&6
15112 else
15113 if test "$cross_compiling" = yes; then :
15114 ac_cv_func_fork_works=cross
15115 else
15116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15117 /* end confdefs.h. */
15118 $ac_includes_default
15120 main ()
15123 /* By Ruediger Kuhlmann. */
15124 return fork () < 0;
15127 return 0;
15129 _ACEOF
15130 if ac_fn_c_try_run "$LINENO"; then :
15131 ac_cv_func_fork_works=yes
15132 else
15133 ac_cv_func_fork_works=no
15135 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15136 conftest.$ac_objext conftest.beam conftest.$ac_ext
15140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
15141 $as_echo "$ac_cv_func_fork_works" >&6; }
15143 else
15144 ac_cv_func_fork_works=$ac_cv_func_fork
15146 if test "x$ac_cv_func_fork_works" = xcross; then
15147 case $host in
15148 *-*-amigaos* | *-*-msdosdjgpp*)
15149 # Override, as these systems have only a dummy fork() stub
15150 ac_cv_func_fork_works=no
15153 ac_cv_func_fork_works=yes
15155 esac
15156 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
15157 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
15159 ac_cv_func_vfork_works=$ac_cv_func_vfork
15160 if test "x$ac_cv_func_vfork" = xyes; then
15161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
15162 $as_echo_n "checking for working vfork... " >&6; }
15163 if test "${ac_cv_func_vfork_works+set}" = set; then :
15164 $as_echo_n "(cached) " >&6
15165 else
15166 if test "$cross_compiling" = yes; then :
15167 ac_cv_func_vfork_works=cross
15168 else
15169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15170 /* end confdefs.h. */
15171 /* Thanks to Paul Eggert for this test. */
15172 $ac_includes_default
15173 #include <sys/wait.h>
15174 #ifdef HAVE_VFORK_H
15175 # include <vfork.h>
15176 #endif
15177 /* On some sparc systems, changes by the child to local and incoming
15178 argument registers are propagated back to the parent. The compiler
15179 is told about this with #include <vfork.h>, but some compilers
15180 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
15181 static variable whose address is put into a register that is
15182 clobbered by the vfork. */
15183 static void
15184 #ifdef __cplusplus
15185 sparc_address_test (int arg)
15186 # else
15187 sparc_address_test (arg) int arg;
15188 #endif
15190 static pid_t child;
15191 if (!child) {
15192 child = vfork ();
15193 if (child < 0) {
15194 perror ("vfork");
15195 _exit(2);
15197 if (!child) {
15198 arg = getpid();
15199 write(-1, "", 0);
15200 _exit (arg);
15206 main ()
15208 pid_t parent = getpid ();
15209 pid_t child;
15211 sparc_address_test (0);
15213 child = vfork ();
15215 if (child == 0) {
15216 /* Here is another test for sparc vfork register problems. This
15217 test uses lots of local variables, at least as many local
15218 variables as main has allocated so far including compiler
15219 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
15220 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
15221 reuse the register of parent for one of the local variables,
15222 since it will think that parent can't possibly be used any more
15223 in this routine. Assigning to the local variable will thus
15224 munge parent in the parent process. */
15225 pid_t
15226 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
15227 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
15228 /* Convince the compiler that p..p7 are live; otherwise, it might
15229 use the same hardware register for all 8 local variables. */
15230 if (p != p1 || p != p2 || p != p3 || p != p4
15231 || p != p5 || p != p6 || p != p7)
15232 _exit(1);
15234 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
15235 from child file descriptors. If the child closes a descriptor
15236 before it execs or exits, this munges the parent's descriptor
15237 as well. Test for this by closing stdout in the child. */
15238 _exit(close(fileno(stdout)) != 0);
15239 } else {
15240 int status;
15241 struct stat st;
15243 while (wait(&status) != child)
15245 return (
15246 /* Was there some problem with vforking? */
15247 child < 0
15249 /* Did the child fail? (This shouldn't happen.) */
15250 || status
15252 /* Did the vfork/compiler bug occur? */
15253 || parent != getpid()
15255 /* Did the file descriptor bug occur? */
15256 || fstat(fileno(stdout), &st) != 0
15260 _ACEOF
15261 if ac_fn_c_try_run "$LINENO"; then :
15262 ac_cv_func_vfork_works=yes
15263 else
15264 ac_cv_func_vfork_works=no
15266 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15267 conftest.$ac_objext conftest.beam conftest.$ac_ext
15271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
15272 $as_echo "$ac_cv_func_vfork_works" >&6; }
15275 if test "x$ac_cv_func_fork_works" = xcross; then
15276 ac_cv_func_vfork_works=$ac_cv_func_vfork
15277 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
15278 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
15281 if test "x$ac_cv_func_vfork_works" = xyes; then
15283 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
15285 else
15287 $as_echo "#define vfork fork" >>confdefs.h
15290 if test "x$ac_cv_func_fork_works" = xyes; then
15292 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
15297 for ac_func in snprintf
15298 do :
15299 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
15300 if test "x$ac_cv_func_snprintf" = x""yes; then :
15301 cat >>confdefs.h <<_ACEOF
15302 #define HAVE_SNPRINTF 1
15303 _ACEOF
15306 done
15309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
15310 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
15311 if test "${emacs_cv_langinfo_codeset+set}" = set; then :
15312 $as_echo_n "(cached) " >&6
15313 else
15314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15315 /* end confdefs.h. */
15316 #include <langinfo.h>
15318 main ()
15320 char* cs = nl_langinfo(CODESET);
15322 return 0;
15324 _ACEOF
15325 if ac_fn_c_try_link "$LINENO"; then :
15326 emacs_cv_langinfo_codeset=yes
15327 else
15328 emacs_cv_langinfo_codeset=no
15330 rm -f core conftest.err conftest.$ac_objext \
15331 conftest$ac_exeext conftest.$ac_ext
15334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
15335 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
15336 if test $emacs_cv_langinfo_codeset = yes; then
15338 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
15342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
15343 $as_echo_n "checking for mbstate_t... " >&6; }
15344 if test "${ac_cv_type_mbstate_t+set}" = set; then :
15345 $as_echo_n "(cached) " >&6
15346 else
15347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15348 /* end confdefs.h. */
15349 $ac_includes_default
15350 # include <wchar.h>
15352 main ()
15354 mbstate_t x; return sizeof x;
15356 return 0;
15358 _ACEOF
15359 if ac_fn_c_try_compile "$LINENO"; then :
15360 ac_cv_type_mbstate_t=yes
15361 else
15362 ac_cv_type_mbstate_t=no
15364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
15367 $as_echo "$ac_cv_type_mbstate_t" >&6; }
15368 if test $ac_cv_type_mbstate_t = yes; then
15370 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
15372 else
15374 $as_echo "#define mbstate_t int" >>confdefs.h
15378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
15379 $as_echo_n "checking for C restricted array declarations... " >&6; }
15380 if test "${emacs_cv_c_restrict_arr+set}" = set; then :
15381 $as_echo_n "(cached) " >&6
15382 else
15383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15384 /* end confdefs.h. */
15385 void fred (int x[__restrict]);
15387 main ()
15391 return 0;
15393 _ACEOF
15394 if ac_fn_c_try_compile "$LINENO"; then :
15395 emacs_cv_c_restrict_arr=yes
15396 else
15397 emacs_cv_c_restrict_arr=no
15399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
15402 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
15403 if test "$emacs_cv_c_restrict_arr" = yes; then
15405 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
15411 $as_echo "#define AMPERSAND_FULL_NAME 1" >>confdefs.h
15415 $as_echo "#define CLASH_DETECTION 1" >>confdefs.h
15418 ## Note: PTYs are broken on darwin <6. Use at your own risk.
15420 $as_echo "#define HAVE_PTYS 1" >>confdefs.h
15424 $as_echo "#define HAVE_SOCKETS 1" >>confdefs.h
15430 $as_echo "#define NULL_DEVICE \"/dev/null\"" >>confdefs.h
15434 $as_echo "#define SEPCHAR ':'" >>confdefs.h
15438 $as_echo "#define subprocesses 1" >>confdefs.h
15442 $as_echo "#define USER_FULL_NAME pw->pw_gecos" >>confdefs.h
15447 $as_echo "#define DIRECTORY_SEP '/'" >>confdefs.h
15453 $as_echo "#define IS_DEVICE_SEP(_c_) 0" >>confdefs.h
15457 $as_echo "#define IS_DIRECTORY_SEP(_c_) ((_c_) == DIRECTORY_SEP)" >>confdefs.h
15461 $as_echo "#define IS_ANY_SEP(_c_) (IS_DIRECTORY_SEP (_c_))" >>confdefs.h
15467 case $opsys in
15468 aix4-2)
15469 if test x$ac_cv_lib_Xmu_XmuConvertStandardSelection != xyes; then
15470 $as_echo "#define NO_EDITRES 1" >>confdefs.h
15475 hpux*)
15476 $as_echo "#define NO_EDITRES 1" >>confdefs.h
15479 esac
15482 case $opsys in
15483 irix6-5 | sol2* | unixware )
15485 $as_echo "#define NSIG_MINIMUM 32" >>confdefs.h
15488 esac
15490 emacs_broken_SIGIO=no
15492 case $opsys in
15493 hpux* | irix6-5 | openbsd | sol2* | unixware )
15494 emacs_broken_SIGIO=yes
15497 aix4-2)
15499 $as_echo "#define BROKEN_GET_CURRENT_DIR_NAME 1" >>confdefs.h
15503 freebsd)
15505 $as_echo "#define BROKEN_PTY_READ_AFTER_EAGAIN 1" >>confdefs.h
15508 esac
15510 case $opsys in
15511 gnu-* | sol2-10 )
15513 $as_echo "#define HAVE_PROCFS 1" >>confdefs.h
15516 esac
15518 case $opsys in
15519 darwin | freebsd | netbsd | openbsd )
15521 $as_echo "#define DONT_REOPEN_PTY 1" >>confdefs.h
15524 esac
15526 case $opsys in
15527 netbsd | openbsd) sound_device="/dev/audio" ;;
15528 *) sound_device="/dev/dsp" ;;
15529 esac
15532 cat >>confdefs.h <<_ACEOF
15533 #define DEFAULT_SOUND_DEVICE "$sound_device"
15534 _ACEOF
15538 case $opsys in
15539 darwin | gnu-linux | gnu-kfreebsd )
15541 $as_echo "#define INTERRUPT_INPUT 1" >>confdefs.h
15544 esac
15547 case $opsys in
15548 cygwin|gnu|gnu-linux|gnu-kfreebsd|irix6-5|freebsd|netbsd|openbsd)
15550 $as_echo "#define NARROWPROTO 1" >>confdefs.h
15553 esac
15562 case $opsys in
15563 aix4-2 )
15564 $as_echo "#define PTY_ITERATION int c; for (c = 0; !c ; c++)" >>confdefs.h
15566 $as_echo "#define PTY_NAME_SPRINTF strcpy (pty_name, \"/dev/ptc\");" >>confdefs.h
15568 $as_echo "#define PTY_TTY_NAME_SPRINTF strcpy (pty_name, ttyname (fd));" >>confdefs.h
15572 cygwin )
15573 $as_echo "#define PTY_ITERATION int i; for (i = 0; i < 1; i++)" >>confdefs.h
15575 $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
15577 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
15579 $as_echo "#define PTY_TTY_NAME_SPRINTF /**/" >>confdefs.h
15583 darwin )
15584 $as_echo "#define PTY_ITERATION int i; for (i = 0; i < 1; i++)" >>confdefs.h
15586 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
15588 $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
15590 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
15592 $as_echo "#define PTY_TTY_NAME_SPRINTF /**/" >>confdefs.h
15596 gnu | openbsd )
15597 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
15601 gnu-linux | gnu-kfreebsd | freebsd | netbsd )
15602 if test "x$ac_cv_func_grantpt" = xyes; then
15604 $as_echo "#define UNIX98_PTYS 1" >>confdefs.h
15606 $as_echo "#define PTY_ITERATION int i; for (i = 0; i < 1; i++)" >>confdefs.h
15608 $as_echo "#define PTY_TTY_NAME_SPRINTF { char *ptyname = 0; sigset_t blocked; sigemptyset (&blocked); sigaddset (&blocked, SIGCHLD); pthread_sigmask (SIG_BLOCK, &blocked, 0); if (grantpt (fd) != -1 && unlockpt (fd) != -1) ptyname = ptsname(fd); pthread_sigmask (SIG_UNBLOCK, &blocked, 0); if (!ptyname) { close (fd); return -1; } snprintf (pty_name, sizeof pty_name, \"%s\", ptyname); }" >>confdefs.h
15610 if test "x$ac_cv_func_posix_openpt" = xyes; then
15611 $as_echo "#define PTY_OPEN fd = posix_openpt (O_RDWR | O_NOCTTY)" >>confdefs.h
15613 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
15615 elif test "x$ac_cv_func_getpt" = xyes; then
15616 $as_echo "#define PTY_OPEN fd = getpt ()" >>confdefs.h
15618 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
15620 else
15621 $as_echo "#define PTY_NAME_SPRINTF strcpy (pty_name, \"/dev/ptmx\");" >>confdefs.h
15624 else
15625 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
15630 hpux*)
15631 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
15633 $as_echo "#define PTY_NAME_SPRINTF sprintf (pty_name, \"/dev/ptym/pty%c%x\", c, i);" >>confdefs.h
15635 $as_echo "#define PTY_TTY_NAME_SPRINTF sprintf (pty_name, \"/dev/pty/tty%c%x\", c, i);" >>confdefs.h
15639 irix6-5 )
15640 $as_echo "#define PTY_ITERATION /**/" >>confdefs.h
15642 $as_echo "#define FIRST_PTY_LETTER 'q'" >>confdefs.h
15644 $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
15646 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
15648 $as_echo "#define PTY_TTY_NAME_SPRINTF /**/" >>confdefs.h
15652 sol2* )
15653 $as_echo "#define PTY_TTY_NAME_SPRINTF { char *ptsname (int), *ptyname; int grantpt_result; sigset_t blocked; sigemptyset (&blocked); sigaddset (&blocked, SIGCHLD); pthread_sigmask (SIG_BLOCK, &blocked, 0); grantpt_result = grantpt (fd); pthread_sigmask (SIG_UNBLOCK, &blocked, 0); if (grantpt_result == -1 || unlockpt (fd) == -1 || !(ptyname = ptsname (fd))) { emacs_close (fd); return -1; } snprintf (pty_name, sizeof pty_name, \"%s\", ptyname); }" >>confdefs.h
15657 unixware )
15658 $as_echo "#define PTY_TTY_NAME_SPRINTF { char *ptsname (int), *ptyname; int grantpt_result; sigset_t blocked; sigemptyset (&blocked); sigaddset (&blocked, SIGCHLD); pthread_sigmask (SIG_BLOCK, &blocked, 0); grantpt_result = grantpt (fd); pthread_sigmask (SIG_UNBLOCK, &blocked, 0); if (grantpt_result == -1) fatal(\"could not grant slave pty\"); if (unlockpt(fd) == -1) fatal(\"could not unlock slave pty\"); if (!(ptyname = ptsname(fd))) fatal (\"could not enable slave pty\"); snprintf (pty_name, sizeof pty_name, \"%s\", ptyname); }" >>confdefs.h
15661 esac
15664 case $opsys in
15665 sol2* | unixware )
15666 $as_echo "#define FIRST_PTY_LETTER 'z'" >>confdefs.h
15668 $as_echo "#define PTY_NAME_SPRINTF strcpy (pty_name, \"/dev/ptmx\");" >>confdefs.h
15671 $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
15674 esac
15679 case $opsys in
15680 aix4-2 | cygwin | gnu | irix6-5 | freebsd | netbsd | openbsd | darwin )
15681 $as_echo "#define SIGNALS_VIA_CHARACTERS 1" >>confdefs.h
15685 gnu-linux | gnu-kfreebsd )
15687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signals via characters" >&5
15688 $as_echo_n "checking for signals via characters... " >&6; }
15689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15690 /* end confdefs.h. */
15692 #include <linux/version.h>
15693 #if LINUX_VERSION_CODE < 0x20400
15694 # error "Linux version too old"
15695 #endif
15698 main ()
15702 return 0;
15704 _ACEOF
15705 if ac_fn_c_try_cpp "$LINENO"; then :
15706 emacs_signals_via_chars=yes
15707 else
15708 emacs_signals_via_chars=no
15710 rm -f conftest.err conftest.$ac_ext
15712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_signals_via_chars" >&5
15713 $as_echo "$emacs_signals_via_chars" >&6; }
15714 test $emacs_signals_via_chars = yes && $as_echo "#define SIGNALS_VIA_CHARACTERS 1" >>confdefs.h
15717 esac
15723 case $opsys in
15724 gnu)
15725 $as_echo "#define DATA_START ({ extern int data_start; (char *) &data_start; })" >>confdefs.h
15729 hpux*)
15730 $as_echo "#define DATA_START 0x40000000" >>confdefs.h
15732 $as_echo "#define DATA_SEG_BITS 0x40000000" >>confdefs.h
15735 irix6-5)
15736 $as_echo "#define DATA_START 0x10000000" >>confdefs.h
15738 $as_echo "#define DATA_SEG_BITS 0x10000000" >>confdefs.h
15741 esac
15746 case $opsys in
15747 darwin) $as_echo "#define TAB3 OXTABS" >>confdefs.h
15750 gnu | freebsd | netbsd | openbsd )
15752 $as_echo "#define TABDLY OXTABS" >>confdefs.h
15754 $as_echo "#define TAB3 OXTABS" >>confdefs.h
15758 gnu-linux | gnu-kfreebsd )
15759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15760 /* end confdefs.h. */
15762 #ifndef __ia64__
15763 # error "not ia64"
15764 #endif
15767 main ()
15771 return 0;
15773 _ACEOF
15774 if ac_fn_c_try_cpp "$LINENO"; then :
15776 $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
15779 rm -f conftest.err conftest.$ac_ext
15782 hpux*)
15784 $as_echo "#define RUN_TIME_REMAP 1" >>confdefs.h
15787 esac
15793 case $opsys in
15794 gnu-linux | gnu-kfreebsd )
15795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15796 /* end confdefs.h. */
15798 #if defined __i386__ || defined __sparc__ || defined __mc68000__ \
15799 || defined __alpha__ || defined __mips__ || defined __s390__ \
15800 || defined __arm__ || defined __powerpc__ || defined __amd64__ \
15801 || defined __ia64__ || defined __sh__
15802 /* ok */
15803 #else
15804 # error "setjmp not known to work on this arch"
15805 #endif
15808 main ()
15812 return 0;
15814 _ACEOF
15815 if ac_fn_c_try_cpp "$LINENO"; then :
15816 $as_echo "#define GC_SETJMP_WORKS 1" >>confdefs.h
15819 rm -f conftest.err conftest.$ac_ext
15821 esac
15824 if test x$GCC = xyes; then
15825 $as_echo "#define GC_SETJMP_WORKS 1" >>confdefs.h
15827 else
15828 case $opsys in
15829 freebsd | netbsd | openbsd | irix6-5 | sol2* )
15830 $as_echo "#define GC_SETJMP_WORKS 1" >>confdefs.h
15833 esac
15835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _setjmp" >&5
15836 $as_echo_n "checking for _setjmp... " >&6; }
15837 if test "${emacs_cv_func__setjmp+set}" = set; then :
15838 $as_echo_n "(cached) " >&6
15839 else
15840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15841 /* end confdefs.h. */
15842 #include <setjmp.h>
15845 main ()
15847 jmp_buf j;
15848 if (! _setjmp (j))
15849 _longjmp (j, 1);
15851 return 0;
15853 _ACEOF
15854 if ac_fn_c_try_link "$LINENO"; then :
15855 emacs_cv_func__setjmp=yes
15856 else
15857 emacs_cv_func__setjmp=no
15859 rm -f core conftest.err conftest.$ac_objext \
15860 conftest$ac_exeext conftest.$ac_ext
15862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func__setjmp" >&5
15863 $as_echo "$emacs_cv_func__setjmp" >&6; }
15864 if test $emacs_cv_func__setjmp = yes; then
15866 $as_echo "#define HAVE__SETJMP 1" >>confdefs.h
15868 else
15869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
15870 $as_echo_n "checking for sigsetjmp... " >&6; }
15871 if test "${emacs_cv_func_sigsetjmp+set}" = set; then :
15872 $as_echo_n "(cached) " >&6
15873 else
15874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15875 /* end confdefs.h. */
15876 #include <setjmp.h>
15879 main ()
15881 sigjmp_buf j;
15882 if (! sigsetjmp (j, 1))
15883 siglongjmp (j, 1);
15885 return 0;
15887 _ACEOF
15888 if ac_fn_c_try_link "$LINENO"; then :
15889 emacs_cv_func_sigsetjmp=yes
15890 else
15891 emacs_cv_func_sigsetjmp=no
15893 rm -f core conftest.err conftest.$ac_objext \
15894 conftest$ac_exeext conftest.$ac_ext
15896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func_sigsetjmp" >&5
15897 $as_echo "$emacs_cv_func_sigsetjmp" >&6; }
15898 if test $emacs_cv_func_sigsetjmp = yes; then
15900 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
15905 case $opsys in
15906 sol2* | unixware )
15908 $as_echo "#define TIOCSIGSEND TIOCSIGNAL" >>confdefs.h
15911 esac
15914 case $opsys in
15915 hpux* | sol2* )
15917 $as_echo "#define XOS_NEEDS_TIME_H 1" >>confdefs.h
15920 esac
15930 case $opsys in
15931 aix4-2)
15932 $as_echo "#define USG /**/" >>confdefs.h
15934 $as_echo "#define USG5 /**/" >>confdefs.h
15936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15937 /* end confdefs.h. */
15939 #ifndef _AIX
15940 # error "_AIX not defined"
15941 #endif
15944 main ()
15948 return 0;
15950 _ACEOF
15951 if ac_fn_c_try_cpp "$LINENO"; then :
15953 else
15955 $as_echo "#define _AIX /**/" >>confdefs.h
15958 rm -f conftest.err conftest.$ac_ext
15961 cygwin)
15963 $as_echo "#define CYGWIN 1" >>confdefs.h
15967 darwin)
15968 $as_echo "#define BSD_SYSTEM /**/" >>confdefs.h
15971 $as_echo "#define DARWIN_OS /**/" >>confdefs.h
15975 freebsd)
15977 $as_echo "#define BSD_SYSTEM_AHB 1" >>confdefs.h
15981 gnu | netbsd | openbsd )
15982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15983 /* end confdefs.h. */
15985 #ifndef BSD_SYSTEM
15986 # error "BSD_SYSTEM not defined"
15987 #endif
15990 main ()
15994 return 0;
15996 _ACEOF
15997 if ac_fn_c_try_cpp "$LINENO"; then :
15999 else
16000 $as_echo "#define BSD_SYSTEM 43" >>confdefs.h
16003 rm -f conftest.err conftest.$ac_ext
16006 gnu-linux | gnu-kfreebsd )
16007 $as_echo "#define USG /**/" >>confdefs.h
16010 $as_echo "#define GNU_LINUX /**/" >>confdefs.h
16014 hpux*)
16015 $as_echo "#define USG /**/" >>confdefs.h
16017 $as_echo "#define USG5 /**/" >>confdefs.h
16020 $as_echo "#define HPUX /**/" >>confdefs.h
16024 irix6-5)
16025 $as_echo "#define USG /**/" >>confdefs.h
16027 $as_echo "#define USG5 /**/" >>confdefs.h
16029 $as_echo "#define USG5_4 /**/" >>confdefs.h
16032 $as_echo "#define IRIX6_5 /**/" >>confdefs.h
16036 sol2*)
16037 $as_echo "#define USG /**/" >>confdefs.h
16039 $as_echo "#define USG5 /**/" >>confdefs.h
16041 $as_echo "#define USG5_4 /**/" >>confdefs.h
16044 $as_echo "#define SOLARIS2 /**/" >>confdefs.h
16048 unixware)
16049 $as_echo "#define USG /**/" >>confdefs.h
16051 $as_echo "#define USG5 /**/" >>confdefs.h
16053 $as_echo "#define USG5_4 /**/" >>confdefs.h
16056 esac
16058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable FIONREAD" >&5
16059 $as_echo_n "checking for usable FIONREAD... " >&6; }
16060 if test "${emacs_cv_usable_FIONREAD+set}" = set; then :
16061 $as_echo_n "(cached) " >&6
16062 else
16063 case $opsys in
16064 aix4-2)
16065 emacs_cv_usable_FIONREAD=no
16069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16070 /* end confdefs.h. */
16071 #include <sys/types.h>
16072 #include <sys/ioctl.h>
16073 #ifdef USG5_4
16074 # include <sys/filio.h>
16075 #endif
16078 main ()
16080 int foo = ioctl (0, FIONREAD, &foo);
16082 return 0;
16084 _ACEOF
16085 if ac_fn_c_try_compile "$LINENO"; then :
16086 emacs_cv_usable_FIONREAD=yes
16087 else
16088 emacs_cv_usable_FIONREAD=no
16090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16092 esac
16094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_usable_FIONREAD" >&5
16095 $as_echo "$emacs_cv_usable_FIONREAD" >&6; }
16096 if test $emacs_cv_usable_FIONREAD = yes; then
16098 $as_echo "#define USABLE_FIONREAD 1" >>confdefs.h
16101 if test $emacs_broken_SIGIO = no; then
16102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable SIGIO" >&5
16103 $as_echo_n "checking for usable SIGIO... " >&6; }
16104 if test "${emacs_cv_usable_SIGIO+set}" = set; then :
16105 $as_echo_n "(cached) " >&6
16106 else
16107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16108 /* end confdefs.h. */
16109 #include <fcntl.h>
16110 #include <signal.h>
16113 main ()
16115 int foo = SIGIO | F_SETFL | FASYNC;
16117 return 0;
16119 _ACEOF
16120 if ac_fn_c_try_compile "$LINENO"; then :
16121 emacs_cv_usable_SIGIO=yes
16122 else
16123 emacs_cv_usable_SIGIO=no
16125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_usable_SIGIO" >&5
16128 $as_echo "$emacs_cv_usable_SIGIO" >&6; }
16129 if test $emacs_cv_usable_SIGIO = yes; then
16131 $as_echo "#define USABLE_SIGIO 1" >>confdefs.h
16138 case $opsys in
16139 cygwin)
16141 $as_echo "#define G_SLICE_ALWAYS_MALLOC 1" >>confdefs.h
16145 hpux11)
16147 $as_echo "#define USG_SUBTTY_WORKS 1" >>confdefs.h
16151 irix6-5)
16153 $as_echo "#define PREFER_VSUSP 1" >>confdefs.h
16157 sol2-10)
16159 $as_echo "#define _STRUCTURED_PROC 1" >>confdefs.h
16162 esac
16164 # Set up the CFLAGS for real compilation, so we can substitute it.
16165 CFLAGS="$REAL_CFLAGS"
16166 CPPFLAGS="$REAL_CPPFLAGS"
16168 ## Hack to detect a buggy GCC version.
16169 if test "x$GCC" = xyes \
16170 && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
16171 && test x"`echo $CFLAGS | grep '\-O[23]'`" != x \
16172 && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then
16173 as_fn_error "GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
16176 version=$PACKAGE_VERSION
16178 copyright="Copyright (C) 2013 Free Software Foundation, Inc."
16180 cat >>confdefs.h <<_ACEOF
16181 #define COPYRIGHT "$copyright"
16182 _ACEOF
16186 ### Specify what sort of things we'll be editing into Makefile and config.h.
16187 ### Use configuration here uncanonicalized to avoid exceeding size limits.
16190 ## Unused?
16213 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
16214 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
16215 ## end of LIBX_BASE, but nothing ever set it.
16220 ## Used in lwlib/Makefile.in.
16229 if test -n "${term_header}"; then
16231 cat >>confdefs.h <<_ACEOF
16232 #define TERM_HEADER "${term_header}"
16233 _ACEOF
16238 cat >>confdefs.h <<_ACEOF
16239 #define EMACS_CONFIGURATION "${canonical}"
16240 _ACEOF
16242 emacs_config_options=`echo "$emacs_config_options " | sed -e 's/--no-create //' -e 's/--no-recursion //' -e 's/ *$//' -e "s/\"/'/g"`
16244 cat >>confdefs.h <<_ACEOF
16245 #define EMACS_CONFIG_OPTIONS "${emacs_config_options}"
16246 _ACEOF
16250 XMENU_OBJ=
16251 XOBJ=
16252 FONT_OBJ=
16253 if test "${HAVE_X_WINDOWS}" = "yes" ; then
16255 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
16257 XMENU_OBJ=xmenu.o
16258 XOBJ="xterm.o xfns.o xselect.o xrdb.o xsmfns.o xsettings.o xgselect.o"
16259 FONT_OBJ=xfont.o
16260 if test "$HAVE_XFT" = "yes"; then
16261 FONT_OBJ="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
16262 elif test "$HAVE_FREETYPE" = "yes"; then
16263 FONT_OBJ="$FONT_OBJ ftfont.o ftxfont.o"
16271 WIDGET_OBJ=
16272 MOTIF_LIBW=
16273 if test "${USE_X_TOOLKIT}" != "none" ; then
16274 WIDGET_OBJ=widget.o
16276 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
16278 if test "${USE_X_TOOLKIT}" = "LUCID"; then
16280 $as_echo "#define USE_LUCID 1" >>confdefs.h
16282 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
16284 $as_echo "#define USE_MOTIF 1" >>confdefs.h
16286 MOTIF_LIBW=-lXm
16287 case "$opsys" in
16288 gnu-linux)
16289 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
16290 MOTIF_LIBW="$MOTIF_LIBW -lXpm"
16293 unixware)
16294 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
16295 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
16296 MOTIF_LIBW="MOTIF_LIBW -lXimp"
16299 aix4-2)
16300 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
16301 MOTIF_LIBW="$MOTIF_LIBW -li18n"
16303 esac
16304 MOTIF_LIBW="$MOTIF_LIBW $LIBXP"
16309 TOOLKIT_LIBW=
16310 case "$USE_X_TOOLKIT" in
16311 MOTIF) TOOLKIT_LIBW="$MOTIF_LIBW" ;;
16312 LUCID) TOOLKIT_LIBW="$LUCID_LIBW" ;;
16313 none) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW="$GTK_LIBS" ;;
16314 esac
16317 if test "$USE_X_TOOLKIT" = "none"; then
16318 LIBXT_OTHER="\$(LIBXSM)"
16319 OLDXMENU_TARGET="really-oldXMenu"
16320 else
16321 LIBXT_OTHER="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
16322 OLDXMENU_TARGET="really-lwlib"
16326 ## The X Menu stuff is present in the X10 distribution, but missing
16327 ## from X11. If we have X10, just use the installed library;
16328 ## otherwise, use our own copy.
16329 if test "${HAVE_X11}" = "yes" ; then
16331 $as_echo "#define HAVE_X11 1" >>confdefs.h
16334 if test "$USE_X_TOOLKIT" = "none"; then
16335 OLDXMENU="\${oldXMenudir}/libXMenu11.a"
16336 else
16337 OLDXMENU="\${lwlibdir}/liblw.a"
16339 LIBXMENU="\$(OLDXMENU)"
16340 LIBX_OTHER="\$(LIBXT) \$(LIBX_EXTRA)"
16341 OLDXMENU_DEPS="\${OLDXMENU} ../src/\${OLDXMENU}"
16342 else
16343 ## For a syntactically valid Makefile; not actually used for anything.
16344 ## See comments in src/Makefile.in.
16345 OLDXMENU=nothing
16346 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
16347 if test "${HAVE_X_WINDOWS}" = "yes"; then
16348 LIBXMENU="-lXMenu"
16349 else
16350 LIBXMENU=
16352 LIBX_OTHER=
16353 OLDXMENU_DEPS=
16356 if test "$HAVE_GTK" = "yes" || test "$HAVE_MENUS" != "yes"; then
16357 OLDXMENU_TARGET=
16358 OLDXMENU=nothing
16359 LIBXMENU=
16360 OLDXMENU_DEPS=
16369 if test "${HAVE_MENUS}" = "yes" ; then
16371 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
16375 if test "${GNU_MALLOC}" = "yes" ; then
16377 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
16381 RALLOC_OBJ=
16382 if test "${REL_ALLOC}" = "yes" ; then
16384 $as_echo "#define REL_ALLOC 1" >>confdefs.h
16387 test "$system_malloc" != "yes" && RALLOC_OBJ=ralloc.o
16391 if test "$opsys" = "cygwin"; then
16392 CYGWIN_OBJ="sheap.o cygw32.o"
16393 ## Cygwin differs because of its unexec().
16394 PRE_ALLOC_OBJ=
16395 POST_ALLOC_OBJ=lastfile.o
16396 else
16397 CYGWIN_OBJ=
16398 PRE_ALLOC_OBJ=lastfile.o
16399 POST_ALLOC_OBJ=
16405 # Configure gnulib. Although this does not affect CFLAGS or LIBS permanently.
16406 # it temporarily reverts them to their pre-pkg-config values,
16407 # because gnulib needs to work with both src (which uses the
16408 # pkg-config stuff) and lib-src (which does not). For example, gnulib
16409 # may need to determine whether LIB_CLOCK_GETTIME should contain -lrt,
16410 # and it therefore needs to run in an environment where LIBS does not
16411 # already contain -lrt merely because 'pkg-config --libs' printed '-lrt'
16412 # for some package unrelated to lib-src.
16413 SAVE_CFLAGS=$CFLAGS
16414 SAVE_LIBS=$LIBS
16415 CFLAGS=$pre_PKG_CONFIG_CFLAGS
16416 LIBS="$LIB_PTHREAD $pre_PKG_CONFIG_LIBS"
16428 LIBC_FATAL_STDERR_=1
16429 export LIBC_FATAL_STDERR_
16431 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16432 # for constant arguments. Useless!
16433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
16434 $as_echo_n "checking for working alloca.h... " >&6; }
16435 if test "${ac_cv_working_alloca_h+set}" = set; then :
16436 $as_echo_n "(cached) " >&6
16437 else
16438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16439 /* end confdefs.h. */
16440 #include <alloca.h>
16442 main ()
16444 char *p = (char *) alloca (2 * sizeof (int));
16445 if (p) return 0;
16447 return 0;
16449 _ACEOF
16450 if ac_fn_c_try_link "$LINENO"; then :
16451 ac_cv_working_alloca_h=yes
16452 else
16453 ac_cv_working_alloca_h=no
16455 rm -f core conftest.err conftest.$ac_objext \
16456 conftest$ac_exeext conftest.$ac_ext
16458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
16459 $as_echo "$ac_cv_working_alloca_h" >&6; }
16460 if test $ac_cv_working_alloca_h = yes; then
16462 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
16466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
16467 $as_echo_n "checking for alloca... " >&6; }
16468 if test "${ac_cv_func_alloca_works+set}" = set; then :
16469 $as_echo_n "(cached) " >&6
16470 else
16471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16472 /* end confdefs.h. */
16473 #ifdef __GNUC__
16474 # define alloca __builtin_alloca
16475 #else
16476 # ifdef _MSC_VER
16477 # include <malloc.h>
16478 # define alloca _alloca
16479 # else
16480 # ifdef HAVE_ALLOCA_H
16481 # include <alloca.h>
16482 # else
16483 # ifdef _AIX
16484 #pragma alloca
16485 # else
16486 # ifndef alloca /* predefined by HP cc +Olibcalls */
16487 char *alloca ();
16488 # endif
16489 # endif
16490 # endif
16491 # endif
16492 #endif
16495 main ()
16497 char *p = (char *) alloca (1);
16498 if (p) return 0;
16500 return 0;
16502 _ACEOF
16503 if ac_fn_c_try_link "$LINENO"; then :
16504 ac_cv_func_alloca_works=yes
16505 else
16506 ac_cv_func_alloca_works=no
16508 rm -f core conftest.err conftest.$ac_objext \
16509 conftest$ac_exeext conftest.$ac_ext
16511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
16512 $as_echo "$ac_cv_func_alloca_works" >&6; }
16514 if test $ac_cv_func_alloca_works = yes; then
16516 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
16518 else
16519 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16520 # that cause trouble. Some versions do not even contain alloca or
16521 # contain a buggy version. If you still want to use their alloca,
16522 # use ar to extract alloca.o from them instead of compiling alloca.c.
16528 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
16530 $as_echo "#define C_ALLOCA 1" >>confdefs.h
16533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 'alloca.c' needs Cray hooks" >&5
16534 $as_echo_n "checking whether 'alloca.c' needs Cray hooks... " >&6; }
16535 if test "${ac_cv_os_cray+set}" = set; then :
16536 $as_echo_n "(cached) " >&6
16537 else
16538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16539 /* end confdefs.h. */
16540 #if defined CRAY && ! defined CRAY2
16541 webecray
16542 #else
16543 wenotbecray
16544 #endif
16546 _ACEOF
16547 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16548 $EGREP "webecray" >/dev/null 2>&1; then :
16549 ac_cv_os_cray=yes
16550 else
16551 ac_cv_os_cray=no
16553 rm -f conftest*
16556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
16557 $as_echo "$ac_cv_os_cray" >&6; }
16558 if test $ac_cv_os_cray = yes; then
16559 for ac_func in _getb67 GETB67 getb67; do
16560 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16561 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16562 eval as_val=\$$as_ac_var
16563 if test "x$as_val" = x""yes; then :
16565 cat >>confdefs.h <<_ACEOF
16566 #define CRAY_STACKSEG_END $ac_func
16567 _ACEOF
16569 break
16572 done
16575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
16576 $as_echo_n "checking stack direction for C alloca... " >&6; }
16577 if test "${ac_cv_c_stack_direction+set}" = set; then :
16578 $as_echo_n "(cached) " >&6
16579 else
16580 if test "$cross_compiling" = yes; then :
16581 ac_cv_c_stack_direction=0
16582 else
16583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16584 /* end confdefs.h. */
16585 $ac_includes_default
16587 find_stack_direction (int *addr, int depth)
16589 int dir, dummy = 0;
16590 if (! addr)
16591 addr = &dummy;
16592 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
16593 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
16594 return dir + dummy;
16598 main (int argc, char **argv)
16600 return find_stack_direction (0, argc + !argv + 20) < 0;
16602 _ACEOF
16603 if ac_fn_c_try_run "$LINENO"; then :
16604 ac_cv_c_stack_direction=1
16605 else
16606 ac_cv_c_stack_direction=-1
16608 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16609 conftest.$ac_objext conftest.beam conftest.$ac_ext
16613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
16614 $as_echo "$ac_cv_c_stack_direction" >&6; }
16615 cat >>confdefs.h <<_ACEOF
16616 #define STACK_DIRECTION $ac_cv_c_stack_direction
16617 _ACEOF
16625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
16626 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
16627 if test "${ac_cv_c_bigendian+set}" = set; then :
16628 $as_echo_n "(cached) " >&6
16629 else
16630 ac_cv_c_bigendian=unknown
16631 # See if we're dealing with a universal compiler.
16632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16633 /* end confdefs.h. */
16634 #ifndef __APPLE_CC__
16635 not a universal capable compiler
16636 #endif
16637 typedef int dummy;
16639 _ACEOF
16640 if ac_fn_c_try_compile "$LINENO"; then :
16642 # Check for potential -arch flags. It is not universal unless
16643 # there are at least two -arch flags with different values.
16644 ac_arch=
16645 ac_prev=
16646 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
16647 if test -n "$ac_prev"; then
16648 case $ac_word in
16649 i?86 | x86_64 | ppc | ppc64)
16650 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
16651 ac_arch=$ac_word
16652 else
16653 ac_cv_c_bigendian=universal
16654 break
16657 esac
16658 ac_prev=
16659 elif test "x$ac_word" = "x-arch"; then
16660 ac_prev=arch
16662 done
16664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16665 if test $ac_cv_c_bigendian = unknown; then
16666 # See if sys/param.h defines the BYTE_ORDER macro.
16667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16668 /* end confdefs.h. */
16669 #include <sys/types.h>
16670 #include <sys/param.h>
16673 main ()
16675 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
16676 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
16677 && LITTLE_ENDIAN)
16678 bogus endian macros
16679 #endif
16682 return 0;
16684 _ACEOF
16685 if ac_fn_c_try_compile "$LINENO"; then :
16686 # It does; now see whether it defined to BIG_ENDIAN or not.
16687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16688 /* end confdefs.h. */
16689 #include <sys/types.h>
16690 #include <sys/param.h>
16693 main ()
16695 #if BYTE_ORDER != BIG_ENDIAN
16696 not big endian
16697 #endif
16700 return 0;
16702 _ACEOF
16703 if ac_fn_c_try_compile "$LINENO"; then :
16704 ac_cv_c_bigendian=yes
16705 else
16706 ac_cv_c_bigendian=no
16708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16712 if test $ac_cv_c_bigendian = unknown; then
16713 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
16714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16715 /* end confdefs.h. */
16716 #include <limits.h>
16719 main ()
16721 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
16722 bogus endian macros
16723 #endif
16726 return 0;
16728 _ACEOF
16729 if ac_fn_c_try_compile "$LINENO"; then :
16730 # It does; now see whether it defined to _BIG_ENDIAN or not.
16731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16732 /* end confdefs.h. */
16733 #include <limits.h>
16736 main ()
16738 #ifndef _BIG_ENDIAN
16739 not big endian
16740 #endif
16743 return 0;
16745 _ACEOF
16746 if ac_fn_c_try_compile "$LINENO"; then :
16747 ac_cv_c_bigendian=yes
16748 else
16749 ac_cv_c_bigendian=no
16751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16755 if test $ac_cv_c_bigendian = unknown; then
16756 # Compile a test program.
16757 if test "$cross_compiling" = yes; then :
16758 # Try to guess by grepping values from an object file.
16759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16760 /* end confdefs.h. */
16761 short int ascii_mm[] =
16762 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
16763 short int ascii_ii[] =
16764 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
16765 int use_ascii (int i) {
16766 return ascii_mm[i] + ascii_ii[i];
16768 short int ebcdic_ii[] =
16769 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
16770 short int ebcdic_mm[] =
16771 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
16772 int use_ebcdic (int i) {
16773 return ebcdic_mm[i] + ebcdic_ii[i];
16775 extern int foo;
16778 main ()
16780 return use_ascii (foo) == use_ebcdic (foo);
16782 return 0;
16784 _ACEOF
16785 if ac_fn_c_try_compile "$LINENO"; then :
16786 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
16787 ac_cv_c_bigendian=yes
16789 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
16790 if test "$ac_cv_c_bigendian" = unknown; then
16791 ac_cv_c_bigendian=no
16792 else
16793 # finding both strings is unlikely to happen, but who knows?
16794 ac_cv_c_bigendian=unknown
16798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16799 else
16800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16801 /* end confdefs.h. */
16802 $ac_includes_default
16804 main ()
16807 /* Are we little or big endian? From Harbison&Steele. */
16808 union
16810 long int l;
16811 char c[sizeof (long int)];
16812 } u;
16813 u.l = 1;
16814 return u.c[sizeof (long int) - 1] == 1;
16817 return 0;
16819 _ACEOF
16820 if ac_fn_c_try_run "$LINENO"; then :
16821 ac_cv_c_bigendian=no
16822 else
16823 ac_cv_c_bigendian=yes
16825 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16826 conftest.$ac_objext conftest.beam conftest.$ac_ext
16831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
16832 $as_echo "$ac_cv_c_bigendian" >&6; }
16833 case $ac_cv_c_bigendian in #(
16834 yes)
16835 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
16836 ;; #(
16838 ;; #(
16839 universal)
16841 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
16843 ;; #(
16845 as_fn_error "unknown endianness
16846 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
16847 esac
16851 GNULIB_CHDIR=0;
16852 GNULIB_CHOWN=0;
16853 GNULIB_CLOSE=0;
16854 GNULIB_DUP=0;
16855 GNULIB_DUP2=0;
16856 GNULIB_DUP3=0;
16857 GNULIB_ENVIRON=0;
16858 GNULIB_EUIDACCESS=0;
16859 GNULIB_FACCESSAT=0;
16860 GNULIB_FCHDIR=0;
16861 GNULIB_FCHOWNAT=0;
16862 GNULIB_FDATASYNC=0;
16863 GNULIB_FSYNC=0;
16864 GNULIB_FTRUNCATE=0;
16865 GNULIB_GETCWD=0;
16866 GNULIB_GETDOMAINNAME=0;
16867 GNULIB_GETDTABLESIZE=0;
16868 GNULIB_GETGROUPS=0;
16869 GNULIB_GETHOSTNAME=0;
16870 GNULIB_GETLOGIN=0;
16871 GNULIB_GETLOGIN_R=0;
16872 GNULIB_GETPAGESIZE=0;
16873 GNULIB_GETUSERSHELL=0;
16874 GNULIB_GROUP_MEMBER=0;
16875 GNULIB_ISATTY=0;
16876 GNULIB_LCHOWN=0;
16877 GNULIB_LINK=0;
16878 GNULIB_LINKAT=0;
16879 GNULIB_LSEEK=0;
16880 GNULIB_PIPE=0;
16881 GNULIB_PIPE2=0;
16882 GNULIB_PREAD=0;
16883 GNULIB_PWRITE=0;
16884 GNULIB_READ=0;
16885 GNULIB_READLINK=0;
16886 GNULIB_READLINKAT=0;
16887 GNULIB_RMDIR=0;
16888 GNULIB_SETHOSTNAME=0;
16889 GNULIB_SLEEP=0;
16890 GNULIB_SYMLINK=0;
16891 GNULIB_SYMLINKAT=0;
16892 GNULIB_TTYNAME_R=0;
16893 GNULIB_UNISTD_H_NONBLOCKING=0;
16894 GNULIB_UNISTD_H_SIGPIPE=0;
16895 GNULIB_UNLINK=0;
16896 GNULIB_UNLINKAT=0;
16897 GNULIB_USLEEP=0;
16898 GNULIB_WRITE=0;
16899 HAVE_CHOWN=1;
16900 HAVE_DUP2=1;
16901 HAVE_DUP3=1;
16902 HAVE_EUIDACCESS=1;
16903 HAVE_FACCESSAT=1;
16904 HAVE_FCHDIR=1;
16905 HAVE_FCHOWNAT=1;
16906 HAVE_FDATASYNC=1;
16907 HAVE_FSYNC=1;
16908 HAVE_FTRUNCATE=1;
16909 HAVE_GETDTABLESIZE=1;
16910 HAVE_GETGROUPS=1;
16911 HAVE_GETHOSTNAME=1;
16912 HAVE_GETLOGIN=1;
16913 HAVE_GETPAGESIZE=1;
16914 HAVE_GROUP_MEMBER=1;
16915 HAVE_LCHOWN=1;
16916 HAVE_LINK=1;
16917 HAVE_LINKAT=1;
16918 HAVE_PIPE=1;
16919 HAVE_PIPE2=1;
16920 HAVE_PREAD=1;
16921 HAVE_PWRITE=1;
16922 HAVE_READLINK=1;
16923 HAVE_READLINKAT=1;
16924 HAVE_SETHOSTNAME=1;
16925 HAVE_SLEEP=1;
16926 HAVE_SYMLINK=1;
16927 HAVE_SYMLINKAT=1;
16928 HAVE_UNLINKAT=1;
16929 HAVE_USLEEP=1;
16930 HAVE_DECL_ENVIRON=1;
16931 HAVE_DECL_FCHDIR=1;
16932 HAVE_DECL_FDATASYNC=1;
16933 HAVE_DECL_GETDOMAINNAME=1;
16934 HAVE_DECL_GETLOGIN_R=1;
16935 HAVE_DECL_GETPAGESIZE=1;
16936 HAVE_DECL_GETUSERSHELL=1;
16937 HAVE_DECL_SETHOSTNAME=1;
16938 HAVE_DECL_TTYNAME_R=1;
16939 HAVE_OS_H=0;
16940 HAVE_SYS_PARAM_H=0;
16941 REPLACE_CHOWN=0;
16942 REPLACE_CLOSE=0;
16943 REPLACE_DUP=0;
16944 REPLACE_DUP2=0;
16945 REPLACE_FCHOWNAT=0;
16946 REPLACE_FTRUNCATE=0;
16947 REPLACE_GETCWD=0;
16948 REPLACE_GETDOMAINNAME=0;
16949 REPLACE_GETLOGIN_R=0;
16950 REPLACE_GETGROUPS=0;
16951 REPLACE_GETPAGESIZE=0;
16952 REPLACE_ISATTY=0;
16953 REPLACE_LCHOWN=0;
16954 REPLACE_LINK=0;
16955 REPLACE_LINKAT=0;
16956 REPLACE_LSEEK=0;
16957 REPLACE_PREAD=0;
16958 REPLACE_PWRITE=0;
16959 REPLACE_READ=0;
16960 REPLACE_READLINK=0;
16961 REPLACE_RMDIR=0;
16962 REPLACE_SLEEP=0;
16963 REPLACE_SYMLINK=0;
16964 REPLACE_TTYNAME_R=0;
16965 REPLACE_UNLINK=0;
16966 REPLACE_UNLINKAT=0;
16967 REPLACE_USLEEP=0;
16968 REPLACE_WRITE=0;
16969 UNISTD_H_HAVE_WINSOCK2_H=0;
16970 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
16974 GNULIB_OPENDIR=0;
16975 GNULIB_READDIR=0;
16976 GNULIB_REWINDDIR=0;
16977 GNULIB_CLOSEDIR=0;
16978 GNULIB_DIRFD=0;
16979 GNULIB_FDOPENDIR=0;
16980 GNULIB_SCANDIR=0;
16981 GNULIB_ALPHASORT=0;
16982 HAVE_OPENDIR=1;
16983 HAVE_READDIR=1;
16984 HAVE_REWINDDIR=1;
16985 HAVE_CLOSEDIR=1;
16986 HAVE_DECL_DIRFD=1;
16987 HAVE_DECL_FDOPENDIR=1;
16988 HAVE_FDOPENDIR=1;
16989 HAVE_SCANDIR=1;
16990 HAVE_ALPHASORT=1;
16991 REPLACE_OPENDIR=0;
16992 REPLACE_CLOSEDIR=0;
16993 REPLACE_DIRFD=0;
16994 REPLACE_FDOPENDIR=0;
16998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
16999 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
17000 if test "${gl_cv_have_include_next+set}" = set; then :
17001 $as_echo_n "(cached) " >&6
17002 else
17003 rm -rf conftestd1a conftestd1b conftestd2
17004 mkdir conftestd1a conftestd1b conftestd2
17005 cat <<EOF > conftestd1a/conftest.h
17006 #define DEFINED_IN_CONFTESTD1
17007 #include_next <conftest.h>
17008 #ifdef DEFINED_IN_CONFTESTD2
17009 int foo;
17010 #else
17011 #error "include_next doesn't work"
17012 #endif
17014 cat <<EOF > conftestd1b/conftest.h
17015 #define DEFINED_IN_CONFTESTD1
17016 #include <stdio.h>
17017 #include_next <conftest.h>
17018 #ifdef DEFINED_IN_CONFTESTD2
17019 int foo;
17020 #else
17021 #error "include_next doesn't work"
17022 #endif
17024 cat <<EOF > conftestd2/conftest.h
17025 #ifndef DEFINED_IN_CONFTESTD1
17026 #error "include_next test doesn't work"
17027 #endif
17028 #define DEFINED_IN_CONFTESTD2
17030 gl_save_CPPFLAGS="$CPPFLAGS"
17031 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
17032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17033 /* end confdefs.h. */
17034 #include <conftest.h>
17035 _ACEOF
17036 if ac_fn_c_try_compile "$LINENO"; then :
17037 gl_cv_have_include_next=yes
17038 else
17039 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
17040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17041 /* end confdefs.h. */
17042 #include <conftest.h>
17043 _ACEOF
17044 if ac_fn_c_try_compile "$LINENO"; then :
17045 gl_cv_have_include_next=buggy
17046 else
17047 gl_cv_have_include_next=no
17049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17053 CPPFLAGS="$gl_save_CPPFLAGS"
17054 rm -rf conftestd1a conftestd1b conftestd2
17057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
17058 $as_echo "$gl_cv_have_include_next" >&6; }
17059 PRAGMA_SYSTEM_HEADER=
17060 if test $gl_cv_have_include_next = yes; then
17061 INCLUDE_NEXT=include_next
17062 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
17063 if test -n "$GCC"; then
17064 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
17066 else
17067 if test $gl_cv_have_include_next = buggy; then
17068 INCLUDE_NEXT=include
17069 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
17070 else
17071 INCLUDE_NEXT=include
17072 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
17078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
17079 $as_echo_n "checking whether system header files limit the line length... " >&6; }
17080 if test "${gl_cv_pragma_columns+set}" = set; then :
17081 $as_echo_n "(cached) " >&6
17082 else
17083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17084 /* end confdefs.h. */
17086 #ifdef __TANDEM
17087 choke me
17088 #endif
17090 _ACEOF
17091 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17092 $EGREP "choke me" >/dev/null 2>&1; then :
17093 gl_cv_pragma_columns=yes
17094 else
17095 gl_cv_pragma_columns=no
17097 rm -f conftest*
17101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
17102 $as_echo "$gl_cv_pragma_columns" >&6; }
17103 if test $gl_cv_pragma_columns = yes; then
17104 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
17105 else
17106 PRAGMA_COLUMNS=
17113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtold conforms to C99" >&5
17114 $as_echo_n "checking whether strtold conforms to C99... " >&6; }
17115 if test "${gl_cv_func_c99_strtold+set}" = set; then :
17116 $as_echo_n "(cached) " >&6
17117 else
17118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17119 /* end confdefs.h. */
17120 /* On HP-UX before 11.23, strtold returns a struct instead of
17121 long double. Reject implementations like that, by requiring
17122 compatibility with the C99 prototype. */
17123 #include <stdlib.h>
17124 static long double (*p) (char const *, char **) = strtold;
17125 static long double
17126 test (char const *nptr, char **endptr)
17128 long double r;
17129 r = strtold (nptr, endptr);
17130 return r;
17133 main ()
17135 return test ("1.0", NULL) != 1 || p ("1.0", NULL) != 1;
17137 return 0;
17139 _ACEOF
17140 if ac_fn_c_try_link "$LINENO"; then :
17141 gl_cv_func_c99_strtold=yes
17142 else
17143 gl_cv_func_c99_strtold=no
17145 rm -f core conftest.err conftest.$ac_objext \
17146 conftest$ac_exeext conftest.$ac_ext
17148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_c99_strtold" >&5
17149 $as_echo "$gl_cv_func_c99_strtold" >&6; }
17150 if test $gl_cv_func_c99_strtold = yes; then
17152 $as_echo "#define HAVE_C99_STRTOLD 1" >>confdefs.h
17163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if environ is properly declared" >&5
17164 $as_echo_n "checking if environ is properly declared... " >&6; }
17165 if test "${gt_cv_var_environ_declaration+set}" = set; then :
17166 $as_echo_n "(cached) " >&6
17167 else
17169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17170 /* end confdefs.h. */
17171 #if HAVE_UNISTD_H
17172 #include <unistd.h>
17173 #endif
17174 /* mingw, BeOS, Haiku declare environ in <stdlib.h>, not in <unistd.h>. */
17175 #include <stdlib.h>
17177 extern struct { int foo; } environ;
17179 main ()
17181 environ.foo = 1;
17183 return 0;
17185 _ACEOF
17186 if ac_fn_c_try_compile "$LINENO"; then :
17187 gt_cv_var_environ_declaration=no
17188 else
17189 gt_cv_var_environ_declaration=yes
17191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_var_environ_declaration" >&5
17195 $as_echo "$gt_cv_var_environ_declaration" >&6; }
17196 if test $gt_cv_var_environ_declaration = yes; then
17198 $as_echo "#define HAVE_ENVIRON_DECL 1" >>confdefs.h
17203 if test $gt_cv_var_environ_declaration != yes; then
17204 HAVE_DECL_ENVIRON=0
17215 GNULIB_FCNTL=0;
17216 GNULIB_NONBLOCKING=0;
17217 GNULIB_OPEN=0;
17218 GNULIB_OPENAT=0;
17219 HAVE_FCNTL=1;
17220 HAVE_OPENAT=1;
17221 REPLACE_FCNTL=0;
17222 REPLACE_OPEN=0;
17223 REPLACE_OPENAT=0;
17226 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
17227 if test "x$ac_cv_type_mode_t" = x""yes; then :
17229 else
17231 cat >>confdefs.h <<_ACEOF
17232 #define mode_t int
17233 _ACEOF
17239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_dm_mode in struct stat" >&5
17240 $as_echo_n "checking for st_dm_mode in struct stat... " >&6; }
17241 if test "${ac_cv_struct_st_dm_mode+set}" = set; then :
17242 $as_echo_n "(cached) " >&6
17243 else
17244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17245 /* end confdefs.h. */
17247 #include <sys/types.h>
17248 #include <sys/stat.h>
17250 main ()
17252 struct stat s; s.st_dm_mode;
17254 return 0;
17256 _ACEOF
17257 if ac_fn_c_try_compile "$LINENO"; then :
17258 ac_cv_struct_st_dm_mode=yes
17259 else
17260 ac_cv_struct_st_dm_mode=no
17262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_st_dm_mode" >&5
17265 $as_echo "$ac_cv_struct_st_dm_mode" >&6; }
17267 if test $ac_cv_struct_st_dm_mode = yes; then
17269 $as_echo "#define HAVE_ST_DM_MODE 1" >>confdefs.h
17274 ac_fn_c_check_decl "$LINENO" "strmode" "ac_cv_have_decl_strmode" "$ac_includes_default"
17275 if test "x$ac_cv_have_decl_strmode" = x""yes; then :
17276 ac_have_decl=1
17277 else
17278 ac_have_decl=0
17281 cat >>confdefs.h <<_ACEOF
17282 #define HAVE_DECL_STRMODE $ac_have_decl
17283 _ACEOF
17290 GNULIB_FCHMODAT=0;
17291 GNULIB_FSTAT=0;
17292 GNULIB_FSTATAT=0;
17293 GNULIB_FUTIMENS=0;
17294 GNULIB_LCHMOD=0;
17295 GNULIB_LSTAT=0;
17296 GNULIB_MKDIRAT=0;
17297 GNULIB_MKFIFO=0;
17298 GNULIB_MKFIFOAT=0;
17299 GNULIB_MKNOD=0;
17300 GNULIB_MKNODAT=0;
17301 GNULIB_STAT=0;
17302 GNULIB_UTIMENSAT=0;
17303 HAVE_FCHMODAT=1;
17304 HAVE_FSTATAT=1;
17305 HAVE_FUTIMENS=1;
17306 HAVE_LCHMOD=1;
17307 HAVE_LSTAT=1;
17308 HAVE_MKDIRAT=1;
17309 HAVE_MKFIFO=1;
17310 HAVE_MKFIFOAT=1;
17311 HAVE_MKNOD=1;
17312 HAVE_MKNODAT=1;
17313 HAVE_UTIMENSAT=1;
17314 REPLACE_FSTAT=0;
17315 REPLACE_FSTATAT=0;
17316 REPLACE_FUTIMENS=0;
17317 REPLACE_LSTAT=0;
17318 REPLACE_MKDIR=0;
17319 REPLACE_MKFIFO=0;
17320 REPLACE_MKNOD=0;
17321 REPLACE_STAT=0;
17322 REPLACE_UTIMENSAT=0;
17325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
17326 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
17327 if test "${gl_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
17328 $as_echo_n "(cached) " >&6
17329 else
17330 rm -f conftest.sym conftest.file
17331 echo >conftest.file
17332 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
17333 if test "$cross_compiling" = yes; then :
17334 case "$host_os" in
17335 # Guess yes on glibc systems.
17336 *-gnu*) gl_cv_func_lstat_dereferences_slashed_symlink="guessing yes" ;;
17337 # If we don't know, assume the worst.
17338 *) gl_cv_func_lstat_dereferences_slashed_symlink="guessing no" ;;
17339 esac
17341 else
17342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17343 /* end confdefs.h. */
17344 $ac_includes_default
17346 main ()
17348 struct stat sbuf;
17349 /* Linux will dereference the symlink and fail, as required by
17350 POSIX. That is better in the sense that it means we will not
17351 have to compile and use the lstat wrapper. */
17352 return lstat ("conftest.sym/", &sbuf) == 0;
17355 return 0;
17357 _ACEOF
17358 if ac_fn_c_try_run "$LINENO"; then :
17359 gl_cv_func_lstat_dereferences_slashed_symlink=yes
17360 else
17361 gl_cv_func_lstat_dereferences_slashed_symlink=no
17363 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17364 conftest.$ac_objext conftest.beam conftest.$ac_ext
17367 else
17368 # If the 'ln -s' command failed, then we probably don't even
17369 # have an lstat function.
17370 gl_cv_func_lstat_dereferences_slashed_symlink="guessing no"
17372 rm -f conftest.sym conftest.file
17375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
17376 $as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
17377 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
17378 *yes)
17380 cat >>confdefs.h <<_ACEOF
17381 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
17382 _ACEOF
17385 esac
17390 GNULIB__EXIT=0;
17391 GNULIB_ATOLL=0;
17392 GNULIB_CALLOC_POSIX=0;
17393 GNULIB_CANONICALIZE_FILE_NAME=0;
17394 GNULIB_GETLOADAVG=0;
17395 GNULIB_GETSUBOPT=0;
17396 GNULIB_GRANTPT=0;
17397 GNULIB_MALLOC_POSIX=0;
17398 GNULIB_MBTOWC=0;
17399 GNULIB_MKDTEMP=0;
17400 GNULIB_MKOSTEMP=0;
17401 GNULIB_MKOSTEMPS=0;
17402 GNULIB_MKSTEMP=0;
17403 GNULIB_MKSTEMPS=0;
17404 GNULIB_POSIX_OPENPT=0;
17405 GNULIB_PTSNAME=0;
17406 GNULIB_PTSNAME_R=0;
17407 GNULIB_PUTENV=0;
17408 GNULIB_RANDOM=0;
17409 GNULIB_RANDOM_R=0;
17410 GNULIB_REALLOC_POSIX=0;
17411 GNULIB_REALPATH=0;
17412 GNULIB_RPMATCH=0;
17413 GNULIB_SECURE_GETENV=0;
17414 GNULIB_SETENV=0;
17415 GNULIB_STRTOD=0;
17416 GNULIB_STRTOLL=0;
17417 GNULIB_STRTOULL=0;
17418 GNULIB_SYSTEM_POSIX=0;
17419 GNULIB_UNLOCKPT=0;
17420 GNULIB_UNSETENV=0;
17421 GNULIB_WCTOMB=0;
17422 HAVE__EXIT=1;
17423 HAVE_ATOLL=1;
17424 HAVE_CANONICALIZE_FILE_NAME=1;
17425 HAVE_DECL_GETLOADAVG=1;
17426 HAVE_GETSUBOPT=1;
17427 HAVE_GRANTPT=1;
17428 HAVE_MKDTEMP=1;
17429 HAVE_MKOSTEMP=1;
17430 HAVE_MKOSTEMPS=1;
17431 HAVE_MKSTEMP=1;
17432 HAVE_MKSTEMPS=1;
17433 HAVE_POSIX_OPENPT=1;
17434 HAVE_PTSNAME=1;
17435 HAVE_PTSNAME_R=1;
17436 HAVE_RANDOM=1;
17437 HAVE_RANDOM_H=1;
17438 HAVE_RANDOM_R=1;
17439 HAVE_REALPATH=1;
17440 HAVE_RPMATCH=1;
17441 HAVE_SECURE_GETENV=1;
17442 HAVE_SETENV=1;
17443 HAVE_DECL_SETENV=1;
17444 HAVE_STRTOD=1;
17445 HAVE_STRTOLL=1;
17446 HAVE_STRTOULL=1;
17447 HAVE_STRUCT_RANDOM_DATA=1;
17448 HAVE_SYS_LOADAVG_H=0;
17449 HAVE_UNLOCKPT=1;
17450 HAVE_DECL_UNSETENV=1;
17451 REPLACE_CALLOC=0;
17452 REPLACE_CANONICALIZE_FILE_NAME=0;
17453 REPLACE_MALLOC=0;
17454 REPLACE_MBTOWC=0;
17455 REPLACE_MKSTEMP=0;
17456 REPLACE_PTSNAME=0;
17457 REPLACE_PTSNAME_R=0;
17458 REPLACE_PUTENV=0;
17459 REPLACE_RANDOM_R=0;
17460 REPLACE_REALLOC=0;
17461 REPLACE_REALPATH=0;
17462 REPLACE_SETENV=0;
17463 REPLACE_STRTOD=0;
17464 REPLACE_UNSETENV=0;
17465 REPLACE_WCTOMB=0;
17482 if test $gl_cv_have_include_next = yes; then
17483 gl_cv_next_getopt_h='<'getopt.h'>'
17484 else
17485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
17486 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
17487 if test "${gl_cv_next_getopt_h+set}" = set; then :
17488 $as_echo_n "(cached) " >&6
17489 else
17491 if test $ac_cv_header_getopt_h = yes; then
17494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17495 /* end confdefs.h. */
17496 #include <getopt.h>
17498 _ACEOF
17499 case "$host_os" in
17500 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17501 *) gl_absname_cpp="$ac_cpp" ;;
17502 esac
17504 case "$host_os" in
17505 mingw*)
17506 gl_dirsep_regex='[/\\]'
17509 gl_dirsep_regex='\/'
17511 esac
17512 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
17514 gl_header_literal_regex=`echo 'getopt.h' \
17515 | sed -e "$gl_make_literal_regex_sed"`
17516 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17517 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17518 s|^/[^/]|//&|
17522 gl_cv_next_getopt_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17523 sed -n "$gl_absolute_header_sed"`'"'
17524 else
17525 gl_cv_next_getopt_h='<'getopt.h'>'
17530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
17531 $as_echo "$gl_cv_next_getopt_h" >&6; }
17533 NEXT_GETOPT_H=$gl_cv_next_getopt_h
17535 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17536 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17537 gl_next_as_first_directive='<'getopt.h'>'
17538 else
17539 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17540 gl_next_as_first_directive=$gl_cv_next_getopt_h
17542 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H=$gl_next_as_first_directive
17547 if test $ac_cv_header_getopt_h = yes; then
17548 HAVE_GETOPT_H=1
17549 else
17550 HAVE_GETOPT_H=0
17554 gl_replace_getopt=
17556 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
17557 for ac_header in getopt.h
17558 do :
17559 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
17560 if test "x$ac_cv_header_getopt_h" = x""yes; then :
17561 cat >>confdefs.h <<_ACEOF
17562 #define HAVE_GETOPT_H 1
17563 _ACEOF
17565 else
17566 gl_replace_getopt=yes
17569 done
17573 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
17574 for ac_func in getopt_long_only
17575 do :
17576 ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
17577 if test "x$ac_cv_func_getopt_long_only" = x""yes; then :
17578 cat >>confdefs.h <<_ACEOF
17579 #define HAVE_GETOPT_LONG_ONLY 1
17580 _ACEOF
17582 else
17583 gl_replace_getopt=yes
17585 done
17589 if test -z "$gl_replace_getopt"; then
17590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
17591 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
17592 if test "${gl_cv_func_getopt_posix+set}" = set; then :
17593 $as_echo_n "(cached) " >&6
17594 else
17596 if test $cross_compiling = no; then
17597 if test "$cross_compiling" = yes; then :
17598 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17599 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17600 as_fn_error "cannot run test program while cross compiling
17601 See \`config.log' for more details." "$LINENO" 5; }
17602 else
17603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17604 /* end confdefs.h. */
17606 #include <unistd.h>
17607 #include <stdlib.h>
17608 #include <string.h>
17611 main ()
17613 static char program[] = "program";
17614 static char a[] = "-a";
17615 static char foo[] = "foo";
17616 static char bar[] = "bar";
17617 char *argv[] = { program, a, foo, bar, NULL };
17618 int c;
17620 c = getopt (4, argv, "ab");
17621 if (!(c == 'a'))
17622 return 1;
17623 c = getopt (4, argv, "ab");
17624 if (!(c == -1))
17625 return 2;
17626 if (!(optind == 2))
17627 return 3;
17628 return 0;
17631 _ACEOF
17632 if ac_fn_c_try_run "$LINENO"; then :
17633 gl_cv_func_getopt_posix=maybe
17634 else
17635 gl_cv_func_getopt_posix=no
17637 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17638 conftest.$ac_objext conftest.beam conftest.$ac_ext
17641 if test $gl_cv_func_getopt_posix = maybe; then
17642 if test "$cross_compiling" = yes; then :
17643 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17644 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17645 as_fn_error "cannot run test program while cross compiling
17646 See \`config.log' for more details." "$LINENO" 5; }
17647 else
17648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17649 /* end confdefs.h. */
17651 #include <unistd.h>
17652 #include <stdlib.h>
17653 #include <string.h>
17656 main ()
17658 static char program[] = "program";
17659 static char donald[] = "donald";
17660 static char p[] = "-p";
17661 static char billy[] = "billy";
17662 static char duck[] = "duck";
17663 static char a[] = "-a";
17664 static char bar[] = "bar";
17665 char *argv[] = { program, donald, p, billy, duck, a, bar, NULL };
17666 int c;
17668 c = getopt (7, argv, "+abp:q:");
17669 if (!(c == -1))
17670 return 4;
17671 if (!(strcmp (argv[0], "program") == 0))
17672 return 5;
17673 if (!(strcmp (argv[1], "donald") == 0))
17674 return 6;
17675 if (!(strcmp (argv[2], "-p") == 0))
17676 return 7;
17677 if (!(strcmp (argv[3], "billy") == 0))
17678 return 8;
17679 if (!(strcmp (argv[4], "duck") == 0))
17680 return 9;
17681 if (!(strcmp (argv[5], "-a") == 0))
17682 return 10;
17683 if (!(strcmp (argv[6], "bar") == 0))
17684 return 11;
17685 if (!(optind == 1))
17686 return 12;
17687 return 0;
17690 _ACEOF
17691 if ac_fn_c_try_run "$LINENO"; then :
17692 gl_cv_func_getopt_posix=maybe
17693 else
17694 gl_cv_func_getopt_posix=no
17696 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17697 conftest.$ac_objext conftest.beam conftest.$ac_ext
17701 if test $gl_cv_func_getopt_posix = maybe; then
17702 if test "$cross_compiling" = yes; then :
17703 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17704 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17705 as_fn_error "cannot run test program while cross compiling
17706 See \`config.log' for more details." "$LINENO" 5; }
17707 else
17708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17709 /* end confdefs.h. */
17711 #include <unistd.h>
17712 #include <stdlib.h>
17713 #include <string.h>
17716 main ()
17718 static char program[] = "program";
17719 static char ab[] = "-ab";
17720 char *argv[3] = { program, ab, NULL };
17721 if (getopt (2, argv, "ab:") != 'a')
17722 return 13;
17723 if (getopt (2, argv, "ab:") != '?')
17724 return 14;
17725 if (optopt != 'b')
17726 return 15;
17727 if (optind != 2)
17728 return 16;
17729 return 0;
17732 _ACEOF
17733 if ac_fn_c_try_run "$LINENO"; then :
17734 gl_cv_func_getopt_posix=yes
17735 else
17736 gl_cv_func_getopt_posix=no
17738 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17739 conftest.$ac_objext conftest.beam conftest.$ac_ext
17743 else
17744 case "$host_os" in
17745 darwin* | aix* | mingw*) gl_cv_func_getopt_posix="guessing no";;
17746 *) gl_cv_func_getopt_posix="guessing yes";;
17747 esac
17751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
17752 $as_echo "$gl_cv_func_getopt_posix" >&6; }
17753 case "$gl_cv_func_getopt_posix" in
17754 *no) gl_replace_getopt=yes ;;
17755 esac
17758 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
17759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
17760 $as_echo_n "checking for working GNU getopt function... " >&6; }
17761 if test "${gl_cv_func_getopt_gnu+set}" = set; then :
17762 $as_echo_n "(cached) " >&6
17763 else
17764 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
17765 # optstring is necessary for programs like m4 that have POSIX-mandated
17766 # semantics for supporting options interspersed with files.
17767 # Also, since getopt_long is a GNU extension, we require optind=0.
17768 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
17769 # so take care to revert to the correct (non-)export state.
17770 gl_awk_probe='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
17771 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
17772 xx) gl_had_POSIXLY_CORRECT=exported ;;
17773 x) gl_had_POSIXLY_CORRECT=yes ;;
17774 *) gl_had_POSIXLY_CORRECT= ;;
17775 esac
17776 POSIXLY_CORRECT=1
17777 export POSIXLY_CORRECT
17778 if test "$cross_compiling" = yes; then :
17779 gl_cv_func_getopt_gnu="guessing no"
17781 else
17782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17783 /* end confdefs.h. */
17784 #include <getopt.h>
17785 #include <stddef.h>
17786 #include <string.h>
17788 #include <stdlib.h>
17789 #if defined __MACH__ && defined __APPLE__
17790 /* Avoid a crash on Mac OS X. */
17791 #include <mach/mach.h>
17792 #include <mach/mach_error.h>
17793 #include <mach/thread_status.h>
17794 #include <mach/exception.h>
17795 #include <mach/task.h>
17796 #include <pthread.h>
17797 /* The exception port on which our thread listens. */
17798 static mach_port_t our_exception_port;
17799 /* The main function of the thread listening for exceptions of type
17800 EXC_BAD_ACCESS. */
17801 static void *
17802 mach_exception_thread (void *arg)
17804 /* Buffer for a message to be received. */
17805 struct {
17806 mach_msg_header_t head;
17807 mach_msg_body_t msgh_body;
17808 char data[1024];
17809 } msg;
17810 mach_msg_return_t retval;
17811 /* Wait for a message on the exception port. */
17812 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
17813 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
17814 if (retval != MACH_MSG_SUCCESS)
17815 abort ();
17816 exit (1);
17818 static void
17819 nocrash_init (void)
17821 mach_port_t self = mach_task_self ();
17822 /* Allocate a port on which the thread shall listen for exceptions. */
17823 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
17824 == KERN_SUCCESS) {
17825 /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
17826 if (mach_port_insert_right (self, our_exception_port, our_exception_port,
17827 MACH_MSG_TYPE_MAKE_SEND)
17828 == KERN_SUCCESS) {
17829 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
17830 for us. */
17831 exception_mask_t mask = EXC_MASK_BAD_ACCESS;
17832 /* Create the thread listening on the exception port. */
17833 pthread_attr_t attr;
17834 pthread_t thread;
17835 if (pthread_attr_init (&attr) == 0
17836 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
17837 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
17838 pthread_attr_destroy (&attr);
17839 /* Replace the exception port info for these exceptions with our own.
17840 Note that we replace the exception port for the entire task, not only
17841 for a particular thread. This has the effect that when our exception
17842 port gets the message, the thread specific exception port has already
17843 been asked, and we don't need to bother about it.
17844 See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
17845 task_set_exception_ports (self, mask, our_exception_port,
17846 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
17851 #elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
17852 /* Avoid a crash on native Windows. */
17853 #define WIN32_LEAN_AND_MEAN
17854 #include <windows.h>
17855 #include <winerror.h>
17856 static LONG WINAPI
17857 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
17859 switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
17861 case EXCEPTION_ACCESS_VIOLATION:
17862 case EXCEPTION_IN_PAGE_ERROR:
17863 case EXCEPTION_STACK_OVERFLOW:
17864 case EXCEPTION_GUARD_PAGE:
17865 case EXCEPTION_PRIV_INSTRUCTION:
17866 case EXCEPTION_ILLEGAL_INSTRUCTION:
17867 case EXCEPTION_DATATYPE_MISALIGNMENT:
17868 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
17869 case EXCEPTION_NONCONTINUABLE_EXCEPTION:
17870 exit (1);
17872 return EXCEPTION_CONTINUE_SEARCH;
17874 static void
17875 nocrash_init (void)
17877 SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
17879 #else
17880 /* Avoid a crash on POSIX systems. */
17881 #include <signal.h>
17882 /* A POSIX signal handler. */
17883 static void
17884 exception_handler (int sig)
17886 exit (1);
17888 static void
17889 nocrash_init (void)
17891 #ifdef SIGSEGV
17892 signal (SIGSEGV, exception_handler);
17893 #endif
17894 #ifdef SIGBUS
17895 signal (SIGBUS, exception_handler);
17896 #endif
17898 #endif
17902 main ()
17905 int result = 0;
17907 nocrash_init();
17909 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
17910 and fails on Mac OS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
17911 OSF/1 5.1, Solaris 10. */
17913 static char conftest[] = "conftest";
17914 static char plus[] = "-+";
17915 char *argv[3] = { conftest, plus, NULL };
17916 opterr = 0;
17917 if (getopt (2, argv, "+a") != '?')
17918 result |= 1;
17920 /* This code succeeds on glibc 2.8, mingw,
17921 and fails on Mac OS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
17922 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
17924 static char program[] = "program";
17925 static char p[] = "-p";
17926 static char foo[] = "foo";
17927 static char bar[] = "bar";
17928 char *argv[] = { program, p, foo, bar, NULL };
17930 optind = 1;
17931 if (getopt (4, argv, "p::") != 'p')
17932 result |= 2;
17933 else if (optarg != NULL)
17934 result |= 4;
17935 else if (getopt (4, argv, "p::") != -1)
17936 result |= 6;
17937 else if (optind != 2)
17938 result |= 8;
17940 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
17942 static char program[] = "program";
17943 static char foo[] = "foo";
17944 static char p[] = "-p";
17945 char *argv[] = { program, foo, p, NULL };
17946 optind = 0;
17947 if (getopt (3, argv, "-p") != 1)
17948 result |= 16;
17949 else if (getopt (3, argv, "-p") != 'p')
17950 result |= 16;
17952 /* This code fails on glibc 2.11. */
17954 static char program[] = "program";
17955 static char b[] = "-b";
17956 static char a[] = "-a";
17957 char *argv[] = { program, b, a, NULL };
17958 optind = opterr = 0;
17959 if (getopt (3, argv, "+:a:b") != 'b')
17960 result |= 32;
17961 else if (getopt (3, argv, "+:a:b") != ':')
17962 result |= 32;
17964 /* This code dumps core on glibc 2.14. */
17966 static char program[] = "program";
17967 static char w[] = "-W";
17968 static char dummy[] = "dummy";
17969 char *argv[] = { program, w, dummy, NULL };
17970 optind = opterr = 1;
17971 if (getopt (3, argv, "W;") != 'W')
17972 result |= 64;
17974 return result;
17977 return 0;
17979 _ACEOF
17980 if ac_fn_c_try_run "$LINENO"; then :
17981 gl_cv_func_getopt_gnu=yes
17982 else
17983 gl_cv_func_getopt_gnu=no
17985 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17986 conftest.$ac_objext conftest.beam conftest.$ac_ext
17989 case $gl_had_POSIXLY_CORRECT in
17990 exported) ;;
17991 yes) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;}; POSIXLY_CORRECT=1 ;;
17992 *) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;} ;;
17993 esac
17996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
17997 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
17998 if test "$gl_cv_func_getopt_gnu" != yes; then
17999 gl_replace_getopt=yes
18000 else
18001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt_long function" >&5
18002 $as_echo_n "checking for working GNU getopt_long function... " >&6; }
18003 if test "${gl_cv_func_getopt_long_gnu+set}" = set; then :
18004 $as_echo_n "(cached) " >&6
18005 else
18006 if test "$cross_compiling" = yes; then :
18007 case "$host_os" in
18008 openbsd*) gl_cv_func_getopt_long_gnu="guessing no";;
18009 *) gl_cv_func_getopt_long_gnu="guessing yes";;
18010 esac
18012 else
18013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18014 /* end confdefs.h. */
18015 #include <getopt.h>
18016 #include <stddef.h>
18017 #include <string.h>
18020 main ()
18022 static const struct option long_options[] =
18024 { "xtremely-",no_argument, NULL, 1003 },
18025 { "xtra", no_argument, NULL, 1001 },
18026 { "xtreme", no_argument, NULL, 1002 },
18027 { "xtremely", no_argument, NULL, 1003 },
18028 { NULL, 0, NULL, 0 }
18030 /* This code fails on OpenBSD 5.0. */
18032 static char program[] = "program";
18033 static char xtremel[] = "--xtremel";
18034 char *argv[] = { program, xtremel, NULL };
18035 int option_index;
18036 optind = 1; opterr = 0;
18037 if (getopt_long (2, argv, "", long_options, &option_index) != 1003)
18038 return 1;
18040 return 0;
18043 return 0;
18045 _ACEOF
18046 if ac_fn_c_try_run "$LINENO"; then :
18047 gl_cv_func_getopt_long_gnu=yes
18048 else
18049 gl_cv_func_getopt_long_gnu=no
18051 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18052 conftest.$ac_objext conftest.beam conftest.$ac_ext
18057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_long_gnu" >&5
18058 $as_echo "$gl_cv_func_getopt_long_gnu" >&6; }
18059 case "$gl_cv_func_getopt_long_gnu" in
18060 *yes) ;;
18061 *) gl_replace_getopt=yes ;;
18062 esac
18071 REPLACE_GETOPT=0
18072 if test -n "$gl_replace_getopt"; then
18073 REPLACE_GETOPT=1
18076 if test $REPLACE_GETOPT = 1; then
18078 GETOPT_H=getopt.h
18080 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
18086 ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
18087 if test "x$ac_cv_have_decl_getenv" = x""yes; then :
18088 ac_have_decl=1
18089 else
18090 ac_have_decl=0
18093 cat >>confdefs.h <<_ACEOF
18094 #define HAVE_DECL_GETENV $ac_have_decl
18095 _ACEOF
18102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
18103 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
18104 if test "${ac_cv_c_restrict+set}" = set; then :
18105 $as_echo_n "(cached) " >&6
18106 else
18107 ac_cv_c_restrict=no
18108 # The order here caters to the fact that C++ does not require restrict.
18109 for ac_kw in __restrict __restrict__ _Restrict restrict; do
18110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18111 /* end confdefs.h. */
18112 typedef int * int_ptr;
18113 int foo (int_ptr $ac_kw ip) {
18114 return ip[0];
18117 main ()
18119 int s[1];
18120 int * $ac_kw t = s;
18121 t[0] = 0;
18122 return foo(t)
18124 return 0;
18126 _ACEOF
18127 if ac_fn_c_try_compile "$LINENO"; then :
18128 ac_cv_c_restrict=$ac_kw
18130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18131 test "$ac_cv_c_restrict" != no && break
18132 done
18135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
18136 $as_echo "$ac_cv_c_restrict" >&6; }
18138 case $ac_cv_c_restrict in
18139 restrict) ;;
18140 no) $as_echo "#define restrict /**/" >>confdefs.h
18142 *) cat >>confdefs.h <<_ACEOF
18143 #define restrict $ac_cv_c_restrict
18144 _ACEOF
18146 esac
18149 GNULIB_GETTIMEOFDAY=0;
18150 HAVE_GETTIMEOFDAY=1;
18151 HAVE_STRUCT_TIMEVAL=1;
18152 HAVE_SYS_TIME_H=1;
18153 REPLACE_GETTIMEOFDAY=0;
18154 REPLACE_STRUCT_TIMEVAL=0;
18171 if test $gl_cv_have_include_next = yes; then
18172 gl_cv_next_sys_time_h='<'sys/time.h'>'
18173 else
18174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/time.h>" >&5
18175 $as_echo_n "checking absolute name of <sys/time.h>... " >&6; }
18176 if test "${gl_cv_next_sys_time_h+set}" = set; then :
18177 $as_echo_n "(cached) " >&6
18178 else
18180 if test $ac_cv_header_sys_time_h = yes; then
18183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18184 /* end confdefs.h. */
18185 #include <sys/time.h>
18187 _ACEOF
18188 case "$host_os" in
18189 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18190 *) gl_absname_cpp="$ac_cpp" ;;
18191 esac
18193 case "$host_os" in
18194 mingw*)
18195 gl_dirsep_regex='[/\\]'
18198 gl_dirsep_regex='\/'
18200 esac
18201 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
18203 gl_header_literal_regex=`echo 'sys/time.h' \
18204 | sed -e "$gl_make_literal_regex_sed"`
18205 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18206 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18207 s|^/[^/]|//&|
18211 gl_cv_next_sys_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18212 sed -n "$gl_absolute_header_sed"`'"'
18213 else
18214 gl_cv_next_sys_time_h='<'sys/time.h'>'
18219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_time_h" >&5
18220 $as_echo "$gl_cv_next_sys_time_h" >&6; }
18222 NEXT_SYS_TIME_H=$gl_cv_next_sys_time_h
18224 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18225 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18226 gl_next_as_first_directive='<'sys/time.h'>'
18227 else
18228 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18229 gl_next_as_first_directive=$gl_cv_next_sys_time_h
18231 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H=$gl_next_as_first_directive
18237 if test $ac_cv_header_sys_time_h != yes; then
18238 HAVE_SYS_TIME_H=0
18245 if test $ac_cv_header_sys_socket_h != yes; then
18246 for ac_header in winsock2.h
18247 do :
18248 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
18249 if test "x$ac_cv_header_winsock2_h" = x""yes; then :
18250 cat >>confdefs.h <<_ACEOF
18251 #define HAVE_WINSOCK2_H 1
18252 _ACEOF
18256 done
18259 if test "$ac_cv_header_winsock2_h" = yes; then
18260 HAVE_WINSOCK2_H=1
18261 UNISTD_H_HAVE_WINSOCK2_H=1
18262 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
18263 else
18264 HAVE_WINSOCK2_H=0
18268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
18269 $as_echo_n "checking for struct timeval... " >&6; }
18270 if test "${gl_cv_sys_struct_timeval+set}" = set; then :
18271 $as_echo_n "(cached) " >&6
18272 else
18273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18274 /* end confdefs.h. */
18275 #if HAVE_SYS_TIME_H
18276 #include <sys/time.h>
18277 #endif
18278 #include <time.h>
18279 #if HAVE_WINSOCK2_H
18280 # include <winsock2.h>
18281 #endif
18284 main ()
18286 static struct timeval x; x.tv_sec = x.tv_usec;
18288 return 0;
18290 _ACEOF
18291 if ac_fn_c_try_compile "$LINENO"; then :
18292 gl_cv_sys_struct_timeval=yes
18293 else
18294 gl_cv_sys_struct_timeval=no
18296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval" >&5
18300 $as_echo "$gl_cv_sys_struct_timeval" >&6; }
18301 if test $gl_cv_sys_struct_timeval != yes; then
18302 HAVE_STRUCT_TIMEVAL=0
18303 else
18304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wide-enough struct timeval.tv_sec member" >&5
18305 $as_echo_n "checking for wide-enough struct timeval.tv_sec member... " >&6; }
18306 if test "${gl_cv_sys_struct_timeval_tv_sec+set}" = set; then :
18307 $as_echo_n "(cached) " >&6
18308 else
18309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18310 /* end confdefs.h. */
18311 #if HAVE_SYS_TIME_H
18312 #include <sys/time.h>
18313 #endif
18314 #include <time.h>
18315 #if HAVE_WINSOCK2_H
18316 # include <winsock2.h>
18317 #endif
18320 main ()
18322 static struct timeval x;
18323 typedef int verify_tv_sec_type[
18324 sizeof (time_t) <= sizeof x.tv_sec ? 1 : -1
18328 return 0;
18330 _ACEOF
18331 if ac_fn_c_try_compile "$LINENO"; then :
18332 gl_cv_sys_struct_timeval_tv_sec=yes
18333 else
18334 gl_cv_sys_struct_timeval_tv_sec=no
18336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval_tv_sec" >&5
18340 $as_echo "$gl_cv_sys_struct_timeval_tv_sec" >&6; }
18341 if test $gl_cv_sys_struct_timeval_tv_sec != yes; then
18342 REPLACE_STRUCT_TIMEVAL=1
18352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
18353 $as_echo_n "checking for unsigned long long int... " >&6; }
18354 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
18355 $as_echo_n "(cached) " >&6
18356 else
18357 ac_cv_type_unsigned_long_long_int=yes
18358 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
18359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18360 /* end confdefs.h. */
18362 /* For now, do not test the preprocessor; as of 2007 there are too many
18363 implementations with broken preprocessors. Perhaps this can
18364 be revisited in 2012. In the meantime, code should not expect
18365 #if to work with literals wider than 32 bits. */
18366 /* Test literals. */
18367 long long int ll = 9223372036854775807ll;
18368 long long int nll = -9223372036854775807LL;
18369 unsigned long long int ull = 18446744073709551615ULL;
18370 /* Test constant expressions. */
18371 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
18372 ? 1 : -1)];
18373 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
18374 ? 1 : -1)];
18375 int i = 63;
18377 main ()
18379 /* Test availability of runtime routines for shift and division. */
18380 long long int llmax = 9223372036854775807ll;
18381 unsigned long long int ullmax = 18446744073709551615ull;
18382 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
18383 | (llmax / ll) | (llmax % ll)
18384 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
18385 | (ullmax / ull) | (ullmax % ull));
18387 return 0;
18390 _ACEOF
18391 if ac_fn_c_try_link "$LINENO"; then :
18393 else
18394 ac_cv_type_unsigned_long_long_int=no
18396 rm -f core conftest.err conftest.$ac_objext \
18397 conftest$ac_exeext conftest.$ac_ext
18400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
18401 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
18402 if test $ac_cv_type_unsigned_long_long_int = yes; then
18404 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
18410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
18411 $as_echo_n "checking for long long int... " >&6; }
18412 if test "${ac_cv_type_long_long_int+set}" = set; then :
18413 $as_echo_n "(cached) " >&6
18414 else
18415 ac_cv_type_long_long_int=yes
18416 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
18417 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
18418 if test $ac_cv_type_long_long_int = yes; then
18419 if test "$cross_compiling" = yes; then :
18421 else
18422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18423 /* end confdefs.h. */
18424 #include <limits.h>
18425 #ifndef LLONG_MAX
18426 # define HALF \
18427 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
18428 # define LLONG_MAX (HALF - 1 + HALF)
18429 #endif
18431 main ()
18433 long long int n = 1;
18434 int i;
18435 for (i = 0; ; i++)
18437 long long int m = n << i;
18438 if (m >> i != n)
18439 return 1;
18440 if (LLONG_MAX / 2 < m)
18441 break;
18443 return 0;
18445 return 0;
18447 _ACEOF
18448 if ac_fn_c_try_run "$LINENO"; then :
18450 else
18451 ac_cv_type_long_long_int=no
18453 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18454 conftest.$ac_objext conftest.beam conftest.$ac_ext
18460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
18461 $as_echo "$ac_cv_type_long_long_int" >&6; }
18462 if test $ac_cv_type_long_long_int = yes; then
18464 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
18473 gl_cv_c_multiarch=no
18474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18475 /* end confdefs.h. */
18476 #ifndef __APPLE_CC__
18477 not a universal capable compiler
18478 #endif
18479 typedef int dummy;
18481 _ACEOF
18482 if ac_fn_c_try_compile "$LINENO"; then :
18484 arch=
18485 prev=
18486 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
18487 if test -n "$prev"; then
18488 case $word in
18489 i?86 | x86_64 | ppc | ppc64)
18490 if test -z "$arch" || test "$arch" = "$word"; then
18491 arch="$word"
18492 else
18493 gl_cv_c_multiarch=yes
18496 esac
18497 prev=
18498 else
18499 if test "x$word" = "x-arch"; then
18500 prev=arch
18503 done
18506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18507 if test $gl_cv_c_multiarch = yes; then
18508 APPLE_UNIVERSAL_BUILD=1
18509 else
18510 APPLE_UNIVERSAL_BUILD=0
18517 if test $ac_cv_type_long_long_int = yes; then
18518 HAVE_LONG_LONG_INT=1
18519 else
18520 HAVE_LONG_LONG_INT=0
18524 if test $ac_cv_type_unsigned_long_long_int = yes; then
18525 HAVE_UNSIGNED_LONG_LONG_INT=1
18526 else
18527 HAVE_UNSIGNED_LONG_LONG_INT=0
18532 if test $ac_cv_header_wchar_h = yes; then
18533 HAVE_WCHAR_H=1
18534 else
18535 HAVE_WCHAR_H=0
18539 if test $ac_cv_header_inttypes_h = yes; then
18540 HAVE_INTTYPES_H=1
18541 else
18542 HAVE_INTTYPES_H=0
18546 if test $ac_cv_header_sys_types_h = yes; then
18547 HAVE_SYS_TYPES_H=1
18548 else
18549 HAVE_SYS_TYPES_H=0
18562 if test $gl_cv_have_include_next = yes; then
18563 gl_cv_next_stdint_h='<'stdint.h'>'
18564 else
18565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
18566 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
18567 if test "${gl_cv_next_stdint_h+set}" = set; then :
18568 $as_echo_n "(cached) " >&6
18569 else
18571 if test $ac_cv_header_stdint_h = yes; then
18574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18575 /* end confdefs.h. */
18576 #include <stdint.h>
18578 _ACEOF
18579 case "$host_os" in
18580 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18581 *) gl_absname_cpp="$ac_cpp" ;;
18582 esac
18584 case "$host_os" in
18585 mingw*)
18586 gl_dirsep_regex='[/\\]'
18589 gl_dirsep_regex='\/'
18591 esac
18592 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
18594 gl_header_literal_regex=`echo 'stdint.h' \
18595 | sed -e "$gl_make_literal_regex_sed"`
18596 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18597 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18598 s|^/[^/]|//&|
18602 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18603 sed -n "$gl_absolute_header_sed"`'"'
18604 else
18605 gl_cv_next_stdint_h='<'stdint.h'>'
18610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
18611 $as_echo "$gl_cv_next_stdint_h" >&6; }
18613 NEXT_STDINT_H=$gl_cv_next_stdint_h
18615 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18616 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18617 gl_next_as_first_directive='<'stdint.h'>'
18618 else
18619 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18620 gl_next_as_first_directive=$gl_cv_next_stdint_h
18622 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
18627 if test $ac_cv_header_stdint_h = yes; then
18628 HAVE_STDINT_H=1
18629 else
18630 HAVE_STDINT_H=0
18634 if test $ac_cv_header_stdint_h = yes; then
18635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
18636 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
18637 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
18638 $as_echo_n "(cached) " >&6
18639 else
18640 gl_cv_header_working_stdint_h=no
18641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18642 /* end confdefs.h. */
18645 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
18646 #include <stdint.h>
18647 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
18648 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
18649 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
18650 #endif
18653 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18654 included before <wchar.h>. */
18655 #include <stddef.h>
18656 #include <signal.h>
18657 #if HAVE_WCHAR_H
18658 # include <stdio.h>
18659 # include <time.h>
18660 # include <wchar.h>
18661 #endif
18664 #ifdef INT8_MAX
18665 int8_t a1 = INT8_MAX;
18666 int8_t a1min = INT8_MIN;
18667 #endif
18668 #ifdef INT16_MAX
18669 int16_t a2 = INT16_MAX;
18670 int16_t a2min = INT16_MIN;
18671 #endif
18672 #ifdef INT32_MAX
18673 int32_t a3 = INT32_MAX;
18674 int32_t a3min = INT32_MIN;
18675 #endif
18676 #ifdef INT64_MAX
18677 int64_t a4 = INT64_MAX;
18678 int64_t a4min = INT64_MIN;
18679 #endif
18680 #ifdef UINT8_MAX
18681 uint8_t b1 = UINT8_MAX;
18682 #else
18683 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
18684 #endif
18685 #ifdef UINT16_MAX
18686 uint16_t b2 = UINT16_MAX;
18687 #endif
18688 #ifdef UINT32_MAX
18689 uint32_t b3 = UINT32_MAX;
18690 #endif
18691 #ifdef UINT64_MAX
18692 uint64_t b4 = UINT64_MAX;
18693 #endif
18694 int_least8_t c1 = INT8_C (0x7f);
18695 int_least8_t c1max = INT_LEAST8_MAX;
18696 int_least8_t c1min = INT_LEAST8_MIN;
18697 int_least16_t c2 = INT16_C (0x7fff);
18698 int_least16_t c2max = INT_LEAST16_MAX;
18699 int_least16_t c2min = INT_LEAST16_MIN;
18700 int_least32_t c3 = INT32_C (0x7fffffff);
18701 int_least32_t c3max = INT_LEAST32_MAX;
18702 int_least32_t c3min = INT_LEAST32_MIN;
18703 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
18704 int_least64_t c4max = INT_LEAST64_MAX;
18705 int_least64_t c4min = INT_LEAST64_MIN;
18706 uint_least8_t d1 = UINT8_C (0xff);
18707 uint_least8_t d1max = UINT_LEAST8_MAX;
18708 uint_least16_t d2 = UINT16_C (0xffff);
18709 uint_least16_t d2max = UINT_LEAST16_MAX;
18710 uint_least32_t d3 = UINT32_C (0xffffffff);
18711 uint_least32_t d3max = UINT_LEAST32_MAX;
18712 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
18713 uint_least64_t d4max = UINT_LEAST64_MAX;
18714 int_fast8_t e1 = INT_FAST8_MAX;
18715 int_fast8_t e1min = INT_FAST8_MIN;
18716 int_fast16_t e2 = INT_FAST16_MAX;
18717 int_fast16_t e2min = INT_FAST16_MIN;
18718 int_fast32_t e3 = INT_FAST32_MAX;
18719 int_fast32_t e3min = INT_FAST32_MIN;
18720 int_fast64_t e4 = INT_FAST64_MAX;
18721 int_fast64_t e4min = INT_FAST64_MIN;
18722 uint_fast8_t f1 = UINT_FAST8_MAX;
18723 uint_fast16_t f2 = UINT_FAST16_MAX;
18724 uint_fast32_t f3 = UINT_FAST32_MAX;
18725 uint_fast64_t f4 = UINT_FAST64_MAX;
18726 #ifdef INTPTR_MAX
18727 intptr_t g = INTPTR_MAX;
18728 intptr_t gmin = INTPTR_MIN;
18729 #endif
18730 #ifdef UINTPTR_MAX
18731 uintptr_t h = UINTPTR_MAX;
18732 #endif
18733 intmax_t i = INTMAX_MAX;
18734 uintmax_t j = UINTMAX_MAX;
18736 #include <limits.h> /* for CHAR_BIT */
18737 #define TYPE_MINIMUM(t) \
18738 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
18739 #define TYPE_MAXIMUM(t) \
18740 ((t) ((t) 0 < (t) -1 \
18741 ? (t) -1 \
18742 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
18743 struct s {
18744 int check_PTRDIFF:
18745 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
18746 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
18747 ? 1 : -1;
18748 /* Detect bug in FreeBSD 6.0 / ia64. */
18749 int check_SIG_ATOMIC:
18750 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
18751 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
18752 ? 1 : -1;
18753 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
18754 int check_WCHAR:
18755 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
18756 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
18757 ? 1 : -1;
18758 /* Detect bug in mingw. */
18759 int check_WINT:
18760 WINT_MIN == TYPE_MINIMUM (wint_t)
18761 && WINT_MAX == TYPE_MAXIMUM (wint_t)
18762 ? 1 : -1;
18764 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
18765 int check_UINT8_C:
18766 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
18767 int check_UINT16_C:
18768 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
18770 /* Detect bugs in OpenBSD 3.9 stdint.h. */
18771 #ifdef UINT8_MAX
18772 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
18773 #endif
18774 #ifdef UINT16_MAX
18775 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
18776 #endif
18777 #ifdef UINT32_MAX
18778 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
18779 #endif
18780 #ifdef UINT64_MAX
18781 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
18782 #endif
18783 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
18784 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
18785 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
18786 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
18787 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
18788 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
18789 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
18790 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
18791 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
18792 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
18793 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
18797 main ()
18801 return 0;
18803 _ACEOF
18804 if ac_fn_c_try_compile "$LINENO"; then :
18805 if test "$cross_compiling" = yes; then :
18806 gl_cv_header_working_stdint_h=yes
18808 else
18809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18810 /* end confdefs.h. */
18813 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
18814 #include <stdint.h>
18817 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18818 included before <wchar.h>. */
18819 #include <stddef.h>
18820 #include <signal.h>
18821 #if HAVE_WCHAR_H
18822 # include <stdio.h>
18823 # include <time.h>
18824 # include <wchar.h>
18825 #endif
18828 #include <stdio.h>
18829 #include <string.h>
18830 #define MVAL(macro) MVAL1(macro)
18831 #define MVAL1(expression) #expression
18832 static const char *macro_values[] =
18834 #ifdef INT8_MAX
18835 MVAL (INT8_MAX),
18836 #endif
18837 #ifdef INT16_MAX
18838 MVAL (INT16_MAX),
18839 #endif
18840 #ifdef INT32_MAX
18841 MVAL (INT32_MAX),
18842 #endif
18843 #ifdef INT64_MAX
18844 MVAL (INT64_MAX),
18845 #endif
18846 #ifdef UINT8_MAX
18847 MVAL (UINT8_MAX),
18848 #endif
18849 #ifdef UINT16_MAX
18850 MVAL (UINT16_MAX),
18851 #endif
18852 #ifdef UINT32_MAX
18853 MVAL (UINT32_MAX),
18854 #endif
18855 #ifdef UINT64_MAX
18856 MVAL (UINT64_MAX),
18857 #endif
18858 NULL
18862 main ()
18865 const char **mv;
18866 for (mv = macro_values; *mv != NULL; mv++)
18868 const char *value = *mv;
18869 /* Test whether it looks like a cast expression. */
18870 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
18871 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
18872 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
18873 || strncmp (value, "((int)"/*)*/, 6) == 0
18874 || strncmp (value, "((signed short)"/*)*/, 15) == 0
18875 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
18876 return mv - macro_values + 1;
18878 return 0;
18881 return 0;
18883 _ACEOF
18884 if ac_fn_c_try_run "$LINENO"; then :
18885 gl_cv_header_working_stdint_h=yes
18887 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18888 conftest.$ac_objext conftest.beam conftest.$ac_ext
18893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
18897 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
18899 if test "$gl_cv_header_working_stdint_h" = yes; then
18900 STDINT_H=
18901 else
18902 for ac_header in sys/inttypes.h sys/bitypes.h
18903 do :
18904 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18905 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18906 eval as_val=\$$as_ac_Header
18907 if test "x$as_val" = x""yes; then :
18908 cat >>confdefs.h <<_ACEOF
18909 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18910 _ACEOF
18914 done
18916 if test $ac_cv_header_sys_inttypes_h = yes; then
18917 HAVE_SYS_INTTYPES_H=1
18918 else
18919 HAVE_SYS_INTTYPES_H=0
18922 if test $ac_cv_header_sys_bitypes_h = yes; then
18923 HAVE_SYS_BITYPES_H=1
18924 else
18925 HAVE_SYS_BITYPES_H=0
18931 if test $APPLE_UNIVERSAL_BUILD = 0; then
18934 for gltype in ptrdiff_t size_t ; do
18935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
18936 $as_echo_n "checking for bit size of $gltype... " >&6; }
18937 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
18938 $as_echo_n "(cached) " >&6
18939 else
18940 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
18941 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18942 included before <wchar.h>. */
18943 #include <stddef.h>
18944 #include <signal.h>
18945 #if HAVE_WCHAR_H
18946 # include <stdio.h>
18947 # include <time.h>
18948 # include <wchar.h>
18949 #endif
18951 #include <limits.h>"; then :
18953 else
18954 result=unknown
18957 eval gl_cv_bitsizeof_${gltype}=\$result
18960 eval ac_res=\$gl_cv_bitsizeof_${gltype}
18961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18962 $as_echo "$ac_res" >&6; }
18963 eval result=\$gl_cv_bitsizeof_${gltype}
18964 if test $result = unknown; then
18965 result=0
18967 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18968 cat >>confdefs.h <<_ACEOF
18969 #define BITSIZEOF_${GLTYPE} $result
18970 _ACEOF
18972 eval BITSIZEOF_${GLTYPE}=\$result
18973 done
18979 for gltype in sig_atomic_t wchar_t wint_t ; do
18980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
18981 $as_echo_n "checking for bit size of $gltype... " >&6; }
18982 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
18983 $as_echo_n "(cached) " >&6
18984 else
18985 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
18986 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18987 included before <wchar.h>. */
18988 #include <stddef.h>
18989 #include <signal.h>
18990 #if HAVE_WCHAR_H
18991 # include <stdio.h>
18992 # include <time.h>
18993 # include <wchar.h>
18994 #endif
18996 #include <limits.h>"; then :
18998 else
18999 result=unknown
19002 eval gl_cv_bitsizeof_${gltype}=\$result
19005 eval ac_res=\$gl_cv_bitsizeof_${gltype}
19006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19007 $as_echo "$ac_res" >&6; }
19008 eval result=\$gl_cv_bitsizeof_${gltype}
19009 if test $result = unknown; then
19010 result=0
19012 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
19013 cat >>confdefs.h <<_ACEOF
19014 #define BITSIZEOF_${GLTYPE} $result
19015 _ACEOF
19017 eval BITSIZEOF_${GLTYPE}=\$result
19018 done
19023 for gltype in sig_atomic_t wchar_t wint_t ; do
19024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
19025 $as_echo_n "checking whether $gltype is signed... " >&6; }
19026 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
19027 $as_echo_n "(cached) " >&6
19028 else
19029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19030 /* end confdefs.h. */
19032 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19033 included before <wchar.h>. */
19034 #include <stddef.h>
19035 #include <signal.h>
19036 #if HAVE_WCHAR_H
19037 # include <stdio.h>
19038 # include <time.h>
19039 # include <wchar.h>
19040 #endif
19042 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
19044 main ()
19048 return 0;
19050 _ACEOF
19051 if ac_fn_c_try_compile "$LINENO"; then :
19052 result=yes
19053 else
19054 result=no
19056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19057 eval gl_cv_type_${gltype}_signed=\$result
19060 eval ac_res=\$gl_cv_type_${gltype}_signed
19061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19062 $as_echo "$ac_res" >&6; }
19063 eval result=\$gl_cv_type_${gltype}_signed
19064 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
19065 if test "$result" = yes; then
19066 cat >>confdefs.h <<_ACEOF
19067 #define HAVE_SIGNED_${GLTYPE} 1
19068 _ACEOF
19070 eval HAVE_SIGNED_${GLTYPE}=1
19071 else
19072 eval HAVE_SIGNED_${GLTYPE}=0
19074 done
19077 gl_cv_type_ptrdiff_t_signed=yes
19078 gl_cv_type_size_t_signed=no
19079 if test $APPLE_UNIVERSAL_BUILD = 0; then
19082 for gltype in ptrdiff_t size_t ; do
19083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
19084 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
19085 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
19086 $as_echo_n "(cached) " >&6
19087 else
19088 eval gl_cv_type_${gltype}_suffix=no
19089 eval result=\$gl_cv_type_${gltype}_signed
19090 if test "$result" = yes; then
19091 glsufu=
19092 else
19093 glsufu=u
19095 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
19096 case $glsuf in
19097 '') gltype1='int';;
19098 l) gltype1='long int';;
19099 ll) gltype1='long long int';;
19100 i64) gltype1='__int64';;
19101 u) gltype1='unsigned int';;
19102 ul) gltype1='unsigned long int';;
19103 ull) gltype1='unsigned long long int';;
19104 ui64)gltype1='unsigned __int64';;
19105 esac
19106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19107 /* end confdefs.h. */
19109 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19110 included before <wchar.h>. */
19111 #include <stddef.h>
19112 #include <signal.h>
19113 #if HAVE_WCHAR_H
19114 # include <stdio.h>
19115 # include <time.h>
19116 # include <wchar.h>
19117 #endif
19119 extern $gltype foo;
19120 extern $gltype1 foo;
19122 main ()
19126 return 0;
19128 _ACEOF
19129 if ac_fn_c_try_compile "$LINENO"; then :
19130 eval gl_cv_type_${gltype}_suffix=\$glsuf
19132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19133 eval result=\$gl_cv_type_${gltype}_suffix
19134 test "$result" != no && break
19135 done
19137 eval ac_res=\$gl_cv_type_${gltype}_suffix
19138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19139 $as_echo "$ac_res" >&6; }
19140 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
19141 eval result=\$gl_cv_type_${gltype}_suffix
19142 test "$result" = no && result=
19143 eval ${GLTYPE}_SUFFIX=\$result
19144 cat >>confdefs.h <<_ACEOF
19145 #define ${GLTYPE}_SUFFIX $result
19146 _ACEOF
19148 done
19154 for gltype in sig_atomic_t wchar_t wint_t ; do
19155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
19156 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
19157 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
19158 $as_echo_n "(cached) " >&6
19159 else
19160 eval gl_cv_type_${gltype}_suffix=no
19161 eval result=\$gl_cv_type_${gltype}_signed
19162 if test "$result" = yes; then
19163 glsufu=
19164 else
19165 glsufu=u
19167 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
19168 case $glsuf in
19169 '') gltype1='int';;
19170 l) gltype1='long int';;
19171 ll) gltype1='long long int';;
19172 i64) gltype1='__int64';;
19173 u) gltype1='unsigned int';;
19174 ul) gltype1='unsigned long int';;
19175 ull) gltype1='unsigned long long int';;
19176 ui64)gltype1='unsigned __int64';;
19177 esac
19178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19179 /* end confdefs.h. */
19181 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19182 included before <wchar.h>. */
19183 #include <stddef.h>
19184 #include <signal.h>
19185 #if HAVE_WCHAR_H
19186 # include <stdio.h>
19187 # include <time.h>
19188 # include <wchar.h>
19189 #endif
19191 extern $gltype foo;
19192 extern $gltype1 foo;
19194 main ()
19198 return 0;
19200 _ACEOF
19201 if ac_fn_c_try_compile "$LINENO"; then :
19202 eval gl_cv_type_${gltype}_suffix=\$glsuf
19204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19205 eval result=\$gl_cv_type_${gltype}_suffix
19206 test "$result" != no && break
19207 done
19209 eval ac_res=\$gl_cv_type_${gltype}_suffix
19210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19211 $as_echo "$ac_res" >&6; }
19212 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
19213 eval result=\$gl_cv_type_${gltype}_suffix
19214 test "$result" = no && result=
19215 eval ${GLTYPE}_SUFFIX=\$result
19216 cat >>confdefs.h <<_ACEOF
19217 #define ${GLTYPE}_SUFFIX $result
19218 _ACEOF
19220 done
19224 if test $BITSIZEOF_WINT_T -lt 32; then
19225 BITSIZEOF_WINT_T=32
19228 STDINT_H=stdint.h
19231 if test -n "$STDINT_H"; then
19232 GL_GENERATE_STDINT_H_TRUE=
19233 GL_GENERATE_STDINT_H_FALSE='#'
19234 else
19235 GL_GENERATE_STDINT_H_TRUE='#'
19236 GL_GENERATE_STDINT_H_FALSE=
19243 GNULIB_IMAXABS=0;
19244 GNULIB_IMAXDIV=0;
19245 GNULIB_STRTOIMAX=0;
19246 GNULIB_STRTOUMAX=0;
19247 HAVE_DECL_IMAXABS=1;
19248 HAVE_DECL_IMAXDIV=1;
19249 HAVE_DECL_STRTOIMAX=1;
19250 HAVE_DECL_STRTOUMAX=1;
19251 REPLACE_STRTOIMAX=0;
19252 INT32_MAX_LT_INTMAX_MAX=1;
19253 INT64_MAX_EQ_LONG_MAX='defined _LP64';
19254 PRI_MACROS_BROKEN=0;
19255 PRIPTR_PREFIX=__PRIPTR_PREFIX;
19256 UINT32_MAX_LT_UINTMAX_MAX=1;
19257 UINT64_MAX_EQ_ULONG_MAX='defined _LP64';
19273 if test $gl_cv_have_include_next = yes; then
19274 gl_cv_next_inttypes_h='<'inttypes.h'>'
19275 else
19276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
19277 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
19278 if test "${gl_cv_next_inttypes_h+set}" = set; then :
19279 $as_echo_n "(cached) " >&6
19280 else
19282 if test $ac_cv_header_inttypes_h = yes; then
19285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19286 /* end confdefs.h. */
19287 #include <inttypes.h>
19289 _ACEOF
19290 case "$host_os" in
19291 aix*) gl_absname_cpp="$ac_cpp -C" ;;
19292 *) gl_absname_cpp="$ac_cpp" ;;
19293 esac
19295 case "$host_os" in
19296 mingw*)
19297 gl_dirsep_regex='[/\\]'
19300 gl_dirsep_regex='\/'
19302 esac
19303 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
19305 gl_header_literal_regex=`echo 'inttypes.h' \
19306 | sed -e "$gl_make_literal_regex_sed"`
19307 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19308 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19309 s|^/[^/]|//&|
19313 gl_cv_next_inttypes_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19314 sed -n "$gl_absolute_header_sed"`'"'
19315 else
19316 gl_cv_next_inttypes_h='<'inttypes.h'>'
19321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
19322 $as_echo "$gl_cv_next_inttypes_h" >&6; }
19324 NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
19326 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
19327 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19328 gl_next_as_first_directive='<'inttypes.h'>'
19329 else
19330 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19331 gl_next_as_first_directive=$gl_cv_next_inttypes_h
19333 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive
19345 case "$host_os" in
19346 mingw*)
19347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5
19348 $as_echo_n "checking for 64-bit off_t... " >&6; }
19349 if test "${gl_cv_type_off_t_64+set}" = set; then :
19350 $as_echo_n "(cached) " >&6
19351 else
19352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19353 /* end confdefs.h. */
19354 #include <sys/types.h>
19355 int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1];
19358 main ()
19362 return 0;
19364 _ACEOF
19365 if ac_fn_c_try_compile "$LINENO"; then :
19366 gl_cv_type_off_t_64=yes
19367 else
19368 gl_cv_type_off_t_64=no
19370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5
19374 $as_echo "$gl_cv_type_off_t_64" >&6; }
19375 if test $gl_cv_type_off_t_64 = no; then
19376 WINDOWS_64_BIT_OFF_T=1
19377 else
19378 WINDOWS_64_BIT_OFF_T=0
19380 WINDOWS_64_BIT_ST_SIZE=1
19383 WINDOWS_64_BIT_OFF_T=0
19384 WINDOWS_64_BIT_ST_SIZE=0
19386 esac
19391 GNULIB_MKTIME=0;
19392 GNULIB_NANOSLEEP=0;
19393 GNULIB_STRPTIME=0;
19394 GNULIB_TIMEGM=0;
19395 GNULIB_TIME_R=0;
19396 HAVE_DECL_LOCALTIME_R=1;
19397 HAVE_NANOSLEEP=1;
19398 HAVE_STRPTIME=1;
19399 HAVE_TIMEGM=1;
19400 REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
19401 REPLACE_MKTIME=GNULIB_PORTCHECK;
19402 REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
19403 REPLACE_TIMEGM=GNULIB_PORTCHECK;
19408 GNULIB_PSELECT=0;
19409 GNULIB_SELECT=0;
19410 HAVE_PSELECT=1;
19411 REPLACE_PSELECT=0;
19412 REPLACE_SELECT=0;
19419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5
19420 $as_echo_n "checking whether <sys/select.h> is self-contained... " >&6; }
19421 if test "${gl_cv_header_sys_select_h_selfcontained+set}" = set; then :
19422 $as_echo_n "(cached) " >&6
19423 else
19425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19426 /* end confdefs.h. */
19427 #include <sys/select.h>
19429 main ()
19431 struct timeval b;
19433 return 0;
19435 _ACEOF
19436 if ac_fn_c_try_compile "$LINENO"; then :
19437 gl_cv_header_sys_select_h_selfcontained=yes
19438 else
19439 gl_cv_header_sys_select_h_selfcontained=no
19441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19442 if test $gl_cv_header_sys_select_h_selfcontained = yes; then
19443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19444 /* end confdefs.h. */
19445 #include <sys/select.h>
19447 main ()
19449 int memset; int bzero;
19451 return 0;
19454 _ACEOF
19455 if ac_fn_c_try_compile "$LINENO"; then :
19456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19457 /* end confdefs.h. */
19458 #include <sys/select.h>
19460 main ()
19463 #undef memset
19464 #define memset nonexistent_memset
19465 extern
19466 #ifdef __cplusplus
19468 #endif
19469 void *memset (void *, int, unsigned long);
19470 #undef bzero
19471 #define bzero nonexistent_bzero
19472 extern
19473 #ifdef __cplusplus
19475 #endif
19476 void bzero (void *, unsigned long);
19477 fd_set fds;
19478 FD_ZERO (&fds);
19481 return 0;
19484 _ACEOF
19485 if ac_fn_c_try_link "$LINENO"; then :
19487 else
19488 gl_cv_header_sys_select_h_selfcontained=no
19490 rm -f core conftest.err conftest.$ac_objext \
19491 conftest$ac_exeext conftest.$ac_ext
19494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5
19499 $as_echo "$gl_cv_header_sys_select_h_selfcontained" >&6; }
19509 if test $gl_cv_have_include_next = yes; then
19510 gl_cv_next_sys_select_h='<'sys/select.h'>'
19511 else
19512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5
19513 $as_echo_n "checking absolute name of <sys/select.h>... " >&6; }
19514 if test "${gl_cv_next_sys_select_h+set}" = set; then :
19515 $as_echo_n "(cached) " >&6
19516 else
19518 if test $ac_cv_header_sys_select_h = yes; then
19521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19522 /* end confdefs.h. */
19523 #include <sys/select.h>
19525 _ACEOF
19526 case "$host_os" in
19527 aix*) gl_absname_cpp="$ac_cpp -C" ;;
19528 *) gl_absname_cpp="$ac_cpp" ;;
19529 esac
19531 case "$host_os" in
19532 mingw*)
19533 gl_dirsep_regex='[/\\]'
19536 gl_dirsep_regex='\/'
19538 esac
19539 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
19541 gl_header_literal_regex=`echo 'sys/select.h' \
19542 | sed -e "$gl_make_literal_regex_sed"`
19543 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19544 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19545 s|^/[^/]|//&|
19549 gl_cv_next_sys_select_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19550 sed -n "$gl_absolute_header_sed"`'"'
19551 else
19552 gl_cv_next_sys_select_h='<'sys/select.h'>'
19557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5
19558 $as_echo "$gl_cv_next_sys_select_h" >&6; }
19560 NEXT_SYS_SELECT_H=$gl_cv_next_sys_select_h
19562 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
19563 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19564 gl_next_as_first_directive='<'sys/select.h'>'
19565 else
19566 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19567 gl_next_as_first_directive=$gl_cv_next_sys_select_h
19569 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H=$gl_next_as_first_directive
19574 if test $ac_cv_header_sys_select_h = yes; then
19575 HAVE_SYS_SELECT_H=1
19576 else
19577 HAVE_SYS_SELECT_H=0
19584 if test $ac_cv_header_sys_socket_h != yes; then
19585 for ac_header in winsock2.h
19586 do :
19587 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
19588 if test "x$ac_cv_header_winsock2_h" = x""yes; then :
19589 cat >>confdefs.h <<_ACEOF
19590 #define HAVE_WINSOCK2_H 1
19591 _ACEOF
19595 done
19598 if test "$ac_cv_header_winsock2_h" = yes; then
19599 HAVE_WINSOCK2_H=1
19600 UNISTD_H_HAVE_WINSOCK2_H=1
19601 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
19602 else
19603 HAVE_WINSOCK2_H=0
19613 GNULIB_PTHREAD_SIGMASK=0;
19614 GNULIB_RAISE=0;
19615 GNULIB_SIGNAL_H_SIGPIPE=0;
19616 GNULIB_SIGPROCMASK=0;
19617 GNULIB_SIGACTION=0;
19618 HAVE_POSIX_SIGNALBLOCKING=1;
19619 HAVE_PTHREAD_SIGMASK=1;
19620 HAVE_RAISE=1;
19621 HAVE_SIGSET_T=1;
19622 HAVE_SIGINFO_T=1;
19623 HAVE_SIGACTION=1;
19624 HAVE_STRUCT_SIGACTION_SA_SIGACTION=1;
19626 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=1;
19628 HAVE_SIGHANDLER_T=1;
19629 REPLACE_PTHREAD_SIGMASK=0;
19630 REPLACE_RAISE=0;
19638 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
19639 #include <signal.h>
19640 /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */
19641 #include <sys/types.h>
19644 if test "x$ac_cv_type_sigset_t" = x""yes; then :
19646 cat >>confdefs.h <<_ACEOF
19647 #define HAVE_SIGSET_T 1
19648 _ACEOF
19650 gl_cv_type_sigset_t=yes
19651 else
19652 gl_cv_type_sigset_t=no
19655 if test $gl_cv_type_sigset_t != yes; then
19656 HAVE_SIGSET_T=0
19661 if test $ac_cv_header_sys_socket_h = no; then
19662 for ac_header in ws2tcpip.h
19663 do :
19664 ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
19665 if test "x$ac_cv_header_ws2tcpip_h" = x""yes; then :
19666 cat >>confdefs.h <<_ACEOF
19667 #define HAVE_WS2TCPIP_H 1
19668 _ACEOF
19672 done
19676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
19677 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
19678 if test "${ac_cv_header_stdbool_h+set}" = set; then :
19679 $as_echo_n "(cached) " >&6
19680 else
19681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19682 /* end confdefs.h. */
19684 #include <stdbool.h>
19685 #ifndef bool
19686 "error: bool is not defined"
19687 #endif
19688 #ifndef false
19689 "error: false is not defined"
19690 #endif
19691 #if false
19692 "error: false is not 0"
19693 #endif
19694 #ifndef true
19695 "error: true is not defined"
19696 #endif
19697 #if true != 1
19698 "error: true is not 1"
19699 #endif
19700 #ifndef __bool_true_false_are_defined
19701 "error: __bool_true_false_are_defined is not defined"
19702 #endif
19704 struct s { _Bool s: 1; _Bool t; } s;
19706 char a[true == 1 ? 1 : -1];
19707 char b[false == 0 ? 1 : -1];
19708 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
19709 char d[(bool) 0.5 == true ? 1 : -1];
19710 /* See body of main program for 'e'. */
19711 char f[(_Bool) 0.0 == false ? 1 : -1];
19712 char g[true];
19713 char h[sizeof (_Bool)];
19714 char i[sizeof s.t];
19715 enum { j = false, k = true, l = false * true, m = true * 256 };
19716 /* The following fails for
19717 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
19718 _Bool n[m];
19719 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
19720 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
19721 /* Catch a bug in an HP-UX C compiler. See
19722 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
19723 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
19725 _Bool q = true;
19726 _Bool *pq = &q;
19729 main ()
19732 bool e = &s;
19733 *pq |= q;
19734 *pq |= ! q;
19735 /* Refer to every declared value, to avoid compiler optimizations. */
19736 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
19737 + !m + !n + !o + !p + !q + !pq);
19740 return 0;
19742 _ACEOF
19743 if ac_fn_c_try_compile "$LINENO"; then :
19744 ac_cv_header_stdbool_h=yes
19745 else
19746 ac_cv_header_stdbool_h=no
19748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
19751 $as_echo "$ac_cv_header_stdbool_h" >&6; }
19752 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
19753 if test "x$ac_cv_type__Bool" = x""yes; then :
19755 cat >>confdefs.h <<_ACEOF
19756 #define HAVE__BOOL 1
19757 _ACEOF
19764 REPLACE_NULL=0;
19765 HAVE_WCHAR_T=1;
19768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
19769 $as_echo_n "checking for wchar_t... " >&6; }
19770 if test "${gt_cv_c_wchar_t+set}" = set; then :
19771 $as_echo_n "(cached) " >&6
19772 else
19773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19774 /* end confdefs.h. */
19775 #include <stddef.h>
19776 wchar_t foo = (wchar_t)'\0';
19778 main ()
19782 return 0;
19784 _ACEOF
19785 if ac_fn_c_try_compile "$LINENO"; then :
19786 gt_cv_c_wchar_t=yes
19787 else
19788 gt_cv_c_wchar_t=no
19790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
19793 $as_echo "$gt_cv_c_wchar_t" >&6; }
19794 if test $gt_cv_c_wchar_t = yes; then
19796 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
19801 GNULIB_DPRINTF=0;
19802 GNULIB_FCLOSE=0;
19803 GNULIB_FDOPEN=0;
19804 GNULIB_FFLUSH=0;
19805 GNULIB_FGETC=0;
19806 GNULIB_FGETS=0;
19807 GNULIB_FOPEN=0;
19808 GNULIB_FPRINTF=0;
19809 GNULIB_FPRINTF_POSIX=0;
19810 GNULIB_FPURGE=0;
19811 GNULIB_FPUTC=0;
19812 GNULIB_FPUTS=0;
19813 GNULIB_FREAD=0;
19814 GNULIB_FREOPEN=0;
19815 GNULIB_FSCANF=0;
19816 GNULIB_FSEEK=0;
19817 GNULIB_FSEEKO=0;
19818 GNULIB_FTELL=0;
19819 GNULIB_FTELLO=0;
19820 GNULIB_FWRITE=0;
19821 GNULIB_GETC=0;
19822 GNULIB_GETCHAR=0;
19823 GNULIB_GETDELIM=0;
19824 GNULIB_GETLINE=0;
19825 GNULIB_OBSTACK_PRINTF=0;
19826 GNULIB_OBSTACK_PRINTF_POSIX=0;
19827 GNULIB_PCLOSE=0;
19828 GNULIB_PERROR=0;
19829 GNULIB_POPEN=0;
19830 GNULIB_PRINTF=0;
19831 GNULIB_PRINTF_POSIX=0;
19832 GNULIB_PUTC=0;
19833 GNULIB_PUTCHAR=0;
19834 GNULIB_PUTS=0;
19835 GNULIB_REMOVE=0;
19836 GNULIB_RENAME=0;
19837 GNULIB_RENAMEAT=0;
19838 GNULIB_SCANF=0;
19839 GNULIB_SNPRINTF=0;
19840 GNULIB_SPRINTF_POSIX=0;
19841 GNULIB_STDIO_H_NONBLOCKING=0;
19842 GNULIB_STDIO_H_SIGPIPE=0;
19843 GNULIB_TMPFILE=0;
19844 GNULIB_VASPRINTF=0;
19845 GNULIB_VFSCANF=0;
19846 GNULIB_VSCANF=0;
19847 GNULIB_VDPRINTF=0;
19848 GNULIB_VFPRINTF=0;
19849 GNULIB_VFPRINTF_POSIX=0;
19850 GNULIB_VPRINTF=0;
19851 GNULIB_VPRINTF_POSIX=0;
19852 GNULIB_VSNPRINTF=0;
19853 GNULIB_VSPRINTF_POSIX=0;
19854 HAVE_DECL_FPURGE=1;
19855 HAVE_DECL_FSEEKO=1;
19856 HAVE_DECL_FTELLO=1;
19857 HAVE_DECL_GETDELIM=1;
19858 HAVE_DECL_GETLINE=1;
19859 HAVE_DECL_OBSTACK_PRINTF=1;
19860 HAVE_DECL_SNPRINTF=1;
19861 HAVE_DECL_VSNPRINTF=1;
19862 HAVE_DPRINTF=1;
19863 HAVE_FSEEKO=1;
19864 HAVE_FTELLO=1;
19865 HAVE_PCLOSE=1;
19866 HAVE_POPEN=1;
19867 HAVE_RENAMEAT=1;
19868 HAVE_VASPRINTF=1;
19869 HAVE_VDPRINTF=1;
19870 REPLACE_DPRINTF=0;
19871 REPLACE_FCLOSE=0;
19872 REPLACE_FDOPEN=0;
19873 REPLACE_FFLUSH=0;
19874 REPLACE_FOPEN=0;
19875 REPLACE_FPRINTF=0;
19876 REPLACE_FPURGE=0;
19877 REPLACE_FREOPEN=0;
19878 REPLACE_FSEEK=0;
19879 REPLACE_FSEEKO=0;
19880 REPLACE_FTELL=0;
19881 REPLACE_FTELLO=0;
19882 REPLACE_GETDELIM=0;
19883 REPLACE_GETLINE=0;
19884 REPLACE_OBSTACK_PRINTF=0;
19885 REPLACE_PERROR=0;
19886 REPLACE_POPEN=0;
19887 REPLACE_PRINTF=0;
19888 REPLACE_REMOVE=0;
19889 REPLACE_RENAME=0;
19890 REPLACE_RENAMEAT=0;
19891 REPLACE_SNPRINTF=0;
19892 REPLACE_SPRINTF=0;
19893 REPLACE_STDIO_READ_FUNCS=0;
19894 REPLACE_STDIO_WRITE_FUNCS=0;
19895 REPLACE_TMPFILE=0;
19896 REPLACE_VASPRINTF=0;
19897 REPLACE_VDPRINTF=0;
19898 REPLACE_VFPRINTF=0;
19899 REPLACE_VPRINTF=0;
19900 REPLACE_VSNPRINTF=0;
19901 REPLACE_VSPRINTF=0;
19903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
19904 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
19905 if test "${ac_cv_struct_tm+set}" = set; then :
19906 $as_echo_n "(cached) " >&6
19907 else
19908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19909 /* end confdefs.h. */
19910 #include <sys/types.h>
19911 #include <time.h>
19914 main ()
19916 struct tm tm;
19917 int *p = &tm.tm_sec;
19918 return !p;
19920 return 0;
19922 _ACEOF
19923 if ac_fn_c_try_compile "$LINENO"; then :
19924 ac_cv_struct_tm=time.h
19925 else
19926 ac_cv_struct_tm=sys/time.h
19928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
19931 $as_echo "$ac_cv_struct_tm" >&6; }
19932 if test $ac_cv_struct_tm = sys/time.h; then
19934 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
19938 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
19939 #include <$ac_cv_struct_tm>
19942 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
19944 cat >>confdefs.h <<_ACEOF
19945 #define HAVE_STRUCT_TM_TM_ZONE 1
19946 _ACEOF
19951 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
19953 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
19955 else
19956 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
19958 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
19959 ac_have_decl=1
19960 else
19961 ac_have_decl=0
19964 cat >>confdefs.h <<_ACEOF
19965 #define HAVE_DECL_TZNAME $ac_have_decl
19966 _ACEOF
19968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
19969 $as_echo_n "checking for tzname... " >&6; }
19970 if test "${ac_cv_var_tzname+set}" = set; then :
19971 $as_echo_n "(cached) " >&6
19972 else
19973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19974 /* end confdefs.h. */
19975 #include <time.h>
19976 #if !HAVE_DECL_TZNAME
19977 extern char *tzname[];
19978 #endif
19981 main ()
19983 return tzname[0][0];
19985 return 0;
19987 _ACEOF
19988 if ac_fn_c_try_link "$LINENO"; then :
19989 ac_cv_var_tzname=yes
19990 else
19991 ac_cv_var_tzname=no
19993 rm -f core conftest.err conftest.$ac_objext \
19994 conftest$ac_exeext conftest.$ac_ext
19996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
19997 $as_echo "$ac_cv_var_tzname" >&6; }
19998 if test $ac_cv_var_tzname = yes; then
20000 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
20006 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
20008 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then :
20010 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
20017 ac_fn_c_check_decl "$LINENO" "strtoimax" "ac_cv_have_decl_strtoimax" "$ac_includes_default"
20018 if test "x$ac_cv_have_decl_strtoimax" = x""yes; then :
20019 ac_have_decl=1
20020 else
20021 ac_have_decl=0
20024 cat >>confdefs.h <<_ACEOF
20025 #define HAVE_DECL_STRTOIMAX $ac_have_decl
20026 _ACEOF
20030 ac_fn_c_check_decl "$LINENO" "strtoumax" "ac_cv_have_decl_strtoumax" "$ac_includes_default"
20031 if test "x$ac_cv_have_decl_strtoumax" = x""yes; then :
20032 ac_have_decl=1
20033 else
20034 ac_have_decl=0
20037 cat >>confdefs.h <<_ACEOF
20038 #define HAVE_DECL_STRTOUMAX $ac_have_decl
20039 _ACEOF
20043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
20044 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
20045 if test "${ac_cv_header_stat_broken+set}" = set; then :
20046 $as_echo_n "(cached) " >&6
20047 else
20048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20049 /* end confdefs.h. */
20050 #include <sys/types.h>
20051 #include <sys/stat.h>
20053 #if defined S_ISBLK && defined S_IFDIR
20054 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
20055 #endif
20057 #if defined S_ISBLK && defined S_IFCHR
20058 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
20059 #endif
20061 #if defined S_ISLNK && defined S_IFREG
20062 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
20063 #endif
20065 #if defined S_ISSOCK && defined S_IFREG
20066 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
20067 #endif
20069 _ACEOF
20070 if ac_fn_c_try_compile "$LINENO"; then :
20071 ac_cv_header_stat_broken=no
20072 else
20073 ac_cv_header_stat_broken=yes
20075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
20078 $as_echo "$ac_cv_header_stat_broken" >&6; }
20079 if test $ac_cv_header_stat_broken = yes; then
20081 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
20089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
20090 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
20091 if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then :
20092 $as_echo_n "(cached) " >&6
20093 else
20094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20095 /* end confdefs.h. */
20096 #include <time.h>
20099 main ()
20101 static struct timespec x; x.tv_sec = x.tv_nsec;
20103 return 0;
20105 _ACEOF
20106 if ac_fn_c_try_compile "$LINENO"; then :
20107 gl_cv_sys_struct_timespec_in_time_h=yes
20108 else
20109 gl_cv_sys_struct_timespec_in_time_h=no
20111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
20114 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
20116 TIME_H_DEFINES_STRUCT_TIMESPEC=0
20117 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
20118 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
20119 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
20120 TIME_H_DEFINES_STRUCT_TIMESPEC=1
20121 else
20122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
20123 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
20124 if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then :
20125 $as_echo_n "(cached) " >&6
20126 else
20127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20128 /* end confdefs.h. */
20129 #include <sys/time.h>
20132 main ()
20134 static struct timespec x; x.tv_sec = x.tv_nsec;
20136 return 0;
20138 _ACEOF
20139 if ac_fn_c_try_compile "$LINENO"; then :
20140 gl_cv_sys_struct_timespec_in_sys_time_h=yes
20141 else
20142 gl_cv_sys_struct_timespec_in_sys_time_h=no
20144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
20147 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
20148 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
20149 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
20150 else
20151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
20152 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
20153 if test "${gl_cv_sys_struct_timespec_in_pthread_h+set}" = set; then :
20154 $as_echo_n "(cached) " >&6
20155 else
20156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20157 /* end confdefs.h. */
20158 #include <pthread.h>
20161 main ()
20163 static struct timespec x; x.tv_sec = x.tv_nsec;
20165 return 0;
20167 _ACEOF
20168 if ac_fn_c_try_compile "$LINENO"; then :
20169 gl_cv_sys_struct_timespec_in_pthread_h=yes
20170 else
20171 gl_cv_sys_struct_timespec_in_pthread_h=no
20173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
20176 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
20177 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
20178 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
20197 if test $gl_cv_have_include_next = yes; then
20198 gl_cv_next_time_h='<'time.h'>'
20199 else
20200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
20201 $as_echo_n "checking absolute name of <time.h>... " >&6; }
20202 if test "${gl_cv_next_time_h+set}" = set; then :
20203 $as_echo_n "(cached) " >&6
20204 else
20206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20207 /* end confdefs.h. */
20208 #include <time.h>
20210 _ACEOF
20211 case "$host_os" in
20212 aix*) gl_absname_cpp="$ac_cpp -C" ;;
20213 *) gl_absname_cpp="$ac_cpp" ;;
20214 esac
20216 case "$host_os" in
20217 mingw*)
20218 gl_dirsep_regex='[/\\]'
20221 gl_dirsep_regex='\/'
20223 esac
20224 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
20226 gl_header_literal_regex=`echo 'time.h' \
20227 | sed -e "$gl_make_literal_regex_sed"`
20228 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20229 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20230 s|^/[^/]|//&|
20234 gl_cv_next_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20235 sed -n "$gl_absolute_header_sed"`'"'
20239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
20240 $as_echo "$gl_cv_next_time_h" >&6; }
20242 NEXT_TIME_H=$gl_cv_next_time_h
20244 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20245 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20246 gl_next_as_first_directive='<'time.h'>'
20247 else
20248 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20249 gl_next_as_first_directive=$gl_cv_next_time_h
20251 NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
20266 ac_fn_c_check_decl "$LINENO" "unsetenv" "ac_cv_have_decl_unsetenv" "$ac_includes_default"
20267 if test "x$ac_cv_have_decl_unsetenv" = x""yes; then :
20268 ac_have_decl=1
20269 else
20270 ac_have_decl=0
20273 cat >>confdefs.h <<_ACEOF
20274 #define HAVE_DECL_UNSETENV $ac_have_decl
20275 _ACEOF
20278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the utimes function works" >&5
20279 $as_echo_n "checking whether the utimes function works... " >&6; }
20280 if test "${gl_cv_func_working_utimes+set}" = set; then :
20281 $as_echo_n "(cached) " >&6
20282 else
20284 if test "$cross_compiling" = yes; then :
20285 gl_cv_func_working_utimes=no
20286 else
20287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20288 /* end confdefs.h. */
20290 #include <sys/types.h>
20291 #include <sys/stat.h>
20292 #include <fcntl.h>
20293 #include <sys/time.h>
20294 #include <time.h>
20295 #include <unistd.h>
20296 #include <stdlib.h>
20297 #include <stdio.h>
20298 #include <utime.h>
20300 static int
20301 inorder (time_t a, time_t b, time_t c)
20303 return a <= b && b <= c;
20307 main ()
20309 int result = 0;
20310 char const *file = "conftest.utimes";
20311 static struct timeval timeval[2] = {{9, 10}, {999999, 999999}};
20313 /* Test whether utimes() essentially works. */
20315 struct stat sbuf;
20316 FILE *f = fopen (file, "w");
20317 if (f == NULL)
20318 result |= 1;
20319 else if (fclose (f) != 0)
20320 result |= 1;
20321 else if (utimes (file, timeval) != 0)
20322 result |= 2;
20323 else if (lstat (file, &sbuf) != 0)
20324 result |= 1;
20325 else if (!(sbuf.st_atime == timeval[0].tv_sec
20326 && sbuf.st_mtime == timeval[1].tv_sec))
20327 result |= 4;
20328 if (unlink (file) != 0)
20329 result |= 1;
20332 /* Test whether utimes() with a NULL argument sets the file's timestamp
20333 to the current time. Use 'fstat' as well as 'time' to
20334 determine the "current" time, to accommodate NFS file systems
20335 if there is a time skew between the host and the NFS server. */
20337 int fd = open (file, O_WRONLY|O_CREAT, 0644);
20338 if (fd < 0)
20339 result |= 1;
20340 else
20342 time_t t0, t2;
20343 struct stat st0, st1, st2;
20344 if (time (&t0) == (time_t) -1)
20345 result |= 1;
20346 else if (fstat (fd, &st0) != 0)
20347 result |= 1;
20348 else if (utimes (file, timeval) != 0)
20349 result |= 2;
20350 else if (utimes (file, NULL) != 0)
20351 result |= 8;
20352 else if (fstat (fd, &st1) != 0)
20353 result |= 1;
20354 else if (write (fd, "\n", 1) != 1)
20355 result |= 1;
20356 else if (fstat (fd, &st2) != 0)
20357 result |= 1;
20358 else if (time (&t2) == (time_t) -1)
20359 result |= 1;
20360 else
20362 int m_ok_POSIX = inorder (t0, st1.st_mtime, t2);
20363 int m_ok_NFS = inorder (st0.st_mtime, st1.st_mtime, st2.st_mtime);
20364 if (! (st1.st_atime == st1.st_mtime))
20365 result |= 16;
20366 if (! (m_ok_POSIX || m_ok_NFS))
20367 result |= 32;
20369 if (close (fd) != 0)
20370 result |= 1;
20372 if (unlink (file) != 0)
20373 result |= 1;
20376 /* Test whether utimes() with a NULL argument works on read-only files. */
20378 int fd = open (file, O_WRONLY|O_CREAT, 0444);
20379 if (fd < 0)
20380 result |= 1;
20381 else if (close (fd) != 0)
20382 result |= 1;
20383 else if (utimes (file, NULL) != 0)
20384 result |= 64;
20385 if (unlink (file) != 0)
20386 result |= 1;
20389 return result;
20392 _ACEOF
20393 if ac_fn_c_try_run "$LINENO"; then :
20394 gl_cv_func_working_utimes=yes
20395 else
20396 gl_cv_func_working_utimes=no
20398 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20399 conftest.$ac_objext conftest.beam conftest.$ac_ext
20403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_utimes" >&5
20404 $as_echo "$gl_cv_func_working_utimes" >&6; }
20406 if test $gl_cv_func_working_utimes = yes; then
20408 $as_echo "#define HAVE_WORKING_UTIMES 1" >>confdefs.h
20416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
20417 $as_echo_n "checking for struct utimbuf... " >&6; }
20418 if test "${gl_cv_sys_struct_utimbuf+set}" = set; then :
20419 $as_echo_n "(cached) " >&6
20420 else
20421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20422 /* end confdefs.h. */
20423 #if HAVE_SYS_TIME_H
20424 #include <sys/time.h>
20425 #endif
20426 #include <time.h>
20427 #ifdef HAVE_UTIME_H
20428 #include <utime.h>
20429 #endif
20432 main ()
20434 static struct utimbuf x; x.actime = x.modtime;
20436 return 0;
20438 _ACEOF
20439 if ac_fn_c_try_compile "$LINENO"; then :
20440 gl_cv_sys_struct_utimbuf=yes
20441 else
20442 gl_cv_sys_struct_utimbuf=no
20444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_utimbuf" >&5
20447 $as_echo "$gl_cv_sys_struct_utimbuf" >&6; }
20449 if test $gl_cv_sys_struct_utimbuf = yes; then
20451 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
20465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5
20466 $as_echo_n "checking type of array argument to getgroups... " >&6; }
20467 if test "${ac_cv_type_getgroups+set}" = set; then :
20468 $as_echo_n "(cached) " >&6
20469 else
20470 if test "$cross_compiling" = yes; then :
20471 ac_cv_type_getgroups=cross
20472 else
20473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20474 /* end confdefs.h. */
20475 /* Thanks to Mike Rendell for this test. */
20476 $ac_includes_default
20477 #define NGID 256
20478 #undef MAX
20479 #define MAX(x, y) ((x) > (y) ? (x) : (y))
20482 main ()
20484 gid_t gidset[NGID];
20485 int i, n;
20486 union { gid_t gval; long int lval; } val;
20488 val.lval = -1;
20489 for (i = 0; i < NGID; i++)
20490 gidset[i] = val.gval;
20491 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
20492 gidset);
20493 /* Exit non-zero if getgroups seems to require an array of ints. This
20494 happens when gid_t is short int but getgroups modifies an array
20495 of ints. */
20496 return n > 0 && gidset[n] != val.gval;
20498 _ACEOF
20499 if ac_fn_c_try_run "$LINENO"; then :
20500 ac_cv_type_getgroups=gid_t
20501 else
20502 ac_cv_type_getgroups=int
20504 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20505 conftest.$ac_objext conftest.beam conftest.$ac_ext
20508 if test $ac_cv_type_getgroups = cross; then
20509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20510 /* end confdefs.h. */
20511 #include <unistd.h>
20513 _ACEOF
20514 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20515 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then :
20516 ac_cv_type_getgroups=gid_t
20517 else
20518 ac_cv_type_getgroups=int
20520 rm -f conftest*
20524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5
20525 $as_echo "$ac_cv_type_getgroups" >&6; }
20527 cat >>confdefs.h <<_ACEOF
20528 #define GETGROUPS_T $ac_cv_type_getgroups
20529 _ACEOF
20534 if false; then
20535 GL_COND_LIBTOOL_TRUE=
20536 GL_COND_LIBTOOL_FALSE='#'
20537 else
20538 GL_COND_LIBTOOL_TRUE='#'
20539 GL_COND_LIBTOOL_FALSE=
20542 gl_cond_libtool=false
20543 gl_libdeps=
20544 gl_ltlibdeps=
20545 gl_m4_base='m4'
20555 gl_source_base='lib'
20558 if test $ac_cv_func_alloca_works = no; then
20562 # Define an additional variable used in the Makefile substitution.
20563 if test $ac_cv_working_alloca_h = yes; then
20564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
20565 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
20566 if test "${gl_cv_rpl_alloca+set}" = set; then :
20567 $as_echo_n "(cached) " >&6
20568 else
20570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20571 /* end confdefs.h. */
20573 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
20574 Need own alloca
20575 #endif
20577 _ACEOF
20578 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20579 $EGREP "Need own alloca" >/dev/null 2>&1; then :
20580 gl_cv_rpl_alloca=yes
20581 else
20582 gl_cv_rpl_alloca=no
20584 rm -f conftest*
20588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
20589 $as_echo "$gl_cv_rpl_alloca" >&6; }
20590 if test $gl_cv_rpl_alloca = yes; then
20592 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
20594 ALLOCA_H=alloca.h
20595 else
20596 ALLOCA_H=
20598 else
20599 ALLOCA_H=alloca.h
20602 if test -n "$ALLOCA_H"; then
20603 GL_GENERATE_ALLOCA_H_TRUE=
20604 GL_GENERATE_ALLOCA_H_FALSE='#'
20605 else
20606 GL_GENERATE_ALLOCA_H_TRUE='#'
20607 GL_GENERATE_ALLOCA_H_FALSE=
20615 # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function.
20616 # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
20618 # Save and restore LIBS so e.g., -lrt, isn't added to it. Otherwise, *all*
20619 # programs in the package would end up linked with that potentially-shared
20620 # library, inducing unnecessary run-time overhead.
20621 LIB_CLOCK_GETTIME=
20623 gl_saved_libs=$LIBS
20624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
20625 $as_echo_n "checking for library containing clock_gettime... " >&6; }
20626 if test "${ac_cv_search_clock_gettime+set}" = set; then :
20627 $as_echo_n "(cached) " >&6
20628 else
20629 ac_func_search_save_LIBS=$LIBS
20630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20631 /* end confdefs.h. */
20633 /* Override any GCC internal prototype to avoid an error.
20634 Use char because int might match the return type of a GCC
20635 builtin and then its argument prototype would still apply. */
20636 #ifdef __cplusplus
20637 extern "C"
20638 #endif
20639 char clock_gettime ();
20641 main ()
20643 return clock_gettime ();
20645 return 0;
20647 _ACEOF
20648 for ac_lib in '' rt posix4; do
20649 if test -z "$ac_lib"; then
20650 ac_res="none required"
20651 else
20652 ac_res=-l$ac_lib
20653 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20655 if ac_fn_c_try_link "$LINENO"; then :
20656 ac_cv_search_clock_gettime=$ac_res
20658 rm -f core conftest.err conftest.$ac_objext \
20659 conftest$ac_exeext
20660 if test "${ac_cv_search_clock_gettime+set}" = set; then :
20661 break
20663 done
20664 if test "${ac_cv_search_clock_gettime+set}" = set; then :
20666 else
20667 ac_cv_search_clock_gettime=no
20669 rm conftest.$ac_ext
20670 LIBS=$ac_func_search_save_LIBS
20672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
20673 $as_echo "$ac_cv_search_clock_gettime" >&6; }
20674 ac_res=$ac_cv_search_clock_gettime
20675 if test "$ac_res" != no; then :
20676 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20677 test "$ac_cv_search_clock_gettime" = "none required" ||
20678 LIB_CLOCK_GETTIME=$ac_cv_search_clock_gettime
20681 for ac_func in clock_gettime clock_settime
20682 do :
20683 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20684 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20685 eval as_val=\$$as_ac_var
20686 if test "x$as_val" = x""yes; then :
20687 cat >>confdefs.h <<_ACEOF
20688 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20689 _ACEOF
20692 done
20694 LIBS=$gl_saved_libs
20701 cat >>confdefs.h <<_ACEOF
20702 #define GNULIB_CLOSE_STREAM 1
20703 _ACEOF
20732 if test $gl_cv_have_include_next = yes; then
20733 gl_cv_next_dirent_h='<'dirent.h'>'
20734 else
20735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <dirent.h>" >&5
20736 $as_echo_n "checking absolute name of <dirent.h>... " >&6; }
20737 if test "${gl_cv_next_dirent_h+set}" = set; then :
20738 $as_echo_n "(cached) " >&6
20739 else
20741 if test $ac_cv_header_dirent_h = yes; then
20744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20745 /* end confdefs.h. */
20746 #include <dirent.h>
20748 _ACEOF
20749 case "$host_os" in
20750 aix*) gl_absname_cpp="$ac_cpp -C" ;;
20751 *) gl_absname_cpp="$ac_cpp" ;;
20752 esac
20754 case "$host_os" in
20755 mingw*)
20756 gl_dirsep_regex='[/\\]'
20759 gl_dirsep_regex='\/'
20761 esac
20762 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
20764 gl_header_literal_regex=`echo 'dirent.h' \
20765 | sed -e "$gl_make_literal_regex_sed"`
20766 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20767 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20768 s|^/[^/]|//&|
20772 gl_cv_next_dirent_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20773 sed -n "$gl_absolute_header_sed"`'"'
20774 else
20775 gl_cv_next_dirent_h='<'dirent.h'>'
20780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_dirent_h" >&5
20781 $as_echo "$gl_cv_next_dirent_h" >&6; }
20783 NEXT_DIRENT_H=$gl_cv_next_dirent_h
20785 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20786 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20787 gl_next_as_first_directive='<'dirent.h'>'
20788 else
20789 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20790 gl_next_as_first_directive=$gl_cv_next_dirent_h
20792 NEXT_AS_FIRST_DIRECTIVE_DIRENT_H=$gl_next_as_first_directive
20797 if test $ac_cv_header_dirent_h = yes; then
20798 HAVE_DIRENT_H=1
20799 else
20800 HAVE_DIRENT_H=0
20812 $as_echo "#define HAVE_DUP2 1" >>confdefs.h
20815 if test $HAVE_DUP2 = 1; then
20816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5
20817 $as_echo_n "checking whether dup2 works... " >&6; }
20818 if test "${gl_cv_func_dup2_works+set}" = set; then :
20819 $as_echo_n "(cached) " >&6
20820 else
20821 if test "$cross_compiling" = yes; then :
20822 case "$host_os" in
20823 mingw*) # on this platform, dup2 always returns 0 for success
20824 gl_cv_func_dup2_works="guessing no" ;;
20825 cygwin*) # on cygwin 1.5.x, dup2(1,1) returns 0
20826 gl_cv_func_dup2_works="guessing no" ;;
20827 linux*) # On linux between 2008-07-27 and 2009-05-11, dup2 of a
20828 # closed fd may yield -EBADF instead of -1 / errno=EBADF.
20829 gl_cv_func_dup2_works="guessing no" ;;
20830 freebsd*) # on FreeBSD 6.1, dup2(1,1000000) gives EMFILE, not EBADF.
20831 gl_cv_func_dup2_works="guessing no" ;;
20832 haiku*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC.
20833 gl_cv_func_dup2_works="guessing no" ;;
20834 *) gl_cv_func_dup2_works="guessing yes" ;;
20835 esac
20836 else
20837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20838 /* end confdefs.h. */
20840 #include <unistd.h>
20841 #include <fcntl.h>
20842 #include <errno.h>
20844 main ()
20846 int result = 0;
20847 #ifdef FD_CLOEXEC
20848 if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1)
20849 result |= 1;
20850 #endif
20851 if (dup2 (1, 1) == 0)
20852 result |= 2;
20853 #ifdef FD_CLOEXEC
20854 if (fcntl (1, F_GETFD) != FD_CLOEXEC)
20855 result |= 4;
20856 #endif
20857 close (0);
20858 if (dup2 (0, 0) != -1)
20859 result |= 8;
20860 /* Many gnulib modules require POSIX conformance of EBADF. */
20861 if (dup2 (2, 1000000) == -1 && errno != EBADF)
20862 result |= 16;
20863 /* Flush out a cygwin core dump. */
20864 if (dup2 (2, -1) != -1 || errno != EBADF)
20865 result |= 32;
20866 return result;
20869 return 0;
20872 _ACEOF
20873 if ac_fn_c_try_run "$LINENO"; then :
20874 gl_cv_func_dup2_works=yes
20875 else
20876 gl_cv_func_dup2_works=no
20878 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20879 conftest.$ac_objext conftest.beam conftest.$ac_ext
20884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5
20885 $as_echo "$gl_cv_func_dup2_works" >&6; }
20886 case "$gl_cv_func_dup2_works" in
20887 *yes) ;;
20889 REPLACE_DUP2=1
20891 esac
20895 if test $HAVE_DUP2 = 0 || test $REPLACE_DUP2 = 1; then
20904 gl_LIBOBJS="$gl_LIBOBJS dup2.$ac_objext"
20913 GNULIB_DUP2=1
20925 GNULIB_ENVIRON=1
20934 LIB_EXECINFO=''
20935 EXECINFO_H='execinfo.h'
20937 if test $ac_cv_header_execinfo_h = yes; then
20938 gl_saved_libs=$LIBS
20939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing backtrace_symbols_fd" >&5
20940 $as_echo_n "checking for library containing backtrace_symbols_fd... " >&6; }
20941 if test "${ac_cv_search_backtrace_symbols_fd+set}" = set; then :
20942 $as_echo_n "(cached) " >&6
20943 else
20944 ac_func_search_save_LIBS=$LIBS
20945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20946 /* end confdefs.h. */
20948 /* Override any GCC internal prototype to avoid an error.
20949 Use char because int might match the return type of a GCC
20950 builtin and then its argument prototype would still apply. */
20951 #ifdef __cplusplus
20952 extern "C"
20953 #endif
20954 char backtrace_symbols_fd ();
20956 main ()
20958 return backtrace_symbols_fd ();
20960 return 0;
20962 _ACEOF
20963 for ac_lib in '' execinfo; do
20964 if test -z "$ac_lib"; then
20965 ac_res="none required"
20966 else
20967 ac_res=-l$ac_lib
20968 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20970 if ac_fn_c_try_link "$LINENO"; then :
20971 ac_cv_search_backtrace_symbols_fd=$ac_res
20973 rm -f core conftest.err conftest.$ac_objext \
20974 conftest$ac_exeext
20975 if test "${ac_cv_search_backtrace_symbols_fd+set}" = set; then :
20976 break
20978 done
20979 if test "${ac_cv_search_backtrace_symbols_fd+set}" = set; then :
20981 else
20982 ac_cv_search_backtrace_symbols_fd=no
20984 rm conftest.$ac_ext
20985 LIBS=$ac_func_search_save_LIBS
20987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_backtrace_symbols_fd" >&5
20988 $as_echo "$ac_cv_search_backtrace_symbols_fd" >&6; }
20989 ac_res=$ac_cv_search_backtrace_symbols_fd
20990 if test "$ac_res" != no; then :
20991 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20992 test "$ac_cv_search_backtrace_symbols_fd" = "none required" ||
20993 LIB_EXECINFO=$ac_cv_search_backtrace_symbols_fd
20996 LIBS=$gl_saved_libs
20997 test "$ac_cv_search_backtrace_symbols_fd" = no || EXECINFO_H=''
21000 if test -n "$EXECINFO_H"; then
21009 gl_LIBOBJS="$gl_LIBOBJS execinfo.$ac_objext"
21015 if test -n "$EXECINFO_H"; then
21016 GL_GENERATE_EXECINFO_H_TRUE=
21017 GL_GENERATE_EXECINFO_H_FALSE='#'
21018 else
21019 GL_GENERATE_EXECINFO_H_TRUE='#'
21020 GL_GENERATE_EXECINFO_H_FALSE=
21031 if test $ac_cv_func_faccessat = no; then
21032 HAVE_FACCESSAT=0
21035 if test $HAVE_FACCESSAT = 0; then
21044 gl_LIBOBJS="$gl_LIBOBJS faccessat.$ac_objext"
21047 for ac_func in access
21048 do :
21049 ac_fn_c_check_func "$LINENO" "access" "ac_cv_func_access"
21050 if test "x$ac_cv_func_access" = x""yes; then :
21051 cat >>confdefs.h <<_ACEOF
21052 #define HAVE_ACCESS 1
21053 _ACEOF
21056 done
21062 cat >>confdefs.h <<_ACEOF
21063 #define GNULIB_FACCESSAT 1
21064 _ACEOF
21072 GNULIB_FACCESSAT=1
21089 if test $gl_cv_have_include_next = yes; then
21090 gl_cv_next_fcntl_h='<'fcntl.h'>'
21091 else
21092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <fcntl.h>" >&5
21093 $as_echo_n "checking absolute name of <fcntl.h>... " >&6; }
21094 if test "${gl_cv_next_fcntl_h+set}" = set; then :
21095 $as_echo_n "(cached) " >&6
21096 else
21098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21099 /* end confdefs.h. */
21100 #include <fcntl.h>
21102 _ACEOF
21103 case "$host_os" in
21104 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21105 *) gl_absname_cpp="$ac_cpp" ;;
21106 esac
21108 case "$host_os" in
21109 mingw*)
21110 gl_dirsep_regex='[/\\]'
21113 gl_dirsep_regex='\/'
21115 esac
21116 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
21118 gl_header_literal_regex=`echo 'fcntl.h' \
21119 | sed -e "$gl_make_literal_regex_sed"`
21120 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21121 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21122 s|^/[^/]|//&|
21126 gl_cv_next_fcntl_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21127 sed -n "$gl_absolute_header_sed"`'"'
21131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_fcntl_h" >&5
21132 $as_echo "$gl_cv_next_fcntl_h" >&6; }
21134 NEXT_FCNTL_H=$gl_cv_next_fcntl_h
21136 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21137 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21138 gl_next_as_first_directive='<'fcntl.h'>'
21139 else
21140 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21141 gl_next_as_first_directive=$gl_cv_next_fcntl_h
21143 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H=$gl_next_as_first_directive
21160 ac_fn_c_check_decl "$LINENO" "fdopendir" "ac_cv_have_decl_fdopendir" "
21161 #include <dirent.h>
21164 if test "x$ac_cv_have_decl_fdopendir" = x""yes; then :
21165 ac_have_decl=1
21166 else
21167 ac_have_decl=0
21170 cat >>confdefs.h <<_ACEOF
21171 #define HAVE_DECL_FDOPENDIR $ac_have_decl
21172 _ACEOF
21173 if test $ac_have_decl = 1; then :
21175 else
21176 HAVE_DECL_FDOPENDIR=0
21180 if test $ac_cv_func_fdopendir = no; then
21181 HAVE_FDOPENDIR=0
21182 else
21183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fdopendir works" >&5
21184 $as_echo_n "checking whether fdopendir works... " >&6; }
21185 if test "${gl_cv_func_fdopendir_works+set}" = set; then :
21186 $as_echo_n "(cached) " >&6
21187 else
21188 if test "$cross_compiling" = yes; then :
21189 case "$host_os" in
21190 # Guess yes on glibc systems.
21191 *-gnu*) gl_cv_func_fdopendir_works="guessing yes" ;;
21192 # If we don't know, assume the worst.
21193 *) gl_cv_func_fdopendir_works="guessing no" ;;
21194 esac
21196 else
21197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21198 /* end confdefs.h. */
21200 #include <dirent.h>
21201 #include <fcntl.h>
21202 #include <unistd.h>
21203 #if !HAVE_DECL_FDOPENDIR
21204 extern
21205 # ifdef __cplusplus
21207 # endif
21208 DIR *fdopendir (int);
21209 #endif
21212 main ()
21214 int result = 0;
21215 int fd = open ("conftest.c", O_RDONLY);
21216 if (fd < 0) result |= 1;
21217 if (fdopendir (fd)) result |= 2;
21218 if (close (fd)) result |= 4;
21219 return result;
21221 return 0;
21223 _ACEOF
21224 if ac_fn_c_try_run "$LINENO"; then :
21225 gl_cv_func_fdopendir_works=yes
21226 else
21227 gl_cv_func_fdopendir_works=no
21229 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21230 conftest.$ac_objext conftest.beam conftest.$ac_ext
21234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fdopendir_works" >&5
21235 $as_echo "$gl_cv_func_fdopendir_works" >&6; }
21236 case "$gl_cv_func_fdopendir_works" in
21237 *yes) ;;
21239 REPLACE_FDOPENDIR=1
21241 esac
21244 if test $HAVE_FDOPENDIR = 0 || test $REPLACE_FDOPENDIR = 1; then
21253 gl_LIBOBJS="$gl_LIBOBJS fdopendir.$ac_objext"
21261 GNULIB_FDOPENDIR=1
21269 cat >>confdefs.h <<_ACEOF
21270 #define GNULIB_FDOPENDIR 1
21271 _ACEOF
21281 fp_headers='
21282 # include <stdio.h>
21283 # if HAVE_STDIO_EXT_H
21284 # include <stdio_ext.h>
21285 # endif
21287 ac_fn_c_check_decl "$LINENO" "__fpending" "ac_cv_have_decl___fpending" "$fp_headers
21289 if test "x$ac_cv_have_decl___fpending" = x""yes; then :
21290 ac_have_decl=1
21291 else
21292 ac_have_decl=0
21295 cat >>confdefs.h <<_ACEOF
21296 #define HAVE_DECL___FPENDING $ac_have_decl
21297 _ACEOF
21300 if test $ac_cv_func___fpending = no; then
21309 gl_LIBOBJS="$gl_LIBOBJS fpending.$ac_objext"
21312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to determine the number of pending output bytes on a stream" >&5
21313 $as_echo_n "checking how to determine the number of pending output bytes on a stream... " >&6; }
21314 if test "${ac_cv_sys_pending_output_n_bytes+set}" = set; then :
21315 $as_echo_n "(cached) " >&6
21316 else
21318 for ac_expr in \
21320 '# glibc2' \
21321 'fp->_IO_write_ptr - fp->_IO_write_base' \
21323 '# traditional Unix' \
21324 'fp->_ptr - fp->_base' \
21326 '# BSD' \
21327 'fp->_p - fp->_bf._base' \
21329 '# SCO, Unixware' \
21330 '(fp->__ptr ? fp->__ptr - fp->__base : 0)' \
21332 '# QNX' \
21333 '(fp->_Mode & 0x2000 /*_MWRITE*/ ? fp->_Next - fp->_Buf : 0)' \
21335 '# old glibc?' \
21336 'fp->__bufp - fp->__buffer' \
21338 '# old glibc iostream?' \
21339 'fp->_pptr - fp->_pbase' \
21341 '# emx+gcc' \
21342 'fp->_ptr - fp->_buffer' \
21344 '# Minix' \
21345 'fp->_ptr - fp->_buf' \
21347 '# Plan9' \
21348 'fp->wp - fp->buf' \
21350 '# VMS' \
21351 '(*fp)->_ptr - (*fp)->_base' \
21353 '# e.g., DGUX R4.11; the info is not available' \
21355 ; do
21357 # Skip each embedded comment.
21358 case "$ac_expr" in '#'*) continue;; esac
21360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21361 /* end confdefs.h. */
21362 #include <stdio.h>
21364 main ()
21366 FILE *fp = stdin; (void) ($ac_expr);
21368 return 0;
21370 _ACEOF
21371 if ac_fn_c_try_compile "$LINENO"; then :
21372 fp_done=yes
21375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21376 test "$fp_done" = yes && break
21377 done
21379 ac_cv_sys_pending_output_n_bytes=$ac_expr
21383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_pending_output_n_bytes" >&5
21384 $as_echo "$ac_cv_sys_pending_output_n_bytes" >&6; }
21386 cat >>confdefs.h <<_ACEOF
21387 #define PENDING_OUTPUT_N_BYTES $ac_cv_sys_pending_output_n_bytes
21388 _ACEOF
21398 if test $ac_cv_func_fstatat = no; then
21399 HAVE_FSTATAT=0
21400 else
21401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fstatat (..., 0) works" >&5
21402 $as_echo_n "checking whether fstatat (..., 0) works... " >&6; }
21403 if test "${gl_cv_func_fstatat_zero_flag+set}" = set; then :
21404 $as_echo_n "(cached) " >&6
21405 else
21406 if test "$cross_compiling" = yes; then :
21407 case "$host_os" in
21408 aix*) gl_cv_func_fstatat_zero_flag="guessing no";;
21409 *) gl_cv_func_fstatat_zero_flag="guessing yes";;
21410 esac
21412 else
21413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21414 /* end confdefs.h. */
21416 #include <fcntl.h>
21417 #include <sys/stat.h>
21419 main (void)
21421 struct stat a;
21422 return fstatat (AT_FDCWD, ".", &a, 0) != 0;
21425 _ACEOF
21426 if ac_fn_c_try_run "$LINENO"; then :
21427 gl_cv_func_fstatat_zero_flag=yes
21428 else
21429 gl_cv_func_fstatat_zero_flag=no
21431 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21432 conftest.$ac_objext conftest.beam conftest.$ac_ext
21437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fstatat_zero_flag" >&5
21438 $as_echo "$gl_cv_func_fstatat_zero_flag" >&6; }
21440 case $gl_cv_func_fstatat_zero_flag+$gl_cv_func_lstat_dereferences_slashed_symlink in
21441 *yes+*yes) ;;
21442 *) REPLACE_FSTATAT=1
21443 case $gl_cv_func_fstatat_zero_flag in
21444 *yes)
21446 $as_echo "#define HAVE_WORKING_FSTATAT_ZERO_FLAG 1" >>confdefs.h
21449 esac
21451 esac
21454 if test $HAVE_FSTATAT = 0 || test $REPLACE_FSTATAT = 1; then
21463 gl_LIBOBJS="$gl_LIBOBJS fstatat.$ac_objext"
21471 GNULIB_FSTATAT=1
21479 # Persuade glibc <stdlib.h> to declare getloadavg().
21482 gl_save_LIBS=$LIBS
21484 # getloadvg is present in libc on glibc >= 2.2, Mac OS X, FreeBSD >= 2.0,
21485 # NetBSD >= 0.9, OpenBSD >= 2.0, Solaris >= 7.
21486 HAVE_GETLOADAVG=1
21487 ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
21488 if test "x$ac_cv_func_getloadavg" = x""yes; then :
21490 else
21491 gl_func_getloadavg_done=no
21493 # Some systems with -lutil have (and need) -lkvm as well, some do not.
21494 # On Solaris, -lkvm requires nlist from -lelf, so check that first
21495 # to get the right answer into the cache.
21496 # For kstat on solaris, we need to test for libelf and libkvm to force the
21497 # definition of SVR4 below.
21498 if test $gl_func_getloadavg_done = no; then
21499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
21500 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
21501 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then :
21502 $as_echo_n "(cached) " >&6
21503 else
21504 ac_check_lib_save_LIBS=$LIBS
21505 LIBS="-lelf $LIBS"
21506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21507 /* end confdefs.h. */
21509 /* Override any GCC internal prototype to avoid an error.
21510 Use char because int might match the return type of a GCC
21511 builtin and then its argument prototype would still apply. */
21512 #ifdef __cplusplus
21513 extern "C"
21514 #endif
21515 char elf_begin ();
21517 main ()
21519 return elf_begin ();
21521 return 0;
21523 _ACEOF
21524 if ac_fn_c_try_link "$LINENO"; then :
21525 ac_cv_lib_elf_elf_begin=yes
21526 else
21527 ac_cv_lib_elf_elf_begin=no
21529 rm -f core conftest.err conftest.$ac_objext \
21530 conftest$ac_exeext conftest.$ac_ext
21531 LIBS=$ac_check_lib_save_LIBS
21533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
21534 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
21535 if test "x$ac_cv_lib_elf_elf_begin" = x""yes; then :
21536 LIBS="-lelf $LIBS"
21539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
21540 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
21541 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
21542 $as_echo_n "(cached) " >&6
21543 else
21544 ac_check_lib_save_LIBS=$LIBS
21545 LIBS="-lkvm $LIBS"
21546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21547 /* end confdefs.h. */
21549 /* Override any GCC internal prototype to avoid an error.
21550 Use char because int might match the return type of a GCC
21551 builtin and then its argument prototype would still apply. */
21552 #ifdef __cplusplus
21553 extern "C"
21554 #endif
21555 char kvm_open ();
21557 main ()
21559 return kvm_open ();
21561 return 0;
21563 _ACEOF
21564 if ac_fn_c_try_link "$LINENO"; then :
21565 ac_cv_lib_kvm_kvm_open=yes
21566 else
21567 ac_cv_lib_kvm_kvm_open=no
21569 rm -f core conftest.err conftest.$ac_objext \
21570 conftest$ac_exeext conftest.$ac_ext
21571 LIBS=$ac_check_lib_save_LIBS
21573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
21574 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
21575 if test "x$ac_cv_lib_kvm_kvm_open" = x""yes; then :
21576 LIBS="-lkvm $LIBS"
21579 # Check for the 4.4BSD definition of getloadavg.
21580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
21581 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
21582 if test "${ac_cv_lib_util_getloadavg+set}" = set; then :
21583 $as_echo_n "(cached) " >&6
21584 else
21585 ac_check_lib_save_LIBS=$LIBS
21586 LIBS="-lutil $LIBS"
21587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21588 /* end confdefs.h. */
21590 /* Override any GCC internal prototype to avoid an error.
21591 Use char because int might match the return type of a GCC
21592 builtin and then its argument prototype would still apply. */
21593 #ifdef __cplusplus
21594 extern "C"
21595 #endif
21596 char getloadavg ();
21598 main ()
21600 return getloadavg ();
21602 return 0;
21604 _ACEOF
21605 if ac_fn_c_try_link "$LINENO"; then :
21606 ac_cv_lib_util_getloadavg=yes
21607 else
21608 ac_cv_lib_util_getloadavg=no
21610 rm -f core conftest.err conftest.$ac_objext \
21611 conftest$ac_exeext conftest.$ac_ext
21612 LIBS=$ac_check_lib_save_LIBS
21614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
21615 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
21616 if test "x$ac_cv_lib_util_getloadavg" = x""yes; then :
21617 LIBS="-lutil $LIBS" gl_func_getloadavg_done=yes
21622 if test $gl_func_getloadavg_done = no; then
21623 # There is a commonly available library for RS/6000 AIX.
21624 # Since it is not a standard part of AIX, it might be installed locally.
21625 gl_getloadavg_LIBS=$LIBS
21626 LIBS="-L/usr/local/lib $LIBS"
21627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
21628 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
21629 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then :
21630 $as_echo_n "(cached) " >&6
21631 else
21632 ac_check_lib_save_LIBS=$LIBS
21633 LIBS="-lgetloadavg $LIBS"
21634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21635 /* end confdefs.h. */
21637 /* Override any GCC internal prototype to avoid an error.
21638 Use char because int might match the return type of a GCC
21639 builtin and then its argument prototype would still apply. */
21640 #ifdef __cplusplus
21641 extern "C"
21642 #endif
21643 char getloadavg ();
21645 main ()
21647 return getloadavg ();
21649 return 0;
21651 _ACEOF
21652 if ac_fn_c_try_link "$LINENO"; then :
21653 ac_cv_lib_getloadavg_getloadavg=yes
21654 else
21655 ac_cv_lib_getloadavg_getloadavg=no
21657 rm -f core conftest.err conftest.$ac_objext \
21658 conftest$ac_exeext conftest.$ac_ext
21659 LIBS=$ac_check_lib_save_LIBS
21661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
21662 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
21663 if test "x$ac_cv_lib_getloadavg_getloadavg" = x""yes; then :
21664 LIBS="-lgetloadavg $LIBS" gl_func_getloadavg_done=yes
21665 else
21666 LIBS=$gl_getloadavg_LIBS
21671 # Set up the replacement function if necessary.
21672 if test $gl_func_getloadavg_done = no; then
21673 HAVE_GETLOADAVG=0
21675 # Solaris has libkstat which does not require root.
21676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
21677 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
21678 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
21679 $as_echo_n "(cached) " >&6
21680 else
21681 ac_check_lib_save_LIBS=$LIBS
21682 LIBS="-lkstat $LIBS"
21683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21684 /* end confdefs.h. */
21686 /* Override any GCC internal prototype to avoid an error.
21687 Use char because int might match the return type of a GCC
21688 builtin and then its argument prototype would still apply. */
21689 #ifdef __cplusplus
21690 extern "C"
21691 #endif
21692 char kstat_open ();
21694 main ()
21696 return kstat_open ();
21698 return 0;
21700 _ACEOF
21701 if ac_fn_c_try_link "$LINENO"; then :
21702 ac_cv_lib_kstat_kstat_open=yes
21703 else
21704 ac_cv_lib_kstat_kstat_open=no
21706 rm -f core conftest.err conftest.$ac_objext \
21707 conftest$ac_exeext conftest.$ac_ext
21708 LIBS=$ac_check_lib_save_LIBS
21710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
21711 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
21712 if test "x$ac_cv_lib_kstat_kstat_open" = x""yes; then :
21713 cat >>confdefs.h <<_ACEOF
21714 #define HAVE_LIBKSTAT 1
21715 _ACEOF
21717 LIBS="-lkstat $LIBS"
21721 test $ac_cv_lib_kstat_kstat_open = yes && gl_func_getloadavg_done=yes
21723 # AIX has libperfstat which does not require root
21724 if test $gl_func_getloadavg_done = no; then
21725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perfstat_cpu_total in -lperfstat" >&5
21726 $as_echo_n "checking for perfstat_cpu_total in -lperfstat... " >&6; }
21727 if test "${ac_cv_lib_perfstat_perfstat_cpu_total+set}" = set; then :
21728 $as_echo_n "(cached) " >&6
21729 else
21730 ac_check_lib_save_LIBS=$LIBS
21731 LIBS="-lperfstat $LIBS"
21732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21733 /* end confdefs.h. */
21735 /* Override any GCC internal prototype to avoid an error.
21736 Use char because int might match the return type of a GCC
21737 builtin and then its argument prototype would still apply. */
21738 #ifdef __cplusplus
21739 extern "C"
21740 #endif
21741 char perfstat_cpu_total ();
21743 main ()
21745 return perfstat_cpu_total ();
21747 return 0;
21749 _ACEOF
21750 if ac_fn_c_try_link "$LINENO"; then :
21751 ac_cv_lib_perfstat_perfstat_cpu_total=yes
21752 else
21753 ac_cv_lib_perfstat_perfstat_cpu_total=no
21755 rm -f core conftest.err conftest.$ac_objext \
21756 conftest$ac_exeext conftest.$ac_ext
21757 LIBS=$ac_check_lib_save_LIBS
21759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_perfstat_perfstat_cpu_total" >&5
21760 $as_echo "$ac_cv_lib_perfstat_perfstat_cpu_total" >&6; }
21761 if test "x$ac_cv_lib_perfstat_perfstat_cpu_total" = x""yes; then :
21762 cat >>confdefs.h <<_ACEOF
21763 #define HAVE_LIBPERFSTAT 1
21764 _ACEOF
21766 LIBS="-lperfstat $LIBS"
21770 test $ac_cv_lib_perfstat_perfstat_cpu_total = yes && gl_func_getloadavg_done=yes
21773 if test $gl_func_getloadavg_done = no; then
21774 ac_fn_c_check_header_mongrel "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
21775 if test "x$ac_cv_header_sys_dg_sys_info_h" = x""yes; then :
21776 gl_func_getloadavg_done=yes
21778 $as_echo "#define DGUX 1" >>confdefs.h
21780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
21781 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
21782 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then :
21783 $as_echo_n "(cached) " >&6
21784 else
21785 ac_check_lib_save_LIBS=$LIBS
21786 LIBS="-ldgc $LIBS"
21787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21788 /* end confdefs.h. */
21790 /* Override any GCC internal prototype to avoid an error.
21791 Use char because int might match the return type of a GCC
21792 builtin and then its argument prototype would still apply. */
21793 #ifdef __cplusplus
21794 extern "C"
21795 #endif
21796 char dg_sys_info ();
21798 main ()
21800 return dg_sys_info ();
21802 return 0;
21804 _ACEOF
21805 if ac_fn_c_try_link "$LINENO"; then :
21806 ac_cv_lib_dgc_dg_sys_info=yes
21807 else
21808 ac_cv_lib_dgc_dg_sys_info=no
21810 rm -f core conftest.err conftest.$ac_objext \
21811 conftest$ac_exeext conftest.$ac_ext
21812 LIBS=$ac_check_lib_save_LIBS
21814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
21815 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
21816 if test "x$ac_cv_lib_dgc_dg_sys_info" = x""yes; then :
21817 cat >>confdefs.h <<_ACEOF
21818 #define HAVE_LIBDGC 1
21819 _ACEOF
21821 LIBS="-ldgc $LIBS"
21833 if test "x$gl_save_LIBS" = x; then
21834 GETLOADAVG_LIBS=$LIBS
21835 else
21836 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$gl_save_LIBS!!"`
21838 LIBS=$gl_save_LIBS
21841 # Test whether the system declares getloadavg. Solaris has the function
21842 # but declares it in <sys/loadavg.h>, not <stdlib.h>.
21843 for ac_header in sys/loadavg.h
21844 do :
21845 ac_fn_c_check_header_mongrel "$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default"
21846 if test "x$ac_cv_header_sys_loadavg_h" = x""yes; then :
21847 cat >>confdefs.h <<_ACEOF
21848 #define HAVE_SYS_LOADAVG_H 1
21849 _ACEOF
21853 done
21855 if test $ac_cv_header_sys_loadavg_h = yes; then
21856 HAVE_SYS_LOADAVG_H=1
21857 else
21858 HAVE_SYS_LOADAVG_H=0
21860 ac_fn_c_check_decl "$LINENO" "getloadavg" "ac_cv_have_decl_getloadavg" "#if HAVE_SYS_LOADAVG_H
21861 # include <sys/loadavg.h>
21862 #endif
21863 #include <stdlib.h>
21865 if test "x$ac_cv_have_decl_getloadavg" = x""yes; then :
21867 else
21868 HAVE_DECL_GETLOADAVG=0
21872 if test $HAVE_GETLOADAVG = 0; then
21881 gl_LIBOBJS="$gl_LIBOBJS getloadavg.$ac_objext"
21884 # Figure out what our getloadavg.c needs.
21888 # On HPUX9, an unprivileged user can get load averages this way.
21889 if test $gl_func_getloadavg_done = no; then
21890 for ac_func in pstat_getdynamic
21891 do :
21892 ac_fn_c_check_func "$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
21893 if test "x$ac_cv_func_pstat_getdynamic" = x""yes; then :
21894 cat >>confdefs.h <<_ACEOF
21895 #define HAVE_PSTAT_GETDYNAMIC 1
21896 _ACEOF
21897 gl_func_getloadavg_done=yes
21899 done
21903 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
21904 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
21905 # Irix 4.0.5F has the header but not the library.
21906 if test $gl_func_getloadavg_done = no && test "$ac_cv_lib_elf_elf_begin" = yes \
21907 && test "$ac_cv_lib_kvm_kvm_open" = yes; then
21908 gl_func_getloadavg_done=yes
21910 $as_echo "#define SVR4 1" >>confdefs.h
21914 if test $gl_func_getloadavg_done = no; then
21915 ac_fn_c_check_header_mongrel "$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
21916 if test "x$ac_cv_header_inq_stats_cpustats_h" = x""yes; then :
21917 gl_func_getloadavg_done=yes
21919 $as_echo "#define UMAX 1" >>confdefs.h
21922 $as_echo "#define UMAX4_3 1" >>confdefs.h
21929 if test $gl_func_getloadavg_done = no; then
21930 ac_fn_c_check_header_mongrel "$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
21931 if test "x$ac_cv_header_sys_cpustats_h" = x""yes; then :
21932 gl_func_getloadavg_done=yes; $as_echo "#define UMAX 1" >>confdefs.h
21939 if test $gl_func_getloadavg_done = no; then
21940 for ac_header in mach/mach.h
21941 do :
21942 ac_fn_c_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
21943 if test "x$ac_cv_header_mach_mach_h" = x""yes; then :
21944 cat >>confdefs.h <<_ACEOF
21945 #define HAVE_MACH_MACH_H 1
21946 _ACEOF
21950 done
21954 for ac_header in nlist.h
21955 do :
21956 ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
21957 if test "x$ac_cv_header_nlist_h" = x""yes; then :
21958 cat >>confdefs.h <<_ACEOF
21959 #define HAVE_NLIST_H 1
21960 _ACEOF
21961 ac_fn_c_check_member "$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
21963 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x""yes; then :
21965 cat >>confdefs.h <<_ACEOF
21966 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
21967 _ACEOF
21972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21973 /* end confdefs.h. */
21974 #include <nlist.h>
21976 main ()
21978 struct nlist x;
21979 #ifdef HAVE_STRUCT_NLIST_N_UN_N_NAME
21980 x.n_un.n_name = "";
21981 #else
21982 x.n_name = "";
21983 #endif
21985 return 0;
21987 _ACEOF
21988 if ac_fn_c_try_link "$LINENO"; then :
21990 $as_echo "#define N_NAME_POINTER 1" >>confdefs.h
21993 rm -f core conftest.err conftest.$ac_objext \
21994 conftest$ac_exeext conftest.$ac_ext
21998 done
22006 GNULIB_GETLOADAVG=1
22017 if test $REPLACE_GETOPT = 1; then
22026 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
22036 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
22041 GNULIB_GL_UNISTD_H_GETOPT=1
22050 REPLACE_GETOPT=0
22051 if test -n "$gl_replace_getopt"; then
22052 REPLACE_GETOPT=1
22055 if test $REPLACE_GETOPT = 1; then
22057 GETOPT_H=getopt.h
22059 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
22065 if test $REPLACE_GETOPT = 1; then
22074 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
22084 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
22089 GNULIB_GL_UNISTD_H_GETOPT=1
22103 gl_gettimeofday_timezone=void
22104 if test $ac_cv_func_gettimeofday != yes; then
22105 HAVE_GETTIMEOFDAY=0
22106 else
22110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday clobbers localtime buffer" >&5
22111 $as_echo_n "checking whether gettimeofday clobbers localtime buffer... " >&6; }
22112 if test "${gl_cv_func_gettimeofday_clobber+set}" = set; then :
22113 $as_echo_n "(cached) " >&6
22114 else
22115 if test "$cross_compiling" = yes; then :
22116 # When cross-compiling:
22117 case "$host_os" in
22118 # Guess all is fine on glibc systems.
22119 *-gnu*) gl_cv_func_gettimeofday_clobber="guessing no" ;;
22120 # If we don't know, assume the worst.
22121 *) gl_cv_func_gettimeofday_clobber="guessing yes" ;;
22122 esac
22124 else
22125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22126 /* end confdefs.h. */
22127 #include <string.h>
22128 #include <sys/time.h>
22129 #include <time.h>
22130 #include <stdlib.h>
22133 main ()
22136 time_t t = 0;
22137 struct tm *lt;
22138 struct tm saved_lt;
22139 struct timeval tv;
22140 lt = localtime (&t);
22141 saved_lt = *lt;
22142 gettimeofday (&tv, NULL);
22143 return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
22146 return 0;
22148 _ACEOF
22149 if ac_fn_c_try_run "$LINENO"; then :
22150 gl_cv_func_gettimeofday_clobber=no
22151 else
22152 gl_cv_func_gettimeofday_clobber=yes
22154 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22155 conftest.$ac_objext conftest.beam conftest.$ac_ext
22159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_clobber" >&5
22160 $as_echo "$gl_cv_func_gettimeofday_clobber" >&6; }
22162 case "$gl_cv_func_gettimeofday_clobber" in
22163 *yes)
22164 REPLACE_GETTIMEOFDAY=1
22167 $as_echo "#define gmtime rpl_gmtime" >>confdefs.h
22170 $as_echo "#define localtime rpl_localtime" >>confdefs.h
22174 $as_echo "#define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1" >>confdefs.h
22177 esac
22179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday with POSIX signature" >&5
22180 $as_echo_n "checking for gettimeofday with POSIX signature... " >&6; }
22181 if test "${gl_cv_func_gettimeofday_posix_signature+set}" = set; then :
22182 $as_echo_n "(cached) " >&6
22183 else
22184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22185 /* end confdefs.h. */
22186 #include <sys/time.h>
22187 struct timeval c;
22188 int gettimeofday (struct timeval *restrict, void *restrict);
22191 main ()
22193 /* glibc uses struct timezone * rather than the POSIX void *
22194 if _GNU_SOURCE is defined. However, since the only portable
22195 use of gettimeofday uses NULL as the second parameter, and
22196 since the glibc definition is actually more typesafe, it is
22197 not worth wrapping this to get a compliant signature. */
22198 int (*f) (struct timeval *restrict, void *restrict)
22199 = gettimeofday;
22200 int x = f (&c, 0);
22201 return !(x | c.tv_sec | c.tv_usec);
22204 return 0;
22206 _ACEOF
22207 if ac_fn_c_try_compile "$LINENO"; then :
22208 gl_cv_func_gettimeofday_posix_signature=yes
22209 else
22210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22211 /* end confdefs.h. */
22212 #include <sys/time.h>
22213 int gettimeofday (struct timeval *restrict, struct timezone *restrict);
22216 main ()
22220 return 0;
22222 _ACEOF
22223 if ac_fn_c_try_compile "$LINENO"; then :
22224 gl_cv_func_gettimeofday_posix_signature=almost
22225 else
22226 gl_cv_func_gettimeofday_posix_signature=no
22228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_posix_signature" >&5
22233 $as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; }
22234 if test $gl_cv_func_gettimeofday_posix_signature = almost; then
22235 gl_gettimeofday_timezone='struct timezone'
22236 elif test $gl_cv_func_gettimeofday_posix_signature != yes; then
22237 REPLACE_GETTIMEOFDAY=1
22239 if test $REPLACE_STRUCT_TIMEVAL = 1; then
22240 REPLACE_GETTIMEOFDAY=1
22245 cat >>confdefs.h <<_ACEOF
22246 #define GETTIMEOFDAY_TIMEZONE $gl_gettimeofday_timezone
22247 _ACEOF
22250 if test $HAVE_GETTIMEOFDAY = 0 || test $REPLACE_GETTIMEOFDAY = 1; then
22259 gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
22262 for ac_header in sys/timeb.h
22263 do :
22264 ac_fn_c_check_header_mongrel "$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
22265 if test "x$ac_cv_header_sys_timeb_h" = x""yes; then :
22266 cat >>confdefs.h <<_ACEOF
22267 #define HAVE_SYS_TIMEB_H 1
22268 _ACEOF
22272 done
22274 for ac_func in _ftime
22275 do :
22276 ac_fn_c_check_func "$LINENO" "_ftime" "ac_cv_func__ftime"
22277 if test "x$ac_cv_func__ftime" = x""yes; then :
22278 cat >>confdefs.h <<_ACEOF
22279 #define HAVE__FTIME 1
22280 _ACEOF
22283 done
22292 GNULIB_GETTIMEOFDAY=1
22303 if test $ac_cv_func_lstat = yes; then
22305 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
22306 *no)
22307 REPLACE_LSTAT=1
22309 esac
22310 else
22311 HAVE_LSTAT=0
22314 if test $REPLACE_LSTAT = 1; then
22323 gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext"
22332 GNULIB_LSTAT=1
22344 if test $APPLE_UNIVERSAL_BUILD = 1; then
22345 # A universal build on Apple Mac OS X platforms.
22346 # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode.
22347 # But we need a configuration result that is valid in both modes.
22348 gl_cv_func_working_mktime=no
22350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
22351 $as_echo_n "checking for working mktime... " >&6; }
22352 if test "${gl_cv_func_working_mktime+set}" = set; then :
22353 $as_echo_n "(cached) " >&6
22354 else
22355 if test "$cross_compiling" = yes; then :
22356 gl_cv_func_working_mktime=no
22357 else
22358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22359 /* end confdefs.h. */
22360 /* Test program from Paul Eggert and Tony Leneis. */
22361 #include <limits.h>
22362 #include <stdlib.h>
22363 #include <time.h>
22365 #ifdef HAVE_UNISTD_H
22366 # include <unistd.h>
22367 #endif
22369 #ifndef HAVE_ALARM
22370 # define alarm(X) /* empty */
22371 #endif
22373 /* Work around redefinition to rpl_putenv by other config tests. */
22374 #undef putenv
22376 static time_t time_t_max;
22377 static time_t time_t_min;
22379 /* Values we'll use to set the TZ environment variable. */
22380 static char *tz_strings[] = {
22381 (char *) 0, "TZ=GMT0", "TZ=JST-9",
22382 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
22384 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
22386 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
22387 Based on a problem report from Andreas Jaeger. */
22388 static int
22389 spring_forward_gap ()
22391 /* glibc (up to about 1998-10-07) failed this test. */
22392 struct tm tm;
22394 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
22395 instead of "TZ=America/Vancouver" in order to detect the bug even
22396 on systems that don't support the Olson extension, or don't have the
22397 full zoneinfo tables installed. */
22398 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
22400 tm.tm_year = 98;
22401 tm.tm_mon = 3;
22402 tm.tm_mday = 5;
22403 tm.tm_hour = 2;
22404 tm.tm_min = 0;
22405 tm.tm_sec = 0;
22406 tm.tm_isdst = -1;
22407 return mktime (&tm) != (time_t) -1;
22410 static int
22411 mktime_test1 (time_t now)
22413 struct tm *lt;
22414 return ! (lt = localtime (&now)) || mktime (lt) == now;
22417 static int
22418 mktime_test (time_t now)
22420 return (mktime_test1 (now)
22421 && mktime_test1 ((time_t) (time_t_max - now))
22422 && mktime_test1 ((time_t) (time_t_min + now)));
22425 static int
22426 irix_6_4_bug ()
22428 /* Based on code from Ariel Faigon. */
22429 struct tm tm;
22430 tm.tm_year = 96;
22431 tm.tm_mon = 3;
22432 tm.tm_mday = 0;
22433 tm.tm_hour = 0;
22434 tm.tm_min = 0;
22435 tm.tm_sec = 0;
22436 tm.tm_isdst = -1;
22437 mktime (&tm);
22438 return tm.tm_mon == 2 && tm.tm_mday == 31;
22441 static int
22442 bigtime_test (int j)
22444 struct tm tm;
22445 time_t now;
22446 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
22447 now = mktime (&tm);
22448 if (now != (time_t) -1)
22450 struct tm *lt = localtime (&now);
22451 if (! (lt
22452 && lt->tm_year == tm.tm_year
22453 && lt->tm_mon == tm.tm_mon
22454 && lt->tm_mday == tm.tm_mday
22455 && lt->tm_hour == tm.tm_hour
22456 && lt->tm_min == tm.tm_min
22457 && lt->tm_sec == tm.tm_sec
22458 && lt->tm_yday == tm.tm_yday
22459 && lt->tm_wday == tm.tm_wday
22460 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
22461 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
22462 return 0;
22464 return 1;
22467 static int
22468 year_2050_test ()
22470 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
22471 ignoring leap seconds. */
22472 unsigned long int answer = 2527315200UL;
22474 struct tm tm;
22475 time_t t;
22476 tm.tm_year = 2050 - 1900;
22477 tm.tm_mon = 2 - 1;
22478 tm.tm_mday = 1;
22479 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
22480 tm.tm_isdst = -1;
22482 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
22483 instead of "TZ=America/Vancouver" in order to detect the bug even
22484 on systems that don't support the Olson extension, or don't have the
22485 full zoneinfo tables installed. */
22486 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
22488 t = mktime (&tm);
22490 /* Check that the result is either a failure, or close enough
22491 to the correct answer that we can assume the discrepancy is
22492 due to leap seconds. */
22493 return (t == (time_t) -1
22494 || (0 < t && answer - 120 <= t && t <= answer + 120));
22498 main ()
22500 int result = 0;
22501 time_t t, delta;
22502 int i, j;
22503 int time_t_signed_magnitude = (time_t) ~ (time_t) 0 < (time_t) -1;
22504 int time_t_signed = ! ((time_t) 0 < (time_t) -1);
22506 /* This test makes some buggy mktime implementations loop.
22507 Give up after 60 seconds; a mktime slower than that
22508 isn't worth using anyway. */
22509 alarm (60);
22511 time_t_max = (! time_t_signed
22512 ? (time_t) -1
22513 : ((((time_t) 1 << (sizeof (time_t) * CHAR_BIT - 2)) - 1)
22514 * 2 + 1));
22515 time_t_min = (! time_t_signed
22516 ? (time_t) 0
22517 : time_t_signed_magnitude
22518 ? ~ (time_t) 0
22519 : ~ time_t_max);
22521 delta = time_t_max / 997; /* a suitable prime number */
22522 for (i = 0; i < N_STRINGS; i++)
22524 if (tz_strings[i])
22525 putenv (tz_strings[i]);
22527 for (t = 0; t <= time_t_max - delta && (result & 1) == 0; t += delta)
22528 if (! mktime_test (t))
22529 result |= 1;
22530 if ((result & 2) == 0
22531 && ! (mktime_test ((time_t) 1)
22532 && mktime_test ((time_t) (60 * 60))
22533 && mktime_test ((time_t) (60 * 60 * 24))))
22534 result |= 2;
22536 for (j = 1; (result & 4) == 0; j <<= 1)
22538 if (! bigtime_test (j))
22539 result |= 4;
22540 if (INT_MAX / 2 < j)
22541 break;
22543 if ((result & 8) == 0 && ! bigtime_test (INT_MAX))
22544 result |= 8;
22546 if (! irix_6_4_bug ())
22547 result |= 16;
22548 if (! spring_forward_gap ())
22549 result |= 32;
22550 if (! year_2050_test ())
22551 result |= 64;
22552 return result;
22554 _ACEOF
22555 if ac_fn_c_try_run "$LINENO"; then :
22556 gl_cv_func_working_mktime=yes
22557 else
22558 gl_cv_func_working_mktime=no
22560 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22561 conftest.$ac_objext conftest.beam conftest.$ac_ext
22566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_mktime" >&5
22567 $as_echo "$gl_cv_func_working_mktime" >&6; }
22569 if test $gl_cv_func_working_mktime = no; then
22570 REPLACE_MKTIME=1
22571 else
22572 REPLACE_MKTIME=0
22575 if test $REPLACE_MKTIME = 1; then
22584 gl_LIBOBJS="$gl_LIBOBJS mktime.$ac_objext"
22593 GNULIB_MKTIME=1
22605 if test $ac_cv_func_pselect = yes; then
22606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether signature of pselect conforms to POSIX" >&5
22607 $as_echo_n "checking whether signature of pselect conforms to POSIX... " >&6; }
22608 if test "${gl_cv_sig_pselect+set}" = set; then :
22609 $as_echo_n "(cached) " >&6
22610 else
22611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22612 /* end confdefs.h. */
22613 #include <sys/select.h>
22616 main ()
22618 int (*p) (int, fd_set *, fd_set *, fd_set *restrict,
22619 struct timespec const *restrict,
22620 sigset_t const *restrict) = pselect;
22621 return !p;
22623 return 0;
22625 _ACEOF
22626 if ac_fn_c_try_link "$LINENO"; then :
22627 gl_cv_sig_pselect=yes
22628 else
22629 gl_cv_sig_pselect=no
22631 rm -f core conftest.err conftest.$ac_objext \
22632 conftest$ac_exeext conftest.$ac_ext
22634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sig_pselect" >&5
22635 $as_echo "$gl_cv_sig_pselect" >&6; }
22637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pselect detects invalid fds" >&5
22638 $as_echo_n "checking whether pselect detects invalid fds... " >&6; }
22639 if test "${gl_cv_func_pselect_detects_ebadf+set}" = set; then :
22640 $as_echo_n "(cached) " >&6
22641 else
22643 if test "$cross_compiling" = yes; then :
22645 case "$host_os" in
22646 # Guess yes on glibc systems.
22647 *-gnu*) gl_cv_func_pselect_detects_ebadf="guessing yes" ;;
22648 # If we don't know, assume the worst.
22649 *) gl_cv_func_pselect_detects_ebadf="guessing no" ;;
22650 esac
22652 else
22653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22654 /* end confdefs.h. */
22656 #include <sys/types.h>
22657 #include <sys/time.h>
22658 #if HAVE_SYS_SELECT_H
22659 # include <sys/select.h>
22660 #endif
22661 #include <unistd.h>
22662 #include <errno.h>
22665 main ()
22668 fd_set set;
22669 dup2(0, 16);
22670 FD_ZERO(&set);
22671 FD_SET(16, &set);
22672 close(16);
22673 struct timespec timeout;
22674 timeout.tv_sec = 0;
22675 timeout.tv_nsec = 5000;
22676 return pselect (17, &set, NULL, NULL, &timeout, NULL) != -1 || errno != EBADF;
22679 return 0;
22681 _ACEOF
22682 if ac_fn_c_try_run "$LINENO"; then :
22683 gl_cv_func_pselect_detects_ebadf=yes
22684 else
22685 gl_cv_func_pselect_detects_ebadf=no
22687 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22688 conftest.$ac_objext conftest.beam conftest.$ac_ext
22693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pselect_detects_ebadf" >&5
22694 $as_echo "$gl_cv_func_pselect_detects_ebadf" >&6; }
22695 case $gl_cv_func_pselect_detects_ebadf in
22696 *yes) ;;
22697 *) REPLACE_PSELECT=1 ;;
22698 esac
22701 if test $ac_cv_func_pselect = no || test $gl_cv_sig_pselect = no; then
22702 REPLACE_PSELECT=1
22705 if test $HAVE_PSELECT = 0 || test $REPLACE_PSELECT = 1; then
22714 gl_LIBOBJS="$gl_LIBOBJS pselect.$ac_objext"
22722 GNULIB_PSELECT=1
22732 LIB_PTHREAD_SIGMASK=
22737 if test "$gl_threads_api" = posix; then
22738 if test $ac_cv_func_pthread_sigmask = yes; then
22740 else
22741 if test -n "$LIBMULTITHREAD"; then
22742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_sigmask in $LIBMULTITHREAD" >&5
22743 $as_echo_n "checking for pthread_sigmask in $LIBMULTITHREAD... " >&6; }
22744 if test "${gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD+set}" = set; then :
22745 $as_echo_n "(cached) " >&6
22746 else
22747 gl_save_LIBS="$LIBS"
22748 LIBS="$LIBS $LIBMULTITHREAD"
22749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22750 /* end confdefs.h. */
22751 #include <pthread.h>
22752 #include <signal.h>
22755 main ()
22757 return pthread_sigmask (0, (sigset_t *) 0, (sigset_t *) 0);
22759 return 0;
22762 _ACEOF
22763 if ac_fn_c_try_link "$LINENO"; then :
22764 gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD=yes
22765 else
22766 gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD=no
22768 rm -f core conftest.err conftest.$ac_objext \
22769 conftest$ac_exeext conftest.$ac_ext
22770 LIBS="$gl_save_LIBS"
22773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD" >&5
22774 $as_echo "$gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD" >&6; }
22775 if test $gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD = yes; then
22776 LIB_PTHREAD_SIGMASK="$LIBMULTITHREAD"
22777 else
22778 HAVE_PTHREAD_SIGMASK=0
22780 else
22781 HAVE_PTHREAD_SIGMASK=0
22784 else
22785 if test $ac_cv_func_pthread_sigmask = yes; then
22786 REPLACE_PTHREAD_SIGMASK=1
22787 else
22788 HAVE_PTHREAD_SIGMASK=0
22795 if test $HAVE_PTHREAD_SIGMASK = 1; then
22798 if test -z "$LIB_PTHREAD_SIGMASK"; then
22799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask works without -lpthread" >&5
22800 $as_echo_n "checking whether pthread_sigmask works without -lpthread... " >&6; }
22801 if test "${gl_cv_func_pthread_sigmask_in_libc_works+set}" = set; then :
22802 $as_echo_n "(cached) " >&6
22803 else
22805 if test "$cross_compiling" = yes; then :
22807 case "$host_os" in
22808 freebsd* | hpux* | solaris | solaris2.[2-9]*)
22809 gl_cv_func_pthread_sigmask_in_libc_works="guessing no";;
22811 gl_cv_func_pthread_sigmask_in_libc_works="guessing yes";;
22812 esac
22814 else
22815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22816 /* end confdefs.h. */
22818 #include <pthread.h>
22819 #include <signal.h>
22820 #include <stddef.h>
22821 int main ()
22823 sigset_t set;
22824 sigemptyset (&set);
22825 return pthread_sigmask (1729, &set, NULL) != 0;
22827 _ACEOF
22828 if ac_fn_c_try_run "$LINENO"; then :
22829 gl_cv_func_pthread_sigmask_in_libc_works=no
22830 else
22831 gl_cv_func_pthread_sigmask_in_libc_works=yes
22833 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22834 conftest.$ac_objext conftest.beam conftest.$ac_ext
22839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_in_libc_works" >&5
22840 $as_echo "$gl_cv_func_pthread_sigmask_in_libc_works" >&6; }
22841 case "$gl_cv_func_pthread_sigmask_in_libc_works" in
22842 *no)
22843 REPLACE_PTHREAD_SIGMASK=1
22845 $as_echo "#define PTHREAD_SIGMASK_INEFFECTIVE 1" >>confdefs.h
22848 esac
22851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask returns error numbers" >&5
22852 $as_echo_n "checking whether pthread_sigmask returns error numbers... " >&6; }
22853 if test "${gl_cv_func_pthread_sigmask_return_works+set}" = set; then :
22854 $as_echo_n "(cached) " >&6
22855 else
22857 gl_save_LIBS="$LIBS"
22858 LIBS="$LIBS $LIB_PTHREAD_SIGMASK"
22859 if test "$cross_compiling" = yes; then :
22860 case "$host_os" in
22861 cygwin*)
22862 gl_cv_func_pthread_sigmask_return_works="guessing no";;
22864 gl_cv_func_pthread_sigmask_return_works="guessing yes";;
22865 esac
22867 else
22868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22869 /* end confdefs.h. */
22871 #include <pthread.h>
22872 #include <signal.h>
22873 #include <stddef.h>
22874 int main ()
22876 sigset_t set;
22877 sigemptyset (&set);
22878 if (pthread_sigmask (1729, &set, NULL) == -1)
22879 return 1;
22880 return 0;
22882 _ACEOF
22883 if ac_fn_c_try_run "$LINENO"; then :
22884 gl_cv_func_pthread_sigmask_return_works=yes
22885 else
22886 gl_cv_func_pthread_sigmask_return_works=no
22888 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22889 conftest.$ac_objext conftest.beam conftest.$ac_ext
22892 LIBS="$gl_save_LIBS"
22895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_return_works" >&5
22896 $as_echo "$gl_cv_func_pthread_sigmask_return_works" >&6; }
22897 case "$gl_cv_func_pthread_sigmask_return_works" in
22898 *no)
22899 REPLACE_PTHREAD_SIGMASK=1
22901 $as_echo "#define PTHREAD_SIGMASK_FAILS_WITH_ERRNO 1" >>confdefs.h
22904 esac
22906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask unblocks signals correctly" >&5
22907 $as_echo_n "checking whether pthread_sigmask unblocks signals correctly... " >&6; }
22908 if test "${gl_cv_func_pthread_sigmask_unblock_works+set}" = set; then :
22909 $as_echo_n "(cached) " >&6
22910 else
22912 case "$host_os" in
22913 irix*)
22914 gl_cv_func_pthread_sigmask_unblock_works="guessing no";;
22916 gl_cv_func_pthread_sigmask_unblock_works="guessing yes";;
22917 esac
22918 gl_save_LIBS="$LIBS"
22919 LIBS="$LIBS $LIBMULTITHREAD"
22920 if test "$cross_compiling" = yes; then :
22922 else
22923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22924 /* end confdefs.h. */
22926 #include <pthread.h>
22927 #include <signal.h>
22928 #include <stdio.h>
22929 #include <stdlib.h>
22930 #include <unistd.h>
22931 static volatile int sigint_occurred;
22932 static void
22933 sigint_handler (int sig)
22935 sigint_occurred++;
22937 int main ()
22939 sigset_t set;
22940 int pid = getpid ();
22941 char command[80];
22942 signal (SIGINT, sigint_handler);
22943 sigemptyset (&set);
22944 sigaddset (&set, SIGINT);
22945 if (!(pthread_sigmask (SIG_BLOCK, &set, NULL) == 0))
22946 return 1;
22947 sprintf (command, "sh -c 'sleep 1; kill -%d %d' &", SIGINT, pid);
22948 if (!(system (command) == 0))
22949 return 2;
22950 sleep (2);
22951 if (!(sigint_occurred == 0))
22952 return 3;
22953 if (!(pthread_sigmask (SIG_UNBLOCK, &set, NULL) == 0))
22954 return 4;
22955 if (!(sigint_occurred == 1)) /* This fails on IRIX. */
22956 return 5;
22957 return 0;
22959 _ACEOF
22960 if ac_fn_c_try_run "$LINENO"; then :
22962 else
22963 gl_cv_func_pthread_sigmask_unblock_works=no
22965 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22966 conftest.$ac_objext conftest.beam conftest.$ac_ext
22969 LIBS="$gl_save_LIBS"
22972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_unblock_works" >&5
22973 $as_echo "$gl_cv_func_pthread_sigmask_unblock_works" >&6; }
22974 case "$gl_cv_func_pthread_sigmask_unblock_works" in
22975 *no)
22976 REPLACE_PTHREAD_SIGMASK=1
22978 $as_echo "#define PTHREAD_SIGMASK_UNBLOCK_BUG 1" >>confdefs.h
22981 esac
22984 if test $HAVE_PTHREAD_SIGMASK = 0 || test $REPLACE_PTHREAD_SIGMASK = 1; then
22993 gl_LIBOBJS="$gl_LIBOBJS pthread_sigmask.$ac_objext"
22996 if test $HAVE_PTHREAD_SIGMASK = 1; then
22998 $as_echo "#define HAVE_PTHREAD_SIGMASK 1" >>confdefs.h
23008 GNULIB_PTHREAD_SIGMASK=1
23016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for putenv compatible with GNU and SVID" >&5
23017 $as_echo_n "checking for putenv compatible with GNU and SVID... " >&6; }
23018 if test "${gl_cv_func_svid_putenv+set}" = set; then :
23019 $as_echo_n "(cached) " >&6
23020 else
23021 if test "$cross_compiling" = yes; then :
23022 case "$host_os" in
23023 # Guess yes on glibc systems.
23024 *-gnu*) gl_cv_func_svid_putenv="guessing yes" ;;
23025 # If we don't know, assume the worst.
23026 *) gl_cv_func_svid_putenv="guessing no" ;;
23027 esac
23029 else
23030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23031 /* end confdefs.h. */
23032 $ac_includes_default
23034 main ()
23037 /* Put it in env. */
23038 if (putenv ("CONFTEST_putenv=val"))
23039 return 1;
23041 /* Try to remove it. */
23042 if (putenv ("CONFTEST_putenv"))
23043 return 2;
23045 /* Make sure it was deleted. */
23046 if (getenv ("CONFTEST_putenv") != 0)
23047 return 3;
23049 return 0;
23052 return 0;
23054 _ACEOF
23055 if ac_fn_c_try_run "$LINENO"; then :
23056 gl_cv_func_svid_putenv=yes
23057 else
23058 gl_cv_func_svid_putenv=no
23060 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23061 conftest.$ac_objext conftest.beam conftest.$ac_ext
23066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_svid_putenv" >&5
23067 $as_echo "$gl_cv_func_svid_putenv" >&6; }
23068 case "$gl_cv_func_svid_putenv" in
23069 *yes) ;;
23071 REPLACE_PUTENV=1
23073 esac
23075 if test $REPLACE_PUTENV = 1; then
23084 gl_LIBOBJS="$gl_LIBOBJS putenv.$ac_objext"
23092 GNULIB_PUTENV=1
23101 if test $ac_cv_func_readlink = no; then
23102 HAVE_READLINK=0
23103 else
23104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
23105 $as_echo_n "checking whether readlink signature is correct... " >&6; }
23106 if test "${gl_cv_decl_readlink_works+set}" = set; then :
23107 $as_echo_n "(cached) " >&6
23108 else
23109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23110 /* end confdefs.h. */
23111 #include <unistd.h>
23112 /* Cause compilation failure if original declaration has wrong type. */
23113 ssize_t readlink (const char *, char *, size_t);
23115 main ()
23119 return 0;
23121 _ACEOF
23122 if ac_fn_c_try_compile "$LINENO"; then :
23123 gl_cv_decl_readlink_works=yes
23124 else
23125 gl_cv_decl_readlink_works=no
23127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
23130 $as_echo "$gl_cv_decl_readlink_works" >&6; }
23131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
23132 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
23133 if test "${gl_cv_func_readlink_works+set}" = set; then :
23134 $as_echo_n "(cached) " >&6
23135 else
23136 # We have readlink, so assume ln -s works.
23137 ln -s conftest.no-such conftest.link
23138 ln -s conftest.link conftest.lnk2
23139 if test "$cross_compiling" = yes; then :
23140 case "$host_os" in
23141 # Guess yes on glibc systems.
23142 *-gnu*) gl_cv_func_readlink_works="guessing yes" ;;
23143 # If we don't know, assume the worst.
23144 *) gl_cv_func_readlink_works="guessing no" ;;
23145 esac
23147 else
23148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23149 /* end confdefs.h. */
23150 #include <unistd.h>
23153 main ()
23155 char buf[20];
23156 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
23158 return 0;
23160 _ACEOF
23161 if ac_fn_c_try_run "$LINENO"; then :
23162 gl_cv_func_readlink_works=yes
23163 else
23164 gl_cv_func_readlink_works=no
23166 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23167 conftest.$ac_objext conftest.beam conftest.$ac_ext
23170 rm -f conftest.link conftest.lnk2
23172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
23173 $as_echo "$gl_cv_func_readlink_works" >&6; }
23174 case "$gl_cv_func_readlink_works" in
23175 *yes)
23176 if test "$gl_cv_decl_readlink_works" != yes; then
23177 REPLACE_READLINK=1
23182 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
23184 REPLACE_READLINK=1
23186 esac
23189 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
23198 gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
23209 GNULIB_READLINK=1
23219 if test $ac_cv_func_readlinkat = no; then
23220 HAVE_READLINKAT=0
23223 if test $HAVE_READLINKAT = 0; then
23232 gl_LIBOBJS="$gl_LIBOBJS readlinkat.$ac_objext"
23240 GNULIB_READLINKAT=1
23247 for ac_func in sig2str
23248 do :
23249 ac_fn_c_check_func "$LINENO" "sig2str" "ac_cv_func_sig2str"
23250 if test "x$ac_cv_func_sig2str" = x""yes; then :
23251 cat >>confdefs.h <<_ACEOF
23252 #define HAVE_SIG2STR 1
23253 _ACEOF
23256 done
23259 if test $ac_cv_func_sig2str = no; then
23268 gl_LIBOBJS="$gl_LIBOBJS sig2str.$ac_objext"
23285 if test $gl_cv_have_include_next = yes; then
23286 gl_cv_next_signal_h='<'signal.h'>'
23287 else
23288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
23289 $as_echo_n "checking absolute name of <signal.h>... " >&6; }
23290 if test "${gl_cv_next_signal_h+set}" = set; then :
23291 $as_echo_n "(cached) " >&6
23292 else
23294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23295 /* end confdefs.h. */
23296 #include <signal.h>
23298 _ACEOF
23299 case "$host_os" in
23300 aix*) gl_absname_cpp="$ac_cpp -C" ;;
23301 *) gl_absname_cpp="$ac_cpp" ;;
23302 esac
23304 case "$host_os" in
23305 mingw*)
23306 gl_dirsep_regex='[/\\]'
23309 gl_dirsep_regex='\/'
23311 esac
23312 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
23314 gl_header_literal_regex=`echo 'signal.h' \
23315 | sed -e "$gl_make_literal_regex_sed"`
23316 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23317 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23318 s|^/[^/]|//&|
23322 gl_cv_next_signal_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23323 sed -n "$gl_absolute_header_sed"`'"'
23327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
23328 $as_echo "$gl_cv_next_signal_h" >&6; }
23330 NEXT_SIGNAL_H=$gl_cv_next_signal_h
23332 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23333 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23334 gl_next_as_first_directive='<'signal.h'>'
23335 else
23336 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23337 gl_next_as_first_directive=$gl_cv_next_signal_h
23339 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H=$gl_next_as_first_directive
23345 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
23346 # then choke on 'volatile sig_atomic_t'. C99 requires that it compile.
23347 ac_fn_c_check_type "$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
23348 #include <signal.h>
23351 if test "x$ac_cv_type_volatile_sig_atomic_t" = x""yes; then :
23353 else
23354 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=0
23363 ac_fn_c_check_type "$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
23364 #include <signal.h>
23367 if test "x$ac_cv_type_sighandler_t" = x""yes; then :
23369 else
23370 HAVE_SIGHANDLER_T=0
23376 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
23377 /* <sys/types.h> is not needed according to POSIX, but the
23378 <sys/socket.h> in i386-unknown-freebsd4.10 and
23379 powerpc-apple-darwin5.5 required it. */
23380 #include <sys/types.h>
23381 #if HAVE_SYS_SOCKET_H
23382 # include <sys/socket.h>
23383 #elif HAVE_WS2TCPIP_H
23384 # include <ws2tcpip.h>
23385 #endif
23388 if test "x$ac_cv_type_socklen_t" = x""yes; then :
23390 else
23391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
23392 $as_echo_n "checking for socklen_t equivalent... " >&6; }
23393 if test "${gl_cv_socklen_t_equiv+set}" = set; then :
23394 $as_echo_n "(cached) " >&6
23395 else
23396 # Systems have either "struct sockaddr *" or
23397 # "void *" as the second argument to getpeername
23398 gl_cv_socklen_t_equiv=
23399 for arg2 in "struct sockaddr" void; do
23400 for t in int size_t "unsigned int" "long int" "unsigned long int"; do
23401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23402 /* end confdefs.h. */
23403 #include <sys/types.h>
23404 #include <sys/socket.h>
23406 int getpeername (int, $arg2 *, $t *);
23408 main ()
23410 $t len;
23411 getpeername (0, 0, &len);
23413 return 0;
23415 _ACEOF
23416 if ac_fn_c_try_compile "$LINENO"; then :
23417 gl_cv_socklen_t_equiv="$t"
23419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23420 test "$gl_cv_socklen_t_equiv" != "" && break
23421 done
23422 test "$gl_cv_socklen_t_equiv" != "" && break
23423 done
23427 if test "$gl_cv_socklen_t_equiv" = ""; then
23428 as_fn_error "Cannot find a type to use in place of socklen_t" "$LINENO" 5
23430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
23431 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
23433 cat >>confdefs.h <<_ACEOF
23434 #define socklen_t $gl_cv_socklen_t_equiv
23435 _ACEOF
23440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
23441 $as_echo_n "checking for ssize_t... " >&6; }
23442 if test "${gt_cv_ssize_t+set}" = set; then :
23443 $as_echo_n "(cached) " >&6
23444 else
23445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23446 /* end confdefs.h. */
23447 #include <sys/types.h>
23449 main ()
23451 int x = sizeof (ssize_t *) + sizeof (ssize_t);
23452 return !x;
23454 return 0;
23456 _ACEOF
23457 if ac_fn_c_try_compile "$LINENO"; then :
23458 gt_cv_ssize_t=yes
23459 else
23460 gt_cv_ssize_t=no
23462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
23465 $as_echo "$gt_cv_ssize_t" >&6; }
23466 if test $gt_cv_ssize_t = no; then
23468 $as_echo "#define ssize_t int" >>confdefs.h
23476 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>
23477 #include <sys/stat.h>
23479 if test "x$ac_cv_member_struct_stat_st_atim_tv_nsec" = x""yes; then :
23481 cat >>confdefs.h <<_ACEOF
23482 #define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1
23483 _ACEOF
23485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat.st_atim is of type struct timespec" >&5
23486 $as_echo_n "checking whether struct stat.st_atim is of type struct timespec... " >&6; }
23487 if test "${ac_cv_typeof_struct_stat_st_atim_is_struct_timespec+set}" = set; then :
23488 $as_echo_n "(cached) " >&6
23489 else
23490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23491 /* end confdefs.h. */
23493 #include <sys/types.h>
23494 #include <sys/stat.h>
23495 #if HAVE_SYS_TIME_H
23496 # include <sys/time.h>
23497 #endif
23498 #include <time.h>
23499 struct timespec ts;
23500 struct stat st;
23503 main ()
23506 st.st_atim = ts;
23509 return 0;
23511 _ACEOF
23512 if ac_fn_c_try_compile "$LINENO"; then :
23513 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=yes
23514 else
23515 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=no
23517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&5
23520 $as_echo "$ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&6; }
23521 if test $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec = yes; then
23523 $as_echo "#define TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC 1" >>confdefs.h
23526 else
23527 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>
23528 #include <sys/stat.h>
23530 if test "x$ac_cv_member_struct_stat_st_atimespec_tv_nsec" = x""yes; then :
23532 cat >>confdefs.h <<_ACEOF
23533 #define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1
23534 _ACEOF
23537 else
23538 ac_fn_c_check_member "$LINENO" "struct stat" "st_atimensec" "ac_cv_member_struct_stat_st_atimensec" "#include <sys/types.h>
23539 #include <sys/stat.h>
23541 if test "x$ac_cv_member_struct_stat_st_atimensec" = x""yes; then :
23543 cat >>confdefs.h <<_ACEOF
23544 #define HAVE_STRUCT_STAT_ST_ATIMENSEC 1
23545 _ACEOF
23548 else
23549 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>
23550 #include <sys/stat.h>
23552 if test "x$ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" = x""yes; then :
23554 cat >>confdefs.h <<_ACEOF
23555 #define HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC 1
23556 _ACEOF
23571 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>
23572 #include <sys/stat.h>
23574 if test "x$ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" = x""yes; then :
23576 cat >>confdefs.h <<_ACEOF
23577 #define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC 1
23578 _ACEOF
23581 else
23582 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtimensec" "ac_cv_member_struct_stat_st_birthtimensec" "#include <sys/types.h>
23583 #include <sys/stat.h>
23585 if test "x$ac_cv_member_struct_stat_st_birthtimensec" = x""yes; then :
23587 cat >>confdefs.h <<_ACEOF
23588 #define HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC 1
23589 _ACEOF
23592 else
23593 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>
23594 #include <sys/stat.h>
23596 if test "x$ac_cv_member_struct_stat_st_birthtim_tv_nsec" = x""yes; then :
23598 cat >>confdefs.h <<_ACEOF
23599 #define HAVE_STRUCT_STAT_ST_BIRTHTIM_TV_NSEC 1
23600 _ACEOF
23611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdalign.h" >&5
23612 $as_echo_n "checking for working stdalign.h... " >&6; }
23613 if test "${gl_cv_header_working_stdalign_h+set}" = set; then :
23614 $as_echo_n "(cached) " >&6
23615 else
23616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23617 /* end confdefs.h. */
23618 #include <stdalign.h>
23619 #include <stddef.h>
23621 /* Test that alignof yields a result consistent with offsetof.
23622 This catches GCC bug 52023
23623 <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023>. */
23624 #ifdef __cplusplus
23625 template <class t> struct alignof_helper { char a; t b; };
23626 # define ao(type) offsetof (alignof_helper<type>, b)
23627 #else
23628 # define ao(type) offsetof (struct { char a; type b; }, b)
23629 #endif
23630 char test_double[ao (double) % _Alignof (double) == 0 ? 1 : -1];
23631 char test_long[ao (long int) % _Alignof (long int) == 0 ? 1 : -1];
23632 char test_alignof[alignof (double) == _Alignof (double) ? 1 : -1];
23634 /* Test _Alignas only on platforms where gnulib can help. */
23635 #if \
23636 (__GNUC__ || __IBMC__ || __IBMCPP__ \
23637 || 0x5110 <= __SUNPRO_C || 1300 <= _MSC_VER)
23638 int alignas (8) alignas_int = 1;
23639 char test_alignas[_Alignof (alignas_int) == 8 ? 1 : -1];
23640 #endif
23643 main ()
23647 return 0;
23649 _ACEOF
23650 if ac_fn_c_try_compile "$LINENO"; then :
23651 gl_cv_header_working_stdalign_h=yes
23652 else
23653 gl_cv_header_working_stdalign_h=no
23655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdalign_h" >&5
23658 $as_echo "$gl_cv_header_working_stdalign_h" >&6; }
23660 if test $gl_cv_header_working_stdalign_h = yes; then
23661 STDALIGN_H=''
23662 else
23663 STDALIGN_H='stdalign.h'
23667 if test -n "$STDALIGN_H"; then
23668 GL_GENERATE_STDALIGN_H_TRUE=
23669 GL_GENERATE_STDALIGN_H_FALSE='#'
23670 else
23671 GL_GENERATE_STDALIGN_H_TRUE='#'
23672 GL_GENERATE_STDALIGN_H_FALSE=
23677 STDARG_H=''
23678 NEXT_STDARG_H='<stdarg.h>'
23679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
23680 $as_echo_n "checking for va_copy... " >&6; }
23681 if test "${gl_cv_func_va_copy+set}" = set; then :
23682 $as_echo_n "(cached) " >&6
23683 else
23685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23686 /* end confdefs.h. */
23687 #include <stdarg.h>
23689 main ()
23692 #ifndef va_copy
23693 void (*func) (va_list, va_list) = va_copy;
23694 #endif
23697 return 0;
23699 _ACEOF
23700 if ac_fn_c_try_compile "$LINENO"; then :
23701 gl_cv_func_va_copy=yes
23702 else
23703 gl_cv_func_va_copy=no
23705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_va_copy" >&5
23709 $as_echo "$gl_cv_func_va_copy" >&6; }
23710 if test $gl_cv_func_va_copy = no; then
23711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23712 /* end confdefs.h. */
23713 #if defined _AIX && !defined __GNUC__
23714 AIX vaccine
23715 #endif
23717 _ACEOF
23718 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23719 $EGREP "vaccine" >/dev/null 2>&1; then :
23720 gl_aixcc=yes
23721 else
23722 gl_aixcc=no
23724 rm -f conftest*
23726 if test $gl_aixcc = yes; then
23727 STDARG_H=stdarg.h
23736 if test $gl_cv_have_include_next = yes; then
23737 gl_cv_next_stdarg_h='<'stdarg.h'>'
23738 else
23739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdarg.h>" >&5
23740 $as_echo_n "checking absolute name of <stdarg.h>... " >&6; }
23741 if test "${gl_cv_next_stdarg_h+set}" = set; then :
23742 $as_echo_n "(cached) " >&6
23743 else
23745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23746 /* end confdefs.h. */
23747 #include <stdarg.h>
23749 _ACEOF
23750 case "$host_os" in
23751 aix*) gl_absname_cpp="$ac_cpp -C" ;;
23752 *) gl_absname_cpp="$ac_cpp" ;;
23753 esac
23755 case "$host_os" in
23756 mingw*)
23757 gl_dirsep_regex='[/\\]'
23760 gl_dirsep_regex='\/'
23762 esac
23763 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
23765 gl_header_literal_regex=`echo 'stdarg.h' \
23766 | sed -e "$gl_make_literal_regex_sed"`
23767 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23768 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23769 s|^/[^/]|//&|
23773 gl_cv_next_stdarg_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23774 sed -n "$gl_absolute_header_sed"`'"'
23778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdarg_h" >&5
23779 $as_echo "$gl_cv_next_stdarg_h" >&6; }
23781 NEXT_STDARG_H=$gl_cv_next_stdarg_h
23783 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23784 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23785 gl_next_as_first_directive='<'stdarg.h'>'
23786 else
23787 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23788 gl_next_as_first_directive=$gl_cv_next_stdarg_h
23790 NEXT_AS_FIRST_DIRECTIVE_STDARG_H=$gl_next_as_first_directive
23795 if test "$gl_cv_next_stdarg_h" = '""'; then
23796 gl_cv_next_stdarg_h='"///usr/include/stdarg.h"'
23797 NEXT_STDARG_H="$gl_cv_next_stdarg_h"
23799 else
23801 saved_as_echo_n="$as_echo_n"
23802 as_echo_n=':'
23803 if test "${gl_cv_func___va_copy+set}" = set; then :
23804 $as_echo_n "(cached) " >&6
23805 else
23807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23808 /* end confdefs.h. */
23809 #include <stdarg.h>
23811 main ()
23814 #ifndef __va_copy
23815 error, bail out
23816 #endif
23819 return 0;
23821 _ACEOF
23822 if ac_fn_c_try_compile "$LINENO"; then :
23823 gl_cv_func___va_copy=yes
23824 else
23825 gl_cv_func___va_copy=no
23827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23830 as_echo_n="$saved_as_echo_n"
23832 if test $gl_cv_func___va_copy = yes; then
23834 $as_echo "#define va_copy __va_copy" >>confdefs.h
23836 else
23839 $as_echo "#define va_copy gl_va_copy" >>confdefs.h
23845 if test -n "$STDARG_H"; then
23846 GL_GENERATE_STDARG_H_TRUE=
23847 GL_GENERATE_STDARG_H_FALSE='#'
23848 else
23849 GL_GENERATE_STDARG_H_TRUE='#'
23850 GL_GENERATE_STDARG_H_FALSE=
23858 # Define two additional variables used in the Makefile substitution.
23860 if test "$ac_cv_header_stdbool_h" = yes; then
23861 STDBOOL_H=''
23862 else
23863 STDBOOL_H='stdbool.h'
23866 if test -n "$STDBOOL_H"; then
23867 GL_GENERATE_STDBOOL_H_TRUE=
23868 GL_GENERATE_STDBOOL_H_FALSE='#'
23869 else
23870 GL_GENERATE_STDBOOL_H_TRUE='#'
23871 GL_GENERATE_STDBOOL_H_FALSE=
23875 if test "$ac_cv_type__Bool" = yes; then
23876 HAVE__BOOL=1
23877 else
23878 HAVE__BOOL=0
23885 STDDEF_H=
23886 if test $gt_cv_c_wchar_t = no; then
23887 HAVE_WCHAR_T=0
23888 STDDEF_H=stddef.h
23890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
23891 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
23892 if test "${gl_cv_decl_null_works+set}" = set; then :
23893 $as_echo_n "(cached) " >&6
23894 else
23895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23896 /* end confdefs.h. */
23897 #include <stddef.h>
23898 int test[2 * (sizeof NULL == sizeof (void *)) -1];
23901 main ()
23905 return 0;
23907 _ACEOF
23908 if ac_fn_c_try_compile "$LINENO"; then :
23909 gl_cv_decl_null_works=yes
23910 else
23911 gl_cv_decl_null_works=no
23913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
23916 $as_echo "$gl_cv_decl_null_works" >&6; }
23917 if test $gl_cv_decl_null_works = no; then
23918 REPLACE_NULL=1
23919 STDDEF_H=stddef.h
23922 if test -n "$STDDEF_H"; then
23923 GL_GENERATE_STDDEF_H_TRUE=
23924 GL_GENERATE_STDDEF_H_FALSE='#'
23925 else
23926 GL_GENERATE_STDDEF_H_TRUE='#'
23927 GL_GENERATE_STDDEF_H_FALSE=
23930 if test -n "$STDDEF_H"; then
23939 if test $gl_cv_have_include_next = yes; then
23940 gl_cv_next_stddef_h='<'stddef.h'>'
23941 else
23942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
23943 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
23944 if test "${gl_cv_next_stddef_h+set}" = set; then :
23945 $as_echo_n "(cached) " >&6
23946 else
23948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23949 /* end confdefs.h. */
23950 #include <stddef.h>
23952 _ACEOF
23953 case "$host_os" in
23954 aix*) gl_absname_cpp="$ac_cpp -C" ;;
23955 *) gl_absname_cpp="$ac_cpp" ;;
23956 esac
23958 case "$host_os" in
23959 mingw*)
23960 gl_dirsep_regex='[/\\]'
23963 gl_dirsep_regex='\/'
23965 esac
23966 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
23968 gl_header_literal_regex=`echo 'stddef.h' \
23969 | sed -e "$gl_make_literal_regex_sed"`
23970 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23971 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23972 s|^/[^/]|//&|
23976 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23977 sed -n "$gl_absolute_header_sed"`'"'
23981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
23982 $as_echo "$gl_cv_next_stddef_h" >&6; }
23984 NEXT_STDDEF_H=$gl_cv_next_stddef_h
23986 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23987 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23988 gl_next_as_first_directive='<'stddef.h'>'
23989 else
23990 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23991 gl_next_as_first_directive=$gl_cv_next_stddef_h
23993 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
24011 if test $gl_cv_have_include_next = yes; then
24012 gl_cv_next_stdio_h='<'stdio.h'>'
24013 else
24014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
24015 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
24016 if test "${gl_cv_next_stdio_h+set}" = set; then :
24017 $as_echo_n "(cached) " >&6
24018 else
24020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24021 /* end confdefs.h. */
24022 #include <stdio.h>
24024 _ACEOF
24025 case "$host_os" in
24026 aix*) gl_absname_cpp="$ac_cpp -C" ;;
24027 *) gl_absname_cpp="$ac_cpp" ;;
24028 esac
24030 case "$host_os" in
24031 mingw*)
24032 gl_dirsep_regex='[/\\]'
24035 gl_dirsep_regex='\/'
24037 esac
24038 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
24040 gl_header_literal_regex=`echo 'stdio.h' \
24041 | sed -e "$gl_make_literal_regex_sed"`
24042 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24043 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24044 s|^/[^/]|//&|
24048 gl_cv_next_stdio_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24049 sed -n "$gl_absolute_header_sed"`'"'
24053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
24054 $as_echo "$gl_cv_next_stdio_h" >&6; }
24056 NEXT_STDIO_H=$gl_cv_next_stdio_h
24058 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
24059 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24060 gl_next_as_first_directive='<'stdio.h'>'
24061 else
24062 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24063 gl_next_as_first_directive=$gl_cv_next_stdio_h
24065 NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
24071 GNULIB_FSCANF=1
24074 cat >>confdefs.h <<_ACEOF
24075 #define GNULIB_FSCANF 1
24076 _ACEOF
24079 GNULIB_SCANF=1
24082 cat >>confdefs.h <<_ACEOF
24083 #define GNULIB_SCANF 1
24084 _ACEOF
24087 GNULIB_FGETC=1
24088 GNULIB_GETC=1
24089 GNULIB_GETCHAR=1
24090 GNULIB_FGETS=1
24091 GNULIB_FREAD=1
24094 GNULIB_FPRINTF=1
24095 GNULIB_PRINTF=1
24096 GNULIB_VFPRINTF=1
24097 GNULIB_VPRINTF=1
24098 GNULIB_FPUTC=1
24099 GNULIB_PUTC=1
24100 GNULIB_PUTCHAR=1
24101 GNULIB_FPUTS=1
24102 GNULIB_PUTS=1
24103 GNULIB_FWRITE=1
24119 if test $gl_cv_have_include_next = yes; then
24120 gl_cv_next_stdlib_h='<'stdlib.h'>'
24121 else
24122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
24123 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
24124 if test "${gl_cv_next_stdlib_h+set}" = set; then :
24125 $as_echo_n "(cached) " >&6
24126 else
24128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24129 /* end confdefs.h. */
24130 #include <stdlib.h>
24132 _ACEOF
24133 case "$host_os" in
24134 aix*) gl_absname_cpp="$ac_cpp -C" ;;
24135 *) gl_absname_cpp="$ac_cpp" ;;
24136 esac
24138 case "$host_os" in
24139 mingw*)
24140 gl_dirsep_regex='[/\\]'
24143 gl_dirsep_regex='\/'
24145 esac
24146 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
24148 gl_header_literal_regex=`echo 'stdlib.h' \
24149 | sed -e "$gl_make_literal_regex_sed"`
24150 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24151 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24152 s|^/[^/]|//&|
24156 gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24157 sed -n "$gl_absolute_header_sed"`'"'
24161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
24162 $as_echo "$gl_cv_next_stdlib_h" >&6; }
24164 NEXT_STDLIB_H=$gl_cv_next_stdlib_h
24166 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
24167 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24168 gl_next_as_first_directive='<'stdlib.h'>'
24169 else
24170 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24171 gl_next_as_first_directive=$gl_cv_next_stdlib_h
24173 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
24183 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
24191 $as_echo "#define my_strftime nstrftime" >>confdefs.h
24200 if test "$ac_cv_have_decl_strtoimax" != yes; then
24201 HAVE_DECL_STRTOIMAX=0
24204 if test $ac_cv_func_strtoimax = yes; then
24205 HAVE_STRTOIMAX=1
24206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtoimax works" >&5
24207 $as_echo_n "checking whether strtoimax works... " >&6; }
24208 if test "${gl_cv_func_strtoimax+set}" = set; then :
24209 $as_echo_n "(cached) " >&6
24210 else
24211 if test "$cross_compiling" = yes; then :
24212 case "$host_os" in
24213 # Guess no on AIX 5.
24214 aix5*) gl_cv_func_strtoimax="guessing no" ;;
24215 # Guess yes otherwise.
24216 *) gl_cv_func_strtoimax="guessing yes" ;;
24217 esac
24219 else
24220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24221 /* end confdefs.h. */
24223 #include <errno.h>
24224 #include <string.h>
24225 #include <inttypes.h>
24226 int main ()
24228 if (sizeof (intmax_t) > sizeof (int))
24230 const char *s = "4294967295";
24231 char *p;
24232 intmax_t res;
24233 errno = 0;
24234 res = strtoimax (s, &p, 10);
24235 if (p != s + strlen (s))
24236 return 1;
24237 if (errno != 0)
24238 return 2;
24239 if (res != (intmax_t) 65535 * (intmax_t) 65537)
24240 return 3;
24242 else
24244 const char *s = "2147483647";
24245 char *p;
24246 intmax_t res;
24247 errno = 0;
24248 res = strtoimax (s, &p, 10);
24249 if (p != s + strlen (s))
24250 return 1;
24251 if (errno != 0)
24252 return 2;
24253 if (res != 2147483647)
24254 return 3;
24256 return 0;
24259 _ACEOF
24260 if ac_fn_c_try_run "$LINENO"; then :
24261 gl_cv_func_strtoimax=yes
24262 else
24263 gl_cv_func_strtoimax=no
24265 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24266 conftest.$ac_objext conftest.beam conftest.$ac_ext
24271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strtoimax" >&5
24272 $as_echo "$gl_cv_func_strtoimax" >&6; }
24273 case "$gl_cv_func_strtoimax" in
24274 *no) REPLACE_STRTOIMAX=1 ;;
24275 esac
24276 else
24277 HAVE_STRTOIMAX=0
24280 if test $HAVE_STRTOIMAX = 0 || test $REPLACE_STRTOIMAX = 1; then
24289 gl_LIBOBJS="$gl_LIBOBJS strtoimax.$ac_objext"
24292 ac_fn_c_check_decl "$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
24293 if test "x$ac_cv_have_decl_strtoll" = x""yes; then :
24294 ac_have_decl=1
24295 else
24296 ac_have_decl=0
24299 cat >>confdefs.h <<_ACEOF
24300 #define HAVE_DECL_STRTOLL $ac_have_decl
24301 _ACEOF
24311 GNULIB_STRTOIMAX=1
24321 if test "$ac_cv_have_decl_strtoumax" != yes; then
24322 HAVE_DECL_STRTOUMAX=0
24325 if test $ac_cv_func_strtoumax = no; then
24334 gl_LIBOBJS="$gl_LIBOBJS strtoumax.$ac_objext"
24337 ac_fn_c_check_decl "$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
24338 if test "x$ac_cv_have_decl_strtoull" = x""yes; then :
24339 ac_have_decl=1
24340 else
24341 ac_have_decl=0
24344 cat >>confdefs.h <<_ACEOF
24345 #define HAVE_DECL_STRTOULL $ac_have_decl
24346 _ACEOF
24356 GNULIB_STRTOUMAX=1
24364 if test $ac_cv_func_symlink = no; then
24365 HAVE_SYMLINK=0
24366 else
24367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symlink handles trailing slash correctly" >&5
24368 $as_echo_n "checking whether symlink handles trailing slash correctly... " >&6; }
24369 if test "${gl_cv_func_symlink_works+set}" = set; then :
24370 $as_echo_n "(cached) " >&6
24371 else
24372 if test "$cross_compiling" = yes; then :
24373 case "$host_os" in
24374 # Guess yes on glibc systems.
24375 *-gnu*) gl_cv_func_symlink_works="guessing yes" ;;
24376 # If we don't know, assume the worst.
24377 *) gl_cv_func_symlink_works="guessing no" ;;
24378 esac
24380 else
24381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24382 /* end confdefs.h. */
24383 #include <unistd.h>
24386 main ()
24388 int result = 0;
24389 if (!symlink ("a", "conftest.link/"))
24390 result |= 1;
24391 if (symlink ("conftest.f", "conftest.lnk2"))
24392 result |= 2;
24393 else if (!symlink ("a", "conftest.lnk2/"))
24394 result |= 4;
24395 return result;
24398 return 0;
24400 _ACEOF
24401 if ac_fn_c_try_run "$LINENO"; then :
24402 gl_cv_func_symlink_works=yes
24403 else
24404 gl_cv_func_symlink_works=no
24406 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24407 conftest.$ac_objext conftest.beam conftest.$ac_ext
24410 rm -f conftest.f conftest.link conftest.lnk2
24412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_symlink_works" >&5
24413 $as_echo "$gl_cv_func_symlink_works" >&6; }
24414 case "$gl_cv_func_symlink_works" in
24415 *yes) ;;
24417 REPLACE_SYMLINK=1
24419 esac
24422 if test $HAVE_SYMLINK = 0 || test $REPLACE_SYMLINK = 1; then
24431 gl_LIBOBJS="$gl_LIBOBJS symlink.$ac_objext"
24439 GNULIB_SYMLINK=1
24448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5
24449 $as_echo_n "checking whether <sys/select.h> is self-contained... " >&6; }
24450 if test "${gl_cv_header_sys_select_h_selfcontained+set}" = set; then :
24451 $as_echo_n "(cached) " >&6
24452 else
24454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24455 /* end confdefs.h. */
24456 #include <sys/select.h>
24458 main ()
24460 struct timeval b;
24462 return 0;
24464 _ACEOF
24465 if ac_fn_c_try_compile "$LINENO"; then :
24466 gl_cv_header_sys_select_h_selfcontained=yes
24467 else
24468 gl_cv_header_sys_select_h_selfcontained=no
24470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24471 if test $gl_cv_header_sys_select_h_selfcontained = yes; then
24472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24473 /* end confdefs.h. */
24474 #include <sys/select.h>
24476 main ()
24478 int memset; int bzero;
24480 return 0;
24483 _ACEOF
24484 if ac_fn_c_try_compile "$LINENO"; then :
24485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24486 /* end confdefs.h. */
24487 #include <sys/select.h>
24489 main ()
24492 #undef memset
24493 #define memset nonexistent_memset
24494 extern
24495 #ifdef __cplusplus
24497 #endif
24498 void *memset (void *, int, unsigned long);
24499 #undef bzero
24500 #define bzero nonexistent_bzero
24501 extern
24502 #ifdef __cplusplus
24504 #endif
24505 void bzero (void *, unsigned long);
24506 fd_set fds;
24507 FD_ZERO (&fds);
24510 return 0;
24513 _ACEOF
24514 if ac_fn_c_try_link "$LINENO"; then :
24516 else
24517 gl_cv_header_sys_select_h_selfcontained=no
24519 rm -f core conftest.err conftest.$ac_objext \
24520 conftest$ac_exeext conftest.$ac_ext
24523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5
24528 $as_echo "$gl_cv_header_sys_select_h_selfcontained" >&6; }
24538 if test $gl_cv_have_include_next = yes; then
24539 gl_cv_next_sys_select_h='<'sys/select.h'>'
24540 else
24541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5
24542 $as_echo_n "checking absolute name of <sys/select.h>... " >&6; }
24543 if test "${gl_cv_next_sys_select_h+set}" = set; then :
24544 $as_echo_n "(cached) " >&6
24545 else
24547 if test $ac_cv_header_sys_select_h = yes; then
24550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24551 /* end confdefs.h. */
24552 #include <sys/select.h>
24554 _ACEOF
24555 case "$host_os" in
24556 aix*) gl_absname_cpp="$ac_cpp -C" ;;
24557 *) gl_absname_cpp="$ac_cpp" ;;
24558 esac
24560 case "$host_os" in
24561 mingw*)
24562 gl_dirsep_regex='[/\\]'
24565 gl_dirsep_regex='\/'
24567 esac
24568 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
24570 gl_header_literal_regex=`echo 'sys/select.h' \
24571 | sed -e "$gl_make_literal_regex_sed"`
24572 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24573 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24574 s|^/[^/]|//&|
24578 gl_cv_next_sys_select_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24579 sed -n "$gl_absolute_header_sed"`'"'
24580 else
24581 gl_cv_next_sys_select_h='<'sys/select.h'>'
24586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5
24587 $as_echo "$gl_cv_next_sys_select_h" >&6; }
24589 NEXT_SYS_SELECT_H=$gl_cv_next_sys_select_h
24591 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
24592 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24593 gl_next_as_first_directive='<'sys/select.h'>'
24594 else
24595 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24596 gl_next_as_first_directive=$gl_cv_next_sys_select_h
24598 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H=$gl_next_as_first_directive
24603 if test $ac_cv_header_sys_select_h = yes; then
24604 HAVE_SYS_SELECT_H=1
24605 else
24606 HAVE_SYS_SELECT_H=0
24613 if test $ac_cv_header_sys_socket_h != yes; then
24614 for ac_header in winsock2.h
24615 do :
24616 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
24617 if test "x$ac_cv_header_winsock2_h" = x""yes; then :
24618 cat >>confdefs.h <<_ACEOF
24619 #define HAVE_WINSOCK2_H 1
24620 _ACEOF
24624 done
24627 if test "$ac_cv_header_winsock2_h" = yes; then
24628 HAVE_WINSOCK2_H=1
24629 UNISTD_H_HAVE_WINSOCK2_H=1
24630 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
24631 else
24632 HAVE_WINSOCK2_H=0
24654 if test $gl_cv_have_include_next = yes; then
24655 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
24656 else
24657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
24658 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
24659 if test "${gl_cv_next_sys_stat_h+set}" = set; then :
24660 $as_echo_n "(cached) " >&6
24661 else
24663 if test $ac_cv_header_sys_stat_h = yes; then
24666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24667 /* end confdefs.h. */
24668 #include <sys/stat.h>
24670 _ACEOF
24671 case "$host_os" in
24672 aix*) gl_absname_cpp="$ac_cpp -C" ;;
24673 *) gl_absname_cpp="$ac_cpp" ;;
24674 esac
24676 case "$host_os" in
24677 mingw*)
24678 gl_dirsep_regex='[/\\]'
24681 gl_dirsep_regex='\/'
24683 esac
24684 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
24686 gl_header_literal_regex=`echo 'sys/stat.h' \
24687 | sed -e "$gl_make_literal_regex_sed"`
24688 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24689 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24690 s|^/[^/]|//&|
24694 gl_cv_next_sys_stat_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24695 sed -n "$gl_absolute_header_sed"`'"'
24696 else
24697 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
24702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
24703 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
24705 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
24707 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
24708 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24709 gl_next_as_first_directive='<'sys/stat.h'>'
24710 else
24711 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24712 gl_next_as_first_directive=$gl_cv_next_sys_stat_h
24714 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
24726 if test $WINDOWS_64_BIT_ST_SIZE = 1; then
24728 $as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
24732 ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
24733 #include <sys/stat.h>
24735 if test "x$ac_cv_type_nlink_t" = x""yes; then :
24737 else
24739 $as_echo "#define nlink_t int" >>confdefs.h
24760 ac_fn_c_check_decl "$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "#include <time.h>
24762 if test "x$ac_cv_have_decl_localtime_r" = x""yes; then :
24763 ac_have_decl=1
24764 else
24765 ac_have_decl=0
24768 cat >>confdefs.h <<_ACEOF
24769 #define HAVE_DECL_LOCALTIME_R $ac_have_decl
24770 _ACEOF
24772 if test $ac_cv_have_decl_localtime_r = no; then
24773 HAVE_DECL_LOCALTIME_R=0
24777 if test $ac_cv_func_localtime_r = yes; then
24778 HAVE_LOCALTIME_R=1
24779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
24780 $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
24781 if test "${gl_cv_time_r_posix+set}" = set; then :
24782 $as_echo_n "(cached) " >&6
24783 else
24784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24785 /* end confdefs.h. */
24786 #include <time.h>
24788 main ()
24790 /* We don't need to append 'restrict's to the argument types,
24791 even though the POSIX signature has the 'restrict's,
24792 since C99 says they can't affect type compatibility. */
24793 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
24794 if (ptr) return 0;
24795 /* Check the return type is a pointer.
24796 On HP-UX 10 it is 'int'. */
24797 *localtime_r (0, 0);
24799 return 0;
24802 _ACEOF
24803 if ac_fn_c_try_compile "$LINENO"; then :
24804 gl_cv_time_r_posix=yes
24805 else
24806 gl_cv_time_r_posix=no
24808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
24812 $as_echo "$gl_cv_time_r_posix" >&6; }
24813 if test $gl_cv_time_r_posix = yes; then
24814 REPLACE_LOCALTIME_R=0
24815 else
24816 REPLACE_LOCALTIME_R=1
24818 else
24819 HAVE_LOCALTIME_R=0
24822 if test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1; then
24831 gl_LIBOBJS="$gl_LIBOBJS time_r.$ac_objext"
24842 GNULIB_TIME_R=1
24853 LIB_TIMER_TIME=
24855 gl_saved_libs=$LIBS
24856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing timer_settime" >&5
24857 $as_echo_n "checking for library containing timer_settime... " >&6; }
24858 if test "${ac_cv_search_timer_settime+set}" = set; then :
24859 $as_echo_n "(cached) " >&6
24860 else
24861 ac_func_search_save_LIBS=$LIBS
24862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24863 /* end confdefs.h. */
24865 /* Override any GCC internal prototype to avoid an error.
24866 Use char because int might match the return type of a GCC
24867 builtin and then its argument prototype would still apply. */
24868 #ifdef __cplusplus
24869 extern "C"
24870 #endif
24871 char timer_settime ();
24873 main ()
24875 return timer_settime ();
24877 return 0;
24879 _ACEOF
24880 for ac_lib in '' rt posix4; do
24881 if test -z "$ac_lib"; then
24882 ac_res="none required"
24883 else
24884 ac_res=-l$ac_lib
24885 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24887 if ac_fn_c_try_link "$LINENO"; then :
24888 ac_cv_search_timer_settime=$ac_res
24890 rm -f core conftest.err conftest.$ac_objext \
24891 conftest$ac_exeext
24892 if test "${ac_cv_search_timer_settime+set}" = set; then :
24893 break
24895 done
24896 if test "${ac_cv_search_timer_settime+set}" = set; then :
24898 else
24899 ac_cv_search_timer_settime=no
24901 rm conftest.$ac_ext
24902 LIBS=$ac_func_search_save_LIBS
24904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_timer_settime" >&5
24905 $as_echo "$ac_cv_search_timer_settime" >&6; }
24906 ac_res=$ac_cv_search_timer_settime
24907 if test "$ac_res" != no; then :
24908 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24909 test "$ac_cv_search_timer_settime" = "none required" ||
24910 LIB_TIMER_TIME=$ac_cv_search_timer_settime
24913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24914 /* end confdefs.h. */
24916 #include <features.h>
24917 #ifdef __GNU_LIBRARY__
24918 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2) || (__GLIBC__ > 2)) \
24919 && !defined __UCLIBC__
24920 Thread emulation available
24921 #endif
24922 #endif
24924 _ACEOF
24925 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24926 $EGREP "Thread" >/dev/null 2>&1; then :
24927 LIB_TIMER_TIME="$LIB_TIMER_TIME $LIBMULTITHREAD"
24929 rm -f conftest*
24931 for ac_func in timer_settime
24932 do :
24933 ac_fn_c_check_func "$LINENO" "timer_settime" "ac_cv_func_timer_settime"
24934 if test "x$ac_cv_func_timer_settime" = x""yes; then :
24935 cat >>confdefs.h <<_ACEOF
24936 #define HAVE_TIMER_SETTIME 1
24937 _ACEOF
24940 done
24942 LIBS=$gl_saved_libs
24957 if test $gl_cv_have_include_next = yes; then
24958 gl_cv_next_unistd_h='<'unistd.h'>'
24959 else
24960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
24961 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
24962 if test "${gl_cv_next_unistd_h+set}" = set; then :
24963 $as_echo_n "(cached) " >&6
24964 else
24966 if test $ac_cv_header_unistd_h = yes; then
24969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24970 /* end confdefs.h. */
24971 #include <unistd.h>
24973 _ACEOF
24974 case "$host_os" in
24975 aix*) gl_absname_cpp="$ac_cpp -C" ;;
24976 *) gl_absname_cpp="$ac_cpp" ;;
24977 esac
24979 case "$host_os" in
24980 mingw*)
24981 gl_dirsep_regex='[/\\]'
24984 gl_dirsep_regex='\/'
24986 esac
24987 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
24989 gl_header_literal_regex=`echo 'unistd.h' \
24990 | sed -e "$gl_make_literal_regex_sed"`
24991 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24992 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24993 s|^/[^/]|//&|
24997 gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24998 sed -n "$gl_absolute_header_sed"`'"'
24999 else
25000 gl_cv_next_unistd_h='<'unistd.h'>'
25005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
25006 $as_echo "$gl_cv_next_unistd_h" >&6; }
25008 NEXT_UNISTD_H=$gl_cv_next_unistd_h
25010 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
25011 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
25012 gl_next_as_first_directive='<'unistd.h'>'
25013 else
25014 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
25015 gl_next_as_first_directive=$gl_cv_next_unistd_h
25017 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
25022 if test $ac_cv_header_unistd_h = yes; then
25023 HAVE_UNISTD_H=1
25024 else
25025 HAVE_UNISTD_H=0
25038 if test $ac_cv_have_decl_unsetenv = no; then
25039 HAVE_DECL_UNSETENV=0
25041 for ac_func in unsetenv
25042 do :
25043 ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
25044 if test "x$ac_cv_func_unsetenv" = x""yes; then :
25045 cat >>confdefs.h <<_ACEOF
25046 #define HAVE_UNSETENV 1
25047 _ACEOF
25050 done
25052 if test $ac_cv_func_unsetenv = no; then
25053 HAVE_UNSETENV=0
25054 else
25055 HAVE_UNSETENV=1
25056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsetenv() return type" >&5
25057 $as_echo_n "checking for unsetenv() return type... " >&6; }
25058 if test "${gt_cv_func_unsetenv_ret+set}" = set; then :
25059 $as_echo_n "(cached) " >&6
25060 else
25061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25062 /* end confdefs.h. */
25064 #undef _BSD
25065 #define _BSD 1 /* unhide unsetenv declaration in OSF/1 5.1 <stdlib.h> */
25066 #include <stdlib.h>
25067 extern
25068 #ifdef __cplusplus
25070 #endif
25071 int unsetenv (const char *name);
25074 main ()
25078 return 0;
25080 _ACEOF
25081 if ac_fn_c_try_compile "$LINENO"; then :
25082 gt_cv_func_unsetenv_ret='int'
25083 else
25084 gt_cv_func_unsetenv_ret='void'
25086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_unsetenv_ret" >&5
25089 $as_echo "$gt_cv_func_unsetenv_ret" >&6; }
25090 if test $gt_cv_func_unsetenv_ret = 'void'; then
25092 $as_echo "#define VOID_UNSETENV 1" >>confdefs.h
25094 REPLACE_UNSETENV=1
25097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether unsetenv obeys POSIX" >&5
25098 $as_echo_n "checking whether unsetenv obeys POSIX... " >&6; }
25099 if test "${gl_cv_func_unsetenv_works+set}" = set; then :
25100 $as_echo_n "(cached) " >&6
25101 else
25102 if test "$cross_compiling" = yes; then :
25103 case "$host_os" in
25104 # Guess yes on glibc systems.
25105 *-gnu*) gl_cv_func_unsetenv_works="guessing yes" ;;
25106 # If we don't know, assume the worst.
25107 *) gl_cv_func_unsetenv_works="guessing no" ;;
25108 esac
25110 else
25111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25112 /* end confdefs.h. */
25114 #include <stdlib.h>
25115 #include <errno.h>
25116 extern char **environ;
25119 main ()
25122 char entry1[] = "a=1";
25123 char entry2[] = "b=2";
25124 char *env[] = { entry1, entry2, NULL };
25125 if (putenv ((char *) "a=1")) return 1;
25126 if (putenv (entry2)) return 2;
25127 entry2[0] = 'a';
25128 unsetenv ("a");
25129 if (getenv ("a")) return 3;
25130 if (!unsetenv ("") || errno != EINVAL) return 4;
25131 entry2[0] = 'b';
25132 environ = env;
25133 if (!getenv ("a")) return 5;
25134 entry2[0] = 'a';
25135 unsetenv ("a");
25136 if (getenv ("a")) return 6;
25139 return 0;
25141 _ACEOF
25142 if ac_fn_c_try_run "$LINENO"; then :
25143 gl_cv_func_unsetenv_works=yes
25144 else
25145 gl_cv_func_unsetenv_works=no
25147 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25148 conftest.$ac_objext conftest.beam conftest.$ac_ext
25152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_unsetenv_works" >&5
25153 $as_echo "$gl_cv_func_unsetenv_works" >&6; }
25154 case "$gl_cv_func_unsetenv_works" in
25155 *yes) ;;
25157 REPLACE_UNSETENV=1
25159 esac
25162 if test $HAVE_UNSETENV = 0 || test $REPLACE_UNSETENV = 1; then
25171 gl_LIBOBJS="$gl_LIBOBJS unsetenv.$ac_objext"
25183 GNULIB_UNSETENV=1
25195 if test $ac_cv_func_futimens = no && test $ac_cv_func_futimesat = yes; then
25196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether futimesat handles NULL file" >&5
25197 $as_echo_n "checking whether futimesat handles NULL file... " >&6; }
25198 if test "${gl_cv_func_futimesat_works+set}" = set; then :
25199 $as_echo_n "(cached) " >&6
25200 else
25201 touch conftest.file
25202 if test "$cross_compiling" = yes; then :
25203 case "$host_os" in
25204 # Guess yes on glibc systems.
25205 *-gnu*) gl_cv_func_futimesat_works="guessing yes" ;;
25206 # If we don't know, assume the worst.
25207 *) gl_cv_func_futimesat_works="guessing no" ;;
25208 esac
25210 else
25211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25212 /* end confdefs.h. */
25214 #include <stddef.h>
25215 #include <sys/times.h>
25216 #include <fcntl.h>
25219 main ()
25221 int fd = open ("conftest.file", O_RDWR);
25222 if (fd < 0) return 1;
25223 if (futimesat (fd, NULL, NULL)) return 2;
25226 return 0;
25228 _ACEOF
25229 if ac_fn_c_try_run "$LINENO"; then :
25230 gl_cv_func_futimesat_works=yes
25231 else
25232 gl_cv_func_futimesat_works=no
25234 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25235 conftest.$ac_objext conftest.beam conftest.$ac_ext
25238 rm -f conftest.file
25240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_futimesat_works" >&5
25241 $as_echo "$gl_cv_func_futimesat_works" >&6; }
25242 case "$gl_cv_func_futimesat_works" in
25243 *yes) ;;
25246 $as_echo "#define FUTIMESAT_NULL_BUG 1" >>confdefs.h
25249 esac
25252 gl_gnulib_enabled_260941c0e5dc67ec9e87d1fb321c300b=false
25253 gl_gnulib_enabled_dosname=false
25254 gl_gnulib_enabled_euidaccess=false
25255 gl_gnulib_enabled_getgroups=false
25256 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36=false
25257 gl_gnulib_enabled_a9786850e999ae65a836a6041e8e5ed1=false
25258 gl_gnulib_enabled_03e0aaad4cb89ca757653bd367a6ccb7=false
25259 gl_gnulib_enabled_pathmax=false
25260 gl_gnulib_enabled_6099e9737f757db36c47fa9d9f02e88c=false
25261 gl_gnulib_enabled_stat=false
25262 gl_gnulib_enabled_strtoll=false
25263 gl_gnulib_enabled_strtoull=false
25264 gl_gnulib_enabled_verify=false
25265 gl_gnulib_enabled_682e609604ccaac6be382e4ee3a4eaec=false
25266 func_gl_gnulib_m4code_260941c0e5dc67ec9e87d1fb321c300b ()
25268 if ! $gl_gnulib_enabled_260941c0e5dc67ec9e87d1fb321c300b; then
25277 gl_LIBOBJS="$gl_LIBOBJS openat-proc.$ac_objext"
25279 gl_gnulib_enabled_260941c0e5dc67ec9e87d1fb321c300b=true
25282 func_gl_gnulib_m4code_dosname ()
25284 if ! $gl_gnulib_enabled_dosname; then
25285 gl_gnulib_enabled_dosname=true
25288 func_gl_gnulib_m4code_euidaccess ()
25290 if ! $gl_gnulib_enabled_euidaccess; then
25296 for ac_func in euidaccess
25297 do :
25298 ac_fn_c_check_func "$LINENO" "euidaccess" "ac_cv_func_euidaccess"
25299 if test "x$ac_cv_func_euidaccess" = x""yes; then :
25300 cat >>confdefs.h <<_ACEOF
25301 #define HAVE_EUIDACCESS 1
25302 _ACEOF
25305 done
25307 if test $ac_cv_func_euidaccess = no; then
25308 HAVE_EUIDACCESS=0
25311 if test $HAVE_EUIDACCESS = 0; then
25320 gl_LIBOBJS="$gl_LIBOBJS euidaccess.$ac_objext"
25324 for ac_header in libgen.h
25325 do :
25326 ac_fn_c_check_header_mongrel "$LINENO" "libgen.h" "ac_cv_header_libgen_h" "$ac_includes_default"
25327 if test "x$ac_cv_header_libgen_h" = x""yes; then :
25328 cat >>confdefs.h <<_ACEOF
25329 #define HAVE_LIBGEN_H 1
25330 _ACEOF
25334 done
25337 ac_fn_c_check_func "$LINENO" "getgroups" "ac_cv_func_getgroups"
25338 if test "x$ac_cv_func_getgroups" = x""yes; then :
25343 # If we don't yet have getgroups, see if it's in -lbsd.
25344 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
25345 ac_save_LIBS=$LIBS
25346 if test $ac_cv_func_getgroups = no; then
25347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getgroups in -lbsd" >&5
25348 $as_echo_n "checking for getgroups in -lbsd... " >&6; }
25349 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then :
25350 $as_echo_n "(cached) " >&6
25351 else
25352 ac_check_lib_save_LIBS=$LIBS
25353 LIBS="-lbsd $LIBS"
25354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25355 /* end confdefs.h. */
25357 /* Override any GCC internal prototype to avoid an error.
25358 Use char because int might match the return type of a GCC
25359 builtin and then its argument prototype would still apply. */
25360 #ifdef __cplusplus
25361 extern "C"
25362 #endif
25363 char getgroups ();
25365 main ()
25367 return getgroups ();
25369 return 0;
25371 _ACEOF
25372 if ac_fn_c_try_link "$LINENO"; then :
25373 ac_cv_lib_bsd_getgroups=yes
25374 else
25375 ac_cv_lib_bsd_getgroups=no
25377 rm -f core conftest.err conftest.$ac_objext \
25378 conftest$ac_exeext conftest.$ac_ext
25379 LIBS=$ac_check_lib_save_LIBS
25381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_getgroups" >&5
25382 $as_echo "$ac_cv_lib_bsd_getgroups" >&6; }
25383 if test "x$ac_cv_lib_bsd_getgroups" = x""yes; then :
25384 GETGROUPS_LIB=-lbsd
25389 # Run the program to test the functionality of the system-supplied
25390 # getgroups function only if there is such a function.
25391 if test $ac_cv_func_getgroups = yes; then
25392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getgroups" >&5
25393 $as_echo_n "checking for working getgroups... " >&6; }
25394 if test "${ac_cv_func_getgroups_works+set}" = set; then :
25395 $as_echo_n "(cached) " >&6
25396 else
25397 if test "$cross_compiling" = yes; then :
25398 case "$host_os" in # ((
25399 # Guess yes on glibc systems.
25400 *-gnu*) ac_cv_func_getgroups_works="guessing yes" ;;
25401 # If we don't know, assume the worst.
25402 *) ac_cv_func_getgroups_works="guessing no" ;;
25403 esac
25405 else
25406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25407 /* end confdefs.h. */
25408 $ac_includes_default
25410 main ()
25412 /* On Ultrix 4.3, getgroups (0, 0) always fails. */
25413 return getgroups (0, 0) == -1;
25415 return 0;
25418 _ACEOF
25419 if ac_fn_c_try_run "$LINENO"; then :
25420 ac_cv_func_getgroups_works=yes
25421 else
25422 ac_cv_func_getgroups_works=no
25424 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25425 conftest.$ac_objext conftest.beam conftest.$ac_ext
25430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getgroups_works" >&5
25431 $as_echo "$ac_cv_func_getgroups_works" >&6; }
25432 else
25433 ac_cv_func_getgroups_works=no
25435 case "$ac_cv_func_getgroups_works" in
25436 *yes)
25438 $as_echo "#define HAVE_GETGROUPS 1" >>confdefs.h
25441 esac
25442 LIBS=$ac_save_LIBS
25445 # Solaris 9 and 10 need -lgen to get the eaccess function.
25446 # Save and restore LIBS so -lgen isn't added to it. Otherwise, *all*
25447 # programs in the package would end up linked with that potentially-shared
25448 # library, inducing unnecessary run-time overhead.
25449 LIB_EACCESS=
25451 gl_saved_libs=$LIBS
25452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing eaccess" >&5
25453 $as_echo_n "checking for library containing eaccess... " >&6; }
25454 if test "${ac_cv_search_eaccess+set}" = set; then :
25455 $as_echo_n "(cached) " >&6
25456 else
25457 ac_func_search_save_LIBS=$LIBS
25458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25459 /* end confdefs.h. */
25461 /* Override any GCC internal prototype to avoid an error.
25462 Use char because int might match the return type of a GCC
25463 builtin and then its argument prototype would still apply. */
25464 #ifdef __cplusplus
25465 extern "C"
25466 #endif
25467 char eaccess ();
25469 main ()
25471 return eaccess ();
25473 return 0;
25475 _ACEOF
25476 for ac_lib in '' gen; do
25477 if test -z "$ac_lib"; then
25478 ac_res="none required"
25479 else
25480 ac_res=-l$ac_lib
25481 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25483 if ac_fn_c_try_link "$LINENO"; then :
25484 ac_cv_search_eaccess=$ac_res
25486 rm -f core conftest.err conftest.$ac_objext \
25487 conftest$ac_exeext
25488 if test "${ac_cv_search_eaccess+set}" = set; then :
25489 break
25491 done
25492 if test "${ac_cv_search_eaccess+set}" = set; then :
25494 else
25495 ac_cv_search_eaccess=no
25497 rm conftest.$ac_ext
25498 LIBS=$ac_func_search_save_LIBS
25500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_eaccess" >&5
25501 $as_echo "$ac_cv_search_eaccess" >&6; }
25502 ac_res=$ac_cv_search_eaccess
25503 if test "$ac_res" != no; then :
25504 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25505 test "$ac_cv_search_eaccess" = "none required" ||
25506 LIB_EACCESS=$ac_cv_search_eaccess
25509 for ac_func in eaccess
25510 do :
25511 ac_fn_c_check_func "$LINENO" "eaccess" "ac_cv_func_eaccess"
25512 if test "x$ac_cv_func_eaccess" = x""yes; then :
25513 cat >>confdefs.h <<_ACEOF
25514 #define HAVE_EACCESS 1
25515 _ACEOF
25518 done
25520 LIBS=$gl_saved_libs
25528 GNULIB_EUIDACCESS=1
25534 gl_gnulib_enabled_euidaccess=true
25535 if test $HAVE_EUIDACCESS = 0; then
25536 func_gl_gnulib_m4code_a9786850e999ae65a836a6041e8e5ed1
25538 func_gl_gnulib_m4code_6099e9737f757db36c47fa9d9f02e88c
25539 if test $HAVE_EUIDACCESS = 0; then
25540 func_gl_gnulib_m4code_stat
25544 func_gl_gnulib_m4code_getgroups ()
25546 if ! $gl_gnulib_enabled_getgroups; then
25552 ac_fn_c_check_func "$LINENO" "getgroups" "ac_cv_func_getgroups"
25553 if test "x$ac_cv_func_getgroups" = x""yes; then :
25558 # If we don't yet have getgroups, see if it's in -lbsd.
25559 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
25560 ac_save_LIBS=$LIBS
25561 if test $ac_cv_func_getgroups = no; then
25562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getgroups in -lbsd" >&5
25563 $as_echo_n "checking for getgroups in -lbsd... " >&6; }
25564 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then :
25565 $as_echo_n "(cached) " >&6
25566 else
25567 ac_check_lib_save_LIBS=$LIBS
25568 LIBS="-lbsd $LIBS"
25569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25570 /* end confdefs.h. */
25572 /* Override any GCC internal prototype to avoid an error.
25573 Use char because int might match the return type of a GCC
25574 builtin and then its argument prototype would still apply. */
25575 #ifdef __cplusplus
25576 extern "C"
25577 #endif
25578 char getgroups ();
25580 main ()
25582 return getgroups ();
25584 return 0;
25586 _ACEOF
25587 if ac_fn_c_try_link "$LINENO"; then :
25588 ac_cv_lib_bsd_getgroups=yes
25589 else
25590 ac_cv_lib_bsd_getgroups=no
25592 rm -f core conftest.err conftest.$ac_objext \
25593 conftest$ac_exeext conftest.$ac_ext
25594 LIBS=$ac_check_lib_save_LIBS
25596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_getgroups" >&5
25597 $as_echo "$ac_cv_lib_bsd_getgroups" >&6; }
25598 if test "x$ac_cv_lib_bsd_getgroups" = x""yes; then :
25599 GETGROUPS_LIB=-lbsd
25604 # Run the program to test the functionality of the system-supplied
25605 # getgroups function only if there is such a function.
25606 if test $ac_cv_func_getgroups = yes; then
25607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getgroups" >&5
25608 $as_echo_n "checking for working getgroups... " >&6; }
25609 if test "${ac_cv_func_getgroups_works+set}" = set; then :
25610 $as_echo_n "(cached) " >&6
25611 else
25612 if test "$cross_compiling" = yes; then :
25613 case "$host_os" in # ((
25614 # Guess yes on glibc systems.
25615 *-gnu*) ac_cv_func_getgroups_works="guessing yes" ;;
25616 # If we don't know, assume the worst.
25617 *) ac_cv_func_getgroups_works="guessing no" ;;
25618 esac
25620 else
25621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25622 /* end confdefs.h. */
25623 $ac_includes_default
25625 main ()
25627 /* On Ultrix 4.3, getgroups (0, 0) always fails. */
25628 return getgroups (0, 0) == -1;
25630 return 0;
25633 _ACEOF
25634 if ac_fn_c_try_run "$LINENO"; then :
25635 ac_cv_func_getgroups_works=yes
25636 else
25637 ac_cv_func_getgroups_works=no
25639 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25640 conftest.$ac_objext conftest.beam conftest.$ac_ext
25645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getgroups_works" >&5
25646 $as_echo "$ac_cv_func_getgroups_works" >&6; }
25647 else
25648 ac_cv_func_getgroups_works=no
25650 case "$ac_cv_func_getgroups_works" in
25651 *yes)
25653 $as_echo "#define HAVE_GETGROUPS 1" >>confdefs.h
25656 esac
25657 LIBS=$ac_save_LIBS
25659 if test $ac_cv_func_getgroups != yes; then
25660 HAVE_GETGROUPS=0
25661 else
25662 if test "$ac_cv_type_getgroups" != gid_t \
25663 || { case "$ac_cv_func_getgroups_works" in
25664 *yes) false;;
25665 *) true;;
25666 esac
25667 }; then
25668 REPLACE_GETGROUPS=1
25670 $as_echo "#define GETGROUPS_ZERO_BUG 1" >>confdefs.h
25672 else
25673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getgroups handles negative values" >&5
25674 $as_echo_n "checking whether getgroups handles negative values... " >&6; }
25675 if test "${gl_cv_func_getgroups_works+set}" = set; then :
25676 $as_echo_n "(cached) " >&6
25677 else
25678 if test "$cross_compiling" = yes; then :
25679 case "$host_os" in
25680 # Guess yes on glibc systems.
25681 *-gnu*) gl_cv_func_getgroups_works="guessing yes" ;;
25682 # If we don't know, assume the worst.
25683 *) gl_cv_func_getgroups_works="guessing no" ;;
25684 esac
25686 else
25687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25688 /* end confdefs.h. */
25689 $ac_includes_default
25691 main ()
25693 int size = getgroups (0, 0);
25694 gid_t *list = malloc (size * sizeof *list);
25695 return getgroups (-1, list) != -1;
25697 return 0;
25699 _ACEOF
25700 if ac_fn_c_try_run "$LINENO"; then :
25701 gl_cv_func_getgroups_works=yes
25702 else
25703 gl_cv_func_getgroups_works=no
25705 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25706 conftest.$ac_objext conftest.beam conftest.$ac_ext
25710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getgroups_works" >&5
25711 $as_echo "$gl_cv_func_getgroups_works" >&6; }
25712 case "$gl_cv_func_getgroups_works" in
25713 *yes) ;;
25714 *) REPLACE_GETGROUPS=1 ;;
25715 esac
25718 test -n "$GETGROUPS_LIB" && LIBS="$GETGROUPS_LIB $LIBS"
25720 if test $HAVE_GETGROUPS = 0 || test $REPLACE_GETGROUPS = 1; then
25729 gl_LIBOBJS="$gl_LIBOBJS getgroups.$ac_objext"
25737 GNULIB_GETGROUPS=1
25743 gl_gnulib_enabled_getgroups=true
25746 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36 ()
25748 if ! $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
25751 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36=true
25754 func_gl_gnulib_m4code_a9786850e999ae65a836a6041e8e5ed1 ()
25756 if ! $gl_gnulib_enabled_a9786850e999ae65a836a6041e8e5ed1; then
25762 ac_fn_c_check_func "$LINENO" "group_member" "ac_cv_func_group_member"
25763 if test "x$ac_cv_func_group_member" = x""yes; then :
25765 else
25767 HAVE_GROUP_MEMBER=0
25772 if test $HAVE_GROUP_MEMBER = 0; then
25781 gl_LIBOBJS="$gl_LIBOBJS group-member.$ac_objext"
25792 GNULIB_GROUP_MEMBER=1
25798 gl_gnulib_enabled_a9786850e999ae65a836a6041e8e5ed1=true
25799 if test $HAVE_GROUP_MEMBER = 0; then
25800 func_gl_gnulib_m4code_getgroups
25802 if test $HAVE_GROUP_MEMBER = 0; then
25803 func_gl_gnulib_m4code_682e609604ccaac6be382e4ee3a4eaec
25807 func_gl_gnulib_m4code_03e0aaad4cb89ca757653bd367a6ccb7 ()
25809 if ! $gl_gnulib_enabled_03e0aaad4cb89ca757653bd367a6ccb7; then
25810 gl_gnulib_enabled_03e0aaad4cb89ca757653bd367a6ccb7=true
25813 func_gl_gnulib_m4code_pathmax ()
25815 if ! $gl_gnulib_enabled_pathmax; then
25819 gl_gnulib_enabled_pathmax=true
25822 func_gl_gnulib_m4code_6099e9737f757db36c47fa9d9f02e88c ()
25824 if ! $gl_gnulib_enabled_6099e9737f757db36c47fa9d9f02e88c; then
25825 gl_gnulib_enabled_6099e9737f757db36c47fa9d9f02e88c=true
25828 func_gl_gnulib_m4code_stat ()
25830 if ! $gl_gnulib_enabled_stat; then
25834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
25835 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
25836 if test "${gl_cv_func_stat_dir_slash+set}" = set; then :
25837 $as_echo_n "(cached) " >&6
25838 else
25839 if test "$cross_compiling" = yes; then :
25840 case $host_os in
25841 mingw*) gl_cv_func_stat_dir_slash="guessing no";;
25842 *) gl_cv_func_stat_dir_slash="guessing yes";;
25843 esac
25844 else
25845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25846 /* end confdefs.h. */
25847 #include <sys/stat.h>
25850 main ()
25852 struct stat st; return stat (".", &st) != stat ("./", &st);
25854 return 0;
25856 _ACEOF
25857 if ac_fn_c_try_run "$LINENO"; then :
25858 gl_cv_func_stat_dir_slash=yes
25859 else
25860 gl_cv_func_stat_dir_slash=no
25862 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25863 conftest.$ac_objext conftest.beam conftest.$ac_ext
25867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
25868 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
25869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
25870 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
25871 if test "${gl_cv_func_stat_file_slash+set}" = set; then :
25872 $as_echo_n "(cached) " >&6
25873 else
25874 touch conftest.tmp
25875 # Assume that if we have lstat, we can also check symlinks.
25876 if test $ac_cv_func_lstat = yes; then
25877 ln -s conftest.tmp conftest.lnk
25879 if test "$cross_compiling" = yes; then :
25880 case "$host_os" in
25881 # Guess yes on glibc systems.
25882 *-gnu*) gl_cv_func_stat_file_slash="guessing yes" ;;
25883 # If we don't know, assume the worst.
25884 *) gl_cv_func_stat_file_slash="guessing no" ;;
25885 esac
25887 else
25888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25889 /* end confdefs.h. */
25890 #include <sys/stat.h>
25893 main ()
25895 int result = 0;
25896 struct stat st;
25897 if (!stat ("conftest.tmp/", &st))
25898 result |= 1;
25899 #if HAVE_LSTAT
25900 if (!stat ("conftest.lnk/", &st))
25901 result |= 2;
25902 #endif
25903 return result;
25906 return 0;
25908 _ACEOF
25909 if ac_fn_c_try_run "$LINENO"; then :
25910 gl_cv_func_stat_file_slash=yes
25911 else
25912 gl_cv_func_stat_file_slash=no
25914 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25915 conftest.$ac_objext conftest.beam conftest.$ac_ext
25918 rm -f conftest.tmp conftest.lnk
25920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
25921 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
25922 case $gl_cv_func_stat_dir_slash in
25923 *no) REPLACE_STAT=1
25925 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
25927 esac
25928 case $gl_cv_func_stat_file_slash in
25929 *no) REPLACE_STAT=1
25931 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
25933 esac
25935 if test $REPLACE_STAT = 1; then
25944 gl_LIBOBJS="$gl_LIBOBJS stat.$ac_objext"
25953 GNULIB_STAT=1
25959 gl_gnulib_enabled_stat=true
25960 if test $REPLACE_STAT = 1; then
25961 func_gl_gnulib_m4code_dosname
25963 if test $REPLACE_STAT = 1; then
25964 func_gl_gnulib_m4code_pathmax
25966 if test $REPLACE_STAT = 1; then
25967 func_gl_gnulib_m4code_verify
25971 func_gl_gnulib_m4code_strtoll ()
25973 if ! $gl_gnulib_enabled_strtoll; then
25977 if test "$ac_cv_type_long_long_int" = yes; then
25978 for ac_func in strtoll
25979 do :
25980 ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
25981 if test "x$ac_cv_func_strtoll" = x""yes; then :
25982 cat >>confdefs.h <<_ACEOF
25983 #define HAVE_STRTOLL 1
25984 _ACEOF
25987 done
25989 if test $ac_cv_func_strtoll = no; then
25990 HAVE_STRTOLL=0
25994 if test $HAVE_STRTOLL = 0; then
26003 gl_LIBOBJS="$gl_LIBOBJS strtoll.$ac_objext"
26014 GNULIB_STRTOLL=1
26020 gl_gnulib_enabled_strtoll=true
26023 func_gl_gnulib_m4code_strtoull ()
26025 if ! $gl_gnulib_enabled_strtoull; then
26029 if test "$ac_cv_type_unsigned_long_long_int" = yes; then
26030 for ac_func in strtoull
26031 do :
26032 ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
26033 if test "x$ac_cv_func_strtoull" = x""yes; then :
26034 cat >>confdefs.h <<_ACEOF
26035 #define HAVE_STRTOULL 1
26036 _ACEOF
26039 done
26041 if test $ac_cv_func_strtoull = no; then
26042 HAVE_STRTOULL=0
26046 if test $HAVE_STRTOULL = 0; then
26055 gl_LIBOBJS="$gl_LIBOBJS strtoull.$ac_objext"
26066 GNULIB_STRTOULL=1
26072 gl_gnulib_enabled_strtoull=true
26075 func_gl_gnulib_m4code_verify ()
26077 if ! $gl_gnulib_enabled_verify; then
26078 gl_gnulib_enabled_verify=true
26081 func_gl_gnulib_m4code_682e609604ccaac6be382e4ee3a4eaec ()
26083 if ! $gl_gnulib_enabled_682e609604ccaac6be382e4ee3a4eaec; then
26084 gl_gnulib_enabled_682e609604ccaac6be382e4ee3a4eaec=true
26087 if test $HAVE_FACCESSAT = 0; then
26088 func_gl_gnulib_m4code_260941c0e5dc67ec9e87d1fb321c300b
26090 if test $HAVE_FACCESSAT = 0; then
26091 func_gl_gnulib_m4code_dosname
26093 if test $HAVE_FACCESSAT = 0; then
26094 func_gl_gnulib_m4code_euidaccess
26096 if test $HAVE_FACCESSAT = 0; then
26097 func_gl_gnulib_m4code_03e0aaad4cb89ca757653bd367a6ccb7
26099 if test $HAVE_FDOPENDIR = 0; then
26100 func_gl_gnulib_m4code_260941c0e5dc67ec9e87d1fb321c300b
26102 if test $HAVE_FSTATAT = 0 || test $REPLACE_FSTATAT = 1; then
26103 func_gl_gnulib_m4code_260941c0e5dc67ec9e87d1fb321c300b
26105 if test $HAVE_FSTATAT = 0 || test $REPLACE_FSTATAT = 1; then
26106 func_gl_gnulib_m4code_dosname
26108 if test $HAVE_FSTATAT = 0 || test $REPLACE_FSTATAT = 1; then
26109 func_gl_gnulib_m4code_03e0aaad4cb89ca757653bd367a6ccb7
26111 if test $REPLACE_GETOPT = 1; then
26112 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36
26114 if test $REPLACE_LSTAT = 1; then
26115 func_gl_gnulib_m4code_dosname
26117 if test $REPLACE_LSTAT = 1; then
26118 func_gl_gnulib_m4code_stat
26120 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
26121 func_gl_gnulib_m4code_stat
26123 if test $HAVE_READLINKAT = 0; then
26124 func_gl_gnulib_m4code_260941c0e5dc67ec9e87d1fb321c300b
26126 if test $HAVE_READLINKAT = 0; then
26127 func_gl_gnulib_m4code_dosname
26129 if test $HAVE_READLINKAT = 0; then
26130 func_gl_gnulib_m4code_03e0aaad4cb89ca757653bd367a6ccb7
26132 if { test $HAVE_STRTOIMAX = 0 || test $REPLACE_STRTOIMAX = 1; } && test $ac_cv_type_long_long_int = yes; then
26133 func_gl_gnulib_m4code_strtoll
26135 if test $HAVE_STRTOIMAX = 0 || test $REPLACE_STRTOIMAX = 1; then
26136 func_gl_gnulib_m4code_verify
26138 if test $ac_cv_func_strtoumax = no && test $ac_cv_type_unsigned_long_long_int = yes; then
26139 func_gl_gnulib_m4code_strtoull
26141 if test $ac_cv_func_strtoumax = no; then
26142 func_gl_gnulib_m4code_verify
26145 if $gl_gnulib_enabled_260941c0e5dc67ec9e87d1fb321c300b; then
26146 gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_TRUE=
26147 gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_FALSE='#'
26148 else
26149 gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_TRUE='#'
26150 gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_FALSE=
26153 if $gl_gnulib_enabled_dosname; then
26154 gl_GNULIB_ENABLED_dosname_TRUE=
26155 gl_GNULIB_ENABLED_dosname_FALSE='#'
26156 else
26157 gl_GNULIB_ENABLED_dosname_TRUE='#'
26158 gl_GNULIB_ENABLED_dosname_FALSE=
26161 if $gl_gnulib_enabled_euidaccess; then
26162 gl_GNULIB_ENABLED_euidaccess_TRUE=
26163 gl_GNULIB_ENABLED_euidaccess_FALSE='#'
26164 else
26165 gl_GNULIB_ENABLED_euidaccess_TRUE='#'
26166 gl_GNULIB_ENABLED_euidaccess_FALSE=
26169 if $gl_gnulib_enabled_getgroups; then
26170 gl_GNULIB_ENABLED_getgroups_TRUE=
26171 gl_GNULIB_ENABLED_getgroups_FALSE='#'
26172 else
26173 gl_GNULIB_ENABLED_getgroups_TRUE='#'
26174 gl_GNULIB_ENABLED_getgroups_FALSE=
26177 if $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
26178 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE=
26179 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE='#'
26180 else
26181 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE='#'
26182 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE=
26185 if $gl_gnulib_enabled_a9786850e999ae65a836a6041e8e5ed1; then
26186 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_TRUE=
26187 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_FALSE='#'
26188 else
26189 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_TRUE='#'
26190 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_FALSE=
26193 if $gl_gnulib_enabled_03e0aaad4cb89ca757653bd367a6ccb7; then
26194 gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_TRUE=
26195 gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_FALSE='#'
26196 else
26197 gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_TRUE='#'
26198 gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_FALSE=
26201 if $gl_gnulib_enabled_pathmax; then
26202 gl_GNULIB_ENABLED_pathmax_TRUE=
26203 gl_GNULIB_ENABLED_pathmax_FALSE='#'
26204 else
26205 gl_GNULIB_ENABLED_pathmax_TRUE='#'
26206 gl_GNULIB_ENABLED_pathmax_FALSE=
26209 if $gl_gnulib_enabled_6099e9737f757db36c47fa9d9f02e88c; then
26210 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_TRUE=
26211 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_FALSE='#'
26212 else
26213 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_TRUE='#'
26214 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_FALSE=
26217 if $gl_gnulib_enabled_stat; then
26218 gl_GNULIB_ENABLED_stat_TRUE=
26219 gl_GNULIB_ENABLED_stat_FALSE='#'
26220 else
26221 gl_GNULIB_ENABLED_stat_TRUE='#'
26222 gl_GNULIB_ENABLED_stat_FALSE=
26225 if $gl_gnulib_enabled_strtoll; then
26226 gl_GNULIB_ENABLED_strtoll_TRUE=
26227 gl_GNULIB_ENABLED_strtoll_FALSE='#'
26228 else
26229 gl_GNULIB_ENABLED_strtoll_TRUE='#'
26230 gl_GNULIB_ENABLED_strtoll_FALSE=
26233 if $gl_gnulib_enabled_strtoull; then
26234 gl_GNULIB_ENABLED_strtoull_TRUE=
26235 gl_GNULIB_ENABLED_strtoull_FALSE='#'
26236 else
26237 gl_GNULIB_ENABLED_strtoull_TRUE='#'
26238 gl_GNULIB_ENABLED_strtoull_FALSE=
26241 if $gl_gnulib_enabled_verify; then
26242 gl_GNULIB_ENABLED_verify_TRUE=
26243 gl_GNULIB_ENABLED_verify_FALSE='#'
26244 else
26245 gl_GNULIB_ENABLED_verify_TRUE='#'
26246 gl_GNULIB_ENABLED_verify_FALSE=
26249 if $gl_gnulib_enabled_682e609604ccaac6be382e4ee3a4eaec; then
26250 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_TRUE=
26251 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_FALSE='#'
26252 else
26253 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_TRUE='#'
26254 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_FALSE=
26257 # End of code from modules
26267 gltests_libdeps=
26268 gltests_ltlibdeps=
26278 gl_source_base='tests'
26279 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
26281 gl_module_indicator_condition=$gltests_WITNESS
26292 LIBGNU_LIBDEPS="$gl_libdeps"
26294 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
26297 CFLAGS=$SAVE_CFLAGS
26298 LIBS=$SAVE_LIBS
26300 case "$opsys" in
26301 aix4-2) LD_SWITCH_SYSTEM_TEMACS="-Wl,-bnodelcsect" ;;
26303 darwin)
26304 ## The -headerpad option tells ld (see man page) to leave room at the
26305 ## end of the header for adding load commands. Needed for dumping.
26306 ## 0x690 is the total size of 30 segment load commands (at 56
26307 ## each); under Cocoa 31 commands are required.
26308 if test "$HAVE_NS" = "yes"; then
26309 libs_nsgui="-framework AppKit"
26310 headerpad_extra=6C8
26311 else
26312 libs_nsgui=
26313 headerpad_extra=690
26315 LD_SWITCH_SYSTEM_TEMACS="-fno-pie -prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
26317 ## This is here because src/Makefile.in did some extra fiddling around
26318 ## with LD_SWITCH_SYSTEM. The cpp logic was:
26319 ## #ifndef LD_SWITCH_SYSTEM
26320 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
26321 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
26322 ## not using gcc, darwin.
26323 ## Because this was done in src/Makefile.in, the resulting part of
26324 ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link).
26325 ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS,
26326 ## rather than LD_SWITCH_SYSTEM.
26327 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
26328 LD_SWITCH_SYSTEM_TEMACS="-X $LD_SWITCH_SYSTEM_TEMACS"
26331 ## LD_SWITCH_X_SITE_RPATH is a -rpath option saying where to
26332 ## find X at run-time.
26333 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at the
26334 ## point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_RPATH
26335 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
26336 ## had different values in configure (in ac_link) and src/Makefile.in.
26337 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
26338 gnu*) LD_SWITCH_SYSTEM_TEMACS="\$(LD_SWITCH_X_SITE_RPATH)" ;;
26340 *) LD_SWITCH_SYSTEM_TEMACS= ;;
26341 esac
26346 LD_FIRSTFLAG=
26347 ORDINARY_LINK=
26348 case "$opsys" in
26349 ## gnu: GNU needs its own crt0.
26350 aix4-2|cygwin|darwin|gnu|hpux*|irix6-5|sol2*|unixware) ORDINARY_LINK=yes ;;
26352 ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the
26353 ## library search parth, i.e. it won't search /usr/lib for libc and
26354 ## friends. Using -nostartfiles instead avoids this problem, and
26355 ## will also work on earlier NetBSD releases.
26356 netbsd|openbsd) LD_FIRSTFLAG="-nostartfiles" ;;
26358 ## powerpc*: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
26359 ## MkLinux/LinuxPPC needs this.
26360 ## s390x-* only supports opsys = gnu-linux so it can be added here.
26361 gnu-*)
26362 case "$canonical" in
26363 powerpc*|s390x-*) LD_FIRSTFLAG="-nostdlib" ;;
26364 esac
26366 esac
26369 if test "x$ORDINARY_LINK" = "xyes"; then
26371 LD_FIRSTFLAG=""
26373 $as_echo "#define ORDINARY_LINK 1" >>confdefs.h
26376 ## The system files defining neither ORDINARY_LINK nor LD_FIRSTFLAG are:
26377 ## freebsd, gnu-* not on powerpc*|s390x*.
26378 elif test "x$GCC" = "xyes" && test "x$LD_FIRSTFLAG" = "x"; then
26380 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
26381 ## places that are difficult to figure out at make time. Fortunately,
26382 ## these same versions allow you to pass arbitrary flags on to the
26383 ## linker, so there is no reason not to use it as a linker.
26385 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from
26386 ## searching for libraries in its internal directories, so we have to
26387 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below).
26388 LD_FIRSTFLAG="-nostdlib"
26391 ## FIXME? What setting of EDIT_LDFLAGS should this have?
26392 test "$NS_IMPL_GNUSTEP" = "yes" && LD_FIRSTFLAG="-rdynamic"
26397 ## FIXME? The logic here is not precisely the same as that above.
26398 ## There is no check here for a pre-defined LD_FIRSTFLAG.
26399 ## Should we only be setting LIB_GCC if LD ~ -nostdlib?
26400 LIB_GCC=
26401 if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
26403 case "$opsys" in
26404 freebsd|netbsd|openbsd) LIB_GCC= ;;
26406 gnu-*)
26407 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
26408 ## build on ARM EABI under GNU/Linux. (Bug#5518)
26409 case $host_cpu in
26410 arm*)
26411 LIB_GCC="-lgcc_s"
26414 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
26415 ## immediately undefine it again and redefine it to empty.
26416 ## Was the C_SWITCH_X_SITE part really necessary?
26417 ## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
26418 LIB_GCC=
26420 esac
26423 ## Ask GCC where to find libgcc.a.
26424 *) LIB_GCC=`$CC -print-libgcc-file-name 2> /dev/null` ;;
26425 esac
26428 ## Common for all window systems
26429 if test "$window_system" != "none"; then
26431 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
26433 WINDOW_SYSTEM_OBJ="fontset.o fringe.o image.o"
26440 #### Report on what we decided to do.
26441 #### Report GTK as a toolkit, even if it doesn't use Xt.
26442 #### It makes printing result more understandable as using GTK sets
26443 #### toolkit_scroll_bars to yes by default.
26444 if test "${HAVE_GTK}" = "yes"; then
26445 USE_X_TOOLKIT="$USE_GTK_TOOLKIT"
26448 echo "
26449 Configured for \`${canonical}'.
26451 Where should the build process find the source code? ${srcdir}
26452 What compiler should emacs be built with? ${CC} ${CFLAGS}
26453 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
26454 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
26455 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
26456 What window system should Emacs use? ${window_system}
26457 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
26459 if test -n "${x_includes}"; then
26460 echo " Where do we find X Windows header files? ${x_includes}"
26461 else
26462 echo " Where do we find X Windows header files? Standard dirs"
26464 if test -n "${x_libraries}"; then
26465 echo " Where do we find X Windows libraries? ${x_libraries}"
26466 else
26467 echo " Where do we find X Windows libraries? Standard dirs"
26470 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
26471 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
26472 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
26473 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
26474 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
26475 echo " Does Emacs use -lpng? ${HAVE_PNG}"
26476 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
26477 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
26479 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
26480 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
26481 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
26482 echo " Does Emacs use GSettings? ${HAVE_GSETTINGS}"
26483 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
26484 echo " Does Emacs use -lgnutls? ${HAVE_GNUTLS}"
26485 echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
26487 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
26488 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
26489 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
26490 echo " Does Emacs use -lxft? ${HAVE_XFT}"
26492 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
26493 echo
26495 if test -n "${EMACSDATA}"; then
26496 echo " Environment variable EMACSDATA set to: $EMACSDATA"
26498 if test -n "${EMACSDOC}"; then
26499 echo " Environment variable EMACSDOC set to: $EMACSDOC"
26502 echo
26504 if test "$HAVE_NS" = "yes"; then
26505 echo
26506 echo "You must run \"${MAKE-make} install\" in order to test the built application.
26507 The installed application will go to nextstep/Emacs.app and can be
26508 run or moved from there."
26509 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
26510 echo "The application will be fully self-contained."
26511 else
26512 echo "The lisp resources for the application will be installed under ${prefix}.
26513 You may need to run \"${MAKE-make} install\" with sudo. The application will fail
26514 to run if these resources are not installed."
26516 echo
26519 if test "${opsys}" = "cygwin"; then
26520 case `uname -r` in
26521 1.5.*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: building Emacs on Cygwin 1.5 is not supported." >&5
26522 $as_echo "$as_me: WARNING: building Emacs on Cygwin 1.5 is not supported." >&2;}
26523 echo
26525 esac
26528 # Remove any trailing slashes in these variables.
26529 test "${prefix}" != NONE &&
26530 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
26531 test "${exec_prefix}" != NONE &&
26532 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
26534 if test "$HAVE_NS" = "yes"; then
26535 if test "$NS_IMPL_GNUSTEP" = yes; then
26536 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"
26538 else
26539 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"
26544 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"
26546 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"
26549 opt_makefile=test/automated/Makefile
26551 if test -f "$srcdir/$opt_makefile.in"; then
26552 SUBDIR_MAKEFILES="$SUBDIR_MAKEFILES $opt_makefile"
26553 ac_config_files="$ac_config_files test/automated/Makefile"
26558 opt_makefile=admin/unidata/Makefile
26560 if test -f "$srcdir/$opt_makefile.in"; then
26561 SUBDIR_MAKEFILES="$SUBDIR_MAKEFILES $opt_makefile"
26562 ac_config_files="$ac_config_files admin/unidata/Makefile"
26567 SUBDIR_MAKEFILES_IN=`echo " ${SUBDIR_MAKEFILES}" | sed -e 's| | $(srcdir)/|g' -e 's|Makefile|Makefile.in|g'`
26571 ac_config_commands="$ac_config_commands mkdirs"
26574 ac_config_commands="$ac_config_commands epaths"
26577 ac_config_commands="$ac_config_commands gdbinit"
26580 cat >confcache <<\_ACEOF
26581 # This file is a shell script that caches the results of configure
26582 # tests run on this system so they can be shared between configure
26583 # scripts and configure runs, see configure's option --config-cache.
26584 # It is not useful on other systems. If it contains results you don't
26585 # want to keep, you may remove or edit it.
26587 # config.status only pays attention to the cache file if you give it
26588 # the --recheck option to rerun configure.
26590 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26591 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26592 # following values.
26594 _ACEOF
26596 # The following way of writing the cache mishandles newlines in values,
26597 # but we know of no workaround that is simple, portable, and efficient.
26598 # So, we kill variables containing newlines.
26599 # Ultrix sh set writes to stderr and can't be redirected directly,
26600 # and sets the high bit in the cache file unless we assign to the vars.
26602 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26603 eval ac_val=\$$ac_var
26604 case $ac_val in #(
26605 *${as_nl}*)
26606 case $ac_var in #(
26607 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
26608 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
26609 esac
26610 case $ac_var in #(
26611 _ | IFS | as_nl) ;; #(
26612 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
26613 *) { eval $ac_var=; unset $ac_var;} ;;
26614 esac ;;
26615 esac
26616 done
26618 (set) 2>&1 |
26619 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26620 *${as_nl}ac_space=\ *)
26621 # `set' does not quote correctly, so add quotes: double-quote
26622 # substitution turns \\\\ into \\, and sed turns \\ into \.
26623 sed -n \
26624 "s/'/'\\\\''/g;
26625 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26626 ;; #(
26628 # `set' quotes correctly as required by POSIX, so do not add quotes.
26629 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26631 esac |
26632 sort
26634 sed '
26635 /^ac_cv_env_/b end
26636 t clear
26637 :clear
26638 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26639 t end
26640 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26641 :end' >>confcache
26642 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26643 if test -w "$cache_file"; then
26644 test "x$cache_file" != "x/dev/null" &&
26645 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
26646 $as_echo "$as_me: updating cache $cache_file" >&6;}
26647 cat confcache >$cache_file
26648 else
26649 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
26650 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26653 rm -f confcache
26655 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26656 # Let make expand exec_prefix.
26657 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26659 DEFS=-DHAVE_CONFIG_H
26661 ac_libobjs=
26662 ac_ltlibobjs=
26663 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26664 # 1. Remove the extension, and $U if already installed.
26665 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26666 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
26667 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
26668 # will be set to the directory where LIBOBJS objects are built.
26669 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26670 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
26671 done
26672 LIBOBJS=$ac_libobjs
26674 LTLIBOBJS=$ac_ltlibobjs
26677 if test -n "$EXEEXT"; then
26678 am__EXEEXT_TRUE=
26679 am__EXEEXT_FALSE='#'
26680 else
26681 am__EXEEXT_TRUE='#'
26682 am__EXEEXT_FALSE=
26685 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
26686 as_fn_error "conditional \"AMDEP\" was never defined.
26687 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26689 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26690 as_fn_error "conditional \"am__fastdepCC\" was never defined.
26691 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26693 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
26694 as_fn_error "conditional \"GL_COND_LIBTOOL\" was never defined.
26695 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26697 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
26698 as_fn_error "conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
26699 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26702 if test -z "${GL_GENERATE_EXECINFO_H_TRUE}" && test -z "${GL_GENERATE_EXECINFO_H_FALSE}"; then
26703 as_fn_error "conditional \"GL_GENERATE_EXECINFO_H\" was never defined.
26704 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26706 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
26707 as_fn_error "conditional \"GL_GENERATE_STDINT_H\" was never defined.
26708 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26710 if test -z "${GL_GENERATE_STDALIGN_H_TRUE}" && test -z "${GL_GENERATE_STDALIGN_H_FALSE}"; then
26711 as_fn_error "conditional \"GL_GENERATE_STDALIGN_H\" was never defined.
26712 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26714 if test -z "${GL_GENERATE_STDARG_H_TRUE}" && test -z "${GL_GENERATE_STDARG_H_FALSE}"; then
26715 as_fn_error "conditional \"GL_GENERATE_STDARG_H\" was never defined.
26716 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26718 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
26719 as_fn_error "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
26720 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26722 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
26723 as_fn_error "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
26724 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26726 if test -z "${gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_TRUE}" && test -z "${gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_FALSE}"; then
26727 as_fn_error "conditional \"gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b\" was never defined.
26728 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26730 if test -z "${gl_GNULIB_ENABLED_dosname_TRUE}" && test -z "${gl_GNULIB_ENABLED_dosname_FALSE}"; then
26731 as_fn_error "conditional \"gl_GNULIB_ENABLED_dosname\" was never defined.
26732 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26734 if test -z "${gl_GNULIB_ENABLED_euidaccess_TRUE}" && test -z "${gl_GNULIB_ENABLED_euidaccess_FALSE}"; then
26735 as_fn_error "conditional \"gl_GNULIB_ENABLED_euidaccess\" was never defined.
26736 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26738 if test -z "${gl_GNULIB_ENABLED_getgroups_TRUE}" && test -z "${gl_GNULIB_ENABLED_getgroups_FALSE}"; then
26739 as_fn_error "conditional \"gl_GNULIB_ENABLED_getgroups\" was never defined.
26740 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26742 if test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE}" && test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE}"; then
26743 as_fn_error "conditional \"gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36\" was never defined.
26744 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26746 if test -z "${gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_TRUE}" && test -z "${gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_FALSE}"; then
26747 as_fn_error "conditional \"gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1\" was never defined.
26748 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26750 if test -z "${gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_TRUE}" && test -z "${gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_FALSE}"; then
26751 as_fn_error "conditional \"gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7\" was never defined.
26752 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26754 if test -z "${gl_GNULIB_ENABLED_pathmax_TRUE}" && test -z "${gl_GNULIB_ENABLED_pathmax_FALSE}"; then
26755 as_fn_error "conditional \"gl_GNULIB_ENABLED_pathmax\" was never defined.
26756 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26758 if test -z "${gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_TRUE}" && test -z "${gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_FALSE}"; then
26759 as_fn_error "conditional \"gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c\" was never defined.
26760 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26762 if test -z "${gl_GNULIB_ENABLED_stat_TRUE}" && test -z "${gl_GNULIB_ENABLED_stat_FALSE}"; then
26763 as_fn_error "conditional \"gl_GNULIB_ENABLED_stat\" was never defined.
26764 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26766 if test -z "${gl_GNULIB_ENABLED_strtoll_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoll_FALSE}"; then
26767 as_fn_error "conditional \"gl_GNULIB_ENABLED_strtoll\" was never defined.
26768 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26770 if test -z "${gl_GNULIB_ENABLED_strtoull_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoull_FALSE}"; then
26771 as_fn_error "conditional \"gl_GNULIB_ENABLED_strtoull\" was never defined.
26772 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26774 if test -z "${gl_GNULIB_ENABLED_verify_TRUE}" && test -z "${gl_GNULIB_ENABLED_verify_FALSE}"; then
26775 as_fn_error "conditional \"gl_GNULIB_ENABLED_verify\" was never defined.
26776 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26778 if test -z "${gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_TRUE}" && test -z "${gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_FALSE}"; then
26779 as_fn_error "conditional \"gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec\" was never defined.
26780 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26783 gl_libobjs=
26784 gl_ltlibobjs=
26785 if test -n "$gl_LIBOBJS"; then
26786 # Remove the extension.
26787 sed_drop_objext='s/\.o$//;s/\.obj$//'
26788 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
26789 gl_libobjs="$gl_libobjs $i.$ac_objext"
26790 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
26791 done
26793 gl_LIBOBJS=$gl_libobjs
26795 gl_LTLIBOBJS=$gl_ltlibobjs
26799 gltests_libobjs=
26800 gltests_ltlibobjs=
26801 if test -n "$gltests_LIBOBJS"; then
26802 # Remove the extension.
26803 sed_drop_objext='s/\.o$//;s/\.obj$//'
26804 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
26805 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
26806 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
26807 done
26809 gltests_LIBOBJS=$gltests_libobjs
26811 gltests_LTLIBOBJS=$gltests_ltlibobjs
26815 : ${CONFIG_STATUS=./config.status}
26816 ac_write_fail=0
26817 ac_clean_files_save=$ac_clean_files
26818 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26819 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
26820 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
26821 as_write_fail=0
26822 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
26823 #! $SHELL
26824 # Generated by $as_me.
26825 # Run this file to recreate the current configuration.
26826 # Compiler output produced by configure, useful for debugging
26827 # configure, is in config.log if it exists.
26829 debug=false
26830 ac_cs_recheck=false
26831 ac_cs_silent=false
26833 SHELL=\${CONFIG_SHELL-$SHELL}
26834 export SHELL
26835 _ASEOF
26836 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
26837 ## -------------------- ##
26838 ## M4sh Initialization. ##
26839 ## -------------------- ##
26841 # Be more Bourne compatible
26842 DUALCASE=1; export DUALCASE # for MKS sh
26843 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
26844 emulate sh
26845 NULLCMD=:
26846 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26847 # is contrary to our usage. Disable this feature.
26848 alias -g '${1+"$@"}'='"$@"'
26849 setopt NO_GLOB_SUBST
26850 else
26851 case `(set -o) 2>/dev/null` in #(
26852 *posix*) :
26853 set -o posix ;; #(
26854 *) :
26856 esac
26860 as_nl='
26862 export as_nl
26863 # Printing a long string crashes Solaris 7 /usr/bin/printf.
26864 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
26865 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
26866 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
26867 # Prefer a ksh shell builtin over an external printf program on Solaris,
26868 # but without wasting forks for bash or zsh.
26869 if test -z "$BASH_VERSION$ZSH_VERSION" \
26870 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
26871 as_echo='print -r --'
26872 as_echo_n='print -rn --'
26873 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
26874 as_echo='printf %s\n'
26875 as_echo_n='printf %s'
26876 else
26877 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
26878 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
26879 as_echo_n='/usr/ucb/echo -n'
26880 else
26881 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
26882 as_echo_n_body='eval
26883 arg=$1;
26884 case $arg in #(
26885 *"$as_nl"*)
26886 expr "X$arg" : "X\\(.*\\)$as_nl";
26887 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
26888 esac;
26889 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
26891 export as_echo_n_body
26892 as_echo_n='sh -c $as_echo_n_body as_echo'
26894 export as_echo_body
26895 as_echo='sh -c $as_echo_body as_echo'
26898 # The user is always right.
26899 if test "${PATH_SEPARATOR+set}" != set; then
26900 PATH_SEPARATOR=:
26901 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
26902 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
26903 PATH_SEPARATOR=';'
26908 # IFS
26909 # We need space, tab and new line, in precisely that order. Quoting is
26910 # there to prevent editors from complaining about space-tab.
26911 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26912 # splitting by setting IFS to empty value.)
26913 IFS=" "" $as_nl"
26915 # Find who we are. Look in the path if we contain no directory separator.
26916 case $0 in #((
26917 *[\\/]* ) as_myself=$0 ;;
26918 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26919 for as_dir in $PATH
26921 IFS=$as_save_IFS
26922 test -z "$as_dir" && as_dir=.
26923 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26924 done
26925 IFS=$as_save_IFS
26928 esac
26929 # We did not find ourselves, most probably we were run as `sh COMMAND'
26930 # in which case we are not to be found in the path.
26931 if test "x$as_myself" = x; then
26932 as_myself=$0
26934 if test ! -f "$as_myself"; then
26935 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26936 exit 1
26939 # Unset variables that we do not need and which cause bugs (e.g. in
26940 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
26941 # suppresses any "Segmentation fault" message there. '((' could
26942 # trigger a bug in pdksh 5.2.14.
26943 for as_var in BASH_ENV ENV MAIL MAILPATH
26944 do eval test x\${$as_var+set} = xset \
26945 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
26946 done
26947 PS1='$ '
26948 PS2='> '
26949 PS4='+ '
26951 # NLS nuisances.
26952 LC_ALL=C
26953 export LC_ALL
26954 LANGUAGE=C
26955 export LANGUAGE
26957 # CDPATH.
26958 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
26961 # as_fn_error ERROR [LINENO LOG_FD]
26962 # ---------------------------------
26963 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
26964 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
26965 # script with status $?, using 1 if that was 0.
26966 as_fn_error ()
26968 as_status=$?; test $as_status -eq 0 && as_status=1
26969 if test "$3"; then
26970 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
26971 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
26973 $as_echo "$as_me: error: $1" >&2
26974 as_fn_exit $as_status
26975 } # as_fn_error
26978 # as_fn_set_status STATUS
26979 # -----------------------
26980 # Set $? to STATUS, without forking.
26981 as_fn_set_status ()
26983 return $1
26984 } # as_fn_set_status
26986 # as_fn_exit STATUS
26987 # -----------------
26988 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
26989 as_fn_exit ()
26991 set +e
26992 as_fn_set_status $1
26993 exit $1
26994 } # as_fn_exit
26996 # as_fn_unset VAR
26997 # ---------------
26998 # Portably unset VAR.
26999 as_fn_unset ()
27001 { eval $1=; unset $1;}
27003 as_unset=as_fn_unset
27004 # as_fn_append VAR VALUE
27005 # ----------------------
27006 # Append the text in VALUE to the end of the definition contained in VAR. Take
27007 # advantage of any shell optimizations that allow amortized linear growth over
27008 # repeated appends, instead of the typical quadratic growth present in naive
27009 # implementations.
27010 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
27011 eval 'as_fn_append ()
27013 eval $1+=\$2
27015 else
27016 as_fn_append ()
27018 eval $1=\$$1\$2
27020 fi # as_fn_append
27022 # as_fn_arith ARG...
27023 # ------------------
27024 # Perform arithmetic evaluation on the ARGs, and store the result in the
27025 # global $as_val. Take advantage of shells that can avoid forks. The arguments
27026 # must be portable across $(()) and expr.
27027 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
27028 eval 'as_fn_arith ()
27030 as_val=$(( $* ))
27032 else
27033 as_fn_arith ()
27035 as_val=`expr "$@" || test $? -eq 1`
27037 fi # as_fn_arith
27040 if expr a : '\(a\)' >/dev/null 2>&1 &&
27041 test "X`expr 00001 : '.*\(...\)'`" = X001; then
27042 as_expr=expr
27043 else
27044 as_expr=false
27047 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27048 as_basename=basename
27049 else
27050 as_basename=false
27053 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
27054 as_dirname=dirname
27055 else
27056 as_dirname=false
27059 as_me=`$as_basename -- "$0" ||
27060 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27061 X"$0" : 'X\(//\)$' \| \
27062 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27063 $as_echo X/"$0" |
27064 sed '/^.*\/\([^/][^/]*\)\/*$/{
27065 s//\1/
27068 /^X\/\(\/\/\)$/{
27069 s//\1/
27072 /^X\/\(\/\).*/{
27073 s//\1/
27076 s/.*/./; q'`
27078 # Avoid depending upon Character Ranges.
27079 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27080 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27081 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27082 as_cr_digits='0123456789'
27083 as_cr_alnum=$as_cr_Letters$as_cr_digits
27085 ECHO_C= ECHO_N= ECHO_T=
27086 case `echo -n x` in #(((((
27087 -n*)
27088 case `echo 'xy\c'` in
27089 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
27090 xy) ECHO_C='\c';;
27091 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
27092 ECHO_T=' ';;
27093 esac;;
27095 ECHO_N='-n';;
27096 esac
27098 rm -f conf$$ conf$$.exe conf$$.file
27099 if test -d conf$$.dir; then
27100 rm -f conf$$.dir/conf$$.file
27101 else
27102 rm -f conf$$.dir
27103 mkdir conf$$.dir 2>/dev/null
27105 if (echo >conf$$.file) 2>/dev/null; then
27106 if ln -s conf$$.file conf$$ 2>/dev/null; then
27107 as_ln_s='ln -s'
27108 # ... but there are two gotchas:
27109 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27110 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27111 # In both cases, we have to default to `cp -p'.
27112 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
27113 as_ln_s='cp -p'
27114 elif ln conf$$.file conf$$ 2>/dev/null; then
27115 as_ln_s=ln
27116 else
27117 as_ln_s='cp -p'
27119 else
27120 as_ln_s='cp -p'
27122 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
27123 rmdir conf$$.dir 2>/dev/null
27126 # as_fn_mkdir_p
27127 # -------------
27128 # Create "$as_dir" as a directory, including parents if necessary.
27129 as_fn_mkdir_p ()
27132 case $as_dir in #(
27133 -*) as_dir=./$as_dir;;
27134 esac
27135 test -d "$as_dir" || eval $as_mkdir_p || {
27136 as_dirs=
27137 while :; do
27138 case $as_dir in #(
27139 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27140 *) as_qdir=$as_dir;;
27141 esac
27142 as_dirs="'$as_qdir' $as_dirs"
27143 as_dir=`$as_dirname -- "$as_dir" ||
27144 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27145 X"$as_dir" : 'X\(//\)[^/]' \| \
27146 X"$as_dir" : 'X\(//\)$' \| \
27147 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27148 $as_echo X"$as_dir" |
27149 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27150 s//\1/
27153 /^X\(\/\/\)[^/].*/{
27154 s//\1/
27157 /^X\(\/\/\)$/{
27158 s//\1/
27161 /^X\(\/\).*/{
27162 s//\1/
27165 s/.*/./; q'`
27166 test -d "$as_dir" && break
27167 done
27168 test -z "$as_dirs" || eval "mkdir $as_dirs"
27169 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
27172 } # as_fn_mkdir_p
27173 if mkdir -p . 2>/dev/null; then
27174 as_mkdir_p='mkdir -p "$as_dir"'
27175 else
27176 test -d ./-p && rmdir ./-p
27177 as_mkdir_p=false
27180 if test -x / >/dev/null 2>&1; then
27181 as_test_x='test -x'
27182 else
27183 if ls -dL / >/dev/null 2>&1; then
27184 as_ls_L_option=L
27185 else
27186 as_ls_L_option=
27188 as_test_x='
27189 eval sh -c '\''
27190 if test -d "$1"; then
27191 test -d "$1/.";
27192 else
27193 case $1 in #(
27194 -*)set "./$1";;
27195 esac;
27196 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
27197 ???[sx]*):;;*)false;;esac;fi
27198 '\'' sh
27201 as_executable_p=$as_test_x
27203 # Sed expression to map a string onto a valid CPP name.
27204 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27206 # Sed expression to map a string onto a valid variable name.
27207 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27210 exec 6>&1
27211 ## ----------------------------------- ##
27212 ## Main body of $CONFIG_STATUS script. ##
27213 ## ----------------------------------- ##
27214 _ASEOF
27215 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
27217 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27218 # Save the log message, to keep $0 and so on meaningful, and to
27219 # report actual input values of CONFIG_FILES etc. instead of their
27220 # values after options handling.
27221 ac_log="
27222 This file was extended by emacs $as_me 24.3.50, which was
27223 generated by GNU Autoconf 2.65. Invocation command line was
27225 CONFIG_FILES = $CONFIG_FILES
27226 CONFIG_HEADERS = $CONFIG_HEADERS
27227 CONFIG_LINKS = $CONFIG_LINKS
27228 CONFIG_COMMANDS = $CONFIG_COMMANDS
27229 $ $0 $@
27231 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27234 _ACEOF
27236 case $ac_config_files in *"
27237 "*) set x $ac_config_files; shift; ac_config_files=$*;;
27238 esac
27240 case $ac_config_headers in *"
27241 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
27242 esac
27245 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27246 # Files that config.status was made for.
27247 config_files="$ac_config_files"
27248 config_headers="$ac_config_headers"
27249 config_commands="$ac_config_commands"
27251 _ACEOF
27253 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27254 ac_cs_usage="\
27255 \`$as_me' instantiates files and other configuration actions
27256 from templates according to the current configuration. Unless the files
27257 and actions are specified as TAGs, all are instantiated by default.
27259 Usage: $0 [OPTION]... [TAG]...
27261 -h, --help print this help, then exit
27262 -V, --version print version number and configuration settings, then exit
27263 --config print configuration, then exit
27264 -q, --quiet, --silent
27265 do not print progress messages
27266 -d, --debug don't remove temporary files
27267 --recheck update $as_me by reconfiguring in the same conditions
27268 --file=FILE[:TEMPLATE]
27269 instantiate the configuration file FILE
27270 --header=FILE[:TEMPLATE]
27271 instantiate the configuration header FILE
27273 Configuration files:
27274 $config_files
27276 Configuration headers:
27277 $config_headers
27279 Configuration commands:
27280 $config_commands
27282 Report bugs to the package provider."
27284 _ACEOF
27285 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27286 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
27287 ac_cs_version="\\
27288 emacs config.status 24.3.50
27289 configured by $0, generated by GNU Autoconf 2.65,
27290 with options \\"\$ac_cs_config\\"
27292 Copyright (C) 2009 Free Software Foundation, Inc.
27293 This config.status script is free software; the Free Software Foundation
27294 gives unlimited permission to copy, distribute and modify it."
27296 ac_pwd='$ac_pwd'
27297 srcdir='$srcdir'
27298 INSTALL='$INSTALL'
27299 MKDIR_P='$MKDIR_P'
27300 AWK='$AWK'
27301 test -n "\$AWK" || AWK=awk
27302 _ACEOF
27304 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27305 # The default lists apply if the user does not specify any file.
27306 ac_need_defaults=:
27307 while test $# != 0
27309 case $1 in
27310 --*=*)
27311 ac_option=`expr "X$1" : 'X\([^=]*\)='`
27312 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
27313 ac_shift=:
27316 ac_option=$1
27317 ac_optarg=$2
27318 ac_shift=shift
27320 esac
27322 case $ac_option in
27323 # Handling of the options.
27324 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27325 ac_cs_recheck=: ;;
27326 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27327 $as_echo "$ac_cs_version"; exit ;;
27328 --config | --confi | --conf | --con | --co | --c )
27329 $as_echo "$ac_cs_config"; exit ;;
27330 --debug | --debu | --deb | --de | --d | -d )
27331 debug=: ;;
27332 --file | --fil | --fi | --f )
27333 $ac_shift
27334 case $ac_optarg in
27335 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27336 esac
27337 as_fn_append CONFIG_FILES " '$ac_optarg'"
27338 ac_need_defaults=false;;
27339 --header | --heade | --head | --hea )
27340 $ac_shift
27341 case $ac_optarg in
27342 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27343 esac
27344 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
27345 ac_need_defaults=false;;
27346 --he | --h)
27347 # Conflict between --help and --header
27348 as_fn_error "ambiguous option: \`$1'
27349 Try \`$0 --help' for more information.";;
27350 --help | --hel | -h )
27351 $as_echo "$ac_cs_usage"; exit ;;
27352 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27353 | -silent | --silent | --silen | --sile | --sil | --si | --s)
27354 ac_cs_silent=: ;;
27356 # This is an error.
27357 -*) as_fn_error "unrecognized option: \`$1'
27358 Try \`$0 --help' for more information." ;;
27360 *) as_fn_append ac_config_targets " $1"
27361 ac_need_defaults=false ;;
27363 esac
27364 shift
27365 done
27367 ac_configure_extra_args=
27369 if $ac_cs_silent; then
27370 exec 6>/dev/null
27371 ac_configure_extra_args="$ac_configure_extra_args --silent"
27374 _ACEOF
27375 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27376 if \$ac_cs_recheck; then
27377 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27378 shift
27379 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
27380 CONFIG_SHELL='$SHELL'
27381 export CONFIG_SHELL
27382 exec "\$@"
27385 _ACEOF
27386 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27387 exec 5>>config.log
27389 echo
27390 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27391 ## Running $as_me. ##
27392 _ASBOX
27393 $as_echo "$ac_log"
27394 } >&5
27396 _ACEOF
27397 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27399 # INIT-COMMANDS
27401 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
27402 GCC="$GCC" CPPFLAGS="$CPPFLAGS"
27404 _ACEOF
27406 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27408 # Handling of arguments.
27409 for ac_config_target in $ac_config_targets
27411 case $ac_config_target in
27412 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
27413 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
27414 "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" ;;
27415 "nextstep/GNUstep/Emacs.base/Resources/Emacs.desktop") CONFIG_FILES="$CONFIG_FILES nextstep/GNUstep/Emacs.base/Resources/Emacs.desktop:nextstep/templates/Emacs.desktop.in" ;;
27416 "nextstep/Cocoa/Emacs.base/Contents/Info.plist") CONFIG_FILES="$CONFIG_FILES nextstep/Cocoa/Emacs.base/Contents/Info.plist:nextstep/templates/Info.plist.in" ;;
27417 "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" ;;
27418 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
27419 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
27420 "lib-src/Makefile") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile" ;;
27421 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
27422 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
27423 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
27424 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
27425 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
27426 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
27427 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
27428 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
27429 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
27430 "nextstep/Makefile") CONFIG_FILES="$CONFIG_FILES nextstep/Makefile" ;;
27431 "test/automated/Makefile") CONFIG_FILES="$CONFIG_FILES test/automated/Makefile" ;;
27432 "admin/unidata/Makefile") CONFIG_FILES="$CONFIG_FILES admin/unidata/Makefile" ;;
27433 "mkdirs") CONFIG_COMMANDS="$CONFIG_COMMANDS mkdirs" ;;
27434 "epaths") CONFIG_COMMANDS="$CONFIG_COMMANDS epaths" ;;
27435 "gdbinit") CONFIG_COMMANDS="$CONFIG_COMMANDS gdbinit" ;;
27437 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
27438 esac
27439 done
27442 # If the user did not use the arguments to specify the items to instantiate,
27443 # then the envvar interface is used. Set only those that are not.
27444 # We use the long form for the default assignment because of an extremely
27445 # bizarre bug on SunOS 4.1.3.
27446 if $ac_need_defaults; then
27447 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27448 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27449 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27452 # Have a temporary directory for convenience. Make it in the build tree
27453 # simply because there is no reason against having it here, and in addition,
27454 # creating and moving files from /tmp can sometimes cause problems.
27455 # Hook for its removal unless debugging.
27456 # Note that there is a small window in which the directory will not be cleaned:
27457 # after its creation but before its name has been assigned to `$tmp'.
27458 $debug ||
27460 tmp=
27461 trap 'exit_status=$?
27462 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
27464 trap 'as_fn_exit 1' 1 2 13 15
27466 # Create a (secure) tmp directory for tmp files.
27469 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27470 test -n "$tmp" && test -d "$tmp"
27471 } ||
27473 tmp=./conf$$-$RANDOM
27474 (umask 077 && mkdir "$tmp")
27475 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
27477 # Set up the scripts for CONFIG_FILES section.
27478 # No need to generate them if there are no CONFIG_FILES.
27479 # This happens for instance with `./config.status config.h'.
27480 if test -n "$CONFIG_FILES"; then
27482 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
27483 ac_cs_awk_getline=:
27484 ac_cs_awk_pipe_init=
27485 ac_cs_awk_read_file='
27486 while ((getline aline < (F[key])) > 0)
27487 print(aline)
27488 close(F[key])'
27489 ac_cs_awk_pipe_fini=
27490 else
27491 ac_cs_awk_getline=false
27492 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
27493 ac_cs_awk_read_file='
27494 print "|#_!!_#|"
27495 print "cat " F[key] " &&"
27496 '$ac_cs_awk_pipe_init
27497 # The final `:' finishes the AND list.
27498 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
27500 ac_cr=`echo X | tr X '\015'`
27501 # On cygwin, bash can eat \r inside `` if the user requested igncr.
27502 # But we know of no other shell where ac_cr would be empty at this
27503 # point, so we can use a bashism as a fallback.
27504 if test "x$ac_cr" = x; then
27505 eval ac_cr=\$\'\\r\'
27507 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
27508 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
27509 ac_cs_awk_cr='\r'
27510 else
27511 ac_cs_awk_cr=$ac_cr
27514 echo 'BEGIN {' >"$tmp/subs1.awk" &&
27515 _ACEOF
27517 # Create commands to substitute file output variables.
27519 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
27520 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
27521 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
27522 echo "_ACAWK" &&
27523 echo "_ACEOF"
27524 } >conf$$files.sh &&
27525 . ./conf$$files.sh ||
27526 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27527 rm -f conf$$files.sh
27530 echo "cat >conf$$subs.awk <<_ACEOF" &&
27531 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
27532 echo "_ACEOF"
27533 } >conf$$subs.sh ||
27534 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27535 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
27536 ac_delim='%!_!# '
27537 for ac_last_try in false false false false false :; do
27538 . ./conf$$subs.sh ||
27539 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27541 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
27542 if test $ac_delim_n = $ac_delim_num; then
27543 break
27544 elif $ac_last_try; then
27545 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27546 else
27547 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27549 done
27550 rm -f conf$$subs.sh
27552 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27553 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
27554 _ACEOF
27555 sed -n '
27557 s/^/S["/; s/!.*/"]=/
27560 s/^[^!]*!//
27561 :repl
27562 t repl
27563 s/'"$ac_delim"'$//
27564 t delim
27567 s/\(.\{148\}\)..*/\1/
27568 t more1
27569 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
27572 b repl
27573 :more1
27574 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27577 s/.\{148\}//
27578 t nl
27579 :delim
27581 s/\(.\{148\}\)..*/\1/
27582 t more2
27583 s/["\\]/\\&/g; s/^/"/; s/$/"/
27586 :more2
27587 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27590 s/.\{148\}//
27591 t delim
27592 ' <conf$$subs.awk | sed '
27593 /^[^""]/{
27595 s/\n//
27597 ' >>$CONFIG_STATUS || ac_write_fail=1
27598 rm -f conf$$subs.awk
27599 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27600 _ACAWK
27601 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
27602 for (key in S) S_is_set[key] = 1
27603 FS = "\a"
27604 \$ac_cs_awk_pipe_init
27607 line = $ 0
27608 nfields = split(line, field, "@")
27609 substed = 0
27610 len = length(field[1])
27611 for (i = 2; i < nfields; i++) {
27612 key = field[i]
27613 keylen = length(key)
27614 if (S_is_set[key]) {
27615 value = S[key]
27616 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
27617 len += length(value) + length(field[++i])
27618 substed = 1
27619 } else
27620 len += 1 + keylen
27622 if (nfields == 3 && !substed) {
27623 key = field[2]
27624 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
27625 \$ac_cs_awk_read_file
27626 next
27629 print line
27631 \$ac_cs_awk_pipe_fini
27632 _ACAWK
27633 _ACEOF
27634 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27635 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
27636 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
27637 else
27639 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
27640 || as_fn_error "could not setup config files machinery" "$LINENO" 5
27641 _ACEOF
27643 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27644 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
27645 # trailing colons and then remove the whole line if VPATH becomes empty
27646 # (actually we leave an empty line to preserve line numbers).
27647 if test "x$srcdir" = x.; then
27648 ac_vpsub='/^[ ]*VPATH[ ]*=/{
27649 s/:*\$(srcdir):*/:/
27650 s/:*\${srcdir}:*/:/
27651 s/:*@srcdir@:*/:/
27652 s/^\([^=]*=[ ]*\):*/\1/
27653 s/:*$//
27654 s/^[^=]*=[ ]*$//
27658 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27659 fi # test -n "$CONFIG_FILES"
27661 # Set up the scripts for CONFIG_HEADERS section.
27662 # No need to generate them if there are no CONFIG_HEADERS.
27663 # This happens for instance with `./config.status Makefile'.
27664 if test -n "$CONFIG_HEADERS"; then
27665 cat >"$tmp/defines.awk" <<\_ACAWK ||
27666 BEGIN {
27667 _ACEOF
27669 # Transform confdefs.h into an awk script `defines.awk', embedded as
27670 # here-document in config.status, that substitutes the proper values into
27671 # config.h.in to produce config.h.
27673 # Create a delimiter string that does not exist in confdefs.h, to ease
27674 # handling of long lines.
27675 ac_delim='%!_!# '
27676 for ac_last_try in false false :; do
27677 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
27678 if test -z "$ac_t"; then
27679 break
27680 elif $ac_last_try; then
27681 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
27682 else
27683 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27685 done
27687 # For the awk script, D is an array of macro values keyed by name,
27688 # likewise P contains macro parameters if any. Preserve backslash
27689 # newline sequences.
27691 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27692 sed -n '
27693 s/.\{148\}/&'"$ac_delim"'/g
27694 t rset
27695 :rset
27696 s/^[ ]*#[ ]*define[ ][ ]*/ /
27697 t def
27699 :def
27700 s/\\$//
27701 t bsnl
27702 s/["\\]/\\&/g
27703 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
27704 D["\1"]=" \3"/p
27705 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
27707 :bsnl
27708 s/["\\]/\\&/g
27709 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
27710 D["\1"]=" \3\\\\\\n"\\/p
27711 t cont
27712 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
27713 t cont
27715 :cont
27717 s/.\{148\}/&'"$ac_delim"'/g
27718 t clear
27719 :clear
27720 s/\\$//
27721 t bsnlc
27722 s/["\\]/\\&/g; s/^/"/; s/$/"/p
27724 :bsnlc
27725 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
27726 b cont
27727 ' <confdefs.h | sed '
27728 s/'"$ac_delim"'/"\\\
27729 "/g' >>$CONFIG_STATUS || ac_write_fail=1
27731 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27732 for (key in D) D_is_set[key] = 1
27733 FS = "\a"
27735 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
27736 line = \$ 0
27737 split(line, arg, " ")
27738 if (arg[1] == "#") {
27739 defundef = arg[2]
27740 mac1 = arg[3]
27741 } else {
27742 defundef = substr(arg[1], 2)
27743 mac1 = arg[2]
27745 split(mac1, mac2, "(") #)
27746 macro = mac2[1]
27747 prefix = substr(line, 1, index(line, defundef) - 1)
27748 if (D_is_set[macro]) {
27749 # Preserve the white space surrounding the "#".
27750 print prefix "define", macro P[macro] D[macro]
27751 next
27752 } else {
27753 # Replace #undef with comments. This is necessary, for example,
27754 # in the case of _POSIX_SOURCE, which is predefined and required
27755 # on some systems where configure will not decide to define it.
27756 if (defundef == "undef") {
27757 print "/*", prefix defundef, macro, "*/"
27758 next
27762 { print }
27763 _ACAWK
27764 _ACEOF
27765 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27766 as_fn_error "could not setup config headers machinery" "$LINENO" 5
27767 fi # test -n "$CONFIG_HEADERS"
27770 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
27771 shift
27772 for ac_tag
27774 case $ac_tag in
27775 :[FHLC]) ac_mode=$ac_tag; continue;;
27776 esac
27777 case $ac_mode$ac_tag in
27778 :[FHL]*:*);;
27779 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
27780 :[FH]-) ac_tag=-:-;;
27781 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27782 esac
27783 ac_save_IFS=$IFS
27784 IFS=:
27785 set x $ac_tag
27786 IFS=$ac_save_IFS
27787 shift
27788 ac_file=$1
27789 shift
27791 case $ac_mode in
27792 :L) ac_source=$1;;
27793 :[FH])
27794 ac_file_inputs=
27795 for ac_f
27797 case $ac_f in
27798 -) ac_f="$tmp/stdin";;
27799 *) # Look for the file first in the build tree, then in the source tree
27800 # (if the path is not absolute). The absolute path cannot be DOS-style,
27801 # because $ac_f cannot contain `:'.
27802 test -f "$ac_f" ||
27803 case $ac_f in
27804 [\\/$]*) false;;
27805 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
27806 esac ||
27807 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
27808 esac
27809 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
27810 as_fn_append ac_file_inputs " '$ac_f'"
27811 done
27813 # Let's still pretend it is `configure' which instantiates (i.e., don't
27814 # use $as_me), people would be surprised to read:
27815 # /* config.h. Generated by config.status. */
27816 configure_input='Generated from '`
27817 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
27818 `' by configure.'
27819 if test x"$ac_file" != x-; then
27820 configure_input="$ac_file. $configure_input"
27821 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
27822 $as_echo "$as_me: creating $ac_file" >&6;}
27824 # Neutralize special characters interpreted by sed in replacement strings.
27825 case $configure_input in #(
27826 *\&* | *\|* | *\\* )
27827 ac_sed_conf_input=`$as_echo "$configure_input" |
27828 sed 's/[\\\\&|]/\\\\&/g'`;; #(
27829 *) ac_sed_conf_input=$configure_input;;
27830 esac
27832 case $ac_tag in
27833 *:-:* | *:-) cat >"$tmp/stdin" \
27834 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
27835 esac
27837 esac
27839 ac_dir=`$as_dirname -- "$ac_file" ||
27840 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27841 X"$ac_file" : 'X\(//\)[^/]' \| \
27842 X"$ac_file" : 'X\(//\)$' \| \
27843 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27844 $as_echo X"$ac_file" |
27845 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27846 s//\1/
27849 /^X\(\/\/\)[^/].*/{
27850 s//\1/
27853 /^X\(\/\/\)$/{
27854 s//\1/
27857 /^X\(\/\).*/{
27858 s//\1/
27861 s/.*/./; q'`
27862 as_dir="$ac_dir"; as_fn_mkdir_p
27863 ac_builddir=.
27865 case "$ac_dir" in
27866 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27868 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
27869 # A ".." for each directory in $ac_dir_suffix.
27870 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
27871 case $ac_top_builddir_sub in
27872 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27873 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27874 esac ;;
27875 esac
27876 ac_abs_top_builddir=$ac_pwd
27877 ac_abs_builddir=$ac_pwd$ac_dir_suffix
27878 # for backward compatibility:
27879 ac_top_builddir=$ac_top_build_prefix
27881 case $srcdir in
27882 .) # We are building in place.
27883 ac_srcdir=.
27884 ac_top_srcdir=$ac_top_builddir_sub
27885 ac_abs_top_srcdir=$ac_pwd ;;
27886 [\\/]* | ?:[\\/]* ) # Absolute name.
27887 ac_srcdir=$srcdir$ac_dir_suffix;
27888 ac_top_srcdir=$srcdir
27889 ac_abs_top_srcdir=$srcdir ;;
27890 *) # Relative name.
27891 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27892 ac_top_srcdir=$ac_top_build_prefix$srcdir
27893 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27894 esac
27895 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27898 case $ac_mode in
27901 # CONFIG_FILE
27904 case $INSTALL in
27905 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
27906 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
27907 esac
27908 ac_MKDIR_P=$MKDIR_P
27909 case $MKDIR_P in
27910 [\\/$]* | ?:[\\/]* ) ;;
27911 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
27912 esac
27913 _ACEOF
27915 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27916 # If the template does not know about datarootdir, expand it.
27917 # FIXME: This hack should be removed a few years after 2.60.
27918 ac_datarootdir_hack=; ac_datarootdir_seen=
27919 ac_sed_dataroot='
27920 /datarootdir/ {
27924 /@datadir@/p
27925 /@docdir@/p
27926 /@infodir@/p
27927 /@localedir@/p
27928 /@mandir@/p'
27929 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
27930 *datarootdir*) ac_datarootdir_seen=yes;;
27931 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
27932 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27933 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27934 _ACEOF
27935 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27936 ac_datarootdir_hack='
27937 s&@datadir@&$datadir&g
27938 s&@docdir@&$docdir&g
27939 s&@infodir@&$infodir&g
27940 s&@localedir@&$localedir&g
27941 s&@mandir@&$mandir&g
27942 s&\\\${datarootdir}&$datarootdir&g' ;;
27943 esac
27944 _ACEOF
27946 # Neutralize VPATH when `$srcdir' = `.'.
27947 # Shell code in configure.ac might set extrasub.
27948 # FIXME: do we really want to maintain this feature?
27949 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27950 ac_sed_extra="$ac_vpsub
27951 $extrasub
27952 _ACEOF
27953 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27955 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27956 s|@configure_input@|$ac_sed_conf_input|;t t
27957 s&@top_builddir@&$ac_top_builddir_sub&;t t
27958 s&@top_build_prefix@&$ac_top_build_prefix&;t t
27959 s&@srcdir@&$ac_srcdir&;t t
27960 s&@abs_srcdir@&$ac_abs_srcdir&;t t
27961 s&@top_srcdir@&$ac_top_srcdir&;t t
27962 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
27963 s&@builddir@&$ac_builddir&;t t
27964 s&@abs_builddir@&$ac_abs_builddir&;t t
27965 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
27966 s&@INSTALL@&$ac_INSTALL&;t t
27967 s&@MKDIR_P@&$ac_MKDIR_P&;t t
27968 $ac_datarootdir_hack
27970 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
27971 if $ac_cs_awk_getline; then
27972 $AWK -f "$tmp/subs.awk"
27973 else
27974 $AWK -f "$tmp/subs.awk" | $SHELL
27975 fi >$tmp/out \
27976 || as_fn_error "could not create $ac_file" "$LINENO" 5
27978 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27979 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
27980 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
27981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27982 which seems to be undefined. Please make sure it is defined." >&5
27983 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27984 which seems to be undefined. Please make sure it is defined." >&2;}
27986 rm -f "$tmp/stdin"
27987 case $ac_file in
27988 -) cat "$tmp/out" && rm -f "$tmp/out";;
27989 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
27990 esac \
27991 || as_fn_error "could not create $ac_file" "$LINENO" 5
27995 # CONFIG_HEADER
27997 if test x"$ac_file" != x-; then
27999 $as_echo "/* $configure_input */" \
28000 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
28001 } >"$tmp/config.h" \
28002 || as_fn_error "could not create $ac_file" "$LINENO" 5
28003 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
28004 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
28005 $as_echo "$as_me: $ac_file is unchanged" >&6;}
28006 else
28007 rm -f "$ac_file"
28008 mv "$tmp/config.h" "$ac_file" \
28009 || as_fn_error "could not create $ac_file" "$LINENO" 5
28011 else
28012 $as_echo "/* $configure_input */" \
28013 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
28014 || as_fn_error "could not create -" "$LINENO" 5
28016 # Compute "$ac_file"'s index in $config_headers.
28017 _am_arg="$ac_file"
28018 _am_stamp_count=1
28019 for _am_header in $config_headers :; do
28020 case $_am_header in
28021 $_am_arg | $_am_arg:* )
28022 break ;;
28024 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
28025 esac
28026 done
28027 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
28028 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28029 X"$_am_arg" : 'X\(//\)[^/]' \| \
28030 X"$_am_arg" : 'X\(//\)$' \| \
28031 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
28032 $as_echo X"$_am_arg" |
28033 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28034 s//\1/
28037 /^X\(\/\/\)[^/].*/{
28038 s//\1/
28041 /^X\(\/\/\)$/{
28042 s//\1/
28045 /^X\(\/\).*/{
28046 s//\1/
28049 s/.*/./; q'`/stamp-h$_am_stamp_count
28052 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
28053 $as_echo "$as_me: executing $ac_file commands" >&6;}
28055 esac
28058 case $ac_file$ac_mode in
28059 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
28060 # Autoconf 2.62 quotes --file arguments for eval, but not when files
28061 # are listed without --file. Let's play safe and only enable the eval
28062 # if we detect the quoting.
28063 case $CONFIG_FILES in
28064 *\'*) eval set x "$CONFIG_FILES" ;;
28065 *) set x $CONFIG_FILES ;;
28066 esac
28067 shift
28068 for mf
28070 # Strip MF so we end up with the name of the file.
28071 mf=`echo "$mf" | sed -e 's/:.*$//'`
28072 # Check whether this is an Automake generated Makefile or not.
28073 # We used to match only the files named `Makefile.in', but
28074 # some people rename them; so instead we look at the file content.
28075 # Grep'ing the first line is not enough: some people post-process
28076 # each Makefile.in and add a new line on top of each file to say so.
28077 # Grep'ing the whole file is not good either: AIX grep has a line
28078 # limit of 2048, but all sed's we know have understand at least 4000.
28079 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
28080 dirpart=`$as_dirname -- "$mf" ||
28081 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28082 X"$mf" : 'X\(//\)[^/]' \| \
28083 X"$mf" : 'X\(//\)$' \| \
28084 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
28085 $as_echo X"$mf" |
28086 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28087 s//\1/
28090 /^X\(\/\/\)[^/].*/{
28091 s//\1/
28094 /^X\(\/\/\)$/{
28095 s//\1/
28098 /^X\(\/\).*/{
28099 s//\1/
28102 s/.*/./; q'`
28103 else
28104 continue
28106 # Extract the definition of DEPDIR, am__include, and am__quote
28107 # from the Makefile without running `make'.
28108 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
28109 test -z "$DEPDIR" && continue
28110 am__include=`sed -n 's/^am__include = //p' < "$mf"`
28111 test -z "am__include" && continue
28112 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
28113 # When using ansi2knr, U may be empty or an underscore; expand it
28114 U=`sed -n 's/^U = //p' < "$mf"`
28115 # Find all dependency output files, they are included files with
28116 # $(DEPDIR) in their names. We invoke sed twice because it is the
28117 # simplest approach to changing $(DEPDIR) to its actual value in the
28118 # expansion.
28119 for file in `sed -n "
28120 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
28121 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
28122 # Make sure the directory exists.
28123 test -f "$dirpart/$file" && continue
28124 fdir=`$as_dirname -- "$file" ||
28125 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28126 X"$file" : 'X\(//\)[^/]' \| \
28127 X"$file" : 'X\(//\)$' \| \
28128 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
28129 $as_echo X"$file" |
28130 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28131 s//\1/
28134 /^X\(\/\/\)[^/].*/{
28135 s//\1/
28138 /^X\(\/\/\)$/{
28139 s//\1/
28142 /^X\(\/\).*/{
28143 s//\1/
28146 s/.*/./; q'`
28147 as_dir=$dirpart/$fdir; as_fn_mkdir_p
28148 # echo "creating $dirpart/$file"
28149 echo '# dummy' > "$dirpart/$file"
28150 done
28151 done
28154 "mkdirs":C)
28155 for dir in etc lisp ; do
28156 test -d ${dir} || mkdir ${dir}
28157 done
28159 "epaths":C)
28160 echo creating src/epaths.h
28161 ${MAKE-make} MAKEFILE_NAME=do-not-make-Makefile epaths-force
28163 "gdbinit":C)
28164 if test ! -f src/.gdbinit && test -f "$srcdir/src/.gdbinit"; then
28165 echo creating src/.gdbinit
28166 echo "source $srcdir/src/.gdbinit" > src/.gdbinit
28170 esac
28171 done # for ac_tag
28174 as_fn_exit 0
28175 _ACEOF
28176 ac_clean_files=$ac_clean_files_save
28178 test $ac_write_fail = 0 ||
28179 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
28182 # configure is writing to config.log, and then calls config.status.
28183 # config.status does its own redirection, appending to config.log.
28184 # Unfortunately, on DOS this fails, as config.log is still kept open
28185 # by configure, so config.status won't be able to write to it; its
28186 # output is simply discarded. So we exec the FD to /dev/null,
28187 # effectively closing config.log, so it can be properly (re)opened and
28188 # appended to by config.status. When coming back to configure, we
28189 # need to make the FD available again.
28190 if test "$no_create" != yes; then
28191 ac_cs_success=:
28192 ac_config_status_args=
28193 test "$silent" = yes &&
28194 ac_config_status_args="$ac_config_status_args --quiet"
28195 exec 5>/dev/null
28196 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28197 exec 5>>config.log
28198 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28199 # would make configure fail if this is the last instruction.
28200 $ac_cs_success || as_fn_exit $?
28202 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
28203 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
28204 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}