* lisp/minibuffer.el (completion-table-with-quoting): Fix compatibility
[emacs.git] / autogen / configure
blob5c57dcc037454d12223304563958b3bce54a4a22
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_AUX_RPATH
1168 LD_SWITCH_X_SITE_AUX
1169 XMKMF
1170 DEPFLAGS
1171 MKDEPDIR
1172 CFLAGS_SOUND
1173 ALSA_LIBS
1174 ALSA_CFLAGS
1175 PKG_CONFIG
1176 LIBSOUND
1177 CRT_DIR
1178 START_FILES
1179 LIB_MATH
1180 LIBS_SYSTEM
1181 C_SWITCH_SYSTEM
1182 UNEXEC_OBJ
1183 C_SWITCH_MACHINE
1184 LD_SWITCH_SYSTEM
1185 CANNOT_DUMP
1186 HAVE_MAKEINFO
1187 GZIP_PROG
1188 INSTALL_INFO
1189 GNULIB_WARN_CFLAGS
1190 WERROR_CFLAGS
1191 RANLIB
1192 ARFLAGS
1194 EGREP
1195 GREP
1197 am__fastdepCC_FALSE
1198 am__fastdepCC_TRUE
1199 CCDEPMODE
1200 AMDEPBACKSLASH
1201 AMDEP_FALSE
1202 AMDEP_TRUE
1203 am__quote
1204 am__include
1205 DEPDIR
1206 OBJEXT
1207 EXEEXT
1208 ac_ct_CC
1209 CPPFLAGS
1210 LDFLAGS
1211 CFLAGS
1213 host_os
1214 host_vendor
1215 host_cpu
1216 host
1217 build_os
1218 build_vendor
1219 build_cpu
1220 build
1221 PROFILING_CFLAGS
1222 MAINT
1223 GZIP_INFO
1224 cache_file
1225 am__untar
1226 am__tar
1227 AMTAR
1228 am__leading_dot
1229 SET_MAKE
1231 mkdir_p
1232 MKDIR_P
1233 INSTALL_STRIP_PROGRAM
1234 STRIP
1235 install_sh
1236 MAKEINFO
1237 AUTOHEADER
1238 AUTOMAKE
1239 AUTOCONF
1240 ACLOCAL
1241 VERSION
1242 PACKAGE
1243 CYGPATH_W
1244 am__isrc
1245 INSTALL_DATA
1246 INSTALL_SCRIPT
1247 INSTALL_PROGRAM
1248 target_alias
1249 host_alias
1250 build_alias
1251 LIBS
1252 ECHO_T
1253 ECHO_N
1254 ECHO_C
1255 DEFS
1256 mandir
1257 localedir
1258 libdir
1259 psdir
1260 pdfdir
1261 dvidir
1262 htmldir
1263 infodir
1264 docdir
1265 oldincludedir
1266 includedir
1267 localstatedir
1268 sharedstatedir
1269 sysconfdir
1270 datadir
1271 datarootdir
1272 libexecdir
1273 sbindir
1274 bindir
1275 program_transform_name
1276 prefix
1277 exec_prefix
1278 PACKAGE_URL
1279 PACKAGE_BUGREPORT
1280 PACKAGE_STRING
1281 PACKAGE_VERSION
1282 PACKAGE_TARNAME
1283 PACKAGE_NAME
1284 PATH_SEPARATOR
1285 SHELL'
1286 ac_subst_files='deps_frag
1287 lisp_frag
1288 ns_frag'
1289 ac_user_opts='
1290 enable_option_checking
1291 with_pop
1292 with_kerberos
1293 with_kerberos5
1294 with_hesiod
1295 with_mmdf
1296 with_mail_unlink
1297 with_mailhost
1298 with_sound
1299 with_sync_input
1300 with_x_toolkit
1301 with_wide_int
1302 with_xpm
1303 with_jpeg
1304 with_tiff
1305 with_gif
1306 with_png
1307 with_rsvg
1308 with_xml2
1309 with_imagemagick
1310 with_xft
1311 with_libotf
1312 with_m17n_flt
1313 with_toolkit_scroll_bars
1314 with_xaw3d
1315 with_xim
1316 with_ns
1317 with_gpm
1318 with_dbus
1319 with_gconf
1320 with_gsettings
1321 with_selinux
1322 with_gnutls
1323 with_makeinfo
1324 with_compress_info
1325 with_pkg_config_prog
1326 with_crt_dir
1327 with_gameuser
1328 with_gnustep_conf
1329 enable_ns_self_contained
1330 enable_asserts
1331 enable_maintainer_mode
1332 enable_locallisppath
1333 enable_checking
1334 enable_use_lisp_union_type
1335 enable_profiling
1336 enable_autodepend
1337 enable_dependency_tracking
1338 enable_largefile
1339 enable_gcc_warnings
1340 with_x
1342 ac_precious_vars='build_alias
1343 host_alias
1344 target_alias
1346 CFLAGS
1347 LDFLAGS
1348 LIBS
1349 CPPFLAGS
1351 XMKMF'
1354 # Initialize some variables set by options.
1355 ac_init_help=
1356 ac_init_version=false
1357 ac_unrecognized_opts=
1358 ac_unrecognized_sep=
1359 # The variables have the same names as the options, with
1360 # dashes changed to underlines.
1361 cache_file=/dev/null
1362 exec_prefix=NONE
1363 no_create=
1364 no_recursion=
1365 prefix=NONE
1366 program_prefix=NONE
1367 program_suffix=NONE
1368 program_transform_name=s,x,x,
1369 silent=
1370 site=
1371 srcdir=
1372 verbose=
1373 x_includes=NONE
1374 x_libraries=NONE
1376 # Installation directory options.
1377 # These are left unexpanded so users can "make install exec_prefix=/foo"
1378 # and all the variables that are supposed to be based on exec_prefix
1379 # by default will actually change.
1380 # Use braces instead of parens because sh, perl, etc. also accept them.
1381 # (The list follows the same order as the GNU Coding Standards.)
1382 bindir='${exec_prefix}/bin'
1383 sbindir='${exec_prefix}/sbin'
1384 libexecdir='${exec_prefix}/libexec'
1385 datarootdir='${prefix}/share'
1386 datadir='${datarootdir}'
1387 sysconfdir='${prefix}/etc'
1388 sharedstatedir='${prefix}/com'
1389 localstatedir='${prefix}/var'
1390 includedir='${prefix}/include'
1391 oldincludedir='/usr/include'
1392 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1393 infodir='${datarootdir}/info'
1394 htmldir='${docdir}'
1395 dvidir='${docdir}'
1396 pdfdir='${docdir}'
1397 psdir='${docdir}'
1398 libdir='${exec_prefix}/lib'
1399 localedir='${datarootdir}/locale'
1400 mandir='${datarootdir}/man'
1402 ac_prev=
1403 ac_dashdash=
1404 for ac_option
1406 # If the previous option needs an argument, assign it.
1407 if test -n "$ac_prev"; then
1408 eval $ac_prev=\$ac_option
1409 ac_prev=
1410 continue
1413 case $ac_option in
1414 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1415 *) ac_optarg=yes ;;
1416 esac
1418 # Accept the important Cygnus configure options, so we can diagnose typos.
1420 case $ac_dashdash$ac_option in
1422 ac_dashdash=yes ;;
1424 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1425 ac_prev=bindir ;;
1426 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1427 bindir=$ac_optarg ;;
1429 -build | --build | --buil | --bui | --bu)
1430 ac_prev=build_alias ;;
1431 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1432 build_alias=$ac_optarg ;;
1434 -cache-file | --cache-file | --cache-fil | --cache-fi \
1435 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1436 ac_prev=cache_file ;;
1437 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1438 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1439 cache_file=$ac_optarg ;;
1441 --config-cache | -C)
1442 cache_file=config.cache ;;
1444 -datadir | --datadir | --datadi | --datad)
1445 ac_prev=datadir ;;
1446 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1447 datadir=$ac_optarg ;;
1449 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1450 | --dataroo | --dataro | --datar)
1451 ac_prev=datarootdir ;;
1452 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1453 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1454 datarootdir=$ac_optarg ;;
1456 -disable-* | --disable-*)
1457 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1458 # Reject names that are not valid shell variable names.
1459 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1460 as_fn_error "invalid feature name: $ac_useropt"
1461 ac_useropt_orig=$ac_useropt
1462 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1463 case $ac_user_opts in
1465 "enable_$ac_useropt"
1466 "*) ;;
1467 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1468 ac_unrecognized_sep=', ';;
1469 esac
1470 eval enable_$ac_useropt=no ;;
1472 -docdir | --docdir | --docdi | --doc | --do)
1473 ac_prev=docdir ;;
1474 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1475 docdir=$ac_optarg ;;
1477 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1478 ac_prev=dvidir ;;
1479 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1480 dvidir=$ac_optarg ;;
1482 -enable-* | --enable-*)
1483 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1484 # Reject names that are not valid shell variable names.
1485 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1486 as_fn_error "invalid feature name: $ac_useropt"
1487 ac_useropt_orig=$ac_useropt
1488 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1489 case $ac_user_opts in
1491 "enable_$ac_useropt"
1492 "*) ;;
1493 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1494 ac_unrecognized_sep=', ';;
1495 esac
1496 eval enable_$ac_useropt=\$ac_optarg ;;
1498 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1499 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1500 | --exec | --exe | --ex)
1501 ac_prev=exec_prefix ;;
1502 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1503 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1504 | --exec=* | --exe=* | --ex=*)
1505 exec_prefix=$ac_optarg ;;
1507 -gas | --gas | --ga | --g)
1508 # Obsolete; use --with-gas.
1509 with_gas=yes ;;
1511 -help | --help | --hel | --he | -h)
1512 ac_init_help=long ;;
1513 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1514 ac_init_help=recursive ;;
1515 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1516 ac_init_help=short ;;
1518 -host | --host | --hos | --ho)
1519 ac_prev=host_alias ;;
1520 -host=* | --host=* | --hos=* | --ho=*)
1521 host_alias=$ac_optarg ;;
1523 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1524 ac_prev=htmldir ;;
1525 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1526 | --ht=*)
1527 htmldir=$ac_optarg ;;
1529 -includedir | --includedir | --includedi | --included | --include \
1530 | --includ | --inclu | --incl | --inc)
1531 ac_prev=includedir ;;
1532 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1533 | --includ=* | --inclu=* | --incl=* | --inc=*)
1534 includedir=$ac_optarg ;;
1536 -infodir | --infodir | --infodi | --infod | --info | --inf)
1537 ac_prev=infodir ;;
1538 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1539 infodir=$ac_optarg ;;
1541 -libdir | --libdir | --libdi | --libd)
1542 ac_prev=libdir ;;
1543 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1544 libdir=$ac_optarg ;;
1546 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1547 | --libexe | --libex | --libe)
1548 ac_prev=libexecdir ;;
1549 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1550 | --libexe=* | --libex=* | --libe=*)
1551 libexecdir=$ac_optarg ;;
1553 -localedir | --localedir | --localedi | --localed | --locale)
1554 ac_prev=localedir ;;
1555 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1556 localedir=$ac_optarg ;;
1558 -localstatedir | --localstatedir | --localstatedi | --localstated \
1559 | --localstate | --localstat | --localsta | --localst | --locals)
1560 ac_prev=localstatedir ;;
1561 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1562 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1563 localstatedir=$ac_optarg ;;
1565 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1566 ac_prev=mandir ;;
1567 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1568 mandir=$ac_optarg ;;
1570 -nfp | --nfp | --nf)
1571 # Obsolete; use --without-fp.
1572 with_fp=no ;;
1574 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1575 | --no-cr | --no-c | -n)
1576 no_create=yes ;;
1578 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1579 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1580 no_recursion=yes ;;
1582 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1583 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1584 | --oldin | --oldi | --old | --ol | --o)
1585 ac_prev=oldincludedir ;;
1586 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1587 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1588 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1589 oldincludedir=$ac_optarg ;;
1591 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1592 ac_prev=prefix ;;
1593 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1594 prefix=$ac_optarg ;;
1596 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1597 | --program-pre | --program-pr | --program-p)
1598 ac_prev=program_prefix ;;
1599 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1600 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1601 program_prefix=$ac_optarg ;;
1603 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1604 | --program-suf | --program-su | --program-s)
1605 ac_prev=program_suffix ;;
1606 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1607 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1608 program_suffix=$ac_optarg ;;
1610 -program-transform-name | --program-transform-name \
1611 | --program-transform-nam | --program-transform-na \
1612 | --program-transform-n | --program-transform- \
1613 | --program-transform | --program-transfor \
1614 | --program-transfo | --program-transf \
1615 | --program-trans | --program-tran \
1616 | --progr-tra | --program-tr | --program-t)
1617 ac_prev=program_transform_name ;;
1618 -program-transform-name=* | --program-transform-name=* \
1619 | --program-transform-nam=* | --program-transform-na=* \
1620 | --program-transform-n=* | --program-transform-=* \
1621 | --program-transform=* | --program-transfor=* \
1622 | --program-transfo=* | --program-transf=* \
1623 | --program-trans=* | --program-tran=* \
1624 | --progr-tra=* | --program-tr=* | --program-t=*)
1625 program_transform_name=$ac_optarg ;;
1627 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1628 ac_prev=pdfdir ;;
1629 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1630 pdfdir=$ac_optarg ;;
1632 -psdir | --psdir | --psdi | --psd | --ps)
1633 ac_prev=psdir ;;
1634 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1635 psdir=$ac_optarg ;;
1637 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1638 | -silent | --silent | --silen | --sile | --sil)
1639 silent=yes ;;
1641 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1642 ac_prev=sbindir ;;
1643 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1644 | --sbi=* | --sb=*)
1645 sbindir=$ac_optarg ;;
1647 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1648 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1649 | --sharedst | --shareds | --shared | --share | --shar \
1650 | --sha | --sh)
1651 ac_prev=sharedstatedir ;;
1652 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1653 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1654 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1655 | --sha=* | --sh=*)
1656 sharedstatedir=$ac_optarg ;;
1658 -site | --site | --sit)
1659 ac_prev=site ;;
1660 -site=* | --site=* | --sit=*)
1661 site=$ac_optarg ;;
1663 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1664 ac_prev=srcdir ;;
1665 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1666 srcdir=$ac_optarg ;;
1668 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1669 | --syscon | --sysco | --sysc | --sys | --sy)
1670 ac_prev=sysconfdir ;;
1671 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1672 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1673 sysconfdir=$ac_optarg ;;
1675 -target | --target | --targe | --targ | --tar | --ta | --t)
1676 ac_prev=target_alias ;;
1677 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1678 target_alias=$ac_optarg ;;
1680 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1681 verbose=yes ;;
1683 -version | --version | --versio | --versi | --vers | -V)
1684 ac_init_version=: ;;
1686 -with-* | --with-*)
1687 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1688 # Reject names that are not valid shell variable names.
1689 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1690 as_fn_error "invalid package name: $ac_useropt"
1691 ac_useropt_orig=$ac_useropt
1692 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1693 case $ac_user_opts in
1695 "with_$ac_useropt"
1696 "*) ;;
1697 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1698 ac_unrecognized_sep=', ';;
1699 esac
1700 eval with_$ac_useropt=\$ac_optarg ;;
1702 -without-* | --without-*)
1703 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1704 # Reject names that are not valid shell variable names.
1705 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1706 as_fn_error "invalid package name: $ac_useropt"
1707 ac_useropt_orig=$ac_useropt
1708 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1709 case $ac_user_opts in
1711 "with_$ac_useropt"
1712 "*) ;;
1713 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1714 ac_unrecognized_sep=', ';;
1715 esac
1716 eval with_$ac_useropt=no ;;
1718 --x)
1719 # Obsolete; use --with-x.
1720 with_x=yes ;;
1722 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1723 | --x-incl | --x-inc | --x-in | --x-i)
1724 ac_prev=x_includes ;;
1725 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1726 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1727 x_includes=$ac_optarg ;;
1729 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1730 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1731 ac_prev=x_libraries ;;
1732 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1733 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1734 x_libraries=$ac_optarg ;;
1736 -*) as_fn_error "unrecognized option: \`$ac_option'
1737 Try \`$0 --help' for more information."
1740 *=*)
1741 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1742 # Reject names that are not valid shell variable names.
1743 case $ac_envvar in #(
1744 '' | [0-9]* | *[!_$as_cr_alnum]* )
1745 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1746 esac
1747 eval $ac_envvar=\$ac_optarg
1748 export $ac_envvar ;;
1751 # FIXME: should be removed in autoconf 3.0.
1752 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1753 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1754 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1755 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1758 esac
1759 done
1761 if test -n "$ac_prev"; then
1762 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1763 as_fn_error "missing argument to $ac_option"
1766 if test -n "$ac_unrecognized_opts"; then
1767 case $enable_option_checking in
1768 no) ;;
1769 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1770 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1771 esac
1774 # Check all directory arguments for consistency.
1775 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1776 datadir sysconfdir sharedstatedir localstatedir includedir \
1777 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1778 libdir localedir mandir
1780 eval ac_val=\$$ac_var
1781 # Remove trailing slashes.
1782 case $ac_val in
1783 */ )
1784 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1785 eval $ac_var=\$ac_val;;
1786 esac
1787 # Be sure to have absolute directory names.
1788 case $ac_val in
1789 [\\/$]* | ?:[\\/]* ) continue;;
1790 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1791 esac
1792 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1793 done
1795 # There might be people who depend on the old broken behavior: `$host'
1796 # used to hold the argument of --host etc.
1797 # FIXME: To remove some day.
1798 build=$build_alias
1799 host=$host_alias
1800 target=$target_alias
1802 # FIXME: To remove some day.
1803 if test "x$host_alias" != x; then
1804 if test "x$build_alias" = x; then
1805 cross_compiling=maybe
1806 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1807 If a cross compiler is detected then cross compile mode will be used." >&2
1808 elif test "x$build_alias" != "x$host_alias"; then
1809 cross_compiling=yes
1813 ac_tool_prefix=
1814 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1816 test "$silent" = yes && exec 6>/dev/null
1819 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1820 ac_ls_di=`ls -di .` &&
1821 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1822 as_fn_error "working directory cannot be determined"
1823 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1824 as_fn_error "pwd does not report name of working directory"
1827 # Find the source files, if location was not specified.
1828 if test -z "$srcdir"; then
1829 ac_srcdir_defaulted=yes
1830 # Try the directory containing this script, then the parent directory.
1831 ac_confdir=`$as_dirname -- "$as_myself" ||
1832 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1833 X"$as_myself" : 'X\(//\)[^/]' \| \
1834 X"$as_myself" : 'X\(//\)$' \| \
1835 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1836 $as_echo X"$as_myself" |
1837 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1838 s//\1/
1841 /^X\(\/\/\)[^/].*/{
1842 s//\1/
1845 /^X\(\/\/\)$/{
1846 s//\1/
1849 /^X\(\/\).*/{
1850 s//\1/
1853 s/.*/./; q'`
1854 srcdir=$ac_confdir
1855 if test ! -r "$srcdir/$ac_unique_file"; then
1856 srcdir=..
1858 else
1859 ac_srcdir_defaulted=no
1861 if test ! -r "$srcdir/$ac_unique_file"; then
1862 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1863 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1865 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1866 ac_abs_confdir=`(
1867 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1868 pwd)`
1869 # When building in place, set srcdir=.
1870 if test "$ac_abs_confdir" = "$ac_pwd"; then
1871 srcdir=.
1873 # Remove unnecessary trailing slashes from srcdir.
1874 # Double slashes in file names in object file debugging info
1875 # mess up M-x gdb in Emacs.
1876 case $srcdir in
1877 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1878 esac
1879 for ac_var in $ac_precious_vars; do
1880 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1881 eval ac_env_${ac_var}_value=\$${ac_var}
1882 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1883 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1884 done
1887 # Report the --help message.
1889 if test "$ac_init_help" = "long"; then
1890 # Omit some internal or obsolete options to make the list less imposing.
1891 # This message is too long to be a string in the A/UX 3.1 sh.
1892 cat <<_ACEOF
1893 \`configure' configures emacs 24.1.50 to adapt to many kinds of systems.
1895 Usage: $0 [OPTION]... [VAR=VALUE]...
1897 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1898 VAR=VALUE. See below for descriptions of some of the useful variables.
1900 Defaults for the options are specified in brackets.
1902 Configuration:
1903 -h, --help display this help and exit
1904 --help=short display options specific to this package
1905 --help=recursive display the short help of all the included packages
1906 -V, --version display version information and exit
1907 -q, --quiet, --silent do not print \`checking...' messages
1908 --cache-file=FILE cache test results in FILE [disabled]
1909 -C, --config-cache alias for \`--cache-file=config.cache'
1910 -n, --no-create do not create output files
1911 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1913 Installation directories:
1914 --prefix=PREFIX install architecture-independent files in PREFIX
1915 [$ac_default_prefix]
1916 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1917 [PREFIX]
1919 By default, \`make install' will install all the files in
1920 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1921 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1922 for instance \`--prefix=\$HOME'.
1924 For better control, use the options below.
1926 Fine tuning of the installation directories:
1927 --bindir=DIR user executables [EPREFIX/bin]
1928 --sbindir=DIR system admin executables [EPREFIX/sbin]
1929 --libexecdir=DIR program executables [EPREFIX/libexec]
1930 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1931 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1932 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1933 --libdir=DIR object code libraries [EPREFIX/lib]
1934 --includedir=DIR C header files [PREFIX/include]
1935 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1936 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1937 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1938 --infodir=DIR info documentation [DATAROOTDIR/info]
1939 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1940 --mandir=DIR man documentation [DATAROOTDIR/man]
1941 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1942 --htmldir=DIR html documentation [DOCDIR]
1943 --dvidir=DIR dvi documentation [DOCDIR]
1944 --pdfdir=DIR pdf documentation [DOCDIR]
1945 --psdir=DIR ps documentation [DOCDIR]
1946 _ACEOF
1948 cat <<\_ACEOF
1950 Program names:
1951 --program-prefix=PREFIX prepend PREFIX to installed program names
1952 --program-suffix=SUFFIX append SUFFIX to installed program names
1953 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1955 X features:
1956 --x-includes=DIR X include files are in DIR
1957 --x-libraries=DIR X library files are in DIR
1959 System types:
1960 --build=BUILD configure for building on BUILD [guessed]
1961 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1962 _ACEOF
1965 if test -n "$ac_init_help"; then
1966 case $ac_init_help in
1967 short | recursive ) echo "Configuration of emacs 24.1.50:";;
1968 esac
1969 cat <<\_ACEOF
1971 Optional Features:
1972 --disable-option-checking ignore unrecognized --enable/--with options
1973 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1974 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1975 --disable-ns-self-contained
1976 disable self contained build under NeXTstep
1977 --enable-asserts compile code with asserts enabled
1978 --disable-maintainer-mode
1979 disable make rules and dependencies not useful (and
1980 sometimes confusing) to the casual installer
1981 --enable-locallisppath=PATH
1982 directories Emacs should search for lisp files
1983 specific to this site
1984 --enable-checking[=LIST]
1985 enable expensive run-time checks. With LIST, enable
1986 only specific categories of checks. Categories are:
1987 all,yes,no. Flags are: stringbytes, stringoverrun,
1988 stringfreelist, xmallocoverrun, conslist
1989 --enable-use-lisp-union-type
1990 use a union for the Lisp_Object data type. This is
1991 only useful for development for catching certain
1992 types of bugs.
1993 --enable-profiling build emacs with profiling support. This might not
1994 work on all platforms
1995 --enable-autodepend automatically generate dependencies to .h-files.
1996 Requires GNU Make and Gcc. Enabled if GNU Make and
1997 Gcc is found
1998 --disable-dependency-tracking speeds up one-time build
1999 --enable-dependency-tracking do not reject slow dependency extractors
2000 --disable-largefile omit support for large files
2001 --enable-gcc-warnings turn on lots of GCC warnings (for developers)
2003 Optional Packages:
2004 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
2005 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
2006 --without-pop don't support POP mail retrieval with movemail
2007 --with-kerberos support Kerberos-authenticated POP
2008 --with-kerberos5 support Kerberos version 5 authenticated POP
2009 --with-hesiod support Hesiod to get the POP server host
2010 --with-mmdf support MMDF mailboxes
2011 --with-mail-unlink unlink, rather than empty, mail spool after reading
2012 --with-mailhost=HOSTNAME
2013 string giving default POP mail host
2014 --without-sound don't compile with sound support
2015 --without-sync-input process async input synchronously
2016 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes or gtk, gtk3,
2017 lucid or athena, motif, no)
2018 --with-wide-int prefer wide Emacs integers (typically 62-bit)
2019 --without-xpm don't compile with XPM image support
2020 --without-jpeg don't compile with JPEG image support
2021 --without-tiff don't compile with TIFF image support
2022 --without-gif don't compile with GIF image support
2023 --without-png don't compile with PNG image support
2024 --without-rsvg don't compile with SVG image support
2025 --without-xml2 don't compile with XML parsing support
2026 --without-imagemagick don't compile with ImageMagick image support
2027 --without-xft don't use XFT for anti aliased fonts
2028 --without-libotf don't use libotf for OpenType font support
2029 --without-m17n-flt don't use m17n-flt for text shaping
2030 --without-toolkit-scroll-bars
2031 don't use Motif or Xaw3d scroll bars
2032 --without-xaw3d don't use Xaw3d
2033 --without-xim don't use X11 XIM
2034 --with-ns use NeXTstep (Cocoa or GNUstep) windowing system
2035 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
2036 console
2037 --without-dbus don't compile with D-Bus support
2038 --without-gconf don't compile with GConf support
2039 --without-gsettings don't compile with GSettings support
2040 --without-selinux don't compile with SELinux support
2041 --without-gnutls don't use -lgnutls for SSL/TLS support
2042 --without-makeinfo don't require makeinfo for building manuals
2043 --without-compress-info don't compress the installed Info pages
2044 --with-pkg-config-prog=PATH
2045 path to pkg-config for finding GTK and librsvg
2046 --with-crt-dir=DIR directory containing crtn.o etc. The default is
2047 /usr/lib, or /usr/lib64 on some platforms.
2048 --with-gameuser=USER user for shared game score files
2049 --with-gnustep-conf=PATH
2050 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
2051 or /etc/GNUstep/GNUstep.conf
2052 --with-x use the X Window System
2054 Some influential environment variables:
2055 CC C compiler command
2056 CFLAGS C compiler flags
2057 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2058 nonstandard directory <lib dir>
2059 LIBS libraries to pass to the linker, e.g. -l<library>
2060 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2061 you have headers in a nonstandard directory <include dir>
2062 CPP C preprocessor
2063 XMKMF Path to xmkmf, Makefile generator for X Window System
2065 Use these variables to override the choices made by `configure' or to help
2066 it to find libraries and programs with nonstandard names/locations.
2068 Report bugs to the package provider.
2069 _ACEOF
2070 ac_status=$?
2073 if test "$ac_init_help" = "recursive"; then
2074 # If there are subdirs, report their specific --help.
2075 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2076 test -d "$ac_dir" ||
2077 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2078 continue
2079 ac_builddir=.
2081 case "$ac_dir" in
2082 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2084 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2085 # A ".." for each directory in $ac_dir_suffix.
2086 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2087 case $ac_top_builddir_sub in
2088 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2089 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2090 esac ;;
2091 esac
2092 ac_abs_top_builddir=$ac_pwd
2093 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2094 # for backward compatibility:
2095 ac_top_builddir=$ac_top_build_prefix
2097 case $srcdir in
2098 .) # We are building in place.
2099 ac_srcdir=.
2100 ac_top_srcdir=$ac_top_builddir_sub
2101 ac_abs_top_srcdir=$ac_pwd ;;
2102 [\\/]* | ?:[\\/]* ) # Absolute name.
2103 ac_srcdir=$srcdir$ac_dir_suffix;
2104 ac_top_srcdir=$srcdir
2105 ac_abs_top_srcdir=$srcdir ;;
2106 *) # Relative name.
2107 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2108 ac_top_srcdir=$ac_top_build_prefix$srcdir
2109 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2110 esac
2111 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2113 cd "$ac_dir" || { ac_status=$?; continue; }
2114 # Check for guested configure.
2115 if test -f "$ac_srcdir/configure.gnu"; then
2116 echo &&
2117 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2118 elif test -f "$ac_srcdir/configure"; then
2119 echo &&
2120 $SHELL "$ac_srcdir/configure" --help=recursive
2121 else
2122 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2123 fi || ac_status=$?
2124 cd "$ac_pwd" || { ac_status=$?; break; }
2125 done
2128 test -n "$ac_init_help" && exit $ac_status
2129 if $ac_init_version; then
2130 cat <<\_ACEOF
2131 emacs configure 24.1.50
2132 generated by GNU Autoconf 2.65
2134 Copyright (C) 2009 Free Software Foundation, Inc.
2135 This configure script is free software; the Free Software Foundation
2136 gives unlimited permission to copy, distribute and modify it.
2137 _ACEOF
2138 exit
2141 ## ------------------------ ##
2142 ## Autoconf initialization. ##
2143 ## ------------------------ ##
2145 # ac_fn_c_try_compile LINENO
2146 # --------------------------
2147 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2148 ac_fn_c_try_compile ()
2150 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2151 rm -f conftest.$ac_objext
2152 if { { ac_try="$ac_compile"
2153 case "(($ac_try" in
2154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2155 *) ac_try_echo=$ac_try;;
2156 esac
2157 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2158 $as_echo "$ac_try_echo"; } >&5
2159 (eval "$ac_compile") 2>conftest.err
2160 ac_status=$?
2161 if test -s conftest.err; then
2162 grep -v '^ *+' conftest.err >conftest.er1
2163 cat conftest.er1 >&5
2164 mv -f conftest.er1 conftest.err
2166 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2167 test $ac_status = 0; } && {
2168 test -z "$ac_c_werror_flag" ||
2169 test ! -s conftest.err
2170 } && test -s conftest.$ac_objext; then :
2171 ac_retval=0
2172 else
2173 $as_echo "$as_me: failed program was:" >&5
2174 sed 's/^/| /' conftest.$ac_ext >&5
2176 ac_retval=1
2178 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2179 as_fn_set_status $ac_retval
2181 } # ac_fn_c_try_compile
2183 # ac_fn_c_try_cpp LINENO
2184 # ----------------------
2185 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2186 ac_fn_c_try_cpp ()
2188 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2189 if { { ac_try="$ac_cpp conftest.$ac_ext"
2190 case "(($ac_try" in
2191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2192 *) ac_try_echo=$ac_try;;
2193 esac
2194 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2195 $as_echo "$ac_try_echo"; } >&5
2196 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2197 ac_status=$?
2198 if test -s conftest.err; then
2199 grep -v '^ *+' conftest.err >conftest.er1
2200 cat conftest.er1 >&5
2201 mv -f conftest.er1 conftest.err
2203 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2204 test $ac_status = 0; } >/dev/null && {
2205 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2206 test ! -s conftest.err
2207 }; then :
2208 ac_retval=0
2209 else
2210 $as_echo "$as_me: failed program was:" >&5
2211 sed 's/^/| /' conftest.$ac_ext >&5
2213 ac_retval=1
2215 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2216 as_fn_set_status $ac_retval
2218 } # ac_fn_c_try_cpp
2220 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2221 # -------------------------------------------------------
2222 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2223 # the include files in INCLUDES and setting the cache variable VAR
2224 # accordingly.
2225 ac_fn_c_check_header_mongrel ()
2227 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2228 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2230 $as_echo_n "checking for $2... " >&6; }
2231 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2232 $as_echo_n "(cached) " >&6
2234 eval ac_res=\$$3
2235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2236 $as_echo "$ac_res" >&6; }
2237 else
2238 # Is the header compilable?
2239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2240 $as_echo_n "checking $2 usability... " >&6; }
2241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2242 /* end confdefs.h. */
2244 #include <$2>
2245 _ACEOF
2246 if ac_fn_c_try_compile "$LINENO"; then :
2247 ac_header_compiler=yes
2248 else
2249 ac_header_compiler=no
2251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2253 $as_echo "$ac_header_compiler" >&6; }
2255 # Is the header present?
2256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2257 $as_echo_n "checking $2 presence... " >&6; }
2258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2259 /* end confdefs.h. */
2260 #include <$2>
2261 _ACEOF
2262 if ac_fn_c_try_cpp "$LINENO"; then :
2263 ac_header_preproc=yes
2264 else
2265 ac_header_preproc=no
2267 rm -f conftest.err conftest.$ac_ext
2268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2269 $as_echo "$ac_header_preproc" >&6; }
2271 # So? What about this header?
2272 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2273 yes:no: )
2274 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2275 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2276 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2277 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2279 no:yes:* )
2280 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2281 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2282 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2283 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2284 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2285 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2286 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2287 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2288 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2289 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2291 esac
2292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2293 $as_echo_n "checking for $2... " >&6; }
2294 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2295 $as_echo_n "(cached) " >&6
2296 else
2297 eval "$3=\$ac_header_compiler"
2299 eval ac_res=\$$3
2300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2301 $as_echo "$ac_res" >&6; }
2303 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2305 } # ac_fn_c_check_header_mongrel
2307 # ac_fn_c_try_run LINENO
2308 # ----------------------
2309 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2310 # that executables *can* be run.
2311 ac_fn_c_try_run ()
2313 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2314 if { { ac_try="$ac_link"
2315 case "(($ac_try" in
2316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2317 *) ac_try_echo=$ac_try;;
2318 esac
2319 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2320 $as_echo "$ac_try_echo"; } >&5
2321 (eval "$ac_link") 2>&5
2322 ac_status=$?
2323 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2324 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2325 { { case "(($ac_try" in
2326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2327 *) ac_try_echo=$ac_try;;
2328 esac
2329 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2330 $as_echo "$ac_try_echo"; } >&5
2331 (eval "$ac_try") 2>&5
2332 ac_status=$?
2333 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2334 test $ac_status = 0; }; }; then :
2335 ac_retval=0
2336 else
2337 $as_echo "$as_me: program exited with status $ac_status" >&5
2338 $as_echo "$as_me: failed program was:" >&5
2339 sed 's/^/| /' conftest.$ac_ext >&5
2341 ac_retval=$ac_status
2343 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2344 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2345 as_fn_set_status $ac_retval
2347 } # ac_fn_c_try_run
2349 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2350 # -------------------------------------------------------
2351 # Tests whether HEADER exists and can be compiled using the include files in
2352 # INCLUDES, setting the cache variable VAR accordingly.
2353 ac_fn_c_check_header_compile ()
2355 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2357 $as_echo_n "checking for $2... " >&6; }
2358 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2359 $as_echo_n "(cached) " >&6
2360 else
2361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2362 /* end confdefs.h. */
2364 #include <$2>
2365 _ACEOF
2366 if ac_fn_c_try_compile "$LINENO"; then :
2367 eval "$3=yes"
2368 else
2369 eval "$3=no"
2371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2373 eval ac_res=\$$3
2374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2375 $as_echo "$ac_res" >&6; }
2376 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2378 } # ac_fn_c_check_header_compile
2380 # ac_fn_c_try_link LINENO
2381 # -----------------------
2382 # Try to link conftest.$ac_ext, and return whether this succeeded.
2383 ac_fn_c_try_link ()
2385 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2386 rm -f conftest.$ac_objext conftest$ac_exeext
2387 if { { ac_try="$ac_link"
2388 case "(($ac_try" in
2389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2390 *) ac_try_echo=$ac_try;;
2391 esac
2392 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2393 $as_echo "$ac_try_echo"; } >&5
2394 (eval "$ac_link") 2>conftest.err
2395 ac_status=$?
2396 if test -s conftest.err; then
2397 grep -v '^ *+' conftest.err >conftest.er1
2398 cat conftest.er1 >&5
2399 mv -f conftest.er1 conftest.err
2401 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2402 test $ac_status = 0; } && {
2403 test -z "$ac_c_werror_flag" ||
2404 test ! -s conftest.err
2405 } && test -s conftest$ac_exeext && {
2406 test "$cross_compiling" = yes ||
2407 $as_test_x conftest$ac_exeext
2408 }; then :
2409 ac_retval=0
2410 else
2411 $as_echo "$as_me: failed program was:" >&5
2412 sed 's/^/| /' conftest.$ac_ext >&5
2414 ac_retval=1
2416 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2417 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2418 # interfere with the next link command; also delete a directory that is
2419 # left behind by Apple's compiler. We do this before executing the actions.
2420 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2421 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2422 as_fn_set_status $ac_retval
2424 } # ac_fn_c_try_link
2426 # ac_fn_c_check_decl LINENO SYMBOL VAR
2427 # ------------------------------------
2428 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2429 ac_fn_c_check_decl ()
2431 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2433 $as_echo_n "checking whether $2 is declared... " >&6; }
2434 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2435 $as_echo_n "(cached) " >&6
2436 else
2437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2438 /* end confdefs.h. */
2441 main ()
2443 #ifndef $2
2444 (void) $2;
2445 #endif
2448 return 0;
2450 _ACEOF
2451 if ac_fn_c_try_compile "$LINENO"; then :
2452 eval "$3=yes"
2453 else
2454 eval "$3=no"
2456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2458 eval ac_res=\$$3
2459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2460 $as_echo "$ac_res" >&6; }
2461 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2463 } # ac_fn_c_check_decl
2465 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2466 # ----------------------------------------------
2467 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2468 ac_fn_c_check_header_preproc ()
2470 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2472 $as_echo_n "checking for $2... " >&6; }
2473 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2474 $as_echo_n "(cached) " >&6
2475 else
2476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2477 /* end confdefs.h. */
2478 #include <$2>
2479 _ACEOF
2480 if ac_fn_c_try_cpp "$LINENO"; then :
2481 eval "$3=yes"
2482 else
2483 eval "$3=no"
2485 rm -f conftest.err conftest.$ac_ext
2487 eval ac_res=\$$3
2488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2489 $as_echo "$ac_res" >&6; }
2490 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2492 } # ac_fn_c_check_header_preproc
2494 # ac_fn_c_check_func LINENO FUNC VAR
2495 # ----------------------------------
2496 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2497 ac_fn_c_check_func ()
2499 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2501 $as_echo_n "checking for $2... " >&6; }
2502 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2503 $as_echo_n "(cached) " >&6
2504 else
2505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2506 /* end confdefs.h. */
2507 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2508 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2509 #define $2 innocuous_$2
2511 /* System header to define __stub macros and hopefully few prototypes,
2512 which can conflict with char $2 (); below.
2513 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2514 <limits.h> exists even on freestanding compilers. */
2516 #ifdef __STDC__
2517 # include <limits.h>
2518 #else
2519 # include <assert.h>
2520 #endif
2522 #undef $2
2524 /* Override any GCC internal prototype to avoid an error.
2525 Use char because int might match the return type of a GCC
2526 builtin and then its argument prototype would still apply. */
2527 #ifdef __cplusplus
2528 extern "C"
2529 #endif
2530 char $2 ();
2531 /* The GNU C library defines this for functions which it implements
2532 to always fail with ENOSYS. Some functions are actually named
2533 something starting with __ and the normal name is an alias. */
2534 #if defined __stub_$2 || defined __stub___$2
2535 choke me
2536 #endif
2539 main ()
2541 return $2 ();
2543 return 0;
2545 _ACEOF
2546 if ac_fn_c_try_link "$LINENO"; then :
2547 eval "$3=yes"
2548 else
2549 eval "$3=no"
2551 rm -f core conftest.err conftest.$ac_objext \
2552 conftest$ac_exeext conftest.$ac_ext
2554 eval ac_res=\$$3
2555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2556 $as_echo "$ac_res" >&6; }
2557 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2559 } # ac_fn_c_check_func
2561 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2562 # ----------------------------------------------------
2563 # Tries to find if the field MEMBER exists in type AGGR, after including
2564 # INCLUDES, setting cache variable VAR accordingly.
2565 ac_fn_c_check_member ()
2567 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2569 $as_echo_n "checking for $2.$3... " >&6; }
2570 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2571 $as_echo_n "(cached) " >&6
2572 else
2573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2574 /* end confdefs.h. */
2577 main ()
2579 static $2 ac_aggr;
2580 if (ac_aggr.$3)
2581 return 0;
2583 return 0;
2585 _ACEOF
2586 if ac_fn_c_try_compile "$LINENO"; then :
2587 eval "$4=yes"
2588 else
2589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2590 /* end confdefs.h. */
2593 main ()
2595 static $2 ac_aggr;
2596 if (sizeof ac_aggr.$3)
2597 return 0;
2599 return 0;
2601 _ACEOF
2602 if ac_fn_c_try_compile "$LINENO"; then :
2603 eval "$4=yes"
2604 else
2605 eval "$4=no"
2607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2611 eval ac_res=\$$4
2612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2613 $as_echo "$ac_res" >&6; }
2614 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2616 } # ac_fn_c_check_member
2618 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2619 # -------------------------------------------
2620 # Tests whether TYPE exists after having included INCLUDES, setting cache
2621 # variable VAR accordingly.
2622 ac_fn_c_check_type ()
2624 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2626 $as_echo_n "checking for $2... " >&6; }
2627 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2628 $as_echo_n "(cached) " >&6
2629 else
2630 eval "$3=no"
2631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2632 /* end confdefs.h. */
2635 main ()
2637 if (sizeof ($2))
2638 return 0;
2640 return 0;
2642 _ACEOF
2643 if ac_fn_c_try_compile "$LINENO"; then :
2644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2645 /* end confdefs.h. */
2648 main ()
2650 if (sizeof (($2)))
2651 return 0;
2653 return 0;
2655 _ACEOF
2656 if ac_fn_c_try_compile "$LINENO"; then :
2658 else
2659 eval "$3=yes"
2661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2665 eval ac_res=\$$3
2666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2667 $as_echo "$ac_res" >&6; }
2668 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2670 } # ac_fn_c_check_type
2672 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2673 # --------------------------------------------
2674 # Tries to find the compile-time value of EXPR in a program that includes
2675 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2676 # computed
2677 ac_fn_c_compute_int ()
2679 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2680 if test "$cross_compiling" = yes; then
2681 # Depending upon the size, compute the lo and hi bounds.
2682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2683 /* end confdefs.h. */
2686 main ()
2688 static int test_array [1 - 2 * !(($2) >= 0)];
2689 test_array [0] = 0
2692 return 0;
2694 _ACEOF
2695 if ac_fn_c_try_compile "$LINENO"; then :
2696 ac_lo=0 ac_mid=0
2697 while :; do
2698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2699 /* end confdefs.h. */
2702 main ()
2704 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2705 test_array [0] = 0
2708 return 0;
2710 _ACEOF
2711 if ac_fn_c_try_compile "$LINENO"; then :
2712 ac_hi=$ac_mid; break
2713 else
2714 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2715 if test $ac_lo -le $ac_mid; then
2716 ac_lo= ac_hi=
2717 break
2719 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2722 done
2723 else
2724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2725 /* end confdefs.h. */
2728 main ()
2730 static int test_array [1 - 2 * !(($2) < 0)];
2731 test_array [0] = 0
2734 return 0;
2736 _ACEOF
2737 if ac_fn_c_try_compile "$LINENO"; then :
2738 ac_hi=-1 ac_mid=-1
2739 while :; do
2740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2741 /* end confdefs.h. */
2744 main ()
2746 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2747 test_array [0] = 0
2750 return 0;
2752 _ACEOF
2753 if ac_fn_c_try_compile "$LINENO"; then :
2754 ac_lo=$ac_mid; break
2755 else
2756 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2757 if test $ac_mid -le $ac_hi; then
2758 ac_lo= ac_hi=
2759 break
2761 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2764 done
2765 else
2766 ac_lo= ac_hi=
2768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2771 # Binary search between lo and hi bounds.
2772 while test "x$ac_lo" != "x$ac_hi"; do
2773 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2775 /* end confdefs.h. */
2778 main ()
2780 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2781 test_array [0] = 0
2784 return 0;
2786 _ACEOF
2787 if ac_fn_c_try_compile "$LINENO"; then :
2788 ac_hi=$ac_mid
2789 else
2790 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2793 done
2794 case $ac_lo in #((
2795 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2796 '') ac_retval=1 ;;
2797 esac
2798 else
2799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2800 /* end confdefs.h. */
2802 static long int longval () { return $2; }
2803 static unsigned long int ulongval () { return $2; }
2804 #include <stdio.h>
2805 #include <stdlib.h>
2807 main ()
2810 FILE *f = fopen ("conftest.val", "w");
2811 if (! f)
2812 return 1;
2813 if (($2) < 0)
2815 long int i = longval ();
2816 if (i != ($2))
2817 return 1;
2818 fprintf (f, "%ld", i);
2820 else
2822 unsigned long int i = ulongval ();
2823 if (i != ($2))
2824 return 1;
2825 fprintf (f, "%lu", i);
2827 /* Do not output a trailing newline, as this causes \r\n confusion
2828 on some platforms. */
2829 return ferror (f) || fclose (f) != 0;
2832 return 0;
2834 _ACEOF
2835 if ac_fn_c_try_run "$LINENO"; then :
2836 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2837 else
2838 ac_retval=1
2840 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2841 conftest.$ac_objext conftest.beam conftest.$ac_ext
2842 rm -f conftest.val
2845 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2846 as_fn_set_status $ac_retval
2848 } # ac_fn_c_compute_int
2849 cat >config.log <<_ACEOF
2850 This file contains any messages produced by compilers while
2851 running configure, to aid debugging if configure makes a mistake.
2853 It was created by emacs $as_me 24.1.50, which was
2854 generated by GNU Autoconf 2.65. Invocation command line was
2856 $ $0 $@
2858 _ACEOF
2859 exec 5>>config.log
2861 cat <<_ASUNAME
2862 ## --------- ##
2863 ## Platform. ##
2864 ## --------- ##
2866 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2867 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2868 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2869 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2870 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2872 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2873 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2875 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2876 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2877 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2878 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2879 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2880 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2881 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2883 _ASUNAME
2885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2886 for as_dir in $PATH
2888 IFS=$as_save_IFS
2889 test -z "$as_dir" && as_dir=.
2890 $as_echo "PATH: $as_dir"
2891 done
2892 IFS=$as_save_IFS
2894 } >&5
2896 cat >&5 <<_ACEOF
2899 ## ----------- ##
2900 ## Core tests. ##
2901 ## ----------- ##
2903 _ACEOF
2906 # Keep a trace of the command line.
2907 # Strip out --no-create and --no-recursion so they do not pile up.
2908 # Strip out --silent because we don't want to record it for future runs.
2909 # Also quote any args containing shell meta-characters.
2910 # Make two passes to allow for proper duplicate-argument suppression.
2911 ac_configure_args=
2912 ac_configure_args0=
2913 ac_configure_args1=
2914 ac_must_keep_next=false
2915 for ac_pass in 1 2
2917 for ac_arg
2919 case $ac_arg in
2920 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2921 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2922 | -silent | --silent | --silen | --sile | --sil)
2923 continue ;;
2924 *\'*)
2925 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2926 esac
2927 case $ac_pass in
2928 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2930 as_fn_append ac_configure_args1 " '$ac_arg'"
2931 if test $ac_must_keep_next = true; then
2932 ac_must_keep_next=false # Got value, back to normal.
2933 else
2934 case $ac_arg in
2935 *=* | --config-cache | -C | -disable-* | --disable-* \
2936 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2937 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2938 | -with-* | --with-* | -without-* | --without-* | --x)
2939 case "$ac_configure_args0 " in
2940 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2941 esac
2943 -* ) ac_must_keep_next=true ;;
2944 esac
2946 as_fn_append ac_configure_args " '$ac_arg'"
2948 esac
2949 done
2950 done
2951 { ac_configure_args0=; unset ac_configure_args0;}
2952 { ac_configure_args1=; unset ac_configure_args1;}
2954 # When interrupted or exit'd, cleanup temporary files, and complete
2955 # config.log. We remove comments because anyway the quotes in there
2956 # would cause problems or look ugly.
2957 # WARNING: Use '\'' to represent an apostrophe within the trap.
2958 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2959 trap 'exit_status=$?
2960 # Save into config.log some information that might help in debugging.
2962 echo
2964 cat <<\_ASBOX
2965 ## ---------------- ##
2966 ## Cache variables. ##
2967 ## ---------------- ##
2968 _ASBOX
2969 echo
2970 # The following way of writing the cache mishandles newlines in values,
2972 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2973 eval ac_val=\$$ac_var
2974 case $ac_val in #(
2975 *${as_nl}*)
2976 case $ac_var in #(
2977 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2978 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2979 esac
2980 case $ac_var in #(
2981 _ | IFS | as_nl) ;; #(
2982 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2983 *) { eval $ac_var=; unset $ac_var;} ;;
2984 esac ;;
2985 esac
2986 done
2987 (set) 2>&1 |
2988 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2989 *${as_nl}ac_space=\ *)
2990 sed -n \
2991 "s/'\''/'\''\\\\'\'''\''/g;
2992 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2993 ;; #(
2995 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2997 esac |
2998 sort
3000 echo
3002 cat <<\_ASBOX
3003 ## ----------------- ##
3004 ## Output variables. ##
3005 ## ----------------- ##
3006 _ASBOX
3007 echo
3008 for ac_var in $ac_subst_vars
3010 eval ac_val=\$$ac_var
3011 case $ac_val in
3012 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3013 esac
3014 $as_echo "$ac_var='\''$ac_val'\''"
3015 done | sort
3016 echo
3018 if test -n "$ac_subst_files"; then
3019 cat <<\_ASBOX
3020 ## ------------------- ##
3021 ## File substitutions. ##
3022 ## ------------------- ##
3023 _ASBOX
3024 echo
3025 for ac_var in $ac_subst_files
3027 eval ac_val=\$$ac_var
3028 case $ac_val in
3029 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3030 esac
3031 $as_echo "$ac_var='\''$ac_val'\''"
3032 done | sort
3033 echo
3036 if test -s confdefs.h; then
3037 cat <<\_ASBOX
3038 ## ----------- ##
3039 ## confdefs.h. ##
3040 ## ----------- ##
3041 _ASBOX
3042 echo
3043 cat confdefs.h
3044 echo
3046 test "$ac_signal" != 0 &&
3047 $as_echo "$as_me: caught signal $ac_signal"
3048 $as_echo "$as_me: exit $exit_status"
3049 } >&5
3050 rm -f core *.core core.conftest.* &&
3051 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3052 exit $exit_status
3054 for ac_signal in 1 2 13 15; do
3055 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3056 done
3057 ac_signal=0
3059 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3060 rm -f -r conftest* confdefs.h
3062 $as_echo "/* confdefs.h */" > confdefs.h
3064 # Predefined preprocessor variables.
3066 cat >>confdefs.h <<_ACEOF
3067 #define PACKAGE_NAME "$PACKAGE_NAME"
3068 _ACEOF
3070 cat >>confdefs.h <<_ACEOF
3071 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3072 _ACEOF
3074 cat >>confdefs.h <<_ACEOF
3075 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3076 _ACEOF
3078 cat >>confdefs.h <<_ACEOF
3079 #define PACKAGE_STRING "$PACKAGE_STRING"
3080 _ACEOF
3082 cat >>confdefs.h <<_ACEOF
3083 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3084 _ACEOF
3086 cat >>confdefs.h <<_ACEOF
3087 #define PACKAGE_URL "$PACKAGE_URL"
3088 _ACEOF
3091 # Let the site file select an alternate cache file if it wants to.
3092 # Prefer an explicitly selected file to automatically selected ones.
3093 ac_site_file1=NONE
3094 ac_site_file2=NONE
3095 if test -n "$CONFIG_SITE"; then
3096 ac_site_file1=$CONFIG_SITE
3097 elif test "x$prefix" != xNONE; then
3098 ac_site_file1=$prefix/share/config.site
3099 ac_site_file2=$prefix/etc/config.site
3100 else
3101 ac_site_file1=$ac_default_prefix/share/config.site
3102 ac_site_file2=$ac_default_prefix/etc/config.site
3104 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3106 test "x$ac_site_file" = xNONE && continue
3107 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3108 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3109 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3110 sed 's/^/| /' "$ac_site_file" >&5
3111 . "$ac_site_file"
3113 done
3115 if test -r "$cache_file"; then
3116 # Some versions of bash will fail to source /dev/null (special files
3117 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3118 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3119 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3120 $as_echo "$as_me: loading cache $cache_file" >&6;}
3121 case $cache_file in
3122 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3123 *) . "./$cache_file";;
3124 esac
3126 else
3127 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3128 $as_echo "$as_me: creating cache $cache_file" >&6;}
3129 >$cache_file
3132 as_fn_append ac_header_list " stdlib.h"
3133 as_fn_append ac_header_list " unistd.h"
3134 as_fn_append ac_header_list " sys/param.h"
3135 as_fn_append ac_func_list " readlinkat"
3136 gl_getopt_required=GNU
3137 as_fn_append ac_header_list " getopt.h"
3138 as_fn_append ac_header_list " wchar.h"
3139 as_fn_append ac_header_list " stdint.h"
3140 as_fn_append ac_header_list " inttypes.h"
3141 as_fn_append ac_func_list " lstat"
3142 as_fn_append ac_func_list " alarm"
3143 as_fn_append ac_func_list " pthread_sigmask"
3144 as_fn_append ac_func_list " readlink"
3145 as_fn_append ac_header_list " sys/socket.h"
3146 as_fn_append ac_func_list " tzset"
3147 as_fn_append ac_func_list " strtoimax"
3148 as_fn_append ac_func_list " strtoumax"
3149 as_fn_append ac_func_list " symlink"
3150 as_fn_append ac_header_list " sys/stat.h"
3151 as_fn_append ac_header_list " sys/time.h"
3152 as_fn_append ac_func_list " localtime_r"
3153 # Check that the precious variables saved in the cache have kept the same
3154 # value.
3155 ac_cache_corrupted=false
3156 for ac_var in $ac_precious_vars; do
3157 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3158 eval ac_new_set=\$ac_env_${ac_var}_set
3159 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3160 eval ac_new_val=\$ac_env_${ac_var}_value
3161 case $ac_old_set,$ac_new_set in
3162 set,)
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3164 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3165 ac_cache_corrupted=: ;;
3166 ,set)
3167 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3168 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3169 ac_cache_corrupted=: ;;
3170 ,);;
3172 if test "x$ac_old_val" != "x$ac_new_val"; then
3173 # differences in whitespace do not lead to failure.
3174 ac_old_val_w=`echo x $ac_old_val`
3175 ac_new_val_w=`echo x $ac_new_val`
3176 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3177 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3178 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3179 ac_cache_corrupted=:
3180 else
3181 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3182 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3183 eval $ac_var=\$ac_old_val
3185 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3186 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3187 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3188 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3189 fi;;
3190 esac
3191 # Pass precious variables to config.status.
3192 if test "$ac_new_set" = set; then
3193 case $ac_new_val in
3194 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3195 *) ac_arg=$ac_var=$ac_new_val ;;
3196 esac
3197 case " $ac_configure_args " in
3198 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3199 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3200 esac
3202 done
3203 if $ac_cache_corrupted; then
3204 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3205 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3207 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3208 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3210 ## -------------------- ##
3211 ## Main body of script. ##
3212 ## -------------------- ##
3214 ac_ext=c
3215 ac_cpp='$CPP $CPPFLAGS'
3216 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3217 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3218 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3221 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
3224 ac_aux_dir=
3225 for ac_dir in build-aux "$srcdir"/build-aux; do
3226 for ac_t in install-sh install.sh shtool; do
3227 if test -f "$ac_dir/$ac_t"; then
3228 ac_aux_dir=$ac_dir
3229 ac_install_sh="$ac_aux_dir/$ac_t -c"
3230 break 2
3232 done
3233 done
3234 if test -z "$ac_aux_dir"; then
3235 as_fn_error "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
3238 # These three variables are undocumented and unsupported,
3239 # and are intended to be withdrawn in a future Autoconf release.
3240 # They can cause serious problems if a builder's source tree is in a directory
3241 # whose full name contains unusual characters.
3242 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3243 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3244 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3247 am__api_version='1.11'
3249 # Find a good install program. We prefer a C program (faster),
3250 # so one script is as good as another. But avoid the broken or
3251 # incompatible versions:
3252 # SysV /etc/install, /usr/sbin/install
3253 # SunOS /usr/etc/install
3254 # IRIX /sbin/install
3255 # AIX /bin/install
3256 # AmigaOS /C/install, which installs bootblocks on floppy discs
3257 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3258 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3259 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3260 # OS/2's system install, which has a completely different semantic
3261 # ./install, which can be erroneously created by make from ./install.sh.
3262 # Reject install programs that cannot install multiple files.
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3264 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3265 if test -z "$INSTALL"; then
3266 if test "${ac_cv_path_install+set}" = set; then :
3267 $as_echo_n "(cached) " >&6
3268 else
3269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3270 for as_dir in $PATH
3272 IFS=$as_save_IFS
3273 test -z "$as_dir" && as_dir=.
3274 # Account for people who put trailing slashes in PATH elements.
3275 case $as_dir/ in #((
3276 ./ | .// | /[cC]/* | \
3277 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3278 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3279 /usr/ucb/* ) ;;
3281 # OSF1 and SCO ODT 3.0 have their own names for install.
3282 # Don't use installbsd from OSF since it installs stuff as root
3283 # by default.
3284 for ac_prog in ginstall scoinst install; do
3285 for ac_exec_ext in '' $ac_executable_extensions; do
3286 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3287 if test $ac_prog = install &&
3288 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3289 # AIX install. It has an incompatible calling convention.
3291 elif test $ac_prog = install &&
3292 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3293 # program-specific install script used by HP pwplus--don't use.
3295 else
3296 rm -rf conftest.one conftest.two conftest.dir
3297 echo one > conftest.one
3298 echo two > conftest.two
3299 mkdir conftest.dir
3300 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3301 test -s conftest.one && test -s conftest.two &&
3302 test -s conftest.dir/conftest.one &&
3303 test -s conftest.dir/conftest.two
3304 then
3305 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3306 break 3
3310 done
3311 done
3313 esac
3315 done
3316 IFS=$as_save_IFS
3318 rm -rf conftest.one conftest.two conftest.dir
3321 if test "${ac_cv_path_install+set}" = set; then
3322 INSTALL=$ac_cv_path_install
3323 else
3324 # As a last resort, use the slow shell script. Don't cache a
3325 # value for INSTALL within a source directory, because that will
3326 # break other packages using the cache if that directory is
3327 # removed, or if the value is a relative name.
3328 INSTALL=$ac_install_sh
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3332 $as_echo "$INSTALL" >&6; }
3334 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3335 # It thinks the first close brace ends the variable substitution.
3336 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3338 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3340 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3343 $as_echo_n "checking whether build environment is sane... " >&6; }
3344 # Just in case
3345 sleep 1
3346 echo timestamp > conftest.file
3347 # Reject unsafe characters in $srcdir or the absolute working directory
3348 # name. Accept space and tab only in the latter.
3349 am_lf='
3351 case `pwd` in
3352 *[\\\"\#\$\&\'\`$am_lf]*)
3353 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3354 esac
3355 case $srcdir in
3356 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3357 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3358 esac
3360 # Do `set' in a subshell so we don't clobber the current shell's
3361 # arguments. Must try -L first in case configure is actually a
3362 # symlink; some systems play weird games with the mod time of symlinks
3363 # (eg FreeBSD returns the mod time of the symlink's containing
3364 # directory).
3365 if (
3366 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3367 if test "$*" = "X"; then
3368 # -L didn't work.
3369 set X `ls -t "$srcdir/configure" conftest.file`
3371 rm -f conftest.file
3372 if test "$*" != "X $srcdir/configure conftest.file" \
3373 && test "$*" != "X conftest.file $srcdir/configure"; then
3375 # If neither matched, then we have a broken ls. This can happen
3376 # if, for instance, CONFIG_SHELL is bash and it inherits a
3377 # broken ls alias from the environment. This has actually
3378 # happened. Such a system could not be considered "sane".
3379 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3380 alias in your environment" "$LINENO" 5
3383 test "$2" = conftest.file
3385 then
3386 # Ok.
3388 else
3389 as_fn_error "newly created file is older than distributed files!
3390 Check your system clock" "$LINENO" 5
3392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3393 $as_echo "yes" >&6; }
3394 test "$program_prefix" != NONE &&
3395 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3396 # Use a double $ so make ignores it.
3397 test "$program_suffix" != NONE &&
3398 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3399 # Double any \ or $.
3400 # By default was `s,x,x', remove it if useless.
3401 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3402 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3404 # expand $ac_aux_dir to an absolute path
3405 am_aux_dir=`cd $ac_aux_dir && pwd`
3407 if test x"${MISSING+set}" != xset; then
3408 case $am_aux_dir in
3409 *\ * | *\ *)
3410 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3412 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3413 esac
3415 # Use eval to expand $SHELL
3416 if eval "$MISSING --run true"; then
3417 am_missing_run="$MISSING --run "
3418 else
3419 am_missing_run=
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3421 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3424 if test x"${install_sh}" != xset; then
3425 case $am_aux_dir in
3426 *\ * | *\ *)
3427 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3429 install_sh="\${SHELL} $am_aux_dir/install-sh"
3430 esac
3433 # Installed binaries are usually stripped using `strip' when the user
3434 # run `make install-strip'. However `strip' might not be the right
3435 # tool to use in cross-compilation environments, therefore Automake
3436 # will honor the `STRIP' environment variable to overrule this program.
3437 if test "$cross_compiling" != no; then
3438 if test -n "$ac_tool_prefix"; then
3439 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3440 set dummy ${ac_tool_prefix}strip; ac_word=$2
3441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3442 $as_echo_n "checking for $ac_word... " >&6; }
3443 if test "${ac_cv_prog_STRIP+set}" = set; then :
3444 $as_echo_n "(cached) " >&6
3445 else
3446 if test -n "$STRIP"; then
3447 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3448 else
3449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3450 for as_dir in $PATH
3452 IFS=$as_save_IFS
3453 test -z "$as_dir" && as_dir=.
3454 for ac_exec_ext in '' $ac_executable_extensions; do
3455 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3456 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3458 break 2
3460 done
3461 done
3462 IFS=$as_save_IFS
3466 STRIP=$ac_cv_prog_STRIP
3467 if test -n "$STRIP"; then
3468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3469 $as_echo "$STRIP" >&6; }
3470 else
3471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3472 $as_echo "no" >&6; }
3477 if test -z "$ac_cv_prog_STRIP"; then
3478 ac_ct_STRIP=$STRIP
3479 # Extract the first word of "strip", so it can be a program name with args.
3480 set dummy strip; ac_word=$2
3481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3482 $as_echo_n "checking for $ac_word... " >&6; }
3483 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3484 $as_echo_n "(cached) " >&6
3485 else
3486 if test -n "$ac_ct_STRIP"; then
3487 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3488 else
3489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3490 for as_dir in $PATH
3492 IFS=$as_save_IFS
3493 test -z "$as_dir" && as_dir=.
3494 for ac_exec_ext in '' $ac_executable_extensions; do
3495 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3496 ac_cv_prog_ac_ct_STRIP="strip"
3497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3498 break 2
3500 done
3501 done
3502 IFS=$as_save_IFS
3506 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3507 if test -n "$ac_ct_STRIP"; then
3508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3509 $as_echo "$ac_ct_STRIP" >&6; }
3510 else
3511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3512 $as_echo "no" >&6; }
3515 if test "x$ac_ct_STRIP" = x; then
3516 STRIP=":"
3517 else
3518 case $cross_compiling:$ac_tool_warned in
3519 yes:)
3520 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3521 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3522 ac_tool_warned=yes ;;
3523 esac
3524 STRIP=$ac_ct_STRIP
3526 else
3527 STRIP="$ac_cv_prog_STRIP"
3531 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3534 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3535 if test -z "$MKDIR_P"; then
3536 if test "${ac_cv_path_mkdir+set}" = set; then :
3537 $as_echo_n "(cached) " >&6
3538 else
3539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3540 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3542 IFS=$as_save_IFS
3543 test -z "$as_dir" && as_dir=.
3544 for ac_prog in mkdir gmkdir; do
3545 for ac_exec_ext in '' $ac_executable_extensions; do
3546 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3547 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3548 'mkdir (GNU coreutils) '* | \
3549 'mkdir (coreutils) '* | \
3550 'mkdir (fileutils) '4.1*)
3551 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3552 break 3;;
3553 esac
3554 done
3555 done
3556 done
3557 IFS=$as_save_IFS
3561 test -d ./--version && rmdir ./--version
3562 if test "${ac_cv_path_mkdir+set}" = set; then
3563 MKDIR_P="$ac_cv_path_mkdir -p"
3564 else
3565 # As a last resort, use the slow shell script. Don't cache a
3566 # value for MKDIR_P within a source directory, because that will
3567 # break other packages using the cache if that directory is
3568 # removed, or if the value is a relative name.
3569 MKDIR_P="$ac_install_sh -d"
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3573 $as_echo "$MKDIR_P" >&6; }
3576 mkdir_p="$MKDIR_P"
3577 case $mkdir_p in
3578 [\\/$]* | ?:[\\/]*) ;;
3579 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3580 esac
3582 for ac_prog in gawk mawk nawk awk
3584 # Extract the first word of "$ac_prog", so it can be a program name with args.
3585 set dummy $ac_prog; ac_word=$2
3586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3587 $as_echo_n "checking for $ac_word... " >&6; }
3588 if test "${ac_cv_prog_AWK+set}" = set; then :
3589 $as_echo_n "(cached) " >&6
3590 else
3591 if test -n "$AWK"; then
3592 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3593 else
3594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3595 for as_dir in $PATH
3597 IFS=$as_save_IFS
3598 test -z "$as_dir" && as_dir=.
3599 for ac_exec_ext in '' $ac_executable_extensions; do
3600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3601 ac_cv_prog_AWK="$ac_prog"
3602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3603 break 2
3605 done
3606 done
3607 IFS=$as_save_IFS
3611 AWK=$ac_cv_prog_AWK
3612 if test -n "$AWK"; then
3613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3614 $as_echo "$AWK" >&6; }
3615 else
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3617 $as_echo "no" >&6; }
3621 test -n "$AWK" && break
3622 done
3624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3625 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3626 set x ${MAKE-make}
3627 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3628 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3629 $as_echo_n "(cached) " >&6
3630 else
3631 cat >conftest.make <<\_ACEOF
3632 SHELL = /bin/sh
3633 all:
3634 @echo '@@@%%%=$(MAKE)=@@@%%%'
3635 _ACEOF
3636 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3637 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3638 *@@@%%%=?*=@@@%%%*)
3639 eval ac_cv_prog_make_${ac_make}_set=yes;;
3641 eval ac_cv_prog_make_${ac_make}_set=no;;
3642 esac
3643 rm -f conftest.make
3645 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3647 $as_echo "yes" >&6; }
3648 SET_MAKE=
3649 else
3650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3651 $as_echo "no" >&6; }
3652 SET_MAKE="MAKE=${MAKE-make}"
3655 rm -rf .tst 2>/dev/null
3656 mkdir .tst 2>/dev/null
3657 if test -d .tst; then
3658 am__leading_dot=.
3659 else
3660 am__leading_dot=_
3662 rmdir .tst 2>/dev/null
3664 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3665 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3666 # is not polluted with repeated "-I."
3667 am__isrc=' -I$(srcdir)'
3668 # test to see if srcdir already configured
3669 if test -f $srcdir/config.status; then
3670 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3674 # test whether we have cygpath
3675 if test -z "$CYGPATH_W"; then
3676 if (cygpath --version) >/dev/null 2>/dev/null; then
3677 CYGPATH_W='cygpath -w'
3678 else
3679 CYGPATH_W=echo
3684 # Define the identity of the package.
3685 PACKAGE='emacs'
3686 VERSION='24.1.50'
3689 cat >>confdefs.h <<_ACEOF
3690 #define PACKAGE "$PACKAGE"
3691 _ACEOF
3694 cat >>confdefs.h <<_ACEOF
3695 #define VERSION "$VERSION"
3696 _ACEOF
3698 # Some tools Automake needs.
3700 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3703 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3706 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3709 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3712 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3714 # We need awk for the "check" target. The system "awk" is bad on
3715 # some platforms.
3716 # Always define AMTAR for backward compatibility.
3718 AMTAR=${AMTAR-"${am_missing_run}tar"}
3720 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3729 lispdir='${datadir}/emacs/${version}/lisp'
3730 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
3731 '${datadir}/emacs/site-lisp'
3732 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
3733 etcdir='${datadir}/emacs/${version}/etc'
3734 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
3735 docdir='${datadir}/emacs/${version}/etc'
3736 gamedir='${localstatedir}/games/emacs'
3741 # Check whether --with-pop was given.
3742 if test "${with_pop+set}" = set; then :
3743 withval=$with_pop;
3744 else
3745 with_pop=yes
3748 if test "$with_pop" = yes; then
3749 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
3754 # Check whether --with-kerberos was given.
3755 if test "${with_kerberos+set}" = set; then :
3756 withval=$with_kerberos;
3757 else
3758 with_kerberos=no
3761 if test "$with_kerberos" != no; then
3762 $as_echo "#define KERBEROS 1" >>confdefs.h
3767 # Check whether --with-kerberos5 was given.
3768 if test "${with_kerberos5+set}" = set; then :
3769 withval=$with_kerberos5;
3770 else
3771 with_kerberos5=no
3774 if test "${with_kerberos5}" != no; then
3775 if test "${with_kerberos}" = no; then
3776 with_kerberos=yes
3777 $as_echo "#define KERBEROS 1" >>confdefs.h
3781 $as_echo "#define KERBEROS5 1" >>confdefs.h
3786 # Check whether --with-hesiod was given.
3787 if test "${with_hesiod+set}" = set; then :
3788 withval=$with_hesiod;
3789 else
3790 with_hesiod=no
3793 if test "$with_hesiod" != no; then
3795 $as_echo "#define HESIOD 1" >>confdefs.h
3800 # Check whether --with-mmdf was given.
3801 if test "${with_mmdf+set}" = set; then :
3802 withval=$with_mmdf;
3803 else
3804 with_mmdf=no
3807 if test "$with_mmdf" != no; then
3809 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
3814 # Check whether --with-mail-unlink was given.
3815 if test "${with_mail_unlink+set}" = set; then :
3816 withval=$with_mail_unlink;
3817 else
3818 with_mail_unlink=no
3821 if test "$with_mail_unlink" != no; then
3823 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
3828 # Check whether --with-mailhost was given.
3829 if test "${with_mailhost+set}" = set; then :
3830 withval=$with_mailhost;
3831 cat >>confdefs.h <<_ACEOF
3832 #define MAILHOST "$withval"
3833 _ACEOF
3839 # Check whether --with-sound was given.
3840 if test "${with_sound+set}" = set; then :
3841 withval=$with_sound;
3842 else
3843 with_sound=yes
3848 # Check whether --with-sync-input was given.
3849 if test "${with_sync_input+set}" = set; then :
3850 withval=$with_sync_input;
3851 else
3852 with_sync_input=yes
3855 if test "$with_sync_input" = yes; then
3857 $as_echo "#define SYNC_INPUT 1" >>confdefs.h
3862 # Check whether --with-x-toolkit was given.
3863 if test "${with_x_toolkit+set}" = set; then :
3864 withval=$with_x_toolkit; case "${withval}" in
3865 y | ye | yes ) val=gtk ;;
3866 n | no ) val=no ;;
3867 l | lu | luc | luci | lucid ) val=lucid ;;
3868 a | at | ath | athe | athen | athena ) val=athena ;;
3869 m | mo | mot | moti | motif ) val=motif ;;
3870 g | gt | gtk ) val=gtk ;;
3871 gtk3 ) val=gtk3 ;;
3873 as_fn_error "\`--with-x-toolkit=$withval' is invalid;
3874 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk' or
3875 \`gtk3'. \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." "$LINENO" 5
3877 esac
3878 with_x_toolkit=$val
3884 # Check whether --with-wide-int was given.
3885 if test "${with_wide_int+set}" = set; then :
3886 withval=$with_wide_int;
3887 else
3888 with_wide_int=no
3891 if test "$with_wide_int" = yes; then
3893 $as_echo "#define WIDE_EMACS_INT 1" >>confdefs.h
3898 # Check whether --with-xpm was given.
3899 if test "${with_xpm+set}" = set; then :
3900 withval=$with_xpm;
3901 else
3902 with_xpm=yes
3906 # Check whether --with-jpeg was given.
3907 if test "${with_jpeg+set}" = set; then :
3908 withval=$with_jpeg;
3909 else
3910 with_jpeg=yes
3914 # Check whether --with-tiff was given.
3915 if test "${with_tiff+set}" = set; then :
3916 withval=$with_tiff;
3917 else
3918 with_tiff=yes
3922 # Check whether --with-gif was given.
3923 if test "${with_gif+set}" = set; then :
3924 withval=$with_gif;
3925 else
3926 with_gif=yes
3930 # Check whether --with-png was given.
3931 if test "${with_png+set}" = set; then :
3932 withval=$with_png;
3933 else
3934 with_png=yes
3938 # Check whether --with-rsvg was given.
3939 if test "${with_rsvg+set}" = set; then :
3940 withval=$with_rsvg;
3941 else
3942 with_rsvg=yes
3946 # Check whether --with-xml2 was given.
3947 if test "${with_xml2+set}" = set; then :
3948 withval=$with_xml2;
3949 else
3950 with_xml2=yes
3954 # Check whether --with-imagemagick was given.
3955 if test "${with_imagemagick+set}" = set; then :
3956 withval=$with_imagemagick;
3957 else
3958 with_imagemagick=yes
3963 # Check whether --with-xft was given.
3964 if test "${with_xft+set}" = set; then :
3965 withval=$with_xft;
3966 else
3967 with_xft=yes
3971 # Check whether --with-libotf was given.
3972 if test "${with_libotf+set}" = set; then :
3973 withval=$with_libotf;
3974 else
3975 with_libotf=yes
3979 # Check whether --with-m17n-flt was given.
3980 if test "${with_m17n_flt+set}" = set; then :
3981 withval=$with_m17n_flt;
3982 else
3983 with_m17n_flt=yes
3988 # Check whether --with-toolkit-scroll-bars was given.
3989 if test "${with_toolkit_scroll_bars+set}" = set; then :
3990 withval=$with_toolkit_scroll_bars;
3991 else
3992 with_toolkit_scroll_bars=yes
3996 # Check whether --with-xaw3d was given.
3997 if test "${with_xaw3d+set}" = set; then :
3998 withval=$with_xaw3d;
3999 else
4000 with_xaw3d=yes
4004 # Check whether --with-xim was given.
4005 if test "${with_xim+set}" = set; then :
4006 withval=$with_xim;
4007 else
4008 with_xim=yes
4012 # Check whether --with-ns was given.
4013 if test "${with_ns+set}" = set; then :
4014 withval=$with_ns;
4015 else
4016 with_ns=no
4021 # Check whether --with-gpm was given.
4022 if test "${with_gpm+set}" = set; then :
4023 withval=$with_gpm;
4024 else
4025 with_gpm=yes
4029 # Check whether --with-dbus was given.
4030 if test "${with_dbus+set}" = set; then :
4031 withval=$with_dbus;
4032 else
4033 with_dbus=yes
4037 # Check whether --with-gconf was given.
4038 if test "${with_gconf+set}" = set; then :
4039 withval=$with_gconf;
4040 else
4041 with_gconf=yes
4045 # Check whether --with-gsettings was given.
4046 if test "${with_gsettings+set}" = set; then :
4047 withval=$with_gsettings;
4048 else
4049 with_gsettings=yes
4053 # Check whether --with-selinux was given.
4054 if test "${with_selinux+set}" = set; then :
4055 withval=$with_selinux;
4056 else
4057 with_selinux=yes
4061 # Check whether --with-gnutls was given.
4062 if test "${with_gnutls+set}" = set; then :
4063 withval=$with_gnutls;
4064 else
4065 with_gnutls=yes
4069 ## For the times when you want to build Emacs but don't have
4070 ## a suitable makeinfo, and can live without the manuals.
4072 # Check whether --with-makeinfo was given.
4073 if test "${with_makeinfo+set}" = set; then :
4074 withval=$with_makeinfo;
4075 else
4076 with_makeinfo=yes
4080 ## Makefile.in needs the cache file name.
4083 ## This is an option because I do not know if all info/man support
4084 ## compressed files, nor how to test if they do so.
4086 # Check whether --with-compress-info was given.
4087 if test "${with_compress_info+set}" = set; then :
4088 withval=$with_compress_info;
4089 else
4090 with_compress_info=yes
4093 if test $with_compress_info = yes; then
4094 GZIP_INFO=yes
4095 else
4096 GZIP_INFO=
4101 # Check whether --with-pkg-config-prog was given.
4102 if test "${with_pkg_config_prog+set}" = set; then :
4103 withval=$with_pkg_config_prog;
4106 if test "X${with_pkg_config_prog}" != X; then
4107 if test "${with_pkg_config_prog}" != yes; then
4108 PKG_CONFIG="${with_pkg_config_prog}"
4112 CRT_DIR=
4114 # Check whether --with-crt-dir was given.
4115 if test "${with_crt_dir+set}" = set; then :
4116 withval=$with_crt_dir;
4119 CRT_DIR="${with_crt_dir}"
4122 # Check whether --with-gameuser was given.
4123 if test "${with_gameuser+set}" = set; then :
4124 withval=$with_gameuser;
4127 test "X${with_gameuser}" != X && test "${with_gameuser}" != yes \
4128 && gameuser="${with_gameuser}"
4129 test "X$gameuser" = X && gameuser=games
4132 # Check whether --with-gnustep-conf was given.
4133 if test "${with_gnustep_conf+set}" = set; then :
4134 withval=$with_gnustep_conf;
4137 test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
4138 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
4139 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
4140 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
4142 # Check whether --enable-ns-self-contained was given.
4143 if test "${enable_ns_self_contained+set}" = set; then :
4144 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
4145 else
4146 EN_NS_SELF_CONTAINED=yes
4150 # Check whether --enable-asserts was given.
4151 if test "${enable_asserts+set}" = set; then :
4152 enableval=$enable_asserts; USE_XASSERTS=$enableval
4153 else
4154 USE_XASSERTS=no
4158 # Check whether --enable-maintainer-mode was given.
4159 if test "${enable_maintainer_mode+set}" = set; then :
4160 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4161 else
4162 USE_MAINTAINER_MODE=yes
4165 if test $USE_MAINTAINER_MODE = yes; then
4166 MAINT=
4167 else
4168 MAINT=#
4172 # Check whether --enable-locallisppath was given.
4173 if test "${enable_locallisppath+set}" = set; then :
4174 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
4175 locallisppath=
4176 elif test "${enableval}" != "yes"; then
4177 locallisppath=${enableval}
4182 # Check whether --enable-checking was given.
4183 if test "${enable_checking+set}" = set; then :
4184 enableval=$enable_checking; ac_checking_flags="${enableval}"
4187 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
4188 for check in $ac_checking_flags
4190 case $check in
4191 # these set all the flags to specific states
4192 yes) ac_enable_checking=1 ;;
4193 no) ac_enable_checking= ;
4194 ac_gc_check_stringbytes= ;
4195 ac_gc_check_string_overrun= ;
4196 ac_gc_check_string_free_list= ;
4197 ac_xmalloc_overrun= ;
4198 ac_gc_check_cons_list= ;;
4199 all) ac_enable_checking=1 ;
4200 ac_gc_check_stringbytes=1 ;
4201 ac_gc_check_string_overrun=1 ;
4202 ac_gc_check_string_free_list=1 ;
4203 ac_xmalloc_overrun=1 ;
4204 ac_gc_check_cons_list=1 ;;
4205 # these enable particular checks
4206 stringbytes) ac_gc_check_stringbytes=1 ;;
4207 stringoverrun) ac_gc_check_string_overrun=1 ;;
4208 stringfreelist) ac_gc_check_string_free_list=1 ;;
4209 xmallocoverrun) ac_xmalloc_overrun=1 ;;
4210 conslist) ac_gc_check_cons_list=1 ;;
4211 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
4212 esac
4213 done
4214 IFS="$ac_save_IFS"
4216 if test x$ac_enable_checking != x ; then
4218 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
4221 if test x$ac_gc_check_stringbytes != x ; then
4223 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
4226 if test x$ac_gc_check_string_overrun != x ; then
4228 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
4231 if test x$ac_gc_check_string_free_list != x ; then
4233 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
4236 if test x$ac_xmalloc_overrun != x ; then
4238 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
4241 if test x$ac_gc_check_cons_list != x ; then
4243 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
4247 # Check whether --enable-use-lisp-union-type was given.
4248 if test "${enable_use_lisp_union_type+set}" = set; then :
4249 enableval=$enable_use_lisp_union_type; if test "${enableval}" != "no"; then
4251 $as_echo "#define USE_LISP_UNION_TYPE 1" >>confdefs.h
4258 # Check whether --enable-profiling was given.
4259 if test "${enable_profiling+set}" = set; then :
4260 enableval=$enable_profiling; ac_enable_profiling="${enableval}"
4263 if test x$ac_enable_profiling != x ; then
4264 PROFILING_CFLAGS="-DPROFILING=1 -pg"
4265 else
4266 PROFILING_CFLAGS=
4270 # Check whether --enable-autodepend was given.
4271 if test "${enable_autodepend+set}" = set; then :
4272 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}"
4273 else
4274 ac_enable_autodepend=yes
4278 #### Make srcdir absolute, if it isn't already. It's important to
4279 #### avoid running the path through pwd unnecessarily, since pwd can
4280 #### give you automounter prefixes, which can go away. We do all this
4281 #### so Emacs can find its files when run uninstalled.
4282 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
4283 unset CDPATH
4284 case "${srcdir}" in
4285 /* ) ;;
4287 ## We may be able to use the $PWD environment variable to make this
4288 ## absolute. But sometimes PWD is inaccurate.
4289 ## Note: we used to use ${PWD} at the end instead of `pwd`,
4290 ## but that tested only for a well-formed and valid PWD,
4291 ## it did not object when PWD was well-formed and valid but just wrong.
4292 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
4293 then
4294 srcdir="$PWD"
4295 else
4296 srcdir="`(cd ${srcdir}; pwd)`"
4299 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
4300 esac
4302 #### Given the configuration name, set machfile and opsysfile to the
4303 #### names of the m/*.h and s/*.h files we should use.
4305 ### Canonicalize the configuration name.
4307 # Make sure we can run config.sub.
4308 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4309 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4312 $as_echo_n "checking build system type... " >&6; }
4313 if test "${ac_cv_build+set}" = set; then :
4314 $as_echo_n "(cached) " >&6
4315 else
4316 ac_build_alias=$build_alias
4317 test "x$ac_build_alias" = x &&
4318 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4319 test "x$ac_build_alias" = x &&
4320 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4321 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4322 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4326 $as_echo "$ac_cv_build" >&6; }
4327 case $ac_cv_build in
4328 *-*-*) ;;
4329 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4330 esac
4331 build=$ac_cv_build
4332 ac_save_IFS=$IFS; IFS='-'
4333 set x $ac_cv_build
4334 shift
4335 build_cpu=$1
4336 build_vendor=$2
4337 shift; shift
4338 # Remember, the first character of IFS is used to create $*,
4339 # except with old shells:
4340 build_os=$*
4341 IFS=$ac_save_IFS
4342 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4346 $as_echo_n "checking host system type... " >&6; }
4347 if test "${ac_cv_host+set}" = set; then :
4348 $as_echo_n "(cached) " >&6
4349 else
4350 if test "x$host_alias" = x; then
4351 ac_cv_host=$ac_cv_build
4352 else
4353 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4354 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4359 $as_echo "$ac_cv_host" >&6; }
4360 case $ac_cv_host in
4361 *-*-*) ;;
4362 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4363 esac
4364 host=$ac_cv_host
4365 ac_save_IFS=$IFS; IFS='-'
4366 set x $ac_cv_host
4367 shift
4368 host_cpu=$1
4369 host_vendor=$2
4370 shift; shift
4371 # Remember, the first character of IFS is used to create $*,
4372 # except with old shells:
4373 host_os=$*
4374 IFS=$ac_save_IFS
4375 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4378 canonical=$host
4379 configuration=${host_alias-${build_alias-$host}}
4383 ### If you add support for a new configuration, add code to this
4384 ### switch statement to recognize your configuration name and select
4385 ### the appropriate operating system and machine description files.
4387 ### You would hope that you could choose an m/*.h file pretty much
4388 ### based on the machine portion of the configuration name, and an s/*.h
4389 ### file based on the operating system portion. However, it turns out
4390 ### that each m/*.h file is pretty manufacturer-specific - for
4391 ### example mips.h is MIPS
4392 ### So we basically have to have a special case for each
4393 ### configuration name.
4395 ### As far as handling version numbers on operating systems is
4396 ### concerned, make sure things will fail in a fixable way. If
4397 ### /etc/MACHINES doesn't say anything about version numbers, be
4398 ### prepared to handle anything reasonably. If version numbers
4399 ### matter, be sure /etc/MACHINES says something about it.
4401 machine='' opsys='' unported=no
4402 case "${canonical}" in
4404 ## GNU/Linux and similar ports
4405 *-*-linux* )
4406 opsys=gnu-linux
4407 case ${canonical} in
4408 alpha*) machine=alpha ;;
4409 s390x-*) machine=ibms390x ;;
4410 powerpc*) machine=macppc ;;
4411 sparc*) machine=sparc ;;
4412 ia64*) machine=ia64 ;;
4413 m68k*) machine=m68k ;;
4414 x86_64*) machine=amdx86-64 ;;
4415 esac
4418 ## FreeBSD ports
4419 *-*-freebsd* )
4420 opsys=freebsd
4421 case "${canonical}" in
4422 alpha*) machine=alpha ;;
4423 amd64-*|x86_64-*) machine=amdx86-64 ;;
4424 ia64-*) machine=ia64 ;;
4425 i[3456]86-*) machine=intel386 ;;
4426 powerpc-*) machine=macppc ;;
4427 sparc-*) machine=sparc ;;
4428 sparc64-*) machine=sparc ;;
4429 esac
4432 ## FreeBSD kernel + glibc based userland
4433 *-*-kfreebsd*gnu* )
4434 opsys=gnu-kfreebsd
4435 case "${canonical}" in
4436 alpha*) machine=alpha ;;
4437 amd64-*|x86_64-*) machine=amdx86-64 ;;
4438 ia64-*) machine=ia64 ;;
4439 i[3456]86-*) machine=intel386 ;;
4440 powerpc-*) machine=macppc ;;
4441 sparc-*) machine=sparc ;;
4442 sparc64-*) machine=sparc ;;
4443 esac
4446 ## NetBSD ports
4447 *-*-netbsd* )
4448 opsys=netbsd
4449 case "${canonical}" in
4450 alpha*) machine=alpha ;;
4451 x86_64-*) machine=amdx86-64 ;;
4452 i[3456]86-*) machine=intel386 ;;
4453 m68k-*) machine=m68k ;;
4454 powerpc-*) machine=macppc ;;
4455 sparc*-) machine=sparc ;;
4456 vax-*) machine=vax ;;
4457 esac
4460 ## OpenBSD ports
4461 *-*-openbsd* )
4462 opsys=openbsd
4463 case "${canonical}" in
4464 alpha*) machine=alpha ;;
4465 x86_64-*) machine=amdx86-64 ;;
4466 i386-*) machine=intel386 ;;
4467 powerpc-*) machine=macppc ;;
4468 sparc*) machine=sparc ;;
4469 vax-*) machine=vax ;;
4470 esac
4473 ## Apple Darwin / Mac OS X
4474 *-apple-darwin* )
4475 case "${canonical}" in
4476 i[3456]86-* ) machine=intel386 ;;
4477 powerpc-* ) machine=macppc ;;
4478 x86_64-* ) machine=amdx86-64 ;;
4479 * ) unported=yes ;;
4480 esac
4481 opsys=darwin
4482 # Define CPP as follows to make autoconf work correctly.
4483 CPP="${CC-cc} -E -no-cpp-precomp"
4484 # Use fink packages if available.
4485 if test -d /sw/include && test -d /sw/lib; then
4486 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
4487 CPP="${CPP} ${GCC_TEST_OPTIONS}"
4488 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
4492 ## HP 9000 series 700 and 800, running HP/UX
4493 hppa*-hp-hpux10.2* )
4494 opsys=hpux10-20
4496 hppa*-hp-hpux1[1-9]* )
4497 opsys=hpux11
4498 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
4501 ## IBM machines
4502 rs6000-ibm-aix4.[23]* )
4503 machine=ibmrs6000 opsys=aix4-2
4505 powerpc-ibm-aix4.[23]* )
4506 machine=ibmrs6000 opsys=aix4-2
4508 rs6000-ibm-aix[56]* )
4509 machine=ibmrs6000 opsys=aix4-2
4511 powerpc-ibm-aix[56]* )
4512 machine=ibmrs6000 opsys=aix4-2
4515 ## Silicon Graphics machines
4516 ## Iris 4D
4517 mips-sgi-irix6.5 )
4518 opsys=irix6-5
4519 # Without defining _LANGUAGE_C, things get masked out in the headers
4520 # so that, for instance, grepping for `free' in stdlib.h fails and
4521 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
4522 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
4523 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
4526 ## Suns
4527 *-sun-solaris* \
4528 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* \
4529 | x86_64-*-solaris2* | x86_64-*-sunos5*)
4530 case "${canonical}" in
4531 i[3456]86-*-* ) machine=intel386 ;;
4532 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
4533 sparc* ) machine=sparc ;;
4534 * ) unported=yes ;;
4535 esac
4536 case "${canonical}" in
4537 *-sunos5.6* | *-solaris2.6* )
4538 opsys=sol2-6
4539 NON_GNU_CPP=/usr/ccs/lib/cpp
4540 RANLIB="ar -ts"
4542 *-sunos5.[7-9]* | *-solaris2.[7-9]* )
4543 opsys=sol2-6
4544 emacs_check_sunpro_c=yes
4545 NON_GNU_CPP=/usr/ccs/lib/cpp
4547 *-sunos5* | *-solaris* )
4548 opsys=sol2-10
4549 emacs_check_sunpro_c=yes
4550 NON_GNU_CPP=/usr/ccs/lib/cpp
4552 esac
4553 ## Watch out for a compiler that we know will not work.
4554 case "${canonical}" in
4555 *-solaris* | *-sunos5* )
4556 if [ "x$CC" = x/usr/ucb/cc ]; then
4557 ## /usr/ucb/cc doesn't work;
4558 ## we should find some other compiler that does work.
4559 unset CC
4562 *) ;;
4563 esac
4566 ## Intel 386 machines where we don't care about the manufacturer.
4567 i[3456]86-*-* )
4568 machine=intel386
4569 case "${canonical}" in
4570 *-cygwin ) opsys=cygwin ;;
4571 *-darwin* ) opsys=darwin
4572 CPP="${CC-cc} -E -no-cpp-precomp"
4574 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
4575 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
4576 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
4577 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
4578 esac
4582 unported=yes
4584 esac
4586 ### If the code above didn't choose an operating system, just choose
4587 ### an operating system based on the configuration name. You really
4588 ### only want to use this when you have no idea what the right
4589 ### operating system is; if you know what operating systems a machine
4590 ### runs, it's cleaner to make it explicit in the case statement
4591 ### above.
4592 if test x"${opsys}" = x; then
4593 case "${canonical}" in
4594 *-gnu* ) opsys=gnu ;;
4596 unported=yes
4598 esac
4603 if test $unported = yes; then
4604 as_fn_error "Emacs hasn't been ported to \`${canonical}' systems.
4605 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
4608 if test -n "$machine"; then
4609 machfile="m/${machine}.h"
4610 else
4611 machfile=
4613 opsysfile="s/${opsys}.h"
4616 #### Choose a compiler.
4617 test -n "$CC" && cc_specified=yes
4619 # Save the value of CFLAGS that the user specified.
4620 SPECIFIED_CFLAGS="$CFLAGS"
4622 ac_ext=c
4623 ac_cpp='$CPP $CPPFLAGS'
4624 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4625 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4626 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4627 if test -n "$ac_tool_prefix"; then
4628 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4629 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4631 $as_echo_n "checking for $ac_word... " >&6; }
4632 if test "${ac_cv_prog_CC+set}" = set; then :
4633 $as_echo_n "(cached) " >&6
4634 else
4635 if test -n "$CC"; then
4636 ac_cv_prog_CC="$CC" # Let the user override the test.
4637 else
4638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4639 for as_dir in $PATH
4641 IFS=$as_save_IFS
4642 test -z "$as_dir" && as_dir=.
4643 for ac_exec_ext in '' $ac_executable_extensions; do
4644 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4645 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4647 break 2
4649 done
4650 done
4651 IFS=$as_save_IFS
4655 CC=$ac_cv_prog_CC
4656 if test -n "$CC"; then
4657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4658 $as_echo "$CC" >&6; }
4659 else
4660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4661 $as_echo "no" >&6; }
4666 if test -z "$ac_cv_prog_CC"; then
4667 ac_ct_CC=$CC
4668 # Extract the first word of "gcc", so it can be a program name with args.
4669 set dummy gcc; ac_word=$2
4670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4671 $as_echo_n "checking for $ac_word... " >&6; }
4672 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4673 $as_echo_n "(cached) " >&6
4674 else
4675 if test -n "$ac_ct_CC"; then
4676 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4677 else
4678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4679 for as_dir in $PATH
4681 IFS=$as_save_IFS
4682 test -z "$as_dir" && as_dir=.
4683 for ac_exec_ext in '' $ac_executable_extensions; do
4684 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4685 ac_cv_prog_ac_ct_CC="gcc"
4686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4687 break 2
4689 done
4690 done
4691 IFS=$as_save_IFS
4695 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4696 if test -n "$ac_ct_CC"; then
4697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4698 $as_echo "$ac_ct_CC" >&6; }
4699 else
4700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4701 $as_echo "no" >&6; }
4704 if test "x$ac_ct_CC" = x; then
4705 CC=""
4706 else
4707 case $cross_compiling:$ac_tool_warned in
4708 yes:)
4709 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4710 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4711 ac_tool_warned=yes ;;
4712 esac
4713 CC=$ac_ct_CC
4715 else
4716 CC="$ac_cv_prog_CC"
4719 if test -z "$CC"; then
4720 if test -n "$ac_tool_prefix"; then
4721 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4722 set dummy ${ac_tool_prefix}cc; ac_word=$2
4723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4724 $as_echo_n "checking for $ac_word... " >&6; }
4725 if test "${ac_cv_prog_CC+set}" = set; then :
4726 $as_echo_n "(cached) " >&6
4727 else
4728 if test -n "$CC"; then
4729 ac_cv_prog_CC="$CC" # Let the user override the test.
4730 else
4731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4732 for as_dir in $PATH
4734 IFS=$as_save_IFS
4735 test -z "$as_dir" && as_dir=.
4736 for ac_exec_ext in '' $ac_executable_extensions; do
4737 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4738 ac_cv_prog_CC="${ac_tool_prefix}cc"
4739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4740 break 2
4742 done
4743 done
4744 IFS=$as_save_IFS
4748 CC=$ac_cv_prog_CC
4749 if test -n "$CC"; then
4750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4751 $as_echo "$CC" >&6; }
4752 else
4753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4754 $as_echo "no" >&6; }
4760 if test -z "$CC"; then
4761 # Extract the first word of "cc", so it can be a program name with args.
4762 set dummy cc; ac_word=$2
4763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4764 $as_echo_n "checking for $ac_word... " >&6; }
4765 if test "${ac_cv_prog_CC+set}" = set; then :
4766 $as_echo_n "(cached) " >&6
4767 else
4768 if test -n "$CC"; then
4769 ac_cv_prog_CC="$CC" # Let the user override the test.
4770 else
4771 ac_prog_rejected=no
4772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4773 for as_dir in $PATH
4775 IFS=$as_save_IFS
4776 test -z "$as_dir" && as_dir=.
4777 for ac_exec_ext in '' $ac_executable_extensions; do
4778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4779 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4780 ac_prog_rejected=yes
4781 continue
4783 ac_cv_prog_CC="cc"
4784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4785 break 2
4787 done
4788 done
4789 IFS=$as_save_IFS
4791 if test $ac_prog_rejected = yes; then
4792 # We found a bogon in the path, so make sure we never use it.
4793 set dummy $ac_cv_prog_CC
4794 shift
4795 if test $# != 0; then
4796 # We chose a different compiler from the bogus one.
4797 # However, it has the same basename, so the bogon will be chosen
4798 # first if we set CC to just the basename; use the full file name.
4799 shift
4800 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4805 CC=$ac_cv_prog_CC
4806 if test -n "$CC"; then
4807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4808 $as_echo "$CC" >&6; }
4809 else
4810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4811 $as_echo "no" >&6; }
4816 if test -z "$CC"; then
4817 if test -n "$ac_tool_prefix"; then
4818 for ac_prog in cl.exe
4820 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4821 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4823 $as_echo_n "checking for $ac_word... " >&6; }
4824 if test "${ac_cv_prog_CC+set}" = set; then :
4825 $as_echo_n "(cached) " >&6
4826 else
4827 if test -n "$CC"; then
4828 ac_cv_prog_CC="$CC" # Let the user override the test.
4829 else
4830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4831 for as_dir in $PATH
4833 IFS=$as_save_IFS
4834 test -z "$as_dir" && as_dir=.
4835 for ac_exec_ext in '' $ac_executable_extensions; do
4836 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4837 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4839 break 2
4841 done
4842 done
4843 IFS=$as_save_IFS
4847 CC=$ac_cv_prog_CC
4848 if test -n "$CC"; then
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4850 $as_echo "$CC" >&6; }
4851 else
4852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4853 $as_echo "no" >&6; }
4857 test -n "$CC" && break
4858 done
4860 if test -z "$CC"; then
4861 ac_ct_CC=$CC
4862 for ac_prog in cl.exe
4864 # Extract the first word of "$ac_prog", so it can be a program name with args.
4865 set dummy $ac_prog; ac_word=$2
4866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4867 $as_echo_n "checking for $ac_word... " >&6; }
4868 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4869 $as_echo_n "(cached) " >&6
4870 else
4871 if test -n "$ac_ct_CC"; then
4872 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4873 else
4874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4875 for as_dir in $PATH
4877 IFS=$as_save_IFS
4878 test -z "$as_dir" && as_dir=.
4879 for ac_exec_ext in '' $ac_executable_extensions; do
4880 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4881 ac_cv_prog_ac_ct_CC="$ac_prog"
4882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4883 break 2
4885 done
4886 done
4887 IFS=$as_save_IFS
4891 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4892 if test -n "$ac_ct_CC"; then
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4894 $as_echo "$ac_ct_CC" >&6; }
4895 else
4896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4897 $as_echo "no" >&6; }
4901 test -n "$ac_ct_CC" && break
4902 done
4904 if test "x$ac_ct_CC" = x; then
4905 CC=""
4906 else
4907 case $cross_compiling:$ac_tool_warned in
4908 yes:)
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4910 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4911 ac_tool_warned=yes ;;
4912 esac
4913 CC=$ac_ct_CC
4920 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4921 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4922 as_fn_error "no acceptable C compiler found in \$PATH
4923 See \`config.log' for more details." "$LINENO" 5; }
4925 # Provide some information about the compiler.
4926 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4927 set X $ac_compile
4928 ac_compiler=$2
4929 for ac_option in --version -v -V -qversion; do
4930 { { ac_try="$ac_compiler $ac_option >&5"
4931 case "(($ac_try" in
4932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4933 *) ac_try_echo=$ac_try;;
4934 esac
4935 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4936 $as_echo "$ac_try_echo"; } >&5
4937 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4938 ac_status=$?
4939 if test -s conftest.err; then
4940 sed '10a\
4941 ... rest of stderr output deleted ...
4942 10q' conftest.err >conftest.er1
4943 cat conftest.er1 >&5
4945 rm -f conftest.er1 conftest.err
4946 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4947 test $ac_status = 0; }
4948 done
4950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4951 /* end confdefs.h. */
4954 main ()
4958 return 0;
4960 _ACEOF
4961 ac_clean_files_save=$ac_clean_files
4962 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4963 # Try to create an executable without -o first, disregard a.out.
4964 # It will help us diagnose broken compilers, and finding out an intuition
4965 # of exeext.
4966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4967 $as_echo_n "checking whether the C compiler works... " >&6; }
4968 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4970 # The possible output files:
4971 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4973 ac_rmfiles=
4974 for ac_file in $ac_files
4976 case $ac_file in
4977 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4978 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4979 esac
4980 done
4981 rm -f $ac_rmfiles
4983 if { { ac_try="$ac_link_default"
4984 case "(($ac_try" in
4985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4986 *) ac_try_echo=$ac_try;;
4987 esac
4988 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4989 $as_echo "$ac_try_echo"; } >&5
4990 (eval "$ac_link_default") 2>&5
4991 ac_status=$?
4992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4993 test $ac_status = 0; }; then :
4994 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4995 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4996 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4997 # so that the user can short-circuit this test for compilers unknown to
4998 # Autoconf.
4999 for ac_file in $ac_files ''
5001 test -f "$ac_file" || continue
5002 case $ac_file in
5003 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
5005 [ab].out )
5006 # We found the default executable, but exeext='' is most
5007 # certainly right.
5008 break;;
5009 *.* )
5010 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
5011 then :; else
5012 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5014 # We set ac_cv_exeext here because the later test for it is not
5015 # safe: cross compilers may not add the suffix if given an `-o'
5016 # argument, so we may need to know it at that point already.
5017 # Even if this section looks crufty: it has the advantage of
5018 # actually working.
5019 break;;
5021 break;;
5022 esac
5023 done
5024 test "$ac_cv_exeext" = no && ac_cv_exeext=
5026 else
5027 ac_file=''
5029 if test -z "$ac_file"; then :
5030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5031 $as_echo "no" >&6; }
5032 $as_echo "$as_me: failed program was:" >&5
5033 sed 's/^/| /' conftest.$ac_ext >&5
5035 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5036 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5037 { as_fn_set_status 77
5038 as_fn_error "C compiler cannot create executables
5039 See \`config.log' for more details." "$LINENO" 5; }; }
5040 else
5041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5042 $as_echo "yes" >&6; }
5044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5045 $as_echo_n "checking for C compiler default output file name... " >&6; }
5046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5047 $as_echo "$ac_file" >&6; }
5048 ac_exeext=$ac_cv_exeext
5050 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
5051 ac_clean_files=$ac_clean_files_save
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5053 $as_echo_n "checking for suffix of executables... " >&6; }
5054 if { { ac_try="$ac_link"
5055 case "(($ac_try" in
5056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5057 *) ac_try_echo=$ac_try;;
5058 esac
5059 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5060 $as_echo "$ac_try_echo"; } >&5
5061 (eval "$ac_link") 2>&5
5062 ac_status=$?
5063 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5064 test $ac_status = 0; }; then :
5065 # If both `conftest.exe' and `conftest' are `present' (well, observable)
5066 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
5067 # work properly (i.e., refer to `conftest.exe'), while it won't with
5068 # `rm'.
5069 for ac_file in conftest.exe conftest conftest.*; do
5070 test -f "$ac_file" || continue
5071 case $ac_file in
5072 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5073 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5074 break;;
5075 * ) break;;
5076 esac
5077 done
5078 else
5079 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5080 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5081 as_fn_error "cannot compute suffix of executables: cannot compile and link
5082 See \`config.log' for more details." "$LINENO" 5; }
5084 rm -f conftest conftest$ac_cv_exeext
5085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5086 $as_echo "$ac_cv_exeext" >&6; }
5088 rm -f conftest.$ac_ext
5089 EXEEXT=$ac_cv_exeext
5090 ac_exeext=$EXEEXT
5091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5092 /* end confdefs.h. */
5093 #include <stdio.h>
5095 main ()
5097 FILE *f = fopen ("conftest.out", "w");
5098 return ferror (f) || fclose (f) != 0;
5101 return 0;
5103 _ACEOF
5104 ac_clean_files="$ac_clean_files conftest.out"
5105 # Check that the compiler produces executables we can run. If not, either
5106 # the compiler is broken, or we cross compile.
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5108 $as_echo_n "checking whether we are cross compiling... " >&6; }
5109 if test "$cross_compiling" != yes; then
5110 { { ac_try="$ac_link"
5111 case "(($ac_try" in
5112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5113 *) ac_try_echo=$ac_try;;
5114 esac
5115 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5116 $as_echo "$ac_try_echo"; } >&5
5117 (eval "$ac_link") 2>&5
5118 ac_status=$?
5119 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5120 test $ac_status = 0; }
5121 if { ac_try='./conftest$ac_cv_exeext'
5122 { { case "(($ac_try" in
5123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5124 *) ac_try_echo=$ac_try;;
5125 esac
5126 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5127 $as_echo "$ac_try_echo"; } >&5
5128 (eval "$ac_try") 2>&5
5129 ac_status=$?
5130 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5131 test $ac_status = 0; }; }; then
5132 cross_compiling=no
5133 else
5134 if test "$cross_compiling" = maybe; then
5135 cross_compiling=yes
5136 else
5137 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5138 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5139 as_fn_error "cannot run C compiled programs.
5140 If you meant to cross compile, use \`--host'.
5141 See \`config.log' for more details." "$LINENO" 5; }
5145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5146 $as_echo "$cross_compiling" >&6; }
5148 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5149 ac_clean_files=$ac_clean_files_save
5150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5151 $as_echo_n "checking for suffix of object files... " >&6; }
5152 if test "${ac_cv_objext+set}" = set; then :
5153 $as_echo_n "(cached) " >&6
5154 else
5155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5156 /* end confdefs.h. */
5159 main ()
5163 return 0;
5165 _ACEOF
5166 rm -f conftest.o conftest.obj
5167 if { { ac_try="$ac_compile"
5168 case "(($ac_try" in
5169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5170 *) ac_try_echo=$ac_try;;
5171 esac
5172 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5173 $as_echo "$ac_try_echo"; } >&5
5174 (eval "$ac_compile") 2>&5
5175 ac_status=$?
5176 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5177 test $ac_status = 0; }; then :
5178 for ac_file in conftest.o conftest.obj conftest.*; do
5179 test -f "$ac_file" || continue;
5180 case $ac_file in
5181 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5182 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5183 break;;
5184 esac
5185 done
5186 else
5187 $as_echo "$as_me: failed program was:" >&5
5188 sed 's/^/| /' conftest.$ac_ext >&5
5190 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5191 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5192 as_fn_error "cannot compute suffix of object files: cannot compile
5193 See \`config.log' for more details." "$LINENO" 5; }
5195 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5198 $as_echo "$ac_cv_objext" >&6; }
5199 OBJEXT=$ac_cv_objext
5200 ac_objext=$OBJEXT
5201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5202 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5203 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5204 $as_echo_n "(cached) " >&6
5205 else
5206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5207 /* end confdefs.h. */
5210 main ()
5212 #ifndef __GNUC__
5213 choke me
5214 #endif
5217 return 0;
5219 _ACEOF
5220 if ac_fn_c_try_compile "$LINENO"; then :
5221 ac_compiler_gnu=yes
5222 else
5223 ac_compiler_gnu=no
5225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5226 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5230 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5231 if test $ac_compiler_gnu = yes; then
5232 GCC=yes
5233 else
5234 GCC=
5236 ac_test_CFLAGS=${CFLAGS+set}
5237 ac_save_CFLAGS=$CFLAGS
5238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5239 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5240 if test "${ac_cv_prog_cc_g+set}" = set; then :
5241 $as_echo_n "(cached) " >&6
5242 else
5243 ac_save_c_werror_flag=$ac_c_werror_flag
5244 ac_c_werror_flag=yes
5245 ac_cv_prog_cc_g=no
5246 CFLAGS="-g"
5247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5248 /* end confdefs.h. */
5251 main ()
5255 return 0;
5257 _ACEOF
5258 if ac_fn_c_try_compile "$LINENO"; then :
5259 ac_cv_prog_cc_g=yes
5260 else
5261 CFLAGS=""
5262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5263 /* end confdefs.h. */
5266 main ()
5270 return 0;
5272 _ACEOF
5273 if ac_fn_c_try_compile "$LINENO"; then :
5275 else
5276 ac_c_werror_flag=$ac_save_c_werror_flag
5277 CFLAGS="-g"
5278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5279 /* end confdefs.h. */
5282 main ()
5286 return 0;
5288 _ACEOF
5289 if ac_fn_c_try_compile "$LINENO"; then :
5290 ac_cv_prog_cc_g=yes
5292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5297 ac_c_werror_flag=$ac_save_c_werror_flag
5299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5300 $as_echo "$ac_cv_prog_cc_g" >&6; }
5301 if test "$ac_test_CFLAGS" = set; then
5302 CFLAGS=$ac_save_CFLAGS
5303 elif test $ac_cv_prog_cc_g = yes; then
5304 if test "$GCC" = yes; then
5305 CFLAGS="-g -O2"
5306 else
5307 CFLAGS="-g"
5309 else
5310 if test "$GCC" = yes; then
5311 CFLAGS="-O2"
5312 else
5313 CFLAGS=
5316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5317 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5318 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5319 $as_echo_n "(cached) " >&6
5320 else
5321 ac_cv_prog_cc_c89=no
5322 ac_save_CC=$CC
5323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5324 /* end confdefs.h. */
5325 #include <stdarg.h>
5326 #include <stdio.h>
5327 #include <sys/types.h>
5328 #include <sys/stat.h>
5329 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5330 struct buf { int x; };
5331 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5332 static char *e (p, i)
5333 char **p;
5334 int i;
5336 return p[i];
5338 static char *f (char * (*g) (char **, int), char **p, ...)
5340 char *s;
5341 va_list v;
5342 va_start (v,p);
5343 s = g (p, va_arg (v,int));
5344 va_end (v);
5345 return s;
5348 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5349 function prototypes and stuff, but not '\xHH' hex character constants.
5350 These don't provoke an error unfortunately, instead are silently treated
5351 as 'x'. The following induces an error, until -std is added to get
5352 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5353 array size at least. It's necessary to write '\x00'==0 to get something
5354 that's true only with -std. */
5355 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5357 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5358 inside strings and character constants. */
5359 #define FOO(x) 'x'
5360 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5362 int test (int i, double x);
5363 struct s1 {int (*f) (int a);};
5364 struct s2 {int (*f) (double a);};
5365 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5366 int argc;
5367 char **argv;
5369 main ()
5371 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5373 return 0;
5375 _ACEOF
5376 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5377 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5379 CC="$ac_save_CC $ac_arg"
5380 if ac_fn_c_try_compile "$LINENO"; then :
5381 ac_cv_prog_cc_c89=$ac_arg
5383 rm -f core conftest.err conftest.$ac_objext
5384 test "x$ac_cv_prog_cc_c89" != "xno" && break
5385 done
5386 rm -f conftest.$ac_ext
5387 CC=$ac_save_CC
5390 # AC_CACHE_VAL
5391 case "x$ac_cv_prog_cc_c89" in
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5394 $as_echo "none needed" >&6; } ;;
5395 xno)
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5397 $as_echo "unsupported" >&6; } ;;
5399 CC="$CC $ac_cv_prog_cc_c89"
5400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5401 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5402 esac
5403 if test "x$ac_cv_prog_cc_c89" != xno; then :
5407 ac_ext=c
5408 ac_cpp='$CPP $CPPFLAGS'
5409 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5410 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5411 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5412 DEPDIR="${am__leading_dot}deps"
5414 ac_config_commands="$ac_config_commands depfiles"
5417 am_make=${MAKE-make}
5418 cat > confinc << 'END'
5419 am__doit:
5420 @echo this is the am__doit target
5421 .PHONY: am__doit
5423 # If we don't find an include directive, just comment out the code.
5424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5425 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5426 am__include="#"
5427 am__quote=
5428 _am_result=none
5429 # First try GNU make style include.
5430 echo "include confinc" > confmf
5431 # Ignore all kinds of additional output from `make'.
5432 case `$am_make -s -f confmf 2> /dev/null` in #(
5433 *the\ am__doit\ target*)
5434 am__include=include
5435 am__quote=
5436 _am_result=GNU
5438 esac
5439 # Now try BSD make style include.
5440 if test "$am__include" = "#"; then
5441 echo '.include "confinc"' > confmf
5442 case `$am_make -s -f confmf 2> /dev/null` in #(
5443 *the\ am__doit\ target*)
5444 am__include=.include
5445 am__quote="\""
5446 _am_result=BSD
5448 esac
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5453 $as_echo "$_am_result" >&6; }
5454 rm -f confinc confmf
5456 # Check whether --enable-dependency-tracking was given.
5457 if test "${enable_dependency_tracking+set}" = set; then :
5458 enableval=$enable_dependency_tracking;
5461 if test "x$enable_dependency_tracking" != xno; then
5462 am_depcomp="$ac_aux_dir/depcomp"
5463 AMDEPBACKSLASH='\'
5465 if test "x$enable_dependency_tracking" != xno; then
5466 AMDEP_TRUE=
5467 AMDEP_FALSE='#'
5468 else
5469 AMDEP_TRUE='#'
5470 AMDEP_FALSE=
5475 depcc="$CC" am_compiler_list=
5477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5478 $as_echo_n "checking dependency style of $depcc... " >&6; }
5479 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5480 $as_echo_n "(cached) " >&6
5481 else
5482 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5483 # We make a subdir and do the tests there. Otherwise we can end up
5484 # making bogus files that we don't know about and never remove. For
5485 # instance it was reported that on HP-UX the gcc test will end up
5486 # making a dummy file named `D' -- because `-MD' means `put the output
5487 # in D'.
5488 mkdir conftest.dir
5489 # Copy depcomp to subdir because otherwise we won't find it if we're
5490 # using a relative directory.
5491 cp "$am_depcomp" conftest.dir
5492 cd conftest.dir
5493 # We will build objects and dependencies in a subdirectory because
5494 # it helps to detect inapplicable dependency modes. For instance
5495 # both Tru64's cc and ICC support -MD to output dependencies as a
5496 # side effect of compilation, but ICC will put the dependencies in
5497 # the current directory while Tru64 will put them in the object
5498 # directory.
5499 mkdir sub
5501 am_cv_CC_dependencies_compiler_type=none
5502 if test "$am_compiler_list" = ""; then
5503 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5505 am__universal=false
5506 case " $depcc " in #(
5507 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5508 esac
5510 for depmode in $am_compiler_list; do
5511 # Setup a source with many dependencies, because some compilers
5512 # like to wrap large dependency lists on column 80 (with \), and
5513 # we should not choose a depcomp mode which is confused by this.
5515 # We need to recreate these files for each test, as the compiler may
5516 # overwrite some of them when testing with obscure command lines.
5517 # This happens at least with the AIX C compiler.
5518 : > sub/conftest.c
5519 for i in 1 2 3 4 5 6; do
5520 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5521 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5522 # Solaris 8's {/usr,}/bin/sh.
5523 touch sub/conftst$i.h
5524 done
5525 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5527 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5528 # mode. It turns out that the SunPro C++ compiler does not properly
5529 # handle `-M -o', and we need to detect this. Also, some Intel
5530 # versions had trouble with output in subdirs
5531 am__obj=sub/conftest.${OBJEXT-o}
5532 am__minus_obj="-o $am__obj"
5533 case $depmode in
5534 gcc)
5535 # This depmode causes a compiler race in universal mode.
5536 test "$am__universal" = false || continue
5538 nosideeffect)
5539 # after this tag, mechanisms are not by side-effect, so they'll
5540 # only be used when explicitly requested
5541 if test "x$enable_dependency_tracking" = xyes; then
5542 continue
5543 else
5544 break
5547 msvisualcpp | msvcmsys)
5548 # This compiler won't grok `-c -o', but also, the minuso test has
5549 # not run yet. These depmodes are late enough in the game, and
5550 # so weak that their functioning should not be impacted.
5551 am__obj=conftest.${OBJEXT-o}
5552 am__minus_obj=
5554 none) break ;;
5555 esac
5556 if depmode=$depmode \
5557 source=sub/conftest.c object=$am__obj \
5558 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5559 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5560 >/dev/null 2>conftest.err &&
5561 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5562 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5563 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5564 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5565 # icc doesn't choke on unknown options, it will just issue warnings
5566 # or remarks (even with -Werror). So we grep stderr for any message
5567 # that says an option was ignored or not supported.
5568 # When given -MP, icc 7.0 and 7.1 complain thusly:
5569 # icc: Command line warning: ignoring option '-M'; no argument required
5570 # The diagnosis changed in icc 8.0:
5571 # icc: Command line remark: option '-MP' not supported
5572 if (grep 'ignoring option' conftest.err ||
5573 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5574 am_cv_CC_dependencies_compiler_type=$depmode
5575 break
5578 done
5580 cd ..
5581 rm -rf conftest.dir
5582 else
5583 am_cv_CC_dependencies_compiler_type=none
5587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5588 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5589 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5592 test "x$enable_dependency_tracking" != xno \
5593 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5594 am__fastdepCC_TRUE=
5595 am__fastdepCC_FALSE='#'
5596 else
5597 am__fastdepCC_TRUE='#'
5598 am__fastdepCC_FALSE=
5602 if test "x$CC" != xcc; then
5603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5604 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5605 else
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5607 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5609 set dummy $CC; ac_cc=`$as_echo "$2" |
5610 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5611 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
5612 $as_echo_n "(cached) " >&6
5613 else
5614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5615 /* end confdefs.h. */
5618 main ()
5622 return 0;
5624 _ACEOF
5625 # Make sure it works both with $CC and with simple cc.
5626 # We do the test twice because some compilers refuse to overwrite an
5627 # existing .o file with -o, though they will create one.
5628 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5629 rm -f conftest2.*
5630 if { { case "(($ac_try" in
5631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5632 *) ac_try_echo=$ac_try;;
5633 esac
5634 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5635 $as_echo "$ac_try_echo"; } >&5
5636 (eval "$ac_try") 2>&5
5637 ac_status=$?
5638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5639 test $ac_status = 0; } &&
5640 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5642 *) ac_try_echo=$ac_try;;
5643 esac
5644 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5645 $as_echo "$ac_try_echo"; } >&5
5646 (eval "$ac_try") 2>&5
5647 ac_status=$?
5648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5649 test $ac_status = 0; };
5650 then
5651 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5652 if test "x$CC" != xcc; then
5653 # Test first that cc exists at all.
5654 if { ac_try='cc -c conftest.$ac_ext >&5'
5655 { { case "(($ac_try" in
5656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5657 *) ac_try_echo=$ac_try;;
5658 esac
5659 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5660 $as_echo "$ac_try_echo"; } >&5
5661 (eval "$ac_try") 2>&5
5662 ac_status=$?
5663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5664 test $ac_status = 0; }; }; then
5665 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5666 rm -f conftest2.*
5667 if { { case "(($ac_try" in
5668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5669 *) ac_try_echo=$ac_try;;
5670 esac
5671 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5672 $as_echo "$ac_try_echo"; } >&5
5673 (eval "$ac_try") 2>&5
5674 ac_status=$?
5675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5676 test $ac_status = 0; } &&
5677 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5679 *) ac_try_echo=$ac_try;;
5680 esac
5681 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5682 $as_echo "$ac_try_echo"; } >&5
5683 (eval "$ac_try") 2>&5
5684 ac_status=$?
5685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5686 test $ac_status = 0; };
5687 then
5688 # cc works too.
5690 else
5691 # cc exists but doesn't like -o.
5692 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5696 else
5697 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5699 rm -f core conftest*
5702 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5704 $as_echo "yes" >&6; }
5705 else
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5707 $as_echo "no" >&6; }
5709 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5713 # FIXME: we rely on the cache variable name because
5714 # there is no other way.
5715 set dummy $CC
5716 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5717 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5718 if test "$am_t" != yes; then
5719 # Losing compiler, so override with the script.
5720 # FIXME: It is wrong to rewrite CC.
5721 # But if we don't then we get into trouble of one sort or another.
5722 # A longer-term fix would be to have automake use am__CC in this case,
5723 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5724 CC="$am_aux_dir/compile $CC"
5729 # Initialize gnulib right after verifying that the C compiler works.
5731 ac_ext=c
5732 ac_cpp='$CPP $CPPFLAGS'
5733 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5734 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5735 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5737 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5738 # On Suns, sometimes $CPP names a directory.
5739 if test -n "$CPP" && test -d "$CPP"; then
5740 CPP=
5742 if test -z "$CPP"; then
5743 if test "${ac_cv_prog_CPP+set}" = set; then :
5744 $as_echo_n "(cached) " >&6
5745 else
5746 # Double quotes because CPP needs to be expanded
5747 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5749 ac_preproc_ok=false
5750 for ac_c_preproc_warn_flag in '' yes
5752 # Use a header file that comes with gcc, so configuring glibc
5753 # with a fresh cross-compiler works.
5754 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5755 # <limits.h> exists even on freestanding compilers.
5756 # On the NeXT, cc -E runs the code through the compiler's parser,
5757 # not just through cpp. "Syntax error" is here to catch this case.
5758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5759 /* end confdefs.h. */
5760 #ifdef __STDC__
5761 # include <limits.h>
5762 #else
5763 # include <assert.h>
5764 #endif
5765 Syntax error
5766 _ACEOF
5767 if ac_fn_c_try_cpp "$LINENO"; then :
5769 else
5770 # Broken: fails on valid input.
5771 continue
5773 rm -f conftest.err conftest.$ac_ext
5775 # OK, works on sane cases. Now check whether nonexistent headers
5776 # can be detected and how.
5777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5778 /* end confdefs.h. */
5779 #include <ac_nonexistent.h>
5780 _ACEOF
5781 if ac_fn_c_try_cpp "$LINENO"; then :
5782 # Broken: success on invalid input.
5783 continue
5784 else
5785 # Passes both tests.
5786 ac_preproc_ok=:
5787 break
5789 rm -f conftest.err conftest.$ac_ext
5791 done
5792 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5793 rm -f conftest.err conftest.$ac_ext
5794 if $ac_preproc_ok; then :
5795 break
5798 done
5799 ac_cv_prog_CPP=$CPP
5802 CPP=$ac_cv_prog_CPP
5803 else
5804 ac_cv_prog_CPP=$CPP
5806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5807 $as_echo "$CPP" >&6; }
5808 ac_preproc_ok=false
5809 for ac_c_preproc_warn_flag in '' yes
5811 # Use a header file that comes with gcc, so configuring glibc
5812 # with a fresh cross-compiler works.
5813 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5814 # <limits.h> exists even on freestanding compilers.
5815 # On the NeXT, cc -E runs the code through the compiler's parser,
5816 # not just through cpp. "Syntax error" is here to catch this case.
5817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5818 /* end confdefs.h. */
5819 #ifdef __STDC__
5820 # include <limits.h>
5821 #else
5822 # include <assert.h>
5823 #endif
5824 Syntax error
5825 _ACEOF
5826 if ac_fn_c_try_cpp "$LINENO"; then :
5828 else
5829 # Broken: fails on valid input.
5830 continue
5832 rm -f conftest.err conftest.$ac_ext
5834 # OK, works on sane cases. Now check whether nonexistent headers
5835 # can be detected and how.
5836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5837 /* end confdefs.h. */
5838 #include <ac_nonexistent.h>
5839 _ACEOF
5840 if ac_fn_c_try_cpp "$LINENO"; then :
5841 # Broken: success on invalid input.
5842 continue
5843 else
5844 # Passes both tests.
5845 ac_preproc_ok=:
5846 break
5848 rm -f conftest.err conftest.$ac_ext
5850 done
5851 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5852 rm -f conftest.err conftest.$ac_ext
5853 if $ac_preproc_ok; then :
5855 else
5856 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5857 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5858 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5859 See \`config.log' for more details." "$LINENO" 5; }
5862 ac_ext=c
5863 ac_cpp='$CPP $CPPFLAGS'
5864 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5865 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5866 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5870 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5871 if test "${ac_cv_path_GREP+set}" = set; then :
5872 $as_echo_n "(cached) " >&6
5873 else
5874 if test -z "$GREP"; then
5875 ac_path_GREP_found=false
5876 # Loop through the user's path and test for each of PROGNAME-LIST
5877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5878 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5880 IFS=$as_save_IFS
5881 test -z "$as_dir" && as_dir=.
5882 for ac_prog in grep ggrep; do
5883 for ac_exec_ext in '' $ac_executable_extensions; do
5884 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5885 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5886 # Check for GNU ac_path_GREP and select it if it is found.
5887 # Check for GNU $ac_path_GREP
5888 case `"$ac_path_GREP" --version 2>&1` in
5889 *GNU*)
5890 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5892 ac_count=0
5893 $as_echo_n 0123456789 >"conftest.in"
5894 while :
5896 cat "conftest.in" "conftest.in" >"conftest.tmp"
5897 mv "conftest.tmp" "conftest.in"
5898 cp "conftest.in" "conftest.nl"
5899 $as_echo 'GREP' >> "conftest.nl"
5900 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5901 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5902 as_fn_arith $ac_count + 1 && ac_count=$as_val
5903 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5904 # Best one so far, save it but keep looking for a better one
5905 ac_cv_path_GREP="$ac_path_GREP"
5906 ac_path_GREP_max=$ac_count
5908 # 10*(2^10) chars as input seems more than enough
5909 test $ac_count -gt 10 && break
5910 done
5911 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5912 esac
5914 $ac_path_GREP_found && break 3
5915 done
5916 done
5917 done
5918 IFS=$as_save_IFS
5919 if test -z "$ac_cv_path_GREP"; then
5920 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5922 else
5923 ac_cv_path_GREP=$GREP
5927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5928 $as_echo "$ac_cv_path_GREP" >&6; }
5929 GREP="$ac_cv_path_GREP"
5932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5933 $as_echo_n "checking for egrep... " >&6; }
5934 if test "${ac_cv_path_EGREP+set}" = set; then :
5935 $as_echo_n "(cached) " >&6
5936 else
5937 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5938 then ac_cv_path_EGREP="$GREP -E"
5939 else
5940 if test -z "$EGREP"; then
5941 ac_path_EGREP_found=false
5942 # Loop through the user's path and test for each of PROGNAME-LIST
5943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5944 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5946 IFS=$as_save_IFS
5947 test -z "$as_dir" && as_dir=.
5948 for ac_prog in egrep; do
5949 for ac_exec_ext in '' $ac_executable_extensions; do
5950 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5951 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5952 # Check for GNU ac_path_EGREP and select it if it is found.
5953 # Check for GNU $ac_path_EGREP
5954 case `"$ac_path_EGREP" --version 2>&1` in
5955 *GNU*)
5956 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5958 ac_count=0
5959 $as_echo_n 0123456789 >"conftest.in"
5960 while :
5962 cat "conftest.in" "conftest.in" >"conftest.tmp"
5963 mv "conftest.tmp" "conftest.in"
5964 cp "conftest.in" "conftest.nl"
5965 $as_echo 'EGREP' >> "conftest.nl"
5966 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5967 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5968 as_fn_arith $ac_count + 1 && ac_count=$as_val
5969 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5970 # Best one so far, save it but keep looking for a better one
5971 ac_cv_path_EGREP="$ac_path_EGREP"
5972 ac_path_EGREP_max=$ac_count
5974 # 10*(2^10) chars as input seems more than enough
5975 test $ac_count -gt 10 && break
5976 done
5977 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5978 esac
5980 $ac_path_EGREP_found && break 3
5981 done
5982 done
5983 done
5984 IFS=$as_save_IFS
5985 if test -z "$ac_cv_path_EGREP"; then
5986 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5988 else
5989 ac_cv_path_EGREP=$EGREP
5994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5995 $as_echo "$ac_cv_path_EGREP" >&6; }
5996 EGREP="$ac_cv_path_EGREP"
6001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
6002 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
6003 if test "${gl_cv_c_amsterdam_compiler+set}" = set; then :
6004 $as_echo_n "(cached) " >&6
6005 else
6007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6008 /* end confdefs.h. */
6010 #ifdef __ACK__
6011 Amsterdam
6012 #endif
6014 _ACEOF
6015 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6016 $EGREP "Amsterdam" >/dev/null 2>&1; then :
6017 gl_cv_c_amsterdam_compiler=yes
6018 else
6019 gl_cv_c_amsterdam_compiler=no
6021 rm -f conftest*
6025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
6026 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
6027 if test -z "$AR"; then
6028 if test $gl_cv_c_amsterdam_compiler = yes; then
6029 AR='cc -c.a'
6030 if test -z "$ARFLAGS"; then
6031 ARFLAGS='-o'
6033 else
6034 if test -n "$ac_tool_prefix"; then
6035 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6036 set dummy ${ac_tool_prefix}ar; ac_word=$2
6037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6038 $as_echo_n "checking for $ac_word... " >&6; }
6039 if test "${ac_cv_prog_AR+set}" = set; then :
6040 $as_echo_n "(cached) " >&6
6041 else
6042 if test -n "$AR"; then
6043 ac_cv_prog_AR="$AR" # Let the user override the test.
6044 else
6045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6046 for as_dir in $PATH
6048 IFS=$as_save_IFS
6049 test -z "$as_dir" && as_dir=.
6050 for ac_exec_ext in '' $ac_executable_extensions; do
6051 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6052 ac_cv_prog_AR="${ac_tool_prefix}ar"
6053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6054 break 2
6056 done
6057 done
6058 IFS=$as_save_IFS
6062 AR=$ac_cv_prog_AR
6063 if test -n "$AR"; then
6064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6065 $as_echo "$AR" >&6; }
6066 else
6067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6068 $as_echo "no" >&6; }
6073 if test -z "$ac_cv_prog_AR"; then
6074 ac_ct_AR=$AR
6075 # Extract the first word of "ar", so it can be a program name with args.
6076 set dummy ar; ac_word=$2
6077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6078 $as_echo_n "checking for $ac_word... " >&6; }
6079 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6080 $as_echo_n "(cached) " >&6
6081 else
6082 if test -n "$ac_ct_AR"; then
6083 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6084 else
6085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6086 for as_dir in $PATH
6088 IFS=$as_save_IFS
6089 test -z "$as_dir" && as_dir=.
6090 for ac_exec_ext in '' $ac_executable_extensions; do
6091 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6092 ac_cv_prog_ac_ct_AR="ar"
6093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6094 break 2
6096 done
6097 done
6098 IFS=$as_save_IFS
6102 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6103 if test -n "$ac_ct_AR"; then
6104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6105 $as_echo "$ac_ct_AR" >&6; }
6106 else
6107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6108 $as_echo "no" >&6; }
6111 if test "x$ac_ct_AR" = x; then
6112 AR="ar"
6113 else
6114 case $cross_compiling:$ac_tool_warned in
6115 yes:)
6116 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6117 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6118 ac_tool_warned=yes ;;
6119 esac
6120 AR=$ac_ct_AR
6122 else
6123 AR="$ac_cv_prog_AR"
6126 if test -z "$ARFLAGS"; then
6127 ARFLAGS='cru'
6130 else
6131 if test -z "$ARFLAGS"; then
6132 ARFLAGS='cru'
6137 if test -z "$RANLIB"; then
6138 if test $gl_cv_c_amsterdam_compiler = yes; then
6139 RANLIB=':'
6140 else
6141 if test -n "$ac_tool_prefix"; then
6142 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6143 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6145 $as_echo_n "checking for $ac_word... " >&6; }
6146 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6147 $as_echo_n "(cached) " >&6
6148 else
6149 if test -n "$RANLIB"; then
6150 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6151 else
6152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6153 for as_dir in $PATH
6155 IFS=$as_save_IFS
6156 test -z "$as_dir" && as_dir=.
6157 for ac_exec_ext in '' $ac_executable_extensions; do
6158 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6159 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6161 break 2
6163 done
6164 done
6165 IFS=$as_save_IFS
6169 RANLIB=$ac_cv_prog_RANLIB
6170 if test -n "$RANLIB"; then
6171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6172 $as_echo "$RANLIB" >&6; }
6173 else
6174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6175 $as_echo "no" >&6; }
6180 if test -z "$ac_cv_prog_RANLIB"; then
6181 ac_ct_RANLIB=$RANLIB
6182 # Extract the first word of "ranlib", so it can be a program name with args.
6183 set dummy ranlib; ac_word=$2
6184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6185 $as_echo_n "checking for $ac_word... " >&6; }
6186 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6187 $as_echo_n "(cached) " >&6
6188 else
6189 if test -n "$ac_ct_RANLIB"; then
6190 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6191 else
6192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6193 for as_dir in $PATH
6195 IFS=$as_save_IFS
6196 test -z "$as_dir" && as_dir=.
6197 for ac_exec_ext in '' $ac_executable_extensions; do
6198 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6199 ac_cv_prog_ac_ct_RANLIB="ranlib"
6200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6201 break 2
6203 done
6204 done
6205 IFS=$as_save_IFS
6209 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6210 if test -n "$ac_ct_RANLIB"; then
6211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6212 $as_echo "$ac_ct_RANLIB" >&6; }
6213 else
6214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6215 $as_echo "no" >&6; }
6218 if test "x$ac_ct_RANLIB" = x; then
6219 RANLIB=":"
6220 else
6221 case $cross_compiling:$ac_tool_warned in
6222 yes:)
6223 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6224 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6225 ac_tool_warned=yes ;;
6226 esac
6227 RANLIB=$ac_ct_RANLIB
6229 else
6230 RANLIB="$ac_cv_prog_RANLIB"
6237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6238 $as_echo_n "checking for ANSI C header files... " >&6; }
6239 if test "${ac_cv_header_stdc+set}" = set; then :
6240 $as_echo_n "(cached) " >&6
6241 else
6242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6243 /* end confdefs.h. */
6244 #include <stdlib.h>
6245 #include <stdarg.h>
6246 #include <string.h>
6247 #include <float.h>
6250 main ()
6254 return 0;
6256 _ACEOF
6257 if ac_fn_c_try_compile "$LINENO"; then :
6258 ac_cv_header_stdc=yes
6259 else
6260 ac_cv_header_stdc=no
6262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6264 if test $ac_cv_header_stdc = yes; then
6265 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6267 /* end confdefs.h. */
6268 #include <string.h>
6270 _ACEOF
6271 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6272 $EGREP "memchr" >/dev/null 2>&1; then :
6274 else
6275 ac_cv_header_stdc=no
6277 rm -f conftest*
6281 if test $ac_cv_header_stdc = yes; then
6282 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6284 /* end confdefs.h. */
6285 #include <stdlib.h>
6287 _ACEOF
6288 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6289 $EGREP "free" >/dev/null 2>&1; then :
6291 else
6292 ac_cv_header_stdc=no
6294 rm -f conftest*
6298 if test $ac_cv_header_stdc = yes; then
6299 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6300 if test "$cross_compiling" = yes; then :
6302 else
6303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6304 /* end confdefs.h. */
6305 #include <ctype.h>
6306 #include <stdlib.h>
6307 #if ((' ' & 0x0FF) == 0x020)
6308 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6309 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6310 #else
6311 # define ISLOWER(c) \
6312 (('a' <= (c) && (c) <= 'i') \
6313 || ('j' <= (c) && (c) <= 'r') \
6314 || ('s' <= (c) && (c) <= 'z'))
6315 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6316 #endif
6318 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6320 main ()
6322 int i;
6323 for (i = 0; i < 256; i++)
6324 if (XOR (islower (i), ISLOWER (i))
6325 || toupper (i) != TOUPPER (i))
6326 return 2;
6327 return 0;
6329 _ACEOF
6330 if ac_fn_c_try_run "$LINENO"; then :
6332 else
6333 ac_cv_header_stdc=no
6335 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6336 conftest.$ac_objext conftest.beam conftest.$ac_ext
6341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6342 $as_echo "$ac_cv_header_stdc" >&6; }
6343 if test $ac_cv_header_stdc = yes; then
6345 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6349 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6350 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6351 inttypes.h stdint.h unistd.h
6352 do :
6353 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6354 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6356 eval as_val=\$$as_ac_Header
6357 if test "x$as_val" = x""yes; then :
6358 cat >>confdefs.h <<_ACEOF
6359 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6360 _ACEOF
6364 done
6370 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6371 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
6372 MINIX=yes
6373 else
6374 MINIX=
6378 if test "$MINIX" = yes; then
6380 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6383 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6386 $as_echo "#define _MINIX 1" >>confdefs.h
6390 case "$host_os" in
6391 hpux*)
6393 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
6396 esac
6399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6400 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6401 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
6402 $as_echo_n "(cached) " >&6
6403 else
6404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6405 /* end confdefs.h. */
6407 # define __EXTENSIONS__ 1
6408 $ac_includes_default
6410 main ()
6414 return 0;
6416 _ACEOF
6417 if ac_fn_c_try_compile "$LINENO"; then :
6418 ac_cv_safe_to_define___extensions__=yes
6419 else
6420 ac_cv_safe_to_define___extensions__=no
6422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6425 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6426 test $ac_cv_safe_to_define___extensions__ = yes &&
6427 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6429 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6431 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
6433 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6435 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6437 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6446 # Check whether --enable-largefile was given.
6447 if test "${enable_largefile+set}" = set; then :
6448 enableval=$enable_largefile;
6451 if test "$enable_largefile" != no; then
6453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6454 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6455 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
6456 $as_echo_n "(cached) " >&6
6457 else
6458 ac_cv_sys_largefile_CC=no
6459 if test "$GCC" != yes; then
6460 ac_save_CC=$CC
6461 while :; do
6462 # IRIX 6.2 and later do not support large files by default,
6463 # so use the C compiler's -n32 option if that helps.
6464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6465 /* end confdefs.h. */
6466 #include <sys/types.h>
6467 /* Check that off_t can represent 2**63 - 1 correctly.
6468 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6469 since some C++ compilers masquerading as C compilers
6470 incorrectly reject 9223372036854775807. */
6471 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6472 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6473 && LARGE_OFF_T % 2147483647 == 1)
6474 ? 1 : -1];
6476 main ()
6480 return 0;
6482 _ACEOF
6483 if ac_fn_c_try_compile "$LINENO"; then :
6484 break
6486 rm -f core conftest.err conftest.$ac_objext
6487 CC="$CC -n32"
6488 if ac_fn_c_try_compile "$LINENO"; then :
6489 ac_cv_sys_largefile_CC=' -n32'; break
6491 rm -f core conftest.err conftest.$ac_objext
6492 break
6493 done
6494 CC=$ac_save_CC
6495 rm -f conftest.$ac_ext
6498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6499 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6500 if test "$ac_cv_sys_largefile_CC" != no; then
6501 CC=$CC$ac_cv_sys_largefile_CC
6504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6505 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6506 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
6507 $as_echo_n "(cached) " >&6
6508 else
6509 while :; do
6510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6511 /* end confdefs.h. */
6512 #include <sys/types.h>
6513 /* Check that off_t can represent 2**63 - 1 correctly.
6514 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6515 since some C++ compilers masquerading as C compilers
6516 incorrectly reject 9223372036854775807. */
6517 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6518 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6519 && LARGE_OFF_T % 2147483647 == 1)
6520 ? 1 : -1];
6522 main ()
6526 return 0;
6528 _ACEOF
6529 if ac_fn_c_try_compile "$LINENO"; then :
6530 ac_cv_sys_file_offset_bits=no; break
6532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6534 /* end confdefs.h. */
6535 #define _FILE_OFFSET_BITS 64
6536 #include <sys/types.h>
6537 /* Check that off_t can represent 2**63 - 1 correctly.
6538 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6539 since some C++ compilers masquerading as C compilers
6540 incorrectly reject 9223372036854775807. */
6541 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6542 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6543 && LARGE_OFF_T % 2147483647 == 1)
6544 ? 1 : -1];
6546 main ()
6550 return 0;
6552 _ACEOF
6553 if ac_fn_c_try_compile "$LINENO"; then :
6554 ac_cv_sys_file_offset_bits=64; break
6556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6557 ac_cv_sys_file_offset_bits=unknown
6558 break
6559 done
6561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6562 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6563 case $ac_cv_sys_file_offset_bits in #(
6564 no | unknown) ;;
6566 cat >>confdefs.h <<_ACEOF
6567 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6568 _ACEOF
6570 esac
6571 rm -rf conftest*
6572 if test $ac_cv_sys_file_offset_bits = unknown; then
6573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6574 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6575 if test "${ac_cv_sys_large_files+set}" = set; then :
6576 $as_echo_n "(cached) " >&6
6577 else
6578 while :; do
6579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6580 /* end confdefs.h. */
6581 #include <sys/types.h>
6582 /* Check that off_t can represent 2**63 - 1 correctly.
6583 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6584 since some C++ compilers masquerading as C compilers
6585 incorrectly reject 9223372036854775807. */
6586 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6587 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6588 && LARGE_OFF_T % 2147483647 == 1)
6589 ? 1 : -1];
6591 main ()
6595 return 0;
6597 _ACEOF
6598 if ac_fn_c_try_compile "$LINENO"; then :
6599 ac_cv_sys_large_files=no; break
6601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6603 /* end confdefs.h. */
6604 #define _LARGE_FILES 1
6605 #include <sys/types.h>
6606 /* Check that off_t can represent 2**63 - 1 correctly.
6607 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6608 since some C++ compilers masquerading as C compilers
6609 incorrectly reject 9223372036854775807. */
6610 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6611 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6612 && LARGE_OFF_T % 2147483647 == 1)
6613 ? 1 : -1];
6615 main ()
6619 return 0;
6621 _ACEOF
6622 if ac_fn_c_try_compile "$LINENO"; then :
6623 ac_cv_sys_large_files=1; break
6625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6626 ac_cv_sys_large_files=unknown
6627 break
6628 done
6630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6631 $as_echo "$ac_cv_sys_large_files" >&6; }
6632 case $ac_cv_sys_large_files in #(
6633 no | unknown) ;;
6635 cat >>confdefs.h <<_ACEOF
6636 #define _LARGE_FILES $ac_cv_sys_large_files
6637 _ACEOF
6639 esac
6640 rm -rf conftest*
6646 case $ac_cv_prog_cc_stdc in #(
6647 no) :
6648 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6649 *) :
6650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
6651 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
6652 if test "${ac_cv_prog_cc_c99+set}" = set; then :
6653 $as_echo_n "(cached) " >&6
6654 else
6655 ac_cv_prog_cc_c99=no
6656 ac_save_CC=$CC
6657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6658 /* end confdefs.h. */
6659 #include <stdarg.h>
6660 #include <stdbool.h>
6661 #include <stdlib.h>
6662 #include <wchar.h>
6663 #include <stdio.h>
6665 // Check varargs macros. These examples are taken from C99 6.10.3.5.
6666 #define debug(...) fprintf (stderr, __VA_ARGS__)
6667 #define showlist(...) puts (#__VA_ARGS__)
6668 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6669 static void
6670 test_varargs_macros (void)
6672 int x = 1234;
6673 int y = 5678;
6674 debug ("Flag");
6675 debug ("X = %d\n", x);
6676 showlist (The first, second, and third items.);
6677 report (x>y, "x is %d but y is %d", x, y);
6680 // Check long long types.
6681 #define BIG64 18446744073709551615ull
6682 #define BIG32 4294967295ul
6683 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6684 #if !BIG_OK
6685 your preprocessor is broken;
6686 #endif
6687 #if BIG_OK
6688 #else
6689 your preprocessor is broken;
6690 #endif
6691 static long long int bignum = -9223372036854775807LL;
6692 static unsigned long long int ubignum = BIG64;
6694 struct incomplete_array
6696 int datasize;
6697 double data[];
6700 struct named_init {
6701 int number;
6702 const wchar_t *name;
6703 double average;
6706 typedef const char *ccp;
6708 static inline int
6709 test_restrict (ccp restrict text)
6711 // See if C++-style comments work.
6712 // Iterate through items via the restricted pointer.
6713 // Also check for declarations in for loops.
6714 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6715 continue;
6716 return 0;
6719 // Check varargs and va_copy.
6720 static void
6721 test_varargs (const char *format, ...)
6723 va_list args;
6724 va_start (args, format);
6725 va_list args_copy;
6726 va_copy (args_copy, args);
6728 const char *str;
6729 int number;
6730 float fnumber;
6732 while (*format)
6734 switch (*format++)
6736 case 's': // string
6737 str = va_arg (args_copy, const char *);
6738 break;
6739 case 'd': // int
6740 number = va_arg (args_copy, int);
6741 break;
6742 case 'f': // float
6743 fnumber = va_arg (args_copy, double);
6744 break;
6745 default:
6746 break;
6749 va_end (args_copy);
6750 va_end (args);
6754 main ()
6757 // Check bool.
6758 _Bool success = false;
6760 // Check restrict.
6761 if (test_restrict ("String literal") == 0)
6762 success = true;
6763 char *restrict newvar = "Another string";
6765 // Check varargs.
6766 test_varargs ("s, d' f .", "string", 65, 34.234);
6767 test_varargs_macros ();
6769 // Check flexible array members.
6770 struct incomplete_array *ia =
6771 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6772 ia->datasize = 10;
6773 for (int i = 0; i < ia->datasize; ++i)
6774 ia->data[i] = i * 1.234;
6776 // Check named initializers.
6777 struct named_init ni = {
6778 .number = 34,
6779 .name = L"Test wide string",
6780 .average = 543.34343,
6783 ni.number = 58;
6785 int dynamic_array[ni.number];
6786 dynamic_array[ni.number - 1] = 543;
6788 // work around unused variable warnings
6789 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6790 || dynamic_array[ni.number - 1] != 543);
6793 return 0;
6795 _ACEOF
6796 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
6798 CC="$ac_save_CC $ac_arg"
6799 if ac_fn_c_try_compile "$LINENO"; then :
6800 ac_cv_prog_cc_c99=$ac_arg
6802 rm -f core conftest.err conftest.$ac_objext
6803 test "x$ac_cv_prog_cc_c99" != "xno" && break
6804 done
6805 rm -f conftest.$ac_ext
6806 CC=$ac_save_CC
6809 # AC_CACHE_VAL
6810 case "x$ac_cv_prog_cc_c99" in
6812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6813 $as_echo "none needed" >&6; } ;;
6814 xno)
6815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6816 $as_echo "unsupported" >&6; } ;;
6818 CC="$CC $ac_cv_prog_cc_c99"
6819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
6820 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6821 esac
6822 if test "x$ac_cv_prog_cc_c99" != xno; then :
6823 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
6824 else
6825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6826 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6827 if test "${ac_cv_prog_cc_c89+set}" = set; then :
6828 $as_echo_n "(cached) " >&6
6829 else
6830 ac_cv_prog_cc_c89=no
6831 ac_save_CC=$CC
6832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6833 /* end confdefs.h. */
6834 #include <stdarg.h>
6835 #include <stdio.h>
6836 #include <sys/types.h>
6837 #include <sys/stat.h>
6838 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6839 struct buf { int x; };
6840 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6841 static char *e (p, i)
6842 char **p;
6843 int i;
6845 return p[i];
6847 static char *f (char * (*g) (char **, int), char **p, ...)
6849 char *s;
6850 va_list v;
6851 va_start (v,p);
6852 s = g (p, va_arg (v,int));
6853 va_end (v);
6854 return s;
6857 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6858 function prototypes and stuff, but not '\xHH' hex character constants.
6859 These don't provoke an error unfortunately, instead are silently treated
6860 as 'x'. The following induces an error, until -std is added to get
6861 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6862 array size at least. It's necessary to write '\x00'==0 to get something
6863 that's true only with -std. */
6864 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6866 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6867 inside strings and character constants. */
6868 #define FOO(x) 'x'
6869 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6871 int test (int i, double x);
6872 struct s1 {int (*f) (int a);};
6873 struct s2 {int (*f) (double a);};
6874 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6875 int argc;
6876 char **argv;
6878 main ()
6880 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6882 return 0;
6884 _ACEOF
6885 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6886 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6888 CC="$ac_save_CC $ac_arg"
6889 if ac_fn_c_try_compile "$LINENO"; then :
6890 ac_cv_prog_cc_c89=$ac_arg
6892 rm -f core conftest.err conftest.$ac_objext
6893 test "x$ac_cv_prog_cc_c89" != "xno" && break
6894 done
6895 rm -f conftest.$ac_ext
6896 CC=$ac_save_CC
6899 # AC_CACHE_VAL
6900 case "x$ac_cv_prog_cc_c89" in
6902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6903 $as_echo "none needed" >&6; } ;;
6904 xno)
6905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6906 $as_echo "unsupported" >&6; } ;;
6908 CC="$CC $ac_cv_prog_cc_c89"
6909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6910 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6911 esac
6912 if test "x$ac_cv_prog_cc_c89" != xno; then :
6913 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
6914 else
6915 ac_cv_prog_cc_stdc=no
6920 esac
6921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
6922 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
6923 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
6924 $as_echo_n "(cached) " >&6
6927 case $ac_cv_prog_cc_stdc in #(
6928 no) :
6929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6930 $as_echo "unsupported" >&6; } ;; #(
6931 '') :
6932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6933 $as_echo "none needed" >&6; } ;; #(
6934 *) :
6935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
6936 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
6937 esac
6941 # Code from module alloca-opt:
6942 # Code from module allocator:
6943 # Code from module careadlinkat:
6944 # Code from module crypto/md5:
6945 # Code from module crypto/sha1:
6946 # Code from module crypto/sha256:
6947 # Code from module crypto/sha512:
6948 # Code from module dosname:
6949 # Code from module dtoastr:
6950 # Code from module dup2:
6951 # Code from module extensions:
6953 # Code from module filemode:
6954 # Code from module getloadavg:
6955 # Code from module getopt-gnu:
6956 # Code from module getopt-posix:
6957 # Code from module gettext-h:
6958 # Code from module ignore-value:
6959 # Code from module include_next:
6960 # Code from module intprops:
6961 # Code from module inttypes-incomplete:
6962 # Code from module largefile:
6964 # Code from module lstat:
6965 # Code from module manywarnings:
6966 # Code from module mktime:
6967 # Code from module multiarch:
6968 # Code from module nocrash:
6969 # Code from module pathmax:
6970 # Code from module pthread_sigmask:
6971 # Code from module readlink:
6972 # Code from module signal-h:
6973 # Code from module sigprocmask:
6974 # Code from module snippet/_Noreturn:
6975 # Code from module snippet/arg-nonnull:
6976 # Code from module snippet/c++defs:
6977 # Code from module snippet/warn-on-use:
6978 # Code from module socklen:
6979 # Code from module ssize_t:
6980 # Code from module stat:
6981 # Code from module stdarg:
6985 # Code from module stdbool:
6986 # Code from module stddef:
6987 # Code from module stdint:
6988 # Code from module stdio:
6989 # Code from module stdlib:
6990 # Code from module strftime:
6991 # Code from module strtoimax:
6992 # Code from module strtoll:
6993 # Code from module strtoull:
6994 # Code from module strtoumax:
6995 # Code from module symlink:
6996 # Code from module sys_stat:
6997 # Code from module time:
6998 # Code from module time_r:
6999 # Code from module u64:
7000 # Code from module unistd:
7001 # Code from module verify:
7002 # Code from module warnings:
7005 # On Suns, sometimes $CPP names a directory.
7006 if test -n "$CPP" && test -d "$CPP"; then
7007 CPP=
7010 ## If not using gcc, and on Solaris, and no CPP specified, see if
7011 ## using a Sun compiler, which needs -Xs to prevent whitespace.
7012 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
7013 test x"$CPP" = x; then
7014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using a Sun C compiler" >&5
7015 $as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
7016 if test "${emacs_cv_sunpro_c+set}" = set; then :
7017 $as_echo_n "(cached) " >&6
7018 else
7019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7020 /* end confdefs.h. */
7023 main ()
7025 #ifndef __SUNPRO_C
7026 fail;
7027 #endif
7030 return 0;
7032 _ACEOF
7033 if ac_fn_c_try_link "$LINENO"; then :
7034 emacs_cv_sunpro_c=yes
7035 else
7036 emacs_cv_sunpro_c=no
7038 rm -f core conftest.err conftest.$ac_objext \
7039 conftest$ac_exeext conftest.$ac_ext
7042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_sunpro_c" >&5
7043 $as_echo "$emacs_cv_sunpro_c" >&6; }
7045 if test x"$emacs_cv_sunpro_c" = xyes; then
7046 NON_GNU_CPP="$CC -E -Xs"
7050 #### Some systems specify a CPP to use unless we are using GCC.
7051 #### Now that we know whether we are using GCC, we can decide whether
7052 #### to use that one.
7053 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
7054 then
7055 CPP="$NON_GNU_CPP"
7058 #### Some systems specify a CC to use unless we are using GCC.
7059 #### Now that we know whether we are using GCC, we can decide whether
7060 #### to use that one.
7061 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
7062 test x$cc_specified != xyes
7063 then
7064 CC="$NON_GNU_CC"
7067 if test x$GCC = xyes; then
7068 test "x$GCC_TEST_OPTIONS" != x && CC="$CC $GCC_TEST_OPTIONS"
7069 else
7070 test "x$NON_GCC_TEST_OPTIONS" != x && CC="$CC $NON_GCC_TEST_OPTIONS"
7073 # Check whether --enable-gcc-warnings was given.
7074 if test "${enable_gcc_warnings+set}" = set; then :
7075 enableval=$enable_gcc_warnings; case $enableval in
7076 yes|no) ;;
7077 *) as_fn_error "bad value $enableval for gcc-warnings option" "$LINENO" 5 ;;
7078 esac
7079 gl_gcc_warnings=$enableval
7080 else
7081 gl_gcc_warnings=no
7086 # gl_GCC_VERSION_IFELSE([major], [minor], [run-if-found], [run-if-not-found])
7087 # ------------------------------------------------
7088 # If $CPP is gcc-MAJOR.MINOR or newer, then run RUN-IF-FOUND.
7089 # Otherwise, run RUN-IF-NOT-FOUND.
7092 # When compiling with GCC, prefer -isystem to -I when including system
7093 # include files, to avoid generating useless diagnostics for the files.
7094 if test "$gl_gcc_warnings" != yes; then
7095 isystem='-I'
7096 else
7097 isystem='-isystem '
7099 # This, $nw, is the list of warnings we disable.
7102 case $with_x_toolkit in
7103 lucid | athena | motif)
7104 # Old toolkits mishandle 'const'.
7105 nw="$nw -Wwrite-strings"
7108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Werror" >&5
7109 $as_echo_n "checking whether C compiler handles -Werror... " >&6; }
7110 if test "${gl_cv_warn_c__Werror+set}" = set; then :
7111 $as_echo_n "(cached) " >&6
7112 else
7114 gl_save_compiler_FLAGS="$CFLAGS"
7115 CFLAGS="$CFLAGS -Werror"
7116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7117 /* end confdefs.h. */
7120 main ()
7124 return 0;
7126 _ACEOF
7127 if ac_fn_c_try_compile "$LINENO"; then :
7128 gl_cv_warn_c__Werror=yes
7129 else
7130 gl_cv_warn_c__Werror=no
7132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7133 CFLAGS="$gl_save_compiler_FLAGS"
7136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Werror" >&5
7137 $as_echo "$gl_cv_warn_c__Werror" >&6; }
7138 if test "x$gl_cv_warn_c__Werror" = x""yes; then :
7139 as_fn_append WERROR_CFLAGS " -Werror"
7143 esac
7146 nw="$nw -Waggregate-return" # anachronistic
7147 nw="$nw -Wlong-long" # C90 is anachronistic
7148 nw="$nw -Wc++-compat" # We don't care about C++ compilers
7149 nw="$nw -Wundef" # Warns on '#if GNULIB_FOO' etc in gnulib
7150 nw="$nw -Wtraditional" # Warns on #elif which we use often
7151 nw="$nw -Wcast-qual" # Too many warnings for now
7152 nw="$nw -Wconversion" # Too many warnings for now
7153 nw="$nw -Wsystem-headers" # Don't let system headers trigger warnings
7154 nw="$nw -Wsign-conversion" # Too many warnings for now
7155 nw="$nw -Woverlength-strings" # Not a problem these days
7156 nw="$nw -Wtraditional-conversion" # Too many warnings for now
7157 nw="$nw -Wpadded" # Our structs are not padded
7158 nw="$nw -Wredundant-decls" # We regularly (re)declare getenv etc.
7159 nw="$nw -Wlogical-op" # any use of fwrite provokes this
7160 nw="$nw -Wformat-nonliteral" # Emacs does this a lot
7161 nw="$nw -Wvla" # warnings in gettext.h
7162 nw="$nw -Wnested-externs" # use of XARGMATCH/verify_function__
7163 nw="$nw -Wswitch-enum" # Too many warnings for now
7164 nw="$nw -Wswitch-default" # Too many warnings for now
7165 nw="$nw -Wfloat-equal" # e.g., ftoastr.c
7166 nw="$nw -Winline" # e.g., dispnew.c's inlining of row_equal_p
7168 # Emacs doesn't care about shadowing; see
7169 # <http://lists.gnu.org/archive/html/emacs-diffs/2011-11/msg00265.html>.
7170 nw="$nw -Wshadow"
7172 # The following lines should be removable at some point.
7173 nw="$nw -Wstack-protector"
7174 nw="$nw -Wstrict-overflow"
7175 nw="$nw -Wsuggest-attribute=const"
7176 nw="$nw -Wsuggest-attribute=pure"
7180 if test -n "$GCC"; then
7182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is supported" >&5
7183 $as_echo_n "checking whether -Wno-missing-field-initializers is supported... " >&6; }
7184 if test "${gl_cv_cc_nomfi_supported+set}" = set; then :
7185 $as_echo_n "(cached) " >&6
7186 else
7188 gl_save_CFLAGS="$CFLAGS"
7189 CFLAGS="$CFLAGS -W -Werror -Wno-missing-field-initializers"
7190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7191 /* end confdefs.h. */
7194 main ()
7198 return 0;
7200 _ACEOF
7201 if ac_fn_c_try_compile "$LINENO"; then :
7202 gl_cv_cc_nomfi_supported=yes
7203 else
7204 gl_cv_cc_nomfi_supported=no
7206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7207 CFLAGS="$gl_save_CFLAGS"
7210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_supported" >&5
7211 $as_echo "$gl_cv_cc_nomfi_supported" >&6; }
7213 if test "$gl_cv_cc_nomfi_supported" = yes; then
7214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is needed" >&5
7215 $as_echo_n "checking whether -Wno-missing-field-initializers is needed... " >&6; }
7216 if test "${gl_cv_cc_nomfi_needed+set}" = set; then :
7217 $as_echo_n "(cached) " >&6
7218 else
7220 gl_save_CFLAGS="$CFLAGS"
7221 CFLAGS="$CFLAGS -W -Werror"
7222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7223 /* end confdefs.h. */
7224 void f (void)
7226 typedef struct { int a; int b; } s_t;
7227 s_t s1 = { 0, };
7231 main ()
7235 return 0;
7237 _ACEOF
7238 if ac_fn_c_try_compile "$LINENO"; then :
7239 gl_cv_cc_nomfi_needed=no
7240 else
7241 gl_cv_cc_nomfi_needed=yes
7243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7244 CFLAGS="$gl_save_CFLAGS"
7248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_needed" >&5
7249 $as_echo "$gl_cv_cc_nomfi_needed" >&6; }
7253 gl_manywarn_set=
7254 for gl_manywarn_item in \
7255 -Wall \
7256 -W \
7257 -Wformat-y2k \
7258 -Wformat-nonliteral \
7259 -Wformat-security \
7260 -Winit-self \
7261 -Wmissing-include-dirs \
7262 -Wswitch-default \
7263 -Wswitch-enum \
7264 -Wunused \
7265 -Wunknown-pragmas \
7266 -Wstrict-aliasing \
7267 -Wstrict-overflow \
7268 -Wsystem-headers \
7269 -Wfloat-equal \
7270 -Wtraditional \
7271 -Wtraditional-conversion \
7272 -Wdeclaration-after-statement \
7273 -Wundef \
7274 -Wshadow \
7275 -Wunsafe-loop-optimizations \
7276 -Wpointer-arith \
7277 -Wbad-function-cast \
7278 -Wc++-compat \
7279 -Wcast-qual \
7280 -Wcast-align \
7281 -Wwrite-strings \
7282 -Wconversion \
7283 -Wsign-conversion \
7284 -Wlogical-op \
7285 -Waggregate-return \
7286 -Wstrict-prototypes \
7287 -Wold-style-definition \
7288 -Wmissing-prototypes \
7289 -Wmissing-declarations \
7290 -Wmissing-noreturn \
7291 -Wmissing-format-attribute \
7292 -Wpacked \
7293 -Wpadded \
7294 -Wredundant-decls \
7295 -Wnested-externs \
7296 -Wunreachable-code \
7297 -Winline \
7298 -Winvalid-pch \
7299 -Wlong-long \
7300 -Wvla \
7301 -Wvolatile-register-var \
7302 -Wdisabled-optimization \
7303 -Wstack-protector \
7304 -Woverlength-strings \
7305 -Wbuiltin-macro-redefined \
7306 -Wmudflap \
7307 -Wpacked-bitfield-compat \
7308 -Wsync-nand \
7309 ; do
7310 gl_manywarn_set="$gl_manywarn_set $gl_manywarn_item"
7311 done
7312 # The following are not documented in the manual but are included in
7313 # output from gcc --help=warnings.
7314 for gl_manywarn_item in \
7315 -Wattributes \
7316 -Wcoverage-mismatch \
7317 -Wmultichar \
7318 -Wunused-macros \
7319 ; do
7320 gl_manywarn_set="$gl_manywarn_set $gl_manywarn_item"
7321 done
7322 # More warnings from gcc 4.6.2 --help=warnings.
7323 for gl_manywarn_item in \
7324 -Wabi \
7325 -Wcpp \
7326 -Wdeprecated \
7327 -Wdeprecated-declarations \
7328 -Wdiv-by-zero \
7329 -Wdouble-promotion \
7330 -Wendif-labels \
7331 -Wextra \
7332 -Wformat-contains-nul \
7333 -Wformat-extra-args \
7334 -Wformat-zero-length \
7335 -Wformat=2 \
7336 -Wmultichar \
7337 -Wnormalized=nfc \
7338 -Woverflow \
7339 -Wpointer-to-int-cast \
7340 -Wpragmas \
7341 -Wsuggest-attribute=const \
7342 -Wsuggest-attribute=noreturn \
7343 -Wsuggest-attribute=pure \
7344 -Wtrampolines \
7345 ; do
7346 gl_manywarn_set="$gl_manywarn_set $gl_manywarn_item"
7347 done
7349 # Disable the missing-field-initializers warning if needed
7350 if test "$gl_cv_cc_nomfi_needed" = yes; then
7351 gl_manywarn_set="$gl_manywarn_set -Wno-missing-field-initializers"
7354 ws=$gl_manywarn_set
7357 gl_warn_set=
7358 set x $ws; shift
7359 for gl_warn_item
7361 case " $nw " in
7362 *" $gl_warn_item "*)
7365 gl_warn_set="$gl_warn_set $gl_warn_item"
7367 esac
7368 done
7369 ws=$gl_warn_set
7371 for w in $ws; do
7372 as_gl_Warn=`$as_echo "gl_cv_warn_c_$w" | $as_tr_sh`
7373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles $w" >&5
7374 $as_echo_n "checking whether C compiler handles $w... " >&6; }
7375 if { as_var=$as_gl_Warn; eval "test \"\${$as_var+set}\" = set"; }; then :
7376 $as_echo_n "(cached) " >&6
7377 else
7379 gl_save_compiler_FLAGS="$CFLAGS"
7380 CFLAGS="$CFLAGS $w"
7381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7382 /* end confdefs.h. */
7385 main ()
7389 return 0;
7391 _ACEOF
7392 if ac_fn_c_try_compile "$LINENO"; then :
7393 eval "$as_gl_Warn=yes"
7394 else
7395 eval "$as_gl_Warn=no"
7397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7398 CFLAGS="$gl_save_compiler_FLAGS"
7401 eval ac_res=\$$as_gl_Warn
7402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7403 $as_echo "$ac_res" >&6; }
7404 eval as_val=\$$as_gl_Warn
7405 if test "x$as_val" = x""yes; then :
7406 as_fn_append WARN_CFLAGS " $w"
7409 done
7410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-missing-field-initializers" >&5
7411 $as_echo_n "checking whether C compiler handles -Wno-missing-field-initializers... " >&6; }
7412 if test "${gl_cv_warn_c__Wno_missing_field_initializers+set}" = set; then :
7413 $as_echo_n "(cached) " >&6
7414 else
7416 gl_save_compiler_FLAGS="$CFLAGS"
7417 CFLAGS="$CFLAGS -Wno-missing-field-initializers"
7418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7419 /* end confdefs.h. */
7422 main ()
7426 return 0;
7428 _ACEOF
7429 if ac_fn_c_try_compile "$LINENO"; then :
7430 gl_cv_warn_c__Wno_missing_field_initializers=yes
7431 else
7432 gl_cv_warn_c__Wno_missing_field_initializers=no
7434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7435 CFLAGS="$gl_save_compiler_FLAGS"
7438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_missing_field_initializers" >&5
7439 $as_echo "$gl_cv_warn_c__Wno_missing_field_initializers" >&6; }
7440 if test "x$gl_cv_warn_c__Wno_missing_field_initializers" = x""yes; then :
7441 as_fn_append WARN_CFLAGS " -Wno-missing-field-initializers"
7443 # We need this one
7444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-sign-compare" >&5
7445 $as_echo_n "checking whether C compiler handles -Wno-sign-compare... " >&6; }
7446 if test "${gl_cv_warn_c__Wno_sign_compare+set}" = set; then :
7447 $as_echo_n "(cached) " >&6
7448 else
7450 gl_save_compiler_FLAGS="$CFLAGS"
7451 CFLAGS="$CFLAGS -Wno-sign-compare"
7452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7453 /* end confdefs.h. */
7456 main ()
7460 return 0;
7462 _ACEOF
7463 if ac_fn_c_try_compile "$LINENO"; then :
7464 gl_cv_warn_c__Wno_sign_compare=yes
7465 else
7466 gl_cv_warn_c__Wno_sign_compare=no
7468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7469 CFLAGS="$gl_save_compiler_FLAGS"
7472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_sign_compare" >&5
7473 $as_echo "$gl_cv_warn_c__Wno_sign_compare" >&6; }
7474 if test "x$gl_cv_warn_c__Wno_sign_compare" = x""yes; then :
7475 as_fn_append WARN_CFLAGS " -Wno-sign-compare"
7477 # Too many warnings for now
7478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-type-limits" >&5
7479 $as_echo_n "checking whether C compiler handles -Wno-type-limits... " >&6; }
7480 if test "${gl_cv_warn_c__Wno_type_limits+set}" = set; then :
7481 $as_echo_n "(cached) " >&6
7482 else
7484 gl_save_compiler_FLAGS="$CFLAGS"
7485 CFLAGS="$CFLAGS -Wno-type-limits"
7486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7487 /* end confdefs.h. */
7490 main ()
7494 return 0;
7496 _ACEOF
7497 if ac_fn_c_try_compile "$LINENO"; then :
7498 gl_cv_warn_c__Wno_type_limits=yes
7499 else
7500 gl_cv_warn_c__Wno_type_limits=no
7502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7503 CFLAGS="$gl_save_compiler_FLAGS"
7506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_type_limits" >&5
7507 $as_echo "$gl_cv_warn_c__Wno_type_limits" >&6; }
7508 if test "x$gl_cv_warn_c__Wno_type_limits" = x""yes; then :
7509 as_fn_append WARN_CFLAGS " -Wno-type-limits"
7511 # Too many warnings for now
7512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-switch" >&5
7513 $as_echo_n "checking whether C compiler handles -Wno-switch... " >&6; }
7514 if test "${gl_cv_warn_c__Wno_switch+set}" = set; then :
7515 $as_echo_n "(cached) " >&6
7516 else
7518 gl_save_compiler_FLAGS="$CFLAGS"
7519 CFLAGS="$CFLAGS -Wno-switch"
7520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7521 /* end confdefs.h. */
7524 main ()
7528 return 0;
7530 _ACEOF
7531 if ac_fn_c_try_compile "$LINENO"; then :
7532 gl_cv_warn_c__Wno_switch=yes
7533 else
7534 gl_cv_warn_c__Wno_switch=no
7536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7537 CFLAGS="$gl_save_compiler_FLAGS"
7540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_switch" >&5
7541 $as_echo "$gl_cv_warn_c__Wno_switch" >&6; }
7542 if test "x$gl_cv_warn_c__Wno_switch" = x""yes; then :
7543 as_fn_append WARN_CFLAGS " -Wno-switch"
7545 # Too many warnings for now
7546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-unused-parameter" >&5
7547 $as_echo_n "checking whether C compiler handles -Wno-unused-parameter... " >&6; }
7548 if test "${gl_cv_warn_c__Wno_unused_parameter+set}" = set; then :
7549 $as_echo_n "(cached) " >&6
7550 else
7552 gl_save_compiler_FLAGS="$CFLAGS"
7553 CFLAGS="$CFLAGS -Wno-unused-parameter"
7554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7555 /* end confdefs.h. */
7558 main ()
7562 return 0;
7564 _ACEOF
7565 if ac_fn_c_try_compile "$LINENO"; then :
7566 gl_cv_warn_c__Wno_unused_parameter=yes
7567 else
7568 gl_cv_warn_c__Wno_unused_parameter=no
7570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7571 CFLAGS="$gl_save_compiler_FLAGS"
7574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_unused_parameter" >&5
7575 $as_echo "$gl_cv_warn_c__Wno_unused_parameter" >&6; }
7576 if test "x$gl_cv_warn_c__Wno_unused_parameter" = x""yes; then :
7577 as_fn_append WARN_CFLAGS " -Wno-unused-parameter"
7579 # Too many warnings for now
7580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-format-nonliteral" >&5
7581 $as_echo_n "checking whether C compiler handles -Wno-format-nonliteral... " >&6; }
7582 if test "${gl_cv_warn_c__Wno_format_nonliteral+set}" = set; then :
7583 $as_echo_n "(cached) " >&6
7584 else
7586 gl_save_compiler_FLAGS="$CFLAGS"
7587 CFLAGS="$CFLAGS -Wno-format-nonliteral"
7588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7589 /* end confdefs.h. */
7592 main ()
7596 return 0;
7598 _ACEOF
7599 if ac_fn_c_try_compile "$LINENO"; then :
7600 gl_cv_warn_c__Wno_format_nonliteral=yes
7601 else
7602 gl_cv_warn_c__Wno_format_nonliteral=no
7604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7605 CFLAGS="$gl_save_compiler_FLAGS"
7608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_format_nonliteral" >&5
7609 $as_echo "$gl_cv_warn_c__Wno_format_nonliteral" >&6; }
7610 if test "x$gl_cv_warn_c__Wno_format_nonliteral" = x""yes; then :
7611 as_fn_append WARN_CFLAGS " -Wno-format-nonliteral"
7615 # In spite of excluding -Wlogical-op above, it is enabled, as of
7616 # gcc 4.5.0 20090517.
7617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-logical-op" >&5
7618 $as_echo_n "checking whether C compiler handles -Wno-logical-op... " >&6; }
7619 if test "${gl_cv_warn_c__Wno_logical_op+set}" = set; then :
7620 $as_echo_n "(cached) " >&6
7621 else
7623 gl_save_compiler_FLAGS="$CFLAGS"
7624 CFLAGS="$CFLAGS -Wno-logical-op"
7625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7626 /* end confdefs.h. */
7629 main ()
7633 return 0;
7635 _ACEOF
7636 if ac_fn_c_try_compile "$LINENO"; then :
7637 gl_cv_warn_c__Wno_logical_op=yes
7638 else
7639 gl_cv_warn_c__Wno_logical_op=no
7641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7642 CFLAGS="$gl_save_compiler_FLAGS"
7645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_logical_op" >&5
7646 $as_echo "$gl_cv_warn_c__Wno_logical_op" >&6; }
7647 if test "x$gl_cv_warn_c__Wno_logical_op" = x""yes; then :
7648 as_fn_append WARN_CFLAGS " -Wno-logical-op"
7652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -fdiagnostics-show-option" >&5
7653 $as_echo_n "checking whether C compiler handles -fdiagnostics-show-option... " >&6; }
7654 if test "${gl_cv_warn_c__fdiagnostics_show_option+set}" = set; then :
7655 $as_echo_n "(cached) " >&6
7656 else
7658 gl_save_compiler_FLAGS="$CFLAGS"
7659 CFLAGS="$CFLAGS -fdiagnostics-show-option"
7660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7661 /* end confdefs.h. */
7664 main ()
7668 return 0;
7670 _ACEOF
7671 if ac_fn_c_try_compile "$LINENO"; then :
7672 gl_cv_warn_c__fdiagnostics_show_option=yes
7673 else
7674 gl_cv_warn_c__fdiagnostics_show_option=no
7676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7677 CFLAGS="$gl_save_compiler_FLAGS"
7680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__fdiagnostics_show_option" >&5
7681 $as_echo "$gl_cv_warn_c__fdiagnostics_show_option" >&6; }
7682 if test "x$gl_cv_warn_c__fdiagnostics_show_option" = x""yes; then :
7683 as_fn_append WARN_CFLAGS " -fdiagnostics-show-option"
7686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -funit-at-a-time" >&5
7687 $as_echo_n "checking whether C compiler handles -funit-at-a-time... " >&6; }
7688 if test "${gl_cv_warn_c__funit_at_a_time+set}" = set; then :
7689 $as_echo_n "(cached) " >&6
7690 else
7692 gl_save_compiler_FLAGS="$CFLAGS"
7693 CFLAGS="$CFLAGS -funit-at-a-time"
7694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7695 /* end confdefs.h. */
7698 main ()
7702 return 0;
7704 _ACEOF
7705 if ac_fn_c_try_compile "$LINENO"; then :
7706 gl_cv_warn_c__funit_at_a_time=yes
7707 else
7708 gl_cv_warn_c__funit_at_a_time=no
7710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7711 CFLAGS="$gl_save_compiler_FLAGS"
7714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__funit_at_a_time" >&5
7715 $as_echo "$gl_cv_warn_c__funit_at_a_time" >&6; }
7716 if test "x$gl_cv_warn_c__funit_at_a_time" = x""yes; then :
7717 as_fn_append WARN_CFLAGS " -funit-at-a-time"
7722 $as_echo "#define lint 1" >>confdefs.h
7725 $as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
7728 $as_echo "#define GNULIB_PORTCHECK 1" >>confdefs.h
7731 # We use a slightly smaller set of warning options for lib/.
7732 # Remove the following and save the result in GNULIB_WARN_CFLAGS.
7734 nw="$nw -Wunused-macros"
7737 gl_warn_set=
7738 set x $WARN_CFLAGS; shift
7739 for gl_warn_item
7741 case " $nw " in
7742 *" $gl_warn_item "*)
7745 gl_warn_set="$gl_warn_set $gl_warn_item"
7747 esac
7748 done
7749 GNULIB_WARN_CFLAGS=$gl_warn_set
7756 #### Some other nice autoconf tests.
7758 ac_ext=c
7759 ac_cpp='$CPP $CPPFLAGS'
7760 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7761 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7762 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7764 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7765 # On Suns, sometimes $CPP names a directory.
7766 if test -n "$CPP" && test -d "$CPP"; then
7767 CPP=
7769 if test -z "$CPP"; then
7770 if test "${ac_cv_prog_CPP+set}" = set; then :
7771 $as_echo_n "(cached) " >&6
7772 else
7773 # Double quotes because CPP needs to be expanded
7774 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7776 ac_preproc_ok=false
7777 for ac_c_preproc_warn_flag in '' yes
7779 # Use a header file that comes with gcc, so configuring glibc
7780 # with a fresh cross-compiler works.
7781 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7782 # <limits.h> exists even on freestanding compilers.
7783 # On the NeXT, cc -E runs the code through the compiler's parser,
7784 # not just through cpp. "Syntax error" is here to catch this case.
7785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7786 /* end confdefs.h. */
7787 #ifdef __STDC__
7788 # include <limits.h>
7789 #else
7790 # include <assert.h>
7791 #endif
7792 Syntax error
7793 _ACEOF
7794 if ac_fn_c_try_cpp "$LINENO"; then :
7796 else
7797 # Broken: fails on valid input.
7798 continue
7800 rm -f conftest.err conftest.$ac_ext
7802 # OK, works on sane cases. Now check whether nonexistent headers
7803 # can be detected and how.
7804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7805 /* end confdefs.h. */
7806 #include <ac_nonexistent.h>
7807 _ACEOF
7808 if ac_fn_c_try_cpp "$LINENO"; then :
7809 # Broken: success on invalid input.
7810 continue
7811 else
7812 # Passes both tests.
7813 ac_preproc_ok=:
7814 break
7816 rm -f conftest.err conftest.$ac_ext
7818 done
7819 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7820 rm -f conftest.err conftest.$ac_ext
7821 if $ac_preproc_ok; then :
7822 break
7825 done
7826 ac_cv_prog_CPP=$CPP
7829 CPP=$ac_cv_prog_CPP
7830 else
7831 ac_cv_prog_CPP=$CPP
7833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7834 $as_echo "$CPP" >&6; }
7835 ac_preproc_ok=false
7836 for ac_c_preproc_warn_flag in '' yes
7838 # Use a header file that comes with gcc, so configuring glibc
7839 # with a fresh cross-compiler works.
7840 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7841 # <limits.h> exists even on freestanding compilers.
7842 # On the NeXT, cc -E runs the code through the compiler's parser,
7843 # not just through cpp. "Syntax error" is here to catch this case.
7844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7845 /* end confdefs.h. */
7846 #ifdef __STDC__
7847 # include <limits.h>
7848 #else
7849 # include <assert.h>
7850 #endif
7851 Syntax error
7852 _ACEOF
7853 if ac_fn_c_try_cpp "$LINENO"; then :
7855 else
7856 # Broken: fails on valid input.
7857 continue
7859 rm -f conftest.err conftest.$ac_ext
7861 # OK, works on sane cases. Now check whether nonexistent headers
7862 # can be detected and how.
7863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7864 /* end confdefs.h. */
7865 #include <ac_nonexistent.h>
7866 _ACEOF
7867 if ac_fn_c_try_cpp "$LINENO"; then :
7868 # Broken: success on invalid input.
7869 continue
7870 else
7871 # Passes both tests.
7872 ac_preproc_ok=:
7873 break
7875 rm -f conftest.err conftest.$ac_ext
7877 done
7878 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7879 rm -f conftest.err conftest.$ac_ext
7880 if $ac_preproc_ok; then :
7882 else
7883 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7884 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7885 as_fn_error "C preprocessor \"$CPP\" fails sanity check
7886 See \`config.log' for more details." "$LINENO" 5; }
7889 ac_ext=c
7890 ac_cpp='$CPP $CPPFLAGS'
7891 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7892 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7893 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7896 if test "x$RANLIB" = x; then
7897 if test -n "$ac_tool_prefix"; then
7898 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7899 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7901 $as_echo_n "checking for $ac_word... " >&6; }
7902 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7903 $as_echo_n "(cached) " >&6
7904 else
7905 if test -n "$RANLIB"; then
7906 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7907 else
7908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7909 for as_dir in $PATH
7911 IFS=$as_save_IFS
7912 test -z "$as_dir" && as_dir=.
7913 for ac_exec_ext in '' $ac_executable_extensions; do
7914 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7915 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7917 break 2
7919 done
7920 done
7921 IFS=$as_save_IFS
7925 RANLIB=$ac_cv_prog_RANLIB
7926 if test -n "$RANLIB"; then
7927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7928 $as_echo "$RANLIB" >&6; }
7929 else
7930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7931 $as_echo "no" >&6; }
7936 if test -z "$ac_cv_prog_RANLIB"; then
7937 ac_ct_RANLIB=$RANLIB
7938 # Extract the first word of "ranlib", so it can be a program name with args.
7939 set dummy ranlib; ac_word=$2
7940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7941 $as_echo_n "checking for $ac_word... " >&6; }
7942 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7943 $as_echo_n "(cached) " >&6
7944 else
7945 if test -n "$ac_ct_RANLIB"; then
7946 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7947 else
7948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7949 for as_dir in $PATH
7951 IFS=$as_save_IFS
7952 test -z "$as_dir" && as_dir=.
7953 for ac_exec_ext in '' $ac_executable_extensions; do
7954 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7955 ac_cv_prog_ac_ct_RANLIB="ranlib"
7956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7957 break 2
7959 done
7960 done
7961 IFS=$as_save_IFS
7965 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7966 if test -n "$ac_ct_RANLIB"; then
7967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7968 $as_echo "$ac_ct_RANLIB" >&6; }
7969 else
7970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7971 $as_echo "no" >&6; }
7974 if test "x$ac_ct_RANLIB" = x; then
7975 RANLIB=":"
7976 else
7977 case $cross_compiling:$ac_tool_warned in
7978 yes:)
7979 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7980 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7981 ac_tool_warned=yes ;;
7982 esac
7983 RANLIB=$ac_ct_RANLIB
7985 else
7986 RANLIB="$ac_cv_prog_RANLIB"
7991 ## Although we're running on an amd64 kernel, we're actually compiling for
7992 ## the x86 architecture. The user should probably have provided an
7993 ## explicit --build to `configure', but if everything else than the kernel
7994 ## is running in i386 mode, we can help them out.
7995 if test "$machine" = "amdx86-64"; then
7996 ac_fn_c_check_decl "$LINENO" "i386" "ac_cv_have_decl_i386" "$ac_includes_default"
7997 if test "x$ac_cv_have_decl_i386" = x""yes; then :
8001 if test "$ac_cv_have_decl_i386" = "yes"; then
8002 canonical=`echo "$canonical" | sed -e 's/^amd64/i386/' -e 's/^x86_64/i386/'`
8003 machine=intel386
8004 machfile="m/${machine}.h"
8008 # Extract the first word of "install-info", so it can be a program name with args.
8009 set dummy install-info; ac_word=$2
8010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8011 $as_echo_n "checking for $ac_word... " >&6; }
8012 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
8013 $as_echo_n "(cached) " >&6
8014 else
8015 case $INSTALL_INFO in
8016 [\\/]* | ?:[\\/]*)
8017 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
8020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8021 for as_dir in $PATH
8023 IFS=$as_save_IFS
8024 test -z "$as_dir" && as_dir=.
8025 for ac_exec_ext in '' $ac_executable_extensions; do
8026 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8027 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
8028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8029 break 2
8031 done
8032 done
8033 IFS=$as_save_IFS
8036 esac
8038 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
8039 if test -n "$INSTALL_INFO"; then
8040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
8041 $as_echo "$INSTALL_INFO" >&6; }
8042 else
8043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8044 $as_echo "no" >&6; }
8048 # Extract the first word of "install-info", so it can be a program name with args.
8049 set dummy install-info; ac_word=$2
8050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8051 $as_echo_n "checking for $ac_word... " >&6; }
8052 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
8053 $as_echo_n "(cached) " >&6
8054 else
8055 case $INSTALL_INFO in
8056 [\\/]* | ?:[\\/]*)
8057 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
8060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8061 for as_dir in /usr/sbin
8063 IFS=$as_save_IFS
8064 test -z "$as_dir" && as_dir=.
8065 for ac_exec_ext in '' $ac_executable_extensions; do
8066 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8067 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
8068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8069 break 2
8071 done
8072 done
8073 IFS=$as_save_IFS
8076 esac
8078 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
8079 if test -n "$INSTALL_INFO"; then
8080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
8081 $as_echo "$INSTALL_INFO" >&6; }
8082 else
8083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8084 $as_echo "no" >&6; }
8088 # Extract the first word of "install-info", so it can be a program name with args.
8089 set dummy install-info; ac_word=$2
8090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8091 $as_echo_n "checking for $ac_word... " >&6; }
8092 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
8093 $as_echo_n "(cached) " >&6
8094 else
8095 case $INSTALL_INFO in
8096 [\\/]* | ?:[\\/]*)
8097 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
8100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8101 for as_dir in /sbin
8103 IFS=$as_save_IFS
8104 test -z "$as_dir" && as_dir=.
8105 for ac_exec_ext in '' $ac_executable_extensions; do
8106 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8107 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
8108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8109 break 2
8111 done
8112 done
8113 IFS=$as_save_IFS
8115 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
8117 esac
8119 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
8120 if test -n "$INSTALL_INFO"; then
8121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
8122 $as_echo "$INSTALL_INFO" >&6; }
8123 else
8124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8125 $as_echo "no" >&6; }
8129 # Extract the first word of "gzip", so it can be a program name with args.
8130 set dummy gzip; ac_word=$2
8131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8132 $as_echo_n "checking for $ac_word... " >&6; }
8133 if test "${ac_cv_path_GZIP_PROG+set}" = set; then :
8134 $as_echo_n "(cached) " >&6
8135 else
8136 case $GZIP_PROG in
8137 [\\/]* | ?:[\\/]*)
8138 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
8141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8142 for as_dir in $PATH
8144 IFS=$as_save_IFS
8145 test -z "$as_dir" && as_dir=.
8146 for ac_exec_ext in '' $ac_executable_extensions; do
8147 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8148 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
8149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8150 break 2
8152 done
8153 done
8154 IFS=$as_save_IFS
8157 esac
8159 GZIP_PROG=$ac_cv_path_GZIP_PROG
8160 if test -n "$GZIP_PROG"; then
8161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
8162 $as_echo "$GZIP_PROG" >&6; }
8163 else
8164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8165 $as_echo "no" >&6; }
8171 ## Need makeinfo >= 4.7 (?) to build the manuals.
8172 # Extract the first word of "makeinfo", so it can be a program name with args.
8173 set dummy makeinfo; ac_word=$2
8174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8175 $as_echo_n "checking for $ac_word... " >&6; }
8176 if test "${ac_cv_path_MAKEINFO+set}" = set; then :
8177 $as_echo_n "(cached) " >&6
8178 else
8179 case $MAKEINFO in
8180 [\\/]* | ?:[\\/]*)
8181 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
8184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8185 for as_dir in $PATH
8187 IFS=$as_save_IFS
8188 test -z "$as_dir" && as_dir=.
8189 for ac_exec_ext in '' $ac_executable_extensions; do
8190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8191 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
8192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8193 break 2
8195 done
8196 done
8197 IFS=$as_save_IFS
8199 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
8201 esac
8203 MAKEINFO=$ac_cv_path_MAKEINFO
8204 if test -n "$MAKEINFO"; then
8205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8206 $as_echo "$MAKEINFO" >&6; }
8207 else
8208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8209 $as_echo "no" >&6; }
8213 if test "$MAKEINFO" != "no" && \
8214 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
8215 MAKEINFO=no
8218 ## Makeinfo is unusual. For a released Emacs, the manuals are
8219 ## pre-built, and not deleted by the normal clean rules. makeinfo is
8220 ## therefore in the category of "special tools" not normally required, which
8221 ## configure does not have to check for (eg autoconf itself).
8222 ## In a Bazaar checkout on the other hand, the manuals are not included.
8223 ## So makeinfo is a requirement to build from Bazaar, and configure
8224 ## should test for it as it does for any other build requirement.
8225 ## We use the presence of $srcdir/info/emacs to distinguish a release,
8226 ## with pre-built manuals, from a Bazaar checkout.
8227 HAVE_MAKEINFO=yes
8229 if test "$MAKEINFO" = "no"; then
8230 MAKEINFO=makeinfo
8231 if test "x${with_makeinfo}" = "xno"; then
8232 HAVE_MAKEINFO=no
8233 elif test ! -e $srcdir/info/emacs; then
8234 as_fn_error "You do not seem to have makeinfo >= 4.7, and your
8235 source tree does not seem to have pre-built manuals in the \`info' directory.
8236 Either install a suitable version of makeinfo, or re-run configure
8237 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
8243 if test x$GCC = xyes; then
8244 test "x$GCC_LINK_TEST_OPTIONS" != x && \
8245 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
8246 else
8247 test "x$NON_GCC_LINK_TEST_OPTIONS" != x && \
8248 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
8252 late_LDFLAGS=$LDFLAGS
8253 if test x$GCC = xyes; then
8254 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
8255 else
8256 LDFLAGS="$LDFLAGS -znocombreloc"
8259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
8260 $as_echo_n "checking for -znocombreloc... " >&6; }
8261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8262 /* end confdefs.h. */
8265 main ()
8269 return 0;
8271 _ACEOF
8272 if ac_fn_c_try_link "$LINENO"; then :
8273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8274 $as_echo "yes" >&6; }
8275 else
8276 LDFLAGS=$late_LDFLAGS
8277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8278 $as_echo "no" >&6; }
8280 rm -f core conftest.err conftest.$ac_objext \
8281 conftest$ac_exeext conftest.$ac_ext
8284 # The value of CPP is a quoted variable reference, so we need to do this
8285 # to get its actual value...
8286 CPP=`eval "echo $CPP"`
8289 test "x$CANNOT_DUMP" = "x" && CANNOT_DUMP=no
8290 case "$opsys" in
8291 your-opsys-here) CANNOT_DUMP=yes ;;
8292 esac
8294 test "$CANNOT_DUMP" = "yes" && \
8296 $as_echo "#define CANNOT_DUMP 1" >>confdefs.h
8302 UNEXEC_OBJ=unexelf.o
8303 case "$opsys" in
8304 # MSDOS uses unexcoff.o
8305 # MSWindows uses unexw32.o
8306 aix4-2)
8307 UNEXEC_OBJ=unexaix.o
8309 cygwin)
8310 UNEXEC_OBJ=unexcw.o
8312 darwin)
8313 UNEXEC_OBJ=unexmacosx.o
8315 hpux10-20 | hpux11)
8316 UNEXEC_OBJ=unexhp9k800.o
8318 sol2-10)
8319 # Use the Solaris dldump() function, called from unexsol.c, to dump
8320 # emacs, instead of the generic ELF dump code found in unexelf.c.
8321 # The resulting binary has a complete symbol table, and is better
8322 # for debugging and other observability tools (debuggers, pstack, etc).
8324 # If you encounter a problem using dldump(), please consider sending
8325 # a message to the OpenSolaris tools-linking mailing list:
8326 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
8328 # It is likely that dldump() works with older Solaris too, but this has
8329 # not been tested, so for now this change is for Solaris 10 or newer.
8330 UNEXEC_OBJ=unexsol.o
8332 esac
8334 LD_SWITCH_SYSTEM=
8335 case "$opsys" in
8336 freebsd)
8337 ## Let `ld' find image libs and similar things in /usr/local/lib.
8338 ## The system compiler, GCC, has apparently been modified to not
8339 ## look there, contrary to what a stock GCC would do.
8340 LD_SWITCH_SYSTEM=-L/usr/local/lib
8343 gnu-linux)
8344 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
8345 case $host_cpu in mips*) LD_SWITCH_SYSTEM="-G 0";; esac
8348 netbsd)
8349 LD_SWITCH_SYSTEM="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
8352 openbsd)
8353 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
8354 ## otherwise Emacs dumps core on elf systems.
8355 LD_SWITCH_SYSTEM="-Z"
8357 esac
8360 ac_link="$ac_link $LD_SWITCH_SYSTEM"
8362 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_AUX,
8363 ## which has not been defined yet. When this was handled with cpp,
8364 ## it was expanded to null when configure sourced the s/*.h file.
8365 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
8366 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
8367 ## (or somesuch), but because it is supposed to go at the _front_
8368 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
8369 ## Compare with the gnu-linux case below, which added to the end
8370 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
8371 ## LD_SWITCH_SYSTEM_TEMACS.
8372 case "$opsys" in
8373 netbsd|openbsd)
8374 ## _AUX_RPATH is like _AUX, but uses -rpath instead of -R.
8375 LD_SWITCH_SYSTEM="\$(LD_SWITCH_X_SITE_AUX_RPATH) $LD_SWITCH_SYSTEM" ;;
8376 esac
8379 C_SWITCH_MACHINE=
8380 if test "$machine" = "alpha"; then
8381 ac_fn_c_check_decl "$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
8382 if test "x$ac_cv_have_decl___ELF__" = x""yes; then :
8386 if test "$ac_cv_have_decl___ELF__" = "yes"; then
8387 ## With ELF, make sure that all common symbols get allocated to in the
8388 ## data section. Otherwise, the dump of temacs may miss variables in
8389 ## the shared library that have been initialized. For example, with
8390 ## GNU libc, __malloc_initialized would normally be resolved to the
8391 ## shared library's .bss section, which is fatal.
8392 if test "x$GCC" = "xyes"; then
8393 C_SWITCH_MACHINE="-fno-common"
8394 else
8395 as_fn_error "What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
8397 else
8398 UNEXEC_OBJ=unexalpha.o
8405 C_SWITCH_SYSTEM=
8406 ## Some programs in src produce warnings saying certain subprograms
8407 ## are too complex and need a MAXMEM value greater than 2000 for
8408 ## additional optimization. --nils@exp-math.uni-essen.de
8409 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
8410 C_SWITCH_SYSTEM="-ma -qmaxmem=4000"
8411 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
8412 ## It is redundant in glibc2, since we define _GNU_SOURCE.
8416 LIBS_SYSTEM=
8417 case "$opsys" in
8418 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
8419 aix4-2) LIBS_SYSTEM="-lrts -lIM -liconv" ;;
8421 freebsd) LIBS_SYSTEM="-lutil" ;;
8423 hpux*) LIBS_SYSTEM="-l:libdld.sl" ;;
8425 sol2*) LIBS_SYSTEM="-lsocket -lnsl" ;;
8427 ## Motif needs -lgen.
8428 unixware) LIBS_SYSTEM="-lsocket -lnsl -lelf -lgen" ;;
8429 esac
8433 ### Make sure subsequent tests use flags consistent with the build flags.
8435 if test x"${OVERRIDE_CPPFLAGS}" != x; then
8436 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
8437 else
8438 CPPFLAGS="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
8441 # Suppress obsolescent Autoconf test for size_t; Emacs assumes C89 or better.
8443 # Likewise for obsolescent test for uid_t, gid_t; Emacs assumes them.
8446 # Check whether --enable-largefile was given.
8447 if test "${enable_largefile+set}" = set; then :
8448 enableval=$enable_largefile;
8451 if test "$enable_largefile" != no; then
8453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
8454 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
8455 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
8456 $as_echo_n "(cached) " >&6
8457 else
8458 ac_cv_sys_largefile_CC=no
8459 if test "$GCC" != yes; then
8460 ac_save_CC=$CC
8461 while :; do
8462 # IRIX 6.2 and later do not support large files by default,
8463 # so use the C compiler's -n32 option if that helps.
8464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8465 /* end confdefs.h. */
8466 #include <sys/types.h>
8467 /* Check that off_t can represent 2**63 - 1 correctly.
8468 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8469 since some C++ compilers masquerading as C compilers
8470 incorrectly reject 9223372036854775807. */
8471 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8472 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8473 && LARGE_OFF_T % 2147483647 == 1)
8474 ? 1 : -1];
8476 main ()
8480 return 0;
8482 _ACEOF
8483 if ac_fn_c_try_compile "$LINENO"; then :
8484 break
8486 rm -f core conftest.err conftest.$ac_objext
8487 CC="$CC -n32"
8488 if ac_fn_c_try_compile "$LINENO"; then :
8489 ac_cv_sys_largefile_CC=' -n32'; break
8491 rm -f core conftest.err conftest.$ac_objext
8492 break
8493 done
8494 CC=$ac_save_CC
8495 rm -f conftest.$ac_ext
8498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
8499 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
8500 if test "$ac_cv_sys_largefile_CC" != no; then
8501 CC=$CC$ac_cv_sys_largefile_CC
8504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
8505 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
8506 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
8507 $as_echo_n "(cached) " >&6
8508 else
8509 while :; do
8510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8511 /* end confdefs.h. */
8512 #include <sys/types.h>
8513 /* Check that off_t can represent 2**63 - 1 correctly.
8514 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8515 since some C++ compilers masquerading as C compilers
8516 incorrectly reject 9223372036854775807. */
8517 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8518 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8519 && LARGE_OFF_T % 2147483647 == 1)
8520 ? 1 : -1];
8522 main ()
8526 return 0;
8528 _ACEOF
8529 if ac_fn_c_try_compile "$LINENO"; then :
8530 ac_cv_sys_file_offset_bits=no; break
8532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8534 /* end confdefs.h. */
8535 #define _FILE_OFFSET_BITS 64
8536 #include <sys/types.h>
8537 /* Check that off_t can represent 2**63 - 1 correctly.
8538 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8539 since some C++ compilers masquerading as C compilers
8540 incorrectly reject 9223372036854775807. */
8541 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8542 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8543 && LARGE_OFF_T % 2147483647 == 1)
8544 ? 1 : -1];
8546 main ()
8550 return 0;
8552 _ACEOF
8553 if ac_fn_c_try_compile "$LINENO"; then :
8554 ac_cv_sys_file_offset_bits=64; break
8556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8557 ac_cv_sys_file_offset_bits=unknown
8558 break
8559 done
8561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
8562 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
8563 case $ac_cv_sys_file_offset_bits in #(
8564 no | unknown) ;;
8566 cat >>confdefs.h <<_ACEOF
8567 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
8568 _ACEOF
8570 esac
8571 rm -rf conftest*
8572 if test $ac_cv_sys_file_offset_bits = unknown; then
8573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
8574 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
8575 if test "${ac_cv_sys_large_files+set}" = set; then :
8576 $as_echo_n "(cached) " >&6
8577 else
8578 while :; do
8579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8580 /* end confdefs.h. */
8581 #include <sys/types.h>
8582 /* Check that off_t can represent 2**63 - 1 correctly.
8583 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8584 since some C++ compilers masquerading as C compilers
8585 incorrectly reject 9223372036854775807. */
8586 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8587 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8588 && LARGE_OFF_T % 2147483647 == 1)
8589 ? 1 : -1];
8591 main ()
8595 return 0;
8597 _ACEOF
8598 if ac_fn_c_try_compile "$LINENO"; then :
8599 ac_cv_sys_large_files=no; break
8601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8603 /* end confdefs.h. */
8604 #define _LARGE_FILES 1
8605 #include <sys/types.h>
8606 /* Check that off_t can represent 2**63 - 1 correctly.
8607 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8608 since some C++ compilers masquerading as C compilers
8609 incorrectly reject 9223372036854775807. */
8610 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8611 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8612 && LARGE_OFF_T % 2147483647 == 1)
8613 ? 1 : -1];
8615 main ()
8619 return 0;
8621 _ACEOF
8622 if ac_fn_c_try_compile "$LINENO"; then :
8623 ac_cv_sys_large_files=1; break
8625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8626 ac_cv_sys_large_files=unknown
8627 break
8628 done
8630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
8631 $as_echo "$ac_cv_sys_large_files" >&6; }
8632 case $ac_cv_sys_large_files in #(
8633 no | unknown) ;;
8635 cat >>confdefs.h <<_ACEOF
8636 #define _LARGE_FILES $ac_cv_sys_large_files
8637 _ACEOF
8639 esac
8640 rm -rf conftest*
8648 LIB_MATH=-lm
8649 LIB_STANDARD=
8650 START_FILES=
8652 case $opsys in
8653 cygwin )
8654 LIB_MATH=
8655 START_FILES='pre-crt0.o'
8657 darwin )
8658 ## Adding -lm confuses the dynamic linker, so omit it.
8659 LIB_MATH=
8660 START_FILES='pre-crt0.o'
8662 freebsd )
8663 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
8664 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
8666 gnu-linux | gnu-kfreebsd )
8667 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
8668 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
8670 hpux10-20 | hpux11 )
8671 LIB_STANDARD=-lc
8672 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o'
8674 netbsd | openbsd )
8675 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
8676 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
8678 esac
8683 crt_files=
8685 for file in x $LIB_STANDARD $START_FILES; do
8686 case "$file" in
8687 *CRT_DIR*) crt_files="$crt_files `echo $file | sed -e 's|.*/||'`" ;;
8688 esac
8689 done
8691 if test "x$crt_files" != x; then
8693 ## If user specified a crt-dir, use that unconditionally.
8694 crt_gcc=no
8696 if test "X$CRT_DIR" = "X"; then
8698 CRT_DIR=/usr/lib # default
8700 case "$canonical" in
8701 x86_64-*-linux-gnu* | s390x-*-linux-gnu*)
8702 ## On x86-64 and s390x GNU/Linux distributions, the standard library
8703 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
8704 ## For anything else (eg /usr/lib32), it is up the user to specify
8705 ## the location (bug#5655).
8706 ## Test for crtn.o, not just the directory, because sometimes the
8707 ## directory exists but does not have the relevant files (bug#1287).
8708 ## FIXME better to test for binary compatibility somehow.
8709 test -e /usr/lib64/crtn.o && CRT_DIR=/usr/lib64
8712 powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*) CRT_DIR=/usr/lib64 ;;
8713 esac
8715 case "$opsys" in
8716 hpux10-20) CRT_DIR=/lib ;;
8717 esac
8719 test "x${GCC}" = xyes && crt_gcc=yes
8721 fi # CRT_DIR = ""
8723 crt_missing=
8725 for file in $crt_files; do
8727 ## If we're using gcc, try to determine it automatically by asking
8728 ## gcc. [If this doesn't work, CRT_DIR will remain at the
8729 ## system-dependent default from above.]
8730 if test $crt_gcc = yes && test ! -e $CRT_DIR/$file; then
8732 crt_file=`$CC --print-file-name=$file 2>/dev/null`
8733 case "$crt_file" in
8734 */*)
8735 CRT_DIR=`$as_dirname -- "$crt_file" ||
8736 $as_expr X"$crt_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8737 X"$crt_file" : 'X\(//\)[^/]' \| \
8738 X"$crt_file" : 'X\(//\)$' \| \
8739 X"$crt_file" : 'X\(/\)' \| . 2>/dev/null ||
8740 $as_echo X"$crt_file" |
8741 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8742 s//\1/
8745 /^X\(\/\/\)[^/].*/{
8746 s//\1/
8749 /^X\(\/\/\)$/{
8750 s//\1/
8753 /^X\(\/\).*/{
8754 s//\1/
8757 s/.*/./; q'`
8759 esac
8762 crt_gcc=no
8764 test -e $CRT_DIR/$file || crt_missing="$crt_missing $file"
8765 done # $crt_files
8767 test "x$crt_missing" = x || \
8768 as_fn_error "Required file(s) not found:$crt_missing
8769 Try using the --with-crt-dir option." "$LINENO" 5
8771 fi # crt_files != ""
8775 case $opsys in
8776 netbsd | openbsd )
8777 if test -f $CRT_DIR/crti.o; then
8779 test -f $CRT_DIR/crtn.o || \
8780 as_fn_error "Required file not found: crtn.o" "$LINENO" 5
8782 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
8783 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
8786 esac
8792 if test "${with_sound}" != "no"; then
8793 # Sound support for GNU/Linux and the free BSDs.
8794 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
8795 do :
8796 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8797 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8798 eval as_val=\$$as_ac_Header
8799 if test "x$as_val" = x""yes; then :
8800 cat >>confdefs.h <<_ACEOF
8801 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8802 _ACEOF
8803 have_sound_header=yes
8806 done
8808 # Emulation library used on NetBSD.
8809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
8810 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
8811 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
8812 $as_echo_n "(cached) " >&6
8813 else
8814 ac_check_lib_save_LIBS=$LIBS
8815 LIBS="-lossaudio $LIBS"
8816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8817 /* end confdefs.h. */
8819 /* Override any GCC internal prototype to avoid an error.
8820 Use char because int might match the return type of a GCC
8821 builtin and then its argument prototype would still apply. */
8822 #ifdef __cplusplus
8823 extern "C"
8824 #endif
8825 char _oss_ioctl ();
8827 main ()
8829 return _oss_ioctl ();
8831 return 0;
8833 _ACEOF
8834 if ac_fn_c_try_link "$LINENO"; then :
8835 ac_cv_lib_ossaudio__oss_ioctl=yes
8836 else
8837 ac_cv_lib_ossaudio__oss_ioctl=no
8839 rm -f core conftest.err conftest.$ac_objext \
8840 conftest$ac_exeext conftest.$ac_ext
8841 LIBS=$ac_check_lib_save_LIBS
8843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
8844 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
8845 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x""yes; then :
8846 LIBSOUND=-lossaudio
8847 else
8848 LIBSOUND=
8853 ALSA_REQUIRED=1.0.0
8854 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
8856 succeeded=no
8858 # Extract the first word of "pkg-config", so it can be a program name with args.
8859 set dummy pkg-config; ac_word=$2
8860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8861 $as_echo_n "checking for $ac_word... " >&6; }
8862 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8863 $as_echo_n "(cached) " >&6
8864 else
8865 case $PKG_CONFIG in
8866 [\\/]* | ?:[\\/]*)
8867 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8871 for as_dir in $PATH
8873 IFS=$as_save_IFS
8874 test -z "$as_dir" && as_dir=.
8875 for ac_exec_ext in '' $ac_executable_extensions; do
8876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8877 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8879 break 2
8881 done
8882 done
8883 IFS=$as_save_IFS
8885 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8887 esac
8889 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8890 if test -n "$PKG_CONFIG"; then
8891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8892 $as_echo "$PKG_CONFIG" >&6; }
8893 else
8894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8895 $as_echo "no" >&6; }
8900 if test "$PKG_CONFIG" = "no" ; then
8901 HAVE_ALSA=no
8902 else
8903 PKG_CONFIG_MIN_VERSION=0.9.0
8904 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
8906 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
8908 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5 &&
8909 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES" 2>&5` &&
8910 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES" 2>&5`; then
8911 edit_cflags="
8912 s,///*,/,g
8913 s/^/ /
8914 s/ -I/ $isystem/g
8915 s/^ //
8917 ALSA_CFLAGS=`$as_echo "$ALSA_CFLAGS" | sed -e "$edit_cflags"`
8918 ALSA_LIBS=`$as_echo "$ALSA_LIBS" | sed -e 's,///*,/,g'`
8919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$ALSA_CFLAGS' LIBS='$ALSA_LIBS'" >&5
8920 $as_echo "yes CFLAGS='$ALSA_CFLAGS' LIBS='$ALSA_LIBS'" >&6; }
8921 succeeded=yes
8922 else
8923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8924 $as_echo "no" >&6; }
8925 ALSA_CFLAGS=""
8926 ALSA_LIBS=""
8927 ## If we have a custom action on failure, don't print errors, but
8928 ## do set a variable so people can do so.
8929 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
8935 else
8936 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8937 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8941 if test $succeeded = yes; then
8942 HAVE_ALSA=yes
8943 else
8944 HAVE_ALSA=no
8947 if test $HAVE_ALSA = yes; then
8948 SAVE_CFLAGS="$CFLAGS"
8949 SAVE_LIBS="$LIBS"
8950 CFLAGS="$ALSA_CFLAGS $CFLAGS"
8951 LIBS="$ALSA_LIBS $LIBS"
8952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8953 /* end confdefs.h. */
8954 #include <asoundlib.h>
8956 main ()
8958 snd_lib_error_set_handler (0);
8960 return 0;
8962 _ACEOF
8963 if ac_fn_c_try_compile "$LINENO"; then :
8964 emacs_alsa_normal=yes
8965 else
8966 emacs_alsa_normal=no
8968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8969 if test "$emacs_alsa_normal" != yes; then
8970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8971 /* end confdefs.h. */
8972 #include <alsa/asoundlib.h>
8974 main ()
8976 snd_lib_error_set_handler (0);
8978 return 0;
8980 _ACEOF
8981 if ac_fn_c_try_compile "$LINENO"; then :
8982 emacs_alsa_subdir=yes
8983 else
8984 emacs_alsa_subdir=no
8986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8987 if test "$emacs_alsa_subdir" != yes; then
8988 as_fn_error "pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
8990 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
8993 CFLAGS="$SAVE_CFLAGS"
8994 LIBS="$SAVE_LIBS"
8995 LIBSOUND="$LIBSOUND $ALSA_LIBS"
8996 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
8998 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
9002 if test x$have_sound_header = xyes || test $HAVE_ALSA = yes; then
9003 case "$opsys" in
9004 gnu-linux|freebsd|netbsd)
9006 $as_echo "#define HAVE_SOUND 1" >>confdefs.h
9009 esac
9015 for ac_header in sys/select.h sys/time.h unistd.h utime.h \
9016 linux/version.h sys/systeminfo.h \
9017 stdio_ext.h fcntl.h coff.h pty.h sys/mman.h \
9018 sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
9019 sys/utsname.h pwd.h utmp.h dirent.h util.h
9020 do :
9021 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9022 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9023 eval as_val=\$$as_ac_Header
9024 if test "x$as_val" = x""yes; then :
9025 cat >>confdefs.h <<_ACEOF
9026 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9027 _ACEOF
9031 done
9034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
9035 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
9036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9037 /* end confdefs.h. */
9038 #include <sys/personality.h>
9040 main ()
9042 personality (PER_LINUX32)
9044 return 0;
9046 _ACEOF
9047 if ac_fn_c_try_compile "$LINENO"; then :
9048 emacs_cv_personality_linux32=yes
9049 else
9050 emacs_cv_personality_linux32=no
9052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
9054 $as_echo "$emacs_cv_personality_linux32" >&6; }
9056 if test $emacs_cv_personality_linux32 = yes; then
9058 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
9062 for ac_header in term.h
9063 do :
9064 ac_fn_c_check_header_preproc "$LINENO" "term.h" "ac_cv_header_term_h"
9065 if test "x$ac_cv_header_term_h" = x""yes; then :
9066 cat >>confdefs.h <<_ACEOF
9067 #define HAVE_TERM_H 1
9068 _ACEOF
9072 done
9074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
9075 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
9076 if test "${ac_cv_header_time+set}" = set; then :
9077 $as_echo_n "(cached) " >&6
9078 else
9079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9080 /* end confdefs.h. */
9081 #include <sys/types.h>
9082 #include <sys/time.h>
9083 #include <time.h>
9086 main ()
9088 if ((struct tm *) 0)
9089 return 0;
9091 return 0;
9093 _ACEOF
9094 if ac_fn_c_try_compile "$LINENO"; then :
9095 ac_cv_header_time=yes
9096 else
9097 ac_cv_header_time=no
9099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
9102 $as_echo "$ac_cv_header_time" >&6; }
9103 if test $ac_cv_header_time = yes; then
9105 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
9109 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default"
9110 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then :
9111 ac_have_decl=1
9112 else
9113 ac_have_decl=0
9116 cat >>confdefs.h <<_ACEOF
9117 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
9118 _ACEOF
9120 if test $ac_cv_have_decl_sys_siglist != yes; then
9121 # For Tru64, at least:
9122 ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default"
9123 if test "x$ac_cv_have_decl___sys_siglist" = x""yes; then :
9124 ac_have_decl=1
9125 else
9126 ac_have_decl=0
9129 cat >>confdefs.h <<_ACEOF
9130 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
9131 _ACEOF
9133 if test $ac_cv_have_decl___sys_siglist = yes; then
9135 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
9139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
9140 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
9141 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
9142 $as_echo_n "(cached) " >&6
9143 else
9144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9145 /* end confdefs.h. */
9146 #include <sys/types.h>
9147 #include <sys/wait.h>
9148 #ifndef WEXITSTATUS
9149 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
9150 #endif
9151 #ifndef WIFEXITED
9152 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9153 #endif
9156 main ()
9158 int s;
9159 wait (&s);
9160 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9162 return 0;
9164 _ACEOF
9165 if ac_fn_c_try_compile "$LINENO"; then :
9166 ac_cv_header_sys_wait_h=yes
9167 else
9168 ac_cv_header_sys_wait_h=no
9170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
9173 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
9174 if test $ac_cv_header_sys_wait_h = yes; then
9176 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
9181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
9182 $as_echo_n "checking for struct utimbuf... " >&6; }
9183 if test "${emacs_cv_struct_utimbuf+set}" = set; then :
9184 $as_echo_n "(cached) " >&6
9185 else
9186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9187 /* end confdefs.h. */
9188 #ifdef TIME_WITH_SYS_TIME
9189 #include <sys/time.h>
9190 #include <time.h>
9191 #else
9192 #ifdef HAVE_SYS_TIME_H
9193 #include <sys/time.h>
9194 #else
9195 #include <time.h>
9196 #endif
9197 #endif
9198 #ifdef HAVE_UTIME_H
9199 #include <utime.h>
9200 #endif
9202 main ()
9204 static struct utimbuf x; x.actime = x.modtime;
9206 return 0;
9208 _ACEOF
9209 if ac_fn_c_try_compile "$LINENO"; then :
9210 emacs_cv_struct_utimbuf=yes
9211 else
9212 emacs_cv_struct_utimbuf=no
9214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_utimbuf" >&5
9217 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
9218 if test $emacs_cv_struct_utimbuf = yes; then
9220 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
9224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
9225 $as_echo_n "checking for speed_t... " >&6; }
9226 if test "${emacs_cv_speed_t+set}" = set; then :
9227 $as_echo_n "(cached) " >&6
9228 else
9229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9230 /* end confdefs.h. */
9231 #include <termios.h>
9233 main ()
9235 speed_t x = 1;
9237 return 0;
9239 _ACEOF
9240 if ac_fn_c_try_compile "$LINENO"; then :
9241 emacs_cv_speed_t=yes
9242 else
9243 emacs_cv_speed_t=no
9245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
9248 $as_echo "$emacs_cv_speed_t" >&6; }
9249 if test $emacs_cv_speed_t = yes; then
9251 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
9255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
9256 $as_echo_n "checking for struct timeval... " >&6; }
9257 if test "${emacs_cv_struct_timeval+set}" = set; then :
9258 $as_echo_n "(cached) " >&6
9259 else
9260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9261 /* end confdefs.h. */
9262 #ifdef TIME_WITH_SYS_TIME
9263 #include <sys/time.h>
9264 #include <time.h>
9265 #else
9266 #ifdef HAVE_SYS_TIME_H
9267 #include <sys/time.h>
9268 #else
9269 #include <time.h>
9270 #endif
9271 #endif
9273 main ()
9275 static struct timeval x; x.tv_sec = x.tv_usec;
9277 return 0;
9279 _ACEOF
9280 if ac_fn_c_try_compile "$LINENO"; then :
9281 emacs_cv_struct_timeval=yes
9282 else
9283 emacs_cv_struct_timeval=no
9285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_timeval" >&5
9288 $as_echo "$emacs_cv_struct_timeval" >&6; }
9289 HAVE_TIMEVAL=$emacs_cv_struct_timeval
9290 if test $emacs_cv_struct_timeval = yes; then
9292 $as_echo "#define HAVE_TIMEVAL 1" >>confdefs.h
9296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct exception" >&5
9297 $as_echo_n "checking for struct exception... " >&6; }
9298 if test "${emacs_cv_struct_exception+set}" = set; then :
9299 $as_echo_n "(cached) " >&6
9300 else
9301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9302 /* end confdefs.h. */
9303 #include <math.h>
9305 main ()
9307 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
9309 return 0;
9311 _ACEOF
9312 if ac_fn_c_try_compile "$LINENO"; then :
9313 emacs_cv_struct_exception=yes
9314 else
9315 emacs_cv_struct_exception=no
9317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_exception" >&5
9320 $as_echo "$emacs_cv_struct_exception" >&6; }
9321 HAVE_EXCEPTION=$emacs_cv_struct_exception
9322 if test $emacs_cv_struct_exception != yes; then
9324 $as_echo "#define NO_MATHERR 1" >>confdefs.h
9328 for ac_header in sys/socket.h
9329 do :
9330 ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
9331 if test "x$ac_cv_header_sys_socket_h" = x""yes; then :
9332 cat >>confdefs.h <<_ACEOF
9333 #define HAVE_SYS_SOCKET_H 1
9334 _ACEOF
9338 done
9340 for ac_header in net/if.h
9341 do :
9342 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
9343 #if HAVE_SYS_SOCKET_H
9344 #include <sys/socket.h>
9345 #endif
9347 if test "x$ac_cv_header_net_if_h" = x""yes; then :
9348 cat >>confdefs.h <<_ACEOF
9349 #define HAVE_NET_IF_H 1
9350 _ACEOF
9354 done
9356 for ac_header in ifaddrs.h
9357 do :
9358 ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default
9359 #if HAVE_SYS_SOCKET_H
9360 #include <sys/socket.h>
9361 #endif
9363 if test "x$ac_cv_header_ifaddrs_h" = x""yes; then :
9364 cat >>confdefs.h <<_ACEOF
9365 #define HAVE_IFADDRS_H 1
9366 _ACEOF
9370 done
9372 for ac_header in net/if_dl.h
9373 do :
9374 ac_fn_c_check_header_compile "$LINENO" "net/if_dl.h" "ac_cv_header_net_if_dl_h" "$ac_includes_default
9375 #if HAVE_SYS_SOCKET_H
9376 #include <sys/socket.h>
9377 #endif
9379 if test "x$ac_cv_header_net_if_dl_h" = x""yes; then :
9380 cat >>confdefs.h <<_ACEOF
9381 #define HAVE_NET_IF_DL_H 1
9382 _ACEOF
9386 done
9388 for ac_func in getifaddrs freeifaddrs
9389 do :
9390 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9391 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9392 eval as_val=\$$as_ac_var
9393 if test "x$as_val" = x""yes; then :
9394 cat >>confdefs.h <<_ACEOF
9395 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9396 _ACEOF
9399 done
9402 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
9403 #if HAVE_SYS_SOCKET_H
9404 #include <sys/socket.h>
9405 #endif
9406 #if HAVE_NET_IF_H
9407 #include <net/if.h>
9408 #endif
9410 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x""yes; then :
9412 cat >>confdefs.h <<_ACEOF
9413 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
9414 _ACEOF
9418 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
9419 #if HAVE_SYS_SOCKET_H
9420 #include <sys/socket.h>
9421 #endif
9422 #if HAVE_NET_IF_H
9423 #include <net/if.h>
9424 #endif
9426 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x""yes; then :
9428 cat >>confdefs.h <<_ACEOF
9429 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
9430 _ACEOF
9434 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
9435 #if HAVE_SYS_SOCKET_H
9436 #include <sys/socket.h>
9437 #endif
9438 #if HAVE_NET_IF_H
9439 #include <net/if.h>
9440 #endif
9442 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x""yes; then :
9444 cat >>confdefs.h <<_ACEOF
9445 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
9446 _ACEOF
9450 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
9451 #if HAVE_SYS_SOCKET_H
9452 #include <sys/socket.h>
9453 #endif
9454 #if HAVE_NET_IF_H
9455 #include <net/if.h>
9456 #endif
9458 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x""yes; then :
9460 cat >>confdefs.h <<_ACEOF
9461 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
9462 _ACEOF
9466 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
9467 #if HAVE_SYS_SOCKET_H
9468 #include <sys/socket.h>
9469 #endif
9470 #if HAVE_NET_IF_H
9471 #include <net/if.h>
9472 #endif
9474 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x""yes; then :
9476 cat >>confdefs.h <<_ACEOF
9477 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
9478 _ACEOF
9482 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr.sa_len" "ac_cv_member_struct_ifreq_ifr_addr_sa_len" "$ac_includes_default
9483 #if HAVE_SYS_SOCKET_H
9484 #include <sys/socket.h>
9485 #endif
9486 #if HAVE_NET_IF_H
9487 #include <net/if.h>
9488 #endif
9490 if test "x$ac_cv_member_struct_ifreq_ifr_addr_sa_len" = x""yes; then :
9492 cat >>confdefs.h <<_ACEOF
9493 #define HAVE_STRUCT_IFREQ_IFR_ADDR_SA_LEN 1
9494 _ACEOF
9501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
9502 $as_echo_n "checking for function prototypes... " >&6; }
9503 if test "$ac_cv_prog_cc_c89" != no; then
9504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9505 $as_echo "yes" >&6; }
9507 $as_echo "#define PROTOTYPES 1" >>confdefs.h
9510 $as_echo "#define __PROTOTYPES 1" >>confdefs.h
9512 else
9513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9514 $as_echo "no" >&6; }
9517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
9518 $as_echo_n "checking for working volatile... " >&6; }
9519 if test "${ac_cv_c_volatile+set}" = set; then :
9520 $as_echo_n "(cached) " >&6
9521 else
9522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9523 /* end confdefs.h. */
9526 main ()
9529 volatile int x;
9530 int * volatile y = (int *) 0;
9531 return !x && !y;
9533 return 0;
9535 _ACEOF
9536 if ac_fn_c_try_compile "$LINENO"; then :
9537 ac_cv_c_volatile=yes
9538 else
9539 ac_cv_c_volatile=no
9541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
9544 $as_echo "$ac_cv_c_volatile" >&6; }
9545 if test $ac_cv_c_volatile = no; then
9547 $as_echo "#define volatile /**/" >>confdefs.h
9551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
9552 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
9553 if test "${ac_cv_c_const+set}" = set; then :
9554 $as_echo_n "(cached) " >&6
9555 else
9556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9557 /* end confdefs.h. */
9560 main ()
9562 /* FIXME: Include the comments suggested by Paul. */
9563 #ifndef __cplusplus
9564 /* Ultrix mips cc rejects this. */
9565 typedef int charset[2];
9566 const charset cs;
9567 /* SunOS 4.1.1 cc rejects this. */
9568 char const *const *pcpcc;
9569 char **ppc;
9570 /* NEC SVR4.0.2 mips cc rejects this. */
9571 struct point {int x, y;};
9572 static struct point const zero = {0,0};
9573 /* AIX XL C 1.02.0.0 rejects this.
9574 It does not let you subtract one const X* pointer from another in
9575 an arm of an if-expression whose if-part is not a constant
9576 expression */
9577 const char *g = "string";
9578 pcpcc = &g + (g ? g-g : 0);
9579 /* HPUX 7.0 cc rejects these. */
9580 ++pcpcc;
9581 ppc = (char**) pcpcc;
9582 pcpcc = (char const *const *) ppc;
9583 { /* SCO 3.2v4 cc rejects this. */
9584 char *t;
9585 char const *s = 0 ? (char *) 0 : (char const *) 0;
9587 *t++ = 0;
9588 if (s) return 0;
9590 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9591 int x[] = {25, 17};
9592 const int *foo = &x[0];
9593 ++foo;
9595 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9596 typedef const int *iptr;
9597 iptr p = 0;
9598 ++p;
9600 { /* AIX XL C 1.02.0.0 rejects this saying
9601 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9602 struct s { int j; const int *ap[3]; };
9603 struct s *b; b->j = 5;
9605 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9606 const int foo = 10;
9607 if (!foo) return 0;
9609 return !cs[0] && !zero.x;
9610 #endif
9613 return 0;
9615 _ACEOF
9616 if ac_fn_c_try_compile "$LINENO"; then :
9617 ac_cv_c_const=yes
9618 else
9619 ac_cv_c_const=no
9621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
9624 $as_echo "$ac_cv_c_const" >&6; }
9625 if test $ac_cv_c_const = no; then
9627 $as_echo "#define const /**/" >>confdefs.h
9631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for void * support" >&5
9632 $as_echo_n "checking for void * support... " >&6; }
9633 if test "${emacs_cv_void_star+set}" = set; then :
9634 $as_echo_n "(cached) " >&6
9635 else
9636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9637 /* end confdefs.h. */
9640 main ()
9642 void * foo;
9644 return 0;
9646 _ACEOF
9647 if ac_fn_c_try_compile "$LINENO"; then :
9648 emacs_cv_void_star=yes
9649 else
9650 emacs_cv_void_star=no
9652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_void_star" >&5
9655 $as_echo "$emacs_cv_void_star" >&6; }
9656 if test $emacs_cv_void_star = yes; then
9657 $as_echo "#define POINTER_TYPE void" >>confdefs.h
9659 else
9660 $as_echo "#define POINTER_TYPE char" >>confdefs.h
9664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
9665 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
9666 if test "${ac_cv_c_bigendian+set}" = set; then :
9667 $as_echo_n "(cached) " >&6
9668 else
9669 ac_cv_c_bigendian=unknown
9670 # See if we're dealing with a universal compiler.
9671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9672 /* end confdefs.h. */
9673 #ifndef __APPLE_CC__
9674 not a universal capable compiler
9675 #endif
9676 typedef int dummy;
9678 _ACEOF
9679 if ac_fn_c_try_compile "$LINENO"; then :
9681 # Check for potential -arch flags. It is not universal unless
9682 # there are at least two -arch flags with different values.
9683 ac_arch=
9684 ac_prev=
9685 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
9686 if test -n "$ac_prev"; then
9687 case $ac_word in
9688 i?86 | x86_64 | ppc | ppc64)
9689 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
9690 ac_arch=$ac_word
9691 else
9692 ac_cv_c_bigendian=universal
9693 break
9696 esac
9697 ac_prev=
9698 elif test "x$ac_word" = "x-arch"; then
9699 ac_prev=arch
9701 done
9703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9704 if test $ac_cv_c_bigendian = unknown; then
9705 # See if sys/param.h defines the BYTE_ORDER macro.
9706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9707 /* end confdefs.h. */
9708 #include <sys/types.h>
9709 #include <sys/param.h>
9712 main ()
9714 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
9715 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
9716 && LITTLE_ENDIAN)
9717 bogus endian macros
9718 #endif
9721 return 0;
9723 _ACEOF
9724 if ac_fn_c_try_compile "$LINENO"; then :
9725 # It does; now see whether it defined to BIG_ENDIAN or not.
9726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9727 /* end confdefs.h. */
9728 #include <sys/types.h>
9729 #include <sys/param.h>
9732 main ()
9734 #if BYTE_ORDER != BIG_ENDIAN
9735 not big endian
9736 #endif
9739 return 0;
9741 _ACEOF
9742 if ac_fn_c_try_compile "$LINENO"; then :
9743 ac_cv_c_bigendian=yes
9744 else
9745 ac_cv_c_bigendian=no
9747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9751 if test $ac_cv_c_bigendian = unknown; then
9752 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9754 /* end confdefs.h. */
9755 #include <limits.h>
9758 main ()
9760 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9761 bogus endian macros
9762 #endif
9765 return 0;
9767 _ACEOF
9768 if ac_fn_c_try_compile "$LINENO"; then :
9769 # It does; now see whether it defined to _BIG_ENDIAN or not.
9770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9771 /* end confdefs.h. */
9772 #include <limits.h>
9775 main ()
9777 #ifndef _BIG_ENDIAN
9778 not big endian
9779 #endif
9782 return 0;
9784 _ACEOF
9785 if ac_fn_c_try_compile "$LINENO"; then :
9786 ac_cv_c_bigendian=yes
9787 else
9788 ac_cv_c_bigendian=no
9790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9794 if test $ac_cv_c_bigendian = unknown; then
9795 # Compile a test program.
9796 if test "$cross_compiling" = yes; then :
9797 # Try to guess by grepping values from an object file.
9798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9799 /* end confdefs.h. */
9800 short int ascii_mm[] =
9801 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9802 short int ascii_ii[] =
9803 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9804 int use_ascii (int i) {
9805 return ascii_mm[i] + ascii_ii[i];
9807 short int ebcdic_ii[] =
9808 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9809 short int ebcdic_mm[] =
9810 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9811 int use_ebcdic (int i) {
9812 return ebcdic_mm[i] + ebcdic_ii[i];
9814 extern int foo;
9817 main ()
9819 return use_ascii (foo) == use_ebcdic (foo);
9821 return 0;
9823 _ACEOF
9824 if ac_fn_c_try_compile "$LINENO"; then :
9825 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
9826 ac_cv_c_bigendian=yes
9828 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9829 if test "$ac_cv_c_bigendian" = unknown; then
9830 ac_cv_c_bigendian=no
9831 else
9832 # finding both strings is unlikely to happen, but who knows?
9833 ac_cv_c_bigendian=unknown
9837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9838 else
9839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9840 /* end confdefs.h. */
9841 $ac_includes_default
9843 main ()
9846 /* Are we little or big endian? From Harbison&Steele. */
9847 union
9849 long int l;
9850 char c[sizeof (long int)];
9851 } u;
9852 u.l = 1;
9853 return u.c[sizeof (long int) - 1] == 1;
9856 return 0;
9858 _ACEOF
9859 if ac_fn_c_try_run "$LINENO"; then :
9860 ac_cv_c_bigendian=no
9861 else
9862 ac_cv_c_bigendian=yes
9864 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9865 conftest.$ac_objext conftest.beam conftest.$ac_ext
9870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9871 $as_echo "$ac_cv_c_bigendian" >&6; }
9872 case $ac_cv_c_bigendian in #(
9873 yes)
9874 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9875 ;; #(
9877 ;; #(
9878 universal)
9880 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9882 ;; #(
9884 as_fn_error "unknown endianness
9885 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9886 esac
9889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__ ((__aligned__ (expr)))" >&5
9890 $as_echo_n "checking for __attribute__ ((__aligned__ (expr)))... " >&6; }
9891 if test "${emacs_cv_attribute_aligned+set}" = set; then :
9892 $as_echo_n "(cached) " >&6
9893 else
9894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9895 /* end confdefs.h. */
9896 char __attribute__ ((__aligned__ (1 << 3))) c;
9898 main ()
9902 return 0;
9904 _ACEOF
9905 if ac_fn_c_try_compile "$LINENO"; then :
9906 emacs_cv_attribute_aligned=yes
9907 else
9908 emacs_cv_attribute_aligned=no
9910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_attribute_aligned" >&5
9913 $as_echo "$emacs_cv_attribute_aligned" >&6; }
9914 if test $emacs_cv_attribute_aligned = yes; then
9916 $as_echo "#define HAVE_ATTRIBUTE_ALIGNED 1" >>confdefs.h
9920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9921 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9922 set x ${MAKE-make}
9923 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9924 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
9925 $as_echo_n "(cached) " >&6
9926 else
9927 cat >conftest.make <<\_ACEOF
9928 SHELL = /bin/sh
9929 all:
9930 @echo '@@@%%%=$(MAKE)=@@@%%%'
9931 _ACEOF
9932 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9933 case `${MAKE-make} -f conftest.make 2>/dev/null` in
9934 *@@@%%%=?*=@@@%%%*)
9935 eval ac_cv_prog_make_${ac_make}_set=yes;;
9937 eval ac_cv_prog_make_${ac_make}_set=no;;
9938 esac
9939 rm -f conftest.make
9941 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9943 $as_echo "yes" >&6; }
9944 SET_MAKE=
9945 else
9946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9947 $as_echo "no" >&6; }
9948 SET_MAKE="MAKE=${MAKE-make}"
9952 DEPFLAGS=
9953 MKDEPDIR=":"
9954 deps_frag=deps.mk
9955 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
9956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
9957 $as_echo_n "checking whether we are using GNU Make... " >&6; }
9958 HAVE_GNU_MAKE=no
9959 testval=`${MAKE-make} --version 2>/dev/null | grep 'GNU Make'`
9960 if test "x$testval" != x; then
9961 HAVE_GNU_MAKE=yes
9962 else
9963 ac_enable_autodepend=no
9965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
9966 $as_echo "$HAVE_GNU_MAKE" >&6; }
9967 if test $HAVE_GNU_MAKE = yes; then
9968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
9969 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
9970 SAVE_CFLAGS="$CFLAGS"
9971 CFLAGS="$CFLAGS -MMD -MF deps.d -MP"
9972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9973 /* end confdefs.h. */
9976 main ()
9980 return 0;
9982 _ACEOF
9983 if ac_fn_c_try_compile "$LINENO"; then :
9985 else
9986 ac_enable_autodepend=no
9988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9989 CFLAGS="$SAVE_CFLAGS"
9990 test -f deps.d || ac_enable_autodepend=no
9991 rm -rf deps.d
9992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
9993 $as_echo "$ac_enable_autodepend" >&6; }
9995 if test $ac_enable_autodepend = yes; then
9996 DEPFLAGS='-MMD -MF ${DEPDIR}/$*.d -MP'
9997 ## In parallel builds, another make might create depdir between
9998 ## the first test and mkdir, so stick another test on the end.
9999 ## Or use install-sh -d? mkdir -p is not portable.
10000 MKDEPDIR='test -d ${DEPDIR} || mkdir ${DEPDIR} || test -d ${DEPDIR}'
10001 deps_frag=autodeps.mk
10004 deps_frag=$srcdir/src/$deps_frag
10010 lisp_frag=$srcdir/src/lisp.mk
10014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
10015 $as_echo_n "checking for long file names... " >&6; }
10016 if test "${ac_cv_sys_long_file_names+set}" = set; then :
10017 $as_echo_n "(cached) " >&6
10018 else
10019 ac_cv_sys_long_file_names=yes
10020 # Test for long file names in all the places we know might matter:
10021 # . the current directory, where building will happen
10022 # $prefix/lib where we will be installing things
10023 # $exec_prefix/lib likewise
10024 # $TMPDIR if set, where it might want to write temporary files
10025 # /tmp where it might want to write temporary files
10026 # /var/tmp likewise
10027 # /usr/tmp likewise
10028 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
10029 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
10030 # in the usual case where exec_prefix is '${prefix}'.
10031 case $ac_dir in #(
10032 . | /* | ?:[\\/]*) ;; #(
10033 *) continue;;
10034 esac
10035 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
10036 ac_xdir=$ac_dir/cf$$
10037 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
10038 ac_tf1=$ac_xdir/conftest9012345
10039 ac_tf2=$ac_xdir/conftest9012346
10040 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
10041 ac_cv_sys_long_file_names=no
10042 rm -f -r "$ac_xdir" 2>/dev/null
10043 test $ac_cv_sys_long_file_names = no && break
10044 done
10046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
10047 $as_echo "$ac_cv_sys_long_file_names" >&6; }
10048 if test $ac_cv_sys_long_file_names = yes; then
10050 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
10055 #### Choose a window system.
10057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
10058 $as_echo_n "checking for X... " >&6; }
10061 # Check whether --with-x was given.
10062 if test "${with_x+set}" = set; then :
10063 withval=$with_x;
10066 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
10067 if test "x$with_x" = xno; then
10068 # The user explicitly disabled X.
10069 have_x=disabled
10070 else
10071 case $x_includes,$x_libraries in #(
10072 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
10073 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
10074 $as_echo_n "(cached) " >&6
10075 else
10076 # One or both of the vars are not set, and there is no cached value.
10077 ac_x_includes=no ac_x_libraries=no
10078 rm -f -r conftest.dir
10079 if mkdir conftest.dir; then
10080 cd conftest.dir
10081 cat >Imakefile <<'_ACEOF'
10082 incroot:
10083 @echo incroot='${INCROOT}'
10084 usrlibdir:
10085 @echo usrlibdir='${USRLIBDIR}'
10086 libdir:
10087 @echo libdir='${LIBDIR}'
10088 _ACEOF
10089 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
10090 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
10091 for ac_var in incroot usrlibdir libdir; do
10092 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
10093 done
10094 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
10095 for ac_extension in a so sl dylib la dll; do
10096 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
10097 test -f "$ac_im_libdir/libX11.$ac_extension"; then
10098 ac_im_usrlibdir=$ac_im_libdir; break
10100 done
10101 # Screen out bogus values from the imake configuration. They are
10102 # bogus both because they are the default anyway, and because
10103 # using them would break gcc on systems where it needs fixed includes.
10104 case $ac_im_incroot in
10105 /usr/include) ac_x_includes= ;;
10106 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
10107 esac
10108 case $ac_im_usrlibdir in
10109 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
10110 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
10111 esac
10113 cd ..
10114 rm -f -r conftest.dir
10117 # Standard set of common directories for X headers.
10118 # Check X11 before X11Rn because it is often a symlink to the current release.
10119 ac_x_header_dirs='
10120 /usr/X11/include
10121 /usr/X11R7/include
10122 /usr/X11R6/include
10123 /usr/X11R5/include
10124 /usr/X11R4/include
10126 /usr/include/X11
10127 /usr/include/X11R7
10128 /usr/include/X11R6
10129 /usr/include/X11R5
10130 /usr/include/X11R4
10132 /usr/local/X11/include
10133 /usr/local/X11R7/include
10134 /usr/local/X11R6/include
10135 /usr/local/X11R5/include
10136 /usr/local/X11R4/include
10138 /usr/local/include/X11
10139 /usr/local/include/X11R7
10140 /usr/local/include/X11R6
10141 /usr/local/include/X11R5
10142 /usr/local/include/X11R4
10144 /usr/X386/include
10145 /usr/x386/include
10146 /usr/XFree86/include/X11
10148 /usr/include
10149 /usr/local/include
10150 /usr/unsupported/include
10151 /usr/athena/include
10152 /usr/local/x11r5/include
10153 /usr/lpp/Xamples/include
10155 /usr/openwin/include
10156 /usr/openwin/share/include'
10158 if test "$ac_x_includes" = no; then
10159 # Guess where to find include files, by looking for Xlib.h.
10160 # First, try using that file with no special directory specified.
10161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10162 /* end confdefs.h. */
10163 #include <X11/Xlib.h>
10164 _ACEOF
10165 if ac_fn_c_try_cpp "$LINENO"; then :
10166 # We can compile using X headers with no special include directory.
10167 ac_x_includes=
10168 else
10169 for ac_dir in $ac_x_header_dirs; do
10170 if test -r "$ac_dir/X11/Xlib.h"; then
10171 ac_x_includes=$ac_dir
10172 break
10174 done
10176 rm -f conftest.err conftest.$ac_ext
10177 fi # $ac_x_includes = no
10179 if test "$ac_x_libraries" = no; then
10180 # Check for the libraries.
10181 # See if we find them without any special options.
10182 # Don't add to $LIBS permanently.
10183 ac_save_LIBS=$LIBS
10184 LIBS="-lX11 $LIBS"
10185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10186 /* end confdefs.h. */
10187 #include <X11/Xlib.h>
10189 main ()
10191 XrmInitialize ()
10193 return 0;
10195 _ACEOF
10196 if ac_fn_c_try_link "$LINENO"; then :
10197 LIBS=$ac_save_LIBS
10198 # We can link X programs with no special library path.
10199 ac_x_libraries=
10200 else
10201 LIBS=$ac_save_LIBS
10202 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
10204 # Don't even attempt the hair of trying to link an X program!
10205 for ac_extension in a so sl dylib la dll; do
10206 if test -r "$ac_dir/libX11.$ac_extension"; then
10207 ac_x_libraries=$ac_dir
10208 break 2
10210 done
10211 done
10213 rm -f core conftest.err conftest.$ac_objext \
10214 conftest$ac_exeext conftest.$ac_ext
10215 fi # $ac_x_libraries = no
10217 case $ac_x_includes,$ac_x_libraries in #(
10218 no,* | *,no | *\'*)
10219 # Didn't find X, or a directory has "'" in its name.
10220 ac_cv_have_x="have_x=no";; #(
10222 # Record where we found X for the cache.
10223 ac_cv_have_x="have_x=yes\
10224 ac_x_includes='$ac_x_includes'\
10225 ac_x_libraries='$ac_x_libraries'"
10226 esac
10228 ;; #(
10229 *) have_x=yes;;
10230 esac
10231 eval "$ac_cv_have_x"
10232 fi # $with_x != no
10234 if test "$have_x" != yes; then
10235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
10236 $as_echo "$have_x" >&6; }
10237 no_x=yes
10238 else
10239 # If each of the values was on the command line, it overrides each guess.
10240 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
10241 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
10242 # Update the cache value to reflect the command line values.
10243 ac_cv_have_x="have_x=yes\
10244 ac_x_includes='$x_includes'\
10245 ac_x_libraries='$x_libraries'"
10246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
10247 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
10250 if test "$no_x" = yes; then
10251 window_system=none
10252 else
10253 window_system=x11
10256 LD_SWITCH_X_SITE_AUX=
10257 LD_SWITCH_X_SITE_AUX_RPATH=
10258 if test "${x_libraries}" != NONE; then
10259 if test -n "${x_libraries}"; then
10260 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
10261 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
10262 LD_SWITCH_X_SITE_AUX_RPATH=`echo ${LD_SWITCH_X_SITE_AUX} | sed -e 's/-R/-Wl,-rpath,/'`
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
10288 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
10289 C_SWITCH_X_SITE="$isystem"`echo ${x_includes} | sed -e "s/:/ $isystem/g"`
10292 if test x"${x_includes}" = x; then
10293 bitmapdir=/usr/include/X11/bitmaps
10294 else
10295 # accumulate include directories that have X11 bitmap subdirectories
10296 bmd_acc="dummyval"
10297 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
10298 if test -d "${bmd}/X11/bitmaps"; then
10299 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
10301 if test -d "${bmd}/bitmaps"; then
10302 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
10304 done
10305 if test ${bmd_acc} != "dummyval"; then
10306 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
10310 HAVE_NS=no
10311 NS_IMPL_COCOA=no
10312 NS_IMPL_GNUSTEP=no
10313 tmp_CPPFLAGS="$CPPFLAGS"
10314 tmp_CFLAGS="$CFLAGS"
10315 CPPFLAGS="$CPPFLAGS -x objective-c"
10316 CFLAGS="$CFLAGS -x objective-c"
10317 TEMACS_LDFLAGS2="\${LDFLAGS}"
10318 GNU_OBJC_CFLAGS=
10319 if test "${with_ns}" != no; then
10320 if test "${opsys}" = darwin; then
10321 NS_IMPL_COCOA=yes
10322 ns_appdir=`pwd`/nextstep/Emacs.app
10323 ns_appbindir=${ns_appdir}/Contents/MacOS/
10324 ns_appresdir=${ns_appdir}/Contents/Resources
10325 ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base
10326 elif test -f $GNUSTEP_CONFIG_FILE; then
10327 NS_IMPL_GNUSTEP=yes
10328 ns_appdir=`pwd`/nextstep/Emacs.app
10329 ns_appbindir=${ns_appdir}/
10330 ns_appresdir=${ns_appdir}/Resources
10331 ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base
10332 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
10333 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
10334 GNUSTEP_LOCAL_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
10335 GNUSTEP_LOCAL_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
10336 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
10337 GNUSTEP_LOCAL_HEADERS="-I${GNUSTEP_LOCAL_HEADERS}"
10338 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
10339 GNUSTEP_LOCAL_LIBRARIES="-L${GNUSTEP_LOCAL_LIBRARIES}"
10340 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
10341 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
10342 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
10343 LIB_STANDARD=
10344 START_FILES=
10345 TEMACS_LDFLAGS2=
10346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS" >&5
10347 $as_echo_n "checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS... " >&6; }
10348 if test "${emacs_cv_objc_exceptions+set}" = set; then :
10349 $as_echo_n "(cached) " >&6
10350 else
10351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10352 /* end confdefs.h. */
10353 #include <GNUstepBase/GSConfig.h>
10355 main ()
10357 #if defined BASE_NATIVE_OBJC_EXCEPTIONS && BASE_NATIVE_OBJC_EXCEPTIONS > 0
10359 #else
10360 fail;
10361 #endif
10363 return 0;
10365 _ACEOF
10366 if ac_fn_c_try_compile "$LINENO"; then :
10367 emacs_cv_objc_exceptions=yes
10368 else
10369 emacs_cv_objc_exceptions=no
10371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_objc_exceptions" >&5
10374 $as_echo "$emacs_cv_objc_exceptions" >&6; }
10375 if test $emacs_cv_objc_exceptions = yes; then
10377 $as_echo "#define _NATIVE_OBJC_EXCEPTIONS 1" >>confdefs.h
10379 GNU_OBJC_CFLAGS="-fobjc-exceptions"
10383 CFLAGS="$CFLAGS $GNU_OBJC_CFLAGS"
10385 ac_fn_c_check_header_mongrel "$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
10386 if test "x$ac_cv_header_AppKit_AppKit_h" = x""yes; then :
10387 HAVE_NS=yes
10388 else
10389 as_fn_error "\`--with-ns' was specified, but the include
10390 files are missing or cannot be compiled." "$LINENO" 5
10394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10395 /* end confdefs.h. */
10396 #include <Foundation/NSObjCRuntime.h>
10398 main ()
10400 NSInteger i;
10402 return 0;
10404 _ACEOF
10405 if ac_fn_c_try_compile "$LINENO"; then :
10406 ns_have_nsinteger=yes
10407 else
10408 ns_have_nsinteger=no
10410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10411 if test $ns_have_nsinteger = yes; then
10413 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
10419 ns_frag=/dev/null
10420 NS_OBJ=
10421 NS_OBJC_OBJ=
10422 if test "${HAVE_NS}" = yes; then
10423 if test "$with_toolkit_scroll_bars" = "no"; then
10424 as_fn_error "Non-toolkit scroll bars are not implemented for Nextstep." "$LINENO" 5
10427 window_system=nextstep
10428 with_xft=no
10429 # set up packaging dirs
10430 if test "${EN_NS_SELF_CONTAINED}" = yes; then
10431 prefix=${ns_appresdir}
10432 exec_prefix=${ns_appbindir}
10433 libexecdir=${ns_appbindir}/libexec
10435 ns_frag=$srcdir/src/ns.mk
10436 NS_OBJ="fontset.o fringe.o image.o"
10437 NS_OBJC_OBJ="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o"
10439 CFLAGS="$tmp_CFLAGS"
10440 CPPFLAGS="$tmp_CPPFLAGS"
10446 case "${window_system}" in
10447 x11 )
10448 HAVE_X_WINDOWS=yes
10449 HAVE_X11=yes
10450 case "${with_x_toolkit}" in
10451 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
10452 motif ) USE_X_TOOLKIT=MOTIF ;;
10453 gtk ) with_gtk=yes
10454 USE_X_TOOLKIT=none ;;
10455 gtk3 ) with_gtk3=yes
10456 USE_X_TOOLKIT=none ;;
10457 no ) USE_X_TOOLKIT=none ;;
10458 * ) USE_X_TOOLKIT=maybe ;;
10459 esac
10461 nextstep | none )
10462 HAVE_X_WINDOWS=no
10463 HAVE_X11=no
10464 USE_X_TOOLKIT=none
10466 esac
10468 if test "$window_system" = none && test "X$with_x" != "Xno"; then
10469 # Extract the first word of "X", so it can be a program name with args.
10470 set dummy X; ac_word=$2
10471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10472 $as_echo_n "checking for $ac_word... " >&6; }
10473 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then :
10474 $as_echo_n "(cached) " >&6
10475 else
10476 if test -n "$HAVE_XSERVER"; then
10477 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
10478 else
10479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10480 for as_dir in $PATH
10482 IFS=$as_save_IFS
10483 test -z "$as_dir" && as_dir=.
10484 for ac_exec_ext in '' $ac_executable_extensions; do
10485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10486 ac_cv_prog_HAVE_XSERVER="true"
10487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10488 break 2
10490 done
10491 done
10492 IFS=$as_save_IFS
10494 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
10497 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
10498 if test -n "$HAVE_XSERVER"; then
10499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
10500 $as_echo "$HAVE_XSERVER" >&6; }
10501 else
10502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10503 $as_echo "no" >&6; }
10507 if test "$HAVE_XSERVER" = true ||
10508 test -n "$DISPLAY" ||
10509 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
10510 as_fn_error "You seem to be running X, but no X development libraries
10511 were found. You should install the relevant development files for X
10512 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
10513 sure you have development files for image handling, i.e.
10514 tiff, gif, jpeg, png and xpm.
10515 If you are sure you want Emacs compiled without X window support, pass
10516 --without-x
10517 to configure." "$LINENO" 5
10521 ### If we're using X11, we should use the X menu package.
10522 HAVE_MENUS=no
10523 case ${HAVE_X11} in
10524 yes ) HAVE_MENUS=yes ;;
10525 esac
10527 # Do the opsystem or machine files prohibit the use of the GNU malloc?
10528 # Assume not, until told otherwise.
10529 GNU_MALLOC=yes
10531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc is Doug Lea style" >&5
10532 $as_echo_n "checking whether malloc is Doug Lea style... " >&6; }
10533 if test "${emacs_cv_var_doug_lea_malloc+set}" = set; then :
10534 $as_echo_n "(cached) " >&6
10535 else
10536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10537 /* end confdefs.h. */
10538 #include <malloc.h>
10539 static void hook (void) {}
10541 main ()
10543 malloc_set_state (malloc_get_state ());
10544 __after_morecore_hook = hook;
10545 __malloc_initialize_hook = hook;
10547 return 0;
10549 _ACEOF
10550 if ac_fn_c_try_link "$LINENO"; then :
10551 emacs_cv_var_doug_lea_malloc=yes
10552 else
10553 emacs_cv_var_doug_lea_malloc=no
10555 rm -f core conftest.err conftest.$ac_objext \
10556 conftest$ac_exeext conftest.$ac_ext
10558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var_doug_lea_malloc" >&5
10559 $as_echo "$emacs_cv_var_doug_lea_malloc" >&6; }
10560 doug_lea_malloc=$emacs_cv_var_doug_lea_malloc
10563 system_malloc=no
10564 case "$opsys" in
10565 ## darwin ld insists on the use of malloc routines in the System framework.
10566 darwin|sol2-10) system_malloc=yes ;;
10567 esac
10569 if test "${system_malloc}" = "yes"; then
10571 $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
10573 GNU_MALLOC=no
10574 GNU_MALLOC_reason="
10575 (The GNU allocators don't work with this system configuration.)"
10576 GMALLOC_OBJ=
10577 VMLIMIT_OBJ=
10578 else
10579 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ=gmalloc.o
10580 VMLIMIT_OBJ=vm-limit.o
10585 if test "$doug_lea_malloc" = "yes" ; then
10586 if test "$GNU_MALLOC" = yes ; then
10587 GNU_MALLOC_reason="
10588 (Using Doug Lea's new malloc from the GNU C Library.)"
10591 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
10594 ## Use mmap directly for allocating larger buffers.
10595 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
10596 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
10597 ## Does the AC_FUNC_MMAP test below make this check unnecessary?
10598 case "$opsys" in
10599 gnu*) REL_ALLOC=no ;;
10600 esac
10603 if test x"${REL_ALLOC}" = x; then
10604 REL_ALLOC=${GNU_MALLOC}
10607 use_mmap_for_buffers=no
10608 case "$opsys" in
10609 cygwin|freebsd|irix6-5) use_mmap_for_buffers=yes ;;
10610 esac
10615 for ac_header in $ac_header_list
10616 do :
10617 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10618 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
10620 eval as_val=\$$as_ac_Header
10621 if test "x$as_val" = x""yes; then :
10622 cat >>confdefs.h <<_ACEOF
10623 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10624 _ACEOF
10628 done
10637 for ac_func in getpagesize
10638 do :
10639 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
10640 if test "x$ac_cv_func_getpagesize" = x""yes; then :
10641 cat >>confdefs.h <<_ACEOF
10642 #define HAVE_GETPAGESIZE 1
10643 _ACEOF
10646 done
10648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
10649 $as_echo_n "checking for working mmap... " >&6; }
10650 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
10651 $as_echo_n "(cached) " >&6
10652 else
10653 if test "$cross_compiling" = yes; then :
10654 ac_cv_func_mmap_fixed_mapped=no
10655 else
10656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10657 /* end confdefs.h. */
10658 $ac_includes_default
10659 /* malloc might have been renamed as rpl_malloc. */
10660 #undef malloc
10662 /* Thanks to Mike Haertel and Jim Avera for this test.
10663 Here is a matrix of mmap possibilities:
10664 mmap private not fixed
10665 mmap private fixed at somewhere currently unmapped
10666 mmap private fixed at somewhere already mapped
10667 mmap shared not fixed
10668 mmap shared fixed at somewhere currently unmapped
10669 mmap shared fixed at somewhere already mapped
10670 For private mappings, we should verify that changes cannot be read()
10671 back from the file, nor mmap's back from the file at a different
10672 address. (There have been systems where private was not correctly
10673 implemented like the infamous i386 svr4.0, and systems where the
10674 VM page cache was not coherent with the file system buffer cache
10675 like early versions of FreeBSD and possibly contemporary NetBSD.)
10676 For shared mappings, we should conversely verify that changes get
10677 propagated back to all the places they're supposed to be.
10679 Grep wants private fixed already mapped.
10680 The main things grep needs to know about mmap are:
10681 * does it exist and is it safe to write into the mmap'd area
10682 * how to use it (BSD variants) */
10684 #include <fcntl.h>
10685 #include <sys/mman.h>
10687 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10688 char *malloc ();
10689 #endif
10691 /* This mess was copied from the GNU getpagesize.h. */
10692 #ifndef HAVE_GETPAGESIZE
10693 # ifdef _SC_PAGESIZE
10694 # define getpagesize() sysconf(_SC_PAGESIZE)
10695 # else /* no _SC_PAGESIZE */
10696 # ifdef HAVE_SYS_PARAM_H
10697 # include <sys/param.h>
10698 # ifdef EXEC_PAGESIZE
10699 # define getpagesize() EXEC_PAGESIZE
10700 # else /* no EXEC_PAGESIZE */
10701 # ifdef NBPG
10702 # define getpagesize() NBPG * CLSIZE
10703 # ifndef CLSIZE
10704 # define CLSIZE 1
10705 # endif /* no CLSIZE */
10706 # else /* no NBPG */
10707 # ifdef NBPC
10708 # define getpagesize() NBPC
10709 # else /* no NBPC */
10710 # ifdef PAGESIZE
10711 # define getpagesize() PAGESIZE
10712 # endif /* PAGESIZE */
10713 # endif /* no NBPC */
10714 # endif /* no NBPG */
10715 # endif /* no EXEC_PAGESIZE */
10716 # else /* no HAVE_SYS_PARAM_H */
10717 # define getpagesize() 8192 /* punt totally */
10718 # endif /* no HAVE_SYS_PARAM_H */
10719 # endif /* no _SC_PAGESIZE */
10721 #endif /* no HAVE_GETPAGESIZE */
10724 main ()
10726 char *data, *data2, *data3;
10727 const char *cdata2;
10728 int i, pagesize;
10729 int fd, fd2;
10731 pagesize = getpagesize ();
10733 /* First, make a file with some known garbage in it. */
10734 data = (char *) malloc (pagesize);
10735 if (!data)
10736 return 1;
10737 for (i = 0; i < pagesize; ++i)
10738 *(data + i) = rand ();
10739 umask (0);
10740 fd = creat ("conftest.mmap", 0600);
10741 if (fd < 0)
10742 return 2;
10743 if (write (fd, data, pagesize) != pagesize)
10744 return 3;
10745 close (fd);
10747 /* Next, check that the tail of a page is zero-filled. File must have
10748 non-zero length, otherwise we risk SIGBUS for entire page. */
10749 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
10750 if (fd2 < 0)
10751 return 4;
10752 cdata2 = "";
10753 if (write (fd2, cdata2, 1) != 1)
10754 return 5;
10755 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
10756 if (data2 == MAP_FAILED)
10757 return 6;
10758 for (i = 0; i < pagesize; ++i)
10759 if (*(data2 + i))
10760 return 7;
10761 close (fd2);
10762 if (munmap (data2, pagesize))
10763 return 8;
10765 /* Next, try to mmap the file at a fixed address which already has
10766 something else allocated at it. If we can, also make sure that
10767 we see the same garbage. */
10768 fd = open ("conftest.mmap", O_RDWR);
10769 if (fd < 0)
10770 return 9;
10771 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10772 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10773 return 10;
10774 for (i = 0; i < pagesize; ++i)
10775 if (*(data + i) != *(data2 + i))
10776 return 11;
10778 /* Finally, make sure that changes to the mapped area do not
10779 percolate back to the file as seen by read(). (This is a bug on
10780 some variants of i386 svr4.0.) */
10781 for (i = 0; i < pagesize; ++i)
10782 *(data2 + i) = *(data2 + i) + 1;
10783 data3 = (char *) malloc (pagesize);
10784 if (!data3)
10785 return 12;
10786 if (read (fd, data3, pagesize) != pagesize)
10787 return 13;
10788 for (i = 0; i < pagesize; ++i)
10789 if (*(data + i) != *(data3 + i))
10790 return 14;
10791 close (fd);
10792 return 0;
10794 _ACEOF
10795 if ac_fn_c_try_run "$LINENO"; then :
10796 ac_cv_func_mmap_fixed_mapped=yes
10797 else
10798 ac_cv_func_mmap_fixed_mapped=no
10800 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10801 conftest.$ac_objext conftest.beam conftest.$ac_ext
10805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
10806 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
10807 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10809 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
10812 rm -f conftest.mmap conftest.txt
10814 if test $use_mmap_for_buffers = yes; then
10816 $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
10818 REL_ALLOC=no
10821 LIBS="$LIBS_SYSTEM $LIBS"
10823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
10824 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
10825 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
10826 $as_echo_n "(cached) " >&6
10827 else
10828 ac_check_lib_save_LIBS=$LIBS
10829 LIBS="-ldnet $LIBS"
10830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10831 /* end confdefs.h. */
10833 /* Override any GCC internal prototype to avoid an error.
10834 Use char because int might match the return type of a GCC
10835 builtin and then its argument prototype would still apply. */
10836 #ifdef __cplusplus
10837 extern "C"
10838 #endif
10839 char dnet_ntoa ();
10841 main ()
10843 return dnet_ntoa ();
10845 return 0;
10847 _ACEOF
10848 if ac_fn_c_try_link "$LINENO"; then :
10849 ac_cv_lib_dnet_dnet_ntoa=yes
10850 else
10851 ac_cv_lib_dnet_dnet_ntoa=no
10853 rm -f core conftest.err conftest.$ac_objext \
10854 conftest$ac_exeext conftest.$ac_ext
10855 LIBS=$ac_check_lib_save_LIBS
10857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10858 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10859 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
10860 cat >>confdefs.h <<_ACEOF
10861 #define HAVE_LIBDNET 1
10862 _ACEOF
10864 LIBS="-ldnet $LIBS"
10869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
10870 $as_echo_n "checking for main in -lXbsd... " >&6; }
10871 if test "${ac_cv_lib_Xbsd_main+set}" = set; then :
10872 $as_echo_n "(cached) " >&6
10873 else
10874 ac_check_lib_save_LIBS=$LIBS
10875 LIBS="-lXbsd $LIBS"
10876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10877 /* end confdefs.h. */
10881 main ()
10883 return main ();
10885 return 0;
10887 _ACEOF
10888 if ac_fn_c_try_link "$LINENO"; then :
10889 ac_cv_lib_Xbsd_main=yes
10890 else
10891 ac_cv_lib_Xbsd_main=no
10893 rm -f core conftest.err conftest.$ac_objext \
10894 conftest$ac_exeext conftest.$ac_ext
10895 LIBS=$ac_check_lib_save_LIBS
10897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
10898 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
10899 if test "x$ac_cv_lib_Xbsd_main" = x""yes; then :
10900 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10904 LIB_PTHREAD=
10905 for ac_header in pthread.h
10906 do :
10907 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
10908 if test "x$ac_cv_header_pthread_h" = x""yes; then :
10909 cat >>confdefs.h <<_ACEOF
10910 #define HAVE_PTHREAD_H 1
10911 _ACEOF
10915 done
10917 if test "$ac_cv_header_pthread_h"; then
10918 if test "$GMALLOC_OBJ" = gmalloc.o; then
10919 emacs_pthread_function=pthread_atfork
10920 else
10921 emacs_pthread_function=pthread_self
10923 as_ac_Lib=`$as_echo "ac_cv_lib_pthread_$emacs_pthread_function" | $as_tr_sh`
10924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $emacs_pthread_function in -lpthread" >&5
10925 $as_echo_n "checking for $emacs_pthread_function in -lpthread... " >&6; }
10926 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
10927 $as_echo_n "(cached) " >&6
10928 else
10929 ac_check_lib_save_LIBS=$LIBS
10930 LIBS="-lpthread $LIBS"
10931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10932 /* end confdefs.h. */
10934 /* Override any GCC internal prototype to avoid an error.
10935 Use char because int might match the return type of a GCC
10936 builtin and then its argument prototype would still apply. */
10937 #ifdef __cplusplus
10938 extern "C"
10939 #endif
10940 char $emacs_pthread_function ();
10942 main ()
10944 return $emacs_pthread_function ();
10946 return 0;
10948 _ACEOF
10949 if ac_fn_c_try_link "$LINENO"; then :
10950 eval "$as_ac_Lib=yes"
10951 else
10952 eval "$as_ac_Lib=no"
10954 rm -f core conftest.err conftest.$ac_objext \
10955 conftest$ac_exeext conftest.$ac_ext
10956 LIBS=$ac_check_lib_save_LIBS
10958 eval ac_res=\$$as_ac_Lib
10959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10960 $as_echo "$ac_res" >&6; }
10961 eval as_val=\$$as_ac_Lib
10962 if test "x$as_val" = x""yes; then :
10963 HAVE_PTHREAD=yes
10967 if test "$HAVE_PTHREAD" = yes; then
10968 case "${canonical}" in
10969 *-hpux*) ;;
10970 *) LIB_PTHREAD="-lpthread"
10971 LIBS="$LIB_PTHREAD $LIBS" ;;
10972 esac
10974 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
10979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
10980 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
10981 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then :
10982 $as_echo_n "(cached) " >&6
10983 else
10984 ac_check_lib_save_LIBS=$LIBS
10985 LIBS="-lpthreads $LIBS"
10986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10987 /* end confdefs.h. */
10989 /* Override any GCC internal prototype to avoid an error.
10990 Use char because int might match the return type of a GCC
10991 builtin and then its argument prototype would still apply. */
10992 #ifdef __cplusplus
10993 extern "C"
10994 #endif
10995 char cma_open ();
10997 main ()
10999 return cma_open ();
11001 return 0;
11003 _ACEOF
11004 if ac_fn_c_try_link "$LINENO"; then :
11005 ac_cv_lib_pthreads_cma_open=yes
11006 else
11007 ac_cv_lib_pthreads_cma_open=no
11009 rm -f core conftest.err conftest.$ac_objext \
11010 conftest$ac_exeext conftest.$ac_ext
11011 LIBS=$ac_check_lib_save_LIBS
11013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
11014 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
11015 if test "x$ac_cv_lib_pthreads_cma_open" = x""yes; then :
11016 cat >>confdefs.h <<_ACEOF
11017 #define HAVE_LIBPTHREADS 1
11018 _ACEOF
11020 LIBS="-lpthreads $LIBS"
11025 ## Note: when using cpp in s/aix4.2.h, this definition depended on
11026 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
11027 ## the system file was sourced. Hence the value of LIBS_SYSTEM
11028 ## added to LIBS in configure would never contain the pthreads part,
11029 ## but the value used in Makefiles might. FIXME?
11031 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
11032 ## be harmless on older versions of X where it happens to exist.
11033 test "$opsys" = "aix4-2" && \
11034 test $ac_cv_lib_pthreads_cma_open = yes && \
11035 LIBS_SYSTEM="$LIBS_SYSTEM -lpthreads"
11038 case ${host_os} in
11039 aix*)
11040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
11041 $as_echo_n "checking for -bbigtoc option... " >&6; }
11042 if test "${gdb_cv_bigtoc+set}" = set; then :
11043 $as_echo_n "(cached) " >&6
11044 else
11046 case $GCC in
11047 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
11048 *) gdb_cv_bigtoc=-bbigtoc ;;
11049 esac
11051 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
11052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11053 /* end confdefs.h. */
11056 main ()
11058 int i;
11060 return 0;
11062 _ACEOF
11063 if ac_fn_c_try_link "$LINENO"; then :
11065 else
11066 gdb_cv_bigtoc=
11068 rm -f core conftest.err conftest.$ac_objext \
11069 conftest$ac_exeext conftest.$ac_ext
11072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
11073 $as_echo "$gdb_cv_bigtoc" >&6; }
11075 esac
11077 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
11078 # used for the tests that follow. We set them back to REAL_CFLAGS and
11079 # REAL_CPPFLAGS later on.
11081 REAL_CFLAGS="$CFLAGS"
11082 REAL_CPPFLAGS="$CPPFLAGS"
11084 if test "${HAVE_X11}" = "yes"; then
11085 DEFS="$C_SWITCH_X_SITE $DEFS"
11086 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
11087 LIBS="-lX11 $LIBS"
11088 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
11089 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
11091 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
11092 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
11093 # but it's more convenient here to set LD_RUN_PATH
11094 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
11095 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
11096 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
11097 export LD_RUN_PATH
11100 if test "${opsys}" = "gnu-linux"; then
11101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
11102 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
11103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11104 /* end confdefs.h. */
11107 main ()
11109 XOpenDisplay ("foo");
11111 return 0;
11113 _ACEOF
11114 if ac_fn_c_try_link "$LINENO"; then :
11115 xgnu_linux_first_failure=no
11116 else
11117 xgnu_linux_first_failure=yes
11119 rm -f core conftest.err conftest.$ac_objext \
11120 conftest$ac_exeext conftest.$ac_ext
11121 if test "${xgnu_linux_first_failure}" = "yes"; then
11122 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
11123 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
11124 OLD_CPPFLAGS="$CPPFLAGS"
11125 OLD_LIBS="$LIBS"
11126 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
11127 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
11128 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
11129 LIBS="$LIBS -b i486-linuxaout"
11130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11131 /* end confdefs.h. */
11134 main ()
11136 XOpenDisplay ("foo");
11138 return 0;
11140 _ACEOF
11141 if ac_fn_c_try_link "$LINENO"; then :
11142 xgnu_linux_second_failure=no
11143 else
11144 xgnu_linux_second_failure=yes
11146 rm -f core conftest.err conftest.$ac_objext \
11147 conftest$ac_exeext conftest.$ac_ext
11148 if test "${xgnu_linux_second_failure}" = "yes"; then
11149 # If we get the same failure with -b, there is no use adding -b.
11150 # So take it out. This plays safe.
11151 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
11152 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
11153 CPPFLAGS="$OLD_CPPFLAGS"
11154 LIBS="$OLD_LIBS"
11155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11156 $as_echo "no" >&6; }
11157 else
11158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11159 $as_echo "yes" >&6; }
11161 else
11162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11163 $as_echo "no" >&6; }
11167 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
11168 # header files included from there.
11169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
11170 $as_echo_n "checking for Xkb... " >&6; }
11171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11172 /* end confdefs.h. */
11173 #include <X11/Xlib.h>
11174 #include <X11/XKBlib.h>
11176 main ()
11178 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
11180 return 0;
11182 _ACEOF
11183 if ac_fn_c_try_link "$LINENO"; then :
11184 emacs_xkb=yes
11185 else
11186 emacs_xkb=no
11188 rm -f core conftest.err conftest.$ac_objext \
11189 conftest$ac_exeext conftest.$ac_ext
11190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
11191 $as_echo "$emacs_xkb" >&6; }
11192 if test $emacs_xkb = yes; then
11194 $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
11198 for ac_func in XrmSetDatabase XScreenResourceString \
11199 XScreenNumberOfScreen XSetWMProtocols
11200 do :
11201 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11202 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11203 eval as_val=\$$as_ac_var
11204 if test "x$as_val" = x""yes; then :
11205 cat >>confdefs.h <<_ACEOF
11206 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11207 _ACEOF
11210 done
11214 if test "${window_system}" = "x11"; then
11215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
11216 $as_echo_n "checking X11 version 6... " >&6; }
11217 if test "${emacs_cv_x11_version_6+set}" = set; then :
11218 $as_echo_n "(cached) " >&6
11219 else
11220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11221 /* end confdefs.h. */
11222 #include <X11/Xlib.h>
11224 main ()
11226 #if XlibSpecificationRelease < 6
11227 fail;
11228 #endif
11231 return 0;
11233 _ACEOF
11234 if ac_fn_c_try_link "$LINENO"; then :
11235 emacs_cv_x11_version_6=yes
11236 else
11237 emacs_cv_x11_version_6=no
11239 rm -f core conftest.err conftest.$ac_objext \
11240 conftest$ac_exeext conftest.$ac_ext
11243 if test $emacs_cv_x11_version_6 = yes; then
11244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
11245 $as_echo "6 or newer" >&6; }
11247 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
11250 $as_echo "#define HAVE_X_I18N 1" >>confdefs.h
11252 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
11253 ## XIM support.
11254 case "$opsys" in
11255 sol2-*) : ;;
11257 $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
11260 esac
11261 else
11262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
11263 $as_echo "before 6" >&6; }
11268 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
11269 HAVE_RSVG=no
11270 if test "${HAVE_X11}" = "yes" || test "${HAVE_NS}" = "yes"; then
11271 if test "${with_rsvg}" != "no"; then
11272 RSVG_REQUIRED=2.11.0
11273 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
11276 succeeded=no
11278 # Extract the first word of "pkg-config", so it can be a program name with args.
11279 set dummy pkg-config; ac_word=$2
11280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11281 $as_echo_n "checking for $ac_word... " >&6; }
11282 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11283 $as_echo_n "(cached) " >&6
11284 else
11285 case $PKG_CONFIG in
11286 [\\/]* | ?:[\\/]*)
11287 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11291 for as_dir in $PATH
11293 IFS=$as_save_IFS
11294 test -z "$as_dir" && as_dir=.
11295 for ac_exec_ext in '' $ac_executable_extensions; do
11296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11297 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11299 break 2
11301 done
11302 done
11303 IFS=$as_save_IFS
11305 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11307 esac
11309 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11310 if test -n "$PKG_CONFIG"; then
11311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11312 $as_echo "$PKG_CONFIG" >&6; }
11313 else
11314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11315 $as_echo "no" >&6; }
11320 if test "$PKG_CONFIG" = "no" ; then
11322 else
11323 PKG_CONFIG_MIN_VERSION=0.9.0
11324 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
11326 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
11328 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5 &&
11329 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE" 2>&5` &&
11330 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE" 2>&5`; then
11331 edit_cflags="
11332 s,///*,/,g
11333 s/^/ /
11334 s/ -I/ $isystem/g
11335 s/^ //
11337 RSVG_CFLAGS=`$as_echo "$RSVG_CFLAGS" | sed -e "$edit_cflags"`
11338 RSVG_LIBS=`$as_echo "$RSVG_LIBS" | sed -e 's,///*,/,g'`
11339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$RSVG_CFLAGS' LIBS='$RSVG_LIBS'" >&5
11340 $as_echo "yes CFLAGS='$RSVG_CFLAGS' LIBS='$RSVG_LIBS'" >&6; }
11341 succeeded=yes
11342 else
11343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11344 $as_echo "no" >&6; }
11345 RSVG_CFLAGS=""
11346 RSVG_LIBS=""
11347 ## If we have a custom action on failure, don't print errors, but
11348 ## do set a variable so people can do so.
11349 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
11355 else
11356 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11357 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11361 if test $succeeded = yes; then
11362 HAVE_RSVG=yes
11363 else
11370 if test $HAVE_RSVG = yes; then
11372 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
11374 CFLAGS="$CFLAGS $RSVG_CFLAGS"
11375 LIBS="$RSVG_LIBS $LIBS"
11380 HAVE_IMAGEMAGICK=no
11381 if test "${HAVE_X11}" = "yes"; then
11382 if test "${with_imagemagick}" != "no"; then
11383 ## 6.2.8 is the earliest version known to work, but earlier versions
11384 ## might work - let us know if you find one.
11385 ## 6.0.7 does not work. See bug#7955.
11386 IMAGEMAGICK_MODULE="Wand >= 6.2.8"
11388 succeeded=no
11390 # Extract the first word of "pkg-config", so it can be a program name with args.
11391 set dummy pkg-config; ac_word=$2
11392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11393 $as_echo_n "checking for $ac_word... " >&6; }
11394 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11395 $as_echo_n "(cached) " >&6
11396 else
11397 case $PKG_CONFIG in
11398 [\\/]* | ?:[\\/]*)
11399 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11403 for as_dir in $PATH
11405 IFS=$as_save_IFS
11406 test -z "$as_dir" && as_dir=.
11407 for ac_exec_ext in '' $ac_executable_extensions; do
11408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11409 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11411 break 2
11413 done
11414 done
11415 IFS=$as_save_IFS
11417 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11419 esac
11421 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11422 if test -n "$PKG_CONFIG"; then
11423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11424 $as_echo "$PKG_CONFIG" >&6; }
11425 else
11426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11427 $as_echo "no" >&6; }
11432 if test "$PKG_CONFIG" = "no" ; then
11434 else
11435 PKG_CONFIG_MIN_VERSION=0.9.0
11436 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
11438 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
11440 if $PKG_CONFIG --exists "$IMAGEMAGICK_MODULE" 2>&5 &&
11441 IMAGEMAGICK_CFLAGS=`$PKG_CONFIG --cflags "$IMAGEMAGICK_MODULE" 2>&5` &&
11442 IMAGEMAGICK_LIBS=`$PKG_CONFIG --libs "$IMAGEMAGICK_MODULE" 2>&5`; then
11443 edit_cflags="
11444 s,///*,/,g
11445 s/^/ /
11446 s/ -I/ $isystem/g
11447 s/^ //
11449 IMAGEMAGICK_CFLAGS=`$as_echo "$IMAGEMAGICK_CFLAGS" | sed -e "$edit_cflags"`
11450 IMAGEMAGICK_LIBS=`$as_echo "$IMAGEMAGICK_LIBS" | sed -e 's,///*,/,g'`
11451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$IMAGEMAGICK_CFLAGS' LIBS='$IMAGEMAGICK_LIBS'" >&5
11452 $as_echo "yes CFLAGS='$IMAGEMAGICK_CFLAGS' LIBS='$IMAGEMAGICK_LIBS'" >&6; }
11453 succeeded=yes
11454 else
11455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11456 $as_echo "no" >&6; }
11457 IMAGEMAGICK_CFLAGS=""
11458 IMAGEMAGICK_LIBS=""
11459 ## If we have a custom action on failure, don't print errors, but
11460 ## do set a variable so people can do so.
11461 IMAGEMAGICK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$IMAGEMAGICK_MODULE"`
11467 else
11468 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11469 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11473 if test $succeeded = yes; then
11474 HAVE_IMAGEMAGICK=yes
11475 else
11482 if test $HAVE_IMAGEMAGICK = yes; then
11484 $as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
11486 CFLAGS="$CFLAGS $IMAGEMAGICK_CFLAGS"
11487 LIBS="$IMAGEMAGICK_LIBS $LIBS"
11488 for ac_func in MagickExportImagePixels
11489 do :
11490 ac_fn_c_check_func "$LINENO" "MagickExportImagePixels" "ac_cv_func_MagickExportImagePixels"
11491 if test "x$ac_cv_func_MagickExportImagePixels" = x""yes; then :
11492 cat >>confdefs.h <<_ACEOF
11493 #define HAVE_MAGICKEXPORTIMAGEPIXELS 1
11494 _ACEOF
11497 done
11504 HAVE_GTK=no
11505 GTK_OBJ=
11506 if test "${with_gtk3}" = "yes"; then
11507 GLIB_REQUIRED=2.28
11508 GTK_REQUIRED=3.0
11509 GTK_MODULES="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11512 succeeded=no
11514 # Extract the first word of "pkg-config", so it can be a program name with args.
11515 set dummy pkg-config; ac_word=$2
11516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11517 $as_echo_n "checking for $ac_word... " >&6; }
11518 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11519 $as_echo_n "(cached) " >&6
11520 else
11521 case $PKG_CONFIG in
11522 [\\/]* | ?:[\\/]*)
11523 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11527 for as_dir in $PATH
11529 IFS=$as_save_IFS
11530 test -z "$as_dir" && as_dir=.
11531 for ac_exec_ext in '' $ac_executable_extensions; do
11532 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11533 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11535 break 2
11537 done
11538 done
11539 IFS=$as_save_IFS
11541 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11543 esac
11545 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11546 if test -n "$PKG_CONFIG"; then
11547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11548 $as_echo "$PKG_CONFIG" >&6; }
11549 else
11550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11551 $as_echo "no" >&6; }
11556 if test "$PKG_CONFIG" = "no" ; then
11557 pkg_check_gtk=no
11558 else
11559 PKG_CONFIG_MIN_VERSION=0.9.0
11560 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
11562 $as_echo_n "checking for $GTK_MODULES... " >&6; }
11564 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5 &&
11565 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES" 2>&5` &&
11566 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES" 2>&5`; then
11567 edit_cflags="
11568 s,///*,/,g
11569 s/^/ /
11570 s/ -I/ $isystem/g
11571 s/^ //
11573 GTK_CFLAGS=`$as_echo "$GTK_CFLAGS" | sed -e "$edit_cflags"`
11574 GTK_LIBS=`$as_echo "$GTK_LIBS" | sed -e 's,///*,/,g'`
11575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&5
11576 $as_echo "yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&6; }
11577 succeeded=yes
11578 else
11579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11580 $as_echo "no" >&6; }
11581 GTK_CFLAGS=""
11582 GTK_LIBS=""
11583 ## If we have a custom action on failure, don't print errors, but
11584 ## do set a variable so people can do so.
11585 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11591 else
11592 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11593 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11597 if test $succeeded = yes; then
11598 pkg_check_gtk=yes
11599 else
11600 pkg_check_gtk=no
11603 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
11604 as_fn_error "$GTK_PKG_ERRORS" "$LINENO" 5
11607 $as_echo "#define HAVE_GTK3 1" >>confdefs.h
11609 GTK_OBJ=emacsgtkfixed.o
11612 if test "$pkg_check_gtk" != "yes"; then
11613 HAVE_GTK=no
11614 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
11615 GLIB_REQUIRED=2.10
11616 GTK_REQUIRED=2.10
11617 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11620 succeeded=no
11622 # Extract the first word of "pkg-config", so it can be a program name with args.
11623 set dummy pkg-config; ac_word=$2
11624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11625 $as_echo_n "checking for $ac_word... " >&6; }
11626 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11627 $as_echo_n "(cached) " >&6
11628 else
11629 case $PKG_CONFIG in
11630 [\\/]* | ?:[\\/]*)
11631 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11635 for as_dir in $PATH
11637 IFS=$as_save_IFS
11638 test -z "$as_dir" && as_dir=.
11639 for ac_exec_ext in '' $ac_executable_extensions; do
11640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11641 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11643 break 2
11645 done
11646 done
11647 IFS=$as_save_IFS
11649 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11651 esac
11653 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11654 if test -n "$PKG_CONFIG"; then
11655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11656 $as_echo "$PKG_CONFIG" >&6; }
11657 else
11658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11659 $as_echo "no" >&6; }
11664 if test "$PKG_CONFIG" = "no" ; then
11665 pkg_check_gtk=no
11666 else
11667 PKG_CONFIG_MIN_VERSION=0.9.0
11668 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
11670 $as_echo_n "checking for $GTK_MODULES... " >&6; }
11672 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5 &&
11673 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES" 2>&5` &&
11674 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES" 2>&5`; then
11675 edit_cflags="
11676 s,///*,/,g
11677 s/^/ /
11678 s/ -I/ $isystem/g
11679 s/^ //
11681 GTK_CFLAGS=`$as_echo "$GTK_CFLAGS" | sed -e "$edit_cflags"`
11682 GTK_LIBS=`$as_echo "$GTK_LIBS" | sed -e 's,///*,/,g'`
11683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&5
11684 $as_echo "yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&6; }
11685 succeeded=yes
11686 else
11687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11688 $as_echo "no" >&6; }
11689 GTK_CFLAGS=""
11690 GTK_LIBS=""
11691 ## If we have a custom action on failure, don't print errors, but
11692 ## do set a variable so people can do so.
11693 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11699 else
11700 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11701 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11705 if test $succeeded = yes; then
11706 pkg_check_gtk=yes
11707 else
11708 pkg_check_gtk=no
11711 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
11712 as_fn_error "$GTK_PKG_ERRORS" "$LINENO" 5
11717 if test x"$pkg_check_gtk" = xyes; then
11721 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
11722 CFLAGS="$CFLAGS $GTK_CFLAGS"
11723 LIBS="$GTK_LIBS $LIBS"
11724 GTK_COMPILES=no
11725 for ac_func in gtk_main
11726 do :
11727 ac_fn_c_check_func "$LINENO" "gtk_main" "ac_cv_func_gtk_main"
11728 if test "x$ac_cv_func_gtk_main" = x""yes; then :
11729 cat >>confdefs.h <<_ACEOF
11730 #define HAVE_GTK_MAIN 1
11731 _ACEOF
11732 GTK_COMPILES=yes
11734 done
11736 if test "${GTK_COMPILES}" != "yes"; then
11737 if test "$USE_X_TOOLKIT" != "maybe"; then
11738 as_fn_error "Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
11740 else
11741 HAVE_GTK=yes
11743 $as_echo "#define USE_GTK 1" >>confdefs.h
11745 GTK_OBJ="gtkutil.o $GTK_OBJ"
11746 USE_X_TOOLKIT=none
11747 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
11749 else
11750 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
11751 closing open displays. This is no problem if you just use
11752 one display, but if you use more than one and close one of them
11753 Emacs may crash." >&5
11754 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
11755 closing open displays. This is no problem if you just use
11756 one display, but if you use more than one and close one of them
11757 Emacs may crash." >&2;}
11758 sleep 3
11766 if test "${HAVE_GTK}" = "yes"; then
11768 if test "$with_toolkit_scroll_bars" != no; then
11769 with_toolkit_scroll_bars=yes
11772 HAVE_GTK_FILE_SELECTION=no
11773 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
11774 #include <gtk/gtk.h>
11776 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x""yes; then :
11777 HAVE_GTK_FILE_SELECTION=yes
11778 else
11779 HAVE_GTK_FILE_SELECTION=no
11782 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
11783 for ac_func in gtk_file_selection_new
11784 do :
11785 ac_fn_c_check_func "$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
11786 if test "x$ac_cv_func_gtk_file_selection_new" = x""yes; then :
11787 cat >>confdefs.h <<_ACEOF
11788 #define HAVE_GTK_FILE_SELECTION_NEW 1
11789 _ACEOF
11792 done
11797 for ac_func in gtk_widget_get_window gtk_widget_set_has_window \
11798 gtk_dialog_get_action_area gtk_widget_get_sensitive \
11799 gtk_widget_get_mapped gtk_adjustment_get_page_size \
11800 gtk_orientable_set_orientation \
11801 gtk_window_set_has_resize_grip
11802 do :
11803 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11804 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11805 eval as_val=\$$as_ac_var
11806 if test "x$as_val" = x""yes; then :
11807 cat >>confdefs.h <<_ACEOF
11808 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11809 _ACEOF
11812 done
11816 HAVE_DBUS=no
11817 DBUS_OBJ=
11818 if test "${with_dbus}" = "yes"; then
11820 succeeded=no
11822 # Extract the first word of "pkg-config", so it can be a program name with args.
11823 set dummy pkg-config; ac_word=$2
11824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11825 $as_echo_n "checking for $ac_word... " >&6; }
11826 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11827 $as_echo_n "(cached) " >&6
11828 else
11829 case $PKG_CONFIG in
11830 [\\/]* | ?:[\\/]*)
11831 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11835 for as_dir in $PATH
11837 IFS=$as_save_IFS
11838 test -z "$as_dir" && as_dir=.
11839 for ac_exec_ext in '' $ac_executable_extensions; do
11840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11841 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11843 break 2
11845 done
11846 done
11847 IFS=$as_save_IFS
11849 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11851 esac
11853 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11854 if test -n "$PKG_CONFIG"; then
11855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11856 $as_echo "$PKG_CONFIG" >&6; }
11857 else
11858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11859 $as_echo "no" >&6; }
11864 if test "$PKG_CONFIG" = "no" ; then
11865 HAVE_DBUS=no
11866 else
11867 PKG_CONFIG_MIN_VERSION=0.9.0
11868 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
11870 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
11872 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5 &&
11873 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0" 2>&5` &&
11874 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0" 2>&5`; then
11875 edit_cflags="
11876 s,///*,/,g
11877 s/^/ /
11878 s/ -I/ $isystem/g
11879 s/^ //
11881 DBUS_CFLAGS=`$as_echo "$DBUS_CFLAGS" | sed -e "$edit_cflags"`
11882 DBUS_LIBS=`$as_echo "$DBUS_LIBS" | sed -e 's,///*,/,g'`
11883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$DBUS_CFLAGS' LIBS='$DBUS_LIBS'" >&5
11884 $as_echo "yes CFLAGS='$DBUS_CFLAGS' LIBS='$DBUS_LIBS'" >&6; }
11885 succeeded=yes
11886 else
11887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11888 $as_echo "no" >&6; }
11889 DBUS_CFLAGS=""
11890 DBUS_LIBS=""
11891 ## If we have a custom action on failure, don't print errors, but
11892 ## do set a variable so people can do so.
11893 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
11899 else
11900 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11901 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11905 if test $succeeded = yes; then
11906 HAVE_DBUS=yes
11907 else
11908 HAVE_DBUS=no
11911 if test "$HAVE_DBUS" = yes; then
11912 LIBS="$LIBS $DBUS_LIBS"
11914 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
11916 for ac_func in dbus_watch_get_unix_fd \
11917 dbus_validate_bus_name \
11918 dbus_validate_path \
11919 dbus_validate_interface \
11920 dbus_validate_member
11921 do :
11922 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11923 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11924 eval as_val=\$$as_ac_var
11925 if test "x$as_val" = x""yes; then :
11926 cat >>confdefs.h <<_ACEOF
11927 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11928 _ACEOF
11931 done
11933 DBUS_OBJ=dbusbind.o
11938 HAVE_GSETTINGS=no
11939 if test "${HAVE_X11}" = "yes" && test "${with_gsettings}" = "yes"; then
11941 succeeded=no
11943 # Extract the first word of "pkg-config", so it can be a program name with args.
11944 set dummy pkg-config; ac_word=$2
11945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11946 $as_echo_n "checking for $ac_word... " >&6; }
11947 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11948 $as_echo_n "(cached) " >&6
11949 else
11950 case $PKG_CONFIG in
11951 [\\/]* | ?:[\\/]*)
11952 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11956 for as_dir in $PATH
11958 IFS=$as_save_IFS
11959 test -z "$as_dir" && as_dir=.
11960 for ac_exec_ext in '' $ac_executable_extensions; do
11961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11962 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11964 break 2
11966 done
11967 done
11968 IFS=$as_save_IFS
11970 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11972 esac
11974 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11975 if test -n "$PKG_CONFIG"; then
11976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11977 $as_echo "$PKG_CONFIG" >&6; }
11978 else
11979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11980 $as_echo "no" >&6; }
11985 if test "$PKG_CONFIG" = "no" ; then
11986 HAVE_GSETTINGS=no
11987 else
11988 PKG_CONFIG_MIN_VERSION=0.9.0
11989 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gio-2.0 >= 2.26" >&5
11991 $as_echo_n "checking for gio-2.0 >= 2.26... " >&6; }
11993 if $PKG_CONFIG --exists "gio-2.0 >= 2.26" 2>&5 &&
11994 GSETTINGS_CFLAGS=`$PKG_CONFIG --cflags "gio-2.0 >= 2.26" 2>&5` &&
11995 GSETTINGS_LIBS=`$PKG_CONFIG --libs "gio-2.0 >= 2.26" 2>&5`; then
11996 edit_cflags="
11997 s,///*,/,g
11998 s/^/ /
11999 s/ -I/ $isystem/g
12000 s/^ //
12002 GSETTINGS_CFLAGS=`$as_echo "$GSETTINGS_CFLAGS" | sed -e "$edit_cflags"`
12003 GSETTINGS_LIBS=`$as_echo "$GSETTINGS_LIBS" | sed -e 's,///*,/,g'`
12004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GSETTINGS_CFLAGS' LIBS='$GSETTINGS_LIBS'" >&5
12005 $as_echo "yes CFLAGS='$GSETTINGS_CFLAGS' LIBS='$GSETTINGS_LIBS'" >&6; }
12006 succeeded=yes
12007 else
12008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12009 $as_echo "no" >&6; }
12010 GSETTINGS_CFLAGS=""
12011 GSETTINGS_LIBS=""
12012 ## If we have a custom action on failure, don't print errors, but
12013 ## do set a variable so people can do so.
12014 GSETTINGS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gio-2.0 >= 2.26"`
12020 else
12021 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12022 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12026 if test $succeeded = yes; then
12027 HAVE_GSETTINGS=yes
12028 else
12029 HAVE_GSETTINGS=no
12032 if test "$HAVE_GSETTINGS" = "yes"; then
12034 $as_echo "#define HAVE_GSETTINGS 1" >>confdefs.h
12036 SETTINGS_CFLAGS="$GSETTINGS_CFLAGS"
12037 SETTINGS_LIBS="$GSETTINGS_LIBS"
12041 HAVE_GCONF=no
12042 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
12044 succeeded=no
12046 # Extract the first word of "pkg-config", so it can be a program name with args.
12047 set dummy pkg-config; ac_word=$2
12048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12049 $as_echo_n "checking for $ac_word... " >&6; }
12050 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12051 $as_echo_n "(cached) " >&6
12052 else
12053 case $PKG_CONFIG in
12054 [\\/]* | ?:[\\/]*)
12055 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12059 for as_dir in $PATH
12061 IFS=$as_save_IFS
12062 test -z "$as_dir" && as_dir=.
12063 for ac_exec_ext in '' $ac_executable_extensions; do
12064 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12065 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12067 break 2
12069 done
12070 done
12071 IFS=$as_save_IFS
12073 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12075 esac
12077 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12078 if test -n "$PKG_CONFIG"; then
12079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12080 $as_echo "$PKG_CONFIG" >&6; }
12081 else
12082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12083 $as_echo "no" >&6; }
12088 if test "$PKG_CONFIG" = "no" ; then
12089 HAVE_GCONF=no
12090 else
12091 PKG_CONFIG_MIN_VERSION=0.9.0
12092 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
12094 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
12096 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5 &&
12097 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13" 2>&5` &&
12098 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13" 2>&5`; then
12099 edit_cflags="
12100 s,///*,/,g
12101 s/^/ /
12102 s/ -I/ $isystem/g
12103 s/^ //
12105 GCONF_CFLAGS=`$as_echo "$GCONF_CFLAGS" | sed -e "$edit_cflags"`
12106 GCONF_LIBS=`$as_echo "$GCONF_LIBS" | sed -e 's,///*,/,g'`
12107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GCONF_CFLAGS' LIBS='$GCONF_LIBS'" >&5
12108 $as_echo "yes CFLAGS='$GCONF_CFLAGS' LIBS='$GCONF_LIBS'" >&6; }
12109 succeeded=yes
12110 else
12111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12112 $as_echo "no" >&6; }
12113 GCONF_CFLAGS=""
12114 GCONF_LIBS=""
12115 ## If we have a custom action on failure, don't print errors, but
12116 ## do set a variable so people can do so.
12117 GCONF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
12123 else
12124 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12125 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12129 if test $succeeded = yes; then
12130 HAVE_GCONF=yes
12131 else
12132 HAVE_GCONF=no
12135 if test "$HAVE_GCONF" = yes; then
12137 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
12139 SETTINGS_CFLAGS="$SETTINGS_CFLAGS $GCONF_CFLAGS"
12140 SETTINGS_LIBS="$SETTINGS_LIBS $GCONF_LIBS"
12144 if test "$HAVE_GSETTINGS" = "yes" || test "$HAVE_GCONF" = "yes"; then
12145 SAVE_CFLAGS="$CFLAGS"
12146 SAVE_LIBS="$LIBS"
12147 CFLAGS="$SETTINGS_CFLAGS $CFLAGS"
12148 LIBS="$SETTINGS_LIBS $LIBS"
12149 for ac_func in g_type_init
12150 do :
12151 ac_fn_c_check_func "$LINENO" "g_type_init" "ac_cv_func_g_type_init"
12152 if test "x$ac_cv_func_g_type_init" = x""yes; then :
12153 cat >>confdefs.h <<_ACEOF
12154 #define HAVE_G_TYPE_INIT 1
12155 _ACEOF
12158 done
12160 CFLAGS="$SAVE_CFLAGS"
12161 LIBS="$SAVE_LIBS"
12167 HAVE_LIBSELINUX=no
12168 LIBSELINUX_LIBS=
12169 if test "${with_selinux}" = "yes"; then
12170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
12171 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
12172 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then :
12173 $as_echo_n "(cached) " >&6
12174 else
12175 ac_check_lib_save_LIBS=$LIBS
12176 LIBS="-lselinux $LIBS"
12177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12178 /* end confdefs.h. */
12180 /* Override any GCC internal prototype to avoid an error.
12181 Use char because int might match the return type of a GCC
12182 builtin and then its argument prototype would still apply. */
12183 #ifdef __cplusplus
12184 extern "C"
12185 #endif
12186 char lgetfilecon ();
12188 main ()
12190 return lgetfilecon ();
12192 return 0;
12194 _ACEOF
12195 if ac_fn_c_try_link "$LINENO"; then :
12196 ac_cv_lib_selinux_lgetfilecon=yes
12197 else
12198 ac_cv_lib_selinux_lgetfilecon=no
12200 rm -f core conftest.err conftest.$ac_objext \
12201 conftest$ac_exeext conftest.$ac_ext
12202 LIBS=$ac_check_lib_save_LIBS
12204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
12205 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
12206 if test "x$ac_cv_lib_selinux_lgetfilecon" = x""yes; then :
12207 HAVE_LIBSELINUX=yes
12208 else
12209 HAVE_LIBSELINUX=no
12212 if test "$HAVE_LIBSELINUX" = yes; then
12214 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
12216 LIBSELINUX_LIBS=-lselinux
12221 HAVE_GNUTLS=no
12222 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY=no
12223 if test "${with_gnutls}" = "yes" ; then
12225 succeeded=no
12227 # Extract the first word of "pkg-config", so it can be a program name with args.
12228 set dummy pkg-config; ac_word=$2
12229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12230 $as_echo_n "checking for $ac_word... " >&6; }
12231 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12232 $as_echo_n "(cached) " >&6
12233 else
12234 case $PKG_CONFIG in
12235 [\\/]* | ?:[\\/]*)
12236 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12240 for as_dir in $PATH
12242 IFS=$as_save_IFS
12243 test -z "$as_dir" && as_dir=.
12244 for ac_exec_ext in '' $ac_executable_extensions; do
12245 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12246 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12248 break 2
12250 done
12251 done
12252 IFS=$as_save_IFS
12254 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12256 esac
12258 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12259 if test -n "$PKG_CONFIG"; then
12260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12261 $as_echo "$PKG_CONFIG" >&6; }
12262 else
12263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12264 $as_echo "no" >&6; }
12269 if test "$PKG_CONFIG" = "no" ; then
12270 HAVE_GNUTLS=no
12271 else
12272 PKG_CONFIG_MIN_VERSION=0.9.0
12273 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.6.6" >&5
12275 $as_echo_n "checking for gnutls >= 2.6.6... " >&6; }
12277 if $PKG_CONFIG --exists "gnutls >= 2.6.6" 2>&5 &&
12278 LIBGNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls >= 2.6.6" 2>&5` &&
12279 LIBGNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls >= 2.6.6" 2>&5`; then
12280 edit_cflags="
12281 s,///*,/,g
12282 s/^/ /
12283 s/ -I/ $isystem/g
12284 s/^ //
12286 LIBGNUTLS_CFLAGS=`$as_echo "$LIBGNUTLS_CFLAGS" | sed -e "$edit_cflags"`
12287 LIBGNUTLS_LIBS=`$as_echo "$LIBGNUTLS_LIBS" | sed -e 's,///*,/,g'`
12288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBGNUTLS_CFLAGS' LIBS='$LIBGNUTLS_LIBS'" >&5
12289 $as_echo "yes CFLAGS='$LIBGNUTLS_CFLAGS' LIBS='$LIBGNUTLS_LIBS'" >&6; }
12290 succeeded=yes
12291 else
12292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12293 $as_echo "no" >&6; }
12294 LIBGNUTLS_CFLAGS=""
12295 LIBGNUTLS_LIBS=""
12296 ## If we have a custom action on failure, don't print errors, but
12297 ## do set a variable so people can do so.
12298 LIBGNUTLS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnutls >= 2.6.6"`
12304 else
12305 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12306 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12310 if test $succeeded = yes; then
12311 HAVE_GNUTLS=yes
12312 else
12313 HAVE_GNUTLS=no
12316 if test "${HAVE_GNUTLS}" = "yes"; then
12318 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
12322 CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
12323 LIBS="$LIBGNUTLS_LIBS $LIBS"
12324 for ac_func in gnutls_certificate_set_verify_function
12325 do :
12326 ac_fn_c_check_func "$LINENO" "gnutls_certificate_set_verify_function" "ac_cv_func_gnutls_certificate_set_verify_function"
12327 if test "x$ac_cv_func_gnutls_certificate_set_verify_function" = x""yes; then :
12328 cat >>confdefs.h <<_ACEOF
12329 #define HAVE_GNUTLS_CERTIFICATE_SET_VERIFY_FUNCTION 1
12330 _ACEOF
12331 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY=yes
12333 done
12336 if test "${HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY}" = "yes"; then
12338 $as_echo "#define HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY 1" >>confdefs.h
12346 HAVE_XAW3D=no
12347 LUCID_LIBW=
12348 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
12349 if test "$with_xaw3d" != no; then
12350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
12351 $as_echo_n "checking for xaw3d... " >&6; }
12352 if test "${emacs_cv_xaw3d+set}" = set; then :
12353 $as_echo_n "(cached) " >&6
12354 else
12355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12356 /* end confdefs.h. */
12358 #include <X11/Intrinsic.h>
12359 #include <X11/Xaw3d/Simple.h>
12361 main ()
12365 return 0;
12367 _ACEOF
12368 if ac_fn_c_try_link "$LINENO"; then :
12369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XawScrollbarSetThumb in -lXaw3d" >&5
12370 $as_echo_n "checking for XawScrollbarSetThumb in -lXaw3d... " >&6; }
12371 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then :
12372 $as_echo_n "(cached) " >&6
12373 else
12374 ac_check_lib_save_LIBS=$LIBS
12375 LIBS="-lXaw3d $LIBS"
12376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12377 /* end confdefs.h. */
12379 /* Override any GCC internal prototype to avoid an error.
12380 Use char because int might match the return type of a GCC
12381 builtin and then its argument prototype would still apply. */
12382 #ifdef __cplusplus
12383 extern "C"
12384 #endif
12385 char XawScrollbarSetThumb ();
12387 main ()
12389 return XawScrollbarSetThumb ();
12391 return 0;
12393 _ACEOF
12394 if ac_fn_c_try_link "$LINENO"; then :
12395 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
12396 else
12397 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
12399 rm -f core conftest.err conftest.$ac_objext \
12400 conftest$ac_exeext conftest.$ac_ext
12401 LIBS=$ac_check_lib_save_LIBS
12403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
12404 $as_echo "$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
12405 if test "x$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" = x""yes; then :
12406 emacs_cv_xaw3d=yes
12407 else
12408 emacs_cv_xaw3d=no
12411 else
12412 emacs_cv_xaw3d=no
12414 rm -f core conftest.err conftest.$ac_objext \
12415 conftest$ac_exeext conftest.$ac_ext
12418 else
12419 emacs_cv_xaw3d=no
12421 if test $emacs_cv_xaw3d = yes; then
12422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
12423 $as_echo "yes; using Lucid toolkit" >&6; }
12424 USE_X_TOOLKIT=LUCID
12425 HAVE_XAW3D=yes
12426 LUCID_LIBW=-lXaw3d
12428 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
12430 else
12431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12432 $as_echo "no" >&6; }
12433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
12434 $as_echo_n "checking for libXaw... " >&6; }
12435 if test "${emacs_cv_xaw+set}" = set; then :
12436 $as_echo_n "(cached) " >&6
12437 else
12438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12439 /* end confdefs.h. */
12441 #include <X11/Intrinsic.h>
12442 #include <X11/Xaw/Simple.h>
12444 main ()
12448 return 0;
12450 _ACEOF
12451 if ac_fn_c_try_link "$LINENO"; then :
12452 emacs_cv_xaw=yes
12453 else
12454 emacs_cv_xaw=no
12456 rm -f core conftest.err conftest.$ac_objext \
12457 conftest$ac_exeext conftest.$ac_ext
12460 if test $emacs_cv_xaw = yes; then
12461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
12462 $as_echo "yes; using Lucid toolkit" >&6; }
12463 USE_X_TOOLKIT=LUCID
12464 LUCID_LIBW=-lXaw
12465 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
12466 as_fn_error "Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
12467 else
12468 as_fn_error "No X toolkit could be found.
12469 If you are sure you want Emacs compiled without an X toolkit, pass
12470 --with-x-toolkit=no
12471 to configure. Otherwise, install the development libraries for the toolkit
12472 that you want to use (e.g. Gtk+) and re-run configure." "$LINENO" 5
12477 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
12479 LIBXTR6=
12480 if test "${USE_X_TOOLKIT}" != "none"; then
12481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
12482 $as_echo_n "checking X11 toolkit version... " >&6; }
12483 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then :
12484 $as_echo_n "(cached) " >&6
12485 else
12486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12487 /* end confdefs.h. */
12488 #include <X11/Intrinsic.h>
12490 main ()
12492 #if XtSpecificationRelease < 6
12493 fail;
12494 #endif
12497 return 0;
12499 _ACEOF
12500 if ac_fn_c_try_link "$LINENO"; then :
12501 emacs_cv_x11_toolkit_version_6=yes
12502 else
12503 emacs_cv_x11_toolkit_version_6=no
12505 rm -f core conftest.err conftest.$ac_objext \
12506 conftest$ac_exeext conftest.$ac_ext
12509 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
12510 if test $emacs_cv_x11_toolkit_version_6 = yes; then
12511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
12512 $as_echo "6 or newer" >&6; }
12514 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
12516 LIBXTR6="-lSM -lICE"
12517 case "$opsys" in
12518 ## Use libw.a along with X11R6 Xt.
12519 unixware) LIBXTR6="$LIBXTR6 -lw" ;;
12520 esac
12521 else
12522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
12523 $as_echo "before 6" >&6; }
12526 OLDLIBS="$LIBS"
12527 if test x$HAVE_X11XTR6 = xyes; then
12528 LIBS="-lXt -lSM -lICE $LIBS"
12529 else
12530 LIBS="-lXt $LIBS"
12532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
12533 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
12534 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then :
12535 $as_echo_n "(cached) " >&6
12536 else
12537 ac_check_lib_save_LIBS=$LIBS
12538 LIBS="-lXmu $LIBS"
12539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12540 /* end confdefs.h. */
12542 /* Override any GCC internal prototype to avoid an error.
12543 Use char because int might match the return type of a GCC
12544 builtin and then its argument prototype would still apply. */
12545 #ifdef __cplusplus
12546 extern "C"
12547 #endif
12548 char XmuConvertStandardSelection ();
12550 main ()
12552 return XmuConvertStandardSelection ();
12554 return 0;
12556 _ACEOF
12557 if ac_fn_c_try_link "$LINENO"; then :
12558 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
12559 else
12560 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
12562 rm -f core conftest.err conftest.$ac_objext \
12563 conftest$ac_exeext conftest.$ac_ext
12564 LIBS=$ac_check_lib_save_LIBS
12566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
12567 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
12568 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x""yes; then :
12569 cat >>confdefs.h <<_ACEOF
12570 #define HAVE_LIBXMU 1
12571 _ACEOF
12573 LIBS="-lXmu $LIBS"
12577 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
12581 LIBXMU=-lXmu
12582 case $opsys in
12583 ## These systems don't supply Xmu.
12584 hpux* | aix4-2 )
12585 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU=
12587 esac
12590 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12591 if test "${HAVE_X11}" = "yes"; then
12592 if test "${USE_X_TOOLKIT}" != "none"; then
12593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
12594 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
12595 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
12596 $as_echo_n "(cached) " >&6
12597 else
12598 ac_check_lib_save_LIBS=$LIBS
12599 LIBS="-lXext $LIBS"
12600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12601 /* end confdefs.h. */
12603 /* Override any GCC internal prototype to avoid an error.
12604 Use char because int might match the return type of a GCC
12605 builtin and then its argument prototype would still apply. */
12606 #ifdef __cplusplus
12607 extern "C"
12608 #endif
12609 char XShapeQueryExtension ();
12611 main ()
12613 return XShapeQueryExtension ();
12615 return 0;
12617 _ACEOF
12618 if ac_fn_c_try_link "$LINENO"; then :
12619 ac_cv_lib_Xext_XShapeQueryExtension=yes
12620 else
12621 ac_cv_lib_Xext_XShapeQueryExtension=no
12623 rm -f core conftest.err conftest.$ac_objext \
12624 conftest$ac_exeext conftest.$ac_ext
12625 LIBS=$ac_check_lib_save_LIBS
12627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12628 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12629 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then :
12630 cat >>confdefs.h <<_ACEOF
12631 #define HAVE_LIBXEXT 1
12632 _ACEOF
12634 LIBS="-lXext $LIBS"
12641 LIBXP=
12642 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif version 2.1" >&5
12644 $as_echo_n "checking for Motif version 2.1... " >&6; }
12645 if test "${emacs_cv_motif_version_2_1+set}" = set; then :
12646 $as_echo_n "(cached) " >&6
12647 else
12648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12649 /* end confdefs.h. */
12650 #include <Xm/Xm.h>
12652 main ()
12654 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12655 int x = 5;
12656 #else
12657 Motif version prior to 2.1.
12658 #endif
12660 return 0;
12662 _ACEOF
12663 if ac_fn_c_try_compile "$LINENO"; then :
12664 emacs_cv_motif_version_2_1=yes
12665 else
12666 emacs_cv_motif_version_2_1=no
12668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
12671 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
12672 if test $emacs_cv_motif_version_2_1 = yes; then
12673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
12674 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
12675 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then :
12676 $as_echo_n "(cached) " >&6
12677 else
12678 ac_check_lib_save_LIBS=$LIBS
12679 LIBS="-lXp $LIBS"
12680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12681 /* end confdefs.h. */
12683 /* Override any GCC internal prototype to avoid an error.
12684 Use char because int might match the return type of a GCC
12685 builtin and then its argument prototype would still apply. */
12686 #ifdef __cplusplus
12687 extern "C"
12688 #endif
12689 char XpCreateContext ();
12691 main ()
12693 return XpCreateContext ();
12695 return 0;
12697 _ACEOF
12698 if ac_fn_c_try_link "$LINENO"; then :
12699 ac_cv_lib_Xp_XpCreateContext=yes
12700 else
12701 ac_cv_lib_Xp_XpCreateContext=no
12703 rm -f core conftest.err conftest.$ac_objext \
12704 conftest$ac_exeext conftest.$ac_ext
12705 LIBS=$ac_check_lib_save_LIBS
12707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12708 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
12709 if test "x$ac_cv_lib_Xp_XpCreateContext" = x""yes; then :
12710 LIBXP=-lXp
12713 else
12714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
12715 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
12716 if test "${emacs_cv_lesstif+set}" = set; then :
12717 $as_echo_n "(cached) " >&6
12718 else
12719 # We put this in CFLAGS temporarily to precede other -I options
12720 # that might be in CFLAGS temporarily.
12721 # We put this in CPPFLAGS where it precedes the other -I options.
12722 OLD_CPPFLAGS=$CPPFLAGS
12723 OLD_CFLAGS=$CFLAGS
12724 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12725 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12727 /* end confdefs.h. */
12728 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12730 main ()
12732 int x = 5;
12734 return 0;
12736 _ACEOF
12737 if ac_fn_c_try_compile "$LINENO"; then :
12738 emacs_cv_lesstif=yes
12739 else
12740 emacs_cv_lesstif=no
12742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
12745 $as_echo "$emacs_cv_lesstif" >&6; }
12746 if test $emacs_cv_lesstif = yes; then
12747 # Make sure this -I option remains in CPPFLAGS after it is set
12748 # back to REAL_CPPFLAGS.
12749 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12750 # have those other -I options anyway. Ultimately, having this
12751 # directory ultimately in CPPFLAGS will be enough.
12752 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12753 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12754 else
12755 CFLAGS=$OLD_CFLAGS
12756 CPPFLAGS=$OLD_CPPFLAGS
12759 ac_fn_c_check_header_mongrel "$LINENO" "Xm/BulletinB.h" "ac_cv_header_Xm_BulletinB_h" "$ac_includes_default"
12760 if test "x$ac_cv_header_Xm_BulletinB_h" = x""yes; then :
12762 else
12763 as_fn_error "Motif toolkit requested but requirements not found." "$LINENO" 5
12770 USE_TOOLKIT_SCROLL_BARS=no
12771 if test "${with_toolkit_scroll_bars}" != "no"; then
12772 if test "${USE_X_TOOLKIT}" != "none"; then
12773 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12774 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12776 HAVE_XAW3D=no
12777 USE_TOOLKIT_SCROLL_BARS=yes
12778 elif test "${HAVE_XAW3D}" = "yes" || test "${USE_X_TOOLKIT}" = "LUCID"; then
12779 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12781 USE_TOOLKIT_SCROLL_BARS=yes
12783 elif test "${HAVE_GTK}" = "yes"; then
12784 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12786 USE_TOOLKIT_SCROLL_BARS=yes
12787 elif test "${HAVE_NS}" = "yes"; then
12788 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12790 USE_TOOLKIT_SCROLL_BARS=yes
12794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12795 /* end confdefs.h. */
12797 #include <X11/Xlib.h>
12798 #include <X11/Xresource.h>
12800 main ()
12802 XIMProc callback;
12804 return 0;
12806 _ACEOF
12807 if ac_fn_c_try_compile "$LINENO"; then :
12808 HAVE_XIM=yes
12810 $as_echo "#define HAVE_XIM 1" >>confdefs.h
12812 else
12813 HAVE_XIM=no
12815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12818 if test "${with_xim}" != "no"; then
12820 $as_echo "#define USE_XIM 1" >>confdefs.h
12825 if test "${HAVE_XIM}" != "no"; then
12826 late_CFLAGS=$CFLAGS
12827 if test "$GCC" = yes; then
12828 CFLAGS="$CFLAGS --pedantic-errors"
12830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12831 /* end confdefs.h. */
12833 #include <X11/Xlib.h>
12834 #include <X11/Xresource.h>
12836 main ()
12838 Display *display;
12839 XrmDatabase db;
12840 char *res_name;
12841 char *res_class;
12842 XIMProc callback;
12843 XPointer *client_data;
12844 #ifndef __GNUC__
12845 /* If we're not using GCC, it's probably not XFree86, and this is
12846 probably right, but we can't use something like --pedantic-errors. */
12847 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12848 char*, XIMProc, XPointer*);
12849 #endif
12850 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12851 client_data);
12853 return 0;
12855 _ACEOF
12856 if ac_fn_c_try_compile "$LINENO"; then :
12857 emacs_cv_arg6_star=yes
12859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12860 if test "$emacs_cv_arg6_star" = yes; then
12861 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
12863 else
12864 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
12867 CFLAGS=$late_CFLAGS
12870 ### Start of font-backend (under any platform) section.
12871 # (nothing here yet -- this is a placeholder)
12872 ### End of font-backend (under any platform) section.
12874 ### Start of font-backend (under X11) section.
12875 if test "${HAVE_X11}" = "yes"; then
12877 succeeded=no
12879 # Extract the first word of "pkg-config", so it can be a program name with args.
12880 set dummy pkg-config; ac_word=$2
12881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12882 $as_echo_n "checking for $ac_word... " >&6; }
12883 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12884 $as_echo_n "(cached) " >&6
12885 else
12886 case $PKG_CONFIG in
12887 [\\/]* | ?:[\\/]*)
12888 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12892 for as_dir in $PATH
12894 IFS=$as_save_IFS
12895 test -z "$as_dir" && as_dir=.
12896 for ac_exec_ext in '' $ac_executable_extensions; do
12897 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12898 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12900 break 2
12902 done
12903 done
12904 IFS=$as_save_IFS
12906 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12908 esac
12910 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12911 if test -n "$PKG_CONFIG"; then
12912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12913 $as_echo "$PKG_CONFIG" >&6; }
12914 else
12915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12916 $as_echo "no" >&6; }
12921 if test "$PKG_CONFIG" = "no" ; then
12922 HAVE_FC=no
12923 else
12924 PKG_CONFIG_MIN_VERSION=0.9.0
12925 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
12927 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
12929 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5 &&
12930 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0" 2>&5` &&
12931 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0" 2>&5`; then
12932 edit_cflags="
12933 s,///*,/,g
12934 s/^/ /
12935 s/ -I/ $isystem/g
12936 s/^ //
12938 FONTCONFIG_CFLAGS=`$as_echo "$FONTCONFIG_CFLAGS" | sed -e "$edit_cflags"`
12939 FONTCONFIG_LIBS=`$as_echo "$FONTCONFIG_LIBS" | sed -e 's,///*,/,g'`
12940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$FONTCONFIG_CFLAGS' LIBS='$FONTCONFIG_LIBS'" >&5
12941 $as_echo "yes CFLAGS='$FONTCONFIG_CFLAGS' LIBS='$FONTCONFIG_LIBS'" >&6; }
12942 succeeded=yes
12943 else
12944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12945 $as_echo "no" >&6; }
12946 FONTCONFIG_CFLAGS=""
12947 FONTCONFIG_LIBS=""
12948 ## If we have a custom action on failure, don't print errors, but
12949 ## do set a variable so people can do so.
12950 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
12956 else
12957 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12958 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12962 if test $succeeded = yes; then
12963 HAVE_FC=yes
12964 else
12965 HAVE_FC=no
12969 ## Use -lXft if available, unless `--with-xft=no'.
12970 HAVE_XFT=maybe
12971 if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then
12972 with_xft="no";
12974 if test "x${with_xft}" != "xno"; then
12977 succeeded=no
12979 # Extract the first word of "pkg-config", so it can be a program name with args.
12980 set dummy pkg-config; ac_word=$2
12981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12982 $as_echo_n "checking for $ac_word... " >&6; }
12983 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12984 $as_echo_n "(cached) " >&6
12985 else
12986 case $PKG_CONFIG in
12987 [\\/]* | ?:[\\/]*)
12988 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12992 for as_dir in $PATH
12994 IFS=$as_save_IFS
12995 test -z "$as_dir" && as_dir=.
12996 for ac_exec_ext in '' $ac_executable_extensions; do
12997 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12998 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13000 break 2
13002 done
13003 done
13004 IFS=$as_save_IFS
13006 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13008 esac
13010 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13011 if test -n "$PKG_CONFIG"; then
13012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13013 $as_echo "$PKG_CONFIG" >&6; }
13014 else
13015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13016 $as_echo "no" >&6; }
13021 if test "$PKG_CONFIG" = "no" ; then
13022 HAVE_XFT=no
13023 else
13024 PKG_CONFIG_MIN_VERSION=0.9.0
13025 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
13027 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
13029 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5 &&
13030 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0" 2>&5` &&
13031 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0" 2>&5`; then
13032 edit_cflags="
13033 s,///*,/,g
13034 s/^/ /
13035 s/ -I/ $isystem/g
13036 s/^ //
13038 XFT_CFLAGS=`$as_echo "$XFT_CFLAGS" | sed -e "$edit_cflags"`
13039 XFT_LIBS=`$as_echo "$XFT_LIBS" | sed -e 's,///*,/,g'`
13040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$XFT_CFLAGS' LIBS='$XFT_LIBS'" >&5
13041 $as_echo "yes CFLAGS='$XFT_CFLAGS' LIBS='$XFT_LIBS'" >&6; }
13042 succeeded=yes
13043 else
13044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13045 $as_echo "no" >&6; }
13046 XFT_CFLAGS=""
13047 XFT_LIBS=""
13048 ## If we have a custom action on failure, don't print errors, but
13049 ## do set a variable so people can do so.
13050 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
13056 else
13057 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13058 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13062 if test $succeeded = yes; then
13064 else
13065 HAVE_XFT=no
13068 ## Because xftfont.c uses XRenderQueryExtension, we also
13069 ## need to link to -lXrender.
13070 HAVE_XRENDER=no
13071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
13072 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
13073 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
13074 $as_echo_n "(cached) " >&6
13075 else
13076 ac_check_lib_save_LIBS=$LIBS
13077 LIBS="-lXrender $LIBS"
13078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13079 /* end confdefs.h. */
13081 /* Override any GCC internal prototype to avoid an error.
13082 Use char because int might match the return type of a GCC
13083 builtin and then its argument prototype would still apply. */
13084 #ifdef __cplusplus
13085 extern "C"
13086 #endif
13087 char XRenderQueryExtension ();
13089 main ()
13091 return XRenderQueryExtension ();
13093 return 0;
13095 _ACEOF
13096 if ac_fn_c_try_link "$LINENO"; then :
13097 ac_cv_lib_Xrender_XRenderQueryExtension=yes
13098 else
13099 ac_cv_lib_Xrender_XRenderQueryExtension=no
13101 rm -f core conftest.err conftest.$ac_objext \
13102 conftest$ac_exeext conftest.$ac_ext
13103 LIBS=$ac_check_lib_save_LIBS
13105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
13106 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
13107 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x""yes; then :
13108 HAVE_XRENDER=yes
13111 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
13112 OLD_CPPFLAGS="$CPPFLAGS"
13113 OLD_CFLAGS="$CFLAGS"
13114 OLD_LIBS="$LIBS"
13115 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
13116 CFLAGS="$CFLAGS $XFT_CFLAGS"
13117 XFT_LIBS="-lXrender $XFT_LIBS"
13118 LIBS="$XFT_LIBS $LIBS"
13119 ac_fn_c_check_header_mongrel "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
13120 if test "x$ac_cv_header_X11_Xft_Xft_h" = x""yes; then :
13121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
13122 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
13123 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then :
13124 $as_echo_n "(cached) " >&6
13125 else
13126 ac_check_lib_save_LIBS=$LIBS
13127 LIBS="-lXft $XFT_LIBS $LIBS"
13128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13129 /* end confdefs.h. */
13131 /* Override any GCC internal prototype to avoid an error.
13132 Use char because int might match the return type of a GCC
13133 builtin and then its argument prototype would still apply. */
13134 #ifdef __cplusplus
13135 extern "C"
13136 #endif
13137 char XftFontOpen ();
13139 main ()
13141 return XftFontOpen ();
13143 return 0;
13145 _ACEOF
13146 if ac_fn_c_try_link "$LINENO"; then :
13147 ac_cv_lib_Xft_XftFontOpen=yes
13148 else
13149 ac_cv_lib_Xft_XftFontOpen=no
13151 rm -f core conftest.err conftest.$ac_objext \
13152 conftest$ac_exeext conftest.$ac_ext
13153 LIBS=$ac_check_lib_save_LIBS
13155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
13156 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
13157 if test "x$ac_cv_lib_Xft_XftFontOpen" = x""yes; then :
13158 HAVE_XFT=yes
13165 if test "${HAVE_XFT}" = "yes"; then
13167 $as_echo "#define HAVE_XFT 1" >>confdefs.h
13170 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
13171 else
13172 CPPFLAGS="$OLD_CPPFLAGS"
13173 CFLAGS="$OLD_CFLAGS"
13174 LIBS="$OLD_LIBS"
13175 fi # "${HAVE_XFT}" = "yes"
13176 fi # "$HAVE_XFT" != no
13177 fi # "x${with_xft}" != "xno"
13179 ## We used to allow building with FreeType and without Xft.
13180 ## However, the ftx font backend driver is not in good shape.
13181 if test "$HAVE_XFT" != "yes"; then
13182 HAVE_XFT=no
13183 HAVE_FREETYPE=no
13184 else
13186 succeeded=no
13188 # Extract the first word of "pkg-config", so it can be a program name with args.
13189 set dummy pkg-config; ac_word=$2
13190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13191 $as_echo_n "checking for $ac_word... " >&6; }
13192 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
13193 $as_echo_n "(cached) " >&6
13194 else
13195 case $PKG_CONFIG in
13196 [\\/]* | ?:[\\/]*)
13197 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13201 for as_dir in $PATH
13203 IFS=$as_save_IFS
13204 test -z "$as_dir" && as_dir=.
13205 for ac_exec_ext in '' $ac_executable_extensions; do
13206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13207 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13209 break 2
13211 done
13212 done
13213 IFS=$as_save_IFS
13215 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13217 esac
13219 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13220 if test -n "$PKG_CONFIG"; then
13221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13222 $as_echo "$PKG_CONFIG" >&6; }
13223 else
13224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13225 $as_echo "no" >&6; }
13230 if test "$PKG_CONFIG" = "no" ; then
13231 HAVE_FREETYPE=no
13232 else
13233 PKG_CONFIG_MIN_VERSION=0.9.0
13234 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype2" >&5
13236 $as_echo_n "checking for freetype2... " >&6; }
13238 if $PKG_CONFIG --exists "freetype2" 2>&5 &&
13239 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>&5` &&
13240 FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2" 2>&5`; then
13241 edit_cflags="
13242 s,///*,/,g
13243 s/^/ /
13244 s/ -I/ $isystem/g
13245 s/^ //
13247 FREETYPE_CFLAGS=`$as_echo "$FREETYPE_CFLAGS" | sed -e "$edit_cflags"`
13248 FREETYPE_LIBS=`$as_echo "$FREETYPE_LIBS" | sed -e 's,///*,/,g'`
13249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$FREETYPE_CFLAGS' LIBS='$FREETYPE_LIBS'" >&5
13250 $as_echo "yes CFLAGS='$FREETYPE_CFLAGS' LIBS='$FREETYPE_LIBS'" >&6; }
13251 succeeded=yes
13252 else
13253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13254 $as_echo "no" >&6; }
13255 FREETYPE_CFLAGS=""
13256 FREETYPE_LIBS=""
13257 ## If we have a custom action on failure, don't print errors, but
13258 ## do set a variable so people can do so.
13259 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
13265 else
13266 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13267 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13271 if test $succeeded = yes; then
13272 HAVE_FREETYPE=yes
13273 else
13274 HAVE_FREETYPE=no
13278 test "$HAVE_FREETYPE" = "no" && as_fn_error "libxft requires libfreetype" "$LINENO" 5
13281 HAVE_LIBOTF=no
13282 if test "${HAVE_FREETYPE}" = "yes"; then
13284 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
13286 if test "${with_libotf}" != "no"; then
13288 succeeded=no
13290 # Extract the first word of "pkg-config", so it can be a program name with args.
13291 set dummy pkg-config; ac_word=$2
13292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13293 $as_echo_n "checking for $ac_word... " >&6; }
13294 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
13295 $as_echo_n "(cached) " >&6
13296 else
13297 case $PKG_CONFIG in
13298 [\\/]* | ?:[\\/]*)
13299 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13303 for as_dir in $PATH
13305 IFS=$as_save_IFS
13306 test -z "$as_dir" && as_dir=.
13307 for ac_exec_ext in '' $ac_executable_extensions; do
13308 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13309 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13311 break 2
13313 done
13314 done
13315 IFS=$as_save_IFS
13317 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13319 esac
13321 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13322 if test -n "$PKG_CONFIG"; then
13323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13324 $as_echo "$PKG_CONFIG" >&6; }
13325 else
13326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13327 $as_echo "no" >&6; }
13332 if test "$PKG_CONFIG" = "no" ; then
13333 HAVE_LIBOTF=no
13334 else
13335 PKG_CONFIG_MIN_VERSION=0.9.0
13336 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
13338 $as_echo_n "checking for libotf... " >&6; }
13340 if $PKG_CONFIG --exists "libotf" 2>&5 &&
13341 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf" 2>&5` &&
13342 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf" 2>&5`; then
13343 edit_cflags="
13344 s,///*,/,g
13345 s/^/ /
13346 s/ -I/ $isystem/g
13347 s/^ //
13349 LIBOTF_CFLAGS=`$as_echo "$LIBOTF_CFLAGS" | sed -e "$edit_cflags"`
13350 LIBOTF_LIBS=`$as_echo "$LIBOTF_LIBS" | sed -e 's,///*,/,g'`
13351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBOTF_CFLAGS' LIBS='$LIBOTF_LIBS'" >&5
13352 $as_echo "yes CFLAGS='$LIBOTF_CFLAGS' LIBS='$LIBOTF_LIBS'" >&6; }
13353 succeeded=yes
13354 else
13355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13356 $as_echo "no" >&6; }
13357 LIBOTF_CFLAGS=""
13358 LIBOTF_LIBS=""
13359 ## If we have a custom action on failure, don't print errors, but
13360 ## do set a variable so people can do so.
13361 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
13367 else
13368 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13369 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13373 if test $succeeded = yes; then
13374 HAVE_LIBOTF=yes
13375 else
13376 HAVE_LIBOTF=no
13379 if test "$HAVE_LIBOTF" = "yes"; then
13381 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
13383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
13384 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
13385 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then :
13386 $as_echo_n "(cached) " >&6
13387 else
13388 ac_check_lib_save_LIBS=$LIBS
13389 LIBS="-lotf $LIBS"
13390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13391 /* end confdefs.h. */
13393 /* Override any GCC internal prototype to avoid an error.
13394 Use char because int might match the return type of a GCC
13395 builtin and then its argument prototype would still apply. */
13396 #ifdef __cplusplus
13397 extern "C"
13398 #endif
13399 char OTF_get_variation_glyphs ();
13401 main ()
13403 return OTF_get_variation_glyphs ();
13405 return 0;
13407 _ACEOF
13408 if ac_fn_c_try_link "$LINENO"; then :
13409 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
13410 else
13411 ac_cv_lib_otf_OTF_get_variation_glyphs=no
13413 rm -f core conftest.err conftest.$ac_objext \
13414 conftest$ac_exeext conftest.$ac_ext
13415 LIBS=$ac_check_lib_save_LIBS
13417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
13418 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
13419 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x""yes; then :
13420 HAVE_OTF_GET_VARIATION_GLYPHS=yes
13421 else
13422 HAVE_OTF_GET_VARIATION_GLYPHS=no
13425 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
13427 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
13434 HAVE_M17N_FLT=no
13435 if test "${HAVE_LIBOTF}" = yes; then
13436 if test "${with_m17n_flt}" != "no"; then
13438 succeeded=no
13440 # Extract the first word of "pkg-config", so it can be a program name with args.
13441 set dummy pkg-config; ac_word=$2
13442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13443 $as_echo_n "checking for $ac_word... " >&6; }
13444 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
13445 $as_echo_n "(cached) " >&6
13446 else
13447 case $PKG_CONFIG in
13448 [\\/]* | ?:[\\/]*)
13449 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13453 for as_dir in $PATH
13455 IFS=$as_save_IFS
13456 test -z "$as_dir" && as_dir=.
13457 for ac_exec_ext in '' $ac_executable_extensions; do
13458 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13459 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13461 break 2
13463 done
13464 done
13465 IFS=$as_save_IFS
13467 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13469 esac
13471 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13472 if test -n "$PKG_CONFIG"; then
13473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13474 $as_echo "$PKG_CONFIG" >&6; }
13475 else
13476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13477 $as_echo "no" >&6; }
13482 if test "$PKG_CONFIG" = "no" ; then
13483 HAVE_M17N_FLT=no
13484 else
13485 PKG_CONFIG_MIN_VERSION=0.9.0
13486 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
13488 $as_echo_n "checking for m17n-flt... " >&6; }
13490 if $PKG_CONFIG --exists "m17n-flt" 2>&5 &&
13491 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt" 2>&5` &&
13492 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt" 2>&5`; then
13493 edit_cflags="
13494 s,///*,/,g
13495 s/^/ /
13496 s/ -I/ $isystem/g
13497 s/^ //
13499 M17N_FLT_CFLAGS=`$as_echo "$M17N_FLT_CFLAGS" | sed -e "$edit_cflags"`
13500 M17N_FLT_LIBS=`$as_echo "$M17N_FLT_LIBS" | sed -e 's,///*,/,g'`
13501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$M17N_FLT_CFLAGS' LIBS='$M17N_FLT_LIBS'" >&5
13502 $as_echo "yes CFLAGS='$M17N_FLT_CFLAGS' LIBS='$M17N_FLT_LIBS'" >&6; }
13503 succeeded=yes
13504 else
13505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13506 $as_echo "no" >&6; }
13507 M17N_FLT_CFLAGS=""
13508 M17N_FLT_LIBS=""
13509 ## If we have a custom action on failure, don't print errors, but
13510 ## do set a variable so people can do so.
13511 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
13517 else
13518 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13519 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13523 if test $succeeded = yes; then
13524 HAVE_M17N_FLT=yes
13525 else
13526 HAVE_M17N_FLT=no
13529 if test "$HAVE_M17N_FLT" = "yes"; then
13531 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
13536 else
13537 HAVE_XFT=no
13538 HAVE_FREETYPE=no
13539 HAVE_LIBOTF=no
13540 HAVE_M17N_FLT=no
13543 ### End of font-backend (under X11) section.
13554 ### Use -lXpm if available, unless `--with-xpm=no'.
13555 HAVE_XPM=no
13556 LIBXPM=
13557 if test "${HAVE_X11}" = "yes"; then
13558 if test "${with_xpm}" != "no"; then
13559 ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
13560 if test "x$ac_cv_header_X11_xpm_h" = x""yes; then :
13561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
13562 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
13563 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then :
13564 $as_echo_n "(cached) " >&6
13565 else
13566 ac_check_lib_save_LIBS=$LIBS
13567 LIBS="-lXpm -lX11 $LIBS"
13568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13569 /* end confdefs.h. */
13571 /* Override any GCC internal prototype to avoid an error.
13572 Use char because int might match the return type of a GCC
13573 builtin and then its argument prototype would still apply. */
13574 #ifdef __cplusplus
13575 extern "C"
13576 #endif
13577 char XpmReadFileToPixmap ();
13579 main ()
13581 return XpmReadFileToPixmap ();
13583 return 0;
13585 _ACEOF
13586 if ac_fn_c_try_link "$LINENO"; then :
13587 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
13588 else
13589 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
13591 rm -f core conftest.err conftest.$ac_objext \
13592 conftest$ac_exeext conftest.$ac_ext
13593 LIBS=$ac_check_lib_save_LIBS
13595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
13596 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
13597 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x""yes; then :
13598 HAVE_XPM=yes
13604 if test "${HAVE_XPM}" = "yes"; then
13605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
13606 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
13607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13608 /* end confdefs.h. */
13609 #include "X11/xpm.h"
13610 #ifndef XpmReturnAllocPixels
13611 no_return_alloc_pixels
13612 #endif
13614 _ACEOF
13615 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13616 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then :
13617 HAVE_XPM=no
13618 else
13619 HAVE_XPM=yes
13621 rm -f conftest*
13624 if test "${HAVE_XPM}" = "yes"; then
13625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13626 $as_echo "yes" >&6; }
13627 else
13628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13629 $as_echo "no" >&6; }
13634 if test "${HAVE_XPM}" = "yes"; then
13636 $as_echo "#define HAVE_XPM 1" >>confdefs.h
13638 LIBXPM=-lXpm
13643 ### Use -ljpeg if available, unless `--with-jpeg=no'.
13644 HAVE_JPEG=no
13645 LIBJPEG=
13646 if test "${HAVE_X11}" = "yes"; then
13647 if test "${with_jpeg}" != "no"; then
13648 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
13649 if test "x$ac_cv_header_jerror_h" = x""yes; then :
13650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
13651 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
13652 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then :
13653 $as_echo_n "(cached) " >&6
13654 else
13655 ac_check_lib_save_LIBS=$LIBS
13656 LIBS="-ljpeg $LIBS"
13657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13658 /* end confdefs.h. */
13660 /* Override any GCC internal prototype to avoid an error.
13661 Use char because int might match the return type of a GCC
13662 builtin and then its argument prototype would still apply. */
13663 #ifdef __cplusplus
13664 extern "C"
13665 #endif
13666 char jpeg_destroy_compress ();
13668 main ()
13670 return jpeg_destroy_compress ();
13672 return 0;
13674 _ACEOF
13675 if ac_fn_c_try_link "$LINENO"; then :
13676 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
13677 else
13678 ac_cv_lib_jpeg_jpeg_destroy_compress=no
13680 rm -f core conftest.err conftest.$ac_objext \
13681 conftest$ac_exeext conftest.$ac_ext
13682 LIBS=$ac_check_lib_save_LIBS
13684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13685 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13686 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x""yes; then :
13687 HAVE_JPEG=yes
13695 if test "${HAVE_JPEG}" = "yes"; then
13696 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
13698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13699 /* end confdefs.h. */
13700 #include <jpeglib.h>
13701 version=JPEG_LIB_VERSION
13703 _ACEOF
13704 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13705 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then :
13706 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
13708 else
13709 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
13710 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13711 HAVE_JPEG=no
13713 rm -f conftest*
13716 if test "${HAVE_JPEG}" = "yes"; then
13717 LIBJPEG=-ljpeg
13722 ### Use -lpng if available, unless `--with-png=no'.
13723 HAVE_PNG=no
13724 LIBPNG=
13725 if test "${HAVE_X11}" = "yes"; then
13726 if test "${with_png}" != "no"; then
13727 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13728 # in /usr/include/libpng.
13729 for ac_header in png.h libpng/png.h
13730 do :
13731 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13732 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13733 eval as_val=\$$as_ac_Header
13734 if test "x$as_val" = x""yes; then :
13735 cat >>confdefs.h <<_ACEOF
13736 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13737 _ACEOF
13741 done
13743 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
13744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
13745 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
13746 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then :
13747 $as_echo_n "(cached) " >&6
13748 else
13749 ac_check_lib_save_LIBS=$LIBS
13750 LIBS="-lpng -lz -lm $LIBS"
13751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13752 /* end confdefs.h. */
13754 /* Override any GCC internal prototype to avoid an error.
13755 Use char because int might match the return type of a GCC
13756 builtin and then its argument prototype would still apply. */
13757 #ifdef __cplusplus
13758 extern "C"
13759 #endif
13760 char png_get_channels ();
13762 main ()
13764 return png_get_channels ();
13766 return 0;
13768 _ACEOF
13769 if ac_fn_c_try_link "$LINENO"; then :
13770 ac_cv_lib_png_png_get_channels=yes
13771 else
13772 ac_cv_lib_png_png_get_channels=no
13774 rm -f core conftest.err conftest.$ac_objext \
13775 conftest$ac_exeext conftest.$ac_ext
13776 LIBS=$ac_check_lib_save_LIBS
13778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
13779 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
13780 if test "x$ac_cv_lib_png_png_get_channels" = x""yes; then :
13781 HAVE_PNG=yes
13787 if test "${HAVE_PNG}" = "yes"; then
13789 $as_echo "#define HAVE_PNG 1" >>confdefs.h
13791 LIBPNG="-lpng -lz -lm"
13796 ### Use -ltiff if available, unless `--with-tiff=no'.
13797 HAVE_TIFF=no
13798 LIBTIFF=
13799 if test "${HAVE_X11}" = "yes"; then
13800 if test "${with_tiff}" != "no"; then
13801 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
13802 if test "x$ac_cv_header_tiffio_h" = x""yes; then :
13803 tifflibs="-lz -lm"
13804 # At least one tiff package requires the jpeg library.
13805 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
13806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
13807 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
13808 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then :
13809 $as_echo_n "(cached) " >&6
13810 else
13811 ac_check_lib_save_LIBS=$LIBS
13812 LIBS="-ltiff $tifflibs $LIBS"
13813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13814 /* end confdefs.h. */
13816 /* Override any GCC internal prototype to avoid an error.
13817 Use char because int might match the return type of a GCC
13818 builtin and then its argument prototype would still apply. */
13819 #ifdef __cplusplus
13820 extern "C"
13821 #endif
13822 char TIFFGetVersion ();
13824 main ()
13826 return TIFFGetVersion ();
13828 return 0;
13830 _ACEOF
13831 if ac_fn_c_try_link "$LINENO"; then :
13832 ac_cv_lib_tiff_TIFFGetVersion=yes
13833 else
13834 ac_cv_lib_tiff_TIFFGetVersion=no
13836 rm -f core conftest.err conftest.$ac_objext \
13837 conftest$ac_exeext conftest.$ac_ext
13838 LIBS=$ac_check_lib_save_LIBS
13840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
13841 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
13842 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x""yes; then :
13843 HAVE_TIFF=yes
13851 if test "${HAVE_TIFF}" = "yes"; then
13853 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
13855 LIBTIFF=-ltiff
13860 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
13861 HAVE_GIF=no
13862 LIBGIF=
13863 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
13864 ac_fn_c_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
13865 if test "x$ac_cv_header_gif_lib_h" = x""yes; then :
13866 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
13867 # Earlier versions can crash Emacs.
13868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
13869 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
13870 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then :
13871 $as_echo_n "(cached) " >&6
13872 else
13873 ac_check_lib_save_LIBS=$LIBS
13874 LIBS="-lgif $LIBS"
13875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13876 /* end confdefs.h. */
13878 /* Override any GCC internal prototype to avoid an error.
13879 Use char because int might match the return type of a GCC
13880 builtin and then its argument prototype would still apply. */
13881 #ifdef __cplusplus
13882 extern "C"
13883 #endif
13884 char EGifPutExtensionLast ();
13886 main ()
13888 return EGifPutExtensionLast ();
13890 return 0;
13892 _ACEOF
13893 if ac_fn_c_try_link "$LINENO"; then :
13894 ac_cv_lib_gif_EGifPutExtensionLast=yes
13895 else
13896 ac_cv_lib_gif_EGifPutExtensionLast=no
13898 rm -f core conftest.err conftest.$ac_objext \
13899 conftest$ac_exeext conftest.$ac_ext
13900 LIBS=$ac_check_lib_save_LIBS
13902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
13903 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
13904 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x""yes; then :
13905 HAVE_GIF=yes
13906 else
13907 HAVE_GIF=maybe
13914 if test "$HAVE_GIF" = yes; then
13915 LIBGIF=-lgif
13916 elif test "$HAVE_GIF" = maybe; then
13917 # If gif_lib.h but no libgif, try libungif.
13918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
13919 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
13920 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then :
13921 $as_echo_n "(cached) " >&6
13922 else
13923 ac_check_lib_save_LIBS=$LIBS
13924 LIBS="-lungif $LIBS"
13925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13926 /* end confdefs.h. */
13928 /* Override any GCC internal prototype to avoid an error.
13929 Use char because int might match the return type of a GCC
13930 builtin and then its argument prototype would still apply. */
13931 #ifdef __cplusplus
13932 extern "C"
13933 #endif
13934 char EGifPutExtensionLast ();
13936 main ()
13938 return EGifPutExtensionLast ();
13940 return 0;
13942 _ACEOF
13943 if ac_fn_c_try_link "$LINENO"; then :
13944 ac_cv_lib_ungif_EGifPutExtensionLast=yes
13945 else
13946 ac_cv_lib_ungif_EGifPutExtensionLast=no
13948 rm -f core conftest.err conftest.$ac_objext \
13949 conftest$ac_exeext conftest.$ac_ext
13950 LIBS=$ac_check_lib_save_LIBS
13952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
13953 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
13954 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x""yes; then :
13955 HAVE_GIF=yes
13956 else
13957 HAVE_GIF=no
13960 test "$HAVE_GIF" = yes && LIBGIF=-lungif
13963 if test "${HAVE_GIF}" = "yes"; then
13965 $as_echo "#define HAVE_GIF 1" >>confdefs.h
13971 if test "${HAVE_X11}" = "yes"; then
13972 MISSING=""
13973 WITH_NO=""
13974 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
13975 MISSING="libXpm" && WITH_NO="--with-xpm=no"
13976 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
13977 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
13978 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
13979 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
13980 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
13981 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
13982 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
13983 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
13985 if test "X${MISSING}" != X; then
13986 as_fn_error "The following required libraries were not found:
13987 $MISSING
13988 Maybe some development libraries/packages are missing?
13989 If you don't want to link with them give
13990 $WITH_NO
13991 as options to configure" "$LINENO" 5
13995 ### Use -lgpm if available, unless `--with-gpm=no'.
13996 HAVE_GPM=no
13997 LIBGPM=
13998 if test "${with_gpm}" != "no"; then
13999 ac_fn_c_check_header_mongrel "$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
14000 if test "x$ac_cv_header_gpm_h" = x""yes; then :
14001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
14002 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
14003 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then :
14004 $as_echo_n "(cached) " >&6
14005 else
14006 ac_check_lib_save_LIBS=$LIBS
14007 LIBS="-lgpm $LIBS"
14008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14009 /* end confdefs.h. */
14011 /* Override any GCC internal prototype to avoid an error.
14012 Use char because int might match the return type of a GCC
14013 builtin and then its argument prototype would still apply. */
14014 #ifdef __cplusplus
14015 extern "C"
14016 #endif
14017 char Gpm_Open ();
14019 main ()
14021 return Gpm_Open ();
14023 return 0;
14025 _ACEOF
14026 if ac_fn_c_try_link "$LINENO"; then :
14027 ac_cv_lib_gpm_Gpm_Open=yes
14028 else
14029 ac_cv_lib_gpm_Gpm_Open=no
14031 rm -f core conftest.err conftest.$ac_objext \
14032 conftest$ac_exeext conftest.$ac_ext
14033 LIBS=$ac_check_lib_save_LIBS
14035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
14036 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
14037 if test "x$ac_cv_lib_gpm_Gpm_Open" = x""yes; then :
14038 HAVE_GPM=yes
14045 if test "${HAVE_GPM}" = "yes"; then
14047 $as_echo "#define HAVE_GPM 1" >>confdefs.h
14049 LIBGPM=-lgpm
14054 ac_fn_c_check_header_mongrel "$LINENO" "malloc/malloc.h" "ac_cv_header_malloc_malloc_h" "$ac_includes_default"
14055 if test "x$ac_cv_header_malloc_malloc_h" = x""yes; then :
14057 $as_echo "#define HAVE_MALLOC_MALLOC_H 1" >>confdefs.h
14063 GNUSTEP_CFLAGS=
14064 ### Use NeXTstep API to implement GUI.
14065 if test "${HAVE_NS}" = "yes"; then
14067 $as_echo "#define HAVE_NS 1" >>confdefs.h
14069 if test "${NS_IMPL_COCOA}" = "yes"; then
14071 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
14074 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
14076 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
14078 # See also .m.o rule in Makefile.in */
14079 # FIXME: are all these flags really needed? Document here why. */
14080 GNUSTEP_CFLAGS="-D_REENTRANT -fPIC -fno-strict-aliasing -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
14081 ## Extra CFLAGS applied to src/*.m files.
14082 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"
14084 # We also have mouse menus.
14085 HAVE_MENUS=yes
14086 OTHER_FILES=ns-app
14090 ### Use session management (-lSM -lICE) if available
14091 HAVE_X_SM=no
14092 LIBXSM=
14093 if test "${HAVE_X11}" = "yes"; then
14094 ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
14095 if test "x$ac_cv_header_X11_SM_SMlib_h" = x""yes; then :
14096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
14097 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
14098 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then :
14099 $as_echo_n "(cached) " >&6
14100 else
14101 ac_check_lib_save_LIBS=$LIBS
14102 LIBS="-lSM -lICE $LIBS"
14103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14104 /* end confdefs.h. */
14106 /* Override any GCC internal prototype to avoid an error.
14107 Use char because int might match the return type of a GCC
14108 builtin and then its argument prototype would still apply. */
14109 #ifdef __cplusplus
14110 extern "C"
14111 #endif
14112 char SmcOpenConnection ();
14114 main ()
14116 return SmcOpenConnection ();
14118 return 0;
14120 _ACEOF
14121 if ac_fn_c_try_link "$LINENO"; then :
14122 ac_cv_lib_SM_SmcOpenConnection=yes
14123 else
14124 ac_cv_lib_SM_SmcOpenConnection=no
14126 rm -f core conftest.err conftest.$ac_objext \
14127 conftest$ac_exeext conftest.$ac_ext
14128 LIBS=$ac_check_lib_save_LIBS
14130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
14131 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
14132 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x""yes; then :
14133 HAVE_X_SM=yes
14140 if test "${HAVE_X_SM}" = "yes"; then
14142 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
14144 LIBXSM="-lSM -lICE"
14145 case "$LIBS" in
14146 *-lSM*) ;;
14147 *) LIBS="$LIBXSM $LIBS" ;;
14148 esac
14153 ### Use libxml (-lxml2) if available
14154 HAVE_LIBXML2=no
14155 if test "${with_xml2}" != "no"; then
14156 ### I'm not sure what the version number should be, so I just guessed.
14158 succeeded=no
14160 # Extract the first word of "pkg-config", so it can be a program name with args.
14161 set dummy pkg-config; ac_word=$2
14162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14163 $as_echo_n "checking for $ac_word... " >&6; }
14164 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
14165 $as_echo_n "(cached) " >&6
14166 else
14167 case $PKG_CONFIG in
14168 [\\/]* | ?:[\\/]*)
14169 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14173 for as_dir in $PATH
14175 IFS=$as_save_IFS
14176 test -z "$as_dir" && as_dir=.
14177 for ac_exec_ext in '' $ac_executable_extensions; do
14178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14179 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14181 break 2
14183 done
14184 done
14185 IFS=$as_save_IFS
14187 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14189 esac
14191 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14192 if test -n "$PKG_CONFIG"; then
14193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
14194 $as_echo "$PKG_CONFIG" >&6; }
14195 else
14196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14197 $as_echo "no" >&6; }
14202 if test "$PKG_CONFIG" = "no" ; then
14203 HAVE_LIBXML2=no
14204 else
14205 PKG_CONFIG_MIN_VERSION=0.9.0
14206 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.6.17" >&5
14208 $as_echo_n "checking for libxml-2.0 > 2.6.17... " >&6; }
14210 if $PKG_CONFIG --exists "libxml-2.0 > 2.6.17" 2>&5 &&
14211 LIBXML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 > 2.6.17" 2>&5` &&
14212 LIBXML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0 > 2.6.17" 2>&5`; then
14213 edit_cflags="
14214 s,///*,/,g
14215 s/^/ /
14216 s/ -I/ $isystem/g
14217 s/^ //
14219 LIBXML2_CFLAGS=`$as_echo "$LIBXML2_CFLAGS" | sed -e "$edit_cflags"`
14220 LIBXML2_LIBS=`$as_echo "$LIBXML2_LIBS" | sed -e 's,///*,/,g'`
14221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBXML2_CFLAGS' LIBS='$LIBXML2_LIBS'" >&5
14222 $as_echo "yes CFLAGS='$LIBXML2_CFLAGS' LIBS='$LIBXML2_LIBS'" >&6; }
14223 succeeded=yes
14224 else
14225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14226 $as_echo "no" >&6; }
14227 LIBXML2_CFLAGS=""
14228 LIBXML2_LIBS=""
14229 ## If we have a custom action on failure, don't print errors, but
14230 ## do set a variable so people can do so.
14231 LIBXML2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 > 2.6.17"`
14237 else
14238 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14239 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14243 if test $succeeded = yes; then
14244 HAVE_LIBXML2=yes
14245 else
14246 HAVE_LIBXML2=no
14249 if test "${HAVE_LIBXML2}" = "yes"; then
14250 LIBS="$LIBXML2_LIBS $LIBS"
14251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
14252 $as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
14253 if test "${ac_cv_lib_xml2_htmlReadMemory+set}" = set; then :
14254 $as_echo_n "(cached) " >&6
14255 else
14256 ac_check_lib_save_LIBS=$LIBS
14257 LIBS="-lxml2 $LIBS"
14258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14259 /* end confdefs.h. */
14261 /* Override any GCC internal prototype to avoid an error.
14262 Use char because int might match the return type of a GCC
14263 builtin and then its argument prototype would still apply. */
14264 #ifdef __cplusplus
14265 extern "C"
14266 #endif
14267 char htmlReadMemory ();
14269 main ()
14271 return htmlReadMemory ();
14273 return 0;
14275 _ACEOF
14276 if ac_fn_c_try_link "$LINENO"; then :
14277 ac_cv_lib_xml2_htmlReadMemory=yes
14278 else
14279 ac_cv_lib_xml2_htmlReadMemory=no
14281 rm -f core conftest.err conftest.$ac_objext \
14282 conftest$ac_exeext conftest.$ac_ext
14283 LIBS=$ac_check_lib_save_LIBS
14285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
14286 $as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
14287 if test "x$ac_cv_lib_xml2_htmlReadMemory" = x""yes; then :
14288 HAVE_LIBXML2=yes
14289 else
14290 HAVE_LIBXML2=no
14293 if test "${HAVE_LIBXML2}" = "yes"; then
14295 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
14297 else
14298 LIBXML2_LIBS=""
14299 LIBXML2_CFLAGS=""
14306 # If netdb.h doesn't declare h_errno, we must declare it by hand.
14307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
14308 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
14309 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then :
14310 $as_echo_n "(cached) " >&6
14311 else
14312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14313 /* end confdefs.h. */
14314 #include <netdb.h>
14316 main ()
14318 return h_errno;
14320 return 0;
14322 _ACEOF
14323 if ac_fn_c_try_link "$LINENO"; then :
14324 emacs_cv_netdb_declares_h_errno=yes
14325 else
14326 emacs_cv_netdb_declares_h_errno=no
14328 rm -f core conftest.err conftest.$ac_objext \
14329 conftest$ac_exeext conftest.$ac_ext
14331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
14332 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
14333 if test $emacs_cv_netdb_declares_h_errno = yes; then
14335 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
14339 # fmod, logb, and frexp are found in -lm on most systems.
14340 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
14341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
14342 $as_echo_n "checking for sqrt in -lm... " >&6; }
14343 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
14344 $as_echo_n "(cached) " >&6
14345 else
14346 ac_check_lib_save_LIBS=$LIBS
14347 LIBS="-lm $LIBS"
14348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14349 /* end confdefs.h. */
14351 /* Override any GCC internal prototype to avoid an error.
14352 Use char because int might match the return type of a GCC
14353 builtin and then its argument prototype would still apply. */
14354 #ifdef __cplusplus
14355 extern "C"
14356 #endif
14357 char sqrt ();
14359 main ()
14361 return sqrt ();
14363 return 0;
14365 _ACEOF
14366 if ac_fn_c_try_link "$LINENO"; then :
14367 ac_cv_lib_m_sqrt=yes
14368 else
14369 ac_cv_lib_m_sqrt=no
14371 rm -f core conftest.err conftest.$ac_objext \
14372 conftest$ac_exeext conftest.$ac_ext
14373 LIBS=$ac_check_lib_save_LIBS
14375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
14376 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
14377 if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
14378 cat >>confdefs.h <<_ACEOF
14379 #define HAVE_LIBM 1
14380 _ACEOF
14382 LIBS="-lm $LIBS"
14387 # Check for mail-locking functions in a "mail" library. Probably this should
14388 # have the same check as for liblockfile below.
14389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
14390 $as_echo_n "checking for maillock in -lmail... " >&6; }
14391 if test "${ac_cv_lib_mail_maillock+set}" = set; then :
14392 $as_echo_n "(cached) " >&6
14393 else
14394 ac_check_lib_save_LIBS=$LIBS
14395 LIBS="-lmail $LIBS"
14396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14397 /* end confdefs.h. */
14399 /* Override any GCC internal prototype to avoid an error.
14400 Use char because int might match the return type of a GCC
14401 builtin and then its argument prototype would still apply. */
14402 #ifdef __cplusplus
14403 extern "C"
14404 #endif
14405 char maillock ();
14407 main ()
14409 return maillock ();
14411 return 0;
14413 _ACEOF
14414 if ac_fn_c_try_link "$LINENO"; then :
14415 ac_cv_lib_mail_maillock=yes
14416 else
14417 ac_cv_lib_mail_maillock=no
14419 rm -f core conftest.err conftest.$ac_objext \
14420 conftest$ac_exeext conftest.$ac_ext
14421 LIBS=$ac_check_lib_save_LIBS
14423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
14424 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
14425 if test "x$ac_cv_lib_mail_maillock" = x""yes; then :
14426 have_mail=yes
14427 else
14428 have_mail=no
14431 if test $have_mail = yes; then
14432 LIBS_MAIL=-lmail
14433 LIBS="$LIBS_MAIL $LIBS"
14435 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
14437 else
14438 LIBS_MAIL=
14440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
14441 $as_echo_n "checking for maillock in -llockfile... " >&6; }
14442 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then :
14443 $as_echo_n "(cached) " >&6
14444 else
14445 ac_check_lib_save_LIBS=$LIBS
14446 LIBS="-llockfile $LIBS"
14447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14448 /* end confdefs.h. */
14450 /* Override any GCC internal prototype to avoid an error.
14451 Use char because int might match the return type of a GCC
14452 builtin and then its argument prototype would still apply. */
14453 #ifdef __cplusplus
14454 extern "C"
14455 #endif
14456 char maillock ();
14458 main ()
14460 return maillock ();
14462 return 0;
14464 _ACEOF
14465 if ac_fn_c_try_link "$LINENO"; then :
14466 ac_cv_lib_lockfile_maillock=yes
14467 else
14468 ac_cv_lib_lockfile_maillock=no
14470 rm -f core conftest.err conftest.$ac_objext \
14471 conftest$ac_exeext conftest.$ac_ext
14472 LIBS=$ac_check_lib_save_LIBS
14474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
14475 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
14476 if test "x$ac_cv_lib_lockfile_maillock" = x""yes; then :
14477 have_lockfile=yes
14478 else
14479 have_lockfile=no
14482 if test $have_lockfile = yes; then
14483 LIBS_MAIL=-llockfile
14484 LIBS="$LIBS_MAIL $LIBS"
14486 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
14488 else
14489 # If we have the shared liblockfile, assume we must use it for mail
14490 # locking (e.g. Debian). If we couldn't link against liblockfile
14491 # (no liblockfile.a installed), ensure that we don't need to.
14492 # Extract the first word of "liblockfile.so", so it can be a program name with args.
14493 set dummy liblockfile.so; ac_word=$2
14494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14495 $as_echo_n "checking for $ac_word... " >&6; }
14496 if test "${ac_cv_prog_liblockfile+set}" = set; then :
14497 $as_echo_n "(cached) " >&6
14498 else
14499 if test -n "$liblockfile"; then
14500 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
14501 else
14502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14503 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
14504 for as_dir in $as_dummy
14506 IFS=$as_save_IFS
14507 test -z "$as_dir" && as_dir=.
14508 for ac_exec_ext in '' $ac_executable_extensions; do
14509 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14510 ac_cv_prog_liblockfile="yes"
14511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14512 break 2
14514 done
14515 done
14516 IFS=$as_save_IFS
14518 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
14521 liblockfile=$ac_cv_prog_liblockfile
14522 if test -n "$liblockfile"; then
14523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
14524 $as_echo "$liblockfile" >&6; }
14525 else
14526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14527 $as_echo "no" >&6; }
14531 if test $ac_cv_prog_liblockfile = yes; then
14532 as_fn_error "Shared liblockfile found but can't link against it.
14533 This probably means that movemail could lose mail.
14534 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
14537 for ac_func in touchlock
14538 do :
14539 ac_fn_c_check_func "$LINENO" "touchlock" "ac_cv_func_touchlock"
14540 if test "x$ac_cv_func_touchlock" = x""yes; then :
14541 cat >>confdefs.h <<_ACEOF
14542 #define HAVE_TOUCHLOCK 1
14543 _ACEOF
14546 done
14548 for ac_header in maillock.h
14549 do :
14550 ac_fn_c_check_header_mongrel "$LINENO" "maillock.h" "ac_cv_header_maillock_h" "$ac_includes_default"
14551 if test "x$ac_cv_header_maillock_h" = x""yes; then :
14552 cat >>confdefs.h <<_ACEOF
14553 #define HAVE_MAILLOCK_H 1
14554 _ACEOF
14558 done
14562 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
14563 ## interlock access to the mail spool. The alternative is a lock file named
14564 ## /usr/spool/mail/$USER.lock.
14565 mail_lock=no
14566 case "$opsys" in
14567 aix4-2) mail_lock="lockf" ;;
14569 gnu|freebsd|netbsd|openbsd|darwin|irix6-5) mail_lock="flock" ;;
14571 ## On GNU/Linux systems, both methods are used by various mail programs.
14572 ## I assume most people are using newer mailers that have heard of flock.
14573 ## Change this if you need to.
14574 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
14575 ## configure gets the right answers, and that means *NOT* using flock.
14576 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
14577 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
14578 ## Debian maintainer hasn't provided a clean fix for Emacs.
14579 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
14580 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
14581 ## correct logic. -- fx
14582 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
14583 ## liblockfile is a Free Software replacement for libmail, used on
14584 ## Debian systems and elsewhere. -rfr.
14585 gnu-*)
14586 mail_lock="flock"
14587 if test $have_mail = yes || test $have_lockfile = yes; then
14588 test $ac_cv_header_maillock_h = yes && mail_lock=no
14591 esac
14593 BLESSMAIL_TARGET=
14594 case "$mail_lock" in
14595 flock)
14596 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
14599 lockf)
14600 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
14603 *) BLESSMAIL_TARGET="need-blessmail" ;;
14604 esac
14608 for ac_func in gethostname getdomainname \
14609 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
14610 random lrand48 logb frexp fmod rint cbrt ftime setsid \
14611 strerror fpathconf select euidaccess getpagesize tzset setlocale \
14612 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
14613 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm \
14614 sendto recvfrom getsockopt setsockopt getsockname getpeername \
14615 gai_strerror mkstemp getline getdelim mremap fsync sync \
14616 difftime mempcpy mblen mbrlen posix_memalign \
14617 getpwent endpwent getgrent endgrent \
14618 cfmakeraw cfsetspeed copysign __executable_start
14619 do :
14620 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14621 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14622 eval as_val=\$$as_ac_var
14623 if test "x$as_val" = x""yes; then :
14624 cat >>confdefs.h <<_ACEOF
14625 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14626 _ACEOF
14629 done
14632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unwind_init" >&5
14633 $as_echo_n "checking for __builtin_unwind_init... " >&6; }
14634 if test "${emacs_cv_func___builtin_unwind_init+set}" = set; then :
14635 $as_echo_n "(cached) " >&6
14636 else
14637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14638 /* end confdefs.h. */
14641 main ()
14643 __builtin_unwind_init ();
14645 return 0;
14647 _ACEOF
14648 if ac_fn_c_try_link "$LINENO"; then :
14649 emacs_cv_func___builtin_unwind_init=yes
14650 else
14651 emacs_cv_func___builtin_unwind_init=no
14653 rm -f core conftest.err conftest.$ac_objext \
14654 conftest$ac_exeext conftest.$ac_ext
14656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func___builtin_unwind_init" >&5
14657 $as_echo "$emacs_cv_func___builtin_unwind_init" >&6; }
14658 if test $emacs_cv_func___builtin_unwind_init = yes; then
14660 $as_echo "#define HAVE___BUILTIN_UNWIND_INIT 1" >>confdefs.h
14664 for ac_header in sys/un.h
14665 do :
14666 ac_fn_c_check_header_mongrel "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
14667 if test "x$ac_cv_header_sys_un_h" = x""yes; then :
14668 cat >>confdefs.h <<_ACEOF
14669 #define HAVE_SYS_UN_H 1
14670 _ACEOF
14674 done
14677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
14678 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
14679 if test "${ac_cv_sys_largefile_source+set}" = set; then :
14680 $as_echo_n "(cached) " >&6
14681 else
14682 while :; do
14683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14684 /* end confdefs.h. */
14685 #include <sys/types.h> /* for off_t */
14686 #include <stdio.h>
14688 main ()
14690 int (*fp) (FILE *, off_t, int) = fseeko;
14691 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14693 return 0;
14695 _ACEOF
14696 if ac_fn_c_try_link "$LINENO"; then :
14697 ac_cv_sys_largefile_source=no; break
14699 rm -f core conftest.err conftest.$ac_objext \
14700 conftest$ac_exeext conftest.$ac_ext
14701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14702 /* end confdefs.h. */
14703 #define _LARGEFILE_SOURCE 1
14704 #include <sys/types.h> /* for off_t */
14705 #include <stdio.h>
14707 main ()
14709 int (*fp) (FILE *, off_t, int) = fseeko;
14710 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14712 return 0;
14714 _ACEOF
14715 if ac_fn_c_try_link "$LINENO"; then :
14716 ac_cv_sys_largefile_source=1; break
14718 rm -f core conftest.err conftest.$ac_objext \
14719 conftest$ac_exeext conftest.$ac_ext
14720 ac_cv_sys_largefile_source=unknown
14721 break
14722 done
14724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
14725 $as_echo "$ac_cv_sys_largefile_source" >&6; }
14726 case $ac_cv_sys_largefile_source in #(
14727 no | unknown) ;;
14729 cat >>confdefs.h <<_ACEOF
14730 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
14731 _ACEOF
14733 esac
14734 rm -rf conftest*
14736 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
14737 # in glibc 2.1.3, but that breaks too many other things.
14738 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
14739 if test $ac_cv_sys_largefile_source != unknown; then
14741 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
14746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
14747 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
14748 if test "${ac_cv_func_getpgrp_void+set}" = set; then :
14749 $as_echo_n "(cached) " >&6
14750 else
14751 # Use it with a single arg.
14752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14753 /* end confdefs.h. */
14754 $ac_includes_default
14756 main ()
14758 getpgrp (0);
14760 return 0;
14762 _ACEOF
14763 if ac_fn_c_try_compile "$LINENO"; then :
14764 ac_cv_func_getpgrp_void=no
14765 else
14766 ac_cv_func_getpgrp_void=yes
14768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
14772 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
14773 if test $ac_cv_func_getpgrp_void = yes; then
14775 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
14780 # UNIX98 PTYs.
14781 for ac_func in grantpt
14782 do :
14783 ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt"
14784 if test "x$ac_cv_func_grantpt" = x""yes; then :
14785 cat >>confdefs.h <<_ACEOF
14786 #define HAVE_GRANTPT 1
14787 _ACEOF
14790 done
14793 # PTY-related GNU extensions.
14794 for ac_func in getpt
14795 do :
14796 ac_fn_c_check_func "$LINENO" "getpt" "ac_cv_func_getpt"
14797 if test "x$ac_cv_func_getpt" = x""yes; then :
14798 cat >>confdefs.h <<_ACEOF
14799 #define HAVE_GETPT 1
14800 _ACEOF
14803 done
14806 # Check this now, so that we will NOT find the above functions in ncurses.
14807 # That is because we have not set up to link ncurses in lib-src.
14808 # It's better to believe a function is not available
14809 # than to expect to find it in ncurses.
14810 # Also we need tputs and friends to be able to build at all.
14811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
14812 $as_echo_n "checking for library containing tputs... " >&6; }
14813 # Run a test program that contains a call to tputs, a call that is
14814 # never executed. This tests whether a pre-'main' dynamic linker
14815 # works with the library. It's too much trouble to actually call
14816 # tputs in the test program, due to portability hassles. When
14817 # cross-compiling, assume the test program will run if it links.
14819 # Maybe curses should be tried earlier?
14820 # See http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9736#35
14821 for tputs_library in '' ncurses terminfo termcap curses; do
14822 OLIBS=$LIBS
14823 if test -z "$tputs_library"; then
14824 LIBS_TERMCAP=
14825 msg='none required'
14826 else
14827 LIBS_TERMCAP=-l$tputs_library
14828 msg=$LIBS_TERMCAP
14829 LIBS="$LIBS_TERMCAP $LIBS"
14831 if test "$cross_compiling" = yes; then :
14832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14833 /* end confdefs.h. */
14835 extern void tputs (const char *, int, int (*)(int));
14836 int main (int argc, char **argv)
14838 if (argc == 10000)
14839 tputs (argv[0], 0, 0);
14840 return 0;
14843 _ACEOF
14844 if ac_fn_c_try_link "$LINENO"; then :
14846 else
14847 msg=no
14849 rm -f core conftest.err conftest.$ac_objext \
14850 conftest$ac_exeext conftest.$ac_ext
14851 else
14852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14853 /* end confdefs.h. */
14855 extern void tputs (const char *, int, int (*)(int));
14856 int main (int argc, char **argv)
14858 if (argc == 10000)
14859 tputs (argv[0], 0, 0);
14860 return 0;
14863 _ACEOF
14864 if ac_fn_c_try_run "$LINENO"; then :
14866 else
14867 msg=no
14869 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14870 conftest.$ac_objext conftest.beam conftest.$ac_ext
14873 LIBS=$OLIBS
14874 if test "X$msg" != Xno; then
14875 break
14877 done
14878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5
14879 $as_echo "$msg" >&6; }
14880 if test "X$msg" = Xno; then
14881 as_fn_error "The required function \`tputs' was not found in any library.
14882 These libraries were tried: 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
14887 # Must define this when any termcap library is found.
14889 $as_echo "#define HAVE_LIBNCURSES 1" >>confdefs.h
14891 ## FIXME This was the cpp logic, but I am not sure it is right.
14892 ## The above test has not necessarily found libncurses.
14893 HAVE_LIBNCURSES=yes
14895 ## Use terminfo instead of termcap?
14896 ## Note only system files NOT using terminfo are:
14897 ## freebsd < 40000, ms-w32, msdos, netbsd < 599002500, and
14898 ## darwin|gnu without ncurses.
14899 TERMINFO=no
14900 case "$opsys" in
14901 ## cygwin: Fewer environment variables to go wrong, more terminal types.
14902 ## hpux10-20: Use the system provided termcap(3) library.
14903 ## openbsd: David Mazieres <dm@reeducation-labor.lcs.mit.edu> says this
14904 ## is necessary. Otherwise Emacs dumps core when run -nw.
14905 aix4-2|cygwin|hpux*|irix6-5|openbsd|sol2*|unixware) TERMINFO=yes ;;
14907 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
14908 ## The ncurses library has been moved out of the System framework in
14909 ## Mac OS X 10.2. So if configure detects it, set the command-line
14910 ## option to use it.
14911 darwin|gnu*)
14912 ## (HAVE_LIBNCURSES was not always true, but is since 2010-03-18.)
14913 if test "x$HAVE_LIBNCURSES" = "xyes"; then
14914 TERMINFO=yes
14915 LIBS_TERMCAP="-lncurses"
14919 freebsd)
14920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
14921 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
14922 if test "${emacs_cv_freebsd_terminfo+set}" = set; then :
14923 $as_echo_n "(cached) " >&6
14924 else
14925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14926 /* end confdefs.h. */
14927 #include <osreldate.h>
14929 main ()
14931 #if __FreeBSD_version < 400000
14932 fail;
14933 #endif
14936 return 0;
14938 _ACEOF
14939 if ac_fn_c_try_link "$LINENO"; then :
14940 emacs_cv_freebsd_terminfo=yes
14941 else
14942 emacs_cv_freebsd_terminfo=no
14944 rm -f core conftest.err conftest.$ac_objext \
14945 conftest$ac_exeext conftest.$ac_ext
14949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
14950 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
14952 if test $emacs_cv_freebsd_terminfo = yes; then
14953 TERMINFO=yes
14954 LIBS_TERMCAP="-lncurses"
14955 else
14956 LIBS_TERMCAP="-ltermcap"
14960 netbsd)
14961 if test $ac_cv_search_tputs = -lterminfo; then
14962 TERMINFO=yes
14963 LIBS_TERMCAP="-lterminfo"
14964 else
14965 LIBS_TERMCAP="-ltermcap"
14969 esac
14971 case "$opsys" in
14972 ## hpux: Make sure we get select from libc rather than from libcurses
14973 ## because libcurses on HPUX 10.10 has a broken version of select.
14974 ## We used to use -lc -lcurses, but this may be cleaner.
14975 hpux*) LIBS_TERMCAP="-ltermcap" ;;
14977 openbsd) LIBS_TERMCAP="-lncurses" ;;
14979 ## Must use system termcap, if we use any termcap. It does special things.
14980 sol2*) test "$TERMINFO" != yes && LIBS_TERMCAP="-ltermcap" ;;
14981 esac
14983 TERMCAP_OBJ=tparam.o
14984 if test $TERMINFO = yes; then
14986 $as_echo "#define TERMINFO 1" >>confdefs.h
14988 TERMCAP_OBJ=terminfo.o
14994 # Do we have res_init, for detecting changes in /etc/resolv.conf?
14995 resolv=no
14996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14997 /* end confdefs.h. */
14998 #include <netinet/in.h>
14999 #include <arpa/nameser.h>
15000 #include <resolv.h>
15002 main ()
15004 return res_init();
15006 return 0;
15008 _ACEOF
15009 if ac_fn_c_try_link "$LINENO"; then :
15010 have_res_init=yes
15011 else
15012 have_res_init=no
15014 rm -f core conftest.err conftest.$ac_objext \
15015 conftest$ac_exeext conftest.$ac_ext
15016 if test "$have_res_init" = no; then
15017 OLIBS="$LIBS"
15018 LIBS="$LIBS -lresolv"
15019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
15020 $as_echo_n "checking for res_init with -lresolv... " >&6; }
15021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15022 /* end confdefs.h. */
15023 #include <netinet/in.h>
15024 #include <arpa/nameser.h>
15025 #include <resolv.h>
15027 main ()
15029 return res_init();
15031 return 0;
15033 _ACEOF
15034 if ac_fn_c_try_link "$LINENO"; then :
15035 have_res_init=yes
15036 else
15037 have_res_init=no
15039 rm -f core conftest.err conftest.$ac_objext \
15040 conftest$ac_exeext conftest.$ac_ext
15041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
15042 $as_echo "$have_res_init" >&6; }
15043 if test "$have_res_init" = yes ; then
15044 resolv=yes
15046 LIBS="$OLIBS"
15049 if test "$have_res_init" = yes; then
15051 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
15055 # Do we need the Hesiod library to provide the support routines?
15056 LIBHESIOD=
15057 if test "$with_hesiod" != no ; then
15058 # Don't set $LIBS here -- see comments above. FIXME which comments?
15059 ac_fn_c_check_func "$LINENO" "res_send" "ac_cv_func_res_send"
15060 if test "x$ac_cv_func_res_send" = x""yes; then :
15062 else
15063 ac_fn_c_check_func "$LINENO" "__res_send" "ac_cv_func___res_send"
15064 if test "x$ac_cv_func___res_send" = x""yes; then :
15066 else
15067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
15068 $as_echo_n "checking for res_send in -lresolv... " >&6; }
15069 if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
15070 $as_echo_n "(cached) " >&6
15071 else
15072 ac_check_lib_save_LIBS=$LIBS
15073 LIBS="-lresolv $LIBS"
15074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15075 /* end confdefs.h. */
15077 /* Override any GCC internal prototype to avoid an error.
15078 Use char because int might match the return type of a GCC
15079 builtin and then its argument prototype would still apply. */
15080 #ifdef __cplusplus
15081 extern "C"
15082 #endif
15083 char res_send ();
15085 main ()
15087 return res_send ();
15089 return 0;
15091 _ACEOF
15092 if ac_fn_c_try_link "$LINENO"; then :
15093 ac_cv_lib_resolv_res_send=yes
15094 else
15095 ac_cv_lib_resolv_res_send=no
15097 rm -f core conftest.err conftest.$ac_objext \
15098 conftest$ac_exeext conftest.$ac_ext
15099 LIBS=$ac_check_lib_save_LIBS
15101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
15102 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
15103 if test "x$ac_cv_lib_resolv_res_send" = x""yes; then :
15104 resolv=yes
15105 else
15106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
15107 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
15108 if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
15109 $as_echo_n "(cached) " >&6
15110 else
15111 ac_check_lib_save_LIBS=$LIBS
15112 LIBS="-lresolv $LIBS"
15113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15114 /* end confdefs.h. */
15116 /* Override any GCC internal prototype to avoid an error.
15117 Use char because int might match the return type of a GCC
15118 builtin and then its argument prototype would still apply. */
15119 #ifdef __cplusplus
15120 extern "C"
15121 #endif
15122 char __res_send ();
15124 main ()
15126 return __res_send ();
15128 return 0;
15130 _ACEOF
15131 if ac_fn_c_try_link "$LINENO"; then :
15132 ac_cv_lib_resolv___res_send=yes
15133 else
15134 ac_cv_lib_resolv___res_send=no
15136 rm -f core conftest.err conftest.$ac_objext \
15137 conftest$ac_exeext conftest.$ac_ext
15138 LIBS=$ac_check_lib_save_LIBS
15140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
15141 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
15142 if test "x$ac_cv_lib_resolv___res_send" = x""yes; then :
15143 resolv=yes
15152 if test "$resolv" = yes ; then
15153 RESOLVLIB=-lresolv
15154 else
15155 RESOLVLIB=
15157 ac_fn_c_check_func "$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
15158 if test "x$ac_cv_func_hes_getmailhost" = x""yes; then :
15160 else
15161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
15162 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
15163 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
15164 $as_echo_n "(cached) " >&6
15165 else
15166 ac_check_lib_save_LIBS=$LIBS
15167 LIBS="-lhesiod $RESOLVLIB $LIBS"
15168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15169 /* end confdefs.h. */
15171 /* Override any GCC internal prototype to avoid an error.
15172 Use char because int might match the return type of a GCC
15173 builtin and then its argument prototype would still apply. */
15174 #ifdef __cplusplus
15175 extern "C"
15176 #endif
15177 char hes_getmailhost ();
15179 main ()
15181 return hes_getmailhost ();
15183 return 0;
15185 _ACEOF
15186 if ac_fn_c_try_link "$LINENO"; then :
15187 ac_cv_lib_hesiod_hes_getmailhost=yes
15188 else
15189 ac_cv_lib_hesiod_hes_getmailhost=no
15191 rm -f core conftest.err conftest.$ac_objext \
15192 conftest$ac_exeext conftest.$ac_ext
15193 LIBS=$ac_check_lib_save_LIBS
15195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
15196 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
15197 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x""yes; then :
15198 hesiod=yes
15199 else
15206 if test x"$hesiod" = xyes; then
15208 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
15210 LIBHESIOD=-lhesiod
15215 # Do we need libresolv (due to res_init or Hesiod)?
15216 if test "$resolv" = yes ; then
15218 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
15220 LIBRESOLV=-lresolv
15221 else
15222 LIBRESOLV=
15226 # These tell us which Kerberos-related libraries to use.
15227 COM_ERRLIB=
15228 CRYPTOLIB=
15229 KRB5LIB=
15230 DESLIB=
15231 KRB4LIB=
15233 if test "${with_kerberos}" != no; then
15234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
15235 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
15236 if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
15237 $as_echo_n "(cached) " >&6
15238 else
15239 ac_check_lib_save_LIBS=$LIBS
15240 LIBS="-lcom_err $LIBS"
15241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15242 /* end confdefs.h. */
15244 /* Override any GCC internal prototype to avoid an error.
15245 Use char because int might match the return type of a GCC
15246 builtin and then its argument prototype would still apply. */
15247 #ifdef __cplusplus
15248 extern "C"
15249 #endif
15250 char com_err ();
15252 main ()
15254 return com_err ();
15256 return 0;
15258 _ACEOF
15259 if ac_fn_c_try_link "$LINENO"; then :
15260 ac_cv_lib_com_err_com_err=yes
15261 else
15262 ac_cv_lib_com_err_com_err=no
15264 rm -f core conftest.err conftest.$ac_objext \
15265 conftest$ac_exeext conftest.$ac_ext
15266 LIBS=$ac_check_lib_save_LIBS
15268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
15269 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
15270 if test "x$ac_cv_lib_com_err_com_err" = x""yes; then :
15271 have_com_err=yes
15272 else
15273 have_com_err=no
15276 if test $have_com_err = yes; then
15277 COM_ERRLIB=-lcom_err
15278 LIBS="$COM_ERRLIB $LIBS"
15280 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
15283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
15284 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
15285 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
15286 $as_echo_n "(cached) " >&6
15287 else
15288 ac_check_lib_save_LIBS=$LIBS
15289 LIBS="-lcrypto $LIBS"
15290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15291 /* end confdefs.h. */
15293 /* Override any GCC internal prototype to avoid an error.
15294 Use char because int might match the return type of a GCC
15295 builtin and then its argument prototype would still apply. */
15296 #ifdef __cplusplus
15297 extern "C"
15298 #endif
15299 char mit_des_cbc_encrypt ();
15301 main ()
15303 return mit_des_cbc_encrypt ();
15305 return 0;
15307 _ACEOF
15308 if ac_fn_c_try_link "$LINENO"; then :
15309 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
15310 else
15311 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
15313 rm -f core conftest.err conftest.$ac_objext \
15314 conftest$ac_exeext conftest.$ac_ext
15315 LIBS=$ac_check_lib_save_LIBS
15317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
15318 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
15319 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x""yes; then :
15320 have_crypto=yes
15321 else
15322 have_crypto=no
15325 if test $have_crypto = yes; then
15326 CRYPTOLIB=-lcrypto
15327 LIBS="$CRYPTOLIB $LIBS"
15329 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
15332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
15333 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
15334 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
15335 $as_echo_n "(cached) " >&6
15336 else
15337 ac_check_lib_save_LIBS=$LIBS
15338 LIBS="-lk5crypto $LIBS"
15339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15340 /* end confdefs.h. */
15342 /* Override any GCC internal prototype to avoid an error.
15343 Use char because int might match the return type of a GCC
15344 builtin and then its argument prototype would still apply. */
15345 #ifdef __cplusplus
15346 extern "C"
15347 #endif
15348 char mit_des_cbc_encrypt ();
15350 main ()
15352 return mit_des_cbc_encrypt ();
15354 return 0;
15356 _ACEOF
15357 if ac_fn_c_try_link "$LINENO"; then :
15358 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
15359 else
15360 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
15362 rm -f core conftest.err conftest.$ac_objext \
15363 conftest$ac_exeext conftest.$ac_ext
15364 LIBS=$ac_check_lib_save_LIBS
15366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
15367 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
15368 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x""yes; then :
15369 have_k5crypto=yes
15370 else
15371 have_k5crypto=no
15374 if test $have_k5crypto = yes; then
15375 CRYPTOLIB=-lk5crypto
15376 LIBS="$CRYPTOLIB $LIBS"
15378 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
15381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
15382 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
15383 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
15384 $as_echo_n "(cached) " >&6
15385 else
15386 ac_check_lib_save_LIBS=$LIBS
15387 LIBS="-lkrb5 $LIBS"
15388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15389 /* end confdefs.h. */
15391 /* Override any GCC internal prototype to avoid an error.
15392 Use char because int might match the return type of a GCC
15393 builtin and then its argument prototype would still apply. */
15394 #ifdef __cplusplus
15395 extern "C"
15396 #endif
15397 char krb5_init_context ();
15399 main ()
15401 return krb5_init_context ();
15403 return 0;
15405 _ACEOF
15406 if ac_fn_c_try_link "$LINENO"; then :
15407 ac_cv_lib_krb5_krb5_init_context=yes
15408 else
15409 ac_cv_lib_krb5_krb5_init_context=no
15411 rm -f core conftest.err conftest.$ac_objext \
15412 conftest$ac_exeext conftest.$ac_ext
15413 LIBS=$ac_check_lib_save_LIBS
15415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
15416 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
15417 if test "x$ac_cv_lib_krb5_krb5_init_context" = x""yes; then :
15418 have_krb5=yes
15419 else
15420 have_krb5=no
15423 if test $have_krb5=yes; then
15424 KRB5LIB=-lkrb5
15425 LIBS="$KRB5LIB $LIBS"
15427 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
15430 if test "${with_kerberos5}" = no; then
15431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
15432 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
15433 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
15434 $as_echo_n "(cached) " >&6
15435 else
15436 ac_check_lib_save_LIBS=$LIBS
15437 LIBS="-ldes425 $LIBS"
15438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15439 /* end confdefs.h. */
15441 /* Override any GCC internal prototype to avoid an error.
15442 Use char because int might match the return type of a GCC
15443 builtin and then its argument prototype would still apply. */
15444 #ifdef __cplusplus
15445 extern "C"
15446 #endif
15447 char des_cbc_encrypt ();
15449 main ()
15451 return des_cbc_encrypt ();
15453 return 0;
15455 _ACEOF
15456 if ac_fn_c_try_link "$LINENO"; then :
15457 ac_cv_lib_des425_des_cbc_encrypt=yes
15458 else
15459 ac_cv_lib_des425_des_cbc_encrypt=no
15461 rm -f core conftest.err conftest.$ac_objext \
15462 conftest$ac_exeext conftest.$ac_ext
15463 LIBS=$ac_check_lib_save_LIBS
15465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
15466 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
15467 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x""yes; then :
15468 have_des425=yes
15469 else
15470 have_des425=no
15473 if test $have_des425 = yes; then
15474 DESLIB=-ldes425
15475 LIBS="$DESLIB $LIBS"
15477 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
15479 else
15480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
15481 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
15482 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
15483 $as_echo_n "(cached) " >&6
15484 else
15485 ac_check_lib_save_LIBS=$LIBS
15486 LIBS="-ldes $LIBS"
15487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15488 /* end confdefs.h. */
15490 /* Override any GCC internal prototype to avoid an error.
15491 Use char because int might match the return type of a GCC
15492 builtin and then its argument prototype would still apply. */
15493 #ifdef __cplusplus
15494 extern "C"
15495 #endif
15496 char des_cbc_encrypt ();
15498 main ()
15500 return des_cbc_encrypt ();
15502 return 0;
15504 _ACEOF
15505 if ac_fn_c_try_link "$LINENO"; then :
15506 ac_cv_lib_des_des_cbc_encrypt=yes
15507 else
15508 ac_cv_lib_des_des_cbc_encrypt=no
15510 rm -f core conftest.err conftest.$ac_objext \
15511 conftest$ac_exeext conftest.$ac_ext
15512 LIBS=$ac_check_lib_save_LIBS
15514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
15515 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
15516 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x""yes; then :
15517 have_des=yes
15518 else
15519 have_des=no
15522 if test $have_des = yes; then
15523 DESLIB=-ldes
15524 LIBS="$DESLIB $LIBS"
15526 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
15530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
15531 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
15532 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
15533 $as_echo_n "(cached) " >&6
15534 else
15535 ac_check_lib_save_LIBS=$LIBS
15536 LIBS="-lkrb4 $LIBS"
15537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15538 /* end confdefs.h. */
15540 /* Override any GCC internal prototype to avoid an error.
15541 Use char because int might match the return type of a GCC
15542 builtin and then its argument prototype would still apply. */
15543 #ifdef __cplusplus
15544 extern "C"
15545 #endif
15546 char krb_get_cred ();
15548 main ()
15550 return krb_get_cred ();
15552 return 0;
15554 _ACEOF
15555 if ac_fn_c_try_link "$LINENO"; then :
15556 ac_cv_lib_krb4_krb_get_cred=yes
15557 else
15558 ac_cv_lib_krb4_krb_get_cred=no
15560 rm -f core conftest.err conftest.$ac_objext \
15561 conftest$ac_exeext conftest.$ac_ext
15562 LIBS=$ac_check_lib_save_LIBS
15564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
15565 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
15566 if test "x$ac_cv_lib_krb4_krb_get_cred" = x""yes; then :
15567 have_krb4=yes
15568 else
15569 have_krb4=no
15572 if test $have_krb4 = yes; then
15573 KRB4LIB=-lkrb4
15574 LIBS="$KRB4LIB $LIBS"
15576 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
15578 else
15579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
15580 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
15581 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
15582 $as_echo_n "(cached) " >&6
15583 else
15584 ac_check_lib_save_LIBS=$LIBS
15585 LIBS="-lkrb $LIBS"
15586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15587 /* end confdefs.h. */
15589 /* Override any GCC internal prototype to avoid an error.
15590 Use char because int might match the return type of a GCC
15591 builtin and then its argument prototype would still apply. */
15592 #ifdef __cplusplus
15593 extern "C"
15594 #endif
15595 char krb_get_cred ();
15597 main ()
15599 return krb_get_cred ();
15601 return 0;
15603 _ACEOF
15604 if ac_fn_c_try_link "$LINENO"; then :
15605 ac_cv_lib_krb_krb_get_cred=yes
15606 else
15607 ac_cv_lib_krb_krb_get_cred=no
15609 rm -f core conftest.err conftest.$ac_objext \
15610 conftest$ac_exeext conftest.$ac_ext
15611 LIBS=$ac_check_lib_save_LIBS
15613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
15614 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
15615 if test "x$ac_cv_lib_krb_krb_get_cred" = x""yes; then :
15616 have_krb=yes
15617 else
15618 have_krb=no
15621 if test $have_krb = yes; then
15622 KRB4LIB=-lkrb
15623 LIBS="$KRB4LIB $LIBS"
15625 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
15631 if test "${with_kerberos5}" != no; then
15632 for ac_header in krb5.h
15633 do :
15634 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
15635 if test "x$ac_cv_header_krb5_h" = x""yes; then :
15636 cat >>confdefs.h <<_ACEOF
15637 #define HAVE_KRB5_H 1
15638 _ACEOF
15639 ac_fn_c_check_member "$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
15641 if test "x$ac_cv_member_krb5_error_text" = x""yes; then :
15643 cat >>confdefs.h <<_ACEOF
15644 #define HAVE_KRB5_ERROR_TEXT 1
15645 _ACEOF
15649 ac_fn_c_check_member "$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
15651 if test "x$ac_cv_member_krb5_error_e_text" = x""yes; then :
15653 cat >>confdefs.h <<_ACEOF
15654 #define HAVE_KRB5_ERROR_E_TEXT 1
15655 _ACEOF
15662 done
15664 else
15665 for ac_header in des.h
15666 do :
15667 ac_fn_c_check_header_mongrel "$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
15668 if test "x$ac_cv_header_des_h" = x""yes; then :
15669 cat >>confdefs.h <<_ACEOF
15670 #define HAVE_DES_H 1
15671 _ACEOF
15673 else
15674 for ac_header in kerberosIV/des.h
15675 do :
15676 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
15677 if test "x$ac_cv_header_kerberosIV_des_h" = x""yes; then :
15678 cat >>confdefs.h <<_ACEOF
15679 #define HAVE_KERBEROSIV_DES_H 1
15680 _ACEOF
15682 else
15683 for ac_header in kerberos/des.h
15684 do :
15685 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
15686 if test "x$ac_cv_header_kerberos_des_h" = x""yes; then :
15687 cat >>confdefs.h <<_ACEOF
15688 #define HAVE_KERBEROS_DES_H 1
15689 _ACEOF
15693 done
15697 done
15701 done
15703 for ac_header in krb.h
15704 do :
15705 ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
15706 if test "x$ac_cv_header_krb_h" = x""yes; then :
15707 cat >>confdefs.h <<_ACEOF
15708 #define HAVE_KRB_H 1
15709 _ACEOF
15711 else
15712 for ac_header in kerberosIV/krb.h
15713 do :
15714 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
15715 if test "x$ac_cv_header_kerberosIV_krb_h" = x""yes; then :
15716 cat >>confdefs.h <<_ACEOF
15717 #define HAVE_KERBEROSIV_KRB_H 1
15718 _ACEOF
15720 else
15721 for ac_header in kerberos/krb.h
15722 do :
15723 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
15724 if test "x$ac_cv_header_kerberos_krb_h" = x""yes; then :
15725 cat >>confdefs.h <<_ACEOF
15726 #define HAVE_KERBEROS_KRB_H 1
15727 _ACEOF
15731 done
15735 done
15739 done
15742 for ac_header in com_err.h
15743 do :
15744 ac_fn_c_check_header_mongrel "$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
15745 if test "x$ac_cv_header_com_err_h" = x""yes; then :
15746 cat >>confdefs.h <<_ACEOF
15747 #define HAVE_COM_ERR_H 1
15748 _ACEOF
15752 done
15762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
15763 $as_echo_n "checking whether localtime caches TZ... " >&6; }
15764 if test "${emacs_cv_localtime_cache+set}" = set; then :
15765 $as_echo_n "(cached) " >&6
15766 else
15767 if test x$ac_cv_func_tzset = xyes; then
15768 if test "$cross_compiling" = yes; then :
15769 # If we have tzset, assume the worst when cross-compiling.
15770 emacs_cv_localtime_cache=yes
15771 else
15772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15773 /* end confdefs.h. */
15774 #include <time.h>
15775 char TZ_GMT0[] = "TZ=GMT0";
15776 char TZ_PST8[] = "TZ=PST8";
15777 main()
15779 time_t now = time ((time_t *) 0);
15780 int hour_GMT0, hour_unset;
15781 if (putenv (TZ_GMT0) != 0)
15782 exit (1);
15783 hour_GMT0 = localtime (&now)->tm_hour;
15784 unsetenv("TZ");
15785 hour_unset = localtime (&now)->tm_hour;
15786 if (putenv (TZ_PST8) != 0)
15787 exit (1);
15788 if (localtime (&now)->tm_hour == hour_GMT0)
15789 exit (1);
15790 unsetenv("TZ");
15791 if (localtime (&now)->tm_hour != hour_unset)
15792 exit (1);
15793 exit (0);
15795 _ACEOF
15796 if ac_fn_c_try_run "$LINENO"; then :
15797 emacs_cv_localtime_cache=no
15798 else
15799 emacs_cv_localtime_cache=yes
15801 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15802 conftest.$ac_objext conftest.beam conftest.$ac_ext
15805 else
15806 # If we lack tzset, report that localtime does not cache TZ,
15807 # since we can't invalidate the cache if we don't have tzset.
15808 emacs_cv_localtime_cache=no
15811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
15812 $as_echo "$emacs_cv_localtime_cache" >&6; }
15813 if test $emacs_cv_localtime_cache = yes; then
15815 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
15819 if test "x$HAVE_TIMEVAL" = xyes; then
15820 for ac_func in gettimeofday
15821 do :
15822 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
15823 if test "x$ac_cv_func_gettimeofday" = x""yes; then :
15824 cat >>confdefs.h <<_ACEOF
15825 #define HAVE_GETTIMEOFDAY 1
15826 _ACEOF
15829 done
15831 if test $ac_cv_func_gettimeofday = yes; then
15832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday can accept two arguments" >&5
15833 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
15834 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then :
15835 $as_echo_n "(cached) " >&6
15836 else
15837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15838 /* end confdefs.h. */
15840 #ifdef TIME_WITH_SYS_TIME
15841 #include <sys/time.h>
15842 #include <time.h>
15843 #else
15844 #ifdef HAVE_SYS_TIME_H
15845 #include <sys/time.h>
15846 #else
15847 #include <time.h>
15848 #endif
15849 #endif
15851 main ()
15853 struct timeval time;
15854 gettimeofday (&time, 0);
15856 return 0;
15858 _ACEOF
15859 if ac_fn_c_try_compile "$LINENO"; then :
15860 emacs_cv_gettimeofday_two_arguments=yes
15861 else
15862 emacs_cv_gettimeofday_two_arguments=no
15864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_gettimeofday_two_arguments" >&5
15867 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
15868 if test $emacs_cv_gettimeofday_two_arguments = no; then
15870 $as_echo "#define GETTIMEOFDAY_ONE_ARGUMENT 1" >>confdefs.h
15876 ok_so_far=yes
15877 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
15878 if test "x$ac_cv_func_socket" = x""yes; then :
15880 else
15881 ok_so_far=no
15884 if test $ok_so_far = yes; then
15885 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
15886 if test "x$ac_cv_header_netinet_in_h" = x""yes; then :
15888 else
15889 ok_so_far=no
15894 if test $ok_so_far = yes; then
15895 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
15896 if test "x$ac_cv_header_arpa_inet_h" = x""yes; then :
15898 else
15899 ok_so_far=no
15904 if test $ok_so_far = yes; then
15906 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
15910 if test -f /usr/lpp/X11/bin/smt.exp; then
15912 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
15916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
15917 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
15918 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
15919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15920 $as_echo "yes" >&6; }
15922 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
15924 else
15925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15926 $as_echo "no" >&6; }
15929 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
15930 if test "x$ac_cv_type_pid_t" = x""yes; then :
15932 else
15934 cat >>confdefs.h <<_ACEOF
15935 #define pid_t int
15936 _ACEOF
15940 for ac_header in vfork.h
15941 do :
15942 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
15943 if test "x$ac_cv_header_vfork_h" = x""yes; then :
15944 cat >>confdefs.h <<_ACEOF
15945 #define HAVE_VFORK_H 1
15946 _ACEOF
15950 done
15952 for ac_func in fork vfork
15953 do :
15954 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15955 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15956 eval as_val=\$$as_ac_var
15957 if test "x$as_val" = x""yes; then :
15958 cat >>confdefs.h <<_ACEOF
15959 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15960 _ACEOF
15963 done
15965 if test "x$ac_cv_func_fork" = xyes; then
15966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
15967 $as_echo_n "checking for working fork... " >&6; }
15968 if test "${ac_cv_func_fork_works+set}" = set; then :
15969 $as_echo_n "(cached) " >&6
15970 else
15971 if test "$cross_compiling" = yes; then :
15972 ac_cv_func_fork_works=cross
15973 else
15974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15975 /* end confdefs.h. */
15976 $ac_includes_default
15978 main ()
15981 /* By Ruediger Kuhlmann. */
15982 return fork () < 0;
15985 return 0;
15987 _ACEOF
15988 if ac_fn_c_try_run "$LINENO"; then :
15989 ac_cv_func_fork_works=yes
15990 else
15991 ac_cv_func_fork_works=no
15993 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15994 conftest.$ac_objext conftest.beam conftest.$ac_ext
15998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
15999 $as_echo "$ac_cv_func_fork_works" >&6; }
16001 else
16002 ac_cv_func_fork_works=$ac_cv_func_fork
16004 if test "x$ac_cv_func_fork_works" = xcross; then
16005 case $host in
16006 *-*-amigaos* | *-*-msdosdjgpp*)
16007 # Override, as these systems have only a dummy fork() stub
16008 ac_cv_func_fork_works=no
16011 ac_cv_func_fork_works=yes
16013 esac
16014 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
16015 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
16017 ac_cv_func_vfork_works=$ac_cv_func_vfork
16018 if test "x$ac_cv_func_vfork" = xyes; then
16019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
16020 $as_echo_n "checking for working vfork... " >&6; }
16021 if test "${ac_cv_func_vfork_works+set}" = set; then :
16022 $as_echo_n "(cached) " >&6
16023 else
16024 if test "$cross_compiling" = yes; then :
16025 ac_cv_func_vfork_works=cross
16026 else
16027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16028 /* end confdefs.h. */
16029 /* Thanks to Paul Eggert for this test. */
16030 $ac_includes_default
16031 #include <sys/wait.h>
16032 #ifdef HAVE_VFORK_H
16033 # include <vfork.h>
16034 #endif
16035 /* On some sparc systems, changes by the child to local and incoming
16036 argument registers are propagated back to the parent. The compiler
16037 is told about this with #include <vfork.h>, but some compilers
16038 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
16039 static variable whose address is put into a register that is
16040 clobbered by the vfork. */
16041 static void
16042 #ifdef __cplusplus
16043 sparc_address_test (int arg)
16044 # else
16045 sparc_address_test (arg) int arg;
16046 #endif
16048 static pid_t child;
16049 if (!child) {
16050 child = vfork ();
16051 if (child < 0) {
16052 perror ("vfork");
16053 _exit(2);
16055 if (!child) {
16056 arg = getpid();
16057 write(-1, "", 0);
16058 _exit (arg);
16064 main ()
16066 pid_t parent = getpid ();
16067 pid_t child;
16069 sparc_address_test (0);
16071 child = vfork ();
16073 if (child == 0) {
16074 /* Here is another test for sparc vfork register problems. This
16075 test uses lots of local variables, at least as many local
16076 variables as main has allocated so far including compiler
16077 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
16078 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
16079 reuse the register of parent for one of the local variables,
16080 since it will think that parent can't possibly be used any more
16081 in this routine. Assigning to the local variable will thus
16082 munge parent in the parent process. */
16083 pid_t
16084 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
16085 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
16086 /* Convince the compiler that p..p7 are live; otherwise, it might
16087 use the same hardware register for all 8 local variables. */
16088 if (p != p1 || p != p2 || p != p3 || p != p4
16089 || p != p5 || p != p6 || p != p7)
16090 _exit(1);
16092 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
16093 from child file descriptors. If the child closes a descriptor
16094 before it execs or exits, this munges the parent's descriptor
16095 as well. Test for this by closing stdout in the child. */
16096 _exit(close(fileno(stdout)) != 0);
16097 } else {
16098 int status;
16099 struct stat st;
16101 while (wait(&status) != child)
16103 return (
16104 /* Was there some problem with vforking? */
16105 child < 0
16107 /* Did the child fail? (This shouldn't happen.) */
16108 || status
16110 /* Did the vfork/compiler bug occur? */
16111 || parent != getpid()
16113 /* Did the file descriptor bug occur? */
16114 || fstat(fileno(stdout), &st) != 0
16118 _ACEOF
16119 if ac_fn_c_try_run "$LINENO"; then :
16120 ac_cv_func_vfork_works=yes
16121 else
16122 ac_cv_func_vfork_works=no
16124 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16125 conftest.$ac_objext conftest.beam conftest.$ac_ext
16129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
16130 $as_echo "$ac_cv_func_vfork_works" >&6; }
16133 if test "x$ac_cv_func_fork_works" = xcross; then
16134 ac_cv_func_vfork_works=$ac_cv_func_vfork
16135 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
16136 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
16139 if test "x$ac_cv_func_vfork_works" = xyes; then
16141 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
16143 else
16145 $as_echo "#define vfork fork" >>confdefs.h
16148 if test "x$ac_cv_func_fork_works" = xyes; then
16150 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
16155 for ac_func in snprintf
16156 do :
16157 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
16158 if test "x$ac_cv_func_snprintf" = x""yes; then :
16159 cat >>confdefs.h <<_ACEOF
16160 #define HAVE_SNPRINTF 1
16161 _ACEOF
16164 done
16167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
16168 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
16169 if test "${emacs_cv_langinfo_codeset+set}" = set; then :
16170 $as_echo_n "(cached) " >&6
16171 else
16172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16173 /* end confdefs.h. */
16174 #include <langinfo.h>
16176 main ()
16178 char* cs = nl_langinfo(CODESET);
16180 return 0;
16182 _ACEOF
16183 if ac_fn_c_try_link "$LINENO"; then :
16184 emacs_cv_langinfo_codeset=yes
16185 else
16186 emacs_cv_langinfo_codeset=no
16188 rm -f core conftest.err conftest.$ac_objext \
16189 conftest$ac_exeext conftest.$ac_ext
16192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
16193 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
16194 if test $emacs_cv_langinfo_codeset = yes; then
16196 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
16200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
16201 $as_echo_n "checking for mbstate_t... " >&6; }
16202 if test "${ac_cv_type_mbstate_t+set}" = set; then :
16203 $as_echo_n "(cached) " >&6
16204 else
16205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16206 /* end confdefs.h. */
16207 $ac_includes_default
16208 # include <wchar.h>
16210 main ()
16212 mbstate_t x; return sizeof x;
16214 return 0;
16216 _ACEOF
16217 if ac_fn_c_try_compile "$LINENO"; then :
16218 ac_cv_type_mbstate_t=yes
16219 else
16220 ac_cv_type_mbstate_t=no
16222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
16225 $as_echo "$ac_cv_type_mbstate_t" >&6; }
16226 if test $ac_cv_type_mbstate_t = yes; then
16228 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
16230 else
16232 $as_echo "#define mbstate_t int" >>confdefs.h
16236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
16237 $as_echo_n "checking for C restricted array declarations... " >&6; }
16238 if test "${emacs_cv_c_restrict_arr+set}" = set; then :
16239 $as_echo_n "(cached) " >&6
16240 else
16241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16242 /* end confdefs.h. */
16243 void fred (int x[__restrict]);
16245 main ()
16249 return 0;
16251 _ACEOF
16252 if ac_fn_c_try_compile "$LINENO"; then :
16253 emacs_cv_c_restrict_arr=yes
16254 else
16255 emacs_cv_c_restrict_arr=no
16257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
16260 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
16261 if test "$emacs_cv_c_restrict_arr" = yes; then
16263 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
16268 # Set up the CFLAGS for real compilation, so we can substitute it.
16269 CFLAGS="$REAL_CFLAGS"
16270 CPPFLAGS="$REAL_CPPFLAGS"
16272 ## Hack to detect a buggy GCC version.
16273 if test "x$GCC" = xyes \
16274 && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
16275 && test x"`echo $CFLAGS | grep '\-O[23]'`" != x \
16276 && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then
16277 as_fn_error "GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
16280 version=$PACKAGE_VERSION
16282 ### Specify what sort of things we'll be editing into Makefile and config.h.
16283 ### Use configuration here uncanonicalized to avoid exceeding size limits.
16286 ## Unused?
16307 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
16308 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
16309 ## end of LIBX_BASE, but nothing ever set it.
16314 ## Used in lwlib/Makefile.in.
16316 if test -n "${machfile}"; then
16317 M_FILE="\$(srcdir)/${machfile}"
16318 else
16319 M_FILE=
16321 S_FILE="\$(srcdir)/${opsysfile}"
16332 cat >>confdefs.h <<_ACEOF
16333 #define EMACS_CONFIGURATION "${canonical}"
16334 _ACEOF
16337 cat >>confdefs.h <<_ACEOF
16338 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
16339 _ACEOF
16341 if test -n "$machfile"; then
16343 cat >>confdefs.h <<_ACEOF
16344 #define config_machfile "${machfile}"
16345 _ACEOF
16349 cat >>confdefs.h <<_ACEOF
16350 #define config_opsysfile "${opsysfile}"
16351 _ACEOF
16354 XMENU_OBJ=
16355 XOBJ=
16356 FONT_OBJ=
16357 if test "${HAVE_X_WINDOWS}" = "yes" ; then
16359 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
16361 XMENU_OBJ=xmenu.o
16362 XOBJ="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
16363 FONT_OBJ=xfont.o
16364 if test "$HAVE_XFT" = "yes"; then
16365 FONT_OBJ="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
16366 elif test "$HAVE_FREETYPE" = "yes"; then
16367 FONT_OBJ="$FONT_OBJ ftfont.o ftxfont.o"
16375 WIDGET_OBJ=
16376 MOTIF_LIBW=
16377 if test "${USE_X_TOOLKIT}" != "none" ; then
16378 WIDGET_OBJ=widget.o
16380 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
16382 if test "${USE_X_TOOLKIT}" = "LUCID"; then
16384 $as_echo "#define USE_LUCID 1" >>confdefs.h
16386 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
16388 $as_echo "#define USE_MOTIF 1" >>confdefs.h
16390 MOTIF_LIBW=-lXm
16391 case "$opsys" in
16392 gnu-linux)
16393 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
16394 MOTIF_LIBW="$MOTIF_LIBW -lXpm"
16397 unixware)
16398 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
16399 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
16400 MOTIF_LIBW="MOTIF_LIBW -lXimp"
16403 aix4-2)
16404 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
16405 MOTIF_LIBW="$MOTIF_LIBW -li18n"
16407 esac
16408 MOTIF_LIBW="$MOTIF_LIBW $LIBXP"
16413 TOOLKIT_LIBW=
16414 case "$USE_X_TOOLKIT" in
16415 MOTIF) TOOLKIT_LIBW="$MOTIF_LIBW" ;;
16416 LUCID) TOOLKIT_LIBW="$LUCID_LIBW" ;;
16417 none) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW="$GTK_LIBS" ;;
16418 esac
16421 if test "$USE_X_TOOLKIT" = "none"; then
16422 LIBXT_OTHER="\$(LIBXSM)"
16423 OLDXMENU_TARGET="really-oldXMenu"
16424 else
16425 LIBXT_OTHER="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
16426 OLDXMENU_TARGET="really-lwlib"
16430 ## The X Menu stuff is present in the X10 distribution, but missing
16431 ## from X11. If we have X10, just use the installed library;
16432 ## otherwise, use our own copy.
16433 if test "${HAVE_X11}" = "yes" ; then
16435 $as_echo "#define HAVE_X11 1" >>confdefs.h
16438 if test "$USE_X_TOOLKIT" = "none"; then
16439 OLDXMENU="\${oldXMenudir}/libXMenu11.a"
16440 else
16441 OLDXMENU="\${lwlibdir}/liblw.a"
16443 LIBXMENU="\$(OLDXMENU)"
16444 LIBX_OTHER="\$(LIBXT) \$(LIBX_EXTRA)"
16445 OLDXMENU_DEPS="\${OLDXMENU} ../src/\${OLDXMENU}"
16446 else
16447 ## For a syntactically valid Makefile; not actually used for anything.
16448 ## See comments in src/Makefile.in.
16449 OLDXMENU=nothing
16450 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
16451 if test "${HAVE_X_WINDOWS}" = "yes"; then
16452 LIBXMENU="-lXMenu"
16453 else
16454 LIBXMENU=
16456 LIBX_OTHER=
16457 OLDXMENU_DEPS=
16460 if test "$HAVE_GTK" = "yes" || test "$HAVE_MENUS" != "yes"; then
16461 OLDXMENU_TARGET=
16462 OLDXMENU=nothing
16463 LIBXMENU=
16464 OLDXMENU_DEPS=
16473 if test "${HAVE_MENUS}" = "yes" ; then
16475 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
16479 if test "${GNU_MALLOC}" = "yes" ; then
16481 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
16485 RALLOC_OBJ=
16486 if test "${REL_ALLOC}" = "yes" ; then
16488 $as_echo "#define REL_ALLOC 1" >>confdefs.h
16491 test "$system_malloc" != "yes" && RALLOC_OBJ=ralloc.o
16495 if test "$opsys" = "cygwin"; then
16496 CYGWIN_OBJ="sheap.o"
16497 ## Cygwin differs because of its unexec().
16498 PRE_ALLOC_OBJ=
16499 POST_ALLOC_OBJ=lastfile.o
16500 else
16501 CYGWIN_OBJ=
16502 PRE_ALLOC_OBJ=lastfile.o
16503 POST_ALLOC_OBJ=
16509 # Configure gnulib here, now that we know LIBS.
16521 LIBC_FATAL_STDERR_=1
16522 export LIBC_FATAL_STDERR_
16524 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16525 # for constant arguments. Useless!
16526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
16527 $as_echo_n "checking for working alloca.h... " >&6; }
16528 if test "${ac_cv_working_alloca_h+set}" = set; then :
16529 $as_echo_n "(cached) " >&6
16530 else
16531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16532 /* end confdefs.h. */
16533 #include <alloca.h>
16535 main ()
16537 char *p = (char *) alloca (2 * sizeof (int));
16538 if (p) return 0;
16540 return 0;
16542 _ACEOF
16543 if ac_fn_c_try_link "$LINENO"; then :
16544 ac_cv_working_alloca_h=yes
16545 else
16546 ac_cv_working_alloca_h=no
16548 rm -f core conftest.err conftest.$ac_objext \
16549 conftest$ac_exeext conftest.$ac_ext
16551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
16552 $as_echo "$ac_cv_working_alloca_h" >&6; }
16553 if test $ac_cv_working_alloca_h = yes; then
16555 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
16559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
16560 $as_echo_n "checking for alloca... " >&6; }
16561 if test "${ac_cv_func_alloca_works+set}" = set; then :
16562 $as_echo_n "(cached) " >&6
16563 else
16564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16565 /* end confdefs.h. */
16566 #ifdef __GNUC__
16567 # define alloca __builtin_alloca
16568 #else
16569 # ifdef _MSC_VER
16570 # include <malloc.h>
16571 # define alloca _alloca
16572 # else
16573 # ifdef HAVE_ALLOCA_H
16574 # include <alloca.h>
16575 # else
16576 # ifdef _AIX
16577 #pragma alloca
16578 # else
16579 # ifndef alloca /* predefined by HP cc +Olibcalls */
16580 char *alloca ();
16581 # endif
16582 # endif
16583 # endif
16584 # endif
16585 #endif
16588 main ()
16590 char *p = (char *) alloca (1);
16591 if (p) return 0;
16593 return 0;
16595 _ACEOF
16596 if ac_fn_c_try_link "$LINENO"; then :
16597 ac_cv_func_alloca_works=yes
16598 else
16599 ac_cv_func_alloca_works=no
16601 rm -f core conftest.err conftest.$ac_objext \
16602 conftest$ac_exeext conftest.$ac_ext
16604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
16605 $as_echo "$ac_cv_func_alloca_works" >&6; }
16607 if test $ac_cv_func_alloca_works = yes; then
16609 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
16611 else
16612 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16613 # that cause trouble. Some versions do not even contain alloca or
16614 # contain a buggy version. If you still want to use their alloca,
16615 # use ar to extract alloca.o from them instead of compiling alloca.c.
16621 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
16623 $as_echo "#define C_ALLOCA 1" >>confdefs.h
16626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
16627 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
16628 if test "${ac_cv_os_cray+set}" = set; then :
16629 $as_echo_n "(cached) " >&6
16630 else
16631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16632 /* end confdefs.h. */
16633 #if defined CRAY && ! defined CRAY2
16634 webecray
16635 #else
16636 wenotbecray
16637 #endif
16639 _ACEOF
16640 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16641 $EGREP "webecray" >/dev/null 2>&1; then :
16642 ac_cv_os_cray=yes
16643 else
16644 ac_cv_os_cray=no
16646 rm -f conftest*
16649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
16650 $as_echo "$ac_cv_os_cray" >&6; }
16651 if test $ac_cv_os_cray = yes; then
16652 for ac_func in _getb67 GETB67 getb67; do
16653 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16654 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16655 eval as_val=\$$as_ac_var
16656 if test "x$as_val" = x""yes; then :
16658 cat >>confdefs.h <<_ACEOF
16659 #define CRAY_STACKSEG_END $ac_func
16660 _ACEOF
16662 break
16665 done
16668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
16669 $as_echo_n "checking stack direction for C alloca... " >&6; }
16670 if test "${ac_cv_c_stack_direction+set}" = set; then :
16671 $as_echo_n "(cached) " >&6
16672 else
16673 if test "$cross_compiling" = yes; then :
16674 ac_cv_c_stack_direction=0
16675 else
16676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16677 /* end confdefs.h. */
16678 $ac_includes_default
16680 find_stack_direction (int *addr, int depth)
16682 int dir, dummy = 0;
16683 if (! addr)
16684 addr = &dummy;
16685 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
16686 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
16687 return dir + dummy;
16691 main (int argc, char **argv)
16693 return find_stack_direction (0, argc + !argv + 20) < 0;
16695 _ACEOF
16696 if ac_fn_c_try_run "$LINENO"; then :
16697 ac_cv_c_stack_direction=1
16698 else
16699 ac_cv_c_stack_direction=-1
16701 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16702 conftest.$ac_objext conftest.beam conftest.$ac_ext
16706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
16707 $as_echo "$ac_cv_c_stack_direction" >&6; }
16708 cat >>confdefs.h <<_ACEOF
16709 #define STACK_DIRECTION $ac_cv_c_stack_direction
16710 _ACEOF
16718 for ac_func in $ac_func_list
16719 do :
16720 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16721 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16722 eval as_val=\$$as_ac_var
16723 if test "x$as_val" = x""yes; then :
16724 cat >>confdefs.h <<_ACEOF
16725 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16726 _ACEOF
16729 done
16734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
16735 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
16736 if test "${ac_cv_c_bigendian+set}" = set; then :
16737 $as_echo_n "(cached) " >&6
16738 else
16739 ac_cv_c_bigendian=unknown
16740 # See if we're dealing with a universal compiler.
16741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16742 /* end confdefs.h. */
16743 #ifndef __APPLE_CC__
16744 not a universal capable compiler
16745 #endif
16746 typedef int dummy;
16748 _ACEOF
16749 if ac_fn_c_try_compile "$LINENO"; then :
16751 # Check for potential -arch flags. It is not universal unless
16752 # there are at least two -arch flags with different values.
16753 ac_arch=
16754 ac_prev=
16755 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
16756 if test -n "$ac_prev"; then
16757 case $ac_word in
16758 i?86 | x86_64 | ppc | ppc64)
16759 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
16760 ac_arch=$ac_word
16761 else
16762 ac_cv_c_bigendian=universal
16763 break
16766 esac
16767 ac_prev=
16768 elif test "x$ac_word" = "x-arch"; then
16769 ac_prev=arch
16771 done
16773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16774 if test $ac_cv_c_bigendian = unknown; then
16775 # See if sys/param.h defines the BYTE_ORDER macro.
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 ! (defined BYTE_ORDER && defined BIG_ENDIAN \
16785 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
16786 && LITTLE_ENDIAN)
16787 bogus endian macros
16788 #endif
16791 return 0;
16793 _ACEOF
16794 if ac_fn_c_try_compile "$LINENO"; then :
16795 # It does; now see whether it defined to BIG_ENDIAN or not.
16796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16797 /* end confdefs.h. */
16798 #include <sys/types.h>
16799 #include <sys/param.h>
16802 main ()
16804 #if BYTE_ORDER != BIG_ENDIAN
16805 not big endian
16806 #endif
16809 return 0;
16811 _ACEOF
16812 if ac_fn_c_try_compile "$LINENO"; then :
16813 ac_cv_c_bigendian=yes
16814 else
16815 ac_cv_c_bigendian=no
16817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16821 if test $ac_cv_c_bigendian = unknown; then
16822 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
16823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16824 /* end confdefs.h. */
16825 #include <limits.h>
16828 main ()
16830 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
16831 bogus endian macros
16832 #endif
16835 return 0;
16837 _ACEOF
16838 if ac_fn_c_try_compile "$LINENO"; then :
16839 # It does; now see whether it defined to _BIG_ENDIAN or not.
16840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16841 /* end confdefs.h. */
16842 #include <limits.h>
16845 main ()
16847 #ifndef _BIG_ENDIAN
16848 not big endian
16849 #endif
16852 return 0;
16854 _ACEOF
16855 if ac_fn_c_try_compile "$LINENO"; then :
16856 ac_cv_c_bigendian=yes
16857 else
16858 ac_cv_c_bigendian=no
16860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16864 if test $ac_cv_c_bigendian = unknown; then
16865 # Compile a test program.
16866 if test "$cross_compiling" = yes; then :
16867 # Try to guess by grepping values from an object file.
16868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16869 /* end confdefs.h. */
16870 short int ascii_mm[] =
16871 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
16872 short int ascii_ii[] =
16873 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
16874 int use_ascii (int i) {
16875 return ascii_mm[i] + ascii_ii[i];
16877 short int ebcdic_ii[] =
16878 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
16879 short int ebcdic_mm[] =
16880 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
16881 int use_ebcdic (int i) {
16882 return ebcdic_mm[i] + ebcdic_ii[i];
16884 extern int foo;
16887 main ()
16889 return use_ascii (foo) == use_ebcdic (foo);
16891 return 0;
16893 _ACEOF
16894 if ac_fn_c_try_compile "$LINENO"; then :
16895 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
16896 ac_cv_c_bigendian=yes
16898 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
16899 if test "$ac_cv_c_bigendian" = unknown; then
16900 ac_cv_c_bigendian=no
16901 else
16902 # finding both strings is unlikely to happen, but who knows?
16903 ac_cv_c_bigendian=unknown
16907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16908 else
16909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16910 /* end confdefs.h. */
16911 $ac_includes_default
16913 main ()
16916 /* Are we little or big endian? From Harbison&Steele. */
16917 union
16919 long int l;
16920 char c[sizeof (long int)];
16921 } u;
16922 u.l = 1;
16923 return u.c[sizeof (long int) - 1] == 1;
16926 return 0;
16928 _ACEOF
16929 if ac_fn_c_try_run "$LINENO"; then :
16930 ac_cv_c_bigendian=no
16931 else
16932 ac_cv_c_bigendian=yes
16934 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16935 conftest.$ac_objext conftest.beam conftest.$ac_ext
16940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
16941 $as_echo "$ac_cv_c_bigendian" >&6; }
16942 case $ac_cv_c_bigendian in #(
16943 yes)
16944 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
16945 ;; #(
16947 ;; #(
16948 universal)
16950 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
16952 ;; #(
16954 as_fn_error "unknown endianness
16955 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
16956 esac
16959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
16960 $as_echo_n "checking for inline... " >&6; }
16961 if test "${ac_cv_c_inline+set}" = set; then :
16962 $as_echo_n "(cached) " >&6
16963 else
16964 ac_cv_c_inline=no
16965 for ac_kw in inline __inline__ __inline; do
16966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16967 /* end confdefs.h. */
16968 #ifndef __cplusplus
16969 typedef int foo_t;
16970 static $ac_kw foo_t static_foo () {return 0; }
16971 $ac_kw foo_t foo () {return 0; }
16972 #endif
16974 _ACEOF
16975 if ac_fn_c_try_compile "$LINENO"; then :
16976 ac_cv_c_inline=$ac_kw
16978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16979 test "$ac_cv_c_inline" != no && break
16980 done
16983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
16984 $as_echo "$ac_cv_c_inline" >&6; }
16986 case $ac_cv_c_inline in
16987 inline | yes) ;;
16989 case $ac_cv_c_inline in
16990 no) ac_val=;;
16991 *) ac_val=$ac_cv_c_inline;;
16992 esac
16993 cat >>confdefs.h <<_ACEOF
16994 #ifndef __cplusplus
16995 #define inline $ac_val
16996 #endif
16997 _ACEOF
16999 esac
17002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtold conforms to C99" >&5
17003 $as_echo_n "checking whether strtold conforms to C99... " >&6; }
17004 if test "${gl_cv_func_c99_strtold+set}" = set; then :
17005 $as_echo_n "(cached) " >&6
17006 else
17007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17008 /* end confdefs.h. */
17009 /* On HP-UX before 11.23, strtold returns a struct instead of
17010 long double. Reject implementations like that, by requiring
17011 compatibility with the C99 prototype. */
17012 #include <stdlib.h>
17013 static long double (*p) (char const *, char **) = strtold;
17014 static long double
17015 test (char const *nptr, char **endptr)
17017 long double r;
17018 r = strtold (nptr, endptr);
17019 return r;
17022 main ()
17024 return test ("1.0", NULL) != 1 || p ("1.0", NULL) != 1;
17026 return 0;
17028 _ACEOF
17029 if ac_fn_c_try_link "$LINENO"; then :
17030 gl_cv_func_c99_strtold=yes
17031 else
17032 gl_cv_func_c99_strtold=no
17034 rm -f core conftest.err conftest.$ac_objext \
17035 conftest$ac_exeext conftest.$ac_ext
17037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_c99_strtold" >&5
17038 $as_echo "$gl_cv_func_c99_strtold" >&6; }
17039 if test $gl_cv_func_c99_strtold = yes; then
17041 $as_echo "#define HAVE_C99_STRTOLD 1" >>confdefs.h
17046 GNULIB_CHDIR=0;
17047 GNULIB_CHOWN=0;
17048 GNULIB_CLOSE=0;
17049 GNULIB_DUP=0;
17050 GNULIB_DUP2=0;
17051 GNULIB_DUP3=0;
17052 GNULIB_ENVIRON=0;
17053 GNULIB_EUIDACCESS=0;
17054 GNULIB_FACCESSAT=0;
17055 GNULIB_FCHDIR=0;
17056 GNULIB_FCHOWNAT=0;
17057 GNULIB_FDATASYNC=0;
17058 GNULIB_FSYNC=0;
17059 GNULIB_FTRUNCATE=0;
17060 GNULIB_GETCWD=0;
17061 GNULIB_GETDOMAINNAME=0;
17062 GNULIB_GETDTABLESIZE=0;
17063 GNULIB_GETGROUPS=0;
17064 GNULIB_GETHOSTNAME=0;
17065 GNULIB_GETLOGIN=0;
17066 GNULIB_GETLOGIN_R=0;
17067 GNULIB_GETPAGESIZE=0;
17068 GNULIB_GETUSERSHELL=0;
17069 GNULIB_GROUP_MEMBER=0;
17070 GNULIB_LCHOWN=0;
17071 GNULIB_LINK=0;
17072 GNULIB_LINKAT=0;
17073 GNULIB_LSEEK=0;
17074 GNULIB_PIPE=0;
17075 GNULIB_PIPE2=0;
17076 GNULIB_PREAD=0;
17077 GNULIB_PWRITE=0;
17078 GNULIB_READ=0;
17079 GNULIB_READLINK=0;
17080 GNULIB_READLINKAT=0;
17081 GNULIB_RMDIR=0;
17082 GNULIB_SLEEP=0;
17083 GNULIB_SYMLINK=0;
17084 GNULIB_SYMLINKAT=0;
17085 GNULIB_TTYNAME_R=0;
17086 GNULIB_UNISTD_H_GETOPT=0;
17087 GNULIB_UNISTD_H_NONBLOCKING=0;
17088 GNULIB_UNISTD_H_SIGPIPE=0;
17089 GNULIB_UNLINK=0;
17090 GNULIB_UNLINKAT=0;
17091 GNULIB_USLEEP=0;
17092 GNULIB_WRITE=0;
17093 HAVE_CHOWN=1;
17094 HAVE_DUP2=1;
17095 HAVE_DUP3=1;
17096 HAVE_EUIDACCESS=1;
17097 HAVE_FACCESSAT=1;
17098 HAVE_FCHDIR=1;
17099 HAVE_FCHOWNAT=1;
17100 HAVE_FDATASYNC=1;
17101 HAVE_FSYNC=1;
17102 HAVE_FTRUNCATE=1;
17103 HAVE_GETDTABLESIZE=1;
17104 HAVE_GETGROUPS=1;
17105 HAVE_GETHOSTNAME=1;
17106 HAVE_GETLOGIN=1;
17107 HAVE_GETPAGESIZE=1;
17108 HAVE_GROUP_MEMBER=1;
17109 HAVE_LCHOWN=1;
17110 HAVE_LINK=1;
17111 HAVE_LINKAT=1;
17112 HAVE_PIPE=1;
17113 HAVE_PIPE2=1;
17114 HAVE_PREAD=1;
17115 HAVE_PWRITE=1;
17116 HAVE_READLINK=1;
17117 HAVE_READLINKAT=1;
17118 HAVE_SLEEP=1;
17119 HAVE_SYMLINK=1;
17120 HAVE_SYMLINKAT=1;
17121 HAVE_UNLINKAT=1;
17122 HAVE_USLEEP=1;
17123 HAVE_DECL_ENVIRON=1;
17124 HAVE_DECL_FCHDIR=1;
17125 HAVE_DECL_FDATASYNC=1;
17126 HAVE_DECL_GETDOMAINNAME=1;
17127 HAVE_DECL_GETLOGIN_R=1;
17128 HAVE_DECL_GETPAGESIZE=1;
17129 HAVE_DECL_GETUSERSHELL=1;
17130 HAVE_DECL_TTYNAME_R=1;
17131 HAVE_OS_H=0;
17132 HAVE_SYS_PARAM_H=0;
17133 REPLACE_CHOWN=0;
17134 REPLACE_CLOSE=0;
17135 REPLACE_DUP=0;
17136 REPLACE_DUP2=0;
17137 REPLACE_FCHOWNAT=0;
17138 REPLACE_GETCWD=0;
17139 REPLACE_GETDOMAINNAME=0;
17140 REPLACE_GETLOGIN_R=0;
17141 REPLACE_GETGROUPS=0;
17142 REPLACE_GETPAGESIZE=0;
17143 REPLACE_LCHOWN=0;
17144 REPLACE_LINK=0;
17145 REPLACE_LINKAT=0;
17146 REPLACE_LSEEK=0;
17147 REPLACE_PREAD=0;
17148 REPLACE_PWRITE=0;
17149 REPLACE_READ=0;
17150 REPLACE_READLINK=0;
17151 REPLACE_RMDIR=0;
17152 REPLACE_SLEEP=0;
17153 REPLACE_SYMLINK=0;
17154 REPLACE_TTYNAME_R=0;
17155 REPLACE_UNLINK=0;
17156 REPLACE_UNLINKAT=0;
17157 REPLACE_USLEEP=0;
17158 REPLACE_WRITE=0;
17159 UNISTD_H_HAVE_WINSOCK2_H=0;
17160 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
17163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_dm_mode in struct stat" >&5
17164 $as_echo_n "checking for st_dm_mode in struct stat... " >&6; }
17165 if test "${ac_cv_struct_st_dm_mode+set}" = set; then :
17166 $as_echo_n "(cached) " >&6
17167 else
17168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17169 /* end confdefs.h. */
17171 #include <sys/types.h>
17172 #include <sys/stat.h>
17174 main ()
17176 struct stat s; s.st_dm_mode;
17178 return 0;
17180 _ACEOF
17181 if ac_fn_c_try_compile "$LINENO"; then :
17182 ac_cv_struct_st_dm_mode=yes
17183 else
17184 ac_cv_struct_st_dm_mode=no
17186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_st_dm_mode" >&5
17189 $as_echo "$ac_cv_struct_st_dm_mode" >&6; }
17191 if test $ac_cv_struct_st_dm_mode = yes; then
17193 $as_echo "#define HAVE_ST_DM_MODE 1" >>confdefs.h
17198 ac_fn_c_check_decl "$LINENO" "strmode" "ac_cv_have_decl_strmode" "$ac_includes_default"
17199 if test "x$ac_cv_have_decl_strmode" = x""yes; then :
17200 ac_have_decl=1
17201 else
17202 ac_have_decl=0
17205 cat >>confdefs.h <<_ACEOF
17206 #define HAVE_DECL_STRMODE $ac_have_decl
17207 _ACEOF
17210 GNULIB__EXIT=0;
17211 GNULIB_ATOLL=0;
17212 GNULIB_CALLOC_POSIX=0;
17213 GNULIB_CANONICALIZE_FILE_NAME=0;
17214 GNULIB_GETLOADAVG=0;
17215 GNULIB_GETSUBOPT=0;
17216 GNULIB_GRANTPT=0;
17217 GNULIB_MALLOC_POSIX=0;
17218 GNULIB_MBTOWC=0;
17219 GNULIB_MKDTEMP=0;
17220 GNULIB_MKOSTEMP=0;
17221 GNULIB_MKOSTEMPS=0;
17222 GNULIB_MKSTEMP=0;
17223 GNULIB_MKSTEMPS=0;
17224 GNULIB_PTSNAME=0;
17225 GNULIB_PUTENV=0;
17226 GNULIB_RANDOM_R=0;
17227 GNULIB_REALLOC_POSIX=0;
17228 GNULIB_REALPATH=0;
17229 GNULIB_RPMATCH=0;
17230 GNULIB_SETENV=0;
17231 GNULIB_STRTOD=0;
17232 GNULIB_STRTOLL=0;
17233 GNULIB_STRTOULL=0;
17234 GNULIB_SYSTEM_POSIX=0;
17235 GNULIB_UNLOCKPT=0;
17236 GNULIB_UNSETENV=0;
17237 GNULIB_WCTOMB=0;
17238 HAVE__EXIT=1;
17239 HAVE_ATOLL=1;
17240 HAVE_CANONICALIZE_FILE_NAME=1;
17241 HAVE_DECL_GETLOADAVG=1;
17242 HAVE_GETSUBOPT=1;
17243 HAVE_GRANTPT=1;
17244 HAVE_MKDTEMP=1;
17245 HAVE_MKOSTEMP=1;
17246 HAVE_MKOSTEMPS=1;
17247 HAVE_MKSTEMP=1;
17248 HAVE_MKSTEMPS=1;
17249 HAVE_PTSNAME=1;
17250 HAVE_RANDOM_H=1;
17251 HAVE_RANDOM_R=1;
17252 HAVE_REALPATH=1;
17253 HAVE_RPMATCH=1;
17254 HAVE_SETENV=1;
17255 HAVE_DECL_SETENV=1;
17256 HAVE_STRTOD=1;
17257 HAVE_STRTOLL=1;
17258 HAVE_STRTOULL=1;
17259 HAVE_STRUCT_RANDOM_DATA=1;
17260 HAVE_SYS_LOADAVG_H=0;
17261 HAVE_UNLOCKPT=1;
17262 HAVE_DECL_UNSETENV=1;
17263 REPLACE_CALLOC=0;
17264 REPLACE_CANONICALIZE_FILE_NAME=0;
17265 REPLACE_MALLOC=0;
17266 REPLACE_MBTOWC=0;
17267 REPLACE_MKSTEMP=0;
17268 REPLACE_PUTENV=0;
17269 REPLACE_REALLOC=0;
17270 REPLACE_REALPATH=0;
17271 REPLACE_SETENV=0;
17272 REPLACE_STRTOD=0;
17273 REPLACE_UNSETENV=0;
17274 REPLACE_WCTOMB=0;
17278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
17279 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
17280 if test "${gl_cv_have_include_next+set}" = set; then :
17281 $as_echo_n "(cached) " >&6
17282 else
17283 rm -rf conftestd1a conftestd1b conftestd2
17284 mkdir conftestd1a conftestd1b conftestd2
17285 cat <<EOF > conftestd1a/conftest.h
17286 #define DEFINED_IN_CONFTESTD1
17287 #include_next <conftest.h>
17288 #ifdef DEFINED_IN_CONFTESTD2
17289 int foo;
17290 #else
17291 #error "include_next doesn't work"
17292 #endif
17294 cat <<EOF > conftestd1b/conftest.h
17295 #define DEFINED_IN_CONFTESTD1
17296 #include <stdio.h>
17297 #include_next <conftest.h>
17298 #ifdef DEFINED_IN_CONFTESTD2
17299 int foo;
17300 #else
17301 #error "include_next doesn't work"
17302 #endif
17304 cat <<EOF > conftestd2/conftest.h
17305 #ifndef DEFINED_IN_CONFTESTD1
17306 #error "include_next test doesn't work"
17307 #endif
17308 #define DEFINED_IN_CONFTESTD2
17310 gl_save_CPPFLAGS="$CPPFLAGS"
17311 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
17312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17313 /* end confdefs.h. */
17314 #include <conftest.h>
17315 _ACEOF
17316 if ac_fn_c_try_compile "$LINENO"; then :
17317 gl_cv_have_include_next=yes
17318 else
17319 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
17320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17321 /* end confdefs.h. */
17322 #include <conftest.h>
17323 _ACEOF
17324 if ac_fn_c_try_compile "$LINENO"; then :
17325 gl_cv_have_include_next=buggy
17326 else
17327 gl_cv_have_include_next=no
17329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17333 CPPFLAGS="$gl_save_CPPFLAGS"
17334 rm -rf conftestd1a conftestd1b conftestd2
17337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
17338 $as_echo "$gl_cv_have_include_next" >&6; }
17339 PRAGMA_SYSTEM_HEADER=
17340 if test $gl_cv_have_include_next = yes; then
17341 INCLUDE_NEXT=include_next
17342 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
17343 if test -n "$GCC"; then
17344 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
17346 else
17347 if test $gl_cv_have_include_next = buggy; then
17348 INCLUDE_NEXT=include
17349 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
17350 else
17351 INCLUDE_NEXT=include
17352 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
17358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
17359 $as_echo_n "checking whether system header files limit the line length... " >&6; }
17360 if test "${gl_cv_pragma_columns+set}" = set; then :
17361 $as_echo_n "(cached) " >&6
17362 else
17363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17364 /* end confdefs.h. */
17366 #ifdef __TANDEM
17367 choke me
17368 #endif
17370 _ACEOF
17371 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17372 $EGREP "choke me" >/dev/null 2>&1; then :
17373 gl_cv_pragma_columns=yes
17374 else
17375 gl_cv_pragma_columns=no
17377 rm -f conftest*
17381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
17382 $as_echo "$gl_cv_pragma_columns" >&6; }
17383 if test $gl_cv_pragma_columns = yes; then
17384 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
17385 else
17386 PRAGMA_COLUMNS=
17405 if test $gl_cv_have_include_next = yes; then
17406 gl_cv_next_getopt_h='<'getopt.h'>'
17407 else
17408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
17409 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
17410 if test "${gl_cv_next_getopt_h+set}" = set; then :
17411 $as_echo_n "(cached) " >&6
17412 else
17414 if test $ac_cv_header_getopt_h = yes; then
17417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17418 /* end confdefs.h. */
17419 #include <getopt.h>
17421 _ACEOF
17422 case "$host_os" in
17423 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17424 *) gl_absname_cpp="$ac_cpp" ;;
17425 esac
17427 case "$host_os" in
17428 mingw*)
17429 gl_dirsep_regex='[/\\]'
17432 gl_dirsep_regex='/'
17434 esac
17436 gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'getopt.h|{
17437 s|.*"\(.*'"${gl_dirsep_regex}"'getopt.h\)".*|\1|
17438 s|^/[^/]|//&|
17442 gl_cv_next_getopt_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17443 sed -n "$gl_absolute_header_sed"`'"'
17444 else
17445 gl_cv_next_getopt_h='<'getopt.h'>'
17450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
17451 $as_echo "$gl_cv_next_getopt_h" >&6; }
17453 NEXT_GETOPT_H=$gl_cv_next_getopt_h
17455 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17456 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17457 gl_next_as_first_directive='<'getopt.h'>'
17458 else
17459 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17460 gl_next_as_first_directive=$gl_cv_next_getopt_h
17462 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H=$gl_next_as_first_directive
17467 if test $ac_cv_header_getopt_h = yes; then
17468 HAVE_GETOPT_H=1
17469 else
17470 HAVE_GETOPT_H=0
17474 gl_replace_getopt=
17476 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
17477 for ac_header in getopt.h
17478 do :
17479 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
17480 if test "x$ac_cv_header_getopt_h" = x""yes; then :
17481 cat >>confdefs.h <<_ACEOF
17482 #define HAVE_GETOPT_H 1
17483 _ACEOF
17485 else
17486 gl_replace_getopt=yes
17489 done
17493 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
17494 for ac_func in getopt_long_only
17495 do :
17496 ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
17497 if test "x$ac_cv_func_getopt_long_only" = x""yes; then :
17498 cat >>confdefs.h <<_ACEOF
17499 #define HAVE_GETOPT_LONG_ONLY 1
17500 _ACEOF
17502 else
17503 gl_replace_getopt=yes
17505 done
17509 if test -z "$gl_replace_getopt"; then
17510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
17511 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
17512 if test "${gl_cv_func_getopt_posix+set}" = set; then :
17513 $as_echo_n "(cached) " >&6
17514 else
17516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17517 /* end confdefs.h. */
17518 #include <unistd.h>
17520 main ()
17522 int *p = &optreset; return optreset;
17524 return 0;
17526 _ACEOF
17527 if ac_fn_c_try_link "$LINENO"; then :
17528 gl_optind_min=1
17529 else
17530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17531 /* end confdefs.h. */
17532 #include <getopt.h>
17534 main ()
17536 return !getopt_clip;
17538 return 0;
17540 _ACEOF
17541 if ac_fn_c_try_compile "$LINENO"; then :
17542 gl_optind_min=1
17543 else
17544 gl_optind_min=0
17546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17548 rm -f core conftest.err conftest.$ac_objext \
17549 conftest$ac_exeext conftest.$ac_ext
17551 gl_save_CPPFLAGS=$CPPFLAGS
17552 CPPFLAGS="$CPPFLAGS -DOPTIND_MIN=$gl_optind_min"
17553 if test "$cross_compiling" = yes; then :
17554 case "$host_os" in
17555 mingw*) gl_cv_func_getopt_posix="guessing no";;
17556 darwin* | aix*) gl_cv_func_getopt_posix="guessing no";;
17557 *) gl_cv_func_getopt_posix="guessing yes";;
17558 esac
17560 else
17561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17562 /* end confdefs.h. */
17564 #include <unistd.h>
17565 #include <stdlib.h>
17566 #include <string.h>
17569 main ()
17572 static char program[] = "program";
17573 static char a[] = "-a";
17574 static char foo[] = "foo";
17575 static char bar[] = "bar";
17576 char *argv[] = { program, a, foo, bar, NULL };
17577 int c;
17579 optind = OPTIND_MIN;
17580 opterr = 0;
17582 c = getopt (4, argv, "ab");
17583 if (!(c == 'a'))
17584 return 1;
17585 c = getopt (4, argv, "ab");
17586 if (!(c == -1))
17587 return 2;
17588 if (!(optind == 2))
17589 return 3;
17591 /* Some internal state exists at this point. */
17593 static char program[] = "program";
17594 static char donald[] = "donald";
17595 static char p[] = "-p";
17596 static char billy[] = "billy";
17597 static char duck[] = "duck";
17598 static char a[] = "-a";
17599 static char bar[] = "bar";
17600 char *argv[] = { program, donald, p, billy, duck, a, bar, NULL };
17601 int c;
17603 optind = OPTIND_MIN;
17604 opterr = 0;
17606 c = getopt (7, argv, "+abp:q:");
17607 if (!(c == -1))
17608 return 4;
17609 if (!(strcmp (argv[0], "program") == 0))
17610 return 5;
17611 if (!(strcmp (argv[1], "donald") == 0))
17612 return 6;
17613 if (!(strcmp (argv[2], "-p") == 0))
17614 return 7;
17615 if (!(strcmp (argv[3], "billy") == 0))
17616 return 8;
17617 if (!(strcmp (argv[4], "duck") == 0))
17618 return 9;
17619 if (!(strcmp (argv[5], "-a") == 0))
17620 return 10;
17621 if (!(strcmp (argv[6], "bar") == 0))
17622 return 11;
17623 if (!(optind == 1))
17624 return 12;
17626 /* Detect MacOS 10.5, AIX 7.1 bug. */
17628 static char program[] = "program";
17629 static char ab[] = "-ab";
17630 char *argv[3] = { program, ab, NULL };
17631 optind = OPTIND_MIN;
17632 opterr = 0;
17633 if (getopt (2, argv, "ab:") != 'a')
17634 return 13;
17635 if (getopt (2, argv, "ab:") != '?')
17636 return 14;
17637 if (optopt != 'b')
17638 return 15;
17639 if (optind != 2)
17640 return 16;
17643 return 0;
17646 _ACEOF
17647 if ac_fn_c_try_run "$LINENO"; then :
17648 gl_cv_func_getopt_posix=yes
17649 else
17650 gl_cv_func_getopt_posix=no
17652 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17653 conftest.$ac_objext conftest.beam conftest.$ac_ext
17656 CPPFLAGS=$gl_save_CPPFLAGS
17659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
17660 $as_echo "$gl_cv_func_getopt_posix" >&6; }
17661 case "$gl_cv_func_getopt_posix" in
17662 *no) gl_replace_getopt=yes ;;
17663 esac
17666 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
17667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
17668 $as_echo_n "checking for working GNU getopt function... " >&6; }
17669 if test "${gl_cv_func_getopt_gnu+set}" = set; then :
17670 $as_echo_n "(cached) " >&6
17671 else
17672 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
17673 # optstring is necessary for programs like m4 that have POSIX-mandated
17674 # semantics for supporting options interspersed with files.
17675 # Also, since getopt_long is a GNU extension, we require optind=0.
17676 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
17677 # so take care to revert to the correct (non-)export state.
17678 gl_awk_probe='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
17679 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
17680 xx) gl_had_POSIXLY_CORRECT=exported ;;
17681 x) gl_had_POSIXLY_CORRECT=yes ;;
17682 *) gl_had_POSIXLY_CORRECT= ;;
17683 esac
17684 POSIXLY_CORRECT=1
17685 export POSIXLY_CORRECT
17686 if test "$cross_compiling" = yes; then :
17687 case $host_os:$ac_cv_have_decl_optreset in
17688 *-gnu*:* | mingw*:*) gl_cv_func_getopt_gnu=no;;
17689 *:yes) gl_cv_func_getopt_gnu=no;;
17690 *) gl_cv_func_getopt_gnu=yes;;
17691 esac
17693 else
17694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17695 /* end confdefs.h. */
17696 #include <getopt.h>
17697 #include <stddef.h>
17698 #include <string.h>
17700 #include <stdlib.h>
17701 #if defined __MACH__ && defined __APPLE__
17702 /* Avoid a crash on MacOS X. */
17703 #include <mach/mach.h>
17704 #include <mach/mach_error.h>
17705 #include <mach/thread_status.h>
17706 #include <mach/exception.h>
17707 #include <mach/task.h>
17708 #include <pthread.h>
17709 /* The exception port on which our thread listens. */
17710 static mach_port_t our_exception_port;
17711 /* The main function of the thread listening for exceptions of type
17712 EXC_BAD_ACCESS. */
17713 static void *
17714 mach_exception_thread (void *arg)
17716 /* Buffer for a message to be received. */
17717 struct {
17718 mach_msg_header_t head;
17719 mach_msg_body_t msgh_body;
17720 char data[1024];
17721 } msg;
17722 mach_msg_return_t retval;
17723 /* Wait for a message on the exception port. */
17724 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
17725 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
17726 if (retval != MACH_MSG_SUCCESS)
17727 abort ();
17728 exit (1);
17730 static void
17731 nocrash_init (void)
17733 mach_port_t self = mach_task_self ();
17734 /* Allocate a port on which the thread shall listen for exceptions. */
17735 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
17736 == KERN_SUCCESS) {
17737 /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
17738 if (mach_port_insert_right (self, our_exception_port, our_exception_port,
17739 MACH_MSG_TYPE_MAKE_SEND)
17740 == KERN_SUCCESS) {
17741 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
17742 for us. */
17743 exception_mask_t mask = EXC_MASK_BAD_ACCESS;
17744 /* Create the thread listening on the exception port. */
17745 pthread_attr_t attr;
17746 pthread_t thread;
17747 if (pthread_attr_init (&attr) == 0
17748 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
17749 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
17750 pthread_attr_destroy (&attr);
17751 /* Replace the exception port info for these exceptions with our own.
17752 Note that we replace the exception port for the entire task, not only
17753 for a particular thread. This has the effect that when our exception
17754 port gets the message, the thread specific exception port has already
17755 been asked, and we don't need to bother about it.
17756 See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
17757 task_set_exception_ports (self, mask, our_exception_port,
17758 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
17763 #elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
17764 /* Avoid a crash on native Windows. */
17765 #define WIN32_LEAN_AND_MEAN
17766 #include <windows.h>
17767 #include <winerror.h>
17768 static LONG WINAPI
17769 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
17771 switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
17773 case EXCEPTION_ACCESS_VIOLATION:
17774 case EXCEPTION_IN_PAGE_ERROR:
17775 case EXCEPTION_STACK_OVERFLOW:
17776 case EXCEPTION_GUARD_PAGE:
17777 case EXCEPTION_PRIV_INSTRUCTION:
17778 case EXCEPTION_ILLEGAL_INSTRUCTION:
17779 case EXCEPTION_DATATYPE_MISALIGNMENT:
17780 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
17781 case EXCEPTION_NONCONTINUABLE_EXCEPTION:
17782 exit (1);
17784 return EXCEPTION_CONTINUE_SEARCH;
17786 static void
17787 nocrash_init (void)
17789 SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
17791 #else
17792 /* Avoid a crash on POSIX systems. */
17793 #include <signal.h>
17794 /* A POSIX signal handler. */
17795 static void
17796 exception_handler (int sig)
17798 exit (1);
17800 static void
17801 nocrash_init (void)
17803 #ifdef SIGSEGV
17804 signal (SIGSEGV, exception_handler);
17805 #endif
17806 #ifdef SIGBUS
17807 signal (SIGBUS, exception_handler);
17808 #endif
17810 #endif
17814 main ()
17817 int result = 0;
17819 nocrash_init();
17821 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
17822 and fails on MacOS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
17823 OSF/1 5.1, Solaris 10. */
17825 static char conftest[] = "conftest";
17826 static char plus[] = "-+";
17827 char *argv[3] = { conftest, plus, NULL };
17828 opterr = 0;
17829 if (getopt (2, argv, "+a") != '?')
17830 result |= 1;
17832 /* This code succeeds on glibc 2.8, mingw,
17833 and fails on MacOS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
17834 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
17836 static char program[] = "program";
17837 static char p[] = "-p";
17838 static char foo[] = "foo";
17839 static char bar[] = "bar";
17840 char *argv[] = { program, p, foo, bar, NULL };
17842 optind = 1;
17843 if (getopt (4, argv, "p::") != 'p')
17844 result |= 2;
17845 else if (optarg != NULL)
17846 result |= 4;
17847 else if (getopt (4, argv, "p::") != -1)
17848 result |= 6;
17849 else if (optind != 2)
17850 result |= 8;
17852 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
17854 static char program[] = "program";
17855 static char foo[] = "foo";
17856 static char p[] = "-p";
17857 char *argv[] = { program, foo, p, NULL };
17858 optind = 0;
17859 if (getopt (3, argv, "-p") != 1)
17860 result |= 16;
17861 else if (getopt (3, argv, "-p") != 'p')
17862 result |= 32;
17864 /* This code fails on glibc 2.11. */
17866 static char program[] = "program";
17867 static char b[] = "-b";
17868 static char a[] = "-a";
17869 char *argv[] = { program, b, a, NULL };
17870 optind = opterr = 0;
17871 if (getopt (3, argv, "+:a:b") != 'b')
17872 result |= 64;
17873 else if (getopt (3, argv, "+:a:b") != ':')
17874 result |= 64;
17876 /* This code dumps core on glibc 2.14. */
17878 static char program[] = "program";
17879 static char w[] = "-W";
17880 static char dummy[] = "dummy";
17881 char *argv[] = { program, w, dummy, NULL };
17882 optind = opterr = 1;
17883 if (getopt (3, argv, "W;") != 'W')
17884 result |= 128;
17886 return result;
17889 return 0;
17891 _ACEOF
17892 if ac_fn_c_try_run "$LINENO"; then :
17893 gl_cv_func_getopt_gnu=yes
17894 else
17895 gl_cv_func_getopt_gnu=no
17897 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17898 conftest.$ac_objext conftest.beam conftest.$ac_ext
17901 case $gl_had_POSIXLY_CORRECT in
17902 exported) ;;
17903 yes) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;}; POSIXLY_CORRECT=1 ;;
17904 *) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;} ;;
17905 esac
17908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
17909 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
17910 if test "$gl_cv_func_getopt_gnu" = "no"; then
17911 gl_replace_getopt=yes
17919 REPLACE_GETOPT=0
17922 if test -n "$gl_replace_getopt"; then :
17924 REPLACE_GETOPT=1
17929 if test $REPLACE_GETOPT = 1; then
17931 GETOPT_H=getopt.h
17933 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
17937 GNULIB_UNISTD_H_GETOPT=1
17940 ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
17941 if test "x$ac_cv_have_decl_getenv" = x""yes; then :
17942 ac_have_decl=1
17943 else
17944 ac_have_decl=0
17947 cat >>confdefs.h <<_ACEOF
17948 #define HAVE_DECL_GETENV $ac_have_decl
17949 _ACEOF
17952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
17953 $as_echo_n "checking for unsigned long long int... " >&6; }
17954 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
17955 $as_echo_n "(cached) " >&6
17956 else
17957 ac_cv_type_unsigned_long_long_int=yes
17958 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
17959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17960 /* end confdefs.h. */
17962 /* For now, do not test the preprocessor; as of 2007 there are too many
17963 implementations with broken preprocessors. Perhaps this can
17964 be revisited in 2012. In the meantime, code should not expect
17965 #if to work with literals wider than 32 bits. */
17966 /* Test literals. */
17967 long long int ll = 9223372036854775807ll;
17968 long long int nll = -9223372036854775807LL;
17969 unsigned long long int ull = 18446744073709551615ULL;
17970 /* Test constant expressions. */
17971 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
17972 ? 1 : -1)];
17973 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
17974 ? 1 : -1)];
17975 int i = 63;
17977 main ()
17979 /* Test availability of runtime routines for shift and division. */
17980 long long int llmax = 9223372036854775807ll;
17981 unsigned long long int ullmax = 18446744073709551615ull;
17982 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
17983 | (llmax / ll) | (llmax % ll)
17984 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
17985 | (ullmax / ull) | (ullmax % ull));
17987 return 0;
17990 _ACEOF
17991 if ac_fn_c_try_link "$LINENO"; then :
17993 else
17994 ac_cv_type_unsigned_long_long_int=no
17996 rm -f core conftest.err conftest.$ac_objext \
17997 conftest$ac_exeext conftest.$ac_ext
18000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
18001 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
18002 if test $ac_cv_type_unsigned_long_long_int = yes; then
18004 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
18010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
18011 $as_echo_n "checking for long long int... " >&6; }
18012 if test "${ac_cv_type_long_long_int+set}" = set; then :
18013 $as_echo_n "(cached) " >&6
18014 else
18015 ac_cv_type_long_long_int=yes
18016 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
18017 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
18018 if test $ac_cv_type_long_long_int = yes; then
18019 if test "$cross_compiling" = yes; then :
18021 else
18022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18023 /* end confdefs.h. */
18024 #include <limits.h>
18025 #ifndef LLONG_MAX
18026 # define HALF \
18027 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
18028 # define LLONG_MAX (HALF - 1 + HALF)
18029 #endif
18031 main ()
18033 long long int n = 1;
18034 int i;
18035 for (i = 0; ; i++)
18037 long long int m = n << i;
18038 if (m >> i != n)
18039 return 1;
18040 if (LLONG_MAX / 2 < m)
18041 break;
18043 return 0;
18045 return 0;
18047 _ACEOF
18048 if ac_fn_c_try_run "$LINENO"; then :
18050 else
18051 ac_cv_type_long_long_int=no
18053 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18054 conftest.$ac_objext conftest.beam conftest.$ac_ext
18060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
18061 $as_echo "$ac_cv_type_long_long_int" >&6; }
18062 if test $ac_cv_type_long_long_int = yes; then
18064 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
18073 gl_cv_c_multiarch=no
18074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18075 /* end confdefs.h. */
18076 #ifndef __APPLE_CC__
18077 not a universal capable compiler
18078 #endif
18079 typedef int dummy;
18081 _ACEOF
18082 if ac_fn_c_try_compile "$LINENO"; then :
18084 arch=
18085 prev=
18086 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
18087 if test -n "$prev"; then
18088 case $word in
18089 i?86 | x86_64 | ppc | ppc64)
18090 if test -z "$arch" || test "$arch" = "$word"; then
18091 arch="$word"
18092 else
18093 gl_cv_c_multiarch=yes
18096 esac
18097 prev=
18098 else
18099 if test "x$word" = "x-arch"; then
18100 prev=arch
18103 done
18106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18107 if test $gl_cv_c_multiarch = yes; then
18108 APPLE_UNIVERSAL_BUILD=1
18109 else
18110 APPLE_UNIVERSAL_BUILD=0
18117 if test $ac_cv_type_long_long_int = yes; then
18118 HAVE_LONG_LONG_INT=1
18119 else
18120 HAVE_LONG_LONG_INT=0
18124 if test $ac_cv_type_unsigned_long_long_int = yes; then
18125 HAVE_UNSIGNED_LONG_LONG_INT=1
18126 else
18127 HAVE_UNSIGNED_LONG_LONG_INT=0
18132 if test $ac_cv_header_wchar_h = yes; then
18133 HAVE_WCHAR_H=1
18134 else
18135 HAVE_WCHAR_H=0
18139 if test $ac_cv_header_inttypes_h = yes; then
18140 HAVE_INTTYPES_H=1
18141 else
18142 HAVE_INTTYPES_H=0
18146 if test $ac_cv_header_sys_types_h = yes; then
18147 HAVE_SYS_TYPES_H=1
18148 else
18149 HAVE_SYS_TYPES_H=0
18162 if test $gl_cv_have_include_next = yes; then
18163 gl_cv_next_stdint_h='<'stdint.h'>'
18164 else
18165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
18166 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
18167 if test "${gl_cv_next_stdint_h+set}" = set; then :
18168 $as_echo_n "(cached) " >&6
18169 else
18171 if test $ac_cv_header_stdint_h = yes; then
18174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18175 /* end confdefs.h. */
18176 #include <stdint.h>
18178 _ACEOF
18179 case "$host_os" in
18180 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18181 *) gl_absname_cpp="$ac_cpp" ;;
18182 esac
18184 case "$host_os" in
18185 mingw*)
18186 gl_dirsep_regex='[/\\]'
18189 gl_dirsep_regex='/'
18191 esac
18193 gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'stdint.h|{
18194 s|.*"\(.*'"${gl_dirsep_regex}"'stdint.h\)".*|\1|
18195 s|^/[^/]|//&|
18199 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18200 sed -n "$gl_absolute_header_sed"`'"'
18201 else
18202 gl_cv_next_stdint_h='<'stdint.h'>'
18207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
18208 $as_echo "$gl_cv_next_stdint_h" >&6; }
18210 NEXT_STDINT_H=$gl_cv_next_stdint_h
18212 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18213 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18214 gl_next_as_first_directive='<'stdint.h'>'
18215 else
18216 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18217 gl_next_as_first_directive=$gl_cv_next_stdint_h
18219 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
18224 if test $ac_cv_header_stdint_h = yes; then
18225 HAVE_STDINT_H=1
18226 else
18227 HAVE_STDINT_H=0
18231 if test $ac_cv_header_stdint_h = yes; then
18232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
18233 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
18234 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
18235 $as_echo_n "(cached) " >&6
18236 else
18237 gl_cv_header_working_stdint_h=no
18238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18239 /* end confdefs.h. */
18242 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
18243 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
18244 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
18245 #include <stdint.h>
18246 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
18247 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
18248 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
18249 #endif
18252 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18253 included before <wchar.h>. */
18254 #include <stddef.h>
18255 #include <signal.h>
18256 #if HAVE_WCHAR_H
18257 # include <stdio.h>
18258 # include <time.h>
18259 # include <wchar.h>
18260 #endif
18263 #ifdef INT8_MAX
18264 int8_t a1 = INT8_MAX;
18265 int8_t a1min = INT8_MIN;
18266 #endif
18267 #ifdef INT16_MAX
18268 int16_t a2 = INT16_MAX;
18269 int16_t a2min = INT16_MIN;
18270 #endif
18271 #ifdef INT32_MAX
18272 int32_t a3 = INT32_MAX;
18273 int32_t a3min = INT32_MIN;
18274 #endif
18275 #ifdef INT64_MAX
18276 int64_t a4 = INT64_MAX;
18277 int64_t a4min = INT64_MIN;
18278 #endif
18279 #ifdef UINT8_MAX
18280 uint8_t b1 = UINT8_MAX;
18281 #else
18282 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
18283 #endif
18284 #ifdef UINT16_MAX
18285 uint16_t b2 = UINT16_MAX;
18286 #endif
18287 #ifdef UINT32_MAX
18288 uint32_t b3 = UINT32_MAX;
18289 #endif
18290 #ifdef UINT64_MAX
18291 uint64_t b4 = UINT64_MAX;
18292 #endif
18293 int_least8_t c1 = INT8_C (0x7f);
18294 int_least8_t c1max = INT_LEAST8_MAX;
18295 int_least8_t c1min = INT_LEAST8_MIN;
18296 int_least16_t c2 = INT16_C (0x7fff);
18297 int_least16_t c2max = INT_LEAST16_MAX;
18298 int_least16_t c2min = INT_LEAST16_MIN;
18299 int_least32_t c3 = INT32_C (0x7fffffff);
18300 int_least32_t c3max = INT_LEAST32_MAX;
18301 int_least32_t c3min = INT_LEAST32_MIN;
18302 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
18303 int_least64_t c4max = INT_LEAST64_MAX;
18304 int_least64_t c4min = INT_LEAST64_MIN;
18305 uint_least8_t d1 = UINT8_C (0xff);
18306 uint_least8_t d1max = UINT_LEAST8_MAX;
18307 uint_least16_t d2 = UINT16_C (0xffff);
18308 uint_least16_t d2max = UINT_LEAST16_MAX;
18309 uint_least32_t d3 = UINT32_C (0xffffffff);
18310 uint_least32_t d3max = UINT_LEAST32_MAX;
18311 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
18312 uint_least64_t d4max = UINT_LEAST64_MAX;
18313 int_fast8_t e1 = INT_FAST8_MAX;
18314 int_fast8_t e1min = INT_FAST8_MIN;
18315 int_fast16_t e2 = INT_FAST16_MAX;
18316 int_fast16_t e2min = INT_FAST16_MIN;
18317 int_fast32_t e3 = INT_FAST32_MAX;
18318 int_fast32_t e3min = INT_FAST32_MIN;
18319 int_fast64_t e4 = INT_FAST64_MAX;
18320 int_fast64_t e4min = INT_FAST64_MIN;
18321 uint_fast8_t f1 = UINT_FAST8_MAX;
18322 uint_fast16_t f2 = UINT_FAST16_MAX;
18323 uint_fast32_t f3 = UINT_FAST32_MAX;
18324 uint_fast64_t f4 = UINT_FAST64_MAX;
18325 #ifdef INTPTR_MAX
18326 intptr_t g = INTPTR_MAX;
18327 intptr_t gmin = INTPTR_MIN;
18328 #endif
18329 #ifdef UINTPTR_MAX
18330 uintptr_t h = UINTPTR_MAX;
18331 #endif
18332 intmax_t i = INTMAX_MAX;
18333 uintmax_t j = UINTMAX_MAX;
18335 #include <limits.h> /* for CHAR_BIT */
18336 #define TYPE_MINIMUM(t) \
18337 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
18338 #define TYPE_MAXIMUM(t) \
18339 ((t) ((t) 0 < (t) -1 \
18340 ? (t) -1 \
18341 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
18342 struct s {
18343 int check_PTRDIFF:
18344 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
18345 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
18346 ? 1 : -1;
18347 /* Detect bug in FreeBSD 6.0 / ia64. */
18348 int check_SIG_ATOMIC:
18349 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
18350 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
18351 ? 1 : -1;
18352 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
18353 int check_WCHAR:
18354 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
18355 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
18356 ? 1 : -1;
18357 /* Detect bug in mingw. */
18358 int check_WINT:
18359 WINT_MIN == TYPE_MINIMUM (wint_t)
18360 && WINT_MAX == TYPE_MAXIMUM (wint_t)
18361 ? 1 : -1;
18363 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
18364 int check_UINT8_C:
18365 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
18366 int check_UINT16_C:
18367 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
18369 /* Detect bugs in OpenBSD 3.9 stdint.h. */
18370 #ifdef UINT8_MAX
18371 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
18372 #endif
18373 #ifdef UINT16_MAX
18374 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
18375 #endif
18376 #ifdef UINT32_MAX
18377 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
18378 #endif
18379 #ifdef UINT64_MAX
18380 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
18381 #endif
18382 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
18383 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
18384 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
18385 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
18386 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
18387 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
18388 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
18389 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
18390 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
18391 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
18392 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
18396 main ()
18400 return 0;
18402 _ACEOF
18403 if ac_fn_c_try_compile "$LINENO"; then :
18404 if test "$cross_compiling" = yes; then :
18405 gl_cv_header_working_stdint_h=yes
18407 else
18408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18409 /* end confdefs.h. */
18412 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
18413 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
18414 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
18415 #include <stdint.h>
18418 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18419 included before <wchar.h>. */
18420 #include <stddef.h>
18421 #include <signal.h>
18422 #if HAVE_WCHAR_H
18423 # include <stdio.h>
18424 # include <time.h>
18425 # include <wchar.h>
18426 #endif
18429 #include <stdio.h>
18430 #include <string.h>
18431 #define MVAL(macro) MVAL1(macro)
18432 #define MVAL1(expression) #expression
18433 static const char *macro_values[] =
18435 #ifdef INT8_MAX
18436 MVAL (INT8_MAX),
18437 #endif
18438 #ifdef INT16_MAX
18439 MVAL (INT16_MAX),
18440 #endif
18441 #ifdef INT32_MAX
18442 MVAL (INT32_MAX),
18443 #endif
18444 #ifdef INT64_MAX
18445 MVAL (INT64_MAX),
18446 #endif
18447 #ifdef UINT8_MAX
18448 MVAL (UINT8_MAX),
18449 #endif
18450 #ifdef UINT16_MAX
18451 MVAL (UINT16_MAX),
18452 #endif
18453 #ifdef UINT32_MAX
18454 MVAL (UINT32_MAX),
18455 #endif
18456 #ifdef UINT64_MAX
18457 MVAL (UINT64_MAX),
18458 #endif
18459 NULL
18463 main ()
18466 const char **mv;
18467 for (mv = macro_values; *mv != NULL; mv++)
18469 const char *value = *mv;
18470 /* Test whether it looks like a cast expression. */
18471 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
18472 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
18473 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
18474 || strncmp (value, "((int)"/*)*/, 6) == 0
18475 || strncmp (value, "((signed short)"/*)*/, 15) == 0
18476 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
18477 return mv - macro_values + 1;
18479 return 0;
18482 return 0;
18484 _ACEOF
18485 if ac_fn_c_try_run "$LINENO"; then :
18486 gl_cv_header_working_stdint_h=yes
18488 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18489 conftest.$ac_objext conftest.beam conftest.$ac_ext
18494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
18498 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
18500 if test "$gl_cv_header_working_stdint_h" = yes; then
18501 STDINT_H=
18502 else
18503 for ac_header in sys/inttypes.h sys/bitypes.h
18504 do :
18505 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18506 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18507 eval as_val=\$$as_ac_Header
18508 if test "x$as_val" = x""yes; then :
18509 cat >>confdefs.h <<_ACEOF
18510 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18511 _ACEOF
18515 done
18517 if test $ac_cv_header_sys_inttypes_h = yes; then
18518 HAVE_SYS_INTTYPES_H=1
18519 else
18520 HAVE_SYS_INTTYPES_H=0
18523 if test $ac_cv_header_sys_bitypes_h = yes; then
18524 HAVE_SYS_BITYPES_H=1
18525 else
18526 HAVE_SYS_BITYPES_H=0
18532 if test $APPLE_UNIVERSAL_BUILD = 0; then
18535 for gltype in ptrdiff_t size_t ; do
18536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
18537 $as_echo_n "checking for bit size of $gltype... " >&6; }
18538 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
18539 $as_echo_n "(cached) " >&6
18540 else
18541 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
18542 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18543 included before <wchar.h>. */
18544 #include <stddef.h>
18545 #include <signal.h>
18546 #if HAVE_WCHAR_H
18547 # include <stdio.h>
18548 # include <time.h>
18549 # include <wchar.h>
18550 #endif
18552 #include <limits.h>"; then :
18554 else
18555 result=unknown
18558 eval gl_cv_bitsizeof_${gltype}=\$result
18561 eval ac_res=\$gl_cv_bitsizeof_${gltype}
18562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18563 $as_echo "$ac_res" >&6; }
18564 eval result=\$gl_cv_bitsizeof_${gltype}
18565 if test $result = unknown; then
18566 result=0
18568 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18569 cat >>confdefs.h <<_ACEOF
18570 #define BITSIZEOF_${GLTYPE} $result
18571 _ACEOF
18573 eval BITSIZEOF_${GLTYPE}=\$result
18574 done
18580 for gltype in sig_atomic_t wchar_t wint_t ; do
18581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
18582 $as_echo_n "checking for bit size of $gltype... " >&6; }
18583 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
18584 $as_echo_n "(cached) " >&6
18585 else
18586 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
18587 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18588 included before <wchar.h>. */
18589 #include <stddef.h>
18590 #include <signal.h>
18591 #if HAVE_WCHAR_H
18592 # include <stdio.h>
18593 # include <time.h>
18594 # include <wchar.h>
18595 #endif
18597 #include <limits.h>"; then :
18599 else
18600 result=unknown
18603 eval gl_cv_bitsizeof_${gltype}=\$result
18606 eval ac_res=\$gl_cv_bitsizeof_${gltype}
18607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18608 $as_echo "$ac_res" >&6; }
18609 eval result=\$gl_cv_bitsizeof_${gltype}
18610 if test $result = unknown; then
18611 result=0
18613 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18614 cat >>confdefs.h <<_ACEOF
18615 #define BITSIZEOF_${GLTYPE} $result
18616 _ACEOF
18618 eval BITSIZEOF_${GLTYPE}=\$result
18619 done
18624 for gltype in sig_atomic_t wchar_t wint_t ; do
18625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
18626 $as_echo_n "checking whether $gltype is signed... " >&6; }
18627 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
18628 $as_echo_n "(cached) " >&6
18629 else
18630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18631 /* end confdefs.h. */
18633 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18634 included before <wchar.h>. */
18635 #include <stddef.h>
18636 #include <signal.h>
18637 #if HAVE_WCHAR_H
18638 # include <stdio.h>
18639 # include <time.h>
18640 # include <wchar.h>
18641 #endif
18643 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
18645 main ()
18649 return 0;
18651 _ACEOF
18652 if ac_fn_c_try_compile "$LINENO"; then :
18653 result=yes
18654 else
18655 result=no
18657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18658 eval gl_cv_type_${gltype}_signed=\$result
18661 eval ac_res=\$gl_cv_type_${gltype}_signed
18662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18663 $as_echo "$ac_res" >&6; }
18664 eval result=\$gl_cv_type_${gltype}_signed
18665 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18666 if test "$result" = yes; then
18667 cat >>confdefs.h <<_ACEOF
18668 #define HAVE_SIGNED_${GLTYPE} 1
18669 _ACEOF
18671 eval HAVE_SIGNED_${GLTYPE}=1
18672 else
18673 eval HAVE_SIGNED_${GLTYPE}=0
18675 done
18678 gl_cv_type_ptrdiff_t_signed=yes
18679 gl_cv_type_size_t_signed=no
18680 if test $APPLE_UNIVERSAL_BUILD = 0; then
18683 for gltype in ptrdiff_t size_t ; do
18684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
18685 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
18686 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
18687 $as_echo_n "(cached) " >&6
18688 else
18689 eval gl_cv_type_${gltype}_suffix=no
18690 eval result=\$gl_cv_type_${gltype}_signed
18691 if test "$result" = yes; then
18692 glsufu=
18693 else
18694 glsufu=u
18696 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
18697 case $glsuf in
18698 '') gltype1='int';;
18699 l) gltype1='long int';;
18700 ll) gltype1='long long int';;
18701 i64) gltype1='__int64';;
18702 u) gltype1='unsigned int';;
18703 ul) gltype1='unsigned long int';;
18704 ull) gltype1='unsigned long long int';;
18705 ui64)gltype1='unsigned __int64';;
18706 esac
18707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18708 /* end confdefs.h. */
18710 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18711 included before <wchar.h>. */
18712 #include <stddef.h>
18713 #include <signal.h>
18714 #if HAVE_WCHAR_H
18715 # include <stdio.h>
18716 # include <time.h>
18717 # include <wchar.h>
18718 #endif
18720 extern $gltype foo;
18721 extern $gltype1 foo;
18723 main ()
18727 return 0;
18729 _ACEOF
18730 if ac_fn_c_try_compile "$LINENO"; then :
18731 eval gl_cv_type_${gltype}_suffix=\$glsuf
18733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18734 eval result=\$gl_cv_type_${gltype}_suffix
18735 test "$result" != no && break
18736 done
18738 eval ac_res=\$gl_cv_type_${gltype}_suffix
18739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18740 $as_echo "$ac_res" >&6; }
18741 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18742 eval result=\$gl_cv_type_${gltype}_suffix
18743 test "$result" = no && result=
18744 eval ${GLTYPE}_SUFFIX=\$result
18745 cat >>confdefs.h <<_ACEOF
18746 #define ${GLTYPE}_SUFFIX $result
18747 _ACEOF
18749 done
18755 for gltype in sig_atomic_t wchar_t wint_t ; do
18756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
18757 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
18758 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
18759 $as_echo_n "(cached) " >&6
18760 else
18761 eval gl_cv_type_${gltype}_suffix=no
18762 eval result=\$gl_cv_type_${gltype}_signed
18763 if test "$result" = yes; then
18764 glsufu=
18765 else
18766 glsufu=u
18768 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
18769 case $glsuf in
18770 '') gltype1='int';;
18771 l) gltype1='long int';;
18772 ll) gltype1='long long int';;
18773 i64) gltype1='__int64';;
18774 u) gltype1='unsigned int';;
18775 ul) gltype1='unsigned long int';;
18776 ull) gltype1='unsigned long long int';;
18777 ui64)gltype1='unsigned __int64';;
18778 esac
18779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18780 /* end confdefs.h. */
18782 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18783 included before <wchar.h>. */
18784 #include <stddef.h>
18785 #include <signal.h>
18786 #if HAVE_WCHAR_H
18787 # include <stdio.h>
18788 # include <time.h>
18789 # include <wchar.h>
18790 #endif
18792 extern $gltype foo;
18793 extern $gltype1 foo;
18795 main ()
18799 return 0;
18801 _ACEOF
18802 if ac_fn_c_try_compile "$LINENO"; then :
18803 eval gl_cv_type_${gltype}_suffix=\$glsuf
18805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18806 eval result=\$gl_cv_type_${gltype}_suffix
18807 test "$result" != no && break
18808 done
18810 eval ac_res=\$gl_cv_type_${gltype}_suffix
18811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18812 $as_echo "$ac_res" >&6; }
18813 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18814 eval result=\$gl_cv_type_${gltype}_suffix
18815 test "$result" = no && result=
18816 eval ${GLTYPE}_SUFFIX=\$result
18817 cat >>confdefs.h <<_ACEOF
18818 #define ${GLTYPE}_SUFFIX $result
18819 _ACEOF
18821 done
18825 if test $BITSIZEOF_WINT_T -lt 32; then
18826 BITSIZEOF_WINT_T=32
18829 STDINT_H=stdint.h
18832 if test -n "$STDINT_H"; then
18833 GL_GENERATE_STDINT_H_TRUE=
18834 GL_GENERATE_STDINT_H_FALSE='#'
18835 else
18836 GL_GENERATE_STDINT_H_TRUE='#'
18837 GL_GENERATE_STDINT_H_FALSE=
18844 GNULIB_IMAXABS=0;
18845 GNULIB_IMAXDIV=0;
18846 GNULIB_STRTOIMAX=0;
18847 GNULIB_STRTOUMAX=0;
18848 HAVE_DECL_IMAXABS=1;
18849 HAVE_DECL_IMAXDIV=1;
18850 HAVE_DECL_STRTOIMAX=1;
18851 HAVE_DECL_STRTOUMAX=1;
18852 INT32_MAX_LT_INTMAX_MAX=1;
18853 INT64_MAX_EQ_LONG_MAX='defined _LP64';
18854 PRI_MACROS_BROKEN=0;
18855 PRIPTR_PREFIX=__PRIPTR_PREFIX;
18856 UINT32_MAX_LT_UINTMAX_MAX=1;
18857 UINT64_MAX_EQ_ULONG_MAX='defined _LP64';
18873 if test $gl_cv_have_include_next = yes; then
18874 gl_cv_next_inttypes_h='<'inttypes.h'>'
18875 else
18876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
18877 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
18878 if test "${gl_cv_next_inttypes_h+set}" = set; then :
18879 $as_echo_n "(cached) " >&6
18880 else
18882 if test $ac_cv_header_inttypes_h = yes; then
18885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18886 /* end confdefs.h. */
18887 #include <inttypes.h>
18889 _ACEOF
18890 case "$host_os" in
18891 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18892 *) gl_absname_cpp="$ac_cpp" ;;
18893 esac
18895 case "$host_os" in
18896 mingw*)
18897 gl_dirsep_regex='[/\\]'
18900 gl_dirsep_regex='/'
18902 esac
18904 gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'inttypes.h|{
18905 s|.*"\(.*'"${gl_dirsep_regex}"'inttypes.h\)".*|\1|
18906 s|^/[^/]|//&|
18910 gl_cv_next_inttypes_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18911 sed -n "$gl_absolute_header_sed"`'"'
18912 else
18913 gl_cv_next_inttypes_h='<'inttypes.h'>'
18918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
18919 $as_echo "$gl_cv_next_inttypes_h" >&6; }
18921 NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
18923 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18924 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18925 gl_next_as_first_directive='<'inttypes.h'>'
18926 else
18927 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18928 gl_next_as_first_directive=$gl_cv_next_inttypes_h
18930 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive
18939 $as_echo "#define GL_TRIGGER_STDC_LIMIT_MACROS 1" >>confdefs.h
18946 GNULIB_FCHMODAT=0;
18947 GNULIB_FSTAT=0;
18948 GNULIB_FSTATAT=0;
18949 GNULIB_FUTIMENS=0;
18950 GNULIB_LCHMOD=0;
18951 GNULIB_LSTAT=0;
18952 GNULIB_MKDIRAT=0;
18953 GNULIB_MKFIFO=0;
18954 GNULIB_MKFIFOAT=0;
18955 GNULIB_MKNOD=0;
18956 GNULIB_MKNODAT=0;
18957 GNULIB_STAT=0;
18958 GNULIB_UTIMENSAT=0;
18959 HAVE_FCHMODAT=1;
18960 HAVE_FSTATAT=1;
18961 HAVE_FUTIMENS=1;
18962 HAVE_LCHMOD=1;
18963 HAVE_LSTAT=1;
18964 HAVE_MKDIRAT=1;
18965 HAVE_MKFIFO=1;
18966 HAVE_MKFIFOAT=1;
18967 HAVE_MKNOD=1;
18968 HAVE_MKNODAT=1;
18969 HAVE_UTIMENSAT=1;
18970 REPLACE_FSTAT=0;
18971 REPLACE_FSTATAT=0;
18972 REPLACE_FUTIMENS=0;
18973 REPLACE_LSTAT=0;
18974 REPLACE_MKDIR=0;
18975 REPLACE_MKFIFO=0;
18976 REPLACE_MKNOD=0;
18977 REPLACE_STAT=0;
18978 REPLACE_UTIMENSAT=0;
18983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
18984 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
18985 if test "${gl_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
18986 $as_echo_n "(cached) " >&6
18987 else
18988 rm -f conftest.sym conftest.file
18989 echo >conftest.file
18990 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
18991 if test "$cross_compiling" = yes; then :
18992 # When cross-compiling, be pessimistic so we will end up using the
18993 # replacement version of lstat that checks for trailing slashes and
18994 # calls lstat a second time when necessary.
18995 gl_cv_func_lstat_dereferences_slashed_symlink=no
18997 else
18998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18999 /* end confdefs.h. */
19000 $ac_includes_default
19002 main ()
19004 struct stat sbuf;
19005 /* Linux will dereference the symlink and fail, as required by
19006 POSIX. That is better in the sense that it means we will not
19007 have to compile and use the lstat wrapper. */
19008 return lstat ("conftest.sym/", &sbuf) == 0;
19011 return 0;
19013 _ACEOF
19014 if ac_fn_c_try_run "$LINENO"; then :
19015 gl_cv_func_lstat_dereferences_slashed_symlink=yes
19016 else
19017 gl_cv_func_lstat_dereferences_slashed_symlink=no
19019 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19020 conftest.$ac_objext conftest.beam conftest.$ac_ext
19023 else
19024 # If the 'ln -s' command failed, then we probably don't even
19025 # have an lstat function.
19026 gl_cv_func_lstat_dereferences_slashed_symlink=no
19028 rm -f conftest.sym conftest.file
19031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
19032 $as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
19033 test $gl_cv_func_lstat_dereferences_slashed_symlink = yes &&
19035 cat >>confdefs.h <<_ACEOF
19036 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
19037 _ACEOF
19041 GNULIB_MKTIME=0;
19042 GNULIB_NANOSLEEP=0;
19043 GNULIB_STRPTIME=0;
19044 GNULIB_TIMEGM=0;
19045 GNULIB_TIME_R=0;
19046 HAVE_DECL_LOCALTIME_R=1;
19047 HAVE_NANOSLEEP=1;
19048 HAVE_STRPTIME=1;
19049 HAVE_TIMEGM=1;
19050 REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
19051 REPLACE_MKTIME=GNULIB_PORTCHECK;
19052 REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
19053 REPLACE_TIMEGM=GNULIB_PORTCHECK;
19060 GNULIB_PTHREAD_SIGMASK=0;
19061 GNULIB_RAISE=0;
19062 GNULIB_SIGNAL_H_SIGPIPE=0;
19063 GNULIB_SIGPROCMASK=0;
19064 GNULIB_SIGACTION=0;
19065 HAVE_POSIX_SIGNALBLOCKING=1;
19066 HAVE_PTHREAD_SIGMASK=1;
19067 HAVE_RAISE=1;
19068 HAVE_SIGSET_T=1;
19069 HAVE_SIGINFO_T=1;
19070 HAVE_SIGACTION=1;
19071 HAVE_STRUCT_SIGACTION_SA_SIGACTION=1;
19073 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=1;
19075 HAVE_SIGHANDLER_T=1;
19076 REPLACE_PTHREAD_SIGMASK=0;
19077 REPLACE_RAISE=0;
19082 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
19083 #include <signal.h>
19084 /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */
19085 #include <sys/types.h>
19088 if test "x$ac_cv_type_sigset_t" = x""yes; then :
19090 cat >>confdefs.h <<_ACEOF
19091 #define HAVE_SIGSET_T 1
19092 _ACEOF
19094 gl_cv_type_sigset_t=yes
19095 else
19096 gl_cv_type_sigset_t=no
19099 if test $gl_cv_type_sigset_t != yes; then
19100 HAVE_SIGSET_T=0
19107 if test $ac_cv_header_sys_socket_h = no; then
19108 for ac_header in ws2tcpip.h
19109 do :
19110 ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
19111 if test "x$ac_cv_header_ws2tcpip_h" = x""yes; then :
19112 cat >>confdefs.h <<_ACEOF
19113 #define HAVE_WS2TCPIP_H 1
19114 _ACEOF
19118 done
19122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
19123 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
19124 if test "${ac_cv_header_stdbool_h+set}" = set; then :
19125 $as_echo_n "(cached) " >&6
19126 else
19127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19128 /* end confdefs.h. */
19130 #include <stdbool.h>
19131 #ifndef bool
19132 "error: bool is not defined"
19133 #endif
19134 #ifndef false
19135 "error: false is not defined"
19136 #endif
19137 #if false
19138 "error: false is not 0"
19139 #endif
19140 #ifndef true
19141 "error: true is not defined"
19142 #endif
19143 #if true != 1
19144 "error: true is not 1"
19145 #endif
19146 #ifndef __bool_true_false_are_defined
19147 "error: __bool_true_false_are_defined is not defined"
19148 #endif
19150 struct s { _Bool s: 1; _Bool t; } s;
19152 char a[true == 1 ? 1 : -1];
19153 char b[false == 0 ? 1 : -1];
19154 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
19155 char d[(bool) 0.5 == true ? 1 : -1];
19156 /* See body of main program for 'e'. */
19157 char f[(_Bool) 0.0 == false ? 1 : -1];
19158 char g[true];
19159 char h[sizeof (_Bool)];
19160 char i[sizeof s.t];
19161 enum { j = false, k = true, l = false * true, m = true * 256 };
19162 /* The following fails for
19163 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
19164 _Bool n[m];
19165 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
19166 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
19167 /* Catch a bug in an HP-UX C compiler. See
19168 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
19169 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
19171 _Bool q = true;
19172 _Bool *pq = &q;
19175 main ()
19178 bool e = &s;
19179 *pq |= q;
19180 *pq |= ! q;
19181 /* Refer to every declared value, to avoid compiler optimizations. */
19182 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
19183 + !m + !n + !o + !p + !q + !pq);
19186 return 0;
19188 _ACEOF
19189 if ac_fn_c_try_compile "$LINENO"; then :
19190 ac_cv_header_stdbool_h=yes
19191 else
19192 ac_cv_header_stdbool_h=no
19194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
19197 $as_echo "$ac_cv_header_stdbool_h" >&6; }
19198 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
19199 if test "x$ac_cv_type__Bool" = x""yes; then :
19201 cat >>confdefs.h <<_ACEOF
19202 #define HAVE__BOOL 1
19203 _ACEOF
19210 REPLACE_NULL=0;
19211 HAVE_WCHAR_T=1;
19214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
19215 $as_echo_n "checking for wchar_t... " >&6; }
19216 if test "${gt_cv_c_wchar_t+set}" = set; then :
19217 $as_echo_n "(cached) " >&6
19218 else
19219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19220 /* end confdefs.h. */
19221 #include <stddef.h>
19222 wchar_t foo = (wchar_t)'\0';
19224 main ()
19228 return 0;
19230 _ACEOF
19231 if ac_fn_c_try_compile "$LINENO"; then :
19232 gt_cv_c_wchar_t=yes
19233 else
19234 gt_cv_c_wchar_t=no
19236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
19239 $as_echo "$gt_cv_c_wchar_t" >&6; }
19240 if test $gt_cv_c_wchar_t = yes; then
19242 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
19247 GNULIB_DPRINTF=0;
19248 GNULIB_FCLOSE=0;
19249 GNULIB_FDOPEN=0;
19250 GNULIB_FFLUSH=0;
19251 GNULIB_FGETC=0;
19252 GNULIB_FGETS=0;
19253 GNULIB_FOPEN=0;
19254 GNULIB_FPRINTF=0;
19255 GNULIB_FPRINTF_POSIX=0;
19256 GNULIB_FPURGE=0;
19257 GNULIB_FPUTC=0;
19258 GNULIB_FPUTS=0;
19259 GNULIB_FREAD=0;
19260 GNULIB_FREOPEN=0;
19261 GNULIB_FSCANF=0;
19262 GNULIB_FSEEK=0;
19263 GNULIB_FSEEKO=0;
19264 GNULIB_FTELL=0;
19265 GNULIB_FTELLO=0;
19266 GNULIB_FWRITE=0;
19267 GNULIB_GETC=0;
19268 GNULIB_GETCHAR=0;
19269 GNULIB_GETDELIM=0;
19270 GNULIB_GETLINE=0;
19271 GNULIB_GETS=0;
19272 GNULIB_OBSTACK_PRINTF=0;
19273 GNULIB_OBSTACK_PRINTF_POSIX=0;
19274 GNULIB_PCLOSE=0;
19275 GNULIB_PERROR=0;
19276 GNULIB_POPEN=0;
19277 GNULIB_PRINTF=0;
19278 GNULIB_PRINTF_POSIX=0;
19279 GNULIB_PUTC=0;
19280 GNULIB_PUTCHAR=0;
19281 GNULIB_PUTS=0;
19282 GNULIB_REMOVE=0;
19283 GNULIB_RENAME=0;
19284 GNULIB_RENAMEAT=0;
19285 GNULIB_SCANF=0;
19286 GNULIB_SNPRINTF=0;
19287 GNULIB_SPRINTF_POSIX=0;
19288 GNULIB_STDIO_H_NONBLOCKING=0;
19289 GNULIB_STDIO_H_SIGPIPE=0;
19290 GNULIB_TMPFILE=0;
19291 GNULIB_VASPRINTF=0;
19292 GNULIB_VFSCANF=0;
19293 GNULIB_VSCANF=0;
19294 GNULIB_VDPRINTF=0;
19295 GNULIB_VFPRINTF=0;
19296 GNULIB_VFPRINTF_POSIX=0;
19297 GNULIB_VPRINTF=0;
19298 GNULIB_VPRINTF_POSIX=0;
19299 GNULIB_VSNPRINTF=0;
19300 GNULIB_VSPRINTF_POSIX=0;
19301 HAVE_DECL_FPURGE=1;
19302 HAVE_DECL_FSEEKO=1;
19303 HAVE_DECL_FTELLO=1;
19304 HAVE_DECL_GETDELIM=1;
19305 HAVE_DECL_GETLINE=1;
19306 HAVE_DECL_OBSTACK_PRINTF=1;
19307 HAVE_DECL_SNPRINTF=1;
19308 HAVE_DECL_VSNPRINTF=1;
19309 HAVE_DPRINTF=1;
19310 HAVE_FSEEKO=1;
19311 HAVE_FTELLO=1;
19312 HAVE_PCLOSE=1;
19313 HAVE_POPEN=1;
19314 HAVE_RENAMEAT=1;
19315 HAVE_VASPRINTF=1;
19316 HAVE_VDPRINTF=1;
19317 REPLACE_DPRINTF=0;
19318 REPLACE_FCLOSE=0;
19319 REPLACE_FDOPEN=0;
19320 REPLACE_FFLUSH=0;
19321 REPLACE_FOPEN=0;
19322 REPLACE_FPRINTF=0;
19323 REPLACE_FPURGE=0;
19324 REPLACE_FREOPEN=0;
19325 REPLACE_FSEEK=0;
19326 REPLACE_FSEEKO=0;
19327 REPLACE_FTELL=0;
19328 REPLACE_FTELLO=0;
19329 REPLACE_GETDELIM=0;
19330 REPLACE_GETLINE=0;
19331 REPLACE_OBSTACK_PRINTF=0;
19332 REPLACE_PERROR=0;
19333 REPLACE_POPEN=0;
19334 REPLACE_PRINTF=0;
19335 REPLACE_REMOVE=0;
19336 REPLACE_RENAME=0;
19337 REPLACE_RENAMEAT=0;
19338 REPLACE_SNPRINTF=0;
19339 REPLACE_SPRINTF=0;
19340 REPLACE_STDIO_READ_FUNCS=0;
19341 REPLACE_STDIO_WRITE_FUNCS=0;
19342 REPLACE_TMPFILE=0;
19343 REPLACE_VASPRINTF=0;
19344 REPLACE_VDPRINTF=0;
19345 REPLACE_VFPRINTF=0;
19346 REPLACE_VPRINTF=0;
19347 REPLACE_VSNPRINTF=0;
19348 REPLACE_VSPRINTF=0;
19350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
19351 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
19352 if test "${ac_cv_struct_tm+set}" = set; then :
19353 $as_echo_n "(cached) " >&6
19354 else
19355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19356 /* end confdefs.h. */
19357 #include <sys/types.h>
19358 #include <time.h>
19361 main ()
19363 struct tm tm;
19364 int *p = &tm.tm_sec;
19365 return !p;
19367 return 0;
19369 _ACEOF
19370 if ac_fn_c_try_compile "$LINENO"; then :
19371 ac_cv_struct_tm=time.h
19372 else
19373 ac_cv_struct_tm=sys/time.h
19375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
19378 $as_echo "$ac_cv_struct_tm" >&6; }
19379 if test $ac_cv_struct_tm = sys/time.h; then
19381 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
19385 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
19386 #include <$ac_cv_struct_tm>
19389 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
19391 cat >>confdefs.h <<_ACEOF
19392 #define HAVE_STRUCT_TM_TM_ZONE 1
19393 _ACEOF
19398 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
19400 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
19402 else
19403 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
19405 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
19406 ac_have_decl=1
19407 else
19408 ac_have_decl=0
19411 cat >>confdefs.h <<_ACEOF
19412 #define HAVE_DECL_TZNAME $ac_have_decl
19413 _ACEOF
19415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
19416 $as_echo_n "checking for tzname... " >&6; }
19417 if test "${ac_cv_var_tzname+set}" = set; then :
19418 $as_echo_n "(cached) " >&6
19419 else
19420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19421 /* end confdefs.h. */
19422 #include <time.h>
19423 #if !HAVE_DECL_TZNAME
19424 extern char *tzname[];
19425 #endif
19428 main ()
19430 return tzname[0][0];
19432 return 0;
19434 _ACEOF
19435 if ac_fn_c_try_link "$LINENO"; then :
19436 ac_cv_var_tzname=yes
19437 else
19438 ac_cv_var_tzname=no
19440 rm -f core conftest.err conftest.$ac_objext \
19441 conftest$ac_exeext conftest.$ac_ext
19443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
19444 $as_echo "$ac_cv_var_tzname" >&6; }
19445 if test $ac_cv_var_tzname = yes; then
19447 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
19453 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
19455 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then :
19457 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
19466 ac_fn_c_check_decl "$LINENO" "strtoimax" "ac_cv_have_decl_strtoimax" "$ac_includes_default"
19467 if test "x$ac_cv_have_decl_strtoimax" = x""yes; then :
19468 ac_have_decl=1
19469 else
19470 ac_have_decl=0
19473 cat >>confdefs.h <<_ACEOF
19474 #define HAVE_DECL_STRTOIMAX $ac_have_decl
19475 _ACEOF
19479 ac_fn_c_check_decl "$LINENO" "strtoumax" "ac_cv_have_decl_strtoumax" "$ac_includes_default"
19480 if test "x$ac_cv_have_decl_strtoumax" = x""yes; then :
19481 ac_have_decl=1
19482 else
19483 ac_have_decl=0
19486 cat >>confdefs.h <<_ACEOF
19487 #define HAVE_DECL_STRTOUMAX $ac_have_decl
19488 _ACEOF
19492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
19493 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
19494 if test "${ac_cv_header_stat_broken+set}" = set; then :
19495 $as_echo_n "(cached) " >&6
19496 else
19497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19498 /* end confdefs.h. */
19499 #include <sys/types.h>
19500 #include <sys/stat.h>
19502 #if defined S_ISBLK && defined S_IFDIR
19503 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
19504 #endif
19506 #if defined S_ISBLK && defined S_IFCHR
19507 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
19508 #endif
19510 #if defined S_ISLNK && defined S_IFREG
19511 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
19512 #endif
19514 #if defined S_ISSOCK && defined S_IFREG
19515 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
19516 #endif
19518 _ACEOF
19519 if ac_fn_c_try_compile "$LINENO"; then :
19520 ac_cv_header_stat_broken=no
19521 else
19522 ac_cv_header_stat_broken=yes
19524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
19527 $as_echo "$ac_cv_header_stat_broken" >&6; }
19528 if test $ac_cv_header_stat_broken = yes; then
19530 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
19536 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
19537 if test "x$ac_cv_type_mode_t" = x""yes; then :
19539 else
19541 cat >>confdefs.h <<_ACEOF
19542 #define mode_t int
19543 _ACEOF
19547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
19548 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
19549 if test "${ac_cv_c_restrict+set}" = set; then :
19550 $as_echo_n "(cached) " >&6
19551 else
19552 ac_cv_c_restrict=no
19553 # The order here caters to the fact that C++ does not require restrict.
19554 for ac_kw in __restrict __restrict__ _Restrict restrict; do
19555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19556 /* end confdefs.h. */
19557 typedef int * int_ptr;
19558 int foo (int_ptr $ac_kw ip) {
19559 return ip[0];
19562 main ()
19564 int s[1];
19565 int * $ac_kw t = s;
19566 t[0] = 0;
19567 return foo(t)
19569 return 0;
19571 _ACEOF
19572 if ac_fn_c_try_compile "$LINENO"; then :
19573 ac_cv_c_restrict=$ac_kw
19575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19576 test "$ac_cv_c_restrict" != no && break
19577 done
19580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
19581 $as_echo "$ac_cv_c_restrict" >&6; }
19583 case $ac_cv_c_restrict in
19584 restrict) ;;
19585 no) $as_echo "#define restrict /**/" >>confdefs.h
19587 *) cat >>confdefs.h <<_ACEOF
19588 #define restrict $ac_cv_c_restrict
19589 _ACEOF
19591 esac
19597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
19598 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
19599 if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then :
19600 $as_echo_n "(cached) " >&6
19601 else
19602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19603 /* end confdefs.h. */
19604 #include <time.h>
19607 main ()
19609 static struct timespec x; x.tv_sec = x.tv_nsec;
19611 return 0;
19613 _ACEOF
19614 if ac_fn_c_try_compile "$LINENO"; then :
19615 gl_cv_sys_struct_timespec_in_time_h=yes
19616 else
19617 gl_cv_sys_struct_timespec_in_time_h=no
19619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
19622 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
19624 TIME_H_DEFINES_STRUCT_TIMESPEC=0
19625 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
19626 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
19627 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
19628 TIME_H_DEFINES_STRUCT_TIMESPEC=1
19629 else
19630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
19631 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
19632 if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then :
19633 $as_echo_n "(cached) " >&6
19634 else
19635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19636 /* end confdefs.h. */
19637 #include <sys/time.h>
19640 main ()
19642 static struct timespec x; x.tv_sec = x.tv_nsec;
19644 return 0;
19646 _ACEOF
19647 if ac_fn_c_try_compile "$LINENO"; then :
19648 gl_cv_sys_struct_timespec_in_sys_time_h=yes
19649 else
19650 gl_cv_sys_struct_timespec_in_sys_time_h=no
19652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
19655 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
19656 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
19657 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
19658 else
19659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
19660 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
19661 if test "${gl_cv_sys_struct_timespec_in_pthread_h+set}" = set; then :
19662 $as_echo_n "(cached) " >&6
19663 else
19664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19665 /* end confdefs.h. */
19666 #include <pthread.h>
19669 main ()
19671 static struct timespec x; x.tv_sec = x.tv_nsec;
19673 return 0;
19675 _ACEOF
19676 if ac_fn_c_try_compile "$LINENO"; then :
19677 gl_cv_sys_struct_timespec_in_pthread_h=yes
19678 else
19679 gl_cv_sys_struct_timespec_in_pthread_h=no
19681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
19684 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
19685 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
19686 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
19705 if test $gl_cv_have_include_next = yes; then
19706 gl_cv_next_time_h='<'time.h'>'
19707 else
19708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
19709 $as_echo_n "checking absolute name of <time.h>... " >&6; }
19710 if test "${gl_cv_next_time_h+set}" = set; then :
19711 $as_echo_n "(cached) " >&6
19712 else
19714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19715 /* end confdefs.h. */
19716 #include <time.h>
19718 _ACEOF
19719 case "$host_os" in
19720 aix*) gl_absname_cpp="$ac_cpp -C" ;;
19721 *) gl_absname_cpp="$ac_cpp" ;;
19722 esac
19724 case "$host_os" in
19725 mingw*)
19726 gl_dirsep_regex='[/\\]'
19729 gl_dirsep_regex='/'
19731 esac
19733 gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'time.h|{
19734 s|.*"\(.*'"${gl_dirsep_regex}"'time.h\)".*|\1|
19735 s|^/[^/]|//&|
19739 gl_cv_next_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19740 sed -n "$gl_absolute_header_sed"`'"'
19744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
19745 $as_echo "$gl_cv_next_time_h" >&6; }
19747 NEXT_TIME_H=$gl_cv_next_time_h
19749 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
19750 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19751 gl_next_as_first_directive='<'time.h'>'
19752 else
19753 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19754 gl_next_as_first_directive=$gl_cv_next_time_h
19756 NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
19763 ac_fn_c_check_decl "$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "$ac_includes_default"
19764 if test "x$ac_cv_have_decl_localtime_r" = x""yes; then :
19765 ac_have_decl=1
19766 else
19767 ac_have_decl=0
19770 cat >>confdefs.h <<_ACEOF
19771 #define HAVE_DECL_LOCALTIME_R $ac_have_decl
19772 _ACEOF
19777 if false; then
19778 GL_COND_LIBTOOL_TRUE=
19779 GL_COND_LIBTOOL_FALSE='#'
19780 else
19781 GL_COND_LIBTOOL_TRUE='#'
19782 GL_COND_LIBTOOL_FALSE=
19785 gl_cond_libtool=false
19786 gl_libdeps=
19787 gl_ltlibdeps=
19788 gl_m4_base='m4'
19798 gl_source_base='lib'
19801 if test $ac_cv_func_alloca_works = no; then
19805 # Define an additional variable used in the Makefile substitution.
19806 if test $ac_cv_working_alloca_h = yes; then
19807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
19808 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
19809 if test "${gl_cv_rpl_alloca+set}" = set; then :
19810 $as_echo_n "(cached) " >&6
19811 else
19813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19814 /* end confdefs.h. */
19816 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
19817 Need own alloca
19818 #endif
19820 _ACEOF
19821 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19822 $EGREP "Need own alloca" >/dev/null 2>&1; then :
19823 gl_cv_rpl_alloca=yes
19824 else
19825 gl_cv_rpl_alloca=no
19827 rm -f conftest*
19831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
19832 $as_echo "$gl_cv_rpl_alloca" >&6; }
19833 if test $gl_cv_rpl_alloca = yes; then
19835 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
19837 ALLOCA_H=alloca.h
19838 else
19839 ALLOCA_H=
19841 else
19842 ALLOCA_H=alloca.h
19845 if test -n "$ALLOCA_H"; then
19846 GL_GENERATE_ALLOCA_H_TRUE=
19847 GL_GENERATE_ALLOCA_H_FALSE='#'
19848 else
19849 GL_GENERATE_ALLOCA_H_TRUE='#'
19850 GL_GENERATE_ALLOCA_H_FALSE=
19879 $as_echo "#define HAVE_DUP2 1" >>confdefs.h
19882 if test $HAVE_DUP2 = 1; then
19883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5
19884 $as_echo_n "checking whether dup2 works... " >&6; }
19885 if test "${gl_cv_func_dup2_works+set}" = set; then :
19886 $as_echo_n "(cached) " >&6
19887 else
19888 if test "$cross_compiling" = yes; then :
19889 case "$host_os" in
19890 mingw*) # on this platform, dup2 always returns 0 for success
19891 gl_cv_func_dup2_works=no;;
19892 cygwin*) # on cygwin 1.5.x, dup2(1,1) returns 0
19893 gl_cv_func_dup2_works=no;;
19894 linux*) # On linux between 2008-07-27 and 2009-05-11, dup2 of a
19895 # closed fd may yield -EBADF instead of -1 / errno=EBADF.
19896 gl_cv_func_dup2_works=no;;
19897 freebsd*) # on FreeBSD 6.1, dup2(1,1000000) gives EMFILE, not EBADF.
19898 gl_cv_func_dup2_works=no;;
19899 haiku*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC.
19900 gl_cv_func_dup2_works=no;;
19901 *) gl_cv_func_dup2_works=yes;;
19902 esac
19903 else
19904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19905 /* end confdefs.h. */
19907 #include <unistd.h>
19908 #include <fcntl.h>
19909 #include <errno.h>
19911 main ()
19913 int result = 0;
19914 #ifdef FD_CLOEXEC
19915 if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1)
19916 result |= 1;
19917 #endif
19918 if (dup2 (1, 1) == 0)
19919 result |= 2;
19920 #ifdef FD_CLOEXEC
19921 if (fcntl (1, F_GETFD) != FD_CLOEXEC)
19922 result |= 4;
19923 #endif
19924 close (0);
19925 if (dup2 (0, 0) != -1)
19926 result |= 8;
19927 /* Many gnulib modules require POSIX conformance of EBADF. */
19928 if (dup2 (2, 1000000) == -1 && errno != EBADF)
19929 result |= 16;
19930 return result;
19933 return 0;
19936 _ACEOF
19937 if ac_fn_c_try_run "$LINENO"; then :
19938 gl_cv_func_dup2_works=yes
19939 else
19940 gl_cv_func_dup2_works=no
19942 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19943 conftest.$ac_objext conftest.beam conftest.$ac_ext
19948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5
19949 $as_echo "$gl_cv_func_dup2_works" >&6; }
19950 if test "$gl_cv_func_dup2_works" = no; then
19951 REPLACE_DUP2=1
19956 if test $HAVE_DUP2 = 0 || test $REPLACE_DUP2 = 1; then
19965 gl_LIBOBJS="$gl_LIBOBJS dup2.$ac_objext"
19974 GNULIB_DUP2=1
19986 # Persuade glibc <stdlib.h> to declare getloadavg().
19989 gl_save_LIBS=$LIBS
19991 # getloadvg is present in libc on glibc >= 2.2, MacOS X, FreeBSD >= 2.0,
19992 # NetBSD >= 0.9, OpenBSD >= 2.0, Solaris >= 7.
19993 HAVE_GETLOADAVG=1
19994 ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
19995 if test "x$ac_cv_func_getloadavg" = x""yes; then :
19997 else
19998 gl_func_getloadavg_done=no
20000 # Some systems with -lutil have (and need) -lkvm as well, some do not.
20001 # On Solaris, -lkvm requires nlist from -lelf, so check that first
20002 # to get the right answer into the cache.
20003 # For kstat on solaris, we need to test for libelf and libkvm to force the
20004 # definition of SVR4 below.
20005 if test $gl_func_getloadavg_done = no; then
20006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
20007 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
20008 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then :
20009 $as_echo_n "(cached) " >&6
20010 else
20011 ac_check_lib_save_LIBS=$LIBS
20012 LIBS="-lelf $LIBS"
20013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20014 /* end confdefs.h. */
20016 /* Override any GCC internal prototype to avoid an error.
20017 Use char because int might match the return type of a GCC
20018 builtin and then its argument prototype would still apply. */
20019 #ifdef __cplusplus
20020 extern "C"
20021 #endif
20022 char elf_begin ();
20024 main ()
20026 return elf_begin ();
20028 return 0;
20030 _ACEOF
20031 if ac_fn_c_try_link "$LINENO"; then :
20032 ac_cv_lib_elf_elf_begin=yes
20033 else
20034 ac_cv_lib_elf_elf_begin=no
20036 rm -f core conftest.err conftest.$ac_objext \
20037 conftest$ac_exeext conftest.$ac_ext
20038 LIBS=$ac_check_lib_save_LIBS
20040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
20041 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
20042 if test "x$ac_cv_lib_elf_elf_begin" = x""yes; then :
20043 LIBS="-lelf $LIBS"
20046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
20047 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
20048 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
20049 $as_echo_n "(cached) " >&6
20050 else
20051 ac_check_lib_save_LIBS=$LIBS
20052 LIBS="-lkvm $LIBS"
20053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20054 /* end confdefs.h. */
20056 /* Override any GCC internal prototype to avoid an error.
20057 Use char because int might match the return type of a GCC
20058 builtin and then its argument prototype would still apply. */
20059 #ifdef __cplusplus
20060 extern "C"
20061 #endif
20062 char kvm_open ();
20064 main ()
20066 return kvm_open ();
20068 return 0;
20070 _ACEOF
20071 if ac_fn_c_try_link "$LINENO"; then :
20072 ac_cv_lib_kvm_kvm_open=yes
20073 else
20074 ac_cv_lib_kvm_kvm_open=no
20076 rm -f core conftest.err conftest.$ac_objext \
20077 conftest$ac_exeext conftest.$ac_ext
20078 LIBS=$ac_check_lib_save_LIBS
20080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
20081 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
20082 if test "x$ac_cv_lib_kvm_kvm_open" = x""yes; then :
20083 LIBS="-lkvm $LIBS"
20086 # Check for the 4.4BSD definition of getloadavg.
20087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
20088 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
20089 if test "${ac_cv_lib_util_getloadavg+set}" = set; then :
20090 $as_echo_n "(cached) " >&6
20091 else
20092 ac_check_lib_save_LIBS=$LIBS
20093 LIBS="-lutil $LIBS"
20094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20095 /* end confdefs.h. */
20097 /* Override any GCC internal prototype to avoid an error.
20098 Use char because int might match the return type of a GCC
20099 builtin and then its argument prototype would still apply. */
20100 #ifdef __cplusplus
20101 extern "C"
20102 #endif
20103 char getloadavg ();
20105 main ()
20107 return getloadavg ();
20109 return 0;
20111 _ACEOF
20112 if ac_fn_c_try_link "$LINENO"; then :
20113 ac_cv_lib_util_getloadavg=yes
20114 else
20115 ac_cv_lib_util_getloadavg=no
20117 rm -f core conftest.err conftest.$ac_objext \
20118 conftest$ac_exeext conftest.$ac_ext
20119 LIBS=$ac_check_lib_save_LIBS
20121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
20122 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
20123 if test "x$ac_cv_lib_util_getloadavg" = x""yes; then :
20124 LIBS="-lutil $LIBS" gl_func_getloadavg_done=yes
20129 if test $gl_func_getloadavg_done = no; then
20130 # There is a commonly available library for RS/6000 AIX.
20131 # Since it is not a standard part of AIX, it might be installed locally.
20132 gl_getloadavg_LIBS=$LIBS
20133 LIBS="-L/usr/local/lib $LIBS"
20134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
20135 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
20136 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then :
20137 $as_echo_n "(cached) " >&6
20138 else
20139 ac_check_lib_save_LIBS=$LIBS
20140 LIBS="-lgetloadavg $LIBS"
20141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20142 /* end confdefs.h. */
20144 /* Override any GCC internal prototype to avoid an error.
20145 Use char because int might match the return type of a GCC
20146 builtin and then its argument prototype would still apply. */
20147 #ifdef __cplusplus
20148 extern "C"
20149 #endif
20150 char getloadavg ();
20152 main ()
20154 return getloadavg ();
20156 return 0;
20158 _ACEOF
20159 if ac_fn_c_try_link "$LINENO"; then :
20160 ac_cv_lib_getloadavg_getloadavg=yes
20161 else
20162 ac_cv_lib_getloadavg_getloadavg=no
20164 rm -f core conftest.err conftest.$ac_objext \
20165 conftest$ac_exeext conftest.$ac_ext
20166 LIBS=$ac_check_lib_save_LIBS
20168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
20169 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
20170 if test "x$ac_cv_lib_getloadavg_getloadavg" = x""yes; then :
20171 LIBS="-lgetloadavg $LIBS" gl_func_getloadavg_done=yes
20172 else
20173 LIBS=$gl_getloadavg_LIBS
20178 # Set up the replacement function if necessary.
20179 if test $gl_func_getloadavg_done = no; then
20180 HAVE_GETLOADAVG=0
20182 # Solaris has libkstat which does not require root.
20183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
20184 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
20185 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
20186 $as_echo_n "(cached) " >&6
20187 else
20188 ac_check_lib_save_LIBS=$LIBS
20189 LIBS="-lkstat $LIBS"
20190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20191 /* end confdefs.h. */
20193 /* Override any GCC internal prototype to avoid an error.
20194 Use char because int might match the return type of a GCC
20195 builtin and then its argument prototype would still apply. */
20196 #ifdef __cplusplus
20197 extern "C"
20198 #endif
20199 char kstat_open ();
20201 main ()
20203 return kstat_open ();
20205 return 0;
20207 _ACEOF
20208 if ac_fn_c_try_link "$LINENO"; then :
20209 ac_cv_lib_kstat_kstat_open=yes
20210 else
20211 ac_cv_lib_kstat_kstat_open=no
20213 rm -f core conftest.err conftest.$ac_objext \
20214 conftest$ac_exeext conftest.$ac_ext
20215 LIBS=$ac_check_lib_save_LIBS
20217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
20218 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
20219 if test "x$ac_cv_lib_kstat_kstat_open" = x""yes; then :
20220 cat >>confdefs.h <<_ACEOF
20221 #define HAVE_LIBKSTAT 1
20222 _ACEOF
20224 LIBS="-lkstat $LIBS"
20228 test $ac_cv_lib_kstat_kstat_open = yes && gl_func_getloadavg_done=yes
20230 # AIX has libperfstat which does not require root
20231 if test $gl_func_getloadavg_done = no; then
20232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perfstat_cpu_total in -lperfstat" >&5
20233 $as_echo_n "checking for perfstat_cpu_total in -lperfstat... " >&6; }
20234 if test "${ac_cv_lib_perfstat_perfstat_cpu_total+set}" = set; then :
20235 $as_echo_n "(cached) " >&6
20236 else
20237 ac_check_lib_save_LIBS=$LIBS
20238 LIBS="-lperfstat $LIBS"
20239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20240 /* end confdefs.h. */
20242 /* Override any GCC internal prototype to avoid an error.
20243 Use char because int might match the return type of a GCC
20244 builtin and then its argument prototype would still apply. */
20245 #ifdef __cplusplus
20246 extern "C"
20247 #endif
20248 char perfstat_cpu_total ();
20250 main ()
20252 return perfstat_cpu_total ();
20254 return 0;
20256 _ACEOF
20257 if ac_fn_c_try_link "$LINENO"; then :
20258 ac_cv_lib_perfstat_perfstat_cpu_total=yes
20259 else
20260 ac_cv_lib_perfstat_perfstat_cpu_total=no
20262 rm -f core conftest.err conftest.$ac_objext \
20263 conftest$ac_exeext conftest.$ac_ext
20264 LIBS=$ac_check_lib_save_LIBS
20266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_perfstat_perfstat_cpu_total" >&5
20267 $as_echo "$ac_cv_lib_perfstat_perfstat_cpu_total" >&6; }
20268 if test "x$ac_cv_lib_perfstat_perfstat_cpu_total" = x""yes; then :
20269 cat >>confdefs.h <<_ACEOF
20270 #define HAVE_LIBPERFSTAT 1
20271 _ACEOF
20273 LIBS="-lperfstat $LIBS"
20277 test $ac_cv_lib_perfstat_perfstat_cpu_total = yes && gl_func_getloadavg_done=yes
20280 if test $gl_func_getloadavg_done = no; then
20281 ac_fn_c_check_header_mongrel "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
20282 if test "x$ac_cv_header_sys_dg_sys_info_h" = x""yes; then :
20283 gl_func_getloadavg_done=yes
20285 $as_echo "#define DGUX 1" >>confdefs.h
20287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
20288 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
20289 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then :
20290 $as_echo_n "(cached) " >&6
20291 else
20292 ac_check_lib_save_LIBS=$LIBS
20293 LIBS="-ldgc $LIBS"
20294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20295 /* end confdefs.h. */
20297 /* Override any GCC internal prototype to avoid an error.
20298 Use char because int might match the return type of a GCC
20299 builtin and then its argument prototype would still apply. */
20300 #ifdef __cplusplus
20301 extern "C"
20302 #endif
20303 char dg_sys_info ();
20305 main ()
20307 return dg_sys_info ();
20309 return 0;
20311 _ACEOF
20312 if ac_fn_c_try_link "$LINENO"; then :
20313 ac_cv_lib_dgc_dg_sys_info=yes
20314 else
20315 ac_cv_lib_dgc_dg_sys_info=no
20317 rm -f core conftest.err conftest.$ac_objext \
20318 conftest$ac_exeext conftest.$ac_ext
20319 LIBS=$ac_check_lib_save_LIBS
20321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
20322 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
20323 if test "x$ac_cv_lib_dgc_dg_sys_info" = x""yes; then :
20324 cat >>confdefs.h <<_ACEOF
20325 #define HAVE_LIBDGC 1
20326 _ACEOF
20328 LIBS="-ldgc $LIBS"
20340 if test "x$gl_save_LIBS" = x; then
20341 GETLOADAVG_LIBS=$LIBS
20342 else
20343 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$gl_save_LIBS!!"`
20345 LIBS=$gl_save_LIBS
20348 # Test whether the system declares getloadavg. Solaris has the function
20349 # but declares it in <sys/loadavg.h>, not <stdlib.h>.
20350 for ac_header in sys/loadavg.h
20351 do :
20352 ac_fn_c_check_header_mongrel "$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default"
20353 if test "x$ac_cv_header_sys_loadavg_h" = x""yes; then :
20354 cat >>confdefs.h <<_ACEOF
20355 #define HAVE_SYS_LOADAVG_H 1
20356 _ACEOF
20360 done
20362 if test $ac_cv_header_sys_loadavg_h = yes; then
20363 HAVE_SYS_LOADAVG_H=1
20364 else
20365 HAVE_SYS_LOADAVG_H=0
20367 ac_fn_c_check_decl "$LINENO" "getloadavg" "ac_cv_have_decl_getloadavg" "#if HAVE_SYS_LOADAVG_H
20368 # include <sys/loadavg.h>
20369 #endif
20370 #include <stdlib.h>
20372 if test "x$ac_cv_have_decl_getloadavg" = x""yes; then :
20374 else
20375 HAVE_DECL_GETLOADAVG=0
20379 if test $HAVE_GETLOADAVG = 0; then
20388 gl_LIBOBJS="$gl_LIBOBJS getloadavg.$ac_objext"
20391 # Figure out what our getloadavg.c needs.
20393 # On HPUX9, an unprivileged user can get load averages this way.
20394 if test $gl_func_getloadavg_done = no; then
20395 for ac_func in pstat_getdynamic
20396 do :
20397 ac_fn_c_check_func "$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
20398 if test "x$ac_cv_func_pstat_getdynamic" = x""yes; then :
20399 cat >>confdefs.h <<_ACEOF
20400 #define HAVE_PSTAT_GETDYNAMIC 1
20401 _ACEOF
20402 gl_func_getloadavg_done=yes
20404 done
20408 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
20409 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
20410 # Irix 4.0.5F has the header but not the library.
20411 if test $gl_func_getloadavg_done = no && test "$ac_cv_lib_elf_elf_begin" = yes \
20412 && test "$ac_cv_lib_kvm_kvm_open" = yes; then
20413 gl_func_getloadavg_done=yes
20415 $as_echo "#define SVR4 1" >>confdefs.h
20419 if test $gl_func_getloadavg_done = no; then
20420 ac_fn_c_check_header_mongrel "$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
20421 if test "x$ac_cv_header_inq_stats_cpustats_h" = x""yes; then :
20422 gl_func_getloadavg_done=yes
20424 $as_echo "#define UMAX 1" >>confdefs.h
20427 $as_echo "#define UMAX4_3 1" >>confdefs.h
20434 if test $gl_func_getloadavg_done = no; then
20435 ac_fn_c_check_header_mongrel "$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
20436 if test "x$ac_cv_header_sys_cpustats_h" = x""yes; then :
20437 gl_func_getloadavg_done=yes; $as_echo "#define UMAX 1" >>confdefs.h
20444 if test $gl_func_getloadavg_done = no; then
20445 for ac_header in mach/mach.h
20446 do :
20447 ac_fn_c_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
20448 if test "x$ac_cv_header_mach_mach_h" = x""yes; then :
20449 cat >>confdefs.h <<_ACEOF
20450 #define HAVE_MACH_MACH_H 1
20451 _ACEOF
20455 done
20459 for ac_header in nlist.h
20460 do :
20461 ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
20462 if test "x$ac_cv_header_nlist_h" = x""yes; then :
20463 cat >>confdefs.h <<_ACEOF
20464 #define HAVE_NLIST_H 1
20465 _ACEOF
20466 ac_fn_c_check_member "$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
20468 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x""yes; then :
20470 cat >>confdefs.h <<_ACEOF
20471 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
20472 _ACEOF
20477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20478 /* end confdefs.h. */
20479 #include <nlist.h>
20481 main ()
20483 struct nlist x;
20484 #ifdef HAVE_STRUCT_NLIST_N_UN_N_NAME
20485 x.n_un.n_name = "";
20486 #else
20487 x.n_name = "";
20488 #endif
20490 return 0;
20492 _ACEOF
20493 if ac_fn_c_try_link "$LINENO"; then :
20495 $as_echo "#define N_NAME_POINTER 1" >>confdefs.h
20498 rm -f core conftest.err conftest.$ac_objext \
20499 conftest$ac_exeext conftest.$ac_ext
20503 done
20511 GNULIB_GETLOADAVG=1
20522 if test $REPLACE_GETOPT = 1; then
20531 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
20541 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
20552 REPLACE_GETOPT=0
20555 if test -n "$gl_replace_getopt"; then :
20557 REPLACE_GETOPT=1
20562 if test $REPLACE_GETOPT = 1; then
20564 GETOPT_H=getopt.h
20566 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
20570 GNULIB_UNISTD_H_GETOPT=1
20573 if test $REPLACE_GETOPT = 1; then
20582 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
20592 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
20603 if test $ac_cv_func_lstat = yes; then
20605 if test $gl_cv_func_lstat_dereferences_slashed_symlink = no; then
20606 REPLACE_LSTAT=1
20608 else
20609 HAVE_LSTAT=0
20612 if test $REPLACE_LSTAT = 1; then
20621 gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext"
20633 GNULIB_LSTAT=1
20645 if test $APPLE_UNIVERSAL_BUILD = 1; then
20646 # A universal build on Apple MacOS X platforms.
20647 # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode.
20648 # But we need a configuration result that is valid in both modes.
20649 gl_cv_func_working_mktime=no
20651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
20652 $as_echo_n "checking for working mktime... " >&6; }
20653 if test "${gl_cv_func_working_mktime+set}" = set; then :
20654 $as_echo_n "(cached) " >&6
20655 else
20656 if test "$cross_compiling" = yes; then :
20657 gl_cv_func_working_mktime=no
20658 else
20659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20660 /* end confdefs.h. */
20661 /* Test program from Paul Eggert and Tony Leneis. */
20662 #include <limits.h>
20663 #include <stdlib.h>
20664 #include <time.h>
20666 #ifdef HAVE_UNISTD_H
20667 # include <unistd.h>
20668 #endif
20670 #ifndef HAVE_ALARM
20671 # define alarm(X) /* empty */
20672 #endif
20674 /* Work around redefinition to rpl_putenv by other config tests. */
20675 #undef putenv
20677 static time_t time_t_max;
20678 static time_t time_t_min;
20680 /* Values we'll use to set the TZ environment variable. */
20681 static char *tz_strings[] = {
20682 (char *) 0, "TZ=GMT0", "TZ=JST-9",
20683 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
20685 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
20687 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
20688 Based on a problem report from Andreas Jaeger. */
20689 static int
20690 spring_forward_gap ()
20692 /* glibc (up to about 1998-10-07) failed this test. */
20693 struct tm tm;
20695 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
20696 instead of "TZ=America/Vancouver" in order to detect the bug even
20697 on systems that don't support the Olson extension, or don't have the
20698 full zoneinfo tables installed. */
20699 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
20701 tm.tm_year = 98;
20702 tm.tm_mon = 3;
20703 tm.tm_mday = 5;
20704 tm.tm_hour = 2;
20705 tm.tm_min = 0;
20706 tm.tm_sec = 0;
20707 tm.tm_isdst = -1;
20708 return mktime (&tm) != (time_t) -1;
20711 static int
20712 mktime_test1 (time_t now)
20714 struct tm *lt;
20715 return ! (lt = localtime (&now)) || mktime (lt) == now;
20718 static int
20719 mktime_test (time_t now)
20721 return (mktime_test1 (now)
20722 && mktime_test1 ((time_t) (time_t_max - now))
20723 && mktime_test1 ((time_t) (time_t_min + now)));
20726 static int
20727 irix_6_4_bug ()
20729 /* Based on code from Ariel Faigon. */
20730 struct tm tm;
20731 tm.tm_year = 96;
20732 tm.tm_mon = 3;
20733 tm.tm_mday = 0;
20734 tm.tm_hour = 0;
20735 tm.tm_min = 0;
20736 tm.tm_sec = 0;
20737 tm.tm_isdst = -1;
20738 mktime (&tm);
20739 return tm.tm_mon == 2 && tm.tm_mday == 31;
20742 static int
20743 bigtime_test (int j)
20745 struct tm tm;
20746 time_t now;
20747 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
20748 now = mktime (&tm);
20749 if (now != (time_t) -1)
20751 struct tm *lt = localtime (&now);
20752 if (! (lt
20753 && lt->tm_year == tm.tm_year
20754 && lt->tm_mon == tm.tm_mon
20755 && lt->tm_mday == tm.tm_mday
20756 && lt->tm_hour == tm.tm_hour
20757 && lt->tm_min == tm.tm_min
20758 && lt->tm_sec == tm.tm_sec
20759 && lt->tm_yday == tm.tm_yday
20760 && lt->tm_wday == tm.tm_wday
20761 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
20762 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
20763 return 0;
20765 return 1;
20768 static int
20769 year_2050_test ()
20771 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
20772 ignoring leap seconds. */
20773 unsigned long int answer = 2527315200UL;
20775 struct tm tm;
20776 time_t t;
20777 tm.tm_year = 2050 - 1900;
20778 tm.tm_mon = 2 - 1;
20779 tm.tm_mday = 1;
20780 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
20781 tm.tm_isdst = -1;
20783 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
20784 instead of "TZ=America/Vancouver" in order to detect the bug even
20785 on systems that don't support the Olson extension, or don't have the
20786 full zoneinfo tables installed. */
20787 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
20789 t = mktime (&tm);
20791 /* Check that the result is either a failure, or close enough
20792 to the correct answer that we can assume the discrepancy is
20793 due to leap seconds. */
20794 return (t == (time_t) -1
20795 || (0 < t && answer - 120 <= t && t <= answer + 120));
20799 main ()
20801 int result = 0;
20802 time_t t, delta;
20803 int i, j;
20804 int time_t_signed_magnitude = (time_t) ~ (time_t) 0 < (time_t) -1;
20805 int time_t_signed = ! ((time_t) 0 < (time_t) -1);
20807 /* This test makes some buggy mktime implementations loop.
20808 Give up after 60 seconds; a mktime slower than that
20809 isn't worth using anyway. */
20810 alarm (60);
20812 time_t_max = (! time_t_signed
20813 ? (time_t) -1
20814 : ((((time_t) 1 << (sizeof (time_t) * CHAR_BIT - 2)) - 1)
20815 * 2 + 1));
20816 time_t_min = (! time_t_signed
20817 ? (time_t) 0
20818 : time_t_signed_magnitude
20819 ? ~ (time_t) 0
20820 : ~ time_t_max);
20822 delta = time_t_max / 997; /* a suitable prime number */
20823 for (i = 0; i < N_STRINGS; i++)
20825 if (tz_strings[i])
20826 putenv (tz_strings[i]);
20828 for (t = 0; t <= time_t_max - delta; t += delta)
20829 if (! mktime_test (t))
20830 result |= 1;
20831 if (! (mktime_test ((time_t) 1)
20832 && mktime_test ((time_t) (60 * 60))
20833 && mktime_test ((time_t) (60 * 60 * 24))))
20834 result |= 2;
20836 for (j = 1; ; j <<= 1)
20837 if (! bigtime_test (j))
20838 result |= 4;
20839 else if (INT_MAX / 2 < j)
20840 break;
20841 if (! bigtime_test (INT_MAX))
20842 result |= 8;
20844 if (! irix_6_4_bug ())
20845 result |= 16;
20846 if (! spring_forward_gap ())
20847 result |= 32;
20848 if (! year_2050_test ())
20849 result |= 64;
20850 return result;
20852 _ACEOF
20853 if ac_fn_c_try_run "$LINENO"; then :
20854 gl_cv_func_working_mktime=yes
20855 else
20856 gl_cv_func_working_mktime=no
20858 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20859 conftest.$ac_objext conftest.beam conftest.$ac_ext
20864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_mktime" >&5
20865 $as_echo "$gl_cv_func_working_mktime" >&6; }
20867 if test $gl_cv_func_working_mktime = no; then
20868 REPLACE_MKTIME=1
20869 else
20870 REPLACE_MKTIME=0
20873 if test $REPLACE_MKTIME = 1; then
20882 gl_LIBOBJS="$gl_LIBOBJS mktime.$ac_objext"
20893 GNULIB_MKTIME=1
20902 LIB_PTHREAD_SIGMASK=
20905 if test $ac_cv_func_pthread_sigmask = yes; then
20907 else
20908 HAVE_PTHREAD_SIGMASK=0
20909 REPLACE_PTHREAD_SIGMASK=1
20915 if test $HAVE_PTHREAD_SIGMASK = 1; then
20918 if test -z "$LIB_PTHREAD_SIGMASK"; then
20919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask works without -lpthread" >&5
20920 $as_echo_n "checking whether pthread_sigmask works without -lpthread... " >&6; }
20921 if test "${gl_cv_func_pthread_sigmask_in_libc_works+set}" = set; then :
20922 $as_echo_n "(cached) " >&6
20923 else
20925 if test "$cross_compiling" = yes; then :
20927 case "$host_os" in
20928 freebsd* | hpux* | solaris | solaris2.[2-9]*)
20929 gl_cv_func_pthread_sigmask_in_libc_works="guessing no";;
20931 gl_cv_func_pthread_sigmask_in_libc_works="guessing yes";;
20932 esac
20934 else
20935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20936 /* end confdefs.h. */
20938 #include <pthread.h>
20939 #include <signal.h>
20940 #include <stddef.h>
20941 int main ()
20943 sigset_t set;
20944 sigemptyset (&set);
20945 return pthread_sigmask (1729, &set, NULL) != 0;
20947 _ACEOF
20948 if ac_fn_c_try_run "$LINENO"; then :
20949 gl_cv_func_pthread_sigmask_in_libc_works=no
20950 else
20951 gl_cv_func_pthread_sigmask_in_libc_works=yes
20953 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20954 conftest.$ac_objext conftest.beam conftest.$ac_ext
20959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_in_libc_works" >&5
20960 $as_echo "$gl_cv_func_pthread_sigmask_in_libc_works" >&6; }
20961 case "$gl_cv_func_pthread_sigmask_in_libc_works" in
20962 *no)
20963 REPLACE_PTHREAD_SIGMASK=1
20965 $as_echo "#define PTHREAD_SIGMASK_INEFFECTIVE 1" >>confdefs.h
20968 esac
20971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask returns error numbers" >&5
20972 $as_echo_n "checking whether pthread_sigmask returns error numbers... " >&6; }
20973 if test "${gl_cv_func_pthread_sigmask_return_works+set}" = set; then :
20974 $as_echo_n "(cached) " >&6
20975 else
20977 gl_save_LIBS="$LIBS"
20978 LIBS="$LIBS $LIB_PTHREAD_SIGMASK"
20979 if test "$cross_compiling" = yes; then :
20980 case "$host_os" in
20981 cygwin*)
20982 gl_cv_func_pthread_sigmask_return_works="guessing no";;
20984 gl_cv_func_pthread_sigmask_return_works="guessing yes";;
20985 esac
20987 else
20988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20989 /* end confdefs.h. */
20991 #include <pthread.h>
20992 #include <signal.h>
20993 #include <stddef.h>
20994 int main ()
20996 sigset_t set;
20997 sigemptyset (&set);
20998 if (pthread_sigmask (1729, &set, NULL) == -1)
20999 return 1;
21000 return 0;
21002 _ACEOF
21003 if ac_fn_c_try_run "$LINENO"; then :
21004 gl_cv_func_pthread_sigmask_return_works=yes
21005 else
21006 gl_cv_func_pthread_sigmask_return_works=no
21008 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21009 conftest.$ac_objext conftest.beam conftest.$ac_ext
21012 LIBS="$gl_save_LIBS"
21015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_return_works" >&5
21016 $as_echo "$gl_cv_func_pthread_sigmask_return_works" >&6; }
21017 case "$gl_cv_func_pthread_sigmask_return_works" in
21018 *no)
21019 REPLACE_PTHREAD_SIGMASK=1
21021 $as_echo "#define PTHREAD_SIGMASK_FAILS_WITH_ERRNO 1" >>confdefs.h
21024 esac
21026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask unblocks signals correctly" >&5
21027 $as_echo_n "checking whether pthread_sigmask unblocks signals correctly... " >&6; }
21028 if test "${gl_cv_func_pthread_sigmask_unblock_works+set}" = set; then :
21029 $as_echo_n "(cached) " >&6
21030 else
21032 case "$host_os" in
21033 irix*)
21034 gl_cv_func_pthread_sigmask_unblock_works="guessing no";;
21036 gl_cv_func_pthread_sigmask_unblock_works="guessing yes";;
21037 esac
21038 gl_save_LIBS="$LIBS"
21039 LIBS="$LIBS $LIBMULTITHREAD"
21040 if test "$cross_compiling" = yes; then :
21042 else
21043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21044 /* end confdefs.h. */
21046 #include <pthread.h>
21047 #include <signal.h>
21048 #include <stdio.h>
21049 #include <stdlib.h>
21050 #include <unistd.h>
21051 static volatile int sigint_occurred;
21052 static void
21053 sigint_handler (int sig)
21055 sigint_occurred++;
21057 int main ()
21059 sigset_t set;
21060 int pid = getpid ();
21061 char command[80];
21062 signal (SIGINT, sigint_handler);
21063 sigemptyset (&set);
21064 sigaddset (&set, SIGINT);
21065 if (!(pthread_sigmask (SIG_BLOCK, &set, NULL) == 0))
21066 return 1;
21067 sprintf (command, "sh -c 'sleep 1; kill -%d %d' &", SIGINT, pid);
21068 if (!(system (command) == 0))
21069 return 2;
21070 sleep (2);
21071 if (!(sigint_occurred == 0))
21072 return 3;
21073 if (!(pthread_sigmask (SIG_UNBLOCK, &set, NULL) == 0))
21074 return 4;
21075 if (!(sigint_occurred == 1)) /* This fails on IRIX. */
21076 return 5;
21077 return 0;
21079 _ACEOF
21080 if ac_fn_c_try_run "$LINENO"; then :
21082 else
21083 gl_cv_func_pthread_sigmask_unblock_works=no
21085 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21086 conftest.$ac_objext conftest.beam conftest.$ac_ext
21089 LIBS="$gl_save_LIBS"
21092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_unblock_works" >&5
21093 $as_echo "$gl_cv_func_pthread_sigmask_unblock_works" >&6; }
21094 case "$gl_cv_func_pthread_sigmask_unblock_works" in
21095 *no)
21096 REPLACE_PTHREAD_SIGMASK=1
21098 $as_echo "#define PTHREAD_SIGMASK_UNBLOCK_BUG 1" >>confdefs.h
21101 esac
21104 if test $HAVE_PTHREAD_SIGMASK = 0 || test $REPLACE_PTHREAD_SIGMASK = 1; then
21113 gl_LIBOBJS="$gl_LIBOBJS pthread_sigmask.$ac_objext"
21116 if test $HAVE_PTHREAD_SIGMASK = 1; then
21118 $as_echo "#define HAVE_PTHREAD_SIGMASK 1" >>confdefs.h
21128 GNULIB_PTHREAD_SIGMASK=1
21137 if test $ac_cv_func_readlink = no; then
21138 HAVE_READLINK=0
21139 else
21140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
21141 $as_echo_n "checking whether readlink signature is correct... " >&6; }
21142 if test "${gl_cv_decl_readlink_works+set}" = set; then :
21143 $as_echo_n "(cached) " >&6
21144 else
21145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21146 /* end confdefs.h. */
21147 #include <unistd.h>
21148 /* Cause compilation failure if original declaration has wrong type. */
21149 ssize_t readlink (const char *, char *, size_t);
21151 main ()
21155 return 0;
21157 _ACEOF
21158 if ac_fn_c_try_compile "$LINENO"; then :
21159 gl_cv_decl_readlink_works=yes
21160 else
21161 gl_cv_decl_readlink_works=no
21163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
21166 $as_echo "$gl_cv_decl_readlink_works" >&6; }
21167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
21168 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
21169 if test "${gl_cv_func_readlink_works+set}" = set; then :
21170 $as_echo_n "(cached) " >&6
21171 else
21172 # We have readlink, so assume ln -s works.
21173 ln -s conftest.no-such conftest.link
21174 ln -s conftest.link conftest.lnk2
21175 if test "$cross_compiling" = yes; then :
21176 gl_cv_func_readlink_works="guessing no"
21177 else
21178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21179 /* end confdefs.h. */
21180 #include <unistd.h>
21183 main ()
21185 char buf[20];
21186 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
21188 return 0;
21190 _ACEOF
21191 if ac_fn_c_try_run "$LINENO"; then :
21192 gl_cv_func_readlink_works=yes
21193 else
21194 gl_cv_func_readlink_works=no
21196 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21197 conftest.$ac_objext conftest.beam conftest.$ac_ext
21200 rm -f conftest.link conftest.lnk2
21202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
21203 $as_echo "$gl_cv_func_readlink_works" >&6; }
21204 if test "$gl_cv_func_readlink_works" != yes; then
21206 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
21208 REPLACE_READLINK=1
21209 elif test "$gl_cv_decl_readlink_works" != yes; then
21210 REPLACE_READLINK=1
21214 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
21223 gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
21234 GNULIB_READLINK=1
21251 if test $gl_cv_have_include_next = yes; then
21252 gl_cv_next_signal_h='<'signal.h'>'
21253 else
21254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
21255 $as_echo_n "checking absolute name of <signal.h>... " >&6; }
21256 if test "${gl_cv_next_signal_h+set}" = set; then :
21257 $as_echo_n "(cached) " >&6
21258 else
21260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21261 /* end confdefs.h. */
21262 #include <signal.h>
21264 _ACEOF
21265 case "$host_os" in
21266 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21267 *) gl_absname_cpp="$ac_cpp" ;;
21268 esac
21270 case "$host_os" in
21271 mingw*)
21272 gl_dirsep_regex='[/\\]'
21275 gl_dirsep_regex='/'
21277 esac
21279 gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'signal.h|{
21280 s|.*"\(.*'"${gl_dirsep_regex}"'signal.h\)".*|\1|
21281 s|^/[^/]|//&|
21285 gl_cv_next_signal_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21286 sed -n "$gl_absolute_header_sed"`'"'
21290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
21291 $as_echo "$gl_cv_next_signal_h" >&6; }
21293 NEXT_SIGNAL_H=$gl_cv_next_signal_h
21295 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21296 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21297 gl_next_as_first_directive='<'signal.h'>'
21298 else
21299 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21300 gl_next_as_first_directive=$gl_cv_next_signal_h
21302 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H=$gl_next_as_first_directive
21308 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
21309 # then choke on 'volatile sig_atomic_t'. C99 requires that it compile.
21310 ac_fn_c_check_type "$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
21311 #include <signal.h>
21314 if test "x$ac_cv_type_volatile_sig_atomic_t" = x""yes; then :
21316 else
21317 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=0
21326 ac_fn_c_check_type "$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
21327 #include <signal.h>
21330 if test "x$ac_cv_type_sighandler_t" = x""yes; then :
21332 else
21333 HAVE_SIGHANDLER_T=0
21339 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
21340 /* <sys/types.h> is not needed according to POSIX, but the
21341 <sys/socket.h> in i386-unknown-freebsd4.10 and
21342 powerpc-apple-darwin5.5 required it. */
21343 #include <sys/types.h>
21344 #if HAVE_SYS_SOCKET_H
21345 # include <sys/socket.h>
21346 #elif HAVE_WS2TCPIP_H
21347 # include <ws2tcpip.h>
21348 #endif
21351 if test "x$ac_cv_type_socklen_t" = x""yes; then :
21353 else
21354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
21355 $as_echo_n "checking for socklen_t equivalent... " >&6; }
21356 if test "${gl_cv_socklen_t_equiv+set}" = set; then :
21357 $as_echo_n "(cached) " >&6
21358 else
21359 # Systems have either "struct sockaddr *" or
21360 # "void *" as the second argument to getpeername
21361 gl_cv_socklen_t_equiv=
21362 for arg2 in "struct sockaddr" void; do
21363 for t in int size_t "unsigned int" "long int" "unsigned long int"; do
21364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21365 /* end confdefs.h. */
21366 #include <sys/types.h>
21367 #include <sys/socket.h>
21369 int getpeername (int, $arg2 *, $t *);
21371 main ()
21373 $t len;
21374 getpeername (0, 0, &len);
21376 return 0;
21378 _ACEOF
21379 if ac_fn_c_try_compile "$LINENO"; then :
21380 gl_cv_socklen_t_equiv="$t"
21382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21383 test "$gl_cv_socklen_t_equiv" != "" && break
21384 done
21385 test "$gl_cv_socklen_t_equiv" != "" && break
21386 done
21390 if test "$gl_cv_socklen_t_equiv" = ""; then
21391 as_fn_error "Cannot find a type to use in place of socklen_t" "$LINENO" 5
21393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
21394 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
21396 cat >>confdefs.h <<_ACEOF
21397 #define socklen_t $gl_cv_socklen_t_equiv
21398 _ACEOF
21403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
21404 $as_echo_n "checking for ssize_t... " >&6; }
21405 if test "${gt_cv_ssize_t+set}" = set; then :
21406 $as_echo_n "(cached) " >&6
21407 else
21408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21409 /* end confdefs.h. */
21410 #include <sys/types.h>
21412 main ()
21414 int x = sizeof (ssize_t *) + sizeof (ssize_t);
21415 return !x;
21417 return 0;
21419 _ACEOF
21420 if ac_fn_c_try_compile "$LINENO"; then :
21421 gt_cv_ssize_t=yes
21422 else
21423 gt_cv_ssize_t=no
21425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
21428 $as_echo "$gt_cv_ssize_t" >&6; }
21429 if test $gt_cv_ssize_t = no; then
21431 $as_echo "#define ssize_t int" >>confdefs.h
21436 STDARG_H=''
21437 NEXT_STDARG_H='<stdarg.h>'
21438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
21439 $as_echo_n "checking for va_copy... " >&6; }
21440 if test "${gl_cv_func_va_copy+set}" = set; then :
21441 $as_echo_n "(cached) " >&6
21442 else
21444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21445 /* end confdefs.h. */
21446 #include <stdarg.h>
21448 main ()
21451 #ifndef va_copy
21452 void (*func) (va_list, va_list) = va_copy;
21453 #endif
21456 return 0;
21458 _ACEOF
21459 if ac_fn_c_try_compile "$LINENO"; then :
21460 gl_cv_func_va_copy=yes
21461 else
21462 gl_cv_func_va_copy=no
21464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_va_copy" >&5
21468 $as_echo "$gl_cv_func_va_copy" >&6; }
21469 if test $gl_cv_func_va_copy = no; then
21470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21471 /* end confdefs.h. */
21472 #if defined _AIX && !defined __GNUC__
21473 AIX vaccine
21474 #endif
21476 _ACEOF
21477 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21478 $EGREP "vaccine" >/dev/null 2>&1; then :
21479 gl_aixcc=yes
21480 else
21481 gl_aixcc=no
21483 rm -f conftest*
21485 if test $gl_aixcc = yes; then
21486 STDARG_H=stdarg.h
21495 if test $gl_cv_have_include_next = yes; then
21496 gl_cv_next_stdarg_h='<'stdarg.h'>'
21497 else
21498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdarg.h>" >&5
21499 $as_echo_n "checking absolute name of <stdarg.h>... " >&6; }
21500 if test "${gl_cv_next_stdarg_h+set}" = set; then :
21501 $as_echo_n "(cached) " >&6
21502 else
21504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21505 /* end confdefs.h. */
21506 #include <stdarg.h>
21508 _ACEOF
21509 case "$host_os" in
21510 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21511 *) gl_absname_cpp="$ac_cpp" ;;
21512 esac
21514 case "$host_os" in
21515 mingw*)
21516 gl_dirsep_regex='[/\\]'
21519 gl_dirsep_regex='/'
21521 esac
21523 gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'stdarg.h|{
21524 s|.*"\(.*'"${gl_dirsep_regex}"'stdarg.h\)".*|\1|
21525 s|^/[^/]|//&|
21529 gl_cv_next_stdarg_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21530 sed -n "$gl_absolute_header_sed"`'"'
21534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdarg_h" >&5
21535 $as_echo "$gl_cv_next_stdarg_h" >&6; }
21537 NEXT_STDARG_H=$gl_cv_next_stdarg_h
21539 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21540 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21541 gl_next_as_first_directive='<'stdarg.h'>'
21542 else
21543 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21544 gl_next_as_first_directive=$gl_cv_next_stdarg_h
21546 NEXT_AS_FIRST_DIRECTIVE_STDARG_H=$gl_next_as_first_directive
21551 if test "$gl_cv_next_stdarg_h" = '""'; then
21552 gl_cv_next_stdarg_h='"///usr/include/stdarg.h"'
21553 NEXT_STDARG_H="$gl_cv_next_stdarg_h"
21555 else
21557 saved_as_echo_n="$as_echo_n"
21558 as_echo_n=':'
21559 if test "${gl_cv_func___va_copy+set}" = set; then :
21560 $as_echo_n "(cached) " >&6
21561 else
21563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21564 /* end confdefs.h. */
21565 #include <stdarg.h>
21567 main ()
21570 #ifndef __va_copy
21571 error, bail out
21572 #endif
21575 return 0;
21577 _ACEOF
21578 if ac_fn_c_try_compile "$LINENO"; then :
21579 gl_cv_func___va_copy=yes
21580 else
21581 gl_cv_func___va_copy=no
21583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21586 as_echo_n="$saved_as_echo_n"
21588 if test $gl_cv_func___va_copy = yes; then
21590 $as_echo "#define va_copy __va_copy" >>confdefs.h
21592 else
21595 $as_echo "#define va_copy gl_va_copy" >>confdefs.h
21601 if test -n "$STDARG_H"; then
21602 GL_GENERATE_STDARG_H_TRUE=
21603 GL_GENERATE_STDARG_H_FALSE='#'
21604 else
21605 GL_GENERATE_STDARG_H_TRUE='#'
21606 GL_GENERATE_STDARG_H_FALSE=
21614 # Define two additional variables used in the Makefile substitution.
21616 if test "$ac_cv_header_stdbool_h" = yes; then
21617 STDBOOL_H=''
21618 else
21619 STDBOOL_H='stdbool.h'
21622 if test -n "$STDBOOL_H"; then
21623 GL_GENERATE_STDBOOL_H_TRUE=
21624 GL_GENERATE_STDBOOL_H_FALSE='#'
21625 else
21626 GL_GENERATE_STDBOOL_H_TRUE='#'
21627 GL_GENERATE_STDBOOL_H_FALSE=
21631 if test "$ac_cv_type__Bool" = yes; then
21632 HAVE__BOOL=1
21633 else
21634 HAVE__BOOL=0
21641 STDDEF_H=
21642 if test $gt_cv_c_wchar_t = no; then
21643 HAVE_WCHAR_T=0
21644 STDDEF_H=stddef.h
21646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
21647 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
21648 if test "${gl_cv_decl_null_works+set}" = set; then :
21649 $as_echo_n "(cached) " >&6
21650 else
21651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21652 /* end confdefs.h. */
21653 #include <stddef.h>
21654 int test[2 * (sizeof NULL == sizeof (void *)) -1];
21657 main ()
21661 return 0;
21663 _ACEOF
21664 if ac_fn_c_try_compile "$LINENO"; then :
21665 gl_cv_decl_null_works=yes
21666 else
21667 gl_cv_decl_null_works=no
21669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
21672 $as_echo "$gl_cv_decl_null_works" >&6; }
21673 if test $gl_cv_decl_null_works = no; then
21674 REPLACE_NULL=1
21675 STDDEF_H=stddef.h
21678 if test -n "$STDDEF_H"; then
21679 GL_GENERATE_STDDEF_H_TRUE=
21680 GL_GENERATE_STDDEF_H_FALSE='#'
21681 else
21682 GL_GENERATE_STDDEF_H_TRUE='#'
21683 GL_GENERATE_STDDEF_H_FALSE=
21686 if test -n "$STDDEF_H"; then
21695 if test $gl_cv_have_include_next = yes; then
21696 gl_cv_next_stddef_h='<'stddef.h'>'
21697 else
21698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
21699 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
21700 if test "${gl_cv_next_stddef_h+set}" = set; then :
21701 $as_echo_n "(cached) " >&6
21702 else
21704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21705 /* end confdefs.h. */
21706 #include <stddef.h>
21708 _ACEOF
21709 case "$host_os" in
21710 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21711 *) gl_absname_cpp="$ac_cpp" ;;
21712 esac
21714 case "$host_os" in
21715 mingw*)
21716 gl_dirsep_regex='[/\\]'
21719 gl_dirsep_regex='/'
21721 esac
21723 gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'stddef.h|{
21724 s|.*"\(.*'"${gl_dirsep_regex}"'stddef.h\)".*|\1|
21725 s|^/[^/]|//&|
21729 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21730 sed -n "$gl_absolute_header_sed"`'"'
21734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
21735 $as_echo "$gl_cv_next_stddef_h" >&6; }
21737 NEXT_STDDEF_H=$gl_cv_next_stddef_h
21739 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21740 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21741 gl_next_as_first_directive='<'stddef.h'>'
21742 else
21743 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21744 gl_next_as_first_directive=$gl_cv_next_stddef_h
21746 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
21765 if test $gl_cv_have_include_next = yes; then
21766 gl_cv_next_stdio_h='<'stdio.h'>'
21767 else
21768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
21769 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
21770 if test "${gl_cv_next_stdio_h+set}" = set; then :
21771 $as_echo_n "(cached) " >&6
21772 else
21774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21775 /* end confdefs.h. */
21776 #include <stdio.h>
21778 _ACEOF
21779 case "$host_os" in
21780 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21781 *) gl_absname_cpp="$ac_cpp" ;;
21782 esac
21784 case "$host_os" in
21785 mingw*)
21786 gl_dirsep_regex='[/\\]'
21789 gl_dirsep_regex='/'
21791 esac
21793 gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'stdio.h|{
21794 s|.*"\(.*'"${gl_dirsep_regex}"'stdio.h\)".*|\1|
21795 s|^/[^/]|//&|
21799 gl_cv_next_stdio_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21800 sed -n "$gl_absolute_header_sed"`'"'
21804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
21805 $as_echo "$gl_cv_next_stdio_h" >&6; }
21807 NEXT_STDIO_H=$gl_cv_next_stdio_h
21809 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21810 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21811 gl_next_as_first_directive='<'stdio.h'>'
21812 else
21813 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21814 gl_next_as_first_directive=$gl_cv_next_stdio_h
21816 NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
21822 GNULIB_FSCANF=1
21823 GNULIB_SCANF=1
21824 GNULIB_FGETC=1
21825 GNULIB_GETC=1
21826 GNULIB_GETCHAR=1
21827 GNULIB_FGETS=1
21828 GNULIB_GETS=1
21829 GNULIB_FREAD=1
21832 GNULIB_FPRINTF=1
21833 GNULIB_PRINTF=1
21834 GNULIB_VFPRINTF=1
21835 GNULIB_VPRINTF=1
21836 GNULIB_FPUTC=1
21837 GNULIB_PUTC=1
21838 GNULIB_PUTCHAR=1
21839 GNULIB_FPUTS=1
21840 GNULIB_PUTS=1
21841 GNULIB_FWRITE=1
21857 if test $gl_cv_have_include_next = yes; then
21858 gl_cv_next_stdlib_h='<'stdlib.h'>'
21859 else
21860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
21861 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
21862 if test "${gl_cv_next_stdlib_h+set}" = set; then :
21863 $as_echo_n "(cached) " >&6
21864 else
21866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21867 /* end confdefs.h. */
21868 #include <stdlib.h>
21870 _ACEOF
21871 case "$host_os" in
21872 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21873 *) gl_absname_cpp="$ac_cpp" ;;
21874 esac
21876 case "$host_os" in
21877 mingw*)
21878 gl_dirsep_regex='[/\\]'
21881 gl_dirsep_regex='/'
21883 esac
21885 gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'stdlib.h|{
21886 s|.*"\(.*'"${gl_dirsep_regex}"'stdlib.h\)".*|\1|
21887 s|^/[^/]|//&|
21891 gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21892 sed -n "$gl_absolute_header_sed"`'"'
21896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
21897 $as_echo "$gl_cv_next_stdlib_h" >&6; }
21899 NEXT_STDLIB_H=$gl_cv_next_stdlib_h
21901 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21902 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21903 gl_next_as_first_directive='<'stdlib.h'>'
21904 else
21905 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21906 gl_next_as_first_directive=$gl_cv_next_stdlib_h
21908 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
21918 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
21926 $as_echo "#define my_strftime nstrftime" >>confdefs.h
21935 if test "$ac_cv_have_decl_strtoimax" != yes; then
21936 HAVE_DECL_STRTOIMAX=0
21939 if test $ac_cv_func_strtoimax = no; then
21948 gl_LIBOBJS="$gl_LIBOBJS strtoimax.$ac_objext"
21951 ac_fn_c_check_decl "$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
21952 if test "x$ac_cv_have_decl_strtoll" = x""yes; then :
21953 ac_have_decl=1
21954 else
21955 ac_have_decl=0
21958 cat >>confdefs.h <<_ACEOF
21959 #define HAVE_DECL_STRTOLL $ac_have_decl
21960 _ACEOF
21970 GNULIB_STRTOIMAX=1
21980 if test "$ac_cv_have_decl_strtoumax" != yes; then
21981 HAVE_DECL_STRTOUMAX=0
21984 if test $ac_cv_func_strtoumax = no; then
21993 gl_LIBOBJS="$gl_LIBOBJS strtoumax.$ac_objext"
21996 ac_fn_c_check_decl "$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
21997 if test "x$ac_cv_have_decl_strtoull" = x""yes; then :
21998 ac_have_decl=1
21999 else
22000 ac_have_decl=0
22003 cat >>confdefs.h <<_ACEOF
22004 #define HAVE_DECL_STRTOULL $ac_have_decl
22005 _ACEOF
22015 GNULIB_STRTOUMAX=1
22023 if test $ac_cv_func_symlink = no; then
22024 HAVE_SYMLINK=0
22025 else
22026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symlink handles trailing slash correctly" >&5
22027 $as_echo_n "checking whether symlink handles trailing slash correctly... " >&6; }
22028 if test "${gl_cv_func_symlink_works+set}" = set; then :
22029 $as_echo_n "(cached) " >&6
22030 else
22031 if test "$cross_compiling" = yes; then :
22032 gl_cv_func_symlink_works="guessing no"
22033 else
22034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22035 /* end confdefs.h. */
22036 #include <unistd.h>
22039 main ()
22041 int result = 0;
22042 if (!symlink ("a", "conftest.link/"))
22043 result |= 1;
22044 if (symlink ("conftest.f", "conftest.lnk2"))
22045 result |= 2;
22046 else if (!symlink ("a", "conftest.lnk2/"))
22047 result |= 4;
22048 return result;
22051 return 0;
22053 _ACEOF
22054 if ac_fn_c_try_run "$LINENO"; then :
22055 gl_cv_func_symlink_works=yes
22056 else
22057 gl_cv_func_symlink_works=no
22059 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22060 conftest.$ac_objext conftest.beam conftest.$ac_ext
22063 rm -f conftest.f conftest.link conftest.lnk2
22065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_symlink_works" >&5
22066 $as_echo "$gl_cv_func_symlink_works" >&6; }
22067 if test "$gl_cv_func_symlink_works" != yes; then
22068 REPLACE_SYMLINK=1
22072 if test $HAVE_SYMLINK = 0 || test $REPLACE_SYMLINK = 1; then
22081 gl_LIBOBJS="$gl_LIBOBJS symlink.$ac_objext"
22089 GNULIB_SYMLINK=1
22111 if test $gl_cv_have_include_next = yes; then
22112 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
22113 else
22114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
22115 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
22116 if test "${gl_cv_next_sys_stat_h+set}" = set; then :
22117 $as_echo_n "(cached) " >&6
22118 else
22120 if test $ac_cv_header_sys_stat_h = yes; then
22123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22124 /* end confdefs.h. */
22125 #include <sys/stat.h>
22127 _ACEOF
22128 case "$host_os" in
22129 aix*) gl_absname_cpp="$ac_cpp -C" ;;
22130 *) gl_absname_cpp="$ac_cpp" ;;
22131 esac
22133 case "$host_os" in
22134 mingw*)
22135 gl_dirsep_regex='[/\\]'
22138 gl_dirsep_regex='/'
22140 esac
22142 gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'sys/stat.h|{
22143 s|.*"\(.*'"${gl_dirsep_regex}"'sys/stat.h\)".*|\1|
22144 s|^/[^/]|//&|
22148 gl_cv_next_sys_stat_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22149 sed -n "$gl_absolute_header_sed"`'"'
22150 else
22151 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
22156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
22157 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
22159 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
22161 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
22162 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22163 gl_next_as_first_directive='<'sys/stat.h'>'
22164 else
22165 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22166 gl_next_as_first_directive=$gl_cv_next_sys_stat_h
22168 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
22176 ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
22177 #include <sys/stat.h>
22179 if test "x$ac_cv_type_nlink_t" = x""yes; then :
22181 else
22183 $as_echo "#define nlink_t int" >>confdefs.h
22201 if test $ac_cv_have_decl_localtime_r = no; then
22202 HAVE_DECL_LOCALTIME_R=0
22206 if test $ac_cv_func_localtime_r = yes; then
22207 HAVE_LOCALTIME_R=1
22208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
22209 $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
22210 if test "${gl_cv_time_r_posix+set}" = set; then :
22211 $as_echo_n "(cached) " >&6
22212 else
22213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22214 /* end confdefs.h. */
22215 #include <time.h>
22217 main ()
22219 /* We don't need to append 'restrict's to the argument types,
22220 even though the POSIX signature has the 'restrict's,
22221 since C99 says they can't affect type compatibility. */
22222 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
22223 if (ptr) return 0;
22224 /* Check the return type is a pointer.
22225 On HP-UX 10 it is 'int'. */
22226 *localtime_r (0, 0);
22228 return 0;
22231 _ACEOF
22232 if ac_fn_c_try_compile "$LINENO"; then :
22233 gl_cv_time_r_posix=yes
22234 else
22235 gl_cv_time_r_posix=no
22237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
22241 $as_echo "$gl_cv_time_r_posix" >&6; }
22242 if test $gl_cv_time_r_posix = yes; then
22243 REPLACE_LOCALTIME_R=0
22244 else
22245 REPLACE_LOCALTIME_R=1
22247 else
22248 HAVE_LOCALTIME_R=0
22251 if test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1; then
22260 gl_LIBOBJS="$gl_LIBOBJS time_r.$ac_objext"
22271 GNULIB_TIME_R=1
22291 if test $gl_cv_have_include_next = yes; then
22292 gl_cv_next_unistd_h='<'unistd.h'>'
22293 else
22294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
22295 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
22296 if test "${gl_cv_next_unistd_h+set}" = set; then :
22297 $as_echo_n "(cached) " >&6
22298 else
22300 if test $ac_cv_header_unistd_h = yes; then
22303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22304 /* end confdefs.h. */
22305 #include <unistd.h>
22307 _ACEOF
22308 case "$host_os" in
22309 aix*) gl_absname_cpp="$ac_cpp -C" ;;
22310 *) gl_absname_cpp="$ac_cpp" ;;
22311 esac
22313 case "$host_os" in
22314 mingw*)
22315 gl_dirsep_regex='[/\\]'
22318 gl_dirsep_regex='/'
22320 esac
22322 gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'unistd.h|{
22323 s|.*"\(.*'"${gl_dirsep_regex}"'unistd.h\)".*|\1|
22324 s|^/[^/]|//&|
22328 gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22329 sed -n "$gl_absolute_header_sed"`'"'
22330 else
22331 gl_cv_next_unistd_h='<'unistd.h'>'
22336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
22337 $as_echo "$gl_cv_next_unistd_h" >&6; }
22339 NEXT_UNISTD_H=$gl_cv_next_unistd_h
22341 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
22342 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22343 gl_next_as_first_directive='<'unistd.h'>'
22344 else
22345 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22346 gl_next_as_first_directive=$gl_cv_next_unistd_h
22348 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
22353 if test $ac_cv_header_unistd_h = yes; then
22354 HAVE_UNISTD_H=1
22355 else
22356 HAVE_UNISTD_H=0
22365 gl_gnulib_enabled_dosname=false
22366 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36=false
22367 gl_gnulib_enabled_pathmax=false
22368 gl_gnulib_enabled_sigprocmask=false
22369 gl_gnulib_enabled_stat=false
22370 gl_gnulib_enabled_strtoll=false
22371 gl_gnulib_enabled_strtoull=false
22372 gl_gnulib_enabled_verify=false
22373 func_gl_gnulib_m4code_dosname ()
22375 if ! $gl_gnulib_enabled_dosname; then
22376 gl_gnulib_enabled_dosname=true
22379 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36 ()
22381 if ! $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
22384 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36=true
22387 func_gl_gnulib_m4code_pathmax ()
22389 if ! $gl_gnulib_enabled_pathmax; then
22393 gl_gnulib_enabled_pathmax=true
22396 func_gl_gnulib_m4code_sigprocmask ()
22398 if ! $gl_gnulib_enabled_sigprocmask; then
22402 if test $gl_cv_type_sigset_t = yes; then
22403 ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask"
22404 if test "x$ac_cv_func_sigprocmask" = x""yes; then :
22405 gl_cv_func_sigprocmask=1
22409 if test -z "$gl_cv_func_sigprocmask"; then
22410 HAVE_POSIX_SIGNALBLOCKING=0
22413 if test $HAVE_POSIX_SIGNALBLOCKING = 0; then
22422 gl_LIBOBJS="$gl_LIBOBJS sigprocmask.$ac_objext"
22433 GNULIB_SIGPROCMASK=1
22439 gl_gnulib_enabled_sigprocmask=true
22442 func_gl_gnulib_m4code_stat ()
22444 if ! $gl_gnulib_enabled_stat; then
22448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
22449 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
22450 if test "${gl_cv_func_stat_dir_slash+set}" = set; then :
22451 $as_echo_n "(cached) " >&6
22452 else
22453 if test "$cross_compiling" = yes; then :
22454 case $host_os in
22455 mingw*) gl_cv_func_stat_dir_slash="guessing no";;
22456 *) gl_cv_func_stat_dir_slash="guessing yes";;
22457 esac
22458 else
22459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22460 /* end confdefs.h. */
22461 #include <sys/stat.h>
22464 main ()
22466 struct stat st; return stat (".", &st) != stat ("./", &st);
22468 return 0;
22470 _ACEOF
22471 if ac_fn_c_try_run "$LINENO"; then :
22472 gl_cv_func_stat_dir_slash=yes
22473 else
22474 gl_cv_func_stat_dir_slash=no
22476 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22477 conftest.$ac_objext conftest.beam conftest.$ac_ext
22481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
22482 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
22483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
22484 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
22485 if test "${gl_cv_func_stat_file_slash+set}" = set; then :
22486 $as_echo_n "(cached) " >&6
22487 else
22488 touch conftest.tmp
22489 # Assume that if we have lstat, we can also check symlinks.
22490 if test $ac_cv_func_lstat = yes; then
22491 ln -s conftest.tmp conftest.lnk
22493 if test "$cross_compiling" = yes; then :
22494 gl_cv_func_stat_file_slash="guessing no"
22495 else
22496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22497 /* end confdefs.h. */
22498 #include <sys/stat.h>
22501 main ()
22503 int result = 0;
22504 struct stat st;
22505 if (!stat ("conftest.tmp/", &st))
22506 result |= 1;
22507 #if HAVE_LSTAT
22508 if (!stat ("conftest.lnk/", &st))
22509 result |= 2;
22510 #endif
22511 return result;
22514 return 0;
22516 _ACEOF
22517 if ac_fn_c_try_run "$LINENO"; then :
22518 gl_cv_func_stat_file_slash=yes
22519 else
22520 gl_cv_func_stat_file_slash=no
22522 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22523 conftest.$ac_objext conftest.beam conftest.$ac_ext
22526 rm -f conftest.tmp conftest.lnk
22528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
22529 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
22530 case $gl_cv_func_stat_dir_slash in
22531 *no) REPLACE_STAT=1
22533 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
22535 esac
22536 case $gl_cv_func_stat_file_slash in
22537 *no) REPLACE_STAT=1
22539 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
22541 esac
22543 if test $REPLACE_STAT = 1; then
22552 gl_LIBOBJS="$gl_LIBOBJS stat.$ac_objext"
22564 GNULIB_STAT=1
22570 gl_gnulib_enabled_stat=true
22571 if test $REPLACE_STAT = 1; then
22572 func_gl_gnulib_m4code_dosname
22574 if test $REPLACE_STAT = 1; then
22575 func_gl_gnulib_m4code_pathmax
22577 if test $REPLACE_STAT = 1; then
22578 func_gl_gnulib_m4code_verify
22582 func_gl_gnulib_m4code_strtoll ()
22584 if ! $gl_gnulib_enabled_strtoll; then
22588 if test "$ac_cv_type_long_long_int" = yes; then
22589 for ac_func in strtoll
22590 do :
22591 ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
22592 if test "x$ac_cv_func_strtoll" = x""yes; then :
22593 cat >>confdefs.h <<_ACEOF
22594 #define HAVE_STRTOLL 1
22595 _ACEOF
22598 done
22600 if test $ac_cv_func_strtoll = no; then
22601 HAVE_STRTOLL=0
22605 if test $HAVE_STRTOLL = 0; then
22614 gl_LIBOBJS="$gl_LIBOBJS strtoll.$ac_objext"
22625 GNULIB_STRTOLL=1
22631 gl_gnulib_enabled_strtoll=true
22634 func_gl_gnulib_m4code_strtoull ()
22636 if ! $gl_gnulib_enabled_strtoull; then
22640 if test "$ac_cv_type_unsigned_long_long_int" = yes; then
22641 for ac_func in strtoull
22642 do :
22643 ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
22644 if test "x$ac_cv_func_strtoull" = x""yes; then :
22645 cat >>confdefs.h <<_ACEOF
22646 #define HAVE_STRTOULL 1
22647 _ACEOF
22650 done
22652 if test $ac_cv_func_strtoull = no; then
22653 HAVE_STRTOULL=0
22657 if test $HAVE_STRTOULL = 0; then
22666 gl_LIBOBJS="$gl_LIBOBJS strtoull.$ac_objext"
22677 GNULIB_STRTOULL=1
22683 gl_gnulib_enabled_strtoull=true
22686 func_gl_gnulib_m4code_verify ()
22688 if ! $gl_gnulib_enabled_verify; then
22689 gl_gnulib_enabled_verify=true
22692 if test $REPLACE_GETOPT = 1; then
22693 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36
22695 if test $REPLACE_LSTAT = 1; then
22696 func_gl_gnulib_m4code_dosname
22698 if test $REPLACE_LSTAT = 1; then
22699 func_gl_gnulib_m4code_stat
22701 if test $HAVE_PTHREAD_SIGMASK = 0 || test $REPLACE_PTHREAD_SIGMASK = 1; then
22702 func_gl_gnulib_m4code_sigprocmask
22704 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
22705 func_gl_gnulib_m4code_stat
22707 if test $ac_cv_func_strtoimax = no; then
22708 func_gl_gnulib_m4code_verify
22710 if test $ac_cv_func_strtoimax = no && test $ac_cv_type_long_long_int = yes; then
22711 func_gl_gnulib_m4code_strtoll
22713 if test $ac_cv_func_strtoumax = no; then
22714 func_gl_gnulib_m4code_verify
22716 if test $ac_cv_func_strtoumax = no && test $ac_cv_type_unsigned_long_long_int = yes; then
22717 func_gl_gnulib_m4code_strtoull
22720 if $gl_gnulib_enabled_dosname; then
22721 gl_GNULIB_ENABLED_dosname_TRUE=
22722 gl_GNULIB_ENABLED_dosname_FALSE='#'
22723 else
22724 gl_GNULIB_ENABLED_dosname_TRUE='#'
22725 gl_GNULIB_ENABLED_dosname_FALSE=
22728 if $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
22729 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE=
22730 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE='#'
22731 else
22732 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE='#'
22733 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE=
22736 if $gl_gnulib_enabled_pathmax; then
22737 gl_GNULIB_ENABLED_pathmax_TRUE=
22738 gl_GNULIB_ENABLED_pathmax_FALSE='#'
22739 else
22740 gl_GNULIB_ENABLED_pathmax_TRUE='#'
22741 gl_GNULIB_ENABLED_pathmax_FALSE=
22744 if $gl_gnulib_enabled_sigprocmask; then
22745 gl_GNULIB_ENABLED_sigprocmask_TRUE=
22746 gl_GNULIB_ENABLED_sigprocmask_FALSE='#'
22747 else
22748 gl_GNULIB_ENABLED_sigprocmask_TRUE='#'
22749 gl_GNULIB_ENABLED_sigprocmask_FALSE=
22752 if $gl_gnulib_enabled_stat; then
22753 gl_GNULIB_ENABLED_stat_TRUE=
22754 gl_GNULIB_ENABLED_stat_FALSE='#'
22755 else
22756 gl_GNULIB_ENABLED_stat_TRUE='#'
22757 gl_GNULIB_ENABLED_stat_FALSE=
22760 if $gl_gnulib_enabled_strtoll; then
22761 gl_GNULIB_ENABLED_strtoll_TRUE=
22762 gl_GNULIB_ENABLED_strtoll_FALSE='#'
22763 else
22764 gl_GNULIB_ENABLED_strtoll_TRUE='#'
22765 gl_GNULIB_ENABLED_strtoll_FALSE=
22768 if $gl_gnulib_enabled_strtoull; then
22769 gl_GNULIB_ENABLED_strtoull_TRUE=
22770 gl_GNULIB_ENABLED_strtoull_FALSE='#'
22771 else
22772 gl_GNULIB_ENABLED_strtoull_TRUE='#'
22773 gl_GNULIB_ENABLED_strtoull_FALSE=
22776 if $gl_gnulib_enabled_verify; then
22777 gl_GNULIB_ENABLED_verify_TRUE=
22778 gl_GNULIB_ENABLED_verify_FALSE='#'
22779 else
22780 gl_GNULIB_ENABLED_verify_TRUE='#'
22781 gl_GNULIB_ENABLED_verify_FALSE=
22784 # End of code from modules
22794 gltests_libdeps=
22795 gltests_ltlibdeps=
22805 gl_source_base='tests'
22806 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
22808 gl_module_indicator_condition=$gltests_WITNESS
22819 LIBGNU_LIBDEPS="$gl_libdeps"
22821 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
22825 case "$opsys" in
22826 aix4-2) LD_SWITCH_SYSTEM_TEMACS="-Wl,-bnodelcsect" ;;
22828 darwin)
22829 ## The -headerpad option tells ld (see man page) to leave room at the
22830 ## end of the header for adding load commands. Needed for dumping.
22831 ## 0x690 is the total size of 30 segment load commands (at 56
22832 ## each); under Cocoa 31 commands are required.
22833 if test "$HAVE_NS" = "yes"; then
22834 libs_nsgui="-framework AppKit"
22835 headerpad_extra=6C8
22836 else
22837 libs_nsgui=
22838 headerpad_extra=690
22840 LD_SWITCH_SYSTEM_TEMACS="-fno-pie -prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
22842 ## This is here because src/Makefile.in did some extra fiddling around
22843 ## with LD_SWITCH_SYSTEM. The cpp logic was:
22844 ## #ifndef LD_SWITCH_SYSTEM
22845 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
22846 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
22847 ## not using gcc, darwin system not on an alpha (ie darwin, since
22848 ## darwin + alpha does not occur).
22849 ## Because this was done in src/Makefile.in, the resulting part of
22850 ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link).
22851 ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS,
22852 ## rather than LD_SWITCH_SYSTEM.
22853 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
22854 LD_SWITCH_SYSTEM_TEMACS="-X $LD_SWITCH_SYSTEM_TEMACS"
22857 ## LD_SWITCH_X_SITE_AUX is a -R option saying where to find X at run-time.
22858 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at
22859 ## the point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_AUX
22860 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
22861 ## had different values in configure (in ac_link) and src/Makefile.in.
22862 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
22863 gnu*) LD_SWITCH_SYSTEM_TEMACS="\$(LD_SWITCH_X_SITE_AUX_RPATH)" ;;
22865 *) LD_SWITCH_SYSTEM_TEMACS= ;;
22866 esac
22868 if test "$NS_IMPL_GNUSTEP" = "yes"; then
22869 LD_SWITCH_SYSTEM_TEMACS="${LD_SWITCH_SYSTEM_TEMACS} -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES} -lgnustep-gui -lgnustep-base -lobjc -lpthread"
22875 LD_FIRSTFLAG=
22876 ORDINARY_LINK=
22877 case "$opsys" in
22878 ## gnu: GNU needs its own crt0.
22879 aix4-2|cygwin|darwin|gnu|hpux*|irix6-5|sol2*|unixware) ORDINARY_LINK=yes ;;
22881 ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the
22882 ## library search parth, i.e. it won't search /usr/lib for libc and
22883 ## friends. Using -nostartfiles instead avoids this problem, and
22884 ## will also work on earlier NetBSD releases.
22885 netbsd|openbsd) LD_FIRSTFLAG="-nostartfiles" ;;
22887 ## macpcc: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
22888 ## MkLinux/LinuxPPC needs this.
22889 ## ibms390x only supports opsys = gnu-linux so it can be added here.
22890 gnu-*)
22891 case "$machine" in
22892 macppc|ibms390x) LD_FIRSTFLAG="-nostdlib" ;;
22893 esac
22895 esac
22898 if test "x$ORDINARY_LINK" = "xyes"; then
22900 LD_FIRSTFLAG=""
22902 $as_echo "#define ORDINARY_LINK 1" >>confdefs.h
22905 ## The system files defining neither ORDINARY_LINK nor LD_FIRSTFLAG are:
22906 ## freebsd, gnu-* not on macppc|ibms390x.
22907 elif test "x$GCC" = "xyes" && test "x$LD_FIRSTFLAG" = "x"; then
22909 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
22910 ## places that are difficult to figure out at make time. Fortunately,
22911 ## these same versions allow you to pass arbitrary flags on to the
22912 ## linker, so there is no reason not to use it as a linker.
22914 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from
22915 ## searching for libraries in its internal directories, so we have to
22916 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below).
22917 LD_FIRSTFLAG="-nostdlib"
22920 ## FIXME? What setting of EDIT_LDFLAGS should this have?
22921 test "$NS_IMPL_GNUSTEP" = "yes" && LD_FIRSTFLAG="-rdynamic"
22926 ## FIXME? The logic here is not precisely the same as that above.
22927 ## There is no check here for a pre-defined LD_FIRSTFLAG.
22928 ## Should we only be setting LIB_GCC if LD ~ -nostdlib?
22929 LIB_GCC=
22930 if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
22932 case "$opsys" in
22933 freebsd|netbsd|openbsd) LIB_GCC= ;;
22935 gnu-*)
22936 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
22937 ## build on ARM EABI under GNU/Linux. (Bug#5518)
22938 case $host_cpu in
22939 arm*)
22940 LIB_GCC="-lgcc_s"
22943 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
22944 ## immediately undefine it again and redefine it to empty.
22945 ## Was the C_SWITCH_X_SITE part really necessary?
22946 ## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
22947 LIB_GCC=
22949 esac
22952 ## Ask GCC where to find libgcc.a.
22953 *) LIB_GCC=`$CC -print-libgcc-file-name 2> /dev/null` ;;
22954 esac
22958 ## If we're using X11/GNUstep, define some consequences.
22959 if test "$HAVE_X_WINDOWS" = "yes" || test "$HAVE_NS" = "yes"; then
22961 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
22964 $as_echo "#define HAVE_MOUSE 1" >>confdefs.h
22971 #### Report on what we decided to do.
22972 #### Report GTK as a toolkit, even if it doesn't use Xt.
22973 #### It makes printing result more understandable as using GTK sets
22974 #### toolkit_scroll_bars to yes by default.
22975 if test "${HAVE_GTK}" = "yes"; then
22976 USE_X_TOOLKIT=GTK
22979 and_machfile=
22980 if test -n "$machfile"; then
22981 and_machfile=" and \`${machfile}'"
22984 echo "
22985 Configured for \`${canonical}'.
22987 Where should the build process find the source code? ${srcdir}
22988 What operating system and machine description files should Emacs use?
22989 \`${opsysfile}'${and_machfile}
22990 What compiler should emacs be built with? ${CC} ${CFLAGS}
22991 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
22992 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
22993 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
22994 What window system should Emacs use? ${window_system}
22995 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
22997 if test -n "${x_includes}"; then
22998 echo " Where do we find X Windows header files? ${x_includes}"
22999 else
23000 echo " Where do we find X Windows header files? Standard dirs"
23002 if test -n "${x_libraries}"; then
23003 echo " Where do we find X Windows libraries? ${x_libraries}"
23004 else
23005 echo " Where do we find X Windows libraries? Standard dirs"
23008 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
23009 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
23010 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
23011 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
23012 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
23013 echo " Does Emacs use -lpng? ${HAVE_PNG}"
23014 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
23015 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
23017 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
23018 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
23019 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
23020 echo " Does Emacs use GSettings? ${HAVE_GSETTINGS}"
23021 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
23022 echo " Does Emacs use -lgnutls? ${HAVE_GNUTLS}"
23023 echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
23025 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
23026 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
23027 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
23028 echo " Does Emacs use -lxft? ${HAVE_XFT}"
23030 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
23031 echo
23033 if test -n "${EMACSDATA}"; then
23034 echo " Environment variable EMACSDATA set to: $EMACSDATA"
23036 if test -n "${EMACSDOC}"; then
23037 echo " Environment variable EMACSDOC set to: $EMACSDOC"
23040 if test $USE_XASSERTS = yes; then
23041 echo " Compiling with asserts turned on."
23042 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
23045 echo
23047 if test "$HAVE_NS" = "yes"; then
23048 echo
23049 echo "You must run \"${MAKE-make} install\" in order to test the built application.
23050 The installed application will go to nextstep/Emacs.app and can be
23051 run or moved from there."
23052 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
23053 echo "The application will be fully self-contained."
23054 else
23055 echo "The lisp resources for the application will be installed under ${prefix}.
23056 You may need to run \"${MAKE-make} install\" with sudo. The application will fail
23057 to run if these resources are not installed."
23059 echo
23062 if test "${opsys}" = "cygwin"; then
23063 case `uname -r` in
23064 1.5.*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: building Emacs on Cygwin 1.5 is not supported." >&5
23065 $as_echo "$as_me: WARNING: building Emacs on Cygwin 1.5 is not supported." >&2;}
23066 echo
23068 esac
23071 # Remove any trailing slashes in these variables.
23072 test "${prefix}" != NONE &&
23073 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
23074 test "${exec_prefix}" != NONE &&
23075 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
23077 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"
23079 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"
23082 opt_makefile=test/automated/Makefile
23084 if test -f $srcdir/${opt_makefile}.in; then
23085 SUBDIR_MAKEFILES="$SUBDIR_MAKEFILES $opt_makefile"
23086 ac_config_files="$ac_config_files test/automated/Makefile"
23091 opt_makefile=admin/unidata/Makefile
23093 if test -f $srcdir/${opt_makefile}.in; then
23094 SUBDIR_MAKEFILES="$SUBDIR_MAKEFILES $opt_makefile"
23095 ac_config_files="$ac_config_files admin/unidata/Makefile"
23100 SUBDIR_MAKEFILES_IN=`echo " ${SUBDIR_MAKEFILES}" | sed -e 's| | $(srcdir)/|g' -e 's|Makefile|Makefile.in|g'`
23104 ac_config_commands="$ac_config_commands mkdirs"
23107 ac_config_commands="$ac_config_commands epaths"
23110 ac_config_commands="$ac_config_commands gdbinit"
23113 cat >confcache <<\_ACEOF
23114 # This file is a shell script that caches the results of configure
23115 # tests run on this system so they can be shared between configure
23116 # scripts and configure runs, see configure's option --config-cache.
23117 # It is not useful on other systems. If it contains results you don't
23118 # want to keep, you may remove or edit it.
23120 # config.status only pays attention to the cache file if you give it
23121 # the --recheck option to rerun configure.
23123 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23124 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23125 # following values.
23127 _ACEOF
23129 # The following way of writing the cache mishandles newlines in values,
23130 # but we know of no workaround that is simple, portable, and efficient.
23131 # So, we kill variables containing newlines.
23132 # Ultrix sh set writes to stderr and can't be redirected directly,
23133 # and sets the high bit in the cache file unless we assign to the vars.
23135 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23136 eval ac_val=\$$ac_var
23137 case $ac_val in #(
23138 *${as_nl}*)
23139 case $ac_var in #(
23140 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
23141 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
23142 esac
23143 case $ac_var in #(
23144 _ | IFS | as_nl) ;; #(
23145 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
23146 *) { eval $ac_var=; unset $ac_var;} ;;
23147 esac ;;
23148 esac
23149 done
23151 (set) 2>&1 |
23152 case $as_nl`(ac_space=' '; set) 2>&1` in #(
23153 *${as_nl}ac_space=\ *)
23154 # `set' does not quote correctly, so add quotes: double-quote
23155 # substitution turns \\\\ into \\, and sed turns \\ into \.
23156 sed -n \
23157 "s/'/'\\\\''/g;
23158 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23159 ;; #(
23161 # `set' quotes correctly as required by POSIX, so do not add quotes.
23162 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
23164 esac |
23165 sort
23167 sed '
23168 /^ac_cv_env_/b end
23169 t clear
23170 :clear
23171 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23172 t end
23173 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23174 :end' >>confcache
23175 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23176 if test -w "$cache_file"; then
23177 test "x$cache_file" != "x/dev/null" &&
23178 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
23179 $as_echo "$as_me: updating cache $cache_file" >&6;}
23180 cat confcache >$cache_file
23181 else
23182 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
23183 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
23186 rm -f confcache
23188 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23189 # Let make expand exec_prefix.
23190 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23192 DEFS=-DHAVE_CONFIG_H
23194 ac_libobjs=
23195 ac_ltlibobjs=
23196 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23197 # 1. Remove the extension, and $U if already installed.
23198 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23199 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
23200 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
23201 # will be set to the directory where LIBOBJS objects are built.
23202 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
23203 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
23204 done
23205 LIBOBJS=$ac_libobjs
23207 LTLIBOBJS=$ac_ltlibobjs
23210 if test -n "$EXEEXT"; then
23211 am__EXEEXT_TRUE=
23212 am__EXEEXT_FALSE='#'
23213 else
23214 am__EXEEXT_TRUE='#'
23215 am__EXEEXT_FALSE=
23218 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
23219 as_fn_error "conditional \"AMDEP\" was never defined.
23220 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23222 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23223 as_fn_error "conditional \"am__fastdepCC\" was never defined.
23224 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23227 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
23228 as_fn_error "conditional \"GL_COND_LIBTOOL\" was never defined.
23229 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23231 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
23232 as_fn_error "conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
23233 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23236 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
23237 as_fn_error "conditional \"GL_GENERATE_STDINT_H\" was never defined.
23238 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23240 if test -z "${GL_GENERATE_STDARG_H_TRUE}" && test -z "${GL_GENERATE_STDARG_H_FALSE}"; then
23241 as_fn_error "conditional \"GL_GENERATE_STDARG_H\" was never defined.
23242 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23244 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
23245 as_fn_error "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
23246 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23248 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
23249 as_fn_error "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
23250 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23252 if test -z "${gl_GNULIB_ENABLED_dosname_TRUE}" && test -z "${gl_GNULIB_ENABLED_dosname_FALSE}"; then
23253 as_fn_error "conditional \"gl_GNULIB_ENABLED_dosname\" was never defined.
23254 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23256 if test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE}" && test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE}"; then
23257 as_fn_error "conditional \"gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36\" was never defined.
23258 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23260 if test -z "${gl_GNULIB_ENABLED_pathmax_TRUE}" && test -z "${gl_GNULIB_ENABLED_pathmax_FALSE}"; then
23261 as_fn_error "conditional \"gl_GNULIB_ENABLED_pathmax\" was never defined.
23262 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23264 if test -z "${gl_GNULIB_ENABLED_sigprocmask_TRUE}" && test -z "${gl_GNULIB_ENABLED_sigprocmask_FALSE}"; then
23265 as_fn_error "conditional \"gl_GNULIB_ENABLED_sigprocmask\" was never defined.
23266 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23268 if test -z "${gl_GNULIB_ENABLED_stat_TRUE}" && test -z "${gl_GNULIB_ENABLED_stat_FALSE}"; then
23269 as_fn_error "conditional \"gl_GNULIB_ENABLED_stat\" was never defined.
23270 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23272 if test -z "${gl_GNULIB_ENABLED_strtoll_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoll_FALSE}"; then
23273 as_fn_error "conditional \"gl_GNULIB_ENABLED_strtoll\" was never defined.
23274 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23276 if test -z "${gl_GNULIB_ENABLED_strtoull_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoull_FALSE}"; then
23277 as_fn_error "conditional \"gl_GNULIB_ENABLED_strtoull\" was never defined.
23278 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23280 if test -z "${gl_GNULIB_ENABLED_verify_TRUE}" && test -z "${gl_GNULIB_ENABLED_verify_FALSE}"; then
23281 as_fn_error "conditional \"gl_GNULIB_ENABLED_verify\" was never defined.
23282 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23285 gl_libobjs=
23286 gl_ltlibobjs=
23287 if test -n "$gl_LIBOBJS"; then
23288 # Remove the extension.
23289 sed_drop_objext='s/\.o$//;s/\.obj$//'
23290 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
23291 gl_libobjs="$gl_libobjs $i.$ac_objext"
23292 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
23293 done
23295 gl_LIBOBJS=$gl_libobjs
23297 gl_LTLIBOBJS=$gl_ltlibobjs
23301 gltests_libobjs=
23302 gltests_ltlibobjs=
23303 if test -n "$gltests_LIBOBJS"; then
23304 # Remove the extension.
23305 sed_drop_objext='s/\.o$//;s/\.obj$//'
23306 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
23307 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
23308 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
23309 done
23311 gltests_LIBOBJS=$gltests_libobjs
23313 gltests_LTLIBOBJS=$gltests_ltlibobjs
23317 : ${CONFIG_STATUS=./config.status}
23318 ac_write_fail=0
23319 ac_clean_files_save=$ac_clean_files
23320 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23321 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
23322 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
23323 as_write_fail=0
23324 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
23325 #! $SHELL
23326 # Generated by $as_me.
23327 # Run this file to recreate the current configuration.
23328 # Compiler output produced by configure, useful for debugging
23329 # configure, is in config.log if it exists.
23331 debug=false
23332 ac_cs_recheck=false
23333 ac_cs_silent=false
23335 SHELL=\${CONFIG_SHELL-$SHELL}
23336 export SHELL
23337 _ASEOF
23338 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
23339 ## -------------------- ##
23340 ## M4sh Initialization. ##
23341 ## -------------------- ##
23343 # Be more Bourne compatible
23344 DUALCASE=1; export DUALCASE # for MKS sh
23345 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
23346 emulate sh
23347 NULLCMD=:
23348 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23349 # is contrary to our usage. Disable this feature.
23350 alias -g '${1+"$@"}'='"$@"'
23351 setopt NO_GLOB_SUBST
23352 else
23353 case `(set -o) 2>/dev/null` in #(
23354 *posix*) :
23355 set -o posix ;; #(
23356 *) :
23358 esac
23362 as_nl='
23364 export as_nl
23365 # Printing a long string crashes Solaris 7 /usr/bin/printf.
23366 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
23367 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
23368 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
23369 # Prefer a ksh shell builtin over an external printf program on Solaris,
23370 # but without wasting forks for bash or zsh.
23371 if test -z "$BASH_VERSION$ZSH_VERSION" \
23372 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
23373 as_echo='print -r --'
23374 as_echo_n='print -rn --'
23375 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
23376 as_echo='printf %s\n'
23377 as_echo_n='printf %s'
23378 else
23379 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
23380 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
23381 as_echo_n='/usr/ucb/echo -n'
23382 else
23383 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
23384 as_echo_n_body='eval
23385 arg=$1;
23386 case $arg in #(
23387 *"$as_nl"*)
23388 expr "X$arg" : "X\\(.*\\)$as_nl";
23389 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
23390 esac;
23391 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
23393 export as_echo_n_body
23394 as_echo_n='sh -c $as_echo_n_body as_echo'
23396 export as_echo_body
23397 as_echo='sh -c $as_echo_body as_echo'
23400 # The user is always right.
23401 if test "${PATH_SEPARATOR+set}" != set; then
23402 PATH_SEPARATOR=:
23403 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
23404 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
23405 PATH_SEPARATOR=';'
23410 # IFS
23411 # We need space, tab and new line, in precisely that order. Quoting is
23412 # there to prevent editors from complaining about space-tab.
23413 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
23414 # splitting by setting IFS to empty value.)
23415 IFS=" "" $as_nl"
23417 # Find who we are. Look in the path if we contain no directory separator.
23418 case $0 in #((
23419 *[\\/]* ) as_myself=$0 ;;
23420 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23421 for as_dir in $PATH
23423 IFS=$as_save_IFS
23424 test -z "$as_dir" && as_dir=.
23425 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23426 done
23427 IFS=$as_save_IFS
23430 esac
23431 # We did not find ourselves, most probably we were run as `sh COMMAND'
23432 # in which case we are not to be found in the path.
23433 if test "x$as_myself" = x; then
23434 as_myself=$0
23436 if test ! -f "$as_myself"; then
23437 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23438 exit 1
23441 # Unset variables that we do not need and which cause bugs (e.g. in
23442 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
23443 # suppresses any "Segmentation fault" message there. '((' could
23444 # trigger a bug in pdksh 5.2.14.
23445 for as_var in BASH_ENV ENV MAIL MAILPATH
23446 do eval test x\${$as_var+set} = xset \
23447 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
23448 done
23449 PS1='$ '
23450 PS2='> '
23451 PS4='+ '
23453 # NLS nuisances.
23454 LC_ALL=C
23455 export LC_ALL
23456 LANGUAGE=C
23457 export LANGUAGE
23459 # CDPATH.
23460 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
23463 # as_fn_error ERROR [LINENO LOG_FD]
23464 # ---------------------------------
23465 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
23466 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
23467 # script with status $?, using 1 if that was 0.
23468 as_fn_error ()
23470 as_status=$?; test $as_status -eq 0 && as_status=1
23471 if test "$3"; then
23472 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
23473 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
23475 $as_echo "$as_me: error: $1" >&2
23476 as_fn_exit $as_status
23477 } # as_fn_error
23480 # as_fn_set_status STATUS
23481 # -----------------------
23482 # Set $? to STATUS, without forking.
23483 as_fn_set_status ()
23485 return $1
23486 } # as_fn_set_status
23488 # as_fn_exit STATUS
23489 # -----------------
23490 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
23491 as_fn_exit ()
23493 set +e
23494 as_fn_set_status $1
23495 exit $1
23496 } # as_fn_exit
23498 # as_fn_unset VAR
23499 # ---------------
23500 # Portably unset VAR.
23501 as_fn_unset ()
23503 { eval $1=; unset $1;}
23505 as_unset=as_fn_unset
23506 # as_fn_append VAR VALUE
23507 # ----------------------
23508 # Append the text in VALUE to the end of the definition contained in VAR. Take
23509 # advantage of any shell optimizations that allow amortized linear growth over
23510 # repeated appends, instead of the typical quadratic growth present in naive
23511 # implementations.
23512 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
23513 eval 'as_fn_append ()
23515 eval $1+=\$2
23517 else
23518 as_fn_append ()
23520 eval $1=\$$1\$2
23522 fi # as_fn_append
23524 # as_fn_arith ARG...
23525 # ------------------
23526 # Perform arithmetic evaluation on the ARGs, and store the result in the
23527 # global $as_val. Take advantage of shells that can avoid forks. The arguments
23528 # must be portable across $(()) and expr.
23529 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
23530 eval 'as_fn_arith ()
23532 as_val=$(( $* ))
23534 else
23535 as_fn_arith ()
23537 as_val=`expr "$@" || test $? -eq 1`
23539 fi # as_fn_arith
23542 if expr a : '\(a\)' >/dev/null 2>&1 &&
23543 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23544 as_expr=expr
23545 else
23546 as_expr=false
23549 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23550 as_basename=basename
23551 else
23552 as_basename=false
23555 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23556 as_dirname=dirname
23557 else
23558 as_dirname=false
23561 as_me=`$as_basename -- "$0" ||
23562 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23563 X"$0" : 'X\(//\)$' \| \
23564 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23565 $as_echo X/"$0" |
23566 sed '/^.*\/\([^/][^/]*\)\/*$/{
23567 s//\1/
23570 /^X\/\(\/\/\)$/{
23571 s//\1/
23574 /^X\/\(\/\).*/{
23575 s//\1/
23578 s/.*/./; q'`
23580 # Avoid depending upon Character Ranges.
23581 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23582 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23583 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23584 as_cr_digits='0123456789'
23585 as_cr_alnum=$as_cr_Letters$as_cr_digits
23587 ECHO_C= ECHO_N= ECHO_T=
23588 case `echo -n x` in #(((((
23589 -n*)
23590 case `echo 'xy\c'` in
23591 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
23592 xy) ECHO_C='\c';;
23593 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
23594 ECHO_T=' ';;
23595 esac;;
23597 ECHO_N='-n';;
23598 esac
23600 rm -f conf$$ conf$$.exe conf$$.file
23601 if test -d conf$$.dir; then
23602 rm -f conf$$.dir/conf$$.file
23603 else
23604 rm -f conf$$.dir
23605 mkdir conf$$.dir 2>/dev/null
23607 if (echo >conf$$.file) 2>/dev/null; then
23608 if ln -s conf$$.file conf$$ 2>/dev/null; then
23609 as_ln_s='ln -s'
23610 # ... but there are two gotchas:
23611 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23612 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23613 # In both cases, we have to default to `cp -p'.
23614 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23615 as_ln_s='cp -p'
23616 elif ln conf$$.file conf$$ 2>/dev/null; then
23617 as_ln_s=ln
23618 else
23619 as_ln_s='cp -p'
23621 else
23622 as_ln_s='cp -p'
23624 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23625 rmdir conf$$.dir 2>/dev/null
23628 # as_fn_mkdir_p
23629 # -------------
23630 # Create "$as_dir" as a directory, including parents if necessary.
23631 as_fn_mkdir_p ()
23634 case $as_dir in #(
23635 -*) as_dir=./$as_dir;;
23636 esac
23637 test -d "$as_dir" || eval $as_mkdir_p || {
23638 as_dirs=
23639 while :; do
23640 case $as_dir in #(
23641 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
23642 *) as_qdir=$as_dir;;
23643 esac
23644 as_dirs="'$as_qdir' $as_dirs"
23645 as_dir=`$as_dirname -- "$as_dir" ||
23646 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23647 X"$as_dir" : 'X\(//\)[^/]' \| \
23648 X"$as_dir" : 'X\(//\)$' \| \
23649 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23650 $as_echo X"$as_dir" |
23651 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23652 s//\1/
23655 /^X\(\/\/\)[^/].*/{
23656 s//\1/
23659 /^X\(\/\/\)$/{
23660 s//\1/
23663 /^X\(\/\).*/{
23664 s//\1/
23667 s/.*/./; q'`
23668 test -d "$as_dir" && break
23669 done
23670 test -z "$as_dirs" || eval "mkdir $as_dirs"
23671 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
23674 } # as_fn_mkdir_p
23675 if mkdir -p . 2>/dev/null; then
23676 as_mkdir_p='mkdir -p "$as_dir"'
23677 else
23678 test -d ./-p && rmdir ./-p
23679 as_mkdir_p=false
23682 if test -x / >/dev/null 2>&1; then
23683 as_test_x='test -x'
23684 else
23685 if ls -dL / >/dev/null 2>&1; then
23686 as_ls_L_option=L
23687 else
23688 as_ls_L_option=
23690 as_test_x='
23691 eval sh -c '\''
23692 if test -d "$1"; then
23693 test -d "$1/.";
23694 else
23695 case $1 in #(
23696 -*)set "./$1";;
23697 esac;
23698 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
23699 ???[sx]*):;;*)false;;esac;fi
23700 '\'' sh
23703 as_executable_p=$as_test_x
23705 # Sed expression to map a string onto a valid CPP name.
23706 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23708 # Sed expression to map a string onto a valid variable name.
23709 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23712 exec 6>&1
23713 ## ----------------------------------- ##
23714 ## Main body of $CONFIG_STATUS script. ##
23715 ## ----------------------------------- ##
23716 _ASEOF
23717 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
23719 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23720 # Save the log message, to keep $0 and so on meaningful, and to
23721 # report actual input values of CONFIG_FILES etc. instead of their
23722 # values after options handling.
23723 ac_log="
23724 This file was extended by emacs $as_me 24.1.50, which was
23725 generated by GNU Autoconf 2.65. Invocation command line was
23727 CONFIG_FILES = $CONFIG_FILES
23728 CONFIG_HEADERS = $CONFIG_HEADERS
23729 CONFIG_LINKS = $CONFIG_LINKS
23730 CONFIG_COMMANDS = $CONFIG_COMMANDS
23731 $ $0 $@
23733 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23736 _ACEOF
23738 case $ac_config_files in *"
23739 "*) set x $ac_config_files; shift; ac_config_files=$*;;
23740 esac
23742 case $ac_config_headers in *"
23743 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
23744 esac
23747 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23748 # Files that config.status was made for.
23749 config_files="$ac_config_files"
23750 config_headers="$ac_config_headers"
23751 config_commands="$ac_config_commands"
23753 _ACEOF
23755 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23756 ac_cs_usage="\
23757 \`$as_me' instantiates files and other configuration actions
23758 from templates according to the current configuration. Unless the files
23759 and actions are specified as TAGs, all are instantiated by default.
23761 Usage: $0 [OPTION]... [TAG]...
23763 -h, --help print this help, then exit
23764 -V, --version print version number and configuration settings, then exit
23765 --config print configuration, then exit
23766 -q, --quiet, --silent
23767 do not print progress messages
23768 -d, --debug don't remove temporary files
23769 --recheck update $as_me by reconfiguring in the same conditions
23770 --file=FILE[:TEMPLATE]
23771 instantiate the configuration file FILE
23772 --header=FILE[:TEMPLATE]
23773 instantiate the configuration header FILE
23775 Configuration files:
23776 $config_files
23778 Configuration headers:
23779 $config_headers
23781 Configuration commands:
23782 $config_commands
23784 Report bugs to the package provider."
23786 _ACEOF
23787 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23788 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
23789 ac_cs_version="\\
23790 emacs config.status 24.1.50
23791 configured by $0, generated by GNU Autoconf 2.65,
23792 with options \\"\$ac_cs_config\\"
23794 Copyright (C) 2009 Free Software Foundation, Inc.
23795 This config.status script is free software; the Free Software Foundation
23796 gives unlimited permission to copy, distribute and modify it."
23798 ac_pwd='$ac_pwd'
23799 srcdir='$srcdir'
23800 INSTALL='$INSTALL'
23801 MKDIR_P='$MKDIR_P'
23802 AWK='$AWK'
23803 test -n "\$AWK" || AWK=awk
23804 _ACEOF
23806 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23807 # The default lists apply if the user does not specify any file.
23808 ac_need_defaults=:
23809 while test $# != 0
23811 case $1 in
23812 --*=*)
23813 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23814 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23815 ac_shift=:
23818 ac_option=$1
23819 ac_optarg=$2
23820 ac_shift=shift
23822 esac
23824 case $ac_option in
23825 # Handling of the options.
23826 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23827 ac_cs_recheck=: ;;
23828 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23829 $as_echo "$ac_cs_version"; exit ;;
23830 --config | --confi | --conf | --con | --co | --c )
23831 $as_echo "$ac_cs_config"; exit ;;
23832 --debug | --debu | --deb | --de | --d | -d )
23833 debug=: ;;
23834 --file | --fil | --fi | --f )
23835 $ac_shift
23836 case $ac_optarg in
23837 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23838 esac
23839 as_fn_append CONFIG_FILES " '$ac_optarg'"
23840 ac_need_defaults=false;;
23841 --header | --heade | --head | --hea )
23842 $ac_shift
23843 case $ac_optarg in
23844 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23845 esac
23846 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
23847 ac_need_defaults=false;;
23848 --he | --h)
23849 # Conflict between --help and --header
23850 as_fn_error "ambiguous option: \`$1'
23851 Try \`$0 --help' for more information.";;
23852 --help | --hel | -h )
23853 $as_echo "$ac_cs_usage"; exit ;;
23854 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23855 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23856 ac_cs_silent=: ;;
23858 # This is an error.
23859 -*) as_fn_error "unrecognized option: \`$1'
23860 Try \`$0 --help' for more information." ;;
23862 *) as_fn_append ac_config_targets " $1"
23863 ac_need_defaults=false ;;
23865 esac
23866 shift
23867 done
23869 ac_configure_extra_args=
23871 if $ac_cs_silent; then
23872 exec 6>/dev/null
23873 ac_configure_extra_args="$ac_configure_extra_args --silent"
23876 _ACEOF
23877 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23878 if \$ac_cs_recheck; then
23879 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23880 shift
23881 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
23882 CONFIG_SHELL='$SHELL'
23883 export CONFIG_SHELL
23884 exec "\$@"
23887 _ACEOF
23888 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23889 exec 5>>config.log
23891 echo
23892 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23893 ## Running $as_me. ##
23894 _ASBOX
23895 $as_echo "$ac_log"
23896 } >&5
23898 _ACEOF
23899 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23901 # INIT-COMMANDS
23903 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
23904 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPPFLAGS="$CPPFLAGS"
23906 _ACEOF
23908 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23910 # Handling of arguments.
23911 for ac_config_target in $ac_config_targets
23913 case $ac_config_target in
23914 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
23915 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
23916 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23917 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
23918 "lib-src/Makefile") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile" ;;
23919 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
23920 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
23921 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
23922 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
23923 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
23924 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
23925 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
23926 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
23927 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
23928 "test/automated/Makefile") CONFIG_FILES="$CONFIG_FILES test/automated/Makefile" ;;
23929 "admin/unidata/Makefile") CONFIG_FILES="$CONFIG_FILES admin/unidata/Makefile" ;;
23930 "mkdirs") CONFIG_COMMANDS="$CONFIG_COMMANDS mkdirs" ;;
23931 "epaths") CONFIG_COMMANDS="$CONFIG_COMMANDS epaths" ;;
23932 "gdbinit") CONFIG_COMMANDS="$CONFIG_COMMANDS gdbinit" ;;
23934 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
23935 esac
23936 done
23939 # If the user did not use the arguments to specify the items to instantiate,
23940 # then the envvar interface is used. Set only those that are not.
23941 # We use the long form for the default assignment because of an extremely
23942 # bizarre bug on SunOS 4.1.3.
23943 if $ac_need_defaults; then
23944 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23945 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23946 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23949 # Have a temporary directory for convenience. Make it in the build tree
23950 # simply because there is no reason against having it here, and in addition,
23951 # creating and moving files from /tmp can sometimes cause problems.
23952 # Hook for its removal unless debugging.
23953 # Note that there is a small window in which the directory will not be cleaned:
23954 # after its creation but before its name has been assigned to `$tmp'.
23955 $debug ||
23957 tmp=
23958 trap 'exit_status=$?
23959 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23961 trap 'as_fn_exit 1' 1 2 13 15
23963 # Create a (secure) tmp directory for tmp files.
23966 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23967 test -n "$tmp" && test -d "$tmp"
23968 } ||
23970 tmp=./conf$$-$RANDOM
23971 (umask 077 && mkdir "$tmp")
23972 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
23974 # Set up the scripts for CONFIG_FILES section.
23975 # No need to generate them if there are no CONFIG_FILES.
23976 # This happens for instance with `./config.status config.h'.
23977 if test -n "$CONFIG_FILES"; then
23979 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
23980 ac_cs_awk_getline=:
23981 ac_cs_awk_pipe_init=
23982 ac_cs_awk_read_file='
23983 while ((getline aline < (F[key])) > 0)
23984 print(aline)
23985 close(F[key])'
23986 ac_cs_awk_pipe_fini=
23987 else
23988 ac_cs_awk_getline=false
23989 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
23990 ac_cs_awk_read_file='
23991 print "|#_!!_#|"
23992 print "cat " F[key] " &&"
23993 '$ac_cs_awk_pipe_init
23994 # The final `:' finishes the AND list.
23995 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
23997 ac_cr=`echo X | tr X '\015'`
23998 # On cygwin, bash can eat \r inside `` if the user requested igncr.
23999 # But we know of no other shell where ac_cr would be empty at this
24000 # point, so we can use a bashism as a fallback.
24001 if test "x$ac_cr" = x; then
24002 eval ac_cr=\$\'\\r\'
24004 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
24005 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
24006 ac_cs_awk_cr='\r'
24007 else
24008 ac_cs_awk_cr=$ac_cr
24011 echo 'BEGIN {' >"$tmp/subs1.awk" &&
24012 _ACEOF
24014 # Create commands to substitute file output variables.
24016 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
24017 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
24018 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
24019 echo "_ACAWK" &&
24020 echo "_ACEOF"
24021 } >conf$$files.sh &&
24022 . ./conf$$files.sh ||
24023 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
24024 rm -f conf$$files.sh
24027 echo "cat >conf$$subs.awk <<_ACEOF" &&
24028 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
24029 echo "_ACEOF"
24030 } >conf$$subs.sh ||
24031 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
24032 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
24033 ac_delim='%!_!# '
24034 for ac_last_try in false false false false false :; do
24035 . ./conf$$subs.sh ||
24036 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
24038 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
24039 if test $ac_delim_n = $ac_delim_num; then
24040 break
24041 elif $ac_last_try; then
24042 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
24043 else
24044 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24046 done
24047 rm -f conf$$subs.sh
24049 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24050 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
24051 _ACEOF
24052 sed -n '
24054 s/^/S["/; s/!.*/"]=/
24057 s/^[^!]*!//
24058 :repl
24059 t repl
24060 s/'"$ac_delim"'$//
24061 t delim
24064 s/\(.\{148\}\)..*/\1/
24065 t more1
24066 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
24069 b repl
24070 :more1
24071 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
24074 s/.\{148\}//
24075 t nl
24076 :delim
24078 s/\(.\{148\}\)..*/\1/
24079 t more2
24080 s/["\\]/\\&/g; s/^/"/; s/$/"/
24083 :more2
24084 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
24087 s/.\{148\}//
24088 t delim
24089 ' <conf$$subs.awk | sed '
24090 /^[^""]/{
24092 s/\n//
24094 ' >>$CONFIG_STATUS || ac_write_fail=1
24095 rm -f conf$$subs.awk
24096 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24097 _ACAWK
24098 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
24099 for (key in S) S_is_set[key] = 1
24100 FS = "\a"
24101 \$ac_cs_awk_pipe_init
24104 line = $ 0
24105 nfields = split(line, field, "@")
24106 substed = 0
24107 len = length(field[1])
24108 for (i = 2; i < nfields; i++) {
24109 key = field[i]
24110 keylen = length(key)
24111 if (S_is_set[key]) {
24112 value = S[key]
24113 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
24114 len += length(value) + length(field[++i])
24115 substed = 1
24116 } else
24117 len += 1 + keylen
24119 if (nfields == 3 && !substed) {
24120 key = field[2]
24121 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
24122 \$ac_cs_awk_read_file
24123 next
24126 print line
24128 \$ac_cs_awk_pipe_fini
24129 _ACAWK
24130 _ACEOF
24131 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24132 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
24133 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
24134 else
24136 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
24137 || as_fn_error "could not setup config files machinery" "$LINENO" 5
24138 _ACEOF
24140 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24141 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24142 # trailing colons and then remove the whole line if VPATH becomes empty
24143 # (actually we leave an empty line to preserve line numbers).
24144 if test "x$srcdir" = x.; then
24145 ac_vpsub='/^[ ]*VPATH[ ]*=/{
24146 s/:*\$(srcdir):*/:/
24147 s/:*\${srcdir}:*/:/
24148 s/:*@srcdir@:*/:/
24149 s/^\([^=]*=[ ]*\):*/\1/
24150 s/:*$//
24151 s/^[^=]*=[ ]*$//
24155 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24156 fi # test -n "$CONFIG_FILES"
24158 # Set up the scripts for CONFIG_HEADERS section.
24159 # No need to generate them if there are no CONFIG_HEADERS.
24160 # This happens for instance with `./config.status Makefile'.
24161 if test -n "$CONFIG_HEADERS"; then
24162 cat >"$tmp/defines.awk" <<\_ACAWK ||
24163 BEGIN {
24164 _ACEOF
24166 # Transform confdefs.h into an awk script `defines.awk', embedded as
24167 # here-document in config.status, that substitutes the proper values into
24168 # config.h.in to produce config.h.
24170 # Create a delimiter string that does not exist in confdefs.h, to ease
24171 # handling of long lines.
24172 ac_delim='%!_!# '
24173 for ac_last_try in false false :; do
24174 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
24175 if test -z "$ac_t"; then
24176 break
24177 elif $ac_last_try; then
24178 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
24179 else
24180 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24182 done
24184 # For the awk script, D is an array of macro values keyed by name,
24185 # likewise P contains macro parameters if any. Preserve backslash
24186 # newline sequences.
24188 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
24189 sed -n '
24190 s/.\{148\}/&'"$ac_delim"'/g
24191 t rset
24192 :rset
24193 s/^[ ]*#[ ]*define[ ][ ]*/ /
24194 t def
24196 :def
24197 s/\\$//
24198 t bsnl
24199 s/["\\]/\\&/g
24200 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
24201 D["\1"]=" \3"/p
24202 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
24204 :bsnl
24205 s/["\\]/\\&/g
24206 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
24207 D["\1"]=" \3\\\\\\n"\\/p
24208 t cont
24209 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
24210 t cont
24212 :cont
24214 s/.\{148\}/&'"$ac_delim"'/g
24215 t clear
24216 :clear
24217 s/\\$//
24218 t bsnlc
24219 s/["\\]/\\&/g; s/^/"/; s/$/"/p
24221 :bsnlc
24222 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
24223 b cont
24224 ' <confdefs.h | sed '
24225 s/'"$ac_delim"'/"\\\
24226 "/g' >>$CONFIG_STATUS || ac_write_fail=1
24228 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24229 for (key in D) D_is_set[key] = 1
24230 FS = "\a"
24232 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
24233 line = \$ 0
24234 split(line, arg, " ")
24235 if (arg[1] == "#") {
24236 defundef = arg[2]
24237 mac1 = arg[3]
24238 } else {
24239 defundef = substr(arg[1], 2)
24240 mac1 = arg[2]
24242 split(mac1, mac2, "(") #)
24243 macro = mac2[1]
24244 prefix = substr(line, 1, index(line, defundef) - 1)
24245 if (D_is_set[macro]) {
24246 # Preserve the white space surrounding the "#".
24247 print prefix "define", macro P[macro] D[macro]
24248 next
24249 } else {
24250 # Replace #undef with comments. This is necessary, for example,
24251 # in the case of _POSIX_SOURCE, which is predefined and required
24252 # on some systems where configure will not decide to define it.
24253 if (defundef == "undef") {
24254 print "/*", prefix defundef, macro, "*/"
24255 next
24259 { print }
24260 _ACAWK
24261 _ACEOF
24262 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24263 as_fn_error "could not setup config headers machinery" "$LINENO" 5
24264 fi # test -n "$CONFIG_HEADERS"
24267 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
24268 shift
24269 for ac_tag
24271 case $ac_tag in
24272 :[FHLC]) ac_mode=$ac_tag; continue;;
24273 esac
24274 case $ac_mode$ac_tag in
24275 :[FHL]*:*);;
24276 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
24277 :[FH]-) ac_tag=-:-;;
24278 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24279 esac
24280 ac_save_IFS=$IFS
24281 IFS=:
24282 set x $ac_tag
24283 IFS=$ac_save_IFS
24284 shift
24285 ac_file=$1
24286 shift
24288 case $ac_mode in
24289 :L) ac_source=$1;;
24290 :[FH])
24291 ac_file_inputs=
24292 for ac_f
24294 case $ac_f in
24295 -) ac_f="$tmp/stdin";;
24296 *) # Look for the file first in the build tree, then in the source tree
24297 # (if the path is not absolute). The absolute path cannot be DOS-style,
24298 # because $ac_f cannot contain `:'.
24299 test -f "$ac_f" ||
24300 case $ac_f in
24301 [\\/$]*) false;;
24302 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24303 esac ||
24304 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
24305 esac
24306 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
24307 as_fn_append ac_file_inputs " '$ac_f'"
24308 done
24310 # Let's still pretend it is `configure' which instantiates (i.e., don't
24311 # use $as_me), people would be surprised to read:
24312 # /* config.h. Generated by config.status. */
24313 configure_input='Generated from '`
24314 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
24315 `' by configure.'
24316 if test x"$ac_file" != x-; then
24317 configure_input="$ac_file. $configure_input"
24318 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
24319 $as_echo "$as_me: creating $ac_file" >&6;}
24321 # Neutralize special characters interpreted by sed in replacement strings.
24322 case $configure_input in #(
24323 *\&* | *\|* | *\\* )
24324 ac_sed_conf_input=`$as_echo "$configure_input" |
24325 sed 's/[\\\\&|]/\\\\&/g'`;; #(
24326 *) ac_sed_conf_input=$configure_input;;
24327 esac
24329 case $ac_tag in
24330 *:-:* | *:-) cat >"$tmp/stdin" \
24331 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
24332 esac
24334 esac
24336 ac_dir=`$as_dirname -- "$ac_file" ||
24337 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24338 X"$ac_file" : 'X\(//\)[^/]' \| \
24339 X"$ac_file" : 'X\(//\)$' \| \
24340 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24341 $as_echo X"$ac_file" |
24342 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24343 s//\1/
24346 /^X\(\/\/\)[^/].*/{
24347 s//\1/
24350 /^X\(\/\/\)$/{
24351 s//\1/
24354 /^X\(\/\).*/{
24355 s//\1/
24358 s/.*/./; q'`
24359 as_dir="$ac_dir"; as_fn_mkdir_p
24360 ac_builddir=.
24362 case "$ac_dir" in
24363 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24365 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
24366 # A ".." for each directory in $ac_dir_suffix.
24367 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
24368 case $ac_top_builddir_sub in
24369 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24370 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24371 esac ;;
24372 esac
24373 ac_abs_top_builddir=$ac_pwd
24374 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24375 # for backward compatibility:
24376 ac_top_builddir=$ac_top_build_prefix
24378 case $srcdir in
24379 .) # We are building in place.
24380 ac_srcdir=.
24381 ac_top_srcdir=$ac_top_builddir_sub
24382 ac_abs_top_srcdir=$ac_pwd ;;
24383 [\\/]* | ?:[\\/]* ) # Absolute name.
24384 ac_srcdir=$srcdir$ac_dir_suffix;
24385 ac_top_srcdir=$srcdir
24386 ac_abs_top_srcdir=$srcdir ;;
24387 *) # Relative name.
24388 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24389 ac_top_srcdir=$ac_top_build_prefix$srcdir
24390 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24391 esac
24392 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24395 case $ac_mode in
24398 # CONFIG_FILE
24401 case $INSTALL in
24402 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24403 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
24404 esac
24405 ac_MKDIR_P=$MKDIR_P
24406 case $MKDIR_P in
24407 [\\/$]* | ?:[\\/]* ) ;;
24408 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
24409 esac
24410 _ACEOF
24412 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24413 # If the template does not know about datarootdir, expand it.
24414 # FIXME: This hack should be removed a few years after 2.60.
24415 ac_datarootdir_hack=; ac_datarootdir_seen=
24416 ac_sed_dataroot='
24417 /datarootdir/ {
24421 /@datadir@/p
24422 /@docdir@/p
24423 /@infodir@/p
24424 /@localedir@/p
24425 /@mandir@/p'
24426 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
24427 *datarootdir*) ac_datarootdir_seen=yes;;
24428 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24429 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24430 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24431 _ACEOF
24432 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24433 ac_datarootdir_hack='
24434 s&@datadir@&$datadir&g
24435 s&@docdir@&$docdir&g
24436 s&@infodir@&$infodir&g
24437 s&@localedir@&$localedir&g
24438 s&@mandir@&$mandir&g
24439 s&\\\${datarootdir}&$datarootdir&g' ;;
24440 esac
24441 _ACEOF
24443 # Neutralize VPATH when `$srcdir' = `.'.
24444 # Shell code in configure.ac might set extrasub.
24445 # FIXME: do we really want to maintain this feature?
24446 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24447 ac_sed_extra="$ac_vpsub
24448 $extrasub
24449 _ACEOF
24450 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24452 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24453 s|@configure_input@|$ac_sed_conf_input|;t t
24454 s&@top_builddir@&$ac_top_builddir_sub&;t t
24455 s&@top_build_prefix@&$ac_top_build_prefix&;t t
24456 s&@srcdir@&$ac_srcdir&;t t
24457 s&@abs_srcdir@&$ac_abs_srcdir&;t t
24458 s&@top_srcdir@&$ac_top_srcdir&;t t
24459 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24460 s&@builddir@&$ac_builddir&;t t
24461 s&@abs_builddir@&$ac_abs_builddir&;t t
24462 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24463 s&@INSTALL@&$ac_INSTALL&;t t
24464 s&@MKDIR_P@&$ac_MKDIR_P&;t t
24465 $ac_datarootdir_hack
24467 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
24468 if $ac_cs_awk_getline; then
24469 $AWK -f "$tmp/subs.awk"
24470 else
24471 $AWK -f "$tmp/subs.awk" | $SHELL
24472 fi >$tmp/out \
24473 || as_fn_error "could not create $ac_file" "$LINENO" 5
24475 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24476 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
24477 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
24478 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24479 which seems to be undefined. Please make sure it is defined." >&5
24480 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24481 which seems to be undefined. Please make sure it is defined." >&2;}
24483 rm -f "$tmp/stdin"
24484 case $ac_file in
24485 -) cat "$tmp/out" && rm -f "$tmp/out";;
24486 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
24487 esac \
24488 || as_fn_error "could not create $ac_file" "$LINENO" 5
24492 # CONFIG_HEADER
24494 if test x"$ac_file" != x-; then
24496 $as_echo "/* $configure_input */" \
24497 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
24498 } >"$tmp/config.h" \
24499 || as_fn_error "could not create $ac_file" "$LINENO" 5
24500 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
24501 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
24502 $as_echo "$as_me: $ac_file is unchanged" >&6;}
24503 else
24504 rm -f "$ac_file"
24505 mv "$tmp/config.h" "$ac_file" \
24506 || as_fn_error "could not create $ac_file" "$LINENO" 5
24508 else
24509 $as_echo "/* $configure_input */" \
24510 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
24511 || as_fn_error "could not create -" "$LINENO" 5
24513 # Compute "$ac_file"'s index in $config_headers.
24514 _am_arg="$ac_file"
24515 _am_stamp_count=1
24516 for _am_header in $config_headers :; do
24517 case $_am_header in
24518 $_am_arg | $_am_arg:* )
24519 break ;;
24521 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
24522 esac
24523 done
24524 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
24525 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24526 X"$_am_arg" : 'X\(//\)[^/]' \| \
24527 X"$_am_arg" : 'X\(//\)$' \| \
24528 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
24529 $as_echo X"$_am_arg" |
24530 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24531 s//\1/
24534 /^X\(\/\/\)[^/].*/{
24535 s//\1/
24538 /^X\(\/\/\)$/{
24539 s//\1/
24542 /^X\(\/\).*/{
24543 s//\1/
24546 s/.*/./; q'`/stamp-h$_am_stamp_count
24549 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
24550 $as_echo "$as_me: executing $ac_file commands" >&6;}
24552 esac
24555 case $ac_file$ac_mode in
24556 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
24557 # Autoconf 2.62 quotes --file arguments for eval, but not when files
24558 # are listed without --file. Let's play safe and only enable the eval
24559 # if we detect the quoting.
24560 case $CONFIG_FILES in
24561 *\'*) eval set x "$CONFIG_FILES" ;;
24562 *) set x $CONFIG_FILES ;;
24563 esac
24564 shift
24565 for mf
24567 # Strip MF so we end up with the name of the file.
24568 mf=`echo "$mf" | sed -e 's/:.*$//'`
24569 # Check whether this is an Automake generated Makefile or not.
24570 # We used to match only the files named `Makefile.in', but
24571 # some people rename them; so instead we look at the file content.
24572 # Grep'ing the first line is not enough: some people post-process
24573 # each Makefile.in and add a new line on top of each file to say so.
24574 # Grep'ing the whole file is not good either: AIX grep has a line
24575 # limit of 2048, but all sed's we know have understand at least 4000.
24576 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
24577 dirpart=`$as_dirname -- "$mf" ||
24578 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24579 X"$mf" : 'X\(//\)[^/]' \| \
24580 X"$mf" : 'X\(//\)$' \| \
24581 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
24582 $as_echo X"$mf" |
24583 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24584 s//\1/
24587 /^X\(\/\/\)[^/].*/{
24588 s//\1/
24591 /^X\(\/\/\)$/{
24592 s//\1/
24595 /^X\(\/\).*/{
24596 s//\1/
24599 s/.*/./; q'`
24600 else
24601 continue
24603 # Extract the definition of DEPDIR, am__include, and am__quote
24604 # from the Makefile without running `make'.
24605 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
24606 test -z "$DEPDIR" && continue
24607 am__include=`sed -n 's/^am__include = //p' < "$mf"`
24608 test -z "am__include" && continue
24609 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
24610 # When using ansi2knr, U may be empty or an underscore; expand it
24611 U=`sed -n 's/^U = //p' < "$mf"`
24612 # Find all dependency output files, they are included files with
24613 # $(DEPDIR) in their names. We invoke sed twice because it is the
24614 # simplest approach to changing $(DEPDIR) to its actual value in the
24615 # expansion.
24616 for file in `sed -n "
24617 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
24618 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
24619 # Make sure the directory exists.
24620 test -f "$dirpart/$file" && continue
24621 fdir=`$as_dirname -- "$file" ||
24622 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24623 X"$file" : 'X\(//\)[^/]' \| \
24624 X"$file" : 'X\(//\)$' \| \
24625 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
24626 $as_echo X"$file" |
24627 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24628 s//\1/
24631 /^X\(\/\/\)[^/].*/{
24632 s//\1/
24635 /^X\(\/\/\)$/{
24636 s//\1/
24639 /^X\(\/\).*/{
24640 s//\1/
24643 s/.*/./; q'`
24644 as_dir=$dirpart/$fdir; as_fn_mkdir_p
24645 # echo "creating $dirpart/$file"
24646 echo '# dummy' > "$dirpart/$file"
24647 done
24648 done
24651 "mkdirs":C)
24652 for dir in etc lisp ; do
24653 test -d ${dir} || mkdir ${dir}
24654 done
24656 "epaths":C)
24657 echo creating src/epaths.h
24658 ${MAKE-make} epaths-force
24660 "gdbinit":C)
24661 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
24662 echo creating src/.gdbinit
24663 echo source $srcdir/src/.gdbinit > src/.gdbinit
24667 esac
24668 done # for ac_tag
24671 as_fn_exit 0
24672 _ACEOF
24673 ac_clean_files=$ac_clean_files_save
24675 test $ac_write_fail = 0 ||
24676 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
24679 # configure is writing to config.log, and then calls config.status.
24680 # config.status does its own redirection, appending to config.log.
24681 # Unfortunately, on DOS this fails, as config.log is still kept open
24682 # by configure, so config.status won't be able to write to it; its
24683 # output is simply discarded. So we exec the FD to /dev/null,
24684 # effectively closing config.log, so it can be properly (re)opened and
24685 # appended to by config.status. When coming back to configure, we
24686 # need to make the FD available again.
24687 if test "$no_create" != yes; then
24688 ac_cs_success=:
24689 ac_config_status_args=
24690 test "$silent" = yes &&
24691 ac_config_status_args="$ac_config_status_args --quiet"
24692 exec 5>/dev/null
24693 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24694 exec 5>>config.log
24695 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24696 # would make configure fail if this is the last instruction.
24697 $ac_cs_success || as_fn_exit $?
24699 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
24700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
24701 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}