Some cleanups for the buffer menu and electric buffer menu.
[emacs.git] / autogen / configure
bloba8c8e657a44023c8f85cd5f1c8de73d4576b0939
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for emacs 24.1.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.1.50'
553 PACKAGE_STRING='emacs 24.1.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 LIB_GCC
608 LD_FIRSTFLAG
609 LD_SWITCH_SYSTEM_TEMACS
610 LIBGNU_LTLIBDEPS
611 LIBGNU_LIBDEPS
612 gltests_WITNESS
613 gl_GNULIB_ENABLED_verify_FALSE
614 gl_GNULIB_ENABLED_verify_TRUE
615 gl_GNULIB_ENABLED_strtoull_FALSE
616 gl_GNULIB_ENABLED_strtoull_TRUE
617 gl_GNULIB_ENABLED_strtoll_FALSE
618 gl_GNULIB_ENABLED_strtoll_TRUE
619 gl_GNULIB_ENABLED_stat_FALSE
620 gl_GNULIB_ENABLED_stat_TRUE
621 gl_GNULIB_ENABLED_sigprocmask_FALSE
622 gl_GNULIB_ENABLED_sigprocmask_TRUE
623 gl_GNULIB_ENABLED_pathmax_FALSE
624 gl_GNULIB_ENABLED_pathmax_TRUE
625 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE
626 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE
627 gl_GNULIB_ENABLED_dosname_FALSE
628 gl_GNULIB_ENABLED_dosname_TRUE
629 LTLIBINTL
630 LIBINTL
631 WARN_CFLAGS
632 HAVE_UNISTD_H
633 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
634 NEXT_UNISTD_H
635 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
636 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
637 TIME_H_DEFINES_STRUCT_TIMESPEC
638 NEXT_AS_FIRST_DIRECTIVE_TIME_H
639 NEXT_TIME_H
640 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
641 NEXT_SYS_STAT_H
642 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
643 NEXT_STDLIB_H
644 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
645 NEXT_STDIO_H
646 REPLACE_VSPRINTF
647 REPLACE_VSNPRINTF
648 REPLACE_VPRINTF
649 REPLACE_VFPRINTF
650 REPLACE_VDPRINTF
651 REPLACE_VASPRINTF
652 REPLACE_TMPFILE
653 REPLACE_STDIO_WRITE_FUNCS
654 REPLACE_STDIO_READ_FUNCS
655 REPLACE_SPRINTF
656 REPLACE_SNPRINTF
657 REPLACE_RENAMEAT
658 REPLACE_RENAME
659 REPLACE_REMOVE
660 REPLACE_PRINTF
661 REPLACE_POPEN
662 REPLACE_PERROR
663 REPLACE_OBSTACK_PRINTF
664 REPLACE_GETLINE
665 REPLACE_GETDELIM
666 REPLACE_FTELLO
667 REPLACE_FTELL
668 REPLACE_FSEEKO
669 REPLACE_FSEEK
670 REPLACE_FREOPEN
671 REPLACE_FPURGE
672 REPLACE_FPRINTF
673 REPLACE_FOPEN
674 REPLACE_FFLUSH
675 REPLACE_FDOPEN
676 REPLACE_FCLOSE
677 REPLACE_DPRINTF
678 HAVE_VDPRINTF
679 HAVE_VASPRINTF
680 HAVE_RENAMEAT
681 HAVE_POPEN
682 HAVE_PCLOSE
683 HAVE_FTELLO
684 HAVE_FSEEKO
685 HAVE_DPRINTF
686 HAVE_DECL_VSNPRINTF
687 HAVE_DECL_SNPRINTF
688 HAVE_DECL_OBSTACK_PRINTF
689 HAVE_DECL_GETLINE
690 HAVE_DECL_GETDELIM
691 HAVE_DECL_FTELLO
692 HAVE_DECL_FSEEKO
693 HAVE_DECL_FPURGE
694 GNULIB_VSPRINTF_POSIX
695 GNULIB_VSNPRINTF
696 GNULIB_VPRINTF_POSIX
697 GNULIB_VPRINTF
698 GNULIB_VFPRINTF_POSIX
699 GNULIB_VFPRINTF
700 GNULIB_VDPRINTF
701 GNULIB_VSCANF
702 GNULIB_VFSCANF
703 GNULIB_VASPRINTF
704 GNULIB_TMPFILE
705 GNULIB_STDIO_H_SIGPIPE
706 GNULIB_STDIO_H_NONBLOCKING
707 GNULIB_SPRINTF_POSIX
708 GNULIB_SNPRINTF
709 GNULIB_SCANF
710 GNULIB_RENAMEAT
711 GNULIB_RENAME
712 GNULIB_REMOVE
713 GNULIB_PUTS
714 GNULIB_PUTCHAR
715 GNULIB_PUTC
716 GNULIB_PRINTF_POSIX
717 GNULIB_PRINTF
718 GNULIB_POPEN
719 GNULIB_PERROR
720 GNULIB_PCLOSE
721 GNULIB_OBSTACK_PRINTF_POSIX
722 GNULIB_OBSTACK_PRINTF
723 GNULIB_GETS
724 GNULIB_GETLINE
725 GNULIB_GETDELIM
726 GNULIB_GETCHAR
727 GNULIB_GETC
728 GNULIB_FWRITE
729 GNULIB_FTELLO
730 GNULIB_FTELL
731 GNULIB_FSEEKO
732 GNULIB_FSEEK
733 GNULIB_FSCANF
734 GNULIB_FREOPEN
735 GNULIB_FREAD
736 GNULIB_FPUTS
737 GNULIB_FPUTC
738 GNULIB_FPURGE
739 GNULIB_FPRINTF_POSIX
740 GNULIB_FPRINTF
741 GNULIB_FOPEN
742 GNULIB_FGETS
743 GNULIB_FGETC
744 GNULIB_FFLUSH
745 GNULIB_FDOPEN
746 GNULIB_FCLOSE
747 GNULIB_DPRINTF
748 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
749 NEXT_STDDEF_H
750 GL_GENERATE_STDDEF_H_FALSE
751 GL_GENERATE_STDDEF_H_TRUE
752 STDDEF_H
753 HAVE_WCHAR_T
754 REPLACE_NULL
755 HAVE__BOOL
756 GL_GENERATE_STDBOOL_H_FALSE
757 GL_GENERATE_STDBOOL_H_TRUE
758 STDBOOL_H
759 GL_GENERATE_STDARG_H_FALSE
760 GL_GENERATE_STDARG_H_TRUE
761 STDARG_H
762 NEXT_AS_FIRST_DIRECTIVE_STDARG_H
763 NEXT_STDARG_H
764 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
765 NEXT_SIGNAL_H
766 REPLACE_RAISE
767 REPLACE_PTHREAD_SIGMASK
768 HAVE_SIGHANDLER_T
769 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
770 HAVE_STRUCT_SIGACTION_SA_SIGACTION
771 HAVE_SIGACTION
772 HAVE_SIGINFO_T
773 HAVE_SIGSET_T
774 HAVE_RAISE
775 HAVE_PTHREAD_SIGMASK
776 HAVE_POSIX_SIGNALBLOCKING
777 GNULIB_SIGACTION
778 GNULIB_SIGPROCMASK
779 GNULIB_SIGNAL_H_SIGPIPE
780 GNULIB_RAISE
781 GNULIB_PTHREAD_SIGMASK
782 LIB_PTHREAD_SIGMASK
783 REPLACE_TIMEGM
784 REPLACE_NANOSLEEP
785 REPLACE_MKTIME
786 REPLACE_LOCALTIME_R
787 HAVE_TIMEGM
788 HAVE_STRPTIME
789 HAVE_NANOSLEEP
790 HAVE_DECL_LOCALTIME_R
791 GNULIB_TIME_R
792 GNULIB_TIMEGM
793 GNULIB_STRPTIME
794 GNULIB_NANOSLEEP
795 GNULIB_MKTIME
796 REPLACE_UTIMENSAT
797 REPLACE_STAT
798 REPLACE_MKNOD
799 REPLACE_MKFIFO
800 REPLACE_MKDIR
801 REPLACE_LSTAT
802 REPLACE_FUTIMENS
803 REPLACE_FSTATAT
804 REPLACE_FSTAT
805 HAVE_UTIMENSAT
806 HAVE_MKNODAT
807 HAVE_MKNOD
808 HAVE_MKFIFOAT
809 HAVE_MKFIFO
810 HAVE_MKDIRAT
811 HAVE_LSTAT
812 HAVE_LCHMOD
813 HAVE_FUTIMENS
814 HAVE_FSTATAT
815 HAVE_FCHMODAT
816 GNULIB_UTIMENSAT
817 GNULIB_STAT
818 GNULIB_MKNODAT
819 GNULIB_MKNOD
820 GNULIB_MKFIFOAT
821 GNULIB_MKFIFO
822 GNULIB_MKDIRAT
823 GNULIB_LSTAT
824 GNULIB_LCHMOD
825 GNULIB_FUTIMENS
826 GNULIB_FSTATAT
827 GNULIB_FSTAT
828 GNULIB_FCHMODAT
829 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
830 NEXT_INTTYPES_H
831 UINT64_MAX_EQ_ULONG_MAX
832 UINT32_MAX_LT_UINTMAX_MAX
833 PRIPTR_PREFIX
834 PRI_MACROS_BROKEN
835 INT64_MAX_EQ_LONG_MAX
836 INT32_MAX_LT_INTMAX_MAX
837 HAVE_DECL_STRTOUMAX
838 HAVE_DECL_STRTOIMAX
839 HAVE_DECL_IMAXDIV
840 HAVE_DECL_IMAXABS
841 GNULIB_STRTOUMAX
842 GNULIB_STRTOIMAX
843 GNULIB_IMAXDIV
844 GNULIB_IMAXABS
845 GL_GENERATE_STDINT_H_FALSE
846 GL_GENERATE_STDINT_H_TRUE
847 STDINT_H
848 WINT_T_SUFFIX
849 WCHAR_T_SUFFIX
850 SIG_ATOMIC_T_SUFFIX
851 SIZE_T_SUFFIX
852 PTRDIFF_T_SUFFIX
853 HAVE_SIGNED_WINT_T
854 HAVE_SIGNED_WCHAR_T
855 HAVE_SIGNED_SIG_ATOMIC_T
856 BITSIZEOF_WINT_T
857 BITSIZEOF_WCHAR_T
858 BITSIZEOF_SIG_ATOMIC_T
859 BITSIZEOF_SIZE_T
860 BITSIZEOF_PTRDIFF_T
861 APPLE_UNIVERSAL_BUILD
862 HAVE_SYS_BITYPES_H
863 HAVE_SYS_INTTYPES_H
864 HAVE_STDINT_H
865 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
866 NEXT_STDINT_H
867 HAVE_SYS_TYPES_H
868 HAVE_INTTYPES_H
869 HAVE_WCHAR_H
870 HAVE_UNSIGNED_LONG_LONG_INT
871 HAVE_LONG_LONG_INT
872 GETOPT_H
873 HAVE_GETOPT_H
874 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
875 NEXT_GETOPT_H
876 PRAGMA_COLUMNS
877 PRAGMA_SYSTEM_HEADER
878 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
879 INCLUDE_NEXT
880 GETLOADAVG_LIBS
881 REPLACE_WCTOMB
882 REPLACE_UNSETENV
883 REPLACE_STRTOD
884 REPLACE_SETENV
885 REPLACE_REALPATH
886 REPLACE_REALLOC
887 REPLACE_PUTENV
888 REPLACE_MKSTEMP
889 REPLACE_MBTOWC
890 REPLACE_MALLOC
891 REPLACE_CANONICALIZE_FILE_NAME
892 REPLACE_CALLOC
893 HAVE_DECL_UNSETENV
894 HAVE_UNLOCKPT
895 HAVE_SYS_LOADAVG_H
896 HAVE_STRUCT_RANDOM_DATA
897 HAVE_STRTOULL
898 HAVE_STRTOLL
899 HAVE_STRTOD
900 HAVE_DECL_SETENV
901 HAVE_SETENV
902 HAVE_RPMATCH
903 HAVE_REALPATH
904 HAVE_RANDOM_R
905 HAVE_RANDOM_H
906 HAVE_PTSNAME
907 HAVE_MKSTEMPS
908 HAVE_MKSTEMP
909 HAVE_MKOSTEMPS
910 HAVE_MKOSTEMP
911 HAVE_MKDTEMP
912 HAVE_GRANTPT
913 HAVE_GETSUBOPT
914 HAVE_DECL_GETLOADAVG
915 HAVE_CANONICALIZE_FILE_NAME
916 HAVE_ATOLL
917 HAVE__EXIT
918 GNULIB_WCTOMB
919 GNULIB_UNSETENV
920 GNULIB_UNLOCKPT
921 GNULIB_SYSTEM_POSIX
922 GNULIB_STRTOULL
923 GNULIB_STRTOLL
924 GNULIB_STRTOD
925 GNULIB_SETENV
926 GNULIB_RPMATCH
927 GNULIB_REALPATH
928 GNULIB_REALLOC_POSIX
929 GNULIB_RANDOM_R
930 GNULIB_PUTENV
931 GNULIB_PTSNAME
932 GNULIB_MKSTEMPS
933 GNULIB_MKSTEMP
934 GNULIB_MKOSTEMPS
935 GNULIB_MKOSTEMP
936 GNULIB_MKDTEMP
937 GNULIB_MBTOWC
938 GNULIB_MALLOC_POSIX
939 GNULIB_GRANTPT
940 GNULIB_GETSUBOPT
941 GNULIB_GETLOADAVG
942 GNULIB_CANONICALIZE_FILE_NAME
943 GNULIB_CALLOC_POSIX
944 GNULIB_ATOLL
945 GNULIB__EXIT
946 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
947 UNISTD_H_HAVE_WINSOCK2_H
948 REPLACE_WRITE
949 REPLACE_USLEEP
950 REPLACE_UNLINKAT
951 REPLACE_UNLINK
952 REPLACE_TTYNAME_R
953 REPLACE_SYMLINK
954 REPLACE_SLEEP
955 REPLACE_RMDIR
956 REPLACE_READLINK
957 REPLACE_READ
958 REPLACE_PWRITE
959 REPLACE_PREAD
960 REPLACE_LSEEK
961 REPLACE_LINKAT
962 REPLACE_LINK
963 REPLACE_LCHOWN
964 REPLACE_GETPAGESIZE
965 REPLACE_GETGROUPS
966 REPLACE_GETLOGIN_R
967 REPLACE_GETDOMAINNAME
968 REPLACE_GETCWD
969 REPLACE_FCHOWNAT
970 REPLACE_DUP2
971 REPLACE_DUP
972 REPLACE_CLOSE
973 REPLACE_CHOWN
974 HAVE_SYS_PARAM_H
975 HAVE_OS_H
976 HAVE_DECL_TTYNAME_R
977 HAVE_DECL_GETUSERSHELL
978 HAVE_DECL_GETPAGESIZE
979 HAVE_DECL_GETLOGIN_R
980 HAVE_DECL_GETDOMAINNAME
981 HAVE_DECL_FDATASYNC
982 HAVE_DECL_FCHDIR
983 HAVE_DECL_ENVIRON
984 HAVE_USLEEP
985 HAVE_UNLINKAT
986 HAVE_SYMLINKAT
987 HAVE_SYMLINK
988 HAVE_SLEEP
989 HAVE_READLINKAT
990 HAVE_READLINK
991 HAVE_PWRITE
992 HAVE_PREAD
993 HAVE_PIPE2
994 HAVE_PIPE
995 HAVE_LINKAT
996 HAVE_LINK
997 HAVE_LCHOWN
998 HAVE_GROUP_MEMBER
999 HAVE_GETPAGESIZE
1000 HAVE_GETLOGIN
1001 HAVE_GETHOSTNAME
1002 HAVE_GETGROUPS
1003 HAVE_GETDTABLESIZE
1004 HAVE_FTRUNCATE
1005 HAVE_FSYNC
1006 HAVE_FDATASYNC
1007 HAVE_FCHOWNAT
1008 HAVE_FCHDIR
1009 HAVE_FACCESSAT
1010 HAVE_EUIDACCESS
1011 HAVE_DUP3
1012 HAVE_DUP2
1013 HAVE_CHOWN
1014 GNULIB_WRITE
1015 GNULIB_USLEEP
1016 GNULIB_UNLINKAT
1017 GNULIB_UNLINK
1018 GNULIB_UNISTD_H_SIGPIPE
1019 GNULIB_UNISTD_H_NONBLOCKING
1020 GNULIB_UNISTD_H_GETOPT
1021 GNULIB_TTYNAME_R
1022 GNULIB_SYMLINKAT
1023 GNULIB_SYMLINK
1024 GNULIB_SLEEP
1025 GNULIB_RMDIR
1026 GNULIB_READLINKAT
1027 GNULIB_READLINK
1028 GNULIB_READ
1029 GNULIB_PWRITE
1030 GNULIB_PREAD
1031 GNULIB_PIPE2
1032 GNULIB_PIPE
1033 GNULIB_LSEEK
1034 GNULIB_LINKAT
1035 GNULIB_LINK
1036 GNULIB_LCHOWN
1037 GNULIB_GROUP_MEMBER
1038 GNULIB_GETUSERSHELL
1039 GNULIB_GETPAGESIZE
1040 GNULIB_GETLOGIN_R
1041 GNULIB_GETLOGIN
1042 GNULIB_GETHOSTNAME
1043 GNULIB_GETGROUPS
1044 GNULIB_GETDTABLESIZE
1045 GNULIB_GETDOMAINNAME
1046 GNULIB_GETCWD
1047 GNULIB_FTRUNCATE
1048 GNULIB_FSYNC
1049 GNULIB_FDATASYNC
1050 GNULIB_FCHOWNAT
1051 GNULIB_FCHDIR
1052 GNULIB_FACCESSAT
1053 GNULIB_EUIDACCESS
1054 GNULIB_ENVIRON
1055 GNULIB_DUP3
1056 GNULIB_DUP2
1057 GNULIB_DUP
1058 GNULIB_CLOSE
1059 GNULIB_CHOWN
1060 GNULIB_CHDIR
1061 GL_GENERATE_ALLOCA_H_FALSE
1062 GL_GENERATE_ALLOCA_H_TRUE
1063 ALLOCA_H
1064 ALLOCA
1065 GL_COND_LIBTOOL_FALSE
1066 GL_COND_LIBTOOL_TRUE
1067 POST_ALLOC_OBJ
1068 PRE_ALLOC_OBJ
1069 CYGWIN_OBJ
1070 RALLOC_OBJ
1071 OLDXMENU_DEPS
1072 LIBX_OTHER
1073 LIBXMENU
1074 OLDXMENU
1075 OLDXMENU_TARGET
1076 LIBXT_OTHER
1077 TOOLKIT_LIBW
1078 WIDGET_OBJ
1079 XOBJ
1080 XMENU_OBJ
1081 FONT_OBJ
1082 OTHER_FILES
1083 GNU_OBJC_CFLAGS
1084 ns_appsrc
1085 ns_appresdir
1086 ns_appbindir
1087 ns_appdir
1088 S_FILE
1089 M_FILE
1090 X_TOOLKIT_TYPE
1091 GNUSTEP_CFLAGS
1092 C_SWITCH_X_SITE
1093 LD_SWITCH_X_SITE
1094 gameuser
1095 gamedir
1096 bitmapdir
1097 archlibdir
1098 etcdir
1099 x_default_search_path
1100 lisppath
1101 locallisppath
1102 lispdir
1103 srcdir
1104 canonical
1105 configuration
1106 version
1107 KRB4LIB
1108 DESLIB
1109 KRB5LIB
1110 CRYPTOLIB
1111 COM_ERRLIB
1112 LIBRESOLV
1113 LIBHESIOD
1114 TERMCAP_OBJ
1115 LIBS_TERMCAP
1116 BLESSMAIL_TARGET
1117 LIBS_MAIL
1118 liblockfile
1119 LIBXML2_LIBS
1120 LIBXML2_CFLAGS
1121 LIBXSM
1122 LIBGPM
1123 LIBGIF
1124 LIBTIFF
1125 LIBPNG
1126 LIBJPEG
1127 LIBXPM
1128 M17N_FLT_LIBS
1129 M17N_FLT_CFLAGS
1130 LIBOTF_LIBS
1131 LIBOTF_CFLAGS
1132 FREETYPE_LIBS
1133 FREETYPE_CFLAGS
1134 XFT_LIBS
1135 XFT_CFLAGS
1136 FONTCONFIG_LIBS
1137 FONTCONFIG_CFLAGS
1138 LIBXMU
1139 LIBXTR6
1140 LIBGNUTLS_LIBS
1141 LIBGNUTLS_CFLAGS
1142 LIBSELINUX_LIBS
1143 SETTINGS_LIBS
1144 SETTINGS_CFLAGS
1145 GCONF_LIBS
1146 GCONF_CFLAGS
1147 GSETTINGS_LIBS
1148 GSETTINGS_CFLAGS
1149 DBUS_OBJ
1150 DBUS_LIBS
1151 DBUS_CFLAGS
1152 GTK_OBJ
1153 GTK_LIBS
1154 GTK_CFLAGS
1155 IMAGEMAGICK_LIBS
1156 IMAGEMAGICK_CFLAGS
1157 RSVG_LIBS
1158 RSVG_CFLAGS
1159 LIB_PTHREAD
1160 VMLIMIT_OBJ
1161 GMALLOC_OBJ
1162 HAVE_XSERVER
1163 LIB_STANDARD
1164 NS_OBJC_OBJ
1165 NS_OBJ
1166 TEMACS_LDFLAGS2
1167 LD_SWITCH_X_SITE_RPATH
1168 XMKMF
1169 DEPFLAGS
1170 MKDEPDIR
1171 CFLAGS_SOUND
1172 ALSA_LIBS
1173 ALSA_CFLAGS
1174 PKG_CONFIG
1175 LIBSOUND
1176 CRT_DIR
1177 START_FILES
1178 LIB_MATH
1179 LIBS_SYSTEM
1180 C_SWITCH_SYSTEM
1181 UNEXEC_OBJ
1182 C_SWITCH_MACHINE
1183 LD_SWITCH_SYSTEM
1184 CANNOT_DUMP
1185 INFO_OPTS
1186 INFO_EXT
1187 HAVE_MAKEINFO
1188 GZIP_PROG
1189 INSTALL_INFO
1190 GNULIB_WARN_CFLAGS
1191 WERROR_CFLAGS
1192 RANLIB
1193 ARFLAGS
1195 EGREP
1196 GREP
1198 am__fastdepCC_FALSE
1199 am__fastdepCC_TRUE
1200 CCDEPMODE
1201 AMDEPBACKSLASH
1202 AMDEP_FALSE
1203 AMDEP_TRUE
1204 am__quote
1205 am__include
1206 DEPDIR
1207 OBJEXT
1208 EXEEXT
1209 ac_ct_CC
1210 CPPFLAGS
1211 LDFLAGS
1212 CFLAGS
1214 host_os
1215 host_vendor
1216 host_cpu
1217 host
1218 build_os
1219 build_vendor
1220 build_cpu
1221 build
1222 PROFILING_CFLAGS
1223 MAINT
1224 GZIP_INFO
1225 cache_file
1226 am__untar
1227 am__tar
1228 AMTAR
1229 am__leading_dot
1230 SET_MAKE
1232 mkdir_p
1233 MKDIR_P
1234 INSTALL_STRIP_PROGRAM
1235 STRIP
1236 install_sh
1237 MAKEINFO
1238 AUTOHEADER
1239 AUTOMAKE
1240 AUTOCONF
1241 ACLOCAL
1242 VERSION
1243 PACKAGE
1244 CYGPATH_W
1245 am__isrc
1246 INSTALL_DATA
1247 INSTALL_SCRIPT
1248 INSTALL_PROGRAM
1249 target_alias
1250 host_alias
1251 build_alias
1252 LIBS
1253 ECHO_T
1254 ECHO_N
1255 ECHO_C
1256 DEFS
1257 mandir
1258 localedir
1259 libdir
1260 psdir
1261 pdfdir
1262 dvidir
1263 htmldir
1264 infodir
1265 docdir
1266 oldincludedir
1267 includedir
1268 localstatedir
1269 sharedstatedir
1270 sysconfdir
1271 datadir
1272 datarootdir
1273 libexecdir
1274 sbindir
1275 bindir
1276 program_transform_name
1277 prefix
1278 exec_prefix
1279 PACKAGE_URL
1280 PACKAGE_BUGREPORT
1281 PACKAGE_STRING
1282 PACKAGE_VERSION
1283 PACKAGE_TARNAME
1284 PACKAGE_NAME
1285 PATH_SEPARATOR
1286 SHELL'
1287 ac_subst_files='deps_frag
1288 lisp_frag
1289 ns_frag'
1290 ac_user_opts='
1291 enable_option_checking
1292 with_pop
1293 with_kerberos
1294 with_kerberos5
1295 with_hesiod
1296 with_mmdf
1297 with_mail_unlink
1298 with_mailhost
1299 with_sound
1300 with_sync_input
1301 with_x_toolkit
1302 with_wide_int
1303 with_xpm
1304 with_jpeg
1305 with_tiff
1306 with_gif
1307 with_png
1308 with_rsvg
1309 with_xml2
1310 with_imagemagick
1311 with_xft
1312 with_libotf
1313 with_m17n_flt
1314 with_toolkit_scroll_bars
1315 with_xaw3d
1316 with_xim
1317 with_ns
1318 with_gpm
1319 with_dbus
1320 with_gconf
1321 with_gsettings
1322 with_selinux
1323 with_gnutls
1324 with_makeinfo
1325 with_compress_info
1326 with_pkg_config_prog
1327 with_crt_dir
1328 with_gameuser
1329 with_gnustep_conf
1330 enable_ns_self_contained
1331 enable_asserts
1332 enable_maintainer_mode
1333 enable_locallisppath
1334 enable_checking
1335 enable_use_lisp_union_type
1336 enable_profiling
1337 enable_autodepend
1338 enable_dependency_tracking
1339 enable_largefile
1340 enable_gcc_warnings
1341 with_x
1343 ac_precious_vars='build_alias
1344 host_alias
1345 target_alias
1347 CFLAGS
1348 LDFLAGS
1349 LIBS
1350 CPPFLAGS
1352 XMKMF'
1355 # Initialize some variables set by options.
1356 ac_init_help=
1357 ac_init_version=false
1358 ac_unrecognized_opts=
1359 ac_unrecognized_sep=
1360 # The variables have the same names as the options, with
1361 # dashes changed to underlines.
1362 cache_file=/dev/null
1363 exec_prefix=NONE
1364 no_create=
1365 no_recursion=
1366 prefix=NONE
1367 program_prefix=NONE
1368 program_suffix=NONE
1369 program_transform_name=s,x,x,
1370 silent=
1371 site=
1372 srcdir=
1373 verbose=
1374 x_includes=NONE
1375 x_libraries=NONE
1377 # Installation directory options.
1378 # These are left unexpanded so users can "make install exec_prefix=/foo"
1379 # and all the variables that are supposed to be based on exec_prefix
1380 # by default will actually change.
1381 # Use braces instead of parens because sh, perl, etc. also accept them.
1382 # (The list follows the same order as the GNU Coding Standards.)
1383 bindir='${exec_prefix}/bin'
1384 sbindir='${exec_prefix}/sbin'
1385 libexecdir='${exec_prefix}/libexec'
1386 datarootdir='${prefix}/share'
1387 datadir='${datarootdir}'
1388 sysconfdir='${prefix}/etc'
1389 sharedstatedir='${prefix}/com'
1390 localstatedir='${prefix}/var'
1391 includedir='${prefix}/include'
1392 oldincludedir='/usr/include'
1393 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1394 infodir='${datarootdir}/info'
1395 htmldir='${docdir}'
1396 dvidir='${docdir}'
1397 pdfdir='${docdir}'
1398 psdir='${docdir}'
1399 libdir='${exec_prefix}/lib'
1400 localedir='${datarootdir}/locale'
1401 mandir='${datarootdir}/man'
1403 ac_prev=
1404 ac_dashdash=
1405 for ac_option
1407 # If the previous option needs an argument, assign it.
1408 if test -n "$ac_prev"; then
1409 eval $ac_prev=\$ac_option
1410 ac_prev=
1411 continue
1414 case $ac_option in
1415 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1416 *) ac_optarg=yes ;;
1417 esac
1419 # Accept the important Cygnus configure options, so we can diagnose typos.
1421 case $ac_dashdash$ac_option in
1423 ac_dashdash=yes ;;
1425 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1426 ac_prev=bindir ;;
1427 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1428 bindir=$ac_optarg ;;
1430 -build | --build | --buil | --bui | --bu)
1431 ac_prev=build_alias ;;
1432 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1433 build_alias=$ac_optarg ;;
1435 -cache-file | --cache-file | --cache-fil | --cache-fi \
1436 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1437 ac_prev=cache_file ;;
1438 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1439 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1440 cache_file=$ac_optarg ;;
1442 --config-cache | -C)
1443 cache_file=config.cache ;;
1445 -datadir | --datadir | --datadi | --datad)
1446 ac_prev=datadir ;;
1447 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1448 datadir=$ac_optarg ;;
1450 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1451 | --dataroo | --dataro | --datar)
1452 ac_prev=datarootdir ;;
1453 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1454 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1455 datarootdir=$ac_optarg ;;
1457 -disable-* | --disable-*)
1458 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1459 # Reject names that are not valid shell variable names.
1460 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1461 as_fn_error "invalid feature name: $ac_useropt"
1462 ac_useropt_orig=$ac_useropt
1463 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1464 case $ac_user_opts in
1466 "enable_$ac_useropt"
1467 "*) ;;
1468 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1469 ac_unrecognized_sep=', ';;
1470 esac
1471 eval enable_$ac_useropt=no ;;
1473 -docdir | --docdir | --docdi | --doc | --do)
1474 ac_prev=docdir ;;
1475 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1476 docdir=$ac_optarg ;;
1478 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1479 ac_prev=dvidir ;;
1480 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1481 dvidir=$ac_optarg ;;
1483 -enable-* | --enable-*)
1484 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1485 # Reject names that are not valid shell variable names.
1486 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1487 as_fn_error "invalid feature name: $ac_useropt"
1488 ac_useropt_orig=$ac_useropt
1489 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1490 case $ac_user_opts in
1492 "enable_$ac_useropt"
1493 "*) ;;
1494 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1495 ac_unrecognized_sep=', ';;
1496 esac
1497 eval enable_$ac_useropt=\$ac_optarg ;;
1499 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1500 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1501 | --exec | --exe | --ex)
1502 ac_prev=exec_prefix ;;
1503 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1504 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1505 | --exec=* | --exe=* | --ex=*)
1506 exec_prefix=$ac_optarg ;;
1508 -gas | --gas | --ga | --g)
1509 # Obsolete; use --with-gas.
1510 with_gas=yes ;;
1512 -help | --help | --hel | --he | -h)
1513 ac_init_help=long ;;
1514 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1515 ac_init_help=recursive ;;
1516 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1517 ac_init_help=short ;;
1519 -host | --host | --hos | --ho)
1520 ac_prev=host_alias ;;
1521 -host=* | --host=* | --hos=* | --ho=*)
1522 host_alias=$ac_optarg ;;
1524 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1525 ac_prev=htmldir ;;
1526 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1527 | --ht=*)
1528 htmldir=$ac_optarg ;;
1530 -includedir | --includedir | --includedi | --included | --include \
1531 | --includ | --inclu | --incl | --inc)
1532 ac_prev=includedir ;;
1533 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1534 | --includ=* | --inclu=* | --incl=* | --inc=*)
1535 includedir=$ac_optarg ;;
1537 -infodir | --infodir | --infodi | --infod | --info | --inf)
1538 ac_prev=infodir ;;
1539 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1540 infodir=$ac_optarg ;;
1542 -libdir | --libdir | --libdi | --libd)
1543 ac_prev=libdir ;;
1544 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1545 libdir=$ac_optarg ;;
1547 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1548 | --libexe | --libex | --libe)
1549 ac_prev=libexecdir ;;
1550 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1551 | --libexe=* | --libex=* | --libe=*)
1552 libexecdir=$ac_optarg ;;
1554 -localedir | --localedir | --localedi | --localed | --locale)
1555 ac_prev=localedir ;;
1556 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1557 localedir=$ac_optarg ;;
1559 -localstatedir | --localstatedir | --localstatedi | --localstated \
1560 | --localstate | --localstat | --localsta | --localst | --locals)
1561 ac_prev=localstatedir ;;
1562 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1563 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1564 localstatedir=$ac_optarg ;;
1566 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1567 ac_prev=mandir ;;
1568 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1569 mandir=$ac_optarg ;;
1571 -nfp | --nfp | --nf)
1572 # Obsolete; use --without-fp.
1573 with_fp=no ;;
1575 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1576 | --no-cr | --no-c | -n)
1577 no_create=yes ;;
1579 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1580 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1581 no_recursion=yes ;;
1583 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1584 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1585 | --oldin | --oldi | --old | --ol | --o)
1586 ac_prev=oldincludedir ;;
1587 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1588 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1589 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1590 oldincludedir=$ac_optarg ;;
1592 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1593 ac_prev=prefix ;;
1594 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1595 prefix=$ac_optarg ;;
1597 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1598 | --program-pre | --program-pr | --program-p)
1599 ac_prev=program_prefix ;;
1600 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1601 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1602 program_prefix=$ac_optarg ;;
1604 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1605 | --program-suf | --program-su | --program-s)
1606 ac_prev=program_suffix ;;
1607 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1608 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1609 program_suffix=$ac_optarg ;;
1611 -program-transform-name | --program-transform-name \
1612 | --program-transform-nam | --program-transform-na \
1613 | --program-transform-n | --program-transform- \
1614 | --program-transform | --program-transfor \
1615 | --program-transfo | --program-transf \
1616 | --program-trans | --program-tran \
1617 | --progr-tra | --program-tr | --program-t)
1618 ac_prev=program_transform_name ;;
1619 -program-transform-name=* | --program-transform-name=* \
1620 | --program-transform-nam=* | --program-transform-na=* \
1621 | --program-transform-n=* | --program-transform-=* \
1622 | --program-transform=* | --program-transfor=* \
1623 | --program-transfo=* | --program-transf=* \
1624 | --program-trans=* | --program-tran=* \
1625 | --progr-tra=* | --program-tr=* | --program-t=*)
1626 program_transform_name=$ac_optarg ;;
1628 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1629 ac_prev=pdfdir ;;
1630 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1631 pdfdir=$ac_optarg ;;
1633 -psdir | --psdir | --psdi | --psd | --ps)
1634 ac_prev=psdir ;;
1635 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1636 psdir=$ac_optarg ;;
1638 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1639 | -silent | --silent | --silen | --sile | --sil)
1640 silent=yes ;;
1642 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1643 ac_prev=sbindir ;;
1644 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1645 | --sbi=* | --sb=*)
1646 sbindir=$ac_optarg ;;
1648 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1649 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1650 | --sharedst | --shareds | --shared | --share | --shar \
1651 | --sha | --sh)
1652 ac_prev=sharedstatedir ;;
1653 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1654 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1655 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1656 | --sha=* | --sh=*)
1657 sharedstatedir=$ac_optarg ;;
1659 -site | --site | --sit)
1660 ac_prev=site ;;
1661 -site=* | --site=* | --sit=*)
1662 site=$ac_optarg ;;
1664 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1665 ac_prev=srcdir ;;
1666 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1667 srcdir=$ac_optarg ;;
1669 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1670 | --syscon | --sysco | --sysc | --sys | --sy)
1671 ac_prev=sysconfdir ;;
1672 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1673 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1674 sysconfdir=$ac_optarg ;;
1676 -target | --target | --targe | --targ | --tar | --ta | --t)
1677 ac_prev=target_alias ;;
1678 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1679 target_alias=$ac_optarg ;;
1681 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1682 verbose=yes ;;
1684 -version | --version | --versio | --versi | --vers | -V)
1685 ac_init_version=: ;;
1687 -with-* | --with-*)
1688 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1689 # Reject names that are not valid shell variable names.
1690 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1691 as_fn_error "invalid package name: $ac_useropt"
1692 ac_useropt_orig=$ac_useropt
1693 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1694 case $ac_user_opts in
1696 "with_$ac_useropt"
1697 "*) ;;
1698 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1699 ac_unrecognized_sep=', ';;
1700 esac
1701 eval with_$ac_useropt=\$ac_optarg ;;
1703 -without-* | --without-*)
1704 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1705 # Reject names that are not valid shell variable names.
1706 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1707 as_fn_error "invalid package name: $ac_useropt"
1708 ac_useropt_orig=$ac_useropt
1709 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1710 case $ac_user_opts in
1712 "with_$ac_useropt"
1713 "*) ;;
1714 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1715 ac_unrecognized_sep=', ';;
1716 esac
1717 eval with_$ac_useropt=no ;;
1719 --x)
1720 # Obsolete; use --with-x.
1721 with_x=yes ;;
1723 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1724 | --x-incl | --x-inc | --x-in | --x-i)
1725 ac_prev=x_includes ;;
1726 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1727 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1728 x_includes=$ac_optarg ;;
1730 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1731 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1732 ac_prev=x_libraries ;;
1733 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1734 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1735 x_libraries=$ac_optarg ;;
1737 -*) as_fn_error "unrecognized option: \`$ac_option'
1738 Try \`$0 --help' for more information."
1741 *=*)
1742 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1743 # Reject names that are not valid shell variable names.
1744 case $ac_envvar in #(
1745 '' | [0-9]* | *[!_$as_cr_alnum]* )
1746 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1747 esac
1748 eval $ac_envvar=\$ac_optarg
1749 export $ac_envvar ;;
1752 # FIXME: should be removed in autoconf 3.0.
1753 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1754 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1755 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1756 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1759 esac
1760 done
1762 if test -n "$ac_prev"; then
1763 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1764 as_fn_error "missing argument to $ac_option"
1767 if test -n "$ac_unrecognized_opts"; then
1768 case $enable_option_checking in
1769 no) ;;
1770 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1771 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1772 esac
1775 # Check all directory arguments for consistency.
1776 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1777 datadir sysconfdir sharedstatedir localstatedir includedir \
1778 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1779 libdir localedir mandir
1781 eval ac_val=\$$ac_var
1782 # Remove trailing slashes.
1783 case $ac_val in
1784 */ )
1785 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1786 eval $ac_var=\$ac_val;;
1787 esac
1788 # Be sure to have absolute directory names.
1789 case $ac_val in
1790 [\\/$]* | ?:[\\/]* ) continue;;
1791 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1792 esac
1793 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1794 done
1796 # There might be people who depend on the old broken behavior: `$host'
1797 # used to hold the argument of --host etc.
1798 # FIXME: To remove some day.
1799 build=$build_alias
1800 host=$host_alias
1801 target=$target_alias
1803 # FIXME: To remove some day.
1804 if test "x$host_alias" != x; then
1805 if test "x$build_alias" = x; then
1806 cross_compiling=maybe
1807 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1808 If a cross compiler is detected then cross compile mode will be used." >&2
1809 elif test "x$build_alias" != "x$host_alias"; then
1810 cross_compiling=yes
1814 ac_tool_prefix=
1815 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1817 test "$silent" = yes && exec 6>/dev/null
1820 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1821 ac_ls_di=`ls -di .` &&
1822 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1823 as_fn_error "working directory cannot be determined"
1824 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1825 as_fn_error "pwd does not report name of working directory"
1828 # Find the source files, if location was not specified.
1829 if test -z "$srcdir"; then
1830 ac_srcdir_defaulted=yes
1831 # Try the directory containing this script, then the parent directory.
1832 ac_confdir=`$as_dirname -- "$as_myself" ||
1833 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1834 X"$as_myself" : 'X\(//\)[^/]' \| \
1835 X"$as_myself" : 'X\(//\)$' \| \
1836 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1837 $as_echo X"$as_myself" |
1838 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1839 s//\1/
1842 /^X\(\/\/\)[^/].*/{
1843 s//\1/
1846 /^X\(\/\/\)$/{
1847 s//\1/
1850 /^X\(\/\).*/{
1851 s//\1/
1854 s/.*/./; q'`
1855 srcdir=$ac_confdir
1856 if test ! -r "$srcdir/$ac_unique_file"; then
1857 srcdir=..
1859 else
1860 ac_srcdir_defaulted=no
1862 if test ! -r "$srcdir/$ac_unique_file"; then
1863 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1864 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1866 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1867 ac_abs_confdir=`(
1868 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1869 pwd)`
1870 # When building in place, set srcdir=.
1871 if test "$ac_abs_confdir" = "$ac_pwd"; then
1872 srcdir=.
1874 # Remove unnecessary trailing slashes from srcdir.
1875 # Double slashes in file names in object file debugging info
1876 # mess up M-x gdb in Emacs.
1877 case $srcdir in
1878 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1879 esac
1880 for ac_var in $ac_precious_vars; do
1881 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1882 eval ac_env_${ac_var}_value=\$${ac_var}
1883 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1884 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1885 done
1888 # Report the --help message.
1890 if test "$ac_init_help" = "long"; then
1891 # Omit some internal or obsolete options to make the list less imposing.
1892 # This message is too long to be a string in the A/UX 3.1 sh.
1893 cat <<_ACEOF
1894 \`configure' configures emacs 24.1.50 to adapt to many kinds of systems.
1896 Usage: $0 [OPTION]... [VAR=VALUE]...
1898 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1899 VAR=VALUE. See below for descriptions of some of the useful variables.
1901 Defaults for the options are specified in brackets.
1903 Configuration:
1904 -h, --help display this help and exit
1905 --help=short display options specific to this package
1906 --help=recursive display the short help of all the included packages
1907 -V, --version display version information and exit
1908 -q, --quiet, --silent do not print \`checking...' messages
1909 --cache-file=FILE cache test results in FILE [disabled]
1910 -C, --config-cache alias for \`--cache-file=config.cache'
1911 -n, --no-create do not create output files
1912 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1914 Installation directories:
1915 --prefix=PREFIX install architecture-independent files in PREFIX
1916 [$ac_default_prefix]
1917 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1918 [PREFIX]
1920 By default, \`make install' will install all the files in
1921 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1922 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1923 for instance \`--prefix=\$HOME'.
1925 For better control, use the options below.
1927 Fine tuning of the installation directories:
1928 --bindir=DIR user executables [EPREFIX/bin]
1929 --sbindir=DIR system admin executables [EPREFIX/sbin]
1930 --libexecdir=DIR program executables [EPREFIX/libexec]
1931 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1932 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1933 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1934 --libdir=DIR object code libraries [EPREFIX/lib]
1935 --includedir=DIR C header files [PREFIX/include]
1936 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1937 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1938 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1939 --infodir=DIR info documentation [DATAROOTDIR/info]
1940 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1941 --mandir=DIR man documentation [DATAROOTDIR/man]
1942 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1943 --htmldir=DIR html documentation [DOCDIR]
1944 --dvidir=DIR dvi documentation [DOCDIR]
1945 --pdfdir=DIR pdf documentation [DOCDIR]
1946 --psdir=DIR ps documentation [DOCDIR]
1947 _ACEOF
1949 cat <<\_ACEOF
1951 Program names:
1952 --program-prefix=PREFIX prepend PREFIX to installed program names
1953 --program-suffix=SUFFIX append SUFFIX to installed program names
1954 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1956 X features:
1957 --x-includes=DIR X include files are in DIR
1958 --x-libraries=DIR X library files are in DIR
1960 System types:
1961 --build=BUILD configure for building on BUILD [guessed]
1962 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1963 _ACEOF
1966 if test -n "$ac_init_help"; then
1967 case $ac_init_help in
1968 short | recursive ) echo "Configuration of emacs 24.1.50:";;
1969 esac
1970 cat <<\_ACEOF
1972 Optional Features:
1973 --disable-option-checking ignore unrecognized --enable/--with options
1974 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1975 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1976 --disable-ns-self-contained
1977 disable self contained build under NeXTstep
1978 --enable-asserts compile code with asserts enabled
1979 --disable-maintainer-mode
1980 disable make rules and dependencies not useful (and
1981 sometimes confusing) to the casual installer
1982 --enable-locallisppath=PATH
1983 directories Emacs should search for lisp files
1984 specific to this site
1985 --enable-checking[=LIST]
1986 enable expensive run-time checks. With LIST, enable
1987 only specific categories of checks. Categories are:
1988 all,yes,no. Flags are: stringbytes, stringoverrun,
1989 stringfreelist, xmallocoverrun, conslist
1990 --enable-use-lisp-union-type
1991 use a union for the Lisp_Object data type. This is
1992 only useful for development for catching certain
1993 types of bugs.
1994 --enable-profiling build emacs with profiling support. This might not
1995 work on all platforms
1996 --enable-autodepend automatically generate dependencies to .h-files.
1997 Requires GNU Make and Gcc. Enabled if GNU Make and
1998 Gcc is found
1999 --disable-dependency-tracking speeds up one-time build
2000 --enable-dependency-tracking do not reject slow dependency extractors
2001 --disable-largefile omit support for large files
2002 --enable-gcc-warnings turn on lots of GCC warnings (for developers)
2004 Optional Packages:
2005 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
2006 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
2007 --without-pop don't support POP mail retrieval with movemail
2008 --with-kerberos support Kerberos-authenticated POP
2009 --with-kerberos5 support Kerberos version 5 authenticated POP
2010 --with-hesiod support Hesiod to get the POP server host
2011 --with-mmdf support MMDF mailboxes
2012 --with-mail-unlink unlink, rather than empty, mail spool after reading
2013 --with-mailhost=HOSTNAME
2014 string giving default POP mail host
2015 --without-sound don't compile with sound support
2016 --without-sync-input process async input synchronously
2017 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes or gtk, gtk3,
2018 lucid or athena, motif, no)
2019 --with-wide-int prefer wide Emacs integers (typically 62-bit)
2020 --without-xpm don't compile with XPM image support
2021 --without-jpeg don't compile with JPEG image support
2022 --without-tiff don't compile with TIFF image support
2023 --without-gif don't compile with GIF image support
2024 --without-png don't compile with PNG image support
2025 --without-rsvg don't compile with SVG image support
2026 --without-xml2 don't compile with XML parsing support
2027 --without-imagemagick don't compile with ImageMagick image support
2028 --without-xft don't use XFT for anti aliased fonts
2029 --without-libotf don't use libotf for OpenType font support
2030 --without-m17n-flt don't use m17n-flt for text shaping
2031 --without-toolkit-scroll-bars
2032 don't use Motif or Xaw3d scroll bars
2033 --without-xaw3d don't use Xaw3d
2034 --without-xim don't use X11 XIM
2035 --with-ns use NeXTstep (Cocoa or GNUstep) windowing system
2036 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
2037 console
2038 --without-dbus don't compile with D-Bus support
2039 --without-gconf don't compile with GConf support
2040 --without-gsettings don't compile with GSettings support
2041 --without-selinux don't compile with SELinux support
2042 --without-gnutls don't use -lgnutls for SSL/TLS support
2043 --without-makeinfo don't require makeinfo for building manuals
2044 --without-compress-info don't compress the installed Info pages
2045 --with-pkg-config-prog=PATH
2046 path to pkg-config for finding GTK and librsvg
2047 --with-crt-dir=DIR directory containing crtn.o etc. The default is
2048 /usr/lib, or /usr/lib64 on some platforms.
2049 --with-gameuser=USER user for shared game score files
2050 --with-gnustep-conf=PATH
2051 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
2052 or /etc/GNUstep/GNUstep.conf
2053 --with-x use the X Window System
2055 Some influential environment variables:
2056 CC C compiler command
2057 CFLAGS C compiler flags
2058 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2059 nonstandard directory <lib dir>
2060 LIBS libraries to pass to the linker, e.g. -l<library>
2061 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2062 you have headers in a nonstandard directory <include dir>
2063 CPP C preprocessor
2064 XMKMF Path to xmkmf, Makefile generator for X Window System
2066 Use these variables to override the choices made by `configure' or to help
2067 it to find libraries and programs with nonstandard names/locations.
2069 Report bugs to the package provider.
2070 _ACEOF
2071 ac_status=$?
2074 if test "$ac_init_help" = "recursive"; then
2075 # If there are subdirs, report their specific --help.
2076 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2077 test -d "$ac_dir" ||
2078 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2079 continue
2080 ac_builddir=.
2082 case "$ac_dir" in
2083 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2085 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2086 # A ".." for each directory in $ac_dir_suffix.
2087 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2088 case $ac_top_builddir_sub in
2089 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2090 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2091 esac ;;
2092 esac
2093 ac_abs_top_builddir=$ac_pwd
2094 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2095 # for backward compatibility:
2096 ac_top_builddir=$ac_top_build_prefix
2098 case $srcdir in
2099 .) # We are building in place.
2100 ac_srcdir=.
2101 ac_top_srcdir=$ac_top_builddir_sub
2102 ac_abs_top_srcdir=$ac_pwd ;;
2103 [\\/]* | ?:[\\/]* ) # Absolute name.
2104 ac_srcdir=$srcdir$ac_dir_suffix;
2105 ac_top_srcdir=$srcdir
2106 ac_abs_top_srcdir=$srcdir ;;
2107 *) # Relative name.
2108 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2109 ac_top_srcdir=$ac_top_build_prefix$srcdir
2110 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2111 esac
2112 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2114 cd "$ac_dir" || { ac_status=$?; continue; }
2115 # Check for guested configure.
2116 if test -f "$ac_srcdir/configure.gnu"; then
2117 echo &&
2118 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2119 elif test -f "$ac_srcdir/configure"; then
2120 echo &&
2121 $SHELL "$ac_srcdir/configure" --help=recursive
2122 else
2123 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2124 fi || ac_status=$?
2125 cd "$ac_pwd" || { ac_status=$?; break; }
2126 done
2129 test -n "$ac_init_help" && exit $ac_status
2130 if $ac_init_version; then
2131 cat <<\_ACEOF
2132 emacs configure 24.1.50
2133 generated by GNU Autoconf 2.65
2135 Copyright (C) 2009 Free Software Foundation, Inc.
2136 This configure script is free software; the Free Software Foundation
2137 gives unlimited permission to copy, distribute and modify it.
2138 _ACEOF
2139 exit
2142 ## ------------------------ ##
2143 ## Autoconf initialization. ##
2144 ## ------------------------ ##
2146 # ac_fn_c_try_compile LINENO
2147 # --------------------------
2148 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2149 ac_fn_c_try_compile ()
2151 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2152 rm -f conftest.$ac_objext
2153 if { { ac_try="$ac_compile"
2154 case "(($ac_try" in
2155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2156 *) ac_try_echo=$ac_try;;
2157 esac
2158 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2159 $as_echo "$ac_try_echo"; } >&5
2160 (eval "$ac_compile") 2>conftest.err
2161 ac_status=$?
2162 if test -s conftest.err; then
2163 grep -v '^ *+' conftest.err >conftest.er1
2164 cat conftest.er1 >&5
2165 mv -f conftest.er1 conftest.err
2167 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2168 test $ac_status = 0; } && {
2169 test -z "$ac_c_werror_flag" ||
2170 test ! -s conftest.err
2171 } && test -s conftest.$ac_objext; then :
2172 ac_retval=0
2173 else
2174 $as_echo "$as_me: failed program was:" >&5
2175 sed 's/^/| /' conftest.$ac_ext >&5
2177 ac_retval=1
2179 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2180 as_fn_set_status $ac_retval
2182 } # ac_fn_c_try_compile
2184 # ac_fn_c_try_cpp LINENO
2185 # ----------------------
2186 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2187 ac_fn_c_try_cpp ()
2189 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2190 if { { ac_try="$ac_cpp conftest.$ac_ext"
2191 case "(($ac_try" in
2192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2193 *) ac_try_echo=$ac_try;;
2194 esac
2195 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2196 $as_echo "$ac_try_echo"; } >&5
2197 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2198 ac_status=$?
2199 if test -s conftest.err; then
2200 grep -v '^ *+' conftest.err >conftest.er1
2201 cat conftest.er1 >&5
2202 mv -f conftest.er1 conftest.err
2204 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2205 test $ac_status = 0; } >/dev/null && {
2206 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2207 test ! -s conftest.err
2208 }; then :
2209 ac_retval=0
2210 else
2211 $as_echo "$as_me: failed program was:" >&5
2212 sed 's/^/| /' conftest.$ac_ext >&5
2214 ac_retval=1
2216 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2217 as_fn_set_status $ac_retval
2219 } # ac_fn_c_try_cpp
2221 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2222 # -------------------------------------------------------
2223 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2224 # the include files in INCLUDES and setting the cache variable VAR
2225 # accordingly.
2226 ac_fn_c_check_header_mongrel ()
2228 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2229 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2231 $as_echo_n "checking for $2... " >&6; }
2232 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2233 $as_echo_n "(cached) " >&6
2235 eval ac_res=\$$3
2236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2237 $as_echo "$ac_res" >&6; }
2238 else
2239 # Is the header compilable?
2240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2241 $as_echo_n "checking $2 usability... " >&6; }
2242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2243 /* end confdefs.h. */
2245 #include <$2>
2246 _ACEOF
2247 if ac_fn_c_try_compile "$LINENO"; then :
2248 ac_header_compiler=yes
2249 else
2250 ac_header_compiler=no
2252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2254 $as_echo "$ac_header_compiler" >&6; }
2256 # Is the header present?
2257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2258 $as_echo_n "checking $2 presence... " >&6; }
2259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2260 /* end confdefs.h. */
2261 #include <$2>
2262 _ACEOF
2263 if ac_fn_c_try_cpp "$LINENO"; then :
2264 ac_header_preproc=yes
2265 else
2266 ac_header_preproc=no
2268 rm -f conftest.err conftest.$ac_ext
2269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2270 $as_echo "$ac_header_preproc" >&6; }
2272 # So? What about this header?
2273 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2274 yes:no: )
2275 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2276 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2277 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2278 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2280 no:yes:* )
2281 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2282 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2283 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2284 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2285 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2286 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2287 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2288 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2289 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2290 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2292 esac
2293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2294 $as_echo_n "checking for $2... " >&6; }
2295 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2296 $as_echo_n "(cached) " >&6
2297 else
2298 eval "$3=\$ac_header_compiler"
2300 eval ac_res=\$$3
2301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2302 $as_echo "$ac_res" >&6; }
2304 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2306 } # ac_fn_c_check_header_mongrel
2308 # ac_fn_c_try_run LINENO
2309 # ----------------------
2310 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2311 # that executables *can* be run.
2312 ac_fn_c_try_run ()
2314 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2315 if { { ac_try="$ac_link"
2316 case "(($ac_try" in
2317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2318 *) ac_try_echo=$ac_try;;
2319 esac
2320 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2321 $as_echo "$ac_try_echo"; } >&5
2322 (eval "$ac_link") 2>&5
2323 ac_status=$?
2324 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2325 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2326 { { case "(($ac_try" in
2327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2328 *) ac_try_echo=$ac_try;;
2329 esac
2330 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2331 $as_echo "$ac_try_echo"; } >&5
2332 (eval "$ac_try") 2>&5
2333 ac_status=$?
2334 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2335 test $ac_status = 0; }; }; then :
2336 ac_retval=0
2337 else
2338 $as_echo "$as_me: program exited with status $ac_status" >&5
2339 $as_echo "$as_me: failed program was:" >&5
2340 sed 's/^/| /' conftest.$ac_ext >&5
2342 ac_retval=$ac_status
2344 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2345 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2346 as_fn_set_status $ac_retval
2348 } # ac_fn_c_try_run
2350 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2351 # -------------------------------------------------------
2352 # Tests whether HEADER exists and can be compiled using the include files in
2353 # INCLUDES, setting the cache variable VAR accordingly.
2354 ac_fn_c_check_header_compile ()
2356 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2358 $as_echo_n "checking for $2... " >&6; }
2359 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2360 $as_echo_n "(cached) " >&6
2361 else
2362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2363 /* end confdefs.h. */
2365 #include <$2>
2366 _ACEOF
2367 if ac_fn_c_try_compile "$LINENO"; then :
2368 eval "$3=yes"
2369 else
2370 eval "$3=no"
2372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2374 eval ac_res=\$$3
2375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2376 $as_echo "$ac_res" >&6; }
2377 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2379 } # ac_fn_c_check_header_compile
2381 # ac_fn_c_try_link LINENO
2382 # -----------------------
2383 # Try to link conftest.$ac_ext, and return whether this succeeded.
2384 ac_fn_c_try_link ()
2386 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2387 rm -f conftest.$ac_objext conftest$ac_exeext
2388 if { { ac_try="$ac_link"
2389 case "(($ac_try" in
2390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2391 *) ac_try_echo=$ac_try;;
2392 esac
2393 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2394 $as_echo "$ac_try_echo"; } >&5
2395 (eval "$ac_link") 2>conftest.err
2396 ac_status=$?
2397 if test -s conftest.err; then
2398 grep -v '^ *+' conftest.err >conftest.er1
2399 cat conftest.er1 >&5
2400 mv -f conftest.er1 conftest.err
2402 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2403 test $ac_status = 0; } && {
2404 test -z "$ac_c_werror_flag" ||
2405 test ! -s conftest.err
2406 } && test -s conftest$ac_exeext && {
2407 test "$cross_compiling" = yes ||
2408 $as_test_x conftest$ac_exeext
2409 }; then :
2410 ac_retval=0
2411 else
2412 $as_echo "$as_me: failed program was:" >&5
2413 sed 's/^/| /' conftest.$ac_ext >&5
2415 ac_retval=1
2417 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2418 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2419 # interfere with the next link command; also delete a directory that is
2420 # left behind by Apple's compiler. We do this before executing the actions.
2421 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2422 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2423 as_fn_set_status $ac_retval
2425 } # ac_fn_c_try_link
2427 # ac_fn_c_check_decl LINENO SYMBOL VAR
2428 # ------------------------------------
2429 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2430 ac_fn_c_check_decl ()
2432 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2434 $as_echo_n "checking whether $2 is declared... " >&6; }
2435 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2436 $as_echo_n "(cached) " >&6
2437 else
2438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2439 /* end confdefs.h. */
2442 main ()
2444 #ifndef $2
2445 (void) $2;
2446 #endif
2449 return 0;
2451 _ACEOF
2452 if ac_fn_c_try_compile "$LINENO"; then :
2453 eval "$3=yes"
2454 else
2455 eval "$3=no"
2457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2459 eval ac_res=\$$3
2460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2461 $as_echo "$ac_res" >&6; }
2462 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2464 } # ac_fn_c_check_decl
2466 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2467 # ----------------------------------------------
2468 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2469 ac_fn_c_check_header_preproc ()
2471 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2473 $as_echo_n "checking for $2... " >&6; }
2474 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2475 $as_echo_n "(cached) " >&6
2476 else
2477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2478 /* end confdefs.h. */
2479 #include <$2>
2480 _ACEOF
2481 if ac_fn_c_try_cpp "$LINENO"; then :
2482 eval "$3=yes"
2483 else
2484 eval "$3=no"
2486 rm -f conftest.err conftest.$ac_ext
2488 eval ac_res=\$$3
2489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2490 $as_echo "$ac_res" >&6; }
2491 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2493 } # ac_fn_c_check_header_preproc
2495 # ac_fn_c_check_func LINENO FUNC VAR
2496 # ----------------------------------
2497 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2498 ac_fn_c_check_func ()
2500 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2502 $as_echo_n "checking for $2... " >&6; }
2503 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2504 $as_echo_n "(cached) " >&6
2505 else
2506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2507 /* end confdefs.h. */
2508 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2509 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2510 #define $2 innocuous_$2
2512 /* System header to define __stub macros and hopefully few prototypes,
2513 which can conflict with char $2 (); below.
2514 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2515 <limits.h> exists even on freestanding compilers. */
2517 #ifdef __STDC__
2518 # include <limits.h>
2519 #else
2520 # include <assert.h>
2521 #endif
2523 #undef $2
2525 /* Override any GCC internal prototype to avoid an error.
2526 Use char because int might match the return type of a GCC
2527 builtin and then its argument prototype would still apply. */
2528 #ifdef __cplusplus
2529 extern "C"
2530 #endif
2531 char $2 ();
2532 /* The GNU C library defines this for functions which it implements
2533 to always fail with ENOSYS. Some functions are actually named
2534 something starting with __ and the normal name is an alias. */
2535 #if defined __stub_$2 || defined __stub___$2
2536 choke me
2537 #endif
2540 main ()
2542 return $2 ();
2544 return 0;
2546 _ACEOF
2547 if ac_fn_c_try_link "$LINENO"; then :
2548 eval "$3=yes"
2549 else
2550 eval "$3=no"
2552 rm -f core conftest.err conftest.$ac_objext \
2553 conftest$ac_exeext conftest.$ac_ext
2555 eval ac_res=\$$3
2556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2557 $as_echo "$ac_res" >&6; }
2558 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2560 } # ac_fn_c_check_func
2562 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2563 # ----------------------------------------------------
2564 # Tries to find if the field MEMBER exists in type AGGR, after including
2565 # INCLUDES, setting cache variable VAR accordingly.
2566 ac_fn_c_check_member ()
2568 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2570 $as_echo_n "checking for $2.$3... " >&6; }
2571 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2572 $as_echo_n "(cached) " >&6
2573 else
2574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2575 /* end confdefs.h. */
2578 main ()
2580 static $2 ac_aggr;
2581 if (ac_aggr.$3)
2582 return 0;
2584 return 0;
2586 _ACEOF
2587 if ac_fn_c_try_compile "$LINENO"; then :
2588 eval "$4=yes"
2589 else
2590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2591 /* end confdefs.h. */
2594 main ()
2596 static $2 ac_aggr;
2597 if (sizeof ac_aggr.$3)
2598 return 0;
2600 return 0;
2602 _ACEOF
2603 if ac_fn_c_try_compile "$LINENO"; then :
2604 eval "$4=yes"
2605 else
2606 eval "$4=no"
2608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2612 eval ac_res=\$$4
2613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2614 $as_echo "$ac_res" >&6; }
2615 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2617 } # ac_fn_c_check_member
2619 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2620 # -------------------------------------------
2621 # Tests whether TYPE exists after having included INCLUDES, setting cache
2622 # variable VAR accordingly.
2623 ac_fn_c_check_type ()
2625 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2627 $as_echo_n "checking for $2... " >&6; }
2628 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2629 $as_echo_n "(cached) " >&6
2630 else
2631 eval "$3=no"
2632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2633 /* end confdefs.h. */
2636 main ()
2638 if (sizeof ($2))
2639 return 0;
2641 return 0;
2643 _ACEOF
2644 if ac_fn_c_try_compile "$LINENO"; then :
2645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2646 /* end confdefs.h. */
2649 main ()
2651 if (sizeof (($2)))
2652 return 0;
2654 return 0;
2656 _ACEOF
2657 if ac_fn_c_try_compile "$LINENO"; then :
2659 else
2660 eval "$3=yes"
2662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2666 eval ac_res=\$$3
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2668 $as_echo "$ac_res" >&6; }
2669 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2671 } # ac_fn_c_check_type
2673 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2674 # --------------------------------------------
2675 # Tries to find the compile-time value of EXPR in a program that includes
2676 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2677 # computed
2678 ac_fn_c_compute_int ()
2680 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2681 if test "$cross_compiling" = yes; then
2682 # Depending upon the size, compute the lo and hi bounds.
2683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2684 /* end confdefs.h. */
2687 main ()
2689 static int test_array [1 - 2 * !(($2) >= 0)];
2690 test_array [0] = 0
2693 return 0;
2695 _ACEOF
2696 if ac_fn_c_try_compile "$LINENO"; then :
2697 ac_lo=0 ac_mid=0
2698 while :; do
2699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2700 /* end confdefs.h. */
2703 main ()
2705 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2706 test_array [0] = 0
2709 return 0;
2711 _ACEOF
2712 if ac_fn_c_try_compile "$LINENO"; then :
2713 ac_hi=$ac_mid; break
2714 else
2715 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2716 if test $ac_lo -le $ac_mid; then
2717 ac_lo= ac_hi=
2718 break
2720 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2723 done
2724 else
2725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2726 /* end confdefs.h. */
2729 main ()
2731 static int test_array [1 - 2 * !(($2) < 0)];
2732 test_array [0] = 0
2735 return 0;
2737 _ACEOF
2738 if ac_fn_c_try_compile "$LINENO"; then :
2739 ac_hi=-1 ac_mid=-1
2740 while :; do
2741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2742 /* end confdefs.h. */
2745 main ()
2747 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2748 test_array [0] = 0
2751 return 0;
2753 _ACEOF
2754 if ac_fn_c_try_compile "$LINENO"; then :
2755 ac_lo=$ac_mid; break
2756 else
2757 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2758 if test $ac_mid -le $ac_hi; then
2759 ac_lo= ac_hi=
2760 break
2762 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2765 done
2766 else
2767 ac_lo= ac_hi=
2769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2772 # Binary search between lo and hi bounds.
2773 while test "x$ac_lo" != "x$ac_hi"; do
2774 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2776 /* end confdefs.h. */
2779 main ()
2781 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2782 test_array [0] = 0
2785 return 0;
2787 _ACEOF
2788 if ac_fn_c_try_compile "$LINENO"; then :
2789 ac_hi=$ac_mid
2790 else
2791 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2794 done
2795 case $ac_lo in #((
2796 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2797 '') ac_retval=1 ;;
2798 esac
2799 else
2800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2801 /* end confdefs.h. */
2803 static long int longval () { return $2; }
2804 static unsigned long int ulongval () { return $2; }
2805 #include <stdio.h>
2806 #include <stdlib.h>
2808 main ()
2811 FILE *f = fopen ("conftest.val", "w");
2812 if (! f)
2813 return 1;
2814 if (($2) < 0)
2816 long int i = longval ();
2817 if (i != ($2))
2818 return 1;
2819 fprintf (f, "%ld", i);
2821 else
2823 unsigned long int i = ulongval ();
2824 if (i != ($2))
2825 return 1;
2826 fprintf (f, "%lu", i);
2828 /* Do not output a trailing newline, as this causes \r\n confusion
2829 on some platforms. */
2830 return ferror (f) || fclose (f) != 0;
2833 return 0;
2835 _ACEOF
2836 if ac_fn_c_try_run "$LINENO"; then :
2837 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2838 else
2839 ac_retval=1
2841 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2842 conftest.$ac_objext conftest.beam conftest.$ac_ext
2843 rm -f conftest.val
2846 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2847 as_fn_set_status $ac_retval
2849 } # ac_fn_c_compute_int
2850 cat >config.log <<_ACEOF
2851 This file contains any messages produced by compilers while
2852 running configure, to aid debugging if configure makes a mistake.
2854 It was created by emacs $as_me 24.1.50, which was
2855 generated by GNU Autoconf 2.65. Invocation command line was
2857 $ $0 $@
2859 _ACEOF
2860 exec 5>>config.log
2862 cat <<_ASUNAME
2863 ## --------- ##
2864 ## Platform. ##
2865 ## --------- ##
2867 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2868 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2869 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2870 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2871 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2873 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2874 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2876 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2877 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2878 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2879 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2880 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2881 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2882 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2884 _ASUNAME
2886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2887 for as_dir in $PATH
2889 IFS=$as_save_IFS
2890 test -z "$as_dir" && as_dir=.
2891 $as_echo "PATH: $as_dir"
2892 done
2893 IFS=$as_save_IFS
2895 } >&5
2897 cat >&5 <<_ACEOF
2900 ## ----------- ##
2901 ## Core tests. ##
2902 ## ----------- ##
2904 _ACEOF
2907 # Keep a trace of the command line.
2908 # Strip out --no-create and --no-recursion so they do not pile up.
2909 # Strip out --silent because we don't want to record it for future runs.
2910 # Also quote any args containing shell meta-characters.
2911 # Make two passes to allow for proper duplicate-argument suppression.
2912 ac_configure_args=
2913 ac_configure_args0=
2914 ac_configure_args1=
2915 ac_must_keep_next=false
2916 for ac_pass in 1 2
2918 for ac_arg
2920 case $ac_arg in
2921 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2922 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2923 | -silent | --silent | --silen | --sile | --sil)
2924 continue ;;
2925 *\'*)
2926 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2927 esac
2928 case $ac_pass in
2929 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2931 as_fn_append ac_configure_args1 " '$ac_arg'"
2932 if test $ac_must_keep_next = true; then
2933 ac_must_keep_next=false # Got value, back to normal.
2934 else
2935 case $ac_arg in
2936 *=* | --config-cache | -C | -disable-* | --disable-* \
2937 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2938 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2939 | -with-* | --with-* | -without-* | --without-* | --x)
2940 case "$ac_configure_args0 " in
2941 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2942 esac
2944 -* ) ac_must_keep_next=true ;;
2945 esac
2947 as_fn_append ac_configure_args " '$ac_arg'"
2949 esac
2950 done
2951 done
2952 { ac_configure_args0=; unset ac_configure_args0;}
2953 { ac_configure_args1=; unset ac_configure_args1;}
2955 # When interrupted or exit'd, cleanup temporary files, and complete
2956 # config.log. We remove comments because anyway the quotes in there
2957 # would cause problems or look ugly.
2958 # WARNING: Use '\'' to represent an apostrophe within the trap.
2959 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2960 trap 'exit_status=$?
2961 # Save into config.log some information that might help in debugging.
2963 echo
2965 cat <<\_ASBOX
2966 ## ---------------- ##
2967 ## Cache variables. ##
2968 ## ---------------- ##
2969 _ASBOX
2970 echo
2971 # The following way of writing the cache mishandles newlines in values,
2973 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2974 eval ac_val=\$$ac_var
2975 case $ac_val in #(
2976 *${as_nl}*)
2977 case $ac_var in #(
2978 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2979 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2980 esac
2981 case $ac_var in #(
2982 _ | IFS | as_nl) ;; #(
2983 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2984 *) { eval $ac_var=; unset $ac_var;} ;;
2985 esac ;;
2986 esac
2987 done
2988 (set) 2>&1 |
2989 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2990 *${as_nl}ac_space=\ *)
2991 sed -n \
2992 "s/'\''/'\''\\\\'\'''\''/g;
2993 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2994 ;; #(
2996 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2998 esac |
2999 sort
3001 echo
3003 cat <<\_ASBOX
3004 ## ----------------- ##
3005 ## Output variables. ##
3006 ## ----------------- ##
3007 _ASBOX
3008 echo
3009 for ac_var in $ac_subst_vars
3011 eval ac_val=\$$ac_var
3012 case $ac_val in
3013 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3014 esac
3015 $as_echo "$ac_var='\''$ac_val'\''"
3016 done | sort
3017 echo
3019 if test -n "$ac_subst_files"; then
3020 cat <<\_ASBOX
3021 ## ------------------- ##
3022 ## File substitutions. ##
3023 ## ------------------- ##
3024 _ASBOX
3025 echo
3026 for ac_var in $ac_subst_files
3028 eval ac_val=\$$ac_var
3029 case $ac_val in
3030 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3031 esac
3032 $as_echo "$ac_var='\''$ac_val'\''"
3033 done | sort
3034 echo
3037 if test -s confdefs.h; then
3038 cat <<\_ASBOX
3039 ## ----------- ##
3040 ## confdefs.h. ##
3041 ## ----------- ##
3042 _ASBOX
3043 echo
3044 cat confdefs.h
3045 echo
3047 test "$ac_signal" != 0 &&
3048 $as_echo "$as_me: caught signal $ac_signal"
3049 $as_echo "$as_me: exit $exit_status"
3050 } >&5
3051 rm -f core *.core core.conftest.* &&
3052 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3053 exit $exit_status
3055 for ac_signal in 1 2 13 15; do
3056 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3057 done
3058 ac_signal=0
3060 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3061 rm -f -r conftest* confdefs.h
3063 $as_echo "/* confdefs.h */" > confdefs.h
3065 # Predefined preprocessor variables.
3067 cat >>confdefs.h <<_ACEOF
3068 #define PACKAGE_NAME "$PACKAGE_NAME"
3069 _ACEOF
3071 cat >>confdefs.h <<_ACEOF
3072 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3073 _ACEOF
3075 cat >>confdefs.h <<_ACEOF
3076 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3077 _ACEOF
3079 cat >>confdefs.h <<_ACEOF
3080 #define PACKAGE_STRING "$PACKAGE_STRING"
3081 _ACEOF
3083 cat >>confdefs.h <<_ACEOF
3084 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3085 _ACEOF
3087 cat >>confdefs.h <<_ACEOF
3088 #define PACKAGE_URL "$PACKAGE_URL"
3089 _ACEOF
3092 # Let the site file select an alternate cache file if it wants to.
3093 # Prefer an explicitly selected file to automatically selected ones.
3094 ac_site_file1=NONE
3095 ac_site_file2=NONE
3096 if test -n "$CONFIG_SITE"; then
3097 ac_site_file1=$CONFIG_SITE
3098 elif test "x$prefix" != xNONE; then
3099 ac_site_file1=$prefix/share/config.site
3100 ac_site_file2=$prefix/etc/config.site
3101 else
3102 ac_site_file1=$ac_default_prefix/share/config.site
3103 ac_site_file2=$ac_default_prefix/etc/config.site
3105 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3107 test "x$ac_site_file" = xNONE && continue
3108 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3109 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3110 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3111 sed 's/^/| /' "$ac_site_file" >&5
3112 . "$ac_site_file"
3114 done
3116 if test -r "$cache_file"; then
3117 # Some versions of bash will fail to source /dev/null (special files
3118 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3119 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3120 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3121 $as_echo "$as_me: loading cache $cache_file" >&6;}
3122 case $cache_file in
3123 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3124 *) . "./$cache_file";;
3125 esac
3127 else
3128 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3129 $as_echo "$as_me: creating cache $cache_file" >&6;}
3130 >$cache_file
3133 as_fn_append ac_header_list " stdlib.h"
3134 as_fn_append ac_header_list " unistd.h"
3135 as_fn_append ac_header_list " sys/param.h"
3136 as_fn_append ac_func_list " readlinkat"
3137 gl_getopt_required=GNU
3138 as_fn_append ac_header_list " getopt.h"
3139 as_fn_append ac_header_list " wchar.h"
3140 as_fn_append ac_header_list " stdint.h"
3141 as_fn_append ac_header_list " inttypes.h"
3142 as_fn_append ac_func_list " lstat"
3143 as_fn_append ac_func_list " alarm"
3144 as_fn_append ac_func_list " pthread_sigmask"
3145 as_fn_append ac_func_list " readlink"
3146 as_fn_append ac_header_list " sys/socket.h"
3147 as_fn_append ac_func_list " tzset"
3148 as_fn_append ac_func_list " strtoimax"
3149 as_fn_append ac_func_list " strtoumax"
3150 as_fn_append ac_func_list " symlink"
3151 as_fn_append ac_header_list " sys/stat.h"
3152 as_fn_append ac_header_list " sys/time.h"
3153 as_fn_append ac_func_list " localtime_r"
3154 # Check that the precious variables saved in the cache have kept the same
3155 # value.
3156 ac_cache_corrupted=false
3157 for ac_var in $ac_precious_vars; do
3158 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3159 eval ac_new_set=\$ac_env_${ac_var}_set
3160 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3161 eval ac_new_val=\$ac_env_${ac_var}_value
3162 case $ac_old_set,$ac_new_set in
3163 set,)
3164 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3165 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3166 ac_cache_corrupted=: ;;
3167 ,set)
3168 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3169 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3170 ac_cache_corrupted=: ;;
3171 ,);;
3173 if test "x$ac_old_val" != "x$ac_new_val"; then
3174 # differences in whitespace do not lead to failure.
3175 ac_old_val_w=`echo x $ac_old_val`
3176 ac_new_val_w=`echo x $ac_new_val`
3177 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3178 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3179 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3180 ac_cache_corrupted=:
3181 else
3182 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3183 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3184 eval $ac_var=\$ac_old_val
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3187 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3188 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3189 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3190 fi;;
3191 esac
3192 # Pass precious variables to config.status.
3193 if test "$ac_new_set" = set; then
3194 case $ac_new_val in
3195 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3196 *) ac_arg=$ac_var=$ac_new_val ;;
3197 esac
3198 case " $ac_configure_args " in
3199 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3200 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3201 esac
3203 done
3204 if $ac_cache_corrupted; then
3205 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3206 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3208 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3209 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3211 ## -------------------- ##
3212 ## Main body of script. ##
3213 ## -------------------- ##
3215 ac_ext=c
3216 ac_cpp='$CPP $CPPFLAGS'
3217 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3218 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3219 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3222 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
3225 ac_aux_dir=
3226 for ac_dir in build-aux "$srcdir"/build-aux; do
3227 for ac_t in install-sh install.sh shtool; do
3228 if test -f "$ac_dir/$ac_t"; then
3229 ac_aux_dir=$ac_dir
3230 ac_install_sh="$ac_aux_dir/$ac_t -c"
3231 break 2
3233 done
3234 done
3235 if test -z "$ac_aux_dir"; then
3236 as_fn_error "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
3239 # These three variables are undocumented and unsupported,
3240 # and are intended to be withdrawn in a future Autoconf release.
3241 # They can cause serious problems if a builder's source tree is in a directory
3242 # whose full name contains unusual characters.
3243 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3244 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3245 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3248 am__api_version='1.11'
3250 # Find a good install program. We prefer a C program (faster),
3251 # so one script is as good as another. But avoid the broken or
3252 # incompatible versions:
3253 # SysV /etc/install, /usr/sbin/install
3254 # SunOS /usr/etc/install
3255 # IRIX /sbin/install
3256 # AIX /bin/install
3257 # AmigaOS /C/install, which installs bootblocks on floppy discs
3258 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3259 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3260 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3261 # OS/2's system install, which has a completely different semantic
3262 # ./install, which can be erroneously created by make from ./install.sh.
3263 # Reject install programs that cannot install multiple files.
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3265 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3266 if test -z "$INSTALL"; then
3267 if test "${ac_cv_path_install+set}" = set; then :
3268 $as_echo_n "(cached) " >&6
3269 else
3270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3271 for as_dir in $PATH
3273 IFS=$as_save_IFS
3274 test -z "$as_dir" && as_dir=.
3275 # Account for people who put trailing slashes in PATH elements.
3276 case $as_dir/ in #((
3277 ./ | .// | /[cC]/* | \
3278 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3279 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3280 /usr/ucb/* ) ;;
3282 # OSF1 and SCO ODT 3.0 have their own names for install.
3283 # Don't use installbsd from OSF since it installs stuff as root
3284 # by default.
3285 for ac_prog in ginstall scoinst install; do
3286 for ac_exec_ext in '' $ac_executable_extensions; do
3287 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3288 if test $ac_prog = install &&
3289 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3290 # AIX install. It has an incompatible calling convention.
3292 elif test $ac_prog = install &&
3293 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3294 # program-specific install script used by HP pwplus--don't use.
3296 else
3297 rm -rf conftest.one conftest.two conftest.dir
3298 echo one > conftest.one
3299 echo two > conftest.two
3300 mkdir conftest.dir
3301 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3302 test -s conftest.one && test -s conftest.two &&
3303 test -s conftest.dir/conftest.one &&
3304 test -s conftest.dir/conftest.two
3305 then
3306 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3307 break 3
3311 done
3312 done
3314 esac
3316 done
3317 IFS=$as_save_IFS
3319 rm -rf conftest.one conftest.two conftest.dir
3322 if test "${ac_cv_path_install+set}" = set; then
3323 INSTALL=$ac_cv_path_install
3324 else
3325 # As a last resort, use the slow shell script. Don't cache a
3326 # value for INSTALL within a source directory, because that will
3327 # break other packages using the cache if that directory is
3328 # removed, or if the value is a relative name.
3329 INSTALL=$ac_install_sh
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3333 $as_echo "$INSTALL" >&6; }
3335 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3336 # It thinks the first close brace ends the variable substitution.
3337 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3339 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3341 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3344 $as_echo_n "checking whether build environment is sane... " >&6; }
3345 # Just in case
3346 sleep 1
3347 echo timestamp > conftest.file
3348 # Reject unsafe characters in $srcdir or the absolute working directory
3349 # name. Accept space and tab only in the latter.
3350 am_lf='
3352 case `pwd` in
3353 *[\\\"\#\$\&\'\`$am_lf]*)
3354 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3355 esac
3356 case $srcdir in
3357 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3358 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3359 esac
3361 # Do `set' in a subshell so we don't clobber the current shell's
3362 # arguments. Must try -L first in case configure is actually a
3363 # symlink; some systems play weird games with the mod time of symlinks
3364 # (eg FreeBSD returns the mod time of the symlink's containing
3365 # directory).
3366 if (
3367 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3368 if test "$*" = "X"; then
3369 # -L didn't work.
3370 set X `ls -t "$srcdir/configure" conftest.file`
3372 rm -f conftest.file
3373 if test "$*" != "X $srcdir/configure conftest.file" \
3374 && test "$*" != "X conftest.file $srcdir/configure"; then
3376 # If neither matched, then we have a broken ls. This can happen
3377 # if, for instance, CONFIG_SHELL is bash and it inherits a
3378 # broken ls alias from the environment. This has actually
3379 # happened. Such a system could not be considered "sane".
3380 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3381 alias in your environment" "$LINENO" 5
3384 test "$2" = conftest.file
3386 then
3387 # Ok.
3389 else
3390 as_fn_error "newly created file is older than distributed files!
3391 Check your system clock" "$LINENO" 5
3393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3394 $as_echo "yes" >&6; }
3395 test "$program_prefix" != NONE &&
3396 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3397 # Use a double $ so make ignores it.
3398 test "$program_suffix" != NONE &&
3399 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3400 # Double any \ or $.
3401 # By default was `s,x,x', remove it if useless.
3402 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3403 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3405 # expand $ac_aux_dir to an absolute path
3406 am_aux_dir=`cd $ac_aux_dir && pwd`
3408 if test x"${MISSING+set}" != xset; then
3409 case $am_aux_dir in
3410 *\ * | *\ *)
3411 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3413 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3414 esac
3416 # Use eval to expand $SHELL
3417 if eval "$MISSING --run true"; then
3418 am_missing_run="$MISSING --run "
3419 else
3420 am_missing_run=
3421 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3422 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3425 if test x"${install_sh}" != xset; then
3426 case $am_aux_dir in
3427 *\ * | *\ *)
3428 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3430 install_sh="\${SHELL} $am_aux_dir/install-sh"
3431 esac
3434 # Installed binaries are usually stripped using `strip' when the user
3435 # run `make install-strip'. However `strip' might not be the right
3436 # tool to use in cross-compilation environments, therefore Automake
3437 # will honor the `STRIP' environment variable to overrule this program.
3438 if test "$cross_compiling" != no; then
3439 if test -n "$ac_tool_prefix"; then
3440 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3441 set dummy ${ac_tool_prefix}strip; ac_word=$2
3442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3443 $as_echo_n "checking for $ac_word... " >&6; }
3444 if test "${ac_cv_prog_STRIP+set}" = set; then :
3445 $as_echo_n "(cached) " >&6
3446 else
3447 if test -n "$STRIP"; then
3448 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3449 else
3450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3451 for as_dir in $PATH
3453 IFS=$as_save_IFS
3454 test -z "$as_dir" && as_dir=.
3455 for ac_exec_ext in '' $ac_executable_extensions; do
3456 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3457 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3459 break 2
3461 done
3462 done
3463 IFS=$as_save_IFS
3467 STRIP=$ac_cv_prog_STRIP
3468 if test -n "$STRIP"; then
3469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3470 $as_echo "$STRIP" >&6; }
3471 else
3472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3473 $as_echo "no" >&6; }
3478 if test -z "$ac_cv_prog_STRIP"; then
3479 ac_ct_STRIP=$STRIP
3480 # Extract the first word of "strip", so it can be a program name with args.
3481 set dummy strip; ac_word=$2
3482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3483 $as_echo_n "checking for $ac_word... " >&6; }
3484 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3485 $as_echo_n "(cached) " >&6
3486 else
3487 if test -n "$ac_ct_STRIP"; then
3488 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3489 else
3490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3491 for as_dir in $PATH
3493 IFS=$as_save_IFS
3494 test -z "$as_dir" && as_dir=.
3495 for ac_exec_ext in '' $ac_executable_extensions; do
3496 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3497 ac_cv_prog_ac_ct_STRIP="strip"
3498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3499 break 2
3501 done
3502 done
3503 IFS=$as_save_IFS
3507 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3508 if test -n "$ac_ct_STRIP"; then
3509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3510 $as_echo "$ac_ct_STRIP" >&6; }
3511 else
3512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3513 $as_echo "no" >&6; }
3516 if test "x$ac_ct_STRIP" = x; then
3517 STRIP=":"
3518 else
3519 case $cross_compiling:$ac_tool_warned in
3520 yes:)
3521 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3522 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3523 ac_tool_warned=yes ;;
3524 esac
3525 STRIP=$ac_ct_STRIP
3527 else
3528 STRIP="$ac_cv_prog_STRIP"
3532 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3535 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3536 if test -z "$MKDIR_P"; then
3537 if test "${ac_cv_path_mkdir+set}" = set; then :
3538 $as_echo_n "(cached) " >&6
3539 else
3540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3541 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3543 IFS=$as_save_IFS
3544 test -z "$as_dir" && as_dir=.
3545 for ac_prog in mkdir gmkdir; do
3546 for ac_exec_ext in '' $ac_executable_extensions; do
3547 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3548 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3549 'mkdir (GNU coreutils) '* | \
3550 'mkdir (coreutils) '* | \
3551 'mkdir (fileutils) '4.1*)
3552 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3553 break 3;;
3554 esac
3555 done
3556 done
3557 done
3558 IFS=$as_save_IFS
3562 test -d ./--version && rmdir ./--version
3563 if test "${ac_cv_path_mkdir+set}" = set; then
3564 MKDIR_P="$ac_cv_path_mkdir -p"
3565 else
3566 # As a last resort, use the slow shell script. Don't cache a
3567 # value for MKDIR_P within a source directory, because that will
3568 # break other packages using the cache if that directory is
3569 # removed, or if the value is a relative name.
3570 MKDIR_P="$ac_install_sh -d"
3573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3574 $as_echo "$MKDIR_P" >&6; }
3577 mkdir_p="$MKDIR_P"
3578 case $mkdir_p in
3579 [\\/$]* | ?:[\\/]*) ;;
3580 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3581 esac
3583 for ac_prog in gawk mawk nawk awk
3585 # Extract the first word of "$ac_prog", so it can be a program name with args.
3586 set dummy $ac_prog; ac_word=$2
3587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3588 $as_echo_n "checking for $ac_word... " >&6; }
3589 if test "${ac_cv_prog_AWK+set}" = set; then :
3590 $as_echo_n "(cached) " >&6
3591 else
3592 if test -n "$AWK"; then
3593 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3594 else
3595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3596 for as_dir in $PATH
3598 IFS=$as_save_IFS
3599 test -z "$as_dir" && as_dir=.
3600 for ac_exec_ext in '' $ac_executable_extensions; do
3601 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3602 ac_cv_prog_AWK="$ac_prog"
3603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3604 break 2
3606 done
3607 done
3608 IFS=$as_save_IFS
3612 AWK=$ac_cv_prog_AWK
3613 if test -n "$AWK"; then
3614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3615 $as_echo "$AWK" >&6; }
3616 else
3617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3618 $as_echo "no" >&6; }
3622 test -n "$AWK" && break
3623 done
3625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3626 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3627 set x ${MAKE-make}
3628 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3629 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3630 $as_echo_n "(cached) " >&6
3631 else
3632 cat >conftest.make <<\_ACEOF
3633 SHELL = /bin/sh
3634 all:
3635 @echo '@@@%%%=$(MAKE)=@@@%%%'
3636 _ACEOF
3637 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3638 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3639 *@@@%%%=?*=@@@%%%*)
3640 eval ac_cv_prog_make_${ac_make}_set=yes;;
3642 eval ac_cv_prog_make_${ac_make}_set=no;;
3643 esac
3644 rm -f conftest.make
3646 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3648 $as_echo "yes" >&6; }
3649 SET_MAKE=
3650 else
3651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3652 $as_echo "no" >&6; }
3653 SET_MAKE="MAKE=${MAKE-make}"
3656 rm -rf .tst 2>/dev/null
3657 mkdir .tst 2>/dev/null
3658 if test -d .tst; then
3659 am__leading_dot=.
3660 else
3661 am__leading_dot=_
3663 rmdir .tst 2>/dev/null
3665 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3666 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3667 # is not polluted with repeated "-I."
3668 am__isrc=' -I$(srcdir)'
3669 # test to see if srcdir already configured
3670 if test -f $srcdir/config.status; then
3671 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3675 # test whether we have cygpath
3676 if test -z "$CYGPATH_W"; then
3677 if (cygpath --version) >/dev/null 2>/dev/null; then
3678 CYGPATH_W='cygpath -w'
3679 else
3680 CYGPATH_W=echo
3685 # Define the identity of the package.
3686 PACKAGE='emacs'
3687 VERSION='24.1.50'
3690 cat >>confdefs.h <<_ACEOF
3691 #define PACKAGE "$PACKAGE"
3692 _ACEOF
3695 cat >>confdefs.h <<_ACEOF
3696 #define VERSION "$VERSION"
3697 _ACEOF
3699 # Some tools Automake needs.
3701 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3704 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3707 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3710 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3713 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3715 # We need awk for the "check" target. The system "awk" is bad on
3716 # some platforms.
3717 # Always define AMTAR for backward compatibility.
3719 AMTAR=${AMTAR-"${am_missing_run}tar"}
3721 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3730 lispdir='${datadir}/emacs/${version}/lisp'
3731 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
3732 '${datadir}/emacs/site-lisp'
3733 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
3734 etcdir='${datadir}/emacs/${version}/etc'
3735 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
3736 docdir='${datadir}/emacs/${version}/etc'
3737 gamedir='${localstatedir}/games/emacs'
3742 # Check whether --with-pop was given.
3743 if test "${with_pop+set}" = set; then :
3744 withval=$with_pop;
3745 else
3746 with_pop=yes
3749 if test "$with_pop" = yes; then
3750 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
3755 # Check whether --with-kerberos was given.
3756 if test "${with_kerberos+set}" = set; then :
3757 withval=$with_kerberos;
3758 else
3759 with_kerberos=no
3762 if test "$with_kerberos" != no; then
3763 $as_echo "#define KERBEROS 1" >>confdefs.h
3768 # Check whether --with-kerberos5 was given.
3769 if test "${with_kerberos5+set}" = set; then :
3770 withval=$with_kerberos5;
3771 else
3772 with_kerberos5=no
3775 if test "${with_kerberos5}" != no; then
3776 if test "${with_kerberos}" = no; then
3777 with_kerberos=yes
3778 $as_echo "#define KERBEROS 1" >>confdefs.h
3782 $as_echo "#define KERBEROS5 1" >>confdefs.h
3787 # Check whether --with-hesiod was given.
3788 if test "${with_hesiod+set}" = set; then :
3789 withval=$with_hesiod;
3790 else
3791 with_hesiod=no
3794 if test "$with_hesiod" != no; then
3796 $as_echo "#define HESIOD 1" >>confdefs.h
3801 # Check whether --with-mmdf was given.
3802 if test "${with_mmdf+set}" = set; then :
3803 withval=$with_mmdf;
3804 else
3805 with_mmdf=no
3808 if test "$with_mmdf" != no; then
3810 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
3815 # Check whether --with-mail-unlink was given.
3816 if test "${with_mail_unlink+set}" = set; then :
3817 withval=$with_mail_unlink;
3818 else
3819 with_mail_unlink=no
3822 if test "$with_mail_unlink" != no; then
3824 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
3829 # Check whether --with-mailhost was given.
3830 if test "${with_mailhost+set}" = set; then :
3831 withval=$with_mailhost;
3832 cat >>confdefs.h <<_ACEOF
3833 #define MAILHOST "$withval"
3834 _ACEOF
3840 # Check whether --with-sound was given.
3841 if test "${with_sound+set}" = set; then :
3842 withval=$with_sound;
3843 else
3844 with_sound=yes
3849 # Check whether --with-sync-input was given.
3850 if test "${with_sync_input+set}" = set; then :
3851 withval=$with_sync_input;
3852 else
3853 with_sync_input=yes
3856 if test "$with_sync_input" = yes; then
3858 $as_echo "#define SYNC_INPUT 1" >>confdefs.h
3863 # Check whether --with-x-toolkit was given.
3864 if test "${with_x_toolkit+set}" = set; then :
3865 withval=$with_x_toolkit; case "${withval}" in
3866 y | ye | yes ) val=gtk ;;
3867 n | no ) val=no ;;
3868 l | lu | luc | luci | lucid ) val=lucid ;;
3869 a | at | ath | athe | athen | athena ) val=athena ;;
3870 m | mo | mot | moti | motif ) val=motif ;;
3871 g | gt | gtk ) val=gtk ;;
3872 gtk3 ) val=gtk3 ;;
3874 as_fn_error "\`--with-x-toolkit=$withval' is invalid;
3875 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk' or
3876 \`gtk3'. \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." "$LINENO" 5
3878 esac
3879 with_x_toolkit=$val
3885 # Check whether --with-wide-int was given.
3886 if test "${with_wide_int+set}" = set; then :
3887 withval=$with_wide_int;
3888 else
3889 with_wide_int=no
3892 if test "$with_wide_int" = yes; then
3894 $as_echo "#define WIDE_EMACS_INT 1" >>confdefs.h
3899 # Check whether --with-xpm was given.
3900 if test "${with_xpm+set}" = set; then :
3901 withval=$with_xpm;
3902 else
3903 with_xpm=yes
3907 # Check whether --with-jpeg was given.
3908 if test "${with_jpeg+set}" = set; then :
3909 withval=$with_jpeg;
3910 else
3911 with_jpeg=yes
3915 # Check whether --with-tiff was given.
3916 if test "${with_tiff+set}" = set; then :
3917 withval=$with_tiff;
3918 else
3919 with_tiff=yes
3923 # Check whether --with-gif was given.
3924 if test "${with_gif+set}" = set; then :
3925 withval=$with_gif;
3926 else
3927 with_gif=yes
3931 # Check whether --with-png was given.
3932 if test "${with_png+set}" = set; then :
3933 withval=$with_png;
3934 else
3935 with_png=yes
3939 # Check whether --with-rsvg was given.
3940 if test "${with_rsvg+set}" = set; then :
3941 withval=$with_rsvg;
3942 else
3943 with_rsvg=yes
3947 # Check whether --with-xml2 was given.
3948 if test "${with_xml2+set}" = set; then :
3949 withval=$with_xml2;
3950 else
3951 with_xml2=yes
3955 # Check whether --with-imagemagick was given.
3956 if test "${with_imagemagick+set}" = set; then :
3957 withval=$with_imagemagick;
3958 else
3959 with_imagemagick=yes
3964 # Check whether --with-xft was given.
3965 if test "${with_xft+set}" = set; then :
3966 withval=$with_xft;
3967 else
3968 with_xft=yes
3972 # Check whether --with-libotf was given.
3973 if test "${with_libotf+set}" = set; then :
3974 withval=$with_libotf;
3975 else
3976 with_libotf=yes
3980 # Check whether --with-m17n-flt was given.
3981 if test "${with_m17n_flt+set}" = set; then :
3982 withval=$with_m17n_flt;
3983 else
3984 with_m17n_flt=yes
3989 # Check whether --with-toolkit-scroll-bars was given.
3990 if test "${with_toolkit_scroll_bars+set}" = set; then :
3991 withval=$with_toolkit_scroll_bars;
3992 else
3993 with_toolkit_scroll_bars=yes
3997 # Check whether --with-xaw3d was given.
3998 if test "${with_xaw3d+set}" = set; then :
3999 withval=$with_xaw3d;
4000 else
4001 with_xaw3d=yes
4005 # Check whether --with-xim was given.
4006 if test "${with_xim+set}" = set; then :
4007 withval=$with_xim;
4008 else
4009 with_xim=yes
4013 # Check whether --with-ns was given.
4014 if test "${with_ns+set}" = set; then :
4015 withval=$with_ns;
4016 else
4017 with_ns=no
4022 # Check whether --with-gpm was given.
4023 if test "${with_gpm+set}" = set; then :
4024 withval=$with_gpm;
4025 else
4026 with_gpm=yes
4030 # Check whether --with-dbus was given.
4031 if test "${with_dbus+set}" = set; then :
4032 withval=$with_dbus;
4033 else
4034 with_dbus=yes
4038 # Check whether --with-gconf was given.
4039 if test "${with_gconf+set}" = set; then :
4040 withval=$with_gconf;
4041 else
4042 with_gconf=yes
4046 # Check whether --with-gsettings was given.
4047 if test "${with_gsettings+set}" = set; then :
4048 withval=$with_gsettings;
4049 else
4050 with_gsettings=yes
4054 # Check whether --with-selinux was given.
4055 if test "${with_selinux+set}" = set; then :
4056 withval=$with_selinux;
4057 else
4058 with_selinux=yes
4062 # Check whether --with-gnutls was given.
4063 if test "${with_gnutls+set}" = set; then :
4064 withval=$with_gnutls;
4065 else
4066 with_gnutls=yes
4070 ## For the times when you want to build Emacs but don't have
4071 ## a suitable makeinfo, and can live without the manuals.
4073 # Check whether --with-makeinfo was given.
4074 if test "${with_makeinfo+set}" = set; then :
4075 withval=$with_makeinfo;
4076 else
4077 with_makeinfo=yes
4081 ## Makefile.in needs the cache file name.
4084 ## This is an option because I do not know if all info/man support
4085 ## compressed files, nor how to test if they do so.
4087 # Check whether --with-compress-info was given.
4088 if test "${with_compress_info+set}" = set; then :
4089 withval=$with_compress_info;
4090 else
4091 with_compress_info=yes
4094 if test $with_compress_info = yes; then
4095 GZIP_INFO=yes
4096 else
4097 GZIP_INFO=
4102 # Check whether --with-pkg-config-prog was given.
4103 if test "${with_pkg_config_prog+set}" = set; then :
4104 withval=$with_pkg_config_prog;
4107 if test "X${with_pkg_config_prog}" != X; then
4108 if test "${with_pkg_config_prog}" != yes; then
4109 PKG_CONFIG="${with_pkg_config_prog}"
4113 CRT_DIR=
4115 # Check whether --with-crt-dir was given.
4116 if test "${with_crt_dir+set}" = set; then :
4117 withval=$with_crt_dir;
4120 CRT_DIR="${with_crt_dir}"
4123 # Check whether --with-gameuser was given.
4124 if test "${with_gameuser+set}" = set; then :
4125 withval=$with_gameuser;
4128 test "X${with_gameuser}" != X && test "${with_gameuser}" != yes \
4129 && gameuser="${with_gameuser}"
4130 test "X$gameuser" = X && gameuser=games
4133 # Check whether --with-gnustep-conf was given.
4134 if test "${with_gnustep_conf+set}" = set; then :
4135 withval=$with_gnustep_conf;
4138 test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
4139 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
4140 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
4141 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
4143 # Check whether --enable-ns-self-contained was given.
4144 if test "${enable_ns_self_contained+set}" = set; then :
4145 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
4146 else
4147 EN_NS_SELF_CONTAINED=yes
4151 # Check whether --enable-asserts was given.
4152 if test "${enable_asserts+set}" = set; then :
4153 enableval=$enable_asserts; USE_XASSERTS=$enableval
4154 else
4155 USE_XASSERTS=no
4159 # Check whether --enable-maintainer-mode was given.
4160 if test "${enable_maintainer_mode+set}" = set; then :
4161 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4162 else
4163 USE_MAINTAINER_MODE=yes
4166 if test $USE_MAINTAINER_MODE = yes; then
4167 MAINT=
4168 else
4169 MAINT=#
4173 # Check whether --enable-locallisppath was given.
4174 if test "${enable_locallisppath+set}" = set; then :
4175 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
4176 locallisppath=
4177 elif test "${enableval}" != "yes"; then
4178 locallisppath=${enableval}
4183 # Check whether --enable-checking was given.
4184 if test "${enable_checking+set}" = set; then :
4185 enableval=$enable_checking; ac_checking_flags="${enableval}"
4188 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
4189 for check in $ac_checking_flags
4191 case $check in
4192 # these set all the flags to specific states
4193 yes) ac_enable_checking=1 ;;
4194 no) ac_enable_checking= ;
4195 ac_gc_check_stringbytes= ;
4196 ac_gc_check_string_overrun= ;
4197 ac_gc_check_string_free_list= ;
4198 ac_xmalloc_overrun= ;
4199 ac_gc_check_cons_list= ;;
4200 all) ac_enable_checking=1 ;
4201 ac_gc_check_stringbytes=1 ;
4202 ac_gc_check_string_overrun=1 ;
4203 ac_gc_check_string_free_list=1 ;
4204 ac_xmalloc_overrun=1 ;
4205 ac_gc_check_cons_list=1 ;;
4206 # these enable particular checks
4207 stringbytes) ac_gc_check_stringbytes=1 ;;
4208 stringoverrun) ac_gc_check_string_overrun=1 ;;
4209 stringfreelist) ac_gc_check_string_free_list=1 ;;
4210 xmallocoverrun) ac_xmalloc_overrun=1 ;;
4211 conslist) ac_gc_check_cons_list=1 ;;
4212 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
4213 esac
4214 done
4215 IFS="$ac_save_IFS"
4217 if test x$ac_enable_checking != x ; then
4219 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
4222 if test x$ac_gc_check_stringbytes != x ; then
4224 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
4227 if test x$ac_gc_check_string_overrun != x ; then
4229 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
4232 if test x$ac_gc_check_string_free_list != x ; then
4234 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
4237 if test x$ac_xmalloc_overrun != x ; then
4239 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
4242 if test x$ac_gc_check_cons_list != x ; then
4244 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
4248 # Check whether --enable-use-lisp-union-type was given.
4249 if test "${enable_use_lisp_union_type+set}" = set; then :
4250 enableval=$enable_use_lisp_union_type; if test "${enableval}" != "no"; then
4252 $as_echo "#define USE_LISP_UNION_TYPE 1" >>confdefs.h
4259 # Check whether --enable-profiling was given.
4260 if test "${enable_profiling+set}" = set; then :
4261 enableval=$enable_profiling; ac_enable_profiling="${enableval}"
4264 if test x$ac_enable_profiling != x ; then
4265 PROFILING_CFLAGS="-DPROFILING=1 -pg"
4266 else
4267 PROFILING_CFLAGS=
4271 # Check whether --enable-autodepend was given.
4272 if test "${enable_autodepend+set}" = set; then :
4273 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}"
4274 else
4275 ac_enable_autodepend=yes
4279 #### Make srcdir absolute, if it isn't already. It's important to
4280 #### avoid running the path through pwd unnecessarily, since pwd can
4281 #### give you automounter prefixes, which can go away. We do all this
4282 #### so Emacs can find its files when run uninstalled.
4283 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
4284 unset CDPATH
4285 case "${srcdir}" in
4286 /* ) ;;
4288 ## We may be able to use the $PWD environment variable to make this
4289 ## absolute. But sometimes PWD is inaccurate.
4290 ## Note: we used to use ${PWD} at the end instead of `pwd`,
4291 ## but that tested only for a well-formed and valid PWD,
4292 ## it did not object when PWD was well-formed and valid but just wrong.
4293 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
4294 then
4295 srcdir="$PWD"
4296 else
4297 srcdir="`(cd ${srcdir}; pwd)`"
4300 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
4301 esac
4303 #### Given the configuration name, set machfile and opsysfile to the
4304 #### names of the m/*.h and s/*.h files we should use.
4306 ### Canonicalize the configuration name.
4308 # Make sure we can run config.sub.
4309 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4310 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4313 $as_echo_n "checking build system type... " >&6; }
4314 if test "${ac_cv_build+set}" = set; then :
4315 $as_echo_n "(cached) " >&6
4316 else
4317 ac_build_alias=$build_alias
4318 test "x$ac_build_alias" = x &&
4319 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4320 test "x$ac_build_alias" = x &&
4321 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4322 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4323 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4327 $as_echo "$ac_cv_build" >&6; }
4328 case $ac_cv_build in
4329 *-*-*) ;;
4330 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4331 esac
4332 build=$ac_cv_build
4333 ac_save_IFS=$IFS; IFS='-'
4334 set x $ac_cv_build
4335 shift
4336 build_cpu=$1
4337 build_vendor=$2
4338 shift; shift
4339 # Remember, the first character of IFS is used to create $*,
4340 # except with old shells:
4341 build_os=$*
4342 IFS=$ac_save_IFS
4343 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4347 $as_echo_n "checking host system type... " >&6; }
4348 if test "${ac_cv_host+set}" = set; then :
4349 $as_echo_n "(cached) " >&6
4350 else
4351 if test "x$host_alias" = x; then
4352 ac_cv_host=$ac_cv_build
4353 else
4354 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4355 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4360 $as_echo "$ac_cv_host" >&6; }
4361 case $ac_cv_host in
4362 *-*-*) ;;
4363 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4364 esac
4365 host=$ac_cv_host
4366 ac_save_IFS=$IFS; IFS='-'
4367 set x $ac_cv_host
4368 shift
4369 host_cpu=$1
4370 host_vendor=$2
4371 shift; shift
4372 # Remember, the first character of IFS is used to create $*,
4373 # except with old shells:
4374 host_os=$*
4375 IFS=$ac_save_IFS
4376 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4379 canonical=$host
4380 configuration=${host_alias-${build_alias-$host}}
4384 ### If you add support for a new configuration, add code to this
4385 ### switch statement to recognize your configuration name and select
4386 ### the appropriate operating system and machine description files.
4388 ### You would hope that you could choose an m/*.h file pretty much
4389 ### based on the machine portion of the configuration name, and an s/*.h
4390 ### file based on the operating system portion. However, it turns out
4391 ### that each m/*.h file is pretty manufacturer-specific - for
4392 ### example mips.h is MIPS
4393 ### So we basically have to have a special case for each
4394 ### configuration name.
4396 ### As far as handling version numbers on operating systems is
4397 ### concerned, make sure things will fail in a fixable way. If
4398 ### /etc/MACHINES doesn't say anything about version numbers, be
4399 ### prepared to handle anything reasonably. If version numbers
4400 ### matter, be sure /etc/MACHINES says something about it.
4402 machine='' opsys='' unported=no
4403 case "${canonical}" in
4405 ## GNU/Linux and similar ports
4406 *-*-linux* )
4407 opsys=gnu-linux
4408 case ${canonical} in
4409 alpha*) machine=alpha ;;
4410 s390x-*) machine=ibms390x ;;
4411 powerpc*) machine=macppc ;;
4412 sparc*) machine=sparc ;;
4413 ia64*) machine=ia64 ;;
4414 m68k*) machine=m68k ;;
4415 x86_64*) machine=amdx86-64 ;;
4416 esac
4419 ## FreeBSD ports
4420 *-*-freebsd* )
4421 opsys=freebsd
4422 case "${canonical}" in
4423 alpha*) machine=alpha ;;
4424 amd64-*|x86_64-*) machine=amdx86-64 ;;
4425 ia64-*) machine=ia64 ;;
4426 i[3456]86-*) machine=intel386 ;;
4427 powerpc-*) machine=macppc ;;
4428 sparc-*) machine=sparc ;;
4429 sparc64-*) machine=sparc ;;
4430 esac
4433 ## FreeBSD kernel + glibc based userland
4434 *-*-kfreebsd*gnu* )
4435 opsys=gnu-kfreebsd
4436 case "${canonical}" in
4437 alpha*) machine=alpha ;;
4438 amd64-*|x86_64-*) machine=amdx86-64 ;;
4439 ia64-*) machine=ia64 ;;
4440 i[3456]86-*) machine=intel386 ;;
4441 powerpc-*) machine=macppc ;;
4442 sparc-*) machine=sparc ;;
4443 sparc64-*) machine=sparc ;;
4444 esac
4447 ## NetBSD ports
4448 *-*-netbsd* )
4449 opsys=netbsd
4450 case "${canonical}" in
4451 alpha*) machine=alpha ;;
4452 x86_64-*) machine=amdx86-64 ;;
4453 i[3456]86-*) machine=intel386 ;;
4454 m68k-*) machine=m68k ;;
4455 powerpc-*) machine=macppc ;;
4456 sparc*-) machine=sparc ;;
4457 vax-*) machine=vax ;;
4458 esac
4461 ## OpenBSD ports
4462 *-*-openbsd* )
4463 opsys=openbsd
4464 case "${canonical}" in
4465 alpha*) machine=alpha ;;
4466 x86_64-*) machine=amdx86-64 ;;
4467 i386-*) machine=intel386 ;;
4468 powerpc-*) machine=macppc ;;
4469 sparc*) machine=sparc ;;
4470 vax-*) machine=vax ;;
4471 esac
4474 ## Apple Darwin / Mac OS X
4475 *-apple-darwin* )
4476 case "${canonical}" in
4477 i[3456]86-* ) machine=intel386 ;;
4478 powerpc-* ) machine=macppc ;;
4479 x86_64-* ) machine=amdx86-64 ;;
4480 * ) unported=yes ;;
4481 esac
4482 opsys=darwin
4483 # Define CPP as follows to make autoconf work correctly.
4484 CPP="${CC-cc} -E -no-cpp-precomp"
4485 # Use fink packages if available.
4486 if test -d /sw/include && test -d /sw/lib; then
4487 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
4488 CPP="${CPP} ${GCC_TEST_OPTIONS}"
4489 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
4493 ## HP 9000 series 700 and 800, running HP/UX
4494 hppa*-hp-hpux10.2* )
4495 opsys=hpux10-20
4497 hppa*-hp-hpux1[1-9]* )
4498 opsys=hpux11
4499 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
4502 ## IBM machines
4503 rs6000-ibm-aix4.[23]* )
4504 machine=ibmrs6000 opsys=aix4-2
4506 powerpc-ibm-aix4.[23]* )
4507 machine=ibmrs6000 opsys=aix4-2
4509 rs6000-ibm-aix[56]* )
4510 machine=ibmrs6000 opsys=aix4-2
4512 powerpc-ibm-aix[56]* )
4513 machine=ibmrs6000 opsys=aix4-2
4516 ## Silicon Graphics machines
4517 ## Iris 4D
4518 mips-sgi-irix6.5 )
4519 opsys=irix6-5
4520 # Without defining _LANGUAGE_C, things get masked out in the headers
4521 # so that, for instance, grepping for `free' in stdlib.h fails and
4522 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
4523 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
4524 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
4527 ## Suns
4528 *-sun-solaris* \
4529 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* \
4530 | x86_64-*-solaris2* | x86_64-*-sunos5*)
4531 case "${canonical}" in
4532 i[3456]86-*-* ) machine=intel386 ;;
4533 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
4534 sparc* ) machine=sparc ;;
4535 * ) unported=yes ;;
4536 esac
4537 case "${canonical}" in
4538 *-sunos5.6* | *-solaris2.6* )
4539 opsys=sol2-6
4540 NON_GNU_CPP=/usr/ccs/lib/cpp
4541 RANLIB="ar -ts"
4543 *-sunos5.[7-9]* | *-solaris2.[7-9]* )
4544 opsys=sol2-6
4545 emacs_check_sunpro_c=yes
4546 NON_GNU_CPP=/usr/ccs/lib/cpp
4548 *-sunos5* | *-solaris* )
4549 opsys=sol2-10
4550 emacs_check_sunpro_c=yes
4551 NON_GNU_CPP=/usr/ccs/lib/cpp
4553 esac
4554 ## Watch out for a compiler that we know will not work.
4555 case "${canonical}" in
4556 *-solaris* | *-sunos5* )
4557 if [ "x$CC" = x/usr/ucb/cc ]; then
4558 ## /usr/ucb/cc doesn't work;
4559 ## we should find some other compiler that does work.
4560 unset CC
4563 *) ;;
4564 esac
4567 ## Intel 386 machines where we don't care about the manufacturer.
4568 i[3456]86-*-* )
4569 machine=intel386
4570 case "${canonical}" in
4571 *-cygwin ) opsys=cygwin ;;
4572 *-darwin* ) opsys=darwin
4573 CPP="${CC-cc} -E -no-cpp-precomp"
4575 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
4576 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
4577 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
4578 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
4579 esac
4583 unported=yes
4585 esac
4587 ### If the code above didn't choose an operating system, just choose
4588 ### an operating system based on the configuration name. You really
4589 ### only want to use this when you have no idea what the right
4590 ### operating system is; if you know what operating systems a machine
4591 ### runs, it's cleaner to make it explicit in the case statement
4592 ### above.
4593 if test x"${opsys}" = x; then
4594 case "${canonical}" in
4595 *-gnu* ) opsys=gnu ;;
4597 unported=yes
4599 esac
4604 if test $unported = yes; then
4605 as_fn_error "Emacs hasn't been ported to \`${canonical}' systems.
4606 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
4609 if test -n "$machine"; then
4610 machfile="m/${machine}.h"
4611 else
4612 machfile=
4614 opsysfile="s/${opsys}.h"
4617 #### Choose a compiler.
4618 test -n "$CC" && cc_specified=yes
4620 # Save the value of CFLAGS that the user specified.
4621 SPECIFIED_CFLAGS="$CFLAGS"
4623 ac_ext=c
4624 ac_cpp='$CPP $CPPFLAGS'
4625 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4626 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4627 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4628 if test -n "$ac_tool_prefix"; then
4629 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4630 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4632 $as_echo_n "checking for $ac_word... " >&6; }
4633 if test "${ac_cv_prog_CC+set}" = set; then :
4634 $as_echo_n "(cached) " >&6
4635 else
4636 if test -n "$CC"; then
4637 ac_cv_prog_CC="$CC" # Let the user override the test.
4638 else
4639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4640 for as_dir in $PATH
4642 IFS=$as_save_IFS
4643 test -z "$as_dir" && as_dir=.
4644 for ac_exec_ext in '' $ac_executable_extensions; do
4645 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4646 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4648 break 2
4650 done
4651 done
4652 IFS=$as_save_IFS
4656 CC=$ac_cv_prog_CC
4657 if test -n "$CC"; then
4658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4659 $as_echo "$CC" >&6; }
4660 else
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4662 $as_echo "no" >&6; }
4667 if test -z "$ac_cv_prog_CC"; then
4668 ac_ct_CC=$CC
4669 # Extract the first word of "gcc", so it can be a program name with args.
4670 set dummy gcc; ac_word=$2
4671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4672 $as_echo_n "checking for $ac_word... " >&6; }
4673 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4674 $as_echo_n "(cached) " >&6
4675 else
4676 if test -n "$ac_ct_CC"; then
4677 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4678 else
4679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4680 for as_dir in $PATH
4682 IFS=$as_save_IFS
4683 test -z "$as_dir" && as_dir=.
4684 for ac_exec_ext in '' $ac_executable_extensions; do
4685 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4686 ac_cv_prog_ac_ct_CC="gcc"
4687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4688 break 2
4690 done
4691 done
4692 IFS=$as_save_IFS
4696 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4697 if test -n "$ac_ct_CC"; then
4698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4699 $as_echo "$ac_ct_CC" >&6; }
4700 else
4701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4702 $as_echo "no" >&6; }
4705 if test "x$ac_ct_CC" = x; then
4706 CC=""
4707 else
4708 case $cross_compiling:$ac_tool_warned in
4709 yes:)
4710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4711 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4712 ac_tool_warned=yes ;;
4713 esac
4714 CC=$ac_ct_CC
4716 else
4717 CC="$ac_cv_prog_CC"
4720 if test -z "$CC"; then
4721 if test -n "$ac_tool_prefix"; then
4722 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4723 set dummy ${ac_tool_prefix}cc; ac_word=$2
4724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4725 $as_echo_n "checking for $ac_word... " >&6; }
4726 if test "${ac_cv_prog_CC+set}" = set; then :
4727 $as_echo_n "(cached) " >&6
4728 else
4729 if test -n "$CC"; then
4730 ac_cv_prog_CC="$CC" # Let the user override the test.
4731 else
4732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4733 for as_dir in $PATH
4735 IFS=$as_save_IFS
4736 test -z "$as_dir" && as_dir=.
4737 for ac_exec_ext in '' $ac_executable_extensions; do
4738 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4739 ac_cv_prog_CC="${ac_tool_prefix}cc"
4740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4741 break 2
4743 done
4744 done
4745 IFS=$as_save_IFS
4749 CC=$ac_cv_prog_CC
4750 if test -n "$CC"; then
4751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4752 $as_echo "$CC" >&6; }
4753 else
4754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4755 $as_echo "no" >&6; }
4761 if test -z "$CC"; then
4762 # Extract the first word of "cc", so it can be a program name with args.
4763 set dummy cc; ac_word=$2
4764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4765 $as_echo_n "checking for $ac_word... " >&6; }
4766 if test "${ac_cv_prog_CC+set}" = set; then :
4767 $as_echo_n "(cached) " >&6
4768 else
4769 if test -n "$CC"; then
4770 ac_cv_prog_CC="$CC" # Let the user override the test.
4771 else
4772 ac_prog_rejected=no
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 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4781 ac_prog_rejected=yes
4782 continue
4784 ac_cv_prog_CC="cc"
4785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4786 break 2
4788 done
4789 done
4790 IFS=$as_save_IFS
4792 if test $ac_prog_rejected = yes; then
4793 # We found a bogon in the path, so make sure we never use it.
4794 set dummy $ac_cv_prog_CC
4795 shift
4796 if test $# != 0; then
4797 # We chose a different compiler from the bogus one.
4798 # However, it has the same basename, so the bogon will be chosen
4799 # first if we set CC to just the basename; use the full file name.
4800 shift
4801 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4806 CC=$ac_cv_prog_CC
4807 if test -n "$CC"; then
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4809 $as_echo "$CC" >&6; }
4810 else
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4812 $as_echo "no" >&6; }
4817 if test -z "$CC"; then
4818 if test -n "$ac_tool_prefix"; then
4819 for ac_prog in cl.exe
4821 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4822 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4824 $as_echo_n "checking for $ac_word... " >&6; }
4825 if test "${ac_cv_prog_CC+set}" = set; then :
4826 $as_echo_n "(cached) " >&6
4827 else
4828 if test -n "$CC"; then
4829 ac_cv_prog_CC="$CC" # Let the user override the test.
4830 else
4831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4832 for as_dir in $PATH
4834 IFS=$as_save_IFS
4835 test -z "$as_dir" && as_dir=.
4836 for ac_exec_ext in '' $ac_executable_extensions; do
4837 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4838 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4840 break 2
4842 done
4843 done
4844 IFS=$as_save_IFS
4848 CC=$ac_cv_prog_CC
4849 if test -n "$CC"; then
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4851 $as_echo "$CC" >&6; }
4852 else
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4854 $as_echo "no" >&6; }
4858 test -n "$CC" && break
4859 done
4861 if test -z "$CC"; then
4862 ac_ct_CC=$CC
4863 for ac_prog in cl.exe
4865 # Extract the first word of "$ac_prog", so it can be a program name with args.
4866 set dummy $ac_prog; ac_word=$2
4867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4868 $as_echo_n "checking for $ac_word... " >&6; }
4869 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4870 $as_echo_n "(cached) " >&6
4871 else
4872 if test -n "$ac_ct_CC"; then
4873 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4874 else
4875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4876 for as_dir in $PATH
4878 IFS=$as_save_IFS
4879 test -z "$as_dir" && as_dir=.
4880 for ac_exec_ext in '' $ac_executable_extensions; do
4881 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4882 ac_cv_prog_ac_ct_CC="$ac_prog"
4883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4884 break 2
4886 done
4887 done
4888 IFS=$as_save_IFS
4892 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4893 if test -n "$ac_ct_CC"; then
4894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4895 $as_echo "$ac_ct_CC" >&6; }
4896 else
4897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4898 $as_echo "no" >&6; }
4902 test -n "$ac_ct_CC" && break
4903 done
4905 if test "x$ac_ct_CC" = x; then
4906 CC=""
4907 else
4908 case $cross_compiling:$ac_tool_warned in
4909 yes:)
4910 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4911 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4912 ac_tool_warned=yes ;;
4913 esac
4914 CC=$ac_ct_CC
4921 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4922 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4923 as_fn_error "no acceptable C compiler found in \$PATH
4924 See \`config.log' for more details." "$LINENO" 5; }
4926 # Provide some information about the compiler.
4927 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4928 set X $ac_compile
4929 ac_compiler=$2
4930 for ac_option in --version -v -V -qversion; do
4931 { { ac_try="$ac_compiler $ac_option >&5"
4932 case "(($ac_try" in
4933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4934 *) ac_try_echo=$ac_try;;
4935 esac
4936 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4937 $as_echo "$ac_try_echo"; } >&5
4938 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4939 ac_status=$?
4940 if test -s conftest.err; then
4941 sed '10a\
4942 ... rest of stderr output deleted ...
4943 10q' conftest.err >conftest.er1
4944 cat conftest.er1 >&5
4946 rm -f conftest.er1 conftest.err
4947 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4948 test $ac_status = 0; }
4949 done
4951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4952 /* end confdefs.h. */
4955 main ()
4959 return 0;
4961 _ACEOF
4962 ac_clean_files_save=$ac_clean_files
4963 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4964 # Try to create an executable without -o first, disregard a.out.
4965 # It will help us diagnose broken compilers, and finding out an intuition
4966 # of exeext.
4967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4968 $as_echo_n "checking whether the C compiler works... " >&6; }
4969 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4971 # The possible output files:
4972 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4974 ac_rmfiles=
4975 for ac_file in $ac_files
4977 case $ac_file in
4978 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4979 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4980 esac
4981 done
4982 rm -f $ac_rmfiles
4984 if { { ac_try="$ac_link_default"
4985 case "(($ac_try" in
4986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4987 *) ac_try_echo=$ac_try;;
4988 esac
4989 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4990 $as_echo "$ac_try_echo"; } >&5
4991 (eval "$ac_link_default") 2>&5
4992 ac_status=$?
4993 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4994 test $ac_status = 0; }; then :
4995 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4996 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4997 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4998 # so that the user can short-circuit this test for compilers unknown to
4999 # Autoconf.
5000 for ac_file in $ac_files ''
5002 test -f "$ac_file" || continue
5003 case $ac_file in
5004 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
5006 [ab].out )
5007 # We found the default executable, but exeext='' is most
5008 # certainly right.
5009 break;;
5010 *.* )
5011 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
5012 then :; else
5013 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5015 # We set ac_cv_exeext here because the later test for it is not
5016 # safe: cross compilers may not add the suffix if given an `-o'
5017 # argument, so we may need to know it at that point already.
5018 # Even if this section looks crufty: it has the advantage of
5019 # actually working.
5020 break;;
5022 break;;
5023 esac
5024 done
5025 test "$ac_cv_exeext" = no && ac_cv_exeext=
5027 else
5028 ac_file=''
5030 if test -z "$ac_file"; then :
5031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5032 $as_echo "no" >&6; }
5033 $as_echo "$as_me: failed program was:" >&5
5034 sed 's/^/| /' conftest.$ac_ext >&5
5036 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5037 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5038 { as_fn_set_status 77
5039 as_fn_error "C compiler cannot create executables
5040 See \`config.log' for more details." "$LINENO" 5; }; }
5041 else
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5043 $as_echo "yes" >&6; }
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5046 $as_echo_n "checking for C compiler default output file name... " >&6; }
5047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5048 $as_echo "$ac_file" >&6; }
5049 ac_exeext=$ac_cv_exeext
5051 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
5052 ac_clean_files=$ac_clean_files_save
5053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5054 $as_echo_n "checking for suffix of executables... " >&6; }
5055 if { { ac_try="$ac_link"
5056 case "(($ac_try" in
5057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5058 *) ac_try_echo=$ac_try;;
5059 esac
5060 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5061 $as_echo "$ac_try_echo"; } >&5
5062 (eval "$ac_link") 2>&5
5063 ac_status=$?
5064 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5065 test $ac_status = 0; }; then :
5066 # If both `conftest.exe' and `conftest' are `present' (well, observable)
5067 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
5068 # work properly (i.e., refer to `conftest.exe'), while it won't with
5069 # `rm'.
5070 for ac_file in conftest.exe conftest conftest.*; do
5071 test -f "$ac_file" || continue
5072 case $ac_file in
5073 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5074 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5075 break;;
5076 * ) break;;
5077 esac
5078 done
5079 else
5080 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5081 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5082 as_fn_error "cannot compute suffix of executables: cannot compile and link
5083 See \`config.log' for more details." "$LINENO" 5; }
5085 rm -f conftest conftest$ac_cv_exeext
5086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5087 $as_echo "$ac_cv_exeext" >&6; }
5089 rm -f conftest.$ac_ext
5090 EXEEXT=$ac_cv_exeext
5091 ac_exeext=$EXEEXT
5092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5093 /* end confdefs.h. */
5094 #include <stdio.h>
5096 main ()
5098 FILE *f = fopen ("conftest.out", "w");
5099 return ferror (f) || fclose (f) != 0;
5102 return 0;
5104 _ACEOF
5105 ac_clean_files="$ac_clean_files conftest.out"
5106 # Check that the compiler produces executables we can run. If not, either
5107 # the compiler is broken, or we cross compile.
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5109 $as_echo_n "checking whether we are cross compiling... " >&6; }
5110 if test "$cross_compiling" != yes; then
5111 { { ac_try="$ac_link"
5112 case "(($ac_try" in
5113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5114 *) ac_try_echo=$ac_try;;
5115 esac
5116 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5117 $as_echo "$ac_try_echo"; } >&5
5118 (eval "$ac_link") 2>&5
5119 ac_status=$?
5120 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5121 test $ac_status = 0; }
5122 if { ac_try='./conftest$ac_cv_exeext'
5123 { { case "(($ac_try" in
5124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5125 *) ac_try_echo=$ac_try;;
5126 esac
5127 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5128 $as_echo "$ac_try_echo"; } >&5
5129 (eval "$ac_try") 2>&5
5130 ac_status=$?
5131 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5132 test $ac_status = 0; }; }; then
5133 cross_compiling=no
5134 else
5135 if test "$cross_compiling" = maybe; then
5136 cross_compiling=yes
5137 else
5138 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5139 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5140 as_fn_error "cannot run C compiled programs.
5141 If you meant to cross compile, use \`--host'.
5142 See \`config.log' for more details." "$LINENO" 5; }
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5147 $as_echo "$cross_compiling" >&6; }
5149 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5150 ac_clean_files=$ac_clean_files_save
5151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5152 $as_echo_n "checking for suffix of object files... " >&6; }
5153 if test "${ac_cv_objext+set}" = set; then :
5154 $as_echo_n "(cached) " >&6
5155 else
5156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5157 /* end confdefs.h. */
5160 main ()
5164 return 0;
5166 _ACEOF
5167 rm -f conftest.o conftest.obj
5168 if { { ac_try="$ac_compile"
5169 case "(($ac_try" in
5170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5171 *) ac_try_echo=$ac_try;;
5172 esac
5173 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5174 $as_echo "$ac_try_echo"; } >&5
5175 (eval "$ac_compile") 2>&5
5176 ac_status=$?
5177 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5178 test $ac_status = 0; }; then :
5179 for ac_file in conftest.o conftest.obj conftest.*; do
5180 test -f "$ac_file" || continue;
5181 case $ac_file in
5182 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5183 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5184 break;;
5185 esac
5186 done
5187 else
5188 $as_echo "$as_me: failed program was:" >&5
5189 sed 's/^/| /' conftest.$ac_ext >&5
5191 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5192 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5193 as_fn_error "cannot compute suffix of object files: cannot compile
5194 See \`config.log' for more details." "$LINENO" 5; }
5196 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5199 $as_echo "$ac_cv_objext" >&6; }
5200 OBJEXT=$ac_cv_objext
5201 ac_objext=$OBJEXT
5202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5203 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5204 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5205 $as_echo_n "(cached) " >&6
5206 else
5207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5208 /* end confdefs.h. */
5211 main ()
5213 #ifndef __GNUC__
5214 choke me
5215 #endif
5218 return 0;
5220 _ACEOF
5221 if ac_fn_c_try_compile "$LINENO"; then :
5222 ac_compiler_gnu=yes
5223 else
5224 ac_compiler_gnu=no
5226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5227 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5231 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5232 if test $ac_compiler_gnu = yes; then
5233 GCC=yes
5234 else
5235 GCC=
5237 ac_test_CFLAGS=${CFLAGS+set}
5238 ac_save_CFLAGS=$CFLAGS
5239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5240 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5241 if test "${ac_cv_prog_cc_g+set}" = set; then :
5242 $as_echo_n "(cached) " >&6
5243 else
5244 ac_save_c_werror_flag=$ac_c_werror_flag
5245 ac_c_werror_flag=yes
5246 ac_cv_prog_cc_g=no
5247 CFLAGS="-g"
5248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5249 /* end confdefs.h. */
5252 main ()
5256 return 0;
5258 _ACEOF
5259 if ac_fn_c_try_compile "$LINENO"; then :
5260 ac_cv_prog_cc_g=yes
5261 else
5262 CFLAGS=""
5263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5264 /* end confdefs.h. */
5267 main ()
5271 return 0;
5273 _ACEOF
5274 if ac_fn_c_try_compile "$LINENO"; then :
5276 else
5277 ac_c_werror_flag=$ac_save_c_werror_flag
5278 CFLAGS="-g"
5279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5280 /* end confdefs.h. */
5283 main ()
5287 return 0;
5289 _ACEOF
5290 if ac_fn_c_try_compile "$LINENO"; then :
5291 ac_cv_prog_cc_g=yes
5293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5298 ac_c_werror_flag=$ac_save_c_werror_flag
5300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5301 $as_echo "$ac_cv_prog_cc_g" >&6; }
5302 if test "$ac_test_CFLAGS" = set; then
5303 CFLAGS=$ac_save_CFLAGS
5304 elif test $ac_cv_prog_cc_g = yes; then
5305 if test "$GCC" = yes; then
5306 CFLAGS="-g -O2"
5307 else
5308 CFLAGS="-g"
5310 else
5311 if test "$GCC" = yes; then
5312 CFLAGS="-O2"
5313 else
5314 CFLAGS=
5317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5318 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5319 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5320 $as_echo_n "(cached) " >&6
5321 else
5322 ac_cv_prog_cc_c89=no
5323 ac_save_CC=$CC
5324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5325 /* end confdefs.h. */
5326 #include <stdarg.h>
5327 #include <stdio.h>
5328 #include <sys/types.h>
5329 #include <sys/stat.h>
5330 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5331 struct buf { int x; };
5332 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5333 static char *e (p, i)
5334 char **p;
5335 int i;
5337 return p[i];
5339 static char *f (char * (*g) (char **, int), char **p, ...)
5341 char *s;
5342 va_list v;
5343 va_start (v,p);
5344 s = g (p, va_arg (v,int));
5345 va_end (v);
5346 return s;
5349 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5350 function prototypes and stuff, but not '\xHH' hex character constants.
5351 These don't provoke an error unfortunately, instead are silently treated
5352 as 'x'. The following induces an error, until -std is added to get
5353 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5354 array size at least. It's necessary to write '\x00'==0 to get something
5355 that's true only with -std. */
5356 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5358 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5359 inside strings and character constants. */
5360 #define FOO(x) 'x'
5361 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5363 int test (int i, double x);
5364 struct s1 {int (*f) (int a);};
5365 struct s2 {int (*f) (double a);};
5366 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5367 int argc;
5368 char **argv;
5370 main ()
5372 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5374 return 0;
5376 _ACEOF
5377 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5378 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5380 CC="$ac_save_CC $ac_arg"
5381 if ac_fn_c_try_compile "$LINENO"; then :
5382 ac_cv_prog_cc_c89=$ac_arg
5384 rm -f core conftest.err conftest.$ac_objext
5385 test "x$ac_cv_prog_cc_c89" != "xno" && break
5386 done
5387 rm -f conftest.$ac_ext
5388 CC=$ac_save_CC
5391 # AC_CACHE_VAL
5392 case "x$ac_cv_prog_cc_c89" in
5394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5395 $as_echo "none needed" >&6; } ;;
5396 xno)
5397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5398 $as_echo "unsupported" >&6; } ;;
5400 CC="$CC $ac_cv_prog_cc_c89"
5401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5402 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5403 esac
5404 if test "x$ac_cv_prog_cc_c89" != xno; then :
5408 ac_ext=c
5409 ac_cpp='$CPP $CPPFLAGS'
5410 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5411 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5412 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5413 DEPDIR="${am__leading_dot}deps"
5415 ac_config_commands="$ac_config_commands depfiles"
5418 am_make=${MAKE-make}
5419 cat > confinc << 'END'
5420 am__doit:
5421 @echo this is the am__doit target
5422 .PHONY: am__doit
5424 # If we don't find an include directive, just comment out the code.
5425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5426 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5427 am__include="#"
5428 am__quote=
5429 _am_result=none
5430 # First try GNU make style include.
5431 echo "include confinc" > confmf
5432 # Ignore all kinds of additional output from `make'.
5433 case `$am_make -s -f confmf 2> /dev/null` in #(
5434 *the\ am__doit\ target*)
5435 am__include=include
5436 am__quote=
5437 _am_result=GNU
5439 esac
5440 # Now try BSD make style include.
5441 if test "$am__include" = "#"; then
5442 echo '.include "confinc"' > confmf
5443 case `$am_make -s -f confmf 2> /dev/null` in #(
5444 *the\ am__doit\ target*)
5445 am__include=.include
5446 am__quote="\""
5447 _am_result=BSD
5449 esac
5453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5454 $as_echo "$_am_result" >&6; }
5455 rm -f confinc confmf
5457 # Check whether --enable-dependency-tracking was given.
5458 if test "${enable_dependency_tracking+set}" = set; then :
5459 enableval=$enable_dependency_tracking;
5462 if test "x$enable_dependency_tracking" != xno; then
5463 am_depcomp="$ac_aux_dir/depcomp"
5464 AMDEPBACKSLASH='\'
5466 if test "x$enable_dependency_tracking" != xno; then
5467 AMDEP_TRUE=
5468 AMDEP_FALSE='#'
5469 else
5470 AMDEP_TRUE='#'
5471 AMDEP_FALSE=
5476 depcc="$CC" am_compiler_list=
5478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5479 $as_echo_n "checking dependency style of $depcc... " >&6; }
5480 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5481 $as_echo_n "(cached) " >&6
5482 else
5483 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5484 # We make a subdir and do the tests there. Otherwise we can end up
5485 # making bogus files that we don't know about and never remove. For
5486 # instance it was reported that on HP-UX the gcc test will end up
5487 # making a dummy file named `D' -- because `-MD' means `put the output
5488 # in D'.
5489 mkdir conftest.dir
5490 # Copy depcomp to subdir because otherwise we won't find it if we're
5491 # using a relative directory.
5492 cp "$am_depcomp" conftest.dir
5493 cd conftest.dir
5494 # We will build objects and dependencies in a subdirectory because
5495 # it helps to detect inapplicable dependency modes. For instance
5496 # both Tru64's cc and ICC support -MD to output dependencies as a
5497 # side effect of compilation, but ICC will put the dependencies in
5498 # the current directory while Tru64 will put them in the object
5499 # directory.
5500 mkdir sub
5502 am_cv_CC_dependencies_compiler_type=none
5503 if test "$am_compiler_list" = ""; then
5504 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5506 am__universal=false
5507 case " $depcc " in #(
5508 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5509 esac
5511 for depmode in $am_compiler_list; do
5512 # Setup a source with many dependencies, because some compilers
5513 # like to wrap large dependency lists on column 80 (with \), and
5514 # we should not choose a depcomp mode which is confused by this.
5516 # We need to recreate these files for each test, as the compiler may
5517 # overwrite some of them when testing with obscure command lines.
5518 # This happens at least with the AIX C compiler.
5519 : > sub/conftest.c
5520 for i in 1 2 3 4 5 6; do
5521 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5522 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5523 # Solaris 8's {/usr,}/bin/sh.
5524 touch sub/conftst$i.h
5525 done
5526 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5528 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5529 # mode. It turns out that the SunPro C++ compiler does not properly
5530 # handle `-M -o', and we need to detect this. Also, some Intel
5531 # versions had trouble with output in subdirs
5532 am__obj=sub/conftest.${OBJEXT-o}
5533 am__minus_obj="-o $am__obj"
5534 case $depmode in
5535 gcc)
5536 # This depmode causes a compiler race in universal mode.
5537 test "$am__universal" = false || continue
5539 nosideeffect)
5540 # after this tag, mechanisms are not by side-effect, so they'll
5541 # only be used when explicitly requested
5542 if test "x$enable_dependency_tracking" = xyes; then
5543 continue
5544 else
5545 break
5548 msvisualcpp | msvcmsys)
5549 # This compiler won't grok `-c -o', but also, the minuso test has
5550 # not run yet. These depmodes are late enough in the game, and
5551 # so weak that their functioning should not be impacted.
5552 am__obj=conftest.${OBJEXT-o}
5553 am__minus_obj=
5555 none) break ;;
5556 esac
5557 if depmode=$depmode \
5558 source=sub/conftest.c object=$am__obj \
5559 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5560 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5561 >/dev/null 2>conftest.err &&
5562 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5563 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5564 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5565 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5566 # icc doesn't choke on unknown options, it will just issue warnings
5567 # or remarks (even with -Werror). So we grep stderr for any message
5568 # that says an option was ignored or not supported.
5569 # When given -MP, icc 7.0 and 7.1 complain thusly:
5570 # icc: Command line warning: ignoring option '-M'; no argument required
5571 # The diagnosis changed in icc 8.0:
5572 # icc: Command line remark: option '-MP' not supported
5573 if (grep 'ignoring option' conftest.err ||
5574 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5575 am_cv_CC_dependencies_compiler_type=$depmode
5576 break
5579 done
5581 cd ..
5582 rm -rf conftest.dir
5583 else
5584 am_cv_CC_dependencies_compiler_type=none
5588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5589 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5590 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5593 test "x$enable_dependency_tracking" != xno \
5594 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5595 am__fastdepCC_TRUE=
5596 am__fastdepCC_FALSE='#'
5597 else
5598 am__fastdepCC_TRUE='#'
5599 am__fastdepCC_FALSE=
5603 if test "x$CC" != xcc; then
5604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5605 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5606 else
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5608 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5610 set dummy $CC; ac_cc=`$as_echo "$2" |
5611 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5612 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
5613 $as_echo_n "(cached) " >&6
5614 else
5615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5616 /* end confdefs.h. */
5619 main ()
5623 return 0;
5625 _ACEOF
5626 # Make sure it works both with $CC and with simple cc.
5627 # We do the test twice because some compilers refuse to overwrite an
5628 # existing .o file with -o, though they will create one.
5629 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5630 rm -f conftest2.*
5631 if { { case "(($ac_try" in
5632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5633 *) ac_try_echo=$ac_try;;
5634 esac
5635 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5636 $as_echo "$ac_try_echo"; } >&5
5637 (eval "$ac_try") 2>&5
5638 ac_status=$?
5639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5640 test $ac_status = 0; } &&
5641 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5643 *) ac_try_echo=$ac_try;;
5644 esac
5645 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5646 $as_echo "$ac_try_echo"; } >&5
5647 (eval "$ac_try") 2>&5
5648 ac_status=$?
5649 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5650 test $ac_status = 0; };
5651 then
5652 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5653 if test "x$CC" != xcc; then
5654 # Test first that cc exists at all.
5655 if { ac_try='cc -c conftest.$ac_ext >&5'
5656 { { case "(($ac_try" in
5657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5658 *) ac_try_echo=$ac_try;;
5659 esac
5660 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5661 $as_echo "$ac_try_echo"; } >&5
5662 (eval "$ac_try") 2>&5
5663 ac_status=$?
5664 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5665 test $ac_status = 0; }; }; then
5666 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5667 rm -f conftest2.*
5668 if { { case "(($ac_try" in
5669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5670 *) ac_try_echo=$ac_try;;
5671 esac
5672 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5673 $as_echo "$ac_try_echo"; } >&5
5674 (eval "$ac_try") 2>&5
5675 ac_status=$?
5676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5677 test $ac_status = 0; } &&
5678 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5680 *) ac_try_echo=$ac_try;;
5681 esac
5682 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5683 $as_echo "$ac_try_echo"; } >&5
5684 (eval "$ac_try") 2>&5
5685 ac_status=$?
5686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5687 test $ac_status = 0; };
5688 then
5689 # cc works too.
5691 else
5692 # cc exists but doesn't like -o.
5693 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5697 else
5698 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5700 rm -f core conftest*
5703 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5705 $as_echo "yes" >&6; }
5706 else
5707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5708 $as_echo "no" >&6; }
5710 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5714 # FIXME: we rely on the cache variable name because
5715 # there is no other way.
5716 set dummy $CC
5717 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5718 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5719 if test "$am_t" != yes; then
5720 # Losing compiler, so override with the script.
5721 # FIXME: It is wrong to rewrite CC.
5722 # But if we don't then we get into trouble of one sort or another.
5723 # A longer-term fix would be to have automake use am__CC in this case,
5724 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5725 CC="$am_aux_dir/compile $CC"
5730 # Initialize gnulib right after verifying that the C compiler works.
5732 ac_ext=c
5733 ac_cpp='$CPP $CPPFLAGS'
5734 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5735 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5736 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5738 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5739 # On Suns, sometimes $CPP names a directory.
5740 if test -n "$CPP" && test -d "$CPP"; then
5741 CPP=
5743 if test -z "$CPP"; then
5744 if test "${ac_cv_prog_CPP+set}" = set; then :
5745 $as_echo_n "(cached) " >&6
5746 else
5747 # Double quotes because CPP needs to be expanded
5748 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5750 ac_preproc_ok=false
5751 for ac_c_preproc_warn_flag in '' yes
5753 # Use a header file that comes with gcc, so configuring glibc
5754 # with a fresh cross-compiler works.
5755 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5756 # <limits.h> exists even on freestanding compilers.
5757 # On the NeXT, cc -E runs the code through the compiler's parser,
5758 # not just through cpp. "Syntax error" is here to catch this case.
5759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5760 /* end confdefs.h. */
5761 #ifdef __STDC__
5762 # include <limits.h>
5763 #else
5764 # include <assert.h>
5765 #endif
5766 Syntax error
5767 _ACEOF
5768 if ac_fn_c_try_cpp "$LINENO"; then :
5770 else
5771 # Broken: fails on valid input.
5772 continue
5774 rm -f conftest.err conftest.$ac_ext
5776 # OK, works on sane cases. Now check whether nonexistent headers
5777 # can be detected and how.
5778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5779 /* end confdefs.h. */
5780 #include <ac_nonexistent.h>
5781 _ACEOF
5782 if ac_fn_c_try_cpp "$LINENO"; then :
5783 # Broken: success on invalid input.
5784 continue
5785 else
5786 # Passes both tests.
5787 ac_preproc_ok=:
5788 break
5790 rm -f conftest.err conftest.$ac_ext
5792 done
5793 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5794 rm -f conftest.err conftest.$ac_ext
5795 if $ac_preproc_ok; then :
5796 break
5799 done
5800 ac_cv_prog_CPP=$CPP
5803 CPP=$ac_cv_prog_CPP
5804 else
5805 ac_cv_prog_CPP=$CPP
5807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5808 $as_echo "$CPP" >&6; }
5809 ac_preproc_ok=false
5810 for ac_c_preproc_warn_flag in '' yes
5812 # Use a header file that comes with gcc, so configuring glibc
5813 # with a fresh cross-compiler works.
5814 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5815 # <limits.h> exists even on freestanding compilers.
5816 # On the NeXT, cc -E runs the code through the compiler's parser,
5817 # not just through cpp. "Syntax error" is here to catch this case.
5818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5819 /* end confdefs.h. */
5820 #ifdef __STDC__
5821 # include <limits.h>
5822 #else
5823 # include <assert.h>
5824 #endif
5825 Syntax error
5826 _ACEOF
5827 if ac_fn_c_try_cpp "$LINENO"; then :
5829 else
5830 # Broken: fails on valid input.
5831 continue
5833 rm -f conftest.err conftest.$ac_ext
5835 # OK, works on sane cases. Now check whether nonexistent headers
5836 # can be detected and how.
5837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5838 /* end confdefs.h. */
5839 #include <ac_nonexistent.h>
5840 _ACEOF
5841 if ac_fn_c_try_cpp "$LINENO"; then :
5842 # Broken: success on invalid input.
5843 continue
5844 else
5845 # Passes both tests.
5846 ac_preproc_ok=:
5847 break
5849 rm -f conftest.err conftest.$ac_ext
5851 done
5852 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5853 rm -f conftest.err conftest.$ac_ext
5854 if $ac_preproc_ok; then :
5856 else
5857 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5858 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5859 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5860 See \`config.log' for more details." "$LINENO" 5; }
5863 ac_ext=c
5864 ac_cpp='$CPP $CPPFLAGS'
5865 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5866 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5867 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5871 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5872 if test "${ac_cv_path_GREP+set}" = set; then :
5873 $as_echo_n "(cached) " >&6
5874 else
5875 if test -z "$GREP"; then
5876 ac_path_GREP_found=false
5877 # Loop through the user's path and test for each of PROGNAME-LIST
5878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5879 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5881 IFS=$as_save_IFS
5882 test -z "$as_dir" && as_dir=.
5883 for ac_prog in grep ggrep; do
5884 for ac_exec_ext in '' $ac_executable_extensions; do
5885 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5886 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5887 # Check for GNU ac_path_GREP and select it if it is found.
5888 # Check for GNU $ac_path_GREP
5889 case `"$ac_path_GREP" --version 2>&1` in
5890 *GNU*)
5891 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5893 ac_count=0
5894 $as_echo_n 0123456789 >"conftest.in"
5895 while :
5897 cat "conftest.in" "conftest.in" >"conftest.tmp"
5898 mv "conftest.tmp" "conftest.in"
5899 cp "conftest.in" "conftest.nl"
5900 $as_echo 'GREP' >> "conftest.nl"
5901 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5902 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5903 as_fn_arith $ac_count + 1 && ac_count=$as_val
5904 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5905 # Best one so far, save it but keep looking for a better one
5906 ac_cv_path_GREP="$ac_path_GREP"
5907 ac_path_GREP_max=$ac_count
5909 # 10*(2^10) chars as input seems more than enough
5910 test $ac_count -gt 10 && break
5911 done
5912 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5913 esac
5915 $ac_path_GREP_found && break 3
5916 done
5917 done
5918 done
5919 IFS=$as_save_IFS
5920 if test -z "$ac_cv_path_GREP"; then
5921 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5923 else
5924 ac_cv_path_GREP=$GREP
5928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5929 $as_echo "$ac_cv_path_GREP" >&6; }
5930 GREP="$ac_cv_path_GREP"
5933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5934 $as_echo_n "checking for egrep... " >&6; }
5935 if test "${ac_cv_path_EGREP+set}" = set; then :
5936 $as_echo_n "(cached) " >&6
5937 else
5938 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5939 then ac_cv_path_EGREP="$GREP -E"
5940 else
5941 if test -z "$EGREP"; then
5942 ac_path_EGREP_found=false
5943 # Loop through the user's path and test for each of PROGNAME-LIST
5944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5945 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5947 IFS=$as_save_IFS
5948 test -z "$as_dir" && as_dir=.
5949 for ac_prog in egrep; do
5950 for ac_exec_ext in '' $ac_executable_extensions; do
5951 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5952 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5953 # Check for GNU ac_path_EGREP and select it if it is found.
5954 # Check for GNU $ac_path_EGREP
5955 case `"$ac_path_EGREP" --version 2>&1` in
5956 *GNU*)
5957 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5959 ac_count=0
5960 $as_echo_n 0123456789 >"conftest.in"
5961 while :
5963 cat "conftest.in" "conftest.in" >"conftest.tmp"
5964 mv "conftest.tmp" "conftest.in"
5965 cp "conftest.in" "conftest.nl"
5966 $as_echo 'EGREP' >> "conftest.nl"
5967 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5968 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5969 as_fn_arith $ac_count + 1 && ac_count=$as_val
5970 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5971 # Best one so far, save it but keep looking for a better one
5972 ac_cv_path_EGREP="$ac_path_EGREP"
5973 ac_path_EGREP_max=$ac_count
5975 # 10*(2^10) chars as input seems more than enough
5976 test $ac_count -gt 10 && break
5977 done
5978 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5979 esac
5981 $ac_path_EGREP_found && break 3
5982 done
5983 done
5984 done
5985 IFS=$as_save_IFS
5986 if test -z "$ac_cv_path_EGREP"; then
5987 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5989 else
5990 ac_cv_path_EGREP=$EGREP
5995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5996 $as_echo "$ac_cv_path_EGREP" >&6; }
5997 EGREP="$ac_cv_path_EGREP"
6002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
6003 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
6004 if test "${gl_cv_c_amsterdam_compiler+set}" = set; then :
6005 $as_echo_n "(cached) " >&6
6006 else
6008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6009 /* end confdefs.h. */
6011 #ifdef __ACK__
6012 Amsterdam
6013 #endif
6015 _ACEOF
6016 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6017 $EGREP "Amsterdam" >/dev/null 2>&1; then :
6018 gl_cv_c_amsterdam_compiler=yes
6019 else
6020 gl_cv_c_amsterdam_compiler=no
6022 rm -f conftest*
6026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
6027 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
6028 if test -z "$AR"; then
6029 if test $gl_cv_c_amsterdam_compiler = yes; then
6030 AR='cc -c.a'
6031 if test -z "$ARFLAGS"; then
6032 ARFLAGS='-o'
6034 else
6035 if test -n "$ac_tool_prefix"; then
6036 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6037 set dummy ${ac_tool_prefix}ar; ac_word=$2
6038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6039 $as_echo_n "checking for $ac_word... " >&6; }
6040 if test "${ac_cv_prog_AR+set}" = set; then :
6041 $as_echo_n "(cached) " >&6
6042 else
6043 if test -n "$AR"; then
6044 ac_cv_prog_AR="$AR" # Let the user override the test.
6045 else
6046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6047 for as_dir in $PATH
6049 IFS=$as_save_IFS
6050 test -z "$as_dir" && as_dir=.
6051 for ac_exec_ext in '' $ac_executable_extensions; do
6052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6053 ac_cv_prog_AR="${ac_tool_prefix}ar"
6054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6055 break 2
6057 done
6058 done
6059 IFS=$as_save_IFS
6063 AR=$ac_cv_prog_AR
6064 if test -n "$AR"; then
6065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6066 $as_echo "$AR" >&6; }
6067 else
6068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6069 $as_echo "no" >&6; }
6074 if test -z "$ac_cv_prog_AR"; then
6075 ac_ct_AR=$AR
6076 # Extract the first word of "ar", so it can be a program name with args.
6077 set dummy ar; ac_word=$2
6078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6079 $as_echo_n "checking for $ac_word... " >&6; }
6080 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6081 $as_echo_n "(cached) " >&6
6082 else
6083 if test -n "$ac_ct_AR"; then
6084 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6085 else
6086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6087 for as_dir in $PATH
6089 IFS=$as_save_IFS
6090 test -z "$as_dir" && as_dir=.
6091 for ac_exec_ext in '' $ac_executable_extensions; do
6092 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6093 ac_cv_prog_ac_ct_AR="ar"
6094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6095 break 2
6097 done
6098 done
6099 IFS=$as_save_IFS
6103 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6104 if test -n "$ac_ct_AR"; then
6105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6106 $as_echo "$ac_ct_AR" >&6; }
6107 else
6108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6109 $as_echo "no" >&6; }
6112 if test "x$ac_ct_AR" = x; then
6113 AR="ar"
6114 else
6115 case $cross_compiling:$ac_tool_warned in
6116 yes:)
6117 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6118 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6119 ac_tool_warned=yes ;;
6120 esac
6121 AR=$ac_ct_AR
6123 else
6124 AR="$ac_cv_prog_AR"
6127 if test -z "$ARFLAGS"; then
6128 ARFLAGS='cru'
6131 else
6132 if test -z "$ARFLAGS"; then
6133 ARFLAGS='cru'
6138 if test -z "$RANLIB"; then
6139 if test $gl_cv_c_amsterdam_compiler = yes; then
6140 RANLIB=':'
6141 else
6142 if test -n "$ac_tool_prefix"; then
6143 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6144 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6146 $as_echo_n "checking for $ac_word... " >&6; }
6147 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6148 $as_echo_n "(cached) " >&6
6149 else
6150 if test -n "$RANLIB"; then
6151 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6152 else
6153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6154 for as_dir in $PATH
6156 IFS=$as_save_IFS
6157 test -z "$as_dir" && as_dir=.
6158 for ac_exec_ext in '' $ac_executable_extensions; do
6159 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6160 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6162 break 2
6164 done
6165 done
6166 IFS=$as_save_IFS
6170 RANLIB=$ac_cv_prog_RANLIB
6171 if test -n "$RANLIB"; then
6172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6173 $as_echo "$RANLIB" >&6; }
6174 else
6175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6176 $as_echo "no" >&6; }
6181 if test -z "$ac_cv_prog_RANLIB"; then
6182 ac_ct_RANLIB=$RANLIB
6183 # Extract the first word of "ranlib", so it can be a program name with args.
6184 set dummy ranlib; ac_word=$2
6185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6186 $as_echo_n "checking for $ac_word... " >&6; }
6187 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6188 $as_echo_n "(cached) " >&6
6189 else
6190 if test -n "$ac_ct_RANLIB"; then
6191 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6192 else
6193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6194 for as_dir in $PATH
6196 IFS=$as_save_IFS
6197 test -z "$as_dir" && as_dir=.
6198 for ac_exec_ext in '' $ac_executable_extensions; do
6199 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6200 ac_cv_prog_ac_ct_RANLIB="ranlib"
6201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6202 break 2
6204 done
6205 done
6206 IFS=$as_save_IFS
6210 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6211 if test -n "$ac_ct_RANLIB"; then
6212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6213 $as_echo "$ac_ct_RANLIB" >&6; }
6214 else
6215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6216 $as_echo "no" >&6; }
6219 if test "x$ac_ct_RANLIB" = x; then
6220 RANLIB=":"
6221 else
6222 case $cross_compiling:$ac_tool_warned in
6223 yes:)
6224 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6225 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6226 ac_tool_warned=yes ;;
6227 esac
6228 RANLIB=$ac_ct_RANLIB
6230 else
6231 RANLIB="$ac_cv_prog_RANLIB"
6238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6239 $as_echo_n "checking for ANSI C header files... " >&6; }
6240 if test "${ac_cv_header_stdc+set}" = set; then :
6241 $as_echo_n "(cached) " >&6
6242 else
6243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6244 /* end confdefs.h. */
6245 #include <stdlib.h>
6246 #include <stdarg.h>
6247 #include <string.h>
6248 #include <float.h>
6251 main ()
6255 return 0;
6257 _ACEOF
6258 if ac_fn_c_try_compile "$LINENO"; then :
6259 ac_cv_header_stdc=yes
6260 else
6261 ac_cv_header_stdc=no
6263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6265 if test $ac_cv_header_stdc = yes; then
6266 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6268 /* end confdefs.h. */
6269 #include <string.h>
6271 _ACEOF
6272 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6273 $EGREP "memchr" >/dev/null 2>&1; then :
6275 else
6276 ac_cv_header_stdc=no
6278 rm -f conftest*
6282 if test $ac_cv_header_stdc = yes; then
6283 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6285 /* end confdefs.h. */
6286 #include <stdlib.h>
6288 _ACEOF
6289 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6290 $EGREP "free" >/dev/null 2>&1; then :
6292 else
6293 ac_cv_header_stdc=no
6295 rm -f conftest*
6299 if test $ac_cv_header_stdc = yes; then
6300 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6301 if test "$cross_compiling" = yes; then :
6303 else
6304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6305 /* end confdefs.h. */
6306 #include <ctype.h>
6307 #include <stdlib.h>
6308 #if ((' ' & 0x0FF) == 0x020)
6309 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6310 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6311 #else
6312 # define ISLOWER(c) \
6313 (('a' <= (c) && (c) <= 'i') \
6314 || ('j' <= (c) && (c) <= 'r') \
6315 || ('s' <= (c) && (c) <= 'z'))
6316 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6317 #endif
6319 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6321 main ()
6323 int i;
6324 for (i = 0; i < 256; i++)
6325 if (XOR (islower (i), ISLOWER (i))
6326 || toupper (i) != TOUPPER (i))
6327 return 2;
6328 return 0;
6330 _ACEOF
6331 if ac_fn_c_try_run "$LINENO"; then :
6333 else
6334 ac_cv_header_stdc=no
6336 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6337 conftest.$ac_objext conftest.beam conftest.$ac_ext
6342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6343 $as_echo "$ac_cv_header_stdc" >&6; }
6344 if test $ac_cv_header_stdc = yes; then
6346 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6350 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6351 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6352 inttypes.h stdint.h unistd.h
6353 do :
6354 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6355 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6357 eval as_val=\$$as_ac_Header
6358 if test "x$as_val" = x""yes; then :
6359 cat >>confdefs.h <<_ACEOF
6360 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6361 _ACEOF
6365 done
6371 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6372 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
6373 MINIX=yes
6374 else
6375 MINIX=
6379 if test "$MINIX" = yes; then
6381 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6384 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6387 $as_echo "#define _MINIX 1" >>confdefs.h
6391 case "$host_os" in
6392 hpux*)
6394 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
6397 esac
6400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6401 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6402 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
6403 $as_echo_n "(cached) " >&6
6404 else
6405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6406 /* end confdefs.h. */
6408 # define __EXTENSIONS__ 1
6409 $ac_includes_default
6411 main ()
6415 return 0;
6417 _ACEOF
6418 if ac_fn_c_try_compile "$LINENO"; then :
6419 ac_cv_safe_to_define___extensions__=yes
6420 else
6421 ac_cv_safe_to_define___extensions__=no
6423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6426 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6427 test $ac_cv_safe_to_define___extensions__ = yes &&
6428 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6430 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6432 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
6434 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6436 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6438 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6447 # Check whether --enable-largefile was given.
6448 if test "${enable_largefile+set}" = set; then :
6449 enableval=$enable_largefile;
6452 if test "$enable_largefile" != no; then
6454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6455 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6456 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
6457 $as_echo_n "(cached) " >&6
6458 else
6459 ac_cv_sys_largefile_CC=no
6460 if test "$GCC" != yes; then
6461 ac_save_CC=$CC
6462 while :; do
6463 # IRIX 6.2 and later do not support large files by default,
6464 # so use the C compiler's -n32 option if that helps.
6465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6466 /* end confdefs.h. */
6467 #include <sys/types.h>
6468 /* Check that off_t can represent 2**63 - 1 correctly.
6469 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6470 since some C++ compilers masquerading as C compilers
6471 incorrectly reject 9223372036854775807. */
6472 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6473 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6474 && LARGE_OFF_T % 2147483647 == 1)
6475 ? 1 : -1];
6477 main ()
6481 return 0;
6483 _ACEOF
6484 if ac_fn_c_try_compile "$LINENO"; then :
6485 break
6487 rm -f core conftest.err conftest.$ac_objext
6488 CC="$CC -n32"
6489 if ac_fn_c_try_compile "$LINENO"; then :
6490 ac_cv_sys_largefile_CC=' -n32'; break
6492 rm -f core conftest.err conftest.$ac_objext
6493 break
6494 done
6495 CC=$ac_save_CC
6496 rm -f conftest.$ac_ext
6499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6500 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6501 if test "$ac_cv_sys_largefile_CC" != no; then
6502 CC=$CC$ac_cv_sys_largefile_CC
6505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6506 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6507 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
6508 $as_echo_n "(cached) " >&6
6509 else
6510 while :; do
6511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6512 /* end confdefs.h. */
6513 #include <sys/types.h>
6514 /* Check that off_t can represent 2**63 - 1 correctly.
6515 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6516 since some C++ compilers masquerading as C compilers
6517 incorrectly reject 9223372036854775807. */
6518 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6519 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6520 && LARGE_OFF_T % 2147483647 == 1)
6521 ? 1 : -1];
6523 main ()
6527 return 0;
6529 _ACEOF
6530 if ac_fn_c_try_compile "$LINENO"; then :
6531 ac_cv_sys_file_offset_bits=no; break
6533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6535 /* end confdefs.h. */
6536 #define _FILE_OFFSET_BITS 64
6537 #include <sys/types.h>
6538 /* Check that off_t can represent 2**63 - 1 correctly.
6539 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6540 since some C++ compilers masquerading as C compilers
6541 incorrectly reject 9223372036854775807. */
6542 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6543 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6544 && LARGE_OFF_T % 2147483647 == 1)
6545 ? 1 : -1];
6547 main ()
6551 return 0;
6553 _ACEOF
6554 if ac_fn_c_try_compile "$LINENO"; then :
6555 ac_cv_sys_file_offset_bits=64; break
6557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6558 ac_cv_sys_file_offset_bits=unknown
6559 break
6560 done
6562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6563 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6564 case $ac_cv_sys_file_offset_bits in #(
6565 no | unknown) ;;
6567 cat >>confdefs.h <<_ACEOF
6568 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6569 _ACEOF
6571 esac
6572 rm -rf conftest*
6573 if test $ac_cv_sys_file_offset_bits = unknown; then
6574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6575 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6576 if test "${ac_cv_sys_large_files+set}" = set; then :
6577 $as_echo_n "(cached) " >&6
6578 else
6579 while :; do
6580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6581 /* end confdefs.h. */
6582 #include <sys/types.h>
6583 /* Check that off_t can represent 2**63 - 1 correctly.
6584 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6585 since some C++ compilers masquerading as C compilers
6586 incorrectly reject 9223372036854775807. */
6587 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6588 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6589 && LARGE_OFF_T % 2147483647 == 1)
6590 ? 1 : -1];
6592 main ()
6596 return 0;
6598 _ACEOF
6599 if ac_fn_c_try_compile "$LINENO"; then :
6600 ac_cv_sys_large_files=no; break
6602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6604 /* end confdefs.h. */
6605 #define _LARGE_FILES 1
6606 #include <sys/types.h>
6607 /* Check that off_t can represent 2**63 - 1 correctly.
6608 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6609 since some C++ compilers masquerading as C compilers
6610 incorrectly reject 9223372036854775807. */
6611 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6612 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6613 && LARGE_OFF_T % 2147483647 == 1)
6614 ? 1 : -1];
6616 main ()
6620 return 0;
6622 _ACEOF
6623 if ac_fn_c_try_compile "$LINENO"; then :
6624 ac_cv_sys_large_files=1; break
6626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6627 ac_cv_sys_large_files=unknown
6628 break
6629 done
6631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6632 $as_echo "$ac_cv_sys_large_files" >&6; }
6633 case $ac_cv_sys_large_files in #(
6634 no | unknown) ;;
6636 cat >>confdefs.h <<_ACEOF
6637 #define _LARGE_FILES $ac_cv_sys_large_files
6638 _ACEOF
6640 esac
6641 rm -rf conftest*
6647 case $ac_cv_prog_cc_stdc in #(
6648 no) :
6649 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6650 *) :
6651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
6652 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
6653 if test "${ac_cv_prog_cc_c99+set}" = set; then :
6654 $as_echo_n "(cached) " >&6
6655 else
6656 ac_cv_prog_cc_c99=no
6657 ac_save_CC=$CC
6658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6659 /* end confdefs.h. */
6660 #include <stdarg.h>
6661 #include <stdbool.h>
6662 #include <stdlib.h>
6663 #include <wchar.h>
6664 #include <stdio.h>
6666 // Check varargs macros. These examples are taken from C99 6.10.3.5.
6667 #define debug(...) fprintf (stderr, __VA_ARGS__)
6668 #define showlist(...) puts (#__VA_ARGS__)
6669 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6670 static void
6671 test_varargs_macros (void)
6673 int x = 1234;
6674 int y = 5678;
6675 debug ("Flag");
6676 debug ("X = %d\n", x);
6677 showlist (The first, second, and third items.);
6678 report (x>y, "x is %d but y is %d", x, y);
6681 // Check long long types.
6682 #define BIG64 18446744073709551615ull
6683 #define BIG32 4294967295ul
6684 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6685 #if !BIG_OK
6686 your preprocessor is broken;
6687 #endif
6688 #if BIG_OK
6689 #else
6690 your preprocessor is broken;
6691 #endif
6692 static long long int bignum = -9223372036854775807LL;
6693 static unsigned long long int ubignum = BIG64;
6695 struct incomplete_array
6697 int datasize;
6698 double data[];
6701 struct named_init {
6702 int number;
6703 const wchar_t *name;
6704 double average;
6707 typedef const char *ccp;
6709 static inline int
6710 test_restrict (ccp restrict text)
6712 // See if C++-style comments work.
6713 // Iterate through items via the restricted pointer.
6714 // Also check for declarations in for loops.
6715 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6716 continue;
6717 return 0;
6720 // Check varargs and va_copy.
6721 static void
6722 test_varargs (const char *format, ...)
6724 va_list args;
6725 va_start (args, format);
6726 va_list args_copy;
6727 va_copy (args_copy, args);
6729 const char *str;
6730 int number;
6731 float fnumber;
6733 while (*format)
6735 switch (*format++)
6737 case 's': // string
6738 str = va_arg (args_copy, const char *);
6739 break;
6740 case 'd': // int
6741 number = va_arg (args_copy, int);
6742 break;
6743 case 'f': // float
6744 fnumber = va_arg (args_copy, double);
6745 break;
6746 default:
6747 break;
6750 va_end (args_copy);
6751 va_end (args);
6755 main ()
6758 // Check bool.
6759 _Bool success = false;
6761 // Check restrict.
6762 if (test_restrict ("String literal") == 0)
6763 success = true;
6764 char *restrict newvar = "Another string";
6766 // Check varargs.
6767 test_varargs ("s, d' f .", "string", 65, 34.234);
6768 test_varargs_macros ();
6770 // Check flexible array members.
6771 struct incomplete_array *ia =
6772 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6773 ia->datasize = 10;
6774 for (int i = 0; i < ia->datasize; ++i)
6775 ia->data[i] = i * 1.234;
6777 // Check named initializers.
6778 struct named_init ni = {
6779 .number = 34,
6780 .name = L"Test wide string",
6781 .average = 543.34343,
6784 ni.number = 58;
6786 int dynamic_array[ni.number];
6787 dynamic_array[ni.number - 1] = 543;
6789 // work around unused variable warnings
6790 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6791 || dynamic_array[ni.number - 1] != 543);
6794 return 0;
6796 _ACEOF
6797 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
6799 CC="$ac_save_CC $ac_arg"
6800 if ac_fn_c_try_compile "$LINENO"; then :
6801 ac_cv_prog_cc_c99=$ac_arg
6803 rm -f core conftest.err conftest.$ac_objext
6804 test "x$ac_cv_prog_cc_c99" != "xno" && break
6805 done
6806 rm -f conftest.$ac_ext
6807 CC=$ac_save_CC
6810 # AC_CACHE_VAL
6811 case "x$ac_cv_prog_cc_c99" in
6813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6814 $as_echo "none needed" >&6; } ;;
6815 xno)
6816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6817 $as_echo "unsupported" >&6; } ;;
6819 CC="$CC $ac_cv_prog_cc_c99"
6820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
6821 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6822 esac
6823 if test "x$ac_cv_prog_cc_c99" != xno; then :
6824 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
6825 else
6826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6827 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6828 if test "${ac_cv_prog_cc_c89+set}" = set; then :
6829 $as_echo_n "(cached) " >&6
6830 else
6831 ac_cv_prog_cc_c89=no
6832 ac_save_CC=$CC
6833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6834 /* end confdefs.h. */
6835 #include <stdarg.h>
6836 #include <stdio.h>
6837 #include <sys/types.h>
6838 #include <sys/stat.h>
6839 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6840 struct buf { int x; };
6841 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6842 static char *e (p, i)
6843 char **p;
6844 int i;
6846 return p[i];
6848 static char *f (char * (*g) (char **, int), char **p, ...)
6850 char *s;
6851 va_list v;
6852 va_start (v,p);
6853 s = g (p, va_arg (v,int));
6854 va_end (v);
6855 return s;
6858 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6859 function prototypes and stuff, but not '\xHH' hex character constants.
6860 These don't provoke an error unfortunately, instead are silently treated
6861 as 'x'. The following induces an error, until -std is added to get
6862 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6863 array size at least. It's necessary to write '\x00'==0 to get something
6864 that's true only with -std. */
6865 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6867 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6868 inside strings and character constants. */
6869 #define FOO(x) 'x'
6870 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6872 int test (int i, double x);
6873 struct s1 {int (*f) (int a);};
6874 struct s2 {int (*f) (double a);};
6875 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6876 int argc;
6877 char **argv;
6879 main ()
6881 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6883 return 0;
6885 _ACEOF
6886 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6887 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6889 CC="$ac_save_CC $ac_arg"
6890 if ac_fn_c_try_compile "$LINENO"; then :
6891 ac_cv_prog_cc_c89=$ac_arg
6893 rm -f core conftest.err conftest.$ac_objext
6894 test "x$ac_cv_prog_cc_c89" != "xno" && break
6895 done
6896 rm -f conftest.$ac_ext
6897 CC=$ac_save_CC
6900 # AC_CACHE_VAL
6901 case "x$ac_cv_prog_cc_c89" in
6903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6904 $as_echo "none needed" >&6; } ;;
6905 xno)
6906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6907 $as_echo "unsupported" >&6; } ;;
6909 CC="$CC $ac_cv_prog_cc_c89"
6910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6911 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6912 esac
6913 if test "x$ac_cv_prog_cc_c89" != xno; then :
6914 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
6915 else
6916 ac_cv_prog_cc_stdc=no
6921 esac
6922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
6923 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
6924 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
6925 $as_echo_n "(cached) " >&6
6928 case $ac_cv_prog_cc_stdc in #(
6929 no) :
6930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6931 $as_echo "unsupported" >&6; } ;; #(
6932 '') :
6933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6934 $as_echo "none needed" >&6; } ;; #(
6935 *) :
6936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
6937 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
6938 esac
6942 # Code from module alloca-opt:
6943 # Code from module allocator:
6944 # Code from module careadlinkat:
6945 # Code from module crypto/md5:
6946 # Code from module crypto/sha1:
6947 # Code from module crypto/sha256:
6948 # Code from module crypto/sha512:
6949 # Code from module dosname:
6950 # Code from module dtoastr:
6951 # Code from module dup2:
6952 # Code from module extensions:
6954 # Code from module filemode:
6955 # Code from module getloadavg:
6956 # Code from module getopt-gnu:
6957 # Code from module getopt-posix:
6958 # Code from module gettext-h:
6959 # Code from module ignore-value:
6960 # Code from module include_next:
6961 # Code from module intprops:
6962 # Code from module inttypes-incomplete:
6963 # Code from module largefile:
6965 # Code from module lstat:
6966 # Code from module manywarnings:
6967 # Code from module mktime:
6968 # Code from module multiarch:
6969 # Code from module nocrash:
6970 # Code from module pathmax:
6971 # Code from module pthread_sigmask:
6972 # Code from module readlink:
6973 # Code from module signal-h:
6974 # Code from module sigprocmask:
6975 # Code from module snippet/_Noreturn:
6976 # Code from module snippet/arg-nonnull:
6977 # Code from module snippet/c++defs:
6978 # Code from module snippet/warn-on-use:
6979 # Code from module socklen:
6980 # Code from module ssize_t:
6981 # Code from module stat:
6982 # Code from module stdarg:
6986 # Code from module stdbool:
6987 # Code from module stddef:
6988 # Code from module stdint:
6989 # Code from module stdio:
6990 # Code from module stdlib:
6991 # Code from module strftime:
6992 # Code from module strtoimax:
6993 # Code from module strtoll:
6994 # Code from module strtoull:
6995 # Code from module strtoumax:
6996 # Code from module symlink:
6997 # Code from module sys_stat:
6998 # Code from module time:
6999 # Code from module time_r:
7000 # Code from module u64:
7001 # Code from module unistd:
7002 # Code from module verify:
7003 # Code from module warnings:
7006 # On Suns, sometimes $CPP names a directory.
7007 if test -n "$CPP" && test -d "$CPP"; then
7008 CPP=
7011 ## If not using gcc, and on Solaris, and no CPP specified, see if
7012 ## using a Sun compiler, which needs -Xs to prevent whitespace.
7013 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
7014 test x"$CPP" = x; then
7015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using a Sun C compiler" >&5
7016 $as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
7017 if test "${emacs_cv_sunpro_c+set}" = set; then :
7018 $as_echo_n "(cached) " >&6
7019 else
7020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7021 /* end confdefs.h. */
7024 main ()
7026 #ifndef __SUNPRO_C
7027 fail;
7028 #endif
7031 return 0;
7033 _ACEOF
7034 if ac_fn_c_try_link "$LINENO"; then :
7035 emacs_cv_sunpro_c=yes
7036 else
7037 emacs_cv_sunpro_c=no
7039 rm -f core conftest.err conftest.$ac_objext \
7040 conftest$ac_exeext conftest.$ac_ext
7043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_sunpro_c" >&5
7044 $as_echo "$emacs_cv_sunpro_c" >&6; }
7046 if test x"$emacs_cv_sunpro_c" = xyes; then
7047 NON_GNU_CPP="$CC -E -Xs"
7051 #### Some systems specify a CPP to use unless we are using GCC.
7052 #### Now that we know whether we are using GCC, we can decide whether
7053 #### to use that one.
7054 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
7055 then
7056 CPP="$NON_GNU_CPP"
7059 #### Some systems specify a CC to use unless we are using GCC.
7060 #### Now that we know whether we are using GCC, we can decide whether
7061 #### to use that one.
7062 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
7063 test x$cc_specified != xyes
7064 then
7065 CC="$NON_GNU_CC"
7068 if test x$GCC = xyes; then
7069 test "x$GCC_TEST_OPTIONS" != x && CC="$CC $GCC_TEST_OPTIONS"
7070 else
7071 test "x$NON_GCC_TEST_OPTIONS" != x && CC="$CC $NON_GCC_TEST_OPTIONS"
7074 # Check whether --enable-gcc-warnings was given.
7075 if test "${enable_gcc_warnings+set}" = set; then :
7076 enableval=$enable_gcc_warnings; case $enableval in
7077 yes|no) ;;
7078 *) as_fn_error "bad value $enableval for gcc-warnings option" "$LINENO" 5 ;;
7079 esac
7080 gl_gcc_warnings=$enableval
7081 else
7082 gl_gcc_warnings=no
7087 # gl_GCC_VERSION_IFELSE([major], [minor], [run-if-found], [run-if-not-found])
7088 # ------------------------------------------------
7089 # If $CPP is gcc-MAJOR.MINOR or newer, then run RUN-IF-FOUND.
7090 # Otherwise, run RUN-IF-NOT-FOUND.
7093 # When compiling with GCC, prefer -isystem to -I when including system
7094 # include files, to avoid generating useless diagnostics for the files.
7095 if test "$gl_gcc_warnings" != yes; then
7096 isystem='-I'
7097 else
7098 isystem='-isystem '
7100 # This, $nw, is the list of warnings we disable.
7103 case $with_x_toolkit in
7104 lucid | athena | motif)
7105 # Old toolkits mishandle 'const'.
7106 nw="$nw -Wwrite-strings"
7109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Werror" >&5
7110 $as_echo_n "checking whether C compiler handles -Werror... " >&6; }
7111 if test "${gl_cv_warn_c__Werror+set}" = set; then :
7112 $as_echo_n "(cached) " >&6
7113 else
7115 gl_save_compiler_FLAGS="$CFLAGS"
7116 CFLAGS="$CFLAGS -Werror"
7117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7118 /* end confdefs.h. */
7121 main ()
7125 return 0;
7127 _ACEOF
7128 if ac_fn_c_try_compile "$LINENO"; then :
7129 gl_cv_warn_c__Werror=yes
7130 else
7131 gl_cv_warn_c__Werror=no
7133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7134 CFLAGS="$gl_save_compiler_FLAGS"
7137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Werror" >&5
7138 $as_echo "$gl_cv_warn_c__Werror" >&6; }
7139 if test "x$gl_cv_warn_c__Werror" = x""yes; then :
7140 as_fn_append WERROR_CFLAGS " -Werror"
7144 esac
7147 nw="$nw -Waggregate-return" # anachronistic
7148 nw="$nw -Wlong-long" # C90 is anachronistic
7149 nw="$nw -Wc++-compat" # We don't care about C++ compilers
7150 nw="$nw -Wundef" # Warns on '#if GNULIB_FOO' etc in gnulib
7151 nw="$nw -Wtraditional" # Warns on #elif which we use often
7152 nw="$nw -Wcast-qual" # Too many warnings for now
7153 nw="$nw -Wconversion" # Too many warnings for now
7154 nw="$nw -Wsystem-headers" # Don't let system headers trigger warnings
7155 nw="$nw -Wsign-conversion" # Too many warnings for now
7156 nw="$nw -Woverlength-strings" # Not a problem these days
7157 nw="$nw -Wtraditional-conversion" # Too many warnings for now
7158 nw="$nw -Wpadded" # Our structs are not padded
7159 nw="$nw -Wredundant-decls" # We regularly (re)declare getenv etc.
7160 nw="$nw -Wlogical-op" # any use of fwrite provokes this
7161 nw="$nw -Wformat-nonliteral" # Emacs does this a lot
7162 nw="$nw -Wvla" # warnings in gettext.h
7163 nw="$nw -Wnested-externs" # use of XARGMATCH/verify_function__
7164 nw="$nw -Wswitch-enum" # Too many warnings for now
7165 nw="$nw -Wswitch-default" # Too many warnings for now
7166 nw="$nw -Wfloat-equal" # e.g., ftoastr.c
7167 nw="$nw -Winline" # e.g., dispnew.c's inlining of row_equal_p
7169 # Emacs doesn't care about shadowing; see
7170 # <http://lists.gnu.org/archive/html/emacs-diffs/2011-11/msg00265.html>.
7171 nw="$nw -Wshadow"
7173 # The following lines should be removable at some point.
7174 nw="$nw -Wstack-protector"
7175 nw="$nw -Wstrict-overflow"
7176 nw="$nw -Wsuggest-attribute=const"
7177 nw="$nw -Wsuggest-attribute=pure"
7181 if test -n "$GCC"; then
7183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is supported" >&5
7184 $as_echo_n "checking whether -Wno-missing-field-initializers is supported... " >&6; }
7185 if test "${gl_cv_cc_nomfi_supported+set}" = set; then :
7186 $as_echo_n "(cached) " >&6
7187 else
7189 gl_save_CFLAGS="$CFLAGS"
7190 CFLAGS="$CFLAGS -W -Werror -Wno-missing-field-initializers"
7191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7192 /* end confdefs.h. */
7195 main ()
7199 return 0;
7201 _ACEOF
7202 if ac_fn_c_try_compile "$LINENO"; then :
7203 gl_cv_cc_nomfi_supported=yes
7204 else
7205 gl_cv_cc_nomfi_supported=no
7207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7208 CFLAGS="$gl_save_CFLAGS"
7211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_supported" >&5
7212 $as_echo "$gl_cv_cc_nomfi_supported" >&6; }
7214 if test "$gl_cv_cc_nomfi_supported" = yes; then
7215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is needed" >&5
7216 $as_echo_n "checking whether -Wno-missing-field-initializers is needed... " >&6; }
7217 if test "${gl_cv_cc_nomfi_needed+set}" = set; then :
7218 $as_echo_n "(cached) " >&6
7219 else
7221 gl_save_CFLAGS="$CFLAGS"
7222 CFLAGS="$CFLAGS -W -Werror"
7223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7224 /* end confdefs.h. */
7225 void f (void)
7227 typedef struct { int a; int b; } s_t;
7228 s_t s1 = { 0, };
7232 main ()
7236 return 0;
7238 _ACEOF
7239 if ac_fn_c_try_compile "$LINENO"; then :
7240 gl_cv_cc_nomfi_needed=no
7241 else
7242 gl_cv_cc_nomfi_needed=yes
7244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7245 CFLAGS="$gl_save_CFLAGS"
7249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_needed" >&5
7250 $as_echo "$gl_cv_cc_nomfi_needed" >&6; }
7254 gl_manywarn_set=
7255 for gl_manywarn_item in \
7256 -Wall \
7257 -W \
7258 -Wformat-y2k \
7259 -Wformat-nonliteral \
7260 -Wformat-security \
7261 -Winit-self \
7262 -Wmissing-include-dirs \
7263 -Wswitch-default \
7264 -Wswitch-enum \
7265 -Wunused \
7266 -Wunknown-pragmas \
7267 -Wstrict-aliasing \
7268 -Wstrict-overflow \
7269 -Wsystem-headers \
7270 -Wfloat-equal \
7271 -Wtraditional \
7272 -Wtraditional-conversion \
7273 -Wdeclaration-after-statement \
7274 -Wundef \
7275 -Wshadow \
7276 -Wunsafe-loop-optimizations \
7277 -Wpointer-arith \
7278 -Wbad-function-cast \
7279 -Wc++-compat \
7280 -Wcast-qual \
7281 -Wcast-align \
7282 -Wwrite-strings \
7283 -Wconversion \
7284 -Wsign-conversion \
7285 -Wlogical-op \
7286 -Waggregate-return \
7287 -Wstrict-prototypes \
7288 -Wold-style-definition \
7289 -Wmissing-prototypes \
7290 -Wmissing-declarations \
7291 -Wmissing-noreturn \
7292 -Wmissing-format-attribute \
7293 -Wpacked \
7294 -Wpadded \
7295 -Wredundant-decls \
7296 -Wnested-externs \
7297 -Wunreachable-code \
7298 -Winline \
7299 -Winvalid-pch \
7300 -Wlong-long \
7301 -Wvla \
7302 -Wvolatile-register-var \
7303 -Wdisabled-optimization \
7304 -Wstack-protector \
7305 -Woverlength-strings \
7306 -Wbuiltin-macro-redefined \
7307 -Wmudflap \
7308 -Wpacked-bitfield-compat \
7309 -Wsync-nand \
7310 ; do
7311 gl_manywarn_set="$gl_manywarn_set $gl_manywarn_item"
7312 done
7313 # The following are not documented in the manual but are included in
7314 # output from gcc --help=warnings.
7315 for gl_manywarn_item in \
7316 -Wattributes \
7317 -Wcoverage-mismatch \
7318 -Wmultichar \
7319 -Wunused-macros \
7320 ; do
7321 gl_manywarn_set="$gl_manywarn_set $gl_manywarn_item"
7322 done
7323 # More warnings from gcc 4.6.2 --help=warnings.
7324 for gl_manywarn_item in \
7325 -Wabi \
7326 -Wcpp \
7327 -Wdeprecated \
7328 -Wdeprecated-declarations \
7329 -Wdiv-by-zero \
7330 -Wdouble-promotion \
7331 -Wendif-labels \
7332 -Wextra \
7333 -Wformat-contains-nul \
7334 -Wformat-extra-args \
7335 -Wformat-zero-length \
7336 -Wformat=2 \
7337 -Wmultichar \
7338 -Wnormalized=nfc \
7339 -Woverflow \
7340 -Wpointer-to-int-cast \
7341 -Wpragmas \
7342 -Wsuggest-attribute=const \
7343 -Wsuggest-attribute=noreturn \
7344 -Wsuggest-attribute=pure \
7345 -Wtrampolines \
7346 ; do
7347 gl_manywarn_set="$gl_manywarn_set $gl_manywarn_item"
7348 done
7350 # Disable the missing-field-initializers warning if needed
7351 if test "$gl_cv_cc_nomfi_needed" = yes; then
7352 gl_manywarn_set="$gl_manywarn_set -Wno-missing-field-initializers"
7355 ws=$gl_manywarn_set
7358 gl_warn_set=
7359 set x $ws; shift
7360 for gl_warn_item
7362 case " $nw " in
7363 *" $gl_warn_item "*)
7366 gl_warn_set="$gl_warn_set $gl_warn_item"
7368 esac
7369 done
7370 ws=$gl_warn_set
7372 for w in $ws; do
7373 as_gl_Warn=`$as_echo "gl_cv_warn_c_$w" | $as_tr_sh`
7374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles $w" >&5
7375 $as_echo_n "checking whether C compiler handles $w... " >&6; }
7376 if { as_var=$as_gl_Warn; eval "test \"\${$as_var+set}\" = set"; }; then :
7377 $as_echo_n "(cached) " >&6
7378 else
7380 gl_save_compiler_FLAGS="$CFLAGS"
7381 CFLAGS="$CFLAGS $w"
7382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7383 /* end confdefs.h. */
7386 main ()
7390 return 0;
7392 _ACEOF
7393 if ac_fn_c_try_compile "$LINENO"; then :
7394 eval "$as_gl_Warn=yes"
7395 else
7396 eval "$as_gl_Warn=no"
7398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7399 CFLAGS="$gl_save_compiler_FLAGS"
7402 eval ac_res=\$$as_gl_Warn
7403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7404 $as_echo "$ac_res" >&6; }
7405 eval as_val=\$$as_gl_Warn
7406 if test "x$as_val" = x""yes; then :
7407 as_fn_append WARN_CFLAGS " $w"
7410 done
7411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-missing-field-initializers" >&5
7412 $as_echo_n "checking whether C compiler handles -Wno-missing-field-initializers... " >&6; }
7413 if test "${gl_cv_warn_c__Wno_missing_field_initializers+set}" = set; then :
7414 $as_echo_n "(cached) " >&6
7415 else
7417 gl_save_compiler_FLAGS="$CFLAGS"
7418 CFLAGS="$CFLAGS -Wno-missing-field-initializers"
7419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7420 /* end confdefs.h. */
7423 main ()
7427 return 0;
7429 _ACEOF
7430 if ac_fn_c_try_compile "$LINENO"; then :
7431 gl_cv_warn_c__Wno_missing_field_initializers=yes
7432 else
7433 gl_cv_warn_c__Wno_missing_field_initializers=no
7435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7436 CFLAGS="$gl_save_compiler_FLAGS"
7439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_missing_field_initializers" >&5
7440 $as_echo "$gl_cv_warn_c__Wno_missing_field_initializers" >&6; }
7441 if test "x$gl_cv_warn_c__Wno_missing_field_initializers" = x""yes; then :
7442 as_fn_append WARN_CFLAGS " -Wno-missing-field-initializers"
7444 # We need this one
7445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-sign-compare" >&5
7446 $as_echo_n "checking whether C compiler handles -Wno-sign-compare... " >&6; }
7447 if test "${gl_cv_warn_c__Wno_sign_compare+set}" = set; then :
7448 $as_echo_n "(cached) " >&6
7449 else
7451 gl_save_compiler_FLAGS="$CFLAGS"
7452 CFLAGS="$CFLAGS -Wno-sign-compare"
7453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7454 /* end confdefs.h. */
7457 main ()
7461 return 0;
7463 _ACEOF
7464 if ac_fn_c_try_compile "$LINENO"; then :
7465 gl_cv_warn_c__Wno_sign_compare=yes
7466 else
7467 gl_cv_warn_c__Wno_sign_compare=no
7469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7470 CFLAGS="$gl_save_compiler_FLAGS"
7473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_sign_compare" >&5
7474 $as_echo "$gl_cv_warn_c__Wno_sign_compare" >&6; }
7475 if test "x$gl_cv_warn_c__Wno_sign_compare" = x""yes; then :
7476 as_fn_append WARN_CFLAGS " -Wno-sign-compare"
7478 # Too many warnings for now
7479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-type-limits" >&5
7480 $as_echo_n "checking whether C compiler handles -Wno-type-limits... " >&6; }
7481 if test "${gl_cv_warn_c__Wno_type_limits+set}" = set; then :
7482 $as_echo_n "(cached) " >&6
7483 else
7485 gl_save_compiler_FLAGS="$CFLAGS"
7486 CFLAGS="$CFLAGS -Wno-type-limits"
7487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7488 /* end confdefs.h. */
7491 main ()
7495 return 0;
7497 _ACEOF
7498 if ac_fn_c_try_compile "$LINENO"; then :
7499 gl_cv_warn_c__Wno_type_limits=yes
7500 else
7501 gl_cv_warn_c__Wno_type_limits=no
7503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7504 CFLAGS="$gl_save_compiler_FLAGS"
7507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_type_limits" >&5
7508 $as_echo "$gl_cv_warn_c__Wno_type_limits" >&6; }
7509 if test "x$gl_cv_warn_c__Wno_type_limits" = x""yes; then :
7510 as_fn_append WARN_CFLAGS " -Wno-type-limits"
7512 # Too many warnings for now
7513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-switch" >&5
7514 $as_echo_n "checking whether C compiler handles -Wno-switch... " >&6; }
7515 if test "${gl_cv_warn_c__Wno_switch+set}" = set; then :
7516 $as_echo_n "(cached) " >&6
7517 else
7519 gl_save_compiler_FLAGS="$CFLAGS"
7520 CFLAGS="$CFLAGS -Wno-switch"
7521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7522 /* end confdefs.h. */
7525 main ()
7529 return 0;
7531 _ACEOF
7532 if ac_fn_c_try_compile "$LINENO"; then :
7533 gl_cv_warn_c__Wno_switch=yes
7534 else
7535 gl_cv_warn_c__Wno_switch=no
7537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7538 CFLAGS="$gl_save_compiler_FLAGS"
7541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_switch" >&5
7542 $as_echo "$gl_cv_warn_c__Wno_switch" >&6; }
7543 if test "x$gl_cv_warn_c__Wno_switch" = x""yes; then :
7544 as_fn_append WARN_CFLAGS " -Wno-switch"
7546 # Too many warnings for now
7547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-unused-parameter" >&5
7548 $as_echo_n "checking whether C compiler handles -Wno-unused-parameter... " >&6; }
7549 if test "${gl_cv_warn_c__Wno_unused_parameter+set}" = set; then :
7550 $as_echo_n "(cached) " >&6
7551 else
7553 gl_save_compiler_FLAGS="$CFLAGS"
7554 CFLAGS="$CFLAGS -Wno-unused-parameter"
7555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7556 /* end confdefs.h. */
7559 main ()
7563 return 0;
7565 _ACEOF
7566 if ac_fn_c_try_compile "$LINENO"; then :
7567 gl_cv_warn_c__Wno_unused_parameter=yes
7568 else
7569 gl_cv_warn_c__Wno_unused_parameter=no
7571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7572 CFLAGS="$gl_save_compiler_FLAGS"
7575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_unused_parameter" >&5
7576 $as_echo "$gl_cv_warn_c__Wno_unused_parameter" >&6; }
7577 if test "x$gl_cv_warn_c__Wno_unused_parameter" = x""yes; then :
7578 as_fn_append WARN_CFLAGS " -Wno-unused-parameter"
7580 # Too many warnings for now
7581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-format-nonliteral" >&5
7582 $as_echo_n "checking whether C compiler handles -Wno-format-nonliteral... " >&6; }
7583 if test "${gl_cv_warn_c__Wno_format_nonliteral+set}" = set; then :
7584 $as_echo_n "(cached) " >&6
7585 else
7587 gl_save_compiler_FLAGS="$CFLAGS"
7588 CFLAGS="$CFLAGS -Wno-format-nonliteral"
7589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7590 /* end confdefs.h. */
7593 main ()
7597 return 0;
7599 _ACEOF
7600 if ac_fn_c_try_compile "$LINENO"; then :
7601 gl_cv_warn_c__Wno_format_nonliteral=yes
7602 else
7603 gl_cv_warn_c__Wno_format_nonliteral=no
7605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7606 CFLAGS="$gl_save_compiler_FLAGS"
7609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_format_nonliteral" >&5
7610 $as_echo "$gl_cv_warn_c__Wno_format_nonliteral" >&6; }
7611 if test "x$gl_cv_warn_c__Wno_format_nonliteral" = x""yes; then :
7612 as_fn_append WARN_CFLAGS " -Wno-format-nonliteral"
7616 # In spite of excluding -Wlogical-op above, it is enabled, as of
7617 # gcc 4.5.0 20090517.
7618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-logical-op" >&5
7619 $as_echo_n "checking whether C compiler handles -Wno-logical-op... " >&6; }
7620 if test "${gl_cv_warn_c__Wno_logical_op+set}" = set; then :
7621 $as_echo_n "(cached) " >&6
7622 else
7624 gl_save_compiler_FLAGS="$CFLAGS"
7625 CFLAGS="$CFLAGS -Wno-logical-op"
7626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7627 /* end confdefs.h. */
7630 main ()
7634 return 0;
7636 _ACEOF
7637 if ac_fn_c_try_compile "$LINENO"; then :
7638 gl_cv_warn_c__Wno_logical_op=yes
7639 else
7640 gl_cv_warn_c__Wno_logical_op=no
7642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7643 CFLAGS="$gl_save_compiler_FLAGS"
7646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_logical_op" >&5
7647 $as_echo "$gl_cv_warn_c__Wno_logical_op" >&6; }
7648 if test "x$gl_cv_warn_c__Wno_logical_op" = x""yes; then :
7649 as_fn_append WARN_CFLAGS " -Wno-logical-op"
7653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -fdiagnostics-show-option" >&5
7654 $as_echo_n "checking whether C compiler handles -fdiagnostics-show-option... " >&6; }
7655 if test "${gl_cv_warn_c__fdiagnostics_show_option+set}" = set; then :
7656 $as_echo_n "(cached) " >&6
7657 else
7659 gl_save_compiler_FLAGS="$CFLAGS"
7660 CFLAGS="$CFLAGS -fdiagnostics-show-option"
7661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7662 /* end confdefs.h. */
7665 main ()
7669 return 0;
7671 _ACEOF
7672 if ac_fn_c_try_compile "$LINENO"; then :
7673 gl_cv_warn_c__fdiagnostics_show_option=yes
7674 else
7675 gl_cv_warn_c__fdiagnostics_show_option=no
7677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7678 CFLAGS="$gl_save_compiler_FLAGS"
7681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__fdiagnostics_show_option" >&5
7682 $as_echo "$gl_cv_warn_c__fdiagnostics_show_option" >&6; }
7683 if test "x$gl_cv_warn_c__fdiagnostics_show_option" = x""yes; then :
7684 as_fn_append WARN_CFLAGS " -fdiagnostics-show-option"
7687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -funit-at-a-time" >&5
7688 $as_echo_n "checking whether C compiler handles -funit-at-a-time... " >&6; }
7689 if test "${gl_cv_warn_c__funit_at_a_time+set}" = set; then :
7690 $as_echo_n "(cached) " >&6
7691 else
7693 gl_save_compiler_FLAGS="$CFLAGS"
7694 CFLAGS="$CFLAGS -funit-at-a-time"
7695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7696 /* end confdefs.h. */
7699 main ()
7703 return 0;
7705 _ACEOF
7706 if ac_fn_c_try_compile "$LINENO"; then :
7707 gl_cv_warn_c__funit_at_a_time=yes
7708 else
7709 gl_cv_warn_c__funit_at_a_time=no
7711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7712 CFLAGS="$gl_save_compiler_FLAGS"
7715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__funit_at_a_time" >&5
7716 $as_echo "$gl_cv_warn_c__funit_at_a_time" >&6; }
7717 if test "x$gl_cv_warn_c__funit_at_a_time" = x""yes; then :
7718 as_fn_append WARN_CFLAGS " -funit-at-a-time"
7723 $as_echo "#define lint 1" >>confdefs.h
7726 $as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
7729 $as_echo "#define GNULIB_PORTCHECK 1" >>confdefs.h
7732 # We use a slightly smaller set of warning options for lib/.
7733 # Remove the following and save the result in GNULIB_WARN_CFLAGS.
7735 nw="$nw -Wunused-macros"
7738 gl_warn_set=
7739 set x $WARN_CFLAGS; shift
7740 for gl_warn_item
7742 case " $nw " in
7743 *" $gl_warn_item "*)
7746 gl_warn_set="$gl_warn_set $gl_warn_item"
7748 esac
7749 done
7750 GNULIB_WARN_CFLAGS=$gl_warn_set
7757 #### Some other nice autoconf tests.
7759 ac_ext=c
7760 ac_cpp='$CPP $CPPFLAGS'
7761 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7762 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7763 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7765 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7766 # On Suns, sometimes $CPP names a directory.
7767 if test -n "$CPP" && test -d "$CPP"; then
7768 CPP=
7770 if test -z "$CPP"; then
7771 if test "${ac_cv_prog_CPP+set}" = set; then :
7772 $as_echo_n "(cached) " >&6
7773 else
7774 # Double quotes because CPP needs to be expanded
7775 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7777 ac_preproc_ok=false
7778 for ac_c_preproc_warn_flag in '' yes
7780 # Use a header file that comes with gcc, so configuring glibc
7781 # with a fresh cross-compiler works.
7782 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7783 # <limits.h> exists even on freestanding compilers.
7784 # On the NeXT, cc -E runs the code through the compiler's parser,
7785 # not just through cpp. "Syntax error" is here to catch this case.
7786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7787 /* end confdefs.h. */
7788 #ifdef __STDC__
7789 # include <limits.h>
7790 #else
7791 # include <assert.h>
7792 #endif
7793 Syntax error
7794 _ACEOF
7795 if ac_fn_c_try_cpp "$LINENO"; then :
7797 else
7798 # Broken: fails on valid input.
7799 continue
7801 rm -f conftest.err conftest.$ac_ext
7803 # OK, works on sane cases. Now check whether nonexistent headers
7804 # can be detected and how.
7805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7806 /* end confdefs.h. */
7807 #include <ac_nonexistent.h>
7808 _ACEOF
7809 if ac_fn_c_try_cpp "$LINENO"; then :
7810 # Broken: success on invalid input.
7811 continue
7812 else
7813 # Passes both tests.
7814 ac_preproc_ok=:
7815 break
7817 rm -f conftest.err conftest.$ac_ext
7819 done
7820 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7821 rm -f conftest.err conftest.$ac_ext
7822 if $ac_preproc_ok; then :
7823 break
7826 done
7827 ac_cv_prog_CPP=$CPP
7830 CPP=$ac_cv_prog_CPP
7831 else
7832 ac_cv_prog_CPP=$CPP
7834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7835 $as_echo "$CPP" >&6; }
7836 ac_preproc_ok=false
7837 for ac_c_preproc_warn_flag in '' yes
7839 # Use a header file that comes with gcc, so configuring glibc
7840 # with a fresh cross-compiler works.
7841 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7842 # <limits.h> exists even on freestanding compilers.
7843 # On the NeXT, cc -E runs the code through the compiler's parser,
7844 # not just through cpp. "Syntax error" is here to catch this case.
7845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7846 /* end confdefs.h. */
7847 #ifdef __STDC__
7848 # include <limits.h>
7849 #else
7850 # include <assert.h>
7851 #endif
7852 Syntax error
7853 _ACEOF
7854 if ac_fn_c_try_cpp "$LINENO"; then :
7856 else
7857 # Broken: fails on valid input.
7858 continue
7860 rm -f conftest.err conftest.$ac_ext
7862 # OK, works on sane cases. Now check whether nonexistent headers
7863 # can be detected and how.
7864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7865 /* end confdefs.h. */
7866 #include <ac_nonexistent.h>
7867 _ACEOF
7868 if ac_fn_c_try_cpp "$LINENO"; then :
7869 # Broken: success on invalid input.
7870 continue
7871 else
7872 # Passes both tests.
7873 ac_preproc_ok=:
7874 break
7876 rm -f conftest.err conftest.$ac_ext
7878 done
7879 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7880 rm -f conftest.err conftest.$ac_ext
7881 if $ac_preproc_ok; then :
7883 else
7884 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7885 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7886 as_fn_error "C preprocessor \"$CPP\" fails sanity check
7887 See \`config.log' for more details." "$LINENO" 5; }
7890 ac_ext=c
7891 ac_cpp='$CPP $CPPFLAGS'
7892 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7893 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7894 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7897 if test "x$RANLIB" = x; then
7898 if test -n "$ac_tool_prefix"; then
7899 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7900 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7902 $as_echo_n "checking for $ac_word... " >&6; }
7903 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7904 $as_echo_n "(cached) " >&6
7905 else
7906 if test -n "$RANLIB"; then
7907 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7908 else
7909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7910 for as_dir in $PATH
7912 IFS=$as_save_IFS
7913 test -z "$as_dir" && as_dir=.
7914 for ac_exec_ext in '' $ac_executable_extensions; do
7915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7916 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7918 break 2
7920 done
7921 done
7922 IFS=$as_save_IFS
7926 RANLIB=$ac_cv_prog_RANLIB
7927 if test -n "$RANLIB"; then
7928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7929 $as_echo "$RANLIB" >&6; }
7930 else
7931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7932 $as_echo "no" >&6; }
7937 if test -z "$ac_cv_prog_RANLIB"; then
7938 ac_ct_RANLIB=$RANLIB
7939 # Extract the first word of "ranlib", so it can be a program name with args.
7940 set dummy ranlib; ac_word=$2
7941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7942 $as_echo_n "checking for $ac_word... " >&6; }
7943 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7944 $as_echo_n "(cached) " >&6
7945 else
7946 if test -n "$ac_ct_RANLIB"; then
7947 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7948 else
7949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7950 for as_dir in $PATH
7952 IFS=$as_save_IFS
7953 test -z "$as_dir" && as_dir=.
7954 for ac_exec_ext in '' $ac_executable_extensions; do
7955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7956 ac_cv_prog_ac_ct_RANLIB="ranlib"
7957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7958 break 2
7960 done
7961 done
7962 IFS=$as_save_IFS
7966 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7967 if test -n "$ac_ct_RANLIB"; then
7968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7969 $as_echo "$ac_ct_RANLIB" >&6; }
7970 else
7971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7972 $as_echo "no" >&6; }
7975 if test "x$ac_ct_RANLIB" = x; then
7976 RANLIB=":"
7977 else
7978 case $cross_compiling:$ac_tool_warned in
7979 yes:)
7980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7981 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7982 ac_tool_warned=yes ;;
7983 esac
7984 RANLIB=$ac_ct_RANLIB
7986 else
7987 RANLIB="$ac_cv_prog_RANLIB"
7992 ## Although we're running on an amd64 kernel, we're actually compiling for
7993 ## the x86 architecture. The user should probably have provided an
7994 ## explicit --build to `configure', but if everything else than the kernel
7995 ## is running in i386 mode, we can help them out.
7996 if test "$machine" = "amdx86-64"; then
7997 ac_fn_c_check_decl "$LINENO" "i386" "ac_cv_have_decl_i386" "$ac_includes_default"
7998 if test "x$ac_cv_have_decl_i386" = x""yes; then :
8002 if test "$ac_cv_have_decl_i386" = "yes"; then
8003 canonical=`echo "$canonical" | sed -e 's/^amd64/i386/' -e 's/^x86_64/i386/'`
8004 machine=intel386
8005 machfile="m/${machine}.h"
8009 # Extract the first word of "install-info", so it can be a program name with args.
8010 set dummy install-info; ac_word=$2
8011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8012 $as_echo_n "checking for $ac_word... " >&6; }
8013 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
8014 $as_echo_n "(cached) " >&6
8015 else
8016 case $INSTALL_INFO in
8017 [\\/]* | ?:[\\/]*)
8018 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
8021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8022 for as_dir in $PATH
8024 IFS=$as_save_IFS
8025 test -z "$as_dir" && as_dir=.
8026 for ac_exec_ext in '' $ac_executable_extensions; do
8027 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8028 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
8029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8030 break 2
8032 done
8033 done
8034 IFS=$as_save_IFS
8037 esac
8039 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
8040 if test -n "$INSTALL_INFO"; then
8041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
8042 $as_echo "$INSTALL_INFO" >&6; }
8043 else
8044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8045 $as_echo "no" >&6; }
8049 # Extract the first word of "install-info", so it can be a program name with args.
8050 set dummy install-info; ac_word=$2
8051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8052 $as_echo_n "checking for $ac_word... " >&6; }
8053 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
8054 $as_echo_n "(cached) " >&6
8055 else
8056 case $INSTALL_INFO in
8057 [\\/]* | ?:[\\/]*)
8058 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
8061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8062 for as_dir in /usr/sbin
8064 IFS=$as_save_IFS
8065 test -z "$as_dir" && as_dir=.
8066 for ac_exec_ext in '' $ac_executable_extensions; do
8067 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8068 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
8069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8070 break 2
8072 done
8073 done
8074 IFS=$as_save_IFS
8077 esac
8079 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
8080 if test -n "$INSTALL_INFO"; then
8081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
8082 $as_echo "$INSTALL_INFO" >&6; }
8083 else
8084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8085 $as_echo "no" >&6; }
8089 # Extract the first word of "install-info", so it can be a program name with args.
8090 set dummy install-info; ac_word=$2
8091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8092 $as_echo_n "checking for $ac_word... " >&6; }
8093 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
8094 $as_echo_n "(cached) " >&6
8095 else
8096 case $INSTALL_INFO in
8097 [\\/]* | ?:[\\/]*)
8098 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
8101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8102 for as_dir in /sbin
8104 IFS=$as_save_IFS
8105 test -z "$as_dir" && as_dir=.
8106 for ac_exec_ext in '' $ac_executable_extensions; do
8107 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8108 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
8109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8110 break 2
8112 done
8113 done
8114 IFS=$as_save_IFS
8116 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
8118 esac
8120 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
8121 if test -n "$INSTALL_INFO"; then
8122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
8123 $as_echo "$INSTALL_INFO" >&6; }
8124 else
8125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8126 $as_echo "no" >&6; }
8130 # Extract the first word of "gzip", so it can be a program name with args.
8131 set dummy gzip; ac_word=$2
8132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8133 $as_echo_n "checking for $ac_word... " >&6; }
8134 if test "${ac_cv_path_GZIP_PROG+set}" = set; then :
8135 $as_echo_n "(cached) " >&6
8136 else
8137 case $GZIP_PROG in
8138 [\\/]* | ?:[\\/]*)
8139 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
8142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8143 for as_dir in $PATH
8145 IFS=$as_save_IFS
8146 test -z "$as_dir" && as_dir=.
8147 for ac_exec_ext in '' $ac_executable_extensions; do
8148 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8149 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
8150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8151 break 2
8153 done
8154 done
8155 IFS=$as_save_IFS
8158 esac
8160 GZIP_PROG=$ac_cv_path_GZIP_PROG
8161 if test -n "$GZIP_PROG"; then
8162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
8163 $as_echo "$GZIP_PROG" >&6; }
8164 else
8165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8166 $as_echo "no" >&6; }
8172 ## Need makeinfo >= 4.7 (?) to build the manuals.
8173 # Extract the first word of "makeinfo", so it can be a program name with args.
8174 set dummy makeinfo; ac_word=$2
8175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8176 $as_echo_n "checking for $ac_word... " >&6; }
8177 if test "${ac_cv_path_MAKEINFO+set}" = set; then :
8178 $as_echo_n "(cached) " >&6
8179 else
8180 case $MAKEINFO in
8181 [\\/]* | ?:[\\/]*)
8182 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
8185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8186 for as_dir in $PATH
8188 IFS=$as_save_IFS
8189 test -z "$as_dir" && as_dir=.
8190 for ac_exec_ext in '' $ac_executable_extensions; do
8191 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8192 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
8193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8194 break 2
8196 done
8197 done
8198 IFS=$as_save_IFS
8200 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
8202 esac
8204 MAKEINFO=$ac_cv_path_MAKEINFO
8205 if test -n "$MAKEINFO"; then
8206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8207 $as_echo "$MAKEINFO" >&6; }
8208 else
8209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8210 $as_echo "no" >&6; }
8214 if test "$MAKEINFO" != "no" && \
8215 test x"`$MAKEINFO --version 2> /dev/null | $EGREP 'texinfo[^0-9]*([1-4][0-9]+|[5-9]|4\.[7-9]|4\.[1-6][0-9]+)'`" = x; then
8216 MAKEINFO=no
8219 ## Makeinfo is unusual. For a released Emacs, the manuals are
8220 ## pre-built, and not deleted by the normal clean rules. makeinfo is
8221 ## therefore in the category of "special tools" not normally required, which
8222 ## configure does not have to check for (eg autoconf itself).
8223 ## In a Bazaar checkout on the other hand, the manuals are not included.
8224 ## So makeinfo is a requirement to build from Bazaar, and configure
8225 ## should test for it as it does for any other build requirement.
8226 ## We use the presence of $srcdir/info/emacs to distinguish a release,
8227 ## with pre-built manuals, from a Bazaar checkout.
8228 HAVE_MAKEINFO=yes
8230 if test "$MAKEINFO" = "no"; then
8231 MAKEINFO=makeinfo
8232 if test "x${with_makeinfo}" = "xno"; then
8233 HAVE_MAKEINFO=no
8234 elif test ! -e $srcdir/info/emacs; then
8235 as_fn_error "You do not seem to have makeinfo >= 4.7, and your
8236 source tree does not seem to have pre-built manuals in the \`info' directory.
8237 Either install a suitable version of makeinfo, or re-run configure
8238 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
8243 INFO_EXT=.info
8244 INFO_OPTS=--no-split
8249 if test x$GCC = xyes; then
8250 test "x$GCC_LINK_TEST_OPTIONS" != x && \
8251 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
8252 else
8253 test "x$NON_GCC_LINK_TEST_OPTIONS" != x && \
8254 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
8258 late_LDFLAGS=$LDFLAGS
8259 if test x$GCC = xyes; then
8260 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
8261 else
8262 LDFLAGS="$LDFLAGS -znocombreloc"
8265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
8266 $as_echo_n "checking for -znocombreloc... " >&6; }
8267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8268 /* end confdefs.h. */
8271 main ()
8275 return 0;
8277 _ACEOF
8278 if ac_fn_c_try_link "$LINENO"; then :
8279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8280 $as_echo "yes" >&6; }
8281 else
8282 LDFLAGS=$late_LDFLAGS
8283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8284 $as_echo "no" >&6; }
8286 rm -f core conftest.err conftest.$ac_objext \
8287 conftest$ac_exeext conftest.$ac_ext
8290 # The value of CPP is a quoted variable reference, so we need to do this
8291 # to get its actual value...
8292 CPP=`eval "echo $CPP"`
8295 test "x$CANNOT_DUMP" = "x" && CANNOT_DUMP=no
8296 case "$opsys" in
8297 your-opsys-here) CANNOT_DUMP=yes ;;
8298 esac
8300 test "$CANNOT_DUMP" = "yes" && \
8302 $as_echo "#define CANNOT_DUMP 1" >>confdefs.h
8308 UNEXEC_OBJ=unexelf.o
8309 case "$opsys" in
8310 # MSDOS uses unexcoff.o
8311 # MSWindows uses unexw32.o
8312 aix4-2)
8313 UNEXEC_OBJ=unexaix.o
8315 cygwin)
8316 UNEXEC_OBJ=unexcw.o
8318 darwin)
8319 UNEXEC_OBJ=unexmacosx.o
8321 hpux10-20 | hpux11)
8322 UNEXEC_OBJ=unexhp9k800.o
8324 sol2-10)
8325 # Use the Solaris dldump() function, called from unexsol.c, to dump
8326 # emacs, instead of the generic ELF dump code found in unexelf.c.
8327 # The resulting binary has a complete symbol table, and is better
8328 # for debugging and other observability tools (debuggers, pstack, etc).
8330 # If you encounter a problem using dldump(), please consider sending
8331 # a message to the OpenSolaris tools-linking mailing list:
8332 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
8334 # It is likely that dldump() works with older Solaris too, but this has
8335 # not been tested, so for now this change is for Solaris 10 or newer.
8336 UNEXEC_OBJ=unexsol.o
8338 esac
8340 LD_SWITCH_SYSTEM=
8341 case "$opsys" in
8342 freebsd)
8343 ## Let `ld' find image libs and similar things in /usr/local/lib.
8344 ## The system compiler, GCC, has apparently been modified to not
8345 ## look there, contrary to what a stock GCC would do.
8346 ### It's not our place to do this. See bug#10313#17.
8347 ### LD_SWITCH_SYSTEM=-L/usr/local/lib
8351 gnu-linux)
8352 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
8353 case $host_cpu in mips*) LD_SWITCH_SYSTEM="-G 0";; esac
8356 netbsd)
8357 ### It's not our place to do this. See bug#10313#17.
8358 ### LD_SWITCH_SYSTEM="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
8362 openbsd)
8363 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
8364 ## otherwise Emacs dumps core on elf systems.
8365 LD_SWITCH_SYSTEM="-Z"
8367 esac
8370 ac_link="$ac_link $LD_SWITCH_SYSTEM"
8372 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_RPATH,
8373 ## which has not been defined yet. When this was handled with cpp,
8374 ## it was expanded to null when configure sourced the s/*.h file.
8375 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
8376 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
8377 ## (or somesuch), but because it is supposed to go at the _front_
8378 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
8379 ## Compare with the gnu-linux case below, which added to the end
8380 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
8381 ## LD_SWITCH_SYSTEM_TEMACS.
8382 case "$opsys" in
8383 netbsd|openbsd)
8384 LD_SWITCH_SYSTEM="\$(LD_SWITCH_X_SITE_RPATH) $LD_SWITCH_SYSTEM" ;;
8385 esac
8388 C_SWITCH_MACHINE=
8389 if test "$machine" = "alpha"; then
8390 ac_fn_c_check_decl "$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
8391 if test "x$ac_cv_have_decl___ELF__" = x""yes; then :
8395 if test "$ac_cv_have_decl___ELF__" = "yes"; then
8396 ## With ELF, make sure that all common symbols get allocated to in the
8397 ## data section. Otherwise, the dump of temacs may miss variables in
8398 ## the shared library that have been initialized. For example, with
8399 ## GNU libc, __malloc_initialized would normally be resolved to the
8400 ## shared library's .bss section, which is fatal.
8401 if test "x$GCC" = "xyes"; then
8402 C_SWITCH_MACHINE="-fno-common"
8403 else
8404 as_fn_error "What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
8406 else
8407 UNEXEC_OBJ=unexalpha.o
8414 C_SWITCH_SYSTEM=
8415 ## Some programs in src produce warnings saying certain subprograms
8416 ## are too complex and need a MAXMEM value greater than 2000 for
8417 ## additional optimization. --nils@exp-math.uni-essen.de
8418 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
8419 C_SWITCH_SYSTEM="-ma -qmaxmem=4000"
8420 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
8421 ## It is redundant in glibc2, since we define _GNU_SOURCE.
8425 LIBS_SYSTEM=
8426 case "$opsys" in
8427 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
8428 aix4-2) LIBS_SYSTEM="-lrts -lIM -liconv" ;;
8430 freebsd) LIBS_SYSTEM="-lutil" ;;
8432 hpux*) LIBS_SYSTEM="-l:libdld.sl" ;;
8434 sol2*) LIBS_SYSTEM="-lsocket -lnsl" ;;
8436 ## Motif needs -lgen.
8437 unixware) LIBS_SYSTEM="-lsocket -lnsl -lelf -lgen" ;;
8438 esac
8442 ### Make sure subsequent tests use flags consistent with the build flags.
8444 if test x"${OVERRIDE_CPPFLAGS}" != x; then
8445 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
8446 else
8447 CPPFLAGS="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
8450 # Suppress obsolescent Autoconf test for size_t; Emacs assumes C89 or better.
8452 # Likewise for obsolescent test for uid_t, gid_t; Emacs assumes them.
8455 # Check whether --enable-largefile was given.
8456 if test "${enable_largefile+set}" = set; then :
8457 enableval=$enable_largefile;
8460 if test "$enable_largefile" != no; then
8462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
8463 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
8464 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
8465 $as_echo_n "(cached) " >&6
8466 else
8467 ac_cv_sys_largefile_CC=no
8468 if test "$GCC" != yes; then
8469 ac_save_CC=$CC
8470 while :; do
8471 # IRIX 6.2 and later do not support large files by default,
8472 # so use the C compiler's -n32 option if that helps.
8473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8474 /* end confdefs.h. */
8475 #include <sys/types.h>
8476 /* Check that off_t can represent 2**63 - 1 correctly.
8477 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8478 since some C++ compilers masquerading as C compilers
8479 incorrectly reject 9223372036854775807. */
8480 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8481 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8482 && LARGE_OFF_T % 2147483647 == 1)
8483 ? 1 : -1];
8485 main ()
8489 return 0;
8491 _ACEOF
8492 if ac_fn_c_try_compile "$LINENO"; then :
8493 break
8495 rm -f core conftest.err conftest.$ac_objext
8496 CC="$CC -n32"
8497 if ac_fn_c_try_compile "$LINENO"; then :
8498 ac_cv_sys_largefile_CC=' -n32'; break
8500 rm -f core conftest.err conftest.$ac_objext
8501 break
8502 done
8503 CC=$ac_save_CC
8504 rm -f conftest.$ac_ext
8507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
8508 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
8509 if test "$ac_cv_sys_largefile_CC" != no; then
8510 CC=$CC$ac_cv_sys_largefile_CC
8513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
8514 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
8515 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
8516 $as_echo_n "(cached) " >&6
8517 else
8518 while :; do
8519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8520 /* end confdefs.h. */
8521 #include <sys/types.h>
8522 /* Check that off_t can represent 2**63 - 1 correctly.
8523 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8524 since some C++ compilers masquerading as C compilers
8525 incorrectly reject 9223372036854775807. */
8526 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8527 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8528 && LARGE_OFF_T % 2147483647 == 1)
8529 ? 1 : -1];
8531 main ()
8535 return 0;
8537 _ACEOF
8538 if ac_fn_c_try_compile "$LINENO"; then :
8539 ac_cv_sys_file_offset_bits=no; break
8541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8543 /* end confdefs.h. */
8544 #define _FILE_OFFSET_BITS 64
8545 #include <sys/types.h>
8546 /* Check that off_t can represent 2**63 - 1 correctly.
8547 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8548 since some C++ compilers masquerading as C compilers
8549 incorrectly reject 9223372036854775807. */
8550 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8551 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8552 && LARGE_OFF_T % 2147483647 == 1)
8553 ? 1 : -1];
8555 main ()
8559 return 0;
8561 _ACEOF
8562 if ac_fn_c_try_compile "$LINENO"; then :
8563 ac_cv_sys_file_offset_bits=64; break
8565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8566 ac_cv_sys_file_offset_bits=unknown
8567 break
8568 done
8570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
8571 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
8572 case $ac_cv_sys_file_offset_bits in #(
8573 no | unknown) ;;
8575 cat >>confdefs.h <<_ACEOF
8576 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
8577 _ACEOF
8579 esac
8580 rm -rf conftest*
8581 if test $ac_cv_sys_file_offset_bits = unknown; then
8582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
8583 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
8584 if test "${ac_cv_sys_large_files+set}" = set; then :
8585 $as_echo_n "(cached) " >&6
8586 else
8587 while :; do
8588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8589 /* end confdefs.h. */
8590 #include <sys/types.h>
8591 /* Check that off_t can represent 2**63 - 1 correctly.
8592 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8593 since some C++ compilers masquerading as C compilers
8594 incorrectly reject 9223372036854775807. */
8595 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8596 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8597 && LARGE_OFF_T % 2147483647 == 1)
8598 ? 1 : -1];
8600 main ()
8604 return 0;
8606 _ACEOF
8607 if ac_fn_c_try_compile "$LINENO"; then :
8608 ac_cv_sys_large_files=no; break
8610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8612 /* end confdefs.h. */
8613 #define _LARGE_FILES 1
8614 #include <sys/types.h>
8615 /* Check that off_t can represent 2**63 - 1 correctly.
8616 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8617 since some C++ compilers masquerading as C compilers
8618 incorrectly reject 9223372036854775807. */
8619 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8620 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8621 && LARGE_OFF_T % 2147483647 == 1)
8622 ? 1 : -1];
8624 main ()
8628 return 0;
8630 _ACEOF
8631 if ac_fn_c_try_compile "$LINENO"; then :
8632 ac_cv_sys_large_files=1; break
8634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8635 ac_cv_sys_large_files=unknown
8636 break
8637 done
8639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
8640 $as_echo "$ac_cv_sys_large_files" >&6; }
8641 case $ac_cv_sys_large_files in #(
8642 no | unknown) ;;
8644 cat >>confdefs.h <<_ACEOF
8645 #define _LARGE_FILES $ac_cv_sys_large_files
8646 _ACEOF
8648 esac
8649 rm -rf conftest*
8657 LIB_MATH=-lm
8658 LIB_STANDARD=
8659 START_FILES=
8661 case $opsys in
8662 cygwin )
8663 LIB_MATH=
8664 START_FILES='pre-crt0.o'
8666 darwin )
8667 ## Adding -lm confuses the dynamic linker, so omit it.
8668 LIB_MATH=
8669 START_FILES='pre-crt0.o'
8671 freebsd )
8672 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
8673 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
8675 gnu-linux | gnu-kfreebsd )
8676 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
8677 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
8679 hpux10-20 | hpux11 )
8680 LIB_STANDARD=-lc
8681 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o'
8683 netbsd | openbsd )
8684 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
8685 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
8687 esac
8692 crt_files=
8694 for file in x $LIB_STANDARD $START_FILES; do
8695 case "$file" in
8696 *CRT_DIR*) crt_files="$crt_files `echo $file | sed -e 's|.*/||'`" ;;
8697 esac
8698 done
8700 if test "x$crt_files" != x; then
8702 ## If user specified a crt-dir, use that unconditionally.
8703 crt_gcc=no
8705 if test "X$CRT_DIR" = "X"; then
8707 CRT_DIR=/usr/lib # default
8709 case "$canonical" in
8710 x86_64-*-linux-gnu* | s390x-*-linux-gnu*)
8711 ## On x86-64 and s390x GNU/Linux distributions, the standard library
8712 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
8713 ## For anything else (eg /usr/lib32), it is up the user to specify
8714 ## the location (bug#5655).
8715 ## Test for crtn.o, not just the directory, because sometimes the
8716 ## directory exists but does not have the relevant files (bug#1287).
8717 ## FIXME better to test for binary compatibility somehow.
8718 test -e /usr/lib64/crtn.o && CRT_DIR=/usr/lib64
8721 powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*) CRT_DIR=/usr/lib64 ;;
8722 esac
8724 case "$opsys" in
8725 hpux10-20) CRT_DIR=/lib ;;
8726 esac
8728 test "x${GCC}" = xyes && crt_gcc=yes
8730 fi # CRT_DIR = ""
8732 crt_missing=
8734 for file in $crt_files; do
8736 ## If we're using gcc, try to determine it automatically by asking
8737 ## gcc. [If this doesn't work, CRT_DIR will remain at the
8738 ## system-dependent default from above.]
8739 if test $crt_gcc = yes && test ! -e $CRT_DIR/$file; then
8741 crt_file=`$CC --print-file-name=$file 2>/dev/null`
8742 case "$crt_file" in
8743 */*)
8744 CRT_DIR=`$as_dirname -- "$crt_file" ||
8745 $as_expr X"$crt_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8746 X"$crt_file" : 'X\(//\)[^/]' \| \
8747 X"$crt_file" : 'X\(//\)$' \| \
8748 X"$crt_file" : 'X\(/\)' \| . 2>/dev/null ||
8749 $as_echo X"$crt_file" |
8750 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8751 s//\1/
8754 /^X\(\/\/\)[^/].*/{
8755 s//\1/
8758 /^X\(\/\/\)$/{
8759 s//\1/
8762 /^X\(\/\).*/{
8763 s//\1/
8766 s/.*/./; q'`
8768 esac
8771 crt_gcc=no
8773 test -e $CRT_DIR/$file || crt_missing="$crt_missing $file"
8774 done # $crt_files
8776 test "x$crt_missing" = x || \
8777 as_fn_error "Required file(s) not found:$crt_missing
8778 Try using the --with-crt-dir option." "$LINENO" 5
8780 fi # crt_files != ""
8784 case $opsys in
8785 netbsd | openbsd )
8786 if test -f $CRT_DIR/crti.o; then
8788 test -f $CRT_DIR/crtn.o || \
8789 as_fn_error "Required file not found: crtn.o" "$LINENO" 5
8791 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
8792 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
8795 esac
8801 if test "${with_sound}" != "no"; then
8802 # Sound support for GNU/Linux and the free BSDs.
8803 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
8804 do :
8805 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8806 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8807 eval as_val=\$$as_ac_Header
8808 if test "x$as_val" = x""yes; then :
8809 cat >>confdefs.h <<_ACEOF
8810 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8811 _ACEOF
8812 have_sound_header=yes
8815 done
8817 # Emulation library used on NetBSD.
8818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
8819 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
8820 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
8821 $as_echo_n "(cached) " >&6
8822 else
8823 ac_check_lib_save_LIBS=$LIBS
8824 LIBS="-lossaudio $LIBS"
8825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8826 /* end confdefs.h. */
8828 /* Override any GCC internal prototype to avoid an error.
8829 Use char because int might match the return type of a GCC
8830 builtin and then its argument prototype would still apply. */
8831 #ifdef __cplusplus
8832 extern "C"
8833 #endif
8834 char _oss_ioctl ();
8836 main ()
8838 return _oss_ioctl ();
8840 return 0;
8842 _ACEOF
8843 if ac_fn_c_try_link "$LINENO"; then :
8844 ac_cv_lib_ossaudio__oss_ioctl=yes
8845 else
8846 ac_cv_lib_ossaudio__oss_ioctl=no
8848 rm -f core conftest.err conftest.$ac_objext \
8849 conftest$ac_exeext conftest.$ac_ext
8850 LIBS=$ac_check_lib_save_LIBS
8852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
8853 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
8854 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x""yes; then :
8855 LIBSOUND=-lossaudio
8856 else
8857 LIBSOUND=
8862 ALSA_REQUIRED=1.0.0
8863 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
8865 succeeded=no
8867 # Extract the first word of "pkg-config", so it can be a program name with args.
8868 set dummy pkg-config; ac_word=$2
8869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8870 $as_echo_n "checking for $ac_word... " >&6; }
8871 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8872 $as_echo_n "(cached) " >&6
8873 else
8874 case $PKG_CONFIG in
8875 [\\/]* | ?:[\\/]*)
8876 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8880 for as_dir in $PATH
8882 IFS=$as_save_IFS
8883 test -z "$as_dir" && as_dir=.
8884 for ac_exec_ext in '' $ac_executable_extensions; do
8885 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8886 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8888 break 2
8890 done
8891 done
8892 IFS=$as_save_IFS
8894 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8896 esac
8898 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8899 if test -n "$PKG_CONFIG"; then
8900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8901 $as_echo "$PKG_CONFIG" >&6; }
8902 else
8903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8904 $as_echo "no" >&6; }
8909 if test "$PKG_CONFIG" = "no" ; then
8910 HAVE_ALSA=no
8911 else
8912 PKG_CONFIG_MIN_VERSION=0.9.0
8913 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
8915 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
8917 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5 &&
8918 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES" 2>&5` &&
8919 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES" 2>&5`; then
8920 edit_cflags="
8921 s,///*,/,g
8922 s/^/ /
8923 s/ -I/ $isystem/g
8924 s/^ //
8926 ALSA_CFLAGS=`$as_echo "$ALSA_CFLAGS" | sed -e "$edit_cflags"`
8927 ALSA_LIBS=`$as_echo "$ALSA_LIBS" | sed -e 's,///*,/,g'`
8928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$ALSA_CFLAGS' LIBS='$ALSA_LIBS'" >&5
8929 $as_echo "yes CFLAGS='$ALSA_CFLAGS' LIBS='$ALSA_LIBS'" >&6; }
8930 succeeded=yes
8931 else
8932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8933 $as_echo "no" >&6; }
8934 ALSA_CFLAGS=""
8935 ALSA_LIBS=""
8936 ## If we have a custom action on failure, don't print errors, but
8937 ## do set a variable so people can do so.
8938 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
8944 else
8945 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8946 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8950 if test $succeeded = yes; then
8951 HAVE_ALSA=yes
8952 else
8953 HAVE_ALSA=no
8956 if test $HAVE_ALSA = yes; then
8957 SAVE_CFLAGS="$CFLAGS"
8958 SAVE_LIBS="$LIBS"
8959 CFLAGS="$ALSA_CFLAGS $CFLAGS"
8960 LIBS="$ALSA_LIBS $LIBS"
8961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8962 /* end confdefs.h. */
8963 #include <asoundlib.h>
8965 main ()
8967 snd_lib_error_set_handler (0);
8969 return 0;
8971 _ACEOF
8972 if ac_fn_c_try_compile "$LINENO"; then :
8973 emacs_alsa_normal=yes
8974 else
8975 emacs_alsa_normal=no
8977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8978 if test "$emacs_alsa_normal" != yes; then
8979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8980 /* end confdefs.h. */
8981 #include <alsa/asoundlib.h>
8983 main ()
8985 snd_lib_error_set_handler (0);
8987 return 0;
8989 _ACEOF
8990 if ac_fn_c_try_compile "$LINENO"; then :
8991 emacs_alsa_subdir=yes
8992 else
8993 emacs_alsa_subdir=no
8995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8996 if test "$emacs_alsa_subdir" != yes; then
8997 as_fn_error "pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
8999 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
9002 CFLAGS="$SAVE_CFLAGS"
9003 LIBS="$SAVE_LIBS"
9004 LIBSOUND="$LIBSOUND $ALSA_LIBS"
9005 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
9007 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
9011 if test x$have_sound_header = xyes || test $HAVE_ALSA = yes; then
9012 case "$opsys" in
9013 gnu-linux|freebsd|netbsd)
9015 $as_echo "#define HAVE_SOUND 1" >>confdefs.h
9018 esac
9024 for ac_header in sys/select.h sys/time.h unistd.h utime.h \
9025 linux/version.h sys/systeminfo.h \
9026 stdio_ext.h fcntl.h coff.h pty.h sys/mman.h \
9027 sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
9028 sys/utsname.h pwd.h utmp.h dirent.h util.h
9029 do :
9030 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9031 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9032 eval as_val=\$$as_ac_Header
9033 if test "x$as_val" = x""yes; then :
9034 cat >>confdefs.h <<_ACEOF
9035 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9036 _ACEOF
9040 done
9043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
9044 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
9045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9046 /* end confdefs.h. */
9047 #include <sys/personality.h>
9049 main ()
9051 personality (PER_LINUX32)
9053 return 0;
9055 _ACEOF
9056 if ac_fn_c_try_compile "$LINENO"; then :
9057 emacs_cv_personality_linux32=yes
9058 else
9059 emacs_cv_personality_linux32=no
9061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
9063 $as_echo "$emacs_cv_personality_linux32" >&6; }
9065 if test $emacs_cv_personality_linux32 = yes; then
9067 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
9071 for ac_header in term.h
9072 do :
9073 ac_fn_c_check_header_preproc "$LINENO" "term.h" "ac_cv_header_term_h"
9074 if test "x$ac_cv_header_term_h" = x""yes; then :
9075 cat >>confdefs.h <<_ACEOF
9076 #define HAVE_TERM_H 1
9077 _ACEOF
9081 done
9083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
9084 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
9085 if test "${ac_cv_header_time+set}" = set; then :
9086 $as_echo_n "(cached) " >&6
9087 else
9088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9089 /* end confdefs.h. */
9090 #include <sys/types.h>
9091 #include <sys/time.h>
9092 #include <time.h>
9095 main ()
9097 if ((struct tm *) 0)
9098 return 0;
9100 return 0;
9102 _ACEOF
9103 if ac_fn_c_try_compile "$LINENO"; then :
9104 ac_cv_header_time=yes
9105 else
9106 ac_cv_header_time=no
9108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
9111 $as_echo "$ac_cv_header_time" >&6; }
9112 if test $ac_cv_header_time = yes; then
9114 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
9118 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default"
9119 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then :
9120 ac_have_decl=1
9121 else
9122 ac_have_decl=0
9125 cat >>confdefs.h <<_ACEOF
9126 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
9127 _ACEOF
9129 if test $ac_cv_have_decl_sys_siglist != yes; then
9130 # For Tru64, at least:
9131 ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default"
9132 if test "x$ac_cv_have_decl___sys_siglist" = x""yes; then :
9133 ac_have_decl=1
9134 else
9135 ac_have_decl=0
9138 cat >>confdefs.h <<_ACEOF
9139 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
9140 _ACEOF
9142 if test $ac_cv_have_decl___sys_siglist = yes; then
9144 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
9148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
9149 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
9150 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
9151 $as_echo_n "(cached) " >&6
9152 else
9153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9154 /* end confdefs.h. */
9155 #include <sys/types.h>
9156 #include <sys/wait.h>
9157 #ifndef WEXITSTATUS
9158 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
9159 #endif
9160 #ifndef WIFEXITED
9161 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9162 #endif
9165 main ()
9167 int s;
9168 wait (&s);
9169 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9171 return 0;
9173 _ACEOF
9174 if ac_fn_c_try_compile "$LINENO"; then :
9175 ac_cv_header_sys_wait_h=yes
9176 else
9177 ac_cv_header_sys_wait_h=no
9179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
9182 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
9183 if test $ac_cv_header_sys_wait_h = yes; then
9185 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
9190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
9191 $as_echo_n "checking for struct utimbuf... " >&6; }
9192 if test "${emacs_cv_struct_utimbuf+set}" = set; then :
9193 $as_echo_n "(cached) " >&6
9194 else
9195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9196 /* end confdefs.h. */
9197 #ifdef TIME_WITH_SYS_TIME
9198 #include <sys/time.h>
9199 #include <time.h>
9200 #else
9201 #ifdef HAVE_SYS_TIME_H
9202 #include <sys/time.h>
9203 #else
9204 #include <time.h>
9205 #endif
9206 #endif
9207 #ifdef HAVE_UTIME_H
9208 #include <utime.h>
9209 #endif
9211 main ()
9213 static struct utimbuf x; x.actime = x.modtime;
9215 return 0;
9217 _ACEOF
9218 if ac_fn_c_try_compile "$LINENO"; then :
9219 emacs_cv_struct_utimbuf=yes
9220 else
9221 emacs_cv_struct_utimbuf=no
9223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_utimbuf" >&5
9226 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
9227 if test $emacs_cv_struct_utimbuf = yes; then
9229 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
9233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
9234 $as_echo_n "checking for speed_t... " >&6; }
9235 if test "${emacs_cv_speed_t+set}" = set; then :
9236 $as_echo_n "(cached) " >&6
9237 else
9238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9239 /* end confdefs.h. */
9240 #include <termios.h>
9242 main ()
9244 speed_t x = 1;
9246 return 0;
9248 _ACEOF
9249 if ac_fn_c_try_compile "$LINENO"; then :
9250 emacs_cv_speed_t=yes
9251 else
9252 emacs_cv_speed_t=no
9254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
9257 $as_echo "$emacs_cv_speed_t" >&6; }
9258 if test $emacs_cv_speed_t = yes; then
9260 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
9264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
9265 $as_echo_n "checking for struct timeval... " >&6; }
9266 if test "${emacs_cv_struct_timeval+set}" = set; then :
9267 $as_echo_n "(cached) " >&6
9268 else
9269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9270 /* end confdefs.h. */
9271 #ifdef TIME_WITH_SYS_TIME
9272 #include <sys/time.h>
9273 #include <time.h>
9274 #else
9275 #ifdef HAVE_SYS_TIME_H
9276 #include <sys/time.h>
9277 #else
9278 #include <time.h>
9279 #endif
9280 #endif
9282 main ()
9284 static struct timeval x; x.tv_sec = x.tv_usec;
9286 return 0;
9288 _ACEOF
9289 if ac_fn_c_try_compile "$LINENO"; then :
9290 emacs_cv_struct_timeval=yes
9291 else
9292 emacs_cv_struct_timeval=no
9294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_timeval" >&5
9297 $as_echo "$emacs_cv_struct_timeval" >&6; }
9298 HAVE_TIMEVAL=$emacs_cv_struct_timeval
9299 if test $emacs_cv_struct_timeval = yes; then
9301 $as_echo "#define HAVE_TIMEVAL 1" >>confdefs.h
9305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct exception" >&5
9306 $as_echo_n "checking for struct exception... " >&6; }
9307 if test "${emacs_cv_struct_exception+set}" = set; then :
9308 $as_echo_n "(cached) " >&6
9309 else
9310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9311 /* end confdefs.h. */
9312 #include <math.h>
9314 main ()
9316 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
9318 return 0;
9320 _ACEOF
9321 if ac_fn_c_try_compile "$LINENO"; then :
9322 emacs_cv_struct_exception=yes
9323 else
9324 emacs_cv_struct_exception=no
9326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_exception" >&5
9329 $as_echo "$emacs_cv_struct_exception" >&6; }
9330 HAVE_EXCEPTION=$emacs_cv_struct_exception
9331 if test $emacs_cv_struct_exception != yes; then
9333 $as_echo "#define NO_MATHERR 1" >>confdefs.h
9337 for ac_header in sys/socket.h
9338 do :
9339 ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
9340 if test "x$ac_cv_header_sys_socket_h" = x""yes; then :
9341 cat >>confdefs.h <<_ACEOF
9342 #define HAVE_SYS_SOCKET_H 1
9343 _ACEOF
9347 done
9349 for ac_header in net/if.h
9350 do :
9351 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
9352 #if HAVE_SYS_SOCKET_H
9353 #include <sys/socket.h>
9354 #endif
9356 if test "x$ac_cv_header_net_if_h" = x""yes; then :
9357 cat >>confdefs.h <<_ACEOF
9358 #define HAVE_NET_IF_H 1
9359 _ACEOF
9363 done
9365 for ac_header in ifaddrs.h
9366 do :
9367 ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default
9368 #if HAVE_SYS_SOCKET_H
9369 #include <sys/socket.h>
9370 #endif
9372 if test "x$ac_cv_header_ifaddrs_h" = x""yes; then :
9373 cat >>confdefs.h <<_ACEOF
9374 #define HAVE_IFADDRS_H 1
9375 _ACEOF
9379 done
9381 for ac_header in net/if_dl.h
9382 do :
9383 ac_fn_c_check_header_compile "$LINENO" "net/if_dl.h" "ac_cv_header_net_if_dl_h" "$ac_includes_default
9384 #if HAVE_SYS_SOCKET_H
9385 #include <sys/socket.h>
9386 #endif
9388 if test "x$ac_cv_header_net_if_dl_h" = x""yes; then :
9389 cat >>confdefs.h <<_ACEOF
9390 #define HAVE_NET_IF_DL_H 1
9391 _ACEOF
9395 done
9397 for ac_func in getifaddrs freeifaddrs
9398 do :
9399 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9400 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9401 eval as_val=\$$as_ac_var
9402 if test "x$as_val" = x""yes; then :
9403 cat >>confdefs.h <<_ACEOF
9404 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9405 _ACEOF
9408 done
9411 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
9412 #if HAVE_SYS_SOCKET_H
9413 #include <sys/socket.h>
9414 #endif
9415 #if HAVE_NET_IF_H
9416 #include <net/if.h>
9417 #endif
9419 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x""yes; then :
9421 cat >>confdefs.h <<_ACEOF
9422 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
9423 _ACEOF
9427 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
9428 #if HAVE_SYS_SOCKET_H
9429 #include <sys/socket.h>
9430 #endif
9431 #if HAVE_NET_IF_H
9432 #include <net/if.h>
9433 #endif
9435 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x""yes; then :
9437 cat >>confdefs.h <<_ACEOF
9438 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
9439 _ACEOF
9443 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
9444 #if HAVE_SYS_SOCKET_H
9445 #include <sys/socket.h>
9446 #endif
9447 #if HAVE_NET_IF_H
9448 #include <net/if.h>
9449 #endif
9451 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x""yes; then :
9453 cat >>confdefs.h <<_ACEOF
9454 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
9455 _ACEOF
9459 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
9460 #if HAVE_SYS_SOCKET_H
9461 #include <sys/socket.h>
9462 #endif
9463 #if HAVE_NET_IF_H
9464 #include <net/if.h>
9465 #endif
9467 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x""yes; then :
9469 cat >>confdefs.h <<_ACEOF
9470 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
9471 _ACEOF
9475 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
9476 #if HAVE_SYS_SOCKET_H
9477 #include <sys/socket.h>
9478 #endif
9479 #if HAVE_NET_IF_H
9480 #include <net/if.h>
9481 #endif
9483 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x""yes; then :
9485 cat >>confdefs.h <<_ACEOF
9486 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
9487 _ACEOF
9491 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr.sa_len" "ac_cv_member_struct_ifreq_ifr_addr_sa_len" "$ac_includes_default
9492 #if HAVE_SYS_SOCKET_H
9493 #include <sys/socket.h>
9494 #endif
9495 #if HAVE_NET_IF_H
9496 #include <net/if.h>
9497 #endif
9499 if test "x$ac_cv_member_struct_ifreq_ifr_addr_sa_len" = x""yes; then :
9501 cat >>confdefs.h <<_ACEOF
9502 #define HAVE_STRUCT_IFREQ_IFR_ADDR_SA_LEN 1
9503 _ACEOF
9510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
9511 $as_echo_n "checking for function prototypes... " >&6; }
9512 if test "$ac_cv_prog_cc_c89" != no; then
9513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9514 $as_echo "yes" >&6; }
9516 $as_echo "#define PROTOTYPES 1" >>confdefs.h
9519 $as_echo "#define __PROTOTYPES 1" >>confdefs.h
9521 else
9522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9523 $as_echo "no" >&6; }
9526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
9527 $as_echo_n "checking for working volatile... " >&6; }
9528 if test "${ac_cv_c_volatile+set}" = set; then :
9529 $as_echo_n "(cached) " >&6
9530 else
9531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9532 /* end confdefs.h. */
9535 main ()
9538 volatile int x;
9539 int * volatile y = (int *) 0;
9540 return !x && !y;
9542 return 0;
9544 _ACEOF
9545 if ac_fn_c_try_compile "$LINENO"; then :
9546 ac_cv_c_volatile=yes
9547 else
9548 ac_cv_c_volatile=no
9550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
9553 $as_echo "$ac_cv_c_volatile" >&6; }
9554 if test $ac_cv_c_volatile = no; then
9556 $as_echo "#define volatile /**/" >>confdefs.h
9560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
9561 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
9562 if test "${ac_cv_c_const+set}" = set; then :
9563 $as_echo_n "(cached) " >&6
9564 else
9565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9566 /* end confdefs.h. */
9569 main ()
9571 /* FIXME: Include the comments suggested by Paul. */
9572 #ifndef __cplusplus
9573 /* Ultrix mips cc rejects this. */
9574 typedef int charset[2];
9575 const charset cs;
9576 /* SunOS 4.1.1 cc rejects this. */
9577 char const *const *pcpcc;
9578 char **ppc;
9579 /* NEC SVR4.0.2 mips cc rejects this. */
9580 struct point {int x, y;};
9581 static struct point const zero = {0,0};
9582 /* AIX XL C 1.02.0.0 rejects this.
9583 It does not let you subtract one const X* pointer from another in
9584 an arm of an if-expression whose if-part is not a constant
9585 expression */
9586 const char *g = "string";
9587 pcpcc = &g + (g ? g-g : 0);
9588 /* HPUX 7.0 cc rejects these. */
9589 ++pcpcc;
9590 ppc = (char**) pcpcc;
9591 pcpcc = (char const *const *) ppc;
9592 { /* SCO 3.2v4 cc rejects this. */
9593 char *t;
9594 char const *s = 0 ? (char *) 0 : (char const *) 0;
9596 *t++ = 0;
9597 if (s) return 0;
9599 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9600 int x[] = {25, 17};
9601 const int *foo = &x[0];
9602 ++foo;
9604 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9605 typedef const int *iptr;
9606 iptr p = 0;
9607 ++p;
9609 { /* AIX XL C 1.02.0.0 rejects this saying
9610 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9611 struct s { int j; const int *ap[3]; };
9612 struct s *b; b->j = 5;
9614 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9615 const int foo = 10;
9616 if (!foo) return 0;
9618 return !cs[0] && !zero.x;
9619 #endif
9622 return 0;
9624 _ACEOF
9625 if ac_fn_c_try_compile "$LINENO"; then :
9626 ac_cv_c_const=yes
9627 else
9628 ac_cv_c_const=no
9630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
9633 $as_echo "$ac_cv_c_const" >&6; }
9634 if test $ac_cv_c_const = no; then
9636 $as_echo "#define const /**/" >>confdefs.h
9640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for void * support" >&5
9641 $as_echo_n "checking for void * support... " >&6; }
9642 if test "${emacs_cv_void_star+set}" = set; then :
9643 $as_echo_n "(cached) " >&6
9644 else
9645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9646 /* end confdefs.h. */
9649 main ()
9651 void * foo;
9653 return 0;
9655 _ACEOF
9656 if ac_fn_c_try_compile "$LINENO"; then :
9657 emacs_cv_void_star=yes
9658 else
9659 emacs_cv_void_star=no
9661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_void_star" >&5
9664 $as_echo "$emacs_cv_void_star" >&6; }
9665 if test $emacs_cv_void_star = yes; then
9666 $as_echo "#define POINTER_TYPE void" >>confdefs.h
9668 else
9669 $as_echo "#define POINTER_TYPE char" >>confdefs.h
9673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
9674 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
9675 if test "${ac_cv_c_bigendian+set}" = set; then :
9676 $as_echo_n "(cached) " >&6
9677 else
9678 ac_cv_c_bigendian=unknown
9679 # See if we're dealing with a universal compiler.
9680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9681 /* end confdefs.h. */
9682 #ifndef __APPLE_CC__
9683 not a universal capable compiler
9684 #endif
9685 typedef int dummy;
9687 _ACEOF
9688 if ac_fn_c_try_compile "$LINENO"; then :
9690 # Check for potential -arch flags. It is not universal unless
9691 # there are at least two -arch flags with different values.
9692 ac_arch=
9693 ac_prev=
9694 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
9695 if test -n "$ac_prev"; then
9696 case $ac_word in
9697 i?86 | x86_64 | ppc | ppc64)
9698 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
9699 ac_arch=$ac_word
9700 else
9701 ac_cv_c_bigendian=universal
9702 break
9705 esac
9706 ac_prev=
9707 elif test "x$ac_word" = "x-arch"; then
9708 ac_prev=arch
9710 done
9712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9713 if test $ac_cv_c_bigendian = unknown; then
9714 # See if sys/param.h defines the BYTE_ORDER macro.
9715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9716 /* end confdefs.h. */
9717 #include <sys/types.h>
9718 #include <sys/param.h>
9721 main ()
9723 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
9724 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
9725 && LITTLE_ENDIAN)
9726 bogus endian macros
9727 #endif
9730 return 0;
9732 _ACEOF
9733 if ac_fn_c_try_compile "$LINENO"; then :
9734 # It does; now see whether it defined to BIG_ENDIAN or not.
9735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9736 /* end confdefs.h. */
9737 #include <sys/types.h>
9738 #include <sys/param.h>
9741 main ()
9743 #if BYTE_ORDER != BIG_ENDIAN
9744 not big endian
9745 #endif
9748 return 0;
9750 _ACEOF
9751 if ac_fn_c_try_compile "$LINENO"; then :
9752 ac_cv_c_bigendian=yes
9753 else
9754 ac_cv_c_bigendian=no
9756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9760 if test $ac_cv_c_bigendian = unknown; then
9761 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9763 /* end confdefs.h. */
9764 #include <limits.h>
9767 main ()
9769 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9770 bogus endian macros
9771 #endif
9774 return 0;
9776 _ACEOF
9777 if ac_fn_c_try_compile "$LINENO"; then :
9778 # It does; now see whether it defined to _BIG_ENDIAN or not.
9779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9780 /* end confdefs.h. */
9781 #include <limits.h>
9784 main ()
9786 #ifndef _BIG_ENDIAN
9787 not big endian
9788 #endif
9791 return 0;
9793 _ACEOF
9794 if ac_fn_c_try_compile "$LINENO"; then :
9795 ac_cv_c_bigendian=yes
9796 else
9797 ac_cv_c_bigendian=no
9799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9803 if test $ac_cv_c_bigendian = unknown; then
9804 # Compile a test program.
9805 if test "$cross_compiling" = yes; then :
9806 # Try to guess by grepping values from an object file.
9807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9808 /* end confdefs.h. */
9809 short int ascii_mm[] =
9810 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9811 short int ascii_ii[] =
9812 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9813 int use_ascii (int i) {
9814 return ascii_mm[i] + ascii_ii[i];
9816 short int ebcdic_ii[] =
9817 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9818 short int ebcdic_mm[] =
9819 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9820 int use_ebcdic (int i) {
9821 return ebcdic_mm[i] + ebcdic_ii[i];
9823 extern int foo;
9826 main ()
9828 return use_ascii (foo) == use_ebcdic (foo);
9830 return 0;
9832 _ACEOF
9833 if ac_fn_c_try_compile "$LINENO"; then :
9834 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
9835 ac_cv_c_bigendian=yes
9837 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9838 if test "$ac_cv_c_bigendian" = unknown; then
9839 ac_cv_c_bigendian=no
9840 else
9841 # finding both strings is unlikely to happen, but who knows?
9842 ac_cv_c_bigendian=unknown
9846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9847 else
9848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9849 /* end confdefs.h. */
9850 $ac_includes_default
9852 main ()
9855 /* Are we little or big endian? From Harbison&Steele. */
9856 union
9858 long int l;
9859 char c[sizeof (long int)];
9860 } u;
9861 u.l = 1;
9862 return u.c[sizeof (long int) - 1] == 1;
9865 return 0;
9867 _ACEOF
9868 if ac_fn_c_try_run "$LINENO"; then :
9869 ac_cv_c_bigendian=no
9870 else
9871 ac_cv_c_bigendian=yes
9873 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9874 conftest.$ac_objext conftest.beam conftest.$ac_ext
9879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9880 $as_echo "$ac_cv_c_bigendian" >&6; }
9881 case $ac_cv_c_bigendian in #(
9882 yes)
9883 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9884 ;; #(
9886 ;; #(
9887 universal)
9889 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9891 ;; #(
9893 as_fn_error "unknown endianness
9894 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9895 esac
9898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__ ((__aligned__ (expr)))" >&5
9899 $as_echo_n "checking for __attribute__ ((__aligned__ (expr)))... " >&6; }
9900 if test "${emacs_cv_attribute_aligned+set}" = set; then :
9901 $as_echo_n "(cached) " >&6
9902 else
9903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9904 /* end confdefs.h. */
9905 char __attribute__ ((__aligned__ (1 << 3))) c;
9907 main ()
9911 return 0;
9913 _ACEOF
9914 if ac_fn_c_try_compile "$LINENO"; then :
9915 emacs_cv_attribute_aligned=yes
9916 else
9917 emacs_cv_attribute_aligned=no
9919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_attribute_aligned" >&5
9922 $as_echo "$emacs_cv_attribute_aligned" >&6; }
9923 if test $emacs_cv_attribute_aligned = yes; then
9925 $as_echo "#define HAVE_ATTRIBUTE_ALIGNED 1" >>confdefs.h
9929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9930 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9931 set x ${MAKE-make}
9932 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9933 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
9934 $as_echo_n "(cached) " >&6
9935 else
9936 cat >conftest.make <<\_ACEOF
9937 SHELL = /bin/sh
9938 all:
9939 @echo '@@@%%%=$(MAKE)=@@@%%%'
9940 _ACEOF
9941 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9942 case `${MAKE-make} -f conftest.make 2>/dev/null` in
9943 *@@@%%%=?*=@@@%%%*)
9944 eval ac_cv_prog_make_${ac_make}_set=yes;;
9946 eval ac_cv_prog_make_${ac_make}_set=no;;
9947 esac
9948 rm -f conftest.make
9950 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9952 $as_echo "yes" >&6; }
9953 SET_MAKE=
9954 else
9955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9956 $as_echo "no" >&6; }
9957 SET_MAKE="MAKE=${MAKE-make}"
9961 DEPFLAGS=
9962 MKDEPDIR=":"
9963 deps_frag=deps.mk
9964 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
9965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
9966 $as_echo_n "checking whether we are using GNU Make... " >&6; }
9967 HAVE_GNU_MAKE=no
9968 testval=`${MAKE-make} --version 2>/dev/null | grep 'GNU Make'`
9969 if test "x$testval" != x; then
9970 HAVE_GNU_MAKE=yes
9971 else
9972 ac_enable_autodepend=no
9974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
9975 $as_echo "$HAVE_GNU_MAKE" >&6; }
9976 if test $HAVE_GNU_MAKE = yes; then
9977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
9978 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
9979 SAVE_CFLAGS="$CFLAGS"
9980 CFLAGS="$CFLAGS -MMD -MF deps.d -MP"
9981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9982 /* end confdefs.h. */
9985 main ()
9989 return 0;
9991 _ACEOF
9992 if ac_fn_c_try_compile "$LINENO"; then :
9994 else
9995 ac_enable_autodepend=no
9997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9998 CFLAGS="$SAVE_CFLAGS"
9999 test -f deps.d || ac_enable_autodepend=no
10000 rm -rf deps.d
10001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
10002 $as_echo "$ac_enable_autodepend" >&6; }
10004 if test $ac_enable_autodepend = yes; then
10005 DEPFLAGS='-MMD -MF ${DEPDIR}/$*.d -MP'
10006 ## In parallel builds, another make might create depdir between
10007 ## the first test and mkdir, so stick another test on the end.
10008 ## Or use install-sh -d? mkdir -p is not portable.
10009 MKDEPDIR='test -d ${DEPDIR} || mkdir ${DEPDIR} || test -d ${DEPDIR}'
10010 deps_frag=autodeps.mk
10013 deps_frag=$srcdir/src/$deps_frag
10019 lisp_frag=$srcdir/src/lisp.mk
10023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
10024 $as_echo_n "checking for long file names... " >&6; }
10025 if test "${ac_cv_sys_long_file_names+set}" = set; then :
10026 $as_echo_n "(cached) " >&6
10027 else
10028 ac_cv_sys_long_file_names=yes
10029 # Test for long file names in all the places we know might matter:
10030 # . the current directory, where building will happen
10031 # $prefix/lib where we will be installing things
10032 # $exec_prefix/lib likewise
10033 # $TMPDIR if set, where it might want to write temporary files
10034 # /tmp where it might want to write temporary files
10035 # /var/tmp likewise
10036 # /usr/tmp likewise
10037 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
10038 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
10039 # in the usual case where exec_prefix is '${prefix}'.
10040 case $ac_dir in #(
10041 . | /* | ?:[\\/]*) ;; #(
10042 *) continue;;
10043 esac
10044 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
10045 ac_xdir=$ac_dir/cf$$
10046 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
10047 ac_tf1=$ac_xdir/conftest9012345
10048 ac_tf2=$ac_xdir/conftest9012346
10049 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
10050 ac_cv_sys_long_file_names=no
10051 rm -f -r "$ac_xdir" 2>/dev/null
10052 test $ac_cv_sys_long_file_names = no && break
10053 done
10055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
10056 $as_echo "$ac_cv_sys_long_file_names" >&6; }
10057 if test $ac_cv_sys_long_file_names = yes; then
10059 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
10064 #### Choose a window system.
10066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
10067 $as_echo_n "checking for X... " >&6; }
10070 # Check whether --with-x was given.
10071 if test "${with_x+set}" = set; then :
10072 withval=$with_x;
10075 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
10076 if test "x$with_x" = xno; then
10077 # The user explicitly disabled X.
10078 have_x=disabled
10079 else
10080 case $x_includes,$x_libraries in #(
10081 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
10082 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
10083 $as_echo_n "(cached) " >&6
10084 else
10085 # One or both of the vars are not set, and there is no cached value.
10086 ac_x_includes=no ac_x_libraries=no
10087 rm -f -r conftest.dir
10088 if mkdir conftest.dir; then
10089 cd conftest.dir
10090 cat >Imakefile <<'_ACEOF'
10091 incroot:
10092 @echo incroot='${INCROOT}'
10093 usrlibdir:
10094 @echo usrlibdir='${USRLIBDIR}'
10095 libdir:
10096 @echo libdir='${LIBDIR}'
10097 _ACEOF
10098 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
10099 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
10100 for ac_var in incroot usrlibdir libdir; do
10101 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
10102 done
10103 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
10104 for ac_extension in a so sl dylib la dll; do
10105 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
10106 test -f "$ac_im_libdir/libX11.$ac_extension"; then
10107 ac_im_usrlibdir=$ac_im_libdir; break
10109 done
10110 # Screen out bogus values from the imake configuration. They are
10111 # bogus both because they are the default anyway, and because
10112 # using them would break gcc on systems where it needs fixed includes.
10113 case $ac_im_incroot in
10114 /usr/include) ac_x_includes= ;;
10115 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
10116 esac
10117 case $ac_im_usrlibdir in
10118 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
10119 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
10120 esac
10122 cd ..
10123 rm -f -r conftest.dir
10126 # Standard set of common directories for X headers.
10127 # Check X11 before X11Rn because it is often a symlink to the current release.
10128 ac_x_header_dirs='
10129 /usr/X11/include
10130 /usr/X11R7/include
10131 /usr/X11R6/include
10132 /usr/X11R5/include
10133 /usr/X11R4/include
10135 /usr/include/X11
10136 /usr/include/X11R7
10137 /usr/include/X11R6
10138 /usr/include/X11R5
10139 /usr/include/X11R4
10141 /usr/local/X11/include
10142 /usr/local/X11R7/include
10143 /usr/local/X11R6/include
10144 /usr/local/X11R5/include
10145 /usr/local/X11R4/include
10147 /usr/local/include/X11
10148 /usr/local/include/X11R7
10149 /usr/local/include/X11R6
10150 /usr/local/include/X11R5
10151 /usr/local/include/X11R4
10153 /usr/X386/include
10154 /usr/x386/include
10155 /usr/XFree86/include/X11
10157 /usr/include
10158 /usr/local/include
10159 /usr/unsupported/include
10160 /usr/athena/include
10161 /usr/local/x11r5/include
10162 /usr/lpp/Xamples/include
10164 /usr/openwin/include
10165 /usr/openwin/share/include'
10167 if test "$ac_x_includes" = no; then
10168 # Guess where to find include files, by looking for Xlib.h.
10169 # First, try using that file with no special directory specified.
10170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10171 /* end confdefs.h. */
10172 #include <X11/Xlib.h>
10173 _ACEOF
10174 if ac_fn_c_try_cpp "$LINENO"; then :
10175 # We can compile using X headers with no special include directory.
10176 ac_x_includes=
10177 else
10178 for ac_dir in $ac_x_header_dirs; do
10179 if test -r "$ac_dir/X11/Xlib.h"; then
10180 ac_x_includes=$ac_dir
10181 break
10183 done
10185 rm -f conftest.err conftest.$ac_ext
10186 fi # $ac_x_includes = no
10188 if test "$ac_x_libraries" = no; then
10189 # Check for the libraries.
10190 # See if we find them without any special options.
10191 # Don't add to $LIBS permanently.
10192 ac_save_LIBS=$LIBS
10193 LIBS="-lX11 $LIBS"
10194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10195 /* end confdefs.h. */
10196 #include <X11/Xlib.h>
10198 main ()
10200 XrmInitialize ()
10202 return 0;
10204 _ACEOF
10205 if ac_fn_c_try_link "$LINENO"; then :
10206 LIBS=$ac_save_LIBS
10207 # We can link X programs with no special library path.
10208 ac_x_libraries=
10209 else
10210 LIBS=$ac_save_LIBS
10211 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
10213 # Don't even attempt the hair of trying to link an X program!
10214 for ac_extension in a so sl dylib la dll; do
10215 if test -r "$ac_dir/libX11.$ac_extension"; then
10216 ac_x_libraries=$ac_dir
10217 break 2
10219 done
10220 done
10222 rm -f core conftest.err conftest.$ac_objext \
10223 conftest$ac_exeext conftest.$ac_ext
10224 fi # $ac_x_libraries = no
10226 case $ac_x_includes,$ac_x_libraries in #(
10227 no,* | *,no | *\'*)
10228 # Didn't find X, or a directory has "'" in its name.
10229 ac_cv_have_x="have_x=no";; #(
10231 # Record where we found X for the cache.
10232 ac_cv_have_x="have_x=yes\
10233 ac_x_includes='$ac_x_includes'\
10234 ac_x_libraries='$ac_x_libraries'"
10235 esac
10237 ;; #(
10238 *) have_x=yes;;
10239 esac
10240 eval "$ac_cv_have_x"
10241 fi # $with_x != no
10243 if test "$have_x" != yes; then
10244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
10245 $as_echo "$have_x" >&6; }
10246 no_x=yes
10247 else
10248 # If each of the values was on the command line, it overrides each guess.
10249 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
10250 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
10251 # Update the cache value to reflect the command line values.
10252 ac_cv_have_x="have_x=yes\
10253 ac_x_includes='$x_includes'\
10254 ac_x_libraries='$x_libraries'"
10255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
10256 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
10259 if test "$no_x" = yes; then
10260 window_system=none
10261 else
10262 window_system=x11
10265 LD_SWITCH_X_SITE_RPATH=
10266 if test "${x_libraries}" != NONE; then
10267 if test -n "${x_libraries}"; then
10268 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
10269 LD_SWITCH_X_SITE_RPATH=-Wl,-rpath,`echo ${x_libraries} | sed -e "s/:/ -Wl,-rpath,/g"`
10271 x_default_search_path=""
10272 x_search_path=${x_libraries}
10273 if test -z "${x_search_path}"; then
10274 x_search_path=/usr/lib
10276 for x_library in `echo ${x_search_path}: | \
10277 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
10278 x_search_path="\
10279 ${x_library}/X11/%L/%T/%N%C%S:\
10280 ${x_library}/X11/%l/%T/%N%C%S:\
10281 ${x_library}/X11/%T/%N%C%S:\
10282 ${x_library}/X11/%L/%T/%N%S:\
10283 ${x_library}/X11/%l/%T/%N%S:\
10284 ${x_library}/X11/%T/%N%S"
10285 if test x"${x_default_search_path}" = x; then
10286 x_default_search_path=${x_search_path}
10287 else
10288 x_default_search_path="${x_search_path}:${x_default_search_path}"
10290 done
10294 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
10295 C_SWITCH_X_SITE="$isystem"`echo ${x_includes} | sed -e "s/:/ $isystem/g"`
10298 if test x"${x_includes}" = x; then
10299 bitmapdir=/usr/include/X11/bitmaps
10300 else
10301 # accumulate include directories that have X11 bitmap subdirectories
10302 bmd_acc="dummyval"
10303 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
10304 if test -d "${bmd}/X11/bitmaps"; then
10305 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
10307 if test -d "${bmd}/bitmaps"; then
10308 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
10310 done
10311 if test ${bmd_acc} != "dummyval"; then
10312 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
10316 HAVE_NS=no
10317 NS_IMPL_COCOA=no
10318 NS_IMPL_GNUSTEP=no
10319 tmp_CPPFLAGS="$CPPFLAGS"
10320 tmp_CFLAGS="$CFLAGS"
10321 CPPFLAGS="$CPPFLAGS -x objective-c"
10322 CFLAGS="$CFLAGS -x objective-c"
10323 TEMACS_LDFLAGS2="\${LDFLAGS}"
10324 GNU_OBJC_CFLAGS=
10325 if test "${with_ns}" != no; then
10326 if test "${opsys}" = darwin; then
10327 NS_IMPL_COCOA=yes
10328 ns_appdir=`pwd`/nextstep/Emacs.app
10329 ns_appbindir=${ns_appdir}/Contents/MacOS/
10330 ns_appresdir=${ns_appdir}/Contents/Resources
10331 ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base
10332 elif test -f $GNUSTEP_CONFIG_FILE; then
10333 NS_IMPL_GNUSTEP=yes
10334 ns_appdir=`pwd`/nextstep/Emacs.app
10335 ns_appbindir=${ns_appdir}/
10336 ns_appresdir=${ns_appdir}/Resources
10337 ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base
10338 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
10339 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
10340 GNUSTEP_LOCAL_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
10341 GNUSTEP_LOCAL_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
10342 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
10343 GNUSTEP_LOCAL_HEADERS="-I${GNUSTEP_LOCAL_HEADERS}"
10344 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
10345 GNUSTEP_LOCAL_LIBRARIES="-L${GNUSTEP_LOCAL_LIBRARIES}"
10346 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
10347 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
10348 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
10349 LIB_STANDARD=
10350 START_FILES=
10351 TEMACS_LDFLAGS2=
10352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS" >&5
10353 $as_echo_n "checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS... " >&6; }
10354 if test "${emacs_cv_objc_exceptions+set}" = set; then :
10355 $as_echo_n "(cached) " >&6
10356 else
10357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10358 /* end confdefs.h. */
10359 #include <GNUstepBase/GSConfig.h>
10361 main ()
10363 #if defined BASE_NATIVE_OBJC_EXCEPTIONS && BASE_NATIVE_OBJC_EXCEPTIONS > 0
10365 #else
10366 fail;
10367 #endif
10369 return 0;
10371 _ACEOF
10372 if ac_fn_c_try_compile "$LINENO"; then :
10373 emacs_cv_objc_exceptions=yes
10374 else
10375 emacs_cv_objc_exceptions=no
10377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_objc_exceptions" >&5
10380 $as_echo "$emacs_cv_objc_exceptions" >&6; }
10381 if test $emacs_cv_objc_exceptions = yes; then
10383 $as_echo "#define _NATIVE_OBJC_EXCEPTIONS 1" >>confdefs.h
10385 GNU_OBJC_CFLAGS="-fobjc-exceptions"
10389 CFLAGS="$CFLAGS $GNU_OBJC_CFLAGS"
10391 ac_fn_c_check_header_mongrel "$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
10392 if test "x$ac_cv_header_AppKit_AppKit_h" = x""yes; then :
10393 HAVE_NS=yes
10394 else
10395 as_fn_error "\`--with-ns' was specified, but the include
10396 files are missing or cannot be compiled." "$LINENO" 5
10400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10401 /* end confdefs.h. */
10402 #include <Foundation/NSObjCRuntime.h>
10404 main ()
10406 NSInteger i;
10408 return 0;
10410 _ACEOF
10411 if ac_fn_c_try_compile "$LINENO"; then :
10412 ns_have_nsinteger=yes
10413 else
10414 ns_have_nsinteger=no
10416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10417 if test $ns_have_nsinteger = yes; then
10419 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
10425 ns_frag=/dev/null
10426 NS_OBJ=
10427 NS_OBJC_OBJ=
10428 if test "${HAVE_NS}" = yes; then
10429 if test "$with_toolkit_scroll_bars" = "no"; then
10430 as_fn_error "Non-toolkit scroll bars are not implemented for Nextstep." "$LINENO" 5
10433 window_system=nextstep
10434 with_xft=no
10435 # set up packaging dirs
10436 if test "${EN_NS_SELF_CONTAINED}" = yes; then
10437 prefix=${ns_appresdir}
10438 exec_prefix=${ns_appbindir}
10439 libexecdir=${ns_appbindir}/libexec
10441 ns_frag=$srcdir/src/ns.mk
10442 NS_OBJ="fontset.o fringe.o image.o"
10443 NS_OBJC_OBJ="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o"
10445 CFLAGS="$tmp_CFLAGS"
10446 CPPFLAGS="$tmp_CPPFLAGS"
10452 case "${window_system}" in
10453 x11 )
10454 HAVE_X_WINDOWS=yes
10455 HAVE_X11=yes
10456 case "${with_x_toolkit}" in
10457 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
10458 motif ) USE_X_TOOLKIT=MOTIF ;;
10459 gtk ) with_gtk=yes
10460 USE_X_TOOLKIT=none ;;
10461 gtk3 ) with_gtk3=yes
10462 USE_X_TOOLKIT=none ;;
10463 no ) USE_X_TOOLKIT=none ;;
10464 * ) USE_X_TOOLKIT=maybe ;;
10465 esac
10467 nextstep | none )
10468 HAVE_X_WINDOWS=no
10469 HAVE_X11=no
10470 USE_X_TOOLKIT=none
10472 esac
10474 if test "$window_system" = none && test "X$with_x" != "Xno"; then
10475 # Extract the first word of "X", so it can be a program name with args.
10476 set dummy X; ac_word=$2
10477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10478 $as_echo_n "checking for $ac_word... " >&6; }
10479 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then :
10480 $as_echo_n "(cached) " >&6
10481 else
10482 if test -n "$HAVE_XSERVER"; then
10483 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
10484 else
10485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10486 for as_dir in $PATH
10488 IFS=$as_save_IFS
10489 test -z "$as_dir" && as_dir=.
10490 for ac_exec_ext in '' $ac_executable_extensions; do
10491 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10492 ac_cv_prog_HAVE_XSERVER="true"
10493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10494 break 2
10496 done
10497 done
10498 IFS=$as_save_IFS
10500 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
10503 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
10504 if test -n "$HAVE_XSERVER"; then
10505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
10506 $as_echo "$HAVE_XSERVER" >&6; }
10507 else
10508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10509 $as_echo "no" >&6; }
10513 if test "$HAVE_XSERVER" = true ||
10514 test -n "$DISPLAY" ||
10515 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
10516 as_fn_error "You seem to be running X, but no X development libraries
10517 were found. You should install the relevant development files for X
10518 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
10519 sure you have development files for image handling, i.e.
10520 tiff, gif, jpeg, png and xpm.
10521 If you are sure you want Emacs compiled without X window support, pass
10522 --without-x
10523 to configure." "$LINENO" 5
10527 ### If we're using X11, we should use the X menu package.
10528 HAVE_MENUS=no
10529 case ${HAVE_X11} in
10530 yes ) HAVE_MENUS=yes ;;
10531 esac
10533 # Do the opsystem or machine files prohibit the use of the GNU malloc?
10534 # Assume not, until told otherwise.
10535 GNU_MALLOC=yes
10537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc is Doug Lea style" >&5
10538 $as_echo_n "checking whether malloc is Doug Lea style... " >&6; }
10539 if test "${emacs_cv_var_doug_lea_malloc+set}" = set; then :
10540 $as_echo_n "(cached) " >&6
10541 else
10542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10543 /* end confdefs.h. */
10544 #include <malloc.h>
10545 static void hook (void) {}
10547 main ()
10549 malloc_set_state (malloc_get_state ());
10550 __after_morecore_hook = hook;
10551 __malloc_initialize_hook = hook;
10553 return 0;
10555 _ACEOF
10556 if ac_fn_c_try_link "$LINENO"; then :
10557 emacs_cv_var_doug_lea_malloc=yes
10558 else
10559 emacs_cv_var_doug_lea_malloc=no
10561 rm -f core conftest.err conftest.$ac_objext \
10562 conftest$ac_exeext conftest.$ac_ext
10564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var_doug_lea_malloc" >&5
10565 $as_echo "$emacs_cv_var_doug_lea_malloc" >&6; }
10566 doug_lea_malloc=$emacs_cv_var_doug_lea_malloc
10569 system_malloc=no
10570 case "$opsys" in
10571 ## darwin ld insists on the use of malloc routines in the System framework.
10572 darwin|sol2-10) system_malloc=yes ;;
10573 esac
10575 if test "${system_malloc}" = "yes"; then
10577 $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
10579 GNU_MALLOC=no
10580 GNU_MALLOC_reason="
10581 (The GNU allocators don't work with this system configuration.)"
10582 GMALLOC_OBJ=
10583 VMLIMIT_OBJ=
10584 else
10585 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ=gmalloc.o
10586 VMLIMIT_OBJ=vm-limit.o
10591 if test "$doug_lea_malloc" = "yes" ; then
10592 if test "$GNU_MALLOC" = yes ; then
10593 GNU_MALLOC_reason="
10594 (Using Doug Lea's new malloc from the GNU C Library.)"
10597 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
10600 ## Use mmap directly for allocating larger buffers.
10601 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
10602 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
10603 ## Does the AC_FUNC_MMAP test below make this check unnecessary?
10604 case "$opsys" in
10605 gnu*) REL_ALLOC=no ;;
10606 esac
10609 if test x"${REL_ALLOC}" = x; then
10610 REL_ALLOC=${GNU_MALLOC}
10613 use_mmap_for_buffers=no
10614 case "$opsys" in
10615 cygwin|freebsd|irix6-5) use_mmap_for_buffers=yes ;;
10616 esac
10621 for ac_header in $ac_header_list
10622 do :
10623 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10624 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
10626 eval as_val=\$$as_ac_Header
10627 if test "x$as_val" = x""yes; then :
10628 cat >>confdefs.h <<_ACEOF
10629 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10630 _ACEOF
10634 done
10643 for ac_func in getpagesize
10644 do :
10645 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
10646 if test "x$ac_cv_func_getpagesize" = x""yes; then :
10647 cat >>confdefs.h <<_ACEOF
10648 #define HAVE_GETPAGESIZE 1
10649 _ACEOF
10652 done
10654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
10655 $as_echo_n "checking for working mmap... " >&6; }
10656 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
10657 $as_echo_n "(cached) " >&6
10658 else
10659 if test "$cross_compiling" = yes; then :
10660 ac_cv_func_mmap_fixed_mapped=no
10661 else
10662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10663 /* end confdefs.h. */
10664 $ac_includes_default
10665 /* malloc might have been renamed as rpl_malloc. */
10666 #undef malloc
10668 /* Thanks to Mike Haertel and Jim Avera for this test.
10669 Here is a matrix of mmap possibilities:
10670 mmap private not fixed
10671 mmap private fixed at somewhere currently unmapped
10672 mmap private fixed at somewhere already mapped
10673 mmap shared not fixed
10674 mmap shared fixed at somewhere currently unmapped
10675 mmap shared fixed at somewhere already mapped
10676 For private mappings, we should verify that changes cannot be read()
10677 back from the file, nor mmap's back from the file at a different
10678 address. (There have been systems where private was not correctly
10679 implemented like the infamous i386 svr4.0, and systems where the
10680 VM page cache was not coherent with the file system buffer cache
10681 like early versions of FreeBSD and possibly contemporary NetBSD.)
10682 For shared mappings, we should conversely verify that changes get
10683 propagated back to all the places they're supposed to be.
10685 Grep wants private fixed already mapped.
10686 The main things grep needs to know about mmap are:
10687 * does it exist and is it safe to write into the mmap'd area
10688 * how to use it (BSD variants) */
10690 #include <fcntl.h>
10691 #include <sys/mman.h>
10693 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10694 char *malloc ();
10695 #endif
10697 /* This mess was copied from the GNU getpagesize.h. */
10698 #ifndef HAVE_GETPAGESIZE
10699 # ifdef _SC_PAGESIZE
10700 # define getpagesize() sysconf(_SC_PAGESIZE)
10701 # else /* no _SC_PAGESIZE */
10702 # ifdef HAVE_SYS_PARAM_H
10703 # include <sys/param.h>
10704 # ifdef EXEC_PAGESIZE
10705 # define getpagesize() EXEC_PAGESIZE
10706 # else /* no EXEC_PAGESIZE */
10707 # ifdef NBPG
10708 # define getpagesize() NBPG * CLSIZE
10709 # ifndef CLSIZE
10710 # define CLSIZE 1
10711 # endif /* no CLSIZE */
10712 # else /* no NBPG */
10713 # ifdef NBPC
10714 # define getpagesize() NBPC
10715 # else /* no NBPC */
10716 # ifdef PAGESIZE
10717 # define getpagesize() PAGESIZE
10718 # endif /* PAGESIZE */
10719 # endif /* no NBPC */
10720 # endif /* no NBPG */
10721 # endif /* no EXEC_PAGESIZE */
10722 # else /* no HAVE_SYS_PARAM_H */
10723 # define getpagesize() 8192 /* punt totally */
10724 # endif /* no HAVE_SYS_PARAM_H */
10725 # endif /* no _SC_PAGESIZE */
10727 #endif /* no HAVE_GETPAGESIZE */
10730 main ()
10732 char *data, *data2, *data3;
10733 const char *cdata2;
10734 int i, pagesize;
10735 int fd, fd2;
10737 pagesize = getpagesize ();
10739 /* First, make a file with some known garbage in it. */
10740 data = (char *) malloc (pagesize);
10741 if (!data)
10742 return 1;
10743 for (i = 0; i < pagesize; ++i)
10744 *(data + i) = rand ();
10745 umask (0);
10746 fd = creat ("conftest.mmap", 0600);
10747 if (fd < 0)
10748 return 2;
10749 if (write (fd, data, pagesize) != pagesize)
10750 return 3;
10751 close (fd);
10753 /* Next, check that the tail of a page is zero-filled. File must have
10754 non-zero length, otherwise we risk SIGBUS for entire page. */
10755 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
10756 if (fd2 < 0)
10757 return 4;
10758 cdata2 = "";
10759 if (write (fd2, cdata2, 1) != 1)
10760 return 5;
10761 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
10762 if (data2 == MAP_FAILED)
10763 return 6;
10764 for (i = 0; i < pagesize; ++i)
10765 if (*(data2 + i))
10766 return 7;
10767 close (fd2);
10768 if (munmap (data2, pagesize))
10769 return 8;
10771 /* Next, try to mmap the file at a fixed address which already has
10772 something else allocated at it. If we can, also make sure that
10773 we see the same garbage. */
10774 fd = open ("conftest.mmap", O_RDWR);
10775 if (fd < 0)
10776 return 9;
10777 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10778 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10779 return 10;
10780 for (i = 0; i < pagesize; ++i)
10781 if (*(data + i) != *(data2 + i))
10782 return 11;
10784 /* Finally, make sure that changes to the mapped area do not
10785 percolate back to the file as seen by read(). (This is a bug on
10786 some variants of i386 svr4.0.) */
10787 for (i = 0; i < pagesize; ++i)
10788 *(data2 + i) = *(data2 + i) + 1;
10789 data3 = (char *) malloc (pagesize);
10790 if (!data3)
10791 return 12;
10792 if (read (fd, data3, pagesize) != pagesize)
10793 return 13;
10794 for (i = 0; i < pagesize; ++i)
10795 if (*(data + i) != *(data3 + i))
10796 return 14;
10797 close (fd);
10798 return 0;
10800 _ACEOF
10801 if ac_fn_c_try_run "$LINENO"; then :
10802 ac_cv_func_mmap_fixed_mapped=yes
10803 else
10804 ac_cv_func_mmap_fixed_mapped=no
10806 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10807 conftest.$ac_objext conftest.beam conftest.$ac_ext
10811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
10812 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
10813 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10815 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
10818 rm -f conftest.mmap conftest.txt
10820 if test $use_mmap_for_buffers = yes; then
10822 $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
10824 REL_ALLOC=no
10827 LIBS="$LIBS_SYSTEM $LIBS"
10829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
10830 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
10831 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
10832 $as_echo_n "(cached) " >&6
10833 else
10834 ac_check_lib_save_LIBS=$LIBS
10835 LIBS="-ldnet $LIBS"
10836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10837 /* end confdefs.h. */
10839 /* Override any GCC internal prototype to avoid an error.
10840 Use char because int might match the return type of a GCC
10841 builtin and then its argument prototype would still apply. */
10842 #ifdef __cplusplus
10843 extern "C"
10844 #endif
10845 char dnet_ntoa ();
10847 main ()
10849 return dnet_ntoa ();
10851 return 0;
10853 _ACEOF
10854 if ac_fn_c_try_link "$LINENO"; then :
10855 ac_cv_lib_dnet_dnet_ntoa=yes
10856 else
10857 ac_cv_lib_dnet_dnet_ntoa=no
10859 rm -f core conftest.err conftest.$ac_objext \
10860 conftest$ac_exeext conftest.$ac_ext
10861 LIBS=$ac_check_lib_save_LIBS
10863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10864 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10865 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
10866 cat >>confdefs.h <<_ACEOF
10867 #define HAVE_LIBDNET 1
10868 _ACEOF
10870 LIBS="-ldnet $LIBS"
10875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
10876 $as_echo_n "checking for main in -lXbsd... " >&6; }
10877 if test "${ac_cv_lib_Xbsd_main+set}" = set; then :
10878 $as_echo_n "(cached) " >&6
10879 else
10880 ac_check_lib_save_LIBS=$LIBS
10881 LIBS="-lXbsd $LIBS"
10882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10883 /* end confdefs.h. */
10887 main ()
10889 return main ();
10891 return 0;
10893 _ACEOF
10894 if ac_fn_c_try_link "$LINENO"; then :
10895 ac_cv_lib_Xbsd_main=yes
10896 else
10897 ac_cv_lib_Xbsd_main=no
10899 rm -f core conftest.err conftest.$ac_objext \
10900 conftest$ac_exeext conftest.$ac_ext
10901 LIBS=$ac_check_lib_save_LIBS
10903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
10904 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
10905 if test "x$ac_cv_lib_Xbsd_main" = x""yes; then :
10906 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10910 LIB_PTHREAD=
10911 for ac_header in pthread.h
10912 do :
10913 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
10914 if test "x$ac_cv_header_pthread_h" = x""yes; then :
10915 cat >>confdefs.h <<_ACEOF
10916 #define HAVE_PTHREAD_H 1
10917 _ACEOF
10921 done
10923 if test "$ac_cv_header_pthread_h"; then
10924 if test "$GMALLOC_OBJ" = gmalloc.o; then
10925 emacs_pthread_function=pthread_atfork
10926 else
10927 emacs_pthread_function=pthread_self
10929 as_ac_Lib=`$as_echo "ac_cv_lib_pthread_$emacs_pthread_function" | $as_tr_sh`
10930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $emacs_pthread_function in -lpthread" >&5
10931 $as_echo_n "checking for $emacs_pthread_function in -lpthread... " >&6; }
10932 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
10933 $as_echo_n "(cached) " >&6
10934 else
10935 ac_check_lib_save_LIBS=$LIBS
10936 LIBS="-lpthread $LIBS"
10937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10938 /* end confdefs.h. */
10940 /* Override any GCC internal prototype to avoid an error.
10941 Use char because int might match the return type of a GCC
10942 builtin and then its argument prototype would still apply. */
10943 #ifdef __cplusplus
10944 extern "C"
10945 #endif
10946 char $emacs_pthread_function ();
10948 main ()
10950 return $emacs_pthread_function ();
10952 return 0;
10954 _ACEOF
10955 if ac_fn_c_try_link "$LINENO"; then :
10956 eval "$as_ac_Lib=yes"
10957 else
10958 eval "$as_ac_Lib=no"
10960 rm -f core conftest.err conftest.$ac_objext \
10961 conftest$ac_exeext conftest.$ac_ext
10962 LIBS=$ac_check_lib_save_LIBS
10964 eval ac_res=\$$as_ac_Lib
10965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10966 $as_echo "$ac_res" >&6; }
10967 eval as_val=\$$as_ac_Lib
10968 if test "x$as_val" = x""yes; then :
10969 HAVE_PTHREAD=yes
10973 if test "$HAVE_PTHREAD" = yes; then
10974 case "${canonical}" in
10975 *-hpux*) ;;
10976 *) LIB_PTHREAD="-lpthread"
10977 LIBS="$LIB_PTHREAD $LIBS" ;;
10978 esac
10980 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
10985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
10986 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
10987 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then :
10988 $as_echo_n "(cached) " >&6
10989 else
10990 ac_check_lib_save_LIBS=$LIBS
10991 LIBS="-lpthreads $LIBS"
10992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10993 /* end confdefs.h. */
10995 /* Override any GCC internal prototype to avoid an error.
10996 Use char because int might match the return type of a GCC
10997 builtin and then its argument prototype would still apply. */
10998 #ifdef __cplusplus
10999 extern "C"
11000 #endif
11001 char cma_open ();
11003 main ()
11005 return cma_open ();
11007 return 0;
11009 _ACEOF
11010 if ac_fn_c_try_link "$LINENO"; then :
11011 ac_cv_lib_pthreads_cma_open=yes
11012 else
11013 ac_cv_lib_pthreads_cma_open=no
11015 rm -f core conftest.err conftest.$ac_objext \
11016 conftest$ac_exeext conftest.$ac_ext
11017 LIBS=$ac_check_lib_save_LIBS
11019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
11020 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
11021 if test "x$ac_cv_lib_pthreads_cma_open" = x""yes; then :
11022 cat >>confdefs.h <<_ACEOF
11023 #define HAVE_LIBPTHREADS 1
11024 _ACEOF
11026 LIBS="-lpthreads $LIBS"
11031 ## Note: when using cpp in s/aix4.2.h, this definition depended on
11032 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
11033 ## the system file was sourced. Hence the value of LIBS_SYSTEM
11034 ## added to LIBS in configure would never contain the pthreads part,
11035 ## but the value used in Makefiles might. FIXME?
11037 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
11038 ## be harmless on older versions of X where it happens to exist.
11039 test "$opsys" = "aix4-2" && \
11040 test $ac_cv_lib_pthreads_cma_open = yes && \
11041 LIBS_SYSTEM="$LIBS_SYSTEM -lpthreads"
11044 case ${host_os} in
11045 aix*)
11046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
11047 $as_echo_n "checking for -bbigtoc option... " >&6; }
11048 if test "${gdb_cv_bigtoc+set}" = set; then :
11049 $as_echo_n "(cached) " >&6
11050 else
11052 case $GCC in
11053 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
11054 *) gdb_cv_bigtoc=-bbigtoc ;;
11055 esac
11057 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
11058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11059 /* end confdefs.h. */
11062 main ()
11064 int i;
11066 return 0;
11068 _ACEOF
11069 if ac_fn_c_try_link "$LINENO"; then :
11071 else
11072 gdb_cv_bigtoc=
11074 rm -f core conftest.err conftest.$ac_objext \
11075 conftest$ac_exeext conftest.$ac_ext
11078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
11079 $as_echo "$gdb_cv_bigtoc" >&6; }
11081 esac
11083 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
11084 # used for the tests that follow. We set them back to REAL_CFLAGS and
11085 # REAL_CPPFLAGS later on.
11087 REAL_CFLAGS="$CFLAGS"
11088 REAL_CPPFLAGS="$CPPFLAGS"
11090 if test "${HAVE_X11}" = "yes"; then
11091 DEFS="$C_SWITCH_X_SITE $DEFS"
11092 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
11093 LIBS="-lX11 $LIBS"
11094 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
11095 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
11097 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
11098 # This is handled by LD_SWITCH_X_SITE_RPATH during the real build,
11099 # but it's more convenient here to set LD_RUN_PATH since this
11100 # also works on hosts that don't understand LD_SWITCH_X_SITE_RPATH.
11101 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
11102 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
11103 export LD_RUN_PATH
11106 if test "${opsys}" = "gnu-linux"; then
11107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
11108 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
11109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11110 /* end confdefs.h. */
11113 main ()
11115 XOpenDisplay ("foo");
11117 return 0;
11119 _ACEOF
11120 if ac_fn_c_try_link "$LINENO"; then :
11121 xgnu_linux_first_failure=no
11122 else
11123 xgnu_linux_first_failure=yes
11125 rm -f core conftest.err conftest.$ac_objext \
11126 conftest$ac_exeext conftest.$ac_ext
11127 if test "${xgnu_linux_first_failure}" = "yes"; then
11128 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
11129 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
11130 OLD_CPPFLAGS="$CPPFLAGS"
11131 OLD_LIBS="$LIBS"
11132 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
11133 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
11134 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
11135 LIBS="$LIBS -b i486-linuxaout"
11136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11137 /* end confdefs.h. */
11140 main ()
11142 XOpenDisplay ("foo");
11144 return 0;
11146 _ACEOF
11147 if ac_fn_c_try_link "$LINENO"; then :
11148 xgnu_linux_second_failure=no
11149 else
11150 xgnu_linux_second_failure=yes
11152 rm -f core conftest.err conftest.$ac_objext \
11153 conftest$ac_exeext conftest.$ac_ext
11154 if test "${xgnu_linux_second_failure}" = "yes"; then
11155 # If we get the same failure with -b, there is no use adding -b.
11156 # So take it out. This plays safe.
11157 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
11158 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
11159 CPPFLAGS="$OLD_CPPFLAGS"
11160 LIBS="$OLD_LIBS"
11161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11162 $as_echo "no" >&6; }
11163 else
11164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11165 $as_echo "yes" >&6; }
11167 else
11168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11169 $as_echo "no" >&6; }
11173 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
11174 # header files included from there.
11175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
11176 $as_echo_n "checking for Xkb... " >&6; }
11177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11178 /* end confdefs.h. */
11179 #include <X11/Xlib.h>
11180 #include <X11/XKBlib.h>
11182 main ()
11184 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
11186 return 0;
11188 _ACEOF
11189 if ac_fn_c_try_link "$LINENO"; then :
11190 emacs_xkb=yes
11191 else
11192 emacs_xkb=no
11194 rm -f core conftest.err conftest.$ac_objext \
11195 conftest$ac_exeext conftest.$ac_ext
11196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
11197 $as_echo "$emacs_xkb" >&6; }
11198 if test $emacs_xkb = yes; then
11200 $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
11204 for ac_func in XrmSetDatabase XScreenResourceString \
11205 XScreenNumberOfScreen XSetWMProtocols
11206 do :
11207 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11208 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11209 eval as_val=\$$as_ac_var
11210 if test "x$as_val" = x""yes; then :
11211 cat >>confdefs.h <<_ACEOF
11212 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11213 _ACEOF
11216 done
11220 if test "${window_system}" = "x11"; then
11221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
11222 $as_echo_n "checking X11 version 6... " >&6; }
11223 if test "${emacs_cv_x11_version_6+set}" = set; then :
11224 $as_echo_n "(cached) " >&6
11225 else
11226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11227 /* end confdefs.h. */
11228 #include <X11/Xlib.h>
11230 main ()
11232 #if XlibSpecificationRelease < 6
11233 fail;
11234 #endif
11237 return 0;
11239 _ACEOF
11240 if ac_fn_c_try_link "$LINENO"; then :
11241 emacs_cv_x11_version_6=yes
11242 else
11243 emacs_cv_x11_version_6=no
11245 rm -f core conftest.err conftest.$ac_objext \
11246 conftest$ac_exeext conftest.$ac_ext
11249 if test $emacs_cv_x11_version_6 = yes; then
11250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
11251 $as_echo "6 or newer" >&6; }
11253 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
11256 $as_echo "#define HAVE_X_I18N 1" >>confdefs.h
11258 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
11259 ## XIM support.
11260 case "$opsys" in
11261 sol2-*) : ;;
11263 $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
11266 esac
11267 else
11268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
11269 $as_echo "before 6" >&6; }
11274 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
11275 HAVE_RSVG=no
11276 if test "${HAVE_X11}" = "yes" || test "${HAVE_NS}" = "yes"; then
11277 if test "${with_rsvg}" != "no"; then
11278 RSVG_REQUIRED=2.11.0
11279 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
11282 succeeded=no
11284 # Extract the first word of "pkg-config", so it can be a program name with args.
11285 set dummy pkg-config; ac_word=$2
11286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11287 $as_echo_n "checking for $ac_word... " >&6; }
11288 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11289 $as_echo_n "(cached) " >&6
11290 else
11291 case $PKG_CONFIG in
11292 [\\/]* | ?:[\\/]*)
11293 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11297 for as_dir in $PATH
11299 IFS=$as_save_IFS
11300 test -z "$as_dir" && as_dir=.
11301 for ac_exec_ext in '' $ac_executable_extensions; do
11302 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11303 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11305 break 2
11307 done
11308 done
11309 IFS=$as_save_IFS
11311 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11313 esac
11315 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11316 if test -n "$PKG_CONFIG"; then
11317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11318 $as_echo "$PKG_CONFIG" >&6; }
11319 else
11320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11321 $as_echo "no" >&6; }
11326 if test "$PKG_CONFIG" = "no" ; then
11328 else
11329 PKG_CONFIG_MIN_VERSION=0.9.0
11330 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
11332 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
11334 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5 &&
11335 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE" 2>&5` &&
11336 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE" 2>&5`; then
11337 edit_cflags="
11338 s,///*,/,g
11339 s/^/ /
11340 s/ -I/ $isystem/g
11341 s/^ //
11343 RSVG_CFLAGS=`$as_echo "$RSVG_CFLAGS" | sed -e "$edit_cflags"`
11344 RSVG_LIBS=`$as_echo "$RSVG_LIBS" | sed -e 's,///*,/,g'`
11345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$RSVG_CFLAGS' LIBS='$RSVG_LIBS'" >&5
11346 $as_echo "yes CFLAGS='$RSVG_CFLAGS' LIBS='$RSVG_LIBS'" >&6; }
11347 succeeded=yes
11348 else
11349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11350 $as_echo "no" >&6; }
11351 RSVG_CFLAGS=""
11352 RSVG_LIBS=""
11353 ## If we have a custom action on failure, don't print errors, but
11354 ## do set a variable so people can do so.
11355 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
11361 else
11362 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11363 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11367 if test $succeeded = yes; then
11368 HAVE_RSVG=yes
11369 else
11376 if test $HAVE_RSVG = yes; then
11378 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
11380 CFLAGS="$CFLAGS $RSVG_CFLAGS"
11381 LIBS="$RSVG_LIBS $LIBS"
11386 HAVE_IMAGEMAGICK=no
11387 if test "${HAVE_X11}" = "yes"; then
11388 if test "${with_imagemagick}" != "no"; then
11389 ## 6.2.8 is the earliest version known to work, but earlier versions
11390 ## might work - let us know if you find one.
11391 ## 6.0.7 does not work. See bug#7955.
11392 IMAGEMAGICK_MODULE="Wand >= 6.2.8"
11394 succeeded=no
11396 # Extract the first word of "pkg-config", so it can be a program name with args.
11397 set dummy pkg-config; ac_word=$2
11398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11399 $as_echo_n "checking for $ac_word... " >&6; }
11400 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11401 $as_echo_n "(cached) " >&6
11402 else
11403 case $PKG_CONFIG in
11404 [\\/]* | ?:[\\/]*)
11405 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11409 for as_dir in $PATH
11411 IFS=$as_save_IFS
11412 test -z "$as_dir" && as_dir=.
11413 for ac_exec_ext in '' $ac_executable_extensions; do
11414 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11415 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11417 break 2
11419 done
11420 done
11421 IFS=$as_save_IFS
11423 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11425 esac
11427 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11428 if test -n "$PKG_CONFIG"; then
11429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11430 $as_echo "$PKG_CONFIG" >&6; }
11431 else
11432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11433 $as_echo "no" >&6; }
11438 if test "$PKG_CONFIG" = "no" ; then
11440 else
11441 PKG_CONFIG_MIN_VERSION=0.9.0
11442 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
11444 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
11446 if $PKG_CONFIG --exists "$IMAGEMAGICK_MODULE" 2>&5 &&
11447 IMAGEMAGICK_CFLAGS=`$PKG_CONFIG --cflags "$IMAGEMAGICK_MODULE" 2>&5` &&
11448 IMAGEMAGICK_LIBS=`$PKG_CONFIG --libs "$IMAGEMAGICK_MODULE" 2>&5`; then
11449 edit_cflags="
11450 s,///*,/,g
11451 s/^/ /
11452 s/ -I/ $isystem/g
11453 s/^ //
11455 IMAGEMAGICK_CFLAGS=`$as_echo "$IMAGEMAGICK_CFLAGS" | sed -e "$edit_cflags"`
11456 IMAGEMAGICK_LIBS=`$as_echo "$IMAGEMAGICK_LIBS" | sed -e 's,///*,/,g'`
11457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$IMAGEMAGICK_CFLAGS' LIBS='$IMAGEMAGICK_LIBS'" >&5
11458 $as_echo "yes CFLAGS='$IMAGEMAGICK_CFLAGS' LIBS='$IMAGEMAGICK_LIBS'" >&6; }
11459 succeeded=yes
11460 else
11461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11462 $as_echo "no" >&6; }
11463 IMAGEMAGICK_CFLAGS=""
11464 IMAGEMAGICK_LIBS=""
11465 ## If we have a custom action on failure, don't print errors, but
11466 ## do set a variable so people can do so.
11467 IMAGEMAGICK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$IMAGEMAGICK_MODULE"`
11473 else
11474 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11475 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11479 if test $succeeded = yes; then
11480 HAVE_IMAGEMAGICK=yes
11481 else
11488 if test $HAVE_IMAGEMAGICK = yes; then
11490 $as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
11492 CFLAGS="$CFLAGS $IMAGEMAGICK_CFLAGS"
11493 LIBS="$IMAGEMAGICK_LIBS $LIBS"
11494 for ac_func in MagickExportImagePixels
11495 do :
11496 ac_fn_c_check_func "$LINENO" "MagickExportImagePixels" "ac_cv_func_MagickExportImagePixels"
11497 if test "x$ac_cv_func_MagickExportImagePixels" = x""yes; then :
11498 cat >>confdefs.h <<_ACEOF
11499 #define HAVE_MAGICKEXPORTIMAGEPIXELS 1
11500 _ACEOF
11503 done
11510 HAVE_GTK=no
11511 GTK_OBJ=
11512 if test "${with_gtk3}" = "yes"; then
11513 GLIB_REQUIRED=2.28
11514 GTK_REQUIRED=3.0
11515 GTK_MODULES="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11518 succeeded=no
11520 # Extract the first word of "pkg-config", so it can be a program name with args.
11521 set dummy pkg-config; ac_word=$2
11522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11523 $as_echo_n "checking for $ac_word... " >&6; }
11524 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11525 $as_echo_n "(cached) " >&6
11526 else
11527 case $PKG_CONFIG in
11528 [\\/]* | ?:[\\/]*)
11529 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11533 for as_dir in $PATH
11535 IFS=$as_save_IFS
11536 test -z "$as_dir" && as_dir=.
11537 for ac_exec_ext in '' $ac_executable_extensions; do
11538 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11539 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11541 break 2
11543 done
11544 done
11545 IFS=$as_save_IFS
11547 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11549 esac
11551 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11552 if test -n "$PKG_CONFIG"; then
11553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11554 $as_echo "$PKG_CONFIG" >&6; }
11555 else
11556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11557 $as_echo "no" >&6; }
11562 if test "$PKG_CONFIG" = "no" ; then
11563 pkg_check_gtk=no
11564 else
11565 PKG_CONFIG_MIN_VERSION=0.9.0
11566 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
11568 $as_echo_n "checking for $GTK_MODULES... " >&6; }
11570 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5 &&
11571 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES" 2>&5` &&
11572 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES" 2>&5`; then
11573 edit_cflags="
11574 s,///*,/,g
11575 s/^/ /
11576 s/ -I/ $isystem/g
11577 s/^ //
11579 GTK_CFLAGS=`$as_echo "$GTK_CFLAGS" | sed -e "$edit_cflags"`
11580 GTK_LIBS=`$as_echo "$GTK_LIBS" | sed -e 's,///*,/,g'`
11581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&5
11582 $as_echo "yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&6; }
11583 succeeded=yes
11584 else
11585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11586 $as_echo "no" >&6; }
11587 GTK_CFLAGS=""
11588 GTK_LIBS=""
11589 ## If we have a custom action on failure, don't print errors, but
11590 ## do set a variable so people can do so.
11591 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11597 else
11598 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11599 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11603 if test $succeeded = yes; then
11604 pkg_check_gtk=yes
11605 else
11606 pkg_check_gtk=no
11609 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
11610 as_fn_error "$GTK_PKG_ERRORS" "$LINENO" 5
11613 $as_echo "#define HAVE_GTK3 1" >>confdefs.h
11615 GTK_OBJ=emacsgtkfixed.o
11618 if test "$pkg_check_gtk" != "yes"; then
11619 HAVE_GTK=no
11620 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
11621 GLIB_REQUIRED=2.10
11622 GTK_REQUIRED=2.10
11623 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11626 succeeded=no
11628 # Extract the first word of "pkg-config", so it can be a program name with args.
11629 set dummy pkg-config; ac_word=$2
11630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11631 $as_echo_n "checking for $ac_word... " >&6; }
11632 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11633 $as_echo_n "(cached) " >&6
11634 else
11635 case $PKG_CONFIG in
11636 [\\/]* | ?:[\\/]*)
11637 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11641 for as_dir in $PATH
11643 IFS=$as_save_IFS
11644 test -z "$as_dir" && as_dir=.
11645 for ac_exec_ext in '' $ac_executable_extensions; do
11646 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11647 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11649 break 2
11651 done
11652 done
11653 IFS=$as_save_IFS
11655 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11657 esac
11659 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11660 if test -n "$PKG_CONFIG"; then
11661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11662 $as_echo "$PKG_CONFIG" >&6; }
11663 else
11664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11665 $as_echo "no" >&6; }
11670 if test "$PKG_CONFIG" = "no" ; then
11671 pkg_check_gtk=no
11672 else
11673 PKG_CONFIG_MIN_VERSION=0.9.0
11674 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
11676 $as_echo_n "checking for $GTK_MODULES... " >&6; }
11678 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5 &&
11679 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES" 2>&5` &&
11680 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES" 2>&5`; then
11681 edit_cflags="
11682 s,///*,/,g
11683 s/^/ /
11684 s/ -I/ $isystem/g
11685 s/^ //
11687 GTK_CFLAGS=`$as_echo "$GTK_CFLAGS" | sed -e "$edit_cflags"`
11688 GTK_LIBS=`$as_echo "$GTK_LIBS" | sed -e 's,///*,/,g'`
11689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&5
11690 $as_echo "yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&6; }
11691 succeeded=yes
11692 else
11693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11694 $as_echo "no" >&6; }
11695 GTK_CFLAGS=""
11696 GTK_LIBS=""
11697 ## If we have a custom action on failure, don't print errors, but
11698 ## do set a variable so people can do so.
11699 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11705 else
11706 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11707 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11711 if test $succeeded = yes; then
11712 pkg_check_gtk=yes
11713 else
11714 pkg_check_gtk=no
11717 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
11718 as_fn_error "$GTK_PKG_ERRORS" "$LINENO" 5
11723 if test x"$pkg_check_gtk" = xyes; then
11727 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
11728 CFLAGS="$CFLAGS $GTK_CFLAGS"
11729 LIBS="$GTK_LIBS $LIBS"
11730 GTK_COMPILES=no
11731 for ac_func in gtk_main
11732 do :
11733 ac_fn_c_check_func "$LINENO" "gtk_main" "ac_cv_func_gtk_main"
11734 if test "x$ac_cv_func_gtk_main" = x""yes; then :
11735 cat >>confdefs.h <<_ACEOF
11736 #define HAVE_GTK_MAIN 1
11737 _ACEOF
11738 GTK_COMPILES=yes
11740 done
11742 if test "${GTK_COMPILES}" != "yes"; then
11743 if test "$USE_X_TOOLKIT" != "maybe"; then
11744 as_fn_error "Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
11746 else
11747 HAVE_GTK=yes
11749 $as_echo "#define USE_GTK 1" >>confdefs.h
11751 GTK_OBJ="gtkutil.o $GTK_OBJ"
11752 USE_X_TOOLKIT=none
11753 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
11755 else
11756 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
11757 closing open displays. This is no problem if you just use
11758 one display, but if you use more than one and close one of them
11759 Emacs may crash." >&5
11760 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
11761 closing open displays. This is no problem if you just use
11762 one display, but if you use more than one and close one of them
11763 Emacs may crash." >&2;}
11764 sleep 3
11772 if test "${HAVE_GTK}" = "yes"; then
11774 if test "$with_toolkit_scroll_bars" != no; then
11775 with_toolkit_scroll_bars=yes
11778 HAVE_GTK_FILE_SELECTION=no
11779 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
11780 #include <gtk/gtk.h>
11782 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x""yes; then :
11783 HAVE_GTK_FILE_SELECTION=yes
11784 else
11785 HAVE_GTK_FILE_SELECTION=no
11788 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
11789 for ac_func in gtk_file_selection_new
11790 do :
11791 ac_fn_c_check_func "$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
11792 if test "x$ac_cv_func_gtk_file_selection_new" = x""yes; then :
11793 cat >>confdefs.h <<_ACEOF
11794 #define HAVE_GTK_FILE_SELECTION_NEW 1
11795 _ACEOF
11798 done
11803 for ac_func in gtk_widget_get_window gtk_widget_set_has_window \
11804 gtk_dialog_get_action_area gtk_widget_get_sensitive \
11805 gtk_widget_get_mapped gtk_adjustment_get_page_size \
11806 gtk_orientable_set_orientation \
11807 gtk_window_set_has_resize_grip
11808 do :
11809 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11810 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11811 eval as_val=\$$as_ac_var
11812 if test "x$as_val" = x""yes; then :
11813 cat >>confdefs.h <<_ACEOF
11814 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11815 _ACEOF
11818 done
11822 HAVE_DBUS=no
11823 DBUS_OBJ=
11824 if test "${with_dbus}" = "yes"; then
11826 succeeded=no
11828 # Extract the first word of "pkg-config", so it can be a program name with args.
11829 set dummy pkg-config; ac_word=$2
11830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11831 $as_echo_n "checking for $ac_word... " >&6; }
11832 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11833 $as_echo_n "(cached) " >&6
11834 else
11835 case $PKG_CONFIG in
11836 [\\/]* | ?:[\\/]*)
11837 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11841 for as_dir in $PATH
11843 IFS=$as_save_IFS
11844 test -z "$as_dir" && as_dir=.
11845 for ac_exec_ext in '' $ac_executable_extensions; do
11846 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11847 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11849 break 2
11851 done
11852 done
11853 IFS=$as_save_IFS
11855 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11857 esac
11859 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11860 if test -n "$PKG_CONFIG"; then
11861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11862 $as_echo "$PKG_CONFIG" >&6; }
11863 else
11864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11865 $as_echo "no" >&6; }
11870 if test "$PKG_CONFIG" = "no" ; then
11871 HAVE_DBUS=no
11872 else
11873 PKG_CONFIG_MIN_VERSION=0.9.0
11874 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
11876 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
11878 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5 &&
11879 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0" 2>&5` &&
11880 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0" 2>&5`; then
11881 edit_cflags="
11882 s,///*,/,g
11883 s/^/ /
11884 s/ -I/ $isystem/g
11885 s/^ //
11887 DBUS_CFLAGS=`$as_echo "$DBUS_CFLAGS" | sed -e "$edit_cflags"`
11888 DBUS_LIBS=`$as_echo "$DBUS_LIBS" | sed -e 's,///*,/,g'`
11889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$DBUS_CFLAGS' LIBS='$DBUS_LIBS'" >&5
11890 $as_echo "yes CFLAGS='$DBUS_CFLAGS' LIBS='$DBUS_LIBS'" >&6; }
11891 succeeded=yes
11892 else
11893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11894 $as_echo "no" >&6; }
11895 DBUS_CFLAGS=""
11896 DBUS_LIBS=""
11897 ## If we have a custom action on failure, don't print errors, but
11898 ## do set a variable so people can do so.
11899 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
11905 else
11906 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11907 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11911 if test $succeeded = yes; then
11912 HAVE_DBUS=yes
11913 else
11914 HAVE_DBUS=no
11917 if test "$HAVE_DBUS" = yes; then
11918 LIBS="$LIBS $DBUS_LIBS"
11920 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
11922 for ac_func in dbus_watch_get_unix_fd \
11923 dbus_validate_bus_name \
11924 dbus_validate_path \
11925 dbus_validate_interface \
11926 dbus_validate_member
11927 do :
11928 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11929 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11930 eval as_val=\$$as_ac_var
11931 if test "x$as_val" = x""yes; then :
11932 cat >>confdefs.h <<_ACEOF
11933 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11934 _ACEOF
11937 done
11939 DBUS_OBJ=dbusbind.o
11944 HAVE_GSETTINGS=no
11945 if test "${HAVE_X11}" = "yes" && test "${with_gsettings}" = "yes"; then
11947 succeeded=no
11949 # Extract the first word of "pkg-config", so it can be a program name with args.
11950 set dummy pkg-config; ac_word=$2
11951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11952 $as_echo_n "checking for $ac_word... " >&6; }
11953 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11954 $as_echo_n "(cached) " >&6
11955 else
11956 case $PKG_CONFIG in
11957 [\\/]* | ?:[\\/]*)
11958 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11962 for as_dir in $PATH
11964 IFS=$as_save_IFS
11965 test -z "$as_dir" && as_dir=.
11966 for ac_exec_ext in '' $ac_executable_extensions; do
11967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11968 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11970 break 2
11972 done
11973 done
11974 IFS=$as_save_IFS
11976 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11978 esac
11980 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11981 if test -n "$PKG_CONFIG"; then
11982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11983 $as_echo "$PKG_CONFIG" >&6; }
11984 else
11985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11986 $as_echo "no" >&6; }
11991 if test "$PKG_CONFIG" = "no" ; then
11992 HAVE_GSETTINGS=no
11993 else
11994 PKG_CONFIG_MIN_VERSION=0.9.0
11995 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gio-2.0 >= 2.26" >&5
11997 $as_echo_n "checking for gio-2.0 >= 2.26... " >&6; }
11999 if $PKG_CONFIG --exists "gio-2.0 >= 2.26" 2>&5 &&
12000 GSETTINGS_CFLAGS=`$PKG_CONFIG --cflags "gio-2.0 >= 2.26" 2>&5` &&
12001 GSETTINGS_LIBS=`$PKG_CONFIG --libs "gio-2.0 >= 2.26" 2>&5`; then
12002 edit_cflags="
12003 s,///*,/,g
12004 s/^/ /
12005 s/ -I/ $isystem/g
12006 s/^ //
12008 GSETTINGS_CFLAGS=`$as_echo "$GSETTINGS_CFLAGS" | sed -e "$edit_cflags"`
12009 GSETTINGS_LIBS=`$as_echo "$GSETTINGS_LIBS" | sed -e 's,///*,/,g'`
12010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GSETTINGS_CFLAGS' LIBS='$GSETTINGS_LIBS'" >&5
12011 $as_echo "yes CFLAGS='$GSETTINGS_CFLAGS' LIBS='$GSETTINGS_LIBS'" >&6; }
12012 succeeded=yes
12013 else
12014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12015 $as_echo "no" >&6; }
12016 GSETTINGS_CFLAGS=""
12017 GSETTINGS_LIBS=""
12018 ## If we have a custom action on failure, don't print errors, but
12019 ## do set a variable so people can do so.
12020 GSETTINGS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gio-2.0 >= 2.26"`
12026 else
12027 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12028 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12032 if test $succeeded = yes; then
12033 HAVE_GSETTINGS=yes
12034 else
12035 HAVE_GSETTINGS=no
12038 if test "$HAVE_GSETTINGS" = "yes"; then
12040 $as_echo "#define HAVE_GSETTINGS 1" >>confdefs.h
12042 SETTINGS_CFLAGS="$GSETTINGS_CFLAGS"
12043 SETTINGS_LIBS="$GSETTINGS_LIBS"
12047 HAVE_GCONF=no
12048 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
12050 succeeded=no
12052 # Extract the first word of "pkg-config", so it can be a program name with args.
12053 set dummy pkg-config; ac_word=$2
12054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12055 $as_echo_n "checking for $ac_word... " >&6; }
12056 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12057 $as_echo_n "(cached) " >&6
12058 else
12059 case $PKG_CONFIG in
12060 [\\/]* | ?:[\\/]*)
12061 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12065 for as_dir in $PATH
12067 IFS=$as_save_IFS
12068 test -z "$as_dir" && as_dir=.
12069 for ac_exec_ext in '' $ac_executable_extensions; do
12070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12071 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12073 break 2
12075 done
12076 done
12077 IFS=$as_save_IFS
12079 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12081 esac
12083 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12084 if test -n "$PKG_CONFIG"; then
12085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12086 $as_echo "$PKG_CONFIG" >&6; }
12087 else
12088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12089 $as_echo "no" >&6; }
12094 if test "$PKG_CONFIG" = "no" ; then
12095 HAVE_GCONF=no
12096 else
12097 PKG_CONFIG_MIN_VERSION=0.9.0
12098 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
12100 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
12102 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5 &&
12103 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13" 2>&5` &&
12104 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13" 2>&5`; then
12105 edit_cflags="
12106 s,///*,/,g
12107 s/^/ /
12108 s/ -I/ $isystem/g
12109 s/^ //
12111 GCONF_CFLAGS=`$as_echo "$GCONF_CFLAGS" | sed -e "$edit_cflags"`
12112 GCONF_LIBS=`$as_echo "$GCONF_LIBS" | sed -e 's,///*,/,g'`
12113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GCONF_CFLAGS' LIBS='$GCONF_LIBS'" >&5
12114 $as_echo "yes CFLAGS='$GCONF_CFLAGS' LIBS='$GCONF_LIBS'" >&6; }
12115 succeeded=yes
12116 else
12117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12118 $as_echo "no" >&6; }
12119 GCONF_CFLAGS=""
12120 GCONF_LIBS=""
12121 ## If we have a custom action on failure, don't print errors, but
12122 ## do set a variable so people can do so.
12123 GCONF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
12129 else
12130 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12131 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12135 if test $succeeded = yes; then
12136 HAVE_GCONF=yes
12137 else
12138 HAVE_GCONF=no
12141 if test "$HAVE_GCONF" = yes; then
12143 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
12145 SETTINGS_CFLAGS="$SETTINGS_CFLAGS $GCONF_CFLAGS"
12146 SETTINGS_LIBS="$SETTINGS_LIBS $GCONF_LIBS"
12150 if test "$HAVE_GSETTINGS" = "yes" || test "$HAVE_GCONF" = "yes"; then
12151 SAVE_CFLAGS="$CFLAGS"
12152 SAVE_LIBS="$LIBS"
12153 CFLAGS="$SETTINGS_CFLAGS $CFLAGS"
12154 LIBS="$SETTINGS_LIBS $LIBS"
12155 for ac_func in g_type_init
12156 do :
12157 ac_fn_c_check_func "$LINENO" "g_type_init" "ac_cv_func_g_type_init"
12158 if test "x$ac_cv_func_g_type_init" = x""yes; then :
12159 cat >>confdefs.h <<_ACEOF
12160 #define HAVE_G_TYPE_INIT 1
12161 _ACEOF
12164 done
12166 CFLAGS="$SAVE_CFLAGS"
12167 LIBS="$SAVE_LIBS"
12173 HAVE_LIBSELINUX=no
12174 LIBSELINUX_LIBS=
12175 if test "${with_selinux}" = "yes"; then
12176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
12177 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
12178 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then :
12179 $as_echo_n "(cached) " >&6
12180 else
12181 ac_check_lib_save_LIBS=$LIBS
12182 LIBS="-lselinux $LIBS"
12183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12184 /* end confdefs.h. */
12186 /* Override any GCC internal prototype to avoid an error.
12187 Use char because int might match the return type of a GCC
12188 builtin and then its argument prototype would still apply. */
12189 #ifdef __cplusplus
12190 extern "C"
12191 #endif
12192 char lgetfilecon ();
12194 main ()
12196 return lgetfilecon ();
12198 return 0;
12200 _ACEOF
12201 if ac_fn_c_try_link "$LINENO"; then :
12202 ac_cv_lib_selinux_lgetfilecon=yes
12203 else
12204 ac_cv_lib_selinux_lgetfilecon=no
12206 rm -f core conftest.err conftest.$ac_objext \
12207 conftest$ac_exeext conftest.$ac_ext
12208 LIBS=$ac_check_lib_save_LIBS
12210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
12211 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
12212 if test "x$ac_cv_lib_selinux_lgetfilecon" = x""yes; then :
12213 HAVE_LIBSELINUX=yes
12214 else
12215 HAVE_LIBSELINUX=no
12218 if test "$HAVE_LIBSELINUX" = yes; then
12220 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
12222 LIBSELINUX_LIBS=-lselinux
12227 HAVE_GNUTLS=no
12228 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY=no
12229 if test "${with_gnutls}" = "yes" ; then
12231 succeeded=no
12233 # Extract the first word of "pkg-config", so it can be a program name with args.
12234 set dummy pkg-config; ac_word=$2
12235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12236 $as_echo_n "checking for $ac_word... " >&6; }
12237 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12238 $as_echo_n "(cached) " >&6
12239 else
12240 case $PKG_CONFIG in
12241 [\\/]* | ?:[\\/]*)
12242 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12246 for as_dir in $PATH
12248 IFS=$as_save_IFS
12249 test -z "$as_dir" && as_dir=.
12250 for ac_exec_ext in '' $ac_executable_extensions; do
12251 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12252 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12254 break 2
12256 done
12257 done
12258 IFS=$as_save_IFS
12260 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12262 esac
12264 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12265 if test -n "$PKG_CONFIG"; then
12266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12267 $as_echo "$PKG_CONFIG" >&6; }
12268 else
12269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12270 $as_echo "no" >&6; }
12275 if test "$PKG_CONFIG" = "no" ; then
12276 HAVE_GNUTLS=no
12277 else
12278 PKG_CONFIG_MIN_VERSION=0.9.0
12279 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.6.6" >&5
12281 $as_echo_n "checking for gnutls >= 2.6.6... " >&6; }
12283 if $PKG_CONFIG --exists "gnutls >= 2.6.6" 2>&5 &&
12284 LIBGNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls >= 2.6.6" 2>&5` &&
12285 LIBGNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls >= 2.6.6" 2>&5`; then
12286 edit_cflags="
12287 s,///*,/,g
12288 s/^/ /
12289 s/ -I/ $isystem/g
12290 s/^ //
12292 LIBGNUTLS_CFLAGS=`$as_echo "$LIBGNUTLS_CFLAGS" | sed -e "$edit_cflags"`
12293 LIBGNUTLS_LIBS=`$as_echo "$LIBGNUTLS_LIBS" | sed -e 's,///*,/,g'`
12294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBGNUTLS_CFLAGS' LIBS='$LIBGNUTLS_LIBS'" >&5
12295 $as_echo "yes CFLAGS='$LIBGNUTLS_CFLAGS' LIBS='$LIBGNUTLS_LIBS'" >&6; }
12296 succeeded=yes
12297 else
12298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12299 $as_echo "no" >&6; }
12300 LIBGNUTLS_CFLAGS=""
12301 LIBGNUTLS_LIBS=""
12302 ## If we have a custom action on failure, don't print errors, but
12303 ## do set a variable so people can do so.
12304 LIBGNUTLS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnutls >= 2.6.6"`
12310 else
12311 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12312 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12316 if test $succeeded = yes; then
12317 HAVE_GNUTLS=yes
12318 else
12319 HAVE_GNUTLS=no
12322 if test "${HAVE_GNUTLS}" = "yes"; then
12324 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
12328 CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
12329 LIBS="$LIBGNUTLS_LIBS $LIBS"
12330 for ac_func in gnutls_certificate_set_verify_function
12331 do :
12332 ac_fn_c_check_func "$LINENO" "gnutls_certificate_set_verify_function" "ac_cv_func_gnutls_certificate_set_verify_function"
12333 if test "x$ac_cv_func_gnutls_certificate_set_verify_function" = x""yes; then :
12334 cat >>confdefs.h <<_ACEOF
12335 #define HAVE_GNUTLS_CERTIFICATE_SET_VERIFY_FUNCTION 1
12336 _ACEOF
12337 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY=yes
12339 done
12342 if test "${HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY}" = "yes"; then
12344 $as_echo "#define HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY 1" >>confdefs.h
12352 HAVE_XAW3D=no
12353 LUCID_LIBW=
12354 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
12355 if test "$with_xaw3d" != no; then
12356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
12357 $as_echo_n "checking for xaw3d... " >&6; }
12358 if test "${emacs_cv_xaw3d+set}" = set; then :
12359 $as_echo_n "(cached) " >&6
12360 else
12361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12362 /* end confdefs.h. */
12364 #include <X11/Intrinsic.h>
12365 #include <X11/Xaw3d/Simple.h>
12367 main ()
12371 return 0;
12373 _ACEOF
12374 if ac_fn_c_try_link "$LINENO"; then :
12375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XawScrollbarSetThumb in -lXaw3d" >&5
12376 $as_echo_n "checking for XawScrollbarSetThumb in -lXaw3d... " >&6; }
12377 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then :
12378 $as_echo_n "(cached) " >&6
12379 else
12380 ac_check_lib_save_LIBS=$LIBS
12381 LIBS="-lXaw3d $LIBS"
12382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12383 /* end confdefs.h. */
12385 /* Override any GCC internal prototype to avoid an error.
12386 Use char because int might match the return type of a GCC
12387 builtin and then its argument prototype would still apply. */
12388 #ifdef __cplusplus
12389 extern "C"
12390 #endif
12391 char XawScrollbarSetThumb ();
12393 main ()
12395 return XawScrollbarSetThumb ();
12397 return 0;
12399 _ACEOF
12400 if ac_fn_c_try_link "$LINENO"; then :
12401 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
12402 else
12403 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
12405 rm -f core conftest.err conftest.$ac_objext \
12406 conftest$ac_exeext conftest.$ac_ext
12407 LIBS=$ac_check_lib_save_LIBS
12409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
12410 $as_echo "$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
12411 if test "x$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" = x""yes; then :
12412 emacs_cv_xaw3d=yes
12413 else
12414 emacs_cv_xaw3d=no
12417 else
12418 emacs_cv_xaw3d=no
12420 rm -f core conftest.err conftest.$ac_objext \
12421 conftest$ac_exeext conftest.$ac_ext
12424 else
12425 emacs_cv_xaw3d=no
12427 if test $emacs_cv_xaw3d = yes; then
12428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
12429 $as_echo "yes; using Lucid toolkit" >&6; }
12430 USE_X_TOOLKIT=LUCID
12431 HAVE_XAW3D=yes
12432 LUCID_LIBW=-lXaw3d
12434 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
12436 else
12437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12438 $as_echo "no" >&6; }
12439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
12440 $as_echo_n "checking for libXaw... " >&6; }
12441 if test "${emacs_cv_xaw+set}" = set; then :
12442 $as_echo_n "(cached) " >&6
12443 else
12444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12445 /* end confdefs.h. */
12447 #include <X11/Intrinsic.h>
12448 #include <X11/Xaw/Simple.h>
12450 main ()
12454 return 0;
12456 _ACEOF
12457 if ac_fn_c_try_link "$LINENO"; then :
12458 emacs_cv_xaw=yes
12459 else
12460 emacs_cv_xaw=no
12462 rm -f core conftest.err conftest.$ac_objext \
12463 conftest$ac_exeext conftest.$ac_ext
12466 if test $emacs_cv_xaw = yes; then
12467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
12468 $as_echo "yes; using Lucid toolkit" >&6; }
12469 USE_X_TOOLKIT=LUCID
12470 LUCID_LIBW=-lXaw
12471 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
12472 as_fn_error "Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
12473 else
12474 as_fn_error "No X toolkit could be found.
12475 If you are sure you want Emacs compiled without an X toolkit, pass
12476 --with-x-toolkit=no
12477 to configure. Otherwise, install the development libraries for the toolkit
12478 that you want to use (e.g. Gtk+) and re-run configure." "$LINENO" 5
12483 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
12485 LIBXTR6=
12486 if test "${USE_X_TOOLKIT}" != "none"; then
12487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
12488 $as_echo_n "checking X11 toolkit version... " >&6; }
12489 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then :
12490 $as_echo_n "(cached) " >&6
12491 else
12492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12493 /* end confdefs.h. */
12494 #include <X11/Intrinsic.h>
12496 main ()
12498 #if XtSpecificationRelease < 6
12499 fail;
12500 #endif
12503 return 0;
12505 _ACEOF
12506 if ac_fn_c_try_link "$LINENO"; then :
12507 emacs_cv_x11_toolkit_version_6=yes
12508 else
12509 emacs_cv_x11_toolkit_version_6=no
12511 rm -f core conftest.err conftest.$ac_objext \
12512 conftest$ac_exeext conftest.$ac_ext
12515 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
12516 if test $emacs_cv_x11_toolkit_version_6 = yes; then
12517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
12518 $as_echo "6 or newer" >&6; }
12520 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
12522 LIBXTR6="-lSM -lICE"
12523 case "$opsys" in
12524 ## Use libw.a along with X11R6 Xt.
12525 unixware) LIBXTR6="$LIBXTR6 -lw" ;;
12526 esac
12527 else
12528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
12529 $as_echo "before 6" >&6; }
12532 OLDLIBS="$LIBS"
12533 if test x$HAVE_X11XTR6 = xyes; then
12534 LIBS="-lXt -lSM -lICE $LIBS"
12535 else
12536 LIBS="-lXt $LIBS"
12538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
12539 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
12540 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then :
12541 $as_echo_n "(cached) " >&6
12542 else
12543 ac_check_lib_save_LIBS=$LIBS
12544 LIBS="-lXmu $LIBS"
12545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12546 /* end confdefs.h. */
12548 /* Override any GCC internal prototype to avoid an error.
12549 Use char because int might match the return type of a GCC
12550 builtin and then its argument prototype would still apply. */
12551 #ifdef __cplusplus
12552 extern "C"
12553 #endif
12554 char XmuConvertStandardSelection ();
12556 main ()
12558 return XmuConvertStandardSelection ();
12560 return 0;
12562 _ACEOF
12563 if ac_fn_c_try_link "$LINENO"; then :
12564 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
12565 else
12566 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
12568 rm -f core conftest.err conftest.$ac_objext \
12569 conftest$ac_exeext conftest.$ac_ext
12570 LIBS=$ac_check_lib_save_LIBS
12572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
12573 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
12574 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x""yes; then :
12575 cat >>confdefs.h <<_ACEOF
12576 #define HAVE_LIBXMU 1
12577 _ACEOF
12579 LIBS="-lXmu $LIBS"
12583 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
12587 LIBXMU=-lXmu
12588 case $opsys in
12589 ## These systems don't supply Xmu.
12590 hpux* | aix4-2 )
12591 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU=
12593 esac
12596 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12597 if test "${HAVE_X11}" = "yes"; then
12598 if test "${USE_X_TOOLKIT}" != "none"; then
12599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
12600 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
12601 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
12602 $as_echo_n "(cached) " >&6
12603 else
12604 ac_check_lib_save_LIBS=$LIBS
12605 LIBS="-lXext $LIBS"
12606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12607 /* end confdefs.h. */
12609 /* Override any GCC internal prototype to avoid an error.
12610 Use char because int might match the return type of a GCC
12611 builtin and then its argument prototype would still apply. */
12612 #ifdef __cplusplus
12613 extern "C"
12614 #endif
12615 char XShapeQueryExtension ();
12617 main ()
12619 return XShapeQueryExtension ();
12621 return 0;
12623 _ACEOF
12624 if ac_fn_c_try_link "$LINENO"; then :
12625 ac_cv_lib_Xext_XShapeQueryExtension=yes
12626 else
12627 ac_cv_lib_Xext_XShapeQueryExtension=no
12629 rm -f core conftest.err conftest.$ac_objext \
12630 conftest$ac_exeext conftest.$ac_ext
12631 LIBS=$ac_check_lib_save_LIBS
12633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12634 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12635 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then :
12636 cat >>confdefs.h <<_ACEOF
12637 #define HAVE_LIBXEXT 1
12638 _ACEOF
12640 LIBS="-lXext $LIBS"
12647 LIBXP=
12648 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif version 2.1" >&5
12650 $as_echo_n "checking for Motif version 2.1... " >&6; }
12651 if test "${emacs_cv_motif_version_2_1+set}" = set; then :
12652 $as_echo_n "(cached) " >&6
12653 else
12654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12655 /* end confdefs.h. */
12656 #include <Xm/Xm.h>
12658 main ()
12660 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12661 int x = 5;
12662 #else
12663 Motif version prior to 2.1.
12664 #endif
12666 return 0;
12668 _ACEOF
12669 if ac_fn_c_try_compile "$LINENO"; then :
12670 emacs_cv_motif_version_2_1=yes
12671 else
12672 emacs_cv_motif_version_2_1=no
12674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
12677 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
12678 if test $emacs_cv_motif_version_2_1 = yes; then
12679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
12680 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
12681 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then :
12682 $as_echo_n "(cached) " >&6
12683 else
12684 ac_check_lib_save_LIBS=$LIBS
12685 LIBS="-lXp $LIBS"
12686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12687 /* end confdefs.h. */
12689 /* Override any GCC internal prototype to avoid an error.
12690 Use char because int might match the return type of a GCC
12691 builtin and then its argument prototype would still apply. */
12692 #ifdef __cplusplus
12693 extern "C"
12694 #endif
12695 char XpCreateContext ();
12697 main ()
12699 return XpCreateContext ();
12701 return 0;
12703 _ACEOF
12704 if ac_fn_c_try_link "$LINENO"; then :
12705 ac_cv_lib_Xp_XpCreateContext=yes
12706 else
12707 ac_cv_lib_Xp_XpCreateContext=no
12709 rm -f core conftest.err conftest.$ac_objext \
12710 conftest$ac_exeext conftest.$ac_ext
12711 LIBS=$ac_check_lib_save_LIBS
12713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12714 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
12715 if test "x$ac_cv_lib_Xp_XpCreateContext" = x""yes; then :
12716 LIBXP=-lXp
12719 else
12720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
12721 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
12722 if test "${emacs_cv_lesstif+set}" = set; then :
12723 $as_echo_n "(cached) " >&6
12724 else
12725 # We put this in CFLAGS temporarily to precede other -I options
12726 # that might be in CFLAGS temporarily.
12727 # We put this in CPPFLAGS where it precedes the other -I options.
12728 OLD_CPPFLAGS=$CPPFLAGS
12729 OLD_CFLAGS=$CFLAGS
12730 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12731 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12733 /* end confdefs.h. */
12734 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12736 main ()
12738 int x = 5;
12740 return 0;
12742 _ACEOF
12743 if ac_fn_c_try_compile "$LINENO"; then :
12744 emacs_cv_lesstif=yes
12745 else
12746 emacs_cv_lesstif=no
12748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
12751 $as_echo "$emacs_cv_lesstif" >&6; }
12752 if test $emacs_cv_lesstif = yes; then
12753 # Make sure this -I option remains in CPPFLAGS after it is set
12754 # back to REAL_CPPFLAGS.
12755 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12756 # have those other -I options anyway. Ultimately, having this
12757 # directory ultimately in CPPFLAGS will be enough.
12758 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12759 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12760 else
12761 CFLAGS=$OLD_CFLAGS
12762 CPPFLAGS=$OLD_CPPFLAGS
12765 ac_fn_c_check_header_mongrel "$LINENO" "Xm/BulletinB.h" "ac_cv_header_Xm_BulletinB_h" "$ac_includes_default"
12766 if test "x$ac_cv_header_Xm_BulletinB_h" = x""yes; then :
12768 else
12769 as_fn_error "Motif toolkit requested but requirements not found." "$LINENO" 5
12776 USE_TOOLKIT_SCROLL_BARS=no
12777 if test "${with_toolkit_scroll_bars}" != "no"; then
12778 if test "${USE_X_TOOLKIT}" != "none"; then
12779 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12780 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12782 HAVE_XAW3D=no
12783 USE_TOOLKIT_SCROLL_BARS=yes
12784 elif test "${HAVE_XAW3D}" = "yes" || test "${USE_X_TOOLKIT}" = "LUCID"; then
12785 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12787 USE_TOOLKIT_SCROLL_BARS=yes
12789 elif test "${HAVE_GTK}" = "yes"; then
12790 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12792 USE_TOOLKIT_SCROLL_BARS=yes
12793 elif test "${HAVE_NS}" = "yes"; then
12794 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12796 USE_TOOLKIT_SCROLL_BARS=yes
12800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12801 /* end confdefs.h. */
12803 #include <X11/Xlib.h>
12804 #include <X11/Xresource.h>
12806 main ()
12808 XIMProc callback;
12810 return 0;
12812 _ACEOF
12813 if ac_fn_c_try_compile "$LINENO"; then :
12814 HAVE_XIM=yes
12816 $as_echo "#define HAVE_XIM 1" >>confdefs.h
12818 else
12819 HAVE_XIM=no
12821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12824 if test "${with_xim}" != "no"; then
12826 $as_echo "#define USE_XIM 1" >>confdefs.h
12831 if test "${HAVE_XIM}" != "no"; then
12832 late_CFLAGS=$CFLAGS
12833 if test "$GCC" = yes; then
12834 CFLAGS="$CFLAGS --pedantic-errors"
12836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12837 /* end confdefs.h. */
12839 #include <X11/Xlib.h>
12840 #include <X11/Xresource.h>
12842 main ()
12844 Display *display;
12845 XrmDatabase db;
12846 char *res_name;
12847 char *res_class;
12848 XIMProc callback;
12849 XPointer *client_data;
12850 #ifndef __GNUC__
12851 /* If we're not using GCC, it's probably not XFree86, and this is
12852 probably right, but we can't use something like --pedantic-errors. */
12853 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12854 char*, XIMProc, XPointer*);
12855 #endif
12856 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12857 client_data);
12859 return 0;
12861 _ACEOF
12862 if ac_fn_c_try_compile "$LINENO"; then :
12863 emacs_cv_arg6_star=yes
12865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12866 if test "$emacs_cv_arg6_star" = yes; then
12867 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
12869 else
12870 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
12873 CFLAGS=$late_CFLAGS
12876 ### Start of font-backend (under any platform) section.
12877 # (nothing here yet -- this is a placeholder)
12878 ### End of font-backend (under any platform) section.
12880 ### Start of font-backend (under X11) section.
12881 if test "${HAVE_X11}" = "yes"; then
12883 succeeded=no
12885 # Extract the first word of "pkg-config", so it can be a program name with args.
12886 set dummy pkg-config; ac_word=$2
12887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12888 $as_echo_n "checking for $ac_word... " >&6; }
12889 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12890 $as_echo_n "(cached) " >&6
12891 else
12892 case $PKG_CONFIG in
12893 [\\/]* | ?:[\\/]*)
12894 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12898 for as_dir in $PATH
12900 IFS=$as_save_IFS
12901 test -z "$as_dir" && as_dir=.
12902 for ac_exec_ext in '' $ac_executable_extensions; do
12903 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12904 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12906 break 2
12908 done
12909 done
12910 IFS=$as_save_IFS
12912 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12914 esac
12916 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12917 if test -n "$PKG_CONFIG"; then
12918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12919 $as_echo "$PKG_CONFIG" >&6; }
12920 else
12921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12922 $as_echo "no" >&6; }
12927 if test "$PKG_CONFIG" = "no" ; then
12928 HAVE_FC=no
12929 else
12930 PKG_CONFIG_MIN_VERSION=0.9.0
12931 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
12933 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
12935 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5 &&
12936 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0" 2>&5` &&
12937 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0" 2>&5`; then
12938 edit_cflags="
12939 s,///*,/,g
12940 s/^/ /
12941 s/ -I/ $isystem/g
12942 s/^ //
12944 FONTCONFIG_CFLAGS=`$as_echo "$FONTCONFIG_CFLAGS" | sed -e "$edit_cflags"`
12945 FONTCONFIG_LIBS=`$as_echo "$FONTCONFIG_LIBS" | sed -e 's,///*,/,g'`
12946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$FONTCONFIG_CFLAGS' LIBS='$FONTCONFIG_LIBS'" >&5
12947 $as_echo "yes CFLAGS='$FONTCONFIG_CFLAGS' LIBS='$FONTCONFIG_LIBS'" >&6; }
12948 succeeded=yes
12949 else
12950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12951 $as_echo "no" >&6; }
12952 FONTCONFIG_CFLAGS=""
12953 FONTCONFIG_LIBS=""
12954 ## If we have a custom action on failure, don't print errors, but
12955 ## do set a variable so people can do so.
12956 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
12962 else
12963 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12964 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12968 if test $succeeded = yes; then
12969 HAVE_FC=yes
12970 else
12971 HAVE_FC=no
12975 ## Use -lXft if available, unless `--with-xft=no'.
12976 HAVE_XFT=maybe
12977 if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then
12978 with_xft="no";
12980 if test "x${with_xft}" != "xno"; then
12983 succeeded=no
12985 # Extract the first word of "pkg-config", so it can be a program name with args.
12986 set dummy pkg-config; ac_word=$2
12987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12988 $as_echo_n "checking for $ac_word... " >&6; }
12989 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12990 $as_echo_n "(cached) " >&6
12991 else
12992 case $PKG_CONFIG in
12993 [\\/]* | ?:[\\/]*)
12994 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12998 for as_dir in $PATH
13000 IFS=$as_save_IFS
13001 test -z "$as_dir" && as_dir=.
13002 for ac_exec_ext in '' $ac_executable_extensions; do
13003 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13004 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13006 break 2
13008 done
13009 done
13010 IFS=$as_save_IFS
13012 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13014 esac
13016 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13017 if test -n "$PKG_CONFIG"; then
13018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13019 $as_echo "$PKG_CONFIG" >&6; }
13020 else
13021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13022 $as_echo "no" >&6; }
13027 if test "$PKG_CONFIG" = "no" ; then
13028 HAVE_XFT=no
13029 else
13030 PKG_CONFIG_MIN_VERSION=0.9.0
13031 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
13033 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
13035 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5 &&
13036 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0" 2>&5` &&
13037 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0" 2>&5`; then
13038 edit_cflags="
13039 s,///*,/,g
13040 s/^/ /
13041 s/ -I/ $isystem/g
13042 s/^ //
13044 XFT_CFLAGS=`$as_echo "$XFT_CFLAGS" | sed -e "$edit_cflags"`
13045 XFT_LIBS=`$as_echo "$XFT_LIBS" | sed -e 's,///*,/,g'`
13046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$XFT_CFLAGS' LIBS='$XFT_LIBS'" >&5
13047 $as_echo "yes CFLAGS='$XFT_CFLAGS' LIBS='$XFT_LIBS'" >&6; }
13048 succeeded=yes
13049 else
13050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13051 $as_echo "no" >&6; }
13052 XFT_CFLAGS=""
13053 XFT_LIBS=""
13054 ## If we have a custom action on failure, don't print errors, but
13055 ## do set a variable so people can do so.
13056 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
13062 else
13063 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13064 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13068 if test $succeeded = yes; then
13070 else
13071 HAVE_XFT=no
13074 ## Because xftfont.c uses XRenderQueryExtension, we also
13075 ## need to link to -lXrender.
13076 HAVE_XRENDER=no
13077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
13078 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
13079 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
13080 $as_echo_n "(cached) " >&6
13081 else
13082 ac_check_lib_save_LIBS=$LIBS
13083 LIBS="-lXrender $LIBS"
13084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13085 /* end confdefs.h. */
13087 /* Override any GCC internal prototype to avoid an error.
13088 Use char because int might match the return type of a GCC
13089 builtin and then its argument prototype would still apply. */
13090 #ifdef __cplusplus
13091 extern "C"
13092 #endif
13093 char XRenderQueryExtension ();
13095 main ()
13097 return XRenderQueryExtension ();
13099 return 0;
13101 _ACEOF
13102 if ac_fn_c_try_link "$LINENO"; then :
13103 ac_cv_lib_Xrender_XRenderQueryExtension=yes
13104 else
13105 ac_cv_lib_Xrender_XRenderQueryExtension=no
13107 rm -f core conftest.err conftest.$ac_objext \
13108 conftest$ac_exeext conftest.$ac_ext
13109 LIBS=$ac_check_lib_save_LIBS
13111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
13112 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
13113 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x""yes; then :
13114 HAVE_XRENDER=yes
13117 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
13118 OLD_CPPFLAGS="$CPPFLAGS"
13119 OLD_CFLAGS="$CFLAGS"
13120 OLD_LIBS="$LIBS"
13121 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
13122 CFLAGS="$CFLAGS $XFT_CFLAGS"
13123 XFT_LIBS="-lXrender $XFT_LIBS"
13124 LIBS="$XFT_LIBS $LIBS"
13125 ac_fn_c_check_header_mongrel "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
13126 if test "x$ac_cv_header_X11_Xft_Xft_h" = x""yes; then :
13127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
13128 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
13129 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then :
13130 $as_echo_n "(cached) " >&6
13131 else
13132 ac_check_lib_save_LIBS=$LIBS
13133 LIBS="-lXft $XFT_LIBS $LIBS"
13134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13135 /* end confdefs.h. */
13137 /* Override any GCC internal prototype to avoid an error.
13138 Use char because int might match the return type of a GCC
13139 builtin and then its argument prototype would still apply. */
13140 #ifdef __cplusplus
13141 extern "C"
13142 #endif
13143 char XftFontOpen ();
13145 main ()
13147 return XftFontOpen ();
13149 return 0;
13151 _ACEOF
13152 if ac_fn_c_try_link "$LINENO"; then :
13153 ac_cv_lib_Xft_XftFontOpen=yes
13154 else
13155 ac_cv_lib_Xft_XftFontOpen=no
13157 rm -f core conftest.err conftest.$ac_objext \
13158 conftest$ac_exeext conftest.$ac_ext
13159 LIBS=$ac_check_lib_save_LIBS
13161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
13162 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
13163 if test "x$ac_cv_lib_Xft_XftFontOpen" = x""yes; then :
13164 HAVE_XFT=yes
13171 if test "${HAVE_XFT}" = "yes"; then
13173 $as_echo "#define HAVE_XFT 1" >>confdefs.h
13176 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
13177 else
13178 CPPFLAGS="$OLD_CPPFLAGS"
13179 CFLAGS="$OLD_CFLAGS"
13180 LIBS="$OLD_LIBS"
13181 fi # "${HAVE_XFT}" = "yes"
13182 fi # "$HAVE_XFT" != no
13183 fi # "x${with_xft}" != "xno"
13185 ## We used to allow building with FreeType and without Xft.
13186 ## However, the ftx font backend driver is not in good shape.
13187 if test "$HAVE_XFT" != "yes"; then
13188 HAVE_XFT=no
13189 HAVE_FREETYPE=no
13190 else
13192 succeeded=no
13194 # Extract the first word of "pkg-config", so it can be a program name with args.
13195 set dummy pkg-config; ac_word=$2
13196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13197 $as_echo_n "checking for $ac_word... " >&6; }
13198 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
13199 $as_echo_n "(cached) " >&6
13200 else
13201 case $PKG_CONFIG in
13202 [\\/]* | ?:[\\/]*)
13203 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13207 for as_dir in $PATH
13209 IFS=$as_save_IFS
13210 test -z "$as_dir" && as_dir=.
13211 for ac_exec_ext in '' $ac_executable_extensions; do
13212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13213 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13215 break 2
13217 done
13218 done
13219 IFS=$as_save_IFS
13221 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13223 esac
13225 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13226 if test -n "$PKG_CONFIG"; then
13227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13228 $as_echo "$PKG_CONFIG" >&6; }
13229 else
13230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13231 $as_echo "no" >&6; }
13236 if test "$PKG_CONFIG" = "no" ; then
13237 HAVE_FREETYPE=no
13238 else
13239 PKG_CONFIG_MIN_VERSION=0.9.0
13240 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype2" >&5
13242 $as_echo_n "checking for freetype2... " >&6; }
13244 if $PKG_CONFIG --exists "freetype2" 2>&5 &&
13245 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>&5` &&
13246 FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2" 2>&5`; then
13247 edit_cflags="
13248 s,///*,/,g
13249 s/^/ /
13250 s/ -I/ $isystem/g
13251 s/^ //
13253 FREETYPE_CFLAGS=`$as_echo "$FREETYPE_CFLAGS" | sed -e "$edit_cflags"`
13254 FREETYPE_LIBS=`$as_echo "$FREETYPE_LIBS" | sed -e 's,///*,/,g'`
13255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$FREETYPE_CFLAGS' LIBS='$FREETYPE_LIBS'" >&5
13256 $as_echo "yes CFLAGS='$FREETYPE_CFLAGS' LIBS='$FREETYPE_LIBS'" >&6; }
13257 succeeded=yes
13258 else
13259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13260 $as_echo "no" >&6; }
13261 FREETYPE_CFLAGS=""
13262 FREETYPE_LIBS=""
13263 ## If we have a custom action on failure, don't print errors, but
13264 ## do set a variable so people can do so.
13265 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
13271 else
13272 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13273 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13277 if test $succeeded = yes; then
13278 HAVE_FREETYPE=yes
13279 else
13280 HAVE_FREETYPE=no
13284 test "$HAVE_FREETYPE" = "no" && as_fn_error "libxft requires libfreetype" "$LINENO" 5
13287 HAVE_LIBOTF=no
13288 if test "${HAVE_FREETYPE}" = "yes"; then
13290 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
13292 if test "${with_libotf}" != "no"; then
13294 succeeded=no
13296 # Extract the first word of "pkg-config", so it can be a program name with args.
13297 set dummy pkg-config; ac_word=$2
13298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13299 $as_echo_n "checking for $ac_word... " >&6; }
13300 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
13301 $as_echo_n "(cached) " >&6
13302 else
13303 case $PKG_CONFIG in
13304 [\\/]* | ?:[\\/]*)
13305 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13309 for as_dir in $PATH
13311 IFS=$as_save_IFS
13312 test -z "$as_dir" && as_dir=.
13313 for ac_exec_ext in '' $ac_executable_extensions; do
13314 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13315 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13316 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13317 break 2
13319 done
13320 done
13321 IFS=$as_save_IFS
13323 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13325 esac
13327 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13328 if test -n "$PKG_CONFIG"; then
13329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13330 $as_echo "$PKG_CONFIG" >&6; }
13331 else
13332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13333 $as_echo "no" >&6; }
13338 if test "$PKG_CONFIG" = "no" ; then
13339 HAVE_LIBOTF=no
13340 else
13341 PKG_CONFIG_MIN_VERSION=0.9.0
13342 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
13344 $as_echo_n "checking for libotf... " >&6; }
13346 if $PKG_CONFIG --exists "libotf" 2>&5 &&
13347 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf" 2>&5` &&
13348 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf" 2>&5`; then
13349 edit_cflags="
13350 s,///*,/,g
13351 s/^/ /
13352 s/ -I/ $isystem/g
13353 s/^ //
13355 LIBOTF_CFLAGS=`$as_echo "$LIBOTF_CFLAGS" | sed -e "$edit_cflags"`
13356 LIBOTF_LIBS=`$as_echo "$LIBOTF_LIBS" | sed -e 's,///*,/,g'`
13357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBOTF_CFLAGS' LIBS='$LIBOTF_LIBS'" >&5
13358 $as_echo "yes CFLAGS='$LIBOTF_CFLAGS' LIBS='$LIBOTF_LIBS'" >&6; }
13359 succeeded=yes
13360 else
13361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13362 $as_echo "no" >&6; }
13363 LIBOTF_CFLAGS=""
13364 LIBOTF_LIBS=""
13365 ## If we have a custom action on failure, don't print errors, but
13366 ## do set a variable so people can do so.
13367 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
13373 else
13374 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13375 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13379 if test $succeeded = yes; then
13380 HAVE_LIBOTF=yes
13381 else
13382 HAVE_LIBOTF=no
13385 if test "$HAVE_LIBOTF" = "yes"; then
13387 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
13389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
13390 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
13391 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then :
13392 $as_echo_n "(cached) " >&6
13393 else
13394 ac_check_lib_save_LIBS=$LIBS
13395 LIBS="-lotf $LIBS"
13396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13397 /* end confdefs.h. */
13399 /* Override any GCC internal prototype to avoid an error.
13400 Use char because int might match the return type of a GCC
13401 builtin and then its argument prototype would still apply. */
13402 #ifdef __cplusplus
13403 extern "C"
13404 #endif
13405 char OTF_get_variation_glyphs ();
13407 main ()
13409 return OTF_get_variation_glyphs ();
13411 return 0;
13413 _ACEOF
13414 if ac_fn_c_try_link "$LINENO"; then :
13415 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
13416 else
13417 ac_cv_lib_otf_OTF_get_variation_glyphs=no
13419 rm -f core conftest.err conftest.$ac_objext \
13420 conftest$ac_exeext conftest.$ac_ext
13421 LIBS=$ac_check_lib_save_LIBS
13423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
13424 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
13425 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x""yes; then :
13426 HAVE_OTF_GET_VARIATION_GLYPHS=yes
13427 else
13428 HAVE_OTF_GET_VARIATION_GLYPHS=no
13431 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
13433 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
13440 HAVE_M17N_FLT=no
13441 if test "${HAVE_LIBOTF}" = yes; then
13442 if test "${with_m17n_flt}" != "no"; then
13444 succeeded=no
13446 # Extract the first word of "pkg-config", so it can be a program name with args.
13447 set dummy pkg-config; ac_word=$2
13448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13449 $as_echo_n "checking for $ac_word... " >&6; }
13450 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
13451 $as_echo_n "(cached) " >&6
13452 else
13453 case $PKG_CONFIG in
13454 [\\/]* | ?:[\\/]*)
13455 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13459 for as_dir in $PATH
13461 IFS=$as_save_IFS
13462 test -z "$as_dir" && as_dir=.
13463 for ac_exec_ext in '' $ac_executable_extensions; do
13464 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13465 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13467 break 2
13469 done
13470 done
13471 IFS=$as_save_IFS
13473 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13475 esac
13477 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13478 if test -n "$PKG_CONFIG"; then
13479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13480 $as_echo "$PKG_CONFIG" >&6; }
13481 else
13482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13483 $as_echo "no" >&6; }
13488 if test "$PKG_CONFIG" = "no" ; then
13489 HAVE_M17N_FLT=no
13490 else
13491 PKG_CONFIG_MIN_VERSION=0.9.0
13492 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
13494 $as_echo_n "checking for m17n-flt... " >&6; }
13496 if $PKG_CONFIG --exists "m17n-flt" 2>&5 &&
13497 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt" 2>&5` &&
13498 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt" 2>&5`; then
13499 edit_cflags="
13500 s,///*,/,g
13501 s/^/ /
13502 s/ -I/ $isystem/g
13503 s/^ //
13505 M17N_FLT_CFLAGS=`$as_echo "$M17N_FLT_CFLAGS" | sed -e "$edit_cflags"`
13506 M17N_FLT_LIBS=`$as_echo "$M17N_FLT_LIBS" | sed -e 's,///*,/,g'`
13507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$M17N_FLT_CFLAGS' LIBS='$M17N_FLT_LIBS'" >&5
13508 $as_echo "yes CFLAGS='$M17N_FLT_CFLAGS' LIBS='$M17N_FLT_LIBS'" >&6; }
13509 succeeded=yes
13510 else
13511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13512 $as_echo "no" >&6; }
13513 M17N_FLT_CFLAGS=""
13514 M17N_FLT_LIBS=""
13515 ## If we have a custom action on failure, don't print errors, but
13516 ## do set a variable so people can do so.
13517 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
13523 else
13524 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13525 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13529 if test $succeeded = yes; then
13530 HAVE_M17N_FLT=yes
13531 else
13532 HAVE_M17N_FLT=no
13535 if test "$HAVE_M17N_FLT" = "yes"; then
13537 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
13542 else
13543 HAVE_XFT=no
13544 HAVE_FREETYPE=no
13545 HAVE_LIBOTF=no
13546 HAVE_M17N_FLT=no
13549 ### End of font-backend (under X11) section.
13560 ### Use -lXpm if available, unless `--with-xpm=no'.
13561 HAVE_XPM=no
13562 LIBXPM=
13563 if test "${HAVE_X11}" = "yes"; then
13564 if test "${with_xpm}" != "no"; then
13565 ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
13566 if test "x$ac_cv_header_X11_xpm_h" = x""yes; then :
13567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
13568 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
13569 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then :
13570 $as_echo_n "(cached) " >&6
13571 else
13572 ac_check_lib_save_LIBS=$LIBS
13573 LIBS="-lXpm -lX11 $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 XpmReadFileToPixmap ();
13585 main ()
13587 return XpmReadFileToPixmap ();
13589 return 0;
13591 _ACEOF
13592 if ac_fn_c_try_link "$LINENO"; then :
13593 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
13594 else
13595 ac_cv_lib_Xpm_XpmReadFileToPixmap=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_Xpm_XpmReadFileToPixmap" >&5
13602 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
13603 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x""yes; then :
13604 HAVE_XPM=yes
13610 if test "${HAVE_XPM}" = "yes"; then
13611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
13612 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
13613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13614 /* end confdefs.h. */
13615 #include "X11/xpm.h"
13616 #ifndef XpmReturnAllocPixels
13617 no_return_alloc_pixels
13618 #endif
13620 _ACEOF
13621 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13622 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then :
13623 HAVE_XPM=no
13624 else
13625 HAVE_XPM=yes
13627 rm -f conftest*
13630 if test "${HAVE_XPM}" = "yes"; then
13631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13632 $as_echo "yes" >&6; }
13633 else
13634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13635 $as_echo "no" >&6; }
13640 if test "${HAVE_XPM}" = "yes"; then
13642 $as_echo "#define HAVE_XPM 1" >>confdefs.h
13644 LIBXPM=-lXpm
13649 ### Use -ljpeg if available, unless `--with-jpeg=no'.
13650 HAVE_JPEG=no
13651 LIBJPEG=
13652 if test "${HAVE_X11}" = "yes"; then
13653 if test "${with_jpeg}" != "no"; then
13654 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
13655 if test "x$ac_cv_header_jerror_h" = x""yes; then :
13656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
13657 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
13658 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then :
13659 $as_echo_n "(cached) " >&6
13660 else
13661 ac_check_lib_save_LIBS=$LIBS
13662 LIBS="-ljpeg $LIBS"
13663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13664 /* end confdefs.h. */
13666 /* Override any GCC internal prototype to avoid an error.
13667 Use char because int might match the return type of a GCC
13668 builtin and then its argument prototype would still apply. */
13669 #ifdef __cplusplus
13670 extern "C"
13671 #endif
13672 char jpeg_destroy_compress ();
13674 main ()
13676 return jpeg_destroy_compress ();
13678 return 0;
13680 _ACEOF
13681 if ac_fn_c_try_link "$LINENO"; then :
13682 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
13683 else
13684 ac_cv_lib_jpeg_jpeg_destroy_compress=no
13686 rm -f core conftest.err conftest.$ac_objext \
13687 conftest$ac_exeext conftest.$ac_ext
13688 LIBS=$ac_check_lib_save_LIBS
13690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13691 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13692 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x""yes; then :
13693 HAVE_JPEG=yes
13701 if test "${HAVE_JPEG}" = "yes"; then
13702 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
13704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13705 /* end confdefs.h. */
13706 #include <jpeglib.h>
13707 version=JPEG_LIB_VERSION
13709 _ACEOF
13710 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13711 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then :
13712 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
13714 else
13715 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
13716 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13717 HAVE_JPEG=no
13719 rm -f conftest*
13722 if test "${HAVE_JPEG}" = "yes"; then
13723 LIBJPEG=-ljpeg
13728 ### Use -lpng if available, unless `--with-png=no'.
13729 HAVE_PNG=no
13730 LIBPNG=
13731 if test "${HAVE_X11}" = "yes"; then
13732 if test "${with_png}" != "no"; then
13733 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13734 # in /usr/include/libpng.
13735 for ac_header in png.h libpng/png.h
13736 do :
13737 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13738 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13739 eval as_val=\$$as_ac_Header
13740 if test "x$as_val" = x""yes; then :
13741 cat >>confdefs.h <<_ACEOF
13742 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13743 _ACEOF
13747 done
13749 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
13750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
13751 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
13752 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then :
13753 $as_echo_n "(cached) " >&6
13754 else
13755 ac_check_lib_save_LIBS=$LIBS
13756 LIBS="-lpng -lz -lm $LIBS"
13757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13758 /* end confdefs.h. */
13760 /* Override any GCC internal prototype to avoid an error.
13761 Use char because int might match the return type of a GCC
13762 builtin and then its argument prototype would still apply. */
13763 #ifdef __cplusplus
13764 extern "C"
13765 #endif
13766 char png_get_channels ();
13768 main ()
13770 return png_get_channels ();
13772 return 0;
13774 _ACEOF
13775 if ac_fn_c_try_link "$LINENO"; then :
13776 ac_cv_lib_png_png_get_channels=yes
13777 else
13778 ac_cv_lib_png_png_get_channels=no
13780 rm -f core conftest.err conftest.$ac_objext \
13781 conftest$ac_exeext conftest.$ac_ext
13782 LIBS=$ac_check_lib_save_LIBS
13784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
13785 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
13786 if test "x$ac_cv_lib_png_png_get_channels" = x""yes; then :
13787 HAVE_PNG=yes
13793 if test "${HAVE_PNG}" = "yes"; then
13795 $as_echo "#define HAVE_PNG 1" >>confdefs.h
13797 LIBPNG="-lpng -lz -lm"
13802 ### Use -ltiff if available, unless `--with-tiff=no'.
13803 HAVE_TIFF=no
13804 LIBTIFF=
13805 if test "${HAVE_X11}" = "yes"; then
13806 if test "${with_tiff}" != "no"; then
13807 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
13808 if test "x$ac_cv_header_tiffio_h" = x""yes; then :
13809 tifflibs="-lz -lm"
13810 # At least one tiff package requires the jpeg library.
13811 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
13812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
13813 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
13814 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then :
13815 $as_echo_n "(cached) " >&6
13816 else
13817 ac_check_lib_save_LIBS=$LIBS
13818 LIBS="-ltiff $tifflibs $LIBS"
13819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13820 /* end confdefs.h. */
13822 /* Override any GCC internal prototype to avoid an error.
13823 Use char because int might match the return type of a GCC
13824 builtin and then its argument prototype would still apply. */
13825 #ifdef __cplusplus
13826 extern "C"
13827 #endif
13828 char TIFFGetVersion ();
13830 main ()
13832 return TIFFGetVersion ();
13834 return 0;
13836 _ACEOF
13837 if ac_fn_c_try_link "$LINENO"; then :
13838 ac_cv_lib_tiff_TIFFGetVersion=yes
13839 else
13840 ac_cv_lib_tiff_TIFFGetVersion=no
13842 rm -f core conftest.err conftest.$ac_objext \
13843 conftest$ac_exeext conftest.$ac_ext
13844 LIBS=$ac_check_lib_save_LIBS
13846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
13847 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
13848 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x""yes; then :
13849 HAVE_TIFF=yes
13857 if test "${HAVE_TIFF}" = "yes"; then
13859 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
13861 LIBTIFF=-ltiff
13866 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
13867 HAVE_GIF=no
13868 LIBGIF=
13869 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
13870 ac_fn_c_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
13871 if test "x$ac_cv_header_gif_lib_h" = x""yes; then :
13872 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
13873 # Earlier versions can crash Emacs.
13874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
13875 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
13876 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then :
13877 $as_echo_n "(cached) " >&6
13878 else
13879 ac_check_lib_save_LIBS=$LIBS
13880 LIBS="-lgif $LIBS"
13881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13882 /* end confdefs.h. */
13884 /* Override any GCC internal prototype to avoid an error.
13885 Use char because int might match the return type of a GCC
13886 builtin and then its argument prototype would still apply. */
13887 #ifdef __cplusplus
13888 extern "C"
13889 #endif
13890 char EGifPutExtensionLast ();
13892 main ()
13894 return EGifPutExtensionLast ();
13896 return 0;
13898 _ACEOF
13899 if ac_fn_c_try_link "$LINENO"; then :
13900 ac_cv_lib_gif_EGifPutExtensionLast=yes
13901 else
13902 ac_cv_lib_gif_EGifPutExtensionLast=no
13904 rm -f core conftest.err conftest.$ac_objext \
13905 conftest$ac_exeext conftest.$ac_ext
13906 LIBS=$ac_check_lib_save_LIBS
13908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
13909 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
13910 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x""yes; then :
13911 HAVE_GIF=yes
13912 else
13913 HAVE_GIF=maybe
13920 if test "$HAVE_GIF" = yes; then
13921 LIBGIF=-lgif
13922 elif test "$HAVE_GIF" = maybe; then
13923 # If gif_lib.h but no libgif, try libungif.
13924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
13925 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
13926 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then :
13927 $as_echo_n "(cached) " >&6
13928 else
13929 ac_check_lib_save_LIBS=$LIBS
13930 LIBS="-lungif $LIBS"
13931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13932 /* end confdefs.h. */
13934 /* Override any GCC internal prototype to avoid an error.
13935 Use char because int might match the return type of a GCC
13936 builtin and then its argument prototype would still apply. */
13937 #ifdef __cplusplus
13938 extern "C"
13939 #endif
13940 char EGifPutExtensionLast ();
13942 main ()
13944 return EGifPutExtensionLast ();
13946 return 0;
13948 _ACEOF
13949 if ac_fn_c_try_link "$LINENO"; then :
13950 ac_cv_lib_ungif_EGifPutExtensionLast=yes
13951 else
13952 ac_cv_lib_ungif_EGifPutExtensionLast=no
13954 rm -f core conftest.err conftest.$ac_objext \
13955 conftest$ac_exeext conftest.$ac_ext
13956 LIBS=$ac_check_lib_save_LIBS
13958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
13959 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
13960 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x""yes; then :
13961 HAVE_GIF=yes
13962 else
13963 HAVE_GIF=no
13966 test "$HAVE_GIF" = yes && LIBGIF=-lungif
13969 if test "${HAVE_GIF}" = "yes"; then
13971 $as_echo "#define HAVE_GIF 1" >>confdefs.h
13977 if test "${HAVE_X11}" = "yes"; then
13978 MISSING=""
13979 WITH_NO=""
13980 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
13981 MISSING="libXpm" && WITH_NO="--with-xpm=no"
13982 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
13983 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
13984 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
13985 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
13986 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
13987 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
13988 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
13989 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
13991 if test "X${MISSING}" != X; then
13992 as_fn_error "The following required libraries were not found:
13993 $MISSING
13994 Maybe some development libraries/packages are missing?
13995 If you don't want to link with them give
13996 $WITH_NO
13997 as options to configure" "$LINENO" 5
14001 ### Use -lgpm if available, unless `--with-gpm=no'.
14002 HAVE_GPM=no
14003 LIBGPM=
14004 if test "${with_gpm}" != "no"; then
14005 ac_fn_c_check_header_mongrel "$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
14006 if test "x$ac_cv_header_gpm_h" = x""yes; then :
14007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
14008 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
14009 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then :
14010 $as_echo_n "(cached) " >&6
14011 else
14012 ac_check_lib_save_LIBS=$LIBS
14013 LIBS="-lgpm $LIBS"
14014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14015 /* end confdefs.h. */
14017 /* Override any GCC internal prototype to avoid an error.
14018 Use char because int might match the return type of a GCC
14019 builtin and then its argument prototype would still apply. */
14020 #ifdef __cplusplus
14021 extern "C"
14022 #endif
14023 char Gpm_Open ();
14025 main ()
14027 return Gpm_Open ();
14029 return 0;
14031 _ACEOF
14032 if ac_fn_c_try_link "$LINENO"; then :
14033 ac_cv_lib_gpm_Gpm_Open=yes
14034 else
14035 ac_cv_lib_gpm_Gpm_Open=no
14037 rm -f core conftest.err conftest.$ac_objext \
14038 conftest$ac_exeext conftest.$ac_ext
14039 LIBS=$ac_check_lib_save_LIBS
14041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
14042 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
14043 if test "x$ac_cv_lib_gpm_Gpm_Open" = x""yes; then :
14044 HAVE_GPM=yes
14051 if test "${HAVE_GPM}" = "yes"; then
14053 $as_echo "#define HAVE_GPM 1" >>confdefs.h
14055 LIBGPM=-lgpm
14060 ac_fn_c_check_header_mongrel "$LINENO" "malloc/malloc.h" "ac_cv_header_malloc_malloc_h" "$ac_includes_default"
14061 if test "x$ac_cv_header_malloc_malloc_h" = x""yes; then :
14063 $as_echo "#define HAVE_MALLOC_MALLOC_H 1" >>confdefs.h
14069 GNUSTEP_CFLAGS=
14070 ### Use NeXTstep API to implement GUI.
14071 if test "${HAVE_NS}" = "yes"; then
14073 $as_echo "#define HAVE_NS 1" >>confdefs.h
14075 if test "${NS_IMPL_COCOA}" = "yes"; then
14077 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
14080 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
14082 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
14084 # See also .m.o rule in Makefile.in */
14085 # FIXME: are all these flags really needed? Document here why. */
14086 GNUSTEP_CFLAGS="-D_REENTRANT -fPIC -fno-strict-aliasing -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
14087 ## Extra CFLAGS applied to src/*.m files.
14088 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"
14090 # We also have mouse menus.
14091 HAVE_MENUS=yes
14092 OTHER_FILES=ns-app
14096 ### Use session management (-lSM -lICE) if available
14097 HAVE_X_SM=no
14098 LIBXSM=
14099 if test "${HAVE_X11}" = "yes"; then
14100 ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
14101 if test "x$ac_cv_header_X11_SM_SMlib_h" = x""yes; then :
14102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
14103 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
14104 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then :
14105 $as_echo_n "(cached) " >&6
14106 else
14107 ac_check_lib_save_LIBS=$LIBS
14108 LIBS="-lSM -lICE $LIBS"
14109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14110 /* end confdefs.h. */
14112 /* Override any GCC internal prototype to avoid an error.
14113 Use char because int might match the return type of a GCC
14114 builtin and then its argument prototype would still apply. */
14115 #ifdef __cplusplus
14116 extern "C"
14117 #endif
14118 char SmcOpenConnection ();
14120 main ()
14122 return SmcOpenConnection ();
14124 return 0;
14126 _ACEOF
14127 if ac_fn_c_try_link "$LINENO"; then :
14128 ac_cv_lib_SM_SmcOpenConnection=yes
14129 else
14130 ac_cv_lib_SM_SmcOpenConnection=no
14132 rm -f core conftest.err conftest.$ac_objext \
14133 conftest$ac_exeext conftest.$ac_ext
14134 LIBS=$ac_check_lib_save_LIBS
14136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
14137 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
14138 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x""yes; then :
14139 HAVE_X_SM=yes
14146 if test "${HAVE_X_SM}" = "yes"; then
14148 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
14150 LIBXSM="-lSM -lICE"
14151 case "$LIBS" in
14152 *-lSM*) ;;
14153 *) LIBS="$LIBXSM $LIBS" ;;
14154 esac
14159 ### Use libxml (-lxml2) if available
14160 HAVE_LIBXML2=no
14161 if test "${with_xml2}" != "no"; then
14162 ### I'm not sure what the version number should be, so I just guessed.
14164 succeeded=no
14166 # Extract the first word of "pkg-config", so it can be a program name with args.
14167 set dummy pkg-config; ac_word=$2
14168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14169 $as_echo_n "checking for $ac_word... " >&6; }
14170 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
14171 $as_echo_n "(cached) " >&6
14172 else
14173 case $PKG_CONFIG in
14174 [\\/]* | ?:[\\/]*)
14175 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14179 for as_dir in $PATH
14181 IFS=$as_save_IFS
14182 test -z "$as_dir" && as_dir=.
14183 for ac_exec_ext in '' $ac_executable_extensions; do
14184 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14185 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14187 break 2
14189 done
14190 done
14191 IFS=$as_save_IFS
14193 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14195 esac
14197 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14198 if test -n "$PKG_CONFIG"; then
14199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
14200 $as_echo "$PKG_CONFIG" >&6; }
14201 else
14202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14203 $as_echo "no" >&6; }
14208 if test "$PKG_CONFIG" = "no" ; then
14209 HAVE_LIBXML2=no
14210 else
14211 PKG_CONFIG_MIN_VERSION=0.9.0
14212 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.6.17" >&5
14214 $as_echo_n "checking for libxml-2.0 > 2.6.17... " >&6; }
14216 if $PKG_CONFIG --exists "libxml-2.0 > 2.6.17" 2>&5 &&
14217 LIBXML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 > 2.6.17" 2>&5` &&
14218 LIBXML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0 > 2.6.17" 2>&5`; then
14219 edit_cflags="
14220 s,///*,/,g
14221 s/^/ /
14222 s/ -I/ $isystem/g
14223 s/^ //
14225 LIBXML2_CFLAGS=`$as_echo "$LIBXML2_CFLAGS" | sed -e "$edit_cflags"`
14226 LIBXML2_LIBS=`$as_echo "$LIBXML2_LIBS" | sed -e 's,///*,/,g'`
14227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBXML2_CFLAGS' LIBS='$LIBXML2_LIBS'" >&5
14228 $as_echo "yes CFLAGS='$LIBXML2_CFLAGS' LIBS='$LIBXML2_LIBS'" >&6; }
14229 succeeded=yes
14230 else
14231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14232 $as_echo "no" >&6; }
14233 LIBXML2_CFLAGS=""
14234 LIBXML2_LIBS=""
14235 ## If we have a custom action on failure, don't print errors, but
14236 ## do set a variable so people can do so.
14237 LIBXML2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 > 2.6.17"`
14243 else
14244 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14245 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14249 if test $succeeded = yes; then
14250 HAVE_LIBXML2=yes
14251 else
14252 HAVE_LIBXML2=no
14255 if test "${HAVE_LIBXML2}" = "yes"; then
14256 LIBS="$LIBXML2_LIBS $LIBS"
14257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
14258 $as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
14259 if test "${ac_cv_lib_xml2_htmlReadMemory+set}" = set; then :
14260 $as_echo_n "(cached) " >&6
14261 else
14262 ac_check_lib_save_LIBS=$LIBS
14263 LIBS="-lxml2 $LIBS"
14264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14265 /* end confdefs.h. */
14267 /* Override any GCC internal prototype to avoid an error.
14268 Use char because int might match the return type of a GCC
14269 builtin and then its argument prototype would still apply. */
14270 #ifdef __cplusplus
14271 extern "C"
14272 #endif
14273 char htmlReadMemory ();
14275 main ()
14277 return htmlReadMemory ();
14279 return 0;
14281 _ACEOF
14282 if ac_fn_c_try_link "$LINENO"; then :
14283 ac_cv_lib_xml2_htmlReadMemory=yes
14284 else
14285 ac_cv_lib_xml2_htmlReadMemory=no
14287 rm -f core conftest.err conftest.$ac_objext \
14288 conftest$ac_exeext conftest.$ac_ext
14289 LIBS=$ac_check_lib_save_LIBS
14291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
14292 $as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
14293 if test "x$ac_cv_lib_xml2_htmlReadMemory" = x""yes; then :
14294 HAVE_LIBXML2=yes
14295 else
14296 HAVE_LIBXML2=no
14299 if test "${HAVE_LIBXML2}" = "yes"; then
14301 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
14303 else
14304 LIBXML2_LIBS=""
14305 LIBXML2_CFLAGS=""
14312 # If netdb.h doesn't declare h_errno, we must declare it by hand.
14313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
14314 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
14315 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then :
14316 $as_echo_n "(cached) " >&6
14317 else
14318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14319 /* end confdefs.h. */
14320 #include <netdb.h>
14322 main ()
14324 return h_errno;
14326 return 0;
14328 _ACEOF
14329 if ac_fn_c_try_link "$LINENO"; then :
14330 emacs_cv_netdb_declares_h_errno=yes
14331 else
14332 emacs_cv_netdb_declares_h_errno=no
14334 rm -f core conftest.err conftest.$ac_objext \
14335 conftest$ac_exeext conftest.$ac_ext
14337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
14338 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
14339 if test $emacs_cv_netdb_declares_h_errno = yes; then
14341 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
14345 # fmod, logb, and frexp are found in -lm on most systems.
14346 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
14347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
14348 $as_echo_n "checking for sqrt in -lm... " >&6; }
14349 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
14350 $as_echo_n "(cached) " >&6
14351 else
14352 ac_check_lib_save_LIBS=$LIBS
14353 LIBS="-lm $LIBS"
14354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14355 /* end confdefs.h. */
14357 /* Override any GCC internal prototype to avoid an error.
14358 Use char because int might match the return type of a GCC
14359 builtin and then its argument prototype would still apply. */
14360 #ifdef __cplusplus
14361 extern "C"
14362 #endif
14363 char sqrt ();
14365 main ()
14367 return sqrt ();
14369 return 0;
14371 _ACEOF
14372 if ac_fn_c_try_link "$LINENO"; then :
14373 ac_cv_lib_m_sqrt=yes
14374 else
14375 ac_cv_lib_m_sqrt=no
14377 rm -f core conftest.err conftest.$ac_objext \
14378 conftest$ac_exeext conftest.$ac_ext
14379 LIBS=$ac_check_lib_save_LIBS
14381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
14382 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
14383 if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
14384 cat >>confdefs.h <<_ACEOF
14385 #define HAVE_LIBM 1
14386 _ACEOF
14388 LIBS="-lm $LIBS"
14393 # Check for mail-locking functions in a "mail" library. Probably this should
14394 # have the same check as for liblockfile below.
14395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
14396 $as_echo_n "checking for maillock in -lmail... " >&6; }
14397 if test "${ac_cv_lib_mail_maillock+set}" = set; then :
14398 $as_echo_n "(cached) " >&6
14399 else
14400 ac_check_lib_save_LIBS=$LIBS
14401 LIBS="-lmail $LIBS"
14402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14403 /* end confdefs.h. */
14405 /* Override any GCC internal prototype to avoid an error.
14406 Use char because int might match the return type of a GCC
14407 builtin and then its argument prototype would still apply. */
14408 #ifdef __cplusplus
14409 extern "C"
14410 #endif
14411 char maillock ();
14413 main ()
14415 return maillock ();
14417 return 0;
14419 _ACEOF
14420 if ac_fn_c_try_link "$LINENO"; then :
14421 ac_cv_lib_mail_maillock=yes
14422 else
14423 ac_cv_lib_mail_maillock=no
14425 rm -f core conftest.err conftest.$ac_objext \
14426 conftest$ac_exeext conftest.$ac_ext
14427 LIBS=$ac_check_lib_save_LIBS
14429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
14430 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
14431 if test "x$ac_cv_lib_mail_maillock" = x""yes; then :
14432 have_mail=yes
14433 else
14434 have_mail=no
14437 if test $have_mail = yes; then
14438 LIBS_MAIL=-lmail
14439 LIBS="$LIBS_MAIL $LIBS"
14441 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
14443 else
14444 LIBS_MAIL=
14446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
14447 $as_echo_n "checking for maillock in -llockfile... " >&6; }
14448 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then :
14449 $as_echo_n "(cached) " >&6
14450 else
14451 ac_check_lib_save_LIBS=$LIBS
14452 LIBS="-llockfile $LIBS"
14453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14454 /* end confdefs.h. */
14456 /* Override any GCC internal prototype to avoid an error.
14457 Use char because int might match the return type of a GCC
14458 builtin and then its argument prototype would still apply. */
14459 #ifdef __cplusplus
14460 extern "C"
14461 #endif
14462 char maillock ();
14464 main ()
14466 return maillock ();
14468 return 0;
14470 _ACEOF
14471 if ac_fn_c_try_link "$LINENO"; then :
14472 ac_cv_lib_lockfile_maillock=yes
14473 else
14474 ac_cv_lib_lockfile_maillock=no
14476 rm -f core conftest.err conftest.$ac_objext \
14477 conftest$ac_exeext conftest.$ac_ext
14478 LIBS=$ac_check_lib_save_LIBS
14480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
14481 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
14482 if test "x$ac_cv_lib_lockfile_maillock" = x""yes; then :
14483 have_lockfile=yes
14484 else
14485 have_lockfile=no
14488 if test $have_lockfile = yes; then
14489 LIBS_MAIL=-llockfile
14490 LIBS="$LIBS_MAIL $LIBS"
14492 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
14494 else
14495 # If we have the shared liblockfile, assume we must use it for mail
14496 # locking (e.g. Debian). If we couldn't link against liblockfile
14497 # (no liblockfile.a installed), ensure that we don't need to.
14498 # Extract the first word of "liblockfile.so", so it can be a program name with args.
14499 set dummy liblockfile.so; ac_word=$2
14500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14501 $as_echo_n "checking for $ac_word... " >&6; }
14502 if test "${ac_cv_prog_liblockfile+set}" = set; then :
14503 $as_echo_n "(cached) " >&6
14504 else
14505 if test -n "$liblockfile"; then
14506 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
14507 else
14508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14509 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
14510 for as_dir in $as_dummy
14512 IFS=$as_save_IFS
14513 test -z "$as_dir" && as_dir=.
14514 for ac_exec_ext in '' $ac_executable_extensions; do
14515 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14516 ac_cv_prog_liblockfile="yes"
14517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14518 break 2
14520 done
14521 done
14522 IFS=$as_save_IFS
14524 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
14527 liblockfile=$ac_cv_prog_liblockfile
14528 if test -n "$liblockfile"; then
14529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
14530 $as_echo "$liblockfile" >&6; }
14531 else
14532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14533 $as_echo "no" >&6; }
14537 if test $ac_cv_prog_liblockfile = yes; then
14538 as_fn_error "Shared liblockfile found but can't link against it.
14539 This probably means that movemail could lose mail.
14540 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
14543 for ac_func in touchlock
14544 do :
14545 ac_fn_c_check_func "$LINENO" "touchlock" "ac_cv_func_touchlock"
14546 if test "x$ac_cv_func_touchlock" = x""yes; then :
14547 cat >>confdefs.h <<_ACEOF
14548 #define HAVE_TOUCHLOCK 1
14549 _ACEOF
14552 done
14554 for ac_header in maillock.h
14555 do :
14556 ac_fn_c_check_header_mongrel "$LINENO" "maillock.h" "ac_cv_header_maillock_h" "$ac_includes_default"
14557 if test "x$ac_cv_header_maillock_h" = x""yes; then :
14558 cat >>confdefs.h <<_ACEOF
14559 #define HAVE_MAILLOCK_H 1
14560 _ACEOF
14564 done
14568 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
14569 ## interlock access to the mail spool. The alternative is a lock file named
14570 ## /usr/spool/mail/$USER.lock.
14571 mail_lock=no
14572 case "$opsys" in
14573 aix4-2) mail_lock="lockf" ;;
14575 gnu|freebsd|netbsd|openbsd|darwin|irix6-5) mail_lock="flock" ;;
14577 ## On GNU/Linux systems, both methods are used by various mail programs.
14578 ## I assume most people are using newer mailers that have heard of flock.
14579 ## Change this if you need to.
14580 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
14581 ## configure gets the right answers, and that means *NOT* using flock.
14582 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
14583 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
14584 ## Debian maintainer hasn't provided a clean fix for Emacs.
14585 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
14586 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
14587 ## correct logic. -- fx
14588 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
14589 ## liblockfile is a Free Software replacement for libmail, used on
14590 ## Debian systems and elsewhere. -rfr.
14591 gnu-*)
14592 mail_lock="flock"
14593 if test $have_mail = yes || test $have_lockfile = yes; then
14594 test $ac_cv_header_maillock_h = yes && mail_lock=no
14597 esac
14599 BLESSMAIL_TARGET=
14600 case "$mail_lock" in
14601 flock)
14602 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
14605 lockf)
14606 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
14609 *) BLESSMAIL_TARGET="need-blessmail" ;;
14610 esac
14614 for ac_func in gethostname getdomainname \
14615 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
14616 random lrand48 logb frexp fmod rint cbrt ftime setsid \
14617 strerror fpathconf select euidaccess getpagesize tzset setlocale \
14618 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
14619 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm \
14620 sendto recvfrom getsockopt setsockopt getsockname getpeername \
14621 gai_strerror mkstemp getline getdelim mremap fsync sync \
14622 difftime mempcpy mblen mbrlen posix_memalign \
14623 getpwent endpwent getgrent endgrent \
14624 cfmakeraw cfsetspeed copysign __executable_start
14625 do :
14626 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14627 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14628 eval as_val=\$$as_ac_var
14629 if test "x$as_val" = x""yes; then :
14630 cat >>confdefs.h <<_ACEOF
14631 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14632 _ACEOF
14635 done
14638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unwind_init" >&5
14639 $as_echo_n "checking for __builtin_unwind_init... " >&6; }
14640 if test "${emacs_cv_func___builtin_unwind_init+set}" = set; then :
14641 $as_echo_n "(cached) " >&6
14642 else
14643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14644 /* end confdefs.h. */
14647 main ()
14649 __builtin_unwind_init ();
14651 return 0;
14653 _ACEOF
14654 if ac_fn_c_try_link "$LINENO"; then :
14655 emacs_cv_func___builtin_unwind_init=yes
14656 else
14657 emacs_cv_func___builtin_unwind_init=no
14659 rm -f core conftest.err conftest.$ac_objext \
14660 conftest$ac_exeext conftest.$ac_ext
14662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func___builtin_unwind_init" >&5
14663 $as_echo "$emacs_cv_func___builtin_unwind_init" >&6; }
14664 if test $emacs_cv_func___builtin_unwind_init = yes; then
14666 $as_echo "#define HAVE___BUILTIN_UNWIND_INIT 1" >>confdefs.h
14670 for ac_header in sys/un.h
14671 do :
14672 ac_fn_c_check_header_mongrel "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
14673 if test "x$ac_cv_header_sys_un_h" = x""yes; then :
14674 cat >>confdefs.h <<_ACEOF
14675 #define HAVE_SYS_UN_H 1
14676 _ACEOF
14680 done
14683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
14684 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
14685 if test "${ac_cv_sys_largefile_source+set}" = set; then :
14686 $as_echo_n "(cached) " >&6
14687 else
14688 while :; do
14689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14690 /* end confdefs.h. */
14691 #include <sys/types.h> /* for off_t */
14692 #include <stdio.h>
14694 main ()
14696 int (*fp) (FILE *, off_t, int) = fseeko;
14697 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14699 return 0;
14701 _ACEOF
14702 if ac_fn_c_try_link "$LINENO"; then :
14703 ac_cv_sys_largefile_source=no; break
14705 rm -f core conftest.err conftest.$ac_objext \
14706 conftest$ac_exeext conftest.$ac_ext
14707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14708 /* end confdefs.h. */
14709 #define _LARGEFILE_SOURCE 1
14710 #include <sys/types.h> /* for off_t */
14711 #include <stdio.h>
14713 main ()
14715 int (*fp) (FILE *, off_t, int) = fseeko;
14716 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14718 return 0;
14720 _ACEOF
14721 if ac_fn_c_try_link "$LINENO"; then :
14722 ac_cv_sys_largefile_source=1; break
14724 rm -f core conftest.err conftest.$ac_objext \
14725 conftest$ac_exeext conftest.$ac_ext
14726 ac_cv_sys_largefile_source=unknown
14727 break
14728 done
14730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
14731 $as_echo "$ac_cv_sys_largefile_source" >&6; }
14732 case $ac_cv_sys_largefile_source in #(
14733 no | unknown) ;;
14735 cat >>confdefs.h <<_ACEOF
14736 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
14737 _ACEOF
14739 esac
14740 rm -rf conftest*
14742 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
14743 # in glibc 2.1.3, but that breaks too many other things.
14744 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
14745 if test $ac_cv_sys_largefile_source != unknown; then
14747 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
14752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
14753 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
14754 if test "${ac_cv_func_getpgrp_void+set}" = set; then :
14755 $as_echo_n "(cached) " >&6
14756 else
14757 # Use it with a single arg.
14758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14759 /* end confdefs.h. */
14760 $ac_includes_default
14762 main ()
14764 getpgrp (0);
14766 return 0;
14768 _ACEOF
14769 if ac_fn_c_try_compile "$LINENO"; then :
14770 ac_cv_func_getpgrp_void=no
14771 else
14772 ac_cv_func_getpgrp_void=yes
14774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
14778 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
14779 if test $ac_cv_func_getpgrp_void = yes; then
14781 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
14786 # UNIX98 PTYs.
14787 for ac_func in grantpt
14788 do :
14789 ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt"
14790 if test "x$ac_cv_func_grantpt" = x""yes; then :
14791 cat >>confdefs.h <<_ACEOF
14792 #define HAVE_GRANTPT 1
14793 _ACEOF
14796 done
14799 # PTY-related GNU extensions.
14800 for ac_func in getpt
14801 do :
14802 ac_fn_c_check_func "$LINENO" "getpt" "ac_cv_func_getpt"
14803 if test "x$ac_cv_func_getpt" = x""yes; then :
14804 cat >>confdefs.h <<_ACEOF
14805 #define HAVE_GETPT 1
14806 _ACEOF
14809 done
14812 # Check this now, so that we will NOT find the above functions in ncurses.
14813 # That is because we have not set up to link ncurses in lib-src.
14814 # It's better to believe a function is not available
14815 # than to expect to find it in ncurses.
14816 # Also we need tputs and friends to be able to build at all.
14817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
14818 $as_echo_n "checking for library containing tputs... " >&6; }
14819 # Run a test program that contains a call to tputs, a call that is
14820 # never executed. This tests whether a pre-'main' dynamic linker
14821 # works with the library. It's too much trouble to actually call
14822 # tputs in the test program, due to portability hassles. When
14823 # cross-compiling, assume the test program will run if it links.
14825 # Maybe curses should be tried earlier?
14826 # See http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9736#35
14827 for tputs_library in '' tinfo ncurses terminfo termcap curses; do
14828 OLIBS=$LIBS
14829 if test -z "$tputs_library"; then
14830 LIBS_TERMCAP=
14831 msg='none required'
14832 else
14833 LIBS_TERMCAP=-l$tputs_library
14834 msg=$LIBS_TERMCAP
14835 LIBS="$LIBS_TERMCAP $LIBS"
14837 if test "$cross_compiling" = yes; then :
14838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14839 /* end confdefs.h. */
14841 extern void tputs (const char *, int, int (*)(int));
14842 int main (int argc, char **argv)
14844 if (argc == 10000)
14845 tputs (argv[0], 0, 0);
14846 return 0;
14849 _ACEOF
14850 if ac_fn_c_try_link "$LINENO"; then :
14852 else
14853 msg=no
14855 rm -f core conftest.err conftest.$ac_objext \
14856 conftest$ac_exeext conftest.$ac_ext
14857 else
14858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14859 /* end confdefs.h. */
14861 extern void tputs (const char *, int, int (*)(int));
14862 int main (int argc, char **argv)
14864 if (argc == 10000)
14865 tputs (argv[0], 0, 0);
14866 return 0;
14869 _ACEOF
14870 if ac_fn_c_try_run "$LINENO"; then :
14872 else
14873 msg=no
14875 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14876 conftest.$ac_objext conftest.beam conftest.$ac_ext
14879 LIBS=$OLIBS
14880 if test "X$msg" != Xno; then
14881 break
14883 done
14884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5
14885 $as_echo "$msg" >&6; }
14886 if test "X$msg" = Xno; then
14887 as_fn_error "The required function \`tputs' was not found in any library.
14888 The following libraries were tried (in order):
14889 libtinfo, libncurses, libterminfo, libtermcap, libcurses
14890 Please try installing whichever of these libraries is most appropriate
14891 for your system, together with its header files.
14892 For example, a libncurses-dev(el) or similar package." "$LINENO" 5
14895 ## Use termcap instead of terminfo?
14896 ## Only true for: freebsd < 40000, ms-w32, msdos, netbsd < 599002500.
14897 TERMINFO=yes
14898 ## FIXME? In the cases below where we unconditionally set
14899 ## LIBS_TERMCAP="-lncurses", this overrides LIBS_TERMCAP = -ltinfo,
14900 ## if that was found above to have tputs.
14901 ## Should we use the gnu* logic everywhere?
14902 case "$opsys" in
14903 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
14904 ## The ncurses library has been moved out of the System framework in
14905 ## Mac OS X 10.2. So if configure detects it, set the command-line
14906 ## option to use it.
14907 darwin) LIBS_TERMCAP="-lncurses" ;;
14909 gnu*) "x$LIBS_TERMCAP" = x && LIBS_TERMCAP="-lncurses" ;;
14911 freebsd)
14912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
14913 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
14914 if test "${emacs_cv_freebsd_terminfo+set}" = set; then :
14915 $as_echo_n "(cached) " >&6
14916 else
14917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14918 /* end confdefs.h. */
14919 #include <osreldate.h>
14921 main ()
14923 #if __FreeBSD_version < 400000
14924 fail;
14925 #endif
14928 return 0;
14930 _ACEOF
14931 if ac_fn_c_try_link "$LINENO"; then :
14932 emacs_cv_freebsd_terminfo=yes
14933 else
14934 emacs_cv_freebsd_terminfo=no
14936 rm -f core conftest.err conftest.$ac_objext \
14937 conftest$ac_exeext conftest.$ac_ext
14941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
14942 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
14944 if test $emacs_cv_freebsd_terminfo = yes; then
14945 LIBS_TERMCAP="-lncurses"
14946 else
14947 TERMINFO=no
14948 LIBS_TERMCAP="-ltermcap"
14952 netbsd)
14953 if "x$LIBS_TERMCAP" != "x-lterminfo" ; then
14954 TERMINFO=no
14955 LIBS_TERMCAP="-ltermcap"
14959 openbsd) LIBS_TERMCAP="-lncurses" ;;
14961 ## hpux: Make sure we get select from libc rather than from libcurses
14962 ## because libcurses on HPUX 10.10 has a broken version of select.
14963 ## We used to use -lc -lcurses, but this may be cleaner.
14964 ## FIXME? But TERMINFO = yes on hpux (it used to be explicitly
14965 # set that way, now it uses the default). Isn't this a contradiction?
14966 hpux*) LIBS_TERMCAP="-ltermcap" ;;
14968 esac
14970 TERMCAP_OBJ=tparam.o
14971 if test $TERMINFO = yes; then
14973 $as_echo "#define TERMINFO 1" >>confdefs.h
14975 TERMCAP_OBJ=terminfo.o
14981 # Do we have res_init, for detecting changes in /etc/resolv.conf?
14982 resolv=no
14983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14984 /* end confdefs.h. */
14985 #include <netinet/in.h>
14986 #include <arpa/nameser.h>
14987 #include <resolv.h>
14989 main ()
14991 return res_init();
14993 return 0;
14995 _ACEOF
14996 if ac_fn_c_try_link "$LINENO"; then :
14997 have_res_init=yes
14998 else
14999 have_res_init=no
15001 rm -f core conftest.err conftest.$ac_objext \
15002 conftest$ac_exeext conftest.$ac_ext
15003 if test "$have_res_init" = no; then
15004 OLIBS="$LIBS"
15005 LIBS="$LIBS -lresolv"
15006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
15007 $as_echo_n "checking for res_init with -lresolv... " >&6; }
15008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15009 /* end confdefs.h. */
15010 #include <netinet/in.h>
15011 #include <arpa/nameser.h>
15012 #include <resolv.h>
15014 main ()
15016 return res_init();
15018 return 0;
15020 _ACEOF
15021 if ac_fn_c_try_link "$LINENO"; then :
15022 have_res_init=yes
15023 else
15024 have_res_init=no
15026 rm -f core conftest.err conftest.$ac_objext \
15027 conftest$ac_exeext conftest.$ac_ext
15028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
15029 $as_echo "$have_res_init" >&6; }
15030 if test "$have_res_init" = yes ; then
15031 resolv=yes
15033 LIBS="$OLIBS"
15036 if test "$have_res_init" = yes; then
15038 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
15042 # Do we need the Hesiod library to provide the support routines?
15043 LIBHESIOD=
15044 if test "$with_hesiod" != no ; then
15045 # Don't set $LIBS here -- see comments above. FIXME which comments?
15046 ac_fn_c_check_func "$LINENO" "res_send" "ac_cv_func_res_send"
15047 if test "x$ac_cv_func_res_send" = x""yes; then :
15049 else
15050 ac_fn_c_check_func "$LINENO" "__res_send" "ac_cv_func___res_send"
15051 if test "x$ac_cv_func___res_send" = x""yes; then :
15053 else
15054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
15055 $as_echo_n "checking for res_send in -lresolv... " >&6; }
15056 if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
15057 $as_echo_n "(cached) " >&6
15058 else
15059 ac_check_lib_save_LIBS=$LIBS
15060 LIBS="-lresolv $LIBS"
15061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15062 /* end confdefs.h. */
15064 /* Override any GCC internal prototype to avoid an error.
15065 Use char because int might match the return type of a GCC
15066 builtin and then its argument prototype would still apply. */
15067 #ifdef __cplusplus
15068 extern "C"
15069 #endif
15070 char res_send ();
15072 main ()
15074 return res_send ();
15076 return 0;
15078 _ACEOF
15079 if ac_fn_c_try_link "$LINENO"; then :
15080 ac_cv_lib_resolv_res_send=yes
15081 else
15082 ac_cv_lib_resolv_res_send=no
15084 rm -f core conftest.err conftest.$ac_objext \
15085 conftest$ac_exeext conftest.$ac_ext
15086 LIBS=$ac_check_lib_save_LIBS
15088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
15089 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
15090 if test "x$ac_cv_lib_resolv_res_send" = x""yes; then :
15091 resolv=yes
15092 else
15093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
15094 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
15095 if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
15096 $as_echo_n "(cached) " >&6
15097 else
15098 ac_check_lib_save_LIBS=$LIBS
15099 LIBS="-lresolv $LIBS"
15100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15101 /* end confdefs.h. */
15103 /* Override any GCC internal prototype to avoid an error.
15104 Use char because int might match the return type of a GCC
15105 builtin and then its argument prototype would still apply. */
15106 #ifdef __cplusplus
15107 extern "C"
15108 #endif
15109 char __res_send ();
15111 main ()
15113 return __res_send ();
15115 return 0;
15117 _ACEOF
15118 if ac_fn_c_try_link "$LINENO"; then :
15119 ac_cv_lib_resolv___res_send=yes
15120 else
15121 ac_cv_lib_resolv___res_send=no
15123 rm -f core conftest.err conftest.$ac_objext \
15124 conftest$ac_exeext conftest.$ac_ext
15125 LIBS=$ac_check_lib_save_LIBS
15127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
15128 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
15129 if test "x$ac_cv_lib_resolv___res_send" = x""yes; then :
15130 resolv=yes
15139 if test "$resolv" = yes ; then
15140 RESOLVLIB=-lresolv
15141 else
15142 RESOLVLIB=
15144 ac_fn_c_check_func "$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
15145 if test "x$ac_cv_func_hes_getmailhost" = x""yes; then :
15147 else
15148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
15149 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
15150 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
15151 $as_echo_n "(cached) " >&6
15152 else
15153 ac_check_lib_save_LIBS=$LIBS
15154 LIBS="-lhesiod $RESOLVLIB $LIBS"
15155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15156 /* end confdefs.h. */
15158 /* Override any GCC internal prototype to avoid an error.
15159 Use char because int might match the return type of a GCC
15160 builtin and then its argument prototype would still apply. */
15161 #ifdef __cplusplus
15162 extern "C"
15163 #endif
15164 char hes_getmailhost ();
15166 main ()
15168 return hes_getmailhost ();
15170 return 0;
15172 _ACEOF
15173 if ac_fn_c_try_link "$LINENO"; then :
15174 ac_cv_lib_hesiod_hes_getmailhost=yes
15175 else
15176 ac_cv_lib_hesiod_hes_getmailhost=no
15178 rm -f core conftest.err conftest.$ac_objext \
15179 conftest$ac_exeext conftest.$ac_ext
15180 LIBS=$ac_check_lib_save_LIBS
15182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
15183 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
15184 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x""yes; then :
15185 hesiod=yes
15186 else
15193 if test x"$hesiod" = xyes; then
15195 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
15197 LIBHESIOD=-lhesiod
15202 # Do we need libresolv (due to res_init or Hesiod)?
15203 if test "$resolv" = yes ; then
15205 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
15207 LIBRESOLV=-lresolv
15208 else
15209 LIBRESOLV=
15213 # These tell us which Kerberos-related libraries to use.
15214 COM_ERRLIB=
15215 CRYPTOLIB=
15216 KRB5LIB=
15217 DESLIB=
15218 KRB4LIB=
15220 if test "${with_kerberos}" != no; then
15221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
15222 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
15223 if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
15224 $as_echo_n "(cached) " >&6
15225 else
15226 ac_check_lib_save_LIBS=$LIBS
15227 LIBS="-lcom_err $LIBS"
15228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15229 /* end confdefs.h. */
15231 /* Override any GCC internal prototype to avoid an error.
15232 Use char because int might match the return type of a GCC
15233 builtin and then its argument prototype would still apply. */
15234 #ifdef __cplusplus
15235 extern "C"
15236 #endif
15237 char com_err ();
15239 main ()
15241 return com_err ();
15243 return 0;
15245 _ACEOF
15246 if ac_fn_c_try_link "$LINENO"; then :
15247 ac_cv_lib_com_err_com_err=yes
15248 else
15249 ac_cv_lib_com_err_com_err=no
15251 rm -f core conftest.err conftest.$ac_objext \
15252 conftest$ac_exeext conftest.$ac_ext
15253 LIBS=$ac_check_lib_save_LIBS
15255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
15256 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
15257 if test "x$ac_cv_lib_com_err_com_err" = x""yes; then :
15258 have_com_err=yes
15259 else
15260 have_com_err=no
15263 if test $have_com_err = yes; then
15264 COM_ERRLIB=-lcom_err
15265 LIBS="$COM_ERRLIB $LIBS"
15267 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
15270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
15271 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
15272 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
15273 $as_echo_n "(cached) " >&6
15274 else
15275 ac_check_lib_save_LIBS=$LIBS
15276 LIBS="-lcrypto $LIBS"
15277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15278 /* end confdefs.h. */
15280 /* Override any GCC internal prototype to avoid an error.
15281 Use char because int might match the return type of a GCC
15282 builtin and then its argument prototype would still apply. */
15283 #ifdef __cplusplus
15284 extern "C"
15285 #endif
15286 char mit_des_cbc_encrypt ();
15288 main ()
15290 return mit_des_cbc_encrypt ();
15292 return 0;
15294 _ACEOF
15295 if ac_fn_c_try_link "$LINENO"; then :
15296 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
15297 else
15298 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
15300 rm -f core conftest.err conftest.$ac_objext \
15301 conftest$ac_exeext conftest.$ac_ext
15302 LIBS=$ac_check_lib_save_LIBS
15304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
15305 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
15306 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x""yes; then :
15307 have_crypto=yes
15308 else
15309 have_crypto=no
15312 if test $have_crypto = yes; then
15313 CRYPTOLIB=-lcrypto
15314 LIBS="$CRYPTOLIB $LIBS"
15316 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
15319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
15320 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
15321 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
15322 $as_echo_n "(cached) " >&6
15323 else
15324 ac_check_lib_save_LIBS=$LIBS
15325 LIBS="-lk5crypto $LIBS"
15326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15327 /* end confdefs.h. */
15329 /* Override any GCC internal prototype to avoid an error.
15330 Use char because int might match the return type of a GCC
15331 builtin and then its argument prototype would still apply. */
15332 #ifdef __cplusplus
15333 extern "C"
15334 #endif
15335 char mit_des_cbc_encrypt ();
15337 main ()
15339 return mit_des_cbc_encrypt ();
15341 return 0;
15343 _ACEOF
15344 if ac_fn_c_try_link "$LINENO"; then :
15345 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
15346 else
15347 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
15349 rm -f core conftest.err conftest.$ac_objext \
15350 conftest$ac_exeext conftest.$ac_ext
15351 LIBS=$ac_check_lib_save_LIBS
15353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
15354 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
15355 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x""yes; then :
15356 have_k5crypto=yes
15357 else
15358 have_k5crypto=no
15361 if test $have_k5crypto = yes; then
15362 CRYPTOLIB=-lk5crypto
15363 LIBS="$CRYPTOLIB $LIBS"
15365 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
15368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
15369 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
15370 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
15371 $as_echo_n "(cached) " >&6
15372 else
15373 ac_check_lib_save_LIBS=$LIBS
15374 LIBS="-lkrb5 $LIBS"
15375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15376 /* end confdefs.h. */
15378 /* Override any GCC internal prototype to avoid an error.
15379 Use char because int might match the return type of a GCC
15380 builtin and then its argument prototype would still apply. */
15381 #ifdef __cplusplus
15382 extern "C"
15383 #endif
15384 char krb5_init_context ();
15386 main ()
15388 return krb5_init_context ();
15390 return 0;
15392 _ACEOF
15393 if ac_fn_c_try_link "$LINENO"; then :
15394 ac_cv_lib_krb5_krb5_init_context=yes
15395 else
15396 ac_cv_lib_krb5_krb5_init_context=no
15398 rm -f core conftest.err conftest.$ac_objext \
15399 conftest$ac_exeext conftest.$ac_ext
15400 LIBS=$ac_check_lib_save_LIBS
15402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
15403 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
15404 if test "x$ac_cv_lib_krb5_krb5_init_context" = x""yes; then :
15405 have_krb5=yes
15406 else
15407 have_krb5=no
15410 if test $have_krb5=yes; then
15411 KRB5LIB=-lkrb5
15412 LIBS="$KRB5LIB $LIBS"
15414 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
15417 if test "${with_kerberos5}" = no; then
15418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
15419 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
15420 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
15421 $as_echo_n "(cached) " >&6
15422 else
15423 ac_check_lib_save_LIBS=$LIBS
15424 LIBS="-ldes425 $LIBS"
15425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15426 /* end confdefs.h. */
15428 /* Override any GCC internal prototype to avoid an error.
15429 Use char because int might match the return type of a GCC
15430 builtin and then its argument prototype would still apply. */
15431 #ifdef __cplusplus
15432 extern "C"
15433 #endif
15434 char des_cbc_encrypt ();
15436 main ()
15438 return des_cbc_encrypt ();
15440 return 0;
15442 _ACEOF
15443 if ac_fn_c_try_link "$LINENO"; then :
15444 ac_cv_lib_des425_des_cbc_encrypt=yes
15445 else
15446 ac_cv_lib_des425_des_cbc_encrypt=no
15448 rm -f core conftest.err conftest.$ac_objext \
15449 conftest$ac_exeext conftest.$ac_ext
15450 LIBS=$ac_check_lib_save_LIBS
15452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
15453 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
15454 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x""yes; then :
15455 have_des425=yes
15456 else
15457 have_des425=no
15460 if test $have_des425 = yes; then
15461 DESLIB=-ldes425
15462 LIBS="$DESLIB $LIBS"
15464 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
15466 else
15467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
15468 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
15469 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
15470 $as_echo_n "(cached) " >&6
15471 else
15472 ac_check_lib_save_LIBS=$LIBS
15473 LIBS="-ldes $LIBS"
15474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15475 /* end confdefs.h. */
15477 /* Override any GCC internal prototype to avoid an error.
15478 Use char because int might match the return type of a GCC
15479 builtin and then its argument prototype would still apply. */
15480 #ifdef __cplusplus
15481 extern "C"
15482 #endif
15483 char des_cbc_encrypt ();
15485 main ()
15487 return des_cbc_encrypt ();
15489 return 0;
15491 _ACEOF
15492 if ac_fn_c_try_link "$LINENO"; then :
15493 ac_cv_lib_des_des_cbc_encrypt=yes
15494 else
15495 ac_cv_lib_des_des_cbc_encrypt=no
15497 rm -f core conftest.err conftest.$ac_objext \
15498 conftest$ac_exeext conftest.$ac_ext
15499 LIBS=$ac_check_lib_save_LIBS
15501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
15502 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
15503 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x""yes; then :
15504 have_des=yes
15505 else
15506 have_des=no
15509 if test $have_des = yes; then
15510 DESLIB=-ldes
15511 LIBS="$DESLIB $LIBS"
15513 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
15517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
15518 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
15519 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
15520 $as_echo_n "(cached) " >&6
15521 else
15522 ac_check_lib_save_LIBS=$LIBS
15523 LIBS="-lkrb4 $LIBS"
15524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15525 /* end confdefs.h. */
15527 /* Override any GCC internal prototype to avoid an error.
15528 Use char because int might match the return type of a GCC
15529 builtin and then its argument prototype would still apply. */
15530 #ifdef __cplusplus
15531 extern "C"
15532 #endif
15533 char krb_get_cred ();
15535 main ()
15537 return krb_get_cred ();
15539 return 0;
15541 _ACEOF
15542 if ac_fn_c_try_link "$LINENO"; then :
15543 ac_cv_lib_krb4_krb_get_cred=yes
15544 else
15545 ac_cv_lib_krb4_krb_get_cred=no
15547 rm -f core conftest.err conftest.$ac_objext \
15548 conftest$ac_exeext conftest.$ac_ext
15549 LIBS=$ac_check_lib_save_LIBS
15551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
15552 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
15553 if test "x$ac_cv_lib_krb4_krb_get_cred" = x""yes; then :
15554 have_krb4=yes
15555 else
15556 have_krb4=no
15559 if test $have_krb4 = yes; then
15560 KRB4LIB=-lkrb4
15561 LIBS="$KRB4LIB $LIBS"
15563 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
15565 else
15566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
15567 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
15568 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
15569 $as_echo_n "(cached) " >&6
15570 else
15571 ac_check_lib_save_LIBS=$LIBS
15572 LIBS="-lkrb $LIBS"
15573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15574 /* end confdefs.h. */
15576 /* Override any GCC internal prototype to avoid an error.
15577 Use char because int might match the return type of a GCC
15578 builtin and then its argument prototype would still apply. */
15579 #ifdef __cplusplus
15580 extern "C"
15581 #endif
15582 char krb_get_cred ();
15584 main ()
15586 return krb_get_cred ();
15588 return 0;
15590 _ACEOF
15591 if ac_fn_c_try_link "$LINENO"; then :
15592 ac_cv_lib_krb_krb_get_cred=yes
15593 else
15594 ac_cv_lib_krb_krb_get_cred=no
15596 rm -f core conftest.err conftest.$ac_objext \
15597 conftest$ac_exeext conftest.$ac_ext
15598 LIBS=$ac_check_lib_save_LIBS
15600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
15601 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
15602 if test "x$ac_cv_lib_krb_krb_get_cred" = x""yes; then :
15603 have_krb=yes
15604 else
15605 have_krb=no
15608 if test $have_krb = yes; then
15609 KRB4LIB=-lkrb
15610 LIBS="$KRB4LIB $LIBS"
15612 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
15618 if test "${with_kerberos5}" != no; then
15619 for ac_header in krb5.h
15620 do :
15621 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
15622 if test "x$ac_cv_header_krb5_h" = x""yes; then :
15623 cat >>confdefs.h <<_ACEOF
15624 #define HAVE_KRB5_H 1
15625 _ACEOF
15626 ac_fn_c_check_member "$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
15628 if test "x$ac_cv_member_krb5_error_text" = x""yes; then :
15630 cat >>confdefs.h <<_ACEOF
15631 #define HAVE_KRB5_ERROR_TEXT 1
15632 _ACEOF
15636 ac_fn_c_check_member "$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
15638 if test "x$ac_cv_member_krb5_error_e_text" = x""yes; then :
15640 cat >>confdefs.h <<_ACEOF
15641 #define HAVE_KRB5_ERROR_E_TEXT 1
15642 _ACEOF
15649 done
15651 else
15652 for ac_header in des.h
15653 do :
15654 ac_fn_c_check_header_mongrel "$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
15655 if test "x$ac_cv_header_des_h" = x""yes; then :
15656 cat >>confdefs.h <<_ACEOF
15657 #define HAVE_DES_H 1
15658 _ACEOF
15660 else
15661 for ac_header in kerberosIV/des.h
15662 do :
15663 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
15664 if test "x$ac_cv_header_kerberosIV_des_h" = x""yes; then :
15665 cat >>confdefs.h <<_ACEOF
15666 #define HAVE_KERBEROSIV_DES_H 1
15667 _ACEOF
15669 else
15670 for ac_header in kerberos/des.h
15671 do :
15672 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
15673 if test "x$ac_cv_header_kerberos_des_h" = x""yes; then :
15674 cat >>confdefs.h <<_ACEOF
15675 #define HAVE_KERBEROS_DES_H 1
15676 _ACEOF
15680 done
15684 done
15688 done
15690 for ac_header in krb.h
15691 do :
15692 ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
15693 if test "x$ac_cv_header_krb_h" = x""yes; then :
15694 cat >>confdefs.h <<_ACEOF
15695 #define HAVE_KRB_H 1
15696 _ACEOF
15698 else
15699 for ac_header in kerberosIV/krb.h
15700 do :
15701 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
15702 if test "x$ac_cv_header_kerberosIV_krb_h" = x""yes; then :
15703 cat >>confdefs.h <<_ACEOF
15704 #define HAVE_KERBEROSIV_KRB_H 1
15705 _ACEOF
15707 else
15708 for ac_header in kerberos/krb.h
15709 do :
15710 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
15711 if test "x$ac_cv_header_kerberos_krb_h" = x""yes; then :
15712 cat >>confdefs.h <<_ACEOF
15713 #define HAVE_KERBEROS_KRB_H 1
15714 _ACEOF
15718 done
15722 done
15726 done
15729 for ac_header in com_err.h
15730 do :
15731 ac_fn_c_check_header_mongrel "$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
15732 if test "x$ac_cv_header_com_err_h" = x""yes; then :
15733 cat >>confdefs.h <<_ACEOF
15734 #define HAVE_COM_ERR_H 1
15735 _ACEOF
15739 done
15749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
15750 $as_echo_n "checking whether localtime caches TZ... " >&6; }
15751 if test "${emacs_cv_localtime_cache+set}" = set; then :
15752 $as_echo_n "(cached) " >&6
15753 else
15754 if test x$ac_cv_func_tzset = xyes; then
15755 if test "$cross_compiling" = yes; then :
15756 # If we have tzset, assume the worst when cross-compiling.
15757 emacs_cv_localtime_cache=yes
15758 else
15759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15760 /* end confdefs.h. */
15761 #include <time.h>
15762 char TZ_GMT0[] = "TZ=GMT0";
15763 char TZ_PST8[] = "TZ=PST8";
15764 main()
15766 time_t now = time ((time_t *) 0);
15767 int hour_GMT0, hour_unset;
15768 if (putenv (TZ_GMT0) != 0)
15769 exit (1);
15770 hour_GMT0 = localtime (&now)->tm_hour;
15771 unsetenv("TZ");
15772 hour_unset = localtime (&now)->tm_hour;
15773 if (putenv (TZ_PST8) != 0)
15774 exit (1);
15775 if (localtime (&now)->tm_hour == hour_GMT0)
15776 exit (1);
15777 unsetenv("TZ");
15778 if (localtime (&now)->tm_hour != hour_unset)
15779 exit (1);
15780 exit (0);
15782 _ACEOF
15783 if ac_fn_c_try_run "$LINENO"; then :
15784 emacs_cv_localtime_cache=no
15785 else
15786 emacs_cv_localtime_cache=yes
15788 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15789 conftest.$ac_objext conftest.beam conftest.$ac_ext
15792 else
15793 # If we lack tzset, report that localtime does not cache TZ,
15794 # since we can't invalidate the cache if we don't have tzset.
15795 emacs_cv_localtime_cache=no
15798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
15799 $as_echo "$emacs_cv_localtime_cache" >&6; }
15800 if test $emacs_cv_localtime_cache = yes; then
15802 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
15806 if test "x$HAVE_TIMEVAL" = xyes; then
15807 for ac_func in gettimeofday
15808 do :
15809 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
15810 if test "x$ac_cv_func_gettimeofday" = x""yes; then :
15811 cat >>confdefs.h <<_ACEOF
15812 #define HAVE_GETTIMEOFDAY 1
15813 _ACEOF
15816 done
15818 if test $ac_cv_func_gettimeofday = yes; then
15819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday can accept two arguments" >&5
15820 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
15821 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then :
15822 $as_echo_n "(cached) " >&6
15823 else
15824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15825 /* end confdefs.h. */
15827 #ifdef TIME_WITH_SYS_TIME
15828 #include <sys/time.h>
15829 #include <time.h>
15830 #else
15831 #ifdef HAVE_SYS_TIME_H
15832 #include <sys/time.h>
15833 #else
15834 #include <time.h>
15835 #endif
15836 #endif
15838 main ()
15840 struct timeval time;
15841 gettimeofday (&time, 0);
15843 return 0;
15845 _ACEOF
15846 if ac_fn_c_try_compile "$LINENO"; then :
15847 emacs_cv_gettimeofday_two_arguments=yes
15848 else
15849 emacs_cv_gettimeofday_two_arguments=no
15851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_gettimeofday_two_arguments" >&5
15854 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
15855 if test $emacs_cv_gettimeofday_two_arguments = no; then
15857 $as_echo "#define GETTIMEOFDAY_ONE_ARGUMENT 1" >>confdefs.h
15863 ok_so_far=yes
15864 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
15865 if test "x$ac_cv_func_socket" = x""yes; then :
15867 else
15868 ok_so_far=no
15871 if test $ok_so_far = yes; then
15872 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
15873 if test "x$ac_cv_header_netinet_in_h" = x""yes; then :
15875 else
15876 ok_so_far=no
15881 if test $ok_so_far = yes; then
15882 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
15883 if test "x$ac_cv_header_arpa_inet_h" = x""yes; then :
15885 else
15886 ok_so_far=no
15891 if test $ok_so_far = yes; then
15893 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
15897 if test -f /usr/lpp/X11/bin/smt.exp; then
15899 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
15903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
15904 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
15905 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
15906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15907 $as_echo "yes" >&6; }
15909 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
15911 else
15912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15913 $as_echo "no" >&6; }
15916 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
15917 if test "x$ac_cv_type_pid_t" = x""yes; then :
15919 else
15921 cat >>confdefs.h <<_ACEOF
15922 #define pid_t int
15923 _ACEOF
15927 for ac_header in vfork.h
15928 do :
15929 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
15930 if test "x$ac_cv_header_vfork_h" = x""yes; then :
15931 cat >>confdefs.h <<_ACEOF
15932 #define HAVE_VFORK_H 1
15933 _ACEOF
15937 done
15939 for ac_func in fork vfork
15940 do :
15941 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15942 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15943 eval as_val=\$$as_ac_var
15944 if test "x$as_val" = x""yes; then :
15945 cat >>confdefs.h <<_ACEOF
15946 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15947 _ACEOF
15950 done
15952 if test "x$ac_cv_func_fork" = xyes; then
15953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
15954 $as_echo_n "checking for working fork... " >&6; }
15955 if test "${ac_cv_func_fork_works+set}" = set; then :
15956 $as_echo_n "(cached) " >&6
15957 else
15958 if test "$cross_compiling" = yes; then :
15959 ac_cv_func_fork_works=cross
15960 else
15961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15962 /* end confdefs.h. */
15963 $ac_includes_default
15965 main ()
15968 /* By Ruediger Kuhlmann. */
15969 return fork () < 0;
15972 return 0;
15974 _ACEOF
15975 if ac_fn_c_try_run "$LINENO"; then :
15976 ac_cv_func_fork_works=yes
15977 else
15978 ac_cv_func_fork_works=no
15980 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15981 conftest.$ac_objext conftest.beam conftest.$ac_ext
15985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
15986 $as_echo "$ac_cv_func_fork_works" >&6; }
15988 else
15989 ac_cv_func_fork_works=$ac_cv_func_fork
15991 if test "x$ac_cv_func_fork_works" = xcross; then
15992 case $host in
15993 *-*-amigaos* | *-*-msdosdjgpp*)
15994 # Override, as these systems have only a dummy fork() stub
15995 ac_cv_func_fork_works=no
15998 ac_cv_func_fork_works=yes
16000 esac
16001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
16002 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
16004 ac_cv_func_vfork_works=$ac_cv_func_vfork
16005 if test "x$ac_cv_func_vfork" = xyes; then
16006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
16007 $as_echo_n "checking for working vfork... " >&6; }
16008 if test "${ac_cv_func_vfork_works+set}" = set; then :
16009 $as_echo_n "(cached) " >&6
16010 else
16011 if test "$cross_compiling" = yes; then :
16012 ac_cv_func_vfork_works=cross
16013 else
16014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16015 /* end confdefs.h. */
16016 /* Thanks to Paul Eggert for this test. */
16017 $ac_includes_default
16018 #include <sys/wait.h>
16019 #ifdef HAVE_VFORK_H
16020 # include <vfork.h>
16021 #endif
16022 /* On some sparc systems, changes by the child to local and incoming
16023 argument registers are propagated back to the parent. The compiler
16024 is told about this with #include <vfork.h>, but some compilers
16025 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
16026 static variable whose address is put into a register that is
16027 clobbered by the vfork. */
16028 static void
16029 #ifdef __cplusplus
16030 sparc_address_test (int arg)
16031 # else
16032 sparc_address_test (arg) int arg;
16033 #endif
16035 static pid_t child;
16036 if (!child) {
16037 child = vfork ();
16038 if (child < 0) {
16039 perror ("vfork");
16040 _exit(2);
16042 if (!child) {
16043 arg = getpid();
16044 write(-1, "", 0);
16045 _exit (arg);
16051 main ()
16053 pid_t parent = getpid ();
16054 pid_t child;
16056 sparc_address_test (0);
16058 child = vfork ();
16060 if (child == 0) {
16061 /* Here is another test for sparc vfork register problems. This
16062 test uses lots of local variables, at least as many local
16063 variables as main has allocated so far including compiler
16064 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
16065 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
16066 reuse the register of parent for one of the local variables,
16067 since it will think that parent can't possibly be used any more
16068 in this routine. Assigning to the local variable will thus
16069 munge parent in the parent process. */
16070 pid_t
16071 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
16072 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
16073 /* Convince the compiler that p..p7 are live; otherwise, it might
16074 use the same hardware register for all 8 local variables. */
16075 if (p != p1 || p != p2 || p != p3 || p != p4
16076 || p != p5 || p != p6 || p != p7)
16077 _exit(1);
16079 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
16080 from child file descriptors. If the child closes a descriptor
16081 before it execs or exits, this munges the parent's descriptor
16082 as well. Test for this by closing stdout in the child. */
16083 _exit(close(fileno(stdout)) != 0);
16084 } else {
16085 int status;
16086 struct stat st;
16088 while (wait(&status) != child)
16090 return (
16091 /* Was there some problem with vforking? */
16092 child < 0
16094 /* Did the child fail? (This shouldn't happen.) */
16095 || status
16097 /* Did the vfork/compiler bug occur? */
16098 || parent != getpid()
16100 /* Did the file descriptor bug occur? */
16101 || fstat(fileno(stdout), &st) != 0
16105 _ACEOF
16106 if ac_fn_c_try_run "$LINENO"; then :
16107 ac_cv_func_vfork_works=yes
16108 else
16109 ac_cv_func_vfork_works=no
16111 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16112 conftest.$ac_objext conftest.beam conftest.$ac_ext
16116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
16117 $as_echo "$ac_cv_func_vfork_works" >&6; }
16120 if test "x$ac_cv_func_fork_works" = xcross; then
16121 ac_cv_func_vfork_works=$ac_cv_func_vfork
16122 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
16123 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
16126 if test "x$ac_cv_func_vfork_works" = xyes; then
16128 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
16130 else
16132 $as_echo "#define vfork fork" >>confdefs.h
16135 if test "x$ac_cv_func_fork_works" = xyes; then
16137 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
16142 for ac_func in snprintf
16143 do :
16144 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
16145 if test "x$ac_cv_func_snprintf" = x""yes; then :
16146 cat >>confdefs.h <<_ACEOF
16147 #define HAVE_SNPRINTF 1
16148 _ACEOF
16151 done
16154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
16155 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
16156 if test "${emacs_cv_langinfo_codeset+set}" = set; then :
16157 $as_echo_n "(cached) " >&6
16158 else
16159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16160 /* end confdefs.h. */
16161 #include <langinfo.h>
16163 main ()
16165 char* cs = nl_langinfo(CODESET);
16167 return 0;
16169 _ACEOF
16170 if ac_fn_c_try_link "$LINENO"; then :
16171 emacs_cv_langinfo_codeset=yes
16172 else
16173 emacs_cv_langinfo_codeset=no
16175 rm -f core conftest.err conftest.$ac_objext \
16176 conftest$ac_exeext conftest.$ac_ext
16179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
16180 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
16181 if test $emacs_cv_langinfo_codeset = yes; then
16183 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
16187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
16188 $as_echo_n "checking for mbstate_t... " >&6; }
16189 if test "${ac_cv_type_mbstate_t+set}" = set; then :
16190 $as_echo_n "(cached) " >&6
16191 else
16192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16193 /* end confdefs.h. */
16194 $ac_includes_default
16195 # include <wchar.h>
16197 main ()
16199 mbstate_t x; return sizeof x;
16201 return 0;
16203 _ACEOF
16204 if ac_fn_c_try_compile "$LINENO"; then :
16205 ac_cv_type_mbstate_t=yes
16206 else
16207 ac_cv_type_mbstate_t=no
16209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
16212 $as_echo "$ac_cv_type_mbstate_t" >&6; }
16213 if test $ac_cv_type_mbstate_t = yes; then
16215 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
16217 else
16219 $as_echo "#define mbstate_t int" >>confdefs.h
16223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
16224 $as_echo_n "checking for C restricted array declarations... " >&6; }
16225 if test "${emacs_cv_c_restrict_arr+set}" = set; then :
16226 $as_echo_n "(cached) " >&6
16227 else
16228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16229 /* end confdefs.h. */
16230 void fred (int x[__restrict]);
16232 main ()
16236 return 0;
16238 _ACEOF
16239 if ac_fn_c_try_compile "$LINENO"; then :
16240 emacs_cv_c_restrict_arr=yes
16241 else
16242 emacs_cv_c_restrict_arr=no
16244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
16247 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
16248 if test "$emacs_cv_c_restrict_arr" = yes; then
16250 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
16255 # Set up the CFLAGS for real compilation, so we can substitute it.
16256 CFLAGS="$REAL_CFLAGS"
16257 CPPFLAGS="$REAL_CPPFLAGS"
16259 ## Hack to detect a buggy GCC version.
16260 if test "x$GCC" = xyes \
16261 && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
16262 && test x"`echo $CFLAGS | grep '\-O[23]'`" != x \
16263 && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then
16264 as_fn_error "GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
16267 version=$PACKAGE_VERSION
16269 ### Specify what sort of things we'll be editing into Makefile and config.h.
16270 ### Use configuration here uncanonicalized to avoid exceeding size limits.
16273 ## Unused?
16294 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
16295 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
16296 ## end of LIBX_BASE, but nothing ever set it.
16301 ## Used in lwlib/Makefile.in.
16303 if test -n "${machfile}"; then
16304 M_FILE="\$(srcdir)/${machfile}"
16305 else
16306 M_FILE=
16308 S_FILE="\$(srcdir)/${opsysfile}"
16319 cat >>confdefs.h <<_ACEOF
16320 #define EMACS_CONFIGURATION "${canonical}"
16321 _ACEOF
16324 cat >>confdefs.h <<_ACEOF
16325 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
16326 _ACEOF
16328 if test -n "$machfile"; then
16330 cat >>confdefs.h <<_ACEOF
16331 #define config_machfile "${machfile}"
16332 _ACEOF
16336 cat >>confdefs.h <<_ACEOF
16337 #define config_opsysfile "${opsysfile}"
16338 _ACEOF
16341 XMENU_OBJ=
16342 XOBJ=
16343 FONT_OBJ=
16344 if test "${HAVE_X_WINDOWS}" = "yes" ; then
16346 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
16348 XMENU_OBJ=xmenu.o
16349 XOBJ="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
16350 FONT_OBJ=xfont.o
16351 if test "$HAVE_XFT" = "yes"; then
16352 FONT_OBJ="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
16353 elif test "$HAVE_FREETYPE" = "yes"; then
16354 FONT_OBJ="$FONT_OBJ ftfont.o ftxfont.o"
16362 WIDGET_OBJ=
16363 MOTIF_LIBW=
16364 if test "${USE_X_TOOLKIT}" != "none" ; then
16365 WIDGET_OBJ=widget.o
16367 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
16369 if test "${USE_X_TOOLKIT}" = "LUCID"; then
16371 $as_echo "#define USE_LUCID 1" >>confdefs.h
16373 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
16375 $as_echo "#define USE_MOTIF 1" >>confdefs.h
16377 MOTIF_LIBW=-lXm
16378 case "$opsys" in
16379 gnu-linux)
16380 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
16381 MOTIF_LIBW="$MOTIF_LIBW -lXpm"
16384 unixware)
16385 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
16386 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
16387 MOTIF_LIBW="MOTIF_LIBW -lXimp"
16390 aix4-2)
16391 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
16392 MOTIF_LIBW="$MOTIF_LIBW -li18n"
16394 esac
16395 MOTIF_LIBW="$MOTIF_LIBW $LIBXP"
16400 TOOLKIT_LIBW=
16401 case "$USE_X_TOOLKIT" in
16402 MOTIF) TOOLKIT_LIBW="$MOTIF_LIBW" ;;
16403 LUCID) TOOLKIT_LIBW="$LUCID_LIBW" ;;
16404 none) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW="$GTK_LIBS" ;;
16405 esac
16408 if test "$USE_X_TOOLKIT" = "none"; then
16409 LIBXT_OTHER="\$(LIBXSM)"
16410 OLDXMENU_TARGET="really-oldXMenu"
16411 else
16412 LIBXT_OTHER="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
16413 OLDXMENU_TARGET="really-lwlib"
16417 ## The X Menu stuff is present in the X10 distribution, but missing
16418 ## from X11. If we have X10, just use the installed library;
16419 ## otherwise, use our own copy.
16420 if test "${HAVE_X11}" = "yes" ; then
16422 $as_echo "#define HAVE_X11 1" >>confdefs.h
16425 if test "$USE_X_TOOLKIT" = "none"; then
16426 OLDXMENU="\${oldXMenudir}/libXMenu11.a"
16427 else
16428 OLDXMENU="\${lwlibdir}/liblw.a"
16430 LIBXMENU="\$(OLDXMENU)"
16431 LIBX_OTHER="\$(LIBXT) \$(LIBX_EXTRA)"
16432 OLDXMENU_DEPS="\${OLDXMENU} ../src/\${OLDXMENU}"
16433 else
16434 ## For a syntactically valid Makefile; not actually used for anything.
16435 ## See comments in src/Makefile.in.
16436 OLDXMENU=nothing
16437 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
16438 if test "${HAVE_X_WINDOWS}" = "yes"; then
16439 LIBXMENU="-lXMenu"
16440 else
16441 LIBXMENU=
16443 LIBX_OTHER=
16444 OLDXMENU_DEPS=
16447 if test "$HAVE_GTK" = "yes" || test "$HAVE_MENUS" != "yes"; then
16448 OLDXMENU_TARGET=
16449 OLDXMENU=nothing
16450 LIBXMENU=
16451 OLDXMENU_DEPS=
16460 if test "${HAVE_MENUS}" = "yes" ; then
16462 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
16466 if test "${GNU_MALLOC}" = "yes" ; then
16468 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
16472 RALLOC_OBJ=
16473 if test "${REL_ALLOC}" = "yes" ; then
16475 $as_echo "#define REL_ALLOC 1" >>confdefs.h
16478 test "$system_malloc" != "yes" && RALLOC_OBJ=ralloc.o
16482 if test "$opsys" = "cygwin"; then
16483 CYGWIN_OBJ="sheap.o"
16484 ## Cygwin differs because of its unexec().
16485 PRE_ALLOC_OBJ=
16486 POST_ALLOC_OBJ=lastfile.o
16487 else
16488 CYGWIN_OBJ=
16489 PRE_ALLOC_OBJ=lastfile.o
16490 POST_ALLOC_OBJ=
16496 # Configure gnulib here, now that we know LIBS.
16508 LIBC_FATAL_STDERR_=1
16509 export LIBC_FATAL_STDERR_
16511 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16512 # for constant arguments. Useless!
16513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
16514 $as_echo_n "checking for working alloca.h... " >&6; }
16515 if test "${ac_cv_working_alloca_h+set}" = set; then :
16516 $as_echo_n "(cached) " >&6
16517 else
16518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16519 /* end confdefs.h. */
16520 #include <alloca.h>
16522 main ()
16524 char *p = (char *) alloca (2 * sizeof (int));
16525 if (p) return 0;
16527 return 0;
16529 _ACEOF
16530 if ac_fn_c_try_link "$LINENO"; then :
16531 ac_cv_working_alloca_h=yes
16532 else
16533 ac_cv_working_alloca_h=no
16535 rm -f core conftest.err conftest.$ac_objext \
16536 conftest$ac_exeext conftest.$ac_ext
16538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
16539 $as_echo "$ac_cv_working_alloca_h" >&6; }
16540 if test $ac_cv_working_alloca_h = yes; then
16542 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
16546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
16547 $as_echo_n "checking for alloca... " >&6; }
16548 if test "${ac_cv_func_alloca_works+set}" = set; then :
16549 $as_echo_n "(cached) " >&6
16550 else
16551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16552 /* end confdefs.h. */
16553 #ifdef __GNUC__
16554 # define alloca __builtin_alloca
16555 #else
16556 # ifdef _MSC_VER
16557 # include <malloc.h>
16558 # define alloca _alloca
16559 # else
16560 # ifdef HAVE_ALLOCA_H
16561 # include <alloca.h>
16562 # else
16563 # ifdef _AIX
16564 #pragma alloca
16565 # else
16566 # ifndef alloca /* predefined by HP cc +Olibcalls */
16567 char *alloca ();
16568 # endif
16569 # endif
16570 # endif
16571 # endif
16572 #endif
16575 main ()
16577 char *p = (char *) alloca (1);
16578 if (p) return 0;
16580 return 0;
16582 _ACEOF
16583 if ac_fn_c_try_link "$LINENO"; then :
16584 ac_cv_func_alloca_works=yes
16585 else
16586 ac_cv_func_alloca_works=no
16588 rm -f core conftest.err conftest.$ac_objext \
16589 conftest$ac_exeext conftest.$ac_ext
16591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
16592 $as_echo "$ac_cv_func_alloca_works" >&6; }
16594 if test $ac_cv_func_alloca_works = yes; then
16596 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
16598 else
16599 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16600 # that cause trouble. Some versions do not even contain alloca or
16601 # contain a buggy version. If you still want to use their alloca,
16602 # use ar to extract alloca.o from them instead of compiling alloca.c.
16608 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
16610 $as_echo "#define C_ALLOCA 1" >>confdefs.h
16613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
16614 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
16615 if test "${ac_cv_os_cray+set}" = set; then :
16616 $as_echo_n "(cached) " >&6
16617 else
16618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16619 /* end confdefs.h. */
16620 #if defined CRAY && ! defined CRAY2
16621 webecray
16622 #else
16623 wenotbecray
16624 #endif
16626 _ACEOF
16627 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16628 $EGREP "webecray" >/dev/null 2>&1; then :
16629 ac_cv_os_cray=yes
16630 else
16631 ac_cv_os_cray=no
16633 rm -f conftest*
16636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
16637 $as_echo "$ac_cv_os_cray" >&6; }
16638 if test $ac_cv_os_cray = yes; then
16639 for ac_func in _getb67 GETB67 getb67; do
16640 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16641 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16642 eval as_val=\$$as_ac_var
16643 if test "x$as_val" = x""yes; then :
16645 cat >>confdefs.h <<_ACEOF
16646 #define CRAY_STACKSEG_END $ac_func
16647 _ACEOF
16649 break
16652 done
16655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
16656 $as_echo_n "checking stack direction for C alloca... " >&6; }
16657 if test "${ac_cv_c_stack_direction+set}" = set; then :
16658 $as_echo_n "(cached) " >&6
16659 else
16660 if test "$cross_compiling" = yes; then :
16661 ac_cv_c_stack_direction=0
16662 else
16663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16664 /* end confdefs.h. */
16665 $ac_includes_default
16667 find_stack_direction (int *addr, int depth)
16669 int dir, dummy = 0;
16670 if (! addr)
16671 addr = &dummy;
16672 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
16673 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
16674 return dir + dummy;
16678 main (int argc, char **argv)
16680 return find_stack_direction (0, argc + !argv + 20) < 0;
16682 _ACEOF
16683 if ac_fn_c_try_run "$LINENO"; then :
16684 ac_cv_c_stack_direction=1
16685 else
16686 ac_cv_c_stack_direction=-1
16688 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16689 conftest.$ac_objext conftest.beam conftest.$ac_ext
16693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
16694 $as_echo "$ac_cv_c_stack_direction" >&6; }
16695 cat >>confdefs.h <<_ACEOF
16696 #define STACK_DIRECTION $ac_cv_c_stack_direction
16697 _ACEOF
16705 for ac_func in $ac_func_list
16706 do :
16707 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16708 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16709 eval as_val=\$$as_ac_var
16710 if test "x$as_val" = x""yes; then :
16711 cat >>confdefs.h <<_ACEOF
16712 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16713 _ACEOF
16716 done
16721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
16722 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
16723 if test "${ac_cv_c_bigendian+set}" = set; then :
16724 $as_echo_n "(cached) " >&6
16725 else
16726 ac_cv_c_bigendian=unknown
16727 # See if we're dealing with a universal compiler.
16728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16729 /* end confdefs.h. */
16730 #ifndef __APPLE_CC__
16731 not a universal capable compiler
16732 #endif
16733 typedef int dummy;
16735 _ACEOF
16736 if ac_fn_c_try_compile "$LINENO"; then :
16738 # Check for potential -arch flags. It is not universal unless
16739 # there are at least two -arch flags with different values.
16740 ac_arch=
16741 ac_prev=
16742 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
16743 if test -n "$ac_prev"; then
16744 case $ac_word in
16745 i?86 | x86_64 | ppc | ppc64)
16746 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
16747 ac_arch=$ac_word
16748 else
16749 ac_cv_c_bigendian=universal
16750 break
16753 esac
16754 ac_prev=
16755 elif test "x$ac_word" = "x-arch"; then
16756 ac_prev=arch
16758 done
16760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16761 if test $ac_cv_c_bigendian = unknown; then
16762 # See if sys/param.h defines the BYTE_ORDER macro.
16763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16764 /* end confdefs.h. */
16765 #include <sys/types.h>
16766 #include <sys/param.h>
16769 main ()
16771 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
16772 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
16773 && LITTLE_ENDIAN)
16774 bogus endian macros
16775 #endif
16778 return 0;
16780 _ACEOF
16781 if ac_fn_c_try_compile "$LINENO"; then :
16782 # It does; now see whether it defined to BIG_ENDIAN or not.
16783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16784 /* end confdefs.h. */
16785 #include <sys/types.h>
16786 #include <sys/param.h>
16789 main ()
16791 #if BYTE_ORDER != BIG_ENDIAN
16792 not big endian
16793 #endif
16796 return 0;
16798 _ACEOF
16799 if ac_fn_c_try_compile "$LINENO"; then :
16800 ac_cv_c_bigendian=yes
16801 else
16802 ac_cv_c_bigendian=no
16804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16808 if test $ac_cv_c_bigendian = unknown; then
16809 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
16810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16811 /* end confdefs.h. */
16812 #include <limits.h>
16815 main ()
16817 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
16818 bogus endian macros
16819 #endif
16822 return 0;
16824 _ACEOF
16825 if ac_fn_c_try_compile "$LINENO"; then :
16826 # It does; now see whether it defined to _BIG_ENDIAN or not.
16827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16828 /* end confdefs.h. */
16829 #include <limits.h>
16832 main ()
16834 #ifndef _BIG_ENDIAN
16835 not big endian
16836 #endif
16839 return 0;
16841 _ACEOF
16842 if ac_fn_c_try_compile "$LINENO"; then :
16843 ac_cv_c_bigendian=yes
16844 else
16845 ac_cv_c_bigendian=no
16847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16851 if test $ac_cv_c_bigendian = unknown; then
16852 # Compile a test program.
16853 if test "$cross_compiling" = yes; then :
16854 # Try to guess by grepping values from an object file.
16855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16856 /* end confdefs.h. */
16857 short int ascii_mm[] =
16858 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
16859 short int ascii_ii[] =
16860 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
16861 int use_ascii (int i) {
16862 return ascii_mm[i] + ascii_ii[i];
16864 short int ebcdic_ii[] =
16865 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
16866 short int ebcdic_mm[] =
16867 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
16868 int use_ebcdic (int i) {
16869 return ebcdic_mm[i] + ebcdic_ii[i];
16871 extern int foo;
16874 main ()
16876 return use_ascii (foo) == use_ebcdic (foo);
16878 return 0;
16880 _ACEOF
16881 if ac_fn_c_try_compile "$LINENO"; then :
16882 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
16883 ac_cv_c_bigendian=yes
16885 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
16886 if test "$ac_cv_c_bigendian" = unknown; then
16887 ac_cv_c_bigendian=no
16888 else
16889 # finding both strings is unlikely to happen, but who knows?
16890 ac_cv_c_bigendian=unknown
16894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16895 else
16896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16897 /* end confdefs.h. */
16898 $ac_includes_default
16900 main ()
16903 /* Are we little or big endian? From Harbison&Steele. */
16904 union
16906 long int l;
16907 char c[sizeof (long int)];
16908 } u;
16909 u.l = 1;
16910 return u.c[sizeof (long int) - 1] == 1;
16913 return 0;
16915 _ACEOF
16916 if ac_fn_c_try_run "$LINENO"; then :
16917 ac_cv_c_bigendian=no
16918 else
16919 ac_cv_c_bigendian=yes
16921 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16922 conftest.$ac_objext conftest.beam conftest.$ac_ext
16927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
16928 $as_echo "$ac_cv_c_bigendian" >&6; }
16929 case $ac_cv_c_bigendian in #(
16930 yes)
16931 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
16932 ;; #(
16934 ;; #(
16935 universal)
16937 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
16939 ;; #(
16941 as_fn_error "unknown endianness
16942 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
16943 esac
16946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
16947 $as_echo_n "checking for inline... " >&6; }
16948 if test "${ac_cv_c_inline+set}" = set; then :
16949 $as_echo_n "(cached) " >&6
16950 else
16951 ac_cv_c_inline=no
16952 for ac_kw in inline __inline__ __inline; do
16953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16954 /* end confdefs.h. */
16955 #ifndef __cplusplus
16956 typedef int foo_t;
16957 static $ac_kw foo_t static_foo () {return 0; }
16958 $ac_kw foo_t foo () {return 0; }
16959 #endif
16961 _ACEOF
16962 if ac_fn_c_try_compile "$LINENO"; then :
16963 ac_cv_c_inline=$ac_kw
16965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16966 test "$ac_cv_c_inline" != no && break
16967 done
16970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
16971 $as_echo "$ac_cv_c_inline" >&6; }
16973 case $ac_cv_c_inline in
16974 inline | yes) ;;
16976 case $ac_cv_c_inline in
16977 no) ac_val=;;
16978 *) ac_val=$ac_cv_c_inline;;
16979 esac
16980 cat >>confdefs.h <<_ACEOF
16981 #ifndef __cplusplus
16982 #define inline $ac_val
16983 #endif
16984 _ACEOF
16986 esac
16989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtold conforms to C99" >&5
16990 $as_echo_n "checking whether strtold conforms to C99... " >&6; }
16991 if test "${gl_cv_func_c99_strtold+set}" = set; then :
16992 $as_echo_n "(cached) " >&6
16993 else
16994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16995 /* end confdefs.h. */
16996 /* On HP-UX before 11.23, strtold returns a struct instead of
16997 long double. Reject implementations like that, by requiring
16998 compatibility with the C99 prototype. */
16999 #include <stdlib.h>
17000 static long double (*p) (char const *, char **) = strtold;
17001 static long double
17002 test (char const *nptr, char **endptr)
17004 long double r;
17005 r = strtold (nptr, endptr);
17006 return r;
17009 main ()
17011 return test ("1.0", NULL) != 1 || p ("1.0", NULL) != 1;
17013 return 0;
17015 _ACEOF
17016 if ac_fn_c_try_link "$LINENO"; then :
17017 gl_cv_func_c99_strtold=yes
17018 else
17019 gl_cv_func_c99_strtold=no
17021 rm -f core conftest.err conftest.$ac_objext \
17022 conftest$ac_exeext conftest.$ac_ext
17024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_c99_strtold" >&5
17025 $as_echo "$gl_cv_func_c99_strtold" >&6; }
17026 if test $gl_cv_func_c99_strtold = yes; then
17028 $as_echo "#define HAVE_C99_STRTOLD 1" >>confdefs.h
17033 GNULIB_CHDIR=0;
17034 GNULIB_CHOWN=0;
17035 GNULIB_CLOSE=0;
17036 GNULIB_DUP=0;
17037 GNULIB_DUP2=0;
17038 GNULIB_DUP3=0;
17039 GNULIB_ENVIRON=0;
17040 GNULIB_EUIDACCESS=0;
17041 GNULIB_FACCESSAT=0;
17042 GNULIB_FCHDIR=0;
17043 GNULIB_FCHOWNAT=0;
17044 GNULIB_FDATASYNC=0;
17045 GNULIB_FSYNC=0;
17046 GNULIB_FTRUNCATE=0;
17047 GNULIB_GETCWD=0;
17048 GNULIB_GETDOMAINNAME=0;
17049 GNULIB_GETDTABLESIZE=0;
17050 GNULIB_GETGROUPS=0;
17051 GNULIB_GETHOSTNAME=0;
17052 GNULIB_GETLOGIN=0;
17053 GNULIB_GETLOGIN_R=0;
17054 GNULIB_GETPAGESIZE=0;
17055 GNULIB_GETUSERSHELL=0;
17056 GNULIB_GROUP_MEMBER=0;
17057 GNULIB_LCHOWN=0;
17058 GNULIB_LINK=0;
17059 GNULIB_LINKAT=0;
17060 GNULIB_LSEEK=0;
17061 GNULIB_PIPE=0;
17062 GNULIB_PIPE2=0;
17063 GNULIB_PREAD=0;
17064 GNULIB_PWRITE=0;
17065 GNULIB_READ=0;
17066 GNULIB_READLINK=0;
17067 GNULIB_READLINKAT=0;
17068 GNULIB_RMDIR=0;
17069 GNULIB_SLEEP=0;
17070 GNULIB_SYMLINK=0;
17071 GNULIB_SYMLINKAT=0;
17072 GNULIB_TTYNAME_R=0;
17073 GNULIB_UNISTD_H_GETOPT=0;
17074 GNULIB_UNISTD_H_NONBLOCKING=0;
17075 GNULIB_UNISTD_H_SIGPIPE=0;
17076 GNULIB_UNLINK=0;
17077 GNULIB_UNLINKAT=0;
17078 GNULIB_USLEEP=0;
17079 GNULIB_WRITE=0;
17080 HAVE_CHOWN=1;
17081 HAVE_DUP2=1;
17082 HAVE_DUP3=1;
17083 HAVE_EUIDACCESS=1;
17084 HAVE_FACCESSAT=1;
17085 HAVE_FCHDIR=1;
17086 HAVE_FCHOWNAT=1;
17087 HAVE_FDATASYNC=1;
17088 HAVE_FSYNC=1;
17089 HAVE_FTRUNCATE=1;
17090 HAVE_GETDTABLESIZE=1;
17091 HAVE_GETGROUPS=1;
17092 HAVE_GETHOSTNAME=1;
17093 HAVE_GETLOGIN=1;
17094 HAVE_GETPAGESIZE=1;
17095 HAVE_GROUP_MEMBER=1;
17096 HAVE_LCHOWN=1;
17097 HAVE_LINK=1;
17098 HAVE_LINKAT=1;
17099 HAVE_PIPE=1;
17100 HAVE_PIPE2=1;
17101 HAVE_PREAD=1;
17102 HAVE_PWRITE=1;
17103 HAVE_READLINK=1;
17104 HAVE_READLINKAT=1;
17105 HAVE_SLEEP=1;
17106 HAVE_SYMLINK=1;
17107 HAVE_SYMLINKAT=1;
17108 HAVE_UNLINKAT=1;
17109 HAVE_USLEEP=1;
17110 HAVE_DECL_ENVIRON=1;
17111 HAVE_DECL_FCHDIR=1;
17112 HAVE_DECL_FDATASYNC=1;
17113 HAVE_DECL_GETDOMAINNAME=1;
17114 HAVE_DECL_GETLOGIN_R=1;
17115 HAVE_DECL_GETPAGESIZE=1;
17116 HAVE_DECL_GETUSERSHELL=1;
17117 HAVE_DECL_TTYNAME_R=1;
17118 HAVE_OS_H=0;
17119 HAVE_SYS_PARAM_H=0;
17120 REPLACE_CHOWN=0;
17121 REPLACE_CLOSE=0;
17122 REPLACE_DUP=0;
17123 REPLACE_DUP2=0;
17124 REPLACE_FCHOWNAT=0;
17125 REPLACE_GETCWD=0;
17126 REPLACE_GETDOMAINNAME=0;
17127 REPLACE_GETLOGIN_R=0;
17128 REPLACE_GETGROUPS=0;
17129 REPLACE_GETPAGESIZE=0;
17130 REPLACE_LCHOWN=0;
17131 REPLACE_LINK=0;
17132 REPLACE_LINKAT=0;
17133 REPLACE_LSEEK=0;
17134 REPLACE_PREAD=0;
17135 REPLACE_PWRITE=0;
17136 REPLACE_READ=0;
17137 REPLACE_READLINK=0;
17138 REPLACE_RMDIR=0;
17139 REPLACE_SLEEP=0;
17140 REPLACE_SYMLINK=0;
17141 REPLACE_TTYNAME_R=0;
17142 REPLACE_UNLINK=0;
17143 REPLACE_UNLINKAT=0;
17144 REPLACE_USLEEP=0;
17145 REPLACE_WRITE=0;
17146 UNISTD_H_HAVE_WINSOCK2_H=0;
17147 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
17150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_dm_mode in struct stat" >&5
17151 $as_echo_n "checking for st_dm_mode in struct stat... " >&6; }
17152 if test "${ac_cv_struct_st_dm_mode+set}" = set; then :
17153 $as_echo_n "(cached) " >&6
17154 else
17155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17156 /* end confdefs.h. */
17158 #include <sys/types.h>
17159 #include <sys/stat.h>
17161 main ()
17163 struct stat s; s.st_dm_mode;
17165 return 0;
17167 _ACEOF
17168 if ac_fn_c_try_compile "$LINENO"; then :
17169 ac_cv_struct_st_dm_mode=yes
17170 else
17171 ac_cv_struct_st_dm_mode=no
17173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_st_dm_mode" >&5
17176 $as_echo "$ac_cv_struct_st_dm_mode" >&6; }
17178 if test $ac_cv_struct_st_dm_mode = yes; then
17180 $as_echo "#define HAVE_ST_DM_MODE 1" >>confdefs.h
17185 ac_fn_c_check_decl "$LINENO" "strmode" "ac_cv_have_decl_strmode" "$ac_includes_default"
17186 if test "x$ac_cv_have_decl_strmode" = x""yes; then :
17187 ac_have_decl=1
17188 else
17189 ac_have_decl=0
17192 cat >>confdefs.h <<_ACEOF
17193 #define HAVE_DECL_STRMODE $ac_have_decl
17194 _ACEOF
17197 GNULIB__EXIT=0;
17198 GNULIB_ATOLL=0;
17199 GNULIB_CALLOC_POSIX=0;
17200 GNULIB_CANONICALIZE_FILE_NAME=0;
17201 GNULIB_GETLOADAVG=0;
17202 GNULIB_GETSUBOPT=0;
17203 GNULIB_GRANTPT=0;
17204 GNULIB_MALLOC_POSIX=0;
17205 GNULIB_MBTOWC=0;
17206 GNULIB_MKDTEMP=0;
17207 GNULIB_MKOSTEMP=0;
17208 GNULIB_MKOSTEMPS=0;
17209 GNULIB_MKSTEMP=0;
17210 GNULIB_MKSTEMPS=0;
17211 GNULIB_PTSNAME=0;
17212 GNULIB_PUTENV=0;
17213 GNULIB_RANDOM_R=0;
17214 GNULIB_REALLOC_POSIX=0;
17215 GNULIB_REALPATH=0;
17216 GNULIB_RPMATCH=0;
17217 GNULIB_SETENV=0;
17218 GNULIB_STRTOD=0;
17219 GNULIB_STRTOLL=0;
17220 GNULIB_STRTOULL=0;
17221 GNULIB_SYSTEM_POSIX=0;
17222 GNULIB_UNLOCKPT=0;
17223 GNULIB_UNSETENV=0;
17224 GNULIB_WCTOMB=0;
17225 HAVE__EXIT=1;
17226 HAVE_ATOLL=1;
17227 HAVE_CANONICALIZE_FILE_NAME=1;
17228 HAVE_DECL_GETLOADAVG=1;
17229 HAVE_GETSUBOPT=1;
17230 HAVE_GRANTPT=1;
17231 HAVE_MKDTEMP=1;
17232 HAVE_MKOSTEMP=1;
17233 HAVE_MKOSTEMPS=1;
17234 HAVE_MKSTEMP=1;
17235 HAVE_MKSTEMPS=1;
17236 HAVE_PTSNAME=1;
17237 HAVE_RANDOM_H=1;
17238 HAVE_RANDOM_R=1;
17239 HAVE_REALPATH=1;
17240 HAVE_RPMATCH=1;
17241 HAVE_SETENV=1;
17242 HAVE_DECL_SETENV=1;
17243 HAVE_STRTOD=1;
17244 HAVE_STRTOLL=1;
17245 HAVE_STRTOULL=1;
17246 HAVE_STRUCT_RANDOM_DATA=1;
17247 HAVE_SYS_LOADAVG_H=0;
17248 HAVE_UNLOCKPT=1;
17249 HAVE_DECL_UNSETENV=1;
17250 REPLACE_CALLOC=0;
17251 REPLACE_CANONICALIZE_FILE_NAME=0;
17252 REPLACE_MALLOC=0;
17253 REPLACE_MBTOWC=0;
17254 REPLACE_MKSTEMP=0;
17255 REPLACE_PUTENV=0;
17256 REPLACE_REALLOC=0;
17257 REPLACE_REALPATH=0;
17258 REPLACE_SETENV=0;
17259 REPLACE_STRTOD=0;
17260 REPLACE_UNSETENV=0;
17261 REPLACE_WCTOMB=0;
17265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
17266 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
17267 if test "${gl_cv_have_include_next+set}" = set; then :
17268 $as_echo_n "(cached) " >&6
17269 else
17270 rm -rf conftestd1a conftestd1b conftestd2
17271 mkdir conftestd1a conftestd1b conftestd2
17272 cat <<EOF > conftestd1a/conftest.h
17273 #define DEFINED_IN_CONFTESTD1
17274 #include_next <conftest.h>
17275 #ifdef DEFINED_IN_CONFTESTD2
17276 int foo;
17277 #else
17278 #error "include_next doesn't work"
17279 #endif
17281 cat <<EOF > conftestd1b/conftest.h
17282 #define DEFINED_IN_CONFTESTD1
17283 #include <stdio.h>
17284 #include_next <conftest.h>
17285 #ifdef DEFINED_IN_CONFTESTD2
17286 int foo;
17287 #else
17288 #error "include_next doesn't work"
17289 #endif
17291 cat <<EOF > conftestd2/conftest.h
17292 #ifndef DEFINED_IN_CONFTESTD1
17293 #error "include_next test doesn't work"
17294 #endif
17295 #define DEFINED_IN_CONFTESTD2
17297 gl_save_CPPFLAGS="$CPPFLAGS"
17298 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
17299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17300 /* end confdefs.h. */
17301 #include <conftest.h>
17302 _ACEOF
17303 if ac_fn_c_try_compile "$LINENO"; then :
17304 gl_cv_have_include_next=yes
17305 else
17306 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
17307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17308 /* end confdefs.h. */
17309 #include <conftest.h>
17310 _ACEOF
17311 if ac_fn_c_try_compile "$LINENO"; then :
17312 gl_cv_have_include_next=buggy
17313 else
17314 gl_cv_have_include_next=no
17316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17320 CPPFLAGS="$gl_save_CPPFLAGS"
17321 rm -rf conftestd1a conftestd1b conftestd2
17324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
17325 $as_echo "$gl_cv_have_include_next" >&6; }
17326 PRAGMA_SYSTEM_HEADER=
17327 if test $gl_cv_have_include_next = yes; then
17328 INCLUDE_NEXT=include_next
17329 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
17330 if test -n "$GCC"; then
17331 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
17333 else
17334 if test $gl_cv_have_include_next = buggy; then
17335 INCLUDE_NEXT=include
17336 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
17337 else
17338 INCLUDE_NEXT=include
17339 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
17345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
17346 $as_echo_n "checking whether system header files limit the line length... " >&6; }
17347 if test "${gl_cv_pragma_columns+set}" = set; then :
17348 $as_echo_n "(cached) " >&6
17349 else
17350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17351 /* end confdefs.h. */
17353 #ifdef __TANDEM
17354 choke me
17355 #endif
17357 _ACEOF
17358 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17359 $EGREP "choke me" >/dev/null 2>&1; then :
17360 gl_cv_pragma_columns=yes
17361 else
17362 gl_cv_pragma_columns=no
17364 rm -f conftest*
17368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
17369 $as_echo "$gl_cv_pragma_columns" >&6; }
17370 if test $gl_cv_pragma_columns = yes; then
17371 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
17372 else
17373 PRAGMA_COLUMNS=
17392 if test $gl_cv_have_include_next = yes; then
17393 gl_cv_next_getopt_h='<'getopt.h'>'
17394 else
17395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
17396 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
17397 if test "${gl_cv_next_getopt_h+set}" = set; then :
17398 $as_echo_n "(cached) " >&6
17399 else
17401 if test $ac_cv_header_getopt_h = yes; then
17404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17405 /* end confdefs.h. */
17406 #include <getopt.h>
17408 _ACEOF
17409 case "$host_os" in
17410 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17411 *) gl_absname_cpp="$ac_cpp" ;;
17412 esac
17414 case "$host_os" in
17415 mingw*)
17416 gl_dirsep_regex='[/\\]'
17419 gl_dirsep_regex='/'
17421 esac
17423 gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'getopt.h|{
17424 s|.*"\(.*'"${gl_dirsep_regex}"'getopt.h\)".*|\1|
17425 s|^/[^/]|//&|
17429 gl_cv_next_getopt_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17430 sed -n "$gl_absolute_header_sed"`'"'
17431 else
17432 gl_cv_next_getopt_h='<'getopt.h'>'
17437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
17438 $as_echo "$gl_cv_next_getopt_h" >&6; }
17440 NEXT_GETOPT_H=$gl_cv_next_getopt_h
17442 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17443 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17444 gl_next_as_first_directive='<'getopt.h'>'
17445 else
17446 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17447 gl_next_as_first_directive=$gl_cv_next_getopt_h
17449 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H=$gl_next_as_first_directive
17454 if test $ac_cv_header_getopt_h = yes; then
17455 HAVE_GETOPT_H=1
17456 else
17457 HAVE_GETOPT_H=0
17461 gl_replace_getopt=
17463 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
17464 for ac_header in getopt.h
17465 do :
17466 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
17467 if test "x$ac_cv_header_getopt_h" = x""yes; then :
17468 cat >>confdefs.h <<_ACEOF
17469 #define HAVE_GETOPT_H 1
17470 _ACEOF
17472 else
17473 gl_replace_getopt=yes
17476 done
17480 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
17481 for ac_func in getopt_long_only
17482 do :
17483 ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
17484 if test "x$ac_cv_func_getopt_long_only" = x""yes; then :
17485 cat >>confdefs.h <<_ACEOF
17486 #define HAVE_GETOPT_LONG_ONLY 1
17487 _ACEOF
17489 else
17490 gl_replace_getopt=yes
17492 done
17496 if test -z "$gl_replace_getopt"; then
17497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
17498 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
17499 if test "${gl_cv_func_getopt_posix+set}" = set; then :
17500 $as_echo_n "(cached) " >&6
17501 else
17503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17504 /* end confdefs.h. */
17505 #include <unistd.h>
17507 main ()
17509 int *p = &optreset; return optreset;
17511 return 0;
17513 _ACEOF
17514 if ac_fn_c_try_link "$LINENO"; then :
17515 gl_optind_min=1
17516 else
17517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17518 /* end confdefs.h. */
17519 #include <getopt.h>
17521 main ()
17523 return !getopt_clip;
17525 return 0;
17527 _ACEOF
17528 if ac_fn_c_try_compile "$LINENO"; then :
17529 gl_optind_min=1
17530 else
17531 gl_optind_min=0
17533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17535 rm -f core conftest.err conftest.$ac_objext \
17536 conftest$ac_exeext conftest.$ac_ext
17538 gl_save_CPPFLAGS=$CPPFLAGS
17539 CPPFLAGS="$CPPFLAGS -DOPTIND_MIN=$gl_optind_min"
17540 if test "$cross_compiling" = yes; then :
17541 case "$host_os" in
17542 mingw*) gl_cv_func_getopt_posix="guessing no";;
17543 darwin* | aix*) gl_cv_func_getopt_posix="guessing no";;
17544 *) gl_cv_func_getopt_posix="guessing yes";;
17545 esac
17547 else
17548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17549 /* end confdefs.h. */
17551 #include <unistd.h>
17552 #include <stdlib.h>
17553 #include <string.h>
17556 main ()
17559 static char program[] = "program";
17560 static char a[] = "-a";
17561 static char foo[] = "foo";
17562 static char bar[] = "bar";
17563 char *argv[] = { program, a, foo, bar, NULL };
17564 int c;
17566 optind = OPTIND_MIN;
17567 opterr = 0;
17569 c = getopt (4, argv, "ab");
17570 if (!(c == 'a'))
17571 return 1;
17572 c = getopt (4, argv, "ab");
17573 if (!(c == -1))
17574 return 2;
17575 if (!(optind == 2))
17576 return 3;
17578 /* Some internal state exists at this point. */
17580 static char program[] = "program";
17581 static char donald[] = "donald";
17582 static char p[] = "-p";
17583 static char billy[] = "billy";
17584 static char duck[] = "duck";
17585 static char a[] = "-a";
17586 static char bar[] = "bar";
17587 char *argv[] = { program, donald, p, billy, duck, a, bar, NULL };
17588 int c;
17590 optind = OPTIND_MIN;
17591 opterr = 0;
17593 c = getopt (7, argv, "+abp:q:");
17594 if (!(c == -1))
17595 return 4;
17596 if (!(strcmp (argv[0], "program") == 0))
17597 return 5;
17598 if (!(strcmp (argv[1], "donald") == 0))
17599 return 6;
17600 if (!(strcmp (argv[2], "-p") == 0))
17601 return 7;
17602 if (!(strcmp (argv[3], "billy") == 0))
17603 return 8;
17604 if (!(strcmp (argv[4], "duck") == 0))
17605 return 9;
17606 if (!(strcmp (argv[5], "-a") == 0))
17607 return 10;
17608 if (!(strcmp (argv[6], "bar") == 0))
17609 return 11;
17610 if (!(optind == 1))
17611 return 12;
17613 /* Detect MacOS 10.5, AIX 7.1 bug. */
17615 static char program[] = "program";
17616 static char ab[] = "-ab";
17617 char *argv[3] = { program, ab, NULL };
17618 optind = OPTIND_MIN;
17619 opterr = 0;
17620 if (getopt (2, argv, "ab:") != 'a')
17621 return 13;
17622 if (getopt (2, argv, "ab:") != '?')
17623 return 14;
17624 if (optopt != 'b')
17625 return 15;
17626 if (optind != 2)
17627 return 16;
17630 return 0;
17633 _ACEOF
17634 if ac_fn_c_try_run "$LINENO"; then :
17635 gl_cv_func_getopt_posix=yes
17636 else
17637 gl_cv_func_getopt_posix=no
17639 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17640 conftest.$ac_objext conftest.beam conftest.$ac_ext
17643 CPPFLAGS=$gl_save_CPPFLAGS
17646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
17647 $as_echo "$gl_cv_func_getopt_posix" >&6; }
17648 case "$gl_cv_func_getopt_posix" in
17649 *no) gl_replace_getopt=yes ;;
17650 esac
17653 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
17654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
17655 $as_echo_n "checking for working GNU getopt function... " >&6; }
17656 if test "${gl_cv_func_getopt_gnu+set}" = set; then :
17657 $as_echo_n "(cached) " >&6
17658 else
17659 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
17660 # optstring is necessary for programs like m4 that have POSIX-mandated
17661 # semantics for supporting options interspersed with files.
17662 # Also, since getopt_long is a GNU extension, we require optind=0.
17663 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
17664 # so take care to revert to the correct (non-)export state.
17665 gl_awk_probe='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
17666 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
17667 xx) gl_had_POSIXLY_CORRECT=exported ;;
17668 x) gl_had_POSIXLY_CORRECT=yes ;;
17669 *) gl_had_POSIXLY_CORRECT= ;;
17670 esac
17671 POSIXLY_CORRECT=1
17672 export POSIXLY_CORRECT
17673 if test "$cross_compiling" = yes; then :
17674 case $host_os:$ac_cv_have_decl_optreset in
17675 *-gnu*:* | mingw*:*) gl_cv_func_getopt_gnu=no;;
17676 *:yes) gl_cv_func_getopt_gnu=no;;
17677 *) gl_cv_func_getopt_gnu=yes;;
17678 esac
17680 else
17681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17682 /* end confdefs.h. */
17683 #include <getopt.h>
17684 #include <stddef.h>
17685 #include <string.h>
17687 #include <stdlib.h>
17688 #if defined __MACH__ && defined __APPLE__
17689 /* Avoid a crash on MacOS X. */
17690 #include <mach/mach.h>
17691 #include <mach/mach_error.h>
17692 #include <mach/thread_status.h>
17693 #include <mach/exception.h>
17694 #include <mach/task.h>
17695 #include <pthread.h>
17696 /* The exception port on which our thread listens. */
17697 static mach_port_t our_exception_port;
17698 /* The main function of the thread listening for exceptions of type
17699 EXC_BAD_ACCESS. */
17700 static void *
17701 mach_exception_thread (void *arg)
17703 /* Buffer for a message to be received. */
17704 struct {
17705 mach_msg_header_t head;
17706 mach_msg_body_t msgh_body;
17707 char data[1024];
17708 } msg;
17709 mach_msg_return_t retval;
17710 /* Wait for a message on the exception port. */
17711 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
17712 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
17713 if (retval != MACH_MSG_SUCCESS)
17714 abort ();
17715 exit (1);
17717 static void
17718 nocrash_init (void)
17720 mach_port_t self = mach_task_self ();
17721 /* Allocate a port on which the thread shall listen for exceptions. */
17722 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
17723 == KERN_SUCCESS) {
17724 /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
17725 if (mach_port_insert_right (self, our_exception_port, our_exception_port,
17726 MACH_MSG_TYPE_MAKE_SEND)
17727 == KERN_SUCCESS) {
17728 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
17729 for us. */
17730 exception_mask_t mask = EXC_MASK_BAD_ACCESS;
17731 /* Create the thread listening on the exception port. */
17732 pthread_attr_t attr;
17733 pthread_t thread;
17734 if (pthread_attr_init (&attr) == 0
17735 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
17736 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
17737 pthread_attr_destroy (&attr);
17738 /* Replace the exception port info for these exceptions with our own.
17739 Note that we replace the exception port for the entire task, not only
17740 for a particular thread. This has the effect that when our exception
17741 port gets the message, the thread specific exception port has already
17742 been asked, and we don't need to bother about it.
17743 See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
17744 task_set_exception_ports (self, mask, our_exception_port,
17745 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
17750 #elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
17751 /* Avoid a crash on native Windows. */
17752 #define WIN32_LEAN_AND_MEAN
17753 #include <windows.h>
17754 #include <winerror.h>
17755 static LONG WINAPI
17756 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
17758 switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
17760 case EXCEPTION_ACCESS_VIOLATION:
17761 case EXCEPTION_IN_PAGE_ERROR:
17762 case EXCEPTION_STACK_OVERFLOW:
17763 case EXCEPTION_GUARD_PAGE:
17764 case EXCEPTION_PRIV_INSTRUCTION:
17765 case EXCEPTION_ILLEGAL_INSTRUCTION:
17766 case EXCEPTION_DATATYPE_MISALIGNMENT:
17767 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
17768 case EXCEPTION_NONCONTINUABLE_EXCEPTION:
17769 exit (1);
17771 return EXCEPTION_CONTINUE_SEARCH;
17773 static void
17774 nocrash_init (void)
17776 SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
17778 #else
17779 /* Avoid a crash on POSIX systems. */
17780 #include <signal.h>
17781 /* A POSIX signal handler. */
17782 static void
17783 exception_handler (int sig)
17785 exit (1);
17787 static void
17788 nocrash_init (void)
17790 #ifdef SIGSEGV
17791 signal (SIGSEGV, exception_handler);
17792 #endif
17793 #ifdef SIGBUS
17794 signal (SIGBUS, exception_handler);
17795 #endif
17797 #endif
17801 main ()
17804 int result = 0;
17806 nocrash_init();
17808 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
17809 and fails on MacOS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
17810 OSF/1 5.1, Solaris 10. */
17812 static char conftest[] = "conftest";
17813 static char plus[] = "-+";
17814 char *argv[3] = { conftest, plus, NULL };
17815 opterr = 0;
17816 if (getopt (2, argv, "+a") != '?')
17817 result |= 1;
17819 /* This code succeeds on glibc 2.8, mingw,
17820 and fails on MacOS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
17821 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
17823 static char program[] = "program";
17824 static char p[] = "-p";
17825 static char foo[] = "foo";
17826 static char bar[] = "bar";
17827 char *argv[] = { program, p, foo, bar, NULL };
17829 optind = 1;
17830 if (getopt (4, argv, "p::") != 'p')
17831 result |= 2;
17832 else if (optarg != NULL)
17833 result |= 4;
17834 else if (getopt (4, argv, "p::") != -1)
17835 result |= 6;
17836 else if (optind != 2)
17837 result |= 8;
17839 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
17841 static char program[] = "program";
17842 static char foo[] = "foo";
17843 static char p[] = "-p";
17844 char *argv[] = { program, foo, p, NULL };
17845 optind = 0;
17846 if (getopt (3, argv, "-p") != 1)
17847 result |= 16;
17848 else if (getopt (3, argv, "-p") != 'p')
17849 result |= 32;
17851 /* This code fails on glibc 2.11. */
17853 static char program[] = "program";
17854 static char b[] = "-b";
17855 static char a[] = "-a";
17856 char *argv[] = { program, b, a, NULL };
17857 optind = opterr = 0;
17858 if (getopt (3, argv, "+:a:b") != 'b')
17859 result |= 64;
17860 else if (getopt (3, argv, "+:a:b") != ':')
17861 result |= 64;
17863 /* This code dumps core on glibc 2.14. */
17865 static char program[] = "program";
17866 static char w[] = "-W";
17867 static char dummy[] = "dummy";
17868 char *argv[] = { program, w, dummy, NULL };
17869 optind = opterr = 1;
17870 if (getopt (3, argv, "W;") != 'W')
17871 result |= 128;
17873 return result;
17876 return 0;
17878 _ACEOF
17879 if ac_fn_c_try_run "$LINENO"; then :
17880 gl_cv_func_getopt_gnu=yes
17881 else
17882 gl_cv_func_getopt_gnu=no
17884 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17885 conftest.$ac_objext conftest.beam conftest.$ac_ext
17888 case $gl_had_POSIXLY_CORRECT in
17889 exported) ;;
17890 yes) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;}; POSIXLY_CORRECT=1 ;;
17891 *) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;} ;;
17892 esac
17895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
17896 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
17897 if test "$gl_cv_func_getopt_gnu" = "no"; then
17898 gl_replace_getopt=yes
17906 REPLACE_GETOPT=0
17909 if test -n "$gl_replace_getopt"; then :
17911 REPLACE_GETOPT=1
17916 if test $REPLACE_GETOPT = 1; then
17918 GETOPT_H=getopt.h
17920 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
17924 GNULIB_UNISTD_H_GETOPT=1
17927 ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
17928 if test "x$ac_cv_have_decl_getenv" = x""yes; then :
17929 ac_have_decl=1
17930 else
17931 ac_have_decl=0
17934 cat >>confdefs.h <<_ACEOF
17935 #define HAVE_DECL_GETENV $ac_have_decl
17936 _ACEOF
17939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
17940 $as_echo_n "checking for unsigned long long int... " >&6; }
17941 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
17942 $as_echo_n "(cached) " >&6
17943 else
17944 ac_cv_type_unsigned_long_long_int=yes
17945 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
17946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17947 /* end confdefs.h. */
17949 /* For now, do not test the preprocessor; as of 2007 there are too many
17950 implementations with broken preprocessors. Perhaps this can
17951 be revisited in 2012. In the meantime, code should not expect
17952 #if to work with literals wider than 32 bits. */
17953 /* Test literals. */
17954 long long int ll = 9223372036854775807ll;
17955 long long int nll = -9223372036854775807LL;
17956 unsigned long long int ull = 18446744073709551615ULL;
17957 /* Test constant expressions. */
17958 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
17959 ? 1 : -1)];
17960 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
17961 ? 1 : -1)];
17962 int i = 63;
17964 main ()
17966 /* Test availability of runtime routines for shift and division. */
17967 long long int llmax = 9223372036854775807ll;
17968 unsigned long long int ullmax = 18446744073709551615ull;
17969 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
17970 | (llmax / ll) | (llmax % ll)
17971 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
17972 | (ullmax / ull) | (ullmax % ull));
17974 return 0;
17977 _ACEOF
17978 if ac_fn_c_try_link "$LINENO"; then :
17980 else
17981 ac_cv_type_unsigned_long_long_int=no
17983 rm -f core conftest.err conftest.$ac_objext \
17984 conftest$ac_exeext conftest.$ac_ext
17987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
17988 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
17989 if test $ac_cv_type_unsigned_long_long_int = yes; then
17991 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
17997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
17998 $as_echo_n "checking for long long int... " >&6; }
17999 if test "${ac_cv_type_long_long_int+set}" = set; then :
18000 $as_echo_n "(cached) " >&6
18001 else
18002 ac_cv_type_long_long_int=yes
18003 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
18004 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
18005 if test $ac_cv_type_long_long_int = yes; then
18006 if test "$cross_compiling" = yes; then :
18008 else
18009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18010 /* end confdefs.h. */
18011 #include <limits.h>
18012 #ifndef LLONG_MAX
18013 # define HALF \
18014 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
18015 # define LLONG_MAX (HALF - 1 + HALF)
18016 #endif
18018 main ()
18020 long long int n = 1;
18021 int i;
18022 for (i = 0; ; i++)
18024 long long int m = n << i;
18025 if (m >> i != n)
18026 return 1;
18027 if (LLONG_MAX / 2 < m)
18028 break;
18030 return 0;
18032 return 0;
18034 _ACEOF
18035 if ac_fn_c_try_run "$LINENO"; then :
18037 else
18038 ac_cv_type_long_long_int=no
18040 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18041 conftest.$ac_objext conftest.beam conftest.$ac_ext
18047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
18048 $as_echo "$ac_cv_type_long_long_int" >&6; }
18049 if test $ac_cv_type_long_long_int = yes; then
18051 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
18060 gl_cv_c_multiarch=no
18061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18062 /* end confdefs.h. */
18063 #ifndef __APPLE_CC__
18064 not a universal capable compiler
18065 #endif
18066 typedef int dummy;
18068 _ACEOF
18069 if ac_fn_c_try_compile "$LINENO"; then :
18071 arch=
18072 prev=
18073 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
18074 if test -n "$prev"; then
18075 case $word in
18076 i?86 | x86_64 | ppc | ppc64)
18077 if test -z "$arch" || test "$arch" = "$word"; then
18078 arch="$word"
18079 else
18080 gl_cv_c_multiarch=yes
18083 esac
18084 prev=
18085 else
18086 if test "x$word" = "x-arch"; then
18087 prev=arch
18090 done
18093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18094 if test $gl_cv_c_multiarch = yes; then
18095 APPLE_UNIVERSAL_BUILD=1
18096 else
18097 APPLE_UNIVERSAL_BUILD=0
18104 if test $ac_cv_type_long_long_int = yes; then
18105 HAVE_LONG_LONG_INT=1
18106 else
18107 HAVE_LONG_LONG_INT=0
18111 if test $ac_cv_type_unsigned_long_long_int = yes; then
18112 HAVE_UNSIGNED_LONG_LONG_INT=1
18113 else
18114 HAVE_UNSIGNED_LONG_LONG_INT=0
18119 if test $ac_cv_header_wchar_h = yes; then
18120 HAVE_WCHAR_H=1
18121 else
18122 HAVE_WCHAR_H=0
18126 if test $ac_cv_header_inttypes_h = yes; then
18127 HAVE_INTTYPES_H=1
18128 else
18129 HAVE_INTTYPES_H=0
18133 if test $ac_cv_header_sys_types_h = yes; then
18134 HAVE_SYS_TYPES_H=1
18135 else
18136 HAVE_SYS_TYPES_H=0
18149 if test $gl_cv_have_include_next = yes; then
18150 gl_cv_next_stdint_h='<'stdint.h'>'
18151 else
18152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
18153 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
18154 if test "${gl_cv_next_stdint_h+set}" = set; then :
18155 $as_echo_n "(cached) " >&6
18156 else
18158 if test $ac_cv_header_stdint_h = yes; then
18161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18162 /* end confdefs.h. */
18163 #include <stdint.h>
18165 _ACEOF
18166 case "$host_os" in
18167 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18168 *) gl_absname_cpp="$ac_cpp" ;;
18169 esac
18171 case "$host_os" in
18172 mingw*)
18173 gl_dirsep_regex='[/\\]'
18176 gl_dirsep_regex='/'
18178 esac
18180 gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'stdint.h|{
18181 s|.*"\(.*'"${gl_dirsep_regex}"'stdint.h\)".*|\1|
18182 s|^/[^/]|//&|
18186 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18187 sed -n "$gl_absolute_header_sed"`'"'
18188 else
18189 gl_cv_next_stdint_h='<'stdint.h'>'
18194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
18195 $as_echo "$gl_cv_next_stdint_h" >&6; }
18197 NEXT_STDINT_H=$gl_cv_next_stdint_h
18199 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18200 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18201 gl_next_as_first_directive='<'stdint.h'>'
18202 else
18203 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18204 gl_next_as_first_directive=$gl_cv_next_stdint_h
18206 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
18211 if test $ac_cv_header_stdint_h = yes; then
18212 HAVE_STDINT_H=1
18213 else
18214 HAVE_STDINT_H=0
18218 if test $ac_cv_header_stdint_h = yes; then
18219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
18220 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
18221 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
18222 $as_echo_n "(cached) " >&6
18223 else
18224 gl_cv_header_working_stdint_h=no
18225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18226 /* end confdefs.h. */
18229 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
18230 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
18231 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
18232 #include <stdint.h>
18233 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
18234 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
18235 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
18236 #endif
18239 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18240 included before <wchar.h>. */
18241 #include <stddef.h>
18242 #include <signal.h>
18243 #if HAVE_WCHAR_H
18244 # include <stdio.h>
18245 # include <time.h>
18246 # include <wchar.h>
18247 #endif
18250 #ifdef INT8_MAX
18251 int8_t a1 = INT8_MAX;
18252 int8_t a1min = INT8_MIN;
18253 #endif
18254 #ifdef INT16_MAX
18255 int16_t a2 = INT16_MAX;
18256 int16_t a2min = INT16_MIN;
18257 #endif
18258 #ifdef INT32_MAX
18259 int32_t a3 = INT32_MAX;
18260 int32_t a3min = INT32_MIN;
18261 #endif
18262 #ifdef INT64_MAX
18263 int64_t a4 = INT64_MAX;
18264 int64_t a4min = INT64_MIN;
18265 #endif
18266 #ifdef UINT8_MAX
18267 uint8_t b1 = UINT8_MAX;
18268 #else
18269 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
18270 #endif
18271 #ifdef UINT16_MAX
18272 uint16_t b2 = UINT16_MAX;
18273 #endif
18274 #ifdef UINT32_MAX
18275 uint32_t b3 = UINT32_MAX;
18276 #endif
18277 #ifdef UINT64_MAX
18278 uint64_t b4 = UINT64_MAX;
18279 #endif
18280 int_least8_t c1 = INT8_C (0x7f);
18281 int_least8_t c1max = INT_LEAST8_MAX;
18282 int_least8_t c1min = INT_LEAST8_MIN;
18283 int_least16_t c2 = INT16_C (0x7fff);
18284 int_least16_t c2max = INT_LEAST16_MAX;
18285 int_least16_t c2min = INT_LEAST16_MIN;
18286 int_least32_t c3 = INT32_C (0x7fffffff);
18287 int_least32_t c3max = INT_LEAST32_MAX;
18288 int_least32_t c3min = INT_LEAST32_MIN;
18289 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
18290 int_least64_t c4max = INT_LEAST64_MAX;
18291 int_least64_t c4min = INT_LEAST64_MIN;
18292 uint_least8_t d1 = UINT8_C (0xff);
18293 uint_least8_t d1max = UINT_LEAST8_MAX;
18294 uint_least16_t d2 = UINT16_C (0xffff);
18295 uint_least16_t d2max = UINT_LEAST16_MAX;
18296 uint_least32_t d3 = UINT32_C (0xffffffff);
18297 uint_least32_t d3max = UINT_LEAST32_MAX;
18298 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
18299 uint_least64_t d4max = UINT_LEAST64_MAX;
18300 int_fast8_t e1 = INT_FAST8_MAX;
18301 int_fast8_t e1min = INT_FAST8_MIN;
18302 int_fast16_t e2 = INT_FAST16_MAX;
18303 int_fast16_t e2min = INT_FAST16_MIN;
18304 int_fast32_t e3 = INT_FAST32_MAX;
18305 int_fast32_t e3min = INT_FAST32_MIN;
18306 int_fast64_t e4 = INT_FAST64_MAX;
18307 int_fast64_t e4min = INT_FAST64_MIN;
18308 uint_fast8_t f1 = UINT_FAST8_MAX;
18309 uint_fast16_t f2 = UINT_FAST16_MAX;
18310 uint_fast32_t f3 = UINT_FAST32_MAX;
18311 uint_fast64_t f4 = UINT_FAST64_MAX;
18312 #ifdef INTPTR_MAX
18313 intptr_t g = INTPTR_MAX;
18314 intptr_t gmin = INTPTR_MIN;
18315 #endif
18316 #ifdef UINTPTR_MAX
18317 uintptr_t h = UINTPTR_MAX;
18318 #endif
18319 intmax_t i = INTMAX_MAX;
18320 uintmax_t j = UINTMAX_MAX;
18322 #include <limits.h> /* for CHAR_BIT */
18323 #define TYPE_MINIMUM(t) \
18324 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
18325 #define TYPE_MAXIMUM(t) \
18326 ((t) ((t) 0 < (t) -1 \
18327 ? (t) -1 \
18328 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
18329 struct s {
18330 int check_PTRDIFF:
18331 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
18332 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
18333 ? 1 : -1;
18334 /* Detect bug in FreeBSD 6.0 / ia64. */
18335 int check_SIG_ATOMIC:
18336 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
18337 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
18338 ? 1 : -1;
18339 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
18340 int check_WCHAR:
18341 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
18342 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
18343 ? 1 : -1;
18344 /* Detect bug in mingw. */
18345 int check_WINT:
18346 WINT_MIN == TYPE_MINIMUM (wint_t)
18347 && WINT_MAX == TYPE_MAXIMUM (wint_t)
18348 ? 1 : -1;
18350 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
18351 int check_UINT8_C:
18352 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
18353 int check_UINT16_C:
18354 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
18356 /* Detect bugs in OpenBSD 3.9 stdint.h. */
18357 #ifdef UINT8_MAX
18358 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
18359 #endif
18360 #ifdef UINT16_MAX
18361 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
18362 #endif
18363 #ifdef UINT32_MAX
18364 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
18365 #endif
18366 #ifdef UINT64_MAX
18367 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
18368 #endif
18369 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
18370 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
18371 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
18372 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
18373 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
18374 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
18375 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
18376 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
18377 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
18378 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
18379 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
18383 main ()
18387 return 0;
18389 _ACEOF
18390 if ac_fn_c_try_compile "$LINENO"; then :
18391 if test "$cross_compiling" = yes; then :
18392 gl_cv_header_working_stdint_h=yes
18394 else
18395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18396 /* end confdefs.h. */
18399 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
18400 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
18401 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
18402 #include <stdint.h>
18405 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18406 included before <wchar.h>. */
18407 #include <stddef.h>
18408 #include <signal.h>
18409 #if HAVE_WCHAR_H
18410 # include <stdio.h>
18411 # include <time.h>
18412 # include <wchar.h>
18413 #endif
18416 #include <stdio.h>
18417 #include <string.h>
18418 #define MVAL(macro) MVAL1(macro)
18419 #define MVAL1(expression) #expression
18420 static const char *macro_values[] =
18422 #ifdef INT8_MAX
18423 MVAL (INT8_MAX),
18424 #endif
18425 #ifdef INT16_MAX
18426 MVAL (INT16_MAX),
18427 #endif
18428 #ifdef INT32_MAX
18429 MVAL (INT32_MAX),
18430 #endif
18431 #ifdef INT64_MAX
18432 MVAL (INT64_MAX),
18433 #endif
18434 #ifdef UINT8_MAX
18435 MVAL (UINT8_MAX),
18436 #endif
18437 #ifdef UINT16_MAX
18438 MVAL (UINT16_MAX),
18439 #endif
18440 #ifdef UINT32_MAX
18441 MVAL (UINT32_MAX),
18442 #endif
18443 #ifdef UINT64_MAX
18444 MVAL (UINT64_MAX),
18445 #endif
18446 NULL
18450 main ()
18453 const char **mv;
18454 for (mv = macro_values; *mv != NULL; mv++)
18456 const char *value = *mv;
18457 /* Test whether it looks like a cast expression. */
18458 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
18459 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
18460 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
18461 || strncmp (value, "((int)"/*)*/, 6) == 0
18462 || strncmp (value, "((signed short)"/*)*/, 15) == 0
18463 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
18464 return mv - macro_values + 1;
18466 return 0;
18469 return 0;
18471 _ACEOF
18472 if ac_fn_c_try_run "$LINENO"; then :
18473 gl_cv_header_working_stdint_h=yes
18475 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18476 conftest.$ac_objext conftest.beam conftest.$ac_ext
18481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
18485 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
18487 if test "$gl_cv_header_working_stdint_h" = yes; then
18488 STDINT_H=
18489 else
18490 for ac_header in sys/inttypes.h sys/bitypes.h
18491 do :
18492 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18493 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18494 eval as_val=\$$as_ac_Header
18495 if test "x$as_val" = x""yes; then :
18496 cat >>confdefs.h <<_ACEOF
18497 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18498 _ACEOF
18502 done
18504 if test $ac_cv_header_sys_inttypes_h = yes; then
18505 HAVE_SYS_INTTYPES_H=1
18506 else
18507 HAVE_SYS_INTTYPES_H=0
18510 if test $ac_cv_header_sys_bitypes_h = yes; then
18511 HAVE_SYS_BITYPES_H=1
18512 else
18513 HAVE_SYS_BITYPES_H=0
18519 if test $APPLE_UNIVERSAL_BUILD = 0; then
18522 for gltype in ptrdiff_t size_t ; do
18523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
18524 $as_echo_n "checking for bit size of $gltype... " >&6; }
18525 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
18526 $as_echo_n "(cached) " >&6
18527 else
18528 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
18529 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18530 included before <wchar.h>. */
18531 #include <stddef.h>
18532 #include <signal.h>
18533 #if HAVE_WCHAR_H
18534 # include <stdio.h>
18535 # include <time.h>
18536 # include <wchar.h>
18537 #endif
18539 #include <limits.h>"; then :
18541 else
18542 result=unknown
18545 eval gl_cv_bitsizeof_${gltype}=\$result
18548 eval ac_res=\$gl_cv_bitsizeof_${gltype}
18549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18550 $as_echo "$ac_res" >&6; }
18551 eval result=\$gl_cv_bitsizeof_${gltype}
18552 if test $result = unknown; then
18553 result=0
18555 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18556 cat >>confdefs.h <<_ACEOF
18557 #define BITSIZEOF_${GLTYPE} $result
18558 _ACEOF
18560 eval BITSIZEOF_${GLTYPE}=\$result
18561 done
18567 for gltype in sig_atomic_t wchar_t wint_t ; do
18568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
18569 $as_echo_n "checking for bit size of $gltype... " >&6; }
18570 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
18571 $as_echo_n "(cached) " >&6
18572 else
18573 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
18574 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18575 included before <wchar.h>. */
18576 #include <stddef.h>
18577 #include <signal.h>
18578 #if HAVE_WCHAR_H
18579 # include <stdio.h>
18580 # include <time.h>
18581 # include <wchar.h>
18582 #endif
18584 #include <limits.h>"; then :
18586 else
18587 result=unknown
18590 eval gl_cv_bitsizeof_${gltype}=\$result
18593 eval ac_res=\$gl_cv_bitsizeof_${gltype}
18594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18595 $as_echo "$ac_res" >&6; }
18596 eval result=\$gl_cv_bitsizeof_${gltype}
18597 if test $result = unknown; then
18598 result=0
18600 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18601 cat >>confdefs.h <<_ACEOF
18602 #define BITSIZEOF_${GLTYPE} $result
18603 _ACEOF
18605 eval BITSIZEOF_${GLTYPE}=\$result
18606 done
18611 for gltype in sig_atomic_t wchar_t wint_t ; do
18612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
18613 $as_echo_n "checking whether $gltype is signed... " >&6; }
18614 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
18615 $as_echo_n "(cached) " >&6
18616 else
18617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18618 /* end confdefs.h. */
18620 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18621 included before <wchar.h>. */
18622 #include <stddef.h>
18623 #include <signal.h>
18624 #if HAVE_WCHAR_H
18625 # include <stdio.h>
18626 # include <time.h>
18627 # include <wchar.h>
18628 #endif
18630 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
18632 main ()
18636 return 0;
18638 _ACEOF
18639 if ac_fn_c_try_compile "$LINENO"; then :
18640 result=yes
18641 else
18642 result=no
18644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18645 eval gl_cv_type_${gltype}_signed=\$result
18648 eval ac_res=\$gl_cv_type_${gltype}_signed
18649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18650 $as_echo "$ac_res" >&6; }
18651 eval result=\$gl_cv_type_${gltype}_signed
18652 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18653 if test "$result" = yes; then
18654 cat >>confdefs.h <<_ACEOF
18655 #define HAVE_SIGNED_${GLTYPE} 1
18656 _ACEOF
18658 eval HAVE_SIGNED_${GLTYPE}=1
18659 else
18660 eval HAVE_SIGNED_${GLTYPE}=0
18662 done
18665 gl_cv_type_ptrdiff_t_signed=yes
18666 gl_cv_type_size_t_signed=no
18667 if test $APPLE_UNIVERSAL_BUILD = 0; then
18670 for gltype in ptrdiff_t size_t ; do
18671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
18672 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
18673 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
18674 $as_echo_n "(cached) " >&6
18675 else
18676 eval gl_cv_type_${gltype}_suffix=no
18677 eval result=\$gl_cv_type_${gltype}_signed
18678 if test "$result" = yes; then
18679 glsufu=
18680 else
18681 glsufu=u
18683 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
18684 case $glsuf in
18685 '') gltype1='int';;
18686 l) gltype1='long int';;
18687 ll) gltype1='long long int';;
18688 i64) gltype1='__int64';;
18689 u) gltype1='unsigned int';;
18690 ul) gltype1='unsigned long int';;
18691 ull) gltype1='unsigned long long int';;
18692 ui64)gltype1='unsigned __int64';;
18693 esac
18694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18695 /* end confdefs.h. */
18697 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18698 included before <wchar.h>. */
18699 #include <stddef.h>
18700 #include <signal.h>
18701 #if HAVE_WCHAR_H
18702 # include <stdio.h>
18703 # include <time.h>
18704 # include <wchar.h>
18705 #endif
18707 extern $gltype foo;
18708 extern $gltype1 foo;
18710 main ()
18714 return 0;
18716 _ACEOF
18717 if ac_fn_c_try_compile "$LINENO"; then :
18718 eval gl_cv_type_${gltype}_suffix=\$glsuf
18720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18721 eval result=\$gl_cv_type_${gltype}_suffix
18722 test "$result" != no && break
18723 done
18725 eval ac_res=\$gl_cv_type_${gltype}_suffix
18726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18727 $as_echo "$ac_res" >&6; }
18728 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18729 eval result=\$gl_cv_type_${gltype}_suffix
18730 test "$result" = no && result=
18731 eval ${GLTYPE}_SUFFIX=\$result
18732 cat >>confdefs.h <<_ACEOF
18733 #define ${GLTYPE}_SUFFIX $result
18734 _ACEOF
18736 done
18742 for gltype in sig_atomic_t wchar_t wint_t ; do
18743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
18744 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
18745 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
18746 $as_echo_n "(cached) " >&6
18747 else
18748 eval gl_cv_type_${gltype}_suffix=no
18749 eval result=\$gl_cv_type_${gltype}_signed
18750 if test "$result" = yes; then
18751 glsufu=
18752 else
18753 glsufu=u
18755 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
18756 case $glsuf in
18757 '') gltype1='int';;
18758 l) gltype1='long int';;
18759 ll) gltype1='long long int';;
18760 i64) gltype1='__int64';;
18761 u) gltype1='unsigned int';;
18762 ul) gltype1='unsigned long int';;
18763 ull) gltype1='unsigned long long int';;
18764 ui64)gltype1='unsigned __int64';;
18765 esac
18766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18767 /* end confdefs.h. */
18769 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18770 included before <wchar.h>. */
18771 #include <stddef.h>
18772 #include <signal.h>
18773 #if HAVE_WCHAR_H
18774 # include <stdio.h>
18775 # include <time.h>
18776 # include <wchar.h>
18777 #endif
18779 extern $gltype foo;
18780 extern $gltype1 foo;
18782 main ()
18786 return 0;
18788 _ACEOF
18789 if ac_fn_c_try_compile "$LINENO"; then :
18790 eval gl_cv_type_${gltype}_suffix=\$glsuf
18792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18793 eval result=\$gl_cv_type_${gltype}_suffix
18794 test "$result" != no && break
18795 done
18797 eval ac_res=\$gl_cv_type_${gltype}_suffix
18798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18799 $as_echo "$ac_res" >&6; }
18800 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18801 eval result=\$gl_cv_type_${gltype}_suffix
18802 test "$result" = no && result=
18803 eval ${GLTYPE}_SUFFIX=\$result
18804 cat >>confdefs.h <<_ACEOF
18805 #define ${GLTYPE}_SUFFIX $result
18806 _ACEOF
18808 done
18812 if test $BITSIZEOF_WINT_T -lt 32; then
18813 BITSIZEOF_WINT_T=32
18816 STDINT_H=stdint.h
18819 if test -n "$STDINT_H"; then
18820 GL_GENERATE_STDINT_H_TRUE=
18821 GL_GENERATE_STDINT_H_FALSE='#'
18822 else
18823 GL_GENERATE_STDINT_H_TRUE='#'
18824 GL_GENERATE_STDINT_H_FALSE=
18831 GNULIB_IMAXABS=0;
18832 GNULIB_IMAXDIV=0;
18833 GNULIB_STRTOIMAX=0;
18834 GNULIB_STRTOUMAX=0;
18835 HAVE_DECL_IMAXABS=1;
18836 HAVE_DECL_IMAXDIV=1;
18837 HAVE_DECL_STRTOIMAX=1;
18838 HAVE_DECL_STRTOUMAX=1;
18839 INT32_MAX_LT_INTMAX_MAX=1;
18840 INT64_MAX_EQ_LONG_MAX='defined _LP64';
18841 PRI_MACROS_BROKEN=0;
18842 PRIPTR_PREFIX=__PRIPTR_PREFIX;
18843 UINT32_MAX_LT_UINTMAX_MAX=1;
18844 UINT64_MAX_EQ_ULONG_MAX='defined _LP64';
18860 if test $gl_cv_have_include_next = yes; then
18861 gl_cv_next_inttypes_h='<'inttypes.h'>'
18862 else
18863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
18864 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
18865 if test "${gl_cv_next_inttypes_h+set}" = set; then :
18866 $as_echo_n "(cached) " >&6
18867 else
18869 if test $ac_cv_header_inttypes_h = yes; then
18872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18873 /* end confdefs.h. */
18874 #include <inttypes.h>
18876 _ACEOF
18877 case "$host_os" in
18878 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18879 *) gl_absname_cpp="$ac_cpp" ;;
18880 esac
18882 case "$host_os" in
18883 mingw*)
18884 gl_dirsep_regex='[/\\]'
18887 gl_dirsep_regex='/'
18889 esac
18891 gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'inttypes.h|{
18892 s|.*"\(.*'"${gl_dirsep_regex}"'inttypes.h\)".*|\1|
18893 s|^/[^/]|//&|
18897 gl_cv_next_inttypes_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18898 sed -n "$gl_absolute_header_sed"`'"'
18899 else
18900 gl_cv_next_inttypes_h='<'inttypes.h'>'
18905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
18906 $as_echo "$gl_cv_next_inttypes_h" >&6; }
18908 NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
18910 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18911 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18912 gl_next_as_first_directive='<'inttypes.h'>'
18913 else
18914 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18915 gl_next_as_first_directive=$gl_cv_next_inttypes_h
18917 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive
18926 $as_echo "#define GL_TRIGGER_STDC_LIMIT_MACROS 1" >>confdefs.h
18933 GNULIB_FCHMODAT=0;
18934 GNULIB_FSTAT=0;
18935 GNULIB_FSTATAT=0;
18936 GNULIB_FUTIMENS=0;
18937 GNULIB_LCHMOD=0;
18938 GNULIB_LSTAT=0;
18939 GNULIB_MKDIRAT=0;
18940 GNULIB_MKFIFO=0;
18941 GNULIB_MKFIFOAT=0;
18942 GNULIB_MKNOD=0;
18943 GNULIB_MKNODAT=0;
18944 GNULIB_STAT=0;
18945 GNULIB_UTIMENSAT=0;
18946 HAVE_FCHMODAT=1;
18947 HAVE_FSTATAT=1;
18948 HAVE_FUTIMENS=1;
18949 HAVE_LCHMOD=1;
18950 HAVE_LSTAT=1;
18951 HAVE_MKDIRAT=1;
18952 HAVE_MKFIFO=1;
18953 HAVE_MKFIFOAT=1;
18954 HAVE_MKNOD=1;
18955 HAVE_MKNODAT=1;
18956 HAVE_UTIMENSAT=1;
18957 REPLACE_FSTAT=0;
18958 REPLACE_FSTATAT=0;
18959 REPLACE_FUTIMENS=0;
18960 REPLACE_LSTAT=0;
18961 REPLACE_MKDIR=0;
18962 REPLACE_MKFIFO=0;
18963 REPLACE_MKNOD=0;
18964 REPLACE_STAT=0;
18965 REPLACE_UTIMENSAT=0;
18970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
18971 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
18972 if test "${gl_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
18973 $as_echo_n "(cached) " >&6
18974 else
18975 rm -f conftest.sym conftest.file
18976 echo >conftest.file
18977 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
18978 if test "$cross_compiling" = yes; then :
18979 # When cross-compiling, be pessimistic so we will end up using the
18980 # replacement version of lstat that checks for trailing slashes and
18981 # calls lstat a second time when necessary.
18982 gl_cv_func_lstat_dereferences_slashed_symlink=no
18984 else
18985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18986 /* end confdefs.h. */
18987 $ac_includes_default
18989 main ()
18991 struct stat sbuf;
18992 /* Linux will dereference the symlink and fail, as required by
18993 POSIX. That is better in the sense that it means we will not
18994 have to compile and use the lstat wrapper. */
18995 return lstat ("conftest.sym/", &sbuf) == 0;
18998 return 0;
19000 _ACEOF
19001 if ac_fn_c_try_run "$LINENO"; then :
19002 gl_cv_func_lstat_dereferences_slashed_symlink=yes
19003 else
19004 gl_cv_func_lstat_dereferences_slashed_symlink=no
19006 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19007 conftest.$ac_objext conftest.beam conftest.$ac_ext
19010 else
19011 # If the 'ln -s' command failed, then we probably don't even
19012 # have an lstat function.
19013 gl_cv_func_lstat_dereferences_slashed_symlink=no
19015 rm -f conftest.sym conftest.file
19018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
19019 $as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
19020 test $gl_cv_func_lstat_dereferences_slashed_symlink = yes &&
19022 cat >>confdefs.h <<_ACEOF
19023 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
19024 _ACEOF
19028 GNULIB_MKTIME=0;
19029 GNULIB_NANOSLEEP=0;
19030 GNULIB_STRPTIME=0;
19031 GNULIB_TIMEGM=0;
19032 GNULIB_TIME_R=0;
19033 HAVE_DECL_LOCALTIME_R=1;
19034 HAVE_NANOSLEEP=1;
19035 HAVE_STRPTIME=1;
19036 HAVE_TIMEGM=1;
19037 REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
19038 REPLACE_MKTIME=GNULIB_PORTCHECK;
19039 REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
19040 REPLACE_TIMEGM=GNULIB_PORTCHECK;
19047 GNULIB_PTHREAD_SIGMASK=0;
19048 GNULIB_RAISE=0;
19049 GNULIB_SIGNAL_H_SIGPIPE=0;
19050 GNULIB_SIGPROCMASK=0;
19051 GNULIB_SIGACTION=0;
19052 HAVE_POSIX_SIGNALBLOCKING=1;
19053 HAVE_PTHREAD_SIGMASK=1;
19054 HAVE_RAISE=1;
19055 HAVE_SIGSET_T=1;
19056 HAVE_SIGINFO_T=1;
19057 HAVE_SIGACTION=1;
19058 HAVE_STRUCT_SIGACTION_SA_SIGACTION=1;
19060 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=1;
19062 HAVE_SIGHANDLER_T=1;
19063 REPLACE_PTHREAD_SIGMASK=0;
19064 REPLACE_RAISE=0;
19069 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
19070 #include <signal.h>
19071 /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */
19072 #include <sys/types.h>
19075 if test "x$ac_cv_type_sigset_t" = x""yes; then :
19077 cat >>confdefs.h <<_ACEOF
19078 #define HAVE_SIGSET_T 1
19079 _ACEOF
19081 gl_cv_type_sigset_t=yes
19082 else
19083 gl_cv_type_sigset_t=no
19086 if test $gl_cv_type_sigset_t != yes; then
19087 HAVE_SIGSET_T=0
19094 if test $ac_cv_header_sys_socket_h = no; then
19095 for ac_header in ws2tcpip.h
19096 do :
19097 ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
19098 if test "x$ac_cv_header_ws2tcpip_h" = x""yes; then :
19099 cat >>confdefs.h <<_ACEOF
19100 #define HAVE_WS2TCPIP_H 1
19101 _ACEOF
19105 done
19109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
19110 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
19111 if test "${ac_cv_header_stdbool_h+set}" = set; then :
19112 $as_echo_n "(cached) " >&6
19113 else
19114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19115 /* end confdefs.h. */
19117 #include <stdbool.h>
19118 #ifndef bool
19119 "error: bool is not defined"
19120 #endif
19121 #ifndef false
19122 "error: false is not defined"
19123 #endif
19124 #if false
19125 "error: false is not 0"
19126 #endif
19127 #ifndef true
19128 "error: true is not defined"
19129 #endif
19130 #if true != 1
19131 "error: true is not 1"
19132 #endif
19133 #ifndef __bool_true_false_are_defined
19134 "error: __bool_true_false_are_defined is not defined"
19135 #endif
19137 struct s { _Bool s: 1; _Bool t; } s;
19139 char a[true == 1 ? 1 : -1];
19140 char b[false == 0 ? 1 : -1];
19141 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
19142 char d[(bool) 0.5 == true ? 1 : -1];
19143 /* See body of main program for 'e'. */
19144 char f[(_Bool) 0.0 == false ? 1 : -1];
19145 char g[true];
19146 char h[sizeof (_Bool)];
19147 char i[sizeof s.t];
19148 enum { j = false, k = true, l = false * true, m = true * 256 };
19149 /* The following fails for
19150 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
19151 _Bool n[m];
19152 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
19153 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
19154 /* Catch a bug in an HP-UX C compiler. See
19155 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
19156 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
19158 _Bool q = true;
19159 _Bool *pq = &q;
19162 main ()
19165 bool e = &s;
19166 *pq |= q;
19167 *pq |= ! q;
19168 /* Refer to every declared value, to avoid compiler optimizations. */
19169 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
19170 + !m + !n + !o + !p + !q + !pq);
19173 return 0;
19175 _ACEOF
19176 if ac_fn_c_try_compile "$LINENO"; then :
19177 ac_cv_header_stdbool_h=yes
19178 else
19179 ac_cv_header_stdbool_h=no
19181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
19184 $as_echo "$ac_cv_header_stdbool_h" >&6; }
19185 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
19186 if test "x$ac_cv_type__Bool" = x""yes; then :
19188 cat >>confdefs.h <<_ACEOF
19189 #define HAVE__BOOL 1
19190 _ACEOF
19197 REPLACE_NULL=0;
19198 HAVE_WCHAR_T=1;
19201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
19202 $as_echo_n "checking for wchar_t... " >&6; }
19203 if test "${gt_cv_c_wchar_t+set}" = set; then :
19204 $as_echo_n "(cached) " >&6
19205 else
19206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19207 /* end confdefs.h. */
19208 #include <stddef.h>
19209 wchar_t foo = (wchar_t)'\0';
19211 main ()
19215 return 0;
19217 _ACEOF
19218 if ac_fn_c_try_compile "$LINENO"; then :
19219 gt_cv_c_wchar_t=yes
19220 else
19221 gt_cv_c_wchar_t=no
19223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
19226 $as_echo "$gt_cv_c_wchar_t" >&6; }
19227 if test $gt_cv_c_wchar_t = yes; then
19229 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
19234 GNULIB_DPRINTF=0;
19235 GNULIB_FCLOSE=0;
19236 GNULIB_FDOPEN=0;
19237 GNULIB_FFLUSH=0;
19238 GNULIB_FGETC=0;
19239 GNULIB_FGETS=0;
19240 GNULIB_FOPEN=0;
19241 GNULIB_FPRINTF=0;
19242 GNULIB_FPRINTF_POSIX=0;
19243 GNULIB_FPURGE=0;
19244 GNULIB_FPUTC=0;
19245 GNULIB_FPUTS=0;
19246 GNULIB_FREAD=0;
19247 GNULIB_FREOPEN=0;
19248 GNULIB_FSCANF=0;
19249 GNULIB_FSEEK=0;
19250 GNULIB_FSEEKO=0;
19251 GNULIB_FTELL=0;
19252 GNULIB_FTELLO=0;
19253 GNULIB_FWRITE=0;
19254 GNULIB_GETC=0;
19255 GNULIB_GETCHAR=0;
19256 GNULIB_GETDELIM=0;
19257 GNULIB_GETLINE=0;
19258 GNULIB_GETS=0;
19259 GNULIB_OBSTACK_PRINTF=0;
19260 GNULIB_OBSTACK_PRINTF_POSIX=0;
19261 GNULIB_PCLOSE=0;
19262 GNULIB_PERROR=0;
19263 GNULIB_POPEN=0;
19264 GNULIB_PRINTF=0;
19265 GNULIB_PRINTF_POSIX=0;
19266 GNULIB_PUTC=0;
19267 GNULIB_PUTCHAR=0;
19268 GNULIB_PUTS=0;
19269 GNULIB_REMOVE=0;
19270 GNULIB_RENAME=0;
19271 GNULIB_RENAMEAT=0;
19272 GNULIB_SCANF=0;
19273 GNULIB_SNPRINTF=0;
19274 GNULIB_SPRINTF_POSIX=0;
19275 GNULIB_STDIO_H_NONBLOCKING=0;
19276 GNULIB_STDIO_H_SIGPIPE=0;
19277 GNULIB_TMPFILE=0;
19278 GNULIB_VASPRINTF=0;
19279 GNULIB_VFSCANF=0;
19280 GNULIB_VSCANF=0;
19281 GNULIB_VDPRINTF=0;
19282 GNULIB_VFPRINTF=0;
19283 GNULIB_VFPRINTF_POSIX=0;
19284 GNULIB_VPRINTF=0;
19285 GNULIB_VPRINTF_POSIX=0;
19286 GNULIB_VSNPRINTF=0;
19287 GNULIB_VSPRINTF_POSIX=0;
19288 HAVE_DECL_FPURGE=1;
19289 HAVE_DECL_FSEEKO=1;
19290 HAVE_DECL_FTELLO=1;
19291 HAVE_DECL_GETDELIM=1;
19292 HAVE_DECL_GETLINE=1;
19293 HAVE_DECL_OBSTACK_PRINTF=1;
19294 HAVE_DECL_SNPRINTF=1;
19295 HAVE_DECL_VSNPRINTF=1;
19296 HAVE_DPRINTF=1;
19297 HAVE_FSEEKO=1;
19298 HAVE_FTELLO=1;
19299 HAVE_PCLOSE=1;
19300 HAVE_POPEN=1;
19301 HAVE_RENAMEAT=1;
19302 HAVE_VASPRINTF=1;
19303 HAVE_VDPRINTF=1;
19304 REPLACE_DPRINTF=0;
19305 REPLACE_FCLOSE=0;
19306 REPLACE_FDOPEN=0;
19307 REPLACE_FFLUSH=0;
19308 REPLACE_FOPEN=0;
19309 REPLACE_FPRINTF=0;
19310 REPLACE_FPURGE=0;
19311 REPLACE_FREOPEN=0;
19312 REPLACE_FSEEK=0;
19313 REPLACE_FSEEKO=0;
19314 REPLACE_FTELL=0;
19315 REPLACE_FTELLO=0;
19316 REPLACE_GETDELIM=0;
19317 REPLACE_GETLINE=0;
19318 REPLACE_OBSTACK_PRINTF=0;
19319 REPLACE_PERROR=0;
19320 REPLACE_POPEN=0;
19321 REPLACE_PRINTF=0;
19322 REPLACE_REMOVE=0;
19323 REPLACE_RENAME=0;
19324 REPLACE_RENAMEAT=0;
19325 REPLACE_SNPRINTF=0;
19326 REPLACE_SPRINTF=0;
19327 REPLACE_STDIO_READ_FUNCS=0;
19328 REPLACE_STDIO_WRITE_FUNCS=0;
19329 REPLACE_TMPFILE=0;
19330 REPLACE_VASPRINTF=0;
19331 REPLACE_VDPRINTF=0;
19332 REPLACE_VFPRINTF=0;
19333 REPLACE_VPRINTF=0;
19334 REPLACE_VSNPRINTF=0;
19335 REPLACE_VSPRINTF=0;
19337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
19338 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
19339 if test "${ac_cv_struct_tm+set}" = set; then :
19340 $as_echo_n "(cached) " >&6
19341 else
19342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19343 /* end confdefs.h. */
19344 #include <sys/types.h>
19345 #include <time.h>
19348 main ()
19350 struct tm tm;
19351 int *p = &tm.tm_sec;
19352 return !p;
19354 return 0;
19356 _ACEOF
19357 if ac_fn_c_try_compile "$LINENO"; then :
19358 ac_cv_struct_tm=time.h
19359 else
19360 ac_cv_struct_tm=sys/time.h
19362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
19365 $as_echo "$ac_cv_struct_tm" >&6; }
19366 if test $ac_cv_struct_tm = sys/time.h; then
19368 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
19372 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
19373 #include <$ac_cv_struct_tm>
19376 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
19378 cat >>confdefs.h <<_ACEOF
19379 #define HAVE_STRUCT_TM_TM_ZONE 1
19380 _ACEOF
19385 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
19387 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
19389 else
19390 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
19392 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
19393 ac_have_decl=1
19394 else
19395 ac_have_decl=0
19398 cat >>confdefs.h <<_ACEOF
19399 #define HAVE_DECL_TZNAME $ac_have_decl
19400 _ACEOF
19402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
19403 $as_echo_n "checking for tzname... " >&6; }
19404 if test "${ac_cv_var_tzname+set}" = set; then :
19405 $as_echo_n "(cached) " >&6
19406 else
19407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19408 /* end confdefs.h. */
19409 #include <time.h>
19410 #if !HAVE_DECL_TZNAME
19411 extern char *tzname[];
19412 #endif
19415 main ()
19417 return tzname[0][0];
19419 return 0;
19421 _ACEOF
19422 if ac_fn_c_try_link "$LINENO"; then :
19423 ac_cv_var_tzname=yes
19424 else
19425 ac_cv_var_tzname=no
19427 rm -f core conftest.err conftest.$ac_objext \
19428 conftest$ac_exeext conftest.$ac_ext
19430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
19431 $as_echo "$ac_cv_var_tzname" >&6; }
19432 if test $ac_cv_var_tzname = yes; then
19434 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
19440 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
19442 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then :
19444 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
19453 ac_fn_c_check_decl "$LINENO" "strtoimax" "ac_cv_have_decl_strtoimax" "$ac_includes_default"
19454 if test "x$ac_cv_have_decl_strtoimax" = x""yes; then :
19455 ac_have_decl=1
19456 else
19457 ac_have_decl=0
19460 cat >>confdefs.h <<_ACEOF
19461 #define HAVE_DECL_STRTOIMAX $ac_have_decl
19462 _ACEOF
19466 ac_fn_c_check_decl "$LINENO" "strtoumax" "ac_cv_have_decl_strtoumax" "$ac_includes_default"
19467 if test "x$ac_cv_have_decl_strtoumax" = x""yes; then :
19468 ac_have_decl=1
19469 else
19470 ac_have_decl=0
19473 cat >>confdefs.h <<_ACEOF
19474 #define HAVE_DECL_STRTOUMAX $ac_have_decl
19475 _ACEOF
19479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
19480 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
19481 if test "${ac_cv_header_stat_broken+set}" = set; then :
19482 $as_echo_n "(cached) " >&6
19483 else
19484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19485 /* end confdefs.h. */
19486 #include <sys/types.h>
19487 #include <sys/stat.h>
19489 #if defined S_ISBLK && defined S_IFDIR
19490 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
19491 #endif
19493 #if defined S_ISBLK && defined S_IFCHR
19494 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
19495 #endif
19497 #if defined S_ISLNK && defined S_IFREG
19498 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
19499 #endif
19501 #if defined S_ISSOCK && defined S_IFREG
19502 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
19503 #endif
19505 _ACEOF
19506 if ac_fn_c_try_compile "$LINENO"; then :
19507 ac_cv_header_stat_broken=no
19508 else
19509 ac_cv_header_stat_broken=yes
19511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
19514 $as_echo "$ac_cv_header_stat_broken" >&6; }
19515 if test $ac_cv_header_stat_broken = yes; then
19517 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
19523 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
19524 if test "x$ac_cv_type_mode_t" = x""yes; then :
19526 else
19528 cat >>confdefs.h <<_ACEOF
19529 #define mode_t int
19530 _ACEOF
19534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
19535 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
19536 if test "${ac_cv_c_restrict+set}" = set; then :
19537 $as_echo_n "(cached) " >&6
19538 else
19539 ac_cv_c_restrict=no
19540 # The order here caters to the fact that C++ does not require restrict.
19541 for ac_kw in __restrict __restrict__ _Restrict restrict; do
19542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19543 /* end confdefs.h. */
19544 typedef int * int_ptr;
19545 int foo (int_ptr $ac_kw ip) {
19546 return ip[0];
19549 main ()
19551 int s[1];
19552 int * $ac_kw t = s;
19553 t[0] = 0;
19554 return foo(t)
19556 return 0;
19558 _ACEOF
19559 if ac_fn_c_try_compile "$LINENO"; then :
19560 ac_cv_c_restrict=$ac_kw
19562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19563 test "$ac_cv_c_restrict" != no && break
19564 done
19567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
19568 $as_echo "$ac_cv_c_restrict" >&6; }
19570 case $ac_cv_c_restrict in
19571 restrict) ;;
19572 no) $as_echo "#define restrict /**/" >>confdefs.h
19574 *) cat >>confdefs.h <<_ACEOF
19575 #define restrict $ac_cv_c_restrict
19576 _ACEOF
19578 esac
19584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
19585 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
19586 if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then :
19587 $as_echo_n "(cached) " >&6
19588 else
19589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19590 /* end confdefs.h. */
19591 #include <time.h>
19594 main ()
19596 static struct timespec x; x.tv_sec = x.tv_nsec;
19598 return 0;
19600 _ACEOF
19601 if ac_fn_c_try_compile "$LINENO"; then :
19602 gl_cv_sys_struct_timespec_in_time_h=yes
19603 else
19604 gl_cv_sys_struct_timespec_in_time_h=no
19606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
19609 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
19611 TIME_H_DEFINES_STRUCT_TIMESPEC=0
19612 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
19613 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
19614 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
19615 TIME_H_DEFINES_STRUCT_TIMESPEC=1
19616 else
19617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
19618 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
19619 if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then :
19620 $as_echo_n "(cached) " >&6
19621 else
19622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19623 /* end confdefs.h. */
19624 #include <sys/time.h>
19627 main ()
19629 static struct timespec x; x.tv_sec = x.tv_nsec;
19631 return 0;
19633 _ACEOF
19634 if ac_fn_c_try_compile "$LINENO"; then :
19635 gl_cv_sys_struct_timespec_in_sys_time_h=yes
19636 else
19637 gl_cv_sys_struct_timespec_in_sys_time_h=no
19639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
19642 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
19643 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
19644 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
19645 else
19646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
19647 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
19648 if test "${gl_cv_sys_struct_timespec_in_pthread_h+set}" = set; then :
19649 $as_echo_n "(cached) " >&6
19650 else
19651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19652 /* end confdefs.h. */
19653 #include <pthread.h>
19656 main ()
19658 static struct timespec x; x.tv_sec = x.tv_nsec;
19660 return 0;
19662 _ACEOF
19663 if ac_fn_c_try_compile "$LINENO"; then :
19664 gl_cv_sys_struct_timespec_in_pthread_h=yes
19665 else
19666 gl_cv_sys_struct_timespec_in_pthread_h=no
19668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
19671 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
19672 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
19673 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
19692 if test $gl_cv_have_include_next = yes; then
19693 gl_cv_next_time_h='<'time.h'>'
19694 else
19695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
19696 $as_echo_n "checking absolute name of <time.h>... " >&6; }
19697 if test "${gl_cv_next_time_h+set}" = set; then :
19698 $as_echo_n "(cached) " >&6
19699 else
19701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19702 /* end confdefs.h. */
19703 #include <time.h>
19705 _ACEOF
19706 case "$host_os" in
19707 aix*) gl_absname_cpp="$ac_cpp -C" ;;
19708 *) gl_absname_cpp="$ac_cpp" ;;
19709 esac
19711 case "$host_os" in
19712 mingw*)
19713 gl_dirsep_regex='[/\\]'
19716 gl_dirsep_regex='/'
19718 esac
19720 gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'time.h|{
19721 s|.*"\(.*'"${gl_dirsep_regex}"'time.h\)".*|\1|
19722 s|^/[^/]|//&|
19726 gl_cv_next_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19727 sed -n "$gl_absolute_header_sed"`'"'
19731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
19732 $as_echo "$gl_cv_next_time_h" >&6; }
19734 NEXT_TIME_H=$gl_cv_next_time_h
19736 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
19737 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19738 gl_next_as_first_directive='<'time.h'>'
19739 else
19740 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19741 gl_next_as_first_directive=$gl_cv_next_time_h
19743 NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
19750 ac_fn_c_check_decl "$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "$ac_includes_default"
19751 if test "x$ac_cv_have_decl_localtime_r" = x""yes; then :
19752 ac_have_decl=1
19753 else
19754 ac_have_decl=0
19757 cat >>confdefs.h <<_ACEOF
19758 #define HAVE_DECL_LOCALTIME_R $ac_have_decl
19759 _ACEOF
19764 if false; then
19765 GL_COND_LIBTOOL_TRUE=
19766 GL_COND_LIBTOOL_FALSE='#'
19767 else
19768 GL_COND_LIBTOOL_TRUE='#'
19769 GL_COND_LIBTOOL_FALSE=
19772 gl_cond_libtool=false
19773 gl_libdeps=
19774 gl_ltlibdeps=
19775 gl_m4_base='m4'
19785 gl_source_base='lib'
19788 if test $ac_cv_func_alloca_works = no; then
19792 # Define an additional variable used in the Makefile substitution.
19793 if test $ac_cv_working_alloca_h = yes; then
19794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
19795 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
19796 if test "${gl_cv_rpl_alloca+set}" = set; then :
19797 $as_echo_n "(cached) " >&6
19798 else
19800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19801 /* end confdefs.h. */
19803 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
19804 Need own alloca
19805 #endif
19807 _ACEOF
19808 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19809 $EGREP "Need own alloca" >/dev/null 2>&1; then :
19810 gl_cv_rpl_alloca=yes
19811 else
19812 gl_cv_rpl_alloca=no
19814 rm -f conftest*
19818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
19819 $as_echo "$gl_cv_rpl_alloca" >&6; }
19820 if test $gl_cv_rpl_alloca = yes; then
19822 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
19824 ALLOCA_H=alloca.h
19825 else
19826 ALLOCA_H=
19828 else
19829 ALLOCA_H=alloca.h
19832 if test -n "$ALLOCA_H"; then
19833 GL_GENERATE_ALLOCA_H_TRUE=
19834 GL_GENERATE_ALLOCA_H_FALSE='#'
19835 else
19836 GL_GENERATE_ALLOCA_H_TRUE='#'
19837 GL_GENERATE_ALLOCA_H_FALSE=
19866 $as_echo "#define HAVE_DUP2 1" >>confdefs.h
19869 if test $HAVE_DUP2 = 1; then
19870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5
19871 $as_echo_n "checking whether dup2 works... " >&6; }
19872 if test "${gl_cv_func_dup2_works+set}" = set; then :
19873 $as_echo_n "(cached) " >&6
19874 else
19875 if test "$cross_compiling" = yes; then :
19876 case "$host_os" in
19877 mingw*) # on this platform, dup2 always returns 0 for success
19878 gl_cv_func_dup2_works=no;;
19879 cygwin*) # on cygwin 1.5.x, dup2(1,1) returns 0
19880 gl_cv_func_dup2_works=no;;
19881 linux*) # On linux between 2008-07-27 and 2009-05-11, dup2 of a
19882 # closed fd may yield -EBADF instead of -1 / errno=EBADF.
19883 gl_cv_func_dup2_works=no;;
19884 freebsd*) # on FreeBSD 6.1, dup2(1,1000000) gives EMFILE, not EBADF.
19885 gl_cv_func_dup2_works=no;;
19886 haiku*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC.
19887 gl_cv_func_dup2_works=no;;
19888 *) gl_cv_func_dup2_works=yes;;
19889 esac
19890 else
19891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19892 /* end confdefs.h. */
19894 #include <unistd.h>
19895 #include <fcntl.h>
19896 #include <errno.h>
19898 main ()
19900 int result = 0;
19901 #ifdef FD_CLOEXEC
19902 if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1)
19903 result |= 1;
19904 #endif
19905 if (dup2 (1, 1) == 0)
19906 result |= 2;
19907 #ifdef FD_CLOEXEC
19908 if (fcntl (1, F_GETFD) != FD_CLOEXEC)
19909 result |= 4;
19910 #endif
19911 close (0);
19912 if (dup2 (0, 0) != -1)
19913 result |= 8;
19914 /* Many gnulib modules require POSIX conformance of EBADF. */
19915 if (dup2 (2, 1000000) == -1 && errno != EBADF)
19916 result |= 16;
19917 return result;
19920 return 0;
19923 _ACEOF
19924 if ac_fn_c_try_run "$LINENO"; then :
19925 gl_cv_func_dup2_works=yes
19926 else
19927 gl_cv_func_dup2_works=no
19929 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19930 conftest.$ac_objext conftest.beam conftest.$ac_ext
19935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5
19936 $as_echo "$gl_cv_func_dup2_works" >&6; }
19937 if test "$gl_cv_func_dup2_works" = no; then
19938 REPLACE_DUP2=1
19943 if test $HAVE_DUP2 = 0 || test $REPLACE_DUP2 = 1; then
19952 gl_LIBOBJS="$gl_LIBOBJS dup2.$ac_objext"
19961 GNULIB_DUP2=1
19973 # Persuade glibc <stdlib.h> to declare getloadavg().
19976 gl_save_LIBS=$LIBS
19978 # getloadvg is present in libc on glibc >= 2.2, MacOS X, FreeBSD >= 2.0,
19979 # NetBSD >= 0.9, OpenBSD >= 2.0, Solaris >= 7.
19980 HAVE_GETLOADAVG=1
19981 ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
19982 if test "x$ac_cv_func_getloadavg" = x""yes; then :
19984 else
19985 gl_func_getloadavg_done=no
19987 # Some systems with -lutil have (and need) -lkvm as well, some do not.
19988 # On Solaris, -lkvm requires nlist from -lelf, so check that first
19989 # to get the right answer into the cache.
19990 # For kstat on solaris, we need to test for libelf and libkvm to force the
19991 # definition of SVR4 below.
19992 if test $gl_func_getloadavg_done = no; then
19993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
19994 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
19995 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then :
19996 $as_echo_n "(cached) " >&6
19997 else
19998 ac_check_lib_save_LIBS=$LIBS
19999 LIBS="-lelf $LIBS"
20000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20001 /* end confdefs.h. */
20003 /* Override any GCC internal prototype to avoid an error.
20004 Use char because int might match the return type of a GCC
20005 builtin and then its argument prototype would still apply. */
20006 #ifdef __cplusplus
20007 extern "C"
20008 #endif
20009 char elf_begin ();
20011 main ()
20013 return elf_begin ();
20015 return 0;
20017 _ACEOF
20018 if ac_fn_c_try_link "$LINENO"; then :
20019 ac_cv_lib_elf_elf_begin=yes
20020 else
20021 ac_cv_lib_elf_elf_begin=no
20023 rm -f core conftest.err conftest.$ac_objext \
20024 conftest$ac_exeext conftest.$ac_ext
20025 LIBS=$ac_check_lib_save_LIBS
20027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
20028 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
20029 if test "x$ac_cv_lib_elf_elf_begin" = x""yes; then :
20030 LIBS="-lelf $LIBS"
20033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
20034 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
20035 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
20036 $as_echo_n "(cached) " >&6
20037 else
20038 ac_check_lib_save_LIBS=$LIBS
20039 LIBS="-lkvm $LIBS"
20040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20041 /* end confdefs.h. */
20043 /* Override any GCC internal prototype to avoid an error.
20044 Use char because int might match the return type of a GCC
20045 builtin and then its argument prototype would still apply. */
20046 #ifdef __cplusplus
20047 extern "C"
20048 #endif
20049 char kvm_open ();
20051 main ()
20053 return kvm_open ();
20055 return 0;
20057 _ACEOF
20058 if ac_fn_c_try_link "$LINENO"; then :
20059 ac_cv_lib_kvm_kvm_open=yes
20060 else
20061 ac_cv_lib_kvm_kvm_open=no
20063 rm -f core conftest.err conftest.$ac_objext \
20064 conftest$ac_exeext conftest.$ac_ext
20065 LIBS=$ac_check_lib_save_LIBS
20067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
20068 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
20069 if test "x$ac_cv_lib_kvm_kvm_open" = x""yes; then :
20070 LIBS="-lkvm $LIBS"
20073 # Check for the 4.4BSD definition of getloadavg.
20074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
20075 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
20076 if test "${ac_cv_lib_util_getloadavg+set}" = set; then :
20077 $as_echo_n "(cached) " >&6
20078 else
20079 ac_check_lib_save_LIBS=$LIBS
20080 LIBS="-lutil $LIBS"
20081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20082 /* end confdefs.h. */
20084 /* Override any GCC internal prototype to avoid an error.
20085 Use char because int might match the return type of a GCC
20086 builtin and then its argument prototype would still apply. */
20087 #ifdef __cplusplus
20088 extern "C"
20089 #endif
20090 char getloadavg ();
20092 main ()
20094 return getloadavg ();
20096 return 0;
20098 _ACEOF
20099 if ac_fn_c_try_link "$LINENO"; then :
20100 ac_cv_lib_util_getloadavg=yes
20101 else
20102 ac_cv_lib_util_getloadavg=no
20104 rm -f core conftest.err conftest.$ac_objext \
20105 conftest$ac_exeext conftest.$ac_ext
20106 LIBS=$ac_check_lib_save_LIBS
20108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
20109 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
20110 if test "x$ac_cv_lib_util_getloadavg" = x""yes; then :
20111 LIBS="-lutil $LIBS" gl_func_getloadavg_done=yes
20116 if test $gl_func_getloadavg_done = no; then
20117 # There is a commonly available library for RS/6000 AIX.
20118 # Since it is not a standard part of AIX, it might be installed locally.
20119 gl_getloadavg_LIBS=$LIBS
20120 LIBS="-L/usr/local/lib $LIBS"
20121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
20122 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
20123 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then :
20124 $as_echo_n "(cached) " >&6
20125 else
20126 ac_check_lib_save_LIBS=$LIBS
20127 LIBS="-lgetloadavg $LIBS"
20128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20129 /* end confdefs.h. */
20131 /* Override any GCC internal prototype to avoid an error.
20132 Use char because int might match the return type of a GCC
20133 builtin and then its argument prototype would still apply. */
20134 #ifdef __cplusplus
20135 extern "C"
20136 #endif
20137 char getloadavg ();
20139 main ()
20141 return getloadavg ();
20143 return 0;
20145 _ACEOF
20146 if ac_fn_c_try_link "$LINENO"; then :
20147 ac_cv_lib_getloadavg_getloadavg=yes
20148 else
20149 ac_cv_lib_getloadavg_getloadavg=no
20151 rm -f core conftest.err conftest.$ac_objext \
20152 conftest$ac_exeext conftest.$ac_ext
20153 LIBS=$ac_check_lib_save_LIBS
20155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
20156 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
20157 if test "x$ac_cv_lib_getloadavg_getloadavg" = x""yes; then :
20158 LIBS="-lgetloadavg $LIBS" gl_func_getloadavg_done=yes
20159 else
20160 LIBS=$gl_getloadavg_LIBS
20165 # Set up the replacement function if necessary.
20166 if test $gl_func_getloadavg_done = no; then
20167 HAVE_GETLOADAVG=0
20169 # Solaris has libkstat which does not require root.
20170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
20171 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
20172 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
20173 $as_echo_n "(cached) " >&6
20174 else
20175 ac_check_lib_save_LIBS=$LIBS
20176 LIBS="-lkstat $LIBS"
20177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20178 /* end confdefs.h. */
20180 /* Override any GCC internal prototype to avoid an error.
20181 Use char because int might match the return type of a GCC
20182 builtin and then its argument prototype would still apply. */
20183 #ifdef __cplusplus
20184 extern "C"
20185 #endif
20186 char kstat_open ();
20188 main ()
20190 return kstat_open ();
20192 return 0;
20194 _ACEOF
20195 if ac_fn_c_try_link "$LINENO"; then :
20196 ac_cv_lib_kstat_kstat_open=yes
20197 else
20198 ac_cv_lib_kstat_kstat_open=no
20200 rm -f core conftest.err conftest.$ac_objext \
20201 conftest$ac_exeext conftest.$ac_ext
20202 LIBS=$ac_check_lib_save_LIBS
20204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
20205 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
20206 if test "x$ac_cv_lib_kstat_kstat_open" = x""yes; then :
20207 cat >>confdefs.h <<_ACEOF
20208 #define HAVE_LIBKSTAT 1
20209 _ACEOF
20211 LIBS="-lkstat $LIBS"
20215 test $ac_cv_lib_kstat_kstat_open = yes && gl_func_getloadavg_done=yes
20217 # AIX has libperfstat which does not require root
20218 if test $gl_func_getloadavg_done = no; then
20219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perfstat_cpu_total in -lperfstat" >&5
20220 $as_echo_n "checking for perfstat_cpu_total in -lperfstat... " >&6; }
20221 if test "${ac_cv_lib_perfstat_perfstat_cpu_total+set}" = set; then :
20222 $as_echo_n "(cached) " >&6
20223 else
20224 ac_check_lib_save_LIBS=$LIBS
20225 LIBS="-lperfstat $LIBS"
20226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20227 /* end confdefs.h. */
20229 /* Override any GCC internal prototype to avoid an error.
20230 Use char because int might match the return type of a GCC
20231 builtin and then its argument prototype would still apply. */
20232 #ifdef __cplusplus
20233 extern "C"
20234 #endif
20235 char perfstat_cpu_total ();
20237 main ()
20239 return perfstat_cpu_total ();
20241 return 0;
20243 _ACEOF
20244 if ac_fn_c_try_link "$LINENO"; then :
20245 ac_cv_lib_perfstat_perfstat_cpu_total=yes
20246 else
20247 ac_cv_lib_perfstat_perfstat_cpu_total=no
20249 rm -f core conftest.err conftest.$ac_objext \
20250 conftest$ac_exeext conftest.$ac_ext
20251 LIBS=$ac_check_lib_save_LIBS
20253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_perfstat_perfstat_cpu_total" >&5
20254 $as_echo "$ac_cv_lib_perfstat_perfstat_cpu_total" >&6; }
20255 if test "x$ac_cv_lib_perfstat_perfstat_cpu_total" = x""yes; then :
20256 cat >>confdefs.h <<_ACEOF
20257 #define HAVE_LIBPERFSTAT 1
20258 _ACEOF
20260 LIBS="-lperfstat $LIBS"
20264 test $ac_cv_lib_perfstat_perfstat_cpu_total = yes && gl_func_getloadavg_done=yes
20267 if test $gl_func_getloadavg_done = no; then
20268 ac_fn_c_check_header_mongrel "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
20269 if test "x$ac_cv_header_sys_dg_sys_info_h" = x""yes; then :
20270 gl_func_getloadavg_done=yes
20272 $as_echo "#define DGUX 1" >>confdefs.h
20274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
20275 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
20276 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then :
20277 $as_echo_n "(cached) " >&6
20278 else
20279 ac_check_lib_save_LIBS=$LIBS
20280 LIBS="-ldgc $LIBS"
20281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20282 /* end confdefs.h. */
20284 /* Override any GCC internal prototype to avoid an error.
20285 Use char because int might match the return type of a GCC
20286 builtin and then its argument prototype would still apply. */
20287 #ifdef __cplusplus
20288 extern "C"
20289 #endif
20290 char dg_sys_info ();
20292 main ()
20294 return dg_sys_info ();
20296 return 0;
20298 _ACEOF
20299 if ac_fn_c_try_link "$LINENO"; then :
20300 ac_cv_lib_dgc_dg_sys_info=yes
20301 else
20302 ac_cv_lib_dgc_dg_sys_info=no
20304 rm -f core conftest.err conftest.$ac_objext \
20305 conftest$ac_exeext conftest.$ac_ext
20306 LIBS=$ac_check_lib_save_LIBS
20308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
20309 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
20310 if test "x$ac_cv_lib_dgc_dg_sys_info" = x""yes; then :
20311 cat >>confdefs.h <<_ACEOF
20312 #define HAVE_LIBDGC 1
20313 _ACEOF
20315 LIBS="-ldgc $LIBS"
20327 if test "x$gl_save_LIBS" = x; then
20328 GETLOADAVG_LIBS=$LIBS
20329 else
20330 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$gl_save_LIBS!!"`
20332 LIBS=$gl_save_LIBS
20335 # Test whether the system declares getloadavg. Solaris has the function
20336 # but declares it in <sys/loadavg.h>, not <stdlib.h>.
20337 for ac_header in sys/loadavg.h
20338 do :
20339 ac_fn_c_check_header_mongrel "$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default"
20340 if test "x$ac_cv_header_sys_loadavg_h" = x""yes; then :
20341 cat >>confdefs.h <<_ACEOF
20342 #define HAVE_SYS_LOADAVG_H 1
20343 _ACEOF
20347 done
20349 if test $ac_cv_header_sys_loadavg_h = yes; then
20350 HAVE_SYS_LOADAVG_H=1
20351 else
20352 HAVE_SYS_LOADAVG_H=0
20354 ac_fn_c_check_decl "$LINENO" "getloadavg" "ac_cv_have_decl_getloadavg" "#if HAVE_SYS_LOADAVG_H
20355 # include <sys/loadavg.h>
20356 #endif
20357 #include <stdlib.h>
20359 if test "x$ac_cv_have_decl_getloadavg" = x""yes; then :
20361 else
20362 HAVE_DECL_GETLOADAVG=0
20366 if test $HAVE_GETLOADAVG = 0; then
20375 gl_LIBOBJS="$gl_LIBOBJS getloadavg.$ac_objext"
20378 # Figure out what our getloadavg.c needs.
20380 # On HPUX9, an unprivileged user can get load averages this way.
20381 if test $gl_func_getloadavg_done = no; then
20382 for ac_func in pstat_getdynamic
20383 do :
20384 ac_fn_c_check_func "$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
20385 if test "x$ac_cv_func_pstat_getdynamic" = x""yes; then :
20386 cat >>confdefs.h <<_ACEOF
20387 #define HAVE_PSTAT_GETDYNAMIC 1
20388 _ACEOF
20389 gl_func_getloadavg_done=yes
20391 done
20395 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
20396 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
20397 # Irix 4.0.5F has the header but not the library.
20398 if test $gl_func_getloadavg_done = no && test "$ac_cv_lib_elf_elf_begin" = yes \
20399 && test "$ac_cv_lib_kvm_kvm_open" = yes; then
20400 gl_func_getloadavg_done=yes
20402 $as_echo "#define SVR4 1" >>confdefs.h
20406 if test $gl_func_getloadavg_done = no; then
20407 ac_fn_c_check_header_mongrel "$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
20408 if test "x$ac_cv_header_inq_stats_cpustats_h" = x""yes; then :
20409 gl_func_getloadavg_done=yes
20411 $as_echo "#define UMAX 1" >>confdefs.h
20414 $as_echo "#define UMAX4_3 1" >>confdefs.h
20421 if test $gl_func_getloadavg_done = no; then
20422 ac_fn_c_check_header_mongrel "$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
20423 if test "x$ac_cv_header_sys_cpustats_h" = x""yes; then :
20424 gl_func_getloadavg_done=yes; $as_echo "#define UMAX 1" >>confdefs.h
20431 if test $gl_func_getloadavg_done = no; then
20432 for ac_header in mach/mach.h
20433 do :
20434 ac_fn_c_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
20435 if test "x$ac_cv_header_mach_mach_h" = x""yes; then :
20436 cat >>confdefs.h <<_ACEOF
20437 #define HAVE_MACH_MACH_H 1
20438 _ACEOF
20442 done
20446 for ac_header in nlist.h
20447 do :
20448 ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
20449 if test "x$ac_cv_header_nlist_h" = x""yes; then :
20450 cat >>confdefs.h <<_ACEOF
20451 #define HAVE_NLIST_H 1
20452 _ACEOF
20453 ac_fn_c_check_member "$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
20455 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x""yes; then :
20457 cat >>confdefs.h <<_ACEOF
20458 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
20459 _ACEOF
20464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20465 /* end confdefs.h. */
20466 #include <nlist.h>
20468 main ()
20470 struct nlist x;
20471 #ifdef HAVE_STRUCT_NLIST_N_UN_N_NAME
20472 x.n_un.n_name = "";
20473 #else
20474 x.n_name = "";
20475 #endif
20477 return 0;
20479 _ACEOF
20480 if ac_fn_c_try_link "$LINENO"; then :
20482 $as_echo "#define N_NAME_POINTER 1" >>confdefs.h
20485 rm -f core conftest.err conftest.$ac_objext \
20486 conftest$ac_exeext conftest.$ac_ext
20490 done
20498 GNULIB_GETLOADAVG=1
20509 if test $REPLACE_GETOPT = 1; then
20518 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
20528 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
20539 REPLACE_GETOPT=0
20542 if test -n "$gl_replace_getopt"; then :
20544 REPLACE_GETOPT=1
20549 if test $REPLACE_GETOPT = 1; then
20551 GETOPT_H=getopt.h
20553 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
20557 GNULIB_UNISTD_H_GETOPT=1
20560 if test $REPLACE_GETOPT = 1; then
20569 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
20579 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
20590 if test $ac_cv_func_lstat = yes; then
20592 if test $gl_cv_func_lstat_dereferences_slashed_symlink = no; then
20593 REPLACE_LSTAT=1
20595 else
20596 HAVE_LSTAT=0
20599 if test $REPLACE_LSTAT = 1; then
20608 gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext"
20620 GNULIB_LSTAT=1
20632 if test $APPLE_UNIVERSAL_BUILD = 1; then
20633 # A universal build on Apple MacOS X platforms.
20634 # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode.
20635 # But we need a configuration result that is valid in both modes.
20636 gl_cv_func_working_mktime=no
20638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
20639 $as_echo_n "checking for working mktime... " >&6; }
20640 if test "${gl_cv_func_working_mktime+set}" = set; then :
20641 $as_echo_n "(cached) " >&6
20642 else
20643 if test "$cross_compiling" = yes; then :
20644 gl_cv_func_working_mktime=no
20645 else
20646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20647 /* end confdefs.h. */
20648 /* Test program from Paul Eggert and Tony Leneis. */
20649 #include <limits.h>
20650 #include <stdlib.h>
20651 #include <time.h>
20653 #ifdef HAVE_UNISTD_H
20654 # include <unistd.h>
20655 #endif
20657 #ifndef HAVE_ALARM
20658 # define alarm(X) /* empty */
20659 #endif
20661 /* Work around redefinition to rpl_putenv by other config tests. */
20662 #undef putenv
20664 static time_t time_t_max;
20665 static time_t time_t_min;
20667 /* Values we'll use to set the TZ environment variable. */
20668 static char *tz_strings[] = {
20669 (char *) 0, "TZ=GMT0", "TZ=JST-9",
20670 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
20672 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
20674 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
20675 Based on a problem report from Andreas Jaeger. */
20676 static int
20677 spring_forward_gap ()
20679 /* glibc (up to about 1998-10-07) failed this test. */
20680 struct tm tm;
20682 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
20683 instead of "TZ=America/Vancouver" in order to detect the bug even
20684 on systems that don't support the Olson extension, or don't have the
20685 full zoneinfo tables installed. */
20686 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
20688 tm.tm_year = 98;
20689 tm.tm_mon = 3;
20690 tm.tm_mday = 5;
20691 tm.tm_hour = 2;
20692 tm.tm_min = 0;
20693 tm.tm_sec = 0;
20694 tm.tm_isdst = -1;
20695 return mktime (&tm) != (time_t) -1;
20698 static int
20699 mktime_test1 (time_t now)
20701 struct tm *lt;
20702 return ! (lt = localtime (&now)) || mktime (lt) == now;
20705 static int
20706 mktime_test (time_t now)
20708 return (mktime_test1 (now)
20709 && mktime_test1 ((time_t) (time_t_max - now))
20710 && mktime_test1 ((time_t) (time_t_min + now)));
20713 static int
20714 irix_6_4_bug ()
20716 /* Based on code from Ariel Faigon. */
20717 struct tm tm;
20718 tm.tm_year = 96;
20719 tm.tm_mon = 3;
20720 tm.tm_mday = 0;
20721 tm.tm_hour = 0;
20722 tm.tm_min = 0;
20723 tm.tm_sec = 0;
20724 tm.tm_isdst = -1;
20725 mktime (&tm);
20726 return tm.tm_mon == 2 && tm.tm_mday == 31;
20729 static int
20730 bigtime_test (int j)
20732 struct tm tm;
20733 time_t now;
20734 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
20735 now = mktime (&tm);
20736 if (now != (time_t) -1)
20738 struct tm *lt = localtime (&now);
20739 if (! (lt
20740 && lt->tm_year == tm.tm_year
20741 && lt->tm_mon == tm.tm_mon
20742 && lt->tm_mday == tm.tm_mday
20743 && lt->tm_hour == tm.tm_hour
20744 && lt->tm_min == tm.tm_min
20745 && lt->tm_sec == tm.tm_sec
20746 && lt->tm_yday == tm.tm_yday
20747 && lt->tm_wday == tm.tm_wday
20748 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
20749 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
20750 return 0;
20752 return 1;
20755 static int
20756 year_2050_test ()
20758 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
20759 ignoring leap seconds. */
20760 unsigned long int answer = 2527315200UL;
20762 struct tm tm;
20763 time_t t;
20764 tm.tm_year = 2050 - 1900;
20765 tm.tm_mon = 2 - 1;
20766 tm.tm_mday = 1;
20767 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
20768 tm.tm_isdst = -1;
20770 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
20771 instead of "TZ=America/Vancouver" in order to detect the bug even
20772 on systems that don't support the Olson extension, or don't have the
20773 full zoneinfo tables installed. */
20774 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
20776 t = mktime (&tm);
20778 /* Check that the result is either a failure, or close enough
20779 to the correct answer that we can assume the discrepancy is
20780 due to leap seconds. */
20781 return (t == (time_t) -1
20782 || (0 < t && answer - 120 <= t && t <= answer + 120));
20786 main ()
20788 int result = 0;
20789 time_t t, delta;
20790 int i, j;
20791 int time_t_signed_magnitude = (time_t) ~ (time_t) 0 < (time_t) -1;
20792 int time_t_signed = ! ((time_t) 0 < (time_t) -1);
20794 /* This test makes some buggy mktime implementations loop.
20795 Give up after 60 seconds; a mktime slower than that
20796 isn't worth using anyway. */
20797 alarm (60);
20799 time_t_max = (! time_t_signed
20800 ? (time_t) -1
20801 : ((((time_t) 1 << (sizeof (time_t) * CHAR_BIT - 2)) - 1)
20802 * 2 + 1));
20803 time_t_min = (! time_t_signed
20804 ? (time_t) 0
20805 : time_t_signed_magnitude
20806 ? ~ (time_t) 0
20807 : ~ time_t_max);
20809 delta = time_t_max / 997; /* a suitable prime number */
20810 for (i = 0; i < N_STRINGS; i++)
20812 if (tz_strings[i])
20813 putenv (tz_strings[i]);
20815 for (t = 0; t <= time_t_max - delta; t += delta)
20816 if (! mktime_test (t))
20817 result |= 1;
20818 if (! (mktime_test ((time_t) 1)
20819 && mktime_test ((time_t) (60 * 60))
20820 && mktime_test ((time_t) (60 * 60 * 24))))
20821 result |= 2;
20823 for (j = 1; ; j <<= 1)
20824 if (! bigtime_test (j))
20825 result |= 4;
20826 else if (INT_MAX / 2 < j)
20827 break;
20828 if (! bigtime_test (INT_MAX))
20829 result |= 8;
20831 if (! irix_6_4_bug ())
20832 result |= 16;
20833 if (! spring_forward_gap ())
20834 result |= 32;
20835 if (! year_2050_test ())
20836 result |= 64;
20837 return result;
20839 _ACEOF
20840 if ac_fn_c_try_run "$LINENO"; then :
20841 gl_cv_func_working_mktime=yes
20842 else
20843 gl_cv_func_working_mktime=no
20845 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20846 conftest.$ac_objext conftest.beam conftest.$ac_ext
20851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_mktime" >&5
20852 $as_echo "$gl_cv_func_working_mktime" >&6; }
20854 if test $gl_cv_func_working_mktime = no; then
20855 REPLACE_MKTIME=1
20856 else
20857 REPLACE_MKTIME=0
20860 if test $REPLACE_MKTIME = 1; then
20869 gl_LIBOBJS="$gl_LIBOBJS mktime.$ac_objext"
20880 GNULIB_MKTIME=1
20889 LIB_PTHREAD_SIGMASK=
20892 if test $ac_cv_func_pthread_sigmask = yes; then
20894 else
20895 HAVE_PTHREAD_SIGMASK=0
20896 REPLACE_PTHREAD_SIGMASK=1
20902 if test $HAVE_PTHREAD_SIGMASK = 1; then
20905 if test -z "$LIB_PTHREAD_SIGMASK"; then
20906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask works without -lpthread" >&5
20907 $as_echo_n "checking whether pthread_sigmask works without -lpthread... " >&6; }
20908 if test "${gl_cv_func_pthread_sigmask_in_libc_works+set}" = set; then :
20909 $as_echo_n "(cached) " >&6
20910 else
20912 if test "$cross_compiling" = yes; then :
20914 case "$host_os" in
20915 freebsd* | hpux* | solaris | solaris2.[2-9]*)
20916 gl_cv_func_pthread_sigmask_in_libc_works="guessing no";;
20918 gl_cv_func_pthread_sigmask_in_libc_works="guessing yes";;
20919 esac
20921 else
20922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20923 /* end confdefs.h. */
20925 #include <pthread.h>
20926 #include <signal.h>
20927 #include <stddef.h>
20928 int main ()
20930 sigset_t set;
20931 sigemptyset (&set);
20932 return pthread_sigmask (1729, &set, NULL) != 0;
20934 _ACEOF
20935 if ac_fn_c_try_run "$LINENO"; then :
20936 gl_cv_func_pthread_sigmask_in_libc_works=no
20937 else
20938 gl_cv_func_pthread_sigmask_in_libc_works=yes
20940 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20941 conftest.$ac_objext conftest.beam conftest.$ac_ext
20946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_in_libc_works" >&5
20947 $as_echo "$gl_cv_func_pthread_sigmask_in_libc_works" >&6; }
20948 case "$gl_cv_func_pthread_sigmask_in_libc_works" in
20949 *no)
20950 REPLACE_PTHREAD_SIGMASK=1
20952 $as_echo "#define PTHREAD_SIGMASK_INEFFECTIVE 1" >>confdefs.h
20955 esac
20958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask returns error numbers" >&5
20959 $as_echo_n "checking whether pthread_sigmask returns error numbers... " >&6; }
20960 if test "${gl_cv_func_pthread_sigmask_return_works+set}" = set; then :
20961 $as_echo_n "(cached) " >&6
20962 else
20964 gl_save_LIBS="$LIBS"
20965 LIBS="$LIBS $LIB_PTHREAD_SIGMASK"
20966 if test "$cross_compiling" = yes; then :
20967 case "$host_os" in
20968 cygwin*)
20969 gl_cv_func_pthread_sigmask_return_works="guessing no";;
20971 gl_cv_func_pthread_sigmask_return_works="guessing yes";;
20972 esac
20974 else
20975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20976 /* end confdefs.h. */
20978 #include <pthread.h>
20979 #include <signal.h>
20980 #include <stddef.h>
20981 int main ()
20983 sigset_t set;
20984 sigemptyset (&set);
20985 if (pthread_sigmask (1729, &set, NULL) == -1)
20986 return 1;
20987 return 0;
20989 _ACEOF
20990 if ac_fn_c_try_run "$LINENO"; then :
20991 gl_cv_func_pthread_sigmask_return_works=yes
20992 else
20993 gl_cv_func_pthread_sigmask_return_works=no
20995 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20996 conftest.$ac_objext conftest.beam conftest.$ac_ext
20999 LIBS="$gl_save_LIBS"
21002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_return_works" >&5
21003 $as_echo "$gl_cv_func_pthread_sigmask_return_works" >&6; }
21004 case "$gl_cv_func_pthread_sigmask_return_works" in
21005 *no)
21006 REPLACE_PTHREAD_SIGMASK=1
21008 $as_echo "#define PTHREAD_SIGMASK_FAILS_WITH_ERRNO 1" >>confdefs.h
21011 esac
21013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask unblocks signals correctly" >&5
21014 $as_echo_n "checking whether pthread_sigmask unblocks signals correctly... " >&6; }
21015 if test "${gl_cv_func_pthread_sigmask_unblock_works+set}" = set; then :
21016 $as_echo_n "(cached) " >&6
21017 else
21019 case "$host_os" in
21020 irix*)
21021 gl_cv_func_pthread_sigmask_unblock_works="guessing no";;
21023 gl_cv_func_pthread_sigmask_unblock_works="guessing yes";;
21024 esac
21025 gl_save_LIBS="$LIBS"
21026 LIBS="$LIBS $LIBMULTITHREAD"
21027 if test "$cross_compiling" = yes; then :
21029 else
21030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21031 /* end confdefs.h. */
21033 #include <pthread.h>
21034 #include <signal.h>
21035 #include <stdio.h>
21036 #include <stdlib.h>
21037 #include <unistd.h>
21038 static volatile int sigint_occurred;
21039 static void
21040 sigint_handler (int sig)
21042 sigint_occurred++;
21044 int main ()
21046 sigset_t set;
21047 int pid = getpid ();
21048 char command[80];
21049 signal (SIGINT, sigint_handler);
21050 sigemptyset (&set);
21051 sigaddset (&set, SIGINT);
21052 if (!(pthread_sigmask (SIG_BLOCK, &set, NULL) == 0))
21053 return 1;
21054 sprintf (command, "sh -c 'sleep 1; kill -%d %d' &", SIGINT, pid);
21055 if (!(system (command) == 0))
21056 return 2;
21057 sleep (2);
21058 if (!(sigint_occurred == 0))
21059 return 3;
21060 if (!(pthread_sigmask (SIG_UNBLOCK, &set, NULL) == 0))
21061 return 4;
21062 if (!(sigint_occurred == 1)) /* This fails on IRIX. */
21063 return 5;
21064 return 0;
21066 _ACEOF
21067 if ac_fn_c_try_run "$LINENO"; then :
21069 else
21070 gl_cv_func_pthread_sigmask_unblock_works=no
21072 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21073 conftest.$ac_objext conftest.beam conftest.$ac_ext
21076 LIBS="$gl_save_LIBS"
21079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_unblock_works" >&5
21080 $as_echo "$gl_cv_func_pthread_sigmask_unblock_works" >&6; }
21081 case "$gl_cv_func_pthread_sigmask_unblock_works" in
21082 *no)
21083 REPLACE_PTHREAD_SIGMASK=1
21085 $as_echo "#define PTHREAD_SIGMASK_UNBLOCK_BUG 1" >>confdefs.h
21088 esac
21091 if test $HAVE_PTHREAD_SIGMASK = 0 || test $REPLACE_PTHREAD_SIGMASK = 1; then
21100 gl_LIBOBJS="$gl_LIBOBJS pthread_sigmask.$ac_objext"
21103 if test $HAVE_PTHREAD_SIGMASK = 1; then
21105 $as_echo "#define HAVE_PTHREAD_SIGMASK 1" >>confdefs.h
21115 GNULIB_PTHREAD_SIGMASK=1
21124 if test $ac_cv_func_readlink = no; then
21125 HAVE_READLINK=0
21126 else
21127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
21128 $as_echo_n "checking whether readlink signature is correct... " >&6; }
21129 if test "${gl_cv_decl_readlink_works+set}" = set; then :
21130 $as_echo_n "(cached) " >&6
21131 else
21132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21133 /* end confdefs.h. */
21134 #include <unistd.h>
21135 /* Cause compilation failure if original declaration has wrong type. */
21136 ssize_t readlink (const char *, char *, size_t);
21138 main ()
21142 return 0;
21144 _ACEOF
21145 if ac_fn_c_try_compile "$LINENO"; then :
21146 gl_cv_decl_readlink_works=yes
21147 else
21148 gl_cv_decl_readlink_works=no
21150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
21153 $as_echo "$gl_cv_decl_readlink_works" >&6; }
21154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
21155 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
21156 if test "${gl_cv_func_readlink_works+set}" = set; then :
21157 $as_echo_n "(cached) " >&6
21158 else
21159 # We have readlink, so assume ln -s works.
21160 ln -s conftest.no-such conftest.link
21161 ln -s conftest.link conftest.lnk2
21162 if test "$cross_compiling" = yes; then :
21163 gl_cv_func_readlink_works="guessing no"
21164 else
21165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21166 /* end confdefs.h. */
21167 #include <unistd.h>
21170 main ()
21172 char buf[20];
21173 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
21175 return 0;
21177 _ACEOF
21178 if ac_fn_c_try_run "$LINENO"; then :
21179 gl_cv_func_readlink_works=yes
21180 else
21181 gl_cv_func_readlink_works=no
21183 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21184 conftest.$ac_objext conftest.beam conftest.$ac_ext
21187 rm -f conftest.link conftest.lnk2
21189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
21190 $as_echo "$gl_cv_func_readlink_works" >&6; }
21191 if test "$gl_cv_func_readlink_works" != yes; then
21193 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
21195 REPLACE_READLINK=1
21196 elif test "$gl_cv_decl_readlink_works" != yes; then
21197 REPLACE_READLINK=1
21201 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
21210 gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
21221 GNULIB_READLINK=1
21238 if test $gl_cv_have_include_next = yes; then
21239 gl_cv_next_signal_h='<'signal.h'>'
21240 else
21241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
21242 $as_echo_n "checking absolute name of <signal.h>... " >&6; }
21243 if test "${gl_cv_next_signal_h+set}" = set; then :
21244 $as_echo_n "(cached) " >&6
21245 else
21247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21248 /* end confdefs.h. */
21249 #include <signal.h>
21251 _ACEOF
21252 case "$host_os" in
21253 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21254 *) gl_absname_cpp="$ac_cpp" ;;
21255 esac
21257 case "$host_os" in
21258 mingw*)
21259 gl_dirsep_regex='[/\\]'
21262 gl_dirsep_regex='/'
21264 esac
21266 gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'signal.h|{
21267 s|.*"\(.*'"${gl_dirsep_regex}"'signal.h\)".*|\1|
21268 s|^/[^/]|//&|
21272 gl_cv_next_signal_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21273 sed -n "$gl_absolute_header_sed"`'"'
21277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
21278 $as_echo "$gl_cv_next_signal_h" >&6; }
21280 NEXT_SIGNAL_H=$gl_cv_next_signal_h
21282 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21283 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21284 gl_next_as_first_directive='<'signal.h'>'
21285 else
21286 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21287 gl_next_as_first_directive=$gl_cv_next_signal_h
21289 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H=$gl_next_as_first_directive
21295 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
21296 # then choke on 'volatile sig_atomic_t'. C99 requires that it compile.
21297 ac_fn_c_check_type "$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
21298 #include <signal.h>
21301 if test "x$ac_cv_type_volatile_sig_atomic_t" = x""yes; then :
21303 else
21304 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=0
21313 ac_fn_c_check_type "$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
21314 #include <signal.h>
21317 if test "x$ac_cv_type_sighandler_t" = x""yes; then :
21319 else
21320 HAVE_SIGHANDLER_T=0
21326 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
21327 /* <sys/types.h> is not needed according to POSIX, but the
21328 <sys/socket.h> in i386-unknown-freebsd4.10 and
21329 powerpc-apple-darwin5.5 required it. */
21330 #include <sys/types.h>
21331 #if HAVE_SYS_SOCKET_H
21332 # include <sys/socket.h>
21333 #elif HAVE_WS2TCPIP_H
21334 # include <ws2tcpip.h>
21335 #endif
21338 if test "x$ac_cv_type_socklen_t" = x""yes; then :
21340 else
21341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
21342 $as_echo_n "checking for socklen_t equivalent... " >&6; }
21343 if test "${gl_cv_socklen_t_equiv+set}" = set; then :
21344 $as_echo_n "(cached) " >&6
21345 else
21346 # Systems have either "struct sockaddr *" or
21347 # "void *" as the second argument to getpeername
21348 gl_cv_socklen_t_equiv=
21349 for arg2 in "struct sockaddr" void; do
21350 for t in int size_t "unsigned int" "long int" "unsigned long int"; do
21351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21352 /* end confdefs.h. */
21353 #include <sys/types.h>
21354 #include <sys/socket.h>
21356 int getpeername (int, $arg2 *, $t *);
21358 main ()
21360 $t len;
21361 getpeername (0, 0, &len);
21363 return 0;
21365 _ACEOF
21366 if ac_fn_c_try_compile "$LINENO"; then :
21367 gl_cv_socklen_t_equiv="$t"
21369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21370 test "$gl_cv_socklen_t_equiv" != "" && break
21371 done
21372 test "$gl_cv_socklen_t_equiv" != "" && break
21373 done
21377 if test "$gl_cv_socklen_t_equiv" = ""; then
21378 as_fn_error "Cannot find a type to use in place of socklen_t" "$LINENO" 5
21380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
21381 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
21383 cat >>confdefs.h <<_ACEOF
21384 #define socklen_t $gl_cv_socklen_t_equiv
21385 _ACEOF
21390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
21391 $as_echo_n "checking for ssize_t... " >&6; }
21392 if test "${gt_cv_ssize_t+set}" = set; then :
21393 $as_echo_n "(cached) " >&6
21394 else
21395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21396 /* end confdefs.h. */
21397 #include <sys/types.h>
21399 main ()
21401 int x = sizeof (ssize_t *) + sizeof (ssize_t);
21402 return !x;
21404 return 0;
21406 _ACEOF
21407 if ac_fn_c_try_compile "$LINENO"; then :
21408 gt_cv_ssize_t=yes
21409 else
21410 gt_cv_ssize_t=no
21412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
21415 $as_echo "$gt_cv_ssize_t" >&6; }
21416 if test $gt_cv_ssize_t = no; then
21418 $as_echo "#define ssize_t int" >>confdefs.h
21423 STDARG_H=''
21424 NEXT_STDARG_H='<stdarg.h>'
21425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
21426 $as_echo_n "checking for va_copy... " >&6; }
21427 if test "${gl_cv_func_va_copy+set}" = set; then :
21428 $as_echo_n "(cached) " >&6
21429 else
21431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21432 /* end confdefs.h. */
21433 #include <stdarg.h>
21435 main ()
21438 #ifndef va_copy
21439 void (*func) (va_list, va_list) = va_copy;
21440 #endif
21443 return 0;
21445 _ACEOF
21446 if ac_fn_c_try_compile "$LINENO"; then :
21447 gl_cv_func_va_copy=yes
21448 else
21449 gl_cv_func_va_copy=no
21451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_va_copy" >&5
21455 $as_echo "$gl_cv_func_va_copy" >&6; }
21456 if test $gl_cv_func_va_copy = no; then
21457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21458 /* end confdefs.h. */
21459 #if defined _AIX && !defined __GNUC__
21460 AIX vaccine
21461 #endif
21463 _ACEOF
21464 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21465 $EGREP "vaccine" >/dev/null 2>&1; then :
21466 gl_aixcc=yes
21467 else
21468 gl_aixcc=no
21470 rm -f conftest*
21472 if test $gl_aixcc = yes; then
21473 STDARG_H=stdarg.h
21482 if test $gl_cv_have_include_next = yes; then
21483 gl_cv_next_stdarg_h='<'stdarg.h'>'
21484 else
21485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdarg.h>" >&5
21486 $as_echo_n "checking absolute name of <stdarg.h>... " >&6; }
21487 if test "${gl_cv_next_stdarg_h+set}" = set; then :
21488 $as_echo_n "(cached) " >&6
21489 else
21491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21492 /* end confdefs.h. */
21493 #include <stdarg.h>
21495 _ACEOF
21496 case "$host_os" in
21497 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21498 *) gl_absname_cpp="$ac_cpp" ;;
21499 esac
21501 case "$host_os" in
21502 mingw*)
21503 gl_dirsep_regex='[/\\]'
21506 gl_dirsep_regex='/'
21508 esac
21510 gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'stdarg.h|{
21511 s|.*"\(.*'"${gl_dirsep_regex}"'stdarg.h\)".*|\1|
21512 s|^/[^/]|//&|
21516 gl_cv_next_stdarg_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21517 sed -n "$gl_absolute_header_sed"`'"'
21521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdarg_h" >&5
21522 $as_echo "$gl_cv_next_stdarg_h" >&6; }
21524 NEXT_STDARG_H=$gl_cv_next_stdarg_h
21526 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21527 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21528 gl_next_as_first_directive='<'stdarg.h'>'
21529 else
21530 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21531 gl_next_as_first_directive=$gl_cv_next_stdarg_h
21533 NEXT_AS_FIRST_DIRECTIVE_STDARG_H=$gl_next_as_first_directive
21538 if test "$gl_cv_next_stdarg_h" = '""'; then
21539 gl_cv_next_stdarg_h='"///usr/include/stdarg.h"'
21540 NEXT_STDARG_H="$gl_cv_next_stdarg_h"
21542 else
21544 saved_as_echo_n="$as_echo_n"
21545 as_echo_n=':'
21546 if test "${gl_cv_func___va_copy+set}" = set; then :
21547 $as_echo_n "(cached) " >&6
21548 else
21550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21551 /* end confdefs.h. */
21552 #include <stdarg.h>
21554 main ()
21557 #ifndef __va_copy
21558 error, bail out
21559 #endif
21562 return 0;
21564 _ACEOF
21565 if ac_fn_c_try_compile "$LINENO"; then :
21566 gl_cv_func___va_copy=yes
21567 else
21568 gl_cv_func___va_copy=no
21570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21573 as_echo_n="$saved_as_echo_n"
21575 if test $gl_cv_func___va_copy = yes; then
21577 $as_echo "#define va_copy __va_copy" >>confdefs.h
21579 else
21582 $as_echo "#define va_copy gl_va_copy" >>confdefs.h
21588 if test -n "$STDARG_H"; then
21589 GL_GENERATE_STDARG_H_TRUE=
21590 GL_GENERATE_STDARG_H_FALSE='#'
21591 else
21592 GL_GENERATE_STDARG_H_TRUE='#'
21593 GL_GENERATE_STDARG_H_FALSE=
21601 # Define two additional variables used in the Makefile substitution.
21603 if test "$ac_cv_header_stdbool_h" = yes; then
21604 STDBOOL_H=''
21605 else
21606 STDBOOL_H='stdbool.h'
21609 if test -n "$STDBOOL_H"; then
21610 GL_GENERATE_STDBOOL_H_TRUE=
21611 GL_GENERATE_STDBOOL_H_FALSE='#'
21612 else
21613 GL_GENERATE_STDBOOL_H_TRUE='#'
21614 GL_GENERATE_STDBOOL_H_FALSE=
21618 if test "$ac_cv_type__Bool" = yes; then
21619 HAVE__BOOL=1
21620 else
21621 HAVE__BOOL=0
21628 STDDEF_H=
21629 if test $gt_cv_c_wchar_t = no; then
21630 HAVE_WCHAR_T=0
21631 STDDEF_H=stddef.h
21633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
21634 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
21635 if test "${gl_cv_decl_null_works+set}" = set; then :
21636 $as_echo_n "(cached) " >&6
21637 else
21638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21639 /* end confdefs.h. */
21640 #include <stddef.h>
21641 int test[2 * (sizeof NULL == sizeof (void *)) -1];
21644 main ()
21648 return 0;
21650 _ACEOF
21651 if ac_fn_c_try_compile "$LINENO"; then :
21652 gl_cv_decl_null_works=yes
21653 else
21654 gl_cv_decl_null_works=no
21656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
21659 $as_echo "$gl_cv_decl_null_works" >&6; }
21660 if test $gl_cv_decl_null_works = no; then
21661 REPLACE_NULL=1
21662 STDDEF_H=stddef.h
21665 if test -n "$STDDEF_H"; then
21666 GL_GENERATE_STDDEF_H_TRUE=
21667 GL_GENERATE_STDDEF_H_FALSE='#'
21668 else
21669 GL_GENERATE_STDDEF_H_TRUE='#'
21670 GL_GENERATE_STDDEF_H_FALSE=
21673 if test -n "$STDDEF_H"; then
21682 if test $gl_cv_have_include_next = yes; then
21683 gl_cv_next_stddef_h='<'stddef.h'>'
21684 else
21685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
21686 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
21687 if test "${gl_cv_next_stddef_h+set}" = set; then :
21688 $as_echo_n "(cached) " >&6
21689 else
21691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21692 /* end confdefs.h. */
21693 #include <stddef.h>
21695 _ACEOF
21696 case "$host_os" in
21697 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21698 *) gl_absname_cpp="$ac_cpp" ;;
21699 esac
21701 case "$host_os" in
21702 mingw*)
21703 gl_dirsep_regex='[/\\]'
21706 gl_dirsep_regex='/'
21708 esac
21710 gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'stddef.h|{
21711 s|.*"\(.*'"${gl_dirsep_regex}"'stddef.h\)".*|\1|
21712 s|^/[^/]|//&|
21716 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21717 sed -n "$gl_absolute_header_sed"`'"'
21721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
21722 $as_echo "$gl_cv_next_stddef_h" >&6; }
21724 NEXT_STDDEF_H=$gl_cv_next_stddef_h
21726 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21727 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21728 gl_next_as_first_directive='<'stddef.h'>'
21729 else
21730 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21731 gl_next_as_first_directive=$gl_cv_next_stddef_h
21733 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
21752 if test $gl_cv_have_include_next = yes; then
21753 gl_cv_next_stdio_h='<'stdio.h'>'
21754 else
21755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
21756 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
21757 if test "${gl_cv_next_stdio_h+set}" = set; then :
21758 $as_echo_n "(cached) " >&6
21759 else
21761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21762 /* end confdefs.h. */
21763 #include <stdio.h>
21765 _ACEOF
21766 case "$host_os" in
21767 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21768 *) gl_absname_cpp="$ac_cpp" ;;
21769 esac
21771 case "$host_os" in
21772 mingw*)
21773 gl_dirsep_regex='[/\\]'
21776 gl_dirsep_regex='/'
21778 esac
21780 gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'stdio.h|{
21781 s|.*"\(.*'"${gl_dirsep_regex}"'stdio.h\)".*|\1|
21782 s|^/[^/]|//&|
21786 gl_cv_next_stdio_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21787 sed -n "$gl_absolute_header_sed"`'"'
21791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
21792 $as_echo "$gl_cv_next_stdio_h" >&6; }
21794 NEXT_STDIO_H=$gl_cv_next_stdio_h
21796 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21797 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21798 gl_next_as_first_directive='<'stdio.h'>'
21799 else
21800 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21801 gl_next_as_first_directive=$gl_cv_next_stdio_h
21803 NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
21809 GNULIB_FSCANF=1
21810 GNULIB_SCANF=1
21811 GNULIB_FGETC=1
21812 GNULIB_GETC=1
21813 GNULIB_GETCHAR=1
21814 GNULIB_FGETS=1
21815 GNULIB_GETS=1
21816 GNULIB_FREAD=1
21819 GNULIB_FPRINTF=1
21820 GNULIB_PRINTF=1
21821 GNULIB_VFPRINTF=1
21822 GNULIB_VPRINTF=1
21823 GNULIB_FPUTC=1
21824 GNULIB_PUTC=1
21825 GNULIB_PUTCHAR=1
21826 GNULIB_FPUTS=1
21827 GNULIB_PUTS=1
21828 GNULIB_FWRITE=1
21844 if test $gl_cv_have_include_next = yes; then
21845 gl_cv_next_stdlib_h='<'stdlib.h'>'
21846 else
21847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
21848 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
21849 if test "${gl_cv_next_stdlib_h+set}" = set; then :
21850 $as_echo_n "(cached) " >&6
21851 else
21853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21854 /* end confdefs.h. */
21855 #include <stdlib.h>
21857 _ACEOF
21858 case "$host_os" in
21859 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21860 *) gl_absname_cpp="$ac_cpp" ;;
21861 esac
21863 case "$host_os" in
21864 mingw*)
21865 gl_dirsep_regex='[/\\]'
21868 gl_dirsep_regex='/'
21870 esac
21872 gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'stdlib.h|{
21873 s|.*"\(.*'"${gl_dirsep_regex}"'stdlib.h\)".*|\1|
21874 s|^/[^/]|//&|
21878 gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21879 sed -n "$gl_absolute_header_sed"`'"'
21883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
21884 $as_echo "$gl_cv_next_stdlib_h" >&6; }
21886 NEXT_STDLIB_H=$gl_cv_next_stdlib_h
21888 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21889 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21890 gl_next_as_first_directive='<'stdlib.h'>'
21891 else
21892 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21893 gl_next_as_first_directive=$gl_cv_next_stdlib_h
21895 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
21905 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
21913 $as_echo "#define my_strftime nstrftime" >>confdefs.h
21922 if test "$ac_cv_have_decl_strtoimax" != yes; then
21923 HAVE_DECL_STRTOIMAX=0
21926 if test $ac_cv_func_strtoimax = no; then
21935 gl_LIBOBJS="$gl_LIBOBJS strtoimax.$ac_objext"
21938 ac_fn_c_check_decl "$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
21939 if test "x$ac_cv_have_decl_strtoll" = x""yes; then :
21940 ac_have_decl=1
21941 else
21942 ac_have_decl=0
21945 cat >>confdefs.h <<_ACEOF
21946 #define HAVE_DECL_STRTOLL $ac_have_decl
21947 _ACEOF
21957 GNULIB_STRTOIMAX=1
21967 if test "$ac_cv_have_decl_strtoumax" != yes; then
21968 HAVE_DECL_STRTOUMAX=0
21971 if test $ac_cv_func_strtoumax = no; then
21980 gl_LIBOBJS="$gl_LIBOBJS strtoumax.$ac_objext"
21983 ac_fn_c_check_decl "$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
21984 if test "x$ac_cv_have_decl_strtoull" = x""yes; then :
21985 ac_have_decl=1
21986 else
21987 ac_have_decl=0
21990 cat >>confdefs.h <<_ACEOF
21991 #define HAVE_DECL_STRTOULL $ac_have_decl
21992 _ACEOF
22002 GNULIB_STRTOUMAX=1
22010 if test $ac_cv_func_symlink = no; then
22011 HAVE_SYMLINK=0
22012 else
22013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symlink handles trailing slash correctly" >&5
22014 $as_echo_n "checking whether symlink handles trailing slash correctly... " >&6; }
22015 if test "${gl_cv_func_symlink_works+set}" = set; then :
22016 $as_echo_n "(cached) " >&6
22017 else
22018 if test "$cross_compiling" = yes; then :
22019 gl_cv_func_symlink_works="guessing no"
22020 else
22021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22022 /* end confdefs.h. */
22023 #include <unistd.h>
22026 main ()
22028 int result = 0;
22029 if (!symlink ("a", "conftest.link/"))
22030 result |= 1;
22031 if (symlink ("conftest.f", "conftest.lnk2"))
22032 result |= 2;
22033 else if (!symlink ("a", "conftest.lnk2/"))
22034 result |= 4;
22035 return result;
22038 return 0;
22040 _ACEOF
22041 if ac_fn_c_try_run "$LINENO"; then :
22042 gl_cv_func_symlink_works=yes
22043 else
22044 gl_cv_func_symlink_works=no
22046 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22047 conftest.$ac_objext conftest.beam conftest.$ac_ext
22050 rm -f conftest.f conftest.link conftest.lnk2
22052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_symlink_works" >&5
22053 $as_echo "$gl_cv_func_symlink_works" >&6; }
22054 if test "$gl_cv_func_symlink_works" != yes; then
22055 REPLACE_SYMLINK=1
22059 if test $HAVE_SYMLINK = 0 || test $REPLACE_SYMLINK = 1; then
22068 gl_LIBOBJS="$gl_LIBOBJS symlink.$ac_objext"
22076 GNULIB_SYMLINK=1
22098 if test $gl_cv_have_include_next = yes; then
22099 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
22100 else
22101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
22102 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
22103 if test "${gl_cv_next_sys_stat_h+set}" = set; then :
22104 $as_echo_n "(cached) " >&6
22105 else
22107 if test $ac_cv_header_sys_stat_h = yes; then
22110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22111 /* end confdefs.h. */
22112 #include <sys/stat.h>
22114 _ACEOF
22115 case "$host_os" in
22116 aix*) gl_absname_cpp="$ac_cpp -C" ;;
22117 *) gl_absname_cpp="$ac_cpp" ;;
22118 esac
22120 case "$host_os" in
22121 mingw*)
22122 gl_dirsep_regex='[/\\]'
22125 gl_dirsep_regex='/'
22127 esac
22129 gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'sys/stat.h|{
22130 s|.*"\(.*'"${gl_dirsep_regex}"'sys/stat.h\)".*|\1|
22131 s|^/[^/]|//&|
22135 gl_cv_next_sys_stat_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22136 sed -n "$gl_absolute_header_sed"`'"'
22137 else
22138 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
22143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
22144 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
22146 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
22148 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
22149 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22150 gl_next_as_first_directive='<'sys/stat.h'>'
22151 else
22152 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22153 gl_next_as_first_directive=$gl_cv_next_sys_stat_h
22155 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
22163 ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
22164 #include <sys/stat.h>
22166 if test "x$ac_cv_type_nlink_t" = x""yes; then :
22168 else
22170 $as_echo "#define nlink_t int" >>confdefs.h
22188 if test $ac_cv_have_decl_localtime_r = no; then
22189 HAVE_DECL_LOCALTIME_R=0
22193 if test $ac_cv_func_localtime_r = yes; then
22194 HAVE_LOCALTIME_R=1
22195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
22196 $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
22197 if test "${gl_cv_time_r_posix+set}" = set; then :
22198 $as_echo_n "(cached) " >&6
22199 else
22200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22201 /* end confdefs.h. */
22202 #include <time.h>
22204 main ()
22206 /* We don't need to append 'restrict's to the argument types,
22207 even though the POSIX signature has the 'restrict's,
22208 since C99 says they can't affect type compatibility. */
22209 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
22210 if (ptr) return 0;
22211 /* Check the return type is a pointer.
22212 On HP-UX 10 it is 'int'. */
22213 *localtime_r (0, 0);
22215 return 0;
22218 _ACEOF
22219 if ac_fn_c_try_compile "$LINENO"; then :
22220 gl_cv_time_r_posix=yes
22221 else
22222 gl_cv_time_r_posix=no
22224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
22228 $as_echo "$gl_cv_time_r_posix" >&6; }
22229 if test $gl_cv_time_r_posix = yes; then
22230 REPLACE_LOCALTIME_R=0
22231 else
22232 REPLACE_LOCALTIME_R=1
22234 else
22235 HAVE_LOCALTIME_R=0
22238 if test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1; then
22247 gl_LIBOBJS="$gl_LIBOBJS time_r.$ac_objext"
22258 GNULIB_TIME_R=1
22278 if test $gl_cv_have_include_next = yes; then
22279 gl_cv_next_unistd_h='<'unistd.h'>'
22280 else
22281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
22282 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
22283 if test "${gl_cv_next_unistd_h+set}" = set; then :
22284 $as_echo_n "(cached) " >&6
22285 else
22287 if test $ac_cv_header_unistd_h = yes; then
22290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22291 /* end confdefs.h. */
22292 #include <unistd.h>
22294 _ACEOF
22295 case "$host_os" in
22296 aix*) gl_absname_cpp="$ac_cpp -C" ;;
22297 *) gl_absname_cpp="$ac_cpp" ;;
22298 esac
22300 case "$host_os" in
22301 mingw*)
22302 gl_dirsep_regex='[/\\]'
22305 gl_dirsep_regex='/'
22307 esac
22309 gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'unistd.h|{
22310 s|.*"\(.*'"${gl_dirsep_regex}"'unistd.h\)".*|\1|
22311 s|^/[^/]|//&|
22315 gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22316 sed -n "$gl_absolute_header_sed"`'"'
22317 else
22318 gl_cv_next_unistd_h='<'unistd.h'>'
22323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
22324 $as_echo "$gl_cv_next_unistd_h" >&6; }
22326 NEXT_UNISTD_H=$gl_cv_next_unistd_h
22328 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
22329 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22330 gl_next_as_first_directive='<'unistd.h'>'
22331 else
22332 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22333 gl_next_as_first_directive=$gl_cv_next_unistd_h
22335 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
22340 if test $ac_cv_header_unistd_h = yes; then
22341 HAVE_UNISTD_H=1
22342 else
22343 HAVE_UNISTD_H=0
22352 gl_gnulib_enabled_dosname=false
22353 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36=false
22354 gl_gnulib_enabled_pathmax=false
22355 gl_gnulib_enabled_sigprocmask=false
22356 gl_gnulib_enabled_stat=false
22357 gl_gnulib_enabled_strtoll=false
22358 gl_gnulib_enabled_strtoull=false
22359 gl_gnulib_enabled_verify=false
22360 func_gl_gnulib_m4code_dosname ()
22362 if ! $gl_gnulib_enabled_dosname; then
22363 gl_gnulib_enabled_dosname=true
22366 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36 ()
22368 if ! $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
22371 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36=true
22374 func_gl_gnulib_m4code_pathmax ()
22376 if ! $gl_gnulib_enabled_pathmax; then
22380 gl_gnulib_enabled_pathmax=true
22383 func_gl_gnulib_m4code_sigprocmask ()
22385 if ! $gl_gnulib_enabled_sigprocmask; then
22389 if test $gl_cv_type_sigset_t = yes; then
22390 ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask"
22391 if test "x$ac_cv_func_sigprocmask" = x""yes; then :
22392 gl_cv_func_sigprocmask=1
22396 if test -z "$gl_cv_func_sigprocmask"; then
22397 HAVE_POSIX_SIGNALBLOCKING=0
22400 if test $HAVE_POSIX_SIGNALBLOCKING = 0; then
22409 gl_LIBOBJS="$gl_LIBOBJS sigprocmask.$ac_objext"
22420 GNULIB_SIGPROCMASK=1
22426 gl_gnulib_enabled_sigprocmask=true
22429 func_gl_gnulib_m4code_stat ()
22431 if ! $gl_gnulib_enabled_stat; then
22435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
22436 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
22437 if test "${gl_cv_func_stat_dir_slash+set}" = set; then :
22438 $as_echo_n "(cached) " >&6
22439 else
22440 if test "$cross_compiling" = yes; then :
22441 case $host_os in
22442 mingw*) gl_cv_func_stat_dir_slash="guessing no";;
22443 *) gl_cv_func_stat_dir_slash="guessing yes";;
22444 esac
22445 else
22446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22447 /* end confdefs.h. */
22448 #include <sys/stat.h>
22451 main ()
22453 struct stat st; return stat (".", &st) != stat ("./", &st);
22455 return 0;
22457 _ACEOF
22458 if ac_fn_c_try_run "$LINENO"; then :
22459 gl_cv_func_stat_dir_slash=yes
22460 else
22461 gl_cv_func_stat_dir_slash=no
22463 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22464 conftest.$ac_objext conftest.beam conftest.$ac_ext
22468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
22469 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
22470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
22471 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
22472 if test "${gl_cv_func_stat_file_slash+set}" = set; then :
22473 $as_echo_n "(cached) " >&6
22474 else
22475 touch conftest.tmp
22476 # Assume that if we have lstat, we can also check symlinks.
22477 if test $ac_cv_func_lstat = yes; then
22478 ln -s conftest.tmp conftest.lnk
22480 if test "$cross_compiling" = yes; then :
22481 gl_cv_func_stat_file_slash="guessing no"
22482 else
22483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22484 /* end confdefs.h. */
22485 #include <sys/stat.h>
22488 main ()
22490 int result = 0;
22491 struct stat st;
22492 if (!stat ("conftest.tmp/", &st))
22493 result |= 1;
22494 #if HAVE_LSTAT
22495 if (!stat ("conftest.lnk/", &st))
22496 result |= 2;
22497 #endif
22498 return result;
22501 return 0;
22503 _ACEOF
22504 if ac_fn_c_try_run "$LINENO"; then :
22505 gl_cv_func_stat_file_slash=yes
22506 else
22507 gl_cv_func_stat_file_slash=no
22509 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22510 conftest.$ac_objext conftest.beam conftest.$ac_ext
22513 rm -f conftest.tmp conftest.lnk
22515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
22516 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
22517 case $gl_cv_func_stat_dir_slash in
22518 *no) REPLACE_STAT=1
22520 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
22522 esac
22523 case $gl_cv_func_stat_file_slash in
22524 *no) REPLACE_STAT=1
22526 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
22528 esac
22530 if test $REPLACE_STAT = 1; then
22539 gl_LIBOBJS="$gl_LIBOBJS stat.$ac_objext"
22551 GNULIB_STAT=1
22557 gl_gnulib_enabled_stat=true
22558 if test $REPLACE_STAT = 1; then
22559 func_gl_gnulib_m4code_dosname
22561 if test $REPLACE_STAT = 1; then
22562 func_gl_gnulib_m4code_pathmax
22564 if test $REPLACE_STAT = 1; then
22565 func_gl_gnulib_m4code_verify
22569 func_gl_gnulib_m4code_strtoll ()
22571 if ! $gl_gnulib_enabled_strtoll; then
22575 if test "$ac_cv_type_long_long_int" = yes; then
22576 for ac_func in strtoll
22577 do :
22578 ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
22579 if test "x$ac_cv_func_strtoll" = x""yes; then :
22580 cat >>confdefs.h <<_ACEOF
22581 #define HAVE_STRTOLL 1
22582 _ACEOF
22585 done
22587 if test $ac_cv_func_strtoll = no; then
22588 HAVE_STRTOLL=0
22592 if test $HAVE_STRTOLL = 0; then
22601 gl_LIBOBJS="$gl_LIBOBJS strtoll.$ac_objext"
22612 GNULIB_STRTOLL=1
22618 gl_gnulib_enabled_strtoll=true
22621 func_gl_gnulib_m4code_strtoull ()
22623 if ! $gl_gnulib_enabled_strtoull; then
22627 if test "$ac_cv_type_unsigned_long_long_int" = yes; then
22628 for ac_func in strtoull
22629 do :
22630 ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
22631 if test "x$ac_cv_func_strtoull" = x""yes; then :
22632 cat >>confdefs.h <<_ACEOF
22633 #define HAVE_STRTOULL 1
22634 _ACEOF
22637 done
22639 if test $ac_cv_func_strtoull = no; then
22640 HAVE_STRTOULL=0
22644 if test $HAVE_STRTOULL = 0; then
22653 gl_LIBOBJS="$gl_LIBOBJS strtoull.$ac_objext"
22664 GNULIB_STRTOULL=1
22670 gl_gnulib_enabled_strtoull=true
22673 func_gl_gnulib_m4code_verify ()
22675 if ! $gl_gnulib_enabled_verify; then
22676 gl_gnulib_enabled_verify=true
22679 if test $REPLACE_GETOPT = 1; then
22680 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36
22682 if test $REPLACE_LSTAT = 1; then
22683 func_gl_gnulib_m4code_dosname
22685 if test $REPLACE_LSTAT = 1; then
22686 func_gl_gnulib_m4code_stat
22688 if test $HAVE_PTHREAD_SIGMASK = 0 || test $REPLACE_PTHREAD_SIGMASK = 1; then
22689 func_gl_gnulib_m4code_sigprocmask
22691 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
22692 func_gl_gnulib_m4code_stat
22694 if test $ac_cv_func_strtoimax = no; then
22695 func_gl_gnulib_m4code_verify
22697 if test $ac_cv_func_strtoimax = no && test $ac_cv_type_long_long_int = yes; then
22698 func_gl_gnulib_m4code_strtoll
22700 if test $ac_cv_func_strtoumax = no; then
22701 func_gl_gnulib_m4code_verify
22703 if test $ac_cv_func_strtoumax = no && test $ac_cv_type_unsigned_long_long_int = yes; then
22704 func_gl_gnulib_m4code_strtoull
22707 if $gl_gnulib_enabled_dosname; then
22708 gl_GNULIB_ENABLED_dosname_TRUE=
22709 gl_GNULIB_ENABLED_dosname_FALSE='#'
22710 else
22711 gl_GNULIB_ENABLED_dosname_TRUE='#'
22712 gl_GNULIB_ENABLED_dosname_FALSE=
22715 if $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
22716 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE=
22717 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE='#'
22718 else
22719 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE='#'
22720 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE=
22723 if $gl_gnulib_enabled_pathmax; then
22724 gl_GNULIB_ENABLED_pathmax_TRUE=
22725 gl_GNULIB_ENABLED_pathmax_FALSE='#'
22726 else
22727 gl_GNULIB_ENABLED_pathmax_TRUE='#'
22728 gl_GNULIB_ENABLED_pathmax_FALSE=
22731 if $gl_gnulib_enabled_sigprocmask; then
22732 gl_GNULIB_ENABLED_sigprocmask_TRUE=
22733 gl_GNULIB_ENABLED_sigprocmask_FALSE='#'
22734 else
22735 gl_GNULIB_ENABLED_sigprocmask_TRUE='#'
22736 gl_GNULIB_ENABLED_sigprocmask_FALSE=
22739 if $gl_gnulib_enabled_stat; then
22740 gl_GNULIB_ENABLED_stat_TRUE=
22741 gl_GNULIB_ENABLED_stat_FALSE='#'
22742 else
22743 gl_GNULIB_ENABLED_stat_TRUE='#'
22744 gl_GNULIB_ENABLED_stat_FALSE=
22747 if $gl_gnulib_enabled_strtoll; then
22748 gl_GNULIB_ENABLED_strtoll_TRUE=
22749 gl_GNULIB_ENABLED_strtoll_FALSE='#'
22750 else
22751 gl_GNULIB_ENABLED_strtoll_TRUE='#'
22752 gl_GNULIB_ENABLED_strtoll_FALSE=
22755 if $gl_gnulib_enabled_strtoull; then
22756 gl_GNULIB_ENABLED_strtoull_TRUE=
22757 gl_GNULIB_ENABLED_strtoull_FALSE='#'
22758 else
22759 gl_GNULIB_ENABLED_strtoull_TRUE='#'
22760 gl_GNULIB_ENABLED_strtoull_FALSE=
22763 if $gl_gnulib_enabled_verify; then
22764 gl_GNULIB_ENABLED_verify_TRUE=
22765 gl_GNULIB_ENABLED_verify_FALSE='#'
22766 else
22767 gl_GNULIB_ENABLED_verify_TRUE='#'
22768 gl_GNULIB_ENABLED_verify_FALSE=
22771 # End of code from modules
22781 gltests_libdeps=
22782 gltests_ltlibdeps=
22792 gl_source_base='tests'
22793 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
22795 gl_module_indicator_condition=$gltests_WITNESS
22806 LIBGNU_LIBDEPS="$gl_libdeps"
22808 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
22812 case "$opsys" in
22813 aix4-2) LD_SWITCH_SYSTEM_TEMACS="-Wl,-bnodelcsect" ;;
22815 darwin)
22816 ## The -headerpad option tells ld (see man page) to leave room at the
22817 ## end of the header for adding load commands. Needed for dumping.
22818 ## 0x690 is the total size of 30 segment load commands (at 56
22819 ## each); under Cocoa 31 commands are required.
22820 if test "$HAVE_NS" = "yes"; then
22821 libs_nsgui="-framework AppKit"
22822 headerpad_extra=6C8
22823 else
22824 libs_nsgui=
22825 headerpad_extra=690
22827 LD_SWITCH_SYSTEM_TEMACS="-fno-pie -prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
22829 ## This is here because src/Makefile.in did some extra fiddling around
22830 ## with LD_SWITCH_SYSTEM. The cpp logic was:
22831 ## #ifndef LD_SWITCH_SYSTEM
22832 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
22833 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
22834 ## not using gcc, darwin system not on an alpha (ie darwin, since
22835 ## darwin + alpha does not occur).
22836 ## Because this was done in src/Makefile.in, the resulting part of
22837 ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link).
22838 ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS,
22839 ## rather than LD_SWITCH_SYSTEM.
22840 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
22841 LD_SWITCH_SYSTEM_TEMACS="-X $LD_SWITCH_SYSTEM_TEMACS"
22844 ## LD_SWITCH_X_SITE_RPATH is a -rpath option saying where to
22845 ## find X at run-time.
22846 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at the
22847 ## point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_RPATH
22848 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
22849 ## had different values in configure (in ac_link) and src/Makefile.in.
22850 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
22851 gnu*) LD_SWITCH_SYSTEM_TEMACS="\$(LD_SWITCH_X_SITE_RPATH)" ;;
22853 *) LD_SWITCH_SYSTEM_TEMACS= ;;
22854 esac
22856 if test "$NS_IMPL_GNUSTEP" = "yes"; then
22857 LD_SWITCH_SYSTEM_TEMACS="${LD_SWITCH_SYSTEM_TEMACS} -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES} -lgnustep-gui -lgnustep-base -lobjc -lpthread"
22863 LD_FIRSTFLAG=
22864 ORDINARY_LINK=
22865 case "$opsys" in
22866 ## gnu: GNU needs its own crt0.
22867 aix4-2|cygwin|darwin|gnu|hpux*|irix6-5|sol2*|unixware) ORDINARY_LINK=yes ;;
22869 ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the
22870 ## library search parth, i.e. it won't search /usr/lib for libc and
22871 ## friends. Using -nostartfiles instead avoids this problem, and
22872 ## will also work on earlier NetBSD releases.
22873 netbsd|openbsd) LD_FIRSTFLAG="-nostartfiles" ;;
22875 ## macpcc: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
22876 ## MkLinux/LinuxPPC needs this.
22877 ## ibms390x only supports opsys = gnu-linux so it can be added here.
22878 gnu-*)
22879 case "$machine" in
22880 macppc|ibms390x) LD_FIRSTFLAG="-nostdlib" ;;
22881 esac
22883 esac
22886 if test "x$ORDINARY_LINK" = "xyes"; then
22888 LD_FIRSTFLAG=""
22890 $as_echo "#define ORDINARY_LINK 1" >>confdefs.h
22893 ## The system files defining neither ORDINARY_LINK nor LD_FIRSTFLAG are:
22894 ## freebsd, gnu-* not on macppc|ibms390x.
22895 elif test "x$GCC" = "xyes" && test "x$LD_FIRSTFLAG" = "x"; then
22897 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
22898 ## places that are difficult to figure out at make time. Fortunately,
22899 ## these same versions allow you to pass arbitrary flags on to the
22900 ## linker, so there is no reason not to use it as a linker.
22902 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from
22903 ## searching for libraries in its internal directories, so we have to
22904 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below).
22905 LD_FIRSTFLAG="-nostdlib"
22908 ## FIXME? What setting of EDIT_LDFLAGS should this have?
22909 test "$NS_IMPL_GNUSTEP" = "yes" && LD_FIRSTFLAG="-rdynamic"
22914 ## FIXME? The logic here is not precisely the same as that above.
22915 ## There is no check here for a pre-defined LD_FIRSTFLAG.
22916 ## Should we only be setting LIB_GCC if LD ~ -nostdlib?
22917 LIB_GCC=
22918 if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
22920 case "$opsys" in
22921 freebsd|netbsd|openbsd) LIB_GCC= ;;
22923 gnu-*)
22924 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
22925 ## build on ARM EABI under GNU/Linux. (Bug#5518)
22926 case $host_cpu in
22927 arm*)
22928 LIB_GCC="-lgcc_s"
22931 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
22932 ## immediately undefine it again and redefine it to empty.
22933 ## Was the C_SWITCH_X_SITE part really necessary?
22934 ## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
22935 LIB_GCC=
22937 esac
22940 ## Ask GCC where to find libgcc.a.
22941 *) LIB_GCC=`$CC -print-libgcc-file-name 2> /dev/null` ;;
22942 esac
22946 ## If we're using X11/GNUstep, define some consequences.
22947 if test "$HAVE_X_WINDOWS" = "yes" || test "$HAVE_NS" = "yes"; then
22949 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
22952 $as_echo "#define HAVE_MOUSE 1" >>confdefs.h
22959 #### Report on what we decided to do.
22960 #### Report GTK as a toolkit, even if it doesn't use Xt.
22961 #### It makes printing result more understandable as using GTK sets
22962 #### toolkit_scroll_bars to yes by default.
22963 if test "${HAVE_GTK}" = "yes"; then
22964 USE_X_TOOLKIT=GTK
22967 and_machfile=
22968 if test -n "$machfile"; then
22969 and_machfile=" and \`${machfile}'"
22972 echo "
22973 Configured for \`${canonical}'.
22975 Where should the build process find the source code? ${srcdir}
22976 What operating system and machine description files should Emacs use?
22977 \`${opsysfile}'${and_machfile}
22978 What compiler should emacs be built with? ${CC} ${CFLAGS}
22979 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
22980 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
22981 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
22982 What window system should Emacs use? ${window_system}
22983 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
22985 if test -n "${x_includes}"; then
22986 echo " Where do we find X Windows header files? ${x_includes}"
22987 else
22988 echo " Where do we find X Windows header files? Standard dirs"
22990 if test -n "${x_libraries}"; then
22991 echo " Where do we find X Windows libraries? ${x_libraries}"
22992 else
22993 echo " Where do we find X Windows libraries? Standard dirs"
22996 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
22997 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
22998 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
22999 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
23000 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
23001 echo " Does Emacs use -lpng? ${HAVE_PNG}"
23002 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
23003 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
23005 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
23006 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
23007 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
23008 echo " Does Emacs use GSettings? ${HAVE_GSETTINGS}"
23009 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
23010 echo " Does Emacs use -lgnutls? ${HAVE_GNUTLS}"
23011 echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
23013 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
23014 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
23015 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
23016 echo " Does Emacs use -lxft? ${HAVE_XFT}"
23018 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
23019 echo
23021 if test -n "${EMACSDATA}"; then
23022 echo " Environment variable EMACSDATA set to: $EMACSDATA"
23024 if test -n "${EMACSDOC}"; then
23025 echo " Environment variable EMACSDOC set to: $EMACSDOC"
23028 if test $USE_XASSERTS = yes; then
23029 echo " Compiling with asserts turned on."
23030 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
23033 echo
23035 if test "$HAVE_NS" = "yes"; then
23036 echo
23037 echo "You must run \"${MAKE-make} install\" in order to test the built application.
23038 The installed application will go to nextstep/Emacs.app and can be
23039 run or moved from there."
23040 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
23041 echo "The application will be fully self-contained."
23042 else
23043 echo "The lisp resources for the application will be installed under ${prefix}.
23044 You may need to run \"${MAKE-make} install\" with sudo. The application will fail
23045 to run if these resources are not installed."
23047 echo
23050 if test "${opsys}" = "cygwin"; then
23051 case `uname -r` in
23052 1.5.*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: building Emacs on Cygwin 1.5 is not supported." >&5
23053 $as_echo "$as_me: WARNING: building Emacs on Cygwin 1.5 is not supported." >&2;}
23054 echo
23056 esac
23059 # Remove any trailing slashes in these variables.
23060 test "${prefix}" != NONE &&
23061 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
23062 test "${exec_prefix}" != NONE &&
23063 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
23065 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"
23067 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"
23070 opt_makefile=test/automated/Makefile
23072 if test -f $srcdir/${opt_makefile}.in; then
23073 SUBDIR_MAKEFILES="$SUBDIR_MAKEFILES $opt_makefile"
23074 ac_config_files="$ac_config_files test/automated/Makefile"
23079 opt_makefile=admin/unidata/Makefile
23081 if test -f $srcdir/${opt_makefile}.in; then
23082 SUBDIR_MAKEFILES="$SUBDIR_MAKEFILES $opt_makefile"
23083 ac_config_files="$ac_config_files admin/unidata/Makefile"
23088 SUBDIR_MAKEFILES_IN=`echo " ${SUBDIR_MAKEFILES}" | sed -e 's| | $(srcdir)/|g' -e 's|Makefile|Makefile.in|g'`
23092 ac_config_commands="$ac_config_commands mkdirs"
23095 ac_config_commands="$ac_config_commands epaths"
23098 ac_config_commands="$ac_config_commands gdbinit"
23101 cat >confcache <<\_ACEOF
23102 # This file is a shell script that caches the results of configure
23103 # tests run on this system so they can be shared between configure
23104 # scripts and configure runs, see configure's option --config-cache.
23105 # It is not useful on other systems. If it contains results you don't
23106 # want to keep, you may remove or edit it.
23108 # config.status only pays attention to the cache file if you give it
23109 # the --recheck option to rerun configure.
23111 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23112 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23113 # following values.
23115 _ACEOF
23117 # The following way of writing the cache mishandles newlines in values,
23118 # but we know of no workaround that is simple, portable, and efficient.
23119 # So, we kill variables containing newlines.
23120 # Ultrix sh set writes to stderr and can't be redirected directly,
23121 # and sets the high bit in the cache file unless we assign to the vars.
23123 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23124 eval ac_val=\$$ac_var
23125 case $ac_val in #(
23126 *${as_nl}*)
23127 case $ac_var in #(
23128 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
23129 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
23130 esac
23131 case $ac_var in #(
23132 _ | IFS | as_nl) ;; #(
23133 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
23134 *) { eval $ac_var=; unset $ac_var;} ;;
23135 esac ;;
23136 esac
23137 done
23139 (set) 2>&1 |
23140 case $as_nl`(ac_space=' '; set) 2>&1` in #(
23141 *${as_nl}ac_space=\ *)
23142 # `set' does not quote correctly, so add quotes: double-quote
23143 # substitution turns \\\\ into \\, and sed turns \\ into \.
23144 sed -n \
23145 "s/'/'\\\\''/g;
23146 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23147 ;; #(
23149 # `set' quotes correctly as required by POSIX, so do not add quotes.
23150 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
23152 esac |
23153 sort
23155 sed '
23156 /^ac_cv_env_/b end
23157 t clear
23158 :clear
23159 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23160 t end
23161 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23162 :end' >>confcache
23163 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23164 if test -w "$cache_file"; then
23165 test "x$cache_file" != "x/dev/null" &&
23166 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
23167 $as_echo "$as_me: updating cache $cache_file" >&6;}
23168 cat confcache >$cache_file
23169 else
23170 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
23171 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
23174 rm -f confcache
23176 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23177 # Let make expand exec_prefix.
23178 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23180 DEFS=-DHAVE_CONFIG_H
23182 ac_libobjs=
23183 ac_ltlibobjs=
23184 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23185 # 1. Remove the extension, and $U if already installed.
23186 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23187 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
23188 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
23189 # will be set to the directory where LIBOBJS objects are built.
23190 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
23191 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
23192 done
23193 LIBOBJS=$ac_libobjs
23195 LTLIBOBJS=$ac_ltlibobjs
23198 if test -n "$EXEEXT"; then
23199 am__EXEEXT_TRUE=
23200 am__EXEEXT_FALSE='#'
23201 else
23202 am__EXEEXT_TRUE='#'
23203 am__EXEEXT_FALSE=
23206 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
23207 as_fn_error "conditional \"AMDEP\" was never defined.
23208 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23210 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23211 as_fn_error "conditional \"am__fastdepCC\" was never defined.
23212 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23215 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
23216 as_fn_error "conditional \"GL_COND_LIBTOOL\" was never defined.
23217 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23219 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
23220 as_fn_error "conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
23221 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23224 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
23225 as_fn_error "conditional \"GL_GENERATE_STDINT_H\" was never defined.
23226 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23228 if test -z "${GL_GENERATE_STDARG_H_TRUE}" && test -z "${GL_GENERATE_STDARG_H_FALSE}"; then
23229 as_fn_error "conditional \"GL_GENERATE_STDARG_H\" was never defined.
23230 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23232 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
23233 as_fn_error "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
23234 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23236 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
23237 as_fn_error "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
23238 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23240 if test -z "${gl_GNULIB_ENABLED_dosname_TRUE}" && test -z "${gl_GNULIB_ENABLED_dosname_FALSE}"; then
23241 as_fn_error "conditional \"gl_GNULIB_ENABLED_dosname\" was never defined.
23242 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23244 if test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE}" && test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE}"; then
23245 as_fn_error "conditional \"gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36\" was never defined.
23246 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23248 if test -z "${gl_GNULIB_ENABLED_pathmax_TRUE}" && test -z "${gl_GNULIB_ENABLED_pathmax_FALSE}"; then
23249 as_fn_error "conditional \"gl_GNULIB_ENABLED_pathmax\" was never defined.
23250 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23252 if test -z "${gl_GNULIB_ENABLED_sigprocmask_TRUE}" && test -z "${gl_GNULIB_ENABLED_sigprocmask_FALSE}"; then
23253 as_fn_error "conditional \"gl_GNULIB_ENABLED_sigprocmask\" was never defined.
23254 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23256 if test -z "${gl_GNULIB_ENABLED_stat_TRUE}" && test -z "${gl_GNULIB_ENABLED_stat_FALSE}"; then
23257 as_fn_error "conditional \"gl_GNULIB_ENABLED_stat\" was never defined.
23258 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23260 if test -z "${gl_GNULIB_ENABLED_strtoll_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoll_FALSE}"; then
23261 as_fn_error "conditional \"gl_GNULIB_ENABLED_strtoll\" was never defined.
23262 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23264 if test -z "${gl_GNULIB_ENABLED_strtoull_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoull_FALSE}"; then
23265 as_fn_error "conditional \"gl_GNULIB_ENABLED_strtoull\" was never defined.
23266 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23268 if test -z "${gl_GNULIB_ENABLED_verify_TRUE}" && test -z "${gl_GNULIB_ENABLED_verify_FALSE}"; then
23269 as_fn_error "conditional \"gl_GNULIB_ENABLED_verify\" was never defined.
23270 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23273 gl_libobjs=
23274 gl_ltlibobjs=
23275 if test -n "$gl_LIBOBJS"; then
23276 # Remove the extension.
23277 sed_drop_objext='s/\.o$//;s/\.obj$//'
23278 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
23279 gl_libobjs="$gl_libobjs $i.$ac_objext"
23280 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
23281 done
23283 gl_LIBOBJS=$gl_libobjs
23285 gl_LTLIBOBJS=$gl_ltlibobjs
23289 gltests_libobjs=
23290 gltests_ltlibobjs=
23291 if test -n "$gltests_LIBOBJS"; then
23292 # Remove the extension.
23293 sed_drop_objext='s/\.o$//;s/\.obj$//'
23294 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
23295 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
23296 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
23297 done
23299 gltests_LIBOBJS=$gltests_libobjs
23301 gltests_LTLIBOBJS=$gltests_ltlibobjs
23305 : ${CONFIG_STATUS=./config.status}
23306 ac_write_fail=0
23307 ac_clean_files_save=$ac_clean_files
23308 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23309 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
23310 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
23311 as_write_fail=0
23312 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
23313 #! $SHELL
23314 # Generated by $as_me.
23315 # Run this file to recreate the current configuration.
23316 # Compiler output produced by configure, useful for debugging
23317 # configure, is in config.log if it exists.
23319 debug=false
23320 ac_cs_recheck=false
23321 ac_cs_silent=false
23323 SHELL=\${CONFIG_SHELL-$SHELL}
23324 export SHELL
23325 _ASEOF
23326 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
23327 ## -------------------- ##
23328 ## M4sh Initialization. ##
23329 ## -------------------- ##
23331 # Be more Bourne compatible
23332 DUALCASE=1; export DUALCASE # for MKS sh
23333 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
23334 emulate sh
23335 NULLCMD=:
23336 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23337 # is contrary to our usage. Disable this feature.
23338 alias -g '${1+"$@"}'='"$@"'
23339 setopt NO_GLOB_SUBST
23340 else
23341 case `(set -o) 2>/dev/null` in #(
23342 *posix*) :
23343 set -o posix ;; #(
23344 *) :
23346 esac
23350 as_nl='
23352 export as_nl
23353 # Printing a long string crashes Solaris 7 /usr/bin/printf.
23354 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
23355 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
23356 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
23357 # Prefer a ksh shell builtin over an external printf program on Solaris,
23358 # but without wasting forks for bash or zsh.
23359 if test -z "$BASH_VERSION$ZSH_VERSION" \
23360 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
23361 as_echo='print -r --'
23362 as_echo_n='print -rn --'
23363 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
23364 as_echo='printf %s\n'
23365 as_echo_n='printf %s'
23366 else
23367 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
23368 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
23369 as_echo_n='/usr/ucb/echo -n'
23370 else
23371 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
23372 as_echo_n_body='eval
23373 arg=$1;
23374 case $arg in #(
23375 *"$as_nl"*)
23376 expr "X$arg" : "X\\(.*\\)$as_nl";
23377 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
23378 esac;
23379 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
23381 export as_echo_n_body
23382 as_echo_n='sh -c $as_echo_n_body as_echo'
23384 export as_echo_body
23385 as_echo='sh -c $as_echo_body as_echo'
23388 # The user is always right.
23389 if test "${PATH_SEPARATOR+set}" != set; then
23390 PATH_SEPARATOR=:
23391 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
23392 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
23393 PATH_SEPARATOR=';'
23398 # IFS
23399 # We need space, tab and new line, in precisely that order. Quoting is
23400 # there to prevent editors from complaining about space-tab.
23401 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
23402 # splitting by setting IFS to empty value.)
23403 IFS=" "" $as_nl"
23405 # Find who we are. Look in the path if we contain no directory separator.
23406 case $0 in #((
23407 *[\\/]* ) as_myself=$0 ;;
23408 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23409 for as_dir in $PATH
23411 IFS=$as_save_IFS
23412 test -z "$as_dir" && as_dir=.
23413 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23414 done
23415 IFS=$as_save_IFS
23418 esac
23419 # We did not find ourselves, most probably we were run as `sh COMMAND'
23420 # in which case we are not to be found in the path.
23421 if test "x$as_myself" = x; then
23422 as_myself=$0
23424 if test ! -f "$as_myself"; then
23425 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23426 exit 1
23429 # Unset variables that we do not need and which cause bugs (e.g. in
23430 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
23431 # suppresses any "Segmentation fault" message there. '((' could
23432 # trigger a bug in pdksh 5.2.14.
23433 for as_var in BASH_ENV ENV MAIL MAILPATH
23434 do eval test x\${$as_var+set} = xset \
23435 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
23436 done
23437 PS1='$ '
23438 PS2='> '
23439 PS4='+ '
23441 # NLS nuisances.
23442 LC_ALL=C
23443 export LC_ALL
23444 LANGUAGE=C
23445 export LANGUAGE
23447 # CDPATH.
23448 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
23451 # as_fn_error ERROR [LINENO LOG_FD]
23452 # ---------------------------------
23453 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
23454 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
23455 # script with status $?, using 1 if that was 0.
23456 as_fn_error ()
23458 as_status=$?; test $as_status -eq 0 && as_status=1
23459 if test "$3"; then
23460 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
23461 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
23463 $as_echo "$as_me: error: $1" >&2
23464 as_fn_exit $as_status
23465 } # as_fn_error
23468 # as_fn_set_status STATUS
23469 # -----------------------
23470 # Set $? to STATUS, without forking.
23471 as_fn_set_status ()
23473 return $1
23474 } # as_fn_set_status
23476 # as_fn_exit STATUS
23477 # -----------------
23478 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
23479 as_fn_exit ()
23481 set +e
23482 as_fn_set_status $1
23483 exit $1
23484 } # as_fn_exit
23486 # as_fn_unset VAR
23487 # ---------------
23488 # Portably unset VAR.
23489 as_fn_unset ()
23491 { eval $1=; unset $1;}
23493 as_unset=as_fn_unset
23494 # as_fn_append VAR VALUE
23495 # ----------------------
23496 # Append the text in VALUE to the end of the definition contained in VAR. Take
23497 # advantage of any shell optimizations that allow amortized linear growth over
23498 # repeated appends, instead of the typical quadratic growth present in naive
23499 # implementations.
23500 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
23501 eval 'as_fn_append ()
23503 eval $1+=\$2
23505 else
23506 as_fn_append ()
23508 eval $1=\$$1\$2
23510 fi # as_fn_append
23512 # as_fn_arith ARG...
23513 # ------------------
23514 # Perform arithmetic evaluation on the ARGs, and store the result in the
23515 # global $as_val. Take advantage of shells that can avoid forks. The arguments
23516 # must be portable across $(()) and expr.
23517 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
23518 eval 'as_fn_arith ()
23520 as_val=$(( $* ))
23522 else
23523 as_fn_arith ()
23525 as_val=`expr "$@" || test $? -eq 1`
23527 fi # as_fn_arith
23530 if expr a : '\(a\)' >/dev/null 2>&1 &&
23531 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23532 as_expr=expr
23533 else
23534 as_expr=false
23537 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23538 as_basename=basename
23539 else
23540 as_basename=false
23543 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23544 as_dirname=dirname
23545 else
23546 as_dirname=false
23549 as_me=`$as_basename -- "$0" ||
23550 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23551 X"$0" : 'X\(//\)$' \| \
23552 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23553 $as_echo X/"$0" |
23554 sed '/^.*\/\([^/][^/]*\)\/*$/{
23555 s//\1/
23558 /^X\/\(\/\/\)$/{
23559 s//\1/
23562 /^X\/\(\/\).*/{
23563 s//\1/
23566 s/.*/./; q'`
23568 # Avoid depending upon Character Ranges.
23569 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23570 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23571 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23572 as_cr_digits='0123456789'
23573 as_cr_alnum=$as_cr_Letters$as_cr_digits
23575 ECHO_C= ECHO_N= ECHO_T=
23576 case `echo -n x` in #(((((
23577 -n*)
23578 case `echo 'xy\c'` in
23579 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
23580 xy) ECHO_C='\c';;
23581 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
23582 ECHO_T=' ';;
23583 esac;;
23585 ECHO_N='-n';;
23586 esac
23588 rm -f conf$$ conf$$.exe conf$$.file
23589 if test -d conf$$.dir; then
23590 rm -f conf$$.dir/conf$$.file
23591 else
23592 rm -f conf$$.dir
23593 mkdir conf$$.dir 2>/dev/null
23595 if (echo >conf$$.file) 2>/dev/null; then
23596 if ln -s conf$$.file conf$$ 2>/dev/null; then
23597 as_ln_s='ln -s'
23598 # ... but there are two gotchas:
23599 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23600 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23601 # In both cases, we have to default to `cp -p'.
23602 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23603 as_ln_s='cp -p'
23604 elif ln conf$$.file conf$$ 2>/dev/null; then
23605 as_ln_s=ln
23606 else
23607 as_ln_s='cp -p'
23609 else
23610 as_ln_s='cp -p'
23612 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23613 rmdir conf$$.dir 2>/dev/null
23616 # as_fn_mkdir_p
23617 # -------------
23618 # Create "$as_dir" as a directory, including parents if necessary.
23619 as_fn_mkdir_p ()
23622 case $as_dir in #(
23623 -*) as_dir=./$as_dir;;
23624 esac
23625 test -d "$as_dir" || eval $as_mkdir_p || {
23626 as_dirs=
23627 while :; do
23628 case $as_dir in #(
23629 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
23630 *) as_qdir=$as_dir;;
23631 esac
23632 as_dirs="'$as_qdir' $as_dirs"
23633 as_dir=`$as_dirname -- "$as_dir" ||
23634 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23635 X"$as_dir" : 'X\(//\)[^/]' \| \
23636 X"$as_dir" : 'X\(//\)$' \| \
23637 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23638 $as_echo X"$as_dir" |
23639 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23640 s//\1/
23643 /^X\(\/\/\)[^/].*/{
23644 s//\1/
23647 /^X\(\/\/\)$/{
23648 s//\1/
23651 /^X\(\/\).*/{
23652 s//\1/
23655 s/.*/./; q'`
23656 test -d "$as_dir" && break
23657 done
23658 test -z "$as_dirs" || eval "mkdir $as_dirs"
23659 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
23662 } # as_fn_mkdir_p
23663 if mkdir -p . 2>/dev/null; then
23664 as_mkdir_p='mkdir -p "$as_dir"'
23665 else
23666 test -d ./-p && rmdir ./-p
23667 as_mkdir_p=false
23670 if test -x / >/dev/null 2>&1; then
23671 as_test_x='test -x'
23672 else
23673 if ls -dL / >/dev/null 2>&1; then
23674 as_ls_L_option=L
23675 else
23676 as_ls_L_option=
23678 as_test_x='
23679 eval sh -c '\''
23680 if test -d "$1"; then
23681 test -d "$1/.";
23682 else
23683 case $1 in #(
23684 -*)set "./$1";;
23685 esac;
23686 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
23687 ???[sx]*):;;*)false;;esac;fi
23688 '\'' sh
23691 as_executable_p=$as_test_x
23693 # Sed expression to map a string onto a valid CPP name.
23694 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23696 # Sed expression to map a string onto a valid variable name.
23697 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23700 exec 6>&1
23701 ## ----------------------------------- ##
23702 ## Main body of $CONFIG_STATUS script. ##
23703 ## ----------------------------------- ##
23704 _ASEOF
23705 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
23707 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23708 # Save the log message, to keep $0 and so on meaningful, and to
23709 # report actual input values of CONFIG_FILES etc. instead of their
23710 # values after options handling.
23711 ac_log="
23712 This file was extended by emacs $as_me 24.1.50, which was
23713 generated by GNU Autoconf 2.65. Invocation command line was
23715 CONFIG_FILES = $CONFIG_FILES
23716 CONFIG_HEADERS = $CONFIG_HEADERS
23717 CONFIG_LINKS = $CONFIG_LINKS
23718 CONFIG_COMMANDS = $CONFIG_COMMANDS
23719 $ $0 $@
23721 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23724 _ACEOF
23726 case $ac_config_files in *"
23727 "*) set x $ac_config_files; shift; ac_config_files=$*;;
23728 esac
23730 case $ac_config_headers in *"
23731 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
23732 esac
23735 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23736 # Files that config.status was made for.
23737 config_files="$ac_config_files"
23738 config_headers="$ac_config_headers"
23739 config_commands="$ac_config_commands"
23741 _ACEOF
23743 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23744 ac_cs_usage="\
23745 \`$as_me' instantiates files and other configuration actions
23746 from templates according to the current configuration. Unless the files
23747 and actions are specified as TAGs, all are instantiated by default.
23749 Usage: $0 [OPTION]... [TAG]...
23751 -h, --help print this help, then exit
23752 -V, --version print version number and configuration settings, then exit
23753 --config print configuration, then exit
23754 -q, --quiet, --silent
23755 do not print progress messages
23756 -d, --debug don't remove temporary files
23757 --recheck update $as_me by reconfiguring in the same conditions
23758 --file=FILE[:TEMPLATE]
23759 instantiate the configuration file FILE
23760 --header=FILE[:TEMPLATE]
23761 instantiate the configuration header FILE
23763 Configuration files:
23764 $config_files
23766 Configuration headers:
23767 $config_headers
23769 Configuration commands:
23770 $config_commands
23772 Report bugs to the package provider."
23774 _ACEOF
23775 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23776 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
23777 ac_cs_version="\\
23778 emacs config.status 24.1.50
23779 configured by $0, generated by GNU Autoconf 2.65,
23780 with options \\"\$ac_cs_config\\"
23782 Copyright (C) 2009 Free Software Foundation, Inc.
23783 This config.status script is free software; the Free Software Foundation
23784 gives unlimited permission to copy, distribute and modify it."
23786 ac_pwd='$ac_pwd'
23787 srcdir='$srcdir'
23788 INSTALL='$INSTALL'
23789 MKDIR_P='$MKDIR_P'
23790 AWK='$AWK'
23791 test -n "\$AWK" || AWK=awk
23792 _ACEOF
23794 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23795 # The default lists apply if the user does not specify any file.
23796 ac_need_defaults=:
23797 while test $# != 0
23799 case $1 in
23800 --*=*)
23801 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23802 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23803 ac_shift=:
23806 ac_option=$1
23807 ac_optarg=$2
23808 ac_shift=shift
23810 esac
23812 case $ac_option in
23813 # Handling of the options.
23814 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23815 ac_cs_recheck=: ;;
23816 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23817 $as_echo "$ac_cs_version"; exit ;;
23818 --config | --confi | --conf | --con | --co | --c )
23819 $as_echo "$ac_cs_config"; exit ;;
23820 --debug | --debu | --deb | --de | --d | -d )
23821 debug=: ;;
23822 --file | --fil | --fi | --f )
23823 $ac_shift
23824 case $ac_optarg in
23825 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23826 esac
23827 as_fn_append CONFIG_FILES " '$ac_optarg'"
23828 ac_need_defaults=false;;
23829 --header | --heade | --head | --hea )
23830 $ac_shift
23831 case $ac_optarg in
23832 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23833 esac
23834 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
23835 ac_need_defaults=false;;
23836 --he | --h)
23837 # Conflict between --help and --header
23838 as_fn_error "ambiguous option: \`$1'
23839 Try \`$0 --help' for more information.";;
23840 --help | --hel | -h )
23841 $as_echo "$ac_cs_usage"; exit ;;
23842 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23843 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23844 ac_cs_silent=: ;;
23846 # This is an error.
23847 -*) as_fn_error "unrecognized option: \`$1'
23848 Try \`$0 --help' for more information." ;;
23850 *) as_fn_append ac_config_targets " $1"
23851 ac_need_defaults=false ;;
23853 esac
23854 shift
23855 done
23857 ac_configure_extra_args=
23859 if $ac_cs_silent; then
23860 exec 6>/dev/null
23861 ac_configure_extra_args="$ac_configure_extra_args --silent"
23864 _ACEOF
23865 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23866 if \$ac_cs_recheck; then
23867 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23868 shift
23869 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
23870 CONFIG_SHELL='$SHELL'
23871 export CONFIG_SHELL
23872 exec "\$@"
23875 _ACEOF
23876 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23877 exec 5>>config.log
23879 echo
23880 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23881 ## Running $as_me. ##
23882 _ASBOX
23883 $as_echo "$ac_log"
23884 } >&5
23886 _ACEOF
23887 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23889 # INIT-COMMANDS
23891 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
23892 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPPFLAGS="$CPPFLAGS"
23894 _ACEOF
23896 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23898 # Handling of arguments.
23899 for ac_config_target in $ac_config_targets
23901 case $ac_config_target in
23902 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
23903 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
23904 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23905 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
23906 "lib-src/Makefile") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile" ;;
23907 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
23908 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
23909 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
23910 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
23911 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
23912 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
23913 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
23914 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
23915 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
23916 "test/automated/Makefile") CONFIG_FILES="$CONFIG_FILES test/automated/Makefile" ;;
23917 "admin/unidata/Makefile") CONFIG_FILES="$CONFIG_FILES admin/unidata/Makefile" ;;
23918 "mkdirs") CONFIG_COMMANDS="$CONFIG_COMMANDS mkdirs" ;;
23919 "epaths") CONFIG_COMMANDS="$CONFIG_COMMANDS epaths" ;;
23920 "gdbinit") CONFIG_COMMANDS="$CONFIG_COMMANDS gdbinit" ;;
23922 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
23923 esac
23924 done
23927 # If the user did not use the arguments to specify the items to instantiate,
23928 # then the envvar interface is used. Set only those that are not.
23929 # We use the long form for the default assignment because of an extremely
23930 # bizarre bug on SunOS 4.1.3.
23931 if $ac_need_defaults; then
23932 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23933 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23934 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23937 # Have a temporary directory for convenience. Make it in the build tree
23938 # simply because there is no reason against having it here, and in addition,
23939 # creating and moving files from /tmp can sometimes cause problems.
23940 # Hook for its removal unless debugging.
23941 # Note that there is a small window in which the directory will not be cleaned:
23942 # after its creation but before its name has been assigned to `$tmp'.
23943 $debug ||
23945 tmp=
23946 trap 'exit_status=$?
23947 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23949 trap 'as_fn_exit 1' 1 2 13 15
23951 # Create a (secure) tmp directory for tmp files.
23954 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23955 test -n "$tmp" && test -d "$tmp"
23956 } ||
23958 tmp=./conf$$-$RANDOM
23959 (umask 077 && mkdir "$tmp")
23960 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
23962 # Set up the scripts for CONFIG_FILES section.
23963 # No need to generate them if there are no CONFIG_FILES.
23964 # This happens for instance with `./config.status config.h'.
23965 if test -n "$CONFIG_FILES"; then
23967 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
23968 ac_cs_awk_getline=:
23969 ac_cs_awk_pipe_init=
23970 ac_cs_awk_read_file='
23971 while ((getline aline < (F[key])) > 0)
23972 print(aline)
23973 close(F[key])'
23974 ac_cs_awk_pipe_fini=
23975 else
23976 ac_cs_awk_getline=false
23977 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
23978 ac_cs_awk_read_file='
23979 print "|#_!!_#|"
23980 print "cat " F[key] " &&"
23981 '$ac_cs_awk_pipe_init
23982 # The final `:' finishes the AND list.
23983 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
23985 ac_cr=`echo X | tr X '\015'`
23986 # On cygwin, bash can eat \r inside `` if the user requested igncr.
23987 # But we know of no other shell where ac_cr would be empty at this
23988 # point, so we can use a bashism as a fallback.
23989 if test "x$ac_cr" = x; then
23990 eval ac_cr=\$\'\\r\'
23992 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
23993 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
23994 ac_cs_awk_cr='\r'
23995 else
23996 ac_cs_awk_cr=$ac_cr
23999 echo 'BEGIN {' >"$tmp/subs1.awk" &&
24000 _ACEOF
24002 # Create commands to substitute file output variables.
24004 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
24005 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
24006 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
24007 echo "_ACAWK" &&
24008 echo "_ACEOF"
24009 } >conf$$files.sh &&
24010 . ./conf$$files.sh ||
24011 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
24012 rm -f conf$$files.sh
24015 echo "cat >conf$$subs.awk <<_ACEOF" &&
24016 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
24017 echo "_ACEOF"
24018 } >conf$$subs.sh ||
24019 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
24020 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
24021 ac_delim='%!_!# '
24022 for ac_last_try in false false false false false :; do
24023 . ./conf$$subs.sh ||
24024 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
24026 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
24027 if test $ac_delim_n = $ac_delim_num; then
24028 break
24029 elif $ac_last_try; then
24030 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
24031 else
24032 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24034 done
24035 rm -f conf$$subs.sh
24037 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24038 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
24039 _ACEOF
24040 sed -n '
24042 s/^/S["/; s/!.*/"]=/
24045 s/^[^!]*!//
24046 :repl
24047 t repl
24048 s/'"$ac_delim"'$//
24049 t delim
24052 s/\(.\{148\}\)..*/\1/
24053 t more1
24054 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
24057 b repl
24058 :more1
24059 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
24062 s/.\{148\}//
24063 t nl
24064 :delim
24066 s/\(.\{148\}\)..*/\1/
24067 t more2
24068 s/["\\]/\\&/g; s/^/"/; s/$/"/
24071 :more2
24072 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
24075 s/.\{148\}//
24076 t delim
24077 ' <conf$$subs.awk | sed '
24078 /^[^""]/{
24080 s/\n//
24082 ' >>$CONFIG_STATUS || ac_write_fail=1
24083 rm -f conf$$subs.awk
24084 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24085 _ACAWK
24086 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
24087 for (key in S) S_is_set[key] = 1
24088 FS = "\a"
24089 \$ac_cs_awk_pipe_init
24092 line = $ 0
24093 nfields = split(line, field, "@")
24094 substed = 0
24095 len = length(field[1])
24096 for (i = 2; i < nfields; i++) {
24097 key = field[i]
24098 keylen = length(key)
24099 if (S_is_set[key]) {
24100 value = S[key]
24101 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
24102 len += length(value) + length(field[++i])
24103 substed = 1
24104 } else
24105 len += 1 + keylen
24107 if (nfields == 3 && !substed) {
24108 key = field[2]
24109 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
24110 \$ac_cs_awk_read_file
24111 next
24114 print line
24116 \$ac_cs_awk_pipe_fini
24117 _ACAWK
24118 _ACEOF
24119 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24120 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
24121 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
24122 else
24124 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
24125 || as_fn_error "could not setup config files machinery" "$LINENO" 5
24126 _ACEOF
24128 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24129 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24130 # trailing colons and then remove the whole line if VPATH becomes empty
24131 # (actually we leave an empty line to preserve line numbers).
24132 if test "x$srcdir" = x.; then
24133 ac_vpsub='/^[ ]*VPATH[ ]*=/{
24134 s/:*\$(srcdir):*/:/
24135 s/:*\${srcdir}:*/:/
24136 s/:*@srcdir@:*/:/
24137 s/^\([^=]*=[ ]*\):*/\1/
24138 s/:*$//
24139 s/^[^=]*=[ ]*$//
24143 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24144 fi # test -n "$CONFIG_FILES"
24146 # Set up the scripts for CONFIG_HEADERS section.
24147 # No need to generate them if there are no CONFIG_HEADERS.
24148 # This happens for instance with `./config.status Makefile'.
24149 if test -n "$CONFIG_HEADERS"; then
24150 cat >"$tmp/defines.awk" <<\_ACAWK ||
24151 BEGIN {
24152 _ACEOF
24154 # Transform confdefs.h into an awk script `defines.awk', embedded as
24155 # here-document in config.status, that substitutes the proper values into
24156 # config.h.in to produce config.h.
24158 # Create a delimiter string that does not exist in confdefs.h, to ease
24159 # handling of long lines.
24160 ac_delim='%!_!# '
24161 for ac_last_try in false false :; do
24162 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
24163 if test -z "$ac_t"; then
24164 break
24165 elif $ac_last_try; then
24166 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
24167 else
24168 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24170 done
24172 # For the awk script, D is an array of macro values keyed by name,
24173 # likewise P contains macro parameters if any. Preserve backslash
24174 # newline sequences.
24176 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
24177 sed -n '
24178 s/.\{148\}/&'"$ac_delim"'/g
24179 t rset
24180 :rset
24181 s/^[ ]*#[ ]*define[ ][ ]*/ /
24182 t def
24184 :def
24185 s/\\$//
24186 t bsnl
24187 s/["\\]/\\&/g
24188 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
24189 D["\1"]=" \3"/p
24190 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
24192 :bsnl
24193 s/["\\]/\\&/g
24194 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
24195 D["\1"]=" \3\\\\\\n"\\/p
24196 t cont
24197 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
24198 t cont
24200 :cont
24202 s/.\{148\}/&'"$ac_delim"'/g
24203 t clear
24204 :clear
24205 s/\\$//
24206 t bsnlc
24207 s/["\\]/\\&/g; s/^/"/; s/$/"/p
24209 :bsnlc
24210 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
24211 b cont
24212 ' <confdefs.h | sed '
24213 s/'"$ac_delim"'/"\\\
24214 "/g' >>$CONFIG_STATUS || ac_write_fail=1
24216 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24217 for (key in D) D_is_set[key] = 1
24218 FS = "\a"
24220 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
24221 line = \$ 0
24222 split(line, arg, " ")
24223 if (arg[1] == "#") {
24224 defundef = arg[2]
24225 mac1 = arg[3]
24226 } else {
24227 defundef = substr(arg[1], 2)
24228 mac1 = arg[2]
24230 split(mac1, mac2, "(") #)
24231 macro = mac2[1]
24232 prefix = substr(line, 1, index(line, defundef) - 1)
24233 if (D_is_set[macro]) {
24234 # Preserve the white space surrounding the "#".
24235 print prefix "define", macro P[macro] D[macro]
24236 next
24237 } else {
24238 # Replace #undef with comments. This is necessary, for example,
24239 # in the case of _POSIX_SOURCE, which is predefined and required
24240 # on some systems where configure will not decide to define it.
24241 if (defundef == "undef") {
24242 print "/*", prefix defundef, macro, "*/"
24243 next
24247 { print }
24248 _ACAWK
24249 _ACEOF
24250 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24251 as_fn_error "could not setup config headers machinery" "$LINENO" 5
24252 fi # test -n "$CONFIG_HEADERS"
24255 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
24256 shift
24257 for ac_tag
24259 case $ac_tag in
24260 :[FHLC]) ac_mode=$ac_tag; continue;;
24261 esac
24262 case $ac_mode$ac_tag in
24263 :[FHL]*:*);;
24264 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
24265 :[FH]-) ac_tag=-:-;;
24266 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24267 esac
24268 ac_save_IFS=$IFS
24269 IFS=:
24270 set x $ac_tag
24271 IFS=$ac_save_IFS
24272 shift
24273 ac_file=$1
24274 shift
24276 case $ac_mode in
24277 :L) ac_source=$1;;
24278 :[FH])
24279 ac_file_inputs=
24280 for ac_f
24282 case $ac_f in
24283 -) ac_f="$tmp/stdin";;
24284 *) # Look for the file first in the build tree, then in the source tree
24285 # (if the path is not absolute). The absolute path cannot be DOS-style,
24286 # because $ac_f cannot contain `:'.
24287 test -f "$ac_f" ||
24288 case $ac_f in
24289 [\\/$]*) false;;
24290 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24291 esac ||
24292 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
24293 esac
24294 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
24295 as_fn_append ac_file_inputs " '$ac_f'"
24296 done
24298 # Let's still pretend it is `configure' which instantiates (i.e., don't
24299 # use $as_me), people would be surprised to read:
24300 # /* config.h. Generated by config.status. */
24301 configure_input='Generated from '`
24302 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
24303 `' by configure.'
24304 if test x"$ac_file" != x-; then
24305 configure_input="$ac_file. $configure_input"
24306 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
24307 $as_echo "$as_me: creating $ac_file" >&6;}
24309 # Neutralize special characters interpreted by sed in replacement strings.
24310 case $configure_input in #(
24311 *\&* | *\|* | *\\* )
24312 ac_sed_conf_input=`$as_echo "$configure_input" |
24313 sed 's/[\\\\&|]/\\\\&/g'`;; #(
24314 *) ac_sed_conf_input=$configure_input;;
24315 esac
24317 case $ac_tag in
24318 *:-:* | *:-) cat >"$tmp/stdin" \
24319 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
24320 esac
24322 esac
24324 ac_dir=`$as_dirname -- "$ac_file" ||
24325 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24326 X"$ac_file" : 'X\(//\)[^/]' \| \
24327 X"$ac_file" : 'X\(//\)$' \| \
24328 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24329 $as_echo X"$ac_file" |
24330 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24331 s//\1/
24334 /^X\(\/\/\)[^/].*/{
24335 s//\1/
24338 /^X\(\/\/\)$/{
24339 s//\1/
24342 /^X\(\/\).*/{
24343 s//\1/
24346 s/.*/./; q'`
24347 as_dir="$ac_dir"; as_fn_mkdir_p
24348 ac_builddir=.
24350 case "$ac_dir" in
24351 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24353 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
24354 # A ".." for each directory in $ac_dir_suffix.
24355 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
24356 case $ac_top_builddir_sub in
24357 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24358 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24359 esac ;;
24360 esac
24361 ac_abs_top_builddir=$ac_pwd
24362 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24363 # for backward compatibility:
24364 ac_top_builddir=$ac_top_build_prefix
24366 case $srcdir in
24367 .) # We are building in place.
24368 ac_srcdir=.
24369 ac_top_srcdir=$ac_top_builddir_sub
24370 ac_abs_top_srcdir=$ac_pwd ;;
24371 [\\/]* | ?:[\\/]* ) # Absolute name.
24372 ac_srcdir=$srcdir$ac_dir_suffix;
24373 ac_top_srcdir=$srcdir
24374 ac_abs_top_srcdir=$srcdir ;;
24375 *) # Relative name.
24376 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24377 ac_top_srcdir=$ac_top_build_prefix$srcdir
24378 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24379 esac
24380 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24383 case $ac_mode in
24386 # CONFIG_FILE
24389 case $INSTALL in
24390 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24391 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
24392 esac
24393 ac_MKDIR_P=$MKDIR_P
24394 case $MKDIR_P in
24395 [\\/$]* | ?:[\\/]* ) ;;
24396 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
24397 esac
24398 _ACEOF
24400 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24401 # If the template does not know about datarootdir, expand it.
24402 # FIXME: This hack should be removed a few years after 2.60.
24403 ac_datarootdir_hack=; ac_datarootdir_seen=
24404 ac_sed_dataroot='
24405 /datarootdir/ {
24409 /@datadir@/p
24410 /@docdir@/p
24411 /@infodir@/p
24412 /@localedir@/p
24413 /@mandir@/p'
24414 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
24415 *datarootdir*) ac_datarootdir_seen=yes;;
24416 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24417 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24418 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24419 _ACEOF
24420 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24421 ac_datarootdir_hack='
24422 s&@datadir@&$datadir&g
24423 s&@docdir@&$docdir&g
24424 s&@infodir@&$infodir&g
24425 s&@localedir@&$localedir&g
24426 s&@mandir@&$mandir&g
24427 s&\\\${datarootdir}&$datarootdir&g' ;;
24428 esac
24429 _ACEOF
24431 # Neutralize VPATH when `$srcdir' = `.'.
24432 # Shell code in configure.ac might set extrasub.
24433 # FIXME: do we really want to maintain this feature?
24434 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24435 ac_sed_extra="$ac_vpsub
24436 $extrasub
24437 _ACEOF
24438 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24440 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24441 s|@configure_input@|$ac_sed_conf_input|;t t
24442 s&@top_builddir@&$ac_top_builddir_sub&;t t
24443 s&@top_build_prefix@&$ac_top_build_prefix&;t t
24444 s&@srcdir@&$ac_srcdir&;t t
24445 s&@abs_srcdir@&$ac_abs_srcdir&;t t
24446 s&@top_srcdir@&$ac_top_srcdir&;t t
24447 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24448 s&@builddir@&$ac_builddir&;t t
24449 s&@abs_builddir@&$ac_abs_builddir&;t t
24450 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24451 s&@INSTALL@&$ac_INSTALL&;t t
24452 s&@MKDIR_P@&$ac_MKDIR_P&;t t
24453 $ac_datarootdir_hack
24455 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
24456 if $ac_cs_awk_getline; then
24457 $AWK -f "$tmp/subs.awk"
24458 else
24459 $AWK -f "$tmp/subs.awk" | $SHELL
24460 fi >$tmp/out \
24461 || as_fn_error "could not create $ac_file" "$LINENO" 5
24463 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24464 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
24465 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
24466 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24467 which seems to be undefined. Please make sure it is defined." >&5
24468 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24469 which seems to be undefined. Please make sure it is defined." >&2;}
24471 rm -f "$tmp/stdin"
24472 case $ac_file in
24473 -) cat "$tmp/out" && rm -f "$tmp/out";;
24474 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
24475 esac \
24476 || as_fn_error "could not create $ac_file" "$LINENO" 5
24480 # CONFIG_HEADER
24482 if test x"$ac_file" != x-; then
24484 $as_echo "/* $configure_input */" \
24485 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
24486 } >"$tmp/config.h" \
24487 || as_fn_error "could not create $ac_file" "$LINENO" 5
24488 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
24489 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
24490 $as_echo "$as_me: $ac_file is unchanged" >&6;}
24491 else
24492 rm -f "$ac_file"
24493 mv "$tmp/config.h" "$ac_file" \
24494 || as_fn_error "could not create $ac_file" "$LINENO" 5
24496 else
24497 $as_echo "/* $configure_input */" \
24498 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
24499 || as_fn_error "could not create -" "$LINENO" 5
24501 # Compute "$ac_file"'s index in $config_headers.
24502 _am_arg="$ac_file"
24503 _am_stamp_count=1
24504 for _am_header in $config_headers :; do
24505 case $_am_header in
24506 $_am_arg | $_am_arg:* )
24507 break ;;
24509 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
24510 esac
24511 done
24512 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
24513 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24514 X"$_am_arg" : 'X\(//\)[^/]' \| \
24515 X"$_am_arg" : 'X\(//\)$' \| \
24516 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
24517 $as_echo X"$_am_arg" |
24518 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24519 s//\1/
24522 /^X\(\/\/\)[^/].*/{
24523 s//\1/
24526 /^X\(\/\/\)$/{
24527 s//\1/
24530 /^X\(\/\).*/{
24531 s//\1/
24534 s/.*/./; q'`/stamp-h$_am_stamp_count
24537 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
24538 $as_echo "$as_me: executing $ac_file commands" >&6;}
24540 esac
24543 case $ac_file$ac_mode in
24544 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
24545 # Autoconf 2.62 quotes --file arguments for eval, but not when files
24546 # are listed without --file. Let's play safe and only enable the eval
24547 # if we detect the quoting.
24548 case $CONFIG_FILES in
24549 *\'*) eval set x "$CONFIG_FILES" ;;
24550 *) set x $CONFIG_FILES ;;
24551 esac
24552 shift
24553 for mf
24555 # Strip MF so we end up with the name of the file.
24556 mf=`echo "$mf" | sed -e 's/:.*$//'`
24557 # Check whether this is an Automake generated Makefile or not.
24558 # We used to match only the files named `Makefile.in', but
24559 # some people rename them; so instead we look at the file content.
24560 # Grep'ing the first line is not enough: some people post-process
24561 # each Makefile.in and add a new line on top of each file to say so.
24562 # Grep'ing the whole file is not good either: AIX grep has a line
24563 # limit of 2048, but all sed's we know have understand at least 4000.
24564 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
24565 dirpart=`$as_dirname -- "$mf" ||
24566 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24567 X"$mf" : 'X\(//\)[^/]' \| \
24568 X"$mf" : 'X\(//\)$' \| \
24569 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
24570 $as_echo X"$mf" |
24571 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24572 s//\1/
24575 /^X\(\/\/\)[^/].*/{
24576 s//\1/
24579 /^X\(\/\/\)$/{
24580 s//\1/
24583 /^X\(\/\).*/{
24584 s//\1/
24587 s/.*/./; q'`
24588 else
24589 continue
24591 # Extract the definition of DEPDIR, am__include, and am__quote
24592 # from the Makefile without running `make'.
24593 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
24594 test -z "$DEPDIR" && continue
24595 am__include=`sed -n 's/^am__include = //p' < "$mf"`
24596 test -z "am__include" && continue
24597 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
24598 # When using ansi2knr, U may be empty or an underscore; expand it
24599 U=`sed -n 's/^U = //p' < "$mf"`
24600 # Find all dependency output files, they are included files with
24601 # $(DEPDIR) in their names. We invoke sed twice because it is the
24602 # simplest approach to changing $(DEPDIR) to its actual value in the
24603 # expansion.
24604 for file in `sed -n "
24605 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
24606 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
24607 # Make sure the directory exists.
24608 test -f "$dirpart/$file" && continue
24609 fdir=`$as_dirname -- "$file" ||
24610 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24611 X"$file" : 'X\(//\)[^/]' \| \
24612 X"$file" : 'X\(//\)$' \| \
24613 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
24614 $as_echo X"$file" |
24615 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24616 s//\1/
24619 /^X\(\/\/\)[^/].*/{
24620 s//\1/
24623 /^X\(\/\/\)$/{
24624 s//\1/
24627 /^X\(\/\).*/{
24628 s//\1/
24631 s/.*/./; q'`
24632 as_dir=$dirpart/$fdir; as_fn_mkdir_p
24633 # echo "creating $dirpart/$file"
24634 echo '# dummy' > "$dirpart/$file"
24635 done
24636 done
24639 "mkdirs":C)
24640 for dir in etc lisp ; do
24641 test -d ${dir} || mkdir ${dir}
24642 done
24644 "epaths":C)
24645 echo creating src/epaths.h
24646 ${MAKE-make} epaths-force
24648 "gdbinit":C)
24649 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
24650 echo creating src/.gdbinit
24651 echo source $srcdir/src/.gdbinit > src/.gdbinit
24655 esac
24656 done # for ac_tag
24659 as_fn_exit 0
24660 _ACEOF
24661 ac_clean_files=$ac_clean_files_save
24663 test $ac_write_fail = 0 ||
24664 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
24667 # configure is writing to config.log, and then calls config.status.
24668 # config.status does its own redirection, appending to config.log.
24669 # Unfortunately, on DOS this fails, as config.log is still kept open
24670 # by configure, so config.status won't be able to write to it; its
24671 # output is simply discarded. So we exec the FD to /dev/null,
24672 # effectively closing config.log, so it can be properly (re)opened and
24673 # appended to by config.status. When coming back to configure, we
24674 # need to make the FD available again.
24675 if test "$no_create" != yes; then
24676 ac_cs_success=:
24677 ac_config_status_args=
24678 test "$silent" = yes &&
24679 ac_config_status_args="$ac_config_status_args --quiet"
24680 exec 5>/dev/null
24681 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24682 exec 5>>config.log
24683 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24684 # would make configure fail if this is the last instruction.
24685 $ac_cs_success || as_fn_exit $?
24687 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
24688 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
24689 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}