* iswitchb.el (iswitchb-all-frames): Fix last change.
[emacs.git] / autogen / configure
blobc207cff105e49fd81ce295f3ea1de57163999e17
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 HAVE_MAKEINFO
1186 GZIP_PROG
1187 INSTALL_INFO
1188 GNULIB_WARN_CFLAGS
1189 WERROR_CFLAGS
1190 RANLIB
1191 ARFLAGS
1193 EGREP
1194 GREP
1196 am__fastdepCC_FALSE
1197 am__fastdepCC_TRUE
1198 CCDEPMODE
1199 AMDEPBACKSLASH
1200 AMDEP_FALSE
1201 AMDEP_TRUE
1202 am__quote
1203 am__include
1204 DEPDIR
1205 OBJEXT
1206 EXEEXT
1207 ac_ct_CC
1208 CPPFLAGS
1209 LDFLAGS
1210 CFLAGS
1212 host_os
1213 host_vendor
1214 host_cpu
1215 host
1216 build_os
1217 build_vendor
1218 build_cpu
1219 build
1220 PROFILING_CFLAGS
1221 MAINT
1222 GZIP_INFO
1223 cache_file
1224 am__untar
1225 am__tar
1226 AMTAR
1227 am__leading_dot
1228 SET_MAKE
1230 mkdir_p
1231 MKDIR_P
1232 INSTALL_STRIP_PROGRAM
1233 STRIP
1234 install_sh
1235 MAKEINFO
1236 AUTOHEADER
1237 AUTOMAKE
1238 AUTOCONF
1239 ACLOCAL
1240 VERSION
1241 PACKAGE
1242 CYGPATH_W
1243 am__isrc
1244 INSTALL_DATA
1245 INSTALL_SCRIPT
1246 INSTALL_PROGRAM
1247 target_alias
1248 host_alias
1249 build_alias
1250 LIBS
1251 ECHO_T
1252 ECHO_N
1253 ECHO_C
1254 DEFS
1255 mandir
1256 localedir
1257 libdir
1258 psdir
1259 pdfdir
1260 dvidir
1261 htmldir
1262 infodir
1263 docdir
1264 oldincludedir
1265 includedir
1266 localstatedir
1267 sharedstatedir
1268 sysconfdir
1269 datadir
1270 datarootdir
1271 libexecdir
1272 sbindir
1273 bindir
1274 program_transform_name
1275 prefix
1276 exec_prefix
1277 PACKAGE_URL
1278 PACKAGE_BUGREPORT
1279 PACKAGE_STRING
1280 PACKAGE_VERSION
1281 PACKAGE_TARNAME
1282 PACKAGE_NAME
1283 PATH_SEPARATOR
1284 SHELL'
1285 ac_subst_files='deps_frag
1286 lisp_frag
1287 ns_frag'
1288 ac_user_opts='
1289 enable_option_checking
1290 with_pop
1291 with_kerberos
1292 with_kerberos5
1293 with_hesiod
1294 with_mmdf
1295 with_mail_unlink
1296 with_mailhost
1297 with_sound
1298 with_sync_input
1299 with_x_toolkit
1300 with_wide_int
1301 with_xpm
1302 with_jpeg
1303 with_tiff
1304 with_gif
1305 with_png
1306 with_rsvg
1307 with_xml2
1308 with_imagemagick
1309 with_xft
1310 with_libotf
1311 with_m17n_flt
1312 with_toolkit_scroll_bars
1313 with_xaw3d
1314 with_xim
1315 with_ns
1316 with_gpm
1317 with_dbus
1318 with_gconf
1319 with_gsettings
1320 with_selinux
1321 with_gnutls
1322 with_makeinfo
1323 with_compress_info
1324 with_pkg_config_prog
1325 with_crt_dir
1326 with_gameuser
1327 with_gnustep_conf
1328 enable_ns_self_contained
1329 enable_asserts
1330 enable_maintainer_mode
1331 enable_locallisppath
1332 enable_checking
1333 enable_use_lisp_union_type
1334 enable_profiling
1335 enable_autodepend
1336 enable_dependency_tracking
1337 enable_largefile
1338 enable_gcc_warnings
1339 with_x
1341 ac_precious_vars='build_alias
1342 host_alias
1343 target_alias
1345 CFLAGS
1346 LDFLAGS
1347 LIBS
1348 CPPFLAGS
1350 XMKMF'
1353 # Initialize some variables set by options.
1354 ac_init_help=
1355 ac_init_version=false
1356 ac_unrecognized_opts=
1357 ac_unrecognized_sep=
1358 # The variables have the same names as the options, with
1359 # dashes changed to underlines.
1360 cache_file=/dev/null
1361 exec_prefix=NONE
1362 no_create=
1363 no_recursion=
1364 prefix=NONE
1365 program_prefix=NONE
1366 program_suffix=NONE
1367 program_transform_name=s,x,x,
1368 silent=
1369 site=
1370 srcdir=
1371 verbose=
1372 x_includes=NONE
1373 x_libraries=NONE
1375 # Installation directory options.
1376 # These are left unexpanded so users can "make install exec_prefix=/foo"
1377 # and all the variables that are supposed to be based on exec_prefix
1378 # by default will actually change.
1379 # Use braces instead of parens because sh, perl, etc. also accept them.
1380 # (The list follows the same order as the GNU Coding Standards.)
1381 bindir='${exec_prefix}/bin'
1382 sbindir='${exec_prefix}/sbin'
1383 libexecdir='${exec_prefix}/libexec'
1384 datarootdir='${prefix}/share'
1385 datadir='${datarootdir}'
1386 sysconfdir='${prefix}/etc'
1387 sharedstatedir='${prefix}/com'
1388 localstatedir='${prefix}/var'
1389 includedir='${prefix}/include'
1390 oldincludedir='/usr/include'
1391 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1392 infodir='${datarootdir}/info'
1393 htmldir='${docdir}'
1394 dvidir='${docdir}'
1395 pdfdir='${docdir}'
1396 psdir='${docdir}'
1397 libdir='${exec_prefix}/lib'
1398 localedir='${datarootdir}/locale'
1399 mandir='${datarootdir}/man'
1401 ac_prev=
1402 ac_dashdash=
1403 for ac_option
1405 # If the previous option needs an argument, assign it.
1406 if test -n "$ac_prev"; then
1407 eval $ac_prev=\$ac_option
1408 ac_prev=
1409 continue
1412 case $ac_option in
1413 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1414 *) ac_optarg=yes ;;
1415 esac
1417 # Accept the important Cygnus configure options, so we can diagnose typos.
1419 case $ac_dashdash$ac_option in
1421 ac_dashdash=yes ;;
1423 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1424 ac_prev=bindir ;;
1425 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1426 bindir=$ac_optarg ;;
1428 -build | --build | --buil | --bui | --bu)
1429 ac_prev=build_alias ;;
1430 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1431 build_alias=$ac_optarg ;;
1433 -cache-file | --cache-file | --cache-fil | --cache-fi \
1434 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1435 ac_prev=cache_file ;;
1436 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1437 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1438 cache_file=$ac_optarg ;;
1440 --config-cache | -C)
1441 cache_file=config.cache ;;
1443 -datadir | --datadir | --datadi | --datad)
1444 ac_prev=datadir ;;
1445 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1446 datadir=$ac_optarg ;;
1448 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1449 | --dataroo | --dataro | --datar)
1450 ac_prev=datarootdir ;;
1451 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1452 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1453 datarootdir=$ac_optarg ;;
1455 -disable-* | --disable-*)
1456 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1457 # Reject names that are not valid shell variable names.
1458 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1459 as_fn_error "invalid feature name: $ac_useropt"
1460 ac_useropt_orig=$ac_useropt
1461 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1462 case $ac_user_opts in
1464 "enable_$ac_useropt"
1465 "*) ;;
1466 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1467 ac_unrecognized_sep=', ';;
1468 esac
1469 eval enable_$ac_useropt=no ;;
1471 -docdir | --docdir | --docdi | --doc | --do)
1472 ac_prev=docdir ;;
1473 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1474 docdir=$ac_optarg ;;
1476 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1477 ac_prev=dvidir ;;
1478 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1479 dvidir=$ac_optarg ;;
1481 -enable-* | --enable-*)
1482 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1483 # Reject names that are not valid shell variable names.
1484 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1485 as_fn_error "invalid feature name: $ac_useropt"
1486 ac_useropt_orig=$ac_useropt
1487 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1488 case $ac_user_opts in
1490 "enable_$ac_useropt"
1491 "*) ;;
1492 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1493 ac_unrecognized_sep=', ';;
1494 esac
1495 eval enable_$ac_useropt=\$ac_optarg ;;
1497 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1498 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1499 | --exec | --exe | --ex)
1500 ac_prev=exec_prefix ;;
1501 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1502 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1503 | --exec=* | --exe=* | --ex=*)
1504 exec_prefix=$ac_optarg ;;
1506 -gas | --gas | --ga | --g)
1507 # Obsolete; use --with-gas.
1508 with_gas=yes ;;
1510 -help | --help | --hel | --he | -h)
1511 ac_init_help=long ;;
1512 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1513 ac_init_help=recursive ;;
1514 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1515 ac_init_help=short ;;
1517 -host | --host | --hos | --ho)
1518 ac_prev=host_alias ;;
1519 -host=* | --host=* | --hos=* | --ho=*)
1520 host_alias=$ac_optarg ;;
1522 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1523 ac_prev=htmldir ;;
1524 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1525 | --ht=*)
1526 htmldir=$ac_optarg ;;
1528 -includedir | --includedir | --includedi | --included | --include \
1529 | --includ | --inclu | --incl | --inc)
1530 ac_prev=includedir ;;
1531 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1532 | --includ=* | --inclu=* | --incl=* | --inc=*)
1533 includedir=$ac_optarg ;;
1535 -infodir | --infodir | --infodi | --infod | --info | --inf)
1536 ac_prev=infodir ;;
1537 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1538 infodir=$ac_optarg ;;
1540 -libdir | --libdir | --libdi | --libd)
1541 ac_prev=libdir ;;
1542 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1543 libdir=$ac_optarg ;;
1545 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1546 | --libexe | --libex | --libe)
1547 ac_prev=libexecdir ;;
1548 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1549 | --libexe=* | --libex=* | --libe=*)
1550 libexecdir=$ac_optarg ;;
1552 -localedir | --localedir | --localedi | --localed | --locale)
1553 ac_prev=localedir ;;
1554 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1555 localedir=$ac_optarg ;;
1557 -localstatedir | --localstatedir | --localstatedi | --localstated \
1558 | --localstate | --localstat | --localsta | --localst | --locals)
1559 ac_prev=localstatedir ;;
1560 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1561 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1562 localstatedir=$ac_optarg ;;
1564 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1565 ac_prev=mandir ;;
1566 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1567 mandir=$ac_optarg ;;
1569 -nfp | --nfp | --nf)
1570 # Obsolete; use --without-fp.
1571 with_fp=no ;;
1573 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1574 | --no-cr | --no-c | -n)
1575 no_create=yes ;;
1577 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1578 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1579 no_recursion=yes ;;
1581 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1582 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1583 | --oldin | --oldi | --old | --ol | --o)
1584 ac_prev=oldincludedir ;;
1585 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1586 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1587 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1588 oldincludedir=$ac_optarg ;;
1590 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1591 ac_prev=prefix ;;
1592 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1593 prefix=$ac_optarg ;;
1595 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1596 | --program-pre | --program-pr | --program-p)
1597 ac_prev=program_prefix ;;
1598 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1599 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1600 program_prefix=$ac_optarg ;;
1602 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1603 | --program-suf | --program-su | --program-s)
1604 ac_prev=program_suffix ;;
1605 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1606 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1607 program_suffix=$ac_optarg ;;
1609 -program-transform-name | --program-transform-name \
1610 | --program-transform-nam | --program-transform-na \
1611 | --program-transform-n | --program-transform- \
1612 | --program-transform | --program-transfor \
1613 | --program-transfo | --program-transf \
1614 | --program-trans | --program-tran \
1615 | --progr-tra | --program-tr | --program-t)
1616 ac_prev=program_transform_name ;;
1617 -program-transform-name=* | --program-transform-name=* \
1618 | --program-transform-nam=* | --program-transform-na=* \
1619 | --program-transform-n=* | --program-transform-=* \
1620 | --program-transform=* | --program-transfor=* \
1621 | --program-transfo=* | --program-transf=* \
1622 | --program-trans=* | --program-tran=* \
1623 | --progr-tra=* | --program-tr=* | --program-t=*)
1624 program_transform_name=$ac_optarg ;;
1626 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1627 ac_prev=pdfdir ;;
1628 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1629 pdfdir=$ac_optarg ;;
1631 -psdir | --psdir | --psdi | --psd | --ps)
1632 ac_prev=psdir ;;
1633 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1634 psdir=$ac_optarg ;;
1636 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1637 | -silent | --silent | --silen | --sile | --sil)
1638 silent=yes ;;
1640 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1641 ac_prev=sbindir ;;
1642 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1643 | --sbi=* | --sb=*)
1644 sbindir=$ac_optarg ;;
1646 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1647 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1648 | --sharedst | --shareds | --shared | --share | --shar \
1649 | --sha | --sh)
1650 ac_prev=sharedstatedir ;;
1651 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1652 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1653 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1654 | --sha=* | --sh=*)
1655 sharedstatedir=$ac_optarg ;;
1657 -site | --site | --sit)
1658 ac_prev=site ;;
1659 -site=* | --site=* | --sit=*)
1660 site=$ac_optarg ;;
1662 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1663 ac_prev=srcdir ;;
1664 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1665 srcdir=$ac_optarg ;;
1667 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1668 | --syscon | --sysco | --sysc | --sys | --sy)
1669 ac_prev=sysconfdir ;;
1670 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1671 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1672 sysconfdir=$ac_optarg ;;
1674 -target | --target | --targe | --targ | --tar | --ta | --t)
1675 ac_prev=target_alias ;;
1676 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1677 target_alias=$ac_optarg ;;
1679 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1680 verbose=yes ;;
1682 -version | --version | --versio | --versi | --vers | -V)
1683 ac_init_version=: ;;
1685 -with-* | --with-*)
1686 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1687 # Reject names that are not valid shell variable names.
1688 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1689 as_fn_error "invalid package name: $ac_useropt"
1690 ac_useropt_orig=$ac_useropt
1691 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1692 case $ac_user_opts in
1694 "with_$ac_useropt"
1695 "*) ;;
1696 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1697 ac_unrecognized_sep=', ';;
1698 esac
1699 eval with_$ac_useropt=\$ac_optarg ;;
1701 -without-* | --without-*)
1702 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1703 # Reject names that are not valid shell variable names.
1704 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1705 as_fn_error "invalid package name: $ac_useropt"
1706 ac_useropt_orig=$ac_useropt
1707 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1708 case $ac_user_opts in
1710 "with_$ac_useropt"
1711 "*) ;;
1712 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1713 ac_unrecognized_sep=', ';;
1714 esac
1715 eval with_$ac_useropt=no ;;
1717 --x)
1718 # Obsolete; use --with-x.
1719 with_x=yes ;;
1721 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1722 | --x-incl | --x-inc | --x-in | --x-i)
1723 ac_prev=x_includes ;;
1724 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1725 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1726 x_includes=$ac_optarg ;;
1728 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1729 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1730 ac_prev=x_libraries ;;
1731 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1732 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1733 x_libraries=$ac_optarg ;;
1735 -*) as_fn_error "unrecognized option: \`$ac_option'
1736 Try \`$0 --help' for more information."
1739 *=*)
1740 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1741 # Reject names that are not valid shell variable names.
1742 case $ac_envvar in #(
1743 '' | [0-9]* | *[!_$as_cr_alnum]* )
1744 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1745 esac
1746 eval $ac_envvar=\$ac_optarg
1747 export $ac_envvar ;;
1750 # FIXME: should be removed in autoconf 3.0.
1751 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1752 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1753 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1754 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1757 esac
1758 done
1760 if test -n "$ac_prev"; then
1761 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1762 as_fn_error "missing argument to $ac_option"
1765 if test -n "$ac_unrecognized_opts"; then
1766 case $enable_option_checking in
1767 no) ;;
1768 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1769 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1770 esac
1773 # Check all directory arguments for consistency.
1774 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1775 datadir sysconfdir sharedstatedir localstatedir includedir \
1776 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1777 libdir localedir mandir
1779 eval ac_val=\$$ac_var
1780 # Remove trailing slashes.
1781 case $ac_val in
1782 */ )
1783 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1784 eval $ac_var=\$ac_val;;
1785 esac
1786 # Be sure to have absolute directory names.
1787 case $ac_val in
1788 [\\/$]* | ?:[\\/]* ) continue;;
1789 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1790 esac
1791 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1792 done
1794 # There might be people who depend on the old broken behavior: `$host'
1795 # used to hold the argument of --host etc.
1796 # FIXME: To remove some day.
1797 build=$build_alias
1798 host=$host_alias
1799 target=$target_alias
1801 # FIXME: To remove some day.
1802 if test "x$host_alias" != x; then
1803 if test "x$build_alias" = x; then
1804 cross_compiling=maybe
1805 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1806 If a cross compiler is detected then cross compile mode will be used." >&2
1807 elif test "x$build_alias" != "x$host_alias"; then
1808 cross_compiling=yes
1812 ac_tool_prefix=
1813 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1815 test "$silent" = yes && exec 6>/dev/null
1818 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1819 ac_ls_di=`ls -di .` &&
1820 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1821 as_fn_error "working directory cannot be determined"
1822 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1823 as_fn_error "pwd does not report name of working directory"
1826 # Find the source files, if location was not specified.
1827 if test -z "$srcdir"; then
1828 ac_srcdir_defaulted=yes
1829 # Try the directory containing this script, then the parent directory.
1830 ac_confdir=`$as_dirname -- "$as_myself" ||
1831 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1832 X"$as_myself" : 'X\(//\)[^/]' \| \
1833 X"$as_myself" : 'X\(//\)$' \| \
1834 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1835 $as_echo X"$as_myself" |
1836 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1837 s//\1/
1840 /^X\(\/\/\)[^/].*/{
1841 s//\1/
1844 /^X\(\/\/\)$/{
1845 s//\1/
1848 /^X\(\/\).*/{
1849 s//\1/
1852 s/.*/./; q'`
1853 srcdir=$ac_confdir
1854 if test ! -r "$srcdir/$ac_unique_file"; then
1855 srcdir=..
1857 else
1858 ac_srcdir_defaulted=no
1860 if test ! -r "$srcdir/$ac_unique_file"; then
1861 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1862 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1864 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1865 ac_abs_confdir=`(
1866 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1867 pwd)`
1868 # When building in place, set srcdir=.
1869 if test "$ac_abs_confdir" = "$ac_pwd"; then
1870 srcdir=.
1872 # Remove unnecessary trailing slashes from srcdir.
1873 # Double slashes in file names in object file debugging info
1874 # mess up M-x gdb in Emacs.
1875 case $srcdir in
1876 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1877 esac
1878 for ac_var in $ac_precious_vars; do
1879 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1880 eval ac_env_${ac_var}_value=\$${ac_var}
1881 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1882 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1883 done
1886 # Report the --help message.
1888 if test "$ac_init_help" = "long"; then
1889 # Omit some internal or obsolete options to make the list less imposing.
1890 # This message is too long to be a string in the A/UX 3.1 sh.
1891 cat <<_ACEOF
1892 \`configure' configures emacs 24.1.50 to adapt to many kinds of systems.
1894 Usage: $0 [OPTION]... [VAR=VALUE]...
1896 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1897 VAR=VALUE. See below for descriptions of some of the useful variables.
1899 Defaults for the options are specified in brackets.
1901 Configuration:
1902 -h, --help display this help and exit
1903 --help=short display options specific to this package
1904 --help=recursive display the short help of all the included packages
1905 -V, --version display version information and exit
1906 -q, --quiet, --silent do not print \`checking...' messages
1907 --cache-file=FILE cache test results in FILE [disabled]
1908 -C, --config-cache alias for \`--cache-file=config.cache'
1909 -n, --no-create do not create output files
1910 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1912 Installation directories:
1913 --prefix=PREFIX install architecture-independent files in PREFIX
1914 [$ac_default_prefix]
1915 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1916 [PREFIX]
1918 By default, \`make install' will install all the files in
1919 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1920 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1921 for instance \`--prefix=\$HOME'.
1923 For better control, use the options below.
1925 Fine tuning of the installation directories:
1926 --bindir=DIR user executables [EPREFIX/bin]
1927 --sbindir=DIR system admin executables [EPREFIX/sbin]
1928 --libexecdir=DIR program executables [EPREFIX/libexec]
1929 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1930 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1931 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1932 --libdir=DIR object code libraries [EPREFIX/lib]
1933 --includedir=DIR C header files [PREFIX/include]
1934 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1935 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1936 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1937 --infodir=DIR info documentation [DATAROOTDIR/info]
1938 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1939 --mandir=DIR man documentation [DATAROOTDIR/man]
1940 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1941 --htmldir=DIR html documentation [DOCDIR]
1942 --dvidir=DIR dvi documentation [DOCDIR]
1943 --pdfdir=DIR pdf documentation [DOCDIR]
1944 --psdir=DIR ps documentation [DOCDIR]
1945 _ACEOF
1947 cat <<\_ACEOF
1949 Program names:
1950 --program-prefix=PREFIX prepend PREFIX to installed program names
1951 --program-suffix=SUFFIX append SUFFIX to installed program names
1952 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1954 X features:
1955 --x-includes=DIR X include files are in DIR
1956 --x-libraries=DIR X library files are in DIR
1958 System types:
1959 --build=BUILD configure for building on BUILD [guessed]
1960 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1961 _ACEOF
1964 if test -n "$ac_init_help"; then
1965 case $ac_init_help in
1966 short | recursive ) echo "Configuration of emacs 24.1.50:";;
1967 esac
1968 cat <<\_ACEOF
1970 Optional Features:
1971 --disable-option-checking ignore unrecognized --enable/--with options
1972 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1973 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1974 --disable-ns-self-contained
1975 disable self contained build under NeXTstep
1976 --enable-asserts compile code with asserts enabled
1977 --disable-maintainer-mode
1978 disable make rules and dependencies not useful (and
1979 sometimes confusing) to the casual installer
1980 --enable-locallisppath=PATH
1981 directories Emacs should search for lisp files
1982 specific to this site
1983 --enable-checking[=LIST]
1984 enable expensive run-time checks. With LIST, enable
1985 only specific categories of checks. Categories are:
1986 all,yes,no. Flags are: stringbytes, stringoverrun,
1987 stringfreelist, xmallocoverrun, conslist
1988 --enable-use-lisp-union-type
1989 use a union for the Lisp_Object data type. This is
1990 only useful for development for catching certain
1991 types of bugs.
1992 --enable-profiling build emacs with profiling support. This might not
1993 work on all platforms
1994 --enable-autodepend automatically generate dependencies to .h-files.
1995 Requires GNU Make and Gcc. Enabled if GNU Make and
1996 Gcc is found
1997 --disable-dependency-tracking speeds up one-time build
1998 --enable-dependency-tracking do not reject slow dependency extractors
1999 --disable-largefile omit support for large files
2000 --enable-gcc-warnings turn on lots of GCC warnings (for developers)
2002 Optional Packages:
2003 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
2004 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
2005 --without-pop don't support POP mail retrieval with movemail
2006 --with-kerberos support Kerberos-authenticated POP
2007 --with-kerberos5 support Kerberos version 5 authenticated POP
2008 --with-hesiod support Hesiod to get the POP server host
2009 --with-mmdf support MMDF mailboxes
2010 --with-mail-unlink unlink, rather than empty, mail spool after reading
2011 --with-mailhost=HOSTNAME
2012 string giving default POP mail host
2013 --without-sound don't compile with sound support
2014 --without-sync-input process async input synchronously
2015 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes or gtk, gtk3,
2016 lucid or athena, motif, no)
2017 --with-wide-int prefer wide Emacs integers (typically 62-bit)
2018 --without-xpm don't compile with XPM image support
2019 --without-jpeg don't compile with JPEG image support
2020 --without-tiff don't compile with TIFF image support
2021 --without-gif don't compile with GIF image support
2022 --without-png don't compile with PNG image support
2023 --without-rsvg don't compile with SVG image support
2024 --without-xml2 don't compile with XML parsing support
2025 --without-imagemagick don't compile with ImageMagick image support
2026 --without-xft don't use XFT for anti aliased fonts
2027 --without-libotf don't use libotf for OpenType font support
2028 --without-m17n-flt don't use m17n-flt for text shaping
2029 --without-toolkit-scroll-bars
2030 don't use Motif or Xaw3d scroll bars
2031 --without-xaw3d don't use Xaw3d
2032 --without-xim don't use X11 XIM
2033 --with-ns use NeXTstep (Cocoa or GNUstep) windowing system
2034 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
2035 console
2036 --without-dbus don't compile with D-Bus support
2037 --without-gconf don't compile with GConf support
2038 --without-gsettings don't compile with GSettings support
2039 --without-selinux don't compile with SELinux support
2040 --without-gnutls don't use -lgnutls for SSL/TLS support
2041 --without-makeinfo don't require makeinfo for building manuals
2042 --without-compress-info don't compress the installed Info pages
2043 --with-pkg-config-prog=PATH
2044 path to pkg-config for finding GTK and librsvg
2045 --with-crt-dir=DIR directory containing crtn.o etc. The default is
2046 /usr/lib, or /usr/lib64 on some platforms.
2047 --with-gameuser=USER user for shared game score files
2048 --with-gnustep-conf=PATH
2049 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
2050 or /etc/GNUstep/GNUstep.conf
2051 --with-x use the X Window System
2053 Some influential environment variables:
2054 CC C compiler command
2055 CFLAGS C compiler flags
2056 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2057 nonstandard directory <lib dir>
2058 LIBS libraries to pass to the linker, e.g. -l<library>
2059 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2060 you have headers in a nonstandard directory <include dir>
2061 CPP C preprocessor
2062 XMKMF Path to xmkmf, Makefile generator for X Window System
2064 Use these variables to override the choices made by `configure' or to help
2065 it to find libraries and programs with nonstandard names/locations.
2067 Report bugs to the package provider.
2068 _ACEOF
2069 ac_status=$?
2072 if test "$ac_init_help" = "recursive"; then
2073 # If there are subdirs, report their specific --help.
2074 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2075 test -d "$ac_dir" ||
2076 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2077 continue
2078 ac_builddir=.
2080 case "$ac_dir" in
2081 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2083 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2084 # A ".." for each directory in $ac_dir_suffix.
2085 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2086 case $ac_top_builddir_sub in
2087 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2088 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2089 esac ;;
2090 esac
2091 ac_abs_top_builddir=$ac_pwd
2092 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2093 # for backward compatibility:
2094 ac_top_builddir=$ac_top_build_prefix
2096 case $srcdir in
2097 .) # We are building in place.
2098 ac_srcdir=.
2099 ac_top_srcdir=$ac_top_builddir_sub
2100 ac_abs_top_srcdir=$ac_pwd ;;
2101 [\\/]* | ?:[\\/]* ) # Absolute name.
2102 ac_srcdir=$srcdir$ac_dir_suffix;
2103 ac_top_srcdir=$srcdir
2104 ac_abs_top_srcdir=$srcdir ;;
2105 *) # Relative name.
2106 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2107 ac_top_srcdir=$ac_top_build_prefix$srcdir
2108 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2109 esac
2110 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2112 cd "$ac_dir" || { ac_status=$?; continue; }
2113 # Check for guested configure.
2114 if test -f "$ac_srcdir/configure.gnu"; then
2115 echo &&
2116 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2117 elif test -f "$ac_srcdir/configure"; then
2118 echo &&
2119 $SHELL "$ac_srcdir/configure" --help=recursive
2120 else
2121 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2122 fi || ac_status=$?
2123 cd "$ac_pwd" || { ac_status=$?; break; }
2124 done
2127 test -n "$ac_init_help" && exit $ac_status
2128 if $ac_init_version; then
2129 cat <<\_ACEOF
2130 emacs configure 24.1.50
2131 generated by GNU Autoconf 2.65
2133 Copyright (C) 2009 Free Software Foundation, Inc.
2134 This configure script is free software; the Free Software Foundation
2135 gives unlimited permission to copy, distribute and modify it.
2136 _ACEOF
2137 exit
2140 ## ------------------------ ##
2141 ## Autoconf initialization. ##
2142 ## ------------------------ ##
2144 # ac_fn_c_try_compile LINENO
2145 # --------------------------
2146 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2147 ac_fn_c_try_compile ()
2149 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2150 rm -f conftest.$ac_objext
2151 if { { ac_try="$ac_compile"
2152 case "(($ac_try" in
2153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2154 *) ac_try_echo=$ac_try;;
2155 esac
2156 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2157 $as_echo "$ac_try_echo"; } >&5
2158 (eval "$ac_compile") 2>conftest.err
2159 ac_status=$?
2160 if test -s conftest.err; then
2161 grep -v '^ *+' conftest.err >conftest.er1
2162 cat conftest.er1 >&5
2163 mv -f conftest.er1 conftest.err
2165 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2166 test $ac_status = 0; } && {
2167 test -z "$ac_c_werror_flag" ||
2168 test ! -s conftest.err
2169 } && test -s conftest.$ac_objext; then :
2170 ac_retval=0
2171 else
2172 $as_echo "$as_me: failed program was:" >&5
2173 sed 's/^/| /' conftest.$ac_ext >&5
2175 ac_retval=1
2177 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2178 as_fn_set_status $ac_retval
2180 } # ac_fn_c_try_compile
2182 # ac_fn_c_try_cpp LINENO
2183 # ----------------------
2184 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2185 ac_fn_c_try_cpp ()
2187 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2188 if { { ac_try="$ac_cpp conftest.$ac_ext"
2189 case "(($ac_try" in
2190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2191 *) ac_try_echo=$ac_try;;
2192 esac
2193 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2194 $as_echo "$ac_try_echo"; } >&5
2195 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2196 ac_status=$?
2197 if test -s conftest.err; then
2198 grep -v '^ *+' conftest.err >conftest.er1
2199 cat conftest.er1 >&5
2200 mv -f conftest.er1 conftest.err
2202 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2203 test $ac_status = 0; } >/dev/null && {
2204 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2205 test ! -s conftest.err
2206 }; then :
2207 ac_retval=0
2208 else
2209 $as_echo "$as_me: failed program was:" >&5
2210 sed 's/^/| /' conftest.$ac_ext >&5
2212 ac_retval=1
2214 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2215 as_fn_set_status $ac_retval
2217 } # ac_fn_c_try_cpp
2219 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2220 # -------------------------------------------------------
2221 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2222 # the include files in INCLUDES and setting the cache variable VAR
2223 # accordingly.
2224 ac_fn_c_check_header_mongrel ()
2226 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2227 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2229 $as_echo_n "checking for $2... " >&6; }
2230 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2231 $as_echo_n "(cached) " >&6
2233 eval ac_res=\$$3
2234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2235 $as_echo "$ac_res" >&6; }
2236 else
2237 # Is the header compilable?
2238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2239 $as_echo_n "checking $2 usability... " >&6; }
2240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2241 /* end confdefs.h. */
2243 #include <$2>
2244 _ACEOF
2245 if ac_fn_c_try_compile "$LINENO"; then :
2246 ac_header_compiler=yes
2247 else
2248 ac_header_compiler=no
2250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2252 $as_echo "$ac_header_compiler" >&6; }
2254 # Is the header present?
2255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2256 $as_echo_n "checking $2 presence... " >&6; }
2257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2258 /* end confdefs.h. */
2259 #include <$2>
2260 _ACEOF
2261 if ac_fn_c_try_cpp "$LINENO"; then :
2262 ac_header_preproc=yes
2263 else
2264 ac_header_preproc=no
2266 rm -f conftest.err conftest.$ac_ext
2267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2268 $as_echo "$ac_header_preproc" >&6; }
2270 # So? What about this header?
2271 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2272 yes:no: )
2273 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2274 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2275 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2276 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2278 no:yes:* )
2279 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2280 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2281 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2282 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2283 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2284 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2285 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2286 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2287 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2288 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2290 esac
2291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2292 $as_echo_n "checking for $2... " >&6; }
2293 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2294 $as_echo_n "(cached) " >&6
2295 else
2296 eval "$3=\$ac_header_compiler"
2298 eval ac_res=\$$3
2299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2300 $as_echo "$ac_res" >&6; }
2302 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2304 } # ac_fn_c_check_header_mongrel
2306 # ac_fn_c_try_run LINENO
2307 # ----------------------
2308 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2309 # that executables *can* be run.
2310 ac_fn_c_try_run ()
2312 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2313 if { { ac_try="$ac_link"
2314 case "(($ac_try" in
2315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2316 *) ac_try_echo=$ac_try;;
2317 esac
2318 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2319 $as_echo "$ac_try_echo"; } >&5
2320 (eval "$ac_link") 2>&5
2321 ac_status=$?
2322 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2323 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2324 { { case "(($ac_try" in
2325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2326 *) ac_try_echo=$ac_try;;
2327 esac
2328 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2329 $as_echo "$ac_try_echo"; } >&5
2330 (eval "$ac_try") 2>&5
2331 ac_status=$?
2332 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2333 test $ac_status = 0; }; }; then :
2334 ac_retval=0
2335 else
2336 $as_echo "$as_me: program exited with status $ac_status" >&5
2337 $as_echo "$as_me: failed program was:" >&5
2338 sed 's/^/| /' conftest.$ac_ext >&5
2340 ac_retval=$ac_status
2342 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2343 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2344 as_fn_set_status $ac_retval
2346 } # ac_fn_c_try_run
2348 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2349 # -------------------------------------------------------
2350 # Tests whether HEADER exists and can be compiled using the include files in
2351 # INCLUDES, setting the cache variable VAR accordingly.
2352 ac_fn_c_check_header_compile ()
2354 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2356 $as_echo_n "checking for $2... " >&6; }
2357 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2358 $as_echo_n "(cached) " >&6
2359 else
2360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2361 /* end confdefs.h. */
2363 #include <$2>
2364 _ACEOF
2365 if ac_fn_c_try_compile "$LINENO"; then :
2366 eval "$3=yes"
2367 else
2368 eval "$3=no"
2370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2372 eval ac_res=\$$3
2373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2374 $as_echo "$ac_res" >&6; }
2375 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2377 } # ac_fn_c_check_header_compile
2379 # ac_fn_c_try_link LINENO
2380 # -----------------------
2381 # Try to link conftest.$ac_ext, and return whether this succeeded.
2382 ac_fn_c_try_link ()
2384 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2385 rm -f conftest.$ac_objext conftest$ac_exeext
2386 if { { ac_try="$ac_link"
2387 case "(($ac_try" in
2388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2389 *) ac_try_echo=$ac_try;;
2390 esac
2391 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2392 $as_echo "$ac_try_echo"; } >&5
2393 (eval "$ac_link") 2>conftest.err
2394 ac_status=$?
2395 if test -s conftest.err; then
2396 grep -v '^ *+' conftest.err >conftest.er1
2397 cat conftest.er1 >&5
2398 mv -f conftest.er1 conftest.err
2400 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2401 test $ac_status = 0; } && {
2402 test -z "$ac_c_werror_flag" ||
2403 test ! -s conftest.err
2404 } && test -s conftest$ac_exeext && {
2405 test "$cross_compiling" = yes ||
2406 $as_test_x conftest$ac_exeext
2407 }; then :
2408 ac_retval=0
2409 else
2410 $as_echo "$as_me: failed program was:" >&5
2411 sed 's/^/| /' conftest.$ac_ext >&5
2413 ac_retval=1
2415 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2416 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2417 # interfere with the next link command; also delete a directory that is
2418 # left behind by Apple's compiler. We do this before executing the actions.
2419 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2420 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2421 as_fn_set_status $ac_retval
2423 } # ac_fn_c_try_link
2425 # ac_fn_c_check_decl LINENO SYMBOL VAR
2426 # ------------------------------------
2427 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2428 ac_fn_c_check_decl ()
2430 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2432 $as_echo_n "checking whether $2 is declared... " >&6; }
2433 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2434 $as_echo_n "(cached) " >&6
2435 else
2436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2437 /* end confdefs.h. */
2440 main ()
2442 #ifndef $2
2443 (void) $2;
2444 #endif
2447 return 0;
2449 _ACEOF
2450 if ac_fn_c_try_compile "$LINENO"; then :
2451 eval "$3=yes"
2452 else
2453 eval "$3=no"
2455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2457 eval ac_res=\$$3
2458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2459 $as_echo "$ac_res" >&6; }
2460 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2462 } # ac_fn_c_check_decl
2464 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2465 # ----------------------------------------------
2466 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2467 ac_fn_c_check_header_preproc ()
2469 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2471 $as_echo_n "checking for $2... " >&6; }
2472 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2473 $as_echo_n "(cached) " >&6
2474 else
2475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2476 /* end confdefs.h. */
2477 #include <$2>
2478 _ACEOF
2479 if ac_fn_c_try_cpp "$LINENO"; then :
2480 eval "$3=yes"
2481 else
2482 eval "$3=no"
2484 rm -f conftest.err conftest.$ac_ext
2486 eval ac_res=\$$3
2487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2488 $as_echo "$ac_res" >&6; }
2489 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2491 } # ac_fn_c_check_header_preproc
2493 # ac_fn_c_check_func LINENO FUNC VAR
2494 # ----------------------------------
2495 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2496 ac_fn_c_check_func ()
2498 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2500 $as_echo_n "checking for $2... " >&6; }
2501 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2502 $as_echo_n "(cached) " >&6
2503 else
2504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2505 /* end confdefs.h. */
2506 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2507 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2508 #define $2 innocuous_$2
2510 /* System header to define __stub macros and hopefully few prototypes,
2511 which can conflict with char $2 (); below.
2512 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2513 <limits.h> exists even on freestanding compilers. */
2515 #ifdef __STDC__
2516 # include <limits.h>
2517 #else
2518 # include <assert.h>
2519 #endif
2521 #undef $2
2523 /* Override any GCC internal prototype to avoid an error.
2524 Use char because int might match the return type of a GCC
2525 builtin and then its argument prototype would still apply. */
2526 #ifdef __cplusplus
2527 extern "C"
2528 #endif
2529 char $2 ();
2530 /* The GNU C library defines this for functions which it implements
2531 to always fail with ENOSYS. Some functions are actually named
2532 something starting with __ and the normal name is an alias. */
2533 #if defined __stub_$2 || defined __stub___$2
2534 choke me
2535 #endif
2538 main ()
2540 return $2 ();
2542 return 0;
2544 _ACEOF
2545 if ac_fn_c_try_link "$LINENO"; then :
2546 eval "$3=yes"
2547 else
2548 eval "$3=no"
2550 rm -f core conftest.err conftest.$ac_objext \
2551 conftest$ac_exeext conftest.$ac_ext
2553 eval ac_res=\$$3
2554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2555 $as_echo "$ac_res" >&6; }
2556 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2558 } # ac_fn_c_check_func
2560 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2561 # ----------------------------------------------------
2562 # Tries to find if the field MEMBER exists in type AGGR, after including
2563 # INCLUDES, setting cache variable VAR accordingly.
2564 ac_fn_c_check_member ()
2566 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2568 $as_echo_n "checking for $2.$3... " >&6; }
2569 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2570 $as_echo_n "(cached) " >&6
2571 else
2572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2573 /* end confdefs.h. */
2576 main ()
2578 static $2 ac_aggr;
2579 if (ac_aggr.$3)
2580 return 0;
2582 return 0;
2584 _ACEOF
2585 if ac_fn_c_try_compile "$LINENO"; then :
2586 eval "$4=yes"
2587 else
2588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2589 /* end confdefs.h. */
2592 main ()
2594 static $2 ac_aggr;
2595 if (sizeof ac_aggr.$3)
2596 return 0;
2598 return 0;
2600 _ACEOF
2601 if ac_fn_c_try_compile "$LINENO"; then :
2602 eval "$4=yes"
2603 else
2604 eval "$4=no"
2606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2610 eval ac_res=\$$4
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2612 $as_echo "$ac_res" >&6; }
2613 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2615 } # ac_fn_c_check_member
2617 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2618 # -------------------------------------------
2619 # Tests whether TYPE exists after having included INCLUDES, setting cache
2620 # variable VAR accordingly.
2621 ac_fn_c_check_type ()
2623 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2625 $as_echo_n "checking for $2... " >&6; }
2626 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2627 $as_echo_n "(cached) " >&6
2628 else
2629 eval "$3=no"
2630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2631 /* end confdefs.h. */
2634 main ()
2636 if (sizeof ($2))
2637 return 0;
2639 return 0;
2641 _ACEOF
2642 if ac_fn_c_try_compile "$LINENO"; then :
2643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2644 /* end confdefs.h. */
2647 main ()
2649 if (sizeof (($2)))
2650 return 0;
2652 return 0;
2654 _ACEOF
2655 if ac_fn_c_try_compile "$LINENO"; then :
2657 else
2658 eval "$3=yes"
2660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2664 eval ac_res=\$$3
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2666 $as_echo "$ac_res" >&6; }
2667 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2669 } # ac_fn_c_check_type
2671 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2672 # --------------------------------------------
2673 # Tries to find the compile-time value of EXPR in a program that includes
2674 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2675 # computed
2676 ac_fn_c_compute_int ()
2678 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2679 if test "$cross_compiling" = yes; then
2680 # Depending upon the size, compute the lo and hi bounds.
2681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2682 /* end confdefs.h. */
2685 main ()
2687 static int test_array [1 - 2 * !(($2) >= 0)];
2688 test_array [0] = 0
2691 return 0;
2693 _ACEOF
2694 if ac_fn_c_try_compile "$LINENO"; then :
2695 ac_lo=0 ac_mid=0
2696 while :; do
2697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2698 /* end confdefs.h. */
2701 main ()
2703 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2704 test_array [0] = 0
2707 return 0;
2709 _ACEOF
2710 if ac_fn_c_try_compile "$LINENO"; then :
2711 ac_hi=$ac_mid; break
2712 else
2713 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2714 if test $ac_lo -le $ac_mid; then
2715 ac_lo= ac_hi=
2716 break
2718 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2721 done
2722 else
2723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2724 /* end confdefs.h. */
2727 main ()
2729 static int test_array [1 - 2 * !(($2) < 0)];
2730 test_array [0] = 0
2733 return 0;
2735 _ACEOF
2736 if ac_fn_c_try_compile "$LINENO"; then :
2737 ac_hi=-1 ac_mid=-1
2738 while :; do
2739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2740 /* end confdefs.h. */
2743 main ()
2745 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2746 test_array [0] = 0
2749 return 0;
2751 _ACEOF
2752 if ac_fn_c_try_compile "$LINENO"; then :
2753 ac_lo=$ac_mid; break
2754 else
2755 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2756 if test $ac_mid -le $ac_hi; then
2757 ac_lo= ac_hi=
2758 break
2760 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2763 done
2764 else
2765 ac_lo= ac_hi=
2767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2770 # Binary search between lo and hi bounds.
2771 while test "x$ac_lo" != "x$ac_hi"; do
2772 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2774 /* end confdefs.h. */
2777 main ()
2779 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2780 test_array [0] = 0
2783 return 0;
2785 _ACEOF
2786 if ac_fn_c_try_compile "$LINENO"; then :
2787 ac_hi=$ac_mid
2788 else
2789 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2792 done
2793 case $ac_lo in #((
2794 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2795 '') ac_retval=1 ;;
2796 esac
2797 else
2798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2799 /* end confdefs.h. */
2801 static long int longval () { return $2; }
2802 static unsigned long int ulongval () { return $2; }
2803 #include <stdio.h>
2804 #include <stdlib.h>
2806 main ()
2809 FILE *f = fopen ("conftest.val", "w");
2810 if (! f)
2811 return 1;
2812 if (($2) < 0)
2814 long int i = longval ();
2815 if (i != ($2))
2816 return 1;
2817 fprintf (f, "%ld", i);
2819 else
2821 unsigned long int i = ulongval ();
2822 if (i != ($2))
2823 return 1;
2824 fprintf (f, "%lu", i);
2826 /* Do not output a trailing newline, as this causes \r\n confusion
2827 on some platforms. */
2828 return ferror (f) || fclose (f) != 0;
2831 return 0;
2833 _ACEOF
2834 if ac_fn_c_try_run "$LINENO"; then :
2835 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2836 else
2837 ac_retval=1
2839 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2840 conftest.$ac_objext conftest.beam conftest.$ac_ext
2841 rm -f conftest.val
2844 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2845 as_fn_set_status $ac_retval
2847 } # ac_fn_c_compute_int
2848 cat >config.log <<_ACEOF
2849 This file contains any messages produced by compilers while
2850 running configure, to aid debugging if configure makes a mistake.
2852 It was created by emacs $as_me 24.1.50, which was
2853 generated by GNU Autoconf 2.65. Invocation command line was
2855 $ $0 $@
2857 _ACEOF
2858 exec 5>>config.log
2860 cat <<_ASUNAME
2861 ## --------- ##
2862 ## Platform. ##
2863 ## --------- ##
2865 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2866 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2867 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2868 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2869 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2871 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2872 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2874 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2875 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2876 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2877 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2878 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2879 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2880 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2882 _ASUNAME
2884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2885 for as_dir in $PATH
2887 IFS=$as_save_IFS
2888 test -z "$as_dir" && as_dir=.
2889 $as_echo "PATH: $as_dir"
2890 done
2891 IFS=$as_save_IFS
2893 } >&5
2895 cat >&5 <<_ACEOF
2898 ## ----------- ##
2899 ## Core tests. ##
2900 ## ----------- ##
2902 _ACEOF
2905 # Keep a trace of the command line.
2906 # Strip out --no-create and --no-recursion so they do not pile up.
2907 # Strip out --silent because we don't want to record it for future runs.
2908 # Also quote any args containing shell meta-characters.
2909 # Make two passes to allow for proper duplicate-argument suppression.
2910 ac_configure_args=
2911 ac_configure_args0=
2912 ac_configure_args1=
2913 ac_must_keep_next=false
2914 for ac_pass in 1 2
2916 for ac_arg
2918 case $ac_arg in
2919 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2920 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2921 | -silent | --silent | --silen | --sile | --sil)
2922 continue ;;
2923 *\'*)
2924 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2925 esac
2926 case $ac_pass in
2927 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2929 as_fn_append ac_configure_args1 " '$ac_arg'"
2930 if test $ac_must_keep_next = true; then
2931 ac_must_keep_next=false # Got value, back to normal.
2932 else
2933 case $ac_arg in
2934 *=* | --config-cache | -C | -disable-* | --disable-* \
2935 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2936 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2937 | -with-* | --with-* | -without-* | --without-* | --x)
2938 case "$ac_configure_args0 " in
2939 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2940 esac
2942 -* ) ac_must_keep_next=true ;;
2943 esac
2945 as_fn_append ac_configure_args " '$ac_arg'"
2947 esac
2948 done
2949 done
2950 { ac_configure_args0=; unset ac_configure_args0;}
2951 { ac_configure_args1=; unset ac_configure_args1;}
2953 # When interrupted or exit'd, cleanup temporary files, and complete
2954 # config.log. We remove comments because anyway the quotes in there
2955 # would cause problems or look ugly.
2956 # WARNING: Use '\'' to represent an apostrophe within the trap.
2957 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2958 trap 'exit_status=$?
2959 # Save into config.log some information that might help in debugging.
2961 echo
2963 cat <<\_ASBOX
2964 ## ---------------- ##
2965 ## Cache variables. ##
2966 ## ---------------- ##
2967 _ASBOX
2968 echo
2969 # The following way of writing the cache mishandles newlines in values,
2971 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2972 eval ac_val=\$$ac_var
2973 case $ac_val in #(
2974 *${as_nl}*)
2975 case $ac_var in #(
2976 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2977 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2978 esac
2979 case $ac_var in #(
2980 _ | IFS | as_nl) ;; #(
2981 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2982 *) { eval $ac_var=; unset $ac_var;} ;;
2983 esac ;;
2984 esac
2985 done
2986 (set) 2>&1 |
2987 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2988 *${as_nl}ac_space=\ *)
2989 sed -n \
2990 "s/'\''/'\''\\\\'\'''\''/g;
2991 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2992 ;; #(
2994 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2996 esac |
2997 sort
2999 echo
3001 cat <<\_ASBOX
3002 ## ----------------- ##
3003 ## Output variables. ##
3004 ## ----------------- ##
3005 _ASBOX
3006 echo
3007 for ac_var in $ac_subst_vars
3009 eval ac_val=\$$ac_var
3010 case $ac_val in
3011 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3012 esac
3013 $as_echo "$ac_var='\''$ac_val'\''"
3014 done | sort
3015 echo
3017 if test -n "$ac_subst_files"; then
3018 cat <<\_ASBOX
3019 ## ------------------- ##
3020 ## File substitutions. ##
3021 ## ------------------- ##
3022 _ASBOX
3023 echo
3024 for ac_var in $ac_subst_files
3026 eval ac_val=\$$ac_var
3027 case $ac_val in
3028 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3029 esac
3030 $as_echo "$ac_var='\''$ac_val'\''"
3031 done | sort
3032 echo
3035 if test -s confdefs.h; then
3036 cat <<\_ASBOX
3037 ## ----------- ##
3038 ## confdefs.h. ##
3039 ## ----------- ##
3040 _ASBOX
3041 echo
3042 cat confdefs.h
3043 echo
3045 test "$ac_signal" != 0 &&
3046 $as_echo "$as_me: caught signal $ac_signal"
3047 $as_echo "$as_me: exit $exit_status"
3048 } >&5
3049 rm -f core *.core core.conftest.* &&
3050 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3051 exit $exit_status
3053 for ac_signal in 1 2 13 15; do
3054 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3055 done
3056 ac_signal=0
3058 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3059 rm -f -r conftest* confdefs.h
3061 $as_echo "/* confdefs.h */" > confdefs.h
3063 # Predefined preprocessor variables.
3065 cat >>confdefs.h <<_ACEOF
3066 #define PACKAGE_NAME "$PACKAGE_NAME"
3067 _ACEOF
3069 cat >>confdefs.h <<_ACEOF
3070 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3071 _ACEOF
3073 cat >>confdefs.h <<_ACEOF
3074 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3075 _ACEOF
3077 cat >>confdefs.h <<_ACEOF
3078 #define PACKAGE_STRING "$PACKAGE_STRING"
3079 _ACEOF
3081 cat >>confdefs.h <<_ACEOF
3082 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3083 _ACEOF
3085 cat >>confdefs.h <<_ACEOF
3086 #define PACKAGE_URL "$PACKAGE_URL"
3087 _ACEOF
3090 # Let the site file select an alternate cache file if it wants to.
3091 # Prefer an explicitly selected file to automatically selected ones.
3092 ac_site_file1=NONE
3093 ac_site_file2=NONE
3094 if test -n "$CONFIG_SITE"; then
3095 ac_site_file1=$CONFIG_SITE
3096 elif test "x$prefix" != xNONE; then
3097 ac_site_file1=$prefix/share/config.site
3098 ac_site_file2=$prefix/etc/config.site
3099 else
3100 ac_site_file1=$ac_default_prefix/share/config.site
3101 ac_site_file2=$ac_default_prefix/etc/config.site
3103 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3105 test "x$ac_site_file" = xNONE && continue
3106 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3108 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3109 sed 's/^/| /' "$ac_site_file" >&5
3110 . "$ac_site_file"
3112 done
3114 if test -r "$cache_file"; then
3115 # Some versions of bash will fail to source /dev/null (special files
3116 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3117 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3119 $as_echo "$as_me: loading cache $cache_file" >&6;}
3120 case $cache_file in
3121 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3122 *) . "./$cache_file";;
3123 esac
3125 else
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3127 $as_echo "$as_me: creating cache $cache_file" >&6;}
3128 >$cache_file
3131 as_fn_append ac_header_list " stdlib.h"
3132 as_fn_append ac_header_list " unistd.h"
3133 as_fn_append ac_header_list " sys/param.h"
3134 as_fn_append ac_func_list " readlinkat"
3135 gl_getopt_required=GNU
3136 as_fn_append ac_header_list " getopt.h"
3137 as_fn_append ac_header_list " wchar.h"
3138 as_fn_append ac_header_list " stdint.h"
3139 as_fn_append ac_header_list " inttypes.h"
3140 as_fn_append ac_func_list " lstat"
3141 as_fn_append ac_func_list " alarm"
3142 as_fn_append ac_func_list " pthread_sigmask"
3143 as_fn_append ac_func_list " readlink"
3144 as_fn_append ac_header_list " sys/socket.h"
3145 as_fn_append ac_func_list " tzset"
3146 as_fn_append ac_func_list " strtoimax"
3147 as_fn_append ac_func_list " strtoumax"
3148 as_fn_append ac_func_list " symlink"
3149 as_fn_append ac_header_list " sys/stat.h"
3150 as_fn_append ac_header_list " sys/time.h"
3151 as_fn_append ac_func_list " localtime_r"
3152 # Check that the precious variables saved in the cache have kept the same
3153 # value.
3154 ac_cache_corrupted=false
3155 for ac_var in $ac_precious_vars; do
3156 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3157 eval ac_new_set=\$ac_env_${ac_var}_set
3158 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3159 eval ac_new_val=\$ac_env_${ac_var}_value
3160 case $ac_old_set,$ac_new_set in
3161 set,)
3162 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3163 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3164 ac_cache_corrupted=: ;;
3165 ,set)
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3167 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3168 ac_cache_corrupted=: ;;
3169 ,);;
3171 if test "x$ac_old_val" != "x$ac_new_val"; then
3172 # differences in whitespace do not lead to failure.
3173 ac_old_val_w=`echo x $ac_old_val`
3174 ac_new_val_w=`echo x $ac_new_val`
3175 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3176 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3177 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3178 ac_cache_corrupted=:
3179 else
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3181 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3182 eval $ac_var=\$ac_old_val
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3185 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3187 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3188 fi;;
3189 esac
3190 # Pass precious variables to config.status.
3191 if test "$ac_new_set" = set; then
3192 case $ac_new_val in
3193 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3194 *) ac_arg=$ac_var=$ac_new_val ;;
3195 esac
3196 case " $ac_configure_args " in
3197 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3198 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3199 esac
3201 done
3202 if $ac_cache_corrupted; then
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3204 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3205 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3206 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3207 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3209 ## -------------------- ##
3210 ## Main body of script. ##
3211 ## -------------------- ##
3213 ac_ext=c
3214 ac_cpp='$CPP $CPPFLAGS'
3215 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3216 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3217 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3220 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
3223 ac_aux_dir=
3224 for ac_dir in build-aux "$srcdir"/build-aux; do
3225 for ac_t in install-sh install.sh shtool; do
3226 if test -f "$ac_dir/$ac_t"; then
3227 ac_aux_dir=$ac_dir
3228 ac_install_sh="$ac_aux_dir/$ac_t -c"
3229 break 2
3231 done
3232 done
3233 if test -z "$ac_aux_dir"; then
3234 as_fn_error "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
3237 # These three variables are undocumented and unsupported,
3238 # and are intended to be withdrawn in a future Autoconf release.
3239 # They can cause serious problems if a builder's source tree is in a directory
3240 # whose full name contains unusual characters.
3241 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3242 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3243 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3246 am__api_version='1.11'
3248 # Find a good install program. We prefer a C program (faster),
3249 # so one script is as good as another. But avoid the broken or
3250 # incompatible versions:
3251 # SysV /etc/install, /usr/sbin/install
3252 # SunOS /usr/etc/install
3253 # IRIX /sbin/install
3254 # AIX /bin/install
3255 # AmigaOS /C/install, which installs bootblocks on floppy discs
3256 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3257 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3258 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3259 # OS/2's system install, which has a completely different semantic
3260 # ./install, which can be erroneously created by make from ./install.sh.
3261 # Reject install programs that cannot install multiple files.
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3263 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3264 if test -z "$INSTALL"; then
3265 if test "${ac_cv_path_install+set}" = set; then :
3266 $as_echo_n "(cached) " >&6
3267 else
3268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3269 for as_dir in $PATH
3271 IFS=$as_save_IFS
3272 test -z "$as_dir" && as_dir=.
3273 # Account for people who put trailing slashes in PATH elements.
3274 case $as_dir/ in #((
3275 ./ | .// | /[cC]/* | \
3276 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3277 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3278 /usr/ucb/* ) ;;
3280 # OSF1 and SCO ODT 3.0 have their own names for install.
3281 # Don't use installbsd from OSF since it installs stuff as root
3282 # by default.
3283 for ac_prog in ginstall scoinst install; do
3284 for ac_exec_ext in '' $ac_executable_extensions; do
3285 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3286 if test $ac_prog = install &&
3287 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3288 # AIX install. It has an incompatible calling convention.
3290 elif test $ac_prog = install &&
3291 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3292 # program-specific install script used by HP pwplus--don't use.
3294 else
3295 rm -rf conftest.one conftest.two conftest.dir
3296 echo one > conftest.one
3297 echo two > conftest.two
3298 mkdir conftest.dir
3299 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3300 test -s conftest.one && test -s conftest.two &&
3301 test -s conftest.dir/conftest.one &&
3302 test -s conftest.dir/conftest.two
3303 then
3304 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3305 break 3
3309 done
3310 done
3312 esac
3314 done
3315 IFS=$as_save_IFS
3317 rm -rf conftest.one conftest.two conftest.dir
3320 if test "${ac_cv_path_install+set}" = set; then
3321 INSTALL=$ac_cv_path_install
3322 else
3323 # As a last resort, use the slow shell script. Don't cache a
3324 # value for INSTALL within a source directory, because that will
3325 # break other packages using the cache if that directory is
3326 # removed, or if the value is a relative name.
3327 INSTALL=$ac_install_sh
3330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3331 $as_echo "$INSTALL" >&6; }
3333 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3334 # It thinks the first close brace ends the variable substitution.
3335 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3337 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3339 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3342 $as_echo_n "checking whether build environment is sane... " >&6; }
3343 # Just in case
3344 sleep 1
3345 echo timestamp > conftest.file
3346 # Reject unsafe characters in $srcdir or the absolute working directory
3347 # name. Accept space and tab only in the latter.
3348 am_lf='
3350 case `pwd` in
3351 *[\\\"\#\$\&\'\`$am_lf]*)
3352 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3353 esac
3354 case $srcdir in
3355 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3356 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3357 esac
3359 # Do `set' in a subshell so we don't clobber the current shell's
3360 # arguments. Must try -L first in case configure is actually a
3361 # symlink; some systems play weird games with the mod time of symlinks
3362 # (eg FreeBSD returns the mod time of the symlink's containing
3363 # directory).
3364 if (
3365 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3366 if test "$*" = "X"; then
3367 # -L didn't work.
3368 set X `ls -t "$srcdir/configure" conftest.file`
3370 rm -f conftest.file
3371 if test "$*" != "X $srcdir/configure conftest.file" \
3372 && test "$*" != "X conftest.file $srcdir/configure"; then
3374 # If neither matched, then we have a broken ls. This can happen
3375 # if, for instance, CONFIG_SHELL is bash and it inherits a
3376 # broken ls alias from the environment. This has actually
3377 # happened. Such a system could not be considered "sane".
3378 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3379 alias in your environment" "$LINENO" 5
3382 test "$2" = conftest.file
3384 then
3385 # Ok.
3387 else
3388 as_fn_error "newly created file is older than distributed files!
3389 Check your system clock" "$LINENO" 5
3391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3392 $as_echo "yes" >&6; }
3393 test "$program_prefix" != NONE &&
3394 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3395 # Use a double $ so make ignores it.
3396 test "$program_suffix" != NONE &&
3397 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3398 # Double any \ or $.
3399 # By default was `s,x,x', remove it if useless.
3400 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3401 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3403 # expand $ac_aux_dir to an absolute path
3404 am_aux_dir=`cd $ac_aux_dir && pwd`
3406 if test x"${MISSING+set}" != xset; then
3407 case $am_aux_dir in
3408 *\ * | *\ *)
3409 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3411 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3412 esac
3414 # Use eval to expand $SHELL
3415 if eval "$MISSING --run true"; then
3416 am_missing_run="$MISSING --run "
3417 else
3418 am_missing_run=
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3420 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3423 if test x"${install_sh}" != xset; then
3424 case $am_aux_dir in
3425 *\ * | *\ *)
3426 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3428 install_sh="\${SHELL} $am_aux_dir/install-sh"
3429 esac
3432 # Installed binaries are usually stripped using `strip' when the user
3433 # run `make install-strip'. However `strip' might not be the right
3434 # tool to use in cross-compilation environments, therefore Automake
3435 # will honor the `STRIP' environment variable to overrule this program.
3436 if test "$cross_compiling" != no; then
3437 if test -n "$ac_tool_prefix"; then
3438 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3439 set dummy ${ac_tool_prefix}strip; ac_word=$2
3440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3441 $as_echo_n "checking for $ac_word... " >&6; }
3442 if test "${ac_cv_prog_STRIP+set}" = set; then :
3443 $as_echo_n "(cached) " >&6
3444 else
3445 if test -n "$STRIP"; then
3446 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3447 else
3448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3449 for as_dir in $PATH
3451 IFS=$as_save_IFS
3452 test -z "$as_dir" && as_dir=.
3453 for ac_exec_ext in '' $ac_executable_extensions; do
3454 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3455 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3457 break 2
3459 done
3460 done
3461 IFS=$as_save_IFS
3465 STRIP=$ac_cv_prog_STRIP
3466 if test -n "$STRIP"; then
3467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3468 $as_echo "$STRIP" >&6; }
3469 else
3470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3471 $as_echo "no" >&6; }
3476 if test -z "$ac_cv_prog_STRIP"; then
3477 ac_ct_STRIP=$STRIP
3478 # Extract the first word of "strip", so it can be a program name with args.
3479 set dummy strip; ac_word=$2
3480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3481 $as_echo_n "checking for $ac_word... " >&6; }
3482 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3483 $as_echo_n "(cached) " >&6
3484 else
3485 if test -n "$ac_ct_STRIP"; then
3486 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3487 else
3488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3489 for as_dir in $PATH
3491 IFS=$as_save_IFS
3492 test -z "$as_dir" && as_dir=.
3493 for ac_exec_ext in '' $ac_executable_extensions; do
3494 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3495 ac_cv_prog_ac_ct_STRIP="strip"
3496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3497 break 2
3499 done
3500 done
3501 IFS=$as_save_IFS
3505 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3506 if test -n "$ac_ct_STRIP"; then
3507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3508 $as_echo "$ac_ct_STRIP" >&6; }
3509 else
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3511 $as_echo "no" >&6; }
3514 if test "x$ac_ct_STRIP" = x; then
3515 STRIP=":"
3516 else
3517 case $cross_compiling:$ac_tool_warned in
3518 yes:)
3519 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3520 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3521 ac_tool_warned=yes ;;
3522 esac
3523 STRIP=$ac_ct_STRIP
3525 else
3526 STRIP="$ac_cv_prog_STRIP"
3530 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3533 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3534 if test -z "$MKDIR_P"; then
3535 if test "${ac_cv_path_mkdir+set}" = set; then :
3536 $as_echo_n "(cached) " >&6
3537 else
3538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3539 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3541 IFS=$as_save_IFS
3542 test -z "$as_dir" && as_dir=.
3543 for ac_prog in mkdir gmkdir; do
3544 for ac_exec_ext in '' $ac_executable_extensions; do
3545 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3546 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3547 'mkdir (GNU coreutils) '* | \
3548 'mkdir (coreutils) '* | \
3549 'mkdir (fileutils) '4.1*)
3550 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3551 break 3;;
3552 esac
3553 done
3554 done
3555 done
3556 IFS=$as_save_IFS
3560 test -d ./--version && rmdir ./--version
3561 if test "${ac_cv_path_mkdir+set}" = set; then
3562 MKDIR_P="$ac_cv_path_mkdir -p"
3563 else
3564 # As a last resort, use the slow shell script. Don't cache a
3565 # value for MKDIR_P within a source directory, because that will
3566 # break other packages using the cache if that directory is
3567 # removed, or if the value is a relative name.
3568 MKDIR_P="$ac_install_sh -d"
3571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3572 $as_echo "$MKDIR_P" >&6; }
3575 mkdir_p="$MKDIR_P"
3576 case $mkdir_p in
3577 [\\/$]* | ?:[\\/]*) ;;
3578 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3579 esac
3581 for ac_prog in gawk mawk nawk awk
3583 # Extract the first word of "$ac_prog", so it can be a program name with args.
3584 set dummy $ac_prog; ac_word=$2
3585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3586 $as_echo_n "checking for $ac_word... " >&6; }
3587 if test "${ac_cv_prog_AWK+set}" = set; then :
3588 $as_echo_n "(cached) " >&6
3589 else
3590 if test -n "$AWK"; then
3591 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3592 else
3593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3594 for as_dir in $PATH
3596 IFS=$as_save_IFS
3597 test -z "$as_dir" && as_dir=.
3598 for ac_exec_ext in '' $ac_executable_extensions; do
3599 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3600 ac_cv_prog_AWK="$ac_prog"
3601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3602 break 2
3604 done
3605 done
3606 IFS=$as_save_IFS
3610 AWK=$ac_cv_prog_AWK
3611 if test -n "$AWK"; then
3612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3613 $as_echo "$AWK" >&6; }
3614 else
3615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3616 $as_echo "no" >&6; }
3620 test -n "$AWK" && break
3621 done
3623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3624 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3625 set x ${MAKE-make}
3626 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3627 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3628 $as_echo_n "(cached) " >&6
3629 else
3630 cat >conftest.make <<\_ACEOF
3631 SHELL = /bin/sh
3632 all:
3633 @echo '@@@%%%=$(MAKE)=@@@%%%'
3634 _ACEOF
3635 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3636 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3637 *@@@%%%=?*=@@@%%%*)
3638 eval ac_cv_prog_make_${ac_make}_set=yes;;
3640 eval ac_cv_prog_make_${ac_make}_set=no;;
3641 esac
3642 rm -f conftest.make
3644 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3646 $as_echo "yes" >&6; }
3647 SET_MAKE=
3648 else
3649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3650 $as_echo "no" >&6; }
3651 SET_MAKE="MAKE=${MAKE-make}"
3654 rm -rf .tst 2>/dev/null
3655 mkdir .tst 2>/dev/null
3656 if test -d .tst; then
3657 am__leading_dot=.
3658 else
3659 am__leading_dot=_
3661 rmdir .tst 2>/dev/null
3663 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3664 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3665 # is not polluted with repeated "-I."
3666 am__isrc=' -I$(srcdir)'
3667 # test to see if srcdir already configured
3668 if test -f $srcdir/config.status; then
3669 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3673 # test whether we have cygpath
3674 if test -z "$CYGPATH_W"; then
3675 if (cygpath --version) >/dev/null 2>/dev/null; then
3676 CYGPATH_W='cygpath -w'
3677 else
3678 CYGPATH_W=echo
3683 # Define the identity of the package.
3684 PACKAGE='emacs'
3685 VERSION='24.1.50'
3688 cat >>confdefs.h <<_ACEOF
3689 #define PACKAGE "$PACKAGE"
3690 _ACEOF
3693 cat >>confdefs.h <<_ACEOF
3694 #define VERSION "$VERSION"
3695 _ACEOF
3697 # Some tools Automake needs.
3699 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3702 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3705 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3708 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3711 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3713 # We need awk for the "check" target. The system "awk" is bad on
3714 # some platforms.
3715 # Always define AMTAR for backward compatibility.
3717 AMTAR=${AMTAR-"${am_missing_run}tar"}
3719 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3728 lispdir='${datadir}/emacs/${version}/lisp'
3729 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
3730 '${datadir}/emacs/site-lisp'
3731 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
3732 etcdir='${datadir}/emacs/${version}/etc'
3733 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
3734 docdir='${datadir}/emacs/${version}/etc'
3735 gamedir='${localstatedir}/games/emacs'
3740 # Check whether --with-pop was given.
3741 if test "${with_pop+set}" = set; then :
3742 withval=$with_pop;
3743 else
3744 with_pop=yes
3747 if test "$with_pop" = yes; then
3748 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
3753 # Check whether --with-kerberos was given.
3754 if test "${with_kerberos+set}" = set; then :
3755 withval=$with_kerberos;
3756 else
3757 with_kerberos=no
3760 if test "$with_kerberos" != no; then
3761 $as_echo "#define KERBEROS 1" >>confdefs.h
3766 # Check whether --with-kerberos5 was given.
3767 if test "${with_kerberos5+set}" = set; then :
3768 withval=$with_kerberos5;
3769 else
3770 with_kerberos5=no
3773 if test "${with_kerberos5}" != no; then
3774 if test "${with_kerberos}" = no; then
3775 with_kerberos=yes
3776 $as_echo "#define KERBEROS 1" >>confdefs.h
3780 $as_echo "#define KERBEROS5 1" >>confdefs.h
3785 # Check whether --with-hesiod was given.
3786 if test "${with_hesiod+set}" = set; then :
3787 withval=$with_hesiod;
3788 else
3789 with_hesiod=no
3792 if test "$with_hesiod" != no; then
3794 $as_echo "#define HESIOD 1" >>confdefs.h
3799 # Check whether --with-mmdf was given.
3800 if test "${with_mmdf+set}" = set; then :
3801 withval=$with_mmdf;
3802 else
3803 with_mmdf=no
3806 if test "$with_mmdf" != no; then
3808 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
3813 # Check whether --with-mail-unlink was given.
3814 if test "${with_mail_unlink+set}" = set; then :
3815 withval=$with_mail_unlink;
3816 else
3817 with_mail_unlink=no
3820 if test "$with_mail_unlink" != no; then
3822 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
3827 # Check whether --with-mailhost was given.
3828 if test "${with_mailhost+set}" = set; then :
3829 withval=$with_mailhost;
3830 cat >>confdefs.h <<_ACEOF
3831 #define MAILHOST "$withval"
3832 _ACEOF
3838 # Check whether --with-sound was given.
3839 if test "${with_sound+set}" = set; then :
3840 withval=$with_sound;
3841 else
3842 with_sound=yes
3847 # Check whether --with-sync-input was given.
3848 if test "${with_sync_input+set}" = set; then :
3849 withval=$with_sync_input;
3850 else
3851 with_sync_input=yes
3854 if test "$with_sync_input" = yes; then
3856 $as_echo "#define SYNC_INPUT 1" >>confdefs.h
3861 # Check whether --with-x-toolkit was given.
3862 if test "${with_x_toolkit+set}" = set; then :
3863 withval=$with_x_toolkit; case "${withval}" in
3864 y | ye | yes ) val=gtk ;;
3865 n | no ) val=no ;;
3866 l | lu | luc | luci | lucid ) val=lucid ;;
3867 a | at | ath | athe | athen | athena ) val=athena ;;
3868 m | mo | mot | moti | motif ) val=motif ;;
3869 g | gt | gtk ) val=gtk ;;
3870 gtk3 ) val=gtk3 ;;
3872 as_fn_error "\`--with-x-toolkit=$withval' is invalid;
3873 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk' or
3874 \`gtk3'. \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." "$LINENO" 5
3876 esac
3877 with_x_toolkit=$val
3883 # Check whether --with-wide-int was given.
3884 if test "${with_wide_int+set}" = set; then :
3885 withval=$with_wide_int;
3886 else
3887 with_wide_int=no
3890 if test "$with_wide_int" = yes; then
3892 $as_echo "#define WIDE_EMACS_INT 1" >>confdefs.h
3897 # Check whether --with-xpm was given.
3898 if test "${with_xpm+set}" = set; then :
3899 withval=$with_xpm;
3900 else
3901 with_xpm=yes
3905 # Check whether --with-jpeg was given.
3906 if test "${with_jpeg+set}" = set; then :
3907 withval=$with_jpeg;
3908 else
3909 with_jpeg=yes
3913 # Check whether --with-tiff was given.
3914 if test "${with_tiff+set}" = set; then :
3915 withval=$with_tiff;
3916 else
3917 with_tiff=yes
3921 # Check whether --with-gif was given.
3922 if test "${with_gif+set}" = set; then :
3923 withval=$with_gif;
3924 else
3925 with_gif=yes
3929 # Check whether --with-png was given.
3930 if test "${with_png+set}" = set; then :
3931 withval=$with_png;
3932 else
3933 with_png=yes
3937 # Check whether --with-rsvg was given.
3938 if test "${with_rsvg+set}" = set; then :
3939 withval=$with_rsvg;
3940 else
3941 with_rsvg=yes
3945 # Check whether --with-xml2 was given.
3946 if test "${with_xml2+set}" = set; then :
3947 withval=$with_xml2;
3948 else
3949 with_xml2=yes
3953 # Check whether --with-imagemagick was given.
3954 if test "${with_imagemagick+set}" = set; then :
3955 withval=$with_imagemagick;
3956 else
3957 with_imagemagick=yes
3962 # Check whether --with-xft was given.
3963 if test "${with_xft+set}" = set; then :
3964 withval=$with_xft;
3965 else
3966 with_xft=yes
3970 # Check whether --with-libotf was given.
3971 if test "${with_libotf+set}" = set; then :
3972 withval=$with_libotf;
3973 else
3974 with_libotf=yes
3978 # Check whether --with-m17n-flt was given.
3979 if test "${with_m17n_flt+set}" = set; then :
3980 withval=$with_m17n_flt;
3981 else
3982 with_m17n_flt=yes
3987 # Check whether --with-toolkit-scroll-bars was given.
3988 if test "${with_toolkit_scroll_bars+set}" = set; then :
3989 withval=$with_toolkit_scroll_bars;
3990 else
3991 with_toolkit_scroll_bars=yes
3995 # Check whether --with-xaw3d was given.
3996 if test "${with_xaw3d+set}" = set; then :
3997 withval=$with_xaw3d;
3998 else
3999 with_xaw3d=yes
4003 # Check whether --with-xim was given.
4004 if test "${with_xim+set}" = set; then :
4005 withval=$with_xim;
4006 else
4007 with_xim=yes
4011 # Check whether --with-ns was given.
4012 if test "${with_ns+set}" = set; then :
4013 withval=$with_ns;
4014 else
4015 with_ns=no
4020 # Check whether --with-gpm was given.
4021 if test "${with_gpm+set}" = set; then :
4022 withval=$with_gpm;
4023 else
4024 with_gpm=yes
4028 # Check whether --with-dbus was given.
4029 if test "${with_dbus+set}" = set; then :
4030 withval=$with_dbus;
4031 else
4032 with_dbus=yes
4036 # Check whether --with-gconf was given.
4037 if test "${with_gconf+set}" = set; then :
4038 withval=$with_gconf;
4039 else
4040 with_gconf=yes
4044 # Check whether --with-gsettings was given.
4045 if test "${with_gsettings+set}" = set; then :
4046 withval=$with_gsettings;
4047 else
4048 with_gsettings=yes
4052 # Check whether --with-selinux was given.
4053 if test "${with_selinux+set}" = set; then :
4054 withval=$with_selinux;
4055 else
4056 with_selinux=yes
4060 # Check whether --with-gnutls was given.
4061 if test "${with_gnutls+set}" = set; then :
4062 withval=$with_gnutls;
4063 else
4064 with_gnutls=yes
4068 ## For the times when you want to build Emacs but don't have
4069 ## a suitable makeinfo, and can live without the manuals.
4071 # Check whether --with-makeinfo was given.
4072 if test "${with_makeinfo+set}" = set; then :
4073 withval=$with_makeinfo;
4074 else
4075 with_makeinfo=yes
4079 ## Makefile.in needs the cache file name.
4082 ## This is an option because I do not know if all info/man support
4083 ## compressed files, nor how to test if they do so.
4085 # Check whether --with-compress-info was given.
4086 if test "${with_compress_info+set}" = set; then :
4087 withval=$with_compress_info;
4088 else
4089 with_compress_info=yes
4092 if test $with_compress_info = yes; then
4093 GZIP_INFO=yes
4094 else
4095 GZIP_INFO=
4100 # Check whether --with-pkg-config-prog was given.
4101 if test "${with_pkg_config_prog+set}" = set; then :
4102 withval=$with_pkg_config_prog;
4105 if test "X${with_pkg_config_prog}" != X; then
4106 if test "${with_pkg_config_prog}" != yes; then
4107 PKG_CONFIG="${with_pkg_config_prog}"
4111 CRT_DIR=
4113 # Check whether --with-crt-dir was given.
4114 if test "${with_crt_dir+set}" = set; then :
4115 withval=$with_crt_dir;
4118 CRT_DIR="${with_crt_dir}"
4121 # Check whether --with-gameuser was given.
4122 if test "${with_gameuser+set}" = set; then :
4123 withval=$with_gameuser;
4126 test "X${with_gameuser}" != X && test "${with_gameuser}" != yes \
4127 && gameuser="${with_gameuser}"
4128 test "X$gameuser" = X && gameuser=games
4131 # Check whether --with-gnustep-conf was given.
4132 if test "${with_gnustep_conf+set}" = set; then :
4133 withval=$with_gnustep_conf;
4136 test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
4137 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
4138 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
4139 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
4141 # Check whether --enable-ns-self-contained was given.
4142 if test "${enable_ns_self_contained+set}" = set; then :
4143 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
4144 else
4145 EN_NS_SELF_CONTAINED=yes
4149 # Check whether --enable-asserts was given.
4150 if test "${enable_asserts+set}" = set; then :
4151 enableval=$enable_asserts; USE_XASSERTS=$enableval
4152 else
4153 USE_XASSERTS=no
4157 # Check whether --enable-maintainer-mode was given.
4158 if test "${enable_maintainer_mode+set}" = set; then :
4159 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4160 else
4161 USE_MAINTAINER_MODE=yes
4164 if test $USE_MAINTAINER_MODE = yes; then
4165 MAINT=
4166 else
4167 MAINT=#
4171 # Check whether --enable-locallisppath was given.
4172 if test "${enable_locallisppath+set}" = set; then :
4173 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
4174 locallisppath=
4175 elif test "${enableval}" != "yes"; then
4176 locallisppath=${enableval}
4181 # Check whether --enable-checking was given.
4182 if test "${enable_checking+set}" = set; then :
4183 enableval=$enable_checking; ac_checking_flags="${enableval}"
4186 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
4187 for check in $ac_checking_flags
4189 case $check in
4190 # these set all the flags to specific states
4191 yes) ac_enable_checking=1 ;;
4192 no) ac_enable_checking= ;
4193 ac_gc_check_stringbytes= ;
4194 ac_gc_check_string_overrun= ;
4195 ac_gc_check_string_free_list= ;
4196 ac_xmalloc_overrun= ;
4197 ac_gc_check_cons_list= ;;
4198 all) ac_enable_checking=1 ;
4199 ac_gc_check_stringbytes=1 ;
4200 ac_gc_check_string_overrun=1 ;
4201 ac_gc_check_string_free_list=1 ;
4202 ac_xmalloc_overrun=1 ;
4203 ac_gc_check_cons_list=1 ;;
4204 # these enable particular checks
4205 stringbytes) ac_gc_check_stringbytes=1 ;;
4206 stringoverrun) ac_gc_check_string_overrun=1 ;;
4207 stringfreelist) ac_gc_check_string_free_list=1 ;;
4208 xmallocoverrun) ac_xmalloc_overrun=1 ;;
4209 conslist) ac_gc_check_cons_list=1 ;;
4210 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
4211 esac
4212 done
4213 IFS="$ac_save_IFS"
4215 if test x$ac_enable_checking != x ; then
4217 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
4220 if test x$ac_gc_check_stringbytes != x ; then
4222 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
4225 if test x$ac_gc_check_string_overrun != x ; then
4227 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
4230 if test x$ac_gc_check_string_free_list != x ; then
4232 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
4235 if test x$ac_xmalloc_overrun != x ; then
4237 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
4240 if test x$ac_gc_check_cons_list != x ; then
4242 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
4246 # Check whether --enable-use-lisp-union-type was given.
4247 if test "${enable_use_lisp_union_type+set}" = set; then :
4248 enableval=$enable_use_lisp_union_type; if test "${enableval}" != "no"; then
4250 $as_echo "#define USE_LISP_UNION_TYPE 1" >>confdefs.h
4257 # Check whether --enable-profiling was given.
4258 if test "${enable_profiling+set}" = set; then :
4259 enableval=$enable_profiling; ac_enable_profiling="${enableval}"
4262 if test x$ac_enable_profiling != x ; then
4263 PROFILING_CFLAGS="-DPROFILING=1 -pg"
4264 else
4265 PROFILING_CFLAGS=
4269 # Check whether --enable-autodepend was given.
4270 if test "${enable_autodepend+set}" = set; then :
4271 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}"
4272 else
4273 ac_enable_autodepend=yes
4277 #### Make srcdir absolute, if it isn't already. It's important to
4278 #### avoid running the path through pwd unnecessarily, since pwd can
4279 #### give you automounter prefixes, which can go away. We do all this
4280 #### so Emacs can find its files when run uninstalled.
4281 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
4282 unset CDPATH
4283 case "${srcdir}" in
4284 /* ) ;;
4286 ## We may be able to use the $PWD environment variable to make this
4287 ## absolute. But sometimes PWD is inaccurate.
4288 ## Note: we used to use ${PWD} at the end instead of `pwd`,
4289 ## but that tested only for a well-formed and valid PWD,
4290 ## it did not object when PWD was well-formed and valid but just wrong.
4291 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
4292 then
4293 srcdir="$PWD"
4294 else
4295 srcdir="`(cd ${srcdir}; pwd)`"
4298 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
4299 esac
4301 #### Given the configuration name, set machfile and opsysfile to the
4302 #### names of the m/*.h and s/*.h files we should use.
4304 ### Canonicalize the configuration name.
4306 # Make sure we can run config.sub.
4307 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4308 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4311 $as_echo_n "checking build system type... " >&6; }
4312 if test "${ac_cv_build+set}" = set; then :
4313 $as_echo_n "(cached) " >&6
4314 else
4315 ac_build_alias=$build_alias
4316 test "x$ac_build_alias" = x &&
4317 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4318 test "x$ac_build_alias" = x &&
4319 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4320 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4321 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4325 $as_echo "$ac_cv_build" >&6; }
4326 case $ac_cv_build in
4327 *-*-*) ;;
4328 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4329 esac
4330 build=$ac_cv_build
4331 ac_save_IFS=$IFS; IFS='-'
4332 set x $ac_cv_build
4333 shift
4334 build_cpu=$1
4335 build_vendor=$2
4336 shift; shift
4337 # Remember, the first character of IFS is used to create $*,
4338 # except with old shells:
4339 build_os=$*
4340 IFS=$ac_save_IFS
4341 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4345 $as_echo_n "checking host system type... " >&6; }
4346 if test "${ac_cv_host+set}" = set; then :
4347 $as_echo_n "(cached) " >&6
4348 else
4349 if test "x$host_alias" = x; then
4350 ac_cv_host=$ac_cv_build
4351 else
4352 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4353 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4358 $as_echo "$ac_cv_host" >&6; }
4359 case $ac_cv_host in
4360 *-*-*) ;;
4361 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4362 esac
4363 host=$ac_cv_host
4364 ac_save_IFS=$IFS; IFS='-'
4365 set x $ac_cv_host
4366 shift
4367 host_cpu=$1
4368 host_vendor=$2
4369 shift; shift
4370 # Remember, the first character of IFS is used to create $*,
4371 # except with old shells:
4372 host_os=$*
4373 IFS=$ac_save_IFS
4374 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4377 canonical=$host
4378 configuration=${host_alias-${build_alias-$host}}
4382 ### If you add support for a new configuration, add code to this
4383 ### switch statement to recognize your configuration name and select
4384 ### the appropriate operating system and machine description files.
4386 ### You would hope that you could choose an m/*.h file pretty much
4387 ### based on the machine portion of the configuration name, and an s/*.h
4388 ### file based on the operating system portion. However, it turns out
4389 ### that each m/*.h file is pretty manufacturer-specific - for
4390 ### example mips.h is MIPS
4391 ### So we basically have to have a special case for each
4392 ### configuration name.
4394 ### As far as handling version numbers on operating systems is
4395 ### concerned, make sure things will fail in a fixable way. If
4396 ### /etc/MACHINES doesn't say anything about version numbers, be
4397 ### prepared to handle anything reasonably. If version numbers
4398 ### matter, be sure /etc/MACHINES says something about it.
4400 machine='' opsys='' unported=no
4401 case "${canonical}" in
4403 ## GNU/Linux and similar ports
4404 *-*-linux* )
4405 opsys=gnu-linux
4406 case ${canonical} in
4407 alpha*) machine=alpha ;;
4408 s390x-*) machine=ibms390x ;;
4409 powerpc*) machine=macppc ;;
4410 sparc*) machine=sparc ;;
4411 ia64*) machine=ia64 ;;
4412 m68k*) machine=m68k ;;
4413 x86_64*) machine=amdx86-64 ;;
4414 esac
4417 ## FreeBSD ports
4418 *-*-freebsd* )
4419 opsys=freebsd
4420 case "${canonical}" in
4421 alpha*) machine=alpha ;;
4422 amd64-*|x86_64-*) machine=amdx86-64 ;;
4423 ia64-*) machine=ia64 ;;
4424 i[3456]86-*) machine=intel386 ;;
4425 powerpc-*) machine=macppc ;;
4426 sparc-*) machine=sparc ;;
4427 sparc64-*) machine=sparc ;;
4428 esac
4431 ## FreeBSD kernel + glibc based userland
4432 *-*-kfreebsd*gnu* )
4433 opsys=gnu-kfreebsd
4434 case "${canonical}" in
4435 alpha*) machine=alpha ;;
4436 amd64-*|x86_64-*) machine=amdx86-64 ;;
4437 ia64-*) machine=ia64 ;;
4438 i[3456]86-*) machine=intel386 ;;
4439 powerpc-*) machine=macppc ;;
4440 sparc-*) machine=sparc ;;
4441 sparc64-*) machine=sparc ;;
4442 esac
4445 ## NetBSD ports
4446 *-*-netbsd* )
4447 opsys=netbsd
4448 case "${canonical}" in
4449 alpha*) machine=alpha ;;
4450 x86_64-*) machine=amdx86-64 ;;
4451 i[3456]86-*) machine=intel386 ;;
4452 m68k-*) machine=m68k ;;
4453 powerpc-*) machine=macppc ;;
4454 sparc*-) machine=sparc ;;
4455 vax-*) machine=vax ;;
4456 esac
4459 ## OpenBSD ports
4460 *-*-openbsd* )
4461 opsys=openbsd
4462 case "${canonical}" in
4463 alpha*) machine=alpha ;;
4464 x86_64-*) machine=amdx86-64 ;;
4465 i386-*) machine=intel386 ;;
4466 powerpc-*) machine=macppc ;;
4467 sparc*) machine=sparc ;;
4468 vax-*) machine=vax ;;
4469 esac
4472 ## Apple Darwin / Mac OS X
4473 *-apple-darwin* )
4474 case "${canonical}" in
4475 i[3456]86-* ) machine=intel386 ;;
4476 powerpc-* ) machine=macppc ;;
4477 x86_64-* ) machine=amdx86-64 ;;
4478 * ) unported=yes ;;
4479 esac
4480 opsys=darwin
4481 # Define CPP as follows to make autoconf work correctly.
4482 CPP="${CC-cc} -E -no-cpp-precomp"
4483 # Use fink packages if available.
4484 if test -d /sw/include && test -d /sw/lib; then
4485 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
4486 CPP="${CPP} ${GCC_TEST_OPTIONS}"
4487 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
4491 ## HP 9000 series 700 and 800, running HP/UX
4492 hppa*-hp-hpux10.2* )
4493 opsys=hpux10-20
4495 hppa*-hp-hpux1[1-9]* )
4496 opsys=hpux11
4497 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
4500 ## IBM machines
4501 rs6000-ibm-aix4.[23]* )
4502 machine=ibmrs6000 opsys=aix4-2
4504 powerpc-ibm-aix4.[23]* )
4505 machine=ibmrs6000 opsys=aix4-2
4507 rs6000-ibm-aix[56]* )
4508 machine=ibmrs6000 opsys=aix4-2
4510 powerpc-ibm-aix[56]* )
4511 machine=ibmrs6000 opsys=aix4-2
4514 ## Silicon Graphics machines
4515 ## Iris 4D
4516 mips-sgi-irix6.5 )
4517 opsys=irix6-5
4518 # Without defining _LANGUAGE_C, things get masked out in the headers
4519 # so that, for instance, grepping for `free' in stdlib.h fails and
4520 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
4521 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
4522 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
4525 ## Suns
4526 *-sun-solaris* \
4527 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* \
4528 | x86_64-*-solaris2* | x86_64-*-sunos5*)
4529 case "${canonical}" in
4530 i[3456]86-*-* ) machine=intel386 ;;
4531 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
4532 sparc* ) machine=sparc ;;
4533 * ) unported=yes ;;
4534 esac
4535 case "${canonical}" in
4536 *-sunos5.6* | *-solaris2.6* )
4537 opsys=sol2-6
4538 NON_GNU_CPP=/usr/ccs/lib/cpp
4539 RANLIB="ar -ts"
4541 *-sunos5.[7-9]* | *-solaris2.[7-9]* )
4542 opsys=sol2-6
4543 emacs_check_sunpro_c=yes
4544 NON_GNU_CPP=/usr/ccs/lib/cpp
4546 *-sunos5* | *-solaris* )
4547 opsys=sol2-10
4548 emacs_check_sunpro_c=yes
4549 NON_GNU_CPP=/usr/ccs/lib/cpp
4551 esac
4552 ## Watch out for a compiler that we know will not work.
4553 case "${canonical}" in
4554 *-solaris* | *-sunos5* )
4555 if [ "x$CC" = x/usr/ucb/cc ]; then
4556 ## /usr/ucb/cc doesn't work;
4557 ## we should find some other compiler that does work.
4558 unset CC
4561 *) ;;
4562 esac
4565 ## Intel 386 machines where we don't care about the manufacturer.
4566 i[3456]86-*-* )
4567 machine=intel386
4568 case "${canonical}" in
4569 *-cygwin ) opsys=cygwin ;;
4570 *-darwin* ) opsys=darwin
4571 CPP="${CC-cc} -E -no-cpp-precomp"
4573 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
4574 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
4575 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
4576 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
4577 esac
4581 unported=yes
4583 esac
4585 ### If the code above didn't choose an operating system, just choose
4586 ### an operating system based on the configuration name. You really
4587 ### only want to use this when you have no idea what the right
4588 ### operating system is; if you know what operating systems a machine
4589 ### runs, it's cleaner to make it explicit in the case statement
4590 ### above.
4591 if test x"${opsys}" = x; then
4592 case "${canonical}" in
4593 *-gnu* ) opsys=gnu ;;
4595 unported=yes
4597 esac
4602 if test $unported = yes; then
4603 as_fn_error "Emacs hasn't been ported to \`${canonical}' systems.
4604 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
4607 if test -n "$machine"; then
4608 machfile="m/${machine}.h"
4609 else
4610 machfile=
4612 opsysfile="s/${opsys}.h"
4615 #### Choose a compiler.
4616 test -n "$CC" && cc_specified=yes
4618 # Save the value of CFLAGS that the user specified.
4619 SPECIFIED_CFLAGS="$CFLAGS"
4621 ac_ext=c
4622 ac_cpp='$CPP $CPPFLAGS'
4623 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4624 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4625 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4626 if test -n "$ac_tool_prefix"; then
4627 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4628 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4630 $as_echo_n "checking for $ac_word... " >&6; }
4631 if test "${ac_cv_prog_CC+set}" = set; then :
4632 $as_echo_n "(cached) " >&6
4633 else
4634 if test -n "$CC"; then
4635 ac_cv_prog_CC="$CC" # Let the user override the test.
4636 else
4637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4638 for as_dir in $PATH
4640 IFS=$as_save_IFS
4641 test -z "$as_dir" && as_dir=.
4642 for ac_exec_ext in '' $ac_executable_extensions; do
4643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4644 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4646 break 2
4648 done
4649 done
4650 IFS=$as_save_IFS
4654 CC=$ac_cv_prog_CC
4655 if test -n "$CC"; then
4656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4657 $as_echo "$CC" >&6; }
4658 else
4659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4660 $as_echo "no" >&6; }
4665 if test -z "$ac_cv_prog_CC"; then
4666 ac_ct_CC=$CC
4667 # Extract the first word of "gcc", so it can be a program name with args.
4668 set dummy gcc; ac_word=$2
4669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4670 $as_echo_n "checking for $ac_word... " >&6; }
4671 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4672 $as_echo_n "(cached) " >&6
4673 else
4674 if test -n "$ac_ct_CC"; then
4675 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4676 else
4677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4678 for as_dir in $PATH
4680 IFS=$as_save_IFS
4681 test -z "$as_dir" && as_dir=.
4682 for ac_exec_ext in '' $ac_executable_extensions; do
4683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4684 ac_cv_prog_ac_ct_CC="gcc"
4685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4686 break 2
4688 done
4689 done
4690 IFS=$as_save_IFS
4694 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4695 if test -n "$ac_ct_CC"; then
4696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4697 $as_echo "$ac_ct_CC" >&6; }
4698 else
4699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4700 $as_echo "no" >&6; }
4703 if test "x$ac_ct_CC" = x; then
4704 CC=""
4705 else
4706 case $cross_compiling:$ac_tool_warned in
4707 yes:)
4708 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4709 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4710 ac_tool_warned=yes ;;
4711 esac
4712 CC=$ac_ct_CC
4714 else
4715 CC="$ac_cv_prog_CC"
4718 if test -z "$CC"; then
4719 if test -n "$ac_tool_prefix"; then
4720 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4721 set dummy ${ac_tool_prefix}cc; ac_word=$2
4722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4723 $as_echo_n "checking for $ac_word... " >&6; }
4724 if test "${ac_cv_prog_CC+set}" = set; then :
4725 $as_echo_n "(cached) " >&6
4726 else
4727 if test -n "$CC"; then
4728 ac_cv_prog_CC="$CC" # Let the user override the test.
4729 else
4730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4731 for as_dir in $PATH
4733 IFS=$as_save_IFS
4734 test -z "$as_dir" && as_dir=.
4735 for ac_exec_ext in '' $ac_executable_extensions; do
4736 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4737 ac_cv_prog_CC="${ac_tool_prefix}cc"
4738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4739 break 2
4741 done
4742 done
4743 IFS=$as_save_IFS
4747 CC=$ac_cv_prog_CC
4748 if test -n "$CC"; then
4749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4750 $as_echo "$CC" >&6; }
4751 else
4752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4753 $as_echo "no" >&6; }
4759 if test -z "$CC"; then
4760 # Extract the first word of "cc", so it can be a program name with args.
4761 set dummy cc; ac_word=$2
4762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4763 $as_echo_n "checking for $ac_word... " >&6; }
4764 if test "${ac_cv_prog_CC+set}" = set; then :
4765 $as_echo_n "(cached) " >&6
4766 else
4767 if test -n "$CC"; then
4768 ac_cv_prog_CC="$CC" # Let the user override the test.
4769 else
4770 ac_prog_rejected=no
4771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4772 for as_dir in $PATH
4774 IFS=$as_save_IFS
4775 test -z "$as_dir" && as_dir=.
4776 for ac_exec_ext in '' $ac_executable_extensions; do
4777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4778 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4779 ac_prog_rejected=yes
4780 continue
4782 ac_cv_prog_CC="cc"
4783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4784 break 2
4786 done
4787 done
4788 IFS=$as_save_IFS
4790 if test $ac_prog_rejected = yes; then
4791 # We found a bogon in the path, so make sure we never use it.
4792 set dummy $ac_cv_prog_CC
4793 shift
4794 if test $# != 0; then
4795 # We chose a different compiler from the bogus one.
4796 # However, it has the same basename, so the bogon will be chosen
4797 # first if we set CC to just the basename; use the full file name.
4798 shift
4799 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4804 CC=$ac_cv_prog_CC
4805 if test -n "$CC"; then
4806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4807 $as_echo "$CC" >&6; }
4808 else
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4810 $as_echo "no" >&6; }
4815 if test -z "$CC"; then
4816 if test -n "$ac_tool_prefix"; then
4817 for ac_prog in cl.exe
4819 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4820 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4822 $as_echo_n "checking for $ac_word... " >&6; }
4823 if test "${ac_cv_prog_CC+set}" = set; then :
4824 $as_echo_n "(cached) " >&6
4825 else
4826 if test -n "$CC"; then
4827 ac_cv_prog_CC="$CC" # Let the user override the test.
4828 else
4829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4830 for as_dir in $PATH
4832 IFS=$as_save_IFS
4833 test -z "$as_dir" && as_dir=.
4834 for ac_exec_ext in '' $ac_executable_extensions; do
4835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4836 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4838 break 2
4840 done
4841 done
4842 IFS=$as_save_IFS
4846 CC=$ac_cv_prog_CC
4847 if test -n "$CC"; then
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4849 $as_echo "$CC" >&6; }
4850 else
4851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4852 $as_echo "no" >&6; }
4856 test -n "$CC" && break
4857 done
4859 if test -z "$CC"; then
4860 ac_ct_CC=$CC
4861 for ac_prog in cl.exe
4863 # Extract the first word of "$ac_prog", so it can be a program name with args.
4864 set dummy $ac_prog; ac_word=$2
4865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4866 $as_echo_n "checking for $ac_word... " >&6; }
4867 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4868 $as_echo_n "(cached) " >&6
4869 else
4870 if test -n "$ac_ct_CC"; then
4871 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4872 else
4873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4874 for as_dir in $PATH
4876 IFS=$as_save_IFS
4877 test -z "$as_dir" && as_dir=.
4878 for ac_exec_ext in '' $ac_executable_extensions; do
4879 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4880 ac_cv_prog_ac_ct_CC="$ac_prog"
4881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4882 break 2
4884 done
4885 done
4886 IFS=$as_save_IFS
4890 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4891 if test -n "$ac_ct_CC"; then
4892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4893 $as_echo "$ac_ct_CC" >&6; }
4894 else
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4896 $as_echo "no" >&6; }
4900 test -n "$ac_ct_CC" && break
4901 done
4903 if test "x$ac_ct_CC" = x; then
4904 CC=""
4905 else
4906 case $cross_compiling:$ac_tool_warned in
4907 yes:)
4908 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4909 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4910 ac_tool_warned=yes ;;
4911 esac
4912 CC=$ac_ct_CC
4919 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4920 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4921 as_fn_error "no acceptable C compiler found in \$PATH
4922 See \`config.log' for more details." "$LINENO" 5; }
4924 # Provide some information about the compiler.
4925 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4926 set X $ac_compile
4927 ac_compiler=$2
4928 for ac_option in --version -v -V -qversion; do
4929 { { ac_try="$ac_compiler $ac_option >&5"
4930 case "(($ac_try" in
4931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4932 *) ac_try_echo=$ac_try;;
4933 esac
4934 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4935 $as_echo "$ac_try_echo"; } >&5
4936 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4937 ac_status=$?
4938 if test -s conftest.err; then
4939 sed '10a\
4940 ... rest of stderr output deleted ...
4941 10q' conftest.err >conftest.er1
4942 cat conftest.er1 >&5
4944 rm -f conftest.er1 conftest.err
4945 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4946 test $ac_status = 0; }
4947 done
4949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4950 /* end confdefs.h. */
4953 main ()
4957 return 0;
4959 _ACEOF
4960 ac_clean_files_save=$ac_clean_files
4961 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4962 # Try to create an executable without -o first, disregard a.out.
4963 # It will help us diagnose broken compilers, and finding out an intuition
4964 # of exeext.
4965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4966 $as_echo_n "checking whether the C compiler works... " >&6; }
4967 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4969 # The possible output files:
4970 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4972 ac_rmfiles=
4973 for ac_file in $ac_files
4975 case $ac_file in
4976 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4977 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4978 esac
4979 done
4980 rm -f $ac_rmfiles
4982 if { { ac_try="$ac_link_default"
4983 case "(($ac_try" in
4984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4985 *) ac_try_echo=$ac_try;;
4986 esac
4987 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4988 $as_echo "$ac_try_echo"; } >&5
4989 (eval "$ac_link_default") 2>&5
4990 ac_status=$?
4991 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4992 test $ac_status = 0; }; then :
4993 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4994 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4995 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4996 # so that the user can short-circuit this test for compilers unknown to
4997 # Autoconf.
4998 for ac_file in $ac_files ''
5000 test -f "$ac_file" || continue
5001 case $ac_file in
5002 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
5004 [ab].out )
5005 # We found the default executable, but exeext='' is most
5006 # certainly right.
5007 break;;
5008 *.* )
5009 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
5010 then :; else
5011 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5013 # We set ac_cv_exeext here because the later test for it is not
5014 # safe: cross compilers may not add the suffix if given an `-o'
5015 # argument, so we may need to know it at that point already.
5016 # Even if this section looks crufty: it has the advantage of
5017 # actually working.
5018 break;;
5020 break;;
5021 esac
5022 done
5023 test "$ac_cv_exeext" = no && ac_cv_exeext=
5025 else
5026 ac_file=''
5028 if test -z "$ac_file"; then :
5029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5030 $as_echo "no" >&6; }
5031 $as_echo "$as_me: failed program was:" >&5
5032 sed 's/^/| /' conftest.$ac_ext >&5
5034 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5035 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5036 { as_fn_set_status 77
5037 as_fn_error "C compiler cannot create executables
5038 See \`config.log' for more details." "$LINENO" 5; }; }
5039 else
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5041 $as_echo "yes" >&6; }
5043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5044 $as_echo_n "checking for C compiler default output file name... " >&6; }
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5046 $as_echo "$ac_file" >&6; }
5047 ac_exeext=$ac_cv_exeext
5049 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
5050 ac_clean_files=$ac_clean_files_save
5051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5052 $as_echo_n "checking for suffix of executables... " >&6; }
5053 if { { ac_try="$ac_link"
5054 case "(($ac_try" in
5055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5056 *) ac_try_echo=$ac_try;;
5057 esac
5058 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5059 $as_echo "$ac_try_echo"; } >&5
5060 (eval "$ac_link") 2>&5
5061 ac_status=$?
5062 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5063 test $ac_status = 0; }; then :
5064 # If both `conftest.exe' and `conftest' are `present' (well, observable)
5065 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
5066 # work properly (i.e., refer to `conftest.exe'), while it won't with
5067 # `rm'.
5068 for ac_file in conftest.exe conftest conftest.*; do
5069 test -f "$ac_file" || continue
5070 case $ac_file in
5071 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5072 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5073 break;;
5074 * ) break;;
5075 esac
5076 done
5077 else
5078 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5079 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5080 as_fn_error "cannot compute suffix of executables: cannot compile and link
5081 See \`config.log' for more details." "$LINENO" 5; }
5083 rm -f conftest conftest$ac_cv_exeext
5084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5085 $as_echo "$ac_cv_exeext" >&6; }
5087 rm -f conftest.$ac_ext
5088 EXEEXT=$ac_cv_exeext
5089 ac_exeext=$EXEEXT
5090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5091 /* end confdefs.h. */
5092 #include <stdio.h>
5094 main ()
5096 FILE *f = fopen ("conftest.out", "w");
5097 return ferror (f) || fclose (f) != 0;
5100 return 0;
5102 _ACEOF
5103 ac_clean_files="$ac_clean_files conftest.out"
5104 # Check that the compiler produces executables we can run. If not, either
5105 # the compiler is broken, or we cross compile.
5106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5107 $as_echo_n "checking whether we are cross compiling... " >&6; }
5108 if test "$cross_compiling" != yes; then
5109 { { ac_try="$ac_link"
5110 case "(($ac_try" in
5111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5112 *) ac_try_echo=$ac_try;;
5113 esac
5114 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5115 $as_echo "$ac_try_echo"; } >&5
5116 (eval "$ac_link") 2>&5
5117 ac_status=$?
5118 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5119 test $ac_status = 0; }
5120 if { ac_try='./conftest$ac_cv_exeext'
5121 { { case "(($ac_try" in
5122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5123 *) ac_try_echo=$ac_try;;
5124 esac
5125 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5126 $as_echo "$ac_try_echo"; } >&5
5127 (eval "$ac_try") 2>&5
5128 ac_status=$?
5129 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5130 test $ac_status = 0; }; }; then
5131 cross_compiling=no
5132 else
5133 if test "$cross_compiling" = maybe; then
5134 cross_compiling=yes
5135 else
5136 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5137 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5138 as_fn_error "cannot run C compiled programs.
5139 If you meant to cross compile, use \`--host'.
5140 See \`config.log' for more details." "$LINENO" 5; }
5144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5145 $as_echo "$cross_compiling" >&6; }
5147 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5148 ac_clean_files=$ac_clean_files_save
5149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5150 $as_echo_n "checking for suffix of object files... " >&6; }
5151 if test "${ac_cv_objext+set}" = set; then :
5152 $as_echo_n "(cached) " >&6
5153 else
5154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5155 /* end confdefs.h. */
5158 main ()
5162 return 0;
5164 _ACEOF
5165 rm -f conftest.o conftest.obj
5166 if { { ac_try="$ac_compile"
5167 case "(($ac_try" in
5168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5169 *) ac_try_echo=$ac_try;;
5170 esac
5171 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5172 $as_echo "$ac_try_echo"; } >&5
5173 (eval "$ac_compile") 2>&5
5174 ac_status=$?
5175 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5176 test $ac_status = 0; }; then :
5177 for ac_file in conftest.o conftest.obj conftest.*; do
5178 test -f "$ac_file" || continue;
5179 case $ac_file in
5180 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5181 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5182 break;;
5183 esac
5184 done
5185 else
5186 $as_echo "$as_me: failed program was:" >&5
5187 sed 's/^/| /' conftest.$ac_ext >&5
5189 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5190 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5191 as_fn_error "cannot compute suffix of object files: cannot compile
5192 See \`config.log' for more details." "$LINENO" 5; }
5194 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5197 $as_echo "$ac_cv_objext" >&6; }
5198 OBJEXT=$ac_cv_objext
5199 ac_objext=$OBJEXT
5200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5201 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5202 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5203 $as_echo_n "(cached) " >&6
5204 else
5205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5206 /* end confdefs.h. */
5209 main ()
5211 #ifndef __GNUC__
5212 choke me
5213 #endif
5216 return 0;
5218 _ACEOF
5219 if ac_fn_c_try_compile "$LINENO"; then :
5220 ac_compiler_gnu=yes
5221 else
5222 ac_compiler_gnu=no
5224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5225 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5229 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5230 if test $ac_compiler_gnu = yes; then
5231 GCC=yes
5232 else
5233 GCC=
5235 ac_test_CFLAGS=${CFLAGS+set}
5236 ac_save_CFLAGS=$CFLAGS
5237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5238 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5239 if test "${ac_cv_prog_cc_g+set}" = set; then :
5240 $as_echo_n "(cached) " >&6
5241 else
5242 ac_save_c_werror_flag=$ac_c_werror_flag
5243 ac_c_werror_flag=yes
5244 ac_cv_prog_cc_g=no
5245 CFLAGS="-g"
5246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5247 /* end confdefs.h. */
5250 main ()
5254 return 0;
5256 _ACEOF
5257 if ac_fn_c_try_compile "$LINENO"; then :
5258 ac_cv_prog_cc_g=yes
5259 else
5260 CFLAGS=""
5261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5262 /* end confdefs.h. */
5265 main ()
5269 return 0;
5271 _ACEOF
5272 if ac_fn_c_try_compile "$LINENO"; then :
5274 else
5275 ac_c_werror_flag=$ac_save_c_werror_flag
5276 CFLAGS="-g"
5277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5278 /* end confdefs.h. */
5281 main ()
5285 return 0;
5287 _ACEOF
5288 if ac_fn_c_try_compile "$LINENO"; then :
5289 ac_cv_prog_cc_g=yes
5291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5296 ac_c_werror_flag=$ac_save_c_werror_flag
5298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5299 $as_echo "$ac_cv_prog_cc_g" >&6; }
5300 if test "$ac_test_CFLAGS" = set; then
5301 CFLAGS=$ac_save_CFLAGS
5302 elif test $ac_cv_prog_cc_g = yes; then
5303 if test "$GCC" = yes; then
5304 CFLAGS="-g -O2"
5305 else
5306 CFLAGS="-g"
5308 else
5309 if test "$GCC" = yes; then
5310 CFLAGS="-O2"
5311 else
5312 CFLAGS=
5315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5316 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5317 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5318 $as_echo_n "(cached) " >&6
5319 else
5320 ac_cv_prog_cc_c89=no
5321 ac_save_CC=$CC
5322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5323 /* end confdefs.h. */
5324 #include <stdarg.h>
5325 #include <stdio.h>
5326 #include <sys/types.h>
5327 #include <sys/stat.h>
5328 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5329 struct buf { int x; };
5330 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5331 static char *e (p, i)
5332 char **p;
5333 int i;
5335 return p[i];
5337 static char *f (char * (*g) (char **, int), char **p, ...)
5339 char *s;
5340 va_list v;
5341 va_start (v,p);
5342 s = g (p, va_arg (v,int));
5343 va_end (v);
5344 return s;
5347 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5348 function prototypes and stuff, but not '\xHH' hex character constants.
5349 These don't provoke an error unfortunately, instead are silently treated
5350 as 'x'. The following induces an error, until -std is added to get
5351 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5352 array size at least. It's necessary to write '\x00'==0 to get something
5353 that's true only with -std. */
5354 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5356 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5357 inside strings and character constants. */
5358 #define FOO(x) 'x'
5359 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5361 int test (int i, double x);
5362 struct s1 {int (*f) (int a);};
5363 struct s2 {int (*f) (double a);};
5364 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5365 int argc;
5366 char **argv;
5368 main ()
5370 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5372 return 0;
5374 _ACEOF
5375 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5376 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5378 CC="$ac_save_CC $ac_arg"
5379 if ac_fn_c_try_compile "$LINENO"; then :
5380 ac_cv_prog_cc_c89=$ac_arg
5382 rm -f core conftest.err conftest.$ac_objext
5383 test "x$ac_cv_prog_cc_c89" != "xno" && break
5384 done
5385 rm -f conftest.$ac_ext
5386 CC=$ac_save_CC
5389 # AC_CACHE_VAL
5390 case "x$ac_cv_prog_cc_c89" in
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5393 $as_echo "none needed" >&6; } ;;
5394 xno)
5395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5396 $as_echo "unsupported" >&6; } ;;
5398 CC="$CC $ac_cv_prog_cc_c89"
5399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5400 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5401 esac
5402 if test "x$ac_cv_prog_cc_c89" != xno; then :
5406 ac_ext=c
5407 ac_cpp='$CPP $CPPFLAGS'
5408 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5409 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5410 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5411 DEPDIR="${am__leading_dot}deps"
5413 ac_config_commands="$ac_config_commands depfiles"
5416 am_make=${MAKE-make}
5417 cat > confinc << 'END'
5418 am__doit:
5419 @echo this is the am__doit target
5420 .PHONY: am__doit
5422 # If we don't find an include directive, just comment out the code.
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5424 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5425 am__include="#"
5426 am__quote=
5427 _am_result=none
5428 # First try GNU make style include.
5429 echo "include confinc" > confmf
5430 # Ignore all kinds of additional output from `make'.
5431 case `$am_make -s -f confmf 2> /dev/null` in #(
5432 *the\ am__doit\ target*)
5433 am__include=include
5434 am__quote=
5435 _am_result=GNU
5437 esac
5438 # Now try BSD make style include.
5439 if test "$am__include" = "#"; then
5440 echo '.include "confinc"' > confmf
5441 case `$am_make -s -f confmf 2> /dev/null` in #(
5442 *the\ am__doit\ target*)
5443 am__include=.include
5444 am__quote="\""
5445 _am_result=BSD
5447 esac
5451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5452 $as_echo "$_am_result" >&6; }
5453 rm -f confinc confmf
5455 # Check whether --enable-dependency-tracking was given.
5456 if test "${enable_dependency_tracking+set}" = set; then :
5457 enableval=$enable_dependency_tracking;
5460 if test "x$enable_dependency_tracking" != xno; then
5461 am_depcomp="$ac_aux_dir/depcomp"
5462 AMDEPBACKSLASH='\'
5464 if test "x$enable_dependency_tracking" != xno; then
5465 AMDEP_TRUE=
5466 AMDEP_FALSE='#'
5467 else
5468 AMDEP_TRUE='#'
5469 AMDEP_FALSE=
5474 depcc="$CC" am_compiler_list=
5476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5477 $as_echo_n "checking dependency style of $depcc... " >&6; }
5478 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5479 $as_echo_n "(cached) " >&6
5480 else
5481 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5482 # We make a subdir and do the tests there. Otherwise we can end up
5483 # making bogus files that we don't know about and never remove. For
5484 # instance it was reported that on HP-UX the gcc test will end up
5485 # making a dummy file named `D' -- because `-MD' means `put the output
5486 # in D'.
5487 mkdir conftest.dir
5488 # Copy depcomp to subdir because otherwise we won't find it if we're
5489 # using a relative directory.
5490 cp "$am_depcomp" conftest.dir
5491 cd conftest.dir
5492 # We will build objects and dependencies in a subdirectory because
5493 # it helps to detect inapplicable dependency modes. For instance
5494 # both Tru64's cc and ICC support -MD to output dependencies as a
5495 # side effect of compilation, but ICC will put the dependencies in
5496 # the current directory while Tru64 will put them in the object
5497 # directory.
5498 mkdir sub
5500 am_cv_CC_dependencies_compiler_type=none
5501 if test "$am_compiler_list" = ""; then
5502 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5504 am__universal=false
5505 case " $depcc " in #(
5506 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5507 esac
5509 for depmode in $am_compiler_list; do
5510 # Setup a source with many dependencies, because some compilers
5511 # like to wrap large dependency lists on column 80 (with \), and
5512 # we should not choose a depcomp mode which is confused by this.
5514 # We need to recreate these files for each test, as the compiler may
5515 # overwrite some of them when testing with obscure command lines.
5516 # This happens at least with the AIX C compiler.
5517 : > sub/conftest.c
5518 for i in 1 2 3 4 5 6; do
5519 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5520 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5521 # Solaris 8's {/usr,}/bin/sh.
5522 touch sub/conftst$i.h
5523 done
5524 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5526 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5527 # mode. It turns out that the SunPro C++ compiler does not properly
5528 # handle `-M -o', and we need to detect this. Also, some Intel
5529 # versions had trouble with output in subdirs
5530 am__obj=sub/conftest.${OBJEXT-o}
5531 am__minus_obj="-o $am__obj"
5532 case $depmode in
5533 gcc)
5534 # This depmode causes a compiler race in universal mode.
5535 test "$am__universal" = false || continue
5537 nosideeffect)
5538 # after this tag, mechanisms are not by side-effect, so they'll
5539 # only be used when explicitly requested
5540 if test "x$enable_dependency_tracking" = xyes; then
5541 continue
5542 else
5543 break
5546 msvisualcpp | msvcmsys)
5547 # This compiler won't grok `-c -o', but also, the minuso test has
5548 # not run yet. These depmodes are late enough in the game, and
5549 # so weak that their functioning should not be impacted.
5550 am__obj=conftest.${OBJEXT-o}
5551 am__minus_obj=
5553 none) break ;;
5554 esac
5555 if depmode=$depmode \
5556 source=sub/conftest.c object=$am__obj \
5557 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5558 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5559 >/dev/null 2>conftest.err &&
5560 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5561 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5562 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5563 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5564 # icc doesn't choke on unknown options, it will just issue warnings
5565 # or remarks (even with -Werror). So we grep stderr for any message
5566 # that says an option was ignored or not supported.
5567 # When given -MP, icc 7.0 and 7.1 complain thusly:
5568 # icc: Command line warning: ignoring option '-M'; no argument required
5569 # The diagnosis changed in icc 8.0:
5570 # icc: Command line remark: option '-MP' not supported
5571 if (grep 'ignoring option' conftest.err ||
5572 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5573 am_cv_CC_dependencies_compiler_type=$depmode
5574 break
5577 done
5579 cd ..
5580 rm -rf conftest.dir
5581 else
5582 am_cv_CC_dependencies_compiler_type=none
5586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5587 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5588 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5591 test "x$enable_dependency_tracking" != xno \
5592 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5593 am__fastdepCC_TRUE=
5594 am__fastdepCC_FALSE='#'
5595 else
5596 am__fastdepCC_TRUE='#'
5597 am__fastdepCC_FALSE=
5601 if test "x$CC" != xcc; then
5602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5603 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5604 else
5605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5606 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5608 set dummy $CC; ac_cc=`$as_echo "$2" |
5609 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5610 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
5611 $as_echo_n "(cached) " >&6
5612 else
5613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5614 /* end confdefs.h. */
5617 main ()
5621 return 0;
5623 _ACEOF
5624 # Make sure it works both with $CC and with simple cc.
5625 # We do the test twice because some compilers refuse to overwrite an
5626 # existing .o file with -o, though they will create one.
5627 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5628 rm -f conftest2.*
5629 if { { case "(($ac_try" in
5630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5631 *) ac_try_echo=$ac_try;;
5632 esac
5633 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5634 $as_echo "$ac_try_echo"; } >&5
5635 (eval "$ac_try") 2>&5
5636 ac_status=$?
5637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5638 test $ac_status = 0; } &&
5639 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5641 *) ac_try_echo=$ac_try;;
5642 esac
5643 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5644 $as_echo "$ac_try_echo"; } >&5
5645 (eval "$ac_try") 2>&5
5646 ac_status=$?
5647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5648 test $ac_status = 0; };
5649 then
5650 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5651 if test "x$CC" != xcc; then
5652 # Test first that cc exists at all.
5653 if { ac_try='cc -c conftest.$ac_ext >&5'
5654 { { case "(($ac_try" in
5655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5656 *) ac_try_echo=$ac_try;;
5657 esac
5658 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5659 $as_echo "$ac_try_echo"; } >&5
5660 (eval "$ac_try") 2>&5
5661 ac_status=$?
5662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5663 test $ac_status = 0; }; }; then
5664 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5665 rm -f conftest2.*
5666 if { { case "(($ac_try" in
5667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5668 *) ac_try_echo=$ac_try;;
5669 esac
5670 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5671 $as_echo "$ac_try_echo"; } >&5
5672 (eval "$ac_try") 2>&5
5673 ac_status=$?
5674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5675 test $ac_status = 0; } &&
5676 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5678 *) ac_try_echo=$ac_try;;
5679 esac
5680 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5681 $as_echo "$ac_try_echo"; } >&5
5682 (eval "$ac_try") 2>&5
5683 ac_status=$?
5684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5685 test $ac_status = 0; };
5686 then
5687 # cc works too.
5689 else
5690 # cc exists but doesn't like -o.
5691 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5695 else
5696 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5698 rm -f core conftest*
5701 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5703 $as_echo "yes" >&6; }
5704 else
5705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5706 $as_echo "no" >&6; }
5708 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5712 # FIXME: we rely on the cache variable name because
5713 # there is no other way.
5714 set dummy $CC
5715 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5716 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5717 if test "$am_t" != yes; then
5718 # Losing compiler, so override with the script.
5719 # FIXME: It is wrong to rewrite CC.
5720 # But if we don't then we get into trouble of one sort or another.
5721 # A longer-term fix would be to have automake use am__CC in this case,
5722 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5723 CC="$am_aux_dir/compile $CC"
5728 # Initialize gnulib right after verifying that the C compiler works.
5730 ac_ext=c
5731 ac_cpp='$CPP $CPPFLAGS'
5732 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5733 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5734 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5736 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5737 # On Suns, sometimes $CPP names a directory.
5738 if test -n "$CPP" && test -d "$CPP"; then
5739 CPP=
5741 if test -z "$CPP"; then
5742 if test "${ac_cv_prog_CPP+set}" = set; then :
5743 $as_echo_n "(cached) " >&6
5744 else
5745 # Double quotes because CPP needs to be expanded
5746 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5748 ac_preproc_ok=false
5749 for ac_c_preproc_warn_flag in '' yes
5751 # Use a header file that comes with gcc, so configuring glibc
5752 # with a fresh cross-compiler works.
5753 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5754 # <limits.h> exists even on freestanding compilers.
5755 # On the NeXT, cc -E runs the code through the compiler's parser,
5756 # not just through cpp. "Syntax error" is here to catch this case.
5757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5758 /* end confdefs.h. */
5759 #ifdef __STDC__
5760 # include <limits.h>
5761 #else
5762 # include <assert.h>
5763 #endif
5764 Syntax error
5765 _ACEOF
5766 if ac_fn_c_try_cpp "$LINENO"; then :
5768 else
5769 # Broken: fails on valid input.
5770 continue
5772 rm -f conftest.err conftest.$ac_ext
5774 # OK, works on sane cases. Now check whether nonexistent headers
5775 # can be detected and how.
5776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5777 /* end confdefs.h. */
5778 #include <ac_nonexistent.h>
5779 _ACEOF
5780 if ac_fn_c_try_cpp "$LINENO"; then :
5781 # Broken: success on invalid input.
5782 continue
5783 else
5784 # Passes both tests.
5785 ac_preproc_ok=:
5786 break
5788 rm -f conftest.err conftest.$ac_ext
5790 done
5791 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5792 rm -f conftest.err conftest.$ac_ext
5793 if $ac_preproc_ok; then :
5794 break
5797 done
5798 ac_cv_prog_CPP=$CPP
5801 CPP=$ac_cv_prog_CPP
5802 else
5803 ac_cv_prog_CPP=$CPP
5805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5806 $as_echo "$CPP" >&6; }
5807 ac_preproc_ok=false
5808 for ac_c_preproc_warn_flag in '' yes
5810 # Use a header file that comes with gcc, so configuring glibc
5811 # with a fresh cross-compiler works.
5812 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5813 # <limits.h> exists even on freestanding compilers.
5814 # On the NeXT, cc -E runs the code through the compiler's parser,
5815 # not just through cpp. "Syntax error" is here to catch this case.
5816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5817 /* end confdefs.h. */
5818 #ifdef __STDC__
5819 # include <limits.h>
5820 #else
5821 # include <assert.h>
5822 #endif
5823 Syntax error
5824 _ACEOF
5825 if ac_fn_c_try_cpp "$LINENO"; then :
5827 else
5828 # Broken: fails on valid input.
5829 continue
5831 rm -f conftest.err conftest.$ac_ext
5833 # OK, works on sane cases. Now check whether nonexistent headers
5834 # can be detected and how.
5835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5836 /* end confdefs.h. */
5837 #include <ac_nonexistent.h>
5838 _ACEOF
5839 if ac_fn_c_try_cpp "$LINENO"; then :
5840 # Broken: success on invalid input.
5841 continue
5842 else
5843 # Passes both tests.
5844 ac_preproc_ok=:
5845 break
5847 rm -f conftest.err conftest.$ac_ext
5849 done
5850 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5851 rm -f conftest.err conftest.$ac_ext
5852 if $ac_preproc_ok; then :
5854 else
5855 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5856 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5857 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5858 See \`config.log' for more details." "$LINENO" 5; }
5861 ac_ext=c
5862 ac_cpp='$CPP $CPPFLAGS'
5863 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5864 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5865 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5869 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5870 if test "${ac_cv_path_GREP+set}" = set; then :
5871 $as_echo_n "(cached) " >&6
5872 else
5873 if test -z "$GREP"; then
5874 ac_path_GREP_found=false
5875 # Loop through the user's path and test for each of PROGNAME-LIST
5876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5877 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5879 IFS=$as_save_IFS
5880 test -z "$as_dir" && as_dir=.
5881 for ac_prog in grep ggrep; do
5882 for ac_exec_ext in '' $ac_executable_extensions; do
5883 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5884 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5885 # Check for GNU ac_path_GREP and select it if it is found.
5886 # Check for GNU $ac_path_GREP
5887 case `"$ac_path_GREP" --version 2>&1` in
5888 *GNU*)
5889 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5891 ac_count=0
5892 $as_echo_n 0123456789 >"conftest.in"
5893 while :
5895 cat "conftest.in" "conftest.in" >"conftest.tmp"
5896 mv "conftest.tmp" "conftest.in"
5897 cp "conftest.in" "conftest.nl"
5898 $as_echo 'GREP' >> "conftest.nl"
5899 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5900 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5901 as_fn_arith $ac_count + 1 && ac_count=$as_val
5902 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5903 # Best one so far, save it but keep looking for a better one
5904 ac_cv_path_GREP="$ac_path_GREP"
5905 ac_path_GREP_max=$ac_count
5907 # 10*(2^10) chars as input seems more than enough
5908 test $ac_count -gt 10 && break
5909 done
5910 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5911 esac
5913 $ac_path_GREP_found && break 3
5914 done
5915 done
5916 done
5917 IFS=$as_save_IFS
5918 if test -z "$ac_cv_path_GREP"; then
5919 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5921 else
5922 ac_cv_path_GREP=$GREP
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5927 $as_echo "$ac_cv_path_GREP" >&6; }
5928 GREP="$ac_cv_path_GREP"
5931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5932 $as_echo_n "checking for egrep... " >&6; }
5933 if test "${ac_cv_path_EGREP+set}" = set; then :
5934 $as_echo_n "(cached) " >&6
5935 else
5936 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5937 then ac_cv_path_EGREP="$GREP -E"
5938 else
5939 if test -z "$EGREP"; then
5940 ac_path_EGREP_found=false
5941 # Loop through the user's path and test for each of PROGNAME-LIST
5942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5943 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5945 IFS=$as_save_IFS
5946 test -z "$as_dir" && as_dir=.
5947 for ac_prog in egrep; do
5948 for ac_exec_ext in '' $ac_executable_extensions; do
5949 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5950 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5951 # Check for GNU ac_path_EGREP and select it if it is found.
5952 # Check for GNU $ac_path_EGREP
5953 case `"$ac_path_EGREP" --version 2>&1` in
5954 *GNU*)
5955 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5957 ac_count=0
5958 $as_echo_n 0123456789 >"conftest.in"
5959 while :
5961 cat "conftest.in" "conftest.in" >"conftest.tmp"
5962 mv "conftest.tmp" "conftest.in"
5963 cp "conftest.in" "conftest.nl"
5964 $as_echo 'EGREP' >> "conftest.nl"
5965 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5966 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5967 as_fn_arith $ac_count + 1 && ac_count=$as_val
5968 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5969 # Best one so far, save it but keep looking for a better one
5970 ac_cv_path_EGREP="$ac_path_EGREP"
5971 ac_path_EGREP_max=$ac_count
5973 # 10*(2^10) chars as input seems more than enough
5974 test $ac_count -gt 10 && break
5975 done
5976 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5977 esac
5979 $ac_path_EGREP_found && break 3
5980 done
5981 done
5982 done
5983 IFS=$as_save_IFS
5984 if test -z "$ac_cv_path_EGREP"; then
5985 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5987 else
5988 ac_cv_path_EGREP=$EGREP
5993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5994 $as_echo "$ac_cv_path_EGREP" >&6; }
5995 EGREP="$ac_cv_path_EGREP"
6000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
6001 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
6002 if test "${gl_cv_c_amsterdam_compiler+set}" = set; then :
6003 $as_echo_n "(cached) " >&6
6004 else
6006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6007 /* end confdefs.h. */
6009 #ifdef __ACK__
6010 Amsterdam
6011 #endif
6013 _ACEOF
6014 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6015 $EGREP "Amsterdam" >/dev/null 2>&1; then :
6016 gl_cv_c_amsterdam_compiler=yes
6017 else
6018 gl_cv_c_amsterdam_compiler=no
6020 rm -f conftest*
6024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
6025 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
6026 if test -z "$AR"; then
6027 if test $gl_cv_c_amsterdam_compiler = yes; then
6028 AR='cc -c.a'
6029 if test -z "$ARFLAGS"; then
6030 ARFLAGS='-o'
6032 else
6033 if test -n "$ac_tool_prefix"; then
6034 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6035 set dummy ${ac_tool_prefix}ar; ac_word=$2
6036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6037 $as_echo_n "checking for $ac_word... " >&6; }
6038 if test "${ac_cv_prog_AR+set}" = set; then :
6039 $as_echo_n "(cached) " >&6
6040 else
6041 if test -n "$AR"; then
6042 ac_cv_prog_AR="$AR" # Let the user override the test.
6043 else
6044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6045 for as_dir in $PATH
6047 IFS=$as_save_IFS
6048 test -z "$as_dir" && as_dir=.
6049 for ac_exec_ext in '' $ac_executable_extensions; do
6050 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6051 ac_cv_prog_AR="${ac_tool_prefix}ar"
6052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6053 break 2
6055 done
6056 done
6057 IFS=$as_save_IFS
6061 AR=$ac_cv_prog_AR
6062 if test -n "$AR"; then
6063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6064 $as_echo "$AR" >&6; }
6065 else
6066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6067 $as_echo "no" >&6; }
6072 if test -z "$ac_cv_prog_AR"; then
6073 ac_ct_AR=$AR
6074 # Extract the first word of "ar", so it can be a program name with args.
6075 set dummy ar; ac_word=$2
6076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6077 $as_echo_n "checking for $ac_word... " >&6; }
6078 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6079 $as_echo_n "(cached) " >&6
6080 else
6081 if test -n "$ac_ct_AR"; then
6082 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6083 else
6084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6085 for as_dir in $PATH
6087 IFS=$as_save_IFS
6088 test -z "$as_dir" && as_dir=.
6089 for ac_exec_ext in '' $ac_executable_extensions; do
6090 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6091 ac_cv_prog_ac_ct_AR="ar"
6092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6093 break 2
6095 done
6096 done
6097 IFS=$as_save_IFS
6101 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6102 if test -n "$ac_ct_AR"; then
6103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6104 $as_echo "$ac_ct_AR" >&6; }
6105 else
6106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6107 $as_echo "no" >&6; }
6110 if test "x$ac_ct_AR" = x; then
6111 AR="ar"
6112 else
6113 case $cross_compiling:$ac_tool_warned in
6114 yes:)
6115 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6116 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6117 ac_tool_warned=yes ;;
6118 esac
6119 AR=$ac_ct_AR
6121 else
6122 AR="$ac_cv_prog_AR"
6125 if test -z "$ARFLAGS"; then
6126 ARFLAGS='cru'
6129 else
6130 if test -z "$ARFLAGS"; then
6131 ARFLAGS='cru'
6136 if test -z "$RANLIB"; then
6137 if test $gl_cv_c_amsterdam_compiler = yes; then
6138 RANLIB=':'
6139 else
6140 if test -n "$ac_tool_prefix"; then
6141 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6142 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6144 $as_echo_n "checking for $ac_word... " >&6; }
6145 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6146 $as_echo_n "(cached) " >&6
6147 else
6148 if test -n "$RANLIB"; then
6149 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6150 else
6151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6152 for as_dir in $PATH
6154 IFS=$as_save_IFS
6155 test -z "$as_dir" && as_dir=.
6156 for ac_exec_ext in '' $ac_executable_extensions; do
6157 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6158 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6160 break 2
6162 done
6163 done
6164 IFS=$as_save_IFS
6168 RANLIB=$ac_cv_prog_RANLIB
6169 if test -n "$RANLIB"; then
6170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6171 $as_echo "$RANLIB" >&6; }
6172 else
6173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6174 $as_echo "no" >&6; }
6179 if test -z "$ac_cv_prog_RANLIB"; then
6180 ac_ct_RANLIB=$RANLIB
6181 # Extract the first word of "ranlib", so it can be a program name with args.
6182 set dummy ranlib; ac_word=$2
6183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6184 $as_echo_n "checking for $ac_word... " >&6; }
6185 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6186 $as_echo_n "(cached) " >&6
6187 else
6188 if test -n "$ac_ct_RANLIB"; then
6189 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6190 else
6191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6192 for as_dir in $PATH
6194 IFS=$as_save_IFS
6195 test -z "$as_dir" && as_dir=.
6196 for ac_exec_ext in '' $ac_executable_extensions; do
6197 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6198 ac_cv_prog_ac_ct_RANLIB="ranlib"
6199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6200 break 2
6202 done
6203 done
6204 IFS=$as_save_IFS
6208 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6209 if test -n "$ac_ct_RANLIB"; then
6210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6211 $as_echo "$ac_ct_RANLIB" >&6; }
6212 else
6213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6214 $as_echo "no" >&6; }
6217 if test "x$ac_ct_RANLIB" = x; then
6218 RANLIB=":"
6219 else
6220 case $cross_compiling:$ac_tool_warned in
6221 yes:)
6222 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6223 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6224 ac_tool_warned=yes ;;
6225 esac
6226 RANLIB=$ac_ct_RANLIB
6228 else
6229 RANLIB="$ac_cv_prog_RANLIB"
6236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6237 $as_echo_n "checking for ANSI C header files... " >&6; }
6238 if test "${ac_cv_header_stdc+set}" = set; then :
6239 $as_echo_n "(cached) " >&6
6240 else
6241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6242 /* end confdefs.h. */
6243 #include <stdlib.h>
6244 #include <stdarg.h>
6245 #include <string.h>
6246 #include <float.h>
6249 main ()
6253 return 0;
6255 _ACEOF
6256 if ac_fn_c_try_compile "$LINENO"; then :
6257 ac_cv_header_stdc=yes
6258 else
6259 ac_cv_header_stdc=no
6261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6263 if test $ac_cv_header_stdc = yes; then
6264 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6266 /* end confdefs.h. */
6267 #include <string.h>
6269 _ACEOF
6270 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6271 $EGREP "memchr" >/dev/null 2>&1; then :
6273 else
6274 ac_cv_header_stdc=no
6276 rm -f conftest*
6280 if test $ac_cv_header_stdc = yes; then
6281 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6283 /* end confdefs.h. */
6284 #include <stdlib.h>
6286 _ACEOF
6287 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6288 $EGREP "free" >/dev/null 2>&1; then :
6290 else
6291 ac_cv_header_stdc=no
6293 rm -f conftest*
6297 if test $ac_cv_header_stdc = yes; then
6298 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6299 if test "$cross_compiling" = yes; then :
6301 else
6302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6303 /* end confdefs.h. */
6304 #include <ctype.h>
6305 #include <stdlib.h>
6306 #if ((' ' & 0x0FF) == 0x020)
6307 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6308 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6309 #else
6310 # define ISLOWER(c) \
6311 (('a' <= (c) && (c) <= 'i') \
6312 || ('j' <= (c) && (c) <= 'r') \
6313 || ('s' <= (c) && (c) <= 'z'))
6314 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6315 #endif
6317 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6319 main ()
6321 int i;
6322 for (i = 0; i < 256; i++)
6323 if (XOR (islower (i), ISLOWER (i))
6324 || toupper (i) != TOUPPER (i))
6325 return 2;
6326 return 0;
6328 _ACEOF
6329 if ac_fn_c_try_run "$LINENO"; then :
6331 else
6332 ac_cv_header_stdc=no
6334 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6335 conftest.$ac_objext conftest.beam conftest.$ac_ext
6340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6341 $as_echo "$ac_cv_header_stdc" >&6; }
6342 if test $ac_cv_header_stdc = yes; then
6344 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6348 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6349 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6350 inttypes.h stdint.h unistd.h
6351 do :
6352 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6353 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6355 eval as_val=\$$as_ac_Header
6356 if test "x$as_val" = x""yes; then :
6357 cat >>confdefs.h <<_ACEOF
6358 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6359 _ACEOF
6363 done
6369 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6370 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
6371 MINIX=yes
6372 else
6373 MINIX=
6377 if test "$MINIX" = yes; then
6379 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6382 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6385 $as_echo "#define _MINIX 1" >>confdefs.h
6389 case "$host_os" in
6390 hpux*)
6392 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
6395 esac
6398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6399 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6400 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
6401 $as_echo_n "(cached) " >&6
6402 else
6403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6404 /* end confdefs.h. */
6406 # define __EXTENSIONS__ 1
6407 $ac_includes_default
6409 main ()
6413 return 0;
6415 _ACEOF
6416 if ac_fn_c_try_compile "$LINENO"; then :
6417 ac_cv_safe_to_define___extensions__=yes
6418 else
6419 ac_cv_safe_to_define___extensions__=no
6421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6424 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6425 test $ac_cv_safe_to_define___extensions__ = yes &&
6426 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6428 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6430 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
6432 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6434 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6436 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6445 # Check whether --enable-largefile was given.
6446 if test "${enable_largefile+set}" = set; then :
6447 enableval=$enable_largefile;
6450 if test "$enable_largefile" != no; then
6452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6453 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6454 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
6455 $as_echo_n "(cached) " >&6
6456 else
6457 ac_cv_sys_largefile_CC=no
6458 if test "$GCC" != yes; then
6459 ac_save_CC=$CC
6460 while :; do
6461 # IRIX 6.2 and later do not support large files by default,
6462 # so use the C compiler's -n32 option if that helps.
6463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6464 /* end confdefs.h. */
6465 #include <sys/types.h>
6466 /* Check that off_t can represent 2**63 - 1 correctly.
6467 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6468 since some C++ compilers masquerading as C compilers
6469 incorrectly reject 9223372036854775807. */
6470 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6471 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6472 && LARGE_OFF_T % 2147483647 == 1)
6473 ? 1 : -1];
6475 main ()
6479 return 0;
6481 _ACEOF
6482 if ac_fn_c_try_compile "$LINENO"; then :
6483 break
6485 rm -f core conftest.err conftest.$ac_objext
6486 CC="$CC -n32"
6487 if ac_fn_c_try_compile "$LINENO"; then :
6488 ac_cv_sys_largefile_CC=' -n32'; break
6490 rm -f core conftest.err conftest.$ac_objext
6491 break
6492 done
6493 CC=$ac_save_CC
6494 rm -f conftest.$ac_ext
6497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6498 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6499 if test "$ac_cv_sys_largefile_CC" != no; then
6500 CC=$CC$ac_cv_sys_largefile_CC
6503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6504 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6505 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
6506 $as_echo_n "(cached) " >&6
6507 else
6508 while :; do
6509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6510 /* end confdefs.h. */
6511 #include <sys/types.h>
6512 /* Check that off_t can represent 2**63 - 1 correctly.
6513 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6514 since some C++ compilers masquerading as C compilers
6515 incorrectly reject 9223372036854775807. */
6516 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6517 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6518 && LARGE_OFF_T % 2147483647 == 1)
6519 ? 1 : -1];
6521 main ()
6525 return 0;
6527 _ACEOF
6528 if ac_fn_c_try_compile "$LINENO"; then :
6529 ac_cv_sys_file_offset_bits=no; break
6531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6533 /* end confdefs.h. */
6534 #define _FILE_OFFSET_BITS 64
6535 #include <sys/types.h>
6536 /* Check that off_t can represent 2**63 - 1 correctly.
6537 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6538 since some C++ compilers masquerading as C compilers
6539 incorrectly reject 9223372036854775807. */
6540 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6541 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6542 && LARGE_OFF_T % 2147483647 == 1)
6543 ? 1 : -1];
6545 main ()
6549 return 0;
6551 _ACEOF
6552 if ac_fn_c_try_compile "$LINENO"; then :
6553 ac_cv_sys_file_offset_bits=64; break
6555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6556 ac_cv_sys_file_offset_bits=unknown
6557 break
6558 done
6560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6561 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6562 case $ac_cv_sys_file_offset_bits in #(
6563 no | unknown) ;;
6565 cat >>confdefs.h <<_ACEOF
6566 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6567 _ACEOF
6569 esac
6570 rm -rf conftest*
6571 if test $ac_cv_sys_file_offset_bits = unknown; then
6572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6573 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6574 if test "${ac_cv_sys_large_files+set}" = set; then :
6575 $as_echo_n "(cached) " >&6
6576 else
6577 while :; do
6578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6579 /* end confdefs.h. */
6580 #include <sys/types.h>
6581 /* Check that off_t can represent 2**63 - 1 correctly.
6582 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6583 since some C++ compilers masquerading as C compilers
6584 incorrectly reject 9223372036854775807. */
6585 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6586 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6587 && LARGE_OFF_T % 2147483647 == 1)
6588 ? 1 : -1];
6590 main ()
6594 return 0;
6596 _ACEOF
6597 if ac_fn_c_try_compile "$LINENO"; then :
6598 ac_cv_sys_large_files=no; break
6600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6602 /* end confdefs.h. */
6603 #define _LARGE_FILES 1
6604 #include <sys/types.h>
6605 /* Check that off_t can represent 2**63 - 1 correctly.
6606 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6607 since some C++ compilers masquerading as C compilers
6608 incorrectly reject 9223372036854775807. */
6609 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6610 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6611 && LARGE_OFF_T % 2147483647 == 1)
6612 ? 1 : -1];
6614 main ()
6618 return 0;
6620 _ACEOF
6621 if ac_fn_c_try_compile "$LINENO"; then :
6622 ac_cv_sys_large_files=1; break
6624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6625 ac_cv_sys_large_files=unknown
6626 break
6627 done
6629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6630 $as_echo "$ac_cv_sys_large_files" >&6; }
6631 case $ac_cv_sys_large_files in #(
6632 no | unknown) ;;
6634 cat >>confdefs.h <<_ACEOF
6635 #define _LARGE_FILES $ac_cv_sys_large_files
6636 _ACEOF
6638 esac
6639 rm -rf conftest*
6645 case $ac_cv_prog_cc_stdc in #(
6646 no) :
6647 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6648 *) :
6649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
6650 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
6651 if test "${ac_cv_prog_cc_c99+set}" = set; then :
6652 $as_echo_n "(cached) " >&6
6653 else
6654 ac_cv_prog_cc_c99=no
6655 ac_save_CC=$CC
6656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6657 /* end confdefs.h. */
6658 #include <stdarg.h>
6659 #include <stdbool.h>
6660 #include <stdlib.h>
6661 #include <wchar.h>
6662 #include <stdio.h>
6664 // Check varargs macros. These examples are taken from C99 6.10.3.5.
6665 #define debug(...) fprintf (stderr, __VA_ARGS__)
6666 #define showlist(...) puts (#__VA_ARGS__)
6667 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6668 static void
6669 test_varargs_macros (void)
6671 int x = 1234;
6672 int y = 5678;
6673 debug ("Flag");
6674 debug ("X = %d\n", x);
6675 showlist (The first, second, and third items.);
6676 report (x>y, "x is %d but y is %d", x, y);
6679 // Check long long types.
6680 #define BIG64 18446744073709551615ull
6681 #define BIG32 4294967295ul
6682 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6683 #if !BIG_OK
6684 your preprocessor is broken;
6685 #endif
6686 #if BIG_OK
6687 #else
6688 your preprocessor is broken;
6689 #endif
6690 static long long int bignum = -9223372036854775807LL;
6691 static unsigned long long int ubignum = BIG64;
6693 struct incomplete_array
6695 int datasize;
6696 double data[];
6699 struct named_init {
6700 int number;
6701 const wchar_t *name;
6702 double average;
6705 typedef const char *ccp;
6707 static inline int
6708 test_restrict (ccp restrict text)
6710 // See if C++-style comments work.
6711 // Iterate through items via the restricted pointer.
6712 // Also check for declarations in for loops.
6713 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6714 continue;
6715 return 0;
6718 // Check varargs and va_copy.
6719 static void
6720 test_varargs (const char *format, ...)
6722 va_list args;
6723 va_start (args, format);
6724 va_list args_copy;
6725 va_copy (args_copy, args);
6727 const char *str;
6728 int number;
6729 float fnumber;
6731 while (*format)
6733 switch (*format++)
6735 case 's': // string
6736 str = va_arg (args_copy, const char *);
6737 break;
6738 case 'd': // int
6739 number = va_arg (args_copy, int);
6740 break;
6741 case 'f': // float
6742 fnumber = va_arg (args_copy, double);
6743 break;
6744 default:
6745 break;
6748 va_end (args_copy);
6749 va_end (args);
6753 main ()
6756 // Check bool.
6757 _Bool success = false;
6759 // Check restrict.
6760 if (test_restrict ("String literal") == 0)
6761 success = true;
6762 char *restrict newvar = "Another string";
6764 // Check varargs.
6765 test_varargs ("s, d' f .", "string", 65, 34.234);
6766 test_varargs_macros ();
6768 // Check flexible array members.
6769 struct incomplete_array *ia =
6770 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6771 ia->datasize = 10;
6772 for (int i = 0; i < ia->datasize; ++i)
6773 ia->data[i] = i * 1.234;
6775 // Check named initializers.
6776 struct named_init ni = {
6777 .number = 34,
6778 .name = L"Test wide string",
6779 .average = 543.34343,
6782 ni.number = 58;
6784 int dynamic_array[ni.number];
6785 dynamic_array[ni.number - 1] = 543;
6787 // work around unused variable warnings
6788 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6789 || dynamic_array[ni.number - 1] != 543);
6792 return 0;
6794 _ACEOF
6795 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
6797 CC="$ac_save_CC $ac_arg"
6798 if ac_fn_c_try_compile "$LINENO"; then :
6799 ac_cv_prog_cc_c99=$ac_arg
6801 rm -f core conftest.err conftest.$ac_objext
6802 test "x$ac_cv_prog_cc_c99" != "xno" && break
6803 done
6804 rm -f conftest.$ac_ext
6805 CC=$ac_save_CC
6808 # AC_CACHE_VAL
6809 case "x$ac_cv_prog_cc_c99" in
6811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6812 $as_echo "none needed" >&6; } ;;
6813 xno)
6814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6815 $as_echo "unsupported" >&6; } ;;
6817 CC="$CC $ac_cv_prog_cc_c99"
6818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
6819 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6820 esac
6821 if test "x$ac_cv_prog_cc_c99" != xno; then :
6822 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
6823 else
6824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6825 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6826 if test "${ac_cv_prog_cc_c89+set}" = set; then :
6827 $as_echo_n "(cached) " >&6
6828 else
6829 ac_cv_prog_cc_c89=no
6830 ac_save_CC=$CC
6831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6832 /* end confdefs.h. */
6833 #include <stdarg.h>
6834 #include <stdio.h>
6835 #include <sys/types.h>
6836 #include <sys/stat.h>
6837 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6838 struct buf { int x; };
6839 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6840 static char *e (p, i)
6841 char **p;
6842 int i;
6844 return p[i];
6846 static char *f (char * (*g) (char **, int), char **p, ...)
6848 char *s;
6849 va_list v;
6850 va_start (v,p);
6851 s = g (p, va_arg (v,int));
6852 va_end (v);
6853 return s;
6856 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6857 function prototypes and stuff, but not '\xHH' hex character constants.
6858 These don't provoke an error unfortunately, instead are silently treated
6859 as 'x'. The following induces an error, until -std is added to get
6860 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6861 array size at least. It's necessary to write '\x00'==0 to get something
6862 that's true only with -std. */
6863 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6865 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6866 inside strings and character constants. */
6867 #define FOO(x) 'x'
6868 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6870 int test (int i, double x);
6871 struct s1 {int (*f) (int a);};
6872 struct s2 {int (*f) (double a);};
6873 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6874 int argc;
6875 char **argv;
6877 main ()
6879 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6881 return 0;
6883 _ACEOF
6884 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6885 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6887 CC="$ac_save_CC $ac_arg"
6888 if ac_fn_c_try_compile "$LINENO"; then :
6889 ac_cv_prog_cc_c89=$ac_arg
6891 rm -f core conftest.err conftest.$ac_objext
6892 test "x$ac_cv_prog_cc_c89" != "xno" && break
6893 done
6894 rm -f conftest.$ac_ext
6895 CC=$ac_save_CC
6898 # AC_CACHE_VAL
6899 case "x$ac_cv_prog_cc_c89" in
6901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6902 $as_echo "none needed" >&6; } ;;
6903 xno)
6904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6905 $as_echo "unsupported" >&6; } ;;
6907 CC="$CC $ac_cv_prog_cc_c89"
6908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6909 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6910 esac
6911 if test "x$ac_cv_prog_cc_c89" != xno; then :
6912 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
6913 else
6914 ac_cv_prog_cc_stdc=no
6919 esac
6920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
6921 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
6922 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
6923 $as_echo_n "(cached) " >&6
6926 case $ac_cv_prog_cc_stdc in #(
6927 no) :
6928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6929 $as_echo "unsupported" >&6; } ;; #(
6930 '') :
6931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6932 $as_echo "none needed" >&6; } ;; #(
6933 *) :
6934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
6935 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
6936 esac
6940 # Code from module alloca-opt:
6941 # Code from module allocator:
6942 # Code from module careadlinkat:
6943 # Code from module crypto/md5:
6944 # Code from module crypto/sha1:
6945 # Code from module crypto/sha256:
6946 # Code from module crypto/sha512:
6947 # Code from module dosname:
6948 # Code from module dtoastr:
6949 # Code from module dup2:
6950 # Code from module extensions:
6952 # Code from module filemode:
6953 # Code from module getloadavg:
6954 # Code from module getopt-gnu:
6955 # Code from module getopt-posix:
6956 # Code from module gettext-h:
6957 # Code from module ignore-value:
6958 # Code from module include_next:
6959 # Code from module intprops:
6960 # Code from module inttypes-incomplete:
6961 # Code from module largefile:
6963 # Code from module lstat:
6964 # Code from module manywarnings:
6965 # Code from module mktime:
6966 # Code from module multiarch:
6967 # Code from module nocrash:
6968 # Code from module pathmax:
6969 # Code from module pthread_sigmask:
6970 # Code from module readlink:
6971 # Code from module signal-h:
6972 # Code from module sigprocmask:
6973 # Code from module snippet/_Noreturn:
6974 # Code from module snippet/arg-nonnull:
6975 # Code from module snippet/c++defs:
6976 # Code from module snippet/warn-on-use:
6977 # Code from module socklen:
6978 # Code from module ssize_t:
6979 # Code from module stat:
6980 # Code from module stdarg:
6984 # Code from module stdbool:
6985 # Code from module stddef:
6986 # Code from module stdint:
6987 # Code from module stdio:
6988 # Code from module stdlib:
6989 # Code from module strftime:
6990 # Code from module strtoimax:
6991 # Code from module strtoll:
6992 # Code from module strtoull:
6993 # Code from module strtoumax:
6994 # Code from module symlink:
6995 # Code from module sys_stat:
6996 # Code from module time:
6997 # Code from module time_r:
6998 # Code from module u64:
6999 # Code from module unistd:
7000 # Code from module verify:
7001 # Code from module warnings:
7004 # On Suns, sometimes $CPP names a directory.
7005 if test -n "$CPP" && test -d "$CPP"; then
7006 CPP=
7009 ## If not using gcc, and on Solaris, and no CPP specified, see if
7010 ## using a Sun compiler, which needs -Xs to prevent whitespace.
7011 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
7012 test x"$CPP" = x; then
7013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using a Sun C compiler" >&5
7014 $as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
7015 if test "${emacs_cv_sunpro_c+set}" = set; then :
7016 $as_echo_n "(cached) " >&6
7017 else
7018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7019 /* end confdefs.h. */
7022 main ()
7024 #ifndef __SUNPRO_C
7025 fail;
7026 #endif
7029 return 0;
7031 _ACEOF
7032 if ac_fn_c_try_link "$LINENO"; then :
7033 emacs_cv_sunpro_c=yes
7034 else
7035 emacs_cv_sunpro_c=no
7037 rm -f core conftest.err conftest.$ac_objext \
7038 conftest$ac_exeext conftest.$ac_ext
7041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_sunpro_c" >&5
7042 $as_echo "$emacs_cv_sunpro_c" >&6; }
7044 if test x"$emacs_cv_sunpro_c" = xyes; then
7045 NON_GNU_CPP="$CC -E -Xs"
7049 #### Some systems specify a CPP to use unless we are using GCC.
7050 #### Now that we know whether we are using GCC, we can decide whether
7051 #### to use that one.
7052 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
7053 then
7054 CPP="$NON_GNU_CPP"
7057 #### Some systems specify a CC to use unless we are using GCC.
7058 #### Now that we know whether we are using GCC, we can decide whether
7059 #### to use that one.
7060 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
7061 test x$cc_specified != xyes
7062 then
7063 CC="$NON_GNU_CC"
7066 if test x$GCC = xyes; then
7067 test "x$GCC_TEST_OPTIONS" != x && CC="$CC $GCC_TEST_OPTIONS"
7068 else
7069 test "x$NON_GCC_TEST_OPTIONS" != x && CC="$CC $NON_GCC_TEST_OPTIONS"
7072 # Check whether --enable-gcc-warnings was given.
7073 if test "${enable_gcc_warnings+set}" = set; then :
7074 enableval=$enable_gcc_warnings; case $enableval in
7075 yes|no) ;;
7076 *) as_fn_error "bad value $enableval for gcc-warnings option" "$LINENO" 5 ;;
7077 esac
7078 gl_gcc_warnings=$enableval
7079 else
7080 gl_gcc_warnings=no
7085 # gl_GCC_VERSION_IFELSE([major], [minor], [run-if-found], [run-if-not-found])
7086 # ------------------------------------------------
7087 # If $CPP is gcc-MAJOR.MINOR or newer, then run RUN-IF-FOUND.
7088 # Otherwise, run RUN-IF-NOT-FOUND.
7091 # When compiling with GCC, prefer -isystem to -I when including system
7092 # include files, to avoid generating useless diagnostics for the files.
7093 if test "$gl_gcc_warnings" != yes; then
7094 isystem='-I'
7095 else
7096 isystem='-isystem '
7098 # This, $nw, is the list of warnings we disable.
7101 case $with_x_toolkit in
7102 lucid | athena | motif)
7103 # Old toolkits mishandle 'const'.
7104 nw="$nw -Wwrite-strings"
7107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Werror" >&5
7108 $as_echo_n "checking whether C compiler handles -Werror... " >&6; }
7109 if test "${gl_cv_warn_c__Werror+set}" = set; then :
7110 $as_echo_n "(cached) " >&6
7111 else
7113 gl_save_compiler_FLAGS="$CFLAGS"
7114 CFLAGS="$CFLAGS -Werror"
7115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7116 /* end confdefs.h. */
7119 main ()
7123 return 0;
7125 _ACEOF
7126 if ac_fn_c_try_compile "$LINENO"; then :
7127 gl_cv_warn_c__Werror=yes
7128 else
7129 gl_cv_warn_c__Werror=no
7131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7132 CFLAGS="$gl_save_compiler_FLAGS"
7135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Werror" >&5
7136 $as_echo "$gl_cv_warn_c__Werror" >&6; }
7137 if test "x$gl_cv_warn_c__Werror" = x""yes; then :
7138 as_fn_append WERROR_CFLAGS " -Werror"
7142 esac
7145 nw="$nw -Waggregate-return" # anachronistic
7146 nw="$nw -Wlong-long" # C90 is anachronistic
7147 nw="$nw -Wc++-compat" # We don't care about C++ compilers
7148 nw="$nw -Wundef" # Warns on '#if GNULIB_FOO' etc in gnulib
7149 nw="$nw -Wtraditional" # Warns on #elif which we use often
7150 nw="$nw -Wcast-qual" # Too many warnings for now
7151 nw="$nw -Wconversion" # Too many warnings for now
7152 nw="$nw -Wsystem-headers" # Don't let system headers trigger warnings
7153 nw="$nw -Wsign-conversion" # Too many warnings for now
7154 nw="$nw -Woverlength-strings" # Not a problem these days
7155 nw="$nw -Wtraditional-conversion" # Too many warnings for now
7156 nw="$nw -Wpadded" # Our structs are not padded
7157 nw="$nw -Wredundant-decls" # We regularly (re)declare getenv etc.
7158 nw="$nw -Wlogical-op" # any use of fwrite provokes this
7159 nw="$nw -Wformat-nonliteral" # Emacs does this a lot
7160 nw="$nw -Wvla" # warnings in gettext.h
7161 nw="$nw -Wnested-externs" # use of XARGMATCH/verify_function__
7162 nw="$nw -Wswitch-enum" # Too many warnings for now
7163 nw="$nw -Wswitch-default" # Too many warnings for now
7164 nw="$nw -Wfloat-equal" # e.g., ftoastr.c
7165 nw="$nw -Winline" # e.g., dispnew.c's inlining of row_equal_p
7167 # Emacs doesn't care about shadowing; see
7168 # <http://lists.gnu.org/archive/html/emacs-diffs/2011-11/msg00265.html>.
7169 nw="$nw -Wshadow"
7171 # The following lines should be removable at some point.
7172 nw="$nw -Wstack-protector"
7173 nw="$nw -Wstrict-overflow"
7174 nw="$nw -Wsuggest-attribute=const"
7175 nw="$nw -Wsuggest-attribute=pure"
7179 if test -n "$GCC"; then
7181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is supported" >&5
7182 $as_echo_n "checking whether -Wno-missing-field-initializers is supported... " >&6; }
7183 if test "${gl_cv_cc_nomfi_supported+set}" = set; then :
7184 $as_echo_n "(cached) " >&6
7185 else
7187 gl_save_CFLAGS="$CFLAGS"
7188 CFLAGS="$CFLAGS -W -Werror -Wno-missing-field-initializers"
7189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7190 /* end confdefs.h. */
7193 main ()
7197 return 0;
7199 _ACEOF
7200 if ac_fn_c_try_compile "$LINENO"; then :
7201 gl_cv_cc_nomfi_supported=yes
7202 else
7203 gl_cv_cc_nomfi_supported=no
7205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7206 CFLAGS="$gl_save_CFLAGS"
7209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_supported" >&5
7210 $as_echo "$gl_cv_cc_nomfi_supported" >&6; }
7212 if test "$gl_cv_cc_nomfi_supported" = yes; then
7213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is needed" >&5
7214 $as_echo_n "checking whether -Wno-missing-field-initializers is needed... " >&6; }
7215 if test "${gl_cv_cc_nomfi_needed+set}" = set; then :
7216 $as_echo_n "(cached) " >&6
7217 else
7219 gl_save_CFLAGS="$CFLAGS"
7220 CFLAGS="$CFLAGS -W -Werror"
7221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7222 /* end confdefs.h. */
7223 void f (void)
7225 typedef struct { int a; int b; } s_t;
7226 s_t s1 = { 0, };
7230 main ()
7234 return 0;
7236 _ACEOF
7237 if ac_fn_c_try_compile "$LINENO"; then :
7238 gl_cv_cc_nomfi_needed=no
7239 else
7240 gl_cv_cc_nomfi_needed=yes
7242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7243 CFLAGS="$gl_save_CFLAGS"
7247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_needed" >&5
7248 $as_echo "$gl_cv_cc_nomfi_needed" >&6; }
7252 gl_manywarn_set=
7253 for gl_manywarn_item in \
7254 -Wall \
7255 -W \
7256 -Wformat-y2k \
7257 -Wformat-nonliteral \
7258 -Wformat-security \
7259 -Winit-self \
7260 -Wmissing-include-dirs \
7261 -Wswitch-default \
7262 -Wswitch-enum \
7263 -Wunused \
7264 -Wunknown-pragmas \
7265 -Wstrict-aliasing \
7266 -Wstrict-overflow \
7267 -Wsystem-headers \
7268 -Wfloat-equal \
7269 -Wtraditional \
7270 -Wtraditional-conversion \
7271 -Wdeclaration-after-statement \
7272 -Wundef \
7273 -Wshadow \
7274 -Wunsafe-loop-optimizations \
7275 -Wpointer-arith \
7276 -Wbad-function-cast \
7277 -Wc++-compat \
7278 -Wcast-qual \
7279 -Wcast-align \
7280 -Wwrite-strings \
7281 -Wconversion \
7282 -Wsign-conversion \
7283 -Wlogical-op \
7284 -Waggregate-return \
7285 -Wstrict-prototypes \
7286 -Wold-style-definition \
7287 -Wmissing-prototypes \
7288 -Wmissing-declarations \
7289 -Wmissing-noreturn \
7290 -Wmissing-format-attribute \
7291 -Wpacked \
7292 -Wpadded \
7293 -Wredundant-decls \
7294 -Wnested-externs \
7295 -Wunreachable-code \
7296 -Winline \
7297 -Winvalid-pch \
7298 -Wlong-long \
7299 -Wvla \
7300 -Wvolatile-register-var \
7301 -Wdisabled-optimization \
7302 -Wstack-protector \
7303 -Woverlength-strings \
7304 -Wbuiltin-macro-redefined \
7305 -Wmudflap \
7306 -Wpacked-bitfield-compat \
7307 -Wsync-nand \
7308 ; do
7309 gl_manywarn_set="$gl_manywarn_set $gl_manywarn_item"
7310 done
7311 # The following are not documented in the manual but are included in
7312 # output from gcc --help=warnings.
7313 for gl_manywarn_item in \
7314 -Wattributes \
7315 -Wcoverage-mismatch \
7316 -Wmultichar \
7317 -Wunused-macros \
7318 ; do
7319 gl_manywarn_set="$gl_manywarn_set $gl_manywarn_item"
7320 done
7321 # More warnings from gcc 4.6.2 --help=warnings.
7322 for gl_manywarn_item in \
7323 -Wabi \
7324 -Wcpp \
7325 -Wdeprecated \
7326 -Wdeprecated-declarations \
7327 -Wdiv-by-zero \
7328 -Wdouble-promotion \
7329 -Wendif-labels \
7330 -Wextra \
7331 -Wformat-contains-nul \
7332 -Wformat-extra-args \
7333 -Wformat-zero-length \
7334 -Wformat=2 \
7335 -Wmultichar \
7336 -Wnormalized=nfc \
7337 -Woverflow \
7338 -Wpointer-to-int-cast \
7339 -Wpragmas \
7340 -Wsuggest-attribute=const \
7341 -Wsuggest-attribute=noreturn \
7342 -Wsuggest-attribute=pure \
7343 -Wtrampolines \
7344 ; do
7345 gl_manywarn_set="$gl_manywarn_set $gl_manywarn_item"
7346 done
7348 # Disable the missing-field-initializers warning if needed
7349 if test "$gl_cv_cc_nomfi_needed" = yes; then
7350 gl_manywarn_set="$gl_manywarn_set -Wno-missing-field-initializers"
7353 ws=$gl_manywarn_set
7356 gl_warn_set=
7357 set x $ws; shift
7358 for gl_warn_item
7360 case " $nw " in
7361 *" $gl_warn_item "*)
7364 gl_warn_set="$gl_warn_set $gl_warn_item"
7366 esac
7367 done
7368 ws=$gl_warn_set
7370 for w in $ws; do
7371 as_gl_Warn=`$as_echo "gl_cv_warn_c_$w" | $as_tr_sh`
7372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles $w" >&5
7373 $as_echo_n "checking whether C compiler handles $w... " >&6; }
7374 if { as_var=$as_gl_Warn; eval "test \"\${$as_var+set}\" = set"; }; then :
7375 $as_echo_n "(cached) " >&6
7376 else
7378 gl_save_compiler_FLAGS="$CFLAGS"
7379 CFLAGS="$CFLAGS $w"
7380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7381 /* end confdefs.h. */
7384 main ()
7388 return 0;
7390 _ACEOF
7391 if ac_fn_c_try_compile "$LINENO"; then :
7392 eval "$as_gl_Warn=yes"
7393 else
7394 eval "$as_gl_Warn=no"
7396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7397 CFLAGS="$gl_save_compiler_FLAGS"
7400 eval ac_res=\$$as_gl_Warn
7401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7402 $as_echo "$ac_res" >&6; }
7403 eval as_val=\$$as_gl_Warn
7404 if test "x$as_val" = x""yes; then :
7405 as_fn_append WARN_CFLAGS " $w"
7408 done
7409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-missing-field-initializers" >&5
7410 $as_echo_n "checking whether C compiler handles -Wno-missing-field-initializers... " >&6; }
7411 if test "${gl_cv_warn_c__Wno_missing_field_initializers+set}" = set; then :
7412 $as_echo_n "(cached) " >&6
7413 else
7415 gl_save_compiler_FLAGS="$CFLAGS"
7416 CFLAGS="$CFLAGS -Wno-missing-field-initializers"
7417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7418 /* end confdefs.h. */
7421 main ()
7425 return 0;
7427 _ACEOF
7428 if ac_fn_c_try_compile "$LINENO"; then :
7429 gl_cv_warn_c__Wno_missing_field_initializers=yes
7430 else
7431 gl_cv_warn_c__Wno_missing_field_initializers=no
7433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7434 CFLAGS="$gl_save_compiler_FLAGS"
7437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_missing_field_initializers" >&5
7438 $as_echo "$gl_cv_warn_c__Wno_missing_field_initializers" >&6; }
7439 if test "x$gl_cv_warn_c__Wno_missing_field_initializers" = x""yes; then :
7440 as_fn_append WARN_CFLAGS " -Wno-missing-field-initializers"
7442 # We need this one
7443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-sign-compare" >&5
7444 $as_echo_n "checking whether C compiler handles -Wno-sign-compare... " >&6; }
7445 if test "${gl_cv_warn_c__Wno_sign_compare+set}" = set; then :
7446 $as_echo_n "(cached) " >&6
7447 else
7449 gl_save_compiler_FLAGS="$CFLAGS"
7450 CFLAGS="$CFLAGS -Wno-sign-compare"
7451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7452 /* end confdefs.h. */
7455 main ()
7459 return 0;
7461 _ACEOF
7462 if ac_fn_c_try_compile "$LINENO"; then :
7463 gl_cv_warn_c__Wno_sign_compare=yes
7464 else
7465 gl_cv_warn_c__Wno_sign_compare=no
7467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7468 CFLAGS="$gl_save_compiler_FLAGS"
7471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_sign_compare" >&5
7472 $as_echo "$gl_cv_warn_c__Wno_sign_compare" >&6; }
7473 if test "x$gl_cv_warn_c__Wno_sign_compare" = x""yes; then :
7474 as_fn_append WARN_CFLAGS " -Wno-sign-compare"
7476 # Too many warnings for now
7477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-type-limits" >&5
7478 $as_echo_n "checking whether C compiler handles -Wno-type-limits... " >&6; }
7479 if test "${gl_cv_warn_c__Wno_type_limits+set}" = set; then :
7480 $as_echo_n "(cached) " >&6
7481 else
7483 gl_save_compiler_FLAGS="$CFLAGS"
7484 CFLAGS="$CFLAGS -Wno-type-limits"
7485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7486 /* end confdefs.h. */
7489 main ()
7493 return 0;
7495 _ACEOF
7496 if ac_fn_c_try_compile "$LINENO"; then :
7497 gl_cv_warn_c__Wno_type_limits=yes
7498 else
7499 gl_cv_warn_c__Wno_type_limits=no
7501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7502 CFLAGS="$gl_save_compiler_FLAGS"
7505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_type_limits" >&5
7506 $as_echo "$gl_cv_warn_c__Wno_type_limits" >&6; }
7507 if test "x$gl_cv_warn_c__Wno_type_limits" = x""yes; then :
7508 as_fn_append WARN_CFLAGS " -Wno-type-limits"
7510 # Too many warnings for now
7511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-switch" >&5
7512 $as_echo_n "checking whether C compiler handles -Wno-switch... " >&6; }
7513 if test "${gl_cv_warn_c__Wno_switch+set}" = set; then :
7514 $as_echo_n "(cached) " >&6
7515 else
7517 gl_save_compiler_FLAGS="$CFLAGS"
7518 CFLAGS="$CFLAGS -Wno-switch"
7519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7520 /* end confdefs.h. */
7523 main ()
7527 return 0;
7529 _ACEOF
7530 if ac_fn_c_try_compile "$LINENO"; then :
7531 gl_cv_warn_c__Wno_switch=yes
7532 else
7533 gl_cv_warn_c__Wno_switch=no
7535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7536 CFLAGS="$gl_save_compiler_FLAGS"
7539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_switch" >&5
7540 $as_echo "$gl_cv_warn_c__Wno_switch" >&6; }
7541 if test "x$gl_cv_warn_c__Wno_switch" = x""yes; then :
7542 as_fn_append WARN_CFLAGS " -Wno-switch"
7544 # Too many warnings for now
7545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-unused-parameter" >&5
7546 $as_echo_n "checking whether C compiler handles -Wno-unused-parameter... " >&6; }
7547 if test "${gl_cv_warn_c__Wno_unused_parameter+set}" = set; then :
7548 $as_echo_n "(cached) " >&6
7549 else
7551 gl_save_compiler_FLAGS="$CFLAGS"
7552 CFLAGS="$CFLAGS -Wno-unused-parameter"
7553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7554 /* end confdefs.h. */
7557 main ()
7561 return 0;
7563 _ACEOF
7564 if ac_fn_c_try_compile "$LINENO"; then :
7565 gl_cv_warn_c__Wno_unused_parameter=yes
7566 else
7567 gl_cv_warn_c__Wno_unused_parameter=no
7569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7570 CFLAGS="$gl_save_compiler_FLAGS"
7573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_unused_parameter" >&5
7574 $as_echo "$gl_cv_warn_c__Wno_unused_parameter" >&6; }
7575 if test "x$gl_cv_warn_c__Wno_unused_parameter" = x""yes; then :
7576 as_fn_append WARN_CFLAGS " -Wno-unused-parameter"
7578 # Too many warnings for now
7579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-format-nonliteral" >&5
7580 $as_echo_n "checking whether C compiler handles -Wno-format-nonliteral... " >&6; }
7581 if test "${gl_cv_warn_c__Wno_format_nonliteral+set}" = set; then :
7582 $as_echo_n "(cached) " >&6
7583 else
7585 gl_save_compiler_FLAGS="$CFLAGS"
7586 CFLAGS="$CFLAGS -Wno-format-nonliteral"
7587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7588 /* end confdefs.h. */
7591 main ()
7595 return 0;
7597 _ACEOF
7598 if ac_fn_c_try_compile "$LINENO"; then :
7599 gl_cv_warn_c__Wno_format_nonliteral=yes
7600 else
7601 gl_cv_warn_c__Wno_format_nonliteral=no
7603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7604 CFLAGS="$gl_save_compiler_FLAGS"
7607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_format_nonliteral" >&5
7608 $as_echo "$gl_cv_warn_c__Wno_format_nonliteral" >&6; }
7609 if test "x$gl_cv_warn_c__Wno_format_nonliteral" = x""yes; then :
7610 as_fn_append WARN_CFLAGS " -Wno-format-nonliteral"
7614 # In spite of excluding -Wlogical-op above, it is enabled, as of
7615 # gcc 4.5.0 20090517.
7616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-logical-op" >&5
7617 $as_echo_n "checking whether C compiler handles -Wno-logical-op... " >&6; }
7618 if test "${gl_cv_warn_c__Wno_logical_op+set}" = set; then :
7619 $as_echo_n "(cached) " >&6
7620 else
7622 gl_save_compiler_FLAGS="$CFLAGS"
7623 CFLAGS="$CFLAGS -Wno-logical-op"
7624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7625 /* end confdefs.h. */
7628 main ()
7632 return 0;
7634 _ACEOF
7635 if ac_fn_c_try_compile "$LINENO"; then :
7636 gl_cv_warn_c__Wno_logical_op=yes
7637 else
7638 gl_cv_warn_c__Wno_logical_op=no
7640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7641 CFLAGS="$gl_save_compiler_FLAGS"
7644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_logical_op" >&5
7645 $as_echo "$gl_cv_warn_c__Wno_logical_op" >&6; }
7646 if test "x$gl_cv_warn_c__Wno_logical_op" = x""yes; then :
7647 as_fn_append WARN_CFLAGS " -Wno-logical-op"
7651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -fdiagnostics-show-option" >&5
7652 $as_echo_n "checking whether C compiler handles -fdiagnostics-show-option... " >&6; }
7653 if test "${gl_cv_warn_c__fdiagnostics_show_option+set}" = set; then :
7654 $as_echo_n "(cached) " >&6
7655 else
7657 gl_save_compiler_FLAGS="$CFLAGS"
7658 CFLAGS="$CFLAGS -fdiagnostics-show-option"
7659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7660 /* end confdefs.h. */
7663 main ()
7667 return 0;
7669 _ACEOF
7670 if ac_fn_c_try_compile "$LINENO"; then :
7671 gl_cv_warn_c__fdiagnostics_show_option=yes
7672 else
7673 gl_cv_warn_c__fdiagnostics_show_option=no
7675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7676 CFLAGS="$gl_save_compiler_FLAGS"
7679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__fdiagnostics_show_option" >&5
7680 $as_echo "$gl_cv_warn_c__fdiagnostics_show_option" >&6; }
7681 if test "x$gl_cv_warn_c__fdiagnostics_show_option" = x""yes; then :
7682 as_fn_append WARN_CFLAGS " -fdiagnostics-show-option"
7685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -funit-at-a-time" >&5
7686 $as_echo_n "checking whether C compiler handles -funit-at-a-time... " >&6; }
7687 if test "${gl_cv_warn_c__funit_at_a_time+set}" = set; then :
7688 $as_echo_n "(cached) " >&6
7689 else
7691 gl_save_compiler_FLAGS="$CFLAGS"
7692 CFLAGS="$CFLAGS -funit-at-a-time"
7693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7694 /* end confdefs.h. */
7697 main ()
7701 return 0;
7703 _ACEOF
7704 if ac_fn_c_try_compile "$LINENO"; then :
7705 gl_cv_warn_c__funit_at_a_time=yes
7706 else
7707 gl_cv_warn_c__funit_at_a_time=no
7709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7710 CFLAGS="$gl_save_compiler_FLAGS"
7713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__funit_at_a_time" >&5
7714 $as_echo "$gl_cv_warn_c__funit_at_a_time" >&6; }
7715 if test "x$gl_cv_warn_c__funit_at_a_time" = x""yes; then :
7716 as_fn_append WARN_CFLAGS " -funit-at-a-time"
7721 $as_echo "#define lint 1" >>confdefs.h
7724 $as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
7727 $as_echo "#define GNULIB_PORTCHECK 1" >>confdefs.h
7730 # We use a slightly smaller set of warning options for lib/.
7731 # Remove the following and save the result in GNULIB_WARN_CFLAGS.
7733 nw="$nw -Wunused-macros"
7736 gl_warn_set=
7737 set x $WARN_CFLAGS; shift
7738 for gl_warn_item
7740 case " $nw " in
7741 *" $gl_warn_item "*)
7744 gl_warn_set="$gl_warn_set $gl_warn_item"
7746 esac
7747 done
7748 GNULIB_WARN_CFLAGS=$gl_warn_set
7755 #### Some other nice autoconf tests.
7757 ac_ext=c
7758 ac_cpp='$CPP $CPPFLAGS'
7759 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7760 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7761 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7763 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7764 # On Suns, sometimes $CPP names a directory.
7765 if test -n "$CPP" && test -d "$CPP"; then
7766 CPP=
7768 if test -z "$CPP"; then
7769 if test "${ac_cv_prog_CPP+set}" = set; then :
7770 $as_echo_n "(cached) " >&6
7771 else
7772 # Double quotes because CPP needs to be expanded
7773 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7775 ac_preproc_ok=false
7776 for ac_c_preproc_warn_flag in '' yes
7778 # Use a header file that comes with gcc, so configuring glibc
7779 # with a fresh cross-compiler works.
7780 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7781 # <limits.h> exists even on freestanding compilers.
7782 # On the NeXT, cc -E runs the code through the compiler's parser,
7783 # not just through cpp. "Syntax error" is here to catch this case.
7784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7785 /* end confdefs.h. */
7786 #ifdef __STDC__
7787 # include <limits.h>
7788 #else
7789 # include <assert.h>
7790 #endif
7791 Syntax error
7792 _ACEOF
7793 if ac_fn_c_try_cpp "$LINENO"; then :
7795 else
7796 # Broken: fails on valid input.
7797 continue
7799 rm -f conftest.err conftest.$ac_ext
7801 # OK, works on sane cases. Now check whether nonexistent headers
7802 # can be detected and how.
7803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7804 /* end confdefs.h. */
7805 #include <ac_nonexistent.h>
7806 _ACEOF
7807 if ac_fn_c_try_cpp "$LINENO"; then :
7808 # Broken: success on invalid input.
7809 continue
7810 else
7811 # Passes both tests.
7812 ac_preproc_ok=:
7813 break
7815 rm -f conftest.err conftest.$ac_ext
7817 done
7818 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7819 rm -f conftest.err conftest.$ac_ext
7820 if $ac_preproc_ok; then :
7821 break
7824 done
7825 ac_cv_prog_CPP=$CPP
7828 CPP=$ac_cv_prog_CPP
7829 else
7830 ac_cv_prog_CPP=$CPP
7832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7833 $as_echo "$CPP" >&6; }
7834 ac_preproc_ok=false
7835 for ac_c_preproc_warn_flag in '' yes
7837 # Use a header file that comes with gcc, so configuring glibc
7838 # with a fresh cross-compiler works.
7839 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7840 # <limits.h> exists even on freestanding compilers.
7841 # On the NeXT, cc -E runs the code through the compiler's parser,
7842 # not just through cpp. "Syntax error" is here to catch this case.
7843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7844 /* end confdefs.h. */
7845 #ifdef __STDC__
7846 # include <limits.h>
7847 #else
7848 # include <assert.h>
7849 #endif
7850 Syntax error
7851 _ACEOF
7852 if ac_fn_c_try_cpp "$LINENO"; then :
7854 else
7855 # Broken: fails on valid input.
7856 continue
7858 rm -f conftest.err conftest.$ac_ext
7860 # OK, works on sane cases. Now check whether nonexistent headers
7861 # can be detected and how.
7862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7863 /* end confdefs.h. */
7864 #include <ac_nonexistent.h>
7865 _ACEOF
7866 if ac_fn_c_try_cpp "$LINENO"; then :
7867 # Broken: success on invalid input.
7868 continue
7869 else
7870 # Passes both tests.
7871 ac_preproc_ok=:
7872 break
7874 rm -f conftest.err conftest.$ac_ext
7876 done
7877 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7878 rm -f conftest.err conftest.$ac_ext
7879 if $ac_preproc_ok; then :
7881 else
7882 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7883 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7884 as_fn_error "C preprocessor \"$CPP\" fails sanity check
7885 See \`config.log' for more details." "$LINENO" 5; }
7888 ac_ext=c
7889 ac_cpp='$CPP $CPPFLAGS'
7890 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7891 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7892 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7895 if test "x$RANLIB" = x; then
7896 if test -n "$ac_tool_prefix"; then
7897 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7898 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7900 $as_echo_n "checking for $ac_word... " >&6; }
7901 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7902 $as_echo_n "(cached) " >&6
7903 else
7904 if test -n "$RANLIB"; then
7905 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7906 else
7907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7908 for as_dir in $PATH
7910 IFS=$as_save_IFS
7911 test -z "$as_dir" && as_dir=.
7912 for ac_exec_ext in '' $ac_executable_extensions; do
7913 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7914 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7916 break 2
7918 done
7919 done
7920 IFS=$as_save_IFS
7924 RANLIB=$ac_cv_prog_RANLIB
7925 if test -n "$RANLIB"; then
7926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7927 $as_echo "$RANLIB" >&6; }
7928 else
7929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7930 $as_echo "no" >&6; }
7935 if test -z "$ac_cv_prog_RANLIB"; then
7936 ac_ct_RANLIB=$RANLIB
7937 # Extract the first word of "ranlib", so it can be a program name with args.
7938 set dummy ranlib; ac_word=$2
7939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7940 $as_echo_n "checking for $ac_word... " >&6; }
7941 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7942 $as_echo_n "(cached) " >&6
7943 else
7944 if test -n "$ac_ct_RANLIB"; then
7945 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7946 else
7947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7948 for as_dir in $PATH
7950 IFS=$as_save_IFS
7951 test -z "$as_dir" && as_dir=.
7952 for ac_exec_ext in '' $ac_executable_extensions; do
7953 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7954 ac_cv_prog_ac_ct_RANLIB="ranlib"
7955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7956 break 2
7958 done
7959 done
7960 IFS=$as_save_IFS
7964 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7965 if test -n "$ac_ct_RANLIB"; then
7966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7967 $as_echo "$ac_ct_RANLIB" >&6; }
7968 else
7969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7970 $as_echo "no" >&6; }
7973 if test "x$ac_ct_RANLIB" = x; then
7974 RANLIB=":"
7975 else
7976 case $cross_compiling:$ac_tool_warned in
7977 yes:)
7978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7979 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7980 ac_tool_warned=yes ;;
7981 esac
7982 RANLIB=$ac_ct_RANLIB
7984 else
7985 RANLIB="$ac_cv_prog_RANLIB"
7990 ## Although we're running on an amd64 kernel, we're actually compiling for
7991 ## the x86 architecture. The user should probably have provided an
7992 ## explicit --build to `configure', but if everything else than the kernel
7993 ## is running in i386 mode, we can help them out.
7994 if test "$machine" = "amdx86-64"; then
7995 ac_fn_c_check_decl "$LINENO" "i386" "ac_cv_have_decl_i386" "$ac_includes_default"
7996 if test "x$ac_cv_have_decl_i386" = x""yes; then :
8000 if test "$ac_cv_have_decl_i386" = "yes"; then
8001 canonical=`echo "$canonical" | sed -e 's/^amd64/i386/' -e 's/^x86_64/i386/'`
8002 machine=intel386
8003 machfile="m/${machine}.h"
8007 # Extract the first word of "install-info", so it can be a program name with args.
8008 set dummy install-info; ac_word=$2
8009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8010 $as_echo_n "checking for $ac_word... " >&6; }
8011 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
8012 $as_echo_n "(cached) " >&6
8013 else
8014 case $INSTALL_INFO in
8015 [\\/]* | ?:[\\/]*)
8016 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
8019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8020 for as_dir in $PATH
8022 IFS=$as_save_IFS
8023 test -z "$as_dir" && as_dir=.
8024 for ac_exec_ext in '' $ac_executable_extensions; do
8025 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8026 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
8027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8028 break 2
8030 done
8031 done
8032 IFS=$as_save_IFS
8035 esac
8037 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
8038 if test -n "$INSTALL_INFO"; then
8039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
8040 $as_echo "$INSTALL_INFO" >&6; }
8041 else
8042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8043 $as_echo "no" >&6; }
8047 # Extract the first word of "install-info", so it can be a program name with args.
8048 set dummy install-info; ac_word=$2
8049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8050 $as_echo_n "checking for $ac_word... " >&6; }
8051 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
8052 $as_echo_n "(cached) " >&6
8053 else
8054 case $INSTALL_INFO in
8055 [\\/]* | ?:[\\/]*)
8056 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
8059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8060 for as_dir in /usr/sbin
8062 IFS=$as_save_IFS
8063 test -z "$as_dir" && as_dir=.
8064 for ac_exec_ext in '' $ac_executable_extensions; do
8065 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8066 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
8067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8068 break 2
8070 done
8071 done
8072 IFS=$as_save_IFS
8075 esac
8077 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
8078 if test -n "$INSTALL_INFO"; then
8079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
8080 $as_echo "$INSTALL_INFO" >&6; }
8081 else
8082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8083 $as_echo "no" >&6; }
8087 # Extract the first word of "install-info", so it can be a program name with args.
8088 set dummy install-info; ac_word=$2
8089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8090 $as_echo_n "checking for $ac_word... " >&6; }
8091 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
8092 $as_echo_n "(cached) " >&6
8093 else
8094 case $INSTALL_INFO in
8095 [\\/]* | ?:[\\/]*)
8096 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
8099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8100 for as_dir in /sbin
8102 IFS=$as_save_IFS
8103 test -z "$as_dir" && as_dir=.
8104 for ac_exec_ext in '' $ac_executable_extensions; do
8105 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8106 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
8107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8108 break 2
8110 done
8111 done
8112 IFS=$as_save_IFS
8114 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
8116 esac
8118 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
8119 if test -n "$INSTALL_INFO"; then
8120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
8121 $as_echo "$INSTALL_INFO" >&6; }
8122 else
8123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8124 $as_echo "no" >&6; }
8128 # Extract the first word of "gzip", so it can be a program name with args.
8129 set dummy gzip; ac_word=$2
8130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8131 $as_echo_n "checking for $ac_word... " >&6; }
8132 if test "${ac_cv_path_GZIP_PROG+set}" = set; then :
8133 $as_echo_n "(cached) " >&6
8134 else
8135 case $GZIP_PROG in
8136 [\\/]* | ?:[\\/]*)
8137 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
8140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8141 for as_dir in $PATH
8143 IFS=$as_save_IFS
8144 test -z "$as_dir" && as_dir=.
8145 for ac_exec_ext in '' $ac_executable_extensions; do
8146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8147 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
8148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8149 break 2
8151 done
8152 done
8153 IFS=$as_save_IFS
8156 esac
8158 GZIP_PROG=$ac_cv_path_GZIP_PROG
8159 if test -n "$GZIP_PROG"; then
8160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
8161 $as_echo "$GZIP_PROG" >&6; }
8162 else
8163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8164 $as_echo "no" >&6; }
8170 ## Need makeinfo >= 4.7 (?) to build the manuals.
8171 # Extract the first word of "makeinfo", so it can be a program name with args.
8172 set dummy makeinfo; ac_word=$2
8173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8174 $as_echo_n "checking for $ac_word... " >&6; }
8175 if test "${ac_cv_path_MAKEINFO+set}" = set; then :
8176 $as_echo_n "(cached) " >&6
8177 else
8178 case $MAKEINFO in
8179 [\\/]* | ?:[\\/]*)
8180 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
8183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8184 for as_dir in $PATH
8186 IFS=$as_save_IFS
8187 test -z "$as_dir" && as_dir=.
8188 for ac_exec_ext in '' $ac_executable_extensions; do
8189 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8190 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
8191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8192 break 2
8194 done
8195 done
8196 IFS=$as_save_IFS
8198 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
8200 esac
8202 MAKEINFO=$ac_cv_path_MAKEINFO
8203 if test -n "$MAKEINFO"; then
8204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8205 $as_echo "$MAKEINFO" >&6; }
8206 else
8207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8208 $as_echo "no" >&6; }
8212 if test "$MAKEINFO" != "no" && \
8213 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
8214 MAKEINFO=no
8217 ## Makeinfo is unusual. For a released Emacs, the manuals are
8218 ## pre-built, and not deleted by the normal clean rules. makeinfo is
8219 ## therefore in the category of "special tools" not normally required, which
8220 ## configure does not have to check for (eg autoconf itself).
8221 ## In a Bazaar checkout on the other hand, the manuals are not included.
8222 ## So makeinfo is a requirement to build from Bazaar, and configure
8223 ## should test for it as it does for any other build requirement.
8224 ## We use the presence of $srcdir/info/emacs to distinguish a release,
8225 ## with pre-built manuals, from a Bazaar checkout.
8226 HAVE_MAKEINFO=yes
8228 if test "$MAKEINFO" = "no"; then
8229 MAKEINFO=makeinfo
8230 if test "x${with_makeinfo}" = "xno"; then
8231 HAVE_MAKEINFO=no
8232 elif test ! -e $srcdir/info/emacs; then
8233 as_fn_error "You do not seem to have makeinfo >= 4.7, and your
8234 source tree does not seem to have pre-built manuals in the \`info' directory.
8235 Either install a suitable version of makeinfo, or re-run configure
8236 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
8242 if test x$GCC = xyes; then
8243 test "x$GCC_LINK_TEST_OPTIONS" != x && \
8244 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
8245 else
8246 test "x$NON_GCC_LINK_TEST_OPTIONS" != x && \
8247 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
8251 late_LDFLAGS=$LDFLAGS
8252 if test x$GCC = xyes; then
8253 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
8254 else
8255 LDFLAGS="$LDFLAGS -znocombreloc"
8258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
8259 $as_echo_n "checking for -znocombreloc... " >&6; }
8260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8261 /* end confdefs.h. */
8264 main ()
8268 return 0;
8270 _ACEOF
8271 if ac_fn_c_try_link "$LINENO"; then :
8272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8273 $as_echo "yes" >&6; }
8274 else
8275 LDFLAGS=$late_LDFLAGS
8276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8277 $as_echo "no" >&6; }
8279 rm -f core conftest.err conftest.$ac_objext \
8280 conftest$ac_exeext conftest.$ac_ext
8283 # The value of CPP is a quoted variable reference, so we need to do this
8284 # to get its actual value...
8285 CPP=`eval "echo $CPP"`
8288 test "x$CANNOT_DUMP" = "x" && CANNOT_DUMP=no
8289 case "$opsys" in
8290 your-opsys-here) CANNOT_DUMP=yes ;;
8291 esac
8293 test "$CANNOT_DUMP" = "yes" && \
8295 $as_echo "#define CANNOT_DUMP 1" >>confdefs.h
8301 UNEXEC_OBJ=unexelf.o
8302 case "$opsys" in
8303 # MSDOS uses unexcoff.o
8304 # MSWindows uses unexw32.o
8305 aix4-2)
8306 UNEXEC_OBJ=unexaix.o
8308 cygwin)
8309 UNEXEC_OBJ=unexcw.o
8311 darwin)
8312 UNEXEC_OBJ=unexmacosx.o
8314 hpux10-20 | hpux11)
8315 UNEXEC_OBJ=unexhp9k800.o
8317 sol2-10)
8318 # Use the Solaris dldump() function, called from unexsol.c, to dump
8319 # emacs, instead of the generic ELF dump code found in unexelf.c.
8320 # The resulting binary has a complete symbol table, and is better
8321 # for debugging and other observability tools (debuggers, pstack, etc).
8323 # If you encounter a problem using dldump(), please consider sending
8324 # a message to the OpenSolaris tools-linking mailing list:
8325 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
8327 # It is likely that dldump() works with older Solaris too, but this has
8328 # not been tested, so for now this change is for Solaris 10 or newer.
8329 UNEXEC_OBJ=unexsol.o
8331 esac
8333 LD_SWITCH_SYSTEM=
8334 case "$opsys" in
8335 freebsd)
8336 ## Let `ld' find image libs and similar things in /usr/local/lib.
8337 ## The system compiler, GCC, has apparently been modified to not
8338 ## look there, contrary to what a stock GCC would do.
8339 ### It's not our place to do this. See bug#10313#17.
8340 ### LD_SWITCH_SYSTEM=-L/usr/local/lib
8344 gnu-linux)
8345 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
8346 case $host_cpu in mips*) LD_SWITCH_SYSTEM="-G 0";; esac
8349 netbsd)
8350 ### It's not our place to do this. See bug#10313#17.
8351 ### LD_SWITCH_SYSTEM="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
8355 openbsd)
8356 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
8357 ## otherwise Emacs dumps core on elf systems.
8358 LD_SWITCH_SYSTEM="-Z"
8360 esac
8363 ac_link="$ac_link $LD_SWITCH_SYSTEM"
8365 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_RPATH,
8366 ## which has not been defined yet. When this was handled with cpp,
8367 ## it was expanded to null when configure sourced the s/*.h file.
8368 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
8369 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
8370 ## (or somesuch), but because it is supposed to go at the _front_
8371 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
8372 ## Compare with the gnu-linux case below, which added to the end
8373 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
8374 ## LD_SWITCH_SYSTEM_TEMACS.
8375 case "$opsys" in
8376 netbsd|openbsd)
8377 LD_SWITCH_SYSTEM="\$(LD_SWITCH_X_SITE_RPATH) $LD_SWITCH_SYSTEM" ;;
8378 esac
8381 C_SWITCH_MACHINE=
8382 if test "$machine" = "alpha"; then
8383 ac_fn_c_check_decl "$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
8384 if test "x$ac_cv_have_decl___ELF__" = x""yes; then :
8388 if test "$ac_cv_have_decl___ELF__" = "yes"; then
8389 ## With ELF, make sure that all common symbols get allocated to in the
8390 ## data section. Otherwise, the dump of temacs may miss variables in
8391 ## the shared library that have been initialized. For example, with
8392 ## GNU libc, __malloc_initialized would normally be resolved to the
8393 ## shared library's .bss section, which is fatal.
8394 if test "x$GCC" = "xyes"; then
8395 C_SWITCH_MACHINE="-fno-common"
8396 else
8397 as_fn_error "What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
8399 else
8400 UNEXEC_OBJ=unexalpha.o
8407 C_SWITCH_SYSTEM=
8408 ## Some programs in src produce warnings saying certain subprograms
8409 ## are too complex and need a MAXMEM value greater than 2000 for
8410 ## additional optimization. --nils@exp-math.uni-essen.de
8411 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
8412 C_SWITCH_SYSTEM="-ma -qmaxmem=4000"
8413 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
8414 ## It is redundant in glibc2, since we define _GNU_SOURCE.
8418 LIBS_SYSTEM=
8419 case "$opsys" in
8420 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
8421 aix4-2) LIBS_SYSTEM="-lrts -lIM -liconv" ;;
8423 freebsd) LIBS_SYSTEM="-lutil" ;;
8425 hpux*) LIBS_SYSTEM="-l:libdld.sl" ;;
8427 sol2*) LIBS_SYSTEM="-lsocket -lnsl" ;;
8429 ## Motif needs -lgen.
8430 unixware) LIBS_SYSTEM="-lsocket -lnsl -lelf -lgen" ;;
8431 esac
8435 ### Make sure subsequent tests use flags consistent with the build flags.
8437 if test x"${OVERRIDE_CPPFLAGS}" != x; then
8438 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
8439 else
8440 CPPFLAGS="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
8443 # Suppress obsolescent Autoconf test for size_t; Emacs assumes C89 or better.
8445 # Likewise for obsolescent test for uid_t, gid_t; Emacs assumes them.
8448 # Check whether --enable-largefile was given.
8449 if test "${enable_largefile+set}" = set; then :
8450 enableval=$enable_largefile;
8453 if test "$enable_largefile" != no; then
8455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
8456 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
8457 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
8458 $as_echo_n "(cached) " >&6
8459 else
8460 ac_cv_sys_largefile_CC=no
8461 if test "$GCC" != yes; then
8462 ac_save_CC=$CC
8463 while :; do
8464 # IRIX 6.2 and later do not support large files by default,
8465 # so use the C compiler's -n32 option if that helps.
8466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8467 /* end confdefs.h. */
8468 #include <sys/types.h>
8469 /* Check that off_t can represent 2**63 - 1 correctly.
8470 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8471 since some C++ compilers masquerading as C compilers
8472 incorrectly reject 9223372036854775807. */
8473 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8474 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8475 && LARGE_OFF_T % 2147483647 == 1)
8476 ? 1 : -1];
8478 main ()
8482 return 0;
8484 _ACEOF
8485 if ac_fn_c_try_compile "$LINENO"; then :
8486 break
8488 rm -f core conftest.err conftest.$ac_objext
8489 CC="$CC -n32"
8490 if ac_fn_c_try_compile "$LINENO"; then :
8491 ac_cv_sys_largefile_CC=' -n32'; break
8493 rm -f core conftest.err conftest.$ac_objext
8494 break
8495 done
8496 CC=$ac_save_CC
8497 rm -f conftest.$ac_ext
8500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
8501 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
8502 if test "$ac_cv_sys_largefile_CC" != no; then
8503 CC=$CC$ac_cv_sys_largefile_CC
8506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
8507 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
8508 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
8509 $as_echo_n "(cached) " >&6
8510 else
8511 while :; do
8512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8513 /* end confdefs.h. */
8514 #include <sys/types.h>
8515 /* Check that off_t can represent 2**63 - 1 correctly.
8516 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8517 since some C++ compilers masquerading as C compilers
8518 incorrectly reject 9223372036854775807. */
8519 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8520 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8521 && LARGE_OFF_T % 2147483647 == 1)
8522 ? 1 : -1];
8524 main ()
8528 return 0;
8530 _ACEOF
8531 if ac_fn_c_try_compile "$LINENO"; then :
8532 ac_cv_sys_file_offset_bits=no; break
8534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8536 /* end confdefs.h. */
8537 #define _FILE_OFFSET_BITS 64
8538 #include <sys/types.h>
8539 /* Check that off_t can represent 2**63 - 1 correctly.
8540 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8541 since some C++ compilers masquerading as C compilers
8542 incorrectly reject 9223372036854775807. */
8543 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8544 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8545 && LARGE_OFF_T % 2147483647 == 1)
8546 ? 1 : -1];
8548 main ()
8552 return 0;
8554 _ACEOF
8555 if ac_fn_c_try_compile "$LINENO"; then :
8556 ac_cv_sys_file_offset_bits=64; break
8558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8559 ac_cv_sys_file_offset_bits=unknown
8560 break
8561 done
8563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
8564 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
8565 case $ac_cv_sys_file_offset_bits in #(
8566 no | unknown) ;;
8568 cat >>confdefs.h <<_ACEOF
8569 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
8570 _ACEOF
8572 esac
8573 rm -rf conftest*
8574 if test $ac_cv_sys_file_offset_bits = unknown; then
8575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
8576 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
8577 if test "${ac_cv_sys_large_files+set}" = set; then :
8578 $as_echo_n "(cached) " >&6
8579 else
8580 while :; do
8581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8582 /* end confdefs.h. */
8583 #include <sys/types.h>
8584 /* Check that off_t can represent 2**63 - 1 correctly.
8585 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8586 since some C++ compilers masquerading as C compilers
8587 incorrectly reject 9223372036854775807. */
8588 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8589 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8590 && LARGE_OFF_T % 2147483647 == 1)
8591 ? 1 : -1];
8593 main ()
8597 return 0;
8599 _ACEOF
8600 if ac_fn_c_try_compile "$LINENO"; then :
8601 ac_cv_sys_large_files=no; break
8603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8605 /* end confdefs.h. */
8606 #define _LARGE_FILES 1
8607 #include <sys/types.h>
8608 /* Check that off_t can represent 2**63 - 1 correctly.
8609 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8610 since some C++ compilers masquerading as C compilers
8611 incorrectly reject 9223372036854775807. */
8612 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8613 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8614 && LARGE_OFF_T % 2147483647 == 1)
8615 ? 1 : -1];
8617 main ()
8621 return 0;
8623 _ACEOF
8624 if ac_fn_c_try_compile "$LINENO"; then :
8625 ac_cv_sys_large_files=1; break
8627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8628 ac_cv_sys_large_files=unknown
8629 break
8630 done
8632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
8633 $as_echo "$ac_cv_sys_large_files" >&6; }
8634 case $ac_cv_sys_large_files in #(
8635 no | unknown) ;;
8637 cat >>confdefs.h <<_ACEOF
8638 #define _LARGE_FILES $ac_cv_sys_large_files
8639 _ACEOF
8641 esac
8642 rm -rf conftest*
8650 LIB_MATH=-lm
8651 LIB_STANDARD=
8652 START_FILES=
8654 case $opsys in
8655 cygwin )
8656 LIB_MATH=
8657 START_FILES='pre-crt0.o'
8659 darwin )
8660 ## Adding -lm confuses the dynamic linker, so omit it.
8661 LIB_MATH=
8662 START_FILES='pre-crt0.o'
8664 freebsd )
8665 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
8666 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
8668 gnu-linux | gnu-kfreebsd )
8669 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
8670 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
8672 hpux10-20 | hpux11 )
8673 LIB_STANDARD=-lc
8674 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o'
8676 netbsd | openbsd )
8677 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
8678 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
8680 esac
8685 crt_files=
8687 for file in x $LIB_STANDARD $START_FILES; do
8688 case "$file" in
8689 *CRT_DIR*) crt_files="$crt_files `echo $file | sed -e 's|.*/||'`" ;;
8690 esac
8691 done
8693 if test "x$crt_files" != x; then
8695 ## If user specified a crt-dir, use that unconditionally.
8696 crt_gcc=no
8698 if test "X$CRT_DIR" = "X"; then
8700 CRT_DIR=/usr/lib # default
8702 case "$canonical" in
8703 x86_64-*-linux-gnu* | s390x-*-linux-gnu*)
8704 ## On x86-64 and s390x GNU/Linux distributions, the standard library
8705 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
8706 ## For anything else (eg /usr/lib32), it is up the user to specify
8707 ## the location (bug#5655).
8708 ## Test for crtn.o, not just the directory, because sometimes the
8709 ## directory exists but does not have the relevant files (bug#1287).
8710 ## FIXME better to test for binary compatibility somehow.
8711 test -e /usr/lib64/crtn.o && CRT_DIR=/usr/lib64
8714 powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*) CRT_DIR=/usr/lib64 ;;
8715 esac
8717 case "$opsys" in
8718 hpux10-20) CRT_DIR=/lib ;;
8719 esac
8721 test "x${GCC}" = xyes && crt_gcc=yes
8723 fi # CRT_DIR = ""
8725 crt_missing=
8727 for file in $crt_files; do
8729 ## If we're using gcc, try to determine it automatically by asking
8730 ## gcc. [If this doesn't work, CRT_DIR will remain at the
8731 ## system-dependent default from above.]
8732 if test $crt_gcc = yes && test ! -e $CRT_DIR/$file; then
8734 crt_file=`$CC --print-file-name=$file 2>/dev/null`
8735 case "$crt_file" in
8736 */*)
8737 CRT_DIR=`$as_dirname -- "$crt_file" ||
8738 $as_expr X"$crt_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8739 X"$crt_file" : 'X\(//\)[^/]' \| \
8740 X"$crt_file" : 'X\(//\)$' \| \
8741 X"$crt_file" : 'X\(/\)' \| . 2>/dev/null ||
8742 $as_echo X"$crt_file" |
8743 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8744 s//\1/
8747 /^X\(\/\/\)[^/].*/{
8748 s//\1/
8751 /^X\(\/\/\)$/{
8752 s//\1/
8755 /^X\(\/\).*/{
8756 s//\1/
8759 s/.*/./; q'`
8761 esac
8764 crt_gcc=no
8766 test -e $CRT_DIR/$file || crt_missing="$crt_missing $file"
8767 done # $crt_files
8769 test "x$crt_missing" = x || \
8770 as_fn_error "Required file(s) not found:$crt_missing
8771 Try using the --with-crt-dir option." "$LINENO" 5
8773 fi # crt_files != ""
8777 case $opsys in
8778 netbsd | openbsd )
8779 if test -f $CRT_DIR/crti.o; then
8781 test -f $CRT_DIR/crtn.o || \
8782 as_fn_error "Required file not found: crtn.o" "$LINENO" 5
8784 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
8785 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
8788 esac
8794 if test "${with_sound}" != "no"; then
8795 # Sound support for GNU/Linux and the free BSDs.
8796 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
8797 do :
8798 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8799 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8800 eval as_val=\$$as_ac_Header
8801 if test "x$as_val" = x""yes; then :
8802 cat >>confdefs.h <<_ACEOF
8803 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8804 _ACEOF
8805 have_sound_header=yes
8808 done
8810 # Emulation library used on NetBSD.
8811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
8812 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
8813 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
8814 $as_echo_n "(cached) " >&6
8815 else
8816 ac_check_lib_save_LIBS=$LIBS
8817 LIBS="-lossaudio $LIBS"
8818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8819 /* end confdefs.h. */
8821 /* Override any GCC internal prototype to avoid an error.
8822 Use char because int might match the return type of a GCC
8823 builtin and then its argument prototype would still apply. */
8824 #ifdef __cplusplus
8825 extern "C"
8826 #endif
8827 char _oss_ioctl ();
8829 main ()
8831 return _oss_ioctl ();
8833 return 0;
8835 _ACEOF
8836 if ac_fn_c_try_link "$LINENO"; then :
8837 ac_cv_lib_ossaudio__oss_ioctl=yes
8838 else
8839 ac_cv_lib_ossaudio__oss_ioctl=no
8841 rm -f core conftest.err conftest.$ac_objext \
8842 conftest$ac_exeext conftest.$ac_ext
8843 LIBS=$ac_check_lib_save_LIBS
8845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
8846 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
8847 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x""yes; then :
8848 LIBSOUND=-lossaudio
8849 else
8850 LIBSOUND=
8855 ALSA_REQUIRED=1.0.0
8856 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
8858 succeeded=no
8860 # Extract the first word of "pkg-config", so it can be a program name with args.
8861 set dummy pkg-config; ac_word=$2
8862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8863 $as_echo_n "checking for $ac_word... " >&6; }
8864 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8865 $as_echo_n "(cached) " >&6
8866 else
8867 case $PKG_CONFIG in
8868 [\\/]* | ?:[\\/]*)
8869 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8873 for as_dir in $PATH
8875 IFS=$as_save_IFS
8876 test -z "$as_dir" && as_dir=.
8877 for ac_exec_ext in '' $ac_executable_extensions; do
8878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8879 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8881 break 2
8883 done
8884 done
8885 IFS=$as_save_IFS
8887 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8889 esac
8891 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8892 if test -n "$PKG_CONFIG"; then
8893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8894 $as_echo "$PKG_CONFIG" >&6; }
8895 else
8896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8897 $as_echo "no" >&6; }
8902 if test "$PKG_CONFIG" = "no" ; then
8903 HAVE_ALSA=no
8904 else
8905 PKG_CONFIG_MIN_VERSION=0.9.0
8906 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
8908 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
8910 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5 &&
8911 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES" 2>&5` &&
8912 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES" 2>&5`; then
8913 edit_cflags="
8914 s,///*,/,g
8915 s/^/ /
8916 s/ -I/ $isystem/g
8917 s/^ //
8919 ALSA_CFLAGS=`$as_echo "$ALSA_CFLAGS" | sed -e "$edit_cflags"`
8920 ALSA_LIBS=`$as_echo "$ALSA_LIBS" | sed -e 's,///*,/,g'`
8921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$ALSA_CFLAGS' LIBS='$ALSA_LIBS'" >&5
8922 $as_echo "yes CFLAGS='$ALSA_CFLAGS' LIBS='$ALSA_LIBS'" >&6; }
8923 succeeded=yes
8924 else
8925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8926 $as_echo "no" >&6; }
8927 ALSA_CFLAGS=""
8928 ALSA_LIBS=""
8929 ## If we have a custom action on failure, don't print errors, but
8930 ## do set a variable so people can do so.
8931 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
8937 else
8938 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8939 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8943 if test $succeeded = yes; then
8944 HAVE_ALSA=yes
8945 else
8946 HAVE_ALSA=no
8949 if test $HAVE_ALSA = yes; then
8950 SAVE_CFLAGS="$CFLAGS"
8951 SAVE_LIBS="$LIBS"
8952 CFLAGS="$ALSA_CFLAGS $CFLAGS"
8953 LIBS="$ALSA_LIBS $LIBS"
8954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8955 /* end confdefs.h. */
8956 #include <asoundlib.h>
8958 main ()
8960 snd_lib_error_set_handler (0);
8962 return 0;
8964 _ACEOF
8965 if ac_fn_c_try_compile "$LINENO"; then :
8966 emacs_alsa_normal=yes
8967 else
8968 emacs_alsa_normal=no
8970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8971 if test "$emacs_alsa_normal" != yes; then
8972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8973 /* end confdefs.h. */
8974 #include <alsa/asoundlib.h>
8976 main ()
8978 snd_lib_error_set_handler (0);
8980 return 0;
8982 _ACEOF
8983 if ac_fn_c_try_compile "$LINENO"; then :
8984 emacs_alsa_subdir=yes
8985 else
8986 emacs_alsa_subdir=no
8988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8989 if test "$emacs_alsa_subdir" != yes; then
8990 as_fn_error "pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
8992 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
8995 CFLAGS="$SAVE_CFLAGS"
8996 LIBS="$SAVE_LIBS"
8997 LIBSOUND="$LIBSOUND $ALSA_LIBS"
8998 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
9000 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
9004 if test x$have_sound_header = xyes || test $HAVE_ALSA = yes; then
9005 case "$opsys" in
9006 gnu-linux|freebsd|netbsd)
9008 $as_echo "#define HAVE_SOUND 1" >>confdefs.h
9011 esac
9017 for ac_header in sys/select.h sys/time.h unistd.h utime.h \
9018 linux/version.h sys/systeminfo.h \
9019 stdio_ext.h fcntl.h coff.h pty.h sys/mman.h \
9020 sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
9021 sys/utsname.h pwd.h utmp.h dirent.h util.h
9022 do :
9023 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9024 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9025 eval as_val=\$$as_ac_Header
9026 if test "x$as_val" = x""yes; then :
9027 cat >>confdefs.h <<_ACEOF
9028 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9029 _ACEOF
9033 done
9036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
9037 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
9038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9039 /* end confdefs.h. */
9040 #include <sys/personality.h>
9042 main ()
9044 personality (PER_LINUX32)
9046 return 0;
9048 _ACEOF
9049 if ac_fn_c_try_compile "$LINENO"; then :
9050 emacs_cv_personality_linux32=yes
9051 else
9052 emacs_cv_personality_linux32=no
9054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
9056 $as_echo "$emacs_cv_personality_linux32" >&6; }
9058 if test $emacs_cv_personality_linux32 = yes; then
9060 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
9064 for ac_header in term.h
9065 do :
9066 ac_fn_c_check_header_preproc "$LINENO" "term.h" "ac_cv_header_term_h"
9067 if test "x$ac_cv_header_term_h" = x""yes; then :
9068 cat >>confdefs.h <<_ACEOF
9069 #define HAVE_TERM_H 1
9070 _ACEOF
9074 done
9076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
9077 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
9078 if test "${ac_cv_header_time+set}" = set; then :
9079 $as_echo_n "(cached) " >&6
9080 else
9081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9082 /* end confdefs.h. */
9083 #include <sys/types.h>
9084 #include <sys/time.h>
9085 #include <time.h>
9088 main ()
9090 if ((struct tm *) 0)
9091 return 0;
9093 return 0;
9095 _ACEOF
9096 if ac_fn_c_try_compile "$LINENO"; then :
9097 ac_cv_header_time=yes
9098 else
9099 ac_cv_header_time=no
9101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
9104 $as_echo "$ac_cv_header_time" >&6; }
9105 if test $ac_cv_header_time = yes; then
9107 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
9111 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default"
9112 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then :
9113 ac_have_decl=1
9114 else
9115 ac_have_decl=0
9118 cat >>confdefs.h <<_ACEOF
9119 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
9120 _ACEOF
9122 if test $ac_cv_have_decl_sys_siglist != yes; then
9123 # For Tru64, at least:
9124 ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default"
9125 if test "x$ac_cv_have_decl___sys_siglist" = x""yes; then :
9126 ac_have_decl=1
9127 else
9128 ac_have_decl=0
9131 cat >>confdefs.h <<_ACEOF
9132 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
9133 _ACEOF
9135 if test $ac_cv_have_decl___sys_siglist = yes; then
9137 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
9141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
9142 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
9143 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
9144 $as_echo_n "(cached) " >&6
9145 else
9146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9147 /* end confdefs.h. */
9148 #include <sys/types.h>
9149 #include <sys/wait.h>
9150 #ifndef WEXITSTATUS
9151 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
9152 #endif
9153 #ifndef WIFEXITED
9154 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9155 #endif
9158 main ()
9160 int s;
9161 wait (&s);
9162 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9164 return 0;
9166 _ACEOF
9167 if ac_fn_c_try_compile "$LINENO"; then :
9168 ac_cv_header_sys_wait_h=yes
9169 else
9170 ac_cv_header_sys_wait_h=no
9172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
9175 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
9176 if test $ac_cv_header_sys_wait_h = yes; then
9178 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
9183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
9184 $as_echo_n "checking for struct utimbuf... " >&6; }
9185 if test "${emacs_cv_struct_utimbuf+set}" = set; then :
9186 $as_echo_n "(cached) " >&6
9187 else
9188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9189 /* end confdefs.h. */
9190 #ifdef TIME_WITH_SYS_TIME
9191 #include <sys/time.h>
9192 #include <time.h>
9193 #else
9194 #ifdef HAVE_SYS_TIME_H
9195 #include <sys/time.h>
9196 #else
9197 #include <time.h>
9198 #endif
9199 #endif
9200 #ifdef HAVE_UTIME_H
9201 #include <utime.h>
9202 #endif
9204 main ()
9206 static struct utimbuf x; x.actime = x.modtime;
9208 return 0;
9210 _ACEOF
9211 if ac_fn_c_try_compile "$LINENO"; then :
9212 emacs_cv_struct_utimbuf=yes
9213 else
9214 emacs_cv_struct_utimbuf=no
9216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_utimbuf" >&5
9219 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
9220 if test $emacs_cv_struct_utimbuf = yes; then
9222 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
9226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
9227 $as_echo_n "checking for speed_t... " >&6; }
9228 if test "${emacs_cv_speed_t+set}" = set; then :
9229 $as_echo_n "(cached) " >&6
9230 else
9231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9232 /* end confdefs.h. */
9233 #include <termios.h>
9235 main ()
9237 speed_t x = 1;
9239 return 0;
9241 _ACEOF
9242 if ac_fn_c_try_compile "$LINENO"; then :
9243 emacs_cv_speed_t=yes
9244 else
9245 emacs_cv_speed_t=no
9247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
9250 $as_echo "$emacs_cv_speed_t" >&6; }
9251 if test $emacs_cv_speed_t = yes; then
9253 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
9257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
9258 $as_echo_n "checking for struct timeval... " >&6; }
9259 if test "${emacs_cv_struct_timeval+set}" = set; then :
9260 $as_echo_n "(cached) " >&6
9261 else
9262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9263 /* end confdefs.h. */
9264 #ifdef TIME_WITH_SYS_TIME
9265 #include <sys/time.h>
9266 #include <time.h>
9267 #else
9268 #ifdef HAVE_SYS_TIME_H
9269 #include <sys/time.h>
9270 #else
9271 #include <time.h>
9272 #endif
9273 #endif
9275 main ()
9277 static struct timeval x; x.tv_sec = x.tv_usec;
9279 return 0;
9281 _ACEOF
9282 if ac_fn_c_try_compile "$LINENO"; then :
9283 emacs_cv_struct_timeval=yes
9284 else
9285 emacs_cv_struct_timeval=no
9287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_timeval" >&5
9290 $as_echo "$emacs_cv_struct_timeval" >&6; }
9291 HAVE_TIMEVAL=$emacs_cv_struct_timeval
9292 if test $emacs_cv_struct_timeval = yes; then
9294 $as_echo "#define HAVE_TIMEVAL 1" >>confdefs.h
9298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct exception" >&5
9299 $as_echo_n "checking for struct exception... " >&6; }
9300 if test "${emacs_cv_struct_exception+set}" = set; then :
9301 $as_echo_n "(cached) " >&6
9302 else
9303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9304 /* end confdefs.h. */
9305 #include <math.h>
9307 main ()
9309 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
9311 return 0;
9313 _ACEOF
9314 if ac_fn_c_try_compile "$LINENO"; then :
9315 emacs_cv_struct_exception=yes
9316 else
9317 emacs_cv_struct_exception=no
9319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_exception" >&5
9322 $as_echo "$emacs_cv_struct_exception" >&6; }
9323 HAVE_EXCEPTION=$emacs_cv_struct_exception
9324 if test $emacs_cv_struct_exception != yes; then
9326 $as_echo "#define NO_MATHERR 1" >>confdefs.h
9330 for ac_header in sys/socket.h
9331 do :
9332 ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
9333 if test "x$ac_cv_header_sys_socket_h" = x""yes; then :
9334 cat >>confdefs.h <<_ACEOF
9335 #define HAVE_SYS_SOCKET_H 1
9336 _ACEOF
9340 done
9342 for ac_header in net/if.h
9343 do :
9344 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
9345 #if HAVE_SYS_SOCKET_H
9346 #include <sys/socket.h>
9347 #endif
9349 if test "x$ac_cv_header_net_if_h" = x""yes; then :
9350 cat >>confdefs.h <<_ACEOF
9351 #define HAVE_NET_IF_H 1
9352 _ACEOF
9356 done
9358 for ac_header in ifaddrs.h
9359 do :
9360 ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default
9361 #if HAVE_SYS_SOCKET_H
9362 #include <sys/socket.h>
9363 #endif
9365 if test "x$ac_cv_header_ifaddrs_h" = x""yes; then :
9366 cat >>confdefs.h <<_ACEOF
9367 #define HAVE_IFADDRS_H 1
9368 _ACEOF
9372 done
9374 for ac_header in net/if_dl.h
9375 do :
9376 ac_fn_c_check_header_compile "$LINENO" "net/if_dl.h" "ac_cv_header_net_if_dl_h" "$ac_includes_default
9377 #if HAVE_SYS_SOCKET_H
9378 #include <sys/socket.h>
9379 #endif
9381 if test "x$ac_cv_header_net_if_dl_h" = x""yes; then :
9382 cat >>confdefs.h <<_ACEOF
9383 #define HAVE_NET_IF_DL_H 1
9384 _ACEOF
9388 done
9390 for ac_func in getifaddrs freeifaddrs
9391 do :
9392 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9393 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9394 eval as_val=\$$as_ac_var
9395 if test "x$as_val" = x""yes; then :
9396 cat >>confdefs.h <<_ACEOF
9397 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9398 _ACEOF
9401 done
9404 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
9405 #if HAVE_SYS_SOCKET_H
9406 #include <sys/socket.h>
9407 #endif
9408 #if HAVE_NET_IF_H
9409 #include <net/if.h>
9410 #endif
9412 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x""yes; then :
9414 cat >>confdefs.h <<_ACEOF
9415 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
9416 _ACEOF
9420 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
9421 #if HAVE_SYS_SOCKET_H
9422 #include <sys/socket.h>
9423 #endif
9424 #if HAVE_NET_IF_H
9425 #include <net/if.h>
9426 #endif
9428 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x""yes; then :
9430 cat >>confdefs.h <<_ACEOF
9431 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
9432 _ACEOF
9436 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
9437 #if HAVE_SYS_SOCKET_H
9438 #include <sys/socket.h>
9439 #endif
9440 #if HAVE_NET_IF_H
9441 #include <net/if.h>
9442 #endif
9444 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x""yes; then :
9446 cat >>confdefs.h <<_ACEOF
9447 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
9448 _ACEOF
9452 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
9453 #if HAVE_SYS_SOCKET_H
9454 #include <sys/socket.h>
9455 #endif
9456 #if HAVE_NET_IF_H
9457 #include <net/if.h>
9458 #endif
9460 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x""yes; then :
9462 cat >>confdefs.h <<_ACEOF
9463 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
9464 _ACEOF
9468 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
9469 #if HAVE_SYS_SOCKET_H
9470 #include <sys/socket.h>
9471 #endif
9472 #if HAVE_NET_IF_H
9473 #include <net/if.h>
9474 #endif
9476 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x""yes; then :
9478 cat >>confdefs.h <<_ACEOF
9479 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
9480 _ACEOF
9484 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr.sa_len" "ac_cv_member_struct_ifreq_ifr_addr_sa_len" "$ac_includes_default
9485 #if HAVE_SYS_SOCKET_H
9486 #include <sys/socket.h>
9487 #endif
9488 #if HAVE_NET_IF_H
9489 #include <net/if.h>
9490 #endif
9492 if test "x$ac_cv_member_struct_ifreq_ifr_addr_sa_len" = x""yes; then :
9494 cat >>confdefs.h <<_ACEOF
9495 #define HAVE_STRUCT_IFREQ_IFR_ADDR_SA_LEN 1
9496 _ACEOF
9503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
9504 $as_echo_n "checking for function prototypes... " >&6; }
9505 if test "$ac_cv_prog_cc_c89" != no; then
9506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9507 $as_echo "yes" >&6; }
9509 $as_echo "#define PROTOTYPES 1" >>confdefs.h
9512 $as_echo "#define __PROTOTYPES 1" >>confdefs.h
9514 else
9515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9516 $as_echo "no" >&6; }
9519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
9520 $as_echo_n "checking for working volatile... " >&6; }
9521 if test "${ac_cv_c_volatile+set}" = set; then :
9522 $as_echo_n "(cached) " >&6
9523 else
9524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9525 /* end confdefs.h. */
9528 main ()
9531 volatile int x;
9532 int * volatile y = (int *) 0;
9533 return !x && !y;
9535 return 0;
9537 _ACEOF
9538 if ac_fn_c_try_compile "$LINENO"; then :
9539 ac_cv_c_volatile=yes
9540 else
9541 ac_cv_c_volatile=no
9543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
9546 $as_echo "$ac_cv_c_volatile" >&6; }
9547 if test $ac_cv_c_volatile = no; then
9549 $as_echo "#define volatile /**/" >>confdefs.h
9553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
9554 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
9555 if test "${ac_cv_c_const+set}" = set; then :
9556 $as_echo_n "(cached) " >&6
9557 else
9558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9559 /* end confdefs.h. */
9562 main ()
9564 /* FIXME: Include the comments suggested by Paul. */
9565 #ifndef __cplusplus
9566 /* Ultrix mips cc rejects this. */
9567 typedef int charset[2];
9568 const charset cs;
9569 /* SunOS 4.1.1 cc rejects this. */
9570 char const *const *pcpcc;
9571 char **ppc;
9572 /* NEC SVR4.0.2 mips cc rejects this. */
9573 struct point {int x, y;};
9574 static struct point const zero = {0,0};
9575 /* AIX XL C 1.02.0.0 rejects this.
9576 It does not let you subtract one const X* pointer from another in
9577 an arm of an if-expression whose if-part is not a constant
9578 expression */
9579 const char *g = "string";
9580 pcpcc = &g + (g ? g-g : 0);
9581 /* HPUX 7.0 cc rejects these. */
9582 ++pcpcc;
9583 ppc = (char**) pcpcc;
9584 pcpcc = (char const *const *) ppc;
9585 { /* SCO 3.2v4 cc rejects this. */
9586 char *t;
9587 char const *s = 0 ? (char *) 0 : (char const *) 0;
9589 *t++ = 0;
9590 if (s) return 0;
9592 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9593 int x[] = {25, 17};
9594 const int *foo = &x[0];
9595 ++foo;
9597 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9598 typedef const int *iptr;
9599 iptr p = 0;
9600 ++p;
9602 { /* AIX XL C 1.02.0.0 rejects this saying
9603 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9604 struct s { int j; const int *ap[3]; };
9605 struct s *b; b->j = 5;
9607 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9608 const int foo = 10;
9609 if (!foo) return 0;
9611 return !cs[0] && !zero.x;
9612 #endif
9615 return 0;
9617 _ACEOF
9618 if ac_fn_c_try_compile "$LINENO"; then :
9619 ac_cv_c_const=yes
9620 else
9621 ac_cv_c_const=no
9623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
9626 $as_echo "$ac_cv_c_const" >&6; }
9627 if test $ac_cv_c_const = no; then
9629 $as_echo "#define const /**/" >>confdefs.h
9633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for void * support" >&5
9634 $as_echo_n "checking for void * support... " >&6; }
9635 if test "${emacs_cv_void_star+set}" = set; then :
9636 $as_echo_n "(cached) " >&6
9637 else
9638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9639 /* end confdefs.h. */
9642 main ()
9644 void * foo;
9646 return 0;
9648 _ACEOF
9649 if ac_fn_c_try_compile "$LINENO"; then :
9650 emacs_cv_void_star=yes
9651 else
9652 emacs_cv_void_star=no
9654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_void_star" >&5
9657 $as_echo "$emacs_cv_void_star" >&6; }
9658 if test $emacs_cv_void_star = yes; then
9659 $as_echo "#define POINTER_TYPE void" >>confdefs.h
9661 else
9662 $as_echo "#define POINTER_TYPE char" >>confdefs.h
9666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
9667 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
9668 if test "${ac_cv_c_bigendian+set}" = set; then :
9669 $as_echo_n "(cached) " >&6
9670 else
9671 ac_cv_c_bigendian=unknown
9672 # See if we're dealing with a universal compiler.
9673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9674 /* end confdefs.h. */
9675 #ifndef __APPLE_CC__
9676 not a universal capable compiler
9677 #endif
9678 typedef int dummy;
9680 _ACEOF
9681 if ac_fn_c_try_compile "$LINENO"; then :
9683 # Check for potential -arch flags. It is not universal unless
9684 # there are at least two -arch flags with different values.
9685 ac_arch=
9686 ac_prev=
9687 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
9688 if test -n "$ac_prev"; then
9689 case $ac_word in
9690 i?86 | x86_64 | ppc | ppc64)
9691 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
9692 ac_arch=$ac_word
9693 else
9694 ac_cv_c_bigendian=universal
9695 break
9698 esac
9699 ac_prev=
9700 elif test "x$ac_word" = "x-arch"; then
9701 ac_prev=arch
9703 done
9705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9706 if test $ac_cv_c_bigendian = unknown; then
9707 # See if sys/param.h defines the BYTE_ORDER macro.
9708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9709 /* end confdefs.h. */
9710 #include <sys/types.h>
9711 #include <sys/param.h>
9714 main ()
9716 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
9717 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
9718 && LITTLE_ENDIAN)
9719 bogus endian macros
9720 #endif
9723 return 0;
9725 _ACEOF
9726 if ac_fn_c_try_compile "$LINENO"; then :
9727 # It does; now see whether it defined to BIG_ENDIAN or not.
9728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9729 /* end confdefs.h. */
9730 #include <sys/types.h>
9731 #include <sys/param.h>
9734 main ()
9736 #if BYTE_ORDER != BIG_ENDIAN
9737 not big endian
9738 #endif
9741 return 0;
9743 _ACEOF
9744 if ac_fn_c_try_compile "$LINENO"; then :
9745 ac_cv_c_bigendian=yes
9746 else
9747 ac_cv_c_bigendian=no
9749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9753 if test $ac_cv_c_bigendian = unknown; then
9754 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9756 /* end confdefs.h. */
9757 #include <limits.h>
9760 main ()
9762 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9763 bogus endian macros
9764 #endif
9767 return 0;
9769 _ACEOF
9770 if ac_fn_c_try_compile "$LINENO"; then :
9771 # It does; now see whether it defined to _BIG_ENDIAN or not.
9772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9773 /* end confdefs.h. */
9774 #include <limits.h>
9777 main ()
9779 #ifndef _BIG_ENDIAN
9780 not big endian
9781 #endif
9784 return 0;
9786 _ACEOF
9787 if ac_fn_c_try_compile "$LINENO"; then :
9788 ac_cv_c_bigendian=yes
9789 else
9790 ac_cv_c_bigendian=no
9792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9796 if test $ac_cv_c_bigendian = unknown; then
9797 # Compile a test program.
9798 if test "$cross_compiling" = yes; then :
9799 # Try to guess by grepping values from an object file.
9800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9801 /* end confdefs.h. */
9802 short int ascii_mm[] =
9803 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9804 short int ascii_ii[] =
9805 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9806 int use_ascii (int i) {
9807 return ascii_mm[i] + ascii_ii[i];
9809 short int ebcdic_ii[] =
9810 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9811 short int ebcdic_mm[] =
9812 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9813 int use_ebcdic (int i) {
9814 return ebcdic_mm[i] + ebcdic_ii[i];
9816 extern int foo;
9819 main ()
9821 return use_ascii (foo) == use_ebcdic (foo);
9823 return 0;
9825 _ACEOF
9826 if ac_fn_c_try_compile "$LINENO"; then :
9827 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
9828 ac_cv_c_bigendian=yes
9830 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9831 if test "$ac_cv_c_bigendian" = unknown; then
9832 ac_cv_c_bigendian=no
9833 else
9834 # finding both strings is unlikely to happen, but who knows?
9835 ac_cv_c_bigendian=unknown
9839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9840 else
9841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9842 /* end confdefs.h. */
9843 $ac_includes_default
9845 main ()
9848 /* Are we little or big endian? From Harbison&Steele. */
9849 union
9851 long int l;
9852 char c[sizeof (long int)];
9853 } u;
9854 u.l = 1;
9855 return u.c[sizeof (long int) - 1] == 1;
9858 return 0;
9860 _ACEOF
9861 if ac_fn_c_try_run "$LINENO"; then :
9862 ac_cv_c_bigendian=no
9863 else
9864 ac_cv_c_bigendian=yes
9866 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9867 conftest.$ac_objext conftest.beam conftest.$ac_ext
9872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9873 $as_echo "$ac_cv_c_bigendian" >&6; }
9874 case $ac_cv_c_bigendian in #(
9875 yes)
9876 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9877 ;; #(
9879 ;; #(
9880 universal)
9882 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9884 ;; #(
9886 as_fn_error "unknown endianness
9887 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9888 esac
9891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__ ((__aligned__ (expr)))" >&5
9892 $as_echo_n "checking for __attribute__ ((__aligned__ (expr)))... " >&6; }
9893 if test "${emacs_cv_attribute_aligned+set}" = set; then :
9894 $as_echo_n "(cached) " >&6
9895 else
9896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9897 /* end confdefs.h. */
9898 char __attribute__ ((__aligned__ (1 << 3))) c;
9900 main ()
9904 return 0;
9906 _ACEOF
9907 if ac_fn_c_try_compile "$LINENO"; then :
9908 emacs_cv_attribute_aligned=yes
9909 else
9910 emacs_cv_attribute_aligned=no
9912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_attribute_aligned" >&5
9915 $as_echo "$emacs_cv_attribute_aligned" >&6; }
9916 if test $emacs_cv_attribute_aligned = yes; then
9918 $as_echo "#define HAVE_ATTRIBUTE_ALIGNED 1" >>confdefs.h
9922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9923 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9924 set x ${MAKE-make}
9925 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9926 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
9927 $as_echo_n "(cached) " >&6
9928 else
9929 cat >conftest.make <<\_ACEOF
9930 SHELL = /bin/sh
9931 all:
9932 @echo '@@@%%%=$(MAKE)=@@@%%%'
9933 _ACEOF
9934 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9935 case `${MAKE-make} -f conftest.make 2>/dev/null` in
9936 *@@@%%%=?*=@@@%%%*)
9937 eval ac_cv_prog_make_${ac_make}_set=yes;;
9939 eval ac_cv_prog_make_${ac_make}_set=no;;
9940 esac
9941 rm -f conftest.make
9943 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9945 $as_echo "yes" >&6; }
9946 SET_MAKE=
9947 else
9948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9949 $as_echo "no" >&6; }
9950 SET_MAKE="MAKE=${MAKE-make}"
9954 DEPFLAGS=
9955 MKDEPDIR=":"
9956 deps_frag=deps.mk
9957 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
9958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
9959 $as_echo_n "checking whether we are using GNU Make... " >&6; }
9960 HAVE_GNU_MAKE=no
9961 testval=`${MAKE-make} --version 2>/dev/null | grep 'GNU Make'`
9962 if test "x$testval" != x; then
9963 HAVE_GNU_MAKE=yes
9964 else
9965 ac_enable_autodepend=no
9967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
9968 $as_echo "$HAVE_GNU_MAKE" >&6; }
9969 if test $HAVE_GNU_MAKE = yes; then
9970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
9971 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
9972 SAVE_CFLAGS="$CFLAGS"
9973 CFLAGS="$CFLAGS -MMD -MF deps.d -MP"
9974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9975 /* end confdefs.h. */
9978 main ()
9982 return 0;
9984 _ACEOF
9985 if ac_fn_c_try_compile "$LINENO"; then :
9987 else
9988 ac_enable_autodepend=no
9990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9991 CFLAGS="$SAVE_CFLAGS"
9992 test -f deps.d || ac_enable_autodepend=no
9993 rm -rf deps.d
9994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
9995 $as_echo "$ac_enable_autodepend" >&6; }
9997 if test $ac_enable_autodepend = yes; then
9998 DEPFLAGS='-MMD -MF ${DEPDIR}/$*.d -MP'
9999 ## In parallel builds, another make might create depdir between
10000 ## the first test and mkdir, so stick another test on the end.
10001 ## Or use install-sh -d? mkdir -p is not portable.
10002 MKDEPDIR='test -d ${DEPDIR} || mkdir ${DEPDIR} || test -d ${DEPDIR}'
10003 deps_frag=autodeps.mk
10006 deps_frag=$srcdir/src/$deps_frag
10012 lisp_frag=$srcdir/src/lisp.mk
10016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
10017 $as_echo_n "checking for long file names... " >&6; }
10018 if test "${ac_cv_sys_long_file_names+set}" = set; then :
10019 $as_echo_n "(cached) " >&6
10020 else
10021 ac_cv_sys_long_file_names=yes
10022 # Test for long file names in all the places we know might matter:
10023 # . the current directory, where building will happen
10024 # $prefix/lib where we will be installing things
10025 # $exec_prefix/lib likewise
10026 # $TMPDIR if set, where it might want to write temporary files
10027 # /tmp where it might want to write temporary files
10028 # /var/tmp likewise
10029 # /usr/tmp likewise
10030 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
10031 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
10032 # in the usual case where exec_prefix is '${prefix}'.
10033 case $ac_dir in #(
10034 . | /* | ?:[\\/]*) ;; #(
10035 *) continue;;
10036 esac
10037 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
10038 ac_xdir=$ac_dir/cf$$
10039 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
10040 ac_tf1=$ac_xdir/conftest9012345
10041 ac_tf2=$ac_xdir/conftest9012346
10042 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
10043 ac_cv_sys_long_file_names=no
10044 rm -f -r "$ac_xdir" 2>/dev/null
10045 test $ac_cv_sys_long_file_names = no && break
10046 done
10048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
10049 $as_echo "$ac_cv_sys_long_file_names" >&6; }
10050 if test $ac_cv_sys_long_file_names = yes; then
10052 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
10057 #### Choose a window system.
10059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
10060 $as_echo_n "checking for X... " >&6; }
10063 # Check whether --with-x was given.
10064 if test "${with_x+set}" = set; then :
10065 withval=$with_x;
10068 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
10069 if test "x$with_x" = xno; then
10070 # The user explicitly disabled X.
10071 have_x=disabled
10072 else
10073 case $x_includes,$x_libraries in #(
10074 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
10075 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
10076 $as_echo_n "(cached) " >&6
10077 else
10078 # One or both of the vars are not set, and there is no cached value.
10079 ac_x_includes=no ac_x_libraries=no
10080 rm -f -r conftest.dir
10081 if mkdir conftest.dir; then
10082 cd conftest.dir
10083 cat >Imakefile <<'_ACEOF'
10084 incroot:
10085 @echo incroot='${INCROOT}'
10086 usrlibdir:
10087 @echo usrlibdir='${USRLIBDIR}'
10088 libdir:
10089 @echo libdir='${LIBDIR}'
10090 _ACEOF
10091 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
10092 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
10093 for ac_var in incroot usrlibdir libdir; do
10094 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
10095 done
10096 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
10097 for ac_extension in a so sl dylib la dll; do
10098 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
10099 test -f "$ac_im_libdir/libX11.$ac_extension"; then
10100 ac_im_usrlibdir=$ac_im_libdir; break
10102 done
10103 # Screen out bogus values from the imake configuration. They are
10104 # bogus both because they are the default anyway, and because
10105 # using them would break gcc on systems where it needs fixed includes.
10106 case $ac_im_incroot in
10107 /usr/include) ac_x_includes= ;;
10108 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
10109 esac
10110 case $ac_im_usrlibdir in
10111 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
10112 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
10113 esac
10115 cd ..
10116 rm -f -r conftest.dir
10119 # Standard set of common directories for X headers.
10120 # Check X11 before X11Rn because it is often a symlink to the current release.
10121 ac_x_header_dirs='
10122 /usr/X11/include
10123 /usr/X11R7/include
10124 /usr/X11R6/include
10125 /usr/X11R5/include
10126 /usr/X11R4/include
10128 /usr/include/X11
10129 /usr/include/X11R7
10130 /usr/include/X11R6
10131 /usr/include/X11R5
10132 /usr/include/X11R4
10134 /usr/local/X11/include
10135 /usr/local/X11R7/include
10136 /usr/local/X11R6/include
10137 /usr/local/X11R5/include
10138 /usr/local/X11R4/include
10140 /usr/local/include/X11
10141 /usr/local/include/X11R7
10142 /usr/local/include/X11R6
10143 /usr/local/include/X11R5
10144 /usr/local/include/X11R4
10146 /usr/X386/include
10147 /usr/x386/include
10148 /usr/XFree86/include/X11
10150 /usr/include
10151 /usr/local/include
10152 /usr/unsupported/include
10153 /usr/athena/include
10154 /usr/local/x11r5/include
10155 /usr/lpp/Xamples/include
10157 /usr/openwin/include
10158 /usr/openwin/share/include'
10160 if test "$ac_x_includes" = no; then
10161 # Guess where to find include files, by looking for Xlib.h.
10162 # First, try using that file with no special directory specified.
10163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10164 /* end confdefs.h. */
10165 #include <X11/Xlib.h>
10166 _ACEOF
10167 if ac_fn_c_try_cpp "$LINENO"; then :
10168 # We can compile using X headers with no special include directory.
10169 ac_x_includes=
10170 else
10171 for ac_dir in $ac_x_header_dirs; do
10172 if test -r "$ac_dir/X11/Xlib.h"; then
10173 ac_x_includes=$ac_dir
10174 break
10176 done
10178 rm -f conftest.err conftest.$ac_ext
10179 fi # $ac_x_includes = no
10181 if test "$ac_x_libraries" = no; then
10182 # Check for the libraries.
10183 # See if we find them without any special options.
10184 # Don't add to $LIBS permanently.
10185 ac_save_LIBS=$LIBS
10186 LIBS="-lX11 $LIBS"
10187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10188 /* end confdefs.h. */
10189 #include <X11/Xlib.h>
10191 main ()
10193 XrmInitialize ()
10195 return 0;
10197 _ACEOF
10198 if ac_fn_c_try_link "$LINENO"; then :
10199 LIBS=$ac_save_LIBS
10200 # We can link X programs with no special library path.
10201 ac_x_libraries=
10202 else
10203 LIBS=$ac_save_LIBS
10204 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
10206 # Don't even attempt the hair of trying to link an X program!
10207 for ac_extension in a so sl dylib la dll; do
10208 if test -r "$ac_dir/libX11.$ac_extension"; then
10209 ac_x_libraries=$ac_dir
10210 break 2
10212 done
10213 done
10215 rm -f core conftest.err conftest.$ac_objext \
10216 conftest$ac_exeext conftest.$ac_ext
10217 fi # $ac_x_libraries = no
10219 case $ac_x_includes,$ac_x_libraries in #(
10220 no,* | *,no | *\'*)
10221 # Didn't find X, or a directory has "'" in its name.
10222 ac_cv_have_x="have_x=no";; #(
10224 # Record where we found X for the cache.
10225 ac_cv_have_x="have_x=yes\
10226 ac_x_includes='$ac_x_includes'\
10227 ac_x_libraries='$ac_x_libraries'"
10228 esac
10230 ;; #(
10231 *) have_x=yes;;
10232 esac
10233 eval "$ac_cv_have_x"
10234 fi # $with_x != no
10236 if test "$have_x" != yes; then
10237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
10238 $as_echo "$have_x" >&6; }
10239 no_x=yes
10240 else
10241 # If each of the values was on the command line, it overrides each guess.
10242 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
10243 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
10244 # Update the cache value to reflect the command line values.
10245 ac_cv_have_x="have_x=yes\
10246 ac_x_includes='$x_includes'\
10247 ac_x_libraries='$x_libraries'"
10248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
10249 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
10252 if test "$no_x" = yes; then
10253 window_system=none
10254 else
10255 window_system=x11
10258 LD_SWITCH_X_SITE_RPATH=
10259 if test "${x_libraries}" != NONE; then
10260 if test -n "${x_libraries}"; then
10261 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
10262 LD_SWITCH_X_SITE_RPATH=-Wl,-rpath,`echo ${x_libraries} | sed -e "s/:/ -Wl,-rpath,/g"`
10264 x_default_search_path=""
10265 x_search_path=${x_libraries}
10266 if test -z "${x_search_path}"; then
10267 x_search_path=/usr/lib
10269 for x_library in `echo ${x_search_path}: | \
10270 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
10271 x_search_path="\
10272 ${x_library}/X11/%L/%T/%N%C%S:\
10273 ${x_library}/X11/%l/%T/%N%C%S:\
10274 ${x_library}/X11/%T/%N%C%S:\
10275 ${x_library}/X11/%L/%T/%N%S:\
10276 ${x_library}/X11/%l/%T/%N%S:\
10277 ${x_library}/X11/%T/%N%S"
10278 if test x"${x_default_search_path}" = x; then
10279 x_default_search_path=${x_search_path}
10280 else
10281 x_default_search_path="${x_search_path}:${x_default_search_path}"
10283 done
10287 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
10288 C_SWITCH_X_SITE="$isystem"`echo ${x_includes} | sed -e "s/:/ $isystem/g"`
10291 if test x"${x_includes}" = x; then
10292 bitmapdir=/usr/include/X11/bitmaps
10293 else
10294 # accumulate include directories that have X11 bitmap subdirectories
10295 bmd_acc="dummyval"
10296 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
10297 if test -d "${bmd}/X11/bitmaps"; then
10298 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
10300 if test -d "${bmd}/bitmaps"; then
10301 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
10303 done
10304 if test ${bmd_acc} != "dummyval"; then
10305 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
10309 HAVE_NS=no
10310 NS_IMPL_COCOA=no
10311 NS_IMPL_GNUSTEP=no
10312 tmp_CPPFLAGS="$CPPFLAGS"
10313 tmp_CFLAGS="$CFLAGS"
10314 CPPFLAGS="$CPPFLAGS -x objective-c"
10315 CFLAGS="$CFLAGS -x objective-c"
10316 TEMACS_LDFLAGS2="\${LDFLAGS}"
10317 GNU_OBJC_CFLAGS=
10318 if test "${with_ns}" != no; then
10319 if test "${opsys}" = darwin; then
10320 NS_IMPL_COCOA=yes
10321 ns_appdir=`pwd`/nextstep/Emacs.app
10322 ns_appbindir=${ns_appdir}/Contents/MacOS/
10323 ns_appresdir=${ns_appdir}/Contents/Resources
10324 ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base
10325 elif test -f $GNUSTEP_CONFIG_FILE; then
10326 NS_IMPL_GNUSTEP=yes
10327 ns_appdir=`pwd`/nextstep/Emacs.app
10328 ns_appbindir=${ns_appdir}/
10329 ns_appresdir=${ns_appdir}/Resources
10330 ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base
10331 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
10332 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
10333 GNUSTEP_LOCAL_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
10334 GNUSTEP_LOCAL_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
10335 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
10336 GNUSTEP_LOCAL_HEADERS="-I${GNUSTEP_LOCAL_HEADERS}"
10337 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
10338 GNUSTEP_LOCAL_LIBRARIES="-L${GNUSTEP_LOCAL_LIBRARIES}"
10339 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
10340 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
10341 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
10342 LIB_STANDARD=
10343 START_FILES=
10344 TEMACS_LDFLAGS2=
10345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS" >&5
10346 $as_echo_n "checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS... " >&6; }
10347 if test "${emacs_cv_objc_exceptions+set}" = set; then :
10348 $as_echo_n "(cached) " >&6
10349 else
10350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10351 /* end confdefs.h. */
10352 #include <GNUstepBase/GSConfig.h>
10354 main ()
10356 #if defined BASE_NATIVE_OBJC_EXCEPTIONS && BASE_NATIVE_OBJC_EXCEPTIONS > 0
10358 #else
10359 fail;
10360 #endif
10362 return 0;
10364 _ACEOF
10365 if ac_fn_c_try_compile "$LINENO"; then :
10366 emacs_cv_objc_exceptions=yes
10367 else
10368 emacs_cv_objc_exceptions=no
10370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_objc_exceptions" >&5
10373 $as_echo "$emacs_cv_objc_exceptions" >&6; }
10374 if test $emacs_cv_objc_exceptions = yes; then
10376 $as_echo "#define _NATIVE_OBJC_EXCEPTIONS 1" >>confdefs.h
10378 GNU_OBJC_CFLAGS="-fobjc-exceptions"
10382 CFLAGS="$CFLAGS $GNU_OBJC_CFLAGS"
10384 ac_fn_c_check_header_mongrel "$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
10385 if test "x$ac_cv_header_AppKit_AppKit_h" = x""yes; then :
10386 HAVE_NS=yes
10387 else
10388 as_fn_error "\`--with-ns' was specified, but the include
10389 files are missing or cannot be compiled." "$LINENO" 5
10393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10394 /* end confdefs.h. */
10395 #include <Foundation/NSObjCRuntime.h>
10397 main ()
10399 NSInteger i;
10401 return 0;
10403 _ACEOF
10404 if ac_fn_c_try_compile "$LINENO"; then :
10405 ns_have_nsinteger=yes
10406 else
10407 ns_have_nsinteger=no
10409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10410 if test $ns_have_nsinteger = yes; then
10412 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
10418 ns_frag=/dev/null
10419 NS_OBJ=
10420 NS_OBJC_OBJ=
10421 if test "${HAVE_NS}" = yes; then
10422 if test "$with_toolkit_scroll_bars" = "no"; then
10423 as_fn_error "Non-toolkit scroll bars are not implemented for Nextstep." "$LINENO" 5
10426 window_system=nextstep
10427 with_xft=no
10428 # set up packaging dirs
10429 if test "${EN_NS_SELF_CONTAINED}" = yes; then
10430 prefix=${ns_appresdir}
10431 exec_prefix=${ns_appbindir}
10432 libexecdir=${ns_appbindir}/libexec
10434 ns_frag=$srcdir/src/ns.mk
10435 NS_OBJ="fontset.o fringe.o image.o"
10436 NS_OBJC_OBJ="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o"
10438 CFLAGS="$tmp_CFLAGS"
10439 CPPFLAGS="$tmp_CPPFLAGS"
10445 case "${window_system}" in
10446 x11 )
10447 HAVE_X_WINDOWS=yes
10448 HAVE_X11=yes
10449 case "${with_x_toolkit}" in
10450 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
10451 motif ) USE_X_TOOLKIT=MOTIF ;;
10452 gtk ) with_gtk=yes
10453 USE_X_TOOLKIT=none ;;
10454 gtk3 ) with_gtk3=yes
10455 USE_X_TOOLKIT=none ;;
10456 no ) USE_X_TOOLKIT=none ;;
10457 * ) USE_X_TOOLKIT=maybe ;;
10458 esac
10460 nextstep | none )
10461 HAVE_X_WINDOWS=no
10462 HAVE_X11=no
10463 USE_X_TOOLKIT=none
10465 esac
10467 if test "$window_system" = none && test "X$with_x" != "Xno"; then
10468 # Extract the first word of "X", so it can be a program name with args.
10469 set dummy X; ac_word=$2
10470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10471 $as_echo_n "checking for $ac_word... " >&6; }
10472 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then :
10473 $as_echo_n "(cached) " >&6
10474 else
10475 if test -n "$HAVE_XSERVER"; then
10476 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
10477 else
10478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10479 for as_dir in $PATH
10481 IFS=$as_save_IFS
10482 test -z "$as_dir" && as_dir=.
10483 for ac_exec_ext in '' $ac_executable_extensions; do
10484 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10485 ac_cv_prog_HAVE_XSERVER="true"
10486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10487 break 2
10489 done
10490 done
10491 IFS=$as_save_IFS
10493 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
10496 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
10497 if test -n "$HAVE_XSERVER"; then
10498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
10499 $as_echo "$HAVE_XSERVER" >&6; }
10500 else
10501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10502 $as_echo "no" >&6; }
10506 if test "$HAVE_XSERVER" = true ||
10507 test -n "$DISPLAY" ||
10508 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
10509 as_fn_error "You seem to be running X, but no X development libraries
10510 were found. You should install the relevant development files for X
10511 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
10512 sure you have development files for image handling, i.e.
10513 tiff, gif, jpeg, png and xpm.
10514 If you are sure you want Emacs compiled without X window support, pass
10515 --without-x
10516 to configure." "$LINENO" 5
10520 ### If we're using X11, we should use the X menu package.
10521 HAVE_MENUS=no
10522 case ${HAVE_X11} in
10523 yes ) HAVE_MENUS=yes ;;
10524 esac
10526 # Do the opsystem or machine files prohibit the use of the GNU malloc?
10527 # Assume not, until told otherwise.
10528 GNU_MALLOC=yes
10530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc is Doug Lea style" >&5
10531 $as_echo_n "checking whether malloc is Doug Lea style... " >&6; }
10532 if test "${emacs_cv_var_doug_lea_malloc+set}" = set; then :
10533 $as_echo_n "(cached) " >&6
10534 else
10535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10536 /* end confdefs.h. */
10537 #include <malloc.h>
10538 static void hook (void) {}
10540 main ()
10542 malloc_set_state (malloc_get_state ());
10543 __after_morecore_hook = hook;
10544 __malloc_initialize_hook = hook;
10546 return 0;
10548 _ACEOF
10549 if ac_fn_c_try_link "$LINENO"; then :
10550 emacs_cv_var_doug_lea_malloc=yes
10551 else
10552 emacs_cv_var_doug_lea_malloc=no
10554 rm -f core conftest.err conftest.$ac_objext \
10555 conftest$ac_exeext conftest.$ac_ext
10557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var_doug_lea_malloc" >&5
10558 $as_echo "$emacs_cv_var_doug_lea_malloc" >&6; }
10559 doug_lea_malloc=$emacs_cv_var_doug_lea_malloc
10562 system_malloc=no
10563 case "$opsys" in
10564 ## darwin ld insists on the use of malloc routines in the System framework.
10565 darwin|sol2-10) system_malloc=yes ;;
10566 esac
10568 if test "${system_malloc}" = "yes"; then
10570 $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
10572 GNU_MALLOC=no
10573 GNU_MALLOC_reason="
10574 (The GNU allocators don't work with this system configuration.)"
10575 GMALLOC_OBJ=
10576 VMLIMIT_OBJ=
10577 else
10578 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ=gmalloc.o
10579 VMLIMIT_OBJ=vm-limit.o
10584 if test "$doug_lea_malloc" = "yes" ; then
10585 if test "$GNU_MALLOC" = yes ; then
10586 GNU_MALLOC_reason="
10587 (Using Doug Lea's new malloc from the GNU C Library.)"
10590 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
10593 ## Use mmap directly for allocating larger buffers.
10594 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
10595 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
10596 ## Does the AC_FUNC_MMAP test below make this check unnecessary?
10597 case "$opsys" in
10598 gnu*) REL_ALLOC=no ;;
10599 esac
10602 if test x"${REL_ALLOC}" = x; then
10603 REL_ALLOC=${GNU_MALLOC}
10606 use_mmap_for_buffers=no
10607 case "$opsys" in
10608 cygwin|freebsd|irix6-5) use_mmap_for_buffers=yes ;;
10609 esac
10614 for ac_header in $ac_header_list
10615 do :
10616 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10617 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
10619 eval as_val=\$$as_ac_Header
10620 if test "x$as_val" = x""yes; then :
10621 cat >>confdefs.h <<_ACEOF
10622 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10623 _ACEOF
10627 done
10636 for ac_func in getpagesize
10637 do :
10638 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
10639 if test "x$ac_cv_func_getpagesize" = x""yes; then :
10640 cat >>confdefs.h <<_ACEOF
10641 #define HAVE_GETPAGESIZE 1
10642 _ACEOF
10645 done
10647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
10648 $as_echo_n "checking for working mmap... " >&6; }
10649 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
10650 $as_echo_n "(cached) " >&6
10651 else
10652 if test "$cross_compiling" = yes; then :
10653 ac_cv_func_mmap_fixed_mapped=no
10654 else
10655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10656 /* end confdefs.h. */
10657 $ac_includes_default
10658 /* malloc might have been renamed as rpl_malloc. */
10659 #undef malloc
10661 /* Thanks to Mike Haertel and Jim Avera for this test.
10662 Here is a matrix of mmap possibilities:
10663 mmap private not fixed
10664 mmap private fixed at somewhere currently unmapped
10665 mmap private fixed at somewhere already mapped
10666 mmap shared not fixed
10667 mmap shared fixed at somewhere currently unmapped
10668 mmap shared fixed at somewhere already mapped
10669 For private mappings, we should verify that changes cannot be read()
10670 back from the file, nor mmap's back from the file at a different
10671 address. (There have been systems where private was not correctly
10672 implemented like the infamous i386 svr4.0, and systems where the
10673 VM page cache was not coherent with the file system buffer cache
10674 like early versions of FreeBSD and possibly contemporary NetBSD.)
10675 For shared mappings, we should conversely verify that changes get
10676 propagated back to all the places they're supposed to be.
10678 Grep wants private fixed already mapped.
10679 The main things grep needs to know about mmap are:
10680 * does it exist and is it safe to write into the mmap'd area
10681 * how to use it (BSD variants) */
10683 #include <fcntl.h>
10684 #include <sys/mman.h>
10686 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10687 char *malloc ();
10688 #endif
10690 /* This mess was copied from the GNU getpagesize.h. */
10691 #ifndef HAVE_GETPAGESIZE
10692 # ifdef _SC_PAGESIZE
10693 # define getpagesize() sysconf(_SC_PAGESIZE)
10694 # else /* no _SC_PAGESIZE */
10695 # ifdef HAVE_SYS_PARAM_H
10696 # include <sys/param.h>
10697 # ifdef EXEC_PAGESIZE
10698 # define getpagesize() EXEC_PAGESIZE
10699 # else /* no EXEC_PAGESIZE */
10700 # ifdef NBPG
10701 # define getpagesize() NBPG * CLSIZE
10702 # ifndef CLSIZE
10703 # define CLSIZE 1
10704 # endif /* no CLSIZE */
10705 # else /* no NBPG */
10706 # ifdef NBPC
10707 # define getpagesize() NBPC
10708 # else /* no NBPC */
10709 # ifdef PAGESIZE
10710 # define getpagesize() PAGESIZE
10711 # endif /* PAGESIZE */
10712 # endif /* no NBPC */
10713 # endif /* no NBPG */
10714 # endif /* no EXEC_PAGESIZE */
10715 # else /* no HAVE_SYS_PARAM_H */
10716 # define getpagesize() 8192 /* punt totally */
10717 # endif /* no HAVE_SYS_PARAM_H */
10718 # endif /* no _SC_PAGESIZE */
10720 #endif /* no HAVE_GETPAGESIZE */
10723 main ()
10725 char *data, *data2, *data3;
10726 const char *cdata2;
10727 int i, pagesize;
10728 int fd, fd2;
10730 pagesize = getpagesize ();
10732 /* First, make a file with some known garbage in it. */
10733 data = (char *) malloc (pagesize);
10734 if (!data)
10735 return 1;
10736 for (i = 0; i < pagesize; ++i)
10737 *(data + i) = rand ();
10738 umask (0);
10739 fd = creat ("conftest.mmap", 0600);
10740 if (fd < 0)
10741 return 2;
10742 if (write (fd, data, pagesize) != pagesize)
10743 return 3;
10744 close (fd);
10746 /* Next, check that the tail of a page is zero-filled. File must have
10747 non-zero length, otherwise we risk SIGBUS for entire page. */
10748 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
10749 if (fd2 < 0)
10750 return 4;
10751 cdata2 = "";
10752 if (write (fd2, cdata2, 1) != 1)
10753 return 5;
10754 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
10755 if (data2 == MAP_FAILED)
10756 return 6;
10757 for (i = 0; i < pagesize; ++i)
10758 if (*(data2 + i))
10759 return 7;
10760 close (fd2);
10761 if (munmap (data2, pagesize))
10762 return 8;
10764 /* Next, try to mmap the file at a fixed address which already has
10765 something else allocated at it. If we can, also make sure that
10766 we see the same garbage. */
10767 fd = open ("conftest.mmap", O_RDWR);
10768 if (fd < 0)
10769 return 9;
10770 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10771 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10772 return 10;
10773 for (i = 0; i < pagesize; ++i)
10774 if (*(data + i) != *(data2 + i))
10775 return 11;
10777 /* Finally, make sure that changes to the mapped area do not
10778 percolate back to the file as seen by read(). (This is a bug on
10779 some variants of i386 svr4.0.) */
10780 for (i = 0; i < pagesize; ++i)
10781 *(data2 + i) = *(data2 + i) + 1;
10782 data3 = (char *) malloc (pagesize);
10783 if (!data3)
10784 return 12;
10785 if (read (fd, data3, pagesize) != pagesize)
10786 return 13;
10787 for (i = 0; i < pagesize; ++i)
10788 if (*(data + i) != *(data3 + i))
10789 return 14;
10790 close (fd);
10791 return 0;
10793 _ACEOF
10794 if ac_fn_c_try_run "$LINENO"; then :
10795 ac_cv_func_mmap_fixed_mapped=yes
10796 else
10797 ac_cv_func_mmap_fixed_mapped=no
10799 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10800 conftest.$ac_objext conftest.beam conftest.$ac_ext
10804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
10805 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
10806 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10808 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
10811 rm -f conftest.mmap conftest.txt
10813 if test $use_mmap_for_buffers = yes; then
10815 $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
10817 REL_ALLOC=no
10820 LIBS="$LIBS_SYSTEM $LIBS"
10822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
10823 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
10824 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
10825 $as_echo_n "(cached) " >&6
10826 else
10827 ac_check_lib_save_LIBS=$LIBS
10828 LIBS="-ldnet $LIBS"
10829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10830 /* end confdefs.h. */
10832 /* Override any GCC internal prototype to avoid an error.
10833 Use char because int might match the return type of a GCC
10834 builtin and then its argument prototype would still apply. */
10835 #ifdef __cplusplus
10836 extern "C"
10837 #endif
10838 char dnet_ntoa ();
10840 main ()
10842 return dnet_ntoa ();
10844 return 0;
10846 _ACEOF
10847 if ac_fn_c_try_link "$LINENO"; then :
10848 ac_cv_lib_dnet_dnet_ntoa=yes
10849 else
10850 ac_cv_lib_dnet_dnet_ntoa=no
10852 rm -f core conftest.err conftest.$ac_objext \
10853 conftest$ac_exeext conftest.$ac_ext
10854 LIBS=$ac_check_lib_save_LIBS
10856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10857 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10858 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
10859 cat >>confdefs.h <<_ACEOF
10860 #define HAVE_LIBDNET 1
10861 _ACEOF
10863 LIBS="-ldnet $LIBS"
10868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
10869 $as_echo_n "checking for main in -lXbsd... " >&6; }
10870 if test "${ac_cv_lib_Xbsd_main+set}" = set; then :
10871 $as_echo_n "(cached) " >&6
10872 else
10873 ac_check_lib_save_LIBS=$LIBS
10874 LIBS="-lXbsd $LIBS"
10875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10876 /* end confdefs.h. */
10880 main ()
10882 return main ();
10884 return 0;
10886 _ACEOF
10887 if ac_fn_c_try_link "$LINENO"; then :
10888 ac_cv_lib_Xbsd_main=yes
10889 else
10890 ac_cv_lib_Xbsd_main=no
10892 rm -f core conftest.err conftest.$ac_objext \
10893 conftest$ac_exeext conftest.$ac_ext
10894 LIBS=$ac_check_lib_save_LIBS
10896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
10897 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
10898 if test "x$ac_cv_lib_Xbsd_main" = x""yes; then :
10899 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10903 LIB_PTHREAD=
10904 for ac_header in pthread.h
10905 do :
10906 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
10907 if test "x$ac_cv_header_pthread_h" = x""yes; then :
10908 cat >>confdefs.h <<_ACEOF
10909 #define HAVE_PTHREAD_H 1
10910 _ACEOF
10914 done
10916 if test "$ac_cv_header_pthread_h"; then
10917 if test "$GMALLOC_OBJ" = gmalloc.o; then
10918 emacs_pthread_function=pthread_atfork
10919 else
10920 emacs_pthread_function=pthread_self
10922 as_ac_Lib=`$as_echo "ac_cv_lib_pthread_$emacs_pthread_function" | $as_tr_sh`
10923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $emacs_pthread_function in -lpthread" >&5
10924 $as_echo_n "checking for $emacs_pthread_function in -lpthread... " >&6; }
10925 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
10926 $as_echo_n "(cached) " >&6
10927 else
10928 ac_check_lib_save_LIBS=$LIBS
10929 LIBS="-lpthread $LIBS"
10930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10931 /* end confdefs.h. */
10933 /* Override any GCC internal prototype to avoid an error.
10934 Use char because int might match the return type of a GCC
10935 builtin and then its argument prototype would still apply. */
10936 #ifdef __cplusplus
10937 extern "C"
10938 #endif
10939 char $emacs_pthread_function ();
10941 main ()
10943 return $emacs_pthread_function ();
10945 return 0;
10947 _ACEOF
10948 if ac_fn_c_try_link "$LINENO"; then :
10949 eval "$as_ac_Lib=yes"
10950 else
10951 eval "$as_ac_Lib=no"
10953 rm -f core conftest.err conftest.$ac_objext \
10954 conftest$ac_exeext conftest.$ac_ext
10955 LIBS=$ac_check_lib_save_LIBS
10957 eval ac_res=\$$as_ac_Lib
10958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10959 $as_echo "$ac_res" >&6; }
10960 eval as_val=\$$as_ac_Lib
10961 if test "x$as_val" = x""yes; then :
10962 HAVE_PTHREAD=yes
10966 if test "$HAVE_PTHREAD" = yes; then
10967 case "${canonical}" in
10968 *-hpux*) ;;
10969 *) LIB_PTHREAD="-lpthread"
10970 LIBS="$LIB_PTHREAD $LIBS" ;;
10971 esac
10973 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
10978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
10979 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
10980 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then :
10981 $as_echo_n "(cached) " >&6
10982 else
10983 ac_check_lib_save_LIBS=$LIBS
10984 LIBS="-lpthreads $LIBS"
10985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10986 /* end confdefs.h. */
10988 /* Override any GCC internal prototype to avoid an error.
10989 Use char because int might match the return type of a GCC
10990 builtin and then its argument prototype would still apply. */
10991 #ifdef __cplusplus
10992 extern "C"
10993 #endif
10994 char cma_open ();
10996 main ()
10998 return cma_open ();
11000 return 0;
11002 _ACEOF
11003 if ac_fn_c_try_link "$LINENO"; then :
11004 ac_cv_lib_pthreads_cma_open=yes
11005 else
11006 ac_cv_lib_pthreads_cma_open=no
11008 rm -f core conftest.err conftest.$ac_objext \
11009 conftest$ac_exeext conftest.$ac_ext
11010 LIBS=$ac_check_lib_save_LIBS
11012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
11013 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
11014 if test "x$ac_cv_lib_pthreads_cma_open" = x""yes; then :
11015 cat >>confdefs.h <<_ACEOF
11016 #define HAVE_LIBPTHREADS 1
11017 _ACEOF
11019 LIBS="-lpthreads $LIBS"
11024 ## Note: when using cpp in s/aix4.2.h, this definition depended on
11025 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
11026 ## the system file was sourced. Hence the value of LIBS_SYSTEM
11027 ## added to LIBS in configure would never contain the pthreads part,
11028 ## but the value used in Makefiles might. FIXME?
11030 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
11031 ## be harmless on older versions of X where it happens to exist.
11032 test "$opsys" = "aix4-2" && \
11033 test $ac_cv_lib_pthreads_cma_open = yes && \
11034 LIBS_SYSTEM="$LIBS_SYSTEM -lpthreads"
11037 case ${host_os} in
11038 aix*)
11039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
11040 $as_echo_n "checking for -bbigtoc option... " >&6; }
11041 if test "${gdb_cv_bigtoc+set}" = set; then :
11042 $as_echo_n "(cached) " >&6
11043 else
11045 case $GCC in
11046 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
11047 *) gdb_cv_bigtoc=-bbigtoc ;;
11048 esac
11050 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
11051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11052 /* end confdefs.h. */
11055 main ()
11057 int i;
11059 return 0;
11061 _ACEOF
11062 if ac_fn_c_try_link "$LINENO"; then :
11064 else
11065 gdb_cv_bigtoc=
11067 rm -f core conftest.err conftest.$ac_objext \
11068 conftest$ac_exeext conftest.$ac_ext
11071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
11072 $as_echo "$gdb_cv_bigtoc" >&6; }
11074 esac
11076 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
11077 # used for the tests that follow. We set them back to REAL_CFLAGS and
11078 # REAL_CPPFLAGS later on.
11080 REAL_CFLAGS="$CFLAGS"
11081 REAL_CPPFLAGS="$CPPFLAGS"
11083 if test "${HAVE_X11}" = "yes"; then
11084 DEFS="$C_SWITCH_X_SITE $DEFS"
11085 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
11086 LIBS="-lX11 $LIBS"
11087 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
11088 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
11090 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
11091 # This is handled by LD_SWITCH_X_SITE_RPATH during the real build,
11092 # but it's more convenient here to set LD_RUN_PATH since this
11093 # also works on hosts that don't understand LD_SWITCH_X_SITE_RPATH.
11094 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
11095 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
11096 export LD_RUN_PATH
11099 if test "${opsys}" = "gnu-linux"; then
11100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
11101 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
11102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11103 /* end confdefs.h. */
11106 main ()
11108 XOpenDisplay ("foo");
11110 return 0;
11112 _ACEOF
11113 if ac_fn_c_try_link "$LINENO"; then :
11114 xgnu_linux_first_failure=no
11115 else
11116 xgnu_linux_first_failure=yes
11118 rm -f core conftest.err conftest.$ac_objext \
11119 conftest$ac_exeext conftest.$ac_ext
11120 if test "${xgnu_linux_first_failure}" = "yes"; then
11121 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
11122 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
11123 OLD_CPPFLAGS="$CPPFLAGS"
11124 OLD_LIBS="$LIBS"
11125 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
11126 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
11127 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
11128 LIBS="$LIBS -b i486-linuxaout"
11129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11130 /* end confdefs.h. */
11133 main ()
11135 XOpenDisplay ("foo");
11137 return 0;
11139 _ACEOF
11140 if ac_fn_c_try_link "$LINENO"; then :
11141 xgnu_linux_second_failure=no
11142 else
11143 xgnu_linux_second_failure=yes
11145 rm -f core conftest.err conftest.$ac_objext \
11146 conftest$ac_exeext conftest.$ac_ext
11147 if test "${xgnu_linux_second_failure}" = "yes"; then
11148 # If we get the same failure with -b, there is no use adding -b.
11149 # So take it out. This plays safe.
11150 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
11151 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
11152 CPPFLAGS="$OLD_CPPFLAGS"
11153 LIBS="$OLD_LIBS"
11154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11155 $as_echo "no" >&6; }
11156 else
11157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11158 $as_echo "yes" >&6; }
11160 else
11161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11162 $as_echo "no" >&6; }
11166 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
11167 # header files included from there.
11168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
11169 $as_echo_n "checking for Xkb... " >&6; }
11170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11171 /* end confdefs.h. */
11172 #include <X11/Xlib.h>
11173 #include <X11/XKBlib.h>
11175 main ()
11177 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
11179 return 0;
11181 _ACEOF
11182 if ac_fn_c_try_link "$LINENO"; then :
11183 emacs_xkb=yes
11184 else
11185 emacs_xkb=no
11187 rm -f core conftest.err conftest.$ac_objext \
11188 conftest$ac_exeext conftest.$ac_ext
11189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
11190 $as_echo "$emacs_xkb" >&6; }
11191 if test $emacs_xkb = yes; then
11193 $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
11197 for ac_func in XrmSetDatabase XScreenResourceString \
11198 XScreenNumberOfScreen XSetWMProtocols
11199 do :
11200 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11201 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11202 eval as_val=\$$as_ac_var
11203 if test "x$as_val" = x""yes; then :
11204 cat >>confdefs.h <<_ACEOF
11205 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11206 _ACEOF
11209 done
11213 if test "${window_system}" = "x11"; then
11214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
11215 $as_echo_n "checking X11 version 6... " >&6; }
11216 if test "${emacs_cv_x11_version_6+set}" = set; then :
11217 $as_echo_n "(cached) " >&6
11218 else
11219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11220 /* end confdefs.h. */
11221 #include <X11/Xlib.h>
11223 main ()
11225 #if XlibSpecificationRelease < 6
11226 fail;
11227 #endif
11230 return 0;
11232 _ACEOF
11233 if ac_fn_c_try_link "$LINENO"; then :
11234 emacs_cv_x11_version_6=yes
11235 else
11236 emacs_cv_x11_version_6=no
11238 rm -f core conftest.err conftest.$ac_objext \
11239 conftest$ac_exeext conftest.$ac_ext
11242 if test $emacs_cv_x11_version_6 = yes; then
11243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
11244 $as_echo "6 or newer" >&6; }
11246 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
11249 $as_echo "#define HAVE_X_I18N 1" >>confdefs.h
11251 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
11252 ## XIM support.
11253 case "$opsys" in
11254 sol2-*) : ;;
11256 $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
11259 esac
11260 else
11261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
11262 $as_echo "before 6" >&6; }
11267 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
11268 HAVE_RSVG=no
11269 if test "${HAVE_X11}" = "yes" || test "${HAVE_NS}" = "yes"; then
11270 if test "${with_rsvg}" != "no"; then
11271 RSVG_REQUIRED=2.11.0
11272 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
11275 succeeded=no
11277 # Extract the first word of "pkg-config", so it can be a program name with args.
11278 set dummy pkg-config; ac_word=$2
11279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11280 $as_echo_n "checking for $ac_word... " >&6; }
11281 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11282 $as_echo_n "(cached) " >&6
11283 else
11284 case $PKG_CONFIG in
11285 [\\/]* | ?:[\\/]*)
11286 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11290 for as_dir in $PATH
11292 IFS=$as_save_IFS
11293 test -z "$as_dir" && as_dir=.
11294 for ac_exec_ext in '' $ac_executable_extensions; do
11295 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11296 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11298 break 2
11300 done
11301 done
11302 IFS=$as_save_IFS
11304 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11306 esac
11308 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11309 if test -n "$PKG_CONFIG"; then
11310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11311 $as_echo "$PKG_CONFIG" >&6; }
11312 else
11313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11314 $as_echo "no" >&6; }
11319 if test "$PKG_CONFIG" = "no" ; then
11321 else
11322 PKG_CONFIG_MIN_VERSION=0.9.0
11323 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
11325 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
11327 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5 &&
11328 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE" 2>&5` &&
11329 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE" 2>&5`; then
11330 edit_cflags="
11331 s,///*,/,g
11332 s/^/ /
11333 s/ -I/ $isystem/g
11334 s/^ //
11336 RSVG_CFLAGS=`$as_echo "$RSVG_CFLAGS" | sed -e "$edit_cflags"`
11337 RSVG_LIBS=`$as_echo "$RSVG_LIBS" | sed -e 's,///*,/,g'`
11338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$RSVG_CFLAGS' LIBS='$RSVG_LIBS'" >&5
11339 $as_echo "yes CFLAGS='$RSVG_CFLAGS' LIBS='$RSVG_LIBS'" >&6; }
11340 succeeded=yes
11341 else
11342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11343 $as_echo "no" >&6; }
11344 RSVG_CFLAGS=""
11345 RSVG_LIBS=""
11346 ## If we have a custom action on failure, don't print errors, but
11347 ## do set a variable so people can do so.
11348 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
11354 else
11355 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11356 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11360 if test $succeeded = yes; then
11361 HAVE_RSVG=yes
11362 else
11369 if test $HAVE_RSVG = yes; then
11371 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
11373 CFLAGS="$CFLAGS $RSVG_CFLAGS"
11374 LIBS="$RSVG_LIBS $LIBS"
11379 HAVE_IMAGEMAGICK=no
11380 if test "${HAVE_X11}" = "yes"; then
11381 if test "${with_imagemagick}" != "no"; then
11382 ## 6.2.8 is the earliest version known to work, but earlier versions
11383 ## might work - let us know if you find one.
11384 ## 6.0.7 does not work. See bug#7955.
11385 IMAGEMAGICK_MODULE="Wand >= 6.2.8"
11387 succeeded=no
11389 # Extract the first word of "pkg-config", so it can be a program name with args.
11390 set dummy pkg-config; ac_word=$2
11391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11392 $as_echo_n "checking for $ac_word... " >&6; }
11393 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11394 $as_echo_n "(cached) " >&6
11395 else
11396 case $PKG_CONFIG in
11397 [\\/]* | ?:[\\/]*)
11398 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11402 for as_dir in $PATH
11404 IFS=$as_save_IFS
11405 test -z "$as_dir" && as_dir=.
11406 for ac_exec_ext in '' $ac_executable_extensions; do
11407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11408 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11410 break 2
11412 done
11413 done
11414 IFS=$as_save_IFS
11416 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11418 esac
11420 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11421 if test -n "$PKG_CONFIG"; then
11422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11423 $as_echo "$PKG_CONFIG" >&6; }
11424 else
11425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11426 $as_echo "no" >&6; }
11431 if test "$PKG_CONFIG" = "no" ; then
11433 else
11434 PKG_CONFIG_MIN_VERSION=0.9.0
11435 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
11437 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
11439 if $PKG_CONFIG --exists "$IMAGEMAGICK_MODULE" 2>&5 &&
11440 IMAGEMAGICK_CFLAGS=`$PKG_CONFIG --cflags "$IMAGEMAGICK_MODULE" 2>&5` &&
11441 IMAGEMAGICK_LIBS=`$PKG_CONFIG --libs "$IMAGEMAGICK_MODULE" 2>&5`; then
11442 edit_cflags="
11443 s,///*,/,g
11444 s/^/ /
11445 s/ -I/ $isystem/g
11446 s/^ //
11448 IMAGEMAGICK_CFLAGS=`$as_echo "$IMAGEMAGICK_CFLAGS" | sed -e "$edit_cflags"`
11449 IMAGEMAGICK_LIBS=`$as_echo "$IMAGEMAGICK_LIBS" | sed -e 's,///*,/,g'`
11450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$IMAGEMAGICK_CFLAGS' LIBS='$IMAGEMAGICK_LIBS'" >&5
11451 $as_echo "yes CFLAGS='$IMAGEMAGICK_CFLAGS' LIBS='$IMAGEMAGICK_LIBS'" >&6; }
11452 succeeded=yes
11453 else
11454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11455 $as_echo "no" >&6; }
11456 IMAGEMAGICK_CFLAGS=""
11457 IMAGEMAGICK_LIBS=""
11458 ## If we have a custom action on failure, don't print errors, but
11459 ## do set a variable so people can do so.
11460 IMAGEMAGICK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$IMAGEMAGICK_MODULE"`
11466 else
11467 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11468 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11472 if test $succeeded = yes; then
11473 HAVE_IMAGEMAGICK=yes
11474 else
11481 if test $HAVE_IMAGEMAGICK = yes; then
11483 $as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
11485 CFLAGS="$CFLAGS $IMAGEMAGICK_CFLAGS"
11486 LIBS="$IMAGEMAGICK_LIBS $LIBS"
11487 for ac_func in MagickExportImagePixels
11488 do :
11489 ac_fn_c_check_func "$LINENO" "MagickExportImagePixels" "ac_cv_func_MagickExportImagePixels"
11490 if test "x$ac_cv_func_MagickExportImagePixels" = x""yes; then :
11491 cat >>confdefs.h <<_ACEOF
11492 #define HAVE_MAGICKEXPORTIMAGEPIXELS 1
11493 _ACEOF
11496 done
11503 HAVE_GTK=no
11504 GTK_OBJ=
11505 if test "${with_gtk3}" = "yes"; then
11506 GLIB_REQUIRED=2.28
11507 GTK_REQUIRED=3.0
11508 GTK_MODULES="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11511 succeeded=no
11513 # Extract the first word of "pkg-config", so it can be a program name with args.
11514 set dummy pkg-config; ac_word=$2
11515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11516 $as_echo_n "checking for $ac_word... " >&6; }
11517 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11518 $as_echo_n "(cached) " >&6
11519 else
11520 case $PKG_CONFIG in
11521 [\\/]* | ?:[\\/]*)
11522 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11526 for as_dir in $PATH
11528 IFS=$as_save_IFS
11529 test -z "$as_dir" && as_dir=.
11530 for ac_exec_ext in '' $ac_executable_extensions; do
11531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11532 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11534 break 2
11536 done
11537 done
11538 IFS=$as_save_IFS
11540 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11542 esac
11544 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11545 if test -n "$PKG_CONFIG"; then
11546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11547 $as_echo "$PKG_CONFIG" >&6; }
11548 else
11549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11550 $as_echo "no" >&6; }
11555 if test "$PKG_CONFIG" = "no" ; then
11556 pkg_check_gtk=no
11557 else
11558 PKG_CONFIG_MIN_VERSION=0.9.0
11559 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
11561 $as_echo_n "checking for $GTK_MODULES... " >&6; }
11563 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5 &&
11564 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES" 2>&5` &&
11565 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES" 2>&5`; then
11566 edit_cflags="
11567 s,///*,/,g
11568 s/^/ /
11569 s/ -I/ $isystem/g
11570 s/^ //
11572 GTK_CFLAGS=`$as_echo "$GTK_CFLAGS" | sed -e "$edit_cflags"`
11573 GTK_LIBS=`$as_echo "$GTK_LIBS" | sed -e 's,///*,/,g'`
11574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&5
11575 $as_echo "yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&6; }
11576 succeeded=yes
11577 else
11578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11579 $as_echo "no" >&6; }
11580 GTK_CFLAGS=""
11581 GTK_LIBS=""
11582 ## If we have a custom action on failure, don't print errors, but
11583 ## do set a variable so people can do so.
11584 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11590 else
11591 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11592 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11596 if test $succeeded = yes; then
11597 pkg_check_gtk=yes
11598 else
11599 pkg_check_gtk=no
11602 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
11603 as_fn_error "$GTK_PKG_ERRORS" "$LINENO" 5
11606 $as_echo "#define HAVE_GTK3 1" >>confdefs.h
11608 GTK_OBJ=emacsgtkfixed.o
11611 if test "$pkg_check_gtk" != "yes"; then
11612 HAVE_GTK=no
11613 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
11614 GLIB_REQUIRED=2.10
11615 GTK_REQUIRED=2.10
11616 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11619 succeeded=no
11621 # Extract the first word of "pkg-config", so it can be a program name with args.
11622 set dummy pkg-config; ac_word=$2
11623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11624 $as_echo_n "checking for $ac_word... " >&6; }
11625 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11626 $as_echo_n "(cached) " >&6
11627 else
11628 case $PKG_CONFIG in
11629 [\\/]* | ?:[\\/]*)
11630 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11634 for as_dir in $PATH
11636 IFS=$as_save_IFS
11637 test -z "$as_dir" && as_dir=.
11638 for ac_exec_ext in '' $ac_executable_extensions; do
11639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11640 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11642 break 2
11644 done
11645 done
11646 IFS=$as_save_IFS
11648 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11650 esac
11652 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11653 if test -n "$PKG_CONFIG"; then
11654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11655 $as_echo "$PKG_CONFIG" >&6; }
11656 else
11657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11658 $as_echo "no" >&6; }
11663 if test "$PKG_CONFIG" = "no" ; then
11664 pkg_check_gtk=no
11665 else
11666 PKG_CONFIG_MIN_VERSION=0.9.0
11667 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
11669 $as_echo_n "checking for $GTK_MODULES... " >&6; }
11671 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5 &&
11672 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES" 2>&5` &&
11673 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES" 2>&5`; then
11674 edit_cflags="
11675 s,///*,/,g
11676 s/^/ /
11677 s/ -I/ $isystem/g
11678 s/^ //
11680 GTK_CFLAGS=`$as_echo "$GTK_CFLAGS" | sed -e "$edit_cflags"`
11681 GTK_LIBS=`$as_echo "$GTK_LIBS" | sed -e 's,///*,/,g'`
11682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&5
11683 $as_echo "yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&6; }
11684 succeeded=yes
11685 else
11686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11687 $as_echo "no" >&6; }
11688 GTK_CFLAGS=""
11689 GTK_LIBS=""
11690 ## If we have a custom action on failure, don't print errors, but
11691 ## do set a variable so people can do so.
11692 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11698 else
11699 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11700 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11704 if test $succeeded = yes; then
11705 pkg_check_gtk=yes
11706 else
11707 pkg_check_gtk=no
11710 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
11711 as_fn_error "$GTK_PKG_ERRORS" "$LINENO" 5
11716 if test x"$pkg_check_gtk" = xyes; then
11720 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
11721 CFLAGS="$CFLAGS $GTK_CFLAGS"
11722 LIBS="$GTK_LIBS $LIBS"
11723 GTK_COMPILES=no
11724 for ac_func in gtk_main
11725 do :
11726 ac_fn_c_check_func "$LINENO" "gtk_main" "ac_cv_func_gtk_main"
11727 if test "x$ac_cv_func_gtk_main" = x""yes; then :
11728 cat >>confdefs.h <<_ACEOF
11729 #define HAVE_GTK_MAIN 1
11730 _ACEOF
11731 GTK_COMPILES=yes
11733 done
11735 if test "${GTK_COMPILES}" != "yes"; then
11736 if test "$USE_X_TOOLKIT" != "maybe"; then
11737 as_fn_error "Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
11739 else
11740 HAVE_GTK=yes
11742 $as_echo "#define USE_GTK 1" >>confdefs.h
11744 GTK_OBJ="gtkutil.o $GTK_OBJ"
11745 USE_X_TOOLKIT=none
11746 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
11748 else
11749 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
11750 closing open displays. This is no problem if you just use
11751 one display, but if you use more than one and close one of them
11752 Emacs may crash." >&5
11753 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
11754 closing open displays. This is no problem if you just use
11755 one display, but if you use more than one and close one of them
11756 Emacs may crash." >&2;}
11757 sleep 3
11765 if test "${HAVE_GTK}" = "yes"; then
11767 if test "$with_toolkit_scroll_bars" != no; then
11768 with_toolkit_scroll_bars=yes
11771 HAVE_GTK_FILE_SELECTION=no
11772 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
11773 #include <gtk/gtk.h>
11775 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x""yes; then :
11776 HAVE_GTK_FILE_SELECTION=yes
11777 else
11778 HAVE_GTK_FILE_SELECTION=no
11781 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
11782 for ac_func in gtk_file_selection_new
11783 do :
11784 ac_fn_c_check_func "$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
11785 if test "x$ac_cv_func_gtk_file_selection_new" = x""yes; then :
11786 cat >>confdefs.h <<_ACEOF
11787 #define HAVE_GTK_FILE_SELECTION_NEW 1
11788 _ACEOF
11791 done
11796 for ac_func in gtk_widget_get_window gtk_widget_set_has_window \
11797 gtk_dialog_get_action_area gtk_widget_get_sensitive \
11798 gtk_widget_get_mapped gtk_adjustment_get_page_size \
11799 gtk_orientable_set_orientation \
11800 gtk_window_set_has_resize_grip
11801 do :
11802 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11803 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11804 eval as_val=\$$as_ac_var
11805 if test "x$as_val" = x""yes; then :
11806 cat >>confdefs.h <<_ACEOF
11807 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11808 _ACEOF
11811 done
11815 HAVE_DBUS=no
11816 DBUS_OBJ=
11817 if test "${with_dbus}" = "yes"; then
11819 succeeded=no
11821 # Extract the first word of "pkg-config", so it can be a program name with args.
11822 set dummy pkg-config; ac_word=$2
11823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11824 $as_echo_n "checking for $ac_word... " >&6; }
11825 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11826 $as_echo_n "(cached) " >&6
11827 else
11828 case $PKG_CONFIG in
11829 [\\/]* | ?:[\\/]*)
11830 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11834 for as_dir in $PATH
11836 IFS=$as_save_IFS
11837 test -z "$as_dir" && as_dir=.
11838 for ac_exec_ext in '' $ac_executable_extensions; do
11839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11840 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11842 break 2
11844 done
11845 done
11846 IFS=$as_save_IFS
11848 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11850 esac
11852 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11853 if test -n "$PKG_CONFIG"; then
11854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11855 $as_echo "$PKG_CONFIG" >&6; }
11856 else
11857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11858 $as_echo "no" >&6; }
11863 if test "$PKG_CONFIG" = "no" ; then
11864 HAVE_DBUS=no
11865 else
11866 PKG_CONFIG_MIN_VERSION=0.9.0
11867 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
11869 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
11871 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5 &&
11872 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0" 2>&5` &&
11873 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0" 2>&5`; then
11874 edit_cflags="
11875 s,///*,/,g
11876 s/^/ /
11877 s/ -I/ $isystem/g
11878 s/^ //
11880 DBUS_CFLAGS=`$as_echo "$DBUS_CFLAGS" | sed -e "$edit_cflags"`
11881 DBUS_LIBS=`$as_echo "$DBUS_LIBS" | sed -e 's,///*,/,g'`
11882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$DBUS_CFLAGS' LIBS='$DBUS_LIBS'" >&5
11883 $as_echo "yes CFLAGS='$DBUS_CFLAGS' LIBS='$DBUS_LIBS'" >&6; }
11884 succeeded=yes
11885 else
11886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11887 $as_echo "no" >&6; }
11888 DBUS_CFLAGS=""
11889 DBUS_LIBS=""
11890 ## If we have a custom action on failure, don't print errors, but
11891 ## do set a variable so people can do so.
11892 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
11898 else
11899 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11900 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11904 if test $succeeded = yes; then
11905 HAVE_DBUS=yes
11906 else
11907 HAVE_DBUS=no
11910 if test "$HAVE_DBUS" = yes; then
11911 LIBS="$LIBS $DBUS_LIBS"
11913 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
11915 for ac_func in dbus_watch_get_unix_fd \
11916 dbus_validate_bus_name \
11917 dbus_validate_path \
11918 dbus_validate_interface \
11919 dbus_validate_member
11920 do :
11921 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11922 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11923 eval as_val=\$$as_ac_var
11924 if test "x$as_val" = x""yes; then :
11925 cat >>confdefs.h <<_ACEOF
11926 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11927 _ACEOF
11930 done
11932 DBUS_OBJ=dbusbind.o
11937 HAVE_GSETTINGS=no
11938 if test "${HAVE_X11}" = "yes" && test "${with_gsettings}" = "yes"; then
11940 succeeded=no
11942 # Extract the first word of "pkg-config", so it can be a program name with args.
11943 set dummy pkg-config; ac_word=$2
11944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11945 $as_echo_n "checking for $ac_word... " >&6; }
11946 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11947 $as_echo_n "(cached) " >&6
11948 else
11949 case $PKG_CONFIG in
11950 [\\/]* | ?:[\\/]*)
11951 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11955 for as_dir in $PATH
11957 IFS=$as_save_IFS
11958 test -z "$as_dir" && as_dir=.
11959 for ac_exec_ext in '' $ac_executable_extensions; do
11960 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11961 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11963 break 2
11965 done
11966 done
11967 IFS=$as_save_IFS
11969 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11971 esac
11973 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11974 if test -n "$PKG_CONFIG"; then
11975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11976 $as_echo "$PKG_CONFIG" >&6; }
11977 else
11978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11979 $as_echo "no" >&6; }
11984 if test "$PKG_CONFIG" = "no" ; then
11985 HAVE_GSETTINGS=no
11986 else
11987 PKG_CONFIG_MIN_VERSION=0.9.0
11988 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gio-2.0 >= 2.26" >&5
11990 $as_echo_n "checking for gio-2.0 >= 2.26... " >&6; }
11992 if $PKG_CONFIG --exists "gio-2.0 >= 2.26" 2>&5 &&
11993 GSETTINGS_CFLAGS=`$PKG_CONFIG --cflags "gio-2.0 >= 2.26" 2>&5` &&
11994 GSETTINGS_LIBS=`$PKG_CONFIG --libs "gio-2.0 >= 2.26" 2>&5`; then
11995 edit_cflags="
11996 s,///*,/,g
11997 s/^/ /
11998 s/ -I/ $isystem/g
11999 s/^ //
12001 GSETTINGS_CFLAGS=`$as_echo "$GSETTINGS_CFLAGS" | sed -e "$edit_cflags"`
12002 GSETTINGS_LIBS=`$as_echo "$GSETTINGS_LIBS" | sed -e 's,///*,/,g'`
12003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GSETTINGS_CFLAGS' LIBS='$GSETTINGS_LIBS'" >&5
12004 $as_echo "yes CFLAGS='$GSETTINGS_CFLAGS' LIBS='$GSETTINGS_LIBS'" >&6; }
12005 succeeded=yes
12006 else
12007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12008 $as_echo "no" >&6; }
12009 GSETTINGS_CFLAGS=""
12010 GSETTINGS_LIBS=""
12011 ## If we have a custom action on failure, don't print errors, but
12012 ## do set a variable so people can do so.
12013 GSETTINGS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gio-2.0 >= 2.26"`
12019 else
12020 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12021 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12025 if test $succeeded = yes; then
12026 HAVE_GSETTINGS=yes
12027 else
12028 HAVE_GSETTINGS=no
12031 if test "$HAVE_GSETTINGS" = "yes"; then
12033 $as_echo "#define HAVE_GSETTINGS 1" >>confdefs.h
12035 SETTINGS_CFLAGS="$GSETTINGS_CFLAGS"
12036 SETTINGS_LIBS="$GSETTINGS_LIBS"
12040 HAVE_GCONF=no
12041 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
12043 succeeded=no
12045 # Extract the first word of "pkg-config", so it can be a program name with args.
12046 set dummy pkg-config; ac_word=$2
12047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12048 $as_echo_n "checking for $ac_word... " >&6; }
12049 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12050 $as_echo_n "(cached) " >&6
12051 else
12052 case $PKG_CONFIG in
12053 [\\/]* | ?:[\\/]*)
12054 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12058 for as_dir in $PATH
12060 IFS=$as_save_IFS
12061 test -z "$as_dir" && as_dir=.
12062 for ac_exec_ext in '' $ac_executable_extensions; do
12063 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12064 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12066 break 2
12068 done
12069 done
12070 IFS=$as_save_IFS
12072 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12074 esac
12076 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12077 if test -n "$PKG_CONFIG"; then
12078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12079 $as_echo "$PKG_CONFIG" >&6; }
12080 else
12081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12082 $as_echo "no" >&6; }
12087 if test "$PKG_CONFIG" = "no" ; then
12088 HAVE_GCONF=no
12089 else
12090 PKG_CONFIG_MIN_VERSION=0.9.0
12091 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
12093 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
12095 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5 &&
12096 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13" 2>&5` &&
12097 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13" 2>&5`; then
12098 edit_cflags="
12099 s,///*,/,g
12100 s/^/ /
12101 s/ -I/ $isystem/g
12102 s/^ //
12104 GCONF_CFLAGS=`$as_echo "$GCONF_CFLAGS" | sed -e "$edit_cflags"`
12105 GCONF_LIBS=`$as_echo "$GCONF_LIBS" | sed -e 's,///*,/,g'`
12106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GCONF_CFLAGS' LIBS='$GCONF_LIBS'" >&5
12107 $as_echo "yes CFLAGS='$GCONF_CFLAGS' LIBS='$GCONF_LIBS'" >&6; }
12108 succeeded=yes
12109 else
12110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12111 $as_echo "no" >&6; }
12112 GCONF_CFLAGS=""
12113 GCONF_LIBS=""
12114 ## If we have a custom action on failure, don't print errors, but
12115 ## do set a variable so people can do so.
12116 GCONF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
12122 else
12123 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12124 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12128 if test $succeeded = yes; then
12129 HAVE_GCONF=yes
12130 else
12131 HAVE_GCONF=no
12134 if test "$HAVE_GCONF" = yes; then
12136 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
12138 SETTINGS_CFLAGS="$SETTINGS_CFLAGS $GCONF_CFLAGS"
12139 SETTINGS_LIBS="$SETTINGS_LIBS $GCONF_LIBS"
12143 if test "$HAVE_GSETTINGS" = "yes" || test "$HAVE_GCONF" = "yes"; then
12144 SAVE_CFLAGS="$CFLAGS"
12145 SAVE_LIBS="$LIBS"
12146 CFLAGS="$SETTINGS_CFLAGS $CFLAGS"
12147 LIBS="$SETTINGS_LIBS $LIBS"
12148 for ac_func in g_type_init
12149 do :
12150 ac_fn_c_check_func "$LINENO" "g_type_init" "ac_cv_func_g_type_init"
12151 if test "x$ac_cv_func_g_type_init" = x""yes; then :
12152 cat >>confdefs.h <<_ACEOF
12153 #define HAVE_G_TYPE_INIT 1
12154 _ACEOF
12157 done
12159 CFLAGS="$SAVE_CFLAGS"
12160 LIBS="$SAVE_LIBS"
12166 HAVE_LIBSELINUX=no
12167 LIBSELINUX_LIBS=
12168 if test "${with_selinux}" = "yes"; then
12169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
12170 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
12171 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then :
12172 $as_echo_n "(cached) " >&6
12173 else
12174 ac_check_lib_save_LIBS=$LIBS
12175 LIBS="-lselinux $LIBS"
12176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12177 /* end confdefs.h. */
12179 /* Override any GCC internal prototype to avoid an error.
12180 Use char because int might match the return type of a GCC
12181 builtin and then its argument prototype would still apply. */
12182 #ifdef __cplusplus
12183 extern "C"
12184 #endif
12185 char lgetfilecon ();
12187 main ()
12189 return lgetfilecon ();
12191 return 0;
12193 _ACEOF
12194 if ac_fn_c_try_link "$LINENO"; then :
12195 ac_cv_lib_selinux_lgetfilecon=yes
12196 else
12197 ac_cv_lib_selinux_lgetfilecon=no
12199 rm -f core conftest.err conftest.$ac_objext \
12200 conftest$ac_exeext conftest.$ac_ext
12201 LIBS=$ac_check_lib_save_LIBS
12203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
12204 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
12205 if test "x$ac_cv_lib_selinux_lgetfilecon" = x""yes; then :
12206 HAVE_LIBSELINUX=yes
12207 else
12208 HAVE_LIBSELINUX=no
12211 if test "$HAVE_LIBSELINUX" = yes; then
12213 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
12215 LIBSELINUX_LIBS=-lselinux
12220 HAVE_GNUTLS=no
12221 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY=no
12222 if test "${with_gnutls}" = "yes" ; then
12224 succeeded=no
12226 # Extract the first word of "pkg-config", so it can be a program name with args.
12227 set dummy pkg-config; ac_word=$2
12228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12229 $as_echo_n "checking for $ac_word... " >&6; }
12230 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12231 $as_echo_n "(cached) " >&6
12232 else
12233 case $PKG_CONFIG in
12234 [\\/]* | ?:[\\/]*)
12235 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12239 for as_dir in $PATH
12241 IFS=$as_save_IFS
12242 test -z "$as_dir" && as_dir=.
12243 for ac_exec_ext in '' $ac_executable_extensions; do
12244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12245 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12247 break 2
12249 done
12250 done
12251 IFS=$as_save_IFS
12253 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12255 esac
12257 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12258 if test -n "$PKG_CONFIG"; then
12259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12260 $as_echo "$PKG_CONFIG" >&6; }
12261 else
12262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12263 $as_echo "no" >&6; }
12268 if test "$PKG_CONFIG" = "no" ; then
12269 HAVE_GNUTLS=no
12270 else
12271 PKG_CONFIG_MIN_VERSION=0.9.0
12272 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.6.6" >&5
12274 $as_echo_n "checking for gnutls >= 2.6.6... " >&6; }
12276 if $PKG_CONFIG --exists "gnutls >= 2.6.6" 2>&5 &&
12277 LIBGNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls >= 2.6.6" 2>&5` &&
12278 LIBGNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls >= 2.6.6" 2>&5`; then
12279 edit_cflags="
12280 s,///*,/,g
12281 s/^/ /
12282 s/ -I/ $isystem/g
12283 s/^ //
12285 LIBGNUTLS_CFLAGS=`$as_echo "$LIBGNUTLS_CFLAGS" | sed -e "$edit_cflags"`
12286 LIBGNUTLS_LIBS=`$as_echo "$LIBGNUTLS_LIBS" | sed -e 's,///*,/,g'`
12287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBGNUTLS_CFLAGS' LIBS='$LIBGNUTLS_LIBS'" >&5
12288 $as_echo "yes CFLAGS='$LIBGNUTLS_CFLAGS' LIBS='$LIBGNUTLS_LIBS'" >&6; }
12289 succeeded=yes
12290 else
12291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12292 $as_echo "no" >&6; }
12293 LIBGNUTLS_CFLAGS=""
12294 LIBGNUTLS_LIBS=""
12295 ## If we have a custom action on failure, don't print errors, but
12296 ## do set a variable so people can do so.
12297 LIBGNUTLS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnutls >= 2.6.6"`
12303 else
12304 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12305 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12309 if test $succeeded = yes; then
12310 HAVE_GNUTLS=yes
12311 else
12312 HAVE_GNUTLS=no
12315 if test "${HAVE_GNUTLS}" = "yes"; then
12317 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
12321 CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
12322 LIBS="$LIBGNUTLS_LIBS $LIBS"
12323 for ac_func in gnutls_certificate_set_verify_function
12324 do :
12325 ac_fn_c_check_func "$LINENO" "gnutls_certificate_set_verify_function" "ac_cv_func_gnutls_certificate_set_verify_function"
12326 if test "x$ac_cv_func_gnutls_certificate_set_verify_function" = x""yes; then :
12327 cat >>confdefs.h <<_ACEOF
12328 #define HAVE_GNUTLS_CERTIFICATE_SET_VERIFY_FUNCTION 1
12329 _ACEOF
12330 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY=yes
12332 done
12335 if test "${HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY}" = "yes"; then
12337 $as_echo "#define HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY 1" >>confdefs.h
12345 HAVE_XAW3D=no
12346 LUCID_LIBW=
12347 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
12348 if test "$with_xaw3d" != no; then
12349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
12350 $as_echo_n "checking for xaw3d... " >&6; }
12351 if test "${emacs_cv_xaw3d+set}" = set; then :
12352 $as_echo_n "(cached) " >&6
12353 else
12354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12355 /* end confdefs.h. */
12357 #include <X11/Intrinsic.h>
12358 #include <X11/Xaw3d/Simple.h>
12360 main ()
12364 return 0;
12366 _ACEOF
12367 if ac_fn_c_try_link "$LINENO"; then :
12368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XawScrollbarSetThumb in -lXaw3d" >&5
12369 $as_echo_n "checking for XawScrollbarSetThumb in -lXaw3d... " >&6; }
12370 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then :
12371 $as_echo_n "(cached) " >&6
12372 else
12373 ac_check_lib_save_LIBS=$LIBS
12374 LIBS="-lXaw3d $LIBS"
12375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12376 /* end confdefs.h. */
12378 /* Override any GCC internal prototype to avoid an error.
12379 Use char because int might match the return type of a GCC
12380 builtin and then its argument prototype would still apply. */
12381 #ifdef __cplusplus
12382 extern "C"
12383 #endif
12384 char XawScrollbarSetThumb ();
12386 main ()
12388 return XawScrollbarSetThumb ();
12390 return 0;
12392 _ACEOF
12393 if ac_fn_c_try_link "$LINENO"; then :
12394 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
12395 else
12396 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
12398 rm -f core conftest.err conftest.$ac_objext \
12399 conftest$ac_exeext conftest.$ac_ext
12400 LIBS=$ac_check_lib_save_LIBS
12402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
12403 $as_echo "$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
12404 if test "x$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" = x""yes; then :
12405 emacs_cv_xaw3d=yes
12406 else
12407 emacs_cv_xaw3d=no
12410 else
12411 emacs_cv_xaw3d=no
12413 rm -f core conftest.err conftest.$ac_objext \
12414 conftest$ac_exeext conftest.$ac_ext
12417 else
12418 emacs_cv_xaw3d=no
12420 if test $emacs_cv_xaw3d = yes; then
12421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
12422 $as_echo "yes; using Lucid toolkit" >&6; }
12423 USE_X_TOOLKIT=LUCID
12424 HAVE_XAW3D=yes
12425 LUCID_LIBW=-lXaw3d
12427 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
12429 else
12430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12431 $as_echo "no" >&6; }
12432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
12433 $as_echo_n "checking for libXaw... " >&6; }
12434 if test "${emacs_cv_xaw+set}" = set; then :
12435 $as_echo_n "(cached) " >&6
12436 else
12437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12438 /* end confdefs.h. */
12440 #include <X11/Intrinsic.h>
12441 #include <X11/Xaw/Simple.h>
12443 main ()
12447 return 0;
12449 _ACEOF
12450 if ac_fn_c_try_link "$LINENO"; then :
12451 emacs_cv_xaw=yes
12452 else
12453 emacs_cv_xaw=no
12455 rm -f core conftest.err conftest.$ac_objext \
12456 conftest$ac_exeext conftest.$ac_ext
12459 if test $emacs_cv_xaw = yes; then
12460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
12461 $as_echo "yes; using Lucid toolkit" >&6; }
12462 USE_X_TOOLKIT=LUCID
12463 LUCID_LIBW=-lXaw
12464 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
12465 as_fn_error "Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
12466 else
12467 as_fn_error "No X toolkit could be found.
12468 If you are sure you want Emacs compiled without an X toolkit, pass
12469 --with-x-toolkit=no
12470 to configure. Otherwise, install the development libraries for the toolkit
12471 that you want to use (e.g. Gtk+) and re-run configure." "$LINENO" 5
12476 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
12478 LIBXTR6=
12479 if test "${USE_X_TOOLKIT}" != "none"; then
12480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
12481 $as_echo_n "checking X11 toolkit version... " >&6; }
12482 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then :
12483 $as_echo_n "(cached) " >&6
12484 else
12485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12486 /* end confdefs.h. */
12487 #include <X11/Intrinsic.h>
12489 main ()
12491 #if XtSpecificationRelease < 6
12492 fail;
12493 #endif
12496 return 0;
12498 _ACEOF
12499 if ac_fn_c_try_link "$LINENO"; then :
12500 emacs_cv_x11_toolkit_version_6=yes
12501 else
12502 emacs_cv_x11_toolkit_version_6=no
12504 rm -f core conftest.err conftest.$ac_objext \
12505 conftest$ac_exeext conftest.$ac_ext
12508 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
12509 if test $emacs_cv_x11_toolkit_version_6 = yes; then
12510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
12511 $as_echo "6 or newer" >&6; }
12513 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
12515 LIBXTR6="-lSM -lICE"
12516 case "$opsys" in
12517 ## Use libw.a along with X11R6 Xt.
12518 unixware) LIBXTR6="$LIBXTR6 -lw" ;;
12519 esac
12520 else
12521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
12522 $as_echo "before 6" >&6; }
12525 OLDLIBS="$LIBS"
12526 if test x$HAVE_X11XTR6 = xyes; then
12527 LIBS="-lXt -lSM -lICE $LIBS"
12528 else
12529 LIBS="-lXt $LIBS"
12531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
12532 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
12533 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then :
12534 $as_echo_n "(cached) " >&6
12535 else
12536 ac_check_lib_save_LIBS=$LIBS
12537 LIBS="-lXmu $LIBS"
12538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12539 /* end confdefs.h. */
12541 /* Override any GCC internal prototype to avoid an error.
12542 Use char because int might match the return type of a GCC
12543 builtin and then its argument prototype would still apply. */
12544 #ifdef __cplusplus
12545 extern "C"
12546 #endif
12547 char XmuConvertStandardSelection ();
12549 main ()
12551 return XmuConvertStandardSelection ();
12553 return 0;
12555 _ACEOF
12556 if ac_fn_c_try_link "$LINENO"; then :
12557 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
12558 else
12559 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
12561 rm -f core conftest.err conftest.$ac_objext \
12562 conftest$ac_exeext conftest.$ac_ext
12563 LIBS=$ac_check_lib_save_LIBS
12565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
12566 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
12567 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x""yes; then :
12568 cat >>confdefs.h <<_ACEOF
12569 #define HAVE_LIBXMU 1
12570 _ACEOF
12572 LIBS="-lXmu $LIBS"
12576 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
12580 LIBXMU=-lXmu
12581 case $opsys in
12582 ## These systems don't supply Xmu.
12583 hpux* | aix4-2 )
12584 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU=
12586 esac
12589 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12590 if test "${HAVE_X11}" = "yes"; then
12591 if test "${USE_X_TOOLKIT}" != "none"; then
12592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
12593 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
12594 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
12595 $as_echo_n "(cached) " >&6
12596 else
12597 ac_check_lib_save_LIBS=$LIBS
12598 LIBS="-lXext $LIBS"
12599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12600 /* end confdefs.h. */
12602 /* Override any GCC internal prototype to avoid an error.
12603 Use char because int might match the return type of a GCC
12604 builtin and then its argument prototype would still apply. */
12605 #ifdef __cplusplus
12606 extern "C"
12607 #endif
12608 char XShapeQueryExtension ();
12610 main ()
12612 return XShapeQueryExtension ();
12614 return 0;
12616 _ACEOF
12617 if ac_fn_c_try_link "$LINENO"; then :
12618 ac_cv_lib_Xext_XShapeQueryExtension=yes
12619 else
12620 ac_cv_lib_Xext_XShapeQueryExtension=no
12622 rm -f core conftest.err conftest.$ac_objext \
12623 conftest$ac_exeext conftest.$ac_ext
12624 LIBS=$ac_check_lib_save_LIBS
12626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12627 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12628 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then :
12629 cat >>confdefs.h <<_ACEOF
12630 #define HAVE_LIBXEXT 1
12631 _ACEOF
12633 LIBS="-lXext $LIBS"
12640 LIBXP=
12641 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif version 2.1" >&5
12643 $as_echo_n "checking for Motif version 2.1... " >&6; }
12644 if test "${emacs_cv_motif_version_2_1+set}" = set; then :
12645 $as_echo_n "(cached) " >&6
12646 else
12647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12648 /* end confdefs.h. */
12649 #include <Xm/Xm.h>
12651 main ()
12653 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12654 int x = 5;
12655 #else
12656 Motif version prior to 2.1.
12657 #endif
12659 return 0;
12661 _ACEOF
12662 if ac_fn_c_try_compile "$LINENO"; then :
12663 emacs_cv_motif_version_2_1=yes
12664 else
12665 emacs_cv_motif_version_2_1=no
12667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
12670 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
12671 if test $emacs_cv_motif_version_2_1 = yes; then
12672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
12673 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
12674 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then :
12675 $as_echo_n "(cached) " >&6
12676 else
12677 ac_check_lib_save_LIBS=$LIBS
12678 LIBS="-lXp $LIBS"
12679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12680 /* end confdefs.h. */
12682 /* Override any GCC internal prototype to avoid an error.
12683 Use char because int might match the return type of a GCC
12684 builtin and then its argument prototype would still apply. */
12685 #ifdef __cplusplus
12686 extern "C"
12687 #endif
12688 char XpCreateContext ();
12690 main ()
12692 return XpCreateContext ();
12694 return 0;
12696 _ACEOF
12697 if ac_fn_c_try_link "$LINENO"; then :
12698 ac_cv_lib_Xp_XpCreateContext=yes
12699 else
12700 ac_cv_lib_Xp_XpCreateContext=no
12702 rm -f core conftest.err conftest.$ac_objext \
12703 conftest$ac_exeext conftest.$ac_ext
12704 LIBS=$ac_check_lib_save_LIBS
12706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12707 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
12708 if test "x$ac_cv_lib_Xp_XpCreateContext" = x""yes; then :
12709 LIBXP=-lXp
12712 else
12713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
12714 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
12715 if test "${emacs_cv_lesstif+set}" = set; then :
12716 $as_echo_n "(cached) " >&6
12717 else
12718 # We put this in CFLAGS temporarily to precede other -I options
12719 # that might be in CFLAGS temporarily.
12720 # We put this in CPPFLAGS where it precedes the other -I options.
12721 OLD_CPPFLAGS=$CPPFLAGS
12722 OLD_CFLAGS=$CFLAGS
12723 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12724 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12726 /* end confdefs.h. */
12727 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12729 main ()
12731 int x = 5;
12733 return 0;
12735 _ACEOF
12736 if ac_fn_c_try_compile "$LINENO"; then :
12737 emacs_cv_lesstif=yes
12738 else
12739 emacs_cv_lesstif=no
12741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
12744 $as_echo "$emacs_cv_lesstif" >&6; }
12745 if test $emacs_cv_lesstif = yes; then
12746 # Make sure this -I option remains in CPPFLAGS after it is set
12747 # back to REAL_CPPFLAGS.
12748 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12749 # have those other -I options anyway. Ultimately, having this
12750 # directory ultimately in CPPFLAGS will be enough.
12751 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12752 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12753 else
12754 CFLAGS=$OLD_CFLAGS
12755 CPPFLAGS=$OLD_CPPFLAGS
12758 ac_fn_c_check_header_mongrel "$LINENO" "Xm/BulletinB.h" "ac_cv_header_Xm_BulletinB_h" "$ac_includes_default"
12759 if test "x$ac_cv_header_Xm_BulletinB_h" = x""yes; then :
12761 else
12762 as_fn_error "Motif toolkit requested but requirements not found." "$LINENO" 5
12769 USE_TOOLKIT_SCROLL_BARS=no
12770 if test "${with_toolkit_scroll_bars}" != "no"; then
12771 if test "${USE_X_TOOLKIT}" != "none"; then
12772 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12773 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12775 HAVE_XAW3D=no
12776 USE_TOOLKIT_SCROLL_BARS=yes
12777 elif test "${HAVE_XAW3D}" = "yes" || test "${USE_X_TOOLKIT}" = "LUCID"; then
12778 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12780 USE_TOOLKIT_SCROLL_BARS=yes
12782 elif test "${HAVE_GTK}" = "yes"; then
12783 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12785 USE_TOOLKIT_SCROLL_BARS=yes
12786 elif test "${HAVE_NS}" = "yes"; then
12787 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12789 USE_TOOLKIT_SCROLL_BARS=yes
12793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12794 /* end confdefs.h. */
12796 #include <X11/Xlib.h>
12797 #include <X11/Xresource.h>
12799 main ()
12801 XIMProc callback;
12803 return 0;
12805 _ACEOF
12806 if ac_fn_c_try_compile "$LINENO"; then :
12807 HAVE_XIM=yes
12809 $as_echo "#define HAVE_XIM 1" >>confdefs.h
12811 else
12812 HAVE_XIM=no
12814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12817 if test "${with_xim}" != "no"; then
12819 $as_echo "#define USE_XIM 1" >>confdefs.h
12824 if test "${HAVE_XIM}" != "no"; then
12825 late_CFLAGS=$CFLAGS
12826 if test "$GCC" = yes; then
12827 CFLAGS="$CFLAGS --pedantic-errors"
12829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12830 /* end confdefs.h. */
12832 #include <X11/Xlib.h>
12833 #include <X11/Xresource.h>
12835 main ()
12837 Display *display;
12838 XrmDatabase db;
12839 char *res_name;
12840 char *res_class;
12841 XIMProc callback;
12842 XPointer *client_data;
12843 #ifndef __GNUC__
12844 /* If we're not using GCC, it's probably not XFree86, and this is
12845 probably right, but we can't use something like --pedantic-errors. */
12846 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12847 char*, XIMProc, XPointer*);
12848 #endif
12849 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12850 client_data);
12852 return 0;
12854 _ACEOF
12855 if ac_fn_c_try_compile "$LINENO"; then :
12856 emacs_cv_arg6_star=yes
12858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12859 if test "$emacs_cv_arg6_star" = yes; then
12860 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
12862 else
12863 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
12866 CFLAGS=$late_CFLAGS
12869 ### Start of font-backend (under any platform) section.
12870 # (nothing here yet -- this is a placeholder)
12871 ### End of font-backend (under any platform) section.
12873 ### Start of font-backend (under X11) section.
12874 if test "${HAVE_X11}" = "yes"; then
12876 succeeded=no
12878 # Extract the first word of "pkg-config", so it can be a program name with args.
12879 set dummy pkg-config; ac_word=$2
12880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12881 $as_echo_n "checking for $ac_word... " >&6; }
12882 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12883 $as_echo_n "(cached) " >&6
12884 else
12885 case $PKG_CONFIG in
12886 [\\/]* | ?:[\\/]*)
12887 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12891 for as_dir in $PATH
12893 IFS=$as_save_IFS
12894 test -z "$as_dir" && as_dir=.
12895 for ac_exec_ext in '' $ac_executable_extensions; do
12896 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12897 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12899 break 2
12901 done
12902 done
12903 IFS=$as_save_IFS
12905 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12907 esac
12909 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12910 if test -n "$PKG_CONFIG"; then
12911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12912 $as_echo "$PKG_CONFIG" >&6; }
12913 else
12914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12915 $as_echo "no" >&6; }
12920 if test "$PKG_CONFIG" = "no" ; then
12921 HAVE_FC=no
12922 else
12923 PKG_CONFIG_MIN_VERSION=0.9.0
12924 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
12926 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
12928 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5 &&
12929 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0" 2>&5` &&
12930 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0" 2>&5`; then
12931 edit_cflags="
12932 s,///*,/,g
12933 s/^/ /
12934 s/ -I/ $isystem/g
12935 s/^ //
12937 FONTCONFIG_CFLAGS=`$as_echo "$FONTCONFIG_CFLAGS" | sed -e "$edit_cflags"`
12938 FONTCONFIG_LIBS=`$as_echo "$FONTCONFIG_LIBS" | sed -e 's,///*,/,g'`
12939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$FONTCONFIG_CFLAGS' LIBS='$FONTCONFIG_LIBS'" >&5
12940 $as_echo "yes CFLAGS='$FONTCONFIG_CFLAGS' LIBS='$FONTCONFIG_LIBS'" >&6; }
12941 succeeded=yes
12942 else
12943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12944 $as_echo "no" >&6; }
12945 FONTCONFIG_CFLAGS=""
12946 FONTCONFIG_LIBS=""
12947 ## If we have a custom action on failure, don't print errors, but
12948 ## do set a variable so people can do so.
12949 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
12955 else
12956 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12957 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12961 if test $succeeded = yes; then
12962 HAVE_FC=yes
12963 else
12964 HAVE_FC=no
12968 ## Use -lXft if available, unless `--with-xft=no'.
12969 HAVE_XFT=maybe
12970 if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then
12971 with_xft="no";
12973 if test "x${with_xft}" != "xno"; then
12976 succeeded=no
12978 # Extract the first word of "pkg-config", so it can be a program name with args.
12979 set dummy pkg-config; ac_word=$2
12980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12981 $as_echo_n "checking for $ac_word... " >&6; }
12982 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12983 $as_echo_n "(cached) " >&6
12984 else
12985 case $PKG_CONFIG in
12986 [\\/]* | ?:[\\/]*)
12987 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12991 for as_dir in $PATH
12993 IFS=$as_save_IFS
12994 test -z "$as_dir" && as_dir=.
12995 for ac_exec_ext in '' $ac_executable_extensions; do
12996 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12997 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12999 break 2
13001 done
13002 done
13003 IFS=$as_save_IFS
13005 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13007 esac
13009 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13010 if test -n "$PKG_CONFIG"; then
13011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13012 $as_echo "$PKG_CONFIG" >&6; }
13013 else
13014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13015 $as_echo "no" >&6; }
13020 if test "$PKG_CONFIG" = "no" ; then
13021 HAVE_XFT=no
13022 else
13023 PKG_CONFIG_MIN_VERSION=0.9.0
13024 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
13026 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
13028 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5 &&
13029 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0" 2>&5` &&
13030 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0" 2>&5`; then
13031 edit_cflags="
13032 s,///*,/,g
13033 s/^/ /
13034 s/ -I/ $isystem/g
13035 s/^ //
13037 XFT_CFLAGS=`$as_echo "$XFT_CFLAGS" | sed -e "$edit_cflags"`
13038 XFT_LIBS=`$as_echo "$XFT_LIBS" | sed -e 's,///*,/,g'`
13039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$XFT_CFLAGS' LIBS='$XFT_LIBS'" >&5
13040 $as_echo "yes CFLAGS='$XFT_CFLAGS' LIBS='$XFT_LIBS'" >&6; }
13041 succeeded=yes
13042 else
13043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13044 $as_echo "no" >&6; }
13045 XFT_CFLAGS=""
13046 XFT_LIBS=""
13047 ## If we have a custom action on failure, don't print errors, but
13048 ## do set a variable so people can do so.
13049 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
13055 else
13056 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13057 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13061 if test $succeeded = yes; then
13063 else
13064 HAVE_XFT=no
13067 ## Because xftfont.c uses XRenderQueryExtension, we also
13068 ## need to link to -lXrender.
13069 HAVE_XRENDER=no
13070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
13071 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
13072 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
13073 $as_echo_n "(cached) " >&6
13074 else
13075 ac_check_lib_save_LIBS=$LIBS
13076 LIBS="-lXrender $LIBS"
13077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13078 /* end confdefs.h. */
13080 /* Override any GCC internal prototype to avoid an error.
13081 Use char because int might match the return type of a GCC
13082 builtin and then its argument prototype would still apply. */
13083 #ifdef __cplusplus
13084 extern "C"
13085 #endif
13086 char XRenderQueryExtension ();
13088 main ()
13090 return XRenderQueryExtension ();
13092 return 0;
13094 _ACEOF
13095 if ac_fn_c_try_link "$LINENO"; then :
13096 ac_cv_lib_Xrender_XRenderQueryExtension=yes
13097 else
13098 ac_cv_lib_Xrender_XRenderQueryExtension=no
13100 rm -f core conftest.err conftest.$ac_objext \
13101 conftest$ac_exeext conftest.$ac_ext
13102 LIBS=$ac_check_lib_save_LIBS
13104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
13105 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
13106 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x""yes; then :
13107 HAVE_XRENDER=yes
13110 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
13111 OLD_CPPFLAGS="$CPPFLAGS"
13112 OLD_CFLAGS="$CFLAGS"
13113 OLD_LIBS="$LIBS"
13114 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
13115 CFLAGS="$CFLAGS $XFT_CFLAGS"
13116 XFT_LIBS="-lXrender $XFT_LIBS"
13117 LIBS="$XFT_LIBS $LIBS"
13118 ac_fn_c_check_header_mongrel "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
13119 if test "x$ac_cv_header_X11_Xft_Xft_h" = x""yes; then :
13120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
13121 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
13122 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then :
13123 $as_echo_n "(cached) " >&6
13124 else
13125 ac_check_lib_save_LIBS=$LIBS
13126 LIBS="-lXft $XFT_LIBS $LIBS"
13127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13128 /* end confdefs.h. */
13130 /* Override any GCC internal prototype to avoid an error.
13131 Use char because int might match the return type of a GCC
13132 builtin and then its argument prototype would still apply. */
13133 #ifdef __cplusplus
13134 extern "C"
13135 #endif
13136 char XftFontOpen ();
13138 main ()
13140 return XftFontOpen ();
13142 return 0;
13144 _ACEOF
13145 if ac_fn_c_try_link "$LINENO"; then :
13146 ac_cv_lib_Xft_XftFontOpen=yes
13147 else
13148 ac_cv_lib_Xft_XftFontOpen=no
13150 rm -f core conftest.err conftest.$ac_objext \
13151 conftest$ac_exeext conftest.$ac_ext
13152 LIBS=$ac_check_lib_save_LIBS
13154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
13155 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
13156 if test "x$ac_cv_lib_Xft_XftFontOpen" = x""yes; then :
13157 HAVE_XFT=yes
13164 if test "${HAVE_XFT}" = "yes"; then
13166 $as_echo "#define HAVE_XFT 1" >>confdefs.h
13169 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
13170 else
13171 CPPFLAGS="$OLD_CPPFLAGS"
13172 CFLAGS="$OLD_CFLAGS"
13173 LIBS="$OLD_LIBS"
13174 fi # "${HAVE_XFT}" = "yes"
13175 fi # "$HAVE_XFT" != no
13176 fi # "x${with_xft}" != "xno"
13178 ## We used to allow building with FreeType and without Xft.
13179 ## However, the ftx font backend driver is not in good shape.
13180 if test "$HAVE_XFT" != "yes"; then
13181 HAVE_XFT=no
13182 HAVE_FREETYPE=no
13183 else
13185 succeeded=no
13187 # Extract the first word of "pkg-config", so it can be a program name with args.
13188 set dummy pkg-config; ac_word=$2
13189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13190 $as_echo_n "checking for $ac_word... " >&6; }
13191 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
13192 $as_echo_n "(cached) " >&6
13193 else
13194 case $PKG_CONFIG in
13195 [\\/]* | ?:[\\/]*)
13196 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13200 for as_dir in $PATH
13202 IFS=$as_save_IFS
13203 test -z "$as_dir" && as_dir=.
13204 for ac_exec_ext in '' $ac_executable_extensions; do
13205 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13206 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13208 break 2
13210 done
13211 done
13212 IFS=$as_save_IFS
13214 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13216 esac
13218 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13219 if test -n "$PKG_CONFIG"; then
13220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13221 $as_echo "$PKG_CONFIG" >&6; }
13222 else
13223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13224 $as_echo "no" >&6; }
13229 if test "$PKG_CONFIG" = "no" ; then
13230 HAVE_FREETYPE=no
13231 else
13232 PKG_CONFIG_MIN_VERSION=0.9.0
13233 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype2" >&5
13235 $as_echo_n "checking for freetype2... " >&6; }
13237 if $PKG_CONFIG --exists "freetype2" 2>&5 &&
13238 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>&5` &&
13239 FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2" 2>&5`; then
13240 edit_cflags="
13241 s,///*,/,g
13242 s/^/ /
13243 s/ -I/ $isystem/g
13244 s/^ //
13246 FREETYPE_CFLAGS=`$as_echo "$FREETYPE_CFLAGS" | sed -e "$edit_cflags"`
13247 FREETYPE_LIBS=`$as_echo "$FREETYPE_LIBS" | sed -e 's,///*,/,g'`
13248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$FREETYPE_CFLAGS' LIBS='$FREETYPE_LIBS'" >&5
13249 $as_echo "yes CFLAGS='$FREETYPE_CFLAGS' LIBS='$FREETYPE_LIBS'" >&6; }
13250 succeeded=yes
13251 else
13252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13253 $as_echo "no" >&6; }
13254 FREETYPE_CFLAGS=""
13255 FREETYPE_LIBS=""
13256 ## If we have a custom action on failure, don't print errors, but
13257 ## do set a variable so people can do so.
13258 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
13264 else
13265 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13266 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13270 if test $succeeded = yes; then
13271 HAVE_FREETYPE=yes
13272 else
13273 HAVE_FREETYPE=no
13277 test "$HAVE_FREETYPE" = "no" && as_fn_error "libxft requires libfreetype" "$LINENO" 5
13280 HAVE_LIBOTF=no
13281 if test "${HAVE_FREETYPE}" = "yes"; then
13283 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
13285 if test "${with_libotf}" != "no"; then
13287 succeeded=no
13289 # Extract the first word of "pkg-config", so it can be a program name with args.
13290 set dummy pkg-config; ac_word=$2
13291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13292 $as_echo_n "checking for $ac_word... " >&6; }
13293 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
13294 $as_echo_n "(cached) " >&6
13295 else
13296 case $PKG_CONFIG in
13297 [\\/]* | ?:[\\/]*)
13298 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13302 for as_dir in $PATH
13304 IFS=$as_save_IFS
13305 test -z "$as_dir" && as_dir=.
13306 for ac_exec_ext in '' $ac_executable_extensions; do
13307 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13308 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13310 break 2
13312 done
13313 done
13314 IFS=$as_save_IFS
13316 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13318 esac
13320 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13321 if test -n "$PKG_CONFIG"; then
13322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13323 $as_echo "$PKG_CONFIG" >&6; }
13324 else
13325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13326 $as_echo "no" >&6; }
13331 if test "$PKG_CONFIG" = "no" ; then
13332 HAVE_LIBOTF=no
13333 else
13334 PKG_CONFIG_MIN_VERSION=0.9.0
13335 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
13337 $as_echo_n "checking for libotf... " >&6; }
13339 if $PKG_CONFIG --exists "libotf" 2>&5 &&
13340 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf" 2>&5` &&
13341 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf" 2>&5`; then
13342 edit_cflags="
13343 s,///*,/,g
13344 s/^/ /
13345 s/ -I/ $isystem/g
13346 s/^ //
13348 LIBOTF_CFLAGS=`$as_echo "$LIBOTF_CFLAGS" | sed -e "$edit_cflags"`
13349 LIBOTF_LIBS=`$as_echo "$LIBOTF_LIBS" | sed -e 's,///*,/,g'`
13350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBOTF_CFLAGS' LIBS='$LIBOTF_LIBS'" >&5
13351 $as_echo "yes CFLAGS='$LIBOTF_CFLAGS' LIBS='$LIBOTF_LIBS'" >&6; }
13352 succeeded=yes
13353 else
13354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13355 $as_echo "no" >&6; }
13356 LIBOTF_CFLAGS=""
13357 LIBOTF_LIBS=""
13358 ## If we have a custom action on failure, don't print errors, but
13359 ## do set a variable so people can do so.
13360 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
13366 else
13367 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13368 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13372 if test $succeeded = yes; then
13373 HAVE_LIBOTF=yes
13374 else
13375 HAVE_LIBOTF=no
13378 if test "$HAVE_LIBOTF" = "yes"; then
13380 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
13382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
13383 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
13384 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then :
13385 $as_echo_n "(cached) " >&6
13386 else
13387 ac_check_lib_save_LIBS=$LIBS
13388 LIBS="-lotf $LIBS"
13389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13390 /* end confdefs.h. */
13392 /* Override any GCC internal prototype to avoid an error.
13393 Use char because int might match the return type of a GCC
13394 builtin and then its argument prototype would still apply. */
13395 #ifdef __cplusplus
13396 extern "C"
13397 #endif
13398 char OTF_get_variation_glyphs ();
13400 main ()
13402 return OTF_get_variation_glyphs ();
13404 return 0;
13406 _ACEOF
13407 if ac_fn_c_try_link "$LINENO"; then :
13408 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
13409 else
13410 ac_cv_lib_otf_OTF_get_variation_glyphs=no
13412 rm -f core conftest.err conftest.$ac_objext \
13413 conftest$ac_exeext conftest.$ac_ext
13414 LIBS=$ac_check_lib_save_LIBS
13416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
13417 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
13418 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x""yes; then :
13419 HAVE_OTF_GET_VARIATION_GLYPHS=yes
13420 else
13421 HAVE_OTF_GET_VARIATION_GLYPHS=no
13424 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
13426 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
13433 HAVE_M17N_FLT=no
13434 if test "${HAVE_LIBOTF}" = yes; then
13435 if test "${with_m17n_flt}" != "no"; then
13437 succeeded=no
13439 # Extract the first word of "pkg-config", so it can be a program name with args.
13440 set dummy pkg-config; ac_word=$2
13441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13442 $as_echo_n "checking for $ac_word... " >&6; }
13443 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
13444 $as_echo_n "(cached) " >&6
13445 else
13446 case $PKG_CONFIG in
13447 [\\/]* | ?:[\\/]*)
13448 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13452 for as_dir in $PATH
13454 IFS=$as_save_IFS
13455 test -z "$as_dir" && as_dir=.
13456 for ac_exec_ext in '' $ac_executable_extensions; do
13457 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13458 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13460 break 2
13462 done
13463 done
13464 IFS=$as_save_IFS
13466 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13468 esac
13470 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13471 if test -n "$PKG_CONFIG"; then
13472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13473 $as_echo "$PKG_CONFIG" >&6; }
13474 else
13475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13476 $as_echo "no" >&6; }
13481 if test "$PKG_CONFIG" = "no" ; then
13482 HAVE_M17N_FLT=no
13483 else
13484 PKG_CONFIG_MIN_VERSION=0.9.0
13485 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
13487 $as_echo_n "checking for m17n-flt... " >&6; }
13489 if $PKG_CONFIG --exists "m17n-flt" 2>&5 &&
13490 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt" 2>&5` &&
13491 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt" 2>&5`; then
13492 edit_cflags="
13493 s,///*,/,g
13494 s/^/ /
13495 s/ -I/ $isystem/g
13496 s/^ //
13498 M17N_FLT_CFLAGS=`$as_echo "$M17N_FLT_CFLAGS" | sed -e "$edit_cflags"`
13499 M17N_FLT_LIBS=`$as_echo "$M17N_FLT_LIBS" | sed -e 's,///*,/,g'`
13500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$M17N_FLT_CFLAGS' LIBS='$M17N_FLT_LIBS'" >&5
13501 $as_echo "yes CFLAGS='$M17N_FLT_CFLAGS' LIBS='$M17N_FLT_LIBS'" >&6; }
13502 succeeded=yes
13503 else
13504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13505 $as_echo "no" >&6; }
13506 M17N_FLT_CFLAGS=""
13507 M17N_FLT_LIBS=""
13508 ## If we have a custom action on failure, don't print errors, but
13509 ## do set a variable so people can do so.
13510 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
13516 else
13517 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13518 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13522 if test $succeeded = yes; then
13523 HAVE_M17N_FLT=yes
13524 else
13525 HAVE_M17N_FLT=no
13528 if test "$HAVE_M17N_FLT" = "yes"; then
13530 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
13535 else
13536 HAVE_XFT=no
13537 HAVE_FREETYPE=no
13538 HAVE_LIBOTF=no
13539 HAVE_M17N_FLT=no
13542 ### End of font-backend (under X11) section.
13553 ### Use -lXpm if available, unless `--with-xpm=no'.
13554 HAVE_XPM=no
13555 LIBXPM=
13556 if test "${HAVE_X11}" = "yes"; then
13557 if test "${with_xpm}" != "no"; then
13558 ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
13559 if test "x$ac_cv_header_X11_xpm_h" = x""yes; then :
13560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
13561 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
13562 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then :
13563 $as_echo_n "(cached) " >&6
13564 else
13565 ac_check_lib_save_LIBS=$LIBS
13566 LIBS="-lXpm -lX11 $LIBS"
13567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13568 /* end confdefs.h. */
13570 /* Override any GCC internal prototype to avoid an error.
13571 Use char because int might match the return type of a GCC
13572 builtin and then its argument prototype would still apply. */
13573 #ifdef __cplusplus
13574 extern "C"
13575 #endif
13576 char XpmReadFileToPixmap ();
13578 main ()
13580 return XpmReadFileToPixmap ();
13582 return 0;
13584 _ACEOF
13585 if ac_fn_c_try_link "$LINENO"; then :
13586 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
13587 else
13588 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
13590 rm -f core conftest.err conftest.$ac_objext \
13591 conftest$ac_exeext conftest.$ac_ext
13592 LIBS=$ac_check_lib_save_LIBS
13594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
13595 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
13596 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x""yes; then :
13597 HAVE_XPM=yes
13603 if test "${HAVE_XPM}" = "yes"; then
13604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
13605 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
13606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13607 /* end confdefs.h. */
13608 #include "X11/xpm.h"
13609 #ifndef XpmReturnAllocPixels
13610 no_return_alloc_pixels
13611 #endif
13613 _ACEOF
13614 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13615 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then :
13616 HAVE_XPM=no
13617 else
13618 HAVE_XPM=yes
13620 rm -f conftest*
13623 if test "${HAVE_XPM}" = "yes"; then
13624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13625 $as_echo "yes" >&6; }
13626 else
13627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13628 $as_echo "no" >&6; }
13633 if test "${HAVE_XPM}" = "yes"; then
13635 $as_echo "#define HAVE_XPM 1" >>confdefs.h
13637 LIBXPM=-lXpm
13642 ### Use -ljpeg if available, unless `--with-jpeg=no'.
13643 HAVE_JPEG=no
13644 LIBJPEG=
13645 if test "${HAVE_X11}" = "yes"; then
13646 if test "${with_jpeg}" != "no"; then
13647 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
13648 if test "x$ac_cv_header_jerror_h" = x""yes; then :
13649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
13650 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
13651 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then :
13652 $as_echo_n "(cached) " >&6
13653 else
13654 ac_check_lib_save_LIBS=$LIBS
13655 LIBS="-ljpeg $LIBS"
13656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13657 /* end confdefs.h. */
13659 /* Override any GCC internal prototype to avoid an error.
13660 Use char because int might match the return type of a GCC
13661 builtin and then its argument prototype would still apply. */
13662 #ifdef __cplusplus
13663 extern "C"
13664 #endif
13665 char jpeg_destroy_compress ();
13667 main ()
13669 return jpeg_destroy_compress ();
13671 return 0;
13673 _ACEOF
13674 if ac_fn_c_try_link "$LINENO"; then :
13675 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
13676 else
13677 ac_cv_lib_jpeg_jpeg_destroy_compress=no
13679 rm -f core conftest.err conftest.$ac_objext \
13680 conftest$ac_exeext conftest.$ac_ext
13681 LIBS=$ac_check_lib_save_LIBS
13683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13684 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13685 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x""yes; then :
13686 HAVE_JPEG=yes
13694 if test "${HAVE_JPEG}" = "yes"; then
13695 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
13697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13698 /* end confdefs.h. */
13699 #include <jpeglib.h>
13700 version=JPEG_LIB_VERSION
13702 _ACEOF
13703 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13704 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then :
13705 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
13707 else
13708 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
13709 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13710 HAVE_JPEG=no
13712 rm -f conftest*
13715 if test "${HAVE_JPEG}" = "yes"; then
13716 LIBJPEG=-ljpeg
13721 ### Use -lpng if available, unless `--with-png=no'.
13722 HAVE_PNG=no
13723 LIBPNG=
13724 if test "${HAVE_X11}" = "yes"; then
13725 if test "${with_png}" != "no"; then
13726 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13727 # in /usr/include/libpng.
13728 for ac_header in png.h libpng/png.h
13729 do :
13730 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13731 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13732 eval as_val=\$$as_ac_Header
13733 if test "x$as_val" = x""yes; then :
13734 cat >>confdefs.h <<_ACEOF
13735 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13736 _ACEOF
13740 done
13742 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
13743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
13744 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
13745 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then :
13746 $as_echo_n "(cached) " >&6
13747 else
13748 ac_check_lib_save_LIBS=$LIBS
13749 LIBS="-lpng -lz -lm $LIBS"
13750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13751 /* end confdefs.h. */
13753 /* Override any GCC internal prototype to avoid an error.
13754 Use char because int might match the return type of a GCC
13755 builtin and then its argument prototype would still apply. */
13756 #ifdef __cplusplus
13757 extern "C"
13758 #endif
13759 char png_get_channels ();
13761 main ()
13763 return png_get_channels ();
13765 return 0;
13767 _ACEOF
13768 if ac_fn_c_try_link "$LINENO"; then :
13769 ac_cv_lib_png_png_get_channels=yes
13770 else
13771 ac_cv_lib_png_png_get_channels=no
13773 rm -f core conftest.err conftest.$ac_objext \
13774 conftest$ac_exeext conftest.$ac_ext
13775 LIBS=$ac_check_lib_save_LIBS
13777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
13778 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
13779 if test "x$ac_cv_lib_png_png_get_channels" = x""yes; then :
13780 HAVE_PNG=yes
13786 if test "${HAVE_PNG}" = "yes"; then
13788 $as_echo "#define HAVE_PNG 1" >>confdefs.h
13790 LIBPNG="-lpng -lz -lm"
13795 ### Use -ltiff if available, unless `--with-tiff=no'.
13796 HAVE_TIFF=no
13797 LIBTIFF=
13798 if test "${HAVE_X11}" = "yes"; then
13799 if test "${with_tiff}" != "no"; then
13800 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
13801 if test "x$ac_cv_header_tiffio_h" = x""yes; then :
13802 tifflibs="-lz -lm"
13803 # At least one tiff package requires the jpeg library.
13804 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
13805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
13806 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
13807 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then :
13808 $as_echo_n "(cached) " >&6
13809 else
13810 ac_check_lib_save_LIBS=$LIBS
13811 LIBS="-ltiff $tifflibs $LIBS"
13812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13813 /* end confdefs.h. */
13815 /* Override any GCC internal prototype to avoid an error.
13816 Use char because int might match the return type of a GCC
13817 builtin and then its argument prototype would still apply. */
13818 #ifdef __cplusplus
13819 extern "C"
13820 #endif
13821 char TIFFGetVersion ();
13823 main ()
13825 return TIFFGetVersion ();
13827 return 0;
13829 _ACEOF
13830 if ac_fn_c_try_link "$LINENO"; then :
13831 ac_cv_lib_tiff_TIFFGetVersion=yes
13832 else
13833 ac_cv_lib_tiff_TIFFGetVersion=no
13835 rm -f core conftest.err conftest.$ac_objext \
13836 conftest$ac_exeext conftest.$ac_ext
13837 LIBS=$ac_check_lib_save_LIBS
13839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
13840 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
13841 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x""yes; then :
13842 HAVE_TIFF=yes
13850 if test "${HAVE_TIFF}" = "yes"; then
13852 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
13854 LIBTIFF=-ltiff
13859 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
13860 HAVE_GIF=no
13861 LIBGIF=
13862 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
13863 ac_fn_c_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
13864 if test "x$ac_cv_header_gif_lib_h" = x""yes; then :
13865 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
13866 # Earlier versions can crash Emacs.
13867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
13868 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
13869 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then :
13870 $as_echo_n "(cached) " >&6
13871 else
13872 ac_check_lib_save_LIBS=$LIBS
13873 LIBS="-lgif $LIBS"
13874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13875 /* end confdefs.h. */
13877 /* Override any GCC internal prototype to avoid an error.
13878 Use char because int might match the return type of a GCC
13879 builtin and then its argument prototype would still apply. */
13880 #ifdef __cplusplus
13881 extern "C"
13882 #endif
13883 char EGifPutExtensionLast ();
13885 main ()
13887 return EGifPutExtensionLast ();
13889 return 0;
13891 _ACEOF
13892 if ac_fn_c_try_link "$LINENO"; then :
13893 ac_cv_lib_gif_EGifPutExtensionLast=yes
13894 else
13895 ac_cv_lib_gif_EGifPutExtensionLast=no
13897 rm -f core conftest.err conftest.$ac_objext \
13898 conftest$ac_exeext conftest.$ac_ext
13899 LIBS=$ac_check_lib_save_LIBS
13901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
13902 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
13903 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x""yes; then :
13904 HAVE_GIF=yes
13905 else
13906 HAVE_GIF=maybe
13913 if test "$HAVE_GIF" = yes; then
13914 LIBGIF=-lgif
13915 elif test "$HAVE_GIF" = maybe; then
13916 # If gif_lib.h but no libgif, try libungif.
13917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
13918 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
13919 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then :
13920 $as_echo_n "(cached) " >&6
13921 else
13922 ac_check_lib_save_LIBS=$LIBS
13923 LIBS="-lungif $LIBS"
13924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13925 /* end confdefs.h. */
13927 /* Override any GCC internal prototype to avoid an error.
13928 Use char because int might match the return type of a GCC
13929 builtin and then its argument prototype would still apply. */
13930 #ifdef __cplusplus
13931 extern "C"
13932 #endif
13933 char EGifPutExtensionLast ();
13935 main ()
13937 return EGifPutExtensionLast ();
13939 return 0;
13941 _ACEOF
13942 if ac_fn_c_try_link "$LINENO"; then :
13943 ac_cv_lib_ungif_EGifPutExtensionLast=yes
13944 else
13945 ac_cv_lib_ungif_EGifPutExtensionLast=no
13947 rm -f core conftest.err conftest.$ac_objext \
13948 conftest$ac_exeext conftest.$ac_ext
13949 LIBS=$ac_check_lib_save_LIBS
13951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
13952 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
13953 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x""yes; then :
13954 HAVE_GIF=yes
13955 else
13956 HAVE_GIF=no
13959 test "$HAVE_GIF" = yes && LIBGIF=-lungif
13962 if test "${HAVE_GIF}" = "yes"; then
13964 $as_echo "#define HAVE_GIF 1" >>confdefs.h
13970 if test "${HAVE_X11}" = "yes"; then
13971 MISSING=""
13972 WITH_NO=""
13973 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
13974 MISSING="libXpm" && WITH_NO="--with-xpm=no"
13975 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
13976 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
13977 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
13978 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
13979 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
13980 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
13981 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
13982 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
13984 if test "X${MISSING}" != X; then
13985 as_fn_error "The following required libraries were not found:
13986 $MISSING
13987 Maybe some development libraries/packages are missing?
13988 If you don't want to link with them give
13989 $WITH_NO
13990 as options to configure" "$LINENO" 5
13994 ### Use -lgpm if available, unless `--with-gpm=no'.
13995 HAVE_GPM=no
13996 LIBGPM=
13997 if test "${with_gpm}" != "no"; then
13998 ac_fn_c_check_header_mongrel "$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
13999 if test "x$ac_cv_header_gpm_h" = x""yes; then :
14000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
14001 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
14002 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then :
14003 $as_echo_n "(cached) " >&6
14004 else
14005 ac_check_lib_save_LIBS=$LIBS
14006 LIBS="-lgpm $LIBS"
14007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14008 /* end confdefs.h. */
14010 /* Override any GCC internal prototype to avoid an error.
14011 Use char because int might match the return type of a GCC
14012 builtin and then its argument prototype would still apply. */
14013 #ifdef __cplusplus
14014 extern "C"
14015 #endif
14016 char Gpm_Open ();
14018 main ()
14020 return Gpm_Open ();
14022 return 0;
14024 _ACEOF
14025 if ac_fn_c_try_link "$LINENO"; then :
14026 ac_cv_lib_gpm_Gpm_Open=yes
14027 else
14028 ac_cv_lib_gpm_Gpm_Open=no
14030 rm -f core conftest.err conftest.$ac_objext \
14031 conftest$ac_exeext conftest.$ac_ext
14032 LIBS=$ac_check_lib_save_LIBS
14034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
14035 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
14036 if test "x$ac_cv_lib_gpm_Gpm_Open" = x""yes; then :
14037 HAVE_GPM=yes
14044 if test "${HAVE_GPM}" = "yes"; then
14046 $as_echo "#define HAVE_GPM 1" >>confdefs.h
14048 LIBGPM=-lgpm
14053 ac_fn_c_check_header_mongrel "$LINENO" "malloc/malloc.h" "ac_cv_header_malloc_malloc_h" "$ac_includes_default"
14054 if test "x$ac_cv_header_malloc_malloc_h" = x""yes; then :
14056 $as_echo "#define HAVE_MALLOC_MALLOC_H 1" >>confdefs.h
14062 GNUSTEP_CFLAGS=
14063 ### Use NeXTstep API to implement GUI.
14064 if test "${HAVE_NS}" = "yes"; then
14066 $as_echo "#define HAVE_NS 1" >>confdefs.h
14068 if test "${NS_IMPL_COCOA}" = "yes"; then
14070 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
14073 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
14075 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
14077 # See also .m.o rule in Makefile.in */
14078 # FIXME: are all these flags really needed? Document here why. */
14079 GNUSTEP_CFLAGS="-D_REENTRANT -fPIC -fno-strict-aliasing -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
14080 ## Extra CFLAGS applied to src/*.m files.
14081 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"
14083 # We also have mouse menus.
14084 HAVE_MENUS=yes
14085 OTHER_FILES=ns-app
14089 ### Use session management (-lSM -lICE) if available
14090 HAVE_X_SM=no
14091 LIBXSM=
14092 if test "${HAVE_X11}" = "yes"; then
14093 ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
14094 if test "x$ac_cv_header_X11_SM_SMlib_h" = x""yes; then :
14095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
14096 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
14097 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then :
14098 $as_echo_n "(cached) " >&6
14099 else
14100 ac_check_lib_save_LIBS=$LIBS
14101 LIBS="-lSM -lICE $LIBS"
14102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14103 /* end confdefs.h. */
14105 /* Override any GCC internal prototype to avoid an error.
14106 Use char because int might match the return type of a GCC
14107 builtin and then its argument prototype would still apply. */
14108 #ifdef __cplusplus
14109 extern "C"
14110 #endif
14111 char SmcOpenConnection ();
14113 main ()
14115 return SmcOpenConnection ();
14117 return 0;
14119 _ACEOF
14120 if ac_fn_c_try_link "$LINENO"; then :
14121 ac_cv_lib_SM_SmcOpenConnection=yes
14122 else
14123 ac_cv_lib_SM_SmcOpenConnection=no
14125 rm -f core conftest.err conftest.$ac_objext \
14126 conftest$ac_exeext conftest.$ac_ext
14127 LIBS=$ac_check_lib_save_LIBS
14129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
14130 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
14131 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x""yes; then :
14132 HAVE_X_SM=yes
14139 if test "${HAVE_X_SM}" = "yes"; then
14141 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
14143 LIBXSM="-lSM -lICE"
14144 case "$LIBS" in
14145 *-lSM*) ;;
14146 *) LIBS="$LIBXSM $LIBS" ;;
14147 esac
14152 ### Use libxml (-lxml2) if available
14153 HAVE_LIBXML2=no
14154 if test "${with_xml2}" != "no"; then
14155 ### I'm not sure what the version number should be, so I just guessed.
14157 succeeded=no
14159 # Extract the first word of "pkg-config", so it can be a program name with args.
14160 set dummy pkg-config; ac_word=$2
14161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14162 $as_echo_n "checking for $ac_word... " >&6; }
14163 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
14164 $as_echo_n "(cached) " >&6
14165 else
14166 case $PKG_CONFIG in
14167 [\\/]* | ?:[\\/]*)
14168 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14172 for as_dir in $PATH
14174 IFS=$as_save_IFS
14175 test -z "$as_dir" && as_dir=.
14176 for ac_exec_ext in '' $ac_executable_extensions; do
14177 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14178 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14180 break 2
14182 done
14183 done
14184 IFS=$as_save_IFS
14186 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14188 esac
14190 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14191 if test -n "$PKG_CONFIG"; then
14192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
14193 $as_echo "$PKG_CONFIG" >&6; }
14194 else
14195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14196 $as_echo "no" >&6; }
14201 if test "$PKG_CONFIG" = "no" ; then
14202 HAVE_LIBXML2=no
14203 else
14204 PKG_CONFIG_MIN_VERSION=0.9.0
14205 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.6.17" >&5
14207 $as_echo_n "checking for libxml-2.0 > 2.6.17... " >&6; }
14209 if $PKG_CONFIG --exists "libxml-2.0 > 2.6.17" 2>&5 &&
14210 LIBXML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 > 2.6.17" 2>&5` &&
14211 LIBXML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0 > 2.6.17" 2>&5`; then
14212 edit_cflags="
14213 s,///*,/,g
14214 s/^/ /
14215 s/ -I/ $isystem/g
14216 s/^ //
14218 LIBXML2_CFLAGS=`$as_echo "$LIBXML2_CFLAGS" | sed -e "$edit_cflags"`
14219 LIBXML2_LIBS=`$as_echo "$LIBXML2_LIBS" | sed -e 's,///*,/,g'`
14220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBXML2_CFLAGS' LIBS='$LIBXML2_LIBS'" >&5
14221 $as_echo "yes CFLAGS='$LIBXML2_CFLAGS' LIBS='$LIBXML2_LIBS'" >&6; }
14222 succeeded=yes
14223 else
14224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14225 $as_echo "no" >&6; }
14226 LIBXML2_CFLAGS=""
14227 LIBXML2_LIBS=""
14228 ## If we have a custom action on failure, don't print errors, but
14229 ## do set a variable so people can do so.
14230 LIBXML2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 > 2.6.17"`
14236 else
14237 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14238 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14242 if test $succeeded = yes; then
14243 HAVE_LIBXML2=yes
14244 else
14245 HAVE_LIBXML2=no
14248 if test "${HAVE_LIBXML2}" = "yes"; then
14249 LIBS="$LIBXML2_LIBS $LIBS"
14250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
14251 $as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
14252 if test "${ac_cv_lib_xml2_htmlReadMemory+set}" = set; then :
14253 $as_echo_n "(cached) " >&6
14254 else
14255 ac_check_lib_save_LIBS=$LIBS
14256 LIBS="-lxml2 $LIBS"
14257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14258 /* end confdefs.h. */
14260 /* Override any GCC internal prototype to avoid an error.
14261 Use char because int might match the return type of a GCC
14262 builtin and then its argument prototype would still apply. */
14263 #ifdef __cplusplus
14264 extern "C"
14265 #endif
14266 char htmlReadMemory ();
14268 main ()
14270 return htmlReadMemory ();
14272 return 0;
14274 _ACEOF
14275 if ac_fn_c_try_link "$LINENO"; then :
14276 ac_cv_lib_xml2_htmlReadMemory=yes
14277 else
14278 ac_cv_lib_xml2_htmlReadMemory=no
14280 rm -f core conftest.err conftest.$ac_objext \
14281 conftest$ac_exeext conftest.$ac_ext
14282 LIBS=$ac_check_lib_save_LIBS
14284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
14285 $as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
14286 if test "x$ac_cv_lib_xml2_htmlReadMemory" = x""yes; then :
14287 HAVE_LIBXML2=yes
14288 else
14289 HAVE_LIBXML2=no
14292 if test "${HAVE_LIBXML2}" = "yes"; then
14294 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
14296 else
14297 LIBXML2_LIBS=""
14298 LIBXML2_CFLAGS=""
14305 # If netdb.h doesn't declare h_errno, we must declare it by hand.
14306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
14307 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
14308 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then :
14309 $as_echo_n "(cached) " >&6
14310 else
14311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14312 /* end confdefs.h. */
14313 #include <netdb.h>
14315 main ()
14317 return h_errno;
14319 return 0;
14321 _ACEOF
14322 if ac_fn_c_try_link "$LINENO"; then :
14323 emacs_cv_netdb_declares_h_errno=yes
14324 else
14325 emacs_cv_netdb_declares_h_errno=no
14327 rm -f core conftest.err conftest.$ac_objext \
14328 conftest$ac_exeext conftest.$ac_ext
14330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
14331 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
14332 if test $emacs_cv_netdb_declares_h_errno = yes; then
14334 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
14338 # fmod, logb, and frexp are found in -lm on most systems.
14339 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
14340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
14341 $as_echo_n "checking for sqrt in -lm... " >&6; }
14342 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
14343 $as_echo_n "(cached) " >&6
14344 else
14345 ac_check_lib_save_LIBS=$LIBS
14346 LIBS="-lm $LIBS"
14347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14348 /* end confdefs.h. */
14350 /* Override any GCC internal prototype to avoid an error.
14351 Use char because int might match the return type of a GCC
14352 builtin and then its argument prototype would still apply. */
14353 #ifdef __cplusplus
14354 extern "C"
14355 #endif
14356 char sqrt ();
14358 main ()
14360 return sqrt ();
14362 return 0;
14364 _ACEOF
14365 if ac_fn_c_try_link "$LINENO"; then :
14366 ac_cv_lib_m_sqrt=yes
14367 else
14368 ac_cv_lib_m_sqrt=no
14370 rm -f core conftest.err conftest.$ac_objext \
14371 conftest$ac_exeext conftest.$ac_ext
14372 LIBS=$ac_check_lib_save_LIBS
14374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
14375 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
14376 if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
14377 cat >>confdefs.h <<_ACEOF
14378 #define HAVE_LIBM 1
14379 _ACEOF
14381 LIBS="-lm $LIBS"
14386 # Check for mail-locking functions in a "mail" library. Probably this should
14387 # have the same check as for liblockfile below.
14388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
14389 $as_echo_n "checking for maillock in -lmail... " >&6; }
14390 if test "${ac_cv_lib_mail_maillock+set}" = set; then :
14391 $as_echo_n "(cached) " >&6
14392 else
14393 ac_check_lib_save_LIBS=$LIBS
14394 LIBS="-lmail $LIBS"
14395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14396 /* end confdefs.h. */
14398 /* Override any GCC internal prototype to avoid an error.
14399 Use char because int might match the return type of a GCC
14400 builtin and then its argument prototype would still apply. */
14401 #ifdef __cplusplus
14402 extern "C"
14403 #endif
14404 char maillock ();
14406 main ()
14408 return maillock ();
14410 return 0;
14412 _ACEOF
14413 if ac_fn_c_try_link "$LINENO"; then :
14414 ac_cv_lib_mail_maillock=yes
14415 else
14416 ac_cv_lib_mail_maillock=no
14418 rm -f core conftest.err conftest.$ac_objext \
14419 conftest$ac_exeext conftest.$ac_ext
14420 LIBS=$ac_check_lib_save_LIBS
14422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
14423 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
14424 if test "x$ac_cv_lib_mail_maillock" = x""yes; then :
14425 have_mail=yes
14426 else
14427 have_mail=no
14430 if test $have_mail = yes; then
14431 LIBS_MAIL=-lmail
14432 LIBS="$LIBS_MAIL $LIBS"
14434 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
14436 else
14437 LIBS_MAIL=
14439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
14440 $as_echo_n "checking for maillock in -llockfile... " >&6; }
14441 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then :
14442 $as_echo_n "(cached) " >&6
14443 else
14444 ac_check_lib_save_LIBS=$LIBS
14445 LIBS="-llockfile $LIBS"
14446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14447 /* end confdefs.h. */
14449 /* Override any GCC internal prototype to avoid an error.
14450 Use char because int might match the return type of a GCC
14451 builtin and then its argument prototype would still apply. */
14452 #ifdef __cplusplus
14453 extern "C"
14454 #endif
14455 char maillock ();
14457 main ()
14459 return maillock ();
14461 return 0;
14463 _ACEOF
14464 if ac_fn_c_try_link "$LINENO"; then :
14465 ac_cv_lib_lockfile_maillock=yes
14466 else
14467 ac_cv_lib_lockfile_maillock=no
14469 rm -f core conftest.err conftest.$ac_objext \
14470 conftest$ac_exeext conftest.$ac_ext
14471 LIBS=$ac_check_lib_save_LIBS
14473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
14474 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
14475 if test "x$ac_cv_lib_lockfile_maillock" = x""yes; then :
14476 have_lockfile=yes
14477 else
14478 have_lockfile=no
14481 if test $have_lockfile = yes; then
14482 LIBS_MAIL=-llockfile
14483 LIBS="$LIBS_MAIL $LIBS"
14485 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
14487 else
14488 # If we have the shared liblockfile, assume we must use it for mail
14489 # locking (e.g. Debian). If we couldn't link against liblockfile
14490 # (no liblockfile.a installed), ensure that we don't need to.
14491 # Extract the first word of "liblockfile.so", so it can be a program name with args.
14492 set dummy liblockfile.so; ac_word=$2
14493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14494 $as_echo_n "checking for $ac_word... " >&6; }
14495 if test "${ac_cv_prog_liblockfile+set}" = set; then :
14496 $as_echo_n "(cached) " >&6
14497 else
14498 if test -n "$liblockfile"; then
14499 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
14500 else
14501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14502 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
14503 for as_dir in $as_dummy
14505 IFS=$as_save_IFS
14506 test -z "$as_dir" && as_dir=.
14507 for ac_exec_ext in '' $ac_executable_extensions; do
14508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14509 ac_cv_prog_liblockfile="yes"
14510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14511 break 2
14513 done
14514 done
14515 IFS=$as_save_IFS
14517 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
14520 liblockfile=$ac_cv_prog_liblockfile
14521 if test -n "$liblockfile"; then
14522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
14523 $as_echo "$liblockfile" >&6; }
14524 else
14525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14526 $as_echo "no" >&6; }
14530 if test $ac_cv_prog_liblockfile = yes; then
14531 as_fn_error "Shared liblockfile found but can't link against it.
14532 This probably means that movemail could lose mail.
14533 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
14536 for ac_func in touchlock
14537 do :
14538 ac_fn_c_check_func "$LINENO" "touchlock" "ac_cv_func_touchlock"
14539 if test "x$ac_cv_func_touchlock" = x""yes; then :
14540 cat >>confdefs.h <<_ACEOF
14541 #define HAVE_TOUCHLOCK 1
14542 _ACEOF
14545 done
14547 for ac_header in maillock.h
14548 do :
14549 ac_fn_c_check_header_mongrel "$LINENO" "maillock.h" "ac_cv_header_maillock_h" "$ac_includes_default"
14550 if test "x$ac_cv_header_maillock_h" = x""yes; then :
14551 cat >>confdefs.h <<_ACEOF
14552 #define HAVE_MAILLOCK_H 1
14553 _ACEOF
14557 done
14561 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
14562 ## interlock access to the mail spool. The alternative is a lock file named
14563 ## /usr/spool/mail/$USER.lock.
14564 mail_lock=no
14565 case "$opsys" in
14566 aix4-2) mail_lock="lockf" ;;
14568 gnu|freebsd|netbsd|openbsd|darwin|irix6-5) mail_lock="flock" ;;
14570 ## On GNU/Linux systems, both methods are used by various mail programs.
14571 ## I assume most people are using newer mailers that have heard of flock.
14572 ## Change this if you need to.
14573 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
14574 ## configure gets the right answers, and that means *NOT* using flock.
14575 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
14576 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
14577 ## Debian maintainer hasn't provided a clean fix for Emacs.
14578 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
14579 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
14580 ## correct logic. -- fx
14581 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
14582 ## liblockfile is a Free Software replacement for libmail, used on
14583 ## Debian systems and elsewhere. -rfr.
14584 gnu-*)
14585 mail_lock="flock"
14586 if test $have_mail = yes || test $have_lockfile = yes; then
14587 test $ac_cv_header_maillock_h = yes && mail_lock=no
14590 esac
14592 BLESSMAIL_TARGET=
14593 case "$mail_lock" in
14594 flock)
14595 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
14598 lockf)
14599 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
14602 *) BLESSMAIL_TARGET="need-blessmail" ;;
14603 esac
14607 for ac_func in gethostname getdomainname \
14608 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
14609 random lrand48 logb frexp fmod rint cbrt ftime setsid \
14610 strerror fpathconf select euidaccess getpagesize tzset setlocale \
14611 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
14612 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm \
14613 sendto recvfrom getsockopt setsockopt getsockname getpeername \
14614 gai_strerror mkstemp getline getdelim mremap fsync sync \
14615 difftime mempcpy mblen mbrlen posix_memalign \
14616 getpwent endpwent getgrent endgrent \
14617 cfmakeraw cfsetspeed copysign __executable_start
14618 do :
14619 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14620 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14621 eval as_val=\$$as_ac_var
14622 if test "x$as_val" = x""yes; then :
14623 cat >>confdefs.h <<_ACEOF
14624 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14625 _ACEOF
14628 done
14631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unwind_init" >&5
14632 $as_echo_n "checking for __builtin_unwind_init... " >&6; }
14633 if test "${emacs_cv_func___builtin_unwind_init+set}" = set; then :
14634 $as_echo_n "(cached) " >&6
14635 else
14636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14637 /* end confdefs.h. */
14640 main ()
14642 __builtin_unwind_init ();
14644 return 0;
14646 _ACEOF
14647 if ac_fn_c_try_link "$LINENO"; then :
14648 emacs_cv_func___builtin_unwind_init=yes
14649 else
14650 emacs_cv_func___builtin_unwind_init=no
14652 rm -f core conftest.err conftest.$ac_objext \
14653 conftest$ac_exeext conftest.$ac_ext
14655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func___builtin_unwind_init" >&5
14656 $as_echo "$emacs_cv_func___builtin_unwind_init" >&6; }
14657 if test $emacs_cv_func___builtin_unwind_init = yes; then
14659 $as_echo "#define HAVE___BUILTIN_UNWIND_INIT 1" >>confdefs.h
14663 for ac_header in sys/un.h
14664 do :
14665 ac_fn_c_check_header_mongrel "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
14666 if test "x$ac_cv_header_sys_un_h" = x""yes; then :
14667 cat >>confdefs.h <<_ACEOF
14668 #define HAVE_SYS_UN_H 1
14669 _ACEOF
14673 done
14676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
14677 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
14678 if test "${ac_cv_sys_largefile_source+set}" = set; then :
14679 $as_echo_n "(cached) " >&6
14680 else
14681 while :; do
14682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14683 /* end confdefs.h. */
14684 #include <sys/types.h> /* for off_t */
14685 #include <stdio.h>
14687 main ()
14689 int (*fp) (FILE *, off_t, int) = fseeko;
14690 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14692 return 0;
14694 _ACEOF
14695 if ac_fn_c_try_link "$LINENO"; then :
14696 ac_cv_sys_largefile_source=no; break
14698 rm -f core conftest.err conftest.$ac_objext \
14699 conftest$ac_exeext conftest.$ac_ext
14700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14701 /* end confdefs.h. */
14702 #define _LARGEFILE_SOURCE 1
14703 #include <sys/types.h> /* for off_t */
14704 #include <stdio.h>
14706 main ()
14708 int (*fp) (FILE *, off_t, int) = fseeko;
14709 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14711 return 0;
14713 _ACEOF
14714 if ac_fn_c_try_link "$LINENO"; then :
14715 ac_cv_sys_largefile_source=1; break
14717 rm -f core conftest.err conftest.$ac_objext \
14718 conftest$ac_exeext conftest.$ac_ext
14719 ac_cv_sys_largefile_source=unknown
14720 break
14721 done
14723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
14724 $as_echo "$ac_cv_sys_largefile_source" >&6; }
14725 case $ac_cv_sys_largefile_source in #(
14726 no | unknown) ;;
14728 cat >>confdefs.h <<_ACEOF
14729 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
14730 _ACEOF
14732 esac
14733 rm -rf conftest*
14735 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
14736 # in glibc 2.1.3, but that breaks too many other things.
14737 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
14738 if test $ac_cv_sys_largefile_source != unknown; then
14740 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
14745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
14746 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
14747 if test "${ac_cv_func_getpgrp_void+set}" = set; then :
14748 $as_echo_n "(cached) " >&6
14749 else
14750 # Use it with a single arg.
14751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14752 /* end confdefs.h. */
14753 $ac_includes_default
14755 main ()
14757 getpgrp (0);
14759 return 0;
14761 _ACEOF
14762 if ac_fn_c_try_compile "$LINENO"; then :
14763 ac_cv_func_getpgrp_void=no
14764 else
14765 ac_cv_func_getpgrp_void=yes
14767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
14771 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
14772 if test $ac_cv_func_getpgrp_void = yes; then
14774 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
14779 # UNIX98 PTYs.
14780 for ac_func in grantpt
14781 do :
14782 ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt"
14783 if test "x$ac_cv_func_grantpt" = x""yes; then :
14784 cat >>confdefs.h <<_ACEOF
14785 #define HAVE_GRANTPT 1
14786 _ACEOF
14789 done
14792 # PTY-related GNU extensions.
14793 for ac_func in getpt
14794 do :
14795 ac_fn_c_check_func "$LINENO" "getpt" "ac_cv_func_getpt"
14796 if test "x$ac_cv_func_getpt" = x""yes; then :
14797 cat >>confdefs.h <<_ACEOF
14798 #define HAVE_GETPT 1
14799 _ACEOF
14802 done
14805 # Check this now, so that we will NOT find the above functions in ncurses.
14806 # That is because we have not set up to link ncurses in lib-src.
14807 # It's better to believe a function is not available
14808 # than to expect to find it in ncurses.
14809 # Also we need tputs and friends to be able to build at all.
14810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
14811 $as_echo_n "checking for library containing tputs... " >&6; }
14812 # Run a test program that contains a call to tputs, a call that is
14813 # never executed. This tests whether a pre-'main' dynamic linker
14814 # works with the library. It's too much trouble to actually call
14815 # tputs in the test program, due to portability hassles. When
14816 # cross-compiling, assume the test program will run if it links.
14818 # Maybe curses should be tried earlier?
14819 # See http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9736#35
14820 for tputs_library in '' tinfo ncurses terminfo termcap curses; do
14821 OLIBS=$LIBS
14822 if test -z "$tputs_library"; then
14823 LIBS_TERMCAP=
14824 msg='none required'
14825 else
14826 LIBS_TERMCAP=-l$tputs_library
14827 msg=$LIBS_TERMCAP
14828 LIBS="$LIBS_TERMCAP $LIBS"
14830 if test "$cross_compiling" = yes; then :
14831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14832 /* end confdefs.h. */
14834 extern void tputs (const char *, int, int (*)(int));
14835 int main (int argc, char **argv)
14837 if (argc == 10000)
14838 tputs (argv[0], 0, 0);
14839 return 0;
14842 _ACEOF
14843 if ac_fn_c_try_link "$LINENO"; then :
14845 else
14846 msg=no
14848 rm -f core conftest.err conftest.$ac_objext \
14849 conftest$ac_exeext conftest.$ac_ext
14850 else
14851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14852 /* end confdefs.h. */
14854 extern void tputs (const char *, int, int (*)(int));
14855 int main (int argc, char **argv)
14857 if (argc == 10000)
14858 tputs (argv[0], 0, 0);
14859 return 0;
14862 _ACEOF
14863 if ac_fn_c_try_run "$LINENO"; then :
14865 else
14866 msg=no
14868 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14869 conftest.$ac_objext conftest.beam conftest.$ac_ext
14872 LIBS=$OLIBS
14873 if test "X$msg" != Xno; then
14874 break
14876 done
14877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5
14878 $as_echo "$msg" >&6; }
14879 if test "X$msg" = Xno; then
14880 as_fn_error "The required function \`tputs' was not found in any library.
14881 The following libraries were tried (in order):
14882 libtinfo, libncurses, libterminfo, libtermcap, libcurses
14883 Please try installing whichever of these libraries is most appropriate
14884 for your system, together with its header files.
14885 For example, a libncurses-dev(el) or similar package." "$LINENO" 5
14888 ## Use termcap instead of terminfo?
14889 ## Only true for: freebsd < 40000, ms-w32, msdos, netbsd < 599002500.
14890 TERMINFO=yes
14891 ## FIXME? In the cases below where we unconditionally set
14892 ## LIBS_TERMCAP="-lncurses", this overrides LIBS_TERMCAP = -ltinfo,
14893 ## if that was found above to have tputs.
14894 ## Should we use the gnu* logic everywhere?
14895 case "$opsys" in
14896 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
14897 ## The ncurses library has been moved out of the System framework in
14898 ## Mac OS X 10.2. So if configure detects it, set the command-line
14899 ## option to use it.
14900 darwin) LIBS_TERMCAP="-lncurses" ;;
14902 gnu*) "x$LIBS_TERMCAP" = x && LIBS_TERMCAP="-lncurses" ;;
14904 freebsd)
14905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
14906 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
14907 if test "${emacs_cv_freebsd_terminfo+set}" = set; then :
14908 $as_echo_n "(cached) " >&6
14909 else
14910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14911 /* end confdefs.h. */
14912 #include <osreldate.h>
14914 main ()
14916 #if __FreeBSD_version < 400000
14917 fail;
14918 #endif
14921 return 0;
14923 _ACEOF
14924 if ac_fn_c_try_link "$LINENO"; then :
14925 emacs_cv_freebsd_terminfo=yes
14926 else
14927 emacs_cv_freebsd_terminfo=no
14929 rm -f core conftest.err conftest.$ac_objext \
14930 conftest$ac_exeext conftest.$ac_ext
14934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
14935 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
14937 if test $emacs_cv_freebsd_terminfo = yes; then
14938 LIBS_TERMCAP="-lncurses"
14939 else
14940 TERMINFO=no
14941 LIBS_TERMCAP="-ltermcap"
14945 netbsd)
14946 if "x$LIBS_TERMCAP" != "x-lterminfo" ; then
14947 TERMINFO=no
14948 LIBS_TERMCAP="-ltermcap"
14952 openbsd) LIBS_TERMCAP="-lncurses" ;;
14954 ## hpux: Make sure we get select from libc rather than from libcurses
14955 ## because libcurses on HPUX 10.10 has a broken version of select.
14956 ## We used to use -lc -lcurses, but this may be cleaner.
14957 ## FIXME? But TERMINFO = yes on hpux (it used to be explicitly
14958 # set that way, now it uses the default). Isn't this a contradiction?
14959 hpux*) LIBS_TERMCAP="-ltermcap" ;;
14961 esac
14963 TERMCAP_OBJ=tparam.o
14964 if test $TERMINFO = yes; then
14966 $as_echo "#define TERMINFO 1" >>confdefs.h
14968 TERMCAP_OBJ=terminfo.o
14974 # Do we have res_init, for detecting changes in /etc/resolv.conf?
14975 resolv=no
14976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14977 /* end confdefs.h. */
14978 #include <netinet/in.h>
14979 #include <arpa/nameser.h>
14980 #include <resolv.h>
14982 main ()
14984 return res_init();
14986 return 0;
14988 _ACEOF
14989 if ac_fn_c_try_link "$LINENO"; then :
14990 have_res_init=yes
14991 else
14992 have_res_init=no
14994 rm -f core conftest.err conftest.$ac_objext \
14995 conftest$ac_exeext conftest.$ac_ext
14996 if test "$have_res_init" = no; then
14997 OLIBS="$LIBS"
14998 LIBS="$LIBS -lresolv"
14999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
15000 $as_echo_n "checking for res_init with -lresolv... " >&6; }
15001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15002 /* end confdefs.h. */
15003 #include <netinet/in.h>
15004 #include <arpa/nameser.h>
15005 #include <resolv.h>
15007 main ()
15009 return res_init();
15011 return 0;
15013 _ACEOF
15014 if ac_fn_c_try_link "$LINENO"; then :
15015 have_res_init=yes
15016 else
15017 have_res_init=no
15019 rm -f core conftest.err conftest.$ac_objext \
15020 conftest$ac_exeext conftest.$ac_ext
15021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
15022 $as_echo "$have_res_init" >&6; }
15023 if test "$have_res_init" = yes ; then
15024 resolv=yes
15026 LIBS="$OLIBS"
15029 if test "$have_res_init" = yes; then
15031 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
15035 # Do we need the Hesiod library to provide the support routines?
15036 LIBHESIOD=
15037 if test "$with_hesiod" != no ; then
15038 # Don't set $LIBS here -- see comments above. FIXME which comments?
15039 ac_fn_c_check_func "$LINENO" "res_send" "ac_cv_func_res_send"
15040 if test "x$ac_cv_func_res_send" = x""yes; then :
15042 else
15043 ac_fn_c_check_func "$LINENO" "__res_send" "ac_cv_func___res_send"
15044 if test "x$ac_cv_func___res_send" = x""yes; then :
15046 else
15047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
15048 $as_echo_n "checking for res_send in -lresolv... " >&6; }
15049 if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
15050 $as_echo_n "(cached) " >&6
15051 else
15052 ac_check_lib_save_LIBS=$LIBS
15053 LIBS="-lresolv $LIBS"
15054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15055 /* end confdefs.h. */
15057 /* Override any GCC internal prototype to avoid an error.
15058 Use char because int might match the return type of a GCC
15059 builtin and then its argument prototype would still apply. */
15060 #ifdef __cplusplus
15061 extern "C"
15062 #endif
15063 char res_send ();
15065 main ()
15067 return res_send ();
15069 return 0;
15071 _ACEOF
15072 if ac_fn_c_try_link "$LINENO"; then :
15073 ac_cv_lib_resolv_res_send=yes
15074 else
15075 ac_cv_lib_resolv_res_send=no
15077 rm -f core conftest.err conftest.$ac_objext \
15078 conftest$ac_exeext conftest.$ac_ext
15079 LIBS=$ac_check_lib_save_LIBS
15081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
15082 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
15083 if test "x$ac_cv_lib_resolv_res_send" = x""yes; then :
15084 resolv=yes
15085 else
15086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
15087 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
15088 if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
15089 $as_echo_n "(cached) " >&6
15090 else
15091 ac_check_lib_save_LIBS=$LIBS
15092 LIBS="-lresolv $LIBS"
15093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15094 /* end confdefs.h. */
15096 /* Override any GCC internal prototype to avoid an error.
15097 Use char because int might match the return type of a GCC
15098 builtin and then its argument prototype would still apply. */
15099 #ifdef __cplusplus
15100 extern "C"
15101 #endif
15102 char __res_send ();
15104 main ()
15106 return __res_send ();
15108 return 0;
15110 _ACEOF
15111 if ac_fn_c_try_link "$LINENO"; then :
15112 ac_cv_lib_resolv___res_send=yes
15113 else
15114 ac_cv_lib_resolv___res_send=no
15116 rm -f core conftest.err conftest.$ac_objext \
15117 conftest$ac_exeext conftest.$ac_ext
15118 LIBS=$ac_check_lib_save_LIBS
15120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
15121 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
15122 if test "x$ac_cv_lib_resolv___res_send" = x""yes; then :
15123 resolv=yes
15132 if test "$resolv" = yes ; then
15133 RESOLVLIB=-lresolv
15134 else
15135 RESOLVLIB=
15137 ac_fn_c_check_func "$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
15138 if test "x$ac_cv_func_hes_getmailhost" = x""yes; then :
15140 else
15141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
15142 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
15143 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
15144 $as_echo_n "(cached) " >&6
15145 else
15146 ac_check_lib_save_LIBS=$LIBS
15147 LIBS="-lhesiod $RESOLVLIB $LIBS"
15148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15149 /* end confdefs.h. */
15151 /* Override any GCC internal prototype to avoid an error.
15152 Use char because int might match the return type of a GCC
15153 builtin and then its argument prototype would still apply. */
15154 #ifdef __cplusplus
15155 extern "C"
15156 #endif
15157 char hes_getmailhost ();
15159 main ()
15161 return hes_getmailhost ();
15163 return 0;
15165 _ACEOF
15166 if ac_fn_c_try_link "$LINENO"; then :
15167 ac_cv_lib_hesiod_hes_getmailhost=yes
15168 else
15169 ac_cv_lib_hesiod_hes_getmailhost=no
15171 rm -f core conftest.err conftest.$ac_objext \
15172 conftest$ac_exeext conftest.$ac_ext
15173 LIBS=$ac_check_lib_save_LIBS
15175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
15176 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
15177 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x""yes; then :
15178 hesiod=yes
15179 else
15186 if test x"$hesiod" = xyes; then
15188 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
15190 LIBHESIOD=-lhesiod
15195 # Do we need libresolv (due to res_init or Hesiod)?
15196 if test "$resolv" = yes ; then
15198 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
15200 LIBRESOLV=-lresolv
15201 else
15202 LIBRESOLV=
15206 # These tell us which Kerberos-related libraries to use.
15207 COM_ERRLIB=
15208 CRYPTOLIB=
15209 KRB5LIB=
15210 DESLIB=
15211 KRB4LIB=
15213 if test "${with_kerberos}" != no; then
15214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
15215 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
15216 if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
15217 $as_echo_n "(cached) " >&6
15218 else
15219 ac_check_lib_save_LIBS=$LIBS
15220 LIBS="-lcom_err $LIBS"
15221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15222 /* end confdefs.h. */
15224 /* Override any GCC internal prototype to avoid an error.
15225 Use char because int might match the return type of a GCC
15226 builtin and then its argument prototype would still apply. */
15227 #ifdef __cplusplus
15228 extern "C"
15229 #endif
15230 char com_err ();
15232 main ()
15234 return com_err ();
15236 return 0;
15238 _ACEOF
15239 if ac_fn_c_try_link "$LINENO"; then :
15240 ac_cv_lib_com_err_com_err=yes
15241 else
15242 ac_cv_lib_com_err_com_err=no
15244 rm -f core conftest.err conftest.$ac_objext \
15245 conftest$ac_exeext conftest.$ac_ext
15246 LIBS=$ac_check_lib_save_LIBS
15248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
15249 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
15250 if test "x$ac_cv_lib_com_err_com_err" = x""yes; then :
15251 have_com_err=yes
15252 else
15253 have_com_err=no
15256 if test $have_com_err = yes; then
15257 COM_ERRLIB=-lcom_err
15258 LIBS="$COM_ERRLIB $LIBS"
15260 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
15263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
15264 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
15265 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
15266 $as_echo_n "(cached) " >&6
15267 else
15268 ac_check_lib_save_LIBS=$LIBS
15269 LIBS="-lcrypto $LIBS"
15270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15271 /* end confdefs.h. */
15273 /* Override any GCC internal prototype to avoid an error.
15274 Use char because int might match the return type of a GCC
15275 builtin and then its argument prototype would still apply. */
15276 #ifdef __cplusplus
15277 extern "C"
15278 #endif
15279 char mit_des_cbc_encrypt ();
15281 main ()
15283 return mit_des_cbc_encrypt ();
15285 return 0;
15287 _ACEOF
15288 if ac_fn_c_try_link "$LINENO"; then :
15289 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
15290 else
15291 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
15293 rm -f core conftest.err conftest.$ac_objext \
15294 conftest$ac_exeext conftest.$ac_ext
15295 LIBS=$ac_check_lib_save_LIBS
15297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
15298 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
15299 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x""yes; then :
15300 have_crypto=yes
15301 else
15302 have_crypto=no
15305 if test $have_crypto = yes; then
15306 CRYPTOLIB=-lcrypto
15307 LIBS="$CRYPTOLIB $LIBS"
15309 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
15312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
15313 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
15314 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
15315 $as_echo_n "(cached) " >&6
15316 else
15317 ac_check_lib_save_LIBS=$LIBS
15318 LIBS="-lk5crypto $LIBS"
15319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15320 /* end confdefs.h. */
15322 /* Override any GCC internal prototype to avoid an error.
15323 Use char because int might match the return type of a GCC
15324 builtin and then its argument prototype would still apply. */
15325 #ifdef __cplusplus
15326 extern "C"
15327 #endif
15328 char mit_des_cbc_encrypt ();
15330 main ()
15332 return mit_des_cbc_encrypt ();
15334 return 0;
15336 _ACEOF
15337 if ac_fn_c_try_link "$LINENO"; then :
15338 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
15339 else
15340 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
15342 rm -f core conftest.err conftest.$ac_objext \
15343 conftest$ac_exeext conftest.$ac_ext
15344 LIBS=$ac_check_lib_save_LIBS
15346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
15347 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
15348 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x""yes; then :
15349 have_k5crypto=yes
15350 else
15351 have_k5crypto=no
15354 if test $have_k5crypto = yes; then
15355 CRYPTOLIB=-lk5crypto
15356 LIBS="$CRYPTOLIB $LIBS"
15358 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
15361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
15362 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
15363 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
15364 $as_echo_n "(cached) " >&6
15365 else
15366 ac_check_lib_save_LIBS=$LIBS
15367 LIBS="-lkrb5 $LIBS"
15368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15369 /* end confdefs.h. */
15371 /* Override any GCC internal prototype to avoid an error.
15372 Use char because int might match the return type of a GCC
15373 builtin and then its argument prototype would still apply. */
15374 #ifdef __cplusplus
15375 extern "C"
15376 #endif
15377 char krb5_init_context ();
15379 main ()
15381 return krb5_init_context ();
15383 return 0;
15385 _ACEOF
15386 if ac_fn_c_try_link "$LINENO"; then :
15387 ac_cv_lib_krb5_krb5_init_context=yes
15388 else
15389 ac_cv_lib_krb5_krb5_init_context=no
15391 rm -f core conftest.err conftest.$ac_objext \
15392 conftest$ac_exeext conftest.$ac_ext
15393 LIBS=$ac_check_lib_save_LIBS
15395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
15396 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
15397 if test "x$ac_cv_lib_krb5_krb5_init_context" = x""yes; then :
15398 have_krb5=yes
15399 else
15400 have_krb5=no
15403 if test $have_krb5=yes; then
15404 KRB5LIB=-lkrb5
15405 LIBS="$KRB5LIB $LIBS"
15407 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
15410 if test "${with_kerberos5}" = no; then
15411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
15412 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
15413 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
15414 $as_echo_n "(cached) " >&6
15415 else
15416 ac_check_lib_save_LIBS=$LIBS
15417 LIBS="-ldes425 $LIBS"
15418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15419 /* end confdefs.h. */
15421 /* Override any GCC internal prototype to avoid an error.
15422 Use char because int might match the return type of a GCC
15423 builtin and then its argument prototype would still apply. */
15424 #ifdef __cplusplus
15425 extern "C"
15426 #endif
15427 char des_cbc_encrypt ();
15429 main ()
15431 return des_cbc_encrypt ();
15433 return 0;
15435 _ACEOF
15436 if ac_fn_c_try_link "$LINENO"; then :
15437 ac_cv_lib_des425_des_cbc_encrypt=yes
15438 else
15439 ac_cv_lib_des425_des_cbc_encrypt=no
15441 rm -f core conftest.err conftest.$ac_objext \
15442 conftest$ac_exeext conftest.$ac_ext
15443 LIBS=$ac_check_lib_save_LIBS
15445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
15446 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
15447 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x""yes; then :
15448 have_des425=yes
15449 else
15450 have_des425=no
15453 if test $have_des425 = yes; then
15454 DESLIB=-ldes425
15455 LIBS="$DESLIB $LIBS"
15457 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
15459 else
15460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
15461 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
15462 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
15463 $as_echo_n "(cached) " >&6
15464 else
15465 ac_check_lib_save_LIBS=$LIBS
15466 LIBS="-ldes $LIBS"
15467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15468 /* end confdefs.h. */
15470 /* Override any GCC internal prototype to avoid an error.
15471 Use char because int might match the return type of a GCC
15472 builtin and then its argument prototype would still apply. */
15473 #ifdef __cplusplus
15474 extern "C"
15475 #endif
15476 char des_cbc_encrypt ();
15478 main ()
15480 return des_cbc_encrypt ();
15482 return 0;
15484 _ACEOF
15485 if ac_fn_c_try_link "$LINENO"; then :
15486 ac_cv_lib_des_des_cbc_encrypt=yes
15487 else
15488 ac_cv_lib_des_des_cbc_encrypt=no
15490 rm -f core conftest.err conftest.$ac_objext \
15491 conftest$ac_exeext conftest.$ac_ext
15492 LIBS=$ac_check_lib_save_LIBS
15494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
15495 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
15496 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x""yes; then :
15497 have_des=yes
15498 else
15499 have_des=no
15502 if test $have_des = yes; then
15503 DESLIB=-ldes
15504 LIBS="$DESLIB $LIBS"
15506 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
15510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
15511 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
15512 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
15513 $as_echo_n "(cached) " >&6
15514 else
15515 ac_check_lib_save_LIBS=$LIBS
15516 LIBS="-lkrb4 $LIBS"
15517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15518 /* end confdefs.h. */
15520 /* Override any GCC internal prototype to avoid an error.
15521 Use char because int might match the return type of a GCC
15522 builtin and then its argument prototype would still apply. */
15523 #ifdef __cplusplus
15524 extern "C"
15525 #endif
15526 char krb_get_cred ();
15528 main ()
15530 return krb_get_cred ();
15532 return 0;
15534 _ACEOF
15535 if ac_fn_c_try_link "$LINENO"; then :
15536 ac_cv_lib_krb4_krb_get_cred=yes
15537 else
15538 ac_cv_lib_krb4_krb_get_cred=no
15540 rm -f core conftest.err conftest.$ac_objext \
15541 conftest$ac_exeext conftest.$ac_ext
15542 LIBS=$ac_check_lib_save_LIBS
15544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
15545 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
15546 if test "x$ac_cv_lib_krb4_krb_get_cred" = x""yes; then :
15547 have_krb4=yes
15548 else
15549 have_krb4=no
15552 if test $have_krb4 = yes; then
15553 KRB4LIB=-lkrb4
15554 LIBS="$KRB4LIB $LIBS"
15556 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
15558 else
15559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
15560 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
15561 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
15562 $as_echo_n "(cached) " >&6
15563 else
15564 ac_check_lib_save_LIBS=$LIBS
15565 LIBS="-lkrb $LIBS"
15566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15567 /* end confdefs.h. */
15569 /* Override any GCC internal prototype to avoid an error.
15570 Use char because int might match the return type of a GCC
15571 builtin and then its argument prototype would still apply. */
15572 #ifdef __cplusplus
15573 extern "C"
15574 #endif
15575 char krb_get_cred ();
15577 main ()
15579 return krb_get_cred ();
15581 return 0;
15583 _ACEOF
15584 if ac_fn_c_try_link "$LINENO"; then :
15585 ac_cv_lib_krb_krb_get_cred=yes
15586 else
15587 ac_cv_lib_krb_krb_get_cred=no
15589 rm -f core conftest.err conftest.$ac_objext \
15590 conftest$ac_exeext conftest.$ac_ext
15591 LIBS=$ac_check_lib_save_LIBS
15593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
15594 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
15595 if test "x$ac_cv_lib_krb_krb_get_cred" = x""yes; then :
15596 have_krb=yes
15597 else
15598 have_krb=no
15601 if test $have_krb = yes; then
15602 KRB4LIB=-lkrb
15603 LIBS="$KRB4LIB $LIBS"
15605 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
15611 if test "${with_kerberos5}" != no; then
15612 for ac_header in krb5.h
15613 do :
15614 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
15615 if test "x$ac_cv_header_krb5_h" = x""yes; then :
15616 cat >>confdefs.h <<_ACEOF
15617 #define HAVE_KRB5_H 1
15618 _ACEOF
15619 ac_fn_c_check_member "$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
15621 if test "x$ac_cv_member_krb5_error_text" = x""yes; then :
15623 cat >>confdefs.h <<_ACEOF
15624 #define HAVE_KRB5_ERROR_TEXT 1
15625 _ACEOF
15629 ac_fn_c_check_member "$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
15631 if test "x$ac_cv_member_krb5_error_e_text" = x""yes; then :
15633 cat >>confdefs.h <<_ACEOF
15634 #define HAVE_KRB5_ERROR_E_TEXT 1
15635 _ACEOF
15642 done
15644 else
15645 for ac_header in des.h
15646 do :
15647 ac_fn_c_check_header_mongrel "$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
15648 if test "x$ac_cv_header_des_h" = x""yes; then :
15649 cat >>confdefs.h <<_ACEOF
15650 #define HAVE_DES_H 1
15651 _ACEOF
15653 else
15654 for ac_header in kerberosIV/des.h
15655 do :
15656 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
15657 if test "x$ac_cv_header_kerberosIV_des_h" = x""yes; then :
15658 cat >>confdefs.h <<_ACEOF
15659 #define HAVE_KERBEROSIV_DES_H 1
15660 _ACEOF
15662 else
15663 for ac_header in kerberos/des.h
15664 do :
15665 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
15666 if test "x$ac_cv_header_kerberos_des_h" = x""yes; then :
15667 cat >>confdefs.h <<_ACEOF
15668 #define HAVE_KERBEROS_DES_H 1
15669 _ACEOF
15673 done
15677 done
15681 done
15683 for ac_header in krb.h
15684 do :
15685 ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
15686 if test "x$ac_cv_header_krb_h" = x""yes; then :
15687 cat >>confdefs.h <<_ACEOF
15688 #define HAVE_KRB_H 1
15689 _ACEOF
15691 else
15692 for ac_header in kerberosIV/krb.h
15693 do :
15694 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
15695 if test "x$ac_cv_header_kerberosIV_krb_h" = x""yes; then :
15696 cat >>confdefs.h <<_ACEOF
15697 #define HAVE_KERBEROSIV_KRB_H 1
15698 _ACEOF
15700 else
15701 for ac_header in kerberos/krb.h
15702 do :
15703 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
15704 if test "x$ac_cv_header_kerberos_krb_h" = x""yes; then :
15705 cat >>confdefs.h <<_ACEOF
15706 #define HAVE_KERBEROS_KRB_H 1
15707 _ACEOF
15711 done
15715 done
15719 done
15722 for ac_header in com_err.h
15723 do :
15724 ac_fn_c_check_header_mongrel "$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
15725 if test "x$ac_cv_header_com_err_h" = x""yes; then :
15726 cat >>confdefs.h <<_ACEOF
15727 #define HAVE_COM_ERR_H 1
15728 _ACEOF
15732 done
15742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
15743 $as_echo_n "checking whether localtime caches TZ... " >&6; }
15744 if test "${emacs_cv_localtime_cache+set}" = set; then :
15745 $as_echo_n "(cached) " >&6
15746 else
15747 if test x$ac_cv_func_tzset = xyes; then
15748 if test "$cross_compiling" = yes; then :
15749 # If we have tzset, assume the worst when cross-compiling.
15750 emacs_cv_localtime_cache=yes
15751 else
15752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15753 /* end confdefs.h. */
15754 #include <time.h>
15755 char TZ_GMT0[] = "TZ=GMT0";
15756 char TZ_PST8[] = "TZ=PST8";
15757 main()
15759 time_t now = time ((time_t *) 0);
15760 int hour_GMT0, hour_unset;
15761 if (putenv (TZ_GMT0) != 0)
15762 exit (1);
15763 hour_GMT0 = localtime (&now)->tm_hour;
15764 unsetenv("TZ");
15765 hour_unset = localtime (&now)->tm_hour;
15766 if (putenv (TZ_PST8) != 0)
15767 exit (1);
15768 if (localtime (&now)->tm_hour == hour_GMT0)
15769 exit (1);
15770 unsetenv("TZ");
15771 if (localtime (&now)->tm_hour != hour_unset)
15772 exit (1);
15773 exit (0);
15775 _ACEOF
15776 if ac_fn_c_try_run "$LINENO"; then :
15777 emacs_cv_localtime_cache=no
15778 else
15779 emacs_cv_localtime_cache=yes
15781 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15782 conftest.$ac_objext conftest.beam conftest.$ac_ext
15785 else
15786 # If we lack tzset, report that localtime does not cache TZ,
15787 # since we can't invalidate the cache if we don't have tzset.
15788 emacs_cv_localtime_cache=no
15791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
15792 $as_echo "$emacs_cv_localtime_cache" >&6; }
15793 if test $emacs_cv_localtime_cache = yes; then
15795 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
15799 if test "x$HAVE_TIMEVAL" = xyes; then
15800 for ac_func in gettimeofday
15801 do :
15802 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
15803 if test "x$ac_cv_func_gettimeofday" = x""yes; then :
15804 cat >>confdefs.h <<_ACEOF
15805 #define HAVE_GETTIMEOFDAY 1
15806 _ACEOF
15809 done
15811 if test $ac_cv_func_gettimeofday = yes; then
15812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday can accept two arguments" >&5
15813 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
15814 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then :
15815 $as_echo_n "(cached) " >&6
15816 else
15817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15818 /* end confdefs.h. */
15820 #ifdef TIME_WITH_SYS_TIME
15821 #include <sys/time.h>
15822 #include <time.h>
15823 #else
15824 #ifdef HAVE_SYS_TIME_H
15825 #include <sys/time.h>
15826 #else
15827 #include <time.h>
15828 #endif
15829 #endif
15831 main ()
15833 struct timeval time;
15834 gettimeofday (&time, 0);
15836 return 0;
15838 _ACEOF
15839 if ac_fn_c_try_compile "$LINENO"; then :
15840 emacs_cv_gettimeofday_two_arguments=yes
15841 else
15842 emacs_cv_gettimeofday_two_arguments=no
15844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_gettimeofday_two_arguments" >&5
15847 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
15848 if test $emacs_cv_gettimeofday_two_arguments = no; then
15850 $as_echo "#define GETTIMEOFDAY_ONE_ARGUMENT 1" >>confdefs.h
15856 ok_so_far=yes
15857 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
15858 if test "x$ac_cv_func_socket" = x""yes; then :
15860 else
15861 ok_so_far=no
15864 if test $ok_so_far = yes; then
15865 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
15866 if test "x$ac_cv_header_netinet_in_h" = x""yes; then :
15868 else
15869 ok_so_far=no
15874 if test $ok_so_far = yes; then
15875 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
15876 if test "x$ac_cv_header_arpa_inet_h" = x""yes; then :
15878 else
15879 ok_so_far=no
15884 if test $ok_so_far = yes; then
15886 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
15890 if test -f /usr/lpp/X11/bin/smt.exp; then
15892 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
15896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
15897 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
15898 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
15899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15900 $as_echo "yes" >&6; }
15902 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
15904 else
15905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15906 $as_echo "no" >&6; }
15909 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
15910 if test "x$ac_cv_type_pid_t" = x""yes; then :
15912 else
15914 cat >>confdefs.h <<_ACEOF
15915 #define pid_t int
15916 _ACEOF
15920 for ac_header in vfork.h
15921 do :
15922 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
15923 if test "x$ac_cv_header_vfork_h" = x""yes; then :
15924 cat >>confdefs.h <<_ACEOF
15925 #define HAVE_VFORK_H 1
15926 _ACEOF
15930 done
15932 for ac_func in fork vfork
15933 do :
15934 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15935 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15936 eval as_val=\$$as_ac_var
15937 if test "x$as_val" = x""yes; then :
15938 cat >>confdefs.h <<_ACEOF
15939 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15940 _ACEOF
15943 done
15945 if test "x$ac_cv_func_fork" = xyes; then
15946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
15947 $as_echo_n "checking for working fork... " >&6; }
15948 if test "${ac_cv_func_fork_works+set}" = set; then :
15949 $as_echo_n "(cached) " >&6
15950 else
15951 if test "$cross_compiling" = yes; then :
15952 ac_cv_func_fork_works=cross
15953 else
15954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15955 /* end confdefs.h. */
15956 $ac_includes_default
15958 main ()
15961 /* By Ruediger Kuhlmann. */
15962 return fork () < 0;
15965 return 0;
15967 _ACEOF
15968 if ac_fn_c_try_run "$LINENO"; then :
15969 ac_cv_func_fork_works=yes
15970 else
15971 ac_cv_func_fork_works=no
15973 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15974 conftest.$ac_objext conftest.beam conftest.$ac_ext
15978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
15979 $as_echo "$ac_cv_func_fork_works" >&6; }
15981 else
15982 ac_cv_func_fork_works=$ac_cv_func_fork
15984 if test "x$ac_cv_func_fork_works" = xcross; then
15985 case $host in
15986 *-*-amigaos* | *-*-msdosdjgpp*)
15987 # Override, as these systems have only a dummy fork() stub
15988 ac_cv_func_fork_works=no
15991 ac_cv_func_fork_works=yes
15993 esac
15994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
15995 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
15997 ac_cv_func_vfork_works=$ac_cv_func_vfork
15998 if test "x$ac_cv_func_vfork" = xyes; then
15999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
16000 $as_echo_n "checking for working vfork... " >&6; }
16001 if test "${ac_cv_func_vfork_works+set}" = set; then :
16002 $as_echo_n "(cached) " >&6
16003 else
16004 if test "$cross_compiling" = yes; then :
16005 ac_cv_func_vfork_works=cross
16006 else
16007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16008 /* end confdefs.h. */
16009 /* Thanks to Paul Eggert for this test. */
16010 $ac_includes_default
16011 #include <sys/wait.h>
16012 #ifdef HAVE_VFORK_H
16013 # include <vfork.h>
16014 #endif
16015 /* On some sparc systems, changes by the child to local and incoming
16016 argument registers are propagated back to the parent. The compiler
16017 is told about this with #include <vfork.h>, but some compilers
16018 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
16019 static variable whose address is put into a register that is
16020 clobbered by the vfork. */
16021 static void
16022 #ifdef __cplusplus
16023 sparc_address_test (int arg)
16024 # else
16025 sparc_address_test (arg) int arg;
16026 #endif
16028 static pid_t child;
16029 if (!child) {
16030 child = vfork ();
16031 if (child < 0) {
16032 perror ("vfork");
16033 _exit(2);
16035 if (!child) {
16036 arg = getpid();
16037 write(-1, "", 0);
16038 _exit (arg);
16044 main ()
16046 pid_t parent = getpid ();
16047 pid_t child;
16049 sparc_address_test (0);
16051 child = vfork ();
16053 if (child == 0) {
16054 /* Here is another test for sparc vfork register problems. This
16055 test uses lots of local variables, at least as many local
16056 variables as main has allocated so far including compiler
16057 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
16058 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
16059 reuse the register of parent for one of the local variables,
16060 since it will think that parent can't possibly be used any more
16061 in this routine. Assigning to the local variable will thus
16062 munge parent in the parent process. */
16063 pid_t
16064 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
16065 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
16066 /* Convince the compiler that p..p7 are live; otherwise, it might
16067 use the same hardware register for all 8 local variables. */
16068 if (p != p1 || p != p2 || p != p3 || p != p4
16069 || p != p5 || p != p6 || p != p7)
16070 _exit(1);
16072 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
16073 from child file descriptors. If the child closes a descriptor
16074 before it execs or exits, this munges the parent's descriptor
16075 as well. Test for this by closing stdout in the child. */
16076 _exit(close(fileno(stdout)) != 0);
16077 } else {
16078 int status;
16079 struct stat st;
16081 while (wait(&status) != child)
16083 return (
16084 /* Was there some problem with vforking? */
16085 child < 0
16087 /* Did the child fail? (This shouldn't happen.) */
16088 || status
16090 /* Did the vfork/compiler bug occur? */
16091 || parent != getpid()
16093 /* Did the file descriptor bug occur? */
16094 || fstat(fileno(stdout), &st) != 0
16098 _ACEOF
16099 if ac_fn_c_try_run "$LINENO"; then :
16100 ac_cv_func_vfork_works=yes
16101 else
16102 ac_cv_func_vfork_works=no
16104 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16105 conftest.$ac_objext conftest.beam conftest.$ac_ext
16109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
16110 $as_echo "$ac_cv_func_vfork_works" >&6; }
16113 if test "x$ac_cv_func_fork_works" = xcross; then
16114 ac_cv_func_vfork_works=$ac_cv_func_vfork
16115 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
16116 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
16119 if test "x$ac_cv_func_vfork_works" = xyes; then
16121 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
16123 else
16125 $as_echo "#define vfork fork" >>confdefs.h
16128 if test "x$ac_cv_func_fork_works" = xyes; then
16130 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
16135 for ac_func in snprintf
16136 do :
16137 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
16138 if test "x$ac_cv_func_snprintf" = x""yes; then :
16139 cat >>confdefs.h <<_ACEOF
16140 #define HAVE_SNPRINTF 1
16141 _ACEOF
16144 done
16147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
16148 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
16149 if test "${emacs_cv_langinfo_codeset+set}" = set; then :
16150 $as_echo_n "(cached) " >&6
16151 else
16152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16153 /* end confdefs.h. */
16154 #include <langinfo.h>
16156 main ()
16158 char* cs = nl_langinfo(CODESET);
16160 return 0;
16162 _ACEOF
16163 if ac_fn_c_try_link "$LINENO"; then :
16164 emacs_cv_langinfo_codeset=yes
16165 else
16166 emacs_cv_langinfo_codeset=no
16168 rm -f core conftest.err conftest.$ac_objext \
16169 conftest$ac_exeext conftest.$ac_ext
16172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
16173 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
16174 if test $emacs_cv_langinfo_codeset = yes; then
16176 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
16180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
16181 $as_echo_n "checking for mbstate_t... " >&6; }
16182 if test "${ac_cv_type_mbstate_t+set}" = set; then :
16183 $as_echo_n "(cached) " >&6
16184 else
16185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16186 /* end confdefs.h. */
16187 $ac_includes_default
16188 # include <wchar.h>
16190 main ()
16192 mbstate_t x; return sizeof x;
16194 return 0;
16196 _ACEOF
16197 if ac_fn_c_try_compile "$LINENO"; then :
16198 ac_cv_type_mbstate_t=yes
16199 else
16200 ac_cv_type_mbstate_t=no
16202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
16205 $as_echo "$ac_cv_type_mbstate_t" >&6; }
16206 if test $ac_cv_type_mbstate_t = yes; then
16208 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
16210 else
16212 $as_echo "#define mbstate_t int" >>confdefs.h
16216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
16217 $as_echo_n "checking for C restricted array declarations... " >&6; }
16218 if test "${emacs_cv_c_restrict_arr+set}" = set; then :
16219 $as_echo_n "(cached) " >&6
16220 else
16221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16222 /* end confdefs.h. */
16223 void fred (int x[__restrict]);
16225 main ()
16229 return 0;
16231 _ACEOF
16232 if ac_fn_c_try_compile "$LINENO"; then :
16233 emacs_cv_c_restrict_arr=yes
16234 else
16235 emacs_cv_c_restrict_arr=no
16237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
16240 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
16241 if test "$emacs_cv_c_restrict_arr" = yes; then
16243 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
16248 # Set up the CFLAGS for real compilation, so we can substitute it.
16249 CFLAGS="$REAL_CFLAGS"
16250 CPPFLAGS="$REAL_CPPFLAGS"
16252 ## Hack to detect a buggy GCC version.
16253 if test "x$GCC" = xyes \
16254 && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
16255 && test x"`echo $CFLAGS | grep '\-O[23]'`" != x \
16256 && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then
16257 as_fn_error "GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
16260 version=$PACKAGE_VERSION
16262 ### Specify what sort of things we'll be editing into Makefile and config.h.
16263 ### Use configuration here uncanonicalized to avoid exceeding size limits.
16266 ## Unused?
16287 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
16288 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
16289 ## end of LIBX_BASE, but nothing ever set it.
16294 ## Used in lwlib/Makefile.in.
16296 if test -n "${machfile}"; then
16297 M_FILE="\$(srcdir)/${machfile}"
16298 else
16299 M_FILE=
16301 S_FILE="\$(srcdir)/${opsysfile}"
16312 cat >>confdefs.h <<_ACEOF
16313 #define EMACS_CONFIGURATION "${canonical}"
16314 _ACEOF
16317 cat >>confdefs.h <<_ACEOF
16318 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
16319 _ACEOF
16321 if test -n "$machfile"; then
16323 cat >>confdefs.h <<_ACEOF
16324 #define config_machfile "${machfile}"
16325 _ACEOF
16329 cat >>confdefs.h <<_ACEOF
16330 #define config_opsysfile "${opsysfile}"
16331 _ACEOF
16334 XMENU_OBJ=
16335 XOBJ=
16336 FONT_OBJ=
16337 if test "${HAVE_X_WINDOWS}" = "yes" ; then
16339 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
16341 XMENU_OBJ=xmenu.o
16342 XOBJ="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
16343 FONT_OBJ=xfont.o
16344 if test "$HAVE_XFT" = "yes"; then
16345 FONT_OBJ="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
16346 elif test "$HAVE_FREETYPE" = "yes"; then
16347 FONT_OBJ="$FONT_OBJ ftfont.o ftxfont.o"
16355 WIDGET_OBJ=
16356 MOTIF_LIBW=
16357 if test "${USE_X_TOOLKIT}" != "none" ; then
16358 WIDGET_OBJ=widget.o
16360 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
16362 if test "${USE_X_TOOLKIT}" = "LUCID"; then
16364 $as_echo "#define USE_LUCID 1" >>confdefs.h
16366 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
16368 $as_echo "#define USE_MOTIF 1" >>confdefs.h
16370 MOTIF_LIBW=-lXm
16371 case "$opsys" in
16372 gnu-linux)
16373 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
16374 MOTIF_LIBW="$MOTIF_LIBW -lXpm"
16377 unixware)
16378 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
16379 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
16380 MOTIF_LIBW="MOTIF_LIBW -lXimp"
16383 aix4-2)
16384 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
16385 MOTIF_LIBW="$MOTIF_LIBW -li18n"
16387 esac
16388 MOTIF_LIBW="$MOTIF_LIBW $LIBXP"
16393 TOOLKIT_LIBW=
16394 case "$USE_X_TOOLKIT" in
16395 MOTIF) TOOLKIT_LIBW="$MOTIF_LIBW" ;;
16396 LUCID) TOOLKIT_LIBW="$LUCID_LIBW" ;;
16397 none) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW="$GTK_LIBS" ;;
16398 esac
16401 if test "$USE_X_TOOLKIT" = "none"; then
16402 LIBXT_OTHER="\$(LIBXSM)"
16403 OLDXMENU_TARGET="really-oldXMenu"
16404 else
16405 LIBXT_OTHER="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
16406 OLDXMENU_TARGET="really-lwlib"
16410 ## The X Menu stuff is present in the X10 distribution, but missing
16411 ## from X11. If we have X10, just use the installed library;
16412 ## otherwise, use our own copy.
16413 if test "${HAVE_X11}" = "yes" ; then
16415 $as_echo "#define HAVE_X11 1" >>confdefs.h
16418 if test "$USE_X_TOOLKIT" = "none"; then
16419 OLDXMENU="\${oldXMenudir}/libXMenu11.a"
16420 else
16421 OLDXMENU="\${lwlibdir}/liblw.a"
16423 LIBXMENU="\$(OLDXMENU)"
16424 LIBX_OTHER="\$(LIBXT) \$(LIBX_EXTRA)"
16425 OLDXMENU_DEPS="\${OLDXMENU} ../src/\${OLDXMENU}"
16426 else
16427 ## For a syntactically valid Makefile; not actually used for anything.
16428 ## See comments in src/Makefile.in.
16429 OLDXMENU=nothing
16430 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
16431 if test "${HAVE_X_WINDOWS}" = "yes"; then
16432 LIBXMENU="-lXMenu"
16433 else
16434 LIBXMENU=
16436 LIBX_OTHER=
16437 OLDXMENU_DEPS=
16440 if test "$HAVE_GTK" = "yes" || test "$HAVE_MENUS" != "yes"; then
16441 OLDXMENU_TARGET=
16442 OLDXMENU=nothing
16443 LIBXMENU=
16444 OLDXMENU_DEPS=
16453 if test "${HAVE_MENUS}" = "yes" ; then
16455 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
16459 if test "${GNU_MALLOC}" = "yes" ; then
16461 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
16465 RALLOC_OBJ=
16466 if test "${REL_ALLOC}" = "yes" ; then
16468 $as_echo "#define REL_ALLOC 1" >>confdefs.h
16471 test "$system_malloc" != "yes" && RALLOC_OBJ=ralloc.o
16475 if test "$opsys" = "cygwin"; then
16476 CYGWIN_OBJ="sheap.o"
16477 ## Cygwin differs because of its unexec().
16478 PRE_ALLOC_OBJ=
16479 POST_ALLOC_OBJ=lastfile.o
16480 else
16481 CYGWIN_OBJ=
16482 PRE_ALLOC_OBJ=lastfile.o
16483 POST_ALLOC_OBJ=
16489 # Configure gnulib here, now that we know LIBS.
16501 LIBC_FATAL_STDERR_=1
16502 export LIBC_FATAL_STDERR_
16504 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16505 # for constant arguments. Useless!
16506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
16507 $as_echo_n "checking for working alloca.h... " >&6; }
16508 if test "${ac_cv_working_alloca_h+set}" = set; then :
16509 $as_echo_n "(cached) " >&6
16510 else
16511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16512 /* end confdefs.h. */
16513 #include <alloca.h>
16515 main ()
16517 char *p = (char *) alloca (2 * sizeof (int));
16518 if (p) return 0;
16520 return 0;
16522 _ACEOF
16523 if ac_fn_c_try_link "$LINENO"; then :
16524 ac_cv_working_alloca_h=yes
16525 else
16526 ac_cv_working_alloca_h=no
16528 rm -f core conftest.err conftest.$ac_objext \
16529 conftest$ac_exeext conftest.$ac_ext
16531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
16532 $as_echo "$ac_cv_working_alloca_h" >&6; }
16533 if test $ac_cv_working_alloca_h = yes; then
16535 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
16539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
16540 $as_echo_n "checking for alloca... " >&6; }
16541 if test "${ac_cv_func_alloca_works+set}" = set; then :
16542 $as_echo_n "(cached) " >&6
16543 else
16544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16545 /* end confdefs.h. */
16546 #ifdef __GNUC__
16547 # define alloca __builtin_alloca
16548 #else
16549 # ifdef _MSC_VER
16550 # include <malloc.h>
16551 # define alloca _alloca
16552 # else
16553 # ifdef HAVE_ALLOCA_H
16554 # include <alloca.h>
16555 # else
16556 # ifdef _AIX
16557 #pragma alloca
16558 # else
16559 # ifndef alloca /* predefined by HP cc +Olibcalls */
16560 char *alloca ();
16561 # endif
16562 # endif
16563 # endif
16564 # endif
16565 #endif
16568 main ()
16570 char *p = (char *) alloca (1);
16571 if (p) return 0;
16573 return 0;
16575 _ACEOF
16576 if ac_fn_c_try_link "$LINENO"; then :
16577 ac_cv_func_alloca_works=yes
16578 else
16579 ac_cv_func_alloca_works=no
16581 rm -f core conftest.err conftest.$ac_objext \
16582 conftest$ac_exeext conftest.$ac_ext
16584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
16585 $as_echo "$ac_cv_func_alloca_works" >&6; }
16587 if test $ac_cv_func_alloca_works = yes; then
16589 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
16591 else
16592 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16593 # that cause trouble. Some versions do not even contain alloca or
16594 # contain a buggy version. If you still want to use their alloca,
16595 # use ar to extract alloca.o from them instead of compiling alloca.c.
16601 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
16603 $as_echo "#define C_ALLOCA 1" >>confdefs.h
16606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
16607 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
16608 if test "${ac_cv_os_cray+set}" = set; then :
16609 $as_echo_n "(cached) " >&6
16610 else
16611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16612 /* end confdefs.h. */
16613 #if defined CRAY && ! defined CRAY2
16614 webecray
16615 #else
16616 wenotbecray
16617 #endif
16619 _ACEOF
16620 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16621 $EGREP "webecray" >/dev/null 2>&1; then :
16622 ac_cv_os_cray=yes
16623 else
16624 ac_cv_os_cray=no
16626 rm -f conftest*
16629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
16630 $as_echo "$ac_cv_os_cray" >&6; }
16631 if test $ac_cv_os_cray = yes; then
16632 for ac_func in _getb67 GETB67 getb67; do
16633 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16634 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16635 eval as_val=\$$as_ac_var
16636 if test "x$as_val" = x""yes; then :
16638 cat >>confdefs.h <<_ACEOF
16639 #define CRAY_STACKSEG_END $ac_func
16640 _ACEOF
16642 break
16645 done
16648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
16649 $as_echo_n "checking stack direction for C alloca... " >&6; }
16650 if test "${ac_cv_c_stack_direction+set}" = set; then :
16651 $as_echo_n "(cached) " >&6
16652 else
16653 if test "$cross_compiling" = yes; then :
16654 ac_cv_c_stack_direction=0
16655 else
16656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16657 /* end confdefs.h. */
16658 $ac_includes_default
16660 find_stack_direction (int *addr, int depth)
16662 int dir, dummy = 0;
16663 if (! addr)
16664 addr = &dummy;
16665 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
16666 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
16667 return dir + dummy;
16671 main (int argc, char **argv)
16673 return find_stack_direction (0, argc + !argv + 20) < 0;
16675 _ACEOF
16676 if ac_fn_c_try_run "$LINENO"; then :
16677 ac_cv_c_stack_direction=1
16678 else
16679 ac_cv_c_stack_direction=-1
16681 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16682 conftest.$ac_objext conftest.beam conftest.$ac_ext
16686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
16687 $as_echo "$ac_cv_c_stack_direction" >&6; }
16688 cat >>confdefs.h <<_ACEOF
16689 #define STACK_DIRECTION $ac_cv_c_stack_direction
16690 _ACEOF
16698 for ac_func in $ac_func_list
16699 do :
16700 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16701 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16702 eval as_val=\$$as_ac_var
16703 if test "x$as_val" = x""yes; then :
16704 cat >>confdefs.h <<_ACEOF
16705 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16706 _ACEOF
16709 done
16714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
16715 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
16716 if test "${ac_cv_c_bigendian+set}" = set; then :
16717 $as_echo_n "(cached) " >&6
16718 else
16719 ac_cv_c_bigendian=unknown
16720 # See if we're dealing with a universal compiler.
16721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16722 /* end confdefs.h. */
16723 #ifndef __APPLE_CC__
16724 not a universal capable compiler
16725 #endif
16726 typedef int dummy;
16728 _ACEOF
16729 if ac_fn_c_try_compile "$LINENO"; then :
16731 # Check for potential -arch flags. It is not universal unless
16732 # there are at least two -arch flags with different values.
16733 ac_arch=
16734 ac_prev=
16735 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
16736 if test -n "$ac_prev"; then
16737 case $ac_word in
16738 i?86 | x86_64 | ppc | ppc64)
16739 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
16740 ac_arch=$ac_word
16741 else
16742 ac_cv_c_bigendian=universal
16743 break
16746 esac
16747 ac_prev=
16748 elif test "x$ac_word" = "x-arch"; then
16749 ac_prev=arch
16751 done
16753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16754 if test $ac_cv_c_bigendian = unknown; then
16755 # See if sys/param.h defines the BYTE_ORDER macro.
16756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16757 /* end confdefs.h. */
16758 #include <sys/types.h>
16759 #include <sys/param.h>
16762 main ()
16764 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
16765 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
16766 && LITTLE_ENDIAN)
16767 bogus endian macros
16768 #endif
16771 return 0;
16773 _ACEOF
16774 if ac_fn_c_try_compile "$LINENO"; then :
16775 # It does; now see whether it defined to BIG_ENDIAN or not.
16776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16777 /* end confdefs.h. */
16778 #include <sys/types.h>
16779 #include <sys/param.h>
16782 main ()
16784 #if BYTE_ORDER != BIG_ENDIAN
16785 not big endian
16786 #endif
16789 return 0;
16791 _ACEOF
16792 if ac_fn_c_try_compile "$LINENO"; then :
16793 ac_cv_c_bigendian=yes
16794 else
16795 ac_cv_c_bigendian=no
16797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16801 if test $ac_cv_c_bigendian = unknown; then
16802 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
16803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16804 /* end confdefs.h. */
16805 #include <limits.h>
16808 main ()
16810 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
16811 bogus endian macros
16812 #endif
16815 return 0;
16817 _ACEOF
16818 if ac_fn_c_try_compile "$LINENO"; then :
16819 # It does; now see whether it defined to _BIG_ENDIAN or not.
16820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16821 /* end confdefs.h. */
16822 #include <limits.h>
16825 main ()
16827 #ifndef _BIG_ENDIAN
16828 not big endian
16829 #endif
16832 return 0;
16834 _ACEOF
16835 if ac_fn_c_try_compile "$LINENO"; then :
16836 ac_cv_c_bigendian=yes
16837 else
16838 ac_cv_c_bigendian=no
16840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16844 if test $ac_cv_c_bigendian = unknown; then
16845 # Compile a test program.
16846 if test "$cross_compiling" = yes; then :
16847 # Try to guess by grepping values from an object file.
16848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16849 /* end confdefs.h. */
16850 short int ascii_mm[] =
16851 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
16852 short int ascii_ii[] =
16853 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
16854 int use_ascii (int i) {
16855 return ascii_mm[i] + ascii_ii[i];
16857 short int ebcdic_ii[] =
16858 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
16859 short int ebcdic_mm[] =
16860 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
16861 int use_ebcdic (int i) {
16862 return ebcdic_mm[i] + ebcdic_ii[i];
16864 extern int foo;
16867 main ()
16869 return use_ascii (foo) == use_ebcdic (foo);
16871 return 0;
16873 _ACEOF
16874 if ac_fn_c_try_compile "$LINENO"; then :
16875 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
16876 ac_cv_c_bigendian=yes
16878 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
16879 if test "$ac_cv_c_bigendian" = unknown; then
16880 ac_cv_c_bigendian=no
16881 else
16882 # finding both strings is unlikely to happen, but who knows?
16883 ac_cv_c_bigendian=unknown
16887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16888 else
16889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16890 /* end confdefs.h. */
16891 $ac_includes_default
16893 main ()
16896 /* Are we little or big endian? From Harbison&Steele. */
16897 union
16899 long int l;
16900 char c[sizeof (long int)];
16901 } u;
16902 u.l = 1;
16903 return u.c[sizeof (long int) - 1] == 1;
16906 return 0;
16908 _ACEOF
16909 if ac_fn_c_try_run "$LINENO"; then :
16910 ac_cv_c_bigendian=no
16911 else
16912 ac_cv_c_bigendian=yes
16914 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16915 conftest.$ac_objext conftest.beam conftest.$ac_ext
16920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
16921 $as_echo "$ac_cv_c_bigendian" >&6; }
16922 case $ac_cv_c_bigendian in #(
16923 yes)
16924 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
16925 ;; #(
16927 ;; #(
16928 universal)
16930 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
16932 ;; #(
16934 as_fn_error "unknown endianness
16935 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
16936 esac
16939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
16940 $as_echo_n "checking for inline... " >&6; }
16941 if test "${ac_cv_c_inline+set}" = set; then :
16942 $as_echo_n "(cached) " >&6
16943 else
16944 ac_cv_c_inline=no
16945 for ac_kw in inline __inline__ __inline; do
16946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16947 /* end confdefs.h. */
16948 #ifndef __cplusplus
16949 typedef int foo_t;
16950 static $ac_kw foo_t static_foo () {return 0; }
16951 $ac_kw foo_t foo () {return 0; }
16952 #endif
16954 _ACEOF
16955 if ac_fn_c_try_compile "$LINENO"; then :
16956 ac_cv_c_inline=$ac_kw
16958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16959 test "$ac_cv_c_inline" != no && break
16960 done
16963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
16964 $as_echo "$ac_cv_c_inline" >&6; }
16966 case $ac_cv_c_inline in
16967 inline | yes) ;;
16969 case $ac_cv_c_inline in
16970 no) ac_val=;;
16971 *) ac_val=$ac_cv_c_inline;;
16972 esac
16973 cat >>confdefs.h <<_ACEOF
16974 #ifndef __cplusplus
16975 #define inline $ac_val
16976 #endif
16977 _ACEOF
16979 esac
16982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtold conforms to C99" >&5
16983 $as_echo_n "checking whether strtold conforms to C99... " >&6; }
16984 if test "${gl_cv_func_c99_strtold+set}" = set; then :
16985 $as_echo_n "(cached) " >&6
16986 else
16987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16988 /* end confdefs.h. */
16989 /* On HP-UX before 11.23, strtold returns a struct instead of
16990 long double. Reject implementations like that, by requiring
16991 compatibility with the C99 prototype. */
16992 #include <stdlib.h>
16993 static long double (*p) (char const *, char **) = strtold;
16994 static long double
16995 test (char const *nptr, char **endptr)
16997 long double r;
16998 r = strtold (nptr, endptr);
16999 return r;
17002 main ()
17004 return test ("1.0", NULL) != 1 || p ("1.0", NULL) != 1;
17006 return 0;
17008 _ACEOF
17009 if ac_fn_c_try_link "$LINENO"; then :
17010 gl_cv_func_c99_strtold=yes
17011 else
17012 gl_cv_func_c99_strtold=no
17014 rm -f core conftest.err conftest.$ac_objext \
17015 conftest$ac_exeext conftest.$ac_ext
17017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_c99_strtold" >&5
17018 $as_echo "$gl_cv_func_c99_strtold" >&6; }
17019 if test $gl_cv_func_c99_strtold = yes; then
17021 $as_echo "#define HAVE_C99_STRTOLD 1" >>confdefs.h
17026 GNULIB_CHDIR=0;
17027 GNULIB_CHOWN=0;
17028 GNULIB_CLOSE=0;
17029 GNULIB_DUP=0;
17030 GNULIB_DUP2=0;
17031 GNULIB_DUP3=0;
17032 GNULIB_ENVIRON=0;
17033 GNULIB_EUIDACCESS=0;
17034 GNULIB_FACCESSAT=0;
17035 GNULIB_FCHDIR=0;
17036 GNULIB_FCHOWNAT=0;
17037 GNULIB_FDATASYNC=0;
17038 GNULIB_FSYNC=0;
17039 GNULIB_FTRUNCATE=0;
17040 GNULIB_GETCWD=0;
17041 GNULIB_GETDOMAINNAME=0;
17042 GNULIB_GETDTABLESIZE=0;
17043 GNULIB_GETGROUPS=0;
17044 GNULIB_GETHOSTNAME=0;
17045 GNULIB_GETLOGIN=0;
17046 GNULIB_GETLOGIN_R=0;
17047 GNULIB_GETPAGESIZE=0;
17048 GNULIB_GETUSERSHELL=0;
17049 GNULIB_GROUP_MEMBER=0;
17050 GNULIB_LCHOWN=0;
17051 GNULIB_LINK=0;
17052 GNULIB_LINKAT=0;
17053 GNULIB_LSEEK=0;
17054 GNULIB_PIPE=0;
17055 GNULIB_PIPE2=0;
17056 GNULIB_PREAD=0;
17057 GNULIB_PWRITE=0;
17058 GNULIB_READ=0;
17059 GNULIB_READLINK=0;
17060 GNULIB_READLINKAT=0;
17061 GNULIB_RMDIR=0;
17062 GNULIB_SLEEP=0;
17063 GNULIB_SYMLINK=0;
17064 GNULIB_SYMLINKAT=0;
17065 GNULIB_TTYNAME_R=0;
17066 GNULIB_UNISTD_H_GETOPT=0;
17067 GNULIB_UNISTD_H_NONBLOCKING=0;
17068 GNULIB_UNISTD_H_SIGPIPE=0;
17069 GNULIB_UNLINK=0;
17070 GNULIB_UNLINKAT=0;
17071 GNULIB_USLEEP=0;
17072 GNULIB_WRITE=0;
17073 HAVE_CHOWN=1;
17074 HAVE_DUP2=1;
17075 HAVE_DUP3=1;
17076 HAVE_EUIDACCESS=1;
17077 HAVE_FACCESSAT=1;
17078 HAVE_FCHDIR=1;
17079 HAVE_FCHOWNAT=1;
17080 HAVE_FDATASYNC=1;
17081 HAVE_FSYNC=1;
17082 HAVE_FTRUNCATE=1;
17083 HAVE_GETDTABLESIZE=1;
17084 HAVE_GETGROUPS=1;
17085 HAVE_GETHOSTNAME=1;
17086 HAVE_GETLOGIN=1;
17087 HAVE_GETPAGESIZE=1;
17088 HAVE_GROUP_MEMBER=1;
17089 HAVE_LCHOWN=1;
17090 HAVE_LINK=1;
17091 HAVE_LINKAT=1;
17092 HAVE_PIPE=1;
17093 HAVE_PIPE2=1;
17094 HAVE_PREAD=1;
17095 HAVE_PWRITE=1;
17096 HAVE_READLINK=1;
17097 HAVE_READLINKAT=1;
17098 HAVE_SLEEP=1;
17099 HAVE_SYMLINK=1;
17100 HAVE_SYMLINKAT=1;
17101 HAVE_UNLINKAT=1;
17102 HAVE_USLEEP=1;
17103 HAVE_DECL_ENVIRON=1;
17104 HAVE_DECL_FCHDIR=1;
17105 HAVE_DECL_FDATASYNC=1;
17106 HAVE_DECL_GETDOMAINNAME=1;
17107 HAVE_DECL_GETLOGIN_R=1;
17108 HAVE_DECL_GETPAGESIZE=1;
17109 HAVE_DECL_GETUSERSHELL=1;
17110 HAVE_DECL_TTYNAME_R=1;
17111 HAVE_OS_H=0;
17112 HAVE_SYS_PARAM_H=0;
17113 REPLACE_CHOWN=0;
17114 REPLACE_CLOSE=0;
17115 REPLACE_DUP=0;
17116 REPLACE_DUP2=0;
17117 REPLACE_FCHOWNAT=0;
17118 REPLACE_GETCWD=0;
17119 REPLACE_GETDOMAINNAME=0;
17120 REPLACE_GETLOGIN_R=0;
17121 REPLACE_GETGROUPS=0;
17122 REPLACE_GETPAGESIZE=0;
17123 REPLACE_LCHOWN=0;
17124 REPLACE_LINK=0;
17125 REPLACE_LINKAT=0;
17126 REPLACE_LSEEK=0;
17127 REPLACE_PREAD=0;
17128 REPLACE_PWRITE=0;
17129 REPLACE_READ=0;
17130 REPLACE_READLINK=0;
17131 REPLACE_RMDIR=0;
17132 REPLACE_SLEEP=0;
17133 REPLACE_SYMLINK=0;
17134 REPLACE_TTYNAME_R=0;
17135 REPLACE_UNLINK=0;
17136 REPLACE_UNLINKAT=0;
17137 REPLACE_USLEEP=0;
17138 REPLACE_WRITE=0;
17139 UNISTD_H_HAVE_WINSOCK2_H=0;
17140 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
17143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_dm_mode in struct stat" >&5
17144 $as_echo_n "checking for st_dm_mode in struct stat... " >&6; }
17145 if test "${ac_cv_struct_st_dm_mode+set}" = set; then :
17146 $as_echo_n "(cached) " >&6
17147 else
17148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17149 /* end confdefs.h. */
17151 #include <sys/types.h>
17152 #include <sys/stat.h>
17154 main ()
17156 struct stat s; s.st_dm_mode;
17158 return 0;
17160 _ACEOF
17161 if ac_fn_c_try_compile "$LINENO"; then :
17162 ac_cv_struct_st_dm_mode=yes
17163 else
17164 ac_cv_struct_st_dm_mode=no
17166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_st_dm_mode" >&5
17169 $as_echo "$ac_cv_struct_st_dm_mode" >&6; }
17171 if test $ac_cv_struct_st_dm_mode = yes; then
17173 $as_echo "#define HAVE_ST_DM_MODE 1" >>confdefs.h
17178 ac_fn_c_check_decl "$LINENO" "strmode" "ac_cv_have_decl_strmode" "$ac_includes_default"
17179 if test "x$ac_cv_have_decl_strmode" = x""yes; then :
17180 ac_have_decl=1
17181 else
17182 ac_have_decl=0
17185 cat >>confdefs.h <<_ACEOF
17186 #define HAVE_DECL_STRMODE $ac_have_decl
17187 _ACEOF
17190 GNULIB__EXIT=0;
17191 GNULIB_ATOLL=0;
17192 GNULIB_CALLOC_POSIX=0;
17193 GNULIB_CANONICALIZE_FILE_NAME=0;
17194 GNULIB_GETLOADAVG=0;
17195 GNULIB_GETSUBOPT=0;
17196 GNULIB_GRANTPT=0;
17197 GNULIB_MALLOC_POSIX=0;
17198 GNULIB_MBTOWC=0;
17199 GNULIB_MKDTEMP=0;
17200 GNULIB_MKOSTEMP=0;
17201 GNULIB_MKOSTEMPS=0;
17202 GNULIB_MKSTEMP=0;
17203 GNULIB_MKSTEMPS=0;
17204 GNULIB_PTSNAME=0;
17205 GNULIB_PUTENV=0;
17206 GNULIB_RANDOM_R=0;
17207 GNULIB_REALLOC_POSIX=0;
17208 GNULIB_REALPATH=0;
17209 GNULIB_RPMATCH=0;
17210 GNULIB_SETENV=0;
17211 GNULIB_STRTOD=0;
17212 GNULIB_STRTOLL=0;
17213 GNULIB_STRTOULL=0;
17214 GNULIB_SYSTEM_POSIX=0;
17215 GNULIB_UNLOCKPT=0;
17216 GNULIB_UNSETENV=0;
17217 GNULIB_WCTOMB=0;
17218 HAVE__EXIT=1;
17219 HAVE_ATOLL=1;
17220 HAVE_CANONICALIZE_FILE_NAME=1;
17221 HAVE_DECL_GETLOADAVG=1;
17222 HAVE_GETSUBOPT=1;
17223 HAVE_GRANTPT=1;
17224 HAVE_MKDTEMP=1;
17225 HAVE_MKOSTEMP=1;
17226 HAVE_MKOSTEMPS=1;
17227 HAVE_MKSTEMP=1;
17228 HAVE_MKSTEMPS=1;
17229 HAVE_PTSNAME=1;
17230 HAVE_RANDOM_H=1;
17231 HAVE_RANDOM_R=1;
17232 HAVE_REALPATH=1;
17233 HAVE_RPMATCH=1;
17234 HAVE_SETENV=1;
17235 HAVE_DECL_SETENV=1;
17236 HAVE_STRTOD=1;
17237 HAVE_STRTOLL=1;
17238 HAVE_STRTOULL=1;
17239 HAVE_STRUCT_RANDOM_DATA=1;
17240 HAVE_SYS_LOADAVG_H=0;
17241 HAVE_UNLOCKPT=1;
17242 HAVE_DECL_UNSETENV=1;
17243 REPLACE_CALLOC=0;
17244 REPLACE_CANONICALIZE_FILE_NAME=0;
17245 REPLACE_MALLOC=0;
17246 REPLACE_MBTOWC=0;
17247 REPLACE_MKSTEMP=0;
17248 REPLACE_PUTENV=0;
17249 REPLACE_REALLOC=0;
17250 REPLACE_REALPATH=0;
17251 REPLACE_SETENV=0;
17252 REPLACE_STRTOD=0;
17253 REPLACE_UNSETENV=0;
17254 REPLACE_WCTOMB=0;
17258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
17259 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
17260 if test "${gl_cv_have_include_next+set}" = set; then :
17261 $as_echo_n "(cached) " >&6
17262 else
17263 rm -rf conftestd1a conftestd1b conftestd2
17264 mkdir conftestd1a conftestd1b conftestd2
17265 cat <<EOF > conftestd1a/conftest.h
17266 #define DEFINED_IN_CONFTESTD1
17267 #include_next <conftest.h>
17268 #ifdef DEFINED_IN_CONFTESTD2
17269 int foo;
17270 #else
17271 #error "include_next doesn't work"
17272 #endif
17274 cat <<EOF > conftestd1b/conftest.h
17275 #define DEFINED_IN_CONFTESTD1
17276 #include <stdio.h>
17277 #include_next <conftest.h>
17278 #ifdef DEFINED_IN_CONFTESTD2
17279 int foo;
17280 #else
17281 #error "include_next doesn't work"
17282 #endif
17284 cat <<EOF > conftestd2/conftest.h
17285 #ifndef DEFINED_IN_CONFTESTD1
17286 #error "include_next test doesn't work"
17287 #endif
17288 #define DEFINED_IN_CONFTESTD2
17290 gl_save_CPPFLAGS="$CPPFLAGS"
17291 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
17292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17293 /* end confdefs.h. */
17294 #include <conftest.h>
17295 _ACEOF
17296 if ac_fn_c_try_compile "$LINENO"; then :
17297 gl_cv_have_include_next=yes
17298 else
17299 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
17300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17301 /* end confdefs.h. */
17302 #include <conftest.h>
17303 _ACEOF
17304 if ac_fn_c_try_compile "$LINENO"; then :
17305 gl_cv_have_include_next=buggy
17306 else
17307 gl_cv_have_include_next=no
17309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17313 CPPFLAGS="$gl_save_CPPFLAGS"
17314 rm -rf conftestd1a conftestd1b conftestd2
17317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
17318 $as_echo "$gl_cv_have_include_next" >&6; }
17319 PRAGMA_SYSTEM_HEADER=
17320 if test $gl_cv_have_include_next = yes; then
17321 INCLUDE_NEXT=include_next
17322 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
17323 if test -n "$GCC"; then
17324 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
17326 else
17327 if test $gl_cv_have_include_next = buggy; then
17328 INCLUDE_NEXT=include
17329 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
17330 else
17331 INCLUDE_NEXT=include
17332 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
17338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
17339 $as_echo_n "checking whether system header files limit the line length... " >&6; }
17340 if test "${gl_cv_pragma_columns+set}" = set; then :
17341 $as_echo_n "(cached) " >&6
17342 else
17343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17344 /* end confdefs.h. */
17346 #ifdef __TANDEM
17347 choke me
17348 #endif
17350 _ACEOF
17351 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17352 $EGREP "choke me" >/dev/null 2>&1; then :
17353 gl_cv_pragma_columns=yes
17354 else
17355 gl_cv_pragma_columns=no
17357 rm -f conftest*
17361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
17362 $as_echo "$gl_cv_pragma_columns" >&6; }
17363 if test $gl_cv_pragma_columns = yes; then
17364 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
17365 else
17366 PRAGMA_COLUMNS=
17385 if test $gl_cv_have_include_next = yes; then
17386 gl_cv_next_getopt_h='<'getopt.h'>'
17387 else
17388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
17389 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
17390 if test "${gl_cv_next_getopt_h+set}" = set; then :
17391 $as_echo_n "(cached) " >&6
17392 else
17394 if test $ac_cv_header_getopt_h = yes; then
17397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17398 /* end confdefs.h. */
17399 #include <getopt.h>
17401 _ACEOF
17402 case "$host_os" in
17403 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17404 *) gl_absname_cpp="$ac_cpp" ;;
17405 esac
17407 case "$host_os" in
17408 mingw*)
17409 gl_dirsep_regex='[/\\]'
17412 gl_dirsep_regex='/'
17414 esac
17416 gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'getopt.h|{
17417 s|.*"\(.*'"${gl_dirsep_regex}"'getopt.h\)".*|\1|
17418 s|^/[^/]|//&|
17422 gl_cv_next_getopt_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17423 sed -n "$gl_absolute_header_sed"`'"'
17424 else
17425 gl_cv_next_getopt_h='<'getopt.h'>'
17430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
17431 $as_echo "$gl_cv_next_getopt_h" >&6; }
17433 NEXT_GETOPT_H=$gl_cv_next_getopt_h
17435 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17436 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17437 gl_next_as_first_directive='<'getopt.h'>'
17438 else
17439 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17440 gl_next_as_first_directive=$gl_cv_next_getopt_h
17442 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H=$gl_next_as_first_directive
17447 if test $ac_cv_header_getopt_h = yes; then
17448 HAVE_GETOPT_H=1
17449 else
17450 HAVE_GETOPT_H=0
17454 gl_replace_getopt=
17456 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
17457 for ac_header in getopt.h
17458 do :
17459 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
17460 if test "x$ac_cv_header_getopt_h" = x""yes; then :
17461 cat >>confdefs.h <<_ACEOF
17462 #define HAVE_GETOPT_H 1
17463 _ACEOF
17465 else
17466 gl_replace_getopt=yes
17469 done
17473 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
17474 for ac_func in getopt_long_only
17475 do :
17476 ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
17477 if test "x$ac_cv_func_getopt_long_only" = x""yes; then :
17478 cat >>confdefs.h <<_ACEOF
17479 #define HAVE_GETOPT_LONG_ONLY 1
17480 _ACEOF
17482 else
17483 gl_replace_getopt=yes
17485 done
17489 if test -z "$gl_replace_getopt"; then
17490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
17491 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
17492 if test "${gl_cv_func_getopt_posix+set}" = set; then :
17493 $as_echo_n "(cached) " >&6
17494 else
17496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17497 /* end confdefs.h. */
17498 #include <unistd.h>
17500 main ()
17502 int *p = &optreset; return optreset;
17504 return 0;
17506 _ACEOF
17507 if ac_fn_c_try_link "$LINENO"; then :
17508 gl_optind_min=1
17509 else
17510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17511 /* end confdefs.h. */
17512 #include <getopt.h>
17514 main ()
17516 return !getopt_clip;
17518 return 0;
17520 _ACEOF
17521 if ac_fn_c_try_compile "$LINENO"; then :
17522 gl_optind_min=1
17523 else
17524 gl_optind_min=0
17526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17528 rm -f core conftest.err conftest.$ac_objext \
17529 conftest$ac_exeext conftest.$ac_ext
17531 gl_save_CPPFLAGS=$CPPFLAGS
17532 CPPFLAGS="$CPPFLAGS -DOPTIND_MIN=$gl_optind_min"
17533 if test "$cross_compiling" = yes; then :
17534 case "$host_os" in
17535 mingw*) gl_cv_func_getopt_posix="guessing no";;
17536 darwin* | aix*) gl_cv_func_getopt_posix="guessing no";;
17537 *) gl_cv_func_getopt_posix="guessing yes";;
17538 esac
17540 else
17541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17542 /* end confdefs.h. */
17544 #include <unistd.h>
17545 #include <stdlib.h>
17546 #include <string.h>
17549 main ()
17552 static char program[] = "program";
17553 static char a[] = "-a";
17554 static char foo[] = "foo";
17555 static char bar[] = "bar";
17556 char *argv[] = { program, a, foo, bar, NULL };
17557 int c;
17559 optind = OPTIND_MIN;
17560 opterr = 0;
17562 c = getopt (4, argv, "ab");
17563 if (!(c == 'a'))
17564 return 1;
17565 c = getopt (4, argv, "ab");
17566 if (!(c == -1))
17567 return 2;
17568 if (!(optind == 2))
17569 return 3;
17571 /* Some internal state exists at this point. */
17573 static char program[] = "program";
17574 static char donald[] = "donald";
17575 static char p[] = "-p";
17576 static char billy[] = "billy";
17577 static char duck[] = "duck";
17578 static char a[] = "-a";
17579 static char bar[] = "bar";
17580 char *argv[] = { program, donald, p, billy, duck, a, bar, NULL };
17581 int c;
17583 optind = OPTIND_MIN;
17584 opterr = 0;
17586 c = getopt (7, argv, "+abp:q:");
17587 if (!(c == -1))
17588 return 4;
17589 if (!(strcmp (argv[0], "program") == 0))
17590 return 5;
17591 if (!(strcmp (argv[1], "donald") == 0))
17592 return 6;
17593 if (!(strcmp (argv[2], "-p") == 0))
17594 return 7;
17595 if (!(strcmp (argv[3], "billy") == 0))
17596 return 8;
17597 if (!(strcmp (argv[4], "duck") == 0))
17598 return 9;
17599 if (!(strcmp (argv[5], "-a") == 0))
17600 return 10;
17601 if (!(strcmp (argv[6], "bar") == 0))
17602 return 11;
17603 if (!(optind == 1))
17604 return 12;
17606 /* Detect MacOS 10.5, AIX 7.1 bug. */
17608 static char program[] = "program";
17609 static char ab[] = "-ab";
17610 char *argv[3] = { program, ab, NULL };
17611 optind = OPTIND_MIN;
17612 opterr = 0;
17613 if (getopt (2, argv, "ab:") != 'a')
17614 return 13;
17615 if (getopt (2, argv, "ab:") != '?')
17616 return 14;
17617 if (optopt != 'b')
17618 return 15;
17619 if (optind != 2)
17620 return 16;
17623 return 0;
17626 _ACEOF
17627 if ac_fn_c_try_run "$LINENO"; then :
17628 gl_cv_func_getopt_posix=yes
17629 else
17630 gl_cv_func_getopt_posix=no
17632 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17633 conftest.$ac_objext conftest.beam conftest.$ac_ext
17636 CPPFLAGS=$gl_save_CPPFLAGS
17639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
17640 $as_echo "$gl_cv_func_getopt_posix" >&6; }
17641 case "$gl_cv_func_getopt_posix" in
17642 *no) gl_replace_getopt=yes ;;
17643 esac
17646 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
17647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
17648 $as_echo_n "checking for working GNU getopt function... " >&6; }
17649 if test "${gl_cv_func_getopt_gnu+set}" = set; then :
17650 $as_echo_n "(cached) " >&6
17651 else
17652 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
17653 # optstring is necessary for programs like m4 that have POSIX-mandated
17654 # semantics for supporting options interspersed with files.
17655 # Also, since getopt_long is a GNU extension, we require optind=0.
17656 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
17657 # so take care to revert to the correct (non-)export state.
17658 gl_awk_probe='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
17659 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
17660 xx) gl_had_POSIXLY_CORRECT=exported ;;
17661 x) gl_had_POSIXLY_CORRECT=yes ;;
17662 *) gl_had_POSIXLY_CORRECT= ;;
17663 esac
17664 POSIXLY_CORRECT=1
17665 export POSIXLY_CORRECT
17666 if test "$cross_compiling" = yes; then :
17667 case $host_os:$ac_cv_have_decl_optreset in
17668 *-gnu*:* | mingw*:*) gl_cv_func_getopt_gnu=no;;
17669 *:yes) gl_cv_func_getopt_gnu=no;;
17670 *) gl_cv_func_getopt_gnu=yes;;
17671 esac
17673 else
17674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17675 /* end confdefs.h. */
17676 #include <getopt.h>
17677 #include <stddef.h>
17678 #include <string.h>
17680 #include <stdlib.h>
17681 #if defined __MACH__ && defined __APPLE__
17682 /* Avoid a crash on MacOS X. */
17683 #include <mach/mach.h>
17684 #include <mach/mach_error.h>
17685 #include <mach/thread_status.h>
17686 #include <mach/exception.h>
17687 #include <mach/task.h>
17688 #include <pthread.h>
17689 /* The exception port on which our thread listens. */
17690 static mach_port_t our_exception_port;
17691 /* The main function of the thread listening for exceptions of type
17692 EXC_BAD_ACCESS. */
17693 static void *
17694 mach_exception_thread (void *arg)
17696 /* Buffer for a message to be received. */
17697 struct {
17698 mach_msg_header_t head;
17699 mach_msg_body_t msgh_body;
17700 char data[1024];
17701 } msg;
17702 mach_msg_return_t retval;
17703 /* Wait for a message on the exception port. */
17704 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
17705 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
17706 if (retval != MACH_MSG_SUCCESS)
17707 abort ();
17708 exit (1);
17710 static void
17711 nocrash_init (void)
17713 mach_port_t self = mach_task_self ();
17714 /* Allocate a port on which the thread shall listen for exceptions. */
17715 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
17716 == KERN_SUCCESS) {
17717 /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
17718 if (mach_port_insert_right (self, our_exception_port, our_exception_port,
17719 MACH_MSG_TYPE_MAKE_SEND)
17720 == KERN_SUCCESS) {
17721 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
17722 for us. */
17723 exception_mask_t mask = EXC_MASK_BAD_ACCESS;
17724 /* Create the thread listening on the exception port. */
17725 pthread_attr_t attr;
17726 pthread_t thread;
17727 if (pthread_attr_init (&attr) == 0
17728 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
17729 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
17730 pthread_attr_destroy (&attr);
17731 /* Replace the exception port info for these exceptions with our own.
17732 Note that we replace the exception port for the entire task, not only
17733 for a particular thread. This has the effect that when our exception
17734 port gets the message, the thread specific exception port has already
17735 been asked, and we don't need to bother about it.
17736 See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
17737 task_set_exception_ports (self, mask, our_exception_port,
17738 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
17743 #elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
17744 /* Avoid a crash on native Windows. */
17745 #define WIN32_LEAN_AND_MEAN
17746 #include <windows.h>
17747 #include <winerror.h>
17748 static LONG WINAPI
17749 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
17751 switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
17753 case EXCEPTION_ACCESS_VIOLATION:
17754 case EXCEPTION_IN_PAGE_ERROR:
17755 case EXCEPTION_STACK_OVERFLOW:
17756 case EXCEPTION_GUARD_PAGE:
17757 case EXCEPTION_PRIV_INSTRUCTION:
17758 case EXCEPTION_ILLEGAL_INSTRUCTION:
17759 case EXCEPTION_DATATYPE_MISALIGNMENT:
17760 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
17761 case EXCEPTION_NONCONTINUABLE_EXCEPTION:
17762 exit (1);
17764 return EXCEPTION_CONTINUE_SEARCH;
17766 static void
17767 nocrash_init (void)
17769 SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
17771 #else
17772 /* Avoid a crash on POSIX systems. */
17773 #include <signal.h>
17774 /* A POSIX signal handler. */
17775 static void
17776 exception_handler (int sig)
17778 exit (1);
17780 static void
17781 nocrash_init (void)
17783 #ifdef SIGSEGV
17784 signal (SIGSEGV, exception_handler);
17785 #endif
17786 #ifdef SIGBUS
17787 signal (SIGBUS, exception_handler);
17788 #endif
17790 #endif
17794 main ()
17797 int result = 0;
17799 nocrash_init();
17801 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
17802 and fails on MacOS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
17803 OSF/1 5.1, Solaris 10. */
17805 static char conftest[] = "conftest";
17806 static char plus[] = "-+";
17807 char *argv[3] = { conftest, plus, NULL };
17808 opterr = 0;
17809 if (getopt (2, argv, "+a") != '?')
17810 result |= 1;
17812 /* This code succeeds on glibc 2.8, mingw,
17813 and fails on MacOS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
17814 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
17816 static char program[] = "program";
17817 static char p[] = "-p";
17818 static char foo[] = "foo";
17819 static char bar[] = "bar";
17820 char *argv[] = { program, p, foo, bar, NULL };
17822 optind = 1;
17823 if (getopt (4, argv, "p::") != 'p')
17824 result |= 2;
17825 else if (optarg != NULL)
17826 result |= 4;
17827 else if (getopt (4, argv, "p::") != -1)
17828 result |= 6;
17829 else if (optind != 2)
17830 result |= 8;
17832 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
17834 static char program[] = "program";
17835 static char foo[] = "foo";
17836 static char p[] = "-p";
17837 char *argv[] = { program, foo, p, NULL };
17838 optind = 0;
17839 if (getopt (3, argv, "-p") != 1)
17840 result |= 16;
17841 else if (getopt (3, argv, "-p") != 'p')
17842 result |= 32;
17844 /* This code fails on glibc 2.11. */
17846 static char program[] = "program";
17847 static char b[] = "-b";
17848 static char a[] = "-a";
17849 char *argv[] = { program, b, a, NULL };
17850 optind = opterr = 0;
17851 if (getopt (3, argv, "+:a:b") != 'b')
17852 result |= 64;
17853 else if (getopt (3, argv, "+:a:b") != ':')
17854 result |= 64;
17856 /* This code dumps core on glibc 2.14. */
17858 static char program[] = "program";
17859 static char w[] = "-W";
17860 static char dummy[] = "dummy";
17861 char *argv[] = { program, w, dummy, NULL };
17862 optind = opterr = 1;
17863 if (getopt (3, argv, "W;") != 'W')
17864 result |= 128;
17866 return result;
17869 return 0;
17871 _ACEOF
17872 if ac_fn_c_try_run "$LINENO"; then :
17873 gl_cv_func_getopt_gnu=yes
17874 else
17875 gl_cv_func_getopt_gnu=no
17877 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17878 conftest.$ac_objext conftest.beam conftest.$ac_ext
17881 case $gl_had_POSIXLY_CORRECT in
17882 exported) ;;
17883 yes) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;}; POSIXLY_CORRECT=1 ;;
17884 *) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;} ;;
17885 esac
17888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
17889 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
17890 if test "$gl_cv_func_getopt_gnu" = "no"; then
17891 gl_replace_getopt=yes
17899 REPLACE_GETOPT=0
17902 if test -n "$gl_replace_getopt"; then :
17904 REPLACE_GETOPT=1
17909 if test $REPLACE_GETOPT = 1; then
17911 GETOPT_H=getopt.h
17913 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
17917 GNULIB_UNISTD_H_GETOPT=1
17920 ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
17921 if test "x$ac_cv_have_decl_getenv" = x""yes; then :
17922 ac_have_decl=1
17923 else
17924 ac_have_decl=0
17927 cat >>confdefs.h <<_ACEOF
17928 #define HAVE_DECL_GETENV $ac_have_decl
17929 _ACEOF
17932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
17933 $as_echo_n "checking for unsigned long long int... " >&6; }
17934 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
17935 $as_echo_n "(cached) " >&6
17936 else
17937 ac_cv_type_unsigned_long_long_int=yes
17938 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
17939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17940 /* end confdefs.h. */
17942 /* For now, do not test the preprocessor; as of 2007 there are too many
17943 implementations with broken preprocessors. Perhaps this can
17944 be revisited in 2012. In the meantime, code should not expect
17945 #if to work with literals wider than 32 bits. */
17946 /* Test literals. */
17947 long long int ll = 9223372036854775807ll;
17948 long long int nll = -9223372036854775807LL;
17949 unsigned long long int ull = 18446744073709551615ULL;
17950 /* Test constant expressions. */
17951 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
17952 ? 1 : -1)];
17953 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
17954 ? 1 : -1)];
17955 int i = 63;
17957 main ()
17959 /* Test availability of runtime routines for shift and division. */
17960 long long int llmax = 9223372036854775807ll;
17961 unsigned long long int ullmax = 18446744073709551615ull;
17962 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
17963 | (llmax / ll) | (llmax % ll)
17964 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
17965 | (ullmax / ull) | (ullmax % ull));
17967 return 0;
17970 _ACEOF
17971 if ac_fn_c_try_link "$LINENO"; then :
17973 else
17974 ac_cv_type_unsigned_long_long_int=no
17976 rm -f core conftest.err conftest.$ac_objext \
17977 conftest$ac_exeext conftest.$ac_ext
17980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
17981 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
17982 if test $ac_cv_type_unsigned_long_long_int = yes; then
17984 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
17990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
17991 $as_echo_n "checking for long long int... " >&6; }
17992 if test "${ac_cv_type_long_long_int+set}" = set; then :
17993 $as_echo_n "(cached) " >&6
17994 else
17995 ac_cv_type_long_long_int=yes
17996 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
17997 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
17998 if test $ac_cv_type_long_long_int = yes; then
17999 if test "$cross_compiling" = yes; then :
18001 else
18002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18003 /* end confdefs.h. */
18004 #include <limits.h>
18005 #ifndef LLONG_MAX
18006 # define HALF \
18007 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
18008 # define LLONG_MAX (HALF - 1 + HALF)
18009 #endif
18011 main ()
18013 long long int n = 1;
18014 int i;
18015 for (i = 0; ; i++)
18017 long long int m = n << i;
18018 if (m >> i != n)
18019 return 1;
18020 if (LLONG_MAX / 2 < m)
18021 break;
18023 return 0;
18025 return 0;
18027 _ACEOF
18028 if ac_fn_c_try_run "$LINENO"; then :
18030 else
18031 ac_cv_type_long_long_int=no
18033 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18034 conftest.$ac_objext conftest.beam conftest.$ac_ext
18040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
18041 $as_echo "$ac_cv_type_long_long_int" >&6; }
18042 if test $ac_cv_type_long_long_int = yes; then
18044 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
18053 gl_cv_c_multiarch=no
18054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18055 /* end confdefs.h. */
18056 #ifndef __APPLE_CC__
18057 not a universal capable compiler
18058 #endif
18059 typedef int dummy;
18061 _ACEOF
18062 if ac_fn_c_try_compile "$LINENO"; then :
18064 arch=
18065 prev=
18066 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
18067 if test -n "$prev"; then
18068 case $word in
18069 i?86 | x86_64 | ppc | ppc64)
18070 if test -z "$arch" || test "$arch" = "$word"; then
18071 arch="$word"
18072 else
18073 gl_cv_c_multiarch=yes
18076 esac
18077 prev=
18078 else
18079 if test "x$word" = "x-arch"; then
18080 prev=arch
18083 done
18086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18087 if test $gl_cv_c_multiarch = yes; then
18088 APPLE_UNIVERSAL_BUILD=1
18089 else
18090 APPLE_UNIVERSAL_BUILD=0
18097 if test $ac_cv_type_long_long_int = yes; then
18098 HAVE_LONG_LONG_INT=1
18099 else
18100 HAVE_LONG_LONG_INT=0
18104 if test $ac_cv_type_unsigned_long_long_int = yes; then
18105 HAVE_UNSIGNED_LONG_LONG_INT=1
18106 else
18107 HAVE_UNSIGNED_LONG_LONG_INT=0
18112 if test $ac_cv_header_wchar_h = yes; then
18113 HAVE_WCHAR_H=1
18114 else
18115 HAVE_WCHAR_H=0
18119 if test $ac_cv_header_inttypes_h = yes; then
18120 HAVE_INTTYPES_H=1
18121 else
18122 HAVE_INTTYPES_H=0
18126 if test $ac_cv_header_sys_types_h = yes; then
18127 HAVE_SYS_TYPES_H=1
18128 else
18129 HAVE_SYS_TYPES_H=0
18142 if test $gl_cv_have_include_next = yes; then
18143 gl_cv_next_stdint_h='<'stdint.h'>'
18144 else
18145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
18146 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
18147 if test "${gl_cv_next_stdint_h+set}" = set; then :
18148 $as_echo_n "(cached) " >&6
18149 else
18151 if test $ac_cv_header_stdint_h = yes; then
18154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18155 /* end confdefs.h. */
18156 #include <stdint.h>
18158 _ACEOF
18159 case "$host_os" in
18160 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18161 *) gl_absname_cpp="$ac_cpp" ;;
18162 esac
18164 case "$host_os" in
18165 mingw*)
18166 gl_dirsep_regex='[/\\]'
18169 gl_dirsep_regex='/'
18171 esac
18173 gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'stdint.h|{
18174 s|.*"\(.*'"${gl_dirsep_regex}"'stdint.h\)".*|\1|
18175 s|^/[^/]|//&|
18179 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18180 sed -n "$gl_absolute_header_sed"`'"'
18181 else
18182 gl_cv_next_stdint_h='<'stdint.h'>'
18187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
18188 $as_echo "$gl_cv_next_stdint_h" >&6; }
18190 NEXT_STDINT_H=$gl_cv_next_stdint_h
18192 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18193 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18194 gl_next_as_first_directive='<'stdint.h'>'
18195 else
18196 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18197 gl_next_as_first_directive=$gl_cv_next_stdint_h
18199 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
18204 if test $ac_cv_header_stdint_h = yes; then
18205 HAVE_STDINT_H=1
18206 else
18207 HAVE_STDINT_H=0
18211 if test $ac_cv_header_stdint_h = yes; then
18212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
18213 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
18214 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
18215 $as_echo_n "(cached) " >&6
18216 else
18217 gl_cv_header_working_stdint_h=no
18218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18219 /* end confdefs.h. */
18222 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
18223 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
18224 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
18225 #include <stdint.h>
18226 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
18227 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
18228 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
18229 #endif
18232 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18233 included before <wchar.h>. */
18234 #include <stddef.h>
18235 #include <signal.h>
18236 #if HAVE_WCHAR_H
18237 # include <stdio.h>
18238 # include <time.h>
18239 # include <wchar.h>
18240 #endif
18243 #ifdef INT8_MAX
18244 int8_t a1 = INT8_MAX;
18245 int8_t a1min = INT8_MIN;
18246 #endif
18247 #ifdef INT16_MAX
18248 int16_t a2 = INT16_MAX;
18249 int16_t a2min = INT16_MIN;
18250 #endif
18251 #ifdef INT32_MAX
18252 int32_t a3 = INT32_MAX;
18253 int32_t a3min = INT32_MIN;
18254 #endif
18255 #ifdef INT64_MAX
18256 int64_t a4 = INT64_MAX;
18257 int64_t a4min = INT64_MIN;
18258 #endif
18259 #ifdef UINT8_MAX
18260 uint8_t b1 = UINT8_MAX;
18261 #else
18262 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
18263 #endif
18264 #ifdef UINT16_MAX
18265 uint16_t b2 = UINT16_MAX;
18266 #endif
18267 #ifdef UINT32_MAX
18268 uint32_t b3 = UINT32_MAX;
18269 #endif
18270 #ifdef UINT64_MAX
18271 uint64_t b4 = UINT64_MAX;
18272 #endif
18273 int_least8_t c1 = INT8_C (0x7f);
18274 int_least8_t c1max = INT_LEAST8_MAX;
18275 int_least8_t c1min = INT_LEAST8_MIN;
18276 int_least16_t c2 = INT16_C (0x7fff);
18277 int_least16_t c2max = INT_LEAST16_MAX;
18278 int_least16_t c2min = INT_LEAST16_MIN;
18279 int_least32_t c3 = INT32_C (0x7fffffff);
18280 int_least32_t c3max = INT_LEAST32_MAX;
18281 int_least32_t c3min = INT_LEAST32_MIN;
18282 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
18283 int_least64_t c4max = INT_LEAST64_MAX;
18284 int_least64_t c4min = INT_LEAST64_MIN;
18285 uint_least8_t d1 = UINT8_C (0xff);
18286 uint_least8_t d1max = UINT_LEAST8_MAX;
18287 uint_least16_t d2 = UINT16_C (0xffff);
18288 uint_least16_t d2max = UINT_LEAST16_MAX;
18289 uint_least32_t d3 = UINT32_C (0xffffffff);
18290 uint_least32_t d3max = UINT_LEAST32_MAX;
18291 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
18292 uint_least64_t d4max = UINT_LEAST64_MAX;
18293 int_fast8_t e1 = INT_FAST8_MAX;
18294 int_fast8_t e1min = INT_FAST8_MIN;
18295 int_fast16_t e2 = INT_FAST16_MAX;
18296 int_fast16_t e2min = INT_FAST16_MIN;
18297 int_fast32_t e3 = INT_FAST32_MAX;
18298 int_fast32_t e3min = INT_FAST32_MIN;
18299 int_fast64_t e4 = INT_FAST64_MAX;
18300 int_fast64_t e4min = INT_FAST64_MIN;
18301 uint_fast8_t f1 = UINT_FAST8_MAX;
18302 uint_fast16_t f2 = UINT_FAST16_MAX;
18303 uint_fast32_t f3 = UINT_FAST32_MAX;
18304 uint_fast64_t f4 = UINT_FAST64_MAX;
18305 #ifdef INTPTR_MAX
18306 intptr_t g = INTPTR_MAX;
18307 intptr_t gmin = INTPTR_MIN;
18308 #endif
18309 #ifdef UINTPTR_MAX
18310 uintptr_t h = UINTPTR_MAX;
18311 #endif
18312 intmax_t i = INTMAX_MAX;
18313 uintmax_t j = UINTMAX_MAX;
18315 #include <limits.h> /* for CHAR_BIT */
18316 #define TYPE_MINIMUM(t) \
18317 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
18318 #define TYPE_MAXIMUM(t) \
18319 ((t) ((t) 0 < (t) -1 \
18320 ? (t) -1 \
18321 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
18322 struct s {
18323 int check_PTRDIFF:
18324 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
18325 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
18326 ? 1 : -1;
18327 /* Detect bug in FreeBSD 6.0 / ia64. */
18328 int check_SIG_ATOMIC:
18329 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
18330 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
18331 ? 1 : -1;
18332 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
18333 int check_WCHAR:
18334 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
18335 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
18336 ? 1 : -1;
18337 /* Detect bug in mingw. */
18338 int check_WINT:
18339 WINT_MIN == TYPE_MINIMUM (wint_t)
18340 && WINT_MAX == TYPE_MAXIMUM (wint_t)
18341 ? 1 : -1;
18343 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
18344 int check_UINT8_C:
18345 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
18346 int check_UINT16_C:
18347 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
18349 /* Detect bugs in OpenBSD 3.9 stdint.h. */
18350 #ifdef UINT8_MAX
18351 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
18352 #endif
18353 #ifdef UINT16_MAX
18354 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
18355 #endif
18356 #ifdef UINT32_MAX
18357 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
18358 #endif
18359 #ifdef UINT64_MAX
18360 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
18361 #endif
18362 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
18363 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
18364 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
18365 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
18366 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
18367 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
18368 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
18369 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
18370 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
18371 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
18372 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
18376 main ()
18380 return 0;
18382 _ACEOF
18383 if ac_fn_c_try_compile "$LINENO"; then :
18384 if test "$cross_compiling" = yes; then :
18385 gl_cv_header_working_stdint_h=yes
18387 else
18388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18389 /* end confdefs.h. */
18392 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
18393 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
18394 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
18395 #include <stdint.h>
18398 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18399 included before <wchar.h>. */
18400 #include <stddef.h>
18401 #include <signal.h>
18402 #if HAVE_WCHAR_H
18403 # include <stdio.h>
18404 # include <time.h>
18405 # include <wchar.h>
18406 #endif
18409 #include <stdio.h>
18410 #include <string.h>
18411 #define MVAL(macro) MVAL1(macro)
18412 #define MVAL1(expression) #expression
18413 static const char *macro_values[] =
18415 #ifdef INT8_MAX
18416 MVAL (INT8_MAX),
18417 #endif
18418 #ifdef INT16_MAX
18419 MVAL (INT16_MAX),
18420 #endif
18421 #ifdef INT32_MAX
18422 MVAL (INT32_MAX),
18423 #endif
18424 #ifdef INT64_MAX
18425 MVAL (INT64_MAX),
18426 #endif
18427 #ifdef UINT8_MAX
18428 MVAL (UINT8_MAX),
18429 #endif
18430 #ifdef UINT16_MAX
18431 MVAL (UINT16_MAX),
18432 #endif
18433 #ifdef UINT32_MAX
18434 MVAL (UINT32_MAX),
18435 #endif
18436 #ifdef UINT64_MAX
18437 MVAL (UINT64_MAX),
18438 #endif
18439 NULL
18443 main ()
18446 const char **mv;
18447 for (mv = macro_values; *mv != NULL; mv++)
18449 const char *value = *mv;
18450 /* Test whether it looks like a cast expression. */
18451 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
18452 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
18453 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
18454 || strncmp (value, "((int)"/*)*/, 6) == 0
18455 || strncmp (value, "((signed short)"/*)*/, 15) == 0
18456 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
18457 return mv - macro_values + 1;
18459 return 0;
18462 return 0;
18464 _ACEOF
18465 if ac_fn_c_try_run "$LINENO"; then :
18466 gl_cv_header_working_stdint_h=yes
18468 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18469 conftest.$ac_objext conftest.beam conftest.$ac_ext
18474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
18478 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
18480 if test "$gl_cv_header_working_stdint_h" = yes; then
18481 STDINT_H=
18482 else
18483 for ac_header in sys/inttypes.h sys/bitypes.h
18484 do :
18485 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18486 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18487 eval as_val=\$$as_ac_Header
18488 if test "x$as_val" = x""yes; then :
18489 cat >>confdefs.h <<_ACEOF
18490 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18491 _ACEOF
18495 done
18497 if test $ac_cv_header_sys_inttypes_h = yes; then
18498 HAVE_SYS_INTTYPES_H=1
18499 else
18500 HAVE_SYS_INTTYPES_H=0
18503 if test $ac_cv_header_sys_bitypes_h = yes; then
18504 HAVE_SYS_BITYPES_H=1
18505 else
18506 HAVE_SYS_BITYPES_H=0
18512 if test $APPLE_UNIVERSAL_BUILD = 0; then
18515 for gltype in ptrdiff_t size_t ; do
18516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
18517 $as_echo_n "checking for bit size of $gltype... " >&6; }
18518 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
18519 $as_echo_n "(cached) " >&6
18520 else
18521 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
18522 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18523 included before <wchar.h>. */
18524 #include <stddef.h>
18525 #include <signal.h>
18526 #if HAVE_WCHAR_H
18527 # include <stdio.h>
18528 # include <time.h>
18529 # include <wchar.h>
18530 #endif
18532 #include <limits.h>"; then :
18534 else
18535 result=unknown
18538 eval gl_cv_bitsizeof_${gltype}=\$result
18541 eval ac_res=\$gl_cv_bitsizeof_${gltype}
18542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18543 $as_echo "$ac_res" >&6; }
18544 eval result=\$gl_cv_bitsizeof_${gltype}
18545 if test $result = unknown; then
18546 result=0
18548 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18549 cat >>confdefs.h <<_ACEOF
18550 #define BITSIZEOF_${GLTYPE} $result
18551 _ACEOF
18553 eval BITSIZEOF_${GLTYPE}=\$result
18554 done
18560 for gltype in sig_atomic_t wchar_t wint_t ; do
18561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
18562 $as_echo_n "checking for bit size of $gltype... " >&6; }
18563 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
18564 $as_echo_n "(cached) " >&6
18565 else
18566 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
18567 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18568 included before <wchar.h>. */
18569 #include <stddef.h>
18570 #include <signal.h>
18571 #if HAVE_WCHAR_H
18572 # include <stdio.h>
18573 # include <time.h>
18574 # include <wchar.h>
18575 #endif
18577 #include <limits.h>"; then :
18579 else
18580 result=unknown
18583 eval gl_cv_bitsizeof_${gltype}=\$result
18586 eval ac_res=\$gl_cv_bitsizeof_${gltype}
18587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18588 $as_echo "$ac_res" >&6; }
18589 eval result=\$gl_cv_bitsizeof_${gltype}
18590 if test $result = unknown; then
18591 result=0
18593 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18594 cat >>confdefs.h <<_ACEOF
18595 #define BITSIZEOF_${GLTYPE} $result
18596 _ACEOF
18598 eval BITSIZEOF_${GLTYPE}=\$result
18599 done
18604 for gltype in sig_atomic_t wchar_t wint_t ; do
18605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
18606 $as_echo_n "checking whether $gltype is signed... " >&6; }
18607 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
18608 $as_echo_n "(cached) " >&6
18609 else
18610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18611 /* end confdefs.h. */
18613 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18614 included before <wchar.h>. */
18615 #include <stddef.h>
18616 #include <signal.h>
18617 #if HAVE_WCHAR_H
18618 # include <stdio.h>
18619 # include <time.h>
18620 # include <wchar.h>
18621 #endif
18623 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
18625 main ()
18629 return 0;
18631 _ACEOF
18632 if ac_fn_c_try_compile "$LINENO"; then :
18633 result=yes
18634 else
18635 result=no
18637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18638 eval gl_cv_type_${gltype}_signed=\$result
18641 eval ac_res=\$gl_cv_type_${gltype}_signed
18642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18643 $as_echo "$ac_res" >&6; }
18644 eval result=\$gl_cv_type_${gltype}_signed
18645 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18646 if test "$result" = yes; then
18647 cat >>confdefs.h <<_ACEOF
18648 #define HAVE_SIGNED_${GLTYPE} 1
18649 _ACEOF
18651 eval HAVE_SIGNED_${GLTYPE}=1
18652 else
18653 eval HAVE_SIGNED_${GLTYPE}=0
18655 done
18658 gl_cv_type_ptrdiff_t_signed=yes
18659 gl_cv_type_size_t_signed=no
18660 if test $APPLE_UNIVERSAL_BUILD = 0; then
18663 for gltype in ptrdiff_t size_t ; do
18664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
18665 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
18666 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
18667 $as_echo_n "(cached) " >&6
18668 else
18669 eval gl_cv_type_${gltype}_suffix=no
18670 eval result=\$gl_cv_type_${gltype}_signed
18671 if test "$result" = yes; then
18672 glsufu=
18673 else
18674 glsufu=u
18676 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
18677 case $glsuf in
18678 '') gltype1='int';;
18679 l) gltype1='long int';;
18680 ll) gltype1='long long int';;
18681 i64) gltype1='__int64';;
18682 u) gltype1='unsigned int';;
18683 ul) gltype1='unsigned long int';;
18684 ull) gltype1='unsigned long long int';;
18685 ui64)gltype1='unsigned __int64';;
18686 esac
18687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18688 /* end confdefs.h. */
18690 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18691 included before <wchar.h>. */
18692 #include <stddef.h>
18693 #include <signal.h>
18694 #if HAVE_WCHAR_H
18695 # include <stdio.h>
18696 # include <time.h>
18697 # include <wchar.h>
18698 #endif
18700 extern $gltype foo;
18701 extern $gltype1 foo;
18703 main ()
18707 return 0;
18709 _ACEOF
18710 if ac_fn_c_try_compile "$LINENO"; then :
18711 eval gl_cv_type_${gltype}_suffix=\$glsuf
18713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18714 eval result=\$gl_cv_type_${gltype}_suffix
18715 test "$result" != no && break
18716 done
18718 eval ac_res=\$gl_cv_type_${gltype}_suffix
18719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18720 $as_echo "$ac_res" >&6; }
18721 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18722 eval result=\$gl_cv_type_${gltype}_suffix
18723 test "$result" = no && result=
18724 eval ${GLTYPE}_SUFFIX=\$result
18725 cat >>confdefs.h <<_ACEOF
18726 #define ${GLTYPE}_SUFFIX $result
18727 _ACEOF
18729 done
18735 for gltype in sig_atomic_t wchar_t wint_t ; do
18736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
18737 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
18738 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
18739 $as_echo_n "(cached) " >&6
18740 else
18741 eval gl_cv_type_${gltype}_suffix=no
18742 eval result=\$gl_cv_type_${gltype}_signed
18743 if test "$result" = yes; then
18744 glsufu=
18745 else
18746 glsufu=u
18748 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
18749 case $glsuf in
18750 '') gltype1='int';;
18751 l) gltype1='long int';;
18752 ll) gltype1='long long int';;
18753 i64) gltype1='__int64';;
18754 u) gltype1='unsigned int';;
18755 ul) gltype1='unsigned long int';;
18756 ull) gltype1='unsigned long long int';;
18757 ui64)gltype1='unsigned __int64';;
18758 esac
18759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18760 /* end confdefs.h. */
18762 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18763 included before <wchar.h>. */
18764 #include <stddef.h>
18765 #include <signal.h>
18766 #if HAVE_WCHAR_H
18767 # include <stdio.h>
18768 # include <time.h>
18769 # include <wchar.h>
18770 #endif
18772 extern $gltype foo;
18773 extern $gltype1 foo;
18775 main ()
18779 return 0;
18781 _ACEOF
18782 if ac_fn_c_try_compile "$LINENO"; then :
18783 eval gl_cv_type_${gltype}_suffix=\$glsuf
18785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18786 eval result=\$gl_cv_type_${gltype}_suffix
18787 test "$result" != no && break
18788 done
18790 eval ac_res=\$gl_cv_type_${gltype}_suffix
18791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18792 $as_echo "$ac_res" >&6; }
18793 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18794 eval result=\$gl_cv_type_${gltype}_suffix
18795 test "$result" = no && result=
18796 eval ${GLTYPE}_SUFFIX=\$result
18797 cat >>confdefs.h <<_ACEOF
18798 #define ${GLTYPE}_SUFFIX $result
18799 _ACEOF
18801 done
18805 if test $BITSIZEOF_WINT_T -lt 32; then
18806 BITSIZEOF_WINT_T=32
18809 STDINT_H=stdint.h
18812 if test -n "$STDINT_H"; then
18813 GL_GENERATE_STDINT_H_TRUE=
18814 GL_GENERATE_STDINT_H_FALSE='#'
18815 else
18816 GL_GENERATE_STDINT_H_TRUE='#'
18817 GL_GENERATE_STDINT_H_FALSE=
18824 GNULIB_IMAXABS=0;
18825 GNULIB_IMAXDIV=0;
18826 GNULIB_STRTOIMAX=0;
18827 GNULIB_STRTOUMAX=0;
18828 HAVE_DECL_IMAXABS=1;
18829 HAVE_DECL_IMAXDIV=1;
18830 HAVE_DECL_STRTOIMAX=1;
18831 HAVE_DECL_STRTOUMAX=1;
18832 INT32_MAX_LT_INTMAX_MAX=1;
18833 INT64_MAX_EQ_LONG_MAX='defined _LP64';
18834 PRI_MACROS_BROKEN=0;
18835 PRIPTR_PREFIX=__PRIPTR_PREFIX;
18836 UINT32_MAX_LT_UINTMAX_MAX=1;
18837 UINT64_MAX_EQ_ULONG_MAX='defined _LP64';
18853 if test $gl_cv_have_include_next = yes; then
18854 gl_cv_next_inttypes_h='<'inttypes.h'>'
18855 else
18856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
18857 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
18858 if test "${gl_cv_next_inttypes_h+set}" = set; then :
18859 $as_echo_n "(cached) " >&6
18860 else
18862 if test $ac_cv_header_inttypes_h = yes; then
18865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18866 /* end confdefs.h. */
18867 #include <inttypes.h>
18869 _ACEOF
18870 case "$host_os" in
18871 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18872 *) gl_absname_cpp="$ac_cpp" ;;
18873 esac
18875 case "$host_os" in
18876 mingw*)
18877 gl_dirsep_regex='[/\\]'
18880 gl_dirsep_regex='/'
18882 esac
18884 gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'inttypes.h|{
18885 s|.*"\(.*'"${gl_dirsep_regex}"'inttypes.h\)".*|\1|
18886 s|^/[^/]|//&|
18890 gl_cv_next_inttypes_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18891 sed -n "$gl_absolute_header_sed"`'"'
18892 else
18893 gl_cv_next_inttypes_h='<'inttypes.h'>'
18898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
18899 $as_echo "$gl_cv_next_inttypes_h" >&6; }
18901 NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
18903 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18904 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18905 gl_next_as_first_directive='<'inttypes.h'>'
18906 else
18907 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18908 gl_next_as_first_directive=$gl_cv_next_inttypes_h
18910 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive
18919 $as_echo "#define GL_TRIGGER_STDC_LIMIT_MACROS 1" >>confdefs.h
18926 GNULIB_FCHMODAT=0;
18927 GNULIB_FSTAT=0;
18928 GNULIB_FSTATAT=0;
18929 GNULIB_FUTIMENS=0;
18930 GNULIB_LCHMOD=0;
18931 GNULIB_LSTAT=0;
18932 GNULIB_MKDIRAT=0;
18933 GNULIB_MKFIFO=0;
18934 GNULIB_MKFIFOAT=0;
18935 GNULIB_MKNOD=0;
18936 GNULIB_MKNODAT=0;
18937 GNULIB_STAT=0;
18938 GNULIB_UTIMENSAT=0;
18939 HAVE_FCHMODAT=1;
18940 HAVE_FSTATAT=1;
18941 HAVE_FUTIMENS=1;
18942 HAVE_LCHMOD=1;
18943 HAVE_LSTAT=1;
18944 HAVE_MKDIRAT=1;
18945 HAVE_MKFIFO=1;
18946 HAVE_MKFIFOAT=1;
18947 HAVE_MKNOD=1;
18948 HAVE_MKNODAT=1;
18949 HAVE_UTIMENSAT=1;
18950 REPLACE_FSTAT=0;
18951 REPLACE_FSTATAT=0;
18952 REPLACE_FUTIMENS=0;
18953 REPLACE_LSTAT=0;
18954 REPLACE_MKDIR=0;
18955 REPLACE_MKFIFO=0;
18956 REPLACE_MKNOD=0;
18957 REPLACE_STAT=0;
18958 REPLACE_UTIMENSAT=0;
18963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
18964 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
18965 if test "${gl_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
18966 $as_echo_n "(cached) " >&6
18967 else
18968 rm -f conftest.sym conftest.file
18969 echo >conftest.file
18970 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
18971 if test "$cross_compiling" = yes; then :
18972 # When cross-compiling, be pessimistic so we will end up using the
18973 # replacement version of lstat that checks for trailing slashes and
18974 # calls lstat a second time when necessary.
18975 gl_cv_func_lstat_dereferences_slashed_symlink=no
18977 else
18978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18979 /* end confdefs.h. */
18980 $ac_includes_default
18982 main ()
18984 struct stat sbuf;
18985 /* Linux will dereference the symlink and fail, as required by
18986 POSIX. That is better in the sense that it means we will not
18987 have to compile and use the lstat wrapper. */
18988 return lstat ("conftest.sym/", &sbuf) == 0;
18991 return 0;
18993 _ACEOF
18994 if ac_fn_c_try_run "$LINENO"; then :
18995 gl_cv_func_lstat_dereferences_slashed_symlink=yes
18996 else
18997 gl_cv_func_lstat_dereferences_slashed_symlink=no
18999 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19000 conftest.$ac_objext conftest.beam conftest.$ac_ext
19003 else
19004 # If the 'ln -s' command failed, then we probably don't even
19005 # have an lstat function.
19006 gl_cv_func_lstat_dereferences_slashed_symlink=no
19008 rm -f conftest.sym conftest.file
19011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
19012 $as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
19013 test $gl_cv_func_lstat_dereferences_slashed_symlink = yes &&
19015 cat >>confdefs.h <<_ACEOF
19016 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
19017 _ACEOF
19021 GNULIB_MKTIME=0;
19022 GNULIB_NANOSLEEP=0;
19023 GNULIB_STRPTIME=0;
19024 GNULIB_TIMEGM=0;
19025 GNULIB_TIME_R=0;
19026 HAVE_DECL_LOCALTIME_R=1;
19027 HAVE_NANOSLEEP=1;
19028 HAVE_STRPTIME=1;
19029 HAVE_TIMEGM=1;
19030 REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
19031 REPLACE_MKTIME=GNULIB_PORTCHECK;
19032 REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
19033 REPLACE_TIMEGM=GNULIB_PORTCHECK;
19040 GNULIB_PTHREAD_SIGMASK=0;
19041 GNULIB_RAISE=0;
19042 GNULIB_SIGNAL_H_SIGPIPE=0;
19043 GNULIB_SIGPROCMASK=0;
19044 GNULIB_SIGACTION=0;
19045 HAVE_POSIX_SIGNALBLOCKING=1;
19046 HAVE_PTHREAD_SIGMASK=1;
19047 HAVE_RAISE=1;
19048 HAVE_SIGSET_T=1;
19049 HAVE_SIGINFO_T=1;
19050 HAVE_SIGACTION=1;
19051 HAVE_STRUCT_SIGACTION_SA_SIGACTION=1;
19053 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=1;
19055 HAVE_SIGHANDLER_T=1;
19056 REPLACE_PTHREAD_SIGMASK=0;
19057 REPLACE_RAISE=0;
19062 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
19063 #include <signal.h>
19064 /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */
19065 #include <sys/types.h>
19068 if test "x$ac_cv_type_sigset_t" = x""yes; then :
19070 cat >>confdefs.h <<_ACEOF
19071 #define HAVE_SIGSET_T 1
19072 _ACEOF
19074 gl_cv_type_sigset_t=yes
19075 else
19076 gl_cv_type_sigset_t=no
19079 if test $gl_cv_type_sigset_t != yes; then
19080 HAVE_SIGSET_T=0
19087 if test $ac_cv_header_sys_socket_h = no; then
19088 for ac_header in ws2tcpip.h
19089 do :
19090 ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
19091 if test "x$ac_cv_header_ws2tcpip_h" = x""yes; then :
19092 cat >>confdefs.h <<_ACEOF
19093 #define HAVE_WS2TCPIP_H 1
19094 _ACEOF
19098 done
19102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
19103 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
19104 if test "${ac_cv_header_stdbool_h+set}" = set; then :
19105 $as_echo_n "(cached) " >&6
19106 else
19107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19108 /* end confdefs.h. */
19110 #include <stdbool.h>
19111 #ifndef bool
19112 "error: bool is not defined"
19113 #endif
19114 #ifndef false
19115 "error: false is not defined"
19116 #endif
19117 #if false
19118 "error: false is not 0"
19119 #endif
19120 #ifndef true
19121 "error: true is not defined"
19122 #endif
19123 #if true != 1
19124 "error: true is not 1"
19125 #endif
19126 #ifndef __bool_true_false_are_defined
19127 "error: __bool_true_false_are_defined is not defined"
19128 #endif
19130 struct s { _Bool s: 1; _Bool t; } s;
19132 char a[true == 1 ? 1 : -1];
19133 char b[false == 0 ? 1 : -1];
19134 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
19135 char d[(bool) 0.5 == true ? 1 : -1];
19136 /* See body of main program for 'e'. */
19137 char f[(_Bool) 0.0 == false ? 1 : -1];
19138 char g[true];
19139 char h[sizeof (_Bool)];
19140 char i[sizeof s.t];
19141 enum { j = false, k = true, l = false * true, m = true * 256 };
19142 /* The following fails for
19143 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
19144 _Bool n[m];
19145 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
19146 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
19147 /* Catch a bug in an HP-UX C compiler. See
19148 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
19149 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
19151 _Bool q = true;
19152 _Bool *pq = &q;
19155 main ()
19158 bool e = &s;
19159 *pq |= q;
19160 *pq |= ! q;
19161 /* Refer to every declared value, to avoid compiler optimizations. */
19162 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
19163 + !m + !n + !o + !p + !q + !pq);
19166 return 0;
19168 _ACEOF
19169 if ac_fn_c_try_compile "$LINENO"; then :
19170 ac_cv_header_stdbool_h=yes
19171 else
19172 ac_cv_header_stdbool_h=no
19174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
19177 $as_echo "$ac_cv_header_stdbool_h" >&6; }
19178 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
19179 if test "x$ac_cv_type__Bool" = x""yes; then :
19181 cat >>confdefs.h <<_ACEOF
19182 #define HAVE__BOOL 1
19183 _ACEOF
19190 REPLACE_NULL=0;
19191 HAVE_WCHAR_T=1;
19194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
19195 $as_echo_n "checking for wchar_t... " >&6; }
19196 if test "${gt_cv_c_wchar_t+set}" = set; then :
19197 $as_echo_n "(cached) " >&6
19198 else
19199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19200 /* end confdefs.h. */
19201 #include <stddef.h>
19202 wchar_t foo = (wchar_t)'\0';
19204 main ()
19208 return 0;
19210 _ACEOF
19211 if ac_fn_c_try_compile "$LINENO"; then :
19212 gt_cv_c_wchar_t=yes
19213 else
19214 gt_cv_c_wchar_t=no
19216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
19219 $as_echo "$gt_cv_c_wchar_t" >&6; }
19220 if test $gt_cv_c_wchar_t = yes; then
19222 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
19227 GNULIB_DPRINTF=0;
19228 GNULIB_FCLOSE=0;
19229 GNULIB_FDOPEN=0;
19230 GNULIB_FFLUSH=0;
19231 GNULIB_FGETC=0;
19232 GNULIB_FGETS=0;
19233 GNULIB_FOPEN=0;
19234 GNULIB_FPRINTF=0;
19235 GNULIB_FPRINTF_POSIX=0;
19236 GNULIB_FPURGE=0;
19237 GNULIB_FPUTC=0;
19238 GNULIB_FPUTS=0;
19239 GNULIB_FREAD=0;
19240 GNULIB_FREOPEN=0;
19241 GNULIB_FSCANF=0;
19242 GNULIB_FSEEK=0;
19243 GNULIB_FSEEKO=0;
19244 GNULIB_FTELL=0;
19245 GNULIB_FTELLO=0;
19246 GNULIB_FWRITE=0;
19247 GNULIB_GETC=0;
19248 GNULIB_GETCHAR=0;
19249 GNULIB_GETDELIM=0;
19250 GNULIB_GETLINE=0;
19251 GNULIB_GETS=0;
19252 GNULIB_OBSTACK_PRINTF=0;
19253 GNULIB_OBSTACK_PRINTF_POSIX=0;
19254 GNULIB_PCLOSE=0;
19255 GNULIB_PERROR=0;
19256 GNULIB_POPEN=0;
19257 GNULIB_PRINTF=0;
19258 GNULIB_PRINTF_POSIX=0;
19259 GNULIB_PUTC=0;
19260 GNULIB_PUTCHAR=0;
19261 GNULIB_PUTS=0;
19262 GNULIB_REMOVE=0;
19263 GNULIB_RENAME=0;
19264 GNULIB_RENAMEAT=0;
19265 GNULIB_SCANF=0;
19266 GNULIB_SNPRINTF=0;
19267 GNULIB_SPRINTF_POSIX=0;
19268 GNULIB_STDIO_H_NONBLOCKING=0;
19269 GNULIB_STDIO_H_SIGPIPE=0;
19270 GNULIB_TMPFILE=0;
19271 GNULIB_VASPRINTF=0;
19272 GNULIB_VFSCANF=0;
19273 GNULIB_VSCANF=0;
19274 GNULIB_VDPRINTF=0;
19275 GNULIB_VFPRINTF=0;
19276 GNULIB_VFPRINTF_POSIX=0;
19277 GNULIB_VPRINTF=0;
19278 GNULIB_VPRINTF_POSIX=0;
19279 GNULIB_VSNPRINTF=0;
19280 GNULIB_VSPRINTF_POSIX=0;
19281 HAVE_DECL_FPURGE=1;
19282 HAVE_DECL_FSEEKO=1;
19283 HAVE_DECL_FTELLO=1;
19284 HAVE_DECL_GETDELIM=1;
19285 HAVE_DECL_GETLINE=1;
19286 HAVE_DECL_OBSTACK_PRINTF=1;
19287 HAVE_DECL_SNPRINTF=1;
19288 HAVE_DECL_VSNPRINTF=1;
19289 HAVE_DPRINTF=1;
19290 HAVE_FSEEKO=1;
19291 HAVE_FTELLO=1;
19292 HAVE_PCLOSE=1;
19293 HAVE_POPEN=1;
19294 HAVE_RENAMEAT=1;
19295 HAVE_VASPRINTF=1;
19296 HAVE_VDPRINTF=1;
19297 REPLACE_DPRINTF=0;
19298 REPLACE_FCLOSE=0;
19299 REPLACE_FDOPEN=0;
19300 REPLACE_FFLUSH=0;
19301 REPLACE_FOPEN=0;
19302 REPLACE_FPRINTF=0;
19303 REPLACE_FPURGE=0;
19304 REPLACE_FREOPEN=0;
19305 REPLACE_FSEEK=0;
19306 REPLACE_FSEEKO=0;
19307 REPLACE_FTELL=0;
19308 REPLACE_FTELLO=0;
19309 REPLACE_GETDELIM=0;
19310 REPLACE_GETLINE=0;
19311 REPLACE_OBSTACK_PRINTF=0;
19312 REPLACE_PERROR=0;
19313 REPLACE_POPEN=0;
19314 REPLACE_PRINTF=0;
19315 REPLACE_REMOVE=0;
19316 REPLACE_RENAME=0;
19317 REPLACE_RENAMEAT=0;
19318 REPLACE_SNPRINTF=0;
19319 REPLACE_SPRINTF=0;
19320 REPLACE_STDIO_READ_FUNCS=0;
19321 REPLACE_STDIO_WRITE_FUNCS=0;
19322 REPLACE_TMPFILE=0;
19323 REPLACE_VASPRINTF=0;
19324 REPLACE_VDPRINTF=0;
19325 REPLACE_VFPRINTF=0;
19326 REPLACE_VPRINTF=0;
19327 REPLACE_VSNPRINTF=0;
19328 REPLACE_VSPRINTF=0;
19330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
19331 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
19332 if test "${ac_cv_struct_tm+set}" = set; then :
19333 $as_echo_n "(cached) " >&6
19334 else
19335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19336 /* end confdefs.h. */
19337 #include <sys/types.h>
19338 #include <time.h>
19341 main ()
19343 struct tm tm;
19344 int *p = &tm.tm_sec;
19345 return !p;
19347 return 0;
19349 _ACEOF
19350 if ac_fn_c_try_compile "$LINENO"; then :
19351 ac_cv_struct_tm=time.h
19352 else
19353 ac_cv_struct_tm=sys/time.h
19355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
19358 $as_echo "$ac_cv_struct_tm" >&6; }
19359 if test $ac_cv_struct_tm = sys/time.h; then
19361 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
19365 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
19366 #include <$ac_cv_struct_tm>
19369 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
19371 cat >>confdefs.h <<_ACEOF
19372 #define HAVE_STRUCT_TM_TM_ZONE 1
19373 _ACEOF
19378 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
19380 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
19382 else
19383 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
19385 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
19386 ac_have_decl=1
19387 else
19388 ac_have_decl=0
19391 cat >>confdefs.h <<_ACEOF
19392 #define HAVE_DECL_TZNAME $ac_have_decl
19393 _ACEOF
19395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
19396 $as_echo_n "checking for tzname... " >&6; }
19397 if test "${ac_cv_var_tzname+set}" = set; then :
19398 $as_echo_n "(cached) " >&6
19399 else
19400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19401 /* end confdefs.h. */
19402 #include <time.h>
19403 #if !HAVE_DECL_TZNAME
19404 extern char *tzname[];
19405 #endif
19408 main ()
19410 return tzname[0][0];
19412 return 0;
19414 _ACEOF
19415 if ac_fn_c_try_link "$LINENO"; then :
19416 ac_cv_var_tzname=yes
19417 else
19418 ac_cv_var_tzname=no
19420 rm -f core conftest.err conftest.$ac_objext \
19421 conftest$ac_exeext conftest.$ac_ext
19423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
19424 $as_echo "$ac_cv_var_tzname" >&6; }
19425 if test $ac_cv_var_tzname = yes; then
19427 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
19433 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
19435 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then :
19437 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
19446 ac_fn_c_check_decl "$LINENO" "strtoimax" "ac_cv_have_decl_strtoimax" "$ac_includes_default"
19447 if test "x$ac_cv_have_decl_strtoimax" = x""yes; then :
19448 ac_have_decl=1
19449 else
19450 ac_have_decl=0
19453 cat >>confdefs.h <<_ACEOF
19454 #define HAVE_DECL_STRTOIMAX $ac_have_decl
19455 _ACEOF
19459 ac_fn_c_check_decl "$LINENO" "strtoumax" "ac_cv_have_decl_strtoumax" "$ac_includes_default"
19460 if test "x$ac_cv_have_decl_strtoumax" = x""yes; then :
19461 ac_have_decl=1
19462 else
19463 ac_have_decl=0
19466 cat >>confdefs.h <<_ACEOF
19467 #define HAVE_DECL_STRTOUMAX $ac_have_decl
19468 _ACEOF
19472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
19473 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
19474 if test "${ac_cv_header_stat_broken+set}" = set; then :
19475 $as_echo_n "(cached) " >&6
19476 else
19477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19478 /* end confdefs.h. */
19479 #include <sys/types.h>
19480 #include <sys/stat.h>
19482 #if defined S_ISBLK && defined S_IFDIR
19483 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
19484 #endif
19486 #if defined S_ISBLK && defined S_IFCHR
19487 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
19488 #endif
19490 #if defined S_ISLNK && defined S_IFREG
19491 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
19492 #endif
19494 #if defined S_ISSOCK && defined S_IFREG
19495 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
19496 #endif
19498 _ACEOF
19499 if ac_fn_c_try_compile "$LINENO"; then :
19500 ac_cv_header_stat_broken=no
19501 else
19502 ac_cv_header_stat_broken=yes
19504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
19507 $as_echo "$ac_cv_header_stat_broken" >&6; }
19508 if test $ac_cv_header_stat_broken = yes; then
19510 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
19516 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
19517 if test "x$ac_cv_type_mode_t" = x""yes; then :
19519 else
19521 cat >>confdefs.h <<_ACEOF
19522 #define mode_t int
19523 _ACEOF
19527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
19528 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
19529 if test "${ac_cv_c_restrict+set}" = set; then :
19530 $as_echo_n "(cached) " >&6
19531 else
19532 ac_cv_c_restrict=no
19533 # The order here caters to the fact that C++ does not require restrict.
19534 for ac_kw in __restrict __restrict__ _Restrict restrict; do
19535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19536 /* end confdefs.h. */
19537 typedef int * int_ptr;
19538 int foo (int_ptr $ac_kw ip) {
19539 return ip[0];
19542 main ()
19544 int s[1];
19545 int * $ac_kw t = s;
19546 t[0] = 0;
19547 return foo(t)
19549 return 0;
19551 _ACEOF
19552 if ac_fn_c_try_compile "$LINENO"; then :
19553 ac_cv_c_restrict=$ac_kw
19555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19556 test "$ac_cv_c_restrict" != no && break
19557 done
19560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
19561 $as_echo "$ac_cv_c_restrict" >&6; }
19563 case $ac_cv_c_restrict in
19564 restrict) ;;
19565 no) $as_echo "#define restrict /**/" >>confdefs.h
19567 *) cat >>confdefs.h <<_ACEOF
19568 #define restrict $ac_cv_c_restrict
19569 _ACEOF
19571 esac
19577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
19578 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
19579 if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then :
19580 $as_echo_n "(cached) " >&6
19581 else
19582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19583 /* end confdefs.h. */
19584 #include <time.h>
19587 main ()
19589 static struct timespec x; x.tv_sec = x.tv_nsec;
19591 return 0;
19593 _ACEOF
19594 if ac_fn_c_try_compile "$LINENO"; then :
19595 gl_cv_sys_struct_timespec_in_time_h=yes
19596 else
19597 gl_cv_sys_struct_timespec_in_time_h=no
19599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
19602 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
19604 TIME_H_DEFINES_STRUCT_TIMESPEC=0
19605 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
19606 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
19607 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
19608 TIME_H_DEFINES_STRUCT_TIMESPEC=1
19609 else
19610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
19611 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
19612 if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then :
19613 $as_echo_n "(cached) " >&6
19614 else
19615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19616 /* end confdefs.h. */
19617 #include <sys/time.h>
19620 main ()
19622 static struct timespec x; x.tv_sec = x.tv_nsec;
19624 return 0;
19626 _ACEOF
19627 if ac_fn_c_try_compile "$LINENO"; then :
19628 gl_cv_sys_struct_timespec_in_sys_time_h=yes
19629 else
19630 gl_cv_sys_struct_timespec_in_sys_time_h=no
19632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
19635 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
19636 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
19637 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
19638 else
19639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
19640 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
19641 if test "${gl_cv_sys_struct_timespec_in_pthread_h+set}" = set; then :
19642 $as_echo_n "(cached) " >&6
19643 else
19644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19645 /* end confdefs.h. */
19646 #include <pthread.h>
19649 main ()
19651 static struct timespec x; x.tv_sec = x.tv_nsec;
19653 return 0;
19655 _ACEOF
19656 if ac_fn_c_try_compile "$LINENO"; then :
19657 gl_cv_sys_struct_timespec_in_pthread_h=yes
19658 else
19659 gl_cv_sys_struct_timespec_in_pthread_h=no
19661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
19664 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
19665 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
19666 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
19685 if test $gl_cv_have_include_next = yes; then
19686 gl_cv_next_time_h='<'time.h'>'
19687 else
19688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
19689 $as_echo_n "checking absolute name of <time.h>... " >&6; }
19690 if test "${gl_cv_next_time_h+set}" = set; then :
19691 $as_echo_n "(cached) " >&6
19692 else
19694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19695 /* end confdefs.h. */
19696 #include <time.h>
19698 _ACEOF
19699 case "$host_os" in
19700 aix*) gl_absname_cpp="$ac_cpp -C" ;;
19701 *) gl_absname_cpp="$ac_cpp" ;;
19702 esac
19704 case "$host_os" in
19705 mingw*)
19706 gl_dirsep_regex='[/\\]'
19709 gl_dirsep_regex='/'
19711 esac
19713 gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'time.h|{
19714 s|.*"\(.*'"${gl_dirsep_regex}"'time.h\)".*|\1|
19715 s|^/[^/]|//&|
19719 gl_cv_next_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19720 sed -n "$gl_absolute_header_sed"`'"'
19724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
19725 $as_echo "$gl_cv_next_time_h" >&6; }
19727 NEXT_TIME_H=$gl_cv_next_time_h
19729 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
19730 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19731 gl_next_as_first_directive='<'time.h'>'
19732 else
19733 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19734 gl_next_as_first_directive=$gl_cv_next_time_h
19736 NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
19743 ac_fn_c_check_decl "$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "$ac_includes_default"
19744 if test "x$ac_cv_have_decl_localtime_r" = x""yes; then :
19745 ac_have_decl=1
19746 else
19747 ac_have_decl=0
19750 cat >>confdefs.h <<_ACEOF
19751 #define HAVE_DECL_LOCALTIME_R $ac_have_decl
19752 _ACEOF
19757 if false; then
19758 GL_COND_LIBTOOL_TRUE=
19759 GL_COND_LIBTOOL_FALSE='#'
19760 else
19761 GL_COND_LIBTOOL_TRUE='#'
19762 GL_COND_LIBTOOL_FALSE=
19765 gl_cond_libtool=false
19766 gl_libdeps=
19767 gl_ltlibdeps=
19768 gl_m4_base='m4'
19778 gl_source_base='lib'
19781 if test $ac_cv_func_alloca_works = no; then
19785 # Define an additional variable used in the Makefile substitution.
19786 if test $ac_cv_working_alloca_h = yes; then
19787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
19788 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
19789 if test "${gl_cv_rpl_alloca+set}" = set; then :
19790 $as_echo_n "(cached) " >&6
19791 else
19793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19794 /* end confdefs.h. */
19796 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
19797 Need own alloca
19798 #endif
19800 _ACEOF
19801 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19802 $EGREP "Need own alloca" >/dev/null 2>&1; then :
19803 gl_cv_rpl_alloca=yes
19804 else
19805 gl_cv_rpl_alloca=no
19807 rm -f conftest*
19811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
19812 $as_echo "$gl_cv_rpl_alloca" >&6; }
19813 if test $gl_cv_rpl_alloca = yes; then
19815 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
19817 ALLOCA_H=alloca.h
19818 else
19819 ALLOCA_H=
19821 else
19822 ALLOCA_H=alloca.h
19825 if test -n "$ALLOCA_H"; then
19826 GL_GENERATE_ALLOCA_H_TRUE=
19827 GL_GENERATE_ALLOCA_H_FALSE='#'
19828 else
19829 GL_GENERATE_ALLOCA_H_TRUE='#'
19830 GL_GENERATE_ALLOCA_H_FALSE=
19859 $as_echo "#define HAVE_DUP2 1" >>confdefs.h
19862 if test $HAVE_DUP2 = 1; then
19863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5
19864 $as_echo_n "checking whether dup2 works... " >&6; }
19865 if test "${gl_cv_func_dup2_works+set}" = set; then :
19866 $as_echo_n "(cached) " >&6
19867 else
19868 if test "$cross_compiling" = yes; then :
19869 case "$host_os" in
19870 mingw*) # on this platform, dup2 always returns 0 for success
19871 gl_cv_func_dup2_works=no;;
19872 cygwin*) # on cygwin 1.5.x, dup2(1,1) returns 0
19873 gl_cv_func_dup2_works=no;;
19874 linux*) # On linux between 2008-07-27 and 2009-05-11, dup2 of a
19875 # closed fd may yield -EBADF instead of -1 / errno=EBADF.
19876 gl_cv_func_dup2_works=no;;
19877 freebsd*) # on FreeBSD 6.1, dup2(1,1000000) gives EMFILE, not EBADF.
19878 gl_cv_func_dup2_works=no;;
19879 haiku*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC.
19880 gl_cv_func_dup2_works=no;;
19881 *) gl_cv_func_dup2_works=yes;;
19882 esac
19883 else
19884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19885 /* end confdefs.h. */
19887 #include <unistd.h>
19888 #include <fcntl.h>
19889 #include <errno.h>
19891 main ()
19893 int result = 0;
19894 #ifdef FD_CLOEXEC
19895 if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1)
19896 result |= 1;
19897 #endif
19898 if (dup2 (1, 1) == 0)
19899 result |= 2;
19900 #ifdef FD_CLOEXEC
19901 if (fcntl (1, F_GETFD) != FD_CLOEXEC)
19902 result |= 4;
19903 #endif
19904 close (0);
19905 if (dup2 (0, 0) != -1)
19906 result |= 8;
19907 /* Many gnulib modules require POSIX conformance of EBADF. */
19908 if (dup2 (2, 1000000) == -1 && errno != EBADF)
19909 result |= 16;
19910 return result;
19913 return 0;
19916 _ACEOF
19917 if ac_fn_c_try_run "$LINENO"; then :
19918 gl_cv_func_dup2_works=yes
19919 else
19920 gl_cv_func_dup2_works=no
19922 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19923 conftest.$ac_objext conftest.beam conftest.$ac_ext
19928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5
19929 $as_echo "$gl_cv_func_dup2_works" >&6; }
19930 if test "$gl_cv_func_dup2_works" = no; then
19931 REPLACE_DUP2=1
19936 if test $HAVE_DUP2 = 0 || test $REPLACE_DUP2 = 1; then
19945 gl_LIBOBJS="$gl_LIBOBJS dup2.$ac_objext"
19954 GNULIB_DUP2=1
19966 # Persuade glibc <stdlib.h> to declare getloadavg().
19969 gl_save_LIBS=$LIBS
19971 # getloadvg is present in libc on glibc >= 2.2, MacOS X, FreeBSD >= 2.0,
19972 # NetBSD >= 0.9, OpenBSD >= 2.0, Solaris >= 7.
19973 HAVE_GETLOADAVG=1
19974 ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
19975 if test "x$ac_cv_func_getloadavg" = x""yes; then :
19977 else
19978 gl_func_getloadavg_done=no
19980 # Some systems with -lutil have (and need) -lkvm as well, some do not.
19981 # On Solaris, -lkvm requires nlist from -lelf, so check that first
19982 # to get the right answer into the cache.
19983 # For kstat on solaris, we need to test for libelf and libkvm to force the
19984 # definition of SVR4 below.
19985 if test $gl_func_getloadavg_done = no; then
19986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
19987 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
19988 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then :
19989 $as_echo_n "(cached) " >&6
19990 else
19991 ac_check_lib_save_LIBS=$LIBS
19992 LIBS="-lelf $LIBS"
19993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19994 /* end confdefs.h. */
19996 /* Override any GCC internal prototype to avoid an error.
19997 Use char because int might match the return type of a GCC
19998 builtin and then its argument prototype would still apply. */
19999 #ifdef __cplusplus
20000 extern "C"
20001 #endif
20002 char elf_begin ();
20004 main ()
20006 return elf_begin ();
20008 return 0;
20010 _ACEOF
20011 if ac_fn_c_try_link "$LINENO"; then :
20012 ac_cv_lib_elf_elf_begin=yes
20013 else
20014 ac_cv_lib_elf_elf_begin=no
20016 rm -f core conftest.err conftest.$ac_objext \
20017 conftest$ac_exeext conftest.$ac_ext
20018 LIBS=$ac_check_lib_save_LIBS
20020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
20021 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
20022 if test "x$ac_cv_lib_elf_elf_begin" = x""yes; then :
20023 LIBS="-lelf $LIBS"
20026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
20027 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
20028 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
20029 $as_echo_n "(cached) " >&6
20030 else
20031 ac_check_lib_save_LIBS=$LIBS
20032 LIBS="-lkvm $LIBS"
20033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20034 /* end confdefs.h. */
20036 /* Override any GCC internal prototype to avoid an error.
20037 Use char because int might match the return type of a GCC
20038 builtin and then its argument prototype would still apply. */
20039 #ifdef __cplusplus
20040 extern "C"
20041 #endif
20042 char kvm_open ();
20044 main ()
20046 return kvm_open ();
20048 return 0;
20050 _ACEOF
20051 if ac_fn_c_try_link "$LINENO"; then :
20052 ac_cv_lib_kvm_kvm_open=yes
20053 else
20054 ac_cv_lib_kvm_kvm_open=no
20056 rm -f core conftest.err conftest.$ac_objext \
20057 conftest$ac_exeext conftest.$ac_ext
20058 LIBS=$ac_check_lib_save_LIBS
20060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
20061 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
20062 if test "x$ac_cv_lib_kvm_kvm_open" = x""yes; then :
20063 LIBS="-lkvm $LIBS"
20066 # Check for the 4.4BSD definition of getloadavg.
20067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
20068 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
20069 if test "${ac_cv_lib_util_getloadavg+set}" = set; then :
20070 $as_echo_n "(cached) " >&6
20071 else
20072 ac_check_lib_save_LIBS=$LIBS
20073 LIBS="-lutil $LIBS"
20074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20075 /* end confdefs.h. */
20077 /* Override any GCC internal prototype to avoid an error.
20078 Use char because int might match the return type of a GCC
20079 builtin and then its argument prototype would still apply. */
20080 #ifdef __cplusplus
20081 extern "C"
20082 #endif
20083 char getloadavg ();
20085 main ()
20087 return getloadavg ();
20089 return 0;
20091 _ACEOF
20092 if ac_fn_c_try_link "$LINENO"; then :
20093 ac_cv_lib_util_getloadavg=yes
20094 else
20095 ac_cv_lib_util_getloadavg=no
20097 rm -f core conftest.err conftest.$ac_objext \
20098 conftest$ac_exeext conftest.$ac_ext
20099 LIBS=$ac_check_lib_save_LIBS
20101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
20102 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
20103 if test "x$ac_cv_lib_util_getloadavg" = x""yes; then :
20104 LIBS="-lutil $LIBS" gl_func_getloadavg_done=yes
20109 if test $gl_func_getloadavg_done = no; then
20110 # There is a commonly available library for RS/6000 AIX.
20111 # Since it is not a standard part of AIX, it might be installed locally.
20112 gl_getloadavg_LIBS=$LIBS
20113 LIBS="-L/usr/local/lib $LIBS"
20114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
20115 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
20116 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then :
20117 $as_echo_n "(cached) " >&6
20118 else
20119 ac_check_lib_save_LIBS=$LIBS
20120 LIBS="-lgetloadavg $LIBS"
20121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20122 /* end confdefs.h. */
20124 /* Override any GCC internal prototype to avoid an error.
20125 Use char because int might match the return type of a GCC
20126 builtin and then its argument prototype would still apply. */
20127 #ifdef __cplusplus
20128 extern "C"
20129 #endif
20130 char getloadavg ();
20132 main ()
20134 return getloadavg ();
20136 return 0;
20138 _ACEOF
20139 if ac_fn_c_try_link "$LINENO"; then :
20140 ac_cv_lib_getloadavg_getloadavg=yes
20141 else
20142 ac_cv_lib_getloadavg_getloadavg=no
20144 rm -f core conftest.err conftest.$ac_objext \
20145 conftest$ac_exeext conftest.$ac_ext
20146 LIBS=$ac_check_lib_save_LIBS
20148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
20149 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
20150 if test "x$ac_cv_lib_getloadavg_getloadavg" = x""yes; then :
20151 LIBS="-lgetloadavg $LIBS" gl_func_getloadavg_done=yes
20152 else
20153 LIBS=$gl_getloadavg_LIBS
20158 # Set up the replacement function if necessary.
20159 if test $gl_func_getloadavg_done = no; then
20160 HAVE_GETLOADAVG=0
20162 # Solaris has libkstat which does not require root.
20163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
20164 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
20165 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
20166 $as_echo_n "(cached) " >&6
20167 else
20168 ac_check_lib_save_LIBS=$LIBS
20169 LIBS="-lkstat $LIBS"
20170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20171 /* end confdefs.h. */
20173 /* Override any GCC internal prototype to avoid an error.
20174 Use char because int might match the return type of a GCC
20175 builtin and then its argument prototype would still apply. */
20176 #ifdef __cplusplus
20177 extern "C"
20178 #endif
20179 char kstat_open ();
20181 main ()
20183 return kstat_open ();
20185 return 0;
20187 _ACEOF
20188 if ac_fn_c_try_link "$LINENO"; then :
20189 ac_cv_lib_kstat_kstat_open=yes
20190 else
20191 ac_cv_lib_kstat_kstat_open=no
20193 rm -f core conftest.err conftest.$ac_objext \
20194 conftest$ac_exeext conftest.$ac_ext
20195 LIBS=$ac_check_lib_save_LIBS
20197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
20198 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
20199 if test "x$ac_cv_lib_kstat_kstat_open" = x""yes; then :
20200 cat >>confdefs.h <<_ACEOF
20201 #define HAVE_LIBKSTAT 1
20202 _ACEOF
20204 LIBS="-lkstat $LIBS"
20208 test $ac_cv_lib_kstat_kstat_open = yes && gl_func_getloadavg_done=yes
20210 # AIX has libperfstat which does not require root
20211 if test $gl_func_getloadavg_done = no; then
20212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perfstat_cpu_total in -lperfstat" >&5
20213 $as_echo_n "checking for perfstat_cpu_total in -lperfstat... " >&6; }
20214 if test "${ac_cv_lib_perfstat_perfstat_cpu_total+set}" = set; then :
20215 $as_echo_n "(cached) " >&6
20216 else
20217 ac_check_lib_save_LIBS=$LIBS
20218 LIBS="-lperfstat $LIBS"
20219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20220 /* end confdefs.h. */
20222 /* Override any GCC internal prototype to avoid an error.
20223 Use char because int might match the return type of a GCC
20224 builtin and then its argument prototype would still apply. */
20225 #ifdef __cplusplus
20226 extern "C"
20227 #endif
20228 char perfstat_cpu_total ();
20230 main ()
20232 return perfstat_cpu_total ();
20234 return 0;
20236 _ACEOF
20237 if ac_fn_c_try_link "$LINENO"; then :
20238 ac_cv_lib_perfstat_perfstat_cpu_total=yes
20239 else
20240 ac_cv_lib_perfstat_perfstat_cpu_total=no
20242 rm -f core conftest.err conftest.$ac_objext \
20243 conftest$ac_exeext conftest.$ac_ext
20244 LIBS=$ac_check_lib_save_LIBS
20246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_perfstat_perfstat_cpu_total" >&5
20247 $as_echo "$ac_cv_lib_perfstat_perfstat_cpu_total" >&6; }
20248 if test "x$ac_cv_lib_perfstat_perfstat_cpu_total" = x""yes; then :
20249 cat >>confdefs.h <<_ACEOF
20250 #define HAVE_LIBPERFSTAT 1
20251 _ACEOF
20253 LIBS="-lperfstat $LIBS"
20257 test $ac_cv_lib_perfstat_perfstat_cpu_total = yes && gl_func_getloadavg_done=yes
20260 if test $gl_func_getloadavg_done = no; then
20261 ac_fn_c_check_header_mongrel "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
20262 if test "x$ac_cv_header_sys_dg_sys_info_h" = x""yes; then :
20263 gl_func_getloadavg_done=yes
20265 $as_echo "#define DGUX 1" >>confdefs.h
20267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
20268 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
20269 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then :
20270 $as_echo_n "(cached) " >&6
20271 else
20272 ac_check_lib_save_LIBS=$LIBS
20273 LIBS="-ldgc $LIBS"
20274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20275 /* end confdefs.h. */
20277 /* Override any GCC internal prototype to avoid an error.
20278 Use char because int might match the return type of a GCC
20279 builtin and then its argument prototype would still apply. */
20280 #ifdef __cplusplus
20281 extern "C"
20282 #endif
20283 char dg_sys_info ();
20285 main ()
20287 return dg_sys_info ();
20289 return 0;
20291 _ACEOF
20292 if ac_fn_c_try_link "$LINENO"; then :
20293 ac_cv_lib_dgc_dg_sys_info=yes
20294 else
20295 ac_cv_lib_dgc_dg_sys_info=no
20297 rm -f core conftest.err conftest.$ac_objext \
20298 conftest$ac_exeext conftest.$ac_ext
20299 LIBS=$ac_check_lib_save_LIBS
20301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
20302 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
20303 if test "x$ac_cv_lib_dgc_dg_sys_info" = x""yes; then :
20304 cat >>confdefs.h <<_ACEOF
20305 #define HAVE_LIBDGC 1
20306 _ACEOF
20308 LIBS="-ldgc $LIBS"
20320 if test "x$gl_save_LIBS" = x; then
20321 GETLOADAVG_LIBS=$LIBS
20322 else
20323 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$gl_save_LIBS!!"`
20325 LIBS=$gl_save_LIBS
20328 # Test whether the system declares getloadavg. Solaris has the function
20329 # but declares it in <sys/loadavg.h>, not <stdlib.h>.
20330 for ac_header in sys/loadavg.h
20331 do :
20332 ac_fn_c_check_header_mongrel "$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default"
20333 if test "x$ac_cv_header_sys_loadavg_h" = x""yes; then :
20334 cat >>confdefs.h <<_ACEOF
20335 #define HAVE_SYS_LOADAVG_H 1
20336 _ACEOF
20340 done
20342 if test $ac_cv_header_sys_loadavg_h = yes; then
20343 HAVE_SYS_LOADAVG_H=1
20344 else
20345 HAVE_SYS_LOADAVG_H=0
20347 ac_fn_c_check_decl "$LINENO" "getloadavg" "ac_cv_have_decl_getloadavg" "#if HAVE_SYS_LOADAVG_H
20348 # include <sys/loadavg.h>
20349 #endif
20350 #include <stdlib.h>
20352 if test "x$ac_cv_have_decl_getloadavg" = x""yes; then :
20354 else
20355 HAVE_DECL_GETLOADAVG=0
20359 if test $HAVE_GETLOADAVG = 0; then
20368 gl_LIBOBJS="$gl_LIBOBJS getloadavg.$ac_objext"
20371 # Figure out what our getloadavg.c needs.
20373 # On HPUX9, an unprivileged user can get load averages this way.
20374 if test $gl_func_getloadavg_done = no; then
20375 for ac_func in pstat_getdynamic
20376 do :
20377 ac_fn_c_check_func "$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
20378 if test "x$ac_cv_func_pstat_getdynamic" = x""yes; then :
20379 cat >>confdefs.h <<_ACEOF
20380 #define HAVE_PSTAT_GETDYNAMIC 1
20381 _ACEOF
20382 gl_func_getloadavg_done=yes
20384 done
20388 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
20389 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
20390 # Irix 4.0.5F has the header but not the library.
20391 if test $gl_func_getloadavg_done = no && test "$ac_cv_lib_elf_elf_begin" = yes \
20392 && test "$ac_cv_lib_kvm_kvm_open" = yes; then
20393 gl_func_getloadavg_done=yes
20395 $as_echo "#define SVR4 1" >>confdefs.h
20399 if test $gl_func_getloadavg_done = no; then
20400 ac_fn_c_check_header_mongrel "$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
20401 if test "x$ac_cv_header_inq_stats_cpustats_h" = x""yes; then :
20402 gl_func_getloadavg_done=yes
20404 $as_echo "#define UMAX 1" >>confdefs.h
20407 $as_echo "#define UMAX4_3 1" >>confdefs.h
20414 if test $gl_func_getloadavg_done = no; then
20415 ac_fn_c_check_header_mongrel "$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
20416 if test "x$ac_cv_header_sys_cpustats_h" = x""yes; then :
20417 gl_func_getloadavg_done=yes; $as_echo "#define UMAX 1" >>confdefs.h
20424 if test $gl_func_getloadavg_done = no; then
20425 for ac_header in mach/mach.h
20426 do :
20427 ac_fn_c_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
20428 if test "x$ac_cv_header_mach_mach_h" = x""yes; then :
20429 cat >>confdefs.h <<_ACEOF
20430 #define HAVE_MACH_MACH_H 1
20431 _ACEOF
20435 done
20439 for ac_header in nlist.h
20440 do :
20441 ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
20442 if test "x$ac_cv_header_nlist_h" = x""yes; then :
20443 cat >>confdefs.h <<_ACEOF
20444 #define HAVE_NLIST_H 1
20445 _ACEOF
20446 ac_fn_c_check_member "$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
20448 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x""yes; then :
20450 cat >>confdefs.h <<_ACEOF
20451 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
20452 _ACEOF
20457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20458 /* end confdefs.h. */
20459 #include <nlist.h>
20461 main ()
20463 struct nlist x;
20464 #ifdef HAVE_STRUCT_NLIST_N_UN_N_NAME
20465 x.n_un.n_name = "";
20466 #else
20467 x.n_name = "";
20468 #endif
20470 return 0;
20472 _ACEOF
20473 if ac_fn_c_try_link "$LINENO"; then :
20475 $as_echo "#define N_NAME_POINTER 1" >>confdefs.h
20478 rm -f core conftest.err conftest.$ac_objext \
20479 conftest$ac_exeext conftest.$ac_ext
20483 done
20491 GNULIB_GETLOADAVG=1
20502 if test $REPLACE_GETOPT = 1; then
20511 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
20521 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
20532 REPLACE_GETOPT=0
20535 if test -n "$gl_replace_getopt"; then :
20537 REPLACE_GETOPT=1
20542 if test $REPLACE_GETOPT = 1; then
20544 GETOPT_H=getopt.h
20546 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
20550 GNULIB_UNISTD_H_GETOPT=1
20553 if test $REPLACE_GETOPT = 1; then
20562 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
20572 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
20583 if test $ac_cv_func_lstat = yes; then
20585 if test $gl_cv_func_lstat_dereferences_slashed_symlink = no; then
20586 REPLACE_LSTAT=1
20588 else
20589 HAVE_LSTAT=0
20592 if test $REPLACE_LSTAT = 1; then
20601 gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext"
20613 GNULIB_LSTAT=1
20625 if test $APPLE_UNIVERSAL_BUILD = 1; then
20626 # A universal build on Apple MacOS X platforms.
20627 # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode.
20628 # But we need a configuration result that is valid in both modes.
20629 gl_cv_func_working_mktime=no
20631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
20632 $as_echo_n "checking for working mktime... " >&6; }
20633 if test "${gl_cv_func_working_mktime+set}" = set; then :
20634 $as_echo_n "(cached) " >&6
20635 else
20636 if test "$cross_compiling" = yes; then :
20637 gl_cv_func_working_mktime=no
20638 else
20639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20640 /* end confdefs.h. */
20641 /* Test program from Paul Eggert and Tony Leneis. */
20642 #include <limits.h>
20643 #include <stdlib.h>
20644 #include <time.h>
20646 #ifdef HAVE_UNISTD_H
20647 # include <unistd.h>
20648 #endif
20650 #ifndef HAVE_ALARM
20651 # define alarm(X) /* empty */
20652 #endif
20654 /* Work around redefinition to rpl_putenv by other config tests. */
20655 #undef putenv
20657 static time_t time_t_max;
20658 static time_t time_t_min;
20660 /* Values we'll use to set the TZ environment variable. */
20661 static char *tz_strings[] = {
20662 (char *) 0, "TZ=GMT0", "TZ=JST-9",
20663 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
20665 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
20667 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
20668 Based on a problem report from Andreas Jaeger. */
20669 static int
20670 spring_forward_gap ()
20672 /* glibc (up to about 1998-10-07) failed this test. */
20673 struct tm tm;
20675 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
20676 instead of "TZ=America/Vancouver" in order to detect the bug even
20677 on systems that don't support the Olson extension, or don't have the
20678 full zoneinfo tables installed. */
20679 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
20681 tm.tm_year = 98;
20682 tm.tm_mon = 3;
20683 tm.tm_mday = 5;
20684 tm.tm_hour = 2;
20685 tm.tm_min = 0;
20686 tm.tm_sec = 0;
20687 tm.tm_isdst = -1;
20688 return mktime (&tm) != (time_t) -1;
20691 static int
20692 mktime_test1 (time_t now)
20694 struct tm *lt;
20695 return ! (lt = localtime (&now)) || mktime (lt) == now;
20698 static int
20699 mktime_test (time_t now)
20701 return (mktime_test1 (now)
20702 && mktime_test1 ((time_t) (time_t_max - now))
20703 && mktime_test1 ((time_t) (time_t_min + now)));
20706 static int
20707 irix_6_4_bug ()
20709 /* Based on code from Ariel Faigon. */
20710 struct tm tm;
20711 tm.tm_year = 96;
20712 tm.tm_mon = 3;
20713 tm.tm_mday = 0;
20714 tm.tm_hour = 0;
20715 tm.tm_min = 0;
20716 tm.tm_sec = 0;
20717 tm.tm_isdst = -1;
20718 mktime (&tm);
20719 return tm.tm_mon == 2 && tm.tm_mday == 31;
20722 static int
20723 bigtime_test (int j)
20725 struct tm tm;
20726 time_t now;
20727 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
20728 now = mktime (&tm);
20729 if (now != (time_t) -1)
20731 struct tm *lt = localtime (&now);
20732 if (! (lt
20733 && lt->tm_year == tm.tm_year
20734 && lt->tm_mon == tm.tm_mon
20735 && lt->tm_mday == tm.tm_mday
20736 && lt->tm_hour == tm.tm_hour
20737 && lt->tm_min == tm.tm_min
20738 && lt->tm_sec == tm.tm_sec
20739 && lt->tm_yday == tm.tm_yday
20740 && lt->tm_wday == tm.tm_wday
20741 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
20742 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
20743 return 0;
20745 return 1;
20748 static int
20749 year_2050_test ()
20751 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
20752 ignoring leap seconds. */
20753 unsigned long int answer = 2527315200UL;
20755 struct tm tm;
20756 time_t t;
20757 tm.tm_year = 2050 - 1900;
20758 tm.tm_mon = 2 - 1;
20759 tm.tm_mday = 1;
20760 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
20761 tm.tm_isdst = -1;
20763 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
20764 instead of "TZ=America/Vancouver" in order to detect the bug even
20765 on systems that don't support the Olson extension, or don't have the
20766 full zoneinfo tables installed. */
20767 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
20769 t = mktime (&tm);
20771 /* Check that the result is either a failure, or close enough
20772 to the correct answer that we can assume the discrepancy is
20773 due to leap seconds. */
20774 return (t == (time_t) -1
20775 || (0 < t && answer - 120 <= t && t <= answer + 120));
20779 main ()
20781 int result = 0;
20782 time_t t, delta;
20783 int i, j;
20784 int time_t_signed_magnitude = (time_t) ~ (time_t) 0 < (time_t) -1;
20785 int time_t_signed = ! ((time_t) 0 < (time_t) -1);
20787 /* This test makes some buggy mktime implementations loop.
20788 Give up after 60 seconds; a mktime slower than that
20789 isn't worth using anyway. */
20790 alarm (60);
20792 time_t_max = (! time_t_signed
20793 ? (time_t) -1
20794 : ((((time_t) 1 << (sizeof (time_t) * CHAR_BIT - 2)) - 1)
20795 * 2 + 1));
20796 time_t_min = (! time_t_signed
20797 ? (time_t) 0
20798 : time_t_signed_magnitude
20799 ? ~ (time_t) 0
20800 : ~ time_t_max);
20802 delta = time_t_max / 997; /* a suitable prime number */
20803 for (i = 0; i < N_STRINGS; i++)
20805 if (tz_strings[i])
20806 putenv (tz_strings[i]);
20808 for (t = 0; t <= time_t_max - delta; t += delta)
20809 if (! mktime_test (t))
20810 result |= 1;
20811 if (! (mktime_test ((time_t) 1)
20812 && mktime_test ((time_t) (60 * 60))
20813 && mktime_test ((time_t) (60 * 60 * 24))))
20814 result |= 2;
20816 for (j = 1; ; j <<= 1)
20817 if (! bigtime_test (j))
20818 result |= 4;
20819 else if (INT_MAX / 2 < j)
20820 break;
20821 if (! bigtime_test (INT_MAX))
20822 result |= 8;
20824 if (! irix_6_4_bug ())
20825 result |= 16;
20826 if (! spring_forward_gap ())
20827 result |= 32;
20828 if (! year_2050_test ())
20829 result |= 64;
20830 return result;
20832 _ACEOF
20833 if ac_fn_c_try_run "$LINENO"; then :
20834 gl_cv_func_working_mktime=yes
20835 else
20836 gl_cv_func_working_mktime=no
20838 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20839 conftest.$ac_objext conftest.beam conftest.$ac_ext
20844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_mktime" >&5
20845 $as_echo "$gl_cv_func_working_mktime" >&6; }
20847 if test $gl_cv_func_working_mktime = no; then
20848 REPLACE_MKTIME=1
20849 else
20850 REPLACE_MKTIME=0
20853 if test $REPLACE_MKTIME = 1; then
20862 gl_LIBOBJS="$gl_LIBOBJS mktime.$ac_objext"
20873 GNULIB_MKTIME=1
20882 LIB_PTHREAD_SIGMASK=
20885 if test $ac_cv_func_pthread_sigmask = yes; then
20887 else
20888 HAVE_PTHREAD_SIGMASK=0
20889 REPLACE_PTHREAD_SIGMASK=1
20895 if test $HAVE_PTHREAD_SIGMASK = 1; then
20898 if test -z "$LIB_PTHREAD_SIGMASK"; then
20899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask works without -lpthread" >&5
20900 $as_echo_n "checking whether pthread_sigmask works without -lpthread... " >&6; }
20901 if test "${gl_cv_func_pthread_sigmask_in_libc_works+set}" = set; then :
20902 $as_echo_n "(cached) " >&6
20903 else
20905 if test "$cross_compiling" = yes; then :
20907 case "$host_os" in
20908 freebsd* | hpux* | solaris | solaris2.[2-9]*)
20909 gl_cv_func_pthread_sigmask_in_libc_works="guessing no";;
20911 gl_cv_func_pthread_sigmask_in_libc_works="guessing yes";;
20912 esac
20914 else
20915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20916 /* end confdefs.h. */
20918 #include <pthread.h>
20919 #include <signal.h>
20920 #include <stddef.h>
20921 int main ()
20923 sigset_t set;
20924 sigemptyset (&set);
20925 return pthread_sigmask (1729, &set, NULL) != 0;
20927 _ACEOF
20928 if ac_fn_c_try_run "$LINENO"; then :
20929 gl_cv_func_pthread_sigmask_in_libc_works=no
20930 else
20931 gl_cv_func_pthread_sigmask_in_libc_works=yes
20933 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20934 conftest.$ac_objext conftest.beam conftest.$ac_ext
20939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_in_libc_works" >&5
20940 $as_echo "$gl_cv_func_pthread_sigmask_in_libc_works" >&6; }
20941 case "$gl_cv_func_pthread_sigmask_in_libc_works" in
20942 *no)
20943 REPLACE_PTHREAD_SIGMASK=1
20945 $as_echo "#define PTHREAD_SIGMASK_INEFFECTIVE 1" >>confdefs.h
20948 esac
20951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask returns error numbers" >&5
20952 $as_echo_n "checking whether pthread_sigmask returns error numbers... " >&6; }
20953 if test "${gl_cv_func_pthread_sigmask_return_works+set}" = set; then :
20954 $as_echo_n "(cached) " >&6
20955 else
20957 gl_save_LIBS="$LIBS"
20958 LIBS="$LIBS $LIB_PTHREAD_SIGMASK"
20959 if test "$cross_compiling" = yes; then :
20960 case "$host_os" in
20961 cygwin*)
20962 gl_cv_func_pthread_sigmask_return_works="guessing no";;
20964 gl_cv_func_pthread_sigmask_return_works="guessing yes";;
20965 esac
20967 else
20968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20969 /* end confdefs.h. */
20971 #include <pthread.h>
20972 #include <signal.h>
20973 #include <stddef.h>
20974 int main ()
20976 sigset_t set;
20977 sigemptyset (&set);
20978 if (pthread_sigmask (1729, &set, NULL) == -1)
20979 return 1;
20980 return 0;
20982 _ACEOF
20983 if ac_fn_c_try_run "$LINENO"; then :
20984 gl_cv_func_pthread_sigmask_return_works=yes
20985 else
20986 gl_cv_func_pthread_sigmask_return_works=no
20988 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20989 conftest.$ac_objext conftest.beam conftest.$ac_ext
20992 LIBS="$gl_save_LIBS"
20995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_return_works" >&5
20996 $as_echo "$gl_cv_func_pthread_sigmask_return_works" >&6; }
20997 case "$gl_cv_func_pthread_sigmask_return_works" in
20998 *no)
20999 REPLACE_PTHREAD_SIGMASK=1
21001 $as_echo "#define PTHREAD_SIGMASK_FAILS_WITH_ERRNO 1" >>confdefs.h
21004 esac
21006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask unblocks signals correctly" >&5
21007 $as_echo_n "checking whether pthread_sigmask unblocks signals correctly... " >&6; }
21008 if test "${gl_cv_func_pthread_sigmask_unblock_works+set}" = set; then :
21009 $as_echo_n "(cached) " >&6
21010 else
21012 case "$host_os" in
21013 irix*)
21014 gl_cv_func_pthread_sigmask_unblock_works="guessing no";;
21016 gl_cv_func_pthread_sigmask_unblock_works="guessing yes";;
21017 esac
21018 gl_save_LIBS="$LIBS"
21019 LIBS="$LIBS $LIBMULTITHREAD"
21020 if test "$cross_compiling" = yes; then :
21022 else
21023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21024 /* end confdefs.h. */
21026 #include <pthread.h>
21027 #include <signal.h>
21028 #include <stdio.h>
21029 #include <stdlib.h>
21030 #include <unistd.h>
21031 static volatile int sigint_occurred;
21032 static void
21033 sigint_handler (int sig)
21035 sigint_occurred++;
21037 int main ()
21039 sigset_t set;
21040 int pid = getpid ();
21041 char command[80];
21042 signal (SIGINT, sigint_handler);
21043 sigemptyset (&set);
21044 sigaddset (&set, SIGINT);
21045 if (!(pthread_sigmask (SIG_BLOCK, &set, NULL) == 0))
21046 return 1;
21047 sprintf (command, "sh -c 'sleep 1; kill -%d %d' &", SIGINT, pid);
21048 if (!(system (command) == 0))
21049 return 2;
21050 sleep (2);
21051 if (!(sigint_occurred == 0))
21052 return 3;
21053 if (!(pthread_sigmask (SIG_UNBLOCK, &set, NULL) == 0))
21054 return 4;
21055 if (!(sigint_occurred == 1)) /* This fails on IRIX. */
21056 return 5;
21057 return 0;
21059 _ACEOF
21060 if ac_fn_c_try_run "$LINENO"; then :
21062 else
21063 gl_cv_func_pthread_sigmask_unblock_works=no
21065 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21066 conftest.$ac_objext conftest.beam conftest.$ac_ext
21069 LIBS="$gl_save_LIBS"
21072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_unblock_works" >&5
21073 $as_echo "$gl_cv_func_pthread_sigmask_unblock_works" >&6; }
21074 case "$gl_cv_func_pthread_sigmask_unblock_works" in
21075 *no)
21076 REPLACE_PTHREAD_SIGMASK=1
21078 $as_echo "#define PTHREAD_SIGMASK_UNBLOCK_BUG 1" >>confdefs.h
21081 esac
21084 if test $HAVE_PTHREAD_SIGMASK = 0 || test $REPLACE_PTHREAD_SIGMASK = 1; then
21093 gl_LIBOBJS="$gl_LIBOBJS pthread_sigmask.$ac_objext"
21096 if test $HAVE_PTHREAD_SIGMASK = 1; then
21098 $as_echo "#define HAVE_PTHREAD_SIGMASK 1" >>confdefs.h
21108 GNULIB_PTHREAD_SIGMASK=1
21117 if test $ac_cv_func_readlink = no; then
21118 HAVE_READLINK=0
21119 else
21120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
21121 $as_echo_n "checking whether readlink signature is correct... " >&6; }
21122 if test "${gl_cv_decl_readlink_works+set}" = set; then :
21123 $as_echo_n "(cached) " >&6
21124 else
21125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21126 /* end confdefs.h. */
21127 #include <unistd.h>
21128 /* Cause compilation failure if original declaration has wrong type. */
21129 ssize_t readlink (const char *, char *, size_t);
21131 main ()
21135 return 0;
21137 _ACEOF
21138 if ac_fn_c_try_compile "$LINENO"; then :
21139 gl_cv_decl_readlink_works=yes
21140 else
21141 gl_cv_decl_readlink_works=no
21143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
21146 $as_echo "$gl_cv_decl_readlink_works" >&6; }
21147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
21148 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
21149 if test "${gl_cv_func_readlink_works+set}" = set; then :
21150 $as_echo_n "(cached) " >&6
21151 else
21152 # We have readlink, so assume ln -s works.
21153 ln -s conftest.no-such conftest.link
21154 ln -s conftest.link conftest.lnk2
21155 if test "$cross_compiling" = yes; then :
21156 gl_cv_func_readlink_works="guessing no"
21157 else
21158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21159 /* end confdefs.h. */
21160 #include <unistd.h>
21163 main ()
21165 char buf[20];
21166 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
21168 return 0;
21170 _ACEOF
21171 if ac_fn_c_try_run "$LINENO"; then :
21172 gl_cv_func_readlink_works=yes
21173 else
21174 gl_cv_func_readlink_works=no
21176 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21177 conftest.$ac_objext conftest.beam conftest.$ac_ext
21180 rm -f conftest.link conftest.lnk2
21182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
21183 $as_echo "$gl_cv_func_readlink_works" >&6; }
21184 if test "$gl_cv_func_readlink_works" != yes; then
21186 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
21188 REPLACE_READLINK=1
21189 elif test "$gl_cv_decl_readlink_works" != yes; then
21190 REPLACE_READLINK=1
21194 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
21203 gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
21214 GNULIB_READLINK=1
21231 if test $gl_cv_have_include_next = yes; then
21232 gl_cv_next_signal_h='<'signal.h'>'
21233 else
21234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
21235 $as_echo_n "checking absolute name of <signal.h>... " >&6; }
21236 if test "${gl_cv_next_signal_h+set}" = set; then :
21237 $as_echo_n "(cached) " >&6
21238 else
21240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21241 /* end confdefs.h. */
21242 #include <signal.h>
21244 _ACEOF
21245 case "$host_os" in
21246 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21247 *) gl_absname_cpp="$ac_cpp" ;;
21248 esac
21250 case "$host_os" in
21251 mingw*)
21252 gl_dirsep_regex='[/\\]'
21255 gl_dirsep_regex='/'
21257 esac
21259 gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'signal.h|{
21260 s|.*"\(.*'"${gl_dirsep_regex}"'signal.h\)".*|\1|
21261 s|^/[^/]|//&|
21265 gl_cv_next_signal_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21266 sed -n "$gl_absolute_header_sed"`'"'
21270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
21271 $as_echo "$gl_cv_next_signal_h" >&6; }
21273 NEXT_SIGNAL_H=$gl_cv_next_signal_h
21275 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21276 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21277 gl_next_as_first_directive='<'signal.h'>'
21278 else
21279 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21280 gl_next_as_first_directive=$gl_cv_next_signal_h
21282 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H=$gl_next_as_first_directive
21288 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
21289 # then choke on 'volatile sig_atomic_t'. C99 requires that it compile.
21290 ac_fn_c_check_type "$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
21291 #include <signal.h>
21294 if test "x$ac_cv_type_volatile_sig_atomic_t" = x""yes; then :
21296 else
21297 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=0
21306 ac_fn_c_check_type "$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
21307 #include <signal.h>
21310 if test "x$ac_cv_type_sighandler_t" = x""yes; then :
21312 else
21313 HAVE_SIGHANDLER_T=0
21319 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
21320 /* <sys/types.h> is not needed according to POSIX, but the
21321 <sys/socket.h> in i386-unknown-freebsd4.10 and
21322 powerpc-apple-darwin5.5 required it. */
21323 #include <sys/types.h>
21324 #if HAVE_SYS_SOCKET_H
21325 # include <sys/socket.h>
21326 #elif HAVE_WS2TCPIP_H
21327 # include <ws2tcpip.h>
21328 #endif
21331 if test "x$ac_cv_type_socklen_t" = x""yes; then :
21333 else
21334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
21335 $as_echo_n "checking for socklen_t equivalent... " >&6; }
21336 if test "${gl_cv_socklen_t_equiv+set}" = set; then :
21337 $as_echo_n "(cached) " >&6
21338 else
21339 # Systems have either "struct sockaddr *" or
21340 # "void *" as the second argument to getpeername
21341 gl_cv_socklen_t_equiv=
21342 for arg2 in "struct sockaddr" void; do
21343 for t in int size_t "unsigned int" "long int" "unsigned long int"; do
21344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21345 /* end confdefs.h. */
21346 #include <sys/types.h>
21347 #include <sys/socket.h>
21349 int getpeername (int, $arg2 *, $t *);
21351 main ()
21353 $t len;
21354 getpeername (0, 0, &len);
21356 return 0;
21358 _ACEOF
21359 if ac_fn_c_try_compile "$LINENO"; then :
21360 gl_cv_socklen_t_equiv="$t"
21362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21363 test "$gl_cv_socklen_t_equiv" != "" && break
21364 done
21365 test "$gl_cv_socklen_t_equiv" != "" && break
21366 done
21370 if test "$gl_cv_socklen_t_equiv" = ""; then
21371 as_fn_error "Cannot find a type to use in place of socklen_t" "$LINENO" 5
21373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
21374 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
21376 cat >>confdefs.h <<_ACEOF
21377 #define socklen_t $gl_cv_socklen_t_equiv
21378 _ACEOF
21383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
21384 $as_echo_n "checking for ssize_t... " >&6; }
21385 if test "${gt_cv_ssize_t+set}" = set; then :
21386 $as_echo_n "(cached) " >&6
21387 else
21388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21389 /* end confdefs.h. */
21390 #include <sys/types.h>
21392 main ()
21394 int x = sizeof (ssize_t *) + sizeof (ssize_t);
21395 return !x;
21397 return 0;
21399 _ACEOF
21400 if ac_fn_c_try_compile "$LINENO"; then :
21401 gt_cv_ssize_t=yes
21402 else
21403 gt_cv_ssize_t=no
21405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
21408 $as_echo "$gt_cv_ssize_t" >&6; }
21409 if test $gt_cv_ssize_t = no; then
21411 $as_echo "#define ssize_t int" >>confdefs.h
21416 STDARG_H=''
21417 NEXT_STDARG_H='<stdarg.h>'
21418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
21419 $as_echo_n "checking for va_copy... " >&6; }
21420 if test "${gl_cv_func_va_copy+set}" = set; then :
21421 $as_echo_n "(cached) " >&6
21422 else
21424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21425 /* end confdefs.h. */
21426 #include <stdarg.h>
21428 main ()
21431 #ifndef va_copy
21432 void (*func) (va_list, va_list) = va_copy;
21433 #endif
21436 return 0;
21438 _ACEOF
21439 if ac_fn_c_try_compile "$LINENO"; then :
21440 gl_cv_func_va_copy=yes
21441 else
21442 gl_cv_func_va_copy=no
21444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_va_copy" >&5
21448 $as_echo "$gl_cv_func_va_copy" >&6; }
21449 if test $gl_cv_func_va_copy = no; then
21450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21451 /* end confdefs.h. */
21452 #if defined _AIX && !defined __GNUC__
21453 AIX vaccine
21454 #endif
21456 _ACEOF
21457 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21458 $EGREP "vaccine" >/dev/null 2>&1; then :
21459 gl_aixcc=yes
21460 else
21461 gl_aixcc=no
21463 rm -f conftest*
21465 if test $gl_aixcc = yes; then
21466 STDARG_H=stdarg.h
21475 if test $gl_cv_have_include_next = yes; then
21476 gl_cv_next_stdarg_h='<'stdarg.h'>'
21477 else
21478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdarg.h>" >&5
21479 $as_echo_n "checking absolute name of <stdarg.h>... " >&6; }
21480 if test "${gl_cv_next_stdarg_h+set}" = set; then :
21481 $as_echo_n "(cached) " >&6
21482 else
21484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21485 /* end confdefs.h. */
21486 #include <stdarg.h>
21488 _ACEOF
21489 case "$host_os" in
21490 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21491 *) gl_absname_cpp="$ac_cpp" ;;
21492 esac
21494 case "$host_os" in
21495 mingw*)
21496 gl_dirsep_regex='[/\\]'
21499 gl_dirsep_regex='/'
21501 esac
21503 gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'stdarg.h|{
21504 s|.*"\(.*'"${gl_dirsep_regex}"'stdarg.h\)".*|\1|
21505 s|^/[^/]|//&|
21509 gl_cv_next_stdarg_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21510 sed -n "$gl_absolute_header_sed"`'"'
21514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdarg_h" >&5
21515 $as_echo "$gl_cv_next_stdarg_h" >&6; }
21517 NEXT_STDARG_H=$gl_cv_next_stdarg_h
21519 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21520 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21521 gl_next_as_first_directive='<'stdarg.h'>'
21522 else
21523 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21524 gl_next_as_first_directive=$gl_cv_next_stdarg_h
21526 NEXT_AS_FIRST_DIRECTIVE_STDARG_H=$gl_next_as_first_directive
21531 if test "$gl_cv_next_stdarg_h" = '""'; then
21532 gl_cv_next_stdarg_h='"///usr/include/stdarg.h"'
21533 NEXT_STDARG_H="$gl_cv_next_stdarg_h"
21535 else
21537 saved_as_echo_n="$as_echo_n"
21538 as_echo_n=':'
21539 if test "${gl_cv_func___va_copy+set}" = set; then :
21540 $as_echo_n "(cached) " >&6
21541 else
21543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21544 /* end confdefs.h. */
21545 #include <stdarg.h>
21547 main ()
21550 #ifndef __va_copy
21551 error, bail out
21552 #endif
21555 return 0;
21557 _ACEOF
21558 if ac_fn_c_try_compile "$LINENO"; then :
21559 gl_cv_func___va_copy=yes
21560 else
21561 gl_cv_func___va_copy=no
21563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21566 as_echo_n="$saved_as_echo_n"
21568 if test $gl_cv_func___va_copy = yes; then
21570 $as_echo "#define va_copy __va_copy" >>confdefs.h
21572 else
21575 $as_echo "#define va_copy gl_va_copy" >>confdefs.h
21581 if test -n "$STDARG_H"; then
21582 GL_GENERATE_STDARG_H_TRUE=
21583 GL_GENERATE_STDARG_H_FALSE='#'
21584 else
21585 GL_GENERATE_STDARG_H_TRUE='#'
21586 GL_GENERATE_STDARG_H_FALSE=
21594 # Define two additional variables used in the Makefile substitution.
21596 if test "$ac_cv_header_stdbool_h" = yes; then
21597 STDBOOL_H=''
21598 else
21599 STDBOOL_H='stdbool.h'
21602 if test -n "$STDBOOL_H"; then
21603 GL_GENERATE_STDBOOL_H_TRUE=
21604 GL_GENERATE_STDBOOL_H_FALSE='#'
21605 else
21606 GL_GENERATE_STDBOOL_H_TRUE='#'
21607 GL_GENERATE_STDBOOL_H_FALSE=
21611 if test "$ac_cv_type__Bool" = yes; then
21612 HAVE__BOOL=1
21613 else
21614 HAVE__BOOL=0
21621 STDDEF_H=
21622 if test $gt_cv_c_wchar_t = no; then
21623 HAVE_WCHAR_T=0
21624 STDDEF_H=stddef.h
21626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
21627 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
21628 if test "${gl_cv_decl_null_works+set}" = set; then :
21629 $as_echo_n "(cached) " >&6
21630 else
21631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21632 /* end confdefs.h. */
21633 #include <stddef.h>
21634 int test[2 * (sizeof NULL == sizeof (void *)) -1];
21637 main ()
21641 return 0;
21643 _ACEOF
21644 if ac_fn_c_try_compile "$LINENO"; then :
21645 gl_cv_decl_null_works=yes
21646 else
21647 gl_cv_decl_null_works=no
21649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
21652 $as_echo "$gl_cv_decl_null_works" >&6; }
21653 if test $gl_cv_decl_null_works = no; then
21654 REPLACE_NULL=1
21655 STDDEF_H=stddef.h
21658 if test -n "$STDDEF_H"; then
21659 GL_GENERATE_STDDEF_H_TRUE=
21660 GL_GENERATE_STDDEF_H_FALSE='#'
21661 else
21662 GL_GENERATE_STDDEF_H_TRUE='#'
21663 GL_GENERATE_STDDEF_H_FALSE=
21666 if test -n "$STDDEF_H"; then
21675 if test $gl_cv_have_include_next = yes; then
21676 gl_cv_next_stddef_h='<'stddef.h'>'
21677 else
21678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
21679 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
21680 if test "${gl_cv_next_stddef_h+set}" = set; then :
21681 $as_echo_n "(cached) " >&6
21682 else
21684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21685 /* end confdefs.h. */
21686 #include <stddef.h>
21688 _ACEOF
21689 case "$host_os" in
21690 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21691 *) gl_absname_cpp="$ac_cpp" ;;
21692 esac
21694 case "$host_os" in
21695 mingw*)
21696 gl_dirsep_regex='[/\\]'
21699 gl_dirsep_regex='/'
21701 esac
21703 gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'stddef.h|{
21704 s|.*"\(.*'"${gl_dirsep_regex}"'stddef.h\)".*|\1|
21705 s|^/[^/]|//&|
21709 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21710 sed -n "$gl_absolute_header_sed"`'"'
21714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
21715 $as_echo "$gl_cv_next_stddef_h" >&6; }
21717 NEXT_STDDEF_H=$gl_cv_next_stddef_h
21719 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21720 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21721 gl_next_as_first_directive='<'stddef.h'>'
21722 else
21723 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21724 gl_next_as_first_directive=$gl_cv_next_stddef_h
21726 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
21745 if test $gl_cv_have_include_next = yes; then
21746 gl_cv_next_stdio_h='<'stdio.h'>'
21747 else
21748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
21749 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
21750 if test "${gl_cv_next_stdio_h+set}" = set; then :
21751 $as_echo_n "(cached) " >&6
21752 else
21754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21755 /* end confdefs.h. */
21756 #include <stdio.h>
21758 _ACEOF
21759 case "$host_os" in
21760 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21761 *) gl_absname_cpp="$ac_cpp" ;;
21762 esac
21764 case "$host_os" in
21765 mingw*)
21766 gl_dirsep_regex='[/\\]'
21769 gl_dirsep_regex='/'
21771 esac
21773 gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'stdio.h|{
21774 s|.*"\(.*'"${gl_dirsep_regex}"'stdio.h\)".*|\1|
21775 s|^/[^/]|//&|
21779 gl_cv_next_stdio_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21780 sed -n "$gl_absolute_header_sed"`'"'
21784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
21785 $as_echo "$gl_cv_next_stdio_h" >&6; }
21787 NEXT_STDIO_H=$gl_cv_next_stdio_h
21789 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21790 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21791 gl_next_as_first_directive='<'stdio.h'>'
21792 else
21793 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21794 gl_next_as_first_directive=$gl_cv_next_stdio_h
21796 NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
21802 GNULIB_FSCANF=1
21803 GNULIB_SCANF=1
21804 GNULIB_FGETC=1
21805 GNULIB_GETC=1
21806 GNULIB_GETCHAR=1
21807 GNULIB_FGETS=1
21808 GNULIB_GETS=1
21809 GNULIB_FREAD=1
21812 GNULIB_FPRINTF=1
21813 GNULIB_PRINTF=1
21814 GNULIB_VFPRINTF=1
21815 GNULIB_VPRINTF=1
21816 GNULIB_FPUTC=1
21817 GNULIB_PUTC=1
21818 GNULIB_PUTCHAR=1
21819 GNULIB_FPUTS=1
21820 GNULIB_PUTS=1
21821 GNULIB_FWRITE=1
21837 if test $gl_cv_have_include_next = yes; then
21838 gl_cv_next_stdlib_h='<'stdlib.h'>'
21839 else
21840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
21841 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
21842 if test "${gl_cv_next_stdlib_h+set}" = set; then :
21843 $as_echo_n "(cached) " >&6
21844 else
21846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21847 /* end confdefs.h. */
21848 #include <stdlib.h>
21850 _ACEOF
21851 case "$host_os" in
21852 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21853 *) gl_absname_cpp="$ac_cpp" ;;
21854 esac
21856 case "$host_os" in
21857 mingw*)
21858 gl_dirsep_regex='[/\\]'
21861 gl_dirsep_regex='/'
21863 esac
21865 gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'stdlib.h|{
21866 s|.*"\(.*'"${gl_dirsep_regex}"'stdlib.h\)".*|\1|
21867 s|^/[^/]|//&|
21871 gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21872 sed -n "$gl_absolute_header_sed"`'"'
21876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
21877 $as_echo "$gl_cv_next_stdlib_h" >&6; }
21879 NEXT_STDLIB_H=$gl_cv_next_stdlib_h
21881 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21882 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21883 gl_next_as_first_directive='<'stdlib.h'>'
21884 else
21885 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21886 gl_next_as_first_directive=$gl_cv_next_stdlib_h
21888 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
21898 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
21906 $as_echo "#define my_strftime nstrftime" >>confdefs.h
21915 if test "$ac_cv_have_decl_strtoimax" != yes; then
21916 HAVE_DECL_STRTOIMAX=0
21919 if test $ac_cv_func_strtoimax = no; then
21928 gl_LIBOBJS="$gl_LIBOBJS strtoimax.$ac_objext"
21931 ac_fn_c_check_decl "$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
21932 if test "x$ac_cv_have_decl_strtoll" = x""yes; then :
21933 ac_have_decl=1
21934 else
21935 ac_have_decl=0
21938 cat >>confdefs.h <<_ACEOF
21939 #define HAVE_DECL_STRTOLL $ac_have_decl
21940 _ACEOF
21950 GNULIB_STRTOIMAX=1
21960 if test "$ac_cv_have_decl_strtoumax" != yes; then
21961 HAVE_DECL_STRTOUMAX=0
21964 if test $ac_cv_func_strtoumax = no; then
21973 gl_LIBOBJS="$gl_LIBOBJS strtoumax.$ac_objext"
21976 ac_fn_c_check_decl "$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
21977 if test "x$ac_cv_have_decl_strtoull" = x""yes; then :
21978 ac_have_decl=1
21979 else
21980 ac_have_decl=0
21983 cat >>confdefs.h <<_ACEOF
21984 #define HAVE_DECL_STRTOULL $ac_have_decl
21985 _ACEOF
21995 GNULIB_STRTOUMAX=1
22003 if test $ac_cv_func_symlink = no; then
22004 HAVE_SYMLINK=0
22005 else
22006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symlink handles trailing slash correctly" >&5
22007 $as_echo_n "checking whether symlink handles trailing slash correctly... " >&6; }
22008 if test "${gl_cv_func_symlink_works+set}" = set; then :
22009 $as_echo_n "(cached) " >&6
22010 else
22011 if test "$cross_compiling" = yes; then :
22012 gl_cv_func_symlink_works="guessing no"
22013 else
22014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22015 /* end confdefs.h. */
22016 #include <unistd.h>
22019 main ()
22021 int result = 0;
22022 if (!symlink ("a", "conftest.link/"))
22023 result |= 1;
22024 if (symlink ("conftest.f", "conftest.lnk2"))
22025 result |= 2;
22026 else if (!symlink ("a", "conftest.lnk2/"))
22027 result |= 4;
22028 return result;
22031 return 0;
22033 _ACEOF
22034 if ac_fn_c_try_run "$LINENO"; then :
22035 gl_cv_func_symlink_works=yes
22036 else
22037 gl_cv_func_symlink_works=no
22039 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22040 conftest.$ac_objext conftest.beam conftest.$ac_ext
22043 rm -f conftest.f conftest.link conftest.lnk2
22045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_symlink_works" >&5
22046 $as_echo "$gl_cv_func_symlink_works" >&6; }
22047 if test "$gl_cv_func_symlink_works" != yes; then
22048 REPLACE_SYMLINK=1
22052 if test $HAVE_SYMLINK = 0 || test $REPLACE_SYMLINK = 1; then
22061 gl_LIBOBJS="$gl_LIBOBJS symlink.$ac_objext"
22069 GNULIB_SYMLINK=1
22091 if test $gl_cv_have_include_next = yes; then
22092 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
22093 else
22094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
22095 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
22096 if test "${gl_cv_next_sys_stat_h+set}" = set; then :
22097 $as_echo_n "(cached) " >&6
22098 else
22100 if test $ac_cv_header_sys_stat_h = yes; then
22103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22104 /* end confdefs.h. */
22105 #include <sys/stat.h>
22107 _ACEOF
22108 case "$host_os" in
22109 aix*) gl_absname_cpp="$ac_cpp -C" ;;
22110 *) gl_absname_cpp="$ac_cpp" ;;
22111 esac
22113 case "$host_os" in
22114 mingw*)
22115 gl_dirsep_regex='[/\\]'
22118 gl_dirsep_regex='/'
22120 esac
22122 gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'sys/stat.h|{
22123 s|.*"\(.*'"${gl_dirsep_regex}"'sys/stat.h\)".*|\1|
22124 s|^/[^/]|//&|
22128 gl_cv_next_sys_stat_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22129 sed -n "$gl_absolute_header_sed"`'"'
22130 else
22131 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
22136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
22137 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
22139 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
22141 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
22142 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22143 gl_next_as_first_directive='<'sys/stat.h'>'
22144 else
22145 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22146 gl_next_as_first_directive=$gl_cv_next_sys_stat_h
22148 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
22156 ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
22157 #include <sys/stat.h>
22159 if test "x$ac_cv_type_nlink_t" = x""yes; then :
22161 else
22163 $as_echo "#define nlink_t int" >>confdefs.h
22181 if test $ac_cv_have_decl_localtime_r = no; then
22182 HAVE_DECL_LOCALTIME_R=0
22186 if test $ac_cv_func_localtime_r = yes; then
22187 HAVE_LOCALTIME_R=1
22188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
22189 $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
22190 if test "${gl_cv_time_r_posix+set}" = set; then :
22191 $as_echo_n "(cached) " >&6
22192 else
22193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22194 /* end confdefs.h. */
22195 #include <time.h>
22197 main ()
22199 /* We don't need to append 'restrict's to the argument types,
22200 even though the POSIX signature has the 'restrict's,
22201 since C99 says they can't affect type compatibility. */
22202 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
22203 if (ptr) return 0;
22204 /* Check the return type is a pointer.
22205 On HP-UX 10 it is 'int'. */
22206 *localtime_r (0, 0);
22208 return 0;
22211 _ACEOF
22212 if ac_fn_c_try_compile "$LINENO"; then :
22213 gl_cv_time_r_posix=yes
22214 else
22215 gl_cv_time_r_posix=no
22217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
22221 $as_echo "$gl_cv_time_r_posix" >&6; }
22222 if test $gl_cv_time_r_posix = yes; then
22223 REPLACE_LOCALTIME_R=0
22224 else
22225 REPLACE_LOCALTIME_R=1
22227 else
22228 HAVE_LOCALTIME_R=0
22231 if test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1; then
22240 gl_LIBOBJS="$gl_LIBOBJS time_r.$ac_objext"
22251 GNULIB_TIME_R=1
22271 if test $gl_cv_have_include_next = yes; then
22272 gl_cv_next_unistd_h='<'unistd.h'>'
22273 else
22274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
22275 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
22276 if test "${gl_cv_next_unistd_h+set}" = set; then :
22277 $as_echo_n "(cached) " >&6
22278 else
22280 if test $ac_cv_header_unistd_h = yes; then
22283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22284 /* end confdefs.h. */
22285 #include <unistd.h>
22287 _ACEOF
22288 case "$host_os" in
22289 aix*) gl_absname_cpp="$ac_cpp -C" ;;
22290 *) gl_absname_cpp="$ac_cpp" ;;
22291 esac
22293 case "$host_os" in
22294 mingw*)
22295 gl_dirsep_regex='[/\\]'
22298 gl_dirsep_regex='/'
22300 esac
22302 gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'unistd.h|{
22303 s|.*"\(.*'"${gl_dirsep_regex}"'unistd.h\)".*|\1|
22304 s|^/[^/]|//&|
22308 gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22309 sed -n "$gl_absolute_header_sed"`'"'
22310 else
22311 gl_cv_next_unistd_h='<'unistd.h'>'
22316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
22317 $as_echo "$gl_cv_next_unistd_h" >&6; }
22319 NEXT_UNISTD_H=$gl_cv_next_unistd_h
22321 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
22322 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22323 gl_next_as_first_directive='<'unistd.h'>'
22324 else
22325 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22326 gl_next_as_first_directive=$gl_cv_next_unistd_h
22328 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
22333 if test $ac_cv_header_unistd_h = yes; then
22334 HAVE_UNISTD_H=1
22335 else
22336 HAVE_UNISTD_H=0
22345 gl_gnulib_enabled_dosname=false
22346 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36=false
22347 gl_gnulib_enabled_pathmax=false
22348 gl_gnulib_enabled_sigprocmask=false
22349 gl_gnulib_enabled_stat=false
22350 gl_gnulib_enabled_strtoll=false
22351 gl_gnulib_enabled_strtoull=false
22352 gl_gnulib_enabled_verify=false
22353 func_gl_gnulib_m4code_dosname ()
22355 if ! $gl_gnulib_enabled_dosname; then
22356 gl_gnulib_enabled_dosname=true
22359 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36 ()
22361 if ! $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
22364 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36=true
22367 func_gl_gnulib_m4code_pathmax ()
22369 if ! $gl_gnulib_enabled_pathmax; then
22373 gl_gnulib_enabled_pathmax=true
22376 func_gl_gnulib_m4code_sigprocmask ()
22378 if ! $gl_gnulib_enabled_sigprocmask; then
22382 if test $gl_cv_type_sigset_t = yes; then
22383 ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask"
22384 if test "x$ac_cv_func_sigprocmask" = x""yes; then :
22385 gl_cv_func_sigprocmask=1
22389 if test -z "$gl_cv_func_sigprocmask"; then
22390 HAVE_POSIX_SIGNALBLOCKING=0
22393 if test $HAVE_POSIX_SIGNALBLOCKING = 0; then
22402 gl_LIBOBJS="$gl_LIBOBJS sigprocmask.$ac_objext"
22413 GNULIB_SIGPROCMASK=1
22419 gl_gnulib_enabled_sigprocmask=true
22422 func_gl_gnulib_m4code_stat ()
22424 if ! $gl_gnulib_enabled_stat; then
22428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
22429 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
22430 if test "${gl_cv_func_stat_dir_slash+set}" = set; then :
22431 $as_echo_n "(cached) " >&6
22432 else
22433 if test "$cross_compiling" = yes; then :
22434 case $host_os in
22435 mingw*) gl_cv_func_stat_dir_slash="guessing no";;
22436 *) gl_cv_func_stat_dir_slash="guessing yes";;
22437 esac
22438 else
22439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22440 /* end confdefs.h. */
22441 #include <sys/stat.h>
22444 main ()
22446 struct stat st; return stat (".", &st) != stat ("./", &st);
22448 return 0;
22450 _ACEOF
22451 if ac_fn_c_try_run "$LINENO"; then :
22452 gl_cv_func_stat_dir_slash=yes
22453 else
22454 gl_cv_func_stat_dir_slash=no
22456 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22457 conftest.$ac_objext conftest.beam conftest.$ac_ext
22461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
22462 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
22463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
22464 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
22465 if test "${gl_cv_func_stat_file_slash+set}" = set; then :
22466 $as_echo_n "(cached) " >&6
22467 else
22468 touch conftest.tmp
22469 # Assume that if we have lstat, we can also check symlinks.
22470 if test $ac_cv_func_lstat = yes; then
22471 ln -s conftest.tmp conftest.lnk
22473 if test "$cross_compiling" = yes; then :
22474 gl_cv_func_stat_file_slash="guessing no"
22475 else
22476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22477 /* end confdefs.h. */
22478 #include <sys/stat.h>
22481 main ()
22483 int result = 0;
22484 struct stat st;
22485 if (!stat ("conftest.tmp/", &st))
22486 result |= 1;
22487 #if HAVE_LSTAT
22488 if (!stat ("conftest.lnk/", &st))
22489 result |= 2;
22490 #endif
22491 return result;
22494 return 0;
22496 _ACEOF
22497 if ac_fn_c_try_run "$LINENO"; then :
22498 gl_cv_func_stat_file_slash=yes
22499 else
22500 gl_cv_func_stat_file_slash=no
22502 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22503 conftest.$ac_objext conftest.beam conftest.$ac_ext
22506 rm -f conftest.tmp conftest.lnk
22508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
22509 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
22510 case $gl_cv_func_stat_dir_slash in
22511 *no) REPLACE_STAT=1
22513 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
22515 esac
22516 case $gl_cv_func_stat_file_slash in
22517 *no) REPLACE_STAT=1
22519 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
22521 esac
22523 if test $REPLACE_STAT = 1; then
22532 gl_LIBOBJS="$gl_LIBOBJS stat.$ac_objext"
22544 GNULIB_STAT=1
22550 gl_gnulib_enabled_stat=true
22551 if test $REPLACE_STAT = 1; then
22552 func_gl_gnulib_m4code_dosname
22554 if test $REPLACE_STAT = 1; then
22555 func_gl_gnulib_m4code_pathmax
22557 if test $REPLACE_STAT = 1; then
22558 func_gl_gnulib_m4code_verify
22562 func_gl_gnulib_m4code_strtoll ()
22564 if ! $gl_gnulib_enabled_strtoll; then
22568 if test "$ac_cv_type_long_long_int" = yes; then
22569 for ac_func in strtoll
22570 do :
22571 ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
22572 if test "x$ac_cv_func_strtoll" = x""yes; then :
22573 cat >>confdefs.h <<_ACEOF
22574 #define HAVE_STRTOLL 1
22575 _ACEOF
22578 done
22580 if test $ac_cv_func_strtoll = no; then
22581 HAVE_STRTOLL=0
22585 if test $HAVE_STRTOLL = 0; then
22594 gl_LIBOBJS="$gl_LIBOBJS strtoll.$ac_objext"
22605 GNULIB_STRTOLL=1
22611 gl_gnulib_enabled_strtoll=true
22614 func_gl_gnulib_m4code_strtoull ()
22616 if ! $gl_gnulib_enabled_strtoull; then
22620 if test "$ac_cv_type_unsigned_long_long_int" = yes; then
22621 for ac_func in strtoull
22622 do :
22623 ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
22624 if test "x$ac_cv_func_strtoull" = x""yes; then :
22625 cat >>confdefs.h <<_ACEOF
22626 #define HAVE_STRTOULL 1
22627 _ACEOF
22630 done
22632 if test $ac_cv_func_strtoull = no; then
22633 HAVE_STRTOULL=0
22637 if test $HAVE_STRTOULL = 0; then
22646 gl_LIBOBJS="$gl_LIBOBJS strtoull.$ac_objext"
22657 GNULIB_STRTOULL=1
22663 gl_gnulib_enabled_strtoull=true
22666 func_gl_gnulib_m4code_verify ()
22668 if ! $gl_gnulib_enabled_verify; then
22669 gl_gnulib_enabled_verify=true
22672 if test $REPLACE_GETOPT = 1; then
22673 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36
22675 if test $REPLACE_LSTAT = 1; then
22676 func_gl_gnulib_m4code_dosname
22678 if test $REPLACE_LSTAT = 1; then
22679 func_gl_gnulib_m4code_stat
22681 if test $HAVE_PTHREAD_SIGMASK = 0 || test $REPLACE_PTHREAD_SIGMASK = 1; then
22682 func_gl_gnulib_m4code_sigprocmask
22684 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
22685 func_gl_gnulib_m4code_stat
22687 if test $ac_cv_func_strtoimax = no; then
22688 func_gl_gnulib_m4code_verify
22690 if test $ac_cv_func_strtoimax = no && test $ac_cv_type_long_long_int = yes; then
22691 func_gl_gnulib_m4code_strtoll
22693 if test $ac_cv_func_strtoumax = no; then
22694 func_gl_gnulib_m4code_verify
22696 if test $ac_cv_func_strtoumax = no && test $ac_cv_type_unsigned_long_long_int = yes; then
22697 func_gl_gnulib_m4code_strtoull
22700 if $gl_gnulib_enabled_dosname; then
22701 gl_GNULIB_ENABLED_dosname_TRUE=
22702 gl_GNULIB_ENABLED_dosname_FALSE='#'
22703 else
22704 gl_GNULIB_ENABLED_dosname_TRUE='#'
22705 gl_GNULIB_ENABLED_dosname_FALSE=
22708 if $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
22709 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE=
22710 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE='#'
22711 else
22712 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE='#'
22713 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE=
22716 if $gl_gnulib_enabled_pathmax; then
22717 gl_GNULIB_ENABLED_pathmax_TRUE=
22718 gl_GNULIB_ENABLED_pathmax_FALSE='#'
22719 else
22720 gl_GNULIB_ENABLED_pathmax_TRUE='#'
22721 gl_GNULIB_ENABLED_pathmax_FALSE=
22724 if $gl_gnulib_enabled_sigprocmask; then
22725 gl_GNULIB_ENABLED_sigprocmask_TRUE=
22726 gl_GNULIB_ENABLED_sigprocmask_FALSE='#'
22727 else
22728 gl_GNULIB_ENABLED_sigprocmask_TRUE='#'
22729 gl_GNULIB_ENABLED_sigprocmask_FALSE=
22732 if $gl_gnulib_enabled_stat; then
22733 gl_GNULIB_ENABLED_stat_TRUE=
22734 gl_GNULIB_ENABLED_stat_FALSE='#'
22735 else
22736 gl_GNULIB_ENABLED_stat_TRUE='#'
22737 gl_GNULIB_ENABLED_stat_FALSE=
22740 if $gl_gnulib_enabled_strtoll; then
22741 gl_GNULIB_ENABLED_strtoll_TRUE=
22742 gl_GNULIB_ENABLED_strtoll_FALSE='#'
22743 else
22744 gl_GNULIB_ENABLED_strtoll_TRUE='#'
22745 gl_GNULIB_ENABLED_strtoll_FALSE=
22748 if $gl_gnulib_enabled_strtoull; then
22749 gl_GNULIB_ENABLED_strtoull_TRUE=
22750 gl_GNULIB_ENABLED_strtoull_FALSE='#'
22751 else
22752 gl_GNULIB_ENABLED_strtoull_TRUE='#'
22753 gl_GNULIB_ENABLED_strtoull_FALSE=
22756 if $gl_gnulib_enabled_verify; then
22757 gl_GNULIB_ENABLED_verify_TRUE=
22758 gl_GNULIB_ENABLED_verify_FALSE='#'
22759 else
22760 gl_GNULIB_ENABLED_verify_TRUE='#'
22761 gl_GNULIB_ENABLED_verify_FALSE=
22764 # End of code from modules
22774 gltests_libdeps=
22775 gltests_ltlibdeps=
22785 gl_source_base='tests'
22786 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
22788 gl_module_indicator_condition=$gltests_WITNESS
22799 LIBGNU_LIBDEPS="$gl_libdeps"
22801 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
22805 case "$opsys" in
22806 aix4-2) LD_SWITCH_SYSTEM_TEMACS="-Wl,-bnodelcsect" ;;
22808 darwin)
22809 ## The -headerpad option tells ld (see man page) to leave room at the
22810 ## end of the header for adding load commands. Needed for dumping.
22811 ## 0x690 is the total size of 30 segment load commands (at 56
22812 ## each); under Cocoa 31 commands are required.
22813 if test "$HAVE_NS" = "yes"; then
22814 libs_nsgui="-framework AppKit"
22815 headerpad_extra=6C8
22816 else
22817 libs_nsgui=
22818 headerpad_extra=690
22820 LD_SWITCH_SYSTEM_TEMACS="-fno-pie -prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
22822 ## This is here because src/Makefile.in did some extra fiddling around
22823 ## with LD_SWITCH_SYSTEM. The cpp logic was:
22824 ## #ifndef LD_SWITCH_SYSTEM
22825 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
22826 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
22827 ## not using gcc, darwin system not on an alpha (ie darwin, since
22828 ## darwin + alpha does not occur).
22829 ## Because this was done in src/Makefile.in, the resulting part of
22830 ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link).
22831 ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS,
22832 ## rather than LD_SWITCH_SYSTEM.
22833 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
22834 LD_SWITCH_SYSTEM_TEMACS="-X $LD_SWITCH_SYSTEM_TEMACS"
22837 ## LD_SWITCH_X_SITE_RPATH is a -rpath option saying where to
22838 ## find X at run-time.
22839 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at the
22840 ## point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_RPATH
22841 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
22842 ## had different values in configure (in ac_link) and src/Makefile.in.
22843 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
22844 gnu*) LD_SWITCH_SYSTEM_TEMACS="\$(LD_SWITCH_X_SITE_RPATH)" ;;
22846 *) LD_SWITCH_SYSTEM_TEMACS= ;;
22847 esac
22849 if test "$NS_IMPL_GNUSTEP" = "yes"; then
22850 LD_SWITCH_SYSTEM_TEMACS="${LD_SWITCH_SYSTEM_TEMACS} -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES} -lgnustep-gui -lgnustep-base -lobjc -lpthread"
22856 LD_FIRSTFLAG=
22857 ORDINARY_LINK=
22858 case "$opsys" in
22859 ## gnu: GNU needs its own crt0.
22860 aix4-2|cygwin|darwin|gnu|hpux*|irix6-5|sol2*|unixware) ORDINARY_LINK=yes ;;
22862 ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the
22863 ## library search parth, i.e. it won't search /usr/lib for libc and
22864 ## friends. Using -nostartfiles instead avoids this problem, and
22865 ## will also work on earlier NetBSD releases.
22866 netbsd|openbsd) LD_FIRSTFLAG="-nostartfiles" ;;
22868 ## macpcc: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
22869 ## MkLinux/LinuxPPC needs this.
22870 ## ibms390x only supports opsys = gnu-linux so it can be added here.
22871 gnu-*)
22872 case "$machine" in
22873 macppc|ibms390x) LD_FIRSTFLAG="-nostdlib" ;;
22874 esac
22876 esac
22879 if test "x$ORDINARY_LINK" = "xyes"; then
22881 LD_FIRSTFLAG=""
22883 $as_echo "#define ORDINARY_LINK 1" >>confdefs.h
22886 ## The system files defining neither ORDINARY_LINK nor LD_FIRSTFLAG are:
22887 ## freebsd, gnu-* not on macppc|ibms390x.
22888 elif test "x$GCC" = "xyes" && test "x$LD_FIRSTFLAG" = "x"; then
22890 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
22891 ## places that are difficult to figure out at make time. Fortunately,
22892 ## these same versions allow you to pass arbitrary flags on to the
22893 ## linker, so there is no reason not to use it as a linker.
22895 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from
22896 ## searching for libraries in its internal directories, so we have to
22897 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below).
22898 LD_FIRSTFLAG="-nostdlib"
22901 ## FIXME? What setting of EDIT_LDFLAGS should this have?
22902 test "$NS_IMPL_GNUSTEP" = "yes" && LD_FIRSTFLAG="-rdynamic"
22907 ## FIXME? The logic here is not precisely the same as that above.
22908 ## There is no check here for a pre-defined LD_FIRSTFLAG.
22909 ## Should we only be setting LIB_GCC if LD ~ -nostdlib?
22910 LIB_GCC=
22911 if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
22913 case "$opsys" in
22914 freebsd|netbsd|openbsd) LIB_GCC= ;;
22916 gnu-*)
22917 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
22918 ## build on ARM EABI under GNU/Linux. (Bug#5518)
22919 case $host_cpu in
22920 arm*)
22921 LIB_GCC="-lgcc_s"
22924 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
22925 ## immediately undefine it again and redefine it to empty.
22926 ## Was the C_SWITCH_X_SITE part really necessary?
22927 ## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
22928 LIB_GCC=
22930 esac
22933 ## Ask GCC where to find libgcc.a.
22934 *) LIB_GCC=`$CC -print-libgcc-file-name 2> /dev/null` ;;
22935 esac
22939 ## If we're using X11/GNUstep, define some consequences.
22940 if test "$HAVE_X_WINDOWS" = "yes" || test "$HAVE_NS" = "yes"; then
22942 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
22945 $as_echo "#define HAVE_MOUSE 1" >>confdefs.h
22952 #### Report on what we decided to do.
22953 #### Report GTK as a toolkit, even if it doesn't use Xt.
22954 #### It makes printing result more understandable as using GTK sets
22955 #### toolkit_scroll_bars to yes by default.
22956 if test "${HAVE_GTK}" = "yes"; then
22957 USE_X_TOOLKIT=GTK
22960 and_machfile=
22961 if test -n "$machfile"; then
22962 and_machfile=" and \`${machfile}'"
22965 echo "
22966 Configured for \`${canonical}'.
22968 Where should the build process find the source code? ${srcdir}
22969 What operating system and machine description files should Emacs use?
22970 \`${opsysfile}'${and_machfile}
22971 What compiler should emacs be built with? ${CC} ${CFLAGS}
22972 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
22973 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
22974 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
22975 What window system should Emacs use? ${window_system}
22976 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
22978 if test -n "${x_includes}"; then
22979 echo " Where do we find X Windows header files? ${x_includes}"
22980 else
22981 echo " Where do we find X Windows header files? Standard dirs"
22983 if test -n "${x_libraries}"; then
22984 echo " Where do we find X Windows libraries? ${x_libraries}"
22985 else
22986 echo " Where do we find X Windows libraries? Standard dirs"
22989 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
22990 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
22991 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
22992 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
22993 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
22994 echo " Does Emacs use -lpng? ${HAVE_PNG}"
22995 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
22996 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
22998 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
22999 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
23000 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
23001 echo " Does Emacs use GSettings? ${HAVE_GSETTINGS}"
23002 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
23003 echo " Does Emacs use -lgnutls? ${HAVE_GNUTLS}"
23004 echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
23006 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
23007 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
23008 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
23009 echo " Does Emacs use -lxft? ${HAVE_XFT}"
23011 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
23012 echo
23014 if test -n "${EMACSDATA}"; then
23015 echo " Environment variable EMACSDATA set to: $EMACSDATA"
23017 if test -n "${EMACSDOC}"; then
23018 echo " Environment variable EMACSDOC set to: $EMACSDOC"
23021 if test $USE_XASSERTS = yes; then
23022 echo " Compiling with asserts turned on."
23023 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
23026 echo
23028 if test "$HAVE_NS" = "yes"; then
23029 echo
23030 echo "You must run \"${MAKE-make} install\" in order to test the built application.
23031 The installed application will go to nextstep/Emacs.app and can be
23032 run or moved from there."
23033 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
23034 echo "The application will be fully self-contained."
23035 else
23036 echo "The lisp resources for the application will be installed under ${prefix}.
23037 You may need to run \"${MAKE-make} install\" with sudo. The application will fail
23038 to run if these resources are not installed."
23040 echo
23043 if test "${opsys}" = "cygwin"; then
23044 case `uname -r` in
23045 1.5.*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: building Emacs on Cygwin 1.5 is not supported." >&5
23046 $as_echo "$as_me: WARNING: building Emacs on Cygwin 1.5 is not supported." >&2;}
23047 echo
23049 esac
23052 # Remove any trailing slashes in these variables.
23053 test "${prefix}" != NONE &&
23054 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
23055 test "${exec_prefix}" != NONE &&
23056 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
23058 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"
23060 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"
23063 opt_makefile=test/automated/Makefile
23065 if test -f $srcdir/${opt_makefile}.in; then
23066 SUBDIR_MAKEFILES="$SUBDIR_MAKEFILES $opt_makefile"
23067 ac_config_files="$ac_config_files test/automated/Makefile"
23072 opt_makefile=admin/unidata/Makefile
23074 if test -f $srcdir/${opt_makefile}.in; then
23075 SUBDIR_MAKEFILES="$SUBDIR_MAKEFILES $opt_makefile"
23076 ac_config_files="$ac_config_files admin/unidata/Makefile"
23081 SUBDIR_MAKEFILES_IN=`echo " ${SUBDIR_MAKEFILES}" | sed -e 's| | $(srcdir)/|g' -e 's|Makefile|Makefile.in|g'`
23085 ac_config_commands="$ac_config_commands mkdirs"
23088 ac_config_commands="$ac_config_commands epaths"
23091 ac_config_commands="$ac_config_commands gdbinit"
23094 cat >confcache <<\_ACEOF
23095 # This file is a shell script that caches the results of configure
23096 # tests run on this system so they can be shared between configure
23097 # scripts and configure runs, see configure's option --config-cache.
23098 # It is not useful on other systems. If it contains results you don't
23099 # want to keep, you may remove or edit it.
23101 # config.status only pays attention to the cache file if you give it
23102 # the --recheck option to rerun configure.
23104 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23105 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23106 # following values.
23108 _ACEOF
23110 # The following way of writing the cache mishandles newlines in values,
23111 # but we know of no workaround that is simple, portable, and efficient.
23112 # So, we kill variables containing newlines.
23113 # Ultrix sh set writes to stderr and can't be redirected directly,
23114 # and sets the high bit in the cache file unless we assign to the vars.
23116 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23117 eval ac_val=\$$ac_var
23118 case $ac_val in #(
23119 *${as_nl}*)
23120 case $ac_var in #(
23121 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
23122 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
23123 esac
23124 case $ac_var in #(
23125 _ | IFS | as_nl) ;; #(
23126 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
23127 *) { eval $ac_var=; unset $ac_var;} ;;
23128 esac ;;
23129 esac
23130 done
23132 (set) 2>&1 |
23133 case $as_nl`(ac_space=' '; set) 2>&1` in #(
23134 *${as_nl}ac_space=\ *)
23135 # `set' does not quote correctly, so add quotes: double-quote
23136 # substitution turns \\\\ into \\, and sed turns \\ into \.
23137 sed -n \
23138 "s/'/'\\\\''/g;
23139 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23140 ;; #(
23142 # `set' quotes correctly as required by POSIX, so do not add quotes.
23143 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
23145 esac |
23146 sort
23148 sed '
23149 /^ac_cv_env_/b end
23150 t clear
23151 :clear
23152 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23153 t end
23154 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23155 :end' >>confcache
23156 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23157 if test -w "$cache_file"; then
23158 test "x$cache_file" != "x/dev/null" &&
23159 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
23160 $as_echo "$as_me: updating cache $cache_file" >&6;}
23161 cat confcache >$cache_file
23162 else
23163 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
23164 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
23167 rm -f confcache
23169 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23170 # Let make expand exec_prefix.
23171 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23173 DEFS=-DHAVE_CONFIG_H
23175 ac_libobjs=
23176 ac_ltlibobjs=
23177 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23178 # 1. Remove the extension, and $U if already installed.
23179 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23180 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
23181 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
23182 # will be set to the directory where LIBOBJS objects are built.
23183 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
23184 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
23185 done
23186 LIBOBJS=$ac_libobjs
23188 LTLIBOBJS=$ac_ltlibobjs
23191 if test -n "$EXEEXT"; then
23192 am__EXEEXT_TRUE=
23193 am__EXEEXT_FALSE='#'
23194 else
23195 am__EXEEXT_TRUE='#'
23196 am__EXEEXT_FALSE=
23199 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
23200 as_fn_error "conditional \"AMDEP\" was never defined.
23201 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23203 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23204 as_fn_error "conditional \"am__fastdepCC\" was never defined.
23205 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23208 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
23209 as_fn_error "conditional \"GL_COND_LIBTOOL\" was never defined.
23210 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23212 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
23213 as_fn_error "conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
23214 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23217 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
23218 as_fn_error "conditional \"GL_GENERATE_STDINT_H\" was never defined.
23219 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23221 if test -z "${GL_GENERATE_STDARG_H_TRUE}" && test -z "${GL_GENERATE_STDARG_H_FALSE}"; then
23222 as_fn_error "conditional \"GL_GENERATE_STDARG_H\" was never defined.
23223 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23225 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
23226 as_fn_error "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
23227 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23229 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
23230 as_fn_error "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
23231 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23233 if test -z "${gl_GNULIB_ENABLED_dosname_TRUE}" && test -z "${gl_GNULIB_ENABLED_dosname_FALSE}"; then
23234 as_fn_error "conditional \"gl_GNULIB_ENABLED_dosname\" was never defined.
23235 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23237 if test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE}" && test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE}"; then
23238 as_fn_error "conditional \"gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36\" was never defined.
23239 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23241 if test -z "${gl_GNULIB_ENABLED_pathmax_TRUE}" && test -z "${gl_GNULIB_ENABLED_pathmax_FALSE}"; then
23242 as_fn_error "conditional \"gl_GNULIB_ENABLED_pathmax\" was never defined.
23243 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23245 if test -z "${gl_GNULIB_ENABLED_sigprocmask_TRUE}" && test -z "${gl_GNULIB_ENABLED_sigprocmask_FALSE}"; then
23246 as_fn_error "conditional \"gl_GNULIB_ENABLED_sigprocmask\" was never defined.
23247 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23249 if test -z "${gl_GNULIB_ENABLED_stat_TRUE}" && test -z "${gl_GNULIB_ENABLED_stat_FALSE}"; then
23250 as_fn_error "conditional \"gl_GNULIB_ENABLED_stat\" was never defined.
23251 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23253 if test -z "${gl_GNULIB_ENABLED_strtoll_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoll_FALSE}"; then
23254 as_fn_error "conditional \"gl_GNULIB_ENABLED_strtoll\" was never defined.
23255 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23257 if test -z "${gl_GNULIB_ENABLED_strtoull_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoull_FALSE}"; then
23258 as_fn_error "conditional \"gl_GNULIB_ENABLED_strtoull\" was never defined.
23259 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23261 if test -z "${gl_GNULIB_ENABLED_verify_TRUE}" && test -z "${gl_GNULIB_ENABLED_verify_FALSE}"; then
23262 as_fn_error "conditional \"gl_GNULIB_ENABLED_verify\" was never defined.
23263 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23266 gl_libobjs=
23267 gl_ltlibobjs=
23268 if test -n "$gl_LIBOBJS"; then
23269 # Remove the extension.
23270 sed_drop_objext='s/\.o$//;s/\.obj$//'
23271 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
23272 gl_libobjs="$gl_libobjs $i.$ac_objext"
23273 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
23274 done
23276 gl_LIBOBJS=$gl_libobjs
23278 gl_LTLIBOBJS=$gl_ltlibobjs
23282 gltests_libobjs=
23283 gltests_ltlibobjs=
23284 if test -n "$gltests_LIBOBJS"; then
23285 # Remove the extension.
23286 sed_drop_objext='s/\.o$//;s/\.obj$//'
23287 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
23288 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
23289 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
23290 done
23292 gltests_LIBOBJS=$gltests_libobjs
23294 gltests_LTLIBOBJS=$gltests_ltlibobjs
23298 : ${CONFIG_STATUS=./config.status}
23299 ac_write_fail=0
23300 ac_clean_files_save=$ac_clean_files
23301 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23302 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
23303 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
23304 as_write_fail=0
23305 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
23306 #! $SHELL
23307 # Generated by $as_me.
23308 # Run this file to recreate the current configuration.
23309 # Compiler output produced by configure, useful for debugging
23310 # configure, is in config.log if it exists.
23312 debug=false
23313 ac_cs_recheck=false
23314 ac_cs_silent=false
23316 SHELL=\${CONFIG_SHELL-$SHELL}
23317 export SHELL
23318 _ASEOF
23319 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
23320 ## -------------------- ##
23321 ## M4sh Initialization. ##
23322 ## -------------------- ##
23324 # Be more Bourne compatible
23325 DUALCASE=1; export DUALCASE # for MKS sh
23326 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
23327 emulate sh
23328 NULLCMD=:
23329 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23330 # is contrary to our usage. Disable this feature.
23331 alias -g '${1+"$@"}'='"$@"'
23332 setopt NO_GLOB_SUBST
23333 else
23334 case `(set -o) 2>/dev/null` in #(
23335 *posix*) :
23336 set -o posix ;; #(
23337 *) :
23339 esac
23343 as_nl='
23345 export as_nl
23346 # Printing a long string crashes Solaris 7 /usr/bin/printf.
23347 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
23348 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
23349 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
23350 # Prefer a ksh shell builtin over an external printf program on Solaris,
23351 # but without wasting forks for bash or zsh.
23352 if test -z "$BASH_VERSION$ZSH_VERSION" \
23353 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
23354 as_echo='print -r --'
23355 as_echo_n='print -rn --'
23356 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
23357 as_echo='printf %s\n'
23358 as_echo_n='printf %s'
23359 else
23360 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
23361 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
23362 as_echo_n='/usr/ucb/echo -n'
23363 else
23364 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
23365 as_echo_n_body='eval
23366 arg=$1;
23367 case $arg in #(
23368 *"$as_nl"*)
23369 expr "X$arg" : "X\\(.*\\)$as_nl";
23370 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
23371 esac;
23372 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
23374 export as_echo_n_body
23375 as_echo_n='sh -c $as_echo_n_body as_echo'
23377 export as_echo_body
23378 as_echo='sh -c $as_echo_body as_echo'
23381 # The user is always right.
23382 if test "${PATH_SEPARATOR+set}" != set; then
23383 PATH_SEPARATOR=:
23384 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
23385 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
23386 PATH_SEPARATOR=';'
23391 # IFS
23392 # We need space, tab and new line, in precisely that order. Quoting is
23393 # there to prevent editors from complaining about space-tab.
23394 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
23395 # splitting by setting IFS to empty value.)
23396 IFS=" "" $as_nl"
23398 # Find who we are. Look in the path if we contain no directory separator.
23399 case $0 in #((
23400 *[\\/]* ) as_myself=$0 ;;
23401 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23402 for as_dir in $PATH
23404 IFS=$as_save_IFS
23405 test -z "$as_dir" && as_dir=.
23406 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23407 done
23408 IFS=$as_save_IFS
23411 esac
23412 # We did not find ourselves, most probably we were run as `sh COMMAND'
23413 # in which case we are not to be found in the path.
23414 if test "x$as_myself" = x; then
23415 as_myself=$0
23417 if test ! -f "$as_myself"; then
23418 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23419 exit 1
23422 # Unset variables that we do not need and which cause bugs (e.g. in
23423 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
23424 # suppresses any "Segmentation fault" message there. '((' could
23425 # trigger a bug in pdksh 5.2.14.
23426 for as_var in BASH_ENV ENV MAIL MAILPATH
23427 do eval test x\${$as_var+set} = xset \
23428 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
23429 done
23430 PS1='$ '
23431 PS2='> '
23432 PS4='+ '
23434 # NLS nuisances.
23435 LC_ALL=C
23436 export LC_ALL
23437 LANGUAGE=C
23438 export LANGUAGE
23440 # CDPATH.
23441 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
23444 # as_fn_error ERROR [LINENO LOG_FD]
23445 # ---------------------------------
23446 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
23447 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
23448 # script with status $?, using 1 if that was 0.
23449 as_fn_error ()
23451 as_status=$?; test $as_status -eq 0 && as_status=1
23452 if test "$3"; then
23453 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
23454 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
23456 $as_echo "$as_me: error: $1" >&2
23457 as_fn_exit $as_status
23458 } # as_fn_error
23461 # as_fn_set_status STATUS
23462 # -----------------------
23463 # Set $? to STATUS, without forking.
23464 as_fn_set_status ()
23466 return $1
23467 } # as_fn_set_status
23469 # as_fn_exit STATUS
23470 # -----------------
23471 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
23472 as_fn_exit ()
23474 set +e
23475 as_fn_set_status $1
23476 exit $1
23477 } # as_fn_exit
23479 # as_fn_unset VAR
23480 # ---------------
23481 # Portably unset VAR.
23482 as_fn_unset ()
23484 { eval $1=; unset $1;}
23486 as_unset=as_fn_unset
23487 # as_fn_append VAR VALUE
23488 # ----------------------
23489 # Append the text in VALUE to the end of the definition contained in VAR. Take
23490 # advantage of any shell optimizations that allow amortized linear growth over
23491 # repeated appends, instead of the typical quadratic growth present in naive
23492 # implementations.
23493 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
23494 eval 'as_fn_append ()
23496 eval $1+=\$2
23498 else
23499 as_fn_append ()
23501 eval $1=\$$1\$2
23503 fi # as_fn_append
23505 # as_fn_arith ARG...
23506 # ------------------
23507 # Perform arithmetic evaluation on the ARGs, and store the result in the
23508 # global $as_val. Take advantage of shells that can avoid forks. The arguments
23509 # must be portable across $(()) and expr.
23510 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
23511 eval 'as_fn_arith ()
23513 as_val=$(( $* ))
23515 else
23516 as_fn_arith ()
23518 as_val=`expr "$@" || test $? -eq 1`
23520 fi # as_fn_arith
23523 if expr a : '\(a\)' >/dev/null 2>&1 &&
23524 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23525 as_expr=expr
23526 else
23527 as_expr=false
23530 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23531 as_basename=basename
23532 else
23533 as_basename=false
23536 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23537 as_dirname=dirname
23538 else
23539 as_dirname=false
23542 as_me=`$as_basename -- "$0" ||
23543 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23544 X"$0" : 'X\(//\)$' \| \
23545 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23546 $as_echo X/"$0" |
23547 sed '/^.*\/\([^/][^/]*\)\/*$/{
23548 s//\1/
23551 /^X\/\(\/\/\)$/{
23552 s//\1/
23555 /^X\/\(\/\).*/{
23556 s//\1/
23559 s/.*/./; q'`
23561 # Avoid depending upon Character Ranges.
23562 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23563 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23564 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23565 as_cr_digits='0123456789'
23566 as_cr_alnum=$as_cr_Letters$as_cr_digits
23568 ECHO_C= ECHO_N= ECHO_T=
23569 case `echo -n x` in #(((((
23570 -n*)
23571 case `echo 'xy\c'` in
23572 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
23573 xy) ECHO_C='\c';;
23574 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
23575 ECHO_T=' ';;
23576 esac;;
23578 ECHO_N='-n';;
23579 esac
23581 rm -f conf$$ conf$$.exe conf$$.file
23582 if test -d conf$$.dir; then
23583 rm -f conf$$.dir/conf$$.file
23584 else
23585 rm -f conf$$.dir
23586 mkdir conf$$.dir 2>/dev/null
23588 if (echo >conf$$.file) 2>/dev/null; then
23589 if ln -s conf$$.file conf$$ 2>/dev/null; then
23590 as_ln_s='ln -s'
23591 # ... but there are two gotchas:
23592 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23593 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23594 # In both cases, we have to default to `cp -p'.
23595 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23596 as_ln_s='cp -p'
23597 elif ln conf$$.file conf$$ 2>/dev/null; then
23598 as_ln_s=ln
23599 else
23600 as_ln_s='cp -p'
23602 else
23603 as_ln_s='cp -p'
23605 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23606 rmdir conf$$.dir 2>/dev/null
23609 # as_fn_mkdir_p
23610 # -------------
23611 # Create "$as_dir" as a directory, including parents if necessary.
23612 as_fn_mkdir_p ()
23615 case $as_dir in #(
23616 -*) as_dir=./$as_dir;;
23617 esac
23618 test -d "$as_dir" || eval $as_mkdir_p || {
23619 as_dirs=
23620 while :; do
23621 case $as_dir in #(
23622 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
23623 *) as_qdir=$as_dir;;
23624 esac
23625 as_dirs="'$as_qdir' $as_dirs"
23626 as_dir=`$as_dirname -- "$as_dir" ||
23627 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23628 X"$as_dir" : 'X\(//\)[^/]' \| \
23629 X"$as_dir" : 'X\(//\)$' \| \
23630 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23631 $as_echo X"$as_dir" |
23632 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23633 s//\1/
23636 /^X\(\/\/\)[^/].*/{
23637 s//\1/
23640 /^X\(\/\/\)$/{
23641 s//\1/
23644 /^X\(\/\).*/{
23645 s//\1/
23648 s/.*/./; q'`
23649 test -d "$as_dir" && break
23650 done
23651 test -z "$as_dirs" || eval "mkdir $as_dirs"
23652 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
23655 } # as_fn_mkdir_p
23656 if mkdir -p . 2>/dev/null; then
23657 as_mkdir_p='mkdir -p "$as_dir"'
23658 else
23659 test -d ./-p && rmdir ./-p
23660 as_mkdir_p=false
23663 if test -x / >/dev/null 2>&1; then
23664 as_test_x='test -x'
23665 else
23666 if ls -dL / >/dev/null 2>&1; then
23667 as_ls_L_option=L
23668 else
23669 as_ls_L_option=
23671 as_test_x='
23672 eval sh -c '\''
23673 if test -d "$1"; then
23674 test -d "$1/.";
23675 else
23676 case $1 in #(
23677 -*)set "./$1";;
23678 esac;
23679 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
23680 ???[sx]*):;;*)false;;esac;fi
23681 '\'' sh
23684 as_executable_p=$as_test_x
23686 # Sed expression to map a string onto a valid CPP name.
23687 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23689 # Sed expression to map a string onto a valid variable name.
23690 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23693 exec 6>&1
23694 ## ----------------------------------- ##
23695 ## Main body of $CONFIG_STATUS script. ##
23696 ## ----------------------------------- ##
23697 _ASEOF
23698 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
23700 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23701 # Save the log message, to keep $0 and so on meaningful, and to
23702 # report actual input values of CONFIG_FILES etc. instead of their
23703 # values after options handling.
23704 ac_log="
23705 This file was extended by emacs $as_me 24.1.50, which was
23706 generated by GNU Autoconf 2.65. Invocation command line was
23708 CONFIG_FILES = $CONFIG_FILES
23709 CONFIG_HEADERS = $CONFIG_HEADERS
23710 CONFIG_LINKS = $CONFIG_LINKS
23711 CONFIG_COMMANDS = $CONFIG_COMMANDS
23712 $ $0 $@
23714 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23717 _ACEOF
23719 case $ac_config_files in *"
23720 "*) set x $ac_config_files; shift; ac_config_files=$*;;
23721 esac
23723 case $ac_config_headers in *"
23724 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
23725 esac
23728 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23729 # Files that config.status was made for.
23730 config_files="$ac_config_files"
23731 config_headers="$ac_config_headers"
23732 config_commands="$ac_config_commands"
23734 _ACEOF
23736 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23737 ac_cs_usage="\
23738 \`$as_me' instantiates files and other configuration actions
23739 from templates according to the current configuration. Unless the files
23740 and actions are specified as TAGs, all are instantiated by default.
23742 Usage: $0 [OPTION]... [TAG]...
23744 -h, --help print this help, then exit
23745 -V, --version print version number and configuration settings, then exit
23746 --config print configuration, then exit
23747 -q, --quiet, --silent
23748 do not print progress messages
23749 -d, --debug don't remove temporary files
23750 --recheck update $as_me by reconfiguring in the same conditions
23751 --file=FILE[:TEMPLATE]
23752 instantiate the configuration file FILE
23753 --header=FILE[:TEMPLATE]
23754 instantiate the configuration header FILE
23756 Configuration files:
23757 $config_files
23759 Configuration headers:
23760 $config_headers
23762 Configuration commands:
23763 $config_commands
23765 Report bugs to the package provider."
23767 _ACEOF
23768 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23769 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
23770 ac_cs_version="\\
23771 emacs config.status 24.1.50
23772 configured by $0, generated by GNU Autoconf 2.65,
23773 with options \\"\$ac_cs_config\\"
23775 Copyright (C) 2009 Free Software Foundation, Inc.
23776 This config.status script is free software; the Free Software Foundation
23777 gives unlimited permission to copy, distribute and modify it."
23779 ac_pwd='$ac_pwd'
23780 srcdir='$srcdir'
23781 INSTALL='$INSTALL'
23782 MKDIR_P='$MKDIR_P'
23783 AWK='$AWK'
23784 test -n "\$AWK" || AWK=awk
23785 _ACEOF
23787 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23788 # The default lists apply if the user does not specify any file.
23789 ac_need_defaults=:
23790 while test $# != 0
23792 case $1 in
23793 --*=*)
23794 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23795 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23796 ac_shift=:
23799 ac_option=$1
23800 ac_optarg=$2
23801 ac_shift=shift
23803 esac
23805 case $ac_option in
23806 # Handling of the options.
23807 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23808 ac_cs_recheck=: ;;
23809 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23810 $as_echo "$ac_cs_version"; exit ;;
23811 --config | --confi | --conf | --con | --co | --c )
23812 $as_echo "$ac_cs_config"; exit ;;
23813 --debug | --debu | --deb | --de | --d | -d )
23814 debug=: ;;
23815 --file | --fil | --fi | --f )
23816 $ac_shift
23817 case $ac_optarg in
23818 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23819 esac
23820 as_fn_append CONFIG_FILES " '$ac_optarg'"
23821 ac_need_defaults=false;;
23822 --header | --heade | --head | --hea )
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_HEADERS " '$ac_optarg'"
23828 ac_need_defaults=false;;
23829 --he | --h)
23830 # Conflict between --help and --header
23831 as_fn_error "ambiguous option: \`$1'
23832 Try \`$0 --help' for more information.";;
23833 --help | --hel | -h )
23834 $as_echo "$ac_cs_usage"; exit ;;
23835 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23836 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23837 ac_cs_silent=: ;;
23839 # This is an error.
23840 -*) as_fn_error "unrecognized option: \`$1'
23841 Try \`$0 --help' for more information." ;;
23843 *) as_fn_append ac_config_targets " $1"
23844 ac_need_defaults=false ;;
23846 esac
23847 shift
23848 done
23850 ac_configure_extra_args=
23852 if $ac_cs_silent; then
23853 exec 6>/dev/null
23854 ac_configure_extra_args="$ac_configure_extra_args --silent"
23857 _ACEOF
23858 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23859 if \$ac_cs_recheck; then
23860 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23861 shift
23862 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
23863 CONFIG_SHELL='$SHELL'
23864 export CONFIG_SHELL
23865 exec "\$@"
23868 _ACEOF
23869 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23870 exec 5>>config.log
23872 echo
23873 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23874 ## Running $as_me. ##
23875 _ASBOX
23876 $as_echo "$ac_log"
23877 } >&5
23879 _ACEOF
23880 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23882 # INIT-COMMANDS
23884 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
23885 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPPFLAGS="$CPPFLAGS"
23887 _ACEOF
23889 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23891 # Handling of arguments.
23892 for ac_config_target in $ac_config_targets
23894 case $ac_config_target in
23895 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
23896 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
23897 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23898 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
23899 "lib-src/Makefile") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile" ;;
23900 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
23901 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
23902 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
23903 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
23904 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
23905 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
23906 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
23907 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
23908 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
23909 "test/automated/Makefile") CONFIG_FILES="$CONFIG_FILES test/automated/Makefile" ;;
23910 "admin/unidata/Makefile") CONFIG_FILES="$CONFIG_FILES admin/unidata/Makefile" ;;
23911 "mkdirs") CONFIG_COMMANDS="$CONFIG_COMMANDS mkdirs" ;;
23912 "epaths") CONFIG_COMMANDS="$CONFIG_COMMANDS epaths" ;;
23913 "gdbinit") CONFIG_COMMANDS="$CONFIG_COMMANDS gdbinit" ;;
23915 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
23916 esac
23917 done
23920 # If the user did not use the arguments to specify the items to instantiate,
23921 # then the envvar interface is used. Set only those that are not.
23922 # We use the long form for the default assignment because of an extremely
23923 # bizarre bug on SunOS 4.1.3.
23924 if $ac_need_defaults; then
23925 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23926 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23927 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23930 # Have a temporary directory for convenience. Make it in the build tree
23931 # simply because there is no reason against having it here, and in addition,
23932 # creating and moving files from /tmp can sometimes cause problems.
23933 # Hook for its removal unless debugging.
23934 # Note that there is a small window in which the directory will not be cleaned:
23935 # after its creation but before its name has been assigned to `$tmp'.
23936 $debug ||
23938 tmp=
23939 trap 'exit_status=$?
23940 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23942 trap 'as_fn_exit 1' 1 2 13 15
23944 # Create a (secure) tmp directory for tmp files.
23947 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23948 test -n "$tmp" && test -d "$tmp"
23949 } ||
23951 tmp=./conf$$-$RANDOM
23952 (umask 077 && mkdir "$tmp")
23953 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
23955 # Set up the scripts for CONFIG_FILES section.
23956 # No need to generate them if there are no CONFIG_FILES.
23957 # This happens for instance with `./config.status config.h'.
23958 if test -n "$CONFIG_FILES"; then
23960 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
23961 ac_cs_awk_getline=:
23962 ac_cs_awk_pipe_init=
23963 ac_cs_awk_read_file='
23964 while ((getline aline < (F[key])) > 0)
23965 print(aline)
23966 close(F[key])'
23967 ac_cs_awk_pipe_fini=
23968 else
23969 ac_cs_awk_getline=false
23970 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
23971 ac_cs_awk_read_file='
23972 print "|#_!!_#|"
23973 print "cat " F[key] " &&"
23974 '$ac_cs_awk_pipe_init
23975 # The final `:' finishes the AND list.
23976 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
23978 ac_cr=`echo X | tr X '\015'`
23979 # On cygwin, bash can eat \r inside `` if the user requested igncr.
23980 # But we know of no other shell where ac_cr would be empty at this
23981 # point, so we can use a bashism as a fallback.
23982 if test "x$ac_cr" = x; then
23983 eval ac_cr=\$\'\\r\'
23985 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
23986 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
23987 ac_cs_awk_cr='\r'
23988 else
23989 ac_cs_awk_cr=$ac_cr
23992 echo 'BEGIN {' >"$tmp/subs1.awk" &&
23993 _ACEOF
23995 # Create commands to substitute file output variables.
23997 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
23998 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
23999 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
24000 echo "_ACAWK" &&
24001 echo "_ACEOF"
24002 } >conf$$files.sh &&
24003 . ./conf$$files.sh ||
24004 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
24005 rm -f conf$$files.sh
24008 echo "cat >conf$$subs.awk <<_ACEOF" &&
24009 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
24010 echo "_ACEOF"
24011 } >conf$$subs.sh ||
24012 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
24013 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
24014 ac_delim='%!_!# '
24015 for ac_last_try in false false false false false :; do
24016 . ./conf$$subs.sh ||
24017 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
24019 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
24020 if test $ac_delim_n = $ac_delim_num; then
24021 break
24022 elif $ac_last_try; then
24023 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
24024 else
24025 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24027 done
24028 rm -f conf$$subs.sh
24030 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24031 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
24032 _ACEOF
24033 sed -n '
24035 s/^/S["/; s/!.*/"]=/
24038 s/^[^!]*!//
24039 :repl
24040 t repl
24041 s/'"$ac_delim"'$//
24042 t delim
24045 s/\(.\{148\}\)..*/\1/
24046 t more1
24047 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
24050 b repl
24051 :more1
24052 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
24055 s/.\{148\}//
24056 t nl
24057 :delim
24059 s/\(.\{148\}\)..*/\1/
24060 t more2
24061 s/["\\]/\\&/g; s/^/"/; s/$/"/
24064 :more2
24065 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
24068 s/.\{148\}//
24069 t delim
24070 ' <conf$$subs.awk | sed '
24071 /^[^""]/{
24073 s/\n//
24075 ' >>$CONFIG_STATUS || ac_write_fail=1
24076 rm -f conf$$subs.awk
24077 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24078 _ACAWK
24079 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
24080 for (key in S) S_is_set[key] = 1
24081 FS = "\a"
24082 \$ac_cs_awk_pipe_init
24085 line = $ 0
24086 nfields = split(line, field, "@")
24087 substed = 0
24088 len = length(field[1])
24089 for (i = 2; i < nfields; i++) {
24090 key = field[i]
24091 keylen = length(key)
24092 if (S_is_set[key]) {
24093 value = S[key]
24094 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
24095 len += length(value) + length(field[++i])
24096 substed = 1
24097 } else
24098 len += 1 + keylen
24100 if (nfields == 3 && !substed) {
24101 key = field[2]
24102 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
24103 \$ac_cs_awk_read_file
24104 next
24107 print line
24109 \$ac_cs_awk_pipe_fini
24110 _ACAWK
24111 _ACEOF
24112 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24113 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
24114 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
24115 else
24117 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
24118 || as_fn_error "could not setup config files machinery" "$LINENO" 5
24119 _ACEOF
24121 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24122 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24123 # trailing colons and then remove the whole line if VPATH becomes empty
24124 # (actually we leave an empty line to preserve line numbers).
24125 if test "x$srcdir" = x.; then
24126 ac_vpsub='/^[ ]*VPATH[ ]*=/{
24127 s/:*\$(srcdir):*/:/
24128 s/:*\${srcdir}:*/:/
24129 s/:*@srcdir@:*/:/
24130 s/^\([^=]*=[ ]*\):*/\1/
24131 s/:*$//
24132 s/^[^=]*=[ ]*$//
24136 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24137 fi # test -n "$CONFIG_FILES"
24139 # Set up the scripts for CONFIG_HEADERS section.
24140 # No need to generate them if there are no CONFIG_HEADERS.
24141 # This happens for instance with `./config.status Makefile'.
24142 if test -n "$CONFIG_HEADERS"; then
24143 cat >"$tmp/defines.awk" <<\_ACAWK ||
24144 BEGIN {
24145 _ACEOF
24147 # Transform confdefs.h into an awk script `defines.awk', embedded as
24148 # here-document in config.status, that substitutes the proper values into
24149 # config.h.in to produce config.h.
24151 # Create a delimiter string that does not exist in confdefs.h, to ease
24152 # handling of long lines.
24153 ac_delim='%!_!# '
24154 for ac_last_try in false false :; do
24155 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
24156 if test -z "$ac_t"; then
24157 break
24158 elif $ac_last_try; then
24159 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
24160 else
24161 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24163 done
24165 # For the awk script, D is an array of macro values keyed by name,
24166 # likewise P contains macro parameters if any. Preserve backslash
24167 # newline sequences.
24169 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
24170 sed -n '
24171 s/.\{148\}/&'"$ac_delim"'/g
24172 t rset
24173 :rset
24174 s/^[ ]*#[ ]*define[ ][ ]*/ /
24175 t def
24177 :def
24178 s/\\$//
24179 t bsnl
24180 s/["\\]/\\&/g
24181 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
24182 D["\1"]=" \3"/p
24183 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
24185 :bsnl
24186 s/["\\]/\\&/g
24187 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
24188 D["\1"]=" \3\\\\\\n"\\/p
24189 t cont
24190 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
24191 t cont
24193 :cont
24195 s/.\{148\}/&'"$ac_delim"'/g
24196 t clear
24197 :clear
24198 s/\\$//
24199 t bsnlc
24200 s/["\\]/\\&/g; s/^/"/; s/$/"/p
24202 :bsnlc
24203 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
24204 b cont
24205 ' <confdefs.h | sed '
24206 s/'"$ac_delim"'/"\\\
24207 "/g' >>$CONFIG_STATUS || ac_write_fail=1
24209 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24210 for (key in D) D_is_set[key] = 1
24211 FS = "\a"
24213 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
24214 line = \$ 0
24215 split(line, arg, " ")
24216 if (arg[1] == "#") {
24217 defundef = arg[2]
24218 mac1 = arg[3]
24219 } else {
24220 defundef = substr(arg[1], 2)
24221 mac1 = arg[2]
24223 split(mac1, mac2, "(") #)
24224 macro = mac2[1]
24225 prefix = substr(line, 1, index(line, defundef) - 1)
24226 if (D_is_set[macro]) {
24227 # Preserve the white space surrounding the "#".
24228 print prefix "define", macro P[macro] D[macro]
24229 next
24230 } else {
24231 # Replace #undef with comments. This is necessary, for example,
24232 # in the case of _POSIX_SOURCE, which is predefined and required
24233 # on some systems where configure will not decide to define it.
24234 if (defundef == "undef") {
24235 print "/*", prefix defundef, macro, "*/"
24236 next
24240 { print }
24241 _ACAWK
24242 _ACEOF
24243 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24244 as_fn_error "could not setup config headers machinery" "$LINENO" 5
24245 fi # test -n "$CONFIG_HEADERS"
24248 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
24249 shift
24250 for ac_tag
24252 case $ac_tag in
24253 :[FHLC]) ac_mode=$ac_tag; continue;;
24254 esac
24255 case $ac_mode$ac_tag in
24256 :[FHL]*:*);;
24257 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
24258 :[FH]-) ac_tag=-:-;;
24259 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24260 esac
24261 ac_save_IFS=$IFS
24262 IFS=:
24263 set x $ac_tag
24264 IFS=$ac_save_IFS
24265 shift
24266 ac_file=$1
24267 shift
24269 case $ac_mode in
24270 :L) ac_source=$1;;
24271 :[FH])
24272 ac_file_inputs=
24273 for ac_f
24275 case $ac_f in
24276 -) ac_f="$tmp/stdin";;
24277 *) # Look for the file first in the build tree, then in the source tree
24278 # (if the path is not absolute). The absolute path cannot be DOS-style,
24279 # because $ac_f cannot contain `:'.
24280 test -f "$ac_f" ||
24281 case $ac_f in
24282 [\\/$]*) false;;
24283 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24284 esac ||
24285 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
24286 esac
24287 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
24288 as_fn_append ac_file_inputs " '$ac_f'"
24289 done
24291 # Let's still pretend it is `configure' which instantiates (i.e., don't
24292 # use $as_me), people would be surprised to read:
24293 # /* config.h. Generated by config.status. */
24294 configure_input='Generated from '`
24295 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
24296 `' by configure.'
24297 if test x"$ac_file" != x-; then
24298 configure_input="$ac_file. $configure_input"
24299 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
24300 $as_echo "$as_me: creating $ac_file" >&6;}
24302 # Neutralize special characters interpreted by sed in replacement strings.
24303 case $configure_input in #(
24304 *\&* | *\|* | *\\* )
24305 ac_sed_conf_input=`$as_echo "$configure_input" |
24306 sed 's/[\\\\&|]/\\\\&/g'`;; #(
24307 *) ac_sed_conf_input=$configure_input;;
24308 esac
24310 case $ac_tag in
24311 *:-:* | *:-) cat >"$tmp/stdin" \
24312 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
24313 esac
24315 esac
24317 ac_dir=`$as_dirname -- "$ac_file" ||
24318 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24319 X"$ac_file" : 'X\(//\)[^/]' \| \
24320 X"$ac_file" : 'X\(//\)$' \| \
24321 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24322 $as_echo X"$ac_file" |
24323 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24324 s//\1/
24327 /^X\(\/\/\)[^/].*/{
24328 s//\1/
24331 /^X\(\/\/\)$/{
24332 s//\1/
24335 /^X\(\/\).*/{
24336 s//\1/
24339 s/.*/./; q'`
24340 as_dir="$ac_dir"; as_fn_mkdir_p
24341 ac_builddir=.
24343 case "$ac_dir" in
24344 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24346 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
24347 # A ".." for each directory in $ac_dir_suffix.
24348 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
24349 case $ac_top_builddir_sub in
24350 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24351 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24352 esac ;;
24353 esac
24354 ac_abs_top_builddir=$ac_pwd
24355 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24356 # for backward compatibility:
24357 ac_top_builddir=$ac_top_build_prefix
24359 case $srcdir in
24360 .) # We are building in place.
24361 ac_srcdir=.
24362 ac_top_srcdir=$ac_top_builddir_sub
24363 ac_abs_top_srcdir=$ac_pwd ;;
24364 [\\/]* | ?:[\\/]* ) # Absolute name.
24365 ac_srcdir=$srcdir$ac_dir_suffix;
24366 ac_top_srcdir=$srcdir
24367 ac_abs_top_srcdir=$srcdir ;;
24368 *) # Relative name.
24369 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24370 ac_top_srcdir=$ac_top_build_prefix$srcdir
24371 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24372 esac
24373 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24376 case $ac_mode in
24379 # CONFIG_FILE
24382 case $INSTALL in
24383 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24384 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
24385 esac
24386 ac_MKDIR_P=$MKDIR_P
24387 case $MKDIR_P in
24388 [\\/$]* | ?:[\\/]* ) ;;
24389 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
24390 esac
24391 _ACEOF
24393 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24394 # If the template does not know about datarootdir, expand it.
24395 # FIXME: This hack should be removed a few years after 2.60.
24396 ac_datarootdir_hack=; ac_datarootdir_seen=
24397 ac_sed_dataroot='
24398 /datarootdir/ {
24402 /@datadir@/p
24403 /@docdir@/p
24404 /@infodir@/p
24405 /@localedir@/p
24406 /@mandir@/p'
24407 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
24408 *datarootdir*) ac_datarootdir_seen=yes;;
24409 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24410 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24411 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24412 _ACEOF
24413 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24414 ac_datarootdir_hack='
24415 s&@datadir@&$datadir&g
24416 s&@docdir@&$docdir&g
24417 s&@infodir@&$infodir&g
24418 s&@localedir@&$localedir&g
24419 s&@mandir@&$mandir&g
24420 s&\\\${datarootdir}&$datarootdir&g' ;;
24421 esac
24422 _ACEOF
24424 # Neutralize VPATH when `$srcdir' = `.'.
24425 # Shell code in configure.ac might set extrasub.
24426 # FIXME: do we really want to maintain this feature?
24427 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24428 ac_sed_extra="$ac_vpsub
24429 $extrasub
24430 _ACEOF
24431 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24433 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24434 s|@configure_input@|$ac_sed_conf_input|;t t
24435 s&@top_builddir@&$ac_top_builddir_sub&;t t
24436 s&@top_build_prefix@&$ac_top_build_prefix&;t t
24437 s&@srcdir@&$ac_srcdir&;t t
24438 s&@abs_srcdir@&$ac_abs_srcdir&;t t
24439 s&@top_srcdir@&$ac_top_srcdir&;t t
24440 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24441 s&@builddir@&$ac_builddir&;t t
24442 s&@abs_builddir@&$ac_abs_builddir&;t t
24443 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24444 s&@INSTALL@&$ac_INSTALL&;t t
24445 s&@MKDIR_P@&$ac_MKDIR_P&;t t
24446 $ac_datarootdir_hack
24448 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
24449 if $ac_cs_awk_getline; then
24450 $AWK -f "$tmp/subs.awk"
24451 else
24452 $AWK -f "$tmp/subs.awk" | $SHELL
24453 fi >$tmp/out \
24454 || as_fn_error "could not create $ac_file" "$LINENO" 5
24456 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24457 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
24458 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
24459 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24460 which seems to be undefined. Please make sure it is defined." >&5
24461 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24462 which seems to be undefined. Please make sure it is defined." >&2;}
24464 rm -f "$tmp/stdin"
24465 case $ac_file in
24466 -) cat "$tmp/out" && rm -f "$tmp/out";;
24467 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
24468 esac \
24469 || as_fn_error "could not create $ac_file" "$LINENO" 5
24473 # CONFIG_HEADER
24475 if test x"$ac_file" != x-; then
24477 $as_echo "/* $configure_input */" \
24478 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
24479 } >"$tmp/config.h" \
24480 || as_fn_error "could not create $ac_file" "$LINENO" 5
24481 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
24482 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
24483 $as_echo "$as_me: $ac_file is unchanged" >&6;}
24484 else
24485 rm -f "$ac_file"
24486 mv "$tmp/config.h" "$ac_file" \
24487 || as_fn_error "could not create $ac_file" "$LINENO" 5
24489 else
24490 $as_echo "/* $configure_input */" \
24491 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
24492 || as_fn_error "could not create -" "$LINENO" 5
24494 # Compute "$ac_file"'s index in $config_headers.
24495 _am_arg="$ac_file"
24496 _am_stamp_count=1
24497 for _am_header in $config_headers :; do
24498 case $_am_header in
24499 $_am_arg | $_am_arg:* )
24500 break ;;
24502 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
24503 esac
24504 done
24505 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
24506 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24507 X"$_am_arg" : 'X\(//\)[^/]' \| \
24508 X"$_am_arg" : 'X\(//\)$' \| \
24509 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
24510 $as_echo X"$_am_arg" |
24511 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24512 s//\1/
24515 /^X\(\/\/\)[^/].*/{
24516 s//\1/
24519 /^X\(\/\/\)$/{
24520 s//\1/
24523 /^X\(\/\).*/{
24524 s//\1/
24527 s/.*/./; q'`/stamp-h$_am_stamp_count
24530 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
24531 $as_echo "$as_me: executing $ac_file commands" >&6;}
24533 esac
24536 case $ac_file$ac_mode in
24537 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
24538 # Autoconf 2.62 quotes --file arguments for eval, but not when files
24539 # are listed without --file. Let's play safe and only enable the eval
24540 # if we detect the quoting.
24541 case $CONFIG_FILES in
24542 *\'*) eval set x "$CONFIG_FILES" ;;
24543 *) set x $CONFIG_FILES ;;
24544 esac
24545 shift
24546 for mf
24548 # Strip MF so we end up with the name of the file.
24549 mf=`echo "$mf" | sed -e 's/:.*$//'`
24550 # Check whether this is an Automake generated Makefile or not.
24551 # We used to match only the files named `Makefile.in', but
24552 # some people rename them; so instead we look at the file content.
24553 # Grep'ing the first line is not enough: some people post-process
24554 # each Makefile.in and add a new line on top of each file to say so.
24555 # Grep'ing the whole file is not good either: AIX grep has a line
24556 # limit of 2048, but all sed's we know have understand at least 4000.
24557 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
24558 dirpart=`$as_dirname -- "$mf" ||
24559 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24560 X"$mf" : 'X\(//\)[^/]' \| \
24561 X"$mf" : 'X\(//\)$' \| \
24562 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
24563 $as_echo X"$mf" |
24564 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24565 s//\1/
24568 /^X\(\/\/\)[^/].*/{
24569 s//\1/
24572 /^X\(\/\/\)$/{
24573 s//\1/
24576 /^X\(\/\).*/{
24577 s//\1/
24580 s/.*/./; q'`
24581 else
24582 continue
24584 # Extract the definition of DEPDIR, am__include, and am__quote
24585 # from the Makefile without running `make'.
24586 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
24587 test -z "$DEPDIR" && continue
24588 am__include=`sed -n 's/^am__include = //p' < "$mf"`
24589 test -z "am__include" && continue
24590 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
24591 # When using ansi2knr, U may be empty or an underscore; expand it
24592 U=`sed -n 's/^U = //p' < "$mf"`
24593 # Find all dependency output files, they are included files with
24594 # $(DEPDIR) in their names. We invoke sed twice because it is the
24595 # simplest approach to changing $(DEPDIR) to its actual value in the
24596 # expansion.
24597 for file in `sed -n "
24598 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
24599 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
24600 # Make sure the directory exists.
24601 test -f "$dirpart/$file" && continue
24602 fdir=`$as_dirname -- "$file" ||
24603 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24604 X"$file" : 'X\(//\)[^/]' \| \
24605 X"$file" : 'X\(//\)$' \| \
24606 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
24607 $as_echo X"$file" |
24608 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24609 s//\1/
24612 /^X\(\/\/\)[^/].*/{
24613 s//\1/
24616 /^X\(\/\/\)$/{
24617 s//\1/
24620 /^X\(\/\).*/{
24621 s//\1/
24624 s/.*/./; q'`
24625 as_dir=$dirpart/$fdir; as_fn_mkdir_p
24626 # echo "creating $dirpart/$file"
24627 echo '# dummy' > "$dirpart/$file"
24628 done
24629 done
24632 "mkdirs":C)
24633 for dir in etc lisp ; do
24634 test -d ${dir} || mkdir ${dir}
24635 done
24637 "epaths":C)
24638 echo creating src/epaths.h
24639 ${MAKE-make} epaths-force
24641 "gdbinit":C)
24642 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
24643 echo creating src/.gdbinit
24644 echo source $srcdir/src/.gdbinit > src/.gdbinit
24648 esac
24649 done # for ac_tag
24652 as_fn_exit 0
24653 _ACEOF
24654 ac_clean_files=$ac_clean_files_save
24656 test $ac_write_fail = 0 ||
24657 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
24660 # configure is writing to config.log, and then calls config.status.
24661 # config.status does its own redirection, appending to config.log.
24662 # Unfortunately, on DOS this fails, as config.log is still kept open
24663 # by configure, so config.status won't be able to write to it; its
24664 # output is simply discarded. So we exec the FD to /dev/null,
24665 # effectively closing config.log, so it can be properly (re)opened and
24666 # appended to by config.status. When coming back to configure, we
24667 # need to make the FD available again.
24668 if test "$no_create" != yes; then
24669 ac_cs_success=:
24670 ac_config_status_args=
24671 test "$silent" = yes &&
24672 ac_config_status_args="$ac_config_status_args --quiet"
24673 exec 5>/dev/null
24674 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24675 exec 5>>config.log
24676 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24677 # would make configure fail if this is the last instruction.
24678 $ac_cs_success || as_fn_exit $?
24680 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
24681 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
24682 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}