Auto-commit of generated files.
[emacs.git] / autogen / configure
blobcc9e5054ecb74d2f859c5b4713f16f6b216b3bd0
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for emacs 24.2.
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.2'
553 PACKAGE_STRING='emacs 24.2'
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 HAVE_UNISTD_H
632 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
633 NEXT_UNISTD_H
634 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
635 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
636 TIME_H_DEFINES_STRUCT_TIMESPEC
637 NEXT_AS_FIRST_DIRECTIVE_TIME_H
638 NEXT_TIME_H
639 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
640 NEXT_SYS_STAT_H
641 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
642 NEXT_STDLIB_H
643 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
644 NEXT_STDIO_H
645 REPLACE_VSPRINTF
646 REPLACE_VSNPRINTF
647 REPLACE_VPRINTF
648 REPLACE_VFPRINTF
649 REPLACE_VDPRINTF
650 REPLACE_VASPRINTF
651 REPLACE_TMPFILE
652 REPLACE_STDIO_WRITE_FUNCS
653 REPLACE_STDIO_READ_FUNCS
654 REPLACE_SPRINTF
655 REPLACE_SNPRINTF
656 REPLACE_RENAMEAT
657 REPLACE_RENAME
658 REPLACE_REMOVE
659 REPLACE_PRINTF
660 REPLACE_POPEN
661 REPLACE_PERROR
662 REPLACE_OBSTACK_PRINTF
663 REPLACE_GETLINE
664 REPLACE_GETDELIM
665 REPLACE_FTELLO
666 REPLACE_FTELL
667 REPLACE_FSEEKO
668 REPLACE_FSEEK
669 REPLACE_FREOPEN
670 REPLACE_FPURGE
671 REPLACE_FPRINTF
672 REPLACE_FOPEN
673 REPLACE_FFLUSH
674 REPLACE_FDOPEN
675 REPLACE_FCLOSE
676 REPLACE_DPRINTF
677 HAVE_VDPRINTF
678 HAVE_VASPRINTF
679 HAVE_RENAMEAT
680 HAVE_POPEN
681 HAVE_PCLOSE
682 HAVE_FTELLO
683 HAVE_FSEEKO
684 HAVE_DPRINTF
685 HAVE_DECL_VSNPRINTF
686 HAVE_DECL_SNPRINTF
687 HAVE_DECL_OBSTACK_PRINTF
688 HAVE_DECL_GETLINE
689 HAVE_DECL_GETDELIM
690 HAVE_DECL_FTELLO
691 HAVE_DECL_FSEEKO
692 HAVE_DECL_FPURGE
693 GNULIB_VSPRINTF_POSIX
694 GNULIB_VSNPRINTF
695 GNULIB_VPRINTF_POSIX
696 GNULIB_VPRINTF
697 GNULIB_VFPRINTF_POSIX
698 GNULIB_VFPRINTF
699 GNULIB_VDPRINTF
700 GNULIB_VSCANF
701 GNULIB_VFSCANF
702 GNULIB_VASPRINTF
703 GNULIB_TMPFILE
704 GNULIB_STDIO_H_SIGPIPE
705 GNULIB_STDIO_H_NONBLOCKING
706 GNULIB_SPRINTF_POSIX
707 GNULIB_SNPRINTF
708 GNULIB_SCANF
709 GNULIB_RENAMEAT
710 GNULIB_RENAME
711 GNULIB_REMOVE
712 GNULIB_PUTS
713 GNULIB_PUTCHAR
714 GNULIB_PUTC
715 GNULIB_PRINTF_POSIX
716 GNULIB_PRINTF
717 GNULIB_POPEN
718 GNULIB_PERROR
719 GNULIB_PCLOSE
720 GNULIB_OBSTACK_PRINTF_POSIX
721 GNULIB_OBSTACK_PRINTF
722 GNULIB_GETLINE
723 GNULIB_GETDELIM
724 GNULIB_GETCHAR
725 GNULIB_GETC
726 GNULIB_FWRITE
727 GNULIB_FTELLO
728 GNULIB_FTELL
729 GNULIB_FSEEKO
730 GNULIB_FSEEK
731 GNULIB_FSCANF
732 GNULIB_FREOPEN
733 GNULIB_FREAD
734 GNULIB_FPUTS
735 GNULIB_FPUTC
736 GNULIB_FPURGE
737 GNULIB_FPRINTF_POSIX
738 GNULIB_FPRINTF
739 GNULIB_FOPEN
740 GNULIB_FGETS
741 GNULIB_FGETC
742 GNULIB_FFLUSH
743 GNULIB_FDOPEN
744 GNULIB_FCLOSE
745 GNULIB_DPRINTF
746 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
747 NEXT_STDDEF_H
748 GL_GENERATE_STDDEF_H_FALSE
749 GL_GENERATE_STDDEF_H_TRUE
750 STDDEF_H
751 HAVE_WCHAR_T
752 REPLACE_NULL
753 HAVE__BOOL
754 GL_GENERATE_STDBOOL_H_FALSE
755 GL_GENERATE_STDBOOL_H_TRUE
756 STDBOOL_H
757 GL_GENERATE_STDARG_H_FALSE
758 GL_GENERATE_STDARG_H_TRUE
759 STDARG_H
760 NEXT_AS_FIRST_DIRECTIVE_STDARG_H
761 NEXT_STDARG_H
762 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
763 NEXT_SIGNAL_H
764 REPLACE_RAISE
765 REPLACE_PTHREAD_SIGMASK
766 HAVE_SIGHANDLER_T
767 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
768 HAVE_STRUCT_SIGACTION_SA_SIGACTION
769 HAVE_SIGACTION
770 HAVE_SIGINFO_T
771 HAVE_SIGSET_T
772 HAVE_RAISE
773 HAVE_PTHREAD_SIGMASK
774 HAVE_POSIX_SIGNALBLOCKING
775 GNULIB_SIGACTION
776 GNULIB_SIGPROCMASK
777 GNULIB_SIGNAL_H_SIGPIPE
778 GNULIB_RAISE
779 GNULIB_PTHREAD_SIGMASK
780 LIB_PTHREAD_SIGMASK
781 REPLACE_TIMEGM
782 REPLACE_NANOSLEEP
783 REPLACE_MKTIME
784 REPLACE_LOCALTIME_R
785 HAVE_TIMEGM
786 HAVE_STRPTIME
787 HAVE_NANOSLEEP
788 HAVE_DECL_LOCALTIME_R
789 GNULIB_TIME_R
790 GNULIB_TIMEGM
791 GNULIB_STRPTIME
792 GNULIB_NANOSLEEP
793 GNULIB_MKTIME
794 REPLACE_UTIMENSAT
795 REPLACE_STAT
796 REPLACE_MKNOD
797 REPLACE_MKFIFO
798 REPLACE_MKDIR
799 REPLACE_LSTAT
800 REPLACE_FUTIMENS
801 REPLACE_FSTATAT
802 REPLACE_FSTAT
803 HAVE_UTIMENSAT
804 HAVE_MKNODAT
805 HAVE_MKNOD
806 HAVE_MKFIFOAT
807 HAVE_MKFIFO
808 HAVE_MKDIRAT
809 HAVE_LSTAT
810 HAVE_LCHMOD
811 HAVE_FUTIMENS
812 HAVE_FSTATAT
813 HAVE_FCHMODAT
814 GNULIB_UTIMENSAT
815 GNULIB_STAT
816 GNULIB_MKNODAT
817 GNULIB_MKNOD
818 GNULIB_MKFIFOAT
819 GNULIB_MKFIFO
820 GNULIB_MKDIRAT
821 GNULIB_LSTAT
822 GNULIB_LCHMOD
823 GNULIB_FUTIMENS
824 GNULIB_FSTATAT
825 GNULIB_FSTAT
826 GNULIB_FCHMODAT
827 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
828 NEXT_INTTYPES_H
829 UINT64_MAX_EQ_ULONG_MAX
830 UINT32_MAX_LT_UINTMAX_MAX
831 PRIPTR_PREFIX
832 PRI_MACROS_BROKEN
833 INT64_MAX_EQ_LONG_MAX
834 INT32_MAX_LT_INTMAX_MAX
835 HAVE_DECL_STRTOUMAX
836 HAVE_DECL_STRTOIMAX
837 HAVE_DECL_IMAXDIV
838 HAVE_DECL_IMAXABS
839 GNULIB_STRTOUMAX
840 GNULIB_STRTOIMAX
841 GNULIB_IMAXDIV
842 GNULIB_IMAXABS
843 GL_GENERATE_STDINT_H_FALSE
844 GL_GENERATE_STDINT_H_TRUE
845 STDINT_H
846 WINT_T_SUFFIX
847 WCHAR_T_SUFFIX
848 SIG_ATOMIC_T_SUFFIX
849 SIZE_T_SUFFIX
850 PTRDIFF_T_SUFFIX
851 HAVE_SIGNED_WINT_T
852 HAVE_SIGNED_WCHAR_T
853 HAVE_SIGNED_SIG_ATOMIC_T
854 BITSIZEOF_WINT_T
855 BITSIZEOF_WCHAR_T
856 BITSIZEOF_SIG_ATOMIC_T
857 BITSIZEOF_SIZE_T
858 BITSIZEOF_PTRDIFF_T
859 APPLE_UNIVERSAL_BUILD
860 HAVE_SYS_BITYPES_H
861 HAVE_SYS_INTTYPES_H
862 HAVE_STDINT_H
863 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
864 NEXT_STDINT_H
865 HAVE_SYS_TYPES_H
866 HAVE_INTTYPES_H
867 HAVE_WCHAR_H
868 HAVE_UNSIGNED_LONG_LONG_INT
869 HAVE_LONG_LONG_INT
870 GETOPT_H
871 HAVE_GETOPT_H
872 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
873 NEXT_GETOPT_H
874 PRAGMA_COLUMNS
875 PRAGMA_SYSTEM_HEADER
876 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
877 INCLUDE_NEXT
878 GETLOADAVG_LIBS
879 REPLACE_WCTOMB
880 REPLACE_UNSETENV
881 REPLACE_STRTOD
882 REPLACE_SETENV
883 REPLACE_REALPATH
884 REPLACE_REALLOC
885 REPLACE_PUTENV
886 REPLACE_MKSTEMP
887 REPLACE_MBTOWC
888 REPLACE_MALLOC
889 REPLACE_CANONICALIZE_FILE_NAME
890 REPLACE_CALLOC
891 HAVE_DECL_UNSETENV
892 HAVE_UNLOCKPT
893 HAVE_SYS_LOADAVG_H
894 HAVE_STRUCT_RANDOM_DATA
895 HAVE_STRTOULL
896 HAVE_STRTOLL
897 HAVE_STRTOD
898 HAVE_DECL_SETENV
899 HAVE_SETENV
900 HAVE_RPMATCH
901 HAVE_REALPATH
902 HAVE_RANDOM_R
903 HAVE_RANDOM_H
904 HAVE_PTSNAME
905 HAVE_MKSTEMPS
906 HAVE_MKSTEMP
907 HAVE_MKOSTEMPS
908 HAVE_MKOSTEMP
909 HAVE_MKDTEMP
910 HAVE_GRANTPT
911 HAVE_GETSUBOPT
912 HAVE_DECL_GETLOADAVG
913 HAVE_CANONICALIZE_FILE_NAME
914 HAVE_ATOLL
915 HAVE__EXIT
916 GNULIB_WCTOMB
917 GNULIB_UNSETENV
918 GNULIB_UNLOCKPT
919 GNULIB_SYSTEM_POSIX
920 GNULIB_STRTOULL
921 GNULIB_STRTOLL
922 GNULIB_STRTOD
923 GNULIB_SETENV
924 GNULIB_RPMATCH
925 GNULIB_REALPATH
926 GNULIB_REALLOC_POSIX
927 GNULIB_RANDOM_R
928 GNULIB_PUTENV
929 GNULIB_PTSNAME
930 GNULIB_MKSTEMPS
931 GNULIB_MKSTEMP
932 GNULIB_MKOSTEMPS
933 GNULIB_MKOSTEMP
934 GNULIB_MKDTEMP
935 GNULIB_MBTOWC
936 GNULIB_MALLOC_POSIX
937 GNULIB_GRANTPT
938 GNULIB_GETSUBOPT
939 GNULIB_GETLOADAVG
940 GNULIB_CANONICALIZE_FILE_NAME
941 GNULIB_CALLOC_POSIX
942 GNULIB_ATOLL
943 GNULIB__EXIT
944 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
945 UNISTD_H_HAVE_WINSOCK2_H
946 REPLACE_WRITE
947 REPLACE_USLEEP
948 REPLACE_UNLINKAT
949 REPLACE_UNLINK
950 REPLACE_TTYNAME_R
951 REPLACE_SYMLINK
952 REPLACE_SLEEP
953 REPLACE_RMDIR
954 REPLACE_READLINK
955 REPLACE_READ
956 REPLACE_PWRITE
957 REPLACE_PREAD
958 REPLACE_LSEEK
959 REPLACE_LINKAT
960 REPLACE_LINK
961 REPLACE_LCHOWN
962 REPLACE_GETPAGESIZE
963 REPLACE_GETGROUPS
964 REPLACE_GETLOGIN_R
965 REPLACE_GETDOMAINNAME
966 REPLACE_GETCWD
967 REPLACE_FCHOWNAT
968 REPLACE_DUP2
969 REPLACE_DUP
970 REPLACE_CLOSE
971 REPLACE_CHOWN
972 HAVE_SYS_PARAM_H
973 HAVE_OS_H
974 HAVE_DECL_TTYNAME_R
975 HAVE_DECL_GETUSERSHELL
976 HAVE_DECL_GETPAGESIZE
977 HAVE_DECL_GETLOGIN_R
978 HAVE_DECL_GETDOMAINNAME
979 HAVE_DECL_FDATASYNC
980 HAVE_DECL_FCHDIR
981 HAVE_DECL_ENVIRON
982 HAVE_USLEEP
983 HAVE_UNLINKAT
984 HAVE_SYMLINKAT
985 HAVE_SYMLINK
986 HAVE_SLEEP
987 HAVE_READLINKAT
988 HAVE_READLINK
989 HAVE_PWRITE
990 HAVE_PREAD
991 HAVE_PIPE2
992 HAVE_PIPE
993 HAVE_LINKAT
994 HAVE_LINK
995 HAVE_LCHOWN
996 HAVE_GROUP_MEMBER
997 HAVE_GETPAGESIZE
998 HAVE_GETLOGIN
999 HAVE_GETHOSTNAME
1000 HAVE_GETGROUPS
1001 HAVE_GETDTABLESIZE
1002 HAVE_FTRUNCATE
1003 HAVE_FSYNC
1004 HAVE_FDATASYNC
1005 HAVE_FCHOWNAT
1006 HAVE_FCHDIR
1007 HAVE_FACCESSAT
1008 HAVE_EUIDACCESS
1009 HAVE_DUP3
1010 HAVE_DUP2
1011 HAVE_CHOWN
1012 GNULIB_WRITE
1013 GNULIB_USLEEP
1014 GNULIB_UNLINKAT
1015 GNULIB_UNLINK
1016 GNULIB_UNISTD_H_SIGPIPE
1017 GNULIB_UNISTD_H_NONBLOCKING
1018 GNULIB_UNISTD_H_GETOPT
1019 GNULIB_TTYNAME_R
1020 GNULIB_SYMLINKAT
1021 GNULIB_SYMLINK
1022 GNULIB_SLEEP
1023 GNULIB_RMDIR
1024 GNULIB_READLINKAT
1025 GNULIB_READLINK
1026 GNULIB_READ
1027 GNULIB_PWRITE
1028 GNULIB_PREAD
1029 GNULIB_PIPE2
1030 GNULIB_PIPE
1031 GNULIB_LSEEK
1032 GNULIB_LINKAT
1033 GNULIB_LINK
1034 GNULIB_LCHOWN
1035 GNULIB_GROUP_MEMBER
1036 GNULIB_GETUSERSHELL
1037 GNULIB_GETPAGESIZE
1038 GNULIB_GETLOGIN_R
1039 GNULIB_GETLOGIN
1040 GNULIB_GETHOSTNAME
1041 GNULIB_GETGROUPS
1042 GNULIB_GETDTABLESIZE
1043 GNULIB_GETDOMAINNAME
1044 GNULIB_GETCWD
1045 GNULIB_FTRUNCATE
1046 GNULIB_FSYNC
1047 GNULIB_FDATASYNC
1048 GNULIB_FCHOWNAT
1049 GNULIB_FCHDIR
1050 GNULIB_FACCESSAT
1051 GNULIB_EUIDACCESS
1052 GNULIB_ENVIRON
1053 GNULIB_DUP3
1054 GNULIB_DUP2
1055 GNULIB_DUP
1056 GNULIB_CLOSE
1057 GNULIB_CHOWN
1058 GNULIB_CHDIR
1059 GL_GENERATE_ALLOCA_H_FALSE
1060 GL_GENERATE_ALLOCA_H_TRUE
1061 ALLOCA_H
1062 ALLOCA
1063 GL_COND_LIBTOOL_FALSE
1064 GL_COND_LIBTOOL_TRUE
1065 POST_ALLOC_OBJ
1066 PRE_ALLOC_OBJ
1067 CYGWIN_OBJ
1068 RALLOC_OBJ
1069 OLDXMENU_DEPS
1070 LIBX_OTHER
1071 LIBXMENU
1072 OLDXMENU
1073 OLDXMENU_TARGET
1074 LIBXT_OTHER
1075 TOOLKIT_LIBW
1076 WIDGET_OBJ
1077 XOBJ
1078 XMENU_OBJ
1079 FONT_OBJ
1080 OTHER_FILES
1081 GNU_OBJC_CFLAGS
1082 ns_appsrc
1083 ns_appresdir
1084 ns_appbindir
1085 ns_appdir
1086 S_FILE
1087 M_FILE
1088 X_TOOLKIT_TYPE
1089 C_SWITCH_X_SYSTEM
1090 C_SWITCH_X_SITE
1091 LD_SWITCH_X_SITE
1092 gameuser
1093 gamedir
1094 bitmapdir
1095 archlibdir
1096 etcdir
1097 x_default_search_path
1098 lisppath
1099 locallisppath
1100 lispdir
1101 srcdir
1102 canonical
1103 configuration
1104 version
1105 KRB4LIB
1106 DESLIB
1107 KRB5LIB
1108 CRYPTOLIB
1109 COM_ERRLIB
1110 LIBRESOLV
1111 LIBHESIOD
1112 TERMCAP_OBJ
1113 LIBS_TERMCAP
1114 BLESSMAIL_TARGET
1115 LIBS_MAIL
1116 liblockfile
1117 LIBXML2_LIBS
1118 LIBXML2_CFLAGS
1119 LIBXSM
1120 LIBGPM
1121 LIBGIF
1122 LIBTIFF
1123 LIBPNG
1124 LIBJPEG
1125 LIBXPM
1126 M17N_FLT_LIBS
1127 M17N_FLT_CFLAGS
1128 LIBOTF_LIBS
1129 LIBOTF_CFLAGS
1130 FREETYPE_LIBS
1131 FREETYPE_CFLAGS
1132 XFT_LIBS
1133 XFT_CFLAGS
1134 FONTCONFIG_LIBS
1135 FONTCONFIG_CFLAGS
1136 LIBXMU
1137 LIBXTR6
1138 LIBGNUTLS_LIBS
1139 LIBGNUTLS_CFLAGS
1140 LIBSELINUX_LIBS
1141 SETTINGS_LIBS
1142 SETTINGS_CFLAGS
1143 GCONF_LIBS
1144 GCONF_CFLAGS
1145 GSETTINGS_LIBS
1146 GSETTINGS_CFLAGS
1147 DBUS_OBJ
1148 DBUS_LIBS
1149 DBUS_CFLAGS
1150 GTK_OBJ
1151 GTK_LIBS
1152 GTK_CFLAGS
1153 IMAGEMAGICK_LIBS
1154 IMAGEMAGICK_CFLAGS
1155 RSVG_LIBS
1156 RSVG_CFLAGS
1157 LIB_PTHREAD
1158 VMLIMIT_OBJ
1159 GMALLOC_OBJ
1160 HAVE_XSERVER
1161 LIB_STANDARD
1162 NS_OBJC_OBJ
1163 NS_OBJ
1164 TEMACS_LDFLAGS2
1165 LD_SWITCH_X_SITE_AUX_RPATH
1166 LD_SWITCH_X_SITE_AUX
1167 XMKMF
1168 DEPFLAGS
1169 MKDEPDIR
1170 CFLAGS_SOUND
1171 ALSA_LIBS
1172 ALSA_CFLAGS
1173 PKG_CONFIG
1174 LIBSOUND
1175 CRT_DIR
1176 START_FILES
1177 LIB_MATH
1178 LIBS_SYSTEM
1179 C_SWITCH_SYSTEM
1180 UNEXEC_OBJ
1181 C_SWITCH_MACHINE
1182 LD_SWITCH_SYSTEM
1183 CANNOT_DUMP
1184 HAVE_MAKEINFO
1185 GZIP_PROG
1186 INSTALL_INFO
1187 C_WARNINGS_SWITCH
1188 RANLIB
1189 ARFLAGS
1191 EGREP
1192 GREP
1194 am__fastdepCC_FALSE
1195 am__fastdepCC_TRUE
1196 CCDEPMODE
1197 AMDEPBACKSLASH
1198 AMDEP_FALSE
1199 AMDEP_TRUE
1200 am__quote
1201 am__include
1202 DEPDIR
1203 OBJEXT
1204 EXEEXT
1205 ac_ct_CC
1206 CPPFLAGS
1207 LDFLAGS
1208 CFLAGS
1210 host_os
1211 host_vendor
1212 host_cpu
1213 host
1214 build_os
1215 build_vendor
1216 build_cpu
1217 build
1218 PROFILING_CFLAGS
1219 MAINT
1220 GZIP_INFO
1221 cache_file
1222 am__untar
1223 am__tar
1224 AMTAR
1225 am__leading_dot
1226 SET_MAKE
1228 mkdir_p
1229 MKDIR_P
1230 INSTALL_STRIP_PROGRAM
1231 STRIP
1232 install_sh
1233 MAKEINFO
1234 AUTOHEADER
1235 AUTOMAKE
1236 AUTOCONF
1237 ACLOCAL
1238 VERSION
1239 PACKAGE
1240 CYGPATH_W
1241 am__isrc
1242 INSTALL_DATA
1243 INSTALL_SCRIPT
1244 INSTALL_PROGRAM
1245 target_alias
1246 host_alias
1247 build_alias
1248 LIBS
1249 ECHO_T
1250 ECHO_N
1251 ECHO_C
1252 DEFS
1253 mandir
1254 localedir
1255 libdir
1256 psdir
1257 pdfdir
1258 dvidir
1259 htmldir
1260 infodir
1261 docdir
1262 oldincludedir
1263 includedir
1264 localstatedir
1265 sharedstatedir
1266 sysconfdir
1267 datadir
1268 datarootdir
1269 libexecdir
1270 sbindir
1271 bindir
1272 program_transform_name
1273 prefix
1274 exec_prefix
1275 PACKAGE_URL
1276 PACKAGE_BUGREPORT
1277 PACKAGE_STRING
1278 PACKAGE_VERSION
1279 PACKAGE_TARNAME
1280 PACKAGE_NAME
1281 PATH_SEPARATOR
1282 SHELL'
1283 ac_subst_files='deps_frag
1284 lisp_frag
1285 ns_frag'
1286 ac_user_opts='
1287 enable_option_checking
1288 with_pop
1289 with_kerberos
1290 with_kerberos5
1291 with_hesiod
1292 with_mmdf
1293 with_mail_unlink
1294 with_mailhost
1295 with_sound
1296 with_sync_input
1297 with_x_toolkit
1298 with_wide_int
1299 with_xpm
1300 with_jpeg
1301 with_tiff
1302 with_gif
1303 with_png
1304 with_rsvg
1305 with_xml2
1306 with_imagemagick
1307 with_xft
1308 with_libotf
1309 with_m17n_flt
1310 with_toolkit_scroll_bars
1311 with_xaw3d
1312 with_xim
1313 with_ns
1314 with_gpm
1315 with_dbus
1316 with_gconf
1317 with_gsettings
1318 with_selinux
1319 with_gnutls
1320 with_makeinfo
1321 with_compress_info
1322 with_pkg_config_prog
1323 with_crt_dir
1324 with_gameuser
1325 with_gnustep_conf
1326 enable_ns_self_contained
1327 enable_asserts
1328 enable_maintainer_mode
1329 enable_locallisppath
1330 enable_checking
1331 enable_use_lisp_union_type
1332 enable_profiling
1333 enable_autodepend
1334 enable_dependency_tracking
1335 enable_largefile
1336 with_x
1338 ac_precious_vars='build_alias
1339 host_alias
1340 target_alias
1342 CFLAGS
1343 LDFLAGS
1344 LIBS
1345 CPPFLAGS
1347 XMKMF'
1350 # Initialize some variables set by options.
1351 ac_init_help=
1352 ac_init_version=false
1353 ac_unrecognized_opts=
1354 ac_unrecognized_sep=
1355 # The variables have the same names as the options, with
1356 # dashes changed to underlines.
1357 cache_file=/dev/null
1358 exec_prefix=NONE
1359 no_create=
1360 no_recursion=
1361 prefix=NONE
1362 program_prefix=NONE
1363 program_suffix=NONE
1364 program_transform_name=s,x,x,
1365 silent=
1366 site=
1367 srcdir=
1368 verbose=
1369 x_includes=NONE
1370 x_libraries=NONE
1372 # Installation directory options.
1373 # These are left unexpanded so users can "make install exec_prefix=/foo"
1374 # and all the variables that are supposed to be based on exec_prefix
1375 # by default will actually change.
1376 # Use braces instead of parens because sh, perl, etc. also accept them.
1377 # (The list follows the same order as the GNU Coding Standards.)
1378 bindir='${exec_prefix}/bin'
1379 sbindir='${exec_prefix}/sbin'
1380 libexecdir='${exec_prefix}/libexec'
1381 datarootdir='${prefix}/share'
1382 datadir='${datarootdir}'
1383 sysconfdir='${prefix}/etc'
1384 sharedstatedir='${prefix}/com'
1385 localstatedir='${prefix}/var'
1386 includedir='${prefix}/include'
1387 oldincludedir='/usr/include'
1388 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1389 infodir='${datarootdir}/info'
1390 htmldir='${docdir}'
1391 dvidir='${docdir}'
1392 pdfdir='${docdir}'
1393 psdir='${docdir}'
1394 libdir='${exec_prefix}/lib'
1395 localedir='${datarootdir}/locale'
1396 mandir='${datarootdir}/man'
1398 ac_prev=
1399 ac_dashdash=
1400 for ac_option
1402 # If the previous option needs an argument, assign it.
1403 if test -n "$ac_prev"; then
1404 eval $ac_prev=\$ac_option
1405 ac_prev=
1406 continue
1409 case $ac_option in
1410 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1411 *) ac_optarg=yes ;;
1412 esac
1414 # Accept the important Cygnus configure options, so we can diagnose typos.
1416 case $ac_dashdash$ac_option in
1418 ac_dashdash=yes ;;
1420 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1421 ac_prev=bindir ;;
1422 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1423 bindir=$ac_optarg ;;
1425 -build | --build | --buil | --bui | --bu)
1426 ac_prev=build_alias ;;
1427 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1428 build_alias=$ac_optarg ;;
1430 -cache-file | --cache-file | --cache-fil | --cache-fi \
1431 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1432 ac_prev=cache_file ;;
1433 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1434 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1435 cache_file=$ac_optarg ;;
1437 --config-cache | -C)
1438 cache_file=config.cache ;;
1440 -datadir | --datadir | --datadi | --datad)
1441 ac_prev=datadir ;;
1442 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1443 datadir=$ac_optarg ;;
1445 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1446 | --dataroo | --dataro | --datar)
1447 ac_prev=datarootdir ;;
1448 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1449 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1450 datarootdir=$ac_optarg ;;
1452 -disable-* | --disable-*)
1453 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1454 # Reject names that are not valid shell variable names.
1455 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1456 as_fn_error "invalid feature name: $ac_useropt"
1457 ac_useropt_orig=$ac_useropt
1458 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1459 case $ac_user_opts in
1461 "enable_$ac_useropt"
1462 "*) ;;
1463 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1464 ac_unrecognized_sep=', ';;
1465 esac
1466 eval enable_$ac_useropt=no ;;
1468 -docdir | --docdir | --docdi | --doc | --do)
1469 ac_prev=docdir ;;
1470 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1471 docdir=$ac_optarg ;;
1473 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1474 ac_prev=dvidir ;;
1475 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1476 dvidir=$ac_optarg ;;
1478 -enable-* | --enable-*)
1479 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1480 # Reject names that are not valid shell variable names.
1481 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1482 as_fn_error "invalid feature name: $ac_useropt"
1483 ac_useropt_orig=$ac_useropt
1484 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1485 case $ac_user_opts in
1487 "enable_$ac_useropt"
1488 "*) ;;
1489 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1490 ac_unrecognized_sep=', ';;
1491 esac
1492 eval enable_$ac_useropt=\$ac_optarg ;;
1494 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1495 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1496 | --exec | --exe | --ex)
1497 ac_prev=exec_prefix ;;
1498 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1499 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1500 | --exec=* | --exe=* | --ex=*)
1501 exec_prefix=$ac_optarg ;;
1503 -gas | --gas | --ga | --g)
1504 # Obsolete; use --with-gas.
1505 with_gas=yes ;;
1507 -help | --help | --hel | --he | -h)
1508 ac_init_help=long ;;
1509 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1510 ac_init_help=recursive ;;
1511 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1512 ac_init_help=short ;;
1514 -host | --host | --hos | --ho)
1515 ac_prev=host_alias ;;
1516 -host=* | --host=* | --hos=* | --ho=*)
1517 host_alias=$ac_optarg ;;
1519 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1520 ac_prev=htmldir ;;
1521 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1522 | --ht=*)
1523 htmldir=$ac_optarg ;;
1525 -includedir | --includedir | --includedi | --included | --include \
1526 | --includ | --inclu | --incl | --inc)
1527 ac_prev=includedir ;;
1528 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1529 | --includ=* | --inclu=* | --incl=* | --inc=*)
1530 includedir=$ac_optarg ;;
1532 -infodir | --infodir | --infodi | --infod | --info | --inf)
1533 ac_prev=infodir ;;
1534 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1535 infodir=$ac_optarg ;;
1537 -libdir | --libdir | --libdi | --libd)
1538 ac_prev=libdir ;;
1539 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1540 libdir=$ac_optarg ;;
1542 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1543 | --libexe | --libex | --libe)
1544 ac_prev=libexecdir ;;
1545 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1546 | --libexe=* | --libex=* | --libe=*)
1547 libexecdir=$ac_optarg ;;
1549 -localedir | --localedir | --localedi | --localed | --locale)
1550 ac_prev=localedir ;;
1551 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1552 localedir=$ac_optarg ;;
1554 -localstatedir | --localstatedir | --localstatedi | --localstated \
1555 | --localstate | --localstat | --localsta | --localst | --locals)
1556 ac_prev=localstatedir ;;
1557 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1558 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1559 localstatedir=$ac_optarg ;;
1561 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1562 ac_prev=mandir ;;
1563 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1564 mandir=$ac_optarg ;;
1566 -nfp | --nfp | --nf)
1567 # Obsolete; use --without-fp.
1568 with_fp=no ;;
1570 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1571 | --no-cr | --no-c | -n)
1572 no_create=yes ;;
1574 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1575 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1576 no_recursion=yes ;;
1578 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1579 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1580 | --oldin | --oldi | --old | --ol | --o)
1581 ac_prev=oldincludedir ;;
1582 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1583 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1584 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1585 oldincludedir=$ac_optarg ;;
1587 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1588 ac_prev=prefix ;;
1589 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1590 prefix=$ac_optarg ;;
1592 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1593 | --program-pre | --program-pr | --program-p)
1594 ac_prev=program_prefix ;;
1595 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1596 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1597 program_prefix=$ac_optarg ;;
1599 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1600 | --program-suf | --program-su | --program-s)
1601 ac_prev=program_suffix ;;
1602 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1603 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1604 program_suffix=$ac_optarg ;;
1606 -program-transform-name | --program-transform-name \
1607 | --program-transform-nam | --program-transform-na \
1608 | --program-transform-n | --program-transform- \
1609 | --program-transform | --program-transfor \
1610 | --program-transfo | --program-transf \
1611 | --program-trans | --program-tran \
1612 | --progr-tra | --program-tr | --program-t)
1613 ac_prev=program_transform_name ;;
1614 -program-transform-name=* | --program-transform-name=* \
1615 | --program-transform-nam=* | --program-transform-na=* \
1616 | --program-transform-n=* | --program-transform-=* \
1617 | --program-transform=* | --program-transfor=* \
1618 | --program-transfo=* | --program-transf=* \
1619 | --program-trans=* | --program-tran=* \
1620 | --progr-tra=* | --program-tr=* | --program-t=*)
1621 program_transform_name=$ac_optarg ;;
1623 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1624 ac_prev=pdfdir ;;
1625 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1626 pdfdir=$ac_optarg ;;
1628 -psdir | --psdir | --psdi | --psd | --ps)
1629 ac_prev=psdir ;;
1630 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1631 psdir=$ac_optarg ;;
1633 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1634 | -silent | --silent | --silen | --sile | --sil)
1635 silent=yes ;;
1637 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1638 ac_prev=sbindir ;;
1639 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1640 | --sbi=* | --sb=*)
1641 sbindir=$ac_optarg ;;
1643 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1644 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1645 | --sharedst | --shareds | --shared | --share | --shar \
1646 | --sha | --sh)
1647 ac_prev=sharedstatedir ;;
1648 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1649 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1650 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1651 | --sha=* | --sh=*)
1652 sharedstatedir=$ac_optarg ;;
1654 -site | --site | --sit)
1655 ac_prev=site ;;
1656 -site=* | --site=* | --sit=*)
1657 site=$ac_optarg ;;
1659 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1660 ac_prev=srcdir ;;
1661 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1662 srcdir=$ac_optarg ;;
1664 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1665 | --syscon | --sysco | --sysc | --sys | --sy)
1666 ac_prev=sysconfdir ;;
1667 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1668 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1669 sysconfdir=$ac_optarg ;;
1671 -target | --target | --targe | --targ | --tar | --ta | --t)
1672 ac_prev=target_alias ;;
1673 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1674 target_alias=$ac_optarg ;;
1676 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1677 verbose=yes ;;
1679 -version | --version | --versio | --versi | --vers | -V)
1680 ac_init_version=: ;;
1682 -with-* | --with-*)
1683 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1684 # Reject names that are not valid shell variable names.
1685 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1686 as_fn_error "invalid package name: $ac_useropt"
1687 ac_useropt_orig=$ac_useropt
1688 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1689 case $ac_user_opts in
1691 "with_$ac_useropt"
1692 "*) ;;
1693 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1694 ac_unrecognized_sep=', ';;
1695 esac
1696 eval with_$ac_useropt=\$ac_optarg ;;
1698 -without-* | --without-*)
1699 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1700 # Reject names that are not valid shell variable names.
1701 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1702 as_fn_error "invalid package name: $ac_useropt"
1703 ac_useropt_orig=$ac_useropt
1704 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1705 case $ac_user_opts in
1707 "with_$ac_useropt"
1708 "*) ;;
1709 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1710 ac_unrecognized_sep=', ';;
1711 esac
1712 eval with_$ac_useropt=no ;;
1714 --x)
1715 # Obsolete; use --with-x.
1716 with_x=yes ;;
1718 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1719 | --x-incl | --x-inc | --x-in | --x-i)
1720 ac_prev=x_includes ;;
1721 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1722 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1723 x_includes=$ac_optarg ;;
1725 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1726 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1727 ac_prev=x_libraries ;;
1728 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1729 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1730 x_libraries=$ac_optarg ;;
1732 -*) as_fn_error "unrecognized option: \`$ac_option'
1733 Try \`$0 --help' for more information."
1736 *=*)
1737 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1738 # Reject names that are not valid shell variable names.
1739 case $ac_envvar in #(
1740 '' | [0-9]* | *[!_$as_cr_alnum]* )
1741 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1742 esac
1743 eval $ac_envvar=\$ac_optarg
1744 export $ac_envvar ;;
1747 # FIXME: should be removed in autoconf 3.0.
1748 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1749 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1750 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1751 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1754 esac
1755 done
1757 if test -n "$ac_prev"; then
1758 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1759 as_fn_error "missing argument to $ac_option"
1762 if test -n "$ac_unrecognized_opts"; then
1763 case $enable_option_checking in
1764 no) ;;
1765 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1766 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1767 esac
1770 # Check all directory arguments for consistency.
1771 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1772 datadir sysconfdir sharedstatedir localstatedir includedir \
1773 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1774 libdir localedir mandir
1776 eval ac_val=\$$ac_var
1777 # Remove trailing slashes.
1778 case $ac_val in
1779 */ )
1780 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1781 eval $ac_var=\$ac_val;;
1782 esac
1783 # Be sure to have absolute directory names.
1784 case $ac_val in
1785 [\\/$]* | ?:[\\/]* ) continue;;
1786 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1787 esac
1788 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1789 done
1791 # There might be people who depend on the old broken behavior: `$host'
1792 # used to hold the argument of --host etc.
1793 # FIXME: To remove some day.
1794 build=$build_alias
1795 host=$host_alias
1796 target=$target_alias
1798 # FIXME: To remove some day.
1799 if test "x$host_alias" != x; then
1800 if test "x$build_alias" = x; then
1801 cross_compiling=maybe
1802 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1803 If a cross compiler is detected then cross compile mode will be used." >&2
1804 elif test "x$build_alias" != "x$host_alias"; then
1805 cross_compiling=yes
1809 ac_tool_prefix=
1810 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1812 test "$silent" = yes && exec 6>/dev/null
1815 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1816 ac_ls_di=`ls -di .` &&
1817 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1818 as_fn_error "working directory cannot be determined"
1819 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1820 as_fn_error "pwd does not report name of working directory"
1823 # Find the source files, if location was not specified.
1824 if test -z "$srcdir"; then
1825 ac_srcdir_defaulted=yes
1826 # Try the directory containing this script, then the parent directory.
1827 ac_confdir=`$as_dirname -- "$as_myself" ||
1828 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1829 X"$as_myself" : 'X\(//\)[^/]' \| \
1830 X"$as_myself" : 'X\(//\)$' \| \
1831 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1832 $as_echo X"$as_myself" |
1833 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1834 s//\1/
1837 /^X\(\/\/\)[^/].*/{
1838 s//\1/
1841 /^X\(\/\/\)$/{
1842 s//\1/
1845 /^X\(\/\).*/{
1846 s//\1/
1849 s/.*/./; q'`
1850 srcdir=$ac_confdir
1851 if test ! -r "$srcdir/$ac_unique_file"; then
1852 srcdir=..
1854 else
1855 ac_srcdir_defaulted=no
1857 if test ! -r "$srcdir/$ac_unique_file"; then
1858 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1859 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1861 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1862 ac_abs_confdir=`(
1863 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1864 pwd)`
1865 # When building in place, set srcdir=.
1866 if test "$ac_abs_confdir" = "$ac_pwd"; then
1867 srcdir=.
1869 # Remove unnecessary trailing slashes from srcdir.
1870 # Double slashes in file names in object file debugging info
1871 # mess up M-x gdb in Emacs.
1872 case $srcdir in
1873 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1874 esac
1875 for ac_var in $ac_precious_vars; do
1876 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1877 eval ac_env_${ac_var}_value=\$${ac_var}
1878 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1879 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1880 done
1883 # Report the --help message.
1885 if test "$ac_init_help" = "long"; then
1886 # Omit some internal or obsolete options to make the list less imposing.
1887 # This message is too long to be a string in the A/UX 3.1 sh.
1888 cat <<_ACEOF
1889 \`configure' configures emacs 24.2 to adapt to many kinds of systems.
1891 Usage: $0 [OPTION]... [VAR=VALUE]...
1893 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1894 VAR=VALUE. See below for descriptions of some of the useful variables.
1896 Defaults for the options are specified in brackets.
1898 Configuration:
1899 -h, --help display this help and exit
1900 --help=short display options specific to this package
1901 --help=recursive display the short help of all the included packages
1902 -V, --version display version information and exit
1903 -q, --quiet, --silent do not print \`checking...' messages
1904 --cache-file=FILE cache test results in FILE [disabled]
1905 -C, --config-cache alias for \`--cache-file=config.cache'
1906 -n, --no-create do not create output files
1907 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1909 Installation directories:
1910 --prefix=PREFIX install architecture-independent files in PREFIX
1911 [$ac_default_prefix]
1912 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1913 [PREFIX]
1915 By default, \`make install' will install all the files in
1916 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1917 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1918 for instance \`--prefix=\$HOME'.
1920 For better control, use the options below.
1922 Fine tuning of the installation directories:
1923 --bindir=DIR user executables [EPREFIX/bin]
1924 --sbindir=DIR system admin executables [EPREFIX/sbin]
1925 --libexecdir=DIR program executables [EPREFIX/libexec]
1926 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1927 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1928 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1929 --libdir=DIR object code libraries [EPREFIX/lib]
1930 --includedir=DIR C header files [PREFIX/include]
1931 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1932 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1933 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1934 --infodir=DIR info documentation [DATAROOTDIR/info]
1935 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1936 --mandir=DIR man documentation [DATAROOTDIR/man]
1937 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1938 --htmldir=DIR html documentation [DOCDIR]
1939 --dvidir=DIR dvi documentation [DOCDIR]
1940 --pdfdir=DIR pdf documentation [DOCDIR]
1941 --psdir=DIR ps documentation [DOCDIR]
1942 _ACEOF
1944 cat <<\_ACEOF
1946 Program names:
1947 --program-prefix=PREFIX prepend PREFIX to installed program names
1948 --program-suffix=SUFFIX append SUFFIX to installed program names
1949 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1951 X features:
1952 --x-includes=DIR X include files are in DIR
1953 --x-libraries=DIR X library files are in DIR
1955 System types:
1956 --build=BUILD configure for building on BUILD [guessed]
1957 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1958 _ACEOF
1961 if test -n "$ac_init_help"; then
1962 case $ac_init_help in
1963 short | recursive ) echo "Configuration of emacs 24.2:";;
1964 esac
1965 cat <<\_ACEOF
1967 Optional Features:
1968 --disable-option-checking ignore unrecognized --enable/--with options
1969 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1970 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1971 --disable-ns-self-contained
1972 disable self contained build under NeXTstep
1973 --enable-asserts compile code with asserts enabled
1974 --disable-maintainer-mode
1975 disable make rules and dependencies not useful (and
1976 sometimes confusing) to the casual installer
1977 --enable-locallisppath=PATH
1978 directories Emacs should search for lisp files
1979 specific to this site
1980 --enable-checking[=LIST]
1981 enable expensive run-time checks. With LIST, enable
1982 only specific categories of checks. Categories are:
1983 all,yes,no. Flags are: stringbytes, stringoverrun,
1984 stringfreelist, xmallocoverrun, conslist
1985 --enable-use-lisp-union-type
1986 use a union for the Lisp_Object data type. This is
1987 only useful for development for catching certain
1988 types of bugs.
1989 --enable-profiling build emacs with profiling support. This might not
1990 work on all platforms
1991 --enable-autodepend automatically generate dependencies to .h-files.
1992 Requires GNU Make and Gcc. Enabled if GNU Make and
1993 Gcc is found
1994 --disable-dependency-tracking speeds up one-time build
1995 --enable-dependency-tracking do not reject slow dependency extractors
1996 --disable-largefile omit support for large files
1998 Optional Packages:
1999 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
2000 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
2001 --without-pop don't support POP mail retrieval with movemail
2002 --with-kerberos support Kerberos-authenticated POP
2003 --with-kerberos5 support Kerberos version 5 authenticated POP
2004 --with-hesiod support Hesiod to get the POP server host
2005 --with-mmdf support MMDF mailboxes
2006 --with-mail-unlink unlink, rather than empty, mail spool after reading
2007 --with-mailhost=HOSTNAME
2008 string giving default POP mail host
2009 --without-sound don't compile with sound support
2010 --without-sync-input process async input synchronously
2011 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes or gtk, gtk3,
2012 lucid or athena, motif, no)
2013 --with-wide-int prefer wide Emacs integers (typically 62-bit)
2014 --without-xpm don't compile with XPM image support
2015 --without-jpeg don't compile with JPEG image support
2016 --without-tiff don't compile with TIFF image support
2017 --without-gif don't compile with GIF image support
2018 --without-png don't compile with PNG image support
2019 --without-rsvg don't compile with SVG image support
2020 --without-xml2 don't compile with XML parsing support
2021 --without-imagemagick don't compile with ImageMagick image support
2022 --without-xft don't use XFT for anti aliased fonts
2023 --without-libotf don't use libotf for OpenType font support
2024 --without-m17n-flt don't use m17n-flt for text shaping
2025 --without-toolkit-scroll-bars
2026 don't use Motif or Xaw3d scroll bars
2027 --without-xaw3d don't use Xaw3d
2028 --without-xim don't use X11 XIM
2029 --with-ns use NeXTstep (Cocoa or GNUstep) windowing system
2030 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
2031 console
2032 --without-dbus don't compile with D-Bus support
2033 --without-gconf don't compile with GConf support
2034 --without-gsettings don't compile with GSettings support
2035 --without-selinux don't compile with SELinux support
2036 --without-gnutls don't use -lgnutls for SSL/TLS support
2037 --without-makeinfo don't require makeinfo for building manuals
2038 --without-compress-info don't compress the installed Info pages
2039 --with-pkg-config-prog=PATH
2040 path to pkg-config for finding GTK and librsvg
2041 --with-crt-dir=DIR directory containing crtn.o etc. The default is
2042 /usr/lib, or /usr/lib64 on some platforms.
2043 --with-gameuser=USER user for shared game score files
2044 --with-gnustep-conf=PATH
2045 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
2046 or /etc/GNUstep/GNUstep.conf
2047 --with-x use the X Window System
2049 Some influential environment variables:
2050 CC C compiler command
2051 CFLAGS C compiler flags
2052 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2053 nonstandard directory <lib dir>
2054 LIBS libraries to pass to the linker, e.g. -l<library>
2055 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2056 you have headers in a nonstandard directory <include dir>
2057 CPP C preprocessor
2058 XMKMF Path to xmkmf, Makefile generator for X Window System
2060 Use these variables to override the choices made by `configure' or to help
2061 it to find libraries and programs with nonstandard names/locations.
2063 Report bugs to the package provider.
2064 _ACEOF
2065 ac_status=$?
2068 if test "$ac_init_help" = "recursive"; then
2069 # If there are subdirs, report their specific --help.
2070 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2071 test -d "$ac_dir" ||
2072 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2073 continue
2074 ac_builddir=.
2076 case "$ac_dir" in
2077 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2079 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2080 # A ".." for each directory in $ac_dir_suffix.
2081 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2082 case $ac_top_builddir_sub in
2083 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2084 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2085 esac ;;
2086 esac
2087 ac_abs_top_builddir=$ac_pwd
2088 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2089 # for backward compatibility:
2090 ac_top_builddir=$ac_top_build_prefix
2092 case $srcdir in
2093 .) # We are building in place.
2094 ac_srcdir=.
2095 ac_top_srcdir=$ac_top_builddir_sub
2096 ac_abs_top_srcdir=$ac_pwd ;;
2097 [\\/]* | ?:[\\/]* ) # Absolute name.
2098 ac_srcdir=$srcdir$ac_dir_suffix;
2099 ac_top_srcdir=$srcdir
2100 ac_abs_top_srcdir=$srcdir ;;
2101 *) # Relative name.
2102 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2103 ac_top_srcdir=$ac_top_build_prefix$srcdir
2104 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2105 esac
2106 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2108 cd "$ac_dir" || { ac_status=$?; continue; }
2109 # Check for guested configure.
2110 if test -f "$ac_srcdir/configure.gnu"; then
2111 echo &&
2112 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2113 elif test -f "$ac_srcdir/configure"; then
2114 echo &&
2115 $SHELL "$ac_srcdir/configure" --help=recursive
2116 else
2117 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2118 fi || ac_status=$?
2119 cd "$ac_pwd" || { ac_status=$?; break; }
2120 done
2123 test -n "$ac_init_help" && exit $ac_status
2124 if $ac_init_version; then
2125 cat <<\_ACEOF
2126 emacs configure 24.2
2127 generated by GNU Autoconf 2.65
2129 Copyright (C) 2009 Free Software Foundation, Inc.
2130 This configure script is free software; the Free Software Foundation
2131 gives unlimited permission to copy, distribute and modify it.
2132 _ACEOF
2133 exit
2136 ## ------------------------ ##
2137 ## Autoconf initialization. ##
2138 ## ------------------------ ##
2140 # ac_fn_c_try_compile LINENO
2141 # --------------------------
2142 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2143 ac_fn_c_try_compile ()
2145 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2146 rm -f conftest.$ac_objext
2147 if { { ac_try="$ac_compile"
2148 case "(($ac_try" in
2149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2150 *) ac_try_echo=$ac_try;;
2151 esac
2152 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2153 $as_echo "$ac_try_echo"; } >&5
2154 (eval "$ac_compile") 2>conftest.err
2155 ac_status=$?
2156 if test -s conftest.err; then
2157 grep -v '^ *+' conftest.err >conftest.er1
2158 cat conftest.er1 >&5
2159 mv -f conftest.er1 conftest.err
2161 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2162 test $ac_status = 0; } && {
2163 test -z "$ac_c_werror_flag" ||
2164 test ! -s conftest.err
2165 } && test -s conftest.$ac_objext; then :
2166 ac_retval=0
2167 else
2168 $as_echo "$as_me: failed program was:" >&5
2169 sed 's/^/| /' conftest.$ac_ext >&5
2171 ac_retval=1
2173 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2174 as_fn_set_status $ac_retval
2176 } # ac_fn_c_try_compile
2178 # ac_fn_c_try_cpp LINENO
2179 # ----------------------
2180 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2181 ac_fn_c_try_cpp ()
2183 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2184 if { { ac_try="$ac_cpp conftest.$ac_ext"
2185 case "(($ac_try" in
2186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2187 *) ac_try_echo=$ac_try;;
2188 esac
2189 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2190 $as_echo "$ac_try_echo"; } >&5
2191 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2192 ac_status=$?
2193 if test -s conftest.err; then
2194 grep -v '^ *+' conftest.err >conftest.er1
2195 cat conftest.er1 >&5
2196 mv -f conftest.er1 conftest.err
2198 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2199 test $ac_status = 0; } >/dev/null && {
2200 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2201 test ! -s conftest.err
2202 }; then :
2203 ac_retval=0
2204 else
2205 $as_echo "$as_me: failed program was:" >&5
2206 sed 's/^/| /' conftest.$ac_ext >&5
2208 ac_retval=1
2210 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2211 as_fn_set_status $ac_retval
2213 } # ac_fn_c_try_cpp
2215 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2216 # -------------------------------------------------------
2217 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2218 # the include files in INCLUDES and setting the cache variable VAR
2219 # accordingly.
2220 ac_fn_c_check_header_mongrel ()
2222 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2223 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2225 $as_echo_n "checking for $2... " >&6; }
2226 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2227 $as_echo_n "(cached) " >&6
2229 eval ac_res=\$$3
2230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2231 $as_echo "$ac_res" >&6; }
2232 else
2233 # Is the header compilable?
2234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2235 $as_echo_n "checking $2 usability... " >&6; }
2236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2237 /* end confdefs.h. */
2239 #include <$2>
2240 _ACEOF
2241 if ac_fn_c_try_compile "$LINENO"; then :
2242 ac_header_compiler=yes
2243 else
2244 ac_header_compiler=no
2246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2248 $as_echo "$ac_header_compiler" >&6; }
2250 # Is the header present?
2251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2252 $as_echo_n "checking $2 presence... " >&6; }
2253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2254 /* end confdefs.h. */
2255 #include <$2>
2256 _ACEOF
2257 if ac_fn_c_try_cpp "$LINENO"; then :
2258 ac_header_preproc=yes
2259 else
2260 ac_header_preproc=no
2262 rm -f conftest.err conftest.$ac_ext
2263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2264 $as_echo "$ac_header_preproc" >&6; }
2266 # So? What about this header?
2267 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2268 yes:no: )
2269 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2270 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2271 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2272 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2274 no:yes:* )
2275 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2276 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2277 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2278 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2279 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2280 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2281 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2282 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2283 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2284 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2286 esac
2287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2288 $as_echo_n "checking for $2... " >&6; }
2289 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2290 $as_echo_n "(cached) " >&6
2291 else
2292 eval "$3=\$ac_header_compiler"
2294 eval ac_res=\$$3
2295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2296 $as_echo "$ac_res" >&6; }
2298 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2300 } # ac_fn_c_check_header_mongrel
2302 # ac_fn_c_try_run LINENO
2303 # ----------------------
2304 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2305 # that executables *can* be run.
2306 ac_fn_c_try_run ()
2308 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2309 if { { ac_try="$ac_link"
2310 case "(($ac_try" in
2311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2312 *) ac_try_echo=$ac_try;;
2313 esac
2314 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2315 $as_echo "$ac_try_echo"; } >&5
2316 (eval "$ac_link") 2>&5
2317 ac_status=$?
2318 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2319 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2320 { { case "(($ac_try" in
2321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2322 *) ac_try_echo=$ac_try;;
2323 esac
2324 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2325 $as_echo "$ac_try_echo"; } >&5
2326 (eval "$ac_try") 2>&5
2327 ac_status=$?
2328 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2329 test $ac_status = 0; }; }; then :
2330 ac_retval=0
2331 else
2332 $as_echo "$as_me: program exited with status $ac_status" >&5
2333 $as_echo "$as_me: failed program was:" >&5
2334 sed 's/^/| /' conftest.$ac_ext >&5
2336 ac_retval=$ac_status
2338 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2339 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2340 as_fn_set_status $ac_retval
2342 } # ac_fn_c_try_run
2344 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2345 # -------------------------------------------------------
2346 # Tests whether HEADER exists and can be compiled using the include files in
2347 # INCLUDES, setting the cache variable VAR accordingly.
2348 ac_fn_c_check_header_compile ()
2350 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2352 $as_echo_n "checking for $2... " >&6; }
2353 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2354 $as_echo_n "(cached) " >&6
2355 else
2356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2357 /* end confdefs.h. */
2359 #include <$2>
2360 _ACEOF
2361 if ac_fn_c_try_compile "$LINENO"; then :
2362 eval "$3=yes"
2363 else
2364 eval "$3=no"
2366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2368 eval ac_res=\$$3
2369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2370 $as_echo "$ac_res" >&6; }
2371 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2373 } # ac_fn_c_check_header_compile
2375 # ac_fn_c_try_link LINENO
2376 # -----------------------
2377 # Try to link conftest.$ac_ext, and return whether this succeeded.
2378 ac_fn_c_try_link ()
2380 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2381 rm -f conftest.$ac_objext conftest$ac_exeext
2382 if { { ac_try="$ac_link"
2383 case "(($ac_try" in
2384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2385 *) ac_try_echo=$ac_try;;
2386 esac
2387 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2388 $as_echo "$ac_try_echo"; } >&5
2389 (eval "$ac_link") 2>conftest.err
2390 ac_status=$?
2391 if test -s conftest.err; then
2392 grep -v '^ *+' conftest.err >conftest.er1
2393 cat conftest.er1 >&5
2394 mv -f conftest.er1 conftest.err
2396 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2397 test $ac_status = 0; } && {
2398 test -z "$ac_c_werror_flag" ||
2399 test ! -s conftest.err
2400 } && test -s conftest$ac_exeext && {
2401 test "$cross_compiling" = yes ||
2402 $as_test_x conftest$ac_exeext
2403 }; then :
2404 ac_retval=0
2405 else
2406 $as_echo "$as_me: failed program was:" >&5
2407 sed 's/^/| /' conftest.$ac_ext >&5
2409 ac_retval=1
2411 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2412 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2413 # interfere with the next link command; also delete a directory that is
2414 # left behind by Apple's compiler. We do this before executing the actions.
2415 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2416 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2417 as_fn_set_status $ac_retval
2419 } # ac_fn_c_try_link
2421 # ac_fn_c_check_decl LINENO SYMBOL VAR
2422 # ------------------------------------
2423 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2424 ac_fn_c_check_decl ()
2426 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2428 $as_echo_n "checking whether $2 is declared... " >&6; }
2429 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2430 $as_echo_n "(cached) " >&6
2431 else
2432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2433 /* end confdefs.h. */
2436 main ()
2438 #ifndef $2
2439 (void) $2;
2440 #endif
2443 return 0;
2445 _ACEOF
2446 if ac_fn_c_try_compile "$LINENO"; then :
2447 eval "$3=yes"
2448 else
2449 eval "$3=no"
2451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2453 eval ac_res=\$$3
2454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2455 $as_echo "$ac_res" >&6; }
2456 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2458 } # ac_fn_c_check_decl
2460 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2461 # ----------------------------------------------
2462 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2463 ac_fn_c_check_header_preproc ()
2465 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2467 $as_echo_n "checking for $2... " >&6; }
2468 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2469 $as_echo_n "(cached) " >&6
2470 else
2471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2472 /* end confdefs.h. */
2473 #include <$2>
2474 _ACEOF
2475 if ac_fn_c_try_cpp "$LINENO"; then :
2476 eval "$3=yes"
2477 else
2478 eval "$3=no"
2480 rm -f conftest.err conftest.$ac_ext
2482 eval ac_res=\$$3
2483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2484 $as_echo "$ac_res" >&6; }
2485 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2487 } # ac_fn_c_check_header_preproc
2489 # ac_fn_c_check_func LINENO FUNC VAR
2490 # ----------------------------------
2491 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2492 ac_fn_c_check_func ()
2494 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2496 $as_echo_n "checking for $2... " >&6; }
2497 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2498 $as_echo_n "(cached) " >&6
2499 else
2500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2501 /* end confdefs.h. */
2502 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2503 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2504 #define $2 innocuous_$2
2506 /* System header to define __stub macros and hopefully few prototypes,
2507 which can conflict with char $2 (); below.
2508 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2509 <limits.h> exists even on freestanding compilers. */
2511 #ifdef __STDC__
2512 # include <limits.h>
2513 #else
2514 # include <assert.h>
2515 #endif
2517 #undef $2
2519 /* Override any GCC internal prototype to avoid an error.
2520 Use char because int might match the return type of a GCC
2521 builtin and then its argument prototype would still apply. */
2522 #ifdef __cplusplus
2523 extern "C"
2524 #endif
2525 char $2 ();
2526 /* The GNU C library defines this for functions which it implements
2527 to always fail with ENOSYS. Some functions are actually named
2528 something starting with __ and the normal name is an alias. */
2529 #if defined __stub_$2 || defined __stub___$2
2530 choke me
2531 #endif
2534 main ()
2536 return $2 ();
2538 return 0;
2540 _ACEOF
2541 if ac_fn_c_try_link "$LINENO"; then :
2542 eval "$3=yes"
2543 else
2544 eval "$3=no"
2546 rm -f core conftest.err conftest.$ac_objext \
2547 conftest$ac_exeext conftest.$ac_ext
2549 eval ac_res=\$$3
2550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2551 $as_echo "$ac_res" >&6; }
2552 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2554 } # ac_fn_c_check_func
2556 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2557 # ----------------------------------------------------
2558 # Tries to find if the field MEMBER exists in type AGGR, after including
2559 # INCLUDES, setting cache variable VAR accordingly.
2560 ac_fn_c_check_member ()
2562 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2564 $as_echo_n "checking for $2.$3... " >&6; }
2565 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2566 $as_echo_n "(cached) " >&6
2567 else
2568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2569 /* end confdefs.h. */
2572 main ()
2574 static $2 ac_aggr;
2575 if (ac_aggr.$3)
2576 return 0;
2578 return 0;
2580 _ACEOF
2581 if ac_fn_c_try_compile "$LINENO"; then :
2582 eval "$4=yes"
2583 else
2584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2585 /* end confdefs.h. */
2588 main ()
2590 static $2 ac_aggr;
2591 if (sizeof ac_aggr.$3)
2592 return 0;
2594 return 0;
2596 _ACEOF
2597 if ac_fn_c_try_compile "$LINENO"; then :
2598 eval "$4=yes"
2599 else
2600 eval "$4=no"
2602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2606 eval ac_res=\$$4
2607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2608 $as_echo "$ac_res" >&6; }
2609 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2611 } # ac_fn_c_check_member
2613 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2614 # -------------------------------------------
2615 # Tests whether TYPE exists after having included INCLUDES, setting cache
2616 # variable VAR accordingly.
2617 ac_fn_c_check_type ()
2619 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2621 $as_echo_n "checking for $2... " >&6; }
2622 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2623 $as_echo_n "(cached) " >&6
2624 else
2625 eval "$3=no"
2626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2627 /* end confdefs.h. */
2630 main ()
2632 if (sizeof ($2))
2633 return 0;
2635 return 0;
2637 _ACEOF
2638 if ac_fn_c_try_compile "$LINENO"; then :
2639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2640 /* end confdefs.h. */
2643 main ()
2645 if (sizeof (($2)))
2646 return 0;
2648 return 0;
2650 _ACEOF
2651 if ac_fn_c_try_compile "$LINENO"; then :
2653 else
2654 eval "$3=yes"
2656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2660 eval ac_res=\$$3
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2662 $as_echo "$ac_res" >&6; }
2663 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2665 } # ac_fn_c_check_type
2667 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2668 # --------------------------------------------
2669 # Tries to find the compile-time value of EXPR in a program that includes
2670 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2671 # computed
2672 ac_fn_c_compute_int ()
2674 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2675 if test "$cross_compiling" = yes; then
2676 # Depending upon the size, compute the lo and hi bounds.
2677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2678 /* end confdefs.h. */
2681 main ()
2683 static int test_array [1 - 2 * !(($2) >= 0)];
2684 test_array [0] = 0
2687 return 0;
2689 _ACEOF
2690 if ac_fn_c_try_compile "$LINENO"; then :
2691 ac_lo=0 ac_mid=0
2692 while :; do
2693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2694 /* end confdefs.h. */
2697 main ()
2699 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2700 test_array [0] = 0
2703 return 0;
2705 _ACEOF
2706 if ac_fn_c_try_compile "$LINENO"; then :
2707 ac_hi=$ac_mid; break
2708 else
2709 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2710 if test $ac_lo -le $ac_mid; then
2711 ac_lo= ac_hi=
2712 break
2714 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2717 done
2718 else
2719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2720 /* end confdefs.h. */
2723 main ()
2725 static int test_array [1 - 2 * !(($2) < 0)];
2726 test_array [0] = 0
2729 return 0;
2731 _ACEOF
2732 if ac_fn_c_try_compile "$LINENO"; then :
2733 ac_hi=-1 ac_mid=-1
2734 while :; do
2735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2736 /* end confdefs.h. */
2739 main ()
2741 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2742 test_array [0] = 0
2745 return 0;
2747 _ACEOF
2748 if ac_fn_c_try_compile "$LINENO"; then :
2749 ac_lo=$ac_mid; break
2750 else
2751 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2752 if test $ac_mid -le $ac_hi; then
2753 ac_lo= ac_hi=
2754 break
2756 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2759 done
2760 else
2761 ac_lo= ac_hi=
2763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2766 # Binary search between lo and hi bounds.
2767 while test "x$ac_lo" != "x$ac_hi"; do
2768 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2770 /* end confdefs.h. */
2773 main ()
2775 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2776 test_array [0] = 0
2779 return 0;
2781 _ACEOF
2782 if ac_fn_c_try_compile "$LINENO"; then :
2783 ac_hi=$ac_mid
2784 else
2785 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2788 done
2789 case $ac_lo in #((
2790 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2791 '') ac_retval=1 ;;
2792 esac
2793 else
2794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2795 /* end confdefs.h. */
2797 static long int longval () { return $2; }
2798 static unsigned long int ulongval () { return $2; }
2799 #include <stdio.h>
2800 #include <stdlib.h>
2802 main ()
2805 FILE *f = fopen ("conftest.val", "w");
2806 if (! f)
2807 return 1;
2808 if (($2) < 0)
2810 long int i = longval ();
2811 if (i != ($2))
2812 return 1;
2813 fprintf (f, "%ld", i);
2815 else
2817 unsigned long int i = ulongval ();
2818 if (i != ($2))
2819 return 1;
2820 fprintf (f, "%lu", i);
2822 /* Do not output a trailing newline, as this causes \r\n confusion
2823 on some platforms. */
2824 return ferror (f) || fclose (f) != 0;
2827 return 0;
2829 _ACEOF
2830 if ac_fn_c_try_run "$LINENO"; then :
2831 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2832 else
2833 ac_retval=1
2835 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2836 conftest.$ac_objext conftest.beam conftest.$ac_ext
2837 rm -f conftest.val
2840 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2841 as_fn_set_status $ac_retval
2843 } # ac_fn_c_compute_int
2844 cat >config.log <<_ACEOF
2845 This file contains any messages produced by compilers while
2846 running configure, to aid debugging if configure makes a mistake.
2848 It was created by emacs $as_me 24.2, which was
2849 generated by GNU Autoconf 2.65. Invocation command line was
2851 $ $0 $@
2853 _ACEOF
2854 exec 5>>config.log
2856 cat <<_ASUNAME
2857 ## --------- ##
2858 ## Platform. ##
2859 ## --------- ##
2861 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2862 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2863 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2864 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2865 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2867 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2868 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2870 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2871 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2872 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2873 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2874 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2875 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2876 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2878 _ASUNAME
2880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2881 for as_dir in $PATH
2883 IFS=$as_save_IFS
2884 test -z "$as_dir" && as_dir=.
2885 $as_echo "PATH: $as_dir"
2886 done
2887 IFS=$as_save_IFS
2889 } >&5
2891 cat >&5 <<_ACEOF
2894 ## ----------- ##
2895 ## Core tests. ##
2896 ## ----------- ##
2898 _ACEOF
2901 # Keep a trace of the command line.
2902 # Strip out --no-create and --no-recursion so they do not pile up.
2903 # Strip out --silent because we don't want to record it for future runs.
2904 # Also quote any args containing shell meta-characters.
2905 # Make two passes to allow for proper duplicate-argument suppression.
2906 ac_configure_args=
2907 ac_configure_args0=
2908 ac_configure_args1=
2909 ac_must_keep_next=false
2910 for ac_pass in 1 2
2912 for ac_arg
2914 case $ac_arg in
2915 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2916 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2917 | -silent | --silent | --silen | --sile | --sil)
2918 continue ;;
2919 *\'*)
2920 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2921 esac
2922 case $ac_pass in
2923 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2925 as_fn_append ac_configure_args1 " '$ac_arg'"
2926 if test $ac_must_keep_next = true; then
2927 ac_must_keep_next=false # Got value, back to normal.
2928 else
2929 case $ac_arg in
2930 *=* | --config-cache | -C | -disable-* | --disable-* \
2931 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2932 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2933 | -with-* | --with-* | -without-* | --without-* | --x)
2934 case "$ac_configure_args0 " in
2935 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2936 esac
2938 -* ) ac_must_keep_next=true ;;
2939 esac
2941 as_fn_append ac_configure_args " '$ac_arg'"
2943 esac
2944 done
2945 done
2946 { ac_configure_args0=; unset ac_configure_args0;}
2947 { ac_configure_args1=; unset ac_configure_args1;}
2949 # When interrupted or exit'd, cleanup temporary files, and complete
2950 # config.log. We remove comments because anyway the quotes in there
2951 # would cause problems or look ugly.
2952 # WARNING: Use '\'' to represent an apostrophe within the trap.
2953 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2954 trap 'exit_status=$?
2955 # Save into config.log some information that might help in debugging.
2957 echo
2959 cat <<\_ASBOX
2960 ## ---------------- ##
2961 ## Cache variables. ##
2962 ## ---------------- ##
2963 _ASBOX
2964 echo
2965 # The following way of writing the cache mishandles newlines in values,
2967 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2968 eval ac_val=\$$ac_var
2969 case $ac_val in #(
2970 *${as_nl}*)
2971 case $ac_var in #(
2972 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2973 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2974 esac
2975 case $ac_var in #(
2976 _ | IFS | as_nl) ;; #(
2977 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2978 *) { eval $ac_var=; unset $ac_var;} ;;
2979 esac ;;
2980 esac
2981 done
2982 (set) 2>&1 |
2983 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2984 *${as_nl}ac_space=\ *)
2985 sed -n \
2986 "s/'\''/'\''\\\\'\'''\''/g;
2987 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2988 ;; #(
2990 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2992 esac |
2993 sort
2995 echo
2997 cat <<\_ASBOX
2998 ## ----------------- ##
2999 ## Output variables. ##
3000 ## ----------------- ##
3001 _ASBOX
3002 echo
3003 for ac_var in $ac_subst_vars
3005 eval ac_val=\$$ac_var
3006 case $ac_val in
3007 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3008 esac
3009 $as_echo "$ac_var='\''$ac_val'\''"
3010 done | sort
3011 echo
3013 if test -n "$ac_subst_files"; then
3014 cat <<\_ASBOX
3015 ## ------------------- ##
3016 ## File substitutions. ##
3017 ## ------------------- ##
3018 _ASBOX
3019 echo
3020 for ac_var in $ac_subst_files
3022 eval ac_val=\$$ac_var
3023 case $ac_val in
3024 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3025 esac
3026 $as_echo "$ac_var='\''$ac_val'\''"
3027 done | sort
3028 echo
3031 if test -s confdefs.h; then
3032 cat <<\_ASBOX
3033 ## ----------- ##
3034 ## confdefs.h. ##
3035 ## ----------- ##
3036 _ASBOX
3037 echo
3038 cat confdefs.h
3039 echo
3041 test "$ac_signal" != 0 &&
3042 $as_echo "$as_me: caught signal $ac_signal"
3043 $as_echo "$as_me: exit $exit_status"
3044 } >&5
3045 rm -f core *.core core.conftest.* &&
3046 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3047 exit $exit_status
3049 for ac_signal in 1 2 13 15; do
3050 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3051 done
3052 ac_signal=0
3054 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3055 rm -f -r conftest* confdefs.h
3057 $as_echo "/* confdefs.h */" > confdefs.h
3059 # Predefined preprocessor variables.
3061 cat >>confdefs.h <<_ACEOF
3062 #define PACKAGE_NAME "$PACKAGE_NAME"
3063 _ACEOF
3065 cat >>confdefs.h <<_ACEOF
3066 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3067 _ACEOF
3069 cat >>confdefs.h <<_ACEOF
3070 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3071 _ACEOF
3073 cat >>confdefs.h <<_ACEOF
3074 #define PACKAGE_STRING "$PACKAGE_STRING"
3075 _ACEOF
3077 cat >>confdefs.h <<_ACEOF
3078 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3079 _ACEOF
3081 cat >>confdefs.h <<_ACEOF
3082 #define PACKAGE_URL "$PACKAGE_URL"
3083 _ACEOF
3086 # Let the site file select an alternate cache file if it wants to.
3087 # Prefer an explicitly selected file to automatically selected ones.
3088 ac_site_file1=NONE
3089 ac_site_file2=NONE
3090 if test -n "$CONFIG_SITE"; then
3091 ac_site_file1=$CONFIG_SITE
3092 elif test "x$prefix" != xNONE; then
3093 ac_site_file1=$prefix/share/config.site
3094 ac_site_file2=$prefix/etc/config.site
3095 else
3096 ac_site_file1=$ac_default_prefix/share/config.site
3097 ac_site_file2=$ac_default_prefix/etc/config.site
3099 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3101 test "x$ac_site_file" = xNONE && continue
3102 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3104 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3105 sed 's/^/| /' "$ac_site_file" >&5
3106 . "$ac_site_file"
3108 done
3110 if test -r "$cache_file"; then
3111 # Some versions of bash will fail to source /dev/null (special files
3112 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3113 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3115 $as_echo "$as_me: loading cache $cache_file" >&6;}
3116 case $cache_file in
3117 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3118 *) . "./$cache_file";;
3119 esac
3121 else
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3123 $as_echo "$as_me: creating cache $cache_file" >&6;}
3124 >$cache_file
3127 as_fn_append ac_header_list " stdlib.h"
3128 as_fn_append ac_header_list " unistd.h"
3129 as_fn_append ac_header_list " sys/param.h"
3130 as_fn_append ac_func_list " readlinkat"
3131 gl_getopt_required=GNU
3132 as_fn_append ac_header_list " getopt.h"
3133 as_fn_append ac_header_list " wchar.h"
3134 as_fn_append ac_header_list " stdint.h"
3135 as_fn_append ac_header_list " inttypes.h"
3136 as_fn_append ac_func_list " lstat"
3137 as_fn_append ac_func_list " alarm"
3138 as_fn_append ac_func_list " pthread_sigmask"
3139 as_fn_append ac_func_list " readlink"
3140 as_fn_append ac_header_list " sys/socket.h"
3141 as_fn_append ac_func_list " tzset"
3142 as_fn_append ac_func_list " strtoimax"
3143 as_fn_append ac_func_list " strtoumax"
3144 as_fn_append ac_func_list " symlink"
3145 as_fn_append ac_header_list " sys/stat.h"
3146 as_fn_append ac_header_list " sys/time.h"
3147 as_fn_append ac_func_list " localtime_r"
3148 # Check that the precious variables saved in the cache have kept the same
3149 # value.
3150 ac_cache_corrupted=false
3151 for ac_var in $ac_precious_vars; do
3152 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3153 eval ac_new_set=\$ac_env_${ac_var}_set
3154 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3155 eval ac_new_val=\$ac_env_${ac_var}_value
3156 case $ac_old_set,$ac_new_set in
3157 set,)
3158 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3159 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3160 ac_cache_corrupted=: ;;
3161 ,set)
3162 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3163 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3164 ac_cache_corrupted=: ;;
3165 ,);;
3167 if test "x$ac_old_val" != "x$ac_new_val"; then
3168 # differences in whitespace do not lead to failure.
3169 ac_old_val_w=`echo x $ac_old_val`
3170 ac_new_val_w=`echo x $ac_new_val`
3171 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3172 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3173 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3174 ac_cache_corrupted=:
3175 else
3176 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3177 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3178 eval $ac_var=\$ac_old_val
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3181 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3182 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3183 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3184 fi;;
3185 esac
3186 # Pass precious variables to config.status.
3187 if test "$ac_new_set" = set; then
3188 case $ac_new_val in
3189 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3190 *) ac_arg=$ac_var=$ac_new_val ;;
3191 esac
3192 case " $ac_configure_args " in
3193 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3194 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3195 esac
3197 done
3198 if $ac_cache_corrupted; then
3199 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3200 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3201 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3202 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3203 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3205 ## -------------------- ##
3206 ## Main body of script. ##
3207 ## -------------------- ##
3209 ac_ext=c
3210 ac_cpp='$CPP $CPPFLAGS'
3211 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3212 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3213 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3216 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
3219 ac_aux_dir=
3220 for ac_dir in build-aux "$srcdir"/build-aux; do
3221 for ac_t in install-sh install.sh shtool; do
3222 if test -f "$ac_dir/$ac_t"; then
3223 ac_aux_dir=$ac_dir
3224 ac_install_sh="$ac_aux_dir/$ac_t -c"
3225 break 2
3227 done
3228 done
3229 if test -z "$ac_aux_dir"; then
3230 as_fn_error "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
3233 # These three variables are undocumented and unsupported,
3234 # and are intended to be withdrawn in a future Autoconf release.
3235 # They can cause serious problems if a builder's source tree is in a directory
3236 # whose full name contains unusual characters.
3237 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3238 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3239 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3242 am__api_version='1.11'
3244 # Find a good install program. We prefer a C program (faster),
3245 # so one script is as good as another. But avoid the broken or
3246 # incompatible versions:
3247 # SysV /etc/install, /usr/sbin/install
3248 # SunOS /usr/etc/install
3249 # IRIX /sbin/install
3250 # AIX /bin/install
3251 # AmigaOS /C/install, which installs bootblocks on floppy discs
3252 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3253 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3254 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3255 # OS/2's system install, which has a completely different semantic
3256 # ./install, which can be erroneously created by make from ./install.sh.
3257 # Reject install programs that cannot install multiple files.
3258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3259 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3260 if test -z "$INSTALL"; then
3261 if test "${ac_cv_path_install+set}" = set; then :
3262 $as_echo_n "(cached) " >&6
3263 else
3264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3265 for as_dir in $PATH
3267 IFS=$as_save_IFS
3268 test -z "$as_dir" && as_dir=.
3269 # Account for people who put trailing slashes in PATH elements.
3270 case $as_dir/ in #((
3271 ./ | .// | /[cC]/* | \
3272 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3273 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3274 /usr/ucb/* ) ;;
3276 # OSF1 and SCO ODT 3.0 have their own names for install.
3277 # Don't use installbsd from OSF since it installs stuff as root
3278 # by default.
3279 for ac_prog in ginstall scoinst install; do
3280 for ac_exec_ext in '' $ac_executable_extensions; do
3281 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3282 if test $ac_prog = install &&
3283 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3284 # AIX install. It has an incompatible calling convention.
3286 elif test $ac_prog = install &&
3287 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3288 # program-specific install script used by HP pwplus--don't use.
3290 else
3291 rm -rf conftest.one conftest.two conftest.dir
3292 echo one > conftest.one
3293 echo two > conftest.two
3294 mkdir conftest.dir
3295 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3296 test -s conftest.one && test -s conftest.two &&
3297 test -s conftest.dir/conftest.one &&
3298 test -s conftest.dir/conftest.two
3299 then
3300 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3301 break 3
3305 done
3306 done
3308 esac
3310 done
3311 IFS=$as_save_IFS
3313 rm -rf conftest.one conftest.two conftest.dir
3316 if test "${ac_cv_path_install+set}" = set; then
3317 INSTALL=$ac_cv_path_install
3318 else
3319 # As a last resort, use the slow shell script. Don't cache a
3320 # value for INSTALL within a source directory, because that will
3321 # break other packages using the cache if that directory is
3322 # removed, or if the value is a relative name.
3323 INSTALL=$ac_install_sh
3326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3327 $as_echo "$INSTALL" >&6; }
3329 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3330 # It thinks the first close brace ends the variable substitution.
3331 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3333 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3335 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3338 $as_echo_n "checking whether build environment is sane... " >&6; }
3339 # Just in case
3340 sleep 1
3341 echo timestamp > conftest.file
3342 # Reject unsafe characters in $srcdir or the absolute working directory
3343 # name. Accept space and tab only in the latter.
3344 am_lf='
3346 case `pwd` in
3347 *[\\\"\#\$\&\'\`$am_lf]*)
3348 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3349 esac
3350 case $srcdir in
3351 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3352 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3353 esac
3355 # Do `set' in a subshell so we don't clobber the current shell's
3356 # arguments. Must try -L first in case configure is actually a
3357 # symlink; some systems play weird games with the mod time of symlinks
3358 # (eg FreeBSD returns the mod time of the symlink's containing
3359 # directory).
3360 if (
3361 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3362 if test "$*" = "X"; then
3363 # -L didn't work.
3364 set X `ls -t "$srcdir/configure" conftest.file`
3366 rm -f conftest.file
3367 if test "$*" != "X $srcdir/configure conftest.file" \
3368 && test "$*" != "X conftest.file $srcdir/configure"; then
3370 # If neither matched, then we have a broken ls. This can happen
3371 # if, for instance, CONFIG_SHELL is bash and it inherits a
3372 # broken ls alias from the environment. This has actually
3373 # happened. Such a system could not be considered "sane".
3374 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3375 alias in your environment" "$LINENO" 5
3378 test "$2" = conftest.file
3380 then
3381 # Ok.
3383 else
3384 as_fn_error "newly created file is older than distributed files!
3385 Check your system clock" "$LINENO" 5
3387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3388 $as_echo "yes" >&6; }
3389 test "$program_prefix" != NONE &&
3390 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3391 # Use a double $ so make ignores it.
3392 test "$program_suffix" != NONE &&
3393 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3394 # Double any \ or $.
3395 # By default was `s,x,x', remove it if useless.
3396 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3397 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3399 # expand $ac_aux_dir to an absolute path
3400 am_aux_dir=`cd $ac_aux_dir && pwd`
3402 if test x"${MISSING+set}" != xset; then
3403 case $am_aux_dir in
3404 *\ * | *\ *)
3405 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3407 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3408 esac
3410 # Use eval to expand $SHELL
3411 if eval "$MISSING --run true"; then
3412 am_missing_run="$MISSING --run "
3413 else
3414 am_missing_run=
3415 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3416 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3419 if test x"${install_sh}" != xset; then
3420 case $am_aux_dir in
3421 *\ * | *\ *)
3422 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3424 install_sh="\${SHELL} $am_aux_dir/install-sh"
3425 esac
3428 # Installed binaries are usually stripped using `strip' when the user
3429 # run `make install-strip'. However `strip' might not be the right
3430 # tool to use in cross-compilation environments, therefore Automake
3431 # will honor the `STRIP' environment variable to overrule this program.
3432 if test "$cross_compiling" != no; then
3433 if test -n "$ac_tool_prefix"; then
3434 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3435 set dummy ${ac_tool_prefix}strip; ac_word=$2
3436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3437 $as_echo_n "checking for $ac_word... " >&6; }
3438 if test "${ac_cv_prog_STRIP+set}" = set; then :
3439 $as_echo_n "(cached) " >&6
3440 else
3441 if test -n "$STRIP"; then
3442 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3443 else
3444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3445 for as_dir in $PATH
3447 IFS=$as_save_IFS
3448 test -z "$as_dir" && as_dir=.
3449 for ac_exec_ext in '' $ac_executable_extensions; do
3450 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3451 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3453 break 2
3455 done
3456 done
3457 IFS=$as_save_IFS
3461 STRIP=$ac_cv_prog_STRIP
3462 if test -n "$STRIP"; then
3463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3464 $as_echo "$STRIP" >&6; }
3465 else
3466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3467 $as_echo "no" >&6; }
3472 if test -z "$ac_cv_prog_STRIP"; then
3473 ac_ct_STRIP=$STRIP
3474 # Extract the first word of "strip", so it can be a program name with args.
3475 set dummy strip; ac_word=$2
3476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3477 $as_echo_n "checking for $ac_word... " >&6; }
3478 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3479 $as_echo_n "(cached) " >&6
3480 else
3481 if test -n "$ac_ct_STRIP"; then
3482 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3483 else
3484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3485 for as_dir in $PATH
3487 IFS=$as_save_IFS
3488 test -z "$as_dir" && as_dir=.
3489 for ac_exec_ext in '' $ac_executable_extensions; do
3490 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3491 ac_cv_prog_ac_ct_STRIP="strip"
3492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3493 break 2
3495 done
3496 done
3497 IFS=$as_save_IFS
3501 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3502 if test -n "$ac_ct_STRIP"; then
3503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3504 $as_echo "$ac_ct_STRIP" >&6; }
3505 else
3506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3507 $as_echo "no" >&6; }
3510 if test "x$ac_ct_STRIP" = x; then
3511 STRIP=":"
3512 else
3513 case $cross_compiling:$ac_tool_warned in
3514 yes:)
3515 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3516 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3517 ac_tool_warned=yes ;;
3518 esac
3519 STRIP=$ac_ct_STRIP
3521 else
3522 STRIP="$ac_cv_prog_STRIP"
3526 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3529 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3530 if test -z "$MKDIR_P"; then
3531 if test "${ac_cv_path_mkdir+set}" = set; then :
3532 $as_echo_n "(cached) " >&6
3533 else
3534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3535 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3537 IFS=$as_save_IFS
3538 test -z "$as_dir" && as_dir=.
3539 for ac_prog in mkdir gmkdir; do
3540 for ac_exec_ext in '' $ac_executable_extensions; do
3541 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3542 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3543 'mkdir (GNU coreutils) '* | \
3544 'mkdir (coreutils) '* | \
3545 'mkdir (fileutils) '4.1*)
3546 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3547 break 3;;
3548 esac
3549 done
3550 done
3551 done
3552 IFS=$as_save_IFS
3556 test -d ./--version && rmdir ./--version
3557 if test "${ac_cv_path_mkdir+set}" = set; then
3558 MKDIR_P="$ac_cv_path_mkdir -p"
3559 else
3560 # As a last resort, use the slow shell script. Don't cache a
3561 # value for MKDIR_P within a source directory, because that will
3562 # break other packages using the cache if that directory is
3563 # removed, or if the value is a relative name.
3564 MKDIR_P="$ac_install_sh -d"
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3568 $as_echo "$MKDIR_P" >&6; }
3571 mkdir_p="$MKDIR_P"
3572 case $mkdir_p in
3573 [\\/$]* | ?:[\\/]*) ;;
3574 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3575 esac
3577 for ac_prog in gawk mawk nawk awk
3579 # Extract the first word of "$ac_prog", so it can be a program name with args.
3580 set dummy $ac_prog; ac_word=$2
3581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3582 $as_echo_n "checking for $ac_word... " >&6; }
3583 if test "${ac_cv_prog_AWK+set}" = set; then :
3584 $as_echo_n "(cached) " >&6
3585 else
3586 if test -n "$AWK"; then
3587 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3588 else
3589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3590 for as_dir in $PATH
3592 IFS=$as_save_IFS
3593 test -z "$as_dir" && as_dir=.
3594 for ac_exec_ext in '' $ac_executable_extensions; do
3595 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3596 ac_cv_prog_AWK="$ac_prog"
3597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3598 break 2
3600 done
3601 done
3602 IFS=$as_save_IFS
3606 AWK=$ac_cv_prog_AWK
3607 if test -n "$AWK"; then
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3609 $as_echo "$AWK" >&6; }
3610 else
3611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3612 $as_echo "no" >&6; }
3616 test -n "$AWK" && break
3617 done
3619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3620 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3621 set x ${MAKE-make}
3622 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3623 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3624 $as_echo_n "(cached) " >&6
3625 else
3626 cat >conftest.make <<\_ACEOF
3627 SHELL = /bin/sh
3628 all:
3629 @echo '@@@%%%=$(MAKE)=@@@%%%'
3630 _ACEOF
3631 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3632 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3633 *@@@%%%=?*=@@@%%%*)
3634 eval ac_cv_prog_make_${ac_make}_set=yes;;
3636 eval ac_cv_prog_make_${ac_make}_set=no;;
3637 esac
3638 rm -f conftest.make
3640 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3642 $as_echo "yes" >&6; }
3643 SET_MAKE=
3644 else
3645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3646 $as_echo "no" >&6; }
3647 SET_MAKE="MAKE=${MAKE-make}"
3650 rm -rf .tst 2>/dev/null
3651 mkdir .tst 2>/dev/null
3652 if test -d .tst; then
3653 am__leading_dot=.
3654 else
3655 am__leading_dot=_
3657 rmdir .tst 2>/dev/null
3659 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3660 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3661 # is not polluted with repeated "-I."
3662 am__isrc=' -I$(srcdir)'
3663 # test to see if srcdir already configured
3664 if test -f $srcdir/config.status; then
3665 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3669 # test whether we have cygpath
3670 if test -z "$CYGPATH_W"; then
3671 if (cygpath --version) >/dev/null 2>/dev/null; then
3672 CYGPATH_W='cygpath -w'
3673 else
3674 CYGPATH_W=echo
3679 # Define the identity of the package.
3680 PACKAGE='emacs'
3681 VERSION='24.2'
3684 cat >>confdefs.h <<_ACEOF
3685 #define PACKAGE "$PACKAGE"
3686 _ACEOF
3689 cat >>confdefs.h <<_ACEOF
3690 #define VERSION "$VERSION"
3691 _ACEOF
3693 # Some tools Automake needs.
3695 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3698 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3701 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3704 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3707 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3709 # We need awk for the "check" target. The system "awk" is bad on
3710 # some platforms.
3711 # Always define AMTAR for backward compatibility.
3713 AMTAR=${AMTAR-"${am_missing_run}tar"}
3715 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3724 lispdir='${datadir}/emacs/${version}/lisp'
3725 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
3726 '${datadir}/emacs/site-lisp'
3727 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
3728 etcdir='${datadir}/emacs/${version}/etc'
3729 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
3730 docdir='${datadir}/emacs/${version}/etc'
3731 gamedir='${localstatedir}/games/emacs'
3736 # Check whether --with-pop was given.
3737 if test "${with_pop+set}" = set; then :
3738 withval=$with_pop;
3739 else
3740 with_pop=yes
3743 if test "$with_pop" = yes; then
3744 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
3749 # Check whether --with-kerberos was given.
3750 if test "${with_kerberos+set}" = set; then :
3751 withval=$with_kerberos;
3752 else
3753 with_kerberos=no
3756 if test "$with_kerberos" != no; then
3757 $as_echo "#define KERBEROS 1" >>confdefs.h
3762 # Check whether --with-kerberos5 was given.
3763 if test "${with_kerberos5+set}" = set; then :
3764 withval=$with_kerberos5;
3765 else
3766 with_kerberos5=no
3769 if test "${with_kerberos5}" != no; then
3770 if test "${with_kerberos}" = no; then
3771 with_kerberos=yes
3772 $as_echo "#define KERBEROS 1" >>confdefs.h
3776 $as_echo "#define KERBEROS5 1" >>confdefs.h
3781 # Check whether --with-hesiod was given.
3782 if test "${with_hesiod+set}" = set; then :
3783 withval=$with_hesiod;
3784 else
3785 with_hesiod=no
3788 if test "$with_hesiod" != no; then
3790 $as_echo "#define HESIOD 1" >>confdefs.h
3795 # Check whether --with-mmdf was given.
3796 if test "${with_mmdf+set}" = set; then :
3797 withval=$with_mmdf;
3798 else
3799 with_mmdf=no
3802 if test "$with_mmdf" != no; then
3804 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
3809 # Check whether --with-mail-unlink was given.
3810 if test "${with_mail_unlink+set}" = set; then :
3811 withval=$with_mail_unlink;
3812 else
3813 with_mail_unlink=no
3816 if test "$with_mail_unlink" != no; then
3818 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
3823 # Check whether --with-mailhost was given.
3824 if test "${with_mailhost+set}" = set; then :
3825 withval=$with_mailhost;
3826 cat >>confdefs.h <<_ACEOF
3827 #define MAILHOST "$withval"
3828 _ACEOF
3834 # Check whether --with-sound was given.
3835 if test "${with_sound+set}" = set; then :
3836 withval=$with_sound;
3837 else
3838 with_sound=yes
3843 # Check whether --with-sync-input was given.
3844 if test "${with_sync_input+set}" = set; then :
3845 withval=$with_sync_input;
3846 else
3847 with_sync_input=yes
3850 if test "$with_sync_input" = yes; then
3852 $as_echo "#define SYNC_INPUT 1" >>confdefs.h
3857 # Check whether --with-x-toolkit was given.
3858 if test "${with_x_toolkit+set}" = set; then :
3859 withval=$with_x_toolkit; case "${withval}" in
3860 y | ye | yes ) val=gtk ;;
3861 n | no ) val=no ;;
3862 l | lu | luc | luci | lucid ) val=lucid ;;
3863 a | at | ath | athe | athen | athena ) val=athena ;;
3864 m | mo | mot | moti | motif ) val=motif ;;
3865 g | gt | gtk ) val=gtk ;;
3866 gtk3 ) val=gtk3 ;;
3868 as_fn_error "\`--with-x-toolkit=$withval' is invalid;
3869 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk' or
3870 \`gtk3'. \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." "$LINENO" 5
3872 esac
3873 with_x_toolkit=$val
3879 # Check whether --with-wide-int was given.
3880 if test "${with_wide_int+set}" = set; then :
3881 withval=$with_wide_int;
3882 else
3883 with_wide_int=no
3886 if test "$with_wide_int" = yes; then
3888 $as_echo "#define WIDE_EMACS_INT 1" >>confdefs.h
3893 # Check whether --with-xpm was given.
3894 if test "${with_xpm+set}" = set; then :
3895 withval=$with_xpm;
3896 else
3897 with_xpm=yes
3901 # Check whether --with-jpeg was given.
3902 if test "${with_jpeg+set}" = set; then :
3903 withval=$with_jpeg;
3904 else
3905 with_jpeg=yes
3909 # Check whether --with-tiff was given.
3910 if test "${with_tiff+set}" = set; then :
3911 withval=$with_tiff;
3912 else
3913 with_tiff=yes
3917 # Check whether --with-gif was given.
3918 if test "${with_gif+set}" = set; then :
3919 withval=$with_gif;
3920 else
3921 with_gif=yes
3925 # Check whether --with-png was given.
3926 if test "${with_png+set}" = set; then :
3927 withval=$with_png;
3928 else
3929 with_png=yes
3933 # Check whether --with-rsvg was given.
3934 if test "${with_rsvg+set}" = set; then :
3935 withval=$with_rsvg;
3936 else
3937 with_rsvg=yes
3941 # Check whether --with-xml2 was given.
3942 if test "${with_xml2+set}" = set; then :
3943 withval=$with_xml2;
3944 else
3945 with_xml2=yes
3949 # Check whether --with-imagemagick was given.
3950 if test "${with_imagemagick+set}" = set; then :
3951 withval=$with_imagemagick;
3952 else
3953 with_imagemagick=yes
3958 # Check whether --with-xft was given.
3959 if test "${with_xft+set}" = set; then :
3960 withval=$with_xft;
3961 else
3962 with_xft=yes
3966 # Check whether --with-libotf was given.
3967 if test "${with_libotf+set}" = set; then :
3968 withval=$with_libotf;
3969 else
3970 with_libotf=yes
3974 # Check whether --with-m17n-flt was given.
3975 if test "${with_m17n_flt+set}" = set; then :
3976 withval=$with_m17n_flt;
3977 else
3978 with_m17n_flt=yes
3983 # Check whether --with-toolkit-scroll-bars was given.
3984 if test "${with_toolkit_scroll_bars+set}" = set; then :
3985 withval=$with_toolkit_scroll_bars;
3986 else
3987 with_toolkit_scroll_bars=yes
3991 # Check whether --with-xaw3d was given.
3992 if test "${with_xaw3d+set}" = set; then :
3993 withval=$with_xaw3d;
3994 else
3995 with_xaw3d=yes
3999 # Check whether --with-xim was given.
4000 if test "${with_xim+set}" = set; then :
4001 withval=$with_xim;
4002 else
4003 with_xim=yes
4007 # Check whether --with-ns was given.
4008 if test "${with_ns+set}" = set; then :
4009 withval=$with_ns;
4010 else
4011 with_ns=no
4016 # Check whether --with-gpm was given.
4017 if test "${with_gpm+set}" = set; then :
4018 withval=$with_gpm;
4019 else
4020 with_gpm=yes
4024 # Check whether --with-dbus was given.
4025 if test "${with_dbus+set}" = set; then :
4026 withval=$with_dbus;
4027 else
4028 with_dbus=yes
4032 # Check whether --with-gconf was given.
4033 if test "${with_gconf+set}" = set; then :
4034 withval=$with_gconf;
4035 else
4036 with_gconf=yes
4040 # Check whether --with-gsettings was given.
4041 if test "${with_gsettings+set}" = set; then :
4042 withval=$with_gsettings;
4043 else
4044 with_gsettings=yes
4048 # Check whether --with-selinux was given.
4049 if test "${with_selinux+set}" = set; then :
4050 withval=$with_selinux;
4051 else
4052 with_selinux=yes
4056 # Check whether --with-gnutls was given.
4057 if test "${with_gnutls+set}" = set; then :
4058 withval=$with_gnutls;
4059 else
4060 with_gnutls=yes
4064 ## For the times when you want to build Emacs but don't have
4065 ## a suitable makeinfo, and can live without the manuals.
4067 # Check whether --with-makeinfo was given.
4068 if test "${with_makeinfo+set}" = set; then :
4069 withval=$with_makeinfo;
4070 else
4071 with_makeinfo=yes
4075 ## Makefile.in needs the cache file name.
4078 ## This is an option because I do not know if all info/man support
4079 ## compressed files, nor how to test if they do so.
4081 # Check whether --with-compress-info was given.
4082 if test "${with_compress_info+set}" = set; then :
4083 withval=$with_compress_info;
4084 else
4085 with_compress_info=yes
4088 if test $with_compress_info = yes; then
4089 GZIP_INFO=yes
4090 else
4091 GZIP_INFO=
4096 # Check whether --with-pkg-config-prog was given.
4097 if test "${with_pkg_config_prog+set}" = set; then :
4098 withval=$with_pkg_config_prog;
4101 if test "X${with_pkg_config_prog}" != X; then
4102 if test "${with_pkg_config_prog}" != yes; then
4103 PKG_CONFIG="${with_pkg_config_prog}"
4107 CRT_DIR=
4109 # Check whether --with-crt-dir was given.
4110 if test "${with_crt_dir+set}" = set; then :
4111 withval=$with_crt_dir;
4114 CRT_DIR="${with_crt_dir}"
4117 # Check whether --with-gameuser was given.
4118 if test "${with_gameuser+set}" = set; then :
4119 withval=$with_gameuser;
4122 test "X${with_gameuser}" != X && test "${with_gameuser}" != yes \
4123 && gameuser="${with_gameuser}"
4124 test "X$gameuser" = X && gameuser=games
4127 # Check whether --with-gnustep-conf was given.
4128 if test "${with_gnustep_conf+set}" = set; then :
4129 withval=$with_gnustep_conf;
4132 test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
4133 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
4134 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
4135 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
4137 # Check whether --enable-ns-self-contained was given.
4138 if test "${enable_ns_self_contained+set}" = set; then :
4139 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
4140 else
4141 EN_NS_SELF_CONTAINED=yes
4145 # Check whether --enable-asserts was given.
4146 if test "${enable_asserts+set}" = set; then :
4147 enableval=$enable_asserts; USE_XASSERTS=$enableval
4148 else
4149 USE_XASSERTS=no
4153 # Check whether --enable-maintainer-mode was given.
4154 if test "${enable_maintainer_mode+set}" = set; then :
4155 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4156 else
4157 USE_MAINTAINER_MODE=yes
4160 if test $USE_MAINTAINER_MODE = yes; then
4161 MAINT=
4162 else
4163 MAINT=#
4167 # Check whether --enable-locallisppath was given.
4168 if test "${enable_locallisppath+set}" = set; then :
4169 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
4170 locallisppath=
4171 elif test "${enableval}" != "yes"; then
4172 locallisppath=${enableval}
4177 # Check whether --enable-checking was given.
4178 if test "${enable_checking+set}" = set; then :
4179 enableval=$enable_checking; ac_checking_flags="${enableval}"
4182 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
4183 for check in $ac_checking_flags
4185 case $check in
4186 # these set all the flags to specific states
4187 yes) ac_enable_checking=1 ;;
4188 no) ac_enable_checking= ;
4189 ac_gc_check_stringbytes= ;
4190 ac_gc_check_string_overrun= ;
4191 ac_gc_check_string_free_list= ;
4192 ac_xmalloc_overrun= ;
4193 ac_gc_check_cons_list= ;;
4194 all) ac_enable_checking=1 ;
4195 ac_gc_check_stringbytes=1 ;
4196 ac_gc_check_string_overrun=1 ;
4197 ac_gc_check_string_free_list=1 ;
4198 ac_xmalloc_overrun=1 ;
4199 ac_gc_check_cons_list=1 ;;
4200 # these enable particular checks
4201 stringbytes) ac_gc_check_stringbytes=1 ;;
4202 stringoverrun) ac_gc_check_string_overrun=1 ;;
4203 stringfreelist) ac_gc_check_string_free_list=1 ;;
4204 xmallocoverrun) ac_xmalloc_overrun=1 ;;
4205 conslist) ac_gc_check_cons_list=1 ;;
4206 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
4207 esac
4208 done
4209 IFS="$ac_save_IFS"
4211 if test x$ac_enable_checking != x ; then
4213 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
4216 if test x$ac_gc_check_stringbytes != x ; then
4218 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
4221 if test x$ac_gc_check_string_overrun != x ; then
4223 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
4226 if test x$ac_gc_check_string_free_list != x ; then
4228 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
4231 if test x$ac_xmalloc_overrun != x ; then
4233 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
4236 if test x$ac_gc_check_cons_list != x ; then
4238 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
4242 # Check whether --enable-use-lisp-union-type was given.
4243 if test "${enable_use_lisp_union_type+set}" = set; then :
4244 enableval=$enable_use_lisp_union_type; if test "${enableval}" != "no"; then
4246 $as_echo "#define USE_LISP_UNION_TYPE 1" >>confdefs.h
4253 # Check whether --enable-profiling was given.
4254 if test "${enable_profiling+set}" = set; then :
4255 enableval=$enable_profiling; ac_enable_profiling="${enableval}"
4258 if test x$ac_enable_profiling != x ; then
4259 PROFILING_CFLAGS="-DPROFILING=1 -pg"
4260 else
4261 PROFILING_CFLAGS=
4265 # Check whether --enable-autodepend was given.
4266 if test "${enable_autodepend+set}" = set; then :
4267 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}"
4268 else
4269 ac_enable_autodepend=yes
4273 #### Make srcdir absolute, if it isn't already. It's important to
4274 #### avoid running the path through pwd unnecessarily, since pwd can
4275 #### give you automounter prefixes, which can go away. We do all this
4276 #### so Emacs can find its files when run uninstalled.
4277 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
4278 unset CDPATH
4279 case "${srcdir}" in
4280 /* ) ;;
4282 ## We may be able to use the $PWD environment variable to make this
4283 ## absolute. But sometimes PWD is inaccurate.
4284 ## Note: we used to use ${PWD} at the end instead of `pwd`,
4285 ## but that tested only for a well-formed and valid PWD,
4286 ## it did not object when PWD was well-formed and valid but just wrong.
4287 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
4288 then
4289 srcdir="$PWD"
4290 else
4291 srcdir="`(cd ${srcdir}; pwd)`"
4294 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
4295 esac
4297 #### Given the configuration name, set machfile and opsysfile to the
4298 #### names of the m/*.h and s/*.h files we should use.
4300 ### Canonicalize the configuration name.
4302 # Make sure we can run config.sub.
4303 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4304 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4307 $as_echo_n "checking build system type... " >&6; }
4308 if test "${ac_cv_build+set}" = set; then :
4309 $as_echo_n "(cached) " >&6
4310 else
4311 ac_build_alias=$build_alias
4312 test "x$ac_build_alias" = x &&
4313 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4314 test "x$ac_build_alias" = x &&
4315 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4316 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4317 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4321 $as_echo "$ac_cv_build" >&6; }
4322 case $ac_cv_build in
4323 *-*-*) ;;
4324 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4325 esac
4326 build=$ac_cv_build
4327 ac_save_IFS=$IFS; IFS='-'
4328 set x $ac_cv_build
4329 shift
4330 build_cpu=$1
4331 build_vendor=$2
4332 shift; shift
4333 # Remember, the first character of IFS is used to create $*,
4334 # except with old shells:
4335 build_os=$*
4336 IFS=$ac_save_IFS
4337 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4341 $as_echo_n "checking host system type... " >&6; }
4342 if test "${ac_cv_host+set}" = set; then :
4343 $as_echo_n "(cached) " >&6
4344 else
4345 if test "x$host_alias" = x; then
4346 ac_cv_host=$ac_cv_build
4347 else
4348 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4349 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4354 $as_echo "$ac_cv_host" >&6; }
4355 case $ac_cv_host in
4356 *-*-*) ;;
4357 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4358 esac
4359 host=$ac_cv_host
4360 ac_save_IFS=$IFS; IFS='-'
4361 set x $ac_cv_host
4362 shift
4363 host_cpu=$1
4364 host_vendor=$2
4365 shift; shift
4366 # Remember, the first character of IFS is used to create $*,
4367 # except with old shells:
4368 host_os=$*
4369 IFS=$ac_save_IFS
4370 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4373 canonical=$host
4374 configuration=${host_alias-${build_alias-$host}}
4378 ### If you add support for a new configuration, add code to this
4379 ### switch statement to recognize your configuration name and select
4380 ### the appropriate operating system and machine description files.
4382 ### You would hope that you could choose an m/*.h file pretty much
4383 ### based on the machine portion of the configuration name, and an s/*.h
4384 ### file based on the operating system portion. However, it turns out
4385 ### that each m/*.h file is pretty manufacturer-specific - for
4386 ### example mips.h is MIPS
4387 ### So we basically have to have a special case for each
4388 ### configuration name.
4390 ### As far as handling version numbers on operating systems is
4391 ### concerned, make sure things will fail in a fixable way. If
4392 ### /etc/MACHINES doesn't say anything about version numbers, be
4393 ### prepared to handle anything reasonably. If version numbers
4394 ### matter, be sure /etc/MACHINES says something about it.
4396 machine='' opsys='' unported=no
4397 case "${canonical}" in
4399 ## GNU/Linux and similar ports
4400 *-*-linux* )
4401 opsys=gnu-linux
4402 case ${canonical} in
4403 alpha*) machine=alpha ;;
4404 s390x-*) machine=ibms390x ;;
4405 powerpc*) machine=macppc ;;
4406 sparc*) machine=sparc ;;
4407 ia64*) machine=ia64 ;;
4408 m68k*) machine=m68k ;;
4409 x86_64*) machine=amdx86-64 ;;
4410 esac
4413 ## FreeBSD ports
4414 *-*-freebsd* )
4415 opsys=freebsd
4416 case "${canonical}" in
4417 alpha*) machine=alpha ;;
4418 amd64-*|x86_64-*) machine=amdx86-64 ;;
4419 ia64-*) machine=ia64 ;;
4420 i[3456]86-*) machine=intel386 ;;
4421 powerpc-*) machine=macppc ;;
4422 sparc-*) machine=sparc ;;
4423 sparc64-*) machine=sparc ;;
4424 esac
4427 ## FreeBSD kernel + glibc based userland
4428 *-*-kfreebsd*gnu* )
4429 opsys=gnu-kfreebsd
4430 case "${canonical}" in
4431 alpha*) machine=alpha ;;
4432 amd64-*|x86_64-*) machine=amdx86-64 ;;
4433 ia64-*) machine=ia64 ;;
4434 i[3456]86-*) machine=intel386 ;;
4435 powerpc-*) machine=macppc ;;
4436 sparc-*) machine=sparc ;;
4437 sparc64-*) machine=sparc ;;
4438 esac
4441 ## NetBSD ports
4442 *-*-netbsd* )
4443 opsys=netbsd
4444 case "${canonical}" in
4445 alpha*) machine=alpha ;;
4446 x86_64-*) machine=amdx86-64 ;;
4447 i[3456]86-*) machine=intel386 ;;
4448 m68k-*) machine=m68k ;;
4449 powerpc-*) machine=macppc ;;
4450 sparc*-) machine=sparc ;;
4451 vax-*) machine=vax ;;
4452 esac
4455 ## OpenBSD ports
4456 *-*-openbsd* )
4457 opsys=openbsd
4458 case "${canonical}" in
4459 alpha*) machine=alpha ;;
4460 x86_64-*) machine=amdx86-64 ;;
4461 i386-*) machine=intel386 ;;
4462 powerpc-*) machine=macppc ;;
4463 sparc*) machine=sparc ;;
4464 vax-*) machine=vax ;;
4465 esac
4468 ## Apple Darwin / Mac OS X
4469 *-apple-darwin* )
4470 case "${canonical}" in
4471 i[3456]86-* ) machine=intel386 ;;
4472 powerpc-* ) machine=macppc ;;
4473 x86_64-* ) machine=amdx86-64 ;;
4474 * ) unported=yes ;;
4475 esac
4476 opsys=darwin
4477 # Define CPP as follows to make autoconf work correctly.
4478 CPP="${CC-cc} -E -no-cpp-precomp"
4479 # Use fink packages if available.
4480 if test -d /sw/include && test -d /sw/lib; then
4481 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
4482 CPP="${CPP} ${GCC_TEST_OPTIONS}"
4483 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
4487 ## HP 9000 series 700 and 800, running HP/UX
4488 hppa*-hp-hpux10.2* )
4489 opsys=hpux10-20
4491 hppa*-hp-hpux1[1-9]* )
4492 opsys=hpux11
4493 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
4496 ## IBM machines
4497 rs6000-ibm-aix4.[23]* )
4498 machine=ibmrs6000 opsys=aix4-2
4500 powerpc-ibm-aix4.[23]* )
4501 machine=ibmrs6000 opsys=aix4-2
4503 rs6000-ibm-aix[56]* )
4504 machine=ibmrs6000 opsys=aix4-2
4506 powerpc-ibm-aix[56]* )
4507 machine=ibmrs6000 opsys=aix4-2
4510 ## Silicon Graphics machines
4511 ## Iris 4D
4512 mips-sgi-irix6.5 )
4513 opsys=irix6-5
4514 # Without defining _LANGUAGE_C, things get masked out in the headers
4515 # so that, for instance, grepping for `free' in stdlib.h fails and
4516 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
4517 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
4518 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
4521 ## Suns
4522 *-sun-solaris* \
4523 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* \
4524 | x86_64-*-solaris2* | x86_64-*-sunos5*)
4525 case "${canonical}" in
4526 i[3456]86-*-* ) machine=intel386 ;;
4527 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
4528 sparc* ) machine=sparc ;;
4529 * ) unported=yes ;;
4530 esac
4531 case "${canonical}" in
4532 *-sunos5.6* | *-solaris2.6* )
4533 opsys=sol2-6
4534 NON_GNU_CPP=/usr/ccs/lib/cpp
4535 RANLIB="ar -ts"
4537 *-sunos5.[7-9]* | *-solaris2.[7-9]* )
4538 opsys=sol2-6
4539 emacs_check_sunpro_c=yes
4540 NON_GNU_CPP=/usr/ccs/lib/cpp
4542 *-sunos5* | *-solaris* )
4543 opsys=sol2-10
4544 emacs_check_sunpro_c=yes
4545 NON_GNU_CPP=/usr/ccs/lib/cpp
4547 esac
4548 ## Watch out for a compiler that we know will not work.
4549 case "${canonical}" in
4550 *-solaris* | *-sunos5* )
4551 if [ "x$CC" = x/usr/ucb/cc ]; then
4552 ## /usr/ucb/cc doesn't work;
4553 ## we should find some other compiler that does work.
4554 unset CC
4557 *) ;;
4558 esac
4561 ## Intel 386 machines where we don't care about the manufacturer.
4562 i[3456]86-*-* )
4563 machine=intel386
4564 case "${canonical}" in
4565 *-cygwin ) opsys=cygwin ;;
4566 *-darwin* ) opsys=darwin
4567 CPP="${CC-cc} -E -no-cpp-precomp"
4569 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
4570 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
4571 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
4572 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
4573 esac
4577 unported=yes
4579 esac
4581 ### If the code above didn't choose an operating system, just choose
4582 ### an operating system based on the configuration name. You really
4583 ### only want to use this when you have no idea what the right
4584 ### operating system is; if you know what operating systems a machine
4585 ### runs, it's cleaner to make it explicit in the case statement
4586 ### above.
4587 if test x"${opsys}" = x; then
4588 case "${canonical}" in
4589 *-gnu* ) opsys=gnu ;;
4591 unported=yes
4593 esac
4598 if test $unported = yes; then
4599 as_fn_error "Emacs hasn't been ported to \`${canonical}' systems.
4600 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
4603 if test -n "$machine"; then
4604 machfile="m/${machine}.h"
4605 else
4606 machfile=
4608 opsysfile="s/${opsys}.h"
4611 #### Choose a compiler.
4612 test -n "$CC" && cc_specified=yes
4614 # Save the value of CFLAGS that the user specified.
4615 SPECIFIED_CFLAGS="$CFLAGS"
4617 ac_ext=c
4618 ac_cpp='$CPP $CPPFLAGS'
4619 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4620 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4621 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4622 if test -n "$ac_tool_prefix"; then
4623 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4624 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4626 $as_echo_n "checking for $ac_word... " >&6; }
4627 if test "${ac_cv_prog_CC+set}" = set; then :
4628 $as_echo_n "(cached) " >&6
4629 else
4630 if test -n "$CC"; then
4631 ac_cv_prog_CC="$CC" # Let the user override the test.
4632 else
4633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4634 for as_dir in $PATH
4636 IFS=$as_save_IFS
4637 test -z "$as_dir" && as_dir=.
4638 for ac_exec_ext in '' $ac_executable_extensions; do
4639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4640 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4642 break 2
4644 done
4645 done
4646 IFS=$as_save_IFS
4650 CC=$ac_cv_prog_CC
4651 if test -n "$CC"; then
4652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4653 $as_echo "$CC" >&6; }
4654 else
4655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4656 $as_echo "no" >&6; }
4661 if test -z "$ac_cv_prog_CC"; then
4662 ac_ct_CC=$CC
4663 # Extract the first word of "gcc", so it can be a program name with args.
4664 set dummy gcc; ac_word=$2
4665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4666 $as_echo_n "checking for $ac_word... " >&6; }
4667 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4668 $as_echo_n "(cached) " >&6
4669 else
4670 if test -n "$ac_ct_CC"; then
4671 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4672 else
4673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4674 for as_dir in $PATH
4676 IFS=$as_save_IFS
4677 test -z "$as_dir" && as_dir=.
4678 for ac_exec_ext in '' $ac_executable_extensions; do
4679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4680 ac_cv_prog_ac_ct_CC="gcc"
4681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4682 break 2
4684 done
4685 done
4686 IFS=$as_save_IFS
4690 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4691 if test -n "$ac_ct_CC"; then
4692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4693 $as_echo "$ac_ct_CC" >&6; }
4694 else
4695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4696 $as_echo "no" >&6; }
4699 if test "x$ac_ct_CC" = x; then
4700 CC=""
4701 else
4702 case $cross_compiling:$ac_tool_warned in
4703 yes:)
4704 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4705 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4706 ac_tool_warned=yes ;;
4707 esac
4708 CC=$ac_ct_CC
4710 else
4711 CC="$ac_cv_prog_CC"
4714 if test -z "$CC"; then
4715 if test -n "$ac_tool_prefix"; then
4716 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4717 set dummy ${ac_tool_prefix}cc; ac_word=$2
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4719 $as_echo_n "checking for $ac_word... " >&6; }
4720 if test "${ac_cv_prog_CC+set}" = set; then :
4721 $as_echo_n "(cached) " >&6
4722 else
4723 if test -n "$CC"; then
4724 ac_cv_prog_CC="$CC" # Let the user override the test.
4725 else
4726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4727 for as_dir in $PATH
4729 IFS=$as_save_IFS
4730 test -z "$as_dir" && as_dir=.
4731 for ac_exec_ext in '' $ac_executable_extensions; do
4732 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4733 ac_cv_prog_CC="${ac_tool_prefix}cc"
4734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4735 break 2
4737 done
4738 done
4739 IFS=$as_save_IFS
4743 CC=$ac_cv_prog_CC
4744 if test -n "$CC"; then
4745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4746 $as_echo "$CC" >&6; }
4747 else
4748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4749 $as_echo "no" >&6; }
4755 if test -z "$CC"; then
4756 # Extract the first word of "cc", so it can be a program name with args.
4757 set dummy cc; ac_word=$2
4758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4759 $as_echo_n "checking for $ac_word... " >&6; }
4760 if test "${ac_cv_prog_CC+set}" = set; then :
4761 $as_echo_n "(cached) " >&6
4762 else
4763 if test -n "$CC"; then
4764 ac_cv_prog_CC="$CC" # Let the user override the test.
4765 else
4766 ac_prog_rejected=no
4767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4768 for as_dir in $PATH
4770 IFS=$as_save_IFS
4771 test -z "$as_dir" && as_dir=.
4772 for ac_exec_ext in '' $ac_executable_extensions; do
4773 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4774 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4775 ac_prog_rejected=yes
4776 continue
4778 ac_cv_prog_CC="cc"
4779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4780 break 2
4782 done
4783 done
4784 IFS=$as_save_IFS
4786 if test $ac_prog_rejected = yes; then
4787 # We found a bogon in the path, so make sure we never use it.
4788 set dummy $ac_cv_prog_CC
4789 shift
4790 if test $# != 0; then
4791 # We chose a different compiler from the bogus one.
4792 # However, it has the same basename, so the bogon will be chosen
4793 # first if we set CC to just the basename; use the full file name.
4794 shift
4795 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4800 CC=$ac_cv_prog_CC
4801 if test -n "$CC"; then
4802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4803 $as_echo "$CC" >&6; }
4804 else
4805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4806 $as_echo "no" >&6; }
4811 if test -z "$CC"; then
4812 if test -n "$ac_tool_prefix"; then
4813 for ac_prog in cl.exe
4815 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4816 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4818 $as_echo_n "checking for $ac_word... " >&6; }
4819 if test "${ac_cv_prog_CC+set}" = set; then :
4820 $as_echo_n "(cached) " >&6
4821 else
4822 if test -n "$CC"; then
4823 ac_cv_prog_CC="$CC" # Let the user override the test.
4824 else
4825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4826 for as_dir in $PATH
4828 IFS=$as_save_IFS
4829 test -z "$as_dir" && as_dir=.
4830 for ac_exec_ext in '' $ac_executable_extensions; do
4831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4832 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4834 break 2
4836 done
4837 done
4838 IFS=$as_save_IFS
4842 CC=$ac_cv_prog_CC
4843 if test -n "$CC"; then
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4845 $as_echo "$CC" >&6; }
4846 else
4847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4848 $as_echo "no" >&6; }
4852 test -n "$CC" && break
4853 done
4855 if test -z "$CC"; then
4856 ac_ct_CC=$CC
4857 for ac_prog in cl.exe
4859 # Extract the first word of "$ac_prog", so it can be a program name with args.
4860 set dummy $ac_prog; ac_word=$2
4861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4862 $as_echo_n "checking for $ac_word... " >&6; }
4863 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4864 $as_echo_n "(cached) " >&6
4865 else
4866 if test -n "$ac_ct_CC"; then
4867 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4868 else
4869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4870 for as_dir in $PATH
4872 IFS=$as_save_IFS
4873 test -z "$as_dir" && as_dir=.
4874 for ac_exec_ext in '' $ac_executable_extensions; do
4875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4876 ac_cv_prog_ac_ct_CC="$ac_prog"
4877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4878 break 2
4880 done
4881 done
4882 IFS=$as_save_IFS
4886 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4887 if test -n "$ac_ct_CC"; then
4888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4889 $as_echo "$ac_ct_CC" >&6; }
4890 else
4891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4892 $as_echo "no" >&6; }
4896 test -n "$ac_ct_CC" && break
4897 done
4899 if test "x$ac_ct_CC" = x; then
4900 CC=""
4901 else
4902 case $cross_compiling:$ac_tool_warned in
4903 yes:)
4904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4905 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4906 ac_tool_warned=yes ;;
4907 esac
4908 CC=$ac_ct_CC
4915 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4916 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4917 as_fn_error "no acceptable C compiler found in \$PATH
4918 See \`config.log' for more details." "$LINENO" 5; }
4920 # Provide some information about the compiler.
4921 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4922 set X $ac_compile
4923 ac_compiler=$2
4924 for ac_option in --version -v -V -qversion; do
4925 { { ac_try="$ac_compiler $ac_option >&5"
4926 case "(($ac_try" in
4927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4928 *) ac_try_echo=$ac_try;;
4929 esac
4930 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4931 $as_echo "$ac_try_echo"; } >&5
4932 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4933 ac_status=$?
4934 if test -s conftest.err; then
4935 sed '10a\
4936 ... rest of stderr output deleted ...
4937 10q' conftest.err >conftest.er1
4938 cat conftest.er1 >&5
4940 rm -f conftest.er1 conftest.err
4941 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4942 test $ac_status = 0; }
4943 done
4945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4946 /* end confdefs.h. */
4949 main ()
4953 return 0;
4955 _ACEOF
4956 ac_clean_files_save=$ac_clean_files
4957 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4958 # Try to create an executable without -o first, disregard a.out.
4959 # It will help us diagnose broken compilers, and finding out an intuition
4960 # of exeext.
4961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4962 $as_echo_n "checking whether the C compiler works... " >&6; }
4963 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4965 # The possible output files:
4966 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4968 ac_rmfiles=
4969 for ac_file in $ac_files
4971 case $ac_file in
4972 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4973 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4974 esac
4975 done
4976 rm -f $ac_rmfiles
4978 if { { ac_try="$ac_link_default"
4979 case "(($ac_try" in
4980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4981 *) ac_try_echo=$ac_try;;
4982 esac
4983 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4984 $as_echo "$ac_try_echo"; } >&5
4985 (eval "$ac_link_default") 2>&5
4986 ac_status=$?
4987 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4988 test $ac_status = 0; }; then :
4989 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4990 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4991 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4992 # so that the user can short-circuit this test for compilers unknown to
4993 # Autoconf.
4994 for ac_file in $ac_files ''
4996 test -f "$ac_file" || continue
4997 case $ac_file in
4998 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
5000 [ab].out )
5001 # We found the default executable, but exeext='' is most
5002 # certainly right.
5003 break;;
5004 *.* )
5005 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
5006 then :; else
5007 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5009 # We set ac_cv_exeext here because the later test for it is not
5010 # safe: cross compilers may not add the suffix if given an `-o'
5011 # argument, so we may need to know it at that point already.
5012 # Even if this section looks crufty: it has the advantage of
5013 # actually working.
5014 break;;
5016 break;;
5017 esac
5018 done
5019 test "$ac_cv_exeext" = no && ac_cv_exeext=
5021 else
5022 ac_file=''
5024 if test -z "$ac_file"; then :
5025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5026 $as_echo "no" >&6; }
5027 $as_echo "$as_me: failed program was:" >&5
5028 sed 's/^/| /' conftest.$ac_ext >&5
5030 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5031 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5032 { as_fn_set_status 77
5033 as_fn_error "C compiler cannot create executables
5034 See \`config.log' for more details." "$LINENO" 5; }; }
5035 else
5036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5037 $as_echo "yes" >&6; }
5039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5040 $as_echo_n "checking for C compiler default output file name... " >&6; }
5041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5042 $as_echo "$ac_file" >&6; }
5043 ac_exeext=$ac_cv_exeext
5045 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
5046 ac_clean_files=$ac_clean_files_save
5047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5048 $as_echo_n "checking for suffix of executables... " >&6; }
5049 if { { ac_try="$ac_link"
5050 case "(($ac_try" in
5051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5052 *) ac_try_echo=$ac_try;;
5053 esac
5054 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5055 $as_echo "$ac_try_echo"; } >&5
5056 (eval "$ac_link") 2>&5
5057 ac_status=$?
5058 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5059 test $ac_status = 0; }; then :
5060 # If both `conftest.exe' and `conftest' are `present' (well, observable)
5061 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
5062 # work properly (i.e., refer to `conftest.exe'), while it won't with
5063 # `rm'.
5064 for ac_file in conftest.exe conftest conftest.*; do
5065 test -f "$ac_file" || continue
5066 case $ac_file in
5067 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5068 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5069 break;;
5070 * ) break;;
5071 esac
5072 done
5073 else
5074 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5075 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5076 as_fn_error "cannot compute suffix of executables: cannot compile and link
5077 See \`config.log' for more details." "$LINENO" 5; }
5079 rm -f conftest conftest$ac_cv_exeext
5080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5081 $as_echo "$ac_cv_exeext" >&6; }
5083 rm -f conftest.$ac_ext
5084 EXEEXT=$ac_cv_exeext
5085 ac_exeext=$EXEEXT
5086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5087 /* end confdefs.h. */
5088 #include <stdio.h>
5090 main ()
5092 FILE *f = fopen ("conftest.out", "w");
5093 return ferror (f) || fclose (f) != 0;
5096 return 0;
5098 _ACEOF
5099 ac_clean_files="$ac_clean_files conftest.out"
5100 # Check that the compiler produces executables we can run. If not, either
5101 # the compiler is broken, or we cross compile.
5102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5103 $as_echo_n "checking whether we are cross compiling... " >&6; }
5104 if test "$cross_compiling" != yes; then
5105 { { ac_try="$ac_link"
5106 case "(($ac_try" in
5107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5108 *) ac_try_echo=$ac_try;;
5109 esac
5110 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5111 $as_echo "$ac_try_echo"; } >&5
5112 (eval "$ac_link") 2>&5
5113 ac_status=$?
5114 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5115 test $ac_status = 0; }
5116 if { ac_try='./conftest$ac_cv_exeext'
5117 { { case "(($ac_try" in
5118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5119 *) ac_try_echo=$ac_try;;
5120 esac
5121 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5122 $as_echo "$ac_try_echo"; } >&5
5123 (eval "$ac_try") 2>&5
5124 ac_status=$?
5125 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5126 test $ac_status = 0; }; }; then
5127 cross_compiling=no
5128 else
5129 if test "$cross_compiling" = maybe; then
5130 cross_compiling=yes
5131 else
5132 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5133 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5134 as_fn_error "cannot run C compiled programs.
5135 If you meant to cross compile, use \`--host'.
5136 See \`config.log' for more details." "$LINENO" 5; }
5140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5141 $as_echo "$cross_compiling" >&6; }
5143 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5144 ac_clean_files=$ac_clean_files_save
5145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5146 $as_echo_n "checking for suffix of object files... " >&6; }
5147 if test "${ac_cv_objext+set}" = set; then :
5148 $as_echo_n "(cached) " >&6
5149 else
5150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5151 /* end confdefs.h. */
5154 main ()
5158 return 0;
5160 _ACEOF
5161 rm -f conftest.o conftest.obj
5162 if { { ac_try="$ac_compile"
5163 case "(($ac_try" in
5164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5165 *) ac_try_echo=$ac_try;;
5166 esac
5167 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5168 $as_echo "$ac_try_echo"; } >&5
5169 (eval "$ac_compile") 2>&5
5170 ac_status=$?
5171 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5172 test $ac_status = 0; }; then :
5173 for ac_file in conftest.o conftest.obj conftest.*; do
5174 test -f "$ac_file" || continue;
5175 case $ac_file in
5176 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5177 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5178 break;;
5179 esac
5180 done
5181 else
5182 $as_echo "$as_me: failed program was:" >&5
5183 sed 's/^/| /' conftest.$ac_ext >&5
5185 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5186 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5187 as_fn_error "cannot compute suffix of object files: cannot compile
5188 See \`config.log' for more details." "$LINENO" 5; }
5190 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5193 $as_echo "$ac_cv_objext" >&6; }
5194 OBJEXT=$ac_cv_objext
5195 ac_objext=$OBJEXT
5196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5197 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5198 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5199 $as_echo_n "(cached) " >&6
5200 else
5201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5202 /* end confdefs.h. */
5205 main ()
5207 #ifndef __GNUC__
5208 choke me
5209 #endif
5212 return 0;
5214 _ACEOF
5215 if ac_fn_c_try_compile "$LINENO"; then :
5216 ac_compiler_gnu=yes
5217 else
5218 ac_compiler_gnu=no
5220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5221 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5225 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5226 if test $ac_compiler_gnu = yes; then
5227 GCC=yes
5228 else
5229 GCC=
5231 ac_test_CFLAGS=${CFLAGS+set}
5232 ac_save_CFLAGS=$CFLAGS
5233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5234 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5235 if test "${ac_cv_prog_cc_g+set}" = set; then :
5236 $as_echo_n "(cached) " >&6
5237 else
5238 ac_save_c_werror_flag=$ac_c_werror_flag
5239 ac_c_werror_flag=yes
5240 ac_cv_prog_cc_g=no
5241 CFLAGS="-g"
5242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5243 /* end confdefs.h. */
5246 main ()
5250 return 0;
5252 _ACEOF
5253 if ac_fn_c_try_compile "$LINENO"; then :
5254 ac_cv_prog_cc_g=yes
5255 else
5256 CFLAGS=""
5257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5258 /* end confdefs.h. */
5261 main ()
5265 return 0;
5267 _ACEOF
5268 if ac_fn_c_try_compile "$LINENO"; then :
5270 else
5271 ac_c_werror_flag=$ac_save_c_werror_flag
5272 CFLAGS="-g"
5273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5274 /* end confdefs.h. */
5277 main ()
5281 return 0;
5283 _ACEOF
5284 if ac_fn_c_try_compile "$LINENO"; then :
5285 ac_cv_prog_cc_g=yes
5287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5292 ac_c_werror_flag=$ac_save_c_werror_flag
5294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5295 $as_echo "$ac_cv_prog_cc_g" >&6; }
5296 if test "$ac_test_CFLAGS" = set; then
5297 CFLAGS=$ac_save_CFLAGS
5298 elif test $ac_cv_prog_cc_g = yes; then
5299 if test "$GCC" = yes; then
5300 CFLAGS="-g -O2"
5301 else
5302 CFLAGS="-g"
5304 else
5305 if test "$GCC" = yes; then
5306 CFLAGS="-O2"
5307 else
5308 CFLAGS=
5311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5312 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5313 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5314 $as_echo_n "(cached) " >&6
5315 else
5316 ac_cv_prog_cc_c89=no
5317 ac_save_CC=$CC
5318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5319 /* end confdefs.h. */
5320 #include <stdarg.h>
5321 #include <stdio.h>
5322 #include <sys/types.h>
5323 #include <sys/stat.h>
5324 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5325 struct buf { int x; };
5326 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5327 static char *e (p, i)
5328 char **p;
5329 int i;
5331 return p[i];
5333 static char *f (char * (*g) (char **, int), char **p, ...)
5335 char *s;
5336 va_list v;
5337 va_start (v,p);
5338 s = g (p, va_arg (v,int));
5339 va_end (v);
5340 return s;
5343 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5344 function prototypes and stuff, but not '\xHH' hex character constants.
5345 These don't provoke an error unfortunately, instead are silently treated
5346 as 'x'. The following induces an error, until -std is added to get
5347 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5348 array size at least. It's necessary to write '\x00'==0 to get something
5349 that's true only with -std. */
5350 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5352 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5353 inside strings and character constants. */
5354 #define FOO(x) 'x'
5355 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5357 int test (int i, double x);
5358 struct s1 {int (*f) (int a);};
5359 struct s2 {int (*f) (double a);};
5360 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5361 int argc;
5362 char **argv;
5364 main ()
5366 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5368 return 0;
5370 _ACEOF
5371 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5372 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5374 CC="$ac_save_CC $ac_arg"
5375 if ac_fn_c_try_compile "$LINENO"; then :
5376 ac_cv_prog_cc_c89=$ac_arg
5378 rm -f core conftest.err conftest.$ac_objext
5379 test "x$ac_cv_prog_cc_c89" != "xno" && break
5380 done
5381 rm -f conftest.$ac_ext
5382 CC=$ac_save_CC
5385 # AC_CACHE_VAL
5386 case "x$ac_cv_prog_cc_c89" in
5388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5389 $as_echo "none needed" >&6; } ;;
5390 xno)
5391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5392 $as_echo "unsupported" >&6; } ;;
5394 CC="$CC $ac_cv_prog_cc_c89"
5395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5396 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5397 esac
5398 if test "x$ac_cv_prog_cc_c89" != xno; then :
5402 ac_ext=c
5403 ac_cpp='$CPP $CPPFLAGS'
5404 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5405 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5406 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5407 DEPDIR="${am__leading_dot}deps"
5409 ac_config_commands="$ac_config_commands depfiles"
5412 am_make=${MAKE-make}
5413 cat > confinc << 'END'
5414 am__doit:
5415 @echo this is the am__doit target
5416 .PHONY: am__doit
5418 # If we don't find an include directive, just comment out the code.
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5420 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5421 am__include="#"
5422 am__quote=
5423 _am_result=none
5424 # First try GNU make style include.
5425 echo "include confinc" > confmf
5426 # Ignore all kinds of additional output from `make'.
5427 case `$am_make -s -f confmf 2> /dev/null` in #(
5428 *the\ am__doit\ target*)
5429 am__include=include
5430 am__quote=
5431 _am_result=GNU
5433 esac
5434 # Now try BSD make style include.
5435 if test "$am__include" = "#"; then
5436 echo '.include "confinc"' > confmf
5437 case `$am_make -s -f confmf 2> /dev/null` in #(
5438 *the\ am__doit\ target*)
5439 am__include=.include
5440 am__quote="\""
5441 _am_result=BSD
5443 esac
5447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5448 $as_echo "$_am_result" >&6; }
5449 rm -f confinc confmf
5451 # Check whether --enable-dependency-tracking was given.
5452 if test "${enable_dependency_tracking+set}" = set; then :
5453 enableval=$enable_dependency_tracking;
5456 if test "x$enable_dependency_tracking" != xno; then
5457 am_depcomp="$ac_aux_dir/depcomp"
5458 AMDEPBACKSLASH='\'
5460 if test "x$enable_dependency_tracking" != xno; then
5461 AMDEP_TRUE=
5462 AMDEP_FALSE='#'
5463 else
5464 AMDEP_TRUE='#'
5465 AMDEP_FALSE=
5470 depcc="$CC" am_compiler_list=
5472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5473 $as_echo_n "checking dependency style of $depcc... " >&6; }
5474 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5475 $as_echo_n "(cached) " >&6
5476 else
5477 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5478 # We make a subdir and do the tests there. Otherwise we can end up
5479 # making bogus files that we don't know about and never remove. For
5480 # instance it was reported that on HP-UX the gcc test will end up
5481 # making a dummy file named `D' -- because `-MD' means `put the output
5482 # in D'.
5483 mkdir conftest.dir
5484 # Copy depcomp to subdir because otherwise we won't find it if we're
5485 # using a relative directory.
5486 cp "$am_depcomp" conftest.dir
5487 cd conftest.dir
5488 # We will build objects and dependencies in a subdirectory because
5489 # it helps to detect inapplicable dependency modes. For instance
5490 # both Tru64's cc and ICC support -MD to output dependencies as a
5491 # side effect of compilation, but ICC will put the dependencies in
5492 # the current directory while Tru64 will put them in the object
5493 # directory.
5494 mkdir sub
5496 am_cv_CC_dependencies_compiler_type=none
5497 if test "$am_compiler_list" = ""; then
5498 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5500 am__universal=false
5501 case " $depcc " in #(
5502 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5503 esac
5505 for depmode in $am_compiler_list; do
5506 # Setup a source with many dependencies, because some compilers
5507 # like to wrap large dependency lists on column 80 (with \), and
5508 # we should not choose a depcomp mode which is confused by this.
5510 # We need to recreate these files for each test, as the compiler may
5511 # overwrite some of them when testing with obscure command lines.
5512 # This happens at least with the AIX C compiler.
5513 : > sub/conftest.c
5514 for i in 1 2 3 4 5 6; do
5515 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5516 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5517 # Solaris 8's {/usr,}/bin/sh.
5518 touch sub/conftst$i.h
5519 done
5520 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5522 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5523 # mode. It turns out that the SunPro C++ compiler does not properly
5524 # handle `-M -o', and we need to detect this. Also, some Intel
5525 # versions had trouble with output in subdirs
5526 am__obj=sub/conftest.${OBJEXT-o}
5527 am__minus_obj="-o $am__obj"
5528 case $depmode in
5529 gcc)
5530 # This depmode causes a compiler race in universal mode.
5531 test "$am__universal" = false || continue
5533 nosideeffect)
5534 # after this tag, mechanisms are not by side-effect, so they'll
5535 # only be used when explicitly requested
5536 if test "x$enable_dependency_tracking" = xyes; then
5537 continue
5538 else
5539 break
5542 msvisualcpp | msvcmsys)
5543 # This compiler won't grok `-c -o', but also, the minuso test has
5544 # not run yet. These depmodes are late enough in the game, and
5545 # so weak that their functioning should not be impacted.
5546 am__obj=conftest.${OBJEXT-o}
5547 am__minus_obj=
5549 none) break ;;
5550 esac
5551 if depmode=$depmode \
5552 source=sub/conftest.c object=$am__obj \
5553 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5554 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5555 >/dev/null 2>conftest.err &&
5556 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5557 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5558 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5559 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5560 # icc doesn't choke on unknown options, it will just issue warnings
5561 # or remarks (even with -Werror). So we grep stderr for any message
5562 # that says an option was ignored or not supported.
5563 # When given -MP, icc 7.0 and 7.1 complain thusly:
5564 # icc: Command line warning: ignoring option '-M'; no argument required
5565 # The diagnosis changed in icc 8.0:
5566 # icc: Command line remark: option '-MP' not supported
5567 if (grep 'ignoring option' conftest.err ||
5568 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5569 am_cv_CC_dependencies_compiler_type=$depmode
5570 break
5573 done
5575 cd ..
5576 rm -rf conftest.dir
5577 else
5578 am_cv_CC_dependencies_compiler_type=none
5582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5583 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5584 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5587 test "x$enable_dependency_tracking" != xno \
5588 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5589 am__fastdepCC_TRUE=
5590 am__fastdepCC_FALSE='#'
5591 else
5592 am__fastdepCC_TRUE='#'
5593 am__fastdepCC_FALSE=
5597 if test "x$CC" != xcc; then
5598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5599 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5600 else
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5602 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5604 set dummy $CC; ac_cc=`$as_echo "$2" |
5605 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5606 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
5607 $as_echo_n "(cached) " >&6
5608 else
5609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5610 /* end confdefs.h. */
5613 main ()
5617 return 0;
5619 _ACEOF
5620 # Make sure it works both with $CC and with simple cc.
5621 # We do the test twice because some compilers refuse to overwrite an
5622 # existing .o file with -o, though they will create one.
5623 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5624 rm -f conftest2.*
5625 if { { case "(($ac_try" in
5626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5627 *) ac_try_echo=$ac_try;;
5628 esac
5629 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5630 $as_echo "$ac_try_echo"; } >&5
5631 (eval "$ac_try") 2>&5
5632 ac_status=$?
5633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5634 test $ac_status = 0; } &&
5635 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5637 *) ac_try_echo=$ac_try;;
5638 esac
5639 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5640 $as_echo "$ac_try_echo"; } >&5
5641 (eval "$ac_try") 2>&5
5642 ac_status=$?
5643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5644 test $ac_status = 0; };
5645 then
5646 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5647 if test "x$CC" != xcc; then
5648 # Test first that cc exists at all.
5649 if { ac_try='cc -c conftest.$ac_ext >&5'
5650 { { case "(($ac_try" in
5651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5652 *) ac_try_echo=$ac_try;;
5653 esac
5654 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5655 $as_echo "$ac_try_echo"; } >&5
5656 (eval "$ac_try") 2>&5
5657 ac_status=$?
5658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5659 test $ac_status = 0; }; }; then
5660 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5661 rm -f conftest2.*
5662 if { { case "(($ac_try" in
5663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5664 *) ac_try_echo=$ac_try;;
5665 esac
5666 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5667 $as_echo "$ac_try_echo"; } >&5
5668 (eval "$ac_try") 2>&5
5669 ac_status=$?
5670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5671 test $ac_status = 0; } &&
5672 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5674 *) ac_try_echo=$ac_try;;
5675 esac
5676 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5677 $as_echo "$ac_try_echo"; } >&5
5678 (eval "$ac_try") 2>&5
5679 ac_status=$?
5680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5681 test $ac_status = 0; };
5682 then
5683 # cc works too.
5685 else
5686 # cc exists but doesn't like -o.
5687 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5691 else
5692 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5694 rm -f core conftest*
5697 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5699 $as_echo "yes" >&6; }
5700 else
5701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5702 $as_echo "no" >&6; }
5704 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5708 # FIXME: we rely on the cache variable name because
5709 # there is no other way.
5710 set dummy $CC
5711 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5712 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5713 if test "$am_t" != yes; then
5714 # Losing compiler, so override with the script.
5715 # FIXME: It is wrong to rewrite CC.
5716 # But if we don't then we get into trouble of one sort or another.
5717 # A longer-term fix would be to have automake use am__CC in this case,
5718 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5719 CC="$am_aux_dir/compile $CC"
5724 # Initialize gnulib right after verifying that the C compiler works.
5726 ac_ext=c
5727 ac_cpp='$CPP $CPPFLAGS'
5728 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5729 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5730 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5732 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5733 # On Suns, sometimes $CPP names a directory.
5734 if test -n "$CPP" && test -d "$CPP"; then
5735 CPP=
5737 if test -z "$CPP"; then
5738 if test "${ac_cv_prog_CPP+set}" = set; then :
5739 $as_echo_n "(cached) " >&6
5740 else
5741 # Double quotes because CPP needs to be expanded
5742 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5744 ac_preproc_ok=false
5745 for ac_c_preproc_warn_flag in '' yes
5747 # Use a header file that comes with gcc, so configuring glibc
5748 # with a fresh cross-compiler works.
5749 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5750 # <limits.h> exists even on freestanding compilers.
5751 # On the NeXT, cc -E runs the code through the compiler's parser,
5752 # not just through cpp. "Syntax error" is here to catch this case.
5753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5754 /* end confdefs.h. */
5755 #ifdef __STDC__
5756 # include <limits.h>
5757 #else
5758 # include <assert.h>
5759 #endif
5760 Syntax error
5761 _ACEOF
5762 if ac_fn_c_try_cpp "$LINENO"; then :
5764 else
5765 # Broken: fails on valid input.
5766 continue
5768 rm -f conftest.err conftest.$ac_ext
5770 # OK, works on sane cases. Now check whether nonexistent headers
5771 # can be detected and how.
5772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5773 /* end confdefs.h. */
5774 #include <ac_nonexistent.h>
5775 _ACEOF
5776 if ac_fn_c_try_cpp "$LINENO"; then :
5777 # Broken: success on invalid input.
5778 continue
5779 else
5780 # Passes both tests.
5781 ac_preproc_ok=:
5782 break
5784 rm -f conftest.err conftest.$ac_ext
5786 done
5787 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5788 rm -f conftest.err conftest.$ac_ext
5789 if $ac_preproc_ok; then :
5790 break
5793 done
5794 ac_cv_prog_CPP=$CPP
5797 CPP=$ac_cv_prog_CPP
5798 else
5799 ac_cv_prog_CPP=$CPP
5801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5802 $as_echo "$CPP" >&6; }
5803 ac_preproc_ok=false
5804 for ac_c_preproc_warn_flag in '' yes
5806 # Use a header file that comes with gcc, so configuring glibc
5807 # with a fresh cross-compiler works.
5808 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5809 # <limits.h> exists even on freestanding compilers.
5810 # On the NeXT, cc -E runs the code through the compiler's parser,
5811 # not just through cpp. "Syntax error" is here to catch this case.
5812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5813 /* end confdefs.h. */
5814 #ifdef __STDC__
5815 # include <limits.h>
5816 #else
5817 # include <assert.h>
5818 #endif
5819 Syntax error
5820 _ACEOF
5821 if ac_fn_c_try_cpp "$LINENO"; then :
5823 else
5824 # Broken: fails on valid input.
5825 continue
5827 rm -f conftest.err conftest.$ac_ext
5829 # OK, works on sane cases. Now check whether nonexistent headers
5830 # can be detected and how.
5831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5832 /* end confdefs.h. */
5833 #include <ac_nonexistent.h>
5834 _ACEOF
5835 if ac_fn_c_try_cpp "$LINENO"; then :
5836 # Broken: success on invalid input.
5837 continue
5838 else
5839 # Passes both tests.
5840 ac_preproc_ok=:
5841 break
5843 rm -f conftest.err conftest.$ac_ext
5845 done
5846 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5847 rm -f conftest.err conftest.$ac_ext
5848 if $ac_preproc_ok; then :
5850 else
5851 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5852 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5853 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5854 See \`config.log' for more details." "$LINENO" 5; }
5857 ac_ext=c
5858 ac_cpp='$CPP $CPPFLAGS'
5859 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5860 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5861 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5865 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5866 if test "${ac_cv_path_GREP+set}" = set; then :
5867 $as_echo_n "(cached) " >&6
5868 else
5869 if test -z "$GREP"; then
5870 ac_path_GREP_found=false
5871 # Loop through the user's path and test for each of PROGNAME-LIST
5872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5873 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5875 IFS=$as_save_IFS
5876 test -z "$as_dir" && as_dir=.
5877 for ac_prog in grep ggrep; do
5878 for ac_exec_ext in '' $ac_executable_extensions; do
5879 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5880 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5881 # Check for GNU ac_path_GREP and select it if it is found.
5882 # Check for GNU $ac_path_GREP
5883 case `"$ac_path_GREP" --version 2>&1` in
5884 *GNU*)
5885 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5887 ac_count=0
5888 $as_echo_n 0123456789 >"conftest.in"
5889 while :
5891 cat "conftest.in" "conftest.in" >"conftest.tmp"
5892 mv "conftest.tmp" "conftest.in"
5893 cp "conftest.in" "conftest.nl"
5894 $as_echo 'GREP' >> "conftest.nl"
5895 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5896 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5897 as_fn_arith $ac_count + 1 && ac_count=$as_val
5898 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5899 # Best one so far, save it but keep looking for a better one
5900 ac_cv_path_GREP="$ac_path_GREP"
5901 ac_path_GREP_max=$ac_count
5903 # 10*(2^10) chars as input seems more than enough
5904 test $ac_count -gt 10 && break
5905 done
5906 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5907 esac
5909 $ac_path_GREP_found && break 3
5910 done
5911 done
5912 done
5913 IFS=$as_save_IFS
5914 if test -z "$ac_cv_path_GREP"; then
5915 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5917 else
5918 ac_cv_path_GREP=$GREP
5922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5923 $as_echo "$ac_cv_path_GREP" >&6; }
5924 GREP="$ac_cv_path_GREP"
5927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5928 $as_echo_n "checking for egrep... " >&6; }
5929 if test "${ac_cv_path_EGREP+set}" = set; then :
5930 $as_echo_n "(cached) " >&6
5931 else
5932 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5933 then ac_cv_path_EGREP="$GREP -E"
5934 else
5935 if test -z "$EGREP"; then
5936 ac_path_EGREP_found=false
5937 # Loop through the user's path and test for each of PROGNAME-LIST
5938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5939 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5941 IFS=$as_save_IFS
5942 test -z "$as_dir" && as_dir=.
5943 for ac_prog in egrep; do
5944 for ac_exec_ext in '' $ac_executable_extensions; do
5945 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5946 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5947 # Check for GNU ac_path_EGREP and select it if it is found.
5948 # Check for GNU $ac_path_EGREP
5949 case `"$ac_path_EGREP" --version 2>&1` in
5950 *GNU*)
5951 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5953 ac_count=0
5954 $as_echo_n 0123456789 >"conftest.in"
5955 while :
5957 cat "conftest.in" "conftest.in" >"conftest.tmp"
5958 mv "conftest.tmp" "conftest.in"
5959 cp "conftest.in" "conftest.nl"
5960 $as_echo 'EGREP' >> "conftest.nl"
5961 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5962 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5963 as_fn_arith $ac_count + 1 && ac_count=$as_val
5964 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5965 # Best one so far, save it but keep looking for a better one
5966 ac_cv_path_EGREP="$ac_path_EGREP"
5967 ac_path_EGREP_max=$ac_count
5969 # 10*(2^10) chars as input seems more than enough
5970 test $ac_count -gt 10 && break
5971 done
5972 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5973 esac
5975 $ac_path_EGREP_found && break 3
5976 done
5977 done
5978 done
5979 IFS=$as_save_IFS
5980 if test -z "$ac_cv_path_EGREP"; then
5981 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5983 else
5984 ac_cv_path_EGREP=$EGREP
5989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5990 $as_echo "$ac_cv_path_EGREP" >&6; }
5991 EGREP="$ac_cv_path_EGREP"
5996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
5997 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
5998 if test "${gl_cv_c_amsterdam_compiler+set}" = set; then :
5999 $as_echo_n "(cached) " >&6
6000 else
6002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6003 /* end confdefs.h. */
6005 #ifdef __ACK__
6006 Amsterdam
6007 #endif
6009 _ACEOF
6010 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6011 $EGREP "Amsterdam" >/dev/null 2>&1; then :
6012 gl_cv_c_amsterdam_compiler=yes
6013 else
6014 gl_cv_c_amsterdam_compiler=no
6016 rm -f conftest*
6020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
6021 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
6022 if test -z "$AR"; then
6023 if test $gl_cv_c_amsterdam_compiler = yes; then
6024 AR='cc -c.a'
6025 if test -z "$ARFLAGS"; then
6026 ARFLAGS='-o'
6028 else
6029 if test -n "$ac_tool_prefix"; then
6030 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6031 set dummy ${ac_tool_prefix}ar; ac_word=$2
6032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6033 $as_echo_n "checking for $ac_word... " >&6; }
6034 if test "${ac_cv_prog_AR+set}" = set; then :
6035 $as_echo_n "(cached) " >&6
6036 else
6037 if test -n "$AR"; then
6038 ac_cv_prog_AR="$AR" # Let the user override the test.
6039 else
6040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6041 for as_dir in $PATH
6043 IFS=$as_save_IFS
6044 test -z "$as_dir" && as_dir=.
6045 for ac_exec_ext in '' $ac_executable_extensions; do
6046 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6047 ac_cv_prog_AR="${ac_tool_prefix}ar"
6048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6049 break 2
6051 done
6052 done
6053 IFS=$as_save_IFS
6057 AR=$ac_cv_prog_AR
6058 if test -n "$AR"; then
6059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6060 $as_echo "$AR" >&6; }
6061 else
6062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6063 $as_echo "no" >&6; }
6068 if test -z "$ac_cv_prog_AR"; then
6069 ac_ct_AR=$AR
6070 # Extract the first word of "ar", so it can be a program name with args.
6071 set dummy ar; ac_word=$2
6072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6073 $as_echo_n "checking for $ac_word... " >&6; }
6074 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6075 $as_echo_n "(cached) " >&6
6076 else
6077 if test -n "$ac_ct_AR"; then
6078 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6079 else
6080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6081 for as_dir in $PATH
6083 IFS=$as_save_IFS
6084 test -z "$as_dir" && as_dir=.
6085 for ac_exec_ext in '' $ac_executable_extensions; do
6086 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6087 ac_cv_prog_ac_ct_AR="ar"
6088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6089 break 2
6091 done
6092 done
6093 IFS=$as_save_IFS
6097 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6098 if test -n "$ac_ct_AR"; then
6099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6100 $as_echo "$ac_ct_AR" >&6; }
6101 else
6102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6103 $as_echo "no" >&6; }
6106 if test "x$ac_ct_AR" = x; then
6107 AR="ar"
6108 else
6109 case $cross_compiling:$ac_tool_warned in
6110 yes:)
6111 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6112 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6113 ac_tool_warned=yes ;;
6114 esac
6115 AR=$ac_ct_AR
6117 else
6118 AR="$ac_cv_prog_AR"
6121 if test -z "$ARFLAGS"; then
6122 ARFLAGS='cru'
6125 else
6126 if test -z "$ARFLAGS"; then
6127 ARFLAGS='cru'
6132 if test -z "$RANLIB"; then
6133 if test $gl_cv_c_amsterdam_compiler = yes; then
6134 RANLIB=':'
6135 else
6136 if test -n "$ac_tool_prefix"; then
6137 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6138 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6140 $as_echo_n "checking for $ac_word... " >&6; }
6141 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6142 $as_echo_n "(cached) " >&6
6143 else
6144 if test -n "$RANLIB"; then
6145 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6146 else
6147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6148 for as_dir in $PATH
6150 IFS=$as_save_IFS
6151 test -z "$as_dir" && as_dir=.
6152 for ac_exec_ext in '' $ac_executable_extensions; do
6153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6154 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6156 break 2
6158 done
6159 done
6160 IFS=$as_save_IFS
6164 RANLIB=$ac_cv_prog_RANLIB
6165 if test -n "$RANLIB"; then
6166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6167 $as_echo "$RANLIB" >&6; }
6168 else
6169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6170 $as_echo "no" >&6; }
6175 if test -z "$ac_cv_prog_RANLIB"; then
6176 ac_ct_RANLIB=$RANLIB
6177 # Extract the first word of "ranlib", so it can be a program name with args.
6178 set dummy ranlib; ac_word=$2
6179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6180 $as_echo_n "checking for $ac_word... " >&6; }
6181 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6182 $as_echo_n "(cached) " >&6
6183 else
6184 if test -n "$ac_ct_RANLIB"; then
6185 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6186 else
6187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6188 for as_dir in $PATH
6190 IFS=$as_save_IFS
6191 test -z "$as_dir" && as_dir=.
6192 for ac_exec_ext in '' $ac_executable_extensions; do
6193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6194 ac_cv_prog_ac_ct_RANLIB="ranlib"
6195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6196 break 2
6198 done
6199 done
6200 IFS=$as_save_IFS
6204 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6205 if test -n "$ac_ct_RANLIB"; then
6206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6207 $as_echo "$ac_ct_RANLIB" >&6; }
6208 else
6209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6210 $as_echo "no" >&6; }
6213 if test "x$ac_ct_RANLIB" = x; then
6214 RANLIB=":"
6215 else
6216 case $cross_compiling:$ac_tool_warned in
6217 yes:)
6218 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6219 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6220 ac_tool_warned=yes ;;
6221 esac
6222 RANLIB=$ac_ct_RANLIB
6224 else
6225 RANLIB="$ac_cv_prog_RANLIB"
6232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6233 $as_echo_n "checking for ANSI C header files... " >&6; }
6234 if test "${ac_cv_header_stdc+set}" = set; then :
6235 $as_echo_n "(cached) " >&6
6236 else
6237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6238 /* end confdefs.h. */
6239 #include <stdlib.h>
6240 #include <stdarg.h>
6241 #include <string.h>
6242 #include <float.h>
6245 main ()
6249 return 0;
6251 _ACEOF
6252 if ac_fn_c_try_compile "$LINENO"; then :
6253 ac_cv_header_stdc=yes
6254 else
6255 ac_cv_header_stdc=no
6257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6259 if test $ac_cv_header_stdc = yes; then
6260 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6262 /* end confdefs.h. */
6263 #include <string.h>
6265 _ACEOF
6266 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6267 $EGREP "memchr" >/dev/null 2>&1; then :
6269 else
6270 ac_cv_header_stdc=no
6272 rm -f conftest*
6276 if test $ac_cv_header_stdc = yes; then
6277 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6279 /* end confdefs.h. */
6280 #include <stdlib.h>
6282 _ACEOF
6283 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6284 $EGREP "free" >/dev/null 2>&1; then :
6286 else
6287 ac_cv_header_stdc=no
6289 rm -f conftest*
6293 if test $ac_cv_header_stdc = yes; then
6294 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6295 if test "$cross_compiling" = yes; then :
6297 else
6298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6299 /* end confdefs.h. */
6300 #include <ctype.h>
6301 #include <stdlib.h>
6302 #if ((' ' & 0x0FF) == 0x020)
6303 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6304 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6305 #else
6306 # define ISLOWER(c) \
6307 (('a' <= (c) && (c) <= 'i') \
6308 || ('j' <= (c) && (c) <= 'r') \
6309 || ('s' <= (c) && (c) <= 'z'))
6310 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6311 #endif
6313 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6315 main ()
6317 int i;
6318 for (i = 0; i < 256; i++)
6319 if (XOR (islower (i), ISLOWER (i))
6320 || toupper (i) != TOUPPER (i))
6321 return 2;
6322 return 0;
6324 _ACEOF
6325 if ac_fn_c_try_run "$LINENO"; then :
6327 else
6328 ac_cv_header_stdc=no
6330 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6331 conftest.$ac_objext conftest.beam conftest.$ac_ext
6336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6337 $as_echo "$ac_cv_header_stdc" >&6; }
6338 if test $ac_cv_header_stdc = yes; then
6340 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6344 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6345 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6346 inttypes.h stdint.h unistd.h
6347 do :
6348 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6349 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6351 eval as_val=\$$as_ac_Header
6352 if test "x$as_val" = x""yes; then :
6353 cat >>confdefs.h <<_ACEOF
6354 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6355 _ACEOF
6359 done
6365 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6366 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
6367 MINIX=yes
6368 else
6369 MINIX=
6373 if test "$MINIX" = yes; then
6375 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6378 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6381 $as_echo "#define _MINIX 1" >>confdefs.h
6385 case "$host_os" in
6386 hpux*)
6388 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
6391 esac
6394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6395 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6396 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
6397 $as_echo_n "(cached) " >&6
6398 else
6399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6400 /* end confdefs.h. */
6402 # define __EXTENSIONS__ 1
6403 $ac_includes_default
6405 main ()
6409 return 0;
6411 _ACEOF
6412 if ac_fn_c_try_compile "$LINENO"; then :
6413 ac_cv_safe_to_define___extensions__=yes
6414 else
6415 ac_cv_safe_to_define___extensions__=no
6417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6420 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6421 test $ac_cv_safe_to_define___extensions__ = yes &&
6422 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6424 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6426 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
6428 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6430 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6432 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6441 # Check whether --enable-largefile was given.
6442 if test "${enable_largefile+set}" = set; then :
6443 enableval=$enable_largefile;
6446 if test "$enable_largefile" != no; then
6448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6449 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6450 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
6451 $as_echo_n "(cached) " >&6
6452 else
6453 ac_cv_sys_largefile_CC=no
6454 if test "$GCC" != yes; then
6455 ac_save_CC=$CC
6456 while :; do
6457 # IRIX 6.2 and later do not support large files by default,
6458 # so use the C compiler's -n32 option if that helps.
6459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6460 /* end confdefs.h. */
6461 #include <sys/types.h>
6462 /* Check that off_t can represent 2**63 - 1 correctly.
6463 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6464 since some C++ compilers masquerading as C compilers
6465 incorrectly reject 9223372036854775807. */
6466 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6467 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6468 && LARGE_OFF_T % 2147483647 == 1)
6469 ? 1 : -1];
6471 main ()
6475 return 0;
6477 _ACEOF
6478 if ac_fn_c_try_compile "$LINENO"; then :
6479 break
6481 rm -f core conftest.err conftest.$ac_objext
6482 CC="$CC -n32"
6483 if ac_fn_c_try_compile "$LINENO"; then :
6484 ac_cv_sys_largefile_CC=' -n32'; break
6486 rm -f core conftest.err conftest.$ac_objext
6487 break
6488 done
6489 CC=$ac_save_CC
6490 rm -f conftest.$ac_ext
6493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6494 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6495 if test "$ac_cv_sys_largefile_CC" != no; then
6496 CC=$CC$ac_cv_sys_largefile_CC
6499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6500 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6501 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
6502 $as_echo_n "(cached) " >&6
6503 else
6504 while :; do
6505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6506 /* end confdefs.h. */
6507 #include <sys/types.h>
6508 /* Check that off_t can represent 2**63 - 1 correctly.
6509 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6510 since some C++ compilers masquerading as C compilers
6511 incorrectly reject 9223372036854775807. */
6512 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6513 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6514 && LARGE_OFF_T % 2147483647 == 1)
6515 ? 1 : -1];
6517 main ()
6521 return 0;
6523 _ACEOF
6524 if ac_fn_c_try_compile "$LINENO"; then :
6525 ac_cv_sys_file_offset_bits=no; break
6527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6529 /* end confdefs.h. */
6530 #define _FILE_OFFSET_BITS 64
6531 #include <sys/types.h>
6532 /* Check that off_t can represent 2**63 - 1 correctly.
6533 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6534 since some C++ compilers masquerading as C compilers
6535 incorrectly reject 9223372036854775807. */
6536 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6537 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6538 && LARGE_OFF_T % 2147483647 == 1)
6539 ? 1 : -1];
6541 main ()
6545 return 0;
6547 _ACEOF
6548 if ac_fn_c_try_compile "$LINENO"; then :
6549 ac_cv_sys_file_offset_bits=64; break
6551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6552 ac_cv_sys_file_offset_bits=unknown
6553 break
6554 done
6556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6557 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6558 case $ac_cv_sys_file_offset_bits in #(
6559 no | unknown) ;;
6561 cat >>confdefs.h <<_ACEOF
6562 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6563 _ACEOF
6565 esac
6566 rm -rf conftest*
6567 if test $ac_cv_sys_file_offset_bits = unknown; then
6568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6569 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6570 if test "${ac_cv_sys_large_files+set}" = set; then :
6571 $as_echo_n "(cached) " >&6
6572 else
6573 while :; do
6574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6575 /* end confdefs.h. */
6576 #include <sys/types.h>
6577 /* Check that off_t can represent 2**63 - 1 correctly.
6578 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6579 since some C++ compilers masquerading as C compilers
6580 incorrectly reject 9223372036854775807. */
6581 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6582 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6583 && LARGE_OFF_T % 2147483647 == 1)
6584 ? 1 : -1];
6586 main ()
6590 return 0;
6592 _ACEOF
6593 if ac_fn_c_try_compile "$LINENO"; then :
6594 ac_cv_sys_large_files=no; break
6596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6598 /* end confdefs.h. */
6599 #define _LARGE_FILES 1
6600 #include <sys/types.h>
6601 /* Check that off_t can represent 2**63 - 1 correctly.
6602 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6603 since some C++ compilers masquerading as C compilers
6604 incorrectly reject 9223372036854775807. */
6605 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6606 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6607 && LARGE_OFF_T % 2147483647 == 1)
6608 ? 1 : -1];
6610 main ()
6614 return 0;
6616 _ACEOF
6617 if ac_fn_c_try_compile "$LINENO"; then :
6618 ac_cv_sys_large_files=1; break
6620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6621 ac_cv_sys_large_files=unknown
6622 break
6623 done
6625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6626 $as_echo "$ac_cv_sys_large_files" >&6; }
6627 case $ac_cv_sys_large_files in #(
6628 no | unknown) ;;
6630 cat >>confdefs.h <<_ACEOF
6631 #define _LARGE_FILES $ac_cv_sys_large_files
6632 _ACEOF
6634 esac
6635 rm -rf conftest*
6641 case $ac_cv_prog_cc_stdc in #(
6642 no) :
6643 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6644 *) :
6645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
6646 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
6647 if test "${ac_cv_prog_cc_c99+set}" = set; then :
6648 $as_echo_n "(cached) " >&6
6649 else
6650 ac_cv_prog_cc_c99=no
6651 ac_save_CC=$CC
6652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6653 /* end confdefs.h. */
6654 #include <stdarg.h>
6655 #include <stdbool.h>
6656 #include <stdlib.h>
6657 #include <wchar.h>
6658 #include <stdio.h>
6660 // Check varargs macros. These examples are taken from C99 6.10.3.5.
6661 #define debug(...) fprintf (stderr, __VA_ARGS__)
6662 #define showlist(...) puts (#__VA_ARGS__)
6663 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6664 static void
6665 test_varargs_macros (void)
6667 int x = 1234;
6668 int y = 5678;
6669 debug ("Flag");
6670 debug ("X = %d\n", x);
6671 showlist (The first, second, and third items.);
6672 report (x>y, "x is %d but y is %d", x, y);
6675 // Check long long types.
6676 #define BIG64 18446744073709551615ull
6677 #define BIG32 4294967295ul
6678 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6679 #if !BIG_OK
6680 your preprocessor is broken;
6681 #endif
6682 #if BIG_OK
6683 #else
6684 your preprocessor is broken;
6685 #endif
6686 static long long int bignum = -9223372036854775807LL;
6687 static unsigned long long int ubignum = BIG64;
6689 struct incomplete_array
6691 int datasize;
6692 double data[];
6695 struct named_init {
6696 int number;
6697 const wchar_t *name;
6698 double average;
6701 typedef const char *ccp;
6703 static inline int
6704 test_restrict (ccp restrict text)
6706 // See if C++-style comments work.
6707 // Iterate through items via the restricted pointer.
6708 // Also check for declarations in for loops.
6709 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6710 continue;
6711 return 0;
6714 // Check varargs and va_copy.
6715 static void
6716 test_varargs (const char *format, ...)
6718 va_list args;
6719 va_start (args, format);
6720 va_list args_copy;
6721 va_copy (args_copy, args);
6723 const char *str;
6724 int number;
6725 float fnumber;
6727 while (*format)
6729 switch (*format++)
6731 case 's': // string
6732 str = va_arg (args_copy, const char *);
6733 break;
6734 case 'd': // int
6735 number = va_arg (args_copy, int);
6736 break;
6737 case 'f': // float
6738 fnumber = va_arg (args_copy, double);
6739 break;
6740 default:
6741 break;
6744 va_end (args_copy);
6745 va_end (args);
6749 main ()
6752 // Check bool.
6753 _Bool success = false;
6755 // Check restrict.
6756 if (test_restrict ("String literal") == 0)
6757 success = true;
6758 char *restrict newvar = "Another string";
6760 // Check varargs.
6761 test_varargs ("s, d' f .", "string", 65, 34.234);
6762 test_varargs_macros ();
6764 // Check flexible array members.
6765 struct incomplete_array *ia =
6766 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6767 ia->datasize = 10;
6768 for (int i = 0; i < ia->datasize; ++i)
6769 ia->data[i] = i * 1.234;
6771 // Check named initializers.
6772 struct named_init ni = {
6773 .number = 34,
6774 .name = L"Test wide string",
6775 .average = 543.34343,
6778 ni.number = 58;
6780 int dynamic_array[ni.number];
6781 dynamic_array[ni.number - 1] = 543;
6783 // work around unused variable warnings
6784 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6785 || dynamic_array[ni.number - 1] != 543);
6788 return 0;
6790 _ACEOF
6791 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
6793 CC="$ac_save_CC $ac_arg"
6794 if ac_fn_c_try_compile "$LINENO"; then :
6795 ac_cv_prog_cc_c99=$ac_arg
6797 rm -f core conftest.err conftest.$ac_objext
6798 test "x$ac_cv_prog_cc_c99" != "xno" && break
6799 done
6800 rm -f conftest.$ac_ext
6801 CC=$ac_save_CC
6804 # AC_CACHE_VAL
6805 case "x$ac_cv_prog_cc_c99" in
6807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6808 $as_echo "none needed" >&6; } ;;
6809 xno)
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6811 $as_echo "unsupported" >&6; } ;;
6813 CC="$CC $ac_cv_prog_cc_c99"
6814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
6815 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6816 esac
6817 if test "x$ac_cv_prog_cc_c99" != xno; then :
6818 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
6819 else
6820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6821 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6822 if test "${ac_cv_prog_cc_c89+set}" = set; then :
6823 $as_echo_n "(cached) " >&6
6824 else
6825 ac_cv_prog_cc_c89=no
6826 ac_save_CC=$CC
6827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6828 /* end confdefs.h. */
6829 #include <stdarg.h>
6830 #include <stdio.h>
6831 #include <sys/types.h>
6832 #include <sys/stat.h>
6833 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6834 struct buf { int x; };
6835 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6836 static char *e (p, i)
6837 char **p;
6838 int i;
6840 return p[i];
6842 static char *f (char * (*g) (char **, int), char **p, ...)
6844 char *s;
6845 va_list v;
6846 va_start (v,p);
6847 s = g (p, va_arg (v,int));
6848 va_end (v);
6849 return s;
6852 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6853 function prototypes and stuff, but not '\xHH' hex character constants.
6854 These don't provoke an error unfortunately, instead are silently treated
6855 as 'x'. The following induces an error, until -std is added to get
6856 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6857 array size at least. It's necessary to write '\x00'==0 to get something
6858 that's true only with -std. */
6859 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6861 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6862 inside strings and character constants. */
6863 #define FOO(x) 'x'
6864 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6866 int test (int i, double x);
6867 struct s1 {int (*f) (int a);};
6868 struct s2 {int (*f) (double a);};
6869 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6870 int argc;
6871 char **argv;
6873 main ()
6875 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6877 return 0;
6879 _ACEOF
6880 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6881 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6883 CC="$ac_save_CC $ac_arg"
6884 if ac_fn_c_try_compile "$LINENO"; then :
6885 ac_cv_prog_cc_c89=$ac_arg
6887 rm -f core conftest.err conftest.$ac_objext
6888 test "x$ac_cv_prog_cc_c89" != "xno" && break
6889 done
6890 rm -f conftest.$ac_ext
6891 CC=$ac_save_CC
6894 # AC_CACHE_VAL
6895 case "x$ac_cv_prog_cc_c89" in
6897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6898 $as_echo "none needed" >&6; } ;;
6899 xno)
6900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6901 $as_echo "unsupported" >&6; } ;;
6903 CC="$CC $ac_cv_prog_cc_c89"
6904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6905 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6906 esac
6907 if test "x$ac_cv_prog_cc_c89" != xno; then :
6908 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
6909 else
6910 ac_cv_prog_cc_stdc=no
6915 esac
6916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
6917 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
6918 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
6919 $as_echo_n "(cached) " >&6
6922 case $ac_cv_prog_cc_stdc in #(
6923 no) :
6924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6925 $as_echo "unsupported" >&6; } ;; #(
6926 '') :
6927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6928 $as_echo "none needed" >&6; } ;; #(
6929 *) :
6930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
6931 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
6932 esac
6936 # Code from module alloca-opt:
6937 # Code from module allocator:
6938 # Code from module careadlinkat:
6939 # Code from module crypto/md5:
6940 # Code from module crypto/sha1:
6941 # Code from module crypto/sha256:
6942 # Code from module crypto/sha512:
6943 # Code from module dosname:
6944 # Code from module dtoastr:
6945 # Code from module dup2:
6946 # Code from module extensions:
6948 # Code from module filemode:
6949 # Code from module getloadavg:
6950 # Code from module getopt-gnu:
6951 # Code from module getopt-posix:
6952 # Code from module gettext-h:
6953 # Code from module ignore-value:
6954 # Code from module include_next:
6955 # Code from module intprops:
6956 # Code from module inttypes-incomplete:
6957 # Code from module largefile:
6959 # Code from module lstat:
6960 # Code from module mktime:
6961 # Code from module multiarch:
6962 # Code from module nocrash:
6963 # Code from module pathmax:
6964 # Code from module pthread_sigmask:
6965 # Code from module readlink:
6966 # Code from module signal-h:
6967 # Code from module sigprocmask:
6968 # Code from module snippet/_Noreturn:
6969 # Code from module snippet/arg-nonnull:
6970 # Code from module snippet/c++defs:
6971 # Code from module snippet/warn-on-use:
6972 # Code from module socklen:
6973 # Code from module ssize_t:
6974 # Code from module stat:
6975 # Code from module stdarg:
6979 # Code from module stdbool:
6980 # Code from module stddef:
6981 # Code from module stdint:
6982 # Code from module stdio:
6983 # Code from module stdlib:
6984 # Code from module strftime:
6985 # Code from module strtoimax:
6986 # Code from module strtoll:
6987 # Code from module strtoull:
6988 # Code from module strtoumax:
6989 # Code from module symlink:
6990 # Code from module sys_stat:
6991 # Code from module time:
6992 # Code from module time_r:
6993 # Code from module u64:
6994 # Code from module unistd:
6995 # Code from module verify:
6998 # On Suns, sometimes $CPP names a directory.
6999 if test -n "$CPP" && test -d "$CPP"; then
7000 CPP=
7003 ## If not using gcc, and on Solaris, and no CPP specified, see if
7004 ## using a Sun compiler, which needs -Xs to prevent whitespace.
7005 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
7006 test x"$CPP" = x; then
7007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using a Sun C compiler" >&5
7008 $as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
7009 if test "${emacs_cv_sunpro_c+set}" = set; then :
7010 $as_echo_n "(cached) " >&6
7011 else
7012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7013 /* end confdefs.h. */
7016 main ()
7018 #ifndef __SUNPRO_C
7019 fail;
7020 #endif
7023 return 0;
7025 _ACEOF
7026 if ac_fn_c_try_link "$LINENO"; then :
7027 emacs_cv_sunpro_c=yes
7028 else
7029 emacs_cv_sunpro_c=no
7031 rm -f core conftest.err conftest.$ac_objext \
7032 conftest$ac_exeext conftest.$ac_ext
7035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_sunpro_c" >&5
7036 $as_echo "$emacs_cv_sunpro_c" >&6; }
7038 if test x"$emacs_cv_sunpro_c" = xyes; then
7039 NON_GNU_CPP="$CC -E -Xs"
7043 #### Some systems specify a CPP to use unless we are using GCC.
7044 #### Now that we know whether we are using GCC, we can decide whether
7045 #### to use that one.
7046 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
7047 then
7048 CPP="$NON_GNU_CPP"
7051 #### Some systems specify a CC to use unless we are using GCC.
7052 #### Now that we know whether we are using GCC, we can decide whether
7053 #### to use that one.
7054 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
7055 test x$cc_specified != xyes
7056 then
7057 CC="$NON_GNU_CC"
7060 if test x$GCC = xyes; then
7061 test "x$GCC_TEST_OPTIONS" != x && CC="$CC $GCC_TEST_OPTIONS"
7062 else
7063 test "x$NON_GCC_TEST_OPTIONS" != x && CC="$CC $NON_GCC_TEST_OPTIONS"
7066 ### Use -Wdeclaration-after-statement if the compiler supports it
7067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wdeclaration-after-statement" >&5
7068 $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
7069 SAVE_CFLAGS="$CFLAGS"
7070 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
7071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7072 /* end confdefs.h. */
7075 main ()
7079 return 0;
7081 _ACEOF
7082 if ac_fn_c_try_compile "$LINENO"; then :
7083 has_option=yes
7084 else
7085 has_option=no
7087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7088 if test $has_option = yes; then
7089 C_WARNINGS_SWITCH="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
7091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
7092 $as_echo "$has_option" >&6; }
7093 CFLAGS="$SAVE_CFLAGS"
7094 unset has_option
7095 unset SAVE_CFLAGS
7097 ### Use -Wold-style-definition if the compiler supports it
7098 # This can be removed when conversion to standard C is finished.
7099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wold-style-definition" >&5
7100 $as_echo_n "checking whether gcc understands -Wold-style-definition... " >&6; }
7101 SAVE_CFLAGS="$CFLAGS"
7102 CFLAGS="$CFLAGS -Wold-style-definition"
7103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7104 /* end confdefs.h. */
7107 main ()
7111 return 0;
7113 _ACEOF
7114 if ac_fn_c_try_compile "$LINENO"; then :
7115 has_option=yes
7116 else
7117 has_option=no
7119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7120 if test $has_option = yes; then
7121 C_WARNINGS_SWITCH="-Wold-style-definition $C_WARNINGS_SWITCH"
7123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
7124 $as_echo "$has_option" >&6; }
7125 CFLAGS="$SAVE_CFLAGS"
7126 unset has_option
7127 unset SAVE_CFLAGS
7129 ### Use -Wimplicit-function-declaration if the compiler supports it
7130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wimplicit-function-declaration" >&5
7131 $as_echo_n "checking whether gcc understands -Wimplicit-function-declaration... " >&6; }
7132 SAVE_CFLAGS="$CFLAGS"
7133 CFLAGS="$CFLAGS -Wimplicit-function-declaration"
7134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7135 /* end confdefs.h. */
7138 main ()
7142 return 0;
7144 _ACEOF
7145 if ac_fn_c_try_compile "$LINENO"; then :
7146 has_option=yes
7147 else
7148 has_option=no
7150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7151 if test $has_option = yes; then
7152 C_WARNINGS_SWITCH="-Wimplicit-function-declaration $C_WARNINGS_SWITCH"
7154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
7155 $as_echo "$has_option" >&6; }
7156 CFLAGS="$SAVE_CFLAGS"
7157 unset has_option
7158 unset SAVE_CFLAGS
7163 #### Some other nice autoconf tests.
7165 ac_ext=c
7166 ac_cpp='$CPP $CPPFLAGS'
7167 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7168 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7169 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7171 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7172 # On Suns, sometimes $CPP names a directory.
7173 if test -n "$CPP" && test -d "$CPP"; then
7174 CPP=
7176 if test -z "$CPP"; then
7177 if test "${ac_cv_prog_CPP+set}" = set; then :
7178 $as_echo_n "(cached) " >&6
7179 else
7180 # Double quotes because CPP needs to be expanded
7181 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7183 ac_preproc_ok=false
7184 for ac_c_preproc_warn_flag in '' yes
7186 # Use a header file that comes with gcc, so configuring glibc
7187 # with a fresh cross-compiler works.
7188 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7189 # <limits.h> exists even on freestanding compilers.
7190 # On the NeXT, cc -E runs the code through the compiler's parser,
7191 # not just through cpp. "Syntax error" is here to catch this case.
7192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7193 /* end confdefs.h. */
7194 #ifdef __STDC__
7195 # include <limits.h>
7196 #else
7197 # include <assert.h>
7198 #endif
7199 Syntax error
7200 _ACEOF
7201 if ac_fn_c_try_cpp "$LINENO"; then :
7203 else
7204 # Broken: fails on valid input.
7205 continue
7207 rm -f conftest.err conftest.$ac_ext
7209 # OK, works on sane cases. Now check whether nonexistent headers
7210 # can be detected and how.
7211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7212 /* end confdefs.h. */
7213 #include <ac_nonexistent.h>
7214 _ACEOF
7215 if ac_fn_c_try_cpp "$LINENO"; then :
7216 # Broken: success on invalid input.
7217 continue
7218 else
7219 # Passes both tests.
7220 ac_preproc_ok=:
7221 break
7223 rm -f conftest.err conftest.$ac_ext
7225 done
7226 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7227 rm -f conftest.err conftest.$ac_ext
7228 if $ac_preproc_ok; then :
7229 break
7232 done
7233 ac_cv_prog_CPP=$CPP
7236 CPP=$ac_cv_prog_CPP
7237 else
7238 ac_cv_prog_CPP=$CPP
7240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7241 $as_echo "$CPP" >&6; }
7242 ac_preproc_ok=false
7243 for ac_c_preproc_warn_flag in '' yes
7245 # Use a header file that comes with gcc, so configuring glibc
7246 # with a fresh cross-compiler works.
7247 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7248 # <limits.h> exists even on freestanding compilers.
7249 # On the NeXT, cc -E runs the code through the compiler's parser,
7250 # not just through cpp. "Syntax error" is here to catch this case.
7251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7252 /* end confdefs.h. */
7253 #ifdef __STDC__
7254 # include <limits.h>
7255 #else
7256 # include <assert.h>
7257 #endif
7258 Syntax error
7259 _ACEOF
7260 if ac_fn_c_try_cpp "$LINENO"; then :
7262 else
7263 # Broken: fails on valid input.
7264 continue
7266 rm -f conftest.err conftest.$ac_ext
7268 # OK, works on sane cases. Now check whether nonexistent headers
7269 # can be detected and how.
7270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7271 /* end confdefs.h. */
7272 #include <ac_nonexistent.h>
7273 _ACEOF
7274 if ac_fn_c_try_cpp "$LINENO"; then :
7275 # Broken: success on invalid input.
7276 continue
7277 else
7278 # Passes both tests.
7279 ac_preproc_ok=:
7280 break
7282 rm -f conftest.err conftest.$ac_ext
7284 done
7285 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7286 rm -f conftest.err conftest.$ac_ext
7287 if $ac_preproc_ok; then :
7289 else
7290 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7291 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7292 as_fn_error "C preprocessor \"$CPP\" fails sanity check
7293 See \`config.log' for more details." "$LINENO" 5; }
7296 ac_ext=c
7297 ac_cpp='$CPP $CPPFLAGS'
7298 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7299 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7300 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7303 if test "x$RANLIB" = x; then
7304 if test -n "$ac_tool_prefix"; then
7305 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7306 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7308 $as_echo_n "checking for $ac_word... " >&6; }
7309 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7310 $as_echo_n "(cached) " >&6
7311 else
7312 if test -n "$RANLIB"; then
7313 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7314 else
7315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7316 for as_dir in $PATH
7318 IFS=$as_save_IFS
7319 test -z "$as_dir" && as_dir=.
7320 for ac_exec_ext in '' $ac_executable_extensions; do
7321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7322 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7324 break 2
7326 done
7327 done
7328 IFS=$as_save_IFS
7332 RANLIB=$ac_cv_prog_RANLIB
7333 if test -n "$RANLIB"; then
7334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7335 $as_echo "$RANLIB" >&6; }
7336 else
7337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7338 $as_echo "no" >&6; }
7343 if test -z "$ac_cv_prog_RANLIB"; then
7344 ac_ct_RANLIB=$RANLIB
7345 # Extract the first word of "ranlib", so it can be a program name with args.
7346 set dummy ranlib; ac_word=$2
7347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7348 $as_echo_n "checking for $ac_word... " >&6; }
7349 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7350 $as_echo_n "(cached) " >&6
7351 else
7352 if test -n "$ac_ct_RANLIB"; then
7353 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7354 else
7355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7356 for as_dir in $PATH
7358 IFS=$as_save_IFS
7359 test -z "$as_dir" && as_dir=.
7360 for ac_exec_ext in '' $ac_executable_extensions; do
7361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7362 ac_cv_prog_ac_ct_RANLIB="ranlib"
7363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7364 break 2
7366 done
7367 done
7368 IFS=$as_save_IFS
7372 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7373 if test -n "$ac_ct_RANLIB"; then
7374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7375 $as_echo "$ac_ct_RANLIB" >&6; }
7376 else
7377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7378 $as_echo "no" >&6; }
7381 if test "x$ac_ct_RANLIB" = x; then
7382 RANLIB=":"
7383 else
7384 case $cross_compiling:$ac_tool_warned in
7385 yes:)
7386 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7387 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7388 ac_tool_warned=yes ;;
7389 esac
7390 RANLIB=$ac_ct_RANLIB
7392 else
7393 RANLIB="$ac_cv_prog_RANLIB"
7398 ## Although we're running on an amd64 kernel, we're actually compiling for
7399 ## the x86 architecture. The user should probably have provided an
7400 ## explicit --build to `configure', but if everything else than the kernel
7401 ## is running in i386 mode, we can help them out.
7402 if test "$machine" = "amdx86-64"; then
7403 ac_fn_c_check_decl "$LINENO" "i386" "ac_cv_have_decl_i386" "$ac_includes_default"
7404 if test "x$ac_cv_have_decl_i386" = x""yes; then :
7408 if test "$ac_cv_have_decl_i386" = "yes"; then
7409 canonical=`echo "$canonical" | sed -e 's/^amd64/i386/' -e 's/^x86_64/i386/'`
7410 machine=intel386
7411 machfile="m/${machine}.h"
7413 ac_fn_c_check_decl "$LINENO" "__ILP32__" "ac_cv_have_decl___ILP32__" "$ac_includes_default"
7414 if test "x$ac_cv_have_decl___ILP32__" = x""yes; then :
7415 machfile="m/intel386.h"
7420 # Extract the first word of "install-info", so it can be a program name with args.
7421 set dummy install-info; ac_word=$2
7422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7423 $as_echo_n "checking for $ac_word... " >&6; }
7424 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
7425 $as_echo_n "(cached) " >&6
7426 else
7427 case $INSTALL_INFO in
7428 [\\/]* | ?:[\\/]*)
7429 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
7432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7433 for as_dir in $PATH
7435 IFS=$as_save_IFS
7436 test -z "$as_dir" && as_dir=.
7437 for ac_exec_ext in '' $ac_executable_extensions; do
7438 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7439 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
7440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7441 break 2
7443 done
7444 done
7445 IFS=$as_save_IFS
7448 esac
7450 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
7451 if test -n "$INSTALL_INFO"; then
7452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
7453 $as_echo "$INSTALL_INFO" >&6; }
7454 else
7455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7456 $as_echo "no" >&6; }
7460 # Extract the first word of "install-info", so it can be a program name with args.
7461 set dummy install-info; ac_word=$2
7462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7463 $as_echo_n "checking for $ac_word... " >&6; }
7464 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
7465 $as_echo_n "(cached) " >&6
7466 else
7467 case $INSTALL_INFO in
7468 [\\/]* | ?:[\\/]*)
7469 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
7472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7473 for as_dir in /usr/sbin
7475 IFS=$as_save_IFS
7476 test -z "$as_dir" && as_dir=.
7477 for ac_exec_ext in '' $ac_executable_extensions; do
7478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7479 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
7480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7481 break 2
7483 done
7484 done
7485 IFS=$as_save_IFS
7488 esac
7490 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
7491 if test -n "$INSTALL_INFO"; then
7492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
7493 $as_echo "$INSTALL_INFO" >&6; }
7494 else
7495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7496 $as_echo "no" >&6; }
7500 # Extract the first word of "install-info", so it can be a program name with args.
7501 set dummy install-info; ac_word=$2
7502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7503 $as_echo_n "checking for $ac_word... " >&6; }
7504 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
7505 $as_echo_n "(cached) " >&6
7506 else
7507 case $INSTALL_INFO in
7508 [\\/]* | ?:[\\/]*)
7509 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
7512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7513 for as_dir in /sbin
7515 IFS=$as_save_IFS
7516 test -z "$as_dir" && as_dir=.
7517 for ac_exec_ext in '' $ac_executable_extensions; do
7518 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7519 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
7520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7521 break 2
7523 done
7524 done
7525 IFS=$as_save_IFS
7527 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
7529 esac
7531 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
7532 if test -n "$INSTALL_INFO"; then
7533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
7534 $as_echo "$INSTALL_INFO" >&6; }
7535 else
7536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7537 $as_echo "no" >&6; }
7541 # Extract the first word of "gzip", so it can be a program name with args.
7542 set dummy gzip; ac_word=$2
7543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7544 $as_echo_n "checking for $ac_word... " >&6; }
7545 if test "${ac_cv_path_GZIP_PROG+set}" = set; then :
7546 $as_echo_n "(cached) " >&6
7547 else
7548 case $GZIP_PROG in
7549 [\\/]* | ?:[\\/]*)
7550 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
7553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7554 for as_dir in $PATH
7556 IFS=$as_save_IFS
7557 test -z "$as_dir" && as_dir=.
7558 for ac_exec_ext in '' $ac_executable_extensions; do
7559 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7560 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
7561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7562 break 2
7564 done
7565 done
7566 IFS=$as_save_IFS
7569 esac
7571 GZIP_PROG=$ac_cv_path_GZIP_PROG
7572 if test -n "$GZIP_PROG"; then
7573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
7574 $as_echo "$GZIP_PROG" >&6; }
7575 else
7576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7577 $as_echo "no" >&6; }
7583 ## Need makeinfo >= 4.6 (?) to build the manuals.
7584 # Extract the first word of "makeinfo", so it can be a program name with args.
7585 set dummy makeinfo; ac_word=$2
7586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7587 $as_echo_n "checking for $ac_word... " >&6; }
7588 if test "${ac_cv_path_MAKEINFO+set}" = set; then :
7589 $as_echo_n "(cached) " >&6
7590 else
7591 case $MAKEINFO in
7592 [\\/]* | ?:[\\/]*)
7593 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
7596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7597 for as_dir in $PATH
7599 IFS=$as_save_IFS
7600 test -z "$as_dir" && as_dir=.
7601 for ac_exec_ext in '' $ac_executable_extensions; do
7602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7603 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
7604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7605 break 2
7607 done
7608 done
7609 IFS=$as_save_IFS
7611 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
7613 esac
7615 MAKEINFO=$ac_cv_path_MAKEINFO
7616 if test -n "$MAKEINFO"; then
7617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7618 $as_echo "$MAKEINFO" >&6; }
7619 else
7620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7621 $as_echo "no" >&6; }
7625 if test "$MAKEINFO" != "no" && \
7626 test x"`$MAKEINFO --version 2> /dev/null | $EGREP 'texinfo[^0-9]*([1-4][0-9]+|[5-9]|4\.[6-9]|4\.[1-5][0-9]+)'`" = x; then
7627 MAKEINFO=no
7630 ## Makeinfo is unusual. For a released Emacs, the manuals are
7631 ## pre-built, and not deleted by the normal clean rules. makeinfo is
7632 ## therefore in the category of "special tools" not normally required, which
7633 ## configure does not have to check for (eg autoconf itself).
7634 ## In a Bazaar checkout on the other hand, the manuals are not included.
7635 ## So makeinfo is a requirement to build from Bazaar, and configure
7636 ## should test for it as it does for any other build requirement.
7637 ## We use the presence of $srcdir/info/emacs to distinguish a release,
7638 ## with pre-built manuals, from a Bazaar checkout.
7639 HAVE_MAKEINFO=yes
7641 if test "$MAKEINFO" = "no"; then
7642 MAKEINFO=makeinfo
7643 if test "x${with_makeinfo}" = "xno"; then
7644 HAVE_MAKEINFO=no
7645 elif test ! -e $srcdir/info/emacs; then
7646 as_fn_error "You do not seem to have makeinfo >= 4.6, and your
7647 source tree does not seem to have pre-built manuals in the \`info' directory.
7648 Either install a suitable version of makeinfo, or re-run configure
7649 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
7655 if test x$GCC = xyes; then
7656 test "x$GCC_LINK_TEST_OPTIONS" != x && \
7657 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
7658 else
7659 test "x$NON_GCC_LINK_TEST_OPTIONS" != x && \
7660 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
7664 late_LDFLAGS=$LDFLAGS
7665 if test x$GCC = xyes; then
7666 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
7667 else
7668 LDFLAGS="$LDFLAGS -znocombreloc"
7671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
7672 $as_echo_n "checking for -znocombreloc... " >&6; }
7673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7674 /* end confdefs.h. */
7677 main ()
7681 return 0;
7683 _ACEOF
7684 if ac_fn_c_try_link "$LINENO"; then :
7685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7686 $as_echo "yes" >&6; }
7687 else
7688 LDFLAGS=$late_LDFLAGS
7689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7690 $as_echo "no" >&6; }
7692 rm -f core conftest.err conftest.$ac_objext \
7693 conftest$ac_exeext conftest.$ac_ext
7696 # The value of CPP is a quoted variable reference, so we need to do this
7697 # to get its actual value...
7698 CPP=`eval "echo $CPP"`
7701 test "x$CANNOT_DUMP" = "x" && CANNOT_DUMP=no
7702 case "$opsys" in
7703 your-opsys-here) CANNOT_DUMP=yes ;;
7704 esac
7706 test "$CANNOT_DUMP" = "yes" && \
7708 $as_echo "#define CANNOT_DUMP 1" >>confdefs.h
7714 UNEXEC_OBJ=unexelf.o
7715 case "$opsys" in
7716 # MSDOS uses unexcoff.o
7717 # MSWindows uses unexw32.o
7718 aix4-2)
7719 UNEXEC_OBJ=unexaix.o
7721 cygwin)
7722 UNEXEC_OBJ=unexcw.o
7724 darwin)
7725 UNEXEC_OBJ=unexmacosx.o
7727 hpux10-20 | hpux11)
7728 UNEXEC_OBJ=unexhp9k800.o
7730 sol2-10)
7731 # Use the Solaris dldump() function, called from unexsol.c, to dump
7732 # emacs, instead of the generic ELF dump code found in unexelf.c.
7733 # The resulting binary has a complete symbol table, and is better
7734 # for debugging and other observability tools (debuggers, pstack, etc).
7736 # If you encounter a problem using dldump(), please consider sending
7737 # a message to the OpenSolaris tools-linking mailing list:
7738 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
7740 # It is likely that dldump() works with older Solaris too, but this has
7741 # not been tested, so for now this change is for Solaris 10 or newer.
7742 UNEXEC_OBJ=unexsol.o
7744 esac
7746 LD_SWITCH_SYSTEM=
7747 case "$opsys" in
7748 freebsd)
7749 ## Let `ld' find image libs and similar things in /usr/local/lib.
7750 ## The system compiler, GCC, has apparently been modified to not
7751 ## look there, contrary to what a stock GCC would do.
7752 LD_SWITCH_SYSTEM=-L/usr/local/lib
7755 gnu-linux)
7756 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
7757 case $host_cpu in mips*) LD_SWITCH_SYSTEM="-G 0";; esac
7760 netbsd)
7761 LD_SWITCH_SYSTEM="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
7764 openbsd)
7765 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
7766 ## otherwise Emacs dumps core on elf systems.
7767 LD_SWITCH_SYSTEM="-Z"
7769 esac
7772 ac_link="$ac_link $LD_SWITCH_SYSTEM"
7774 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_AUX,
7775 ## which has not been defined yet. When this was handled with cpp,
7776 ## it was expanded to null when configure sourced the s/*.h file.
7777 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
7778 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
7779 ## (or somesuch), but because it is supposed to go at the _front_
7780 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
7781 ## Compare with the gnu-linux case below, which added to the end
7782 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
7783 ## LD_SWITCH_SYSTEM_TEMACS.
7784 case "$opsys" in
7785 netbsd|openbsd)
7786 ## _AUX_RPATH is like _AUX, but uses -rpath instead of -R.
7787 LD_SWITCH_SYSTEM="\$(LD_SWITCH_X_SITE_AUX_RPATH) $LD_SWITCH_SYSTEM" ;;
7788 esac
7791 C_SWITCH_MACHINE=
7792 if test "$machine" = "alpha"; then
7793 ac_fn_c_check_decl "$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
7794 if test "x$ac_cv_have_decl___ELF__" = x""yes; then :
7798 if test "$ac_cv_have_decl___ELF__" = "yes"; then
7799 ## With ELF, make sure that all common symbols get allocated to in the
7800 ## data section. Otherwise, the dump of temacs may miss variables in
7801 ## the shared library that have been initialized. For example, with
7802 ## GNU libc, __malloc_initialized would normally be resolved to the
7803 ## shared library's .bss section, which is fatal.
7804 if test "x$GCC" = "xyes"; then
7805 C_SWITCH_MACHINE="-fno-common"
7806 else
7807 as_fn_error "What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
7809 else
7810 UNEXEC_OBJ=unexalpha.o
7817 C_SWITCH_SYSTEM=
7818 ## Some programs in src produce warnings saying certain subprograms
7819 ## are too complex and need a MAXMEM value greater than 2000 for
7820 ## additional optimization. --nils@exp-math.uni-essen.de
7821 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
7822 C_SWITCH_SYSTEM="-ma -qmaxmem=4000"
7823 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
7824 ## It is redundant in glibc2, since we define _GNU_SOURCE.
7828 LIBS_SYSTEM=
7829 case "$opsys" in
7830 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
7831 aix4-2) LIBS_SYSTEM="-lrts -lIM -liconv" ;;
7833 freebsd) LIBS_SYSTEM="-lutil" ;;
7835 hpux*) LIBS_SYSTEM="-l:libdld.sl" ;;
7837 sol2*) LIBS_SYSTEM="-lsocket -lnsl" ;;
7839 ## Motif needs -lgen.
7840 unixware) LIBS_SYSTEM="-lsocket -lnsl -lelf -lgen" ;;
7841 esac
7845 ### Make sure subsequent tests use flags consistent with the build flags.
7847 if test x"${OVERRIDE_CPPFLAGS}" != x; then
7848 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
7849 else
7850 CPPFLAGS="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
7853 # Suppress obsolescent Autoconf test for size_t; Emacs assumes C89 or better.
7855 # Likewise for obsolescent test for uid_t, gid_t; Emacs assumes them.
7858 # Check whether --enable-largefile was given.
7859 if test "${enable_largefile+set}" = set; then :
7860 enableval=$enable_largefile;
7863 if test "$enable_largefile" != no; then
7865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
7866 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
7867 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
7868 $as_echo_n "(cached) " >&6
7869 else
7870 ac_cv_sys_largefile_CC=no
7871 if test "$GCC" != yes; then
7872 ac_save_CC=$CC
7873 while :; do
7874 # IRIX 6.2 and later do not support large files by default,
7875 # so use the C compiler's -n32 option if that helps.
7876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7877 /* end confdefs.h. */
7878 #include <sys/types.h>
7879 /* Check that off_t can represent 2**63 - 1 correctly.
7880 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7881 since some C++ compilers masquerading as C compilers
7882 incorrectly reject 9223372036854775807. */
7883 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7884 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7885 && LARGE_OFF_T % 2147483647 == 1)
7886 ? 1 : -1];
7888 main ()
7892 return 0;
7894 _ACEOF
7895 if ac_fn_c_try_compile "$LINENO"; then :
7896 break
7898 rm -f core conftest.err conftest.$ac_objext
7899 CC="$CC -n32"
7900 if ac_fn_c_try_compile "$LINENO"; then :
7901 ac_cv_sys_largefile_CC=' -n32'; break
7903 rm -f core conftest.err conftest.$ac_objext
7904 break
7905 done
7906 CC=$ac_save_CC
7907 rm -f conftest.$ac_ext
7910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
7911 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
7912 if test "$ac_cv_sys_largefile_CC" != no; then
7913 CC=$CC$ac_cv_sys_largefile_CC
7916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
7917 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
7918 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
7919 $as_echo_n "(cached) " >&6
7920 else
7921 while :; do
7922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7923 /* end confdefs.h. */
7924 #include <sys/types.h>
7925 /* Check that off_t can represent 2**63 - 1 correctly.
7926 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7927 since some C++ compilers masquerading as C compilers
7928 incorrectly reject 9223372036854775807. */
7929 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7930 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7931 && LARGE_OFF_T % 2147483647 == 1)
7932 ? 1 : -1];
7934 main ()
7938 return 0;
7940 _ACEOF
7941 if ac_fn_c_try_compile "$LINENO"; then :
7942 ac_cv_sys_file_offset_bits=no; break
7944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7946 /* end confdefs.h. */
7947 #define _FILE_OFFSET_BITS 64
7948 #include <sys/types.h>
7949 /* Check that off_t can represent 2**63 - 1 correctly.
7950 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7951 since some C++ compilers masquerading as C compilers
7952 incorrectly reject 9223372036854775807. */
7953 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7954 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7955 && LARGE_OFF_T % 2147483647 == 1)
7956 ? 1 : -1];
7958 main ()
7962 return 0;
7964 _ACEOF
7965 if ac_fn_c_try_compile "$LINENO"; then :
7966 ac_cv_sys_file_offset_bits=64; break
7968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7969 ac_cv_sys_file_offset_bits=unknown
7970 break
7971 done
7973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
7974 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
7975 case $ac_cv_sys_file_offset_bits in #(
7976 no | unknown) ;;
7978 cat >>confdefs.h <<_ACEOF
7979 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7980 _ACEOF
7982 esac
7983 rm -rf conftest*
7984 if test $ac_cv_sys_file_offset_bits = unknown; then
7985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
7986 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
7987 if test "${ac_cv_sys_large_files+set}" = set; then :
7988 $as_echo_n "(cached) " >&6
7989 else
7990 while :; do
7991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7992 /* end confdefs.h. */
7993 #include <sys/types.h>
7994 /* Check that off_t can represent 2**63 - 1 correctly.
7995 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7996 since some C++ compilers masquerading as C compilers
7997 incorrectly reject 9223372036854775807. */
7998 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7999 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8000 && LARGE_OFF_T % 2147483647 == 1)
8001 ? 1 : -1];
8003 main ()
8007 return 0;
8009 _ACEOF
8010 if ac_fn_c_try_compile "$LINENO"; then :
8011 ac_cv_sys_large_files=no; break
8013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8015 /* end confdefs.h. */
8016 #define _LARGE_FILES 1
8017 #include <sys/types.h>
8018 /* Check that off_t can represent 2**63 - 1 correctly.
8019 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8020 since some C++ compilers masquerading as C compilers
8021 incorrectly reject 9223372036854775807. */
8022 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8023 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8024 && LARGE_OFF_T % 2147483647 == 1)
8025 ? 1 : -1];
8027 main ()
8031 return 0;
8033 _ACEOF
8034 if ac_fn_c_try_compile "$LINENO"; then :
8035 ac_cv_sys_large_files=1; break
8037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8038 ac_cv_sys_large_files=unknown
8039 break
8040 done
8042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
8043 $as_echo "$ac_cv_sys_large_files" >&6; }
8044 case $ac_cv_sys_large_files in #(
8045 no | unknown) ;;
8047 cat >>confdefs.h <<_ACEOF
8048 #define _LARGE_FILES $ac_cv_sys_large_files
8049 _ACEOF
8051 esac
8052 rm -rf conftest*
8060 LIB_MATH=-lm
8061 LIB_STANDARD=
8062 START_FILES=
8064 case $opsys in
8065 cygwin )
8066 LIB_MATH=
8067 START_FILES='pre-crt0.o'
8069 darwin )
8070 ## Adding -lm confuses the dynamic linker, so omit it.
8071 LIB_MATH=
8072 START_FILES='pre-crt0.o'
8074 freebsd )
8075 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
8076 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
8078 gnu-linux | gnu-kfreebsd )
8079 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
8080 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
8082 hpux10-20 | hpux11 )
8083 LIB_STANDARD=-lc
8084 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o'
8086 netbsd | openbsd )
8087 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
8088 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
8090 esac
8095 crt_files=
8097 for file in x $LIB_STANDARD $START_FILES; do
8098 case "$file" in
8099 *CRT_DIR*) crt_files="$crt_files `echo $file | sed -e 's|.*/||'`" ;;
8100 esac
8101 done
8103 if test "x$crt_files" != x; then
8105 ## If user specified a crt-dir, use that unconditionally.
8106 crt_gcc=no
8108 if test "X$CRT_DIR" = "X"; then
8110 CRT_DIR=/usr/lib # default
8112 case "$canonical" in
8113 x86_64-*-linux-gnu* | s390x-*-linux-gnu*)
8114 ## On x86-64 and s390x GNU/Linux distributions, the standard library
8115 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
8116 ## For anything else (eg /usr/lib32), it is up the user to specify
8117 ## the location (bug#5655).
8118 ## Test for crtn.o, not just the directory, because sometimes the
8119 ## directory exists but does not have the relevant files (bug#1287).
8120 ## FIXME better to test for binary compatibility somehow.
8121 test -e /usr/lib64/crtn.o && CRT_DIR=/usr/lib64
8124 powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*) CRT_DIR=/usr/lib64 ;;
8125 esac
8127 case "$opsys" in
8128 hpux10-20) CRT_DIR=/lib ;;
8129 esac
8131 test "x${GCC}" = xyes && crt_gcc=yes
8133 fi # CRT_DIR = ""
8135 crt_missing=
8137 for file in $crt_files; do
8139 ## If we're using gcc, try to determine it automatically by asking
8140 ## gcc. [If this doesn't work, CRT_DIR will remain at the
8141 ## system-dependent default from above.]
8142 if test $crt_gcc = yes && test ! -e $CRT_DIR/$file; then
8144 crt_file=`$CC --print-file-name=$file 2>/dev/null`
8145 case "$crt_file" in
8146 */*)
8147 CRT_DIR=`$as_dirname -- "$crt_file" ||
8148 $as_expr X"$crt_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8149 X"$crt_file" : 'X\(//\)[^/]' \| \
8150 X"$crt_file" : 'X\(//\)$' \| \
8151 X"$crt_file" : 'X\(/\)' \| . 2>/dev/null ||
8152 $as_echo X"$crt_file" |
8153 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8154 s//\1/
8157 /^X\(\/\/\)[^/].*/{
8158 s//\1/
8161 /^X\(\/\/\)$/{
8162 s//\1/
8165 /^X\(\/\).*/{
8166 s//\1/
8169 s/.*/./; q'`
8171 esac
8174 crt_gcc=no
8176 test -e $CRT_DIR/$file || crt_missing="$crt_missing $file"
8177 done # $crt_files
8179 test "x$crt_missing" = x || \
8180 as_fn_error "Required file(s) not found:$crt_missing
8181 Try using the --with-crt-dir option." "$LINENO" 5
8183 fi # crt_files != ""
8187 case $opsys in
8188 netbsd | openbsd )
8189 if test -f $CRT_DIR/crti.o; then
8191 test -f $CRT_DIR/crtn.o || \
8192 as_fn_error "Required file not found: crtn.o" "$LINENO" 5
8194 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
8195 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
8198 esac
8204 if test "${with_sound}" != "no"; then
8205 # Sound support for GNU/Linux and the free BSDs.
8206 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
8207 do :
8208 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8209 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8210 eval as_val=\$$as_ac_Header
8211 if test "x$as_val" = x""yes; then :
8212 cat >>confdefs.h <<_ACEOF
8213 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8214 _ACEOF
8215 have_sound_header=yes
8218 done
8220 # Emulation library used on NetBSD.
8221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
8222 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
8223 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
8224 $as_echo_n "(cached) " >&6
8225 else
8226 ac_check_lib_save_LIBS=$LIBS
8227 LIBS="-lossaudio $LIBS"
8228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8229 /* end confdefs.h. */
8231 /* Override any GCC internal prototype to avoid an error.
8232 Use char because int might match the return type of a GCC
8233 builtin and then its argument prototype would still apply. */
8234 #ifdef __cplusplus
8235 extern "C"
8236 #endif
8237 char _oss_ioctl ();
8239 main ()
8241 return _oss_ioctl ();
8243 return 0;
8245 _ACEOF
8246 if ac_fn_c_try_link "$LINENO"; then :
8247 ac_cv_lib_ossaudio__oss_ioctl=yes
8248 else
8249 ac_cv_lib_ossaudio__oss_ioctl=no
8251 rm -f core conftest.err conftest.$ac_objext \
8252 conftest$ac_exeext conftest.$ac_ext
8253 LIBS=$ac_check_lib_save_LIBS
8255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
8256 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
8257 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x""yes; then :
8258 LIBSOUND=-lossaudio
8259 else
8260 LIBSOUND=
8265 ALSA_REQUIRED=1.0.0
8266 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
8268 succeeded=no
8270 # Extract the first word of "pkg-config", so it can be a program name with args.
8271 set dummy pkg-config; ac_word=$2
8272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8273 $as_echo_n "checking for $ac_word... " >&6; }
8274 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8275 $as_echo_n "(cached) " >&6
8276 else
8277 case $PKG_CONFIG in
8278 [\\/]* | ?:[\\/]*)
8279 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8283 for as_dir in $PATH
8285 IFS=$as_save_IFS
8286 test -z "$as_dir" && as_dir=.
8287 for ac_exec_ext in '' $ac_executable_extensions; do
8288 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8289 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8291 break 2
8293 done
8294 done
8295 IFS=$as_save_IFS
8297 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8299 esac
8301 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8302 if test -n "$PKG_CONFIG"; then
8303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8304 $as_echo "$PKG_CONFIG" >&6; }
8305 else
8306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8307 $as_echo "no" >&6; }
8312 if test "$PKG_CONFIG" = "no" ; then
8313 HAVE_ALSA=no
8314 else
8315 PKG_CONFIG_MIN_VERSION=0.9.0
8316 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
8318 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
8320 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
8321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8322 $as_echo "yes" >&6; }
8323 succeeded=yes
8325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_CFLAGS" >&5
8326 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
8327 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
8328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
8329 $as_echo "$ALSA_CFLAGS" >&6; }
8331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_LIBS" >&5
8332 $as_echo_n "checking ALSA_LIBS... " >&6; }
8333 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
8334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
8335 $as_echo "$ALSA_LIBS" >&6; }
8336 else
8337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8338 $as_echo "no" >&6; }
8339 ALSA_CFLAGS=""
8340 ALSA_LIBS=""
8341 ## If we have a custom action on failure, don't print errors, but
8342 ## do set a variable so people can do so.
8343 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
8349 else
8350 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8351 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8355 if test $succeeded = yes; then
8356 HAVE_ALSA=yes
8357 else
8358 HAVE_ALSA=no
8361 if test $HAVE_ALSA = yes; then
8362 SAVE_CFLAGS="$CFLAGS"
8363 SAVE_LIBS="$LIBS"
8364 CFLAGS="$ALSA_CFLAGS $CFLAGS"
8365 LIBS="$ALSA_LIBS $LIBS"
8366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8367 /* end confdefs.h. */
8368 #include <asoundlib.h>
8370 main ()
8372 snd_lib_error_set_handler (0);
8374 return 0;
8376 _ACEOF
8377 if ac_fn_c_try_compile "$LINENO"; then :
8378 emacs_alsa_normal=yes
8379 else
8380 emacs_alsa_normal=no
8382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8383 if test "$emacs_alsa_normal" != yes; then
8384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8385 /* end confdefs.h. */
8386 #include <alsa/asoundlib.h>
8388 main ()
8390 snd_lib_error_set_handler (0);
8392 return 0;
8394 _ACEOF
8395 if ac_fn_c_try_compile "$LINENO"; then :
8396 emacs_alsa_subdir=yes
8397 else
8398 emacs_alsa_subdir=no
8400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8401 if test "$emacs_alsa_subdir" != yes; then
8402 as_fn_error "pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
8404 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
8407 CFLAGS="$SAVE_CFLAGS"
8408 LIBS="$SAVE_LIBS"
8409 LIBSOUND="$LIBSOUND $ALSA_LIBS"
8410 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
8412 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
8416 if test x$have_sound_header = xyes || test $HAVE_ALSA = yes; then
8417 case "$opsys" in
8418 gnu-linux|freebsd|netbsd)
8420 $as_echo "#define HAVE_SOUND 1" >>confdefs.h
8423 esac
8429 for ac_header in sys/select.h sys/time.h unistd.h utime.h \
8430 linux/version.h sys/systeminfo.h \
8431 stdio_ext.h fcntl.h coff.h pty.h sys/mman.h \
8432 sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
8433 sys/utsname.h pwd.h utmp.h dirent.h util.h
8434 do :
8435 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8436 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8437 eval as_val=\$$as_ac_Header
8438 if test "x$as_val" = x""yes; then :
8439 cat >>confdefs.h <<_ACEOF
8440 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8441 _ACEOF
8445 done
8448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
8449 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
8450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8451 /* end confdefs.h. */
8452 #include <sys/personality.h>
8454 main ()
8456 personality (PER_LINUX32)
8458 return 0;
8460 _ACEOF
8461 if ac_fn_c_try_compile "$LINENO"; then :
8462 emacs_cv_personality_linux32=yes
8463 else
8464 emacs_cv_personality_linux32=no
8466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
8468 $as_echo "$emacs_cv_personality_linux32" >&6; }
8470 if test $emacs_cv_personality_linux32 = yes; then
8472 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
8476 for ac_header in term.h
8477 do :
8478 ac_fn_c_check_header_preproc "$LINENO" "term.h" "ac_cv_header_term_h"
8479 if test "x$ac_cv_header_term_h" = x""yes; then :
8480 cat >>confdefs.h <<_ACEOF
8481 #define HAVE_TERM_H 1
8482 _ACEOF
8486 done
8488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8489 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8490 if test "${ac_cv_header_time+set}" = set; then :
8491 $as_echo_n "(cached) " >&6
8492 else
8493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8494 /* end confdefs.h. */
8495 #include <sys/types.h>
8496 #include <sys/time.h>
8497 #include <time.h>
8500 main ()
8502 if ((struct tm *) 0)
8503 return 0;
8505 return 0;
8507 _ACEOF
8508 if ac_fn_c_try_compile "$LINENO"; then :
8509 ac_cv_header_time=yes
8510 else
8511 ac_cv_header_time=no
8513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8516 $as_echo "$ac_cv_header_time" >&6; }
8517 if test $ac_cv_header_time = yes; then
8519 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8523 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default"
8524 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then :
8525 ac_have_decl=1
8526 else
8527 ac_have_decl=0
8530 cat >>confdefs.h <<_ACEOF
8531 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
8532 _ACEOF
8534 if test $ac_cv_have_decl_sys_siglist != yes; then
8535 # For Tru64, at least:
8536 ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default"
8537 if test "x$ac_cv_have_decl___sys_siglist" = x""yes; then :
8538 ac_have_decl=1
8539 else
8540 ac_have_decl=0
8543 cat >>confdefs.h <<_ACEOF
8544 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
8545 _ACEOF
8547 if test $ac_cv_have_decl___sys_siglist = yes; then
8549 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
8553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8554 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8555 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8556 $as_echo_n "(cached) " >&6
8557 else
8558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8559 /* end confdefs.h. */
8560 #include <sys/types.h>
8561 #include <sys/wait.h>
8562 #ifndef WEXITSTATUS
8563 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8564 #endif
8565 #ifndef WIFEXITED
8566 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8567 #endif
8570 main ()
8572 int s;
8573 wait (&s);
8574 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8576 return 0;
8578 _ACEOF
8579 if ac_fn_c_try_compile "$LINENO"; then :
8580 ac_cv_header_sys_wait_h=yes
8581 else
8582 ac_cv_header_sys_wait_h=no
8584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8587 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8588 if test $ac_cv_header_sys_wait_h = yes; then
8590 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
8596 $as_echo_n "checking for struct utimbuf... " >&6; }
8597 if test "${emacs_cv_struct_utimbuf+set}" = set; then :
8598 $as_echo_n "(cached) " >&6
8599 else
8600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8601 /* end confdefs.h. */
8602 #ifdef TIME_WITH_SYS_TIME
8603 #include <sys/time.h>
8604 #include <time.h>
8605 #else
8606 #ifdef HAVE_SYS_TIME_H
8607 #include <sys/time.h>
8608 #else
8609 #include <time.h>
8610 #endif
8611 #endif
8612 #ifdef HAVE_UTIME_H
8613 #include <utime.h>
8614 #endif
8616 main ()
8618 static struct utimbuf x; x.actime = x.modtime;
8620 return 0;
8622 _ACEOF
8623 if ac_fn_c_try_compile "$LINENO"; then :
8624 emacs_cv_struct_utimbuf=yes
8625 else
8626 emacs_cv_struct_utimbuf=no
8628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_utimbuf" >&5
8631 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
8632 if test $emacs_cv_struct_utimbuf = yes; then
8634 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
8638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
8639 $as_echo_n "checking for speed_t... " >&6; }
8640 if test "${emacs_cv_speed_t+set}" = set; then :
8641 $as_echo_n "(cached) " >&6
8642 else
8643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8644 /* end confdefs.h. */
8645 #include <termios.h>
8647 main ()
8649 speed_t x = 1;
8651 return 0;
8653 _ACEOF
8654 if ac_fn_c_try_compile "$LINENO"; then :
8655 emacs_cv_speed_t=yes
8656 else
8657 emacs_cv_speed_t=no
8659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
8662 $as_echo "$emacs_cv_speed_t" >&6; }
8663 if test $emacs_cv_speed_t = yes; then
8665 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
8669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
8670 $as_echo_n "checking for struct timeval... " >&6; }
8671 if test "${emacs_cv_struct_timeval+set}" = set; then :
8672 $as_echo_n "(cached) " >&6
8673 else
8674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8675 /* end confdefs.h. */
8676 #ifdef TIME_WITH_SYS_TIME
8677 #include <sys/time.h>
8678 #include <time.h>
8679 #else
8680 #ifdef HAVE_SYS_TIME_H
8681 #include <sys/time.h>
8682 #else
8683 #include <time.h>
8684 #endif
8685 #endif
8687 main ()
8689 static struct timeval x; x.tv_sec = x.tv_usec;
8691 return 0;
8693 _ACEOF
8694 if ac_fn_c_try_compile "$LINENO"; then :
8695 emacs_cv_struct_timeval=yes
8696 else
8697 emacs_cv_struct_timeval=no
8699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_timeval" >&5
8702 $as_echo "$emacs_cv_struct_timeval" >&6; }
8703 HAVE_TIMEVAL=$emacs_cv_struct_timeval
8704 if test $emacs_cv_struct_timeval = yes; then
8706 $as_echo "#define HAVE_TIMEVAL 1" >>confdefs.h
8710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct exception" >&5
8711 $as_echo_n "checking for struct exception... " >&6; }
8712 if test "${emacs_cv_struct_exception+set}" = set; then :
8713 $as_echo_n "(cached) " >&6
8714 else
8715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8716 /* end confdefs.h. */
8717 #include <math.h>
8719 main ()
8721 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
8723 return 0;
8725 _ACEOF
8726 if ac_fn_c_try_compile "$LINENO"; then :
8727 emacs_cv_struct_exception=yes
8728 else
8729 emacs_cv_struct_exception=no
8731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_exception" >&5
8734 $as_echo "$emacs_cv_struct_exception" >&6; }
8735 HAVE_EXCEPTION=$emacs_cv_struct_exception
8736 if test $emacs_cv_struct_exception != yes; then
8738 $as_echo "#define NO_MATHERR 1" >>confdefs.h
8742 for ac_header in sys/socket.h
8743 do :
8744 ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
8745 if test "x$ac_cv_header_sys_socket_h" = x""yes; then :
8746 cat >>confdefs.h <<_ACEOF
8747 #define HAVE_SYS_SOCKET_H 1
8748 _ACEOF
8752 done
8754 for ac_header in net/if.h
8755 do :
8756 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
8757 #if HAVE_SYS_SOCKET_H
8758 #include <sys/socket.h>
8759 #endif
8761 if test "x$ac_cv_header_net_if_h" = x""yes; then :
8762 cat >>confdefs.h <<_ACEOF
8763 #define HAVE_NET_IF_H 1
8764 _ACEOF
8768 done
8770 for ac_header in ifaddrs.h
8771 do :
8772 ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default
8773 #if HAVE_SYS_SOCKET_H
8774 #include <sys/socket.h>
8775 #endif
8777 if test "x$ac_cv_header_ifaddrs_h" = x""yes; then :
8778 cat >>confdefs.h <<_ACEOF
8779 #define HAVE_IFADDRS_H 1
8780 _ACEOF
8784 done
8786 for ac_header in net/if_dl.h
8787 do :
8788 ac_fn_c_check_header_compile "$LINENO" "net/if_dl.h" "ac_cv_header_net_if_dl_h" "$ac_includes_default
8789 #if HAVE_SYS_SOCKET_H
8790 #include <sys/socket.h>
8791 #endif
8793 if test "x$ac_cv_header_net_if_dl_h" = x""yes; then :
8794 cat >>confdefs.h <<_ACEOF
8795 #define HAVE_NET_IF_DL_H 1
8796 _ACEOF
8800 done
8802 for ac_func in getifaddrs freeifaddrs
8803 do :
8804 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8805 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8806 eval as_val=\$$as_ac_var
8807 if test "x$as_val" = x""yes; then :
8808 cat >>confdefs.h <<_ACEOF
8809 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8810 _ACEOF
8813 done
8816 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
8817 #if HAVE_SYS_SOCKET_H
8818 #include <sys/socket.h>
8819 #endif
8820 #if HAVE_NET_IF_H
8821 #include <net/if.h>
8822 #endif
8824 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x""yes; then :
8826 cat >>confdefs.h <<_ACEOF
8827 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8828 _ACEOF
8832 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
8833 #if HAVE_SYS_SOCKET_H
8834 #include <sys/socket.h>
8835 #endif
8836 #if HAVE_NET_IF_H
8837 #include <net/if.h>
8838 #endif
8840 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x""yes; then :
8842 cat >>confdefs.h <<_ACEOF
8843 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8844 _ACEOF
8848 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
8849 #if HAVE_SYS_SOCKET_H
8850 #include <sys/socket.h>
8851 #endif
8852 #if HAVE_NET_IF_H
8853 #include <net/if.h>
8854 #endif
8856 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x""yes; then :
8858 cat >>confdefs.h <<_ACEOF
8859 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8860 _ACEOF
8864 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
8865 #if HAVE_SYS_SOCKET_H
8866 #include <sys/socket.h>
8867 #endif
8868 #if HAVE_NET_IF_H
8869 #include <net/if.h>
8870 #endif
8872 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x""yes; then :
8874 cat >>confdefs.h <<_ACEOF
8875 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8876 _ACEOF
8880 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
8881 #if HAVE_SYS_SOCKET_H
8882 #include <sys/socket.h>
8883 #endif
8884 #if HAVE_NET_IF_H
8885 #include <net/if.h>
8886 #endif
8888 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x""yes; then :
8890 cat >>confdefs.h <<_ACEOF
8891 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8892 _ACEOF
8896 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr.sa_len" "ac_cv_member_struct_ifreq_ifr_addr_sa_len" "$ac_includes_default
8897 #if HAVE_SYS_SOCKET_H
8898 #include <sys/socket.h>
8899 #endif
8900 #if HAVE_NET_IF_H
8901 #include <net/if.h>
8902 #endif
8904 if test "x$ac_cv_member_struct_ifreq_ifr_addr_sa_len" = x""yes; then :
8906 cat >>confdefs.h <<_ACEOF
8907 #define HAVE_STRUCT_IFREQ_IFR_ADDR_SA_LEN 1
8908 _ACEOF
8915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
8916 $as_echo_n "checking for function prototypes... " >&6; }
8917 if test "$ac_cv_prog_cc_c89" != no; then
8918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8919 $as_echo "yes" >&6; }
8921 $as_echo "#define PROTOTYPES 1" >>confdefs.h
8924 $as_echo "#define __PROTOTYPES 1" >>confdefs.h
8926 else
8927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8928 $as_echo "no" >&6; }
8931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
8932 $as_echo_n "checking for working volatile... " >&6; }
8933 if test "${ac_cv_c_volatile+set}" = set; then :
8934 $as_echo_n "(cached) " >&6
8935 else
8936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8937 /* end confdefs.h. */
8940 main ()
8943 volatile int x;
8944 int * volatile y = (int *) 0;
8945 return !x && !y;
8947 return 0;
8949 _ACEOF
8950 if ac_fn_c_try_compile "$LINENO"; then :
8951 ac_cv_c_volatile=yes
8952 else
8953 ac_cv_c_volatile=no
8955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
8958 $as_echo "$ac_cv_c_volatile" >&6; }
8959 if test $ac_cv_c_volatile = no; then
8961 $as_echo "#define volatile /**/" >>confdefs.h
8965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
8966 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
8967 if test "${ac_cv_c_const+set}" = set; then :
8968 $as_echo_n "(cached) " >&6
8969 else
8970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8971 /* end confdefs.h. */
8974 main ()
8976 /* FIXME: Include the comments suggested by Paul. */
8977 #ifndef __cplusplus
8978 /* Ultrix mips cc rejects this. */
8979 typedef int charset[2];
8980 const charset cs;
8981 /* SunOS 4.1.1 cc rejects this. */
8982 char const *const *pcpcc;
8983 char **ppc;
8984 /* NEC SVR4.0.2 mips cc rejects this. */
8985 struct point {int x, y;};
8986 static struct point const zero = {0,0};
8987 /* AIX XL C 1.02.0.0 rejects this.
8988 It does not let you subtract one const X* pointer from another in
8989 an arm of an if-expression whose if-part is not a constant
8990 expression */
8991 const char *g = "string";
8992 pcpcc = &g + (g ? g-g : 0);
8993 /* HPUX 7.0 cc rejects these. */
8994 ++pcpcc;
8995 ppc = (char**) pcpcc;
8996 pcpcc = (char const *const *) ppc;
8997 { /* SCO 3.2v4 cc rejects this. */
8998 char *t;
8999 char const *s = 0 ? (char *) 0 : (char const *) 0;
9001 *t++ = 0;
9002 if (s) return 0;
9004 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9005 int x[] = {25, 17};
9006 const int *foo = &x[0];
9007 ++foo;
9009 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9010 typedef const int *iptr;
9011 iptr p = 0;
9012 ++p;
9014 { /* AIX XL C 1.02.0.0 rejects this saying
9015 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9016 struct s { int j; const int *ap[3]; };
9017 struct s *b; b->j = 5;
9019 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9020 const int foo = 10;
9021 if (!foo) return 0;
9023 return !cs[0] && !zero.x;
9024 #endif
9027 return 0;
9029 _ACEOF
9030 if ac_fn_c_try_compile "$LINENO"; then :
9031 ac_cv_c_const=yes
9032 else
9033 ac_cv_c_const=no
9035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
9038 $as_echo "$ac_cv_c_const" >&6; }
9039 if test $ac_cv_c_const = no; then
9041 $as_echo "#define const /**/" >>confdefs.h
9045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for void * support" >&5
9046 $as_echo_n "checking for void * support... " >&6; }
9047 if test "${emacs_cv_void_star+set}" = set; then :
9048 $as_echo_n "(cached) " >&6
9049 else
9050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9051 /* end confdefs.h. */
9054 main ()
9056 void * foo;
9058 return 0;
9060 _ACEOF
9061 if ac_fn_c_try_compile "$LINENO"; then :
9062 emacs_cv_void_star=yes
9063 else
9064 emacs_cv_void_star=no
9066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_void_star" >&5
9069 $as_echo "$emacs_cv_void_star" >&6; }
9070 if test $emacs_cv_void_star = yes; then
9071 $as_echo "#define POINTER_TYPE void" >>confdefs.h
9073 else
9074 $as_echo "#define POINTER_TYPE char" >>confdefs.h
9078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
9079 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
9080 if test "${ac_cv_c_bigendian+set}" = set; then :
9081 $as_echo_n "(cached) " >&6
9082 else
9083 ac_cv_c_bigendian=unknown
9084 # See if we're dealing with a universal compiler.
9085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9086 /* end confdefs.h. */
9087 #ifndef __APPLE_CC__
9088 not a universal capable compiler
9089 #endif
9090 typedef int dummy;
9092 _ACEOF
9093 if ac_fn_c_try_compile "$LINENO"; then :
9095 # Check for potential -arch flags. It is not universal unless
9096 # there are at least two -arch flags with different values.
9097 ac_arch=
9098 ac_prev=
9099 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
9100 if test -n "$ac_prev"; then
9101 case $ac_word in
9102 i?86 | x86_64 | ppc | ppc64)
9103 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
9104 ac_arch=$ac_word
9105 else
9106 ac_cv_c_bigendian=universal
9107 break
9110 esac
9111 ac_prev=
9112 elif test "x$ac_word" = "x-arch"; then
9113 ac_prev=arch
9115 done
9117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9118 if test $ac_cv_c_bigendian = unknown; then
9119 # See if sys/param.h defines the BYTE_ORDER macro.
9120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9121 /* end confdefs.h. */
9122 #include <sys/types.h>
9123 #include <sys/param.h>
9126 main ()
9128 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
9129 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
9130 && LITTLE_ENDIAN)
9131 bogus endian macros
9132 #endif
9135 return 0;
9137 _ACEOF
9138 if ac_fn_c_try_compile "$LINENO"; then :
9139 # It does; now see whether it defined to BIG_ENDIAN or not.
9140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9141 /* end confdefs.h. */
9142 #include <sys/types.h>
9143 #include <sys/param.h>
9146 main ()
9148 #if BYTE_ORDER != BIG_ENDIAN
9149 not big endian
9150 #endif
9153 return 0;
9155 _ACEOF
9156 if ac_fn_c_try_compile "$LINENO"; then :
9157 ac_cv_c_bigendian=yes
9158 else
9159 ac_cv_c_bigendian=no
9161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9165 if test $ac_cv_c_bigendian = unknown; then
9166 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9168 /* end confdefs.h. */
9169 #include <limits.h>
9172 main ()
9174 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9175 bogus endian macros
9176 #endif
9179 return 0;
9181 _ACEOF
9182 if ac_fn_c_try_compile "$LINENO"; then :
9183 # It does; now see whether it defined to _BIG_ENDIAN or not.
9184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9185 /* end confdefs.h. */
9186 #include <limits.h>
9189 main ()
9191 #ifndef _BIG_ENDIAN
9192 not big endian
9193 #endif
9196 return 0;
9198 _ACEOF
9199 if ac_fn_c_try_compile "$LINENO"; then :
9200 ac_cv_c_bigendian=yes
9201 else
9202 ac_cv_c_bigendian=no
9204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9208 if test $ac_cv_c_bigendian = unknown; then
9209 # Compile a test program.
9210 if test "$cross_compiling" = yes; then :
9211 # Try to guess by grepping values from an object file.
9212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9213 /* end confdefs.h. */
9214 short int ascii_mm[] =
9215 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9216 short int ascii_ii[] =
9217 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9218 int use_ascii (int i) {
9219 return ascii_mm[i] + ascii_ii[i];
9221 short int ebcdic_ii[] =
9222 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9223 short int ebcdic_mm[] =
9224 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9225 int use_ebcdic (int i) {
9226 return ebcdic_mm[i] + ebcdic_ii[i];
9228 extern int foo;
9231 main ()
9233 return use_ascii (foo) == use_ebcdic (foo);
9235 return 0;
9237 _ACEOF
9238 if ac_fn_c_try_compile "$LINENO"; then :
9239 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
9240 ac_cv_c_bigendian=yes
9242 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9243 if test "$ac_cv_c_bigendian" = unknown; then
9244 ac_cv_c_bigendian=no
9245 else
9246 # finding both strings is unlikely to happen, but who knows?
9247 ac_cv_c_bigendian=unknown
9251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9252 else
9253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9254 /* end confdefs.h. */
9255 $ac_includes_default
9257 main ()
9260 /* Are we little or big endian? From Harbison&Steele. */
9261 union
9263 long int l;
9264 char c[sizeof (long int)];
9265 } u;
9266 u.l = 1;
9267 return u.c[sizeof (long int) - 1] == 1;
9270 return 0;
9272 _ACEOF
9273 if ac_fn_c_try_run "$LINENO"; then :
9274 ac_cv_c_bigendian=no
9275 else
9276 ac_cv_c_bigendian=yes
9278 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9279 conftest.$ac_objext conftest.beam conftest.$ac_ext
9284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9285 $as_echo "$ac_cv_c_bigendian" >&6; }
9286 case $ac_cv_c_bigendian in #(
9287 yes)
9288 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9289 ;; #(
9291 ;; #(
9292 universal)
9294 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9296 ;; #(
9298 as_fn_error "unknown endianness
9299 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9300 esac
9303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__ ((__aligned__ (expr)))" >&5
9304 $as_echo_n "checking for __attribute__ ((__aligned__ (expr)))... " >&6; }
9305 if test "${emacs_cv_attribute_aligned+set}" = set; then :
9306 $as_echo_n "(cached) " >&6
9307 else
9308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9309 /* end confdefs.h. */
9310 char __attribute__ ((__aligned__ (1 << 3))) c;
9312 main ()
9316 return 0;
9318 _ACEOF
9319 if ac_fn_c_try_compile "$LINENO"; then :
9320 emacs_cv_attribute_aligned=yes
9321 else
9322 emacs_cv_attribute_aligned=no
9324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_attribute_aligned" >&5
9327 $as_echo "$emacs_cv_attribute_aligned" >&6; }
9328 if test $emacs_cv_attribute_aligned = yes; then
9330 $as_echo "#define HAVE_ATTRIBUTE_ALIGNED 1" >>confdefs.h
9334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9335 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9336 set x ${MAKE-make}
9337 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9338 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
9339 $as_echo_n "(cached) " >&6
9340 else
9341 cat >conftest.make <<\_ACEOF
9342 SHELL = /bin/sh
9343 all:
9344 @echo '@@@%%%=$(MAKE)=@@@%%%'
9345 _ACEOF
9346 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9347 case `${MAKE-make} -f conftest.make 2>/dev/null` in
9348 *@@@%%%=?*=@@@%%%*)
9349 eval ac_cv_prog_make_${ac_make}_set=yes;;
9351 eval ac_cv_prog_make_${ac_make}_set=no;;
9352 esac
9353 rm -f conftest.make
9355 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9357 $as_echo "yes" >&6; }
9358 SET_MAKE=
9359 else
9360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9361 $as_echo "no" >&6; }
9362 SET_MAKE="MAKE=${MAKE-make}"
9366 DEPFLAGS=
9367 MKDEPDIR=":"
9368 deps_frag=deps.mk
9369 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
9370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
9371 $as_echo_n "checking whether we are using GNU Make... " >&6; }
9372 HAVE_GNU_MAKE=no
9373 testval=`${MAKE-make} --version 2>/dev/null | grep 'GNU Make'`
9374 if test "x$testval" != x; then
9375 HAVE_GNU_MAKE=yes
9376 else
9377 ac_enable_autodepend=no
9379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
9380 $as_echo "$HAVE_GNU_MAKE" >&6; }
9381 if test $HAVE_GNU_MAKE = yes; then
9382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
9383 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
9384 SAVE_CFLAGS="$CFLAGS"
9385 CFLAGS="$CFLAGS -MMD -MF deps.d -MP"
9386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9387 /* end confdefs.h. */
9390 main ()
9394 return 0;
9396 _ACEOF
9397 if ac_fn_c_try_compile "$LINENO"; then :
9399 else
9400 ac_enable_autodepend=no
9402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9403 CFLAGS="$SAVE_CFLAGS"
9404 test -f deps.d || ac_enable_autodepend=no
9405 rm -rf deps.d
9406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
9407 $as_echo "$ac_enable_autodepend" >&6; }
9409 if test $ac_enable_autodepend = yes; then
9410 DEPFLAGS='-MMD -MF ${DEPDIR}/$*.d -MP'
9411 ## In parallel builds, another make might create depdir between
9412 ## the first test and mkdir, so stick another test on the end.
9413 ## Or use install-sh -d? mkdir -p is not portable.
9414 MKDEPDIR='test -d ${DEPDIR} || mkdir ${DEPDIR} || test -d ${DEPDIR}'
9415 deps_frag=autodeps.mk
9418 deps_frag=$srcdir/src/$deps_frag
9424 lisp_frag=$srcdir/src/lisp.mk
9428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
9429 $as_echo_n "checking for long file names... " >&6; }
9430 if test "${ac_cv_sys_long_file_names+set}" = set; then :
9431 $as_echo_n "(cached) " >&6
9432 else
9433 ac_cv_sys_long_file_names=yes
9434 # Test for long file names in all the places we know might matter:
9435 # . the current directory, where building will happen
9436 # $prefix/lib where we will be installing things
9437 # $exec_prefix/lib likewise
9438 # $TMPDIR if set, where it might want to write temporary files
9439 # /tmp where it might want to write temporary files
9440 # /var/tmp likewise
9441 # /usr/tmp likewise
9442 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9443 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9444 # in the usual case where exec_prefix is '${prefix}'.
9445 case $ac_dir in #(
9446 . | /* | ?:[\\/]*) ;; #(
9447 *) continue;;
9448 esac
9449 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9450 ac_xdir=$ac_dir/cf$$
9451 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9452 ac_tf1=$ac_xdir/conftest9012345
9453 ac_tf2=$ac_xdir/conftest9012346
9454 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9455 ac_cv_sys_long_file_names=no
9456 rm -f -r "$ac_xdir" 2>/dev/null
9457 test $ac_cv_sys_long_file_names = no && break
9458 done
9460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
9461 $as_echo "$ac_cv_sys_long_file_names" >&6; }
9462 if test $ac_cv_sys_long_file_names = yes; then
9464 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
9469 #### Choose a window system.
9471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
9472 $as_echo_n "checking for X... " >&6; }
9475 # Check whether --with-x was given.
9476 if test "${with_x+set}" = set; then :
9477 withval=$with_x;
9480 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9481 if test "x$with_x" = xno; then
9482 # The user explicitly disabled X.
9483 have_x=disabled
9484 else
9485 case $x_includes,$x_libraries in #(
9486 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
9487 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
9488 $as_echo_n "(cached) " >&6
9489 else
9490 # One or both of the vars are not set, and there is no cached value.
9491 ac_x_includes=no ac_x_libraries=no
9492 rm -f -r conftest.dir
9493 if mkdir conftest.dir; then
9494 cd conftest.dir
9495 cat >Imakefile <<'_ACEOF'
9496 incroot:
9497 @echo incroot='${INCROOT}'
9498 usrlibdir:
9499 @echo usrlibdir='${USRLIBDIR}'
9500 libdir:
9501 @echo libdir='${LIBDIR}'
9502 _ACEOF
9503 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9504 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9505 for ac_var in incroot usrlibdir libdir; do
9506 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9507 done
9508 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9509 for ac_extension in a so sl dylib la dll; do
9510 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9511 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9512 ac_im_usrlibdir=$ac_im_libdir; break
9514 done
9515 # Screen out bogus values from the imake configuration. They are
9516 # bogus both because they are the default anyway, and because
9517 # using them would break gcc on systems where it needs fixed includes.
9518 case $ac_im_incroot in
9519 /usr/include) ac_x_includes= ;;
9520 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9521 esac
9522 case $ac_im_usrlibdir in
9523 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
9524 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9525 esac
9527 cd ..
9528 rm -f -r conftest.dir
9531 # Standard set of common directories for X headers.
9532 # Check X11 before X11Rn because it is often a symlink to the current release.
9533 ac_x_header_dirs='
9534 /usr/X11/include
9535 /usr/X11R7/include
9536 /usr/X11R6/include
9537 /usr/X11R5/include
9538 /usr/X11R4/include
9540 /usr/include/X11
9541 /usr/include/X11R7
9542 /usr/include/X11R6
9543 /usr/include/X11R5
9544 /usr/include/X11R4
9546 /usr/local/X11/include
9547 /usr/local/X11R7/include
9548 /usr/local/X11R6/include
9549 /usr/local/X11R5/include
9550 /usr/local/X11R4/include
9552 /usr/local/include/X11
9553 /usr/local/include/X11R7
9554 /usr/local/include/X11R6
9555 /usr/local/include/X11R5
9556 /usr/local/include/X11R4
9558 /usr/X386/include
9559 /usr/x386/include
9560 /usr/XFree86/include/X11
9562 /usr/include
9563 /usr/local/include
9564 /usr/unsupported/include
9565 /usr/athena/include
9566 /usr/local/x11r5/include
9567 /usr/lpp/Xamples/include
9569 /usr/openwin/include
9570 /usr/openwin/share/include'
9572 if test "$ac_x_includes" = no; then
9573 # Guess where to find include files, by looking for Xlib.h.
9574 # First, try using that file with no special directory specified.
9575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9576 /* end confdefs.h. */
9577 #include <X11/Xlib.h>
9578 _ACEOF
9579 if ac_fn_c_try_cpp "$LINENO"; then :
9580 # We can compile using X headers with no special include directory.
9581 ac_x_includes=
9582 else
9583 for ac_dir in $ac_x_header_dirs; do
9584 if test -r "$ac_dir/X11/Xlib.h"; then
9585 ac_x_includes=$ac_dir
9586 break
9588 done
9590 rm -f conftest.err conftest.$ac_ext
9591 fi # $ac_x_includes = no
9593 if test "$ac_x_libraries" = no; then
9594 # Check for the libraries.
9595 # See if we find them without any special options.
9596 # Don't add to $LIBS permanently.
9597 ac_save_LIBS=$LIBS
9598 LIBS="-lX11 $LIBS"
9599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9600 /* end confdefs.h. */
9601 #include <X11/Xlib.h>
9603 main ()
9605 XrmInitialize ()
9607 return 0;
9609 _ACEOF
9610 if ac_fn_c_try_link "$LINENO"; then :
9611 LIBS=$ac_save_LIBS
9612 # We can link X programs with no special library path.
9613 ac_x_libraries=
9614 else
9615 LIBS=$ac_save_LIBS
9616 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9618 # Don't even attempt the hair of trying to link an X program!
9619 for ac_extension in a so sl dylib la dll; do
9620 if test -r "$ac_dir/libX11.$ac_extension"; then
9621 ac_x_libraries=$ac_dir
9622 break 2
9624 done
9625 done
9627 rm -f core conftest.err conftest.$ac_objext \
9628 conftest$ac_exeext conftest.$ac_ext
9629 fi # $ac_x_libraries = no
9631 case $ac_x_includes,$ac_x_libraries in #(
9632 no,* | *,no | *\'*)
9633 # Didn't find X, or a directory has "'" in its name.
9634 ac_cv_have_x="have_x=no";; #(
9636 # Record where we found X for the cache.
9637 ac_cv_have_x="have_x=yes\
9638 ac_x_includes='$ac_x_includes'\
9639 ac_x_libraries='$ac_x_libraries'"
9640 esac
9642 ;; #(
9643 *) have_x=yes;;
9644 esac
9645 eval "$ac_cv_have_x"
9646 fi # $with_x != no
9648 if test "$have_x" != yes; then
9649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
9650 $as_echo "$have_x" >&6; }
9651 no_x=yes
9652 else
9653 # If each of the values was on the command line, it overrides each guess.
9654 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9655 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9656 # Update the cache value to reflect the command line values.
9657 ac_cv_have_x="have_x=yes\
9658 ac_x_includes='$x_includes'\
9659 ac_x_libraries='$x_libraries'"
9660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
9661 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
9664 if test "$no_x" = yes; then
9665 window_system=none
9666 else
9667 window_system=x11
9670 ## Workaround for bug in autoconf <= 2.62.
9671 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
9672 ## No need to do anything special for these standard directories.
9673 if test -n "${x_libraries}" && test x"${x_libraries}" != xNONE; then
9675 x_libraries=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
9679 LD_SWITCH_X_SITE_AUX=
9680 LD_SWITCH_X_SITE_AUX_RPATH=
9681 if test "${x_libraries}" != NONE; then
9682 if test -n "${x_libraries}"; then
9683 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9684 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9685 LD_SWITCH_X_SITE_AUX_RPATH=`echo ${LD_SWITCH_X_SITE_AUX} | sed -e 's/-R/-Wl,-rpath,/'`
9687 x_default_search_path=""
9688 x_search_path=${x_libraries}
9689 if test -z "${x_search_path}"; then
9690 x_search_path=/usr/lib
9692 for x_library in `echo ${x_search_path}: | \
9693 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9694 x_search_path="\
9695 ${x_library}/X11/%L/%T/%N%C%S:\
9696 ${x_library}/X11/%l/%T/%N%C%S:\
9697 ${x_library}/X11/%T/%N%C%S:\
9698 ${x_library}/X11/%L/%T/%N%S:\
9699 ${x_library}/X11/%l/%T/%N%S:\
9700 ${x_library}/X11/%T/%N%S"
9701 if test x"${x_default_search_path}" = x; then
9702 x_default_search_path=${x_search_path}
9703 else
9704 x_default_search_path="${x_search_path}:${x_default_search_path}"
9706 done
9711 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9712 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9715 if test x"${x_includes}" = x; then
9716 bitmapdir=/usr/include/X11/bitmaps
9717 else
9718 # accumulate include directories that have X11 bitmap subdirectories
9719 bmd_acc="dummyval"
9720 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9721 if test -d "${bmd}/X11/bitmaps"; then
9722 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9724 if test -d "${bmd}/bitmaps"; then
9725 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9727 done
9728 if test ${bmd_acc} != "dummyval"; then
9729 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9733 HAVE_NS=no
9734 NS_IMPL_COCOA=no
9735 NS_IMPL_GNUSTEP=no
9736 tmp_CPPFLAGS="$CPPFLAGS"
9737 tmp_CFLAGS="$CFLAGS"
9738 CPPFLAGS="$CPPFLAGS -x objective-c"
9739 CFLAGS="$CFLAGS -x objective-c"
9740 TEMACS_LDFLAGS2="\${LDFLAGS}"
9741 GNU_OBJC_CFLAGS=
9742 if test "${with_ns}" != no; then
9743 if test "${opsys}" = darwin; then
9744 NS_IMPL_COCOA=yes
9745 ns_appdir=`pwd`/nextstep/Emacs.app
9746 ns_appbindir=${ns_appdir}/Contents/MacOS/
9747 ns_appresdir=${ns_appdir}/Contents/Resources
9748 ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base
9749 elif test -f $GNUSTEP_CONFIG_FILE; then
9750 NS_IMPL_GNUSTEP=yes
9751 ns_appdir=`pwd`/nextstep/Emacs.app
9752 ns_appbindir=${ns_appdir}/
9753 ns_appresdir=${ns_appdir}/Resources
9754 ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base
9755 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9756 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9757 GNUSTEP_LOCAL_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
9758 GNUSTEP_LOCAL_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
9759 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
9760 GNUSTEP_LOCAL_HEADERS="-I${GNUSTEP_LOCAL_HEADERS}"
9761 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
9762 GNUSTEP_LOCAL_LIBRARIES="-L${GNUSTEP_LOCAL_LIBRARIES}"
9763 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9764 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9765 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
9766 LIB_STANDARD=
9767 START_FILES=
9768 TEMACS_LDFLAGS2=
9769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS" >&5
9770 $as_echo_n "checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS... " >&6; }
9771 if test "${emacs_cv_objc_exceptions+set}" = set; then :
9772 $as_echo_n "(cached) " >&6
9773 else
9774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9775 /* end confdefs.h. */
9776 #include <GNUstepBase/GSConfig.h>
9778 main ()
9780 #if defined BASE_NATIVE_OBJC_EXCEPTIONS && BASE_NATIVE_OBJC_EXCEPTIONS > 0
9782 #else
9783 fail;
9784 #endif
9786 return 0;
9788 _ACEOF
9789 if ac_fn_c_try_compile "$LINENO"; then :
9790 emacs_cv_objc_exceptions=yes
9791 else
9792 emacs_cv_objc_exceptions=no
9794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_objc_exceptions" >&5
9797 $as_echo "$emacs_cv_objc_exceptions" >&6; }
9798 if test $emacs_cv_objc_exceptions = yes; then
9800 $as_echo "#define _NATIVE_OBJC_EXCEPTIONS 1" >>confdefs.h
9802 GNU_OBJC_CFLAGS="-fobjc-exceptions"
9806 CFLAGS="$CFLAGS $GNU_OBJC_CFLAGS"
9808 ac_fn_c_check_header_mongrel "$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
9809 if test "x$ac_cv_header_AppKit_AppKit_h" = x""yes; then :
9810 HAVE_NS=yes
9811 else
9812 as_fn_error "\`--with-ns' was specified, but the include
9813 files are missing or cannot be compiled." "$LINENO" 5
9817 NS_HAVE_NSINTEGER=yes
9818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9819 /* end confdefs.h. */
9820 #include <Foundation/NSObjCRuntime.h>
9822 main ()
9824 NSInteger i;
9826 return 0;
9828 _ACEOF
9829 if ac_fn_c_try_compile "$LINENO"; then :
9830 ns_have_nsinteger=yes
9831 else
9832 ns_have_nsinteger=no
9834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9835 if test $ns_have_nsinteger = no; then
9836 NS_HAVE_NSINTEGER=no
9841 ns_frag=/dev/null
9842 NS_OBJ=
9843 NS_OBJC_OBJ=
9844 if test "${HAVE_NS}" = yes; then
9845 if test "$with_toolkit_scroll_bars" = "no"; then
9846 as_fn_error "Non-toolkit scroll bars are not implemented for Nextstep." "$LINENO" 5
9849 window_system=nextstep
9850 with_xft=no
9851 # set up packaging dirs
9852 if test "${EN_NS_SELF_CONTAINED}" = yes; then
9853 prefix=${ns_appresdir}
9854 exec_prefix=${ns_appbindir}
9855 libexecdir=${ns_appbindir}/libexec
9857 ns_frag=$srcdir/src/ns.mk
9858 NS_OBJ="fontset.o fringe.o image.o"
9859 NS_OBJC_OBJ="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o"
9861 CFLAGS="$tmp_CFLAGS"
9862 CPPFLAGS="$tmp_CPPFLAGS"
9868 case "${window_system}" in
9869 x11 )
9870 HAVE_X_WINDOWS=yes
9871 HAVE_X11=yes
9872 case "${with_x_toolkit}" in
9873 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9874 motif ) USE_X_TOOLKIT=MOTIF ;;
9875 gtk ) with_gtk=yes
9876 USE_X_TOOLKIT=none ;;
9877 gtk3 ) with_gtk3=yes
9878 USE_X_TOOLKIT=none ;;
9879 no ) USE_X_TOOLKIT=none ;;
9880 * ) USE_X_TOOLKIT=maybe ;;
9881 esac
9883 nextstep | none )
9884 HAVE_X_WINDOWS=no
9885 HAVE_X11=no
9886 USE_X_TOOLKIT=none
9888 esac
9890 if test "$window_system" = none && test "X$with_x" != "Xno"; then
9891 # Extract the first word of "X", so it can be a program name with args.
9892 set dummy X; ac_word=$2
9893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9894 $as_echo_n "checking for $ac_word... " >&6; }
9895 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then :
9896 $as_echo_n "(cached) " >&6
9897 else
9898 if test -n "$HAVE_XSERVER"; then
9899 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9900 else
9901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9902 for as_dir in $PATH
9904 IFS=$as_save_IFS
9905 test -z "$as_dir" && as_dir=.
9906 for ac_exec_ext in '' $ac_executable_extensions; do
9907 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9908 ac_cv_prog_HAVE_XSERVER="true"
9909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9910 break 2
9912 done
9913 done
9914 IFS=$as_save_IFS
9916 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9919 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9920 if test -n "$HAVE_XSERVER"; then
9921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
9922 $as_echo "$HAVE_XSERVER" >&6; }
9923 else
9924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9925 $as_echo "no" >&6; }
9929 if test "$HAVE_XSERVER" = true ||
9930 test -n "$DISPLAY" ||
9931 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
9932 as_fn_error "You seem to be running X, but no X development libraries
9933 were found. You should install the relevant development files for X
9934 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9935 sure you have development files for image handling, i.e.
9936 tiff, gif, jpeg, png and xpm.
9937 If you are sure you want Emacs compiled without X window support, pass
9938 --without-x
9939 to configure." "$LINENO" 5
9943 ### If we're using X11, we should use the X menu package.
9944 HAVE_MENUS=no
9945 case ${HAVE_X11} in
9946 yes ) HAVE_MENUS=yes ;;
9947 esac
9949 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9950 # Assume not, until told otherwise.
9951 GNU_MALLOC=yes
9952 doug_lea_malloc=yes
9953 ac_fn_c_check_func "$LINENO" "malloc_get_state" "ac_cv_func_malloc_get_state"
9954 if test "x$ac_cv_func_malloc_get_state" = x""yes; then :
9956 else
9957 doug_lea_malloc=no
9960 ac_fn_c_check_func "$LINENO" "malloc_set_state" "ac_cv_func_malloc_set_state"
9961 if test "x$ac_cv_func_malloc_set_state" = x""yes; then :
9963 else
9964 doug_lea_malloc=no
9967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __after_morecore_hook exists" >&5
9968 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
9969 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then :
9970 $as_echo_n "(cached) " >&6
9971 else
9972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9973 /* end confdefs.h. */
9974 extern void (* __after_morecore_hook)();
9976 main ()
9978 __after_morecore_hook = 0
9980 return 0;
9982 _ACEOF
9983 if ac_fn_c_try_link "$LINENO"; then :
9984 emacs_cv_var___after_morecore_hook=yes
9985 else
9986 emacs_cv_var___after_morecore_hook=no
9988 rm -f core conftest.err conftest.$ac_objext \
9989 conftest$ac_exeext conftest.$ac_ext
9991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var___after_morecore_hook" >&5
9992 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
9993 if test $emacs_cv_var___after_morecore_hook = no; then
9994 doug_lea_malloc=no
9998 system_malloc=no
9999 case "$opsys" in
10000 ## darwin ld insists on the use of malloc routines in the System framework.
10001 darwin|sol2-10) system_malloc=yes ;;
10002 esac
10004 if test "${system_malloc}" = "yes"; then
10006 $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
10008 GNU_MALLOC=no
10009 GNU_MALLOC_reason="
10010 (The GNU allocators don't work with this system configuration.)"
10011 GMALLOC_OBJ=
10012 VMLIMIT_OBJ=
10013 else
10014 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ=gmalloc.o
10015 VMLIMIT_OBJ=vm-limit.o
10020 if test "$doug_lea_malloc" = "yes" ; then
10021 if test "$GNU_MALLOC" = yes ; then
10022 GNU_MALLOC_reason="
10023 (Using Doug Lea's new malloc from the GNU C Library.)"
10026 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
10029 ## Use mmap directly for allocating larger buffers.
10030 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
10031 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
10032 ## Does the AC_FUNC_MMAP test below make this check unnecessary?
10033 case "$opsys" in
10034 gnu*) REL_ALLOC=no ;;
10035 esac
10038 if test x"${REL_ALLOC}" = x; then
10039 REL_ALLOC=${GNU_MALLOC}
10042 use_mmap_for_buffers=no
10043 case "$opsys" in
10044 cygwin|freebsd|irix6-5) use_mmap_for_buffers=yes ;;
10045 esac
10050 for ac_header in $ac_header_list
10051 do :
10052 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10053 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
10055 eval as_val=\$$as_ac_Header
10056 if test "x$as_val" = x""yes; then :
10057 cat >>confdefs.h <<_ACEOF
10058 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10059 _ACEOF
10063 done
10072 for ac_func in getpagesize
10073 do :
10074 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
10075 if test "x$ac_cv_func_getpagesize" = x""yes; then :
10076 cat >>confdefs.h <<_ACEOF
10077 #define HAVE_GETPAGESIZE 1
10078 _ACEOF
10081 done
10083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
10084 $as_echo_n "checking for working mmap... " >&6; }
10085 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
10086 $as_echo_n "(cached) " >&6
10087 else
10088 if test "$cross_compiling" = yes; then :
10089 ac_cv_func_mmap_fixed_mapped=no
10090 else
10091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10092 /* end confdefs.h. */
10093 $ac_includes_default
10094 /* malloc might have been renamed as rpl_malloc. */
10095 #undef malloc
10097 /* Thanks to Mike Haertel and Jim Avera for this test.
10098 Here is a matrix of mmap possibilities:
10099 mmap private not fixed
10100 mmap private fixed at somewhere currently unmapped
10101 mmap private fixed at somewhere already mapped
10102 mmap shared not fixed
10103 mmap shared fixed at somewhere currently unmapped
10104 mmap shared fixed at somewhere already mapped
10105 For private mappings, we should verify that changes cannot be read()
10106 back from the file, nor mmap's back from the file at a different
10107 address. (There have been systems where private was not correctly
10108 implemented like the infamous i386 svr4.0, and systems where the
10109 VM page cache was not coherent with the file system buffer cache
10110 like early versions of FreeBSD and possibly contemporary NetBSD.)
10111 For shared mappings, we should conversely verify that changes get
10112 propagated back to all the places they're supposed to be.
10114 Grep wants private fixed already mapped.
10115 The main things grep needs to know about mmap are:
10116 * does it exist and is it safe to write into the mmap'd area
10117 * how to use it (BSD variants) */
10119 #include <fcntl.h>
10120 #include <sys/mman.h>
10122 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10123 char *malloc ();
10124 #endif
10126 /* This mess was copied from the GNU getpagesize.h. */
10127 #ifndef HAVE_GETPAGESIZE
10128 # ifdef _SC_PAGESIZE
10129 # define getpagesize() sysconf(_SC_PAGESIZE)
10130 # else /* no _SC_PAGESIZE */
10131 # ifdef HAVE_SYS_PARAM_H
10132 # include <sys/param.h>
10133 # ifdef EXEC_PAGESIZE
10134 # define getpagesize() EXEC_PAGESIZE
10135 # else /* no EXEC_PAGESIZE */
10136 # ifdef NBPG
10137 # define getpagesize() NBPG * CLSIZE
10138 # ifndef CLSIZE
10139 # define CLSIZE 1
10140 # endif /* no CLSIZE */
10141 # else /* no NBPG */
10142 # ifdef NBPC
10143 # define getpagesize() NBPC
10144 # else /* no NBPC */
10145 # ifdef PAGESIZE
10146 # define getpagesize() PAGESIZE
10147 # endif /* PAGESIZE */
10148 # endif /* no NBPC */
10149 # endif /* no NBPG */
10150 # endif /* no EXEC_PAGESIZE */
10151 # else /* no HAVE_SYS_PARAM_H */
10152 # define getpagesize() 8192 /* punt totally */
10153 # endif /* no HAVE_SYS_PARAM_H */
10154 # endif /* no _SC_PAGESIZE */
10156 #endif /* no HAVE_GETPAGESIZE */
10159 main ()
10161 char *data, *data2, *data3;
10162 const char *cdata2;
10163 int i, pagesize;
10164 int fd, fd2;
10166 pagesize = getpagesize ();
10168 /* First, make a file with some known garbage in it. */
10169 data = (char *) malloc (pagesize);
10170 if (!data)
10171 return 1;
10172 for (i = 0; i < pagesize; ++i)
10173 *(data + i) = rand ();
10174 umask (0);
10175 fd = creat ("conftest.mmap", 0600);
10176 if (fd < 0)
10177 return 2;
10178 if (write (fd, data, pagesize) != pagesize)
10179 return 3;
10180 close (fd);
10182 /* Next, check that the tail of a page is zero-filled. File must have
10183 non-zero length, otherwise we risk SIGBUS for entire page. */
10184 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
10185 if (fd2 < 0)
10186 return 4;
10187 cdata2 = "";
10188 if (write (fd2, cdata2, 1) != 1)
10189 return 5;
10190 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
10191 if (data2 == MAP_FAILED)
10192 return 6;
10193 for (i = 0; i < pagesize; ++i)
10194 if (*(data2 + i))
10195 return 7;
10196 close (fd2);
10197 if (munmap (data2, pagesize))
10198 return 8;
10200 /* Next, try to mmap the file at a fixed address which already has
10201 something else allocated at it. If we can, also make sure that
10202 we see the same garbage. */
10203 fd = open ("conftest.mmap", O_RDWR);
10204 if (fd < 0)
10205 return 9;
10206 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10207 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10208 return 10;
10209 for (i = 0; i < pagesize; ++i)
10210 if (*(data + i) != *(data2 + i))
10211 return 11;
10213 /* Finally, make sure that changes to the mapped area do not
10214 percolate back to the file as seen by read(). (This is a bug on
10215 some variants of i386 svr4.0.) */
10216 for (i = 0; i < pagesize; ++i)
10217 *(data2 + i) = *(data2 + i) + 1;
10218 data3 = (char *) malloc (pagesize);
10219 if (!data3)
10220 return 12;
10221 if (read (fd, data3, pagesize) != pagesize)
10222 return 13;
10223 for (i = 0; i < pagesize; ++i)
10224 if (*(data + i) != *(data3 + i))
10225 return 14;
10226 close (fd);
10227 return 0;
10229 _ACEOF
10230 if ac_fn_c_try_run "$LINENO"; then :
10231 ac_cv_func_mmap_fixed_mapped=yes
10232 else
10233 ac_cv_func_mmap_fixed_mapped=no
10235 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10236 conftest.$ac_objext conftest.beam conftest.$ac_ext
10240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
10241 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
10242 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10244 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
10247 rm -f conftest.mmap conftest.txt
10249 if test $use_mmap_for_buffers = yes; then
10251 $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
10253 REL_ALLOC=no
10256 LIBS="$LIBS_SYSTEM $LIBS"
10258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
10259 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
10260 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
10261 $as_echo_n "(cached) " >&6
10262 else
10263 ac_check_lib_save_LIBS=$LIBS
10264 LIBS="-ldnet $LIBS"
10265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10266 /* end confdefs.h. */
10268 /* Override any GCC internal prototype to avoid an error.
10269 Use char because int might match the return type of a GCC
10270 builtin and then its argument prototype would still apply. */
10271 #ifdef __cplusplus
10272 extern "C"
10273 #endif
10274 char dnet_ntoa ();
10276 main ()
10278 return dnet_ntoa ();
10280 return 0;
10282 _ACEOF
10283 if ac_fn_c_try_link "$LINENO"; then :
10284 ac_cv_lib_dnet_dnet_ntoa=yes
10285 else
10286 ac_cv_lib_dnet_dnet_ntoa=no
10288 rm -f core conftest.err conftest.$ac_objext \
10289 conftest$ac_exeext conftest.$ac_ext
10290 LIBS=$ac_check_lib_save_LIBS
10292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10293 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10294 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
10295 cat >>confdefs.h <<_ACEOF
10296 #define HAVE_LIBDNET 1
10297 _ACEOF
10299 LIBS="-ldnet $LIBS"
10304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
10305 $as_echo_n "checking for main in -lXbsd... " >&6; }
10306 if test "${ac_cv_lib_Xbsd_main+set}" = set; then :
10307 $as_echo_n "(cached) " >&6
10308 else
10309 ac_check_lib_save_LIBS=$LIBS
10310 LIBS="-lXbsd $LIBS"
10311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10312 /* end confdefs.h. */
10316 main ()
10318 return main ();
10320 return 0;
10322 _ACEOF
10323 if ac_fn_c_try_link "$LINENO"; then :
10324 ac_cv_lib_Xbsd_main=yes
10325 else
10326 ac_cv_lib_Xbsd_main=no
10328 rm -f core conftest.err conftest.$ac_objext \
10329 conftest$ac_exeext conftest.$ac_ext
10330 LIBS=$ac_check_lib_save_LIBS
10332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
10333 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
10334 if test "x$ac_cv_lib_Xbsd_main" = x""yes; then :
10335 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10339 LIB_PTHREAD=
10340 for ac_header in pthread.h
10341 do :
10342 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
10343 if test "x$ac_cv_header_pthread_h" = x""yes; then :
10344 cat >>confdefs.h <<_ACEOF
10345 #define HAVE_PTHREAD_H 1
10346 _ACEOF
10350 done
10352 if test "$ac_cv_header_pthread_h"; then
10353 if test "$GMALLOC_OBJ" = gmalloc.o; then
10354 emacs_pthread_function=pthread_atfork
10355 else
10356 emacs_pthread_function=pthread_self
10358 as_ac_Lib=`$as_echo "ac_cv_lib_pthread_$emacs_pthread_function" | $as_tr_sh`
10359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $emacs_pthread_function in -lpthread" >&5
10360 $as_echo_n "checking for $emacs_pthread_function in -lpthread... " >&6; }
10361 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
10362 $as_echo_n "(cached) " >&6
10363 else
10364 ac_check_lib_save_LIBS=$LIBS
10365 LIBS="-lpthread $LIBS"
10366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10367 /* end confdefs.h. */
10369 /* Override any GCC internal prototype to avoid an error.
10370 Use char because int might match the return type of a GCC
10371 builtin and then its argument prototype would still apply. */
10372 #ifdef __cplusplus
10373 extern "C"
10374 #endif
10375 char $emacs_pthread_function ();
10377 main ()
10379 return $emacs_pthread_function ();
10381 return 0;
10383 _ACEOF
10384 if ac_fn_c_try_link "$LINENO"; then :
10385 eval "$as_ac_Lib=yes"
10386 else
10387 eval "$as_ac_Lib=no"
10389 rm -f core conftest.err conftest.$ac_objext \
10390 conftest$ac_exeext conftest.$ac_ext
10391 LIBS=$ac_check_lib_save_LIBS
10393 eval ac_res=\$$as_ac_Lib
10394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10395 $as_echo "$ac_res" >&6; }
10396 eval as_val=\$$as_ac_Lib
10397 if test "x$as_val" = x""yes; then :
10398 HAVE_PTHREAD=yes
10402 if test "$HAVE_PTHREAD" = yes; then
10403 case "${canonical}" in
10404 *-hpux*) ;;
10405 *) LIB_PTHREAD="-lpthread"
10406 LIBS="$LIB_PTHREAD $LIBS" ;;
10407 esac
10409 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
10414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
10415 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
10416 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then :
10417 $as_echo_n "(cached) " >&6
10418 else
10419 ac_check_lib_save_LIBS=$LIBS
10420 LIBS="-lpthreads $LIBS"
10421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10422 /* end confdefs.h. */
10424 /* Override any GCC internal prototype to avoid an error.
10425 Use char because int might match the return type of a GCC
10426 builtin and then its argument prototype would still apply. */
10427 #ifdef __cplusplus
10428 extern "C"
10429 #endif
10430 char cma_open ();
10432 main ()
10434 return cma_open ();
10436 return 0;
10438 _ACEOF
10439 if ac_fn_c_try_link "$LINENO"; then :
10440 ac_cv_lib_pthreads_cma_open=yes
10441 else
10442 ac_cv_lib_pthreads_cma_open=no
10444 rm -f core conftest.err conftest.$ac_objext \
10445 conftest$ac_exeext conftest.$ac_ext
10446 LIBS=$ac_check_lib_save_LIBS
10448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
10449 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
10450 if test "x$ac_cv_lib_pthreads_cma_open" = x""yes; then :
10451 cat >>confdefs.h <<_ACEOF
10452 #define HAVE_LIBPTHREADS 1
10453 _ACEOF
10455 LIBS="-lpthreads $LIBS"
10460 ## Note: when using cpp in s/aix4.2.h, this definition depended on
10461 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
10462 ## the system file was sourced. Hence the value of LIBS_SYSTEM
10463 ## added to LIBS in configure would never contain the pthreads part,
10464 ## but the value used in Makefiles might. FIXME?
10466 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
10467 ## be harmless on older versions of X where it happens to exist.
10468 test "$opsys" = "aix4-2" && \
10469 test $ac_cv_lib_pthreads_cma_open = yes && \
10470 LIBS_SYSTEM="$LIBS_SYSTEM -lpthreads"
10473 case ${host_os} in
10474 aix*)
10475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
10476 $as_echo_n "checking for -bbigtoc option... " >&6; }
10477 if test "${gdb_cv_bigtoc+set}" = set; then :
10478 $as_echo_n "(cached) " >&6
10479 else
10481 case $GCC in
10482 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
10483 *) gdb_cv_bigtoc=-bbigtoc ;;
10484 esac
10486 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10488 /* end confdefs.h. */
10491 main ()
10493 int i;
10495 return 0;
10497 _ACEOF
10498 if ac_fn_c_try_link "$LINENO"; then :
10500 else
10501 gdb_cv_bigtoc=
10503 rm -f core conftest.err conftest.$ac_objext \
10504 conftest$ac_exeext conftest.$ac_ext
10507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
10508 $as_echo "$gdb_cv_bigtoc" >&6; }
10510 esac
10512 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10513 # used for the tests that follow. We set them back to REAL_CFLAGS and
10514 # REAL_CPPFLAGS later on.
10516 REAL_CFLAGS="$CFLAGS"
10517 REAL_CPPFLAGS="$CPPFLAGS"
10519 if test "${HAVE_X11}" = "yes"; then
10520 DEFS="$C_SWITCH_X_SITE $DEFS"
10521 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10522 LIBS="-lX11 $LIBS"
10523 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10524 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10526 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10527 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10528 # but it's more convenient here to set LD_RUN_PATH
10529 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10530 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10531 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10532 export LD_RUN_PATH
10535 if test "${opsys}" = "gnu-linux"; then
10536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
10537 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
10538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10539 /* end confdefs.h. */
10542 main ()
10544 XOpenDisplay ("foo");
10546 return 0;
10548 _ACEOF
10549 if ac_fn_c_try_link "$LINENO"; then :
10550 xgnu_linux_first_failure=no
10551 else
10552 xgnu_linux_first_failure=yes
10554 rm -f core conftest.err conftest.$ac_objext \
10555 conftest$ac_exeext conftest.$ac_ext
10556 if test "${xgnu_linux_first_failure}" = "yes"; then
10557 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
10558 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
10559 OLD_CPPFLAGS="$CPPFLAGS"
10560 OLD_LIBS="$LIBS"
10561 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
10562 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
10563 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
10564 LIBS="$LIBS -b i486-linuxaout"
10565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10566 /* end confdefs.h. */
10569 main ()
10571 XOpenDisplay ("foo");
10573 return 0;
10575 _ACEOF
10576 if ac_fn_c_try_link "$LINENO"; then :
10577 xgnu_linux_second_failure=no
10578 else
10579 xgnu_linux_second_failure=yes
10581 rm -f core conftest.err conftest.$ac_objext \
10582 conftest$ac_exeext conftest.$ac_ext
10583 if test "${xgnu_linux_second_failure}" = "yes"; then
10584 # If we get the same failure with -b, there is no use adding -b.
10585 # So take it out. This plays safe.
10586 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10587 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10588 CPPFLAGS="$OLD_CPPFLAGS"
10589 LIBS="$OLD_LIBS"
10590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10591 $as_echo "no" >&6; }
10592 else
10593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10594 $as_echo "yes" >&6; }
10596 else
10597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10598 $as_echo "no" >&6; }
10602 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10603 # header files included from there.
10604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
10605 $as_echo_n "checking for Xkb... " >&6; }
10606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10607 /* end confdefs.h. */
10608 #include <X11/Xlib.h>
10609 #include <X11/XKBlib.h>
10611 main ()
10613 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10615 return 0;
10617 _ACEOF
10618 if ac_fn_c_try_link "$LINENO"; then :
10619 emacs_xkb=yes
10620 else
10621 emacs_xkb=no
10623 rm -f core conftest.err conftest.$ac_objext \
10624 conftest$ac_exeext conftest.$ac_ext
10625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
10626 $as_echo "$emacs_xkb" >&6; }
10627 if test $emacs_xkb = yes; then
10629 $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
10633 for ac_func in XrmSetDatabase XScreenResourceString \
10634 XScreenNumberOfScreen XSetWMProtocols
10635 do :
10636 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10637 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10638 eval as_val=\$$as_ac_var
10639 if test "x$as_val" = x""yes; then :
10640 cat >>confdefs.h <<_ACEOF
10641 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10642 _ACEOF
10645 done
10649 if test "${window_system}" = "x11"; then
10650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
10651 $as_echo_n "checking X11 version 6... " >&6; }
10652 if test "${emacs_cv_x11_version_6+set}" = set; then :
10653 $as_echo_n "(cached) " >&6
10654 else
10655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10656 /* end confdefs.h. */
10657 #include <X11/Xlib.h>
10659 main ()
10661 #if XlibSpecificationRelease < 6
10662 fail;
10663 #endif
10666 return 0;
10668 _ACEOF
10669 if ac_fn_c_try_link "$LINENO"; then :
10670 emacs_cv_x11_version_6=yes
10671 else
10672 emacs_cv_x11_version_6=no
10674 rm -f core conftest.err conftest.$ac_objext \
10675 conftest$ac_exeext conftest.$ac_ext
10678 if test $emacs_cv_x11_version_6 = yes; then
10679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
10680 $as_echo "6 or newer" >&6; }
10682 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
10685 $as_echo "#define HAVE_X_I18N 1" >>confdefs.h
10687 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
10688 ## XIM support.
10689 case "$opsys" in
10690 sol2-*) : ;;
10692 $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
10695 esac
10696 else
10697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
10698 $as_echo "before 6" >&6; }
10703 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
10704 HAVE_RSVG=no
10705 if test "${HAVE_X11}" = "yes" || test "${HAVE_NS}" = "yes"; then
10706 if test "${with_rsvg}" != "no"; then
10707 RSVG_REQUIRED=2.11.0
10708 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
10711 succeeded=no
10713 # Extract the first word of "pkg-config", so it can be a program name with args.
10714 set dummy pkg-config; ac_word=$2
10715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10716 $as_echo_n "checking for $ac_word... " >&6; }
10717 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10718 $as_echo_n "(cached) " >&6
10719 else
10720 case $PKG_CONFIG in
10721 [\\/]* | ?:[\\/]*)
10722 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10726 for as_dir in $PATH
10728 IFS=$as_save_IFS
10729 test -z "$as_dir" && as_dir=.
10730 for ac_exec_ext in '' $ac_executable_extensions; do
10731 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10732 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10734 break 2
10736 done
10737 done
10738 IFS=$as_save_IFS
10740 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10742 esac
10744 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10745 if test -n "$PKG_CONFIG"; then
10746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10747 $as_echo "$PKG_CONFIG" >&6; }
10748 else
10749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10750 $as_echo "no" >&6; }
10755 if test "$PKG_CONFIG" = "no" ; then
10757 else
10758 PKG_CONFIG_MIN_VERSION=0.9.0
10759 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
10761 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
10763 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
10764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10765 $as_echo "yes" >&6; }
10766 succeeded=yes
10768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_CFLAGS" >&5
10769 $as_echo_n "checking RSVG_CFLAGS... " >&6; }
10770 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_CFLAGS" >&5
10772 $as_echo "$RSVG_CFLAGS" >&6; }
10774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_LIBS" >&5
10775 $as_echo_n "checking RSVG_LIBS... " >&6; }
10776 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_LIBS" >&5
10778 $as_echo "$RSVG_LIBS" >&6; }
10779 else
10780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10781 $as_echo "no" >&6; }
10782 RSVG_CFLAGS=""
10783 RSVG_LIBS=""
10784 ## If we have a custom action on failure, don't print errors, but
10785 ## do set a variable so people can do so.
10786 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
10792 else
10793 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10794 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10798 if test $succeeded = yes; then
10799 HAVE_RSVG=yes
10800 else
10807 if test $HAVE_RSVG = yes; then
10809 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
10811 CFLAGS="$CFLAGS $RSVG_CFLAGS"
10812 LIBS="$RSVG_LIBS $LIBS"
10817 HAVE_IMAGEMAGICK=no
10818 if test "${HAVE_X11}" = "yes"; then
10819 if test "${with_imagemagick}" != "no"; then
10820 ## 6.2.8 is the earliest version known to work, but earlier versions
10821 ## might work - let us know if you find one.
10822 ## 6.0.7 does not work. See bug#7955.
10823 IMAGEMAGICK_MODULE="Wand >= 6.2.8"
10825 succeeded=no
10827 # Extract the first word of "pkg-config", so it can be a program name with args.
10828 set dummy pkg-config; ac_word=$2
10829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10830 $as_echo_n "checking for $ac_word... " >&6; }
10831 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10832 $as_echo_n "(cached) " >&6
10833 else
10834 case $PKG_CONFIG in
10835 [\\/]* | ?:[\\/]*)
10836 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10840 for as_dir in $PATH
10842 IFS=$as_save_IFS
10843 test -z "$as_dir" && as_dir=.
10844 for ac_exec_ext in '' $ac_executable_extensions; do
10845 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10846 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10848 break 2
10850 done
10851 done
10852 IFS=$as_save_IFS
10854 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10856 esac
10858 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10859 if test -n "$PKG_CONFIG"; then
10860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10861 $as_echo "$PKG_CONFIG" >&6; }
10862 else
10863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10864 $as_echo "no" >&6; }
10869 if test "$PKG_CONFIG" = "no" ; then
10871 else
10872 PKG_CONFIG_MIN_VERSION=0.9.0
10873 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
10875 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
10877 if $PKG_CONFIG --exists "$IMAGEMAGICK_MODULE" 2>&5; then
10878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10879 $as_echo "yes" >&6; }
10880 succeeded=yes
10882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_CFLAGS" >&5
10883 $as_echo_n "checking IMAGEMAGICK_CFLAGS... " >&6; }
10884 IMAGEMAGICK_CFLAGS=`$PKG_CONFIG --cflags "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
10885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_CFLAGS" >&5
10886 $as_echo "$IMAGEMAGICK_CFLAGS" >&6; }
10888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_LIBS" >&5
10889 $as_echo_n "checking IMAGEMAGICK_LIBS... " >&6; }
10890 IMAGEMAGICK_LIBS=`$PKG_CONFIG --libs "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
10891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_LIBS" >&5
10892 $as_echo "$IMAGEMAGICK_LIBS" >&6; }
10893 else
10894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10895 $as_echo "no" >&6; }
10896 IMAGEMAGICK_CFLAGS=""
10897 IMAGEMAGICK_LIBS=""
10898 ## If we have a custom action on failure, don't print errors, but
10899 ## do set a variable so people can do so.
10900 IMAGEMAGICK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$IMAGEMAGICK_MODULE"`
10906 else
10907 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10908 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10912 if test $succeeded = yes; then
10913 HAVE_IMAGEMAGICK=yes
10914 else
10921 if test $HAVE_IMAGEMAGICK = yes; then
10923 $as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
10925 CFLAGS="$CFLAGS $IMAGEMAGICK_CFLAGS"
10926 LIBS="$IMAGEMAGICK_LIBS $LIBS"
10927 for ac_func in MagickExportImagePixels
10928 do :
10929 ac_fn_c_check_func "$LINENO" "MagickExportImagePixels" "ac_cv_func_MagickExportImagePixels"
10930 if test "x$ac_cv_func_MagickExportImagePixels" = x""yes; then :
10931 cat >>confdefs.h <<_ACEOF
10932 #define HAVE_MAGICKEXPORTIMAGEPIXELS 1
10933 _ACEOF
10936 done
10943 HAVE_GTK=no
10944 GTK_OBJ=
10945 if test "${with_gtk3}" = "yes"; then
10946 GLIB_REQUIRED=2.28
10947 GTK_REQUIRED=3.0
10948 GTK_MODULES="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10951 succeeded=no
10953 # Extract the first word of "pkg-config", so it can be a program name with args.
10954 set dummy pkg-config; ac_word=$2
10955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10956 $as_echo_n "checking for $ac_word... " >&6; }
10957 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10958 $as_echo_n "(cached) " >&6
10959 else
10960 case $PKG_CONFIG in
10961 [\\/]* | ?:[\\/]*)
10962 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10966 for as_dir in $PATH
10968 IFS=$as_save_IFS
10969 test -z "$as_dir" && as_dir=.
10970 for ac_exec_ext in '' $ac_executable_extensions; do
10971 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10972 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10974 break 2
10976 done
10977 done
10978 IFS=$as_save_IFS
10980 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10982 esac
10984 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10985 if test -n "$PKG_CONFIG"; then
10986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10987 $as_echo "$PKG_CONFIG" >&6; }
10988 else
10989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10990 $as_echo "no" >&6; }
10995 if test "$PKG_CONFIG" = "no" ; then
10996 pkg_check_gtk=no
10997 else
10998 PKG_CONFIG_MIN_VERSION=0.9.0
10999 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
11001 $as_echo_n "checking for $GTK_MODULES... " >&6; }
11003 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11005 $as_echo "yes" >&6; }
11006 succeeded=yes
11008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
11009 $as_echo_n "checking GTK_CFLAGS... " >&6; }
11010 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
11011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
11012 $as_echo "$GTK_CFLAGS" >&6; }
11014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
11015 $as_echo_n "checking GTK_LIBS... " >&6; }
11016 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
11017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
11018 $as_echo "$GTK_LIBS" >&6; }
11019 else
11020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11021 $as_echo "no" >&6; }
11022 GTK_CFLAGS=""
11023 GTK_LIBS=""
11024 ## If we have a custom action on failure, don't print errors, but
11025 ## do set a variable so people can do so.
11026 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11032 else
11033 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11034 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11038 if test $succeeded = yes; then
11039 pkg_check_gtk=yes
11040 else
11041 pkg_check_gtk=no
11044 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
11045 as_fn_error "$GTK_PKG_ERRORS" "$LINENO" 5
11048 $as_echo "#define HAVE_GTK3 1" >>confdefs.h
11050 GTK_OBJ=emacsgtkfixed.o
11053 if test "$pkg_check_gtk" != "yes"; then
11054 HAVE_GTK=no
11055 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
11056 GLIB_REQUIRED=2.10
11057 GTK_REQUIRED=2.10
11058 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11061 succeeded=no
11063 # Extract the first word of "pkg-config", so it can be a program name with args.
11064 set dummy pkg-config; ac_word=$2
11065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11066 $as_echo_n "checking for $ac_word... " >&6; }
11067 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11068 $as_echo_n "(cached) " >&6
11069 else
11070 case $PKG_CONFIG in
11071 [\\/]* | ?:[\\/]*)
11072 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11076 for as_dir in $PATH
11078 IFS=$as_save_IFS
11079 test -z "$as_dir" && as_dir=.
11080 for ac_exec_ext in '' $ac_executable_extensions; do
11081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11082 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11084 break 2
11086 done
11087 done
11088 IFS=$as_save_IFS
11090 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11092 esac
11094 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11095 if test -n "$PKG_CONFIG"; then
11096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11097 $as_echo "$PKG_CONFIG" >&6; }
11098 else
11099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11100 $as_echo "no" >&6; }
11105 if test "$PKG_CONFIG" = "no" ; then
11106 pkg_check_gtk=no
11107 else
11108 PKG_CONFIG_MIN_VERSION=0.9.0
11109 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
11111 $as_echo_n "checking for $GTK_MODULES... " >&6; }
11113 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11115 $as_echo "yes" >&6; }
11116 succeeded=yes
11118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
11119 $as_echo_n "checking GTK_CFLAGS... " >&6; }
11120 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
11121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
11122 $as_echo "$GTK_CFLAGS" >&6; }
11124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
11125 $as_echo_n "checking GTK_LIBS... " >&6; }
11126 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
11127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
11128 $as_echo "$GTK_LIBS" >&6; }
11129 else
11130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11131 $as_echo "no" >&6; }
11132 GTK_CFLAGS=""
11133 GTK_LIBS=""
11134 ## If we have a custom action on failure, don't print errors, but
11135 ## do set a variable so people can do so.
11136 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11142 else
11143 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11144 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11148 if test $succeeded = yes; then
11149 pkg_check_gtk=yes
11150 else
11151 pkg_check_gtk=no
11154 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
11155 as_fn_error "$GTK_PKG_ERRORS" "$LINENO" 5
11160 if test x"$pkg_check_gtk" = xyes; then
11164 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
11165 CFLAGS="$CFLAGS $GTK_CFLAGS"
11166 LIBS="$GTK_LIBS $LIBS"
11167 GTK_COMPILES=no
11168 for ac_func in gtk_main
11169 do :
11170 ac_fn_c_check_func "$LINENO" "gtk_main" "ac_cv_func_gtk_main"
11171 if test "x$ac_cv_func_gtk_main" = x""yes; then :
11172 cat >>confdefs.h <<_ACEOF
11173 #define HAVE_GTK_MAIN 1
11174 _ACEOF
11175 GTK_COMPILES=yes
11177 done
11179 if test "${GTK_COMPILES}" != "yes"; then
11180 if test "$USE_X_TOOLKIT" != "maybe"; then
11181 as_fn_error "Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
11183 else
11184 HAVE_GTK=yes
11186 $as_echo "#define USE_GTK 1" >>confdefs.h
11188 GTK_OBJ="gtkutil.o $GTK_OBJ"
11189 USE_X_TOOLKIT=none
11190 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
11192 else
11193 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
11194 closing open displays. This is no problem if you just use
11195 one display, but if you use more than one and close one of them
11196 Emacs may crash." >&5
11197 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
11198 closing open displays. This is no problem if you just use
11199 one display, but if you use more than one and close one of them
11200 Emacs may crash." >&2;}
11201 sleep 3
11209 if test "${HAVE_GTK}" = "yes"; then
11211 if test "$with_toolkit_scroll_bars" != no; then
11212 with_toolkit_scroll_bars=yes
11215 HAVE_GTK_FILE_SELECTION=no
11216 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
11217 #include <gtk/gtk.h>
11219 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x""yes; then :
11220 HAVE_GTK_FILE_SELECTION=yes
11221 else
11222 HAVE_GTK_FILE_SELECTION=no
11225 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
11226 for ac_func in gtk_file_selection_new
11227 do :
11228 ac_fn_c_check_func "$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
11229 if test "x$ac_cv_func_gtk_file_selection_new" = x""yes; then :
11230 cat >>confdefs.h <<_ACEOF
11231 #define HAVE_GTK_FILE_SELECTION_NEW 1
11232 _ACEOF
11235 done
11240 for ac_func in gtk_widget_get_window gtk_widget_set_has_window \
11241 gtk_dialog_get_action_area gtk_widget_get_sensitive \
11242 gtk_widget_get_mapped gtk_adjustment_get_page_size \
11243 gtk_orientable_set_orientation \
11244 gtk_window_set_has_resize_grip
11245 do :
11246 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11247 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11248 eval as_val=\$$as_ac_var
11249 if test "x$as_val" = x""yes; then :
11250 cat >>confdefs.h <<_ACEOF
11251 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11252 _ACEOF
11255 done
11259 HAVE_DBUS=no
11260 DBUS_OBJ=
11261 if test "${with_dbus}" = "yes"; then
11263 succeeded=no
11265 # Extract the first word of "pkg-config", so it can be a program name with args.
11266 set dummy pkg-config; ac_word=$2
11267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11268 $as_echo_n "checking for $ac_word... " >&6; }
11269 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11270 $as_echo_n "(cached) " >&6
11271 else
11272 case $PKG_CONFIG in
11273 [\\/]* | ?:[\\/]*)
11274 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11278 for as_dir in $PATH
11280 IFS=$as_save_IFS
11281 test -z "$as_dir" && as_dir=.
11282 for ac_exec_ext in '' $ac_executable_extensions; do
11283 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11284 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11286 break 2
11288 done
11289 done
11290 IFS=$as_save_IFS
11292 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11294 esac
11296 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11297 if test -n "$PKG_CONFIG"; then
11298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11299 $as_echo "$PKG_CONFIG" >&6; }
11300 else
11301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11302 $as_echo "no" >&6; }
11307 if test "$PKG_CONFIG" = "no" ; then
11308 HAVE_DBUS=no
11309 else
11310 PKG_CONFIG_MIN_VERSION=0.9.0
11311 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
11313 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
11315 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
11316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11317 $as_echo "yes" >&6; }
11318 succeeded=yes
11320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_CFLAGS" >&5
11321 $as_echo_n "checking DBUS_CFLAGS... " >&6; }
11322 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
11323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_CFLAGS" >&5
11324 $as_echo "$DBUS_CFLAGS" >&6; }
11326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_LIBS" >&5
11327 $as_echo_n "checking DBUS_LIBS... " >&6; }
11328 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
11329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_LIBS" >&5
11330 $as_echo "$DBUS_LIBS" >&6; }
11331 else
11332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11333 $as_echo "no" >&6; }
11334 DBUS_CFLAGS=""
11335 DBUS_LIBS=""
11336 ## If we have a custom action on failure, don't print errors, but
11337 ## do set a variable so people can do so.
11338 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
11344 else
11345 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11346 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11350 if test $succeeded = yes; then
11351 HAVE_DBUS=yes
11352 else
11353 HAVE_DBUS=no
11356 if test "$HAVE_DBUS" = yes; then
11357 LIBS="$LIBS $DBUS_LIBS"
11359 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
11361 for ac_func in dbus_watch_get_unix_fd
11362 do :
11363 ac_fn_c_check_func "$LINENO" "dbus_watch_get_unix_fd" "ac_cv_func_dbus_watch_get_unix_fd"
11364 if test "x$ac_cv_func_dbus_watch_get_unix_fd" = x""yes; then :
11365 cat >>confdefs.h <<_ACEOF
11366 #define HAVE_DBUS_WATCH_GET_UNIX_FD 1
11367 _ACEOF
11370 done
11372 DBUS_OBJ=dbusbind.o
11377 HAVE_GSETTINGS=no
11378 if test "${HAVE_X11}" = "yes" && test "${with_gsettings}" = "yes"; then
11380 succeeded=no
11382 # Extract the first word of "pkg-config", so it can be a program name with args.
11383 set dummy pkg-config; ac_word=$2
11384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11385 $as_echo_n "checking for $ac_word... " >&6; }
11386 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11387 $as_echo_n "(cached) " >&6
11388 else
11389 case $PKG_CONFIG in
11390 [\\/]* | ?:[\\/]*)
11391 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11395 for as_dir in $PATH
11397 IFS=$as_save_IFS
11398 test -z "$as_dir" && as_dir=.
11399 for ac_exec_ext in '' $ac_executable_extensions; do
11400 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11401 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11403 break 2
11405 done
11406 done
11407 IFS=$as_save_IFS
11409 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11411 esac
11413 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11414 if test -n "$PKG_CONFIG"; then
11415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11416 $as_echo "$PKG_CONFIG" >&6; }
11417 else
11418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11419 $as_echo "no" >&6; }
11424 if test "$PKG_CONFIG" = "no" ; then
11425 HAVE_GSETTINGS=no
11426 else
11427 PKG_CONFIG_MIN_VERSION=0.9.0
11428 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gio-2.0 >= 2.26" >&5
11430 $as_echo_n "checking for gio-2.0 >= 2.26... " >&6; }
11432 if $PKG_CONFIG --exists "gio-2.0 >= 2.26" 2>&5; then
11433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11434 $as_echo "yes" >&6; }
11435 succeeded=yes
11437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GSETTINGS_CFLAGS" >&5
11438 $as_echo_n "checking GSETTINGS_CFLAGS... " >&6; }
11439 GSETTINGS_CFLAGS=`$PKG_CONFIG --cflags "gio-2.0 >= 2.26"|sed -e 's,///*,/,g'`
11440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSETTINGS_CFLAGS" >&5
11441 $as_echo "$GSETTINGS_CFLAGS" >&6; }
11443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GSETTINGS_LIBS" >&5
11444 $as_echo_n "checking GSETTINGS_LIBS... " >&6; }
11445 GSETTINGS_LIBS=`$PKG_CONFIG --libs "gio-2.0 >= 2.26"|sed -e 's,///*,/,g'`
11446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSETTINGS_LIBS" >&5
11447 $as_echo "$GSETTINGS_LIBS" >&6; }
11448 else
11449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11450 $as_echo "no" >&6; }
11451 GSETTINGS_CFLAGS=""
11452 GSETTINGS_LIBS=""
11453 ## If we have a custom action on failure, don't print errors, but
11454 ## do set a variable so people can do so.
11455 GSETTINGS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gio-2.0 >= 2.26"`
11461 else
11462 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11463 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11467 if test $succeeded = yes; then
11468 HAVE_GSETTINGS=yes
11469 else
11470 HAVE_GSETTINGS=no
11473 if test "$HAVE_GSETTINGS" = "yes"; then
11475 $as_echo "#define HAVE_GSETTINGS 1" >>confdefs.h
11477 SETTINGS_CFLAGS="$GSETTINGS_CFLAGS"
11478 SETTINGS_LIBS="$GSETTINGS_LIBS"
11482 HAVE_GCONF=no
11483 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
11485 succeeded=no
11487 # Extract the first word of "pkg-config", so it can be a program name with args.
11488 set dummy pkg-config; ac_word=$2
11489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11490 $as_echo_n "checking for $ac_word... " >&6; }
11491 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11492 $as_echo_n "(cached) " >&6
11493 else
11494 case $PKG_CONFIG in
11495 [\\/]* | ?:[\\/]*)
11496 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11500 for as_dir in $PATH
11502 IFS=$as_save_IFS
11503 test -z "$as_dir" && as_dir=.
11504 for ac_exec_ext in '' $ac_executable_extensions; do
11505 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11506 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11508 break 2
11510 done
11511 done
11512 IFS=$as_save_IFS
11514 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11516 esac
11518 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11519 if test -n "$PKG_CONFIG"; then
11520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11521 $as_echo "$PKG_CONFIG" >&6; }
11522 else
11523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11524 $as_echo "no" >&6; }
11529 if test "$PKG_CONFIG" = "no" ; then
11530 HAVE_GCONF=no
11531 else
11532 PKG_CONFIG_MIN_VERSION=0.9.0
11533 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
11535 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
11537 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
11538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11539 $as_echo "yes" >&6; }
11540 succeeded=yes
11542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_CFLAGS" >&5
11543 $as_echo_n "checking GCONF_CFLAGS... " >&6; }
11544 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
11545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_CFLAGS" >&5
11546 $as_echo "$GCONF_CFLAGS" >&6; }
11548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_LIBS" >&5
11549 $as_echo_n "checking GCONF_LIBS... " >&6; }
11550 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
11551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_LIBS" >&5
11552 $as_echo "$GCONF_LIBS" >&6; }
11553 else
11554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11555 $as_echo "no" >&6; }
11556 GCONF_CFLAGS=""
11557 GCONF_LIBS=""
11558 ## If we have a custom action on failure, don't print errors, but
11559 ## do set a variable so people can do so.
11560 GCONF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
11566 else
11567 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11568 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11572 if test $succeeded = yes; then
11573 HAVE_GCONF=yes
11574 else
11575 HAVE_GCONF=no
11578 if test "$HAVE_GCONF" = yes; then
11580 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
11582 SETTINGS_CFLAGS="$SETTINGS_CFLAGS $GCONF_CFLAGS"
11583 SETTINGS_LIBS="$SETTINGS_LIBS $GCONF_LIBS"
11587 if test "$HAVE_GSETTINGS" = "yes" || test "$HAVE_GCONF" = "yes"; then
11588 SAVE_CFLAGS="$CFLAGS"
11589 SAVE_LIBS="$LIBS"
11590 CFLAGS="$SETTINGS_CFLAGS $CFLAGS"
11591 LIBS="$SETTINGS_LIBS $LIBS"
11592 for ac_func in g_type_init
11593 do :
11594 ac_fn_c_check_func "$LINENO" "g_type_init" "ac_cv_func_g_type_init"
11595 if test "x$ac_cv_func_g_type_init" = x""yes; then :
11596 cat >>confdefs.h <<_ACEOF
11597 #define HAVE_G_TYPE_INIT 1
11598 _ACEOF
11601 done
11603 CFLAGS="$SAVE_CFLAGS"
11604 LIBS="$SAVE_LIBS"
11610 HAVE_LIBSELINUX=no
11611 LIBSELINUX_LIBS=
11612 if test "${with_selinux}" = "yes"; then
11613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
11614 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
11615 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then :
11616 $as_echo_n "(cached) " >&6
11617 else
11618 ac_check_lib_save_LIBS=$LIBS
11619 LIBS="-lselinux $LIBS"
11620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11621 /* end confdefs.h. */
11623 /* Override any GCC internal prototype to avoid an error.
11624 Use char because int might match the return type of a GCC
11625 builtin and then its argument prototype would still apply. */
11626 #ifdef __cplusplus
11627 extern "C"
11628 #endif
11629 char lgetfilecon ();
11631 main ()
11633 return lgetfilecon ();
11635 return 0;
11637 _ACEOF
11638 if ac_fn_c_try_link "$LINENO"; then :
11639 ac_cv_lib_selinux_lgetfilecon=yes
11640 else
11641 ac_cv_lib_selinux_lgetfilecon=no
11643 rm -f core conftest.err conftest.$ac_objext \
11644 conftest$ac_exeext conftest.$ac_ext
11645 LIBS=$ac_check_lib_save_LIBS
11647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
11648 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
11649 if test "x$ac_cv_lib_selinux_lgetfilecon" = x""yes; then :
11650 HAVE_LIBSELINUX=yes
11651 else
11652 HAVE_LIBSELINUX=no
11655 if test "$HAVE_LIBSELINUX" = yes; then
11657 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
11659 LIBSELINUX_LIBS=-lselinux
11664 HAVE_GNUTLS=no
11665 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY=no
11666 if test "${with_gnutls}" = "yes" ; then
11668 succeeded=no
11670 # Extract the first word of "pkg-config", so it can be a program name with args.
11671 set dummy pkg-config; ac_word=$2
11672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11673 $as_echo_n "checking for $ac_word... " >&6; }
11674 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11675 $as_echo_n "(cached) " >&6
11676 else
11677 case $PKG_CONFIG in
11678 [\\/]* | ?:[\\/]*)
11679 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11683 for as_dir in $PATH
11685 IFS=$as_save_IFS
11686 test -z "$as_dir" && as_dir=.
11687 for ac_exec_ext in '' $ac_executable_extensions; do
11688 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11689 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11691 break 2
11693 done
11694 done
11695 IFS=$as_save_IFS
11697 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11699 esac
11701 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11702 if test -n "$PKG_CONFIG"; then
11703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11704 $as_echo "$PKG_CONFIG" >&6; }
11705 else
11706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11707 $as_echo "no" >&6; }
11712 if test "$PKG_CONFIG" = "no" ; then
11713 HAVE_GNUTLS=no
11714 else
11715 PKG_CONFIG_MIN_VERSION=0.9.0
11716 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.6.6" >&5
11718 $as_echo_n "checking for gnutls >= 2.6.6... " >&6; }
11720 if $PKG_CONFIG --exists "gnutls >= 2.6.6" 2>&5; then
11721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11722 $as_echo "yes" >&6; }
11723 succeeded=yes
11725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_CFLAGS" >&5
11726 $as_echo_n "checking LIBGNUTLS_CFLAGS... " >&6; }
11727 LIBGNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls >= 2.6.6"|sed -e 's,///*,/,g'`
11728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_CFLAGS" >&5
11729 $as_echo "$LIBGNUTLS_CFLAGS" >&6; }
11731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_LIBS" >&5
11732 $as_echo_n "checking LIBGNUTLS_LIBS... " >&6; }
11733 LIBGNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls >= 2.6.6"|sed -e 's,///*,/,g'`
11734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_LIBS" >&5
11735 $as_echo "$LIBGNUTLS_LIBS" >&6; }
11736 else
11737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11738 $as_echo "no" >&6; }
11739 LIBGNUTLS_CFLAGS=""
11740 LIBGNUTLS_LIBS=""
11741 ## If we have a custom action on failure, don't print errors, but
11742 ## do set a variable so people can do so.
11743 LIBGNUTLS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnutls >= 2.6.6"`
11749 else
11750 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11751 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11755 if test $succeeded = yes; then
11756 HAVE_GNUTLS=yes
11757 else
11758 HAVE_GNUTLS=no
11761 if test "${HAVE_GNUTLS}" = "yes"; then
11763 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
11767 CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
11768 LIBS="$LIBGNUTLS_LIBS $LIBS"
11769 for ac_func in gnutls_certificate_set_verify_function
11770 do :
11771 ac_fn_c_check_func "$LINENO" "gnutls_certificate_set_verify_function" "ac_cv_func_gnutls_certificate_set_verify_function"
11772 if test "x$ac_cv_func_gnutls_certificate_set_verify_function" = x""yes; then :
11773 cat >>confdefs.h <<_ACEOF
11774 #define HAVE_GNUTLS_CERTIFICATE_SET_VERIFY_FUNCTION 1
11775 _ACEOF
11776 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY=yes
11778 done
11781 if test "${HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY}" = "yes"; then
11783 $as_echo "#define HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY 1" >>confdefs.h
11791 HAVE_XAW3D=no
11792 LUCID_LIBW=
11793 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
11794 if test "$with_xaw3d" != no; then
11795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
11796 $as_echo_n "checking for xaw3d... " >&6; }
11797 if test "${emacs_cv_xaw3d+set}" = set; then :
11798 $as_echo_n "(cached) " >&6
11799 else
11800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11801 /* end confdefs.h. */
11803 #include <X11/Intrinsic.h>
11804 #include <X11/Xaw3d/Simple.h>
11806 main ()
11810 return 0;
11812 _ACEOF
11813 if ac_fn_c_try_link "$LINENO"; then :
11814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XawScrollbarSetThumb in -lXaw3d" >&5
11815 $as_echo_n "checking for XawScrollbarSetThumb in -lXaw3d... " >&6; }
11816 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then :
11817 $as_echo_n "(cached) " >&6
11818 else
11819 ac_check_lib_save_LIBS=$LIBS
11820 LIBS="-lXaw3d $LIBS"
11821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11822 /* end confdefs.h. */
11824 /* Override any GCC internal prototype to avoid an error.
11825 Use char because int might match the return type of a GCC
11826 builtin and then its argument prototype would still apply. */
11827 #ifdef __cplusplus
11828 extern "C"
11829 #endif
11830 char XawScrollbarSetThumb ();
11832 main ()
11834 return XawScrollbarSetThumb ();
11836 return 0;
11838 _ACEOF
11839 if ac_fn_c_try_link "$LINENO"; then :
11840 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
11841 else
11842 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
11844 rm -f core conftest.err conftest.$ac_objext \
11845 conftest$ac_exeext conftest.$ac_ext
11846 LIBS=$ac_check_lib_save_LIBS
11848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
11849 $as_echo "$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
11850 if test "x$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" = x""yes; then :
11851 emacs_cv_xaw3d=yes
11852 else
11853 emacs_cv_xaw3d=no
11856 else
11857 emacs_cv_xaw3d=no
11859 rm -f core conftest.err conftest.$ac_objext \
11860 conftest$ac_exeext conftest.$ac_ext
11863 else
11864 emacs_cv_xaw3d=no
11866 if test $emacs_cv_xaw3d = yes; then
11867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
11868 $as_echo "yes; using Lucid toolkit" >&6; }
11869 USE_X_TOOLKIT=LUCID
11870 HAVE_XAW3D=yes
11871 LUCID_LIBW=-lXaw3d
11873 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
11875 else
11876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11877 $as_echo "no" >&6; }
11878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
11879 $as_echo_n "checking for libXaw... " >&6; }
11880 if test "${emacs_cv_xaw+set}" = set; then :
11881 $as_echo_n "(cached) " >&6
11882 else
11883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11884 /* end confdefs.h. */
11886 #include <X11/Intrinsic.h>
11887 #include <X11/Xaw/Simple.h>
11889 main ()
11893 return 0;
11895 _ACEOF
11896 if ac_fn_c_try_link "$LINENO"; then :
11897 emacs_cv_xaw=yes
11898 else
11899 emacs_cv_xaw=no
11901 rm -f core conftest.err conftest.$ac_objext \
11902 conftest$ac_exeext conftest.$ac_ext
11905 if test $emacs_cv_xaw = yes; then
11906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
11907 $as_echo "yes; using Lucid toolkit" >&6; }
11908 USE_X_TOOLKIT=LUCID
11909 LUCID_LIBW=-lXaw
11910 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
11911 as_fn_error "Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
11912 else
11913 as_fn_error "No X toolkit could be found.
11914 If you are sure you want Emacs compiled without an X toolkit, pass
11915 --with-x-toolkit=no
11916 to configure. Otherwise, install the development libraries for the toolkit
11917 that you want to use (e.g. Gtk+) and re-run configure." "$LINENO" 5
11922 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
11924 LIBXTR6=
11925 if test "${USE_X_TOOLKIT}" != "none"; then
11926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
11927 $as_echo_n "checking X11 toolkit version... " >&6; }
11928 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then :
11929 $as_echo_n "(cached) " >&6
11930 else
11931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11932 /* end confdefs.h. */
11933 #include <X11/Intrinsic.h>
11935 main ()
11937 #if XtSpecificationRelease < 6
11938 fail;
11939 #endif
11942 return 0;
11944 _ACEOF
11945 if ac_fn_c_try_link "$LINENO"; then :
11946 emacs_cv_x11_toolkit_version_6=yes
11947 else
11948 emacs_cv_x11_toolkit_version_6=no
11950 rm -f core conftest.err conftest.$ac_objext \
11951 conftest$ac_exeext conftest.$ac_ext
11954 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
11955 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
11957 $as_echo "6 or newer" >&6; }
11959 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
11961 LIBXTR6="-lSM -lICE"
11962 case "$opsys" in
11963 ## Use libw.a along with X11R6 Xt.
11964 unixware) LIBXTR6="$LIBXTR6 -lw" ;;
11965 esac
11966 else
11967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
11968 $as_echo "before 6" >&6; }
11971 OLDLIBS="$LIBS"
11972 if test x$HAVE_X11XTR6 = xyes; then
11973 LIBS="-lXt -lSM -lICE $LIBS"
11974 else
11975 LIBS="-lXt $LIBS"
11977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
11978 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
11979 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then :
11980 $as_echo_n "(cached) " >&6
11981 else
11982 ac_check_lib_save_LIBS=$LIBS
11983 LIBS="-lXmu $LIBS"
11984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11985 /* end confdefs.h. */
11987 /* Override any GCC internal prototype to avoid an error.
11988 Use char because int might match the return type of a GCC
11989 builtin and then its argument prototype would still apply. */
11990 #ifdef __cplusplus
11991 extern "C"
11992 #endif
11993 char XmuConvertStandardSelection ();
11995 main ()
11997 return XmuConvertStandardSelection ();
11999 return 0;
12001 _ACEOF
12002 if ac_fn_c_try_link "$LINENO"; then :
12003 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
12004 else
12005 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
12007 rm -f core conftest.err conftest.$ac_objext \
12008 conftest$ac_exeext conftest.$ac_ext
12009 LIBS=$ac_check_lib_save_LIBS
12011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
12012 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
12013 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x""yes; then :
12014 cat >>confdefs.h <<_ACEOF
12015 #define HAVE_LIBXMU 1
12016 _ACEOF
12018 LIBS="-lXmu $LIBS"
12022 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
12026 LIBXMU=-lXmu
12027 case $opsys in
12028 ## These systems don't supply Xmu.
12029 hpux* | aix4-2 )
12030 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU=
12032 esac
12035 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12036 if test "${HAVE_X11}" = "yes"; then
12037 if test "${USE_X_TOOLKIT}" != "none"; then
12038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
12039 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
12040 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
12041 $as_echo_n "(cached) " >&6
12042 else
12043 ac_check_lib_save_LIBS=$LIBS
12044 LIBS="-lXext $LIBS"
12045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12046 /* end confdefs.h. */
12048 /* Override any GCC internal prototype to avoid an error.
12049 Use char because int might match the return type of a GCC
12050 builtin and then its argument prototype would still apply. */
12051 #ifdef __cplusplus
12052 extern "C"
12053 #endif
12054 char XShapeQueryExtension ();
12056 main ()
12058 return XShapeQueryExtension ();
12060 return 0;
12062 _ACEOF
12063 if ac_fn_c_try_link "$LINENO"; then :
12064 ac_cv_lib_Xext_XShapeQueryExtension=yes
12065 else
12066 ac_cv_lib_Xext_XShapeQueryExtension=no
12068 rm -f core conftest.err conftest.$ac_objext \
12069 conftest$ac_exeext conftest.$ac_ext
12070 LIBS=$ac_check_lib_save_LIBS
12072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12073 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12074 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then :
12075 cat >>confdefs.h <<_ACEOF
12076 #define HAVE_LIBXEXT 1
12077 _ACEOF
12079 LIBS="-lXext $LIBS"
12086 LIBXP=
12087 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif version 2.1" >&5
12089 $as_echo_n "checking for Motif version 2.1... " >&6; }
12090 if test "${emacs_cv_motif_version_2_1+set}" = set; then :
12091 $as_echo_n "(cached) " >&6
12092 else
12093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12094 /* end confdefs.h. */
12095 #include <Xm/Xm.h>
12097 main ()
12099 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12100 int x = 5;
12101 #else
12102 Motif version prior to 2.1.
12103 #endif
12105 return 0;
12107 _ACEOF
12108 if ac_fn_c_try_compile "$LINENO"; then :
12109 emacs_cv_motif_version_2_1=yes
12110 else
12111 emacs_cv_motif_version_2_1=no
12113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
12116 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
12117 if test $emacs_cv_motif_version_2_1 = yes; then
12118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
12119 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
12120 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then :
12121 $as_echo_n "(cached) " >&6
12122 else
12123 ac_check_lib_save_LIBS=$LIBS
12124 LIBS="-lXp $LIBS"
12125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12126 /* end confdefs.h. */
12128 /* Override any GCC internal prototype to avoid an error.
12129 Use char because int might match the return type of a GCC
12130 builtin and then its argument prototype would still apply. */
12131 #ifdef __cplusplus
12132 extern "C"
12133 #endif
12134 char XpCreateContext ();
12136 main ()
12138 return XpCreateContext ();
12140 return 0;
12142 _ACEOF
12143 if ac_fn_c_try_link "$LINENO"; then :
12144 ac_cv_lib_Xp_XpCreateContext=yes
12145 else
12146 ac_cv_lib_Xp_XpCreateContext=no
12148 rm -f core conftest.err conftest.$ac_objext \
12149 conftest$ac_exeext conftest.$ac_ext
12150 LIBS=$ac_check_lib_save_LIBS
12152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12153 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
12154 if test "x$ac_cv_lib_Xp_XpCreateContext" = x""yes; then :
12155 LIBXP=-lXp
12158 else
12159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
12160 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
12161 if test "${emacs_cv_lesstif+set}" = set; then :
12162 $as_echo_n "(cached) " >&6
12163 else
12164 # We put this in CFLAGS temporarily to precede other -I options
12165 # that might be in CFLAGS temporarily.
12166 # We put this in CPPFLAGS where it precedes the other -I options.
12167 OLD_CPPFLAGS=$CPPFLAGS
12168 OLD_CFLAGS=$CFLAGS
12169 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12170 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12172 /* end confdefs.h. */
12173 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12175 main ()
12177 int x = 5;
12179 return 0;
12181 _ACEOF
12182 if ac_fn_c_try_compile "$LINENO"; then :
12183 emacs_cv_lesstif=yes
12184 else
12185 emacs_cv_lesstif=no
12187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
12190 $as_echo "$emacs_cv_lesstif" >&6; }
12191 if test $emacs_cv_lesstif = yes; then
12192 # Make sure this -I option remains in CPPFLAGS after it is set
12193 # back to REAL_CPPFLAGS.
12194 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12195 # have those other -I options anyway. Ultimately, having this
12196 # directory ultimately in CPPFLAGS will be enough.
12197 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12198 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12199 else
12200 CFLAGS=$OLD_CFLAGS
12201 CPPFLAGS=$OLD_CPPFLAGS
12204 ac_fn_c_check_header_mongrel "$LINENO" "Xm/BulletinB.h" "ac_cv_header_Xm_BulletinB_h" "$ac_includes_default"
12205 if test "x$ac_cv_header_Xm_BulletinB_h" = x""yes; then :
12207 else
12208 as_fn_error "Motif toolkit requested but requirements not found." "$LINENO" 5
12215 USE_TOOLKIT_SCROLL_BARS=no
12216 if test "${with_toolkit_scroll_bars}" != "no"; then
12217 if test "${USE_X_TOOLKIT}" != "none"; then
12218 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12219 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12221 HAVE_XAW3D=no
12222 USE_TOOLKIT_SCROLL_BARS=yes
12223 elif test "${HAVE_XAW3D}" = "yes" || test "${USE_X_TOOLKIT}" = "LUCID"; then
12224 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12226 USE_TOOLKIT_SCROLL_BARS=yes
12228 elif test "${HAVE_GTK}" = "yes"; then
12229 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12231 USE_TOOLKIT_SCROLL_BARS=yes
12232 elif test "${HAVE_NS}" = "yes"; then
12233 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12235 USE_TOOLKIT_SCROLL_BARS=yes
12239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12240 /* end confdefs.h. */
12242 #include <X11/Xlib.h>
12243 #include <X11/Xresource.h>
12245 main ()
12247 XIMProc callback;
12249 return 0;
12251 _ACEOF
12252 if ac_fn_c_try_compile "$LINENO"; then :
12253 HAVE_XIM=yes
12255 $as_echo "#define HAVE_XIM 1" >>confdefs.h
12257 else
12258 HAVE_XIM=no
12260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12263 if test "${with_xim}" != "no"; then
12265 $as_echo "#define USE_XIM 1" >>confdefs.h
12270 if test "${HAVE_XIM}" != "no"; then
12271 late_CFLAGS=$CFLAGS
12272 if test "$GCC" = yes; then
12273 CFLAGS="$CFLAGS --pedantic-errors"
12275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12276 /* end confdefs.h. */
12278 #include <X11/Xlib.h>
12279 #include <X11/Xresource.h>
12281 main ()
12283 Display *display;
12284 XrmDatabase db;
12285 char *res_name;
12286 char *res_class;
12287 XIMProc callback;
12288 XPointer *client_data;
12289 #ifndef __GNUC__
12290 /* If we're not using GCC, it's probably not XFree86, and this is
12291 probably right, but we can't use something like --pedantic-errors. */
12292 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12293 char*, XIMProc, XPointer*);
12294 #endif
12295 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12296 client_data);
12298 return 0;
12300 _ACEOF
12301 if ac_fn_c_try_compile "$LINENO"; then :
12302 emacs_cv_arg6_star=yes
12304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12305 if test "$emacs_cv_arg6_star" = yes; then
12306 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
12308 else
12309 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
12312 CFLAGS=$late_CFLAGS
12315 ### Start of font-backend (under any platform) section.
12316 # (nothing here yet -- this is a placeholder)
12317 ### End of font-backend (under any platform) section.
12319 ### Start of font-backend (under X11) section.
12320 if test "${HAVE_X11}" = "yes"; then
12322 succeeded=no
12324 # Extract the first word of "pkg-config", so it can be a program name with args.
12325 set dummy pkg-config; ac_word=$2
12326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12327 $as_echo_n "checking for $ac_word... " >&6; }
12328 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12329 $as_echo_n "(cached) " >&6
12330 else
12331 case $PKG_CONFIG in
12332 [\\/]* | ?:[\\/]*)
12333 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12337 for as_dir in $PATH
12339 IFS=$as_save_IFS
12340 test -z "$as_dir" && as_dir=.
12341 for ac_exec_ext in '' $ac_executable_extensions; do
12342 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12343 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12345 break 2
12347 done
12348 done
12349 IFS=$as_save_IFS
12351 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12353 esac
12355 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12356 if test -n "$PKG_CONFIG"; then
12357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12358 $as_echo "$PKG_CONFIG" >&6; }
12359 else
12360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12361 $as_echo "no" >&6; }
12366 if test "$PKG_CONFIG" = "no" ; then
12367 HAVE_FC=no
12368 else
12369 PKG_CONFIG_MIN_VERSION=0.9.0
12370 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
12372 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
12374 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
12375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12376 $as_echo "yes" >&6; }
12377 succeeded=yes
12379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_CFLAGS" >&5
12380 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
12381 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
12382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_CFLAGS" >&5
12383 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
12385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_LIBS" >&5
12386 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
12387 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
12388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_LIBS" >&5
12389 $as_echo "$FONTCONFIG_LIBS" >&6; }
12390 else
12391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12392 $as_echo "no" >&6; }
12393 FONTCONFIG_CFLAGS=""
12394 FONTCONFIG_LIBS=""
12395 ## If we have a custom action on failure, don't print errors, but
12396 ## do set a variable so people can do so.
12397 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
12403 else
12404 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12405 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12409 if test $succeeded = yes; then
12410 HAVE_FC=yes
12411 else
12412 HAVE_FC=no
12416 ## Use -lXft if available, unless `--with-xft=no'.
12417 HAVE_XFT=maybe
12418 if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then
12419 with_xft="no";
12421 if test "x${with_xft}" != "xno"; then
12424 succeeded=no
12426 # Extract the first word of "pkg-config", so it can be a program name with args.
12427 set dummy pkg-config; ac_word=$2
12428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12429 $as_echo_n "checking for $ac_word... " >&6; }
12430 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12431 $as_echo_n "(cached) " >&6
12432 else
12433 case $PKG_CONFIG in
12434 [\\/]* | ?:[\\/]*)
12435 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12439 for as_dir in $PATH
12441 IFS=$as_save_IFS
12442 test -z "$as_dir" && as_dir=.
12443 for ac_exec_ext in '' $ac_executable_extensions; do
12444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12445 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12447 break 2
12449 done
12450 done
12451 IFS=$as_save_IFS
12453 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12455 esac
12457 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12458 if test -n "$PKG_CONFIG"; then
12459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12460 $as_echo "$PKG_CONFIG" >&6; }
12461 else
12462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12463 $as_echo "no" >&6; }
12468 if test "$PKG_CONFIG" = "no" ; then
12469 HAVE_XFT=no
12470 else
12471 PKG_CONFIG_MIN_VERSION=0.9.0
12472 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
12474 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
12476 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
12477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12478 $as_echo "yes" >&6; }
12479 succeeded=yes
12481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_CFLAGS" >&5
12482 $as_echo_n "checking XFT_CFLAGS... " >&6; }
12483 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_CFLAGS" >&5
12485 $as_echo "$XFT_CFLAGS" >&6; }
12487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_LIBS" >&5
12488 $as_echo_n "checking XFT_LIBS... " >&6; }
12489 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_LIBS" >&5
12491 $as_echo "$XFT_LIBS" >&6; }
12492 else
12493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12494 $as_echo "no" >&6; }
12495 XFT_CFLAGS=""
12496 XFT_LIBS=""
12497 ## If we have a custom action on failure, don't print errors, but
12498 ## do set a variable so people can do so.
12499 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
12505 else
12506 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12507 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12511 if test $succeeded = yes; then
12513 else
12514 HAVE_XFT=no
12517 ## Because xftfont.c uses XRenderQueryExtension, we also
12518 ## need to link to -lXrender.
12519 HAVE_XRENDER=no
12520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
12521 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
12522 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
12523 $as_echo_n "(cached) " >&6
12524 else
12525 ac_check_lib_save_LIBS=$LIBS
12526 LIBS="-lXrender $LIBS"
12527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12528 /* end confdefs.h. */
12530 /* Override any GCC internal prototype to avoid an error.
12531 Use char because int might match the return type of a GCC
12532 builtin and then its argument prototype would still apply. */
12533 #ifdef __cplusplus
12534 extern "C"
12535 #endif
12536 char XRenderQueryExtension ();
12538 main ()
12540 return XRenderQueryExtension ();
12542 return 0;
12544 _ACEOF
12545 if ac_fn_c_try_link "$LINENO"; then :
12546 ac_cv_lib_Xrender_XRenderQueryExtension=yes
12547 else
12548 ac_cv_lib_Xrender_XRenderQueryExtension=no
12550 rm -f core conftest.err conftest.$ac_objext \
12551 conftest$ac_exeext conftest.$ac_ext
12552 LIBS=$ac_check_lib_save_LIBS
12554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
12555 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
12556 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x""yes; then :
12557 HAVE_XRENDER=yes
12560 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
12561 OLD_CPPFLAGS="$CPPFLAGS"
12562 OLD_CFLAGS="$CFLAGS"
12563 OLD_LIBS="$LIBS"
12564 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
12565 CFLAGS="$CFLAGS $XFT_CFLAGS"
12566 XFT_LIBS="-lXrender $XFT_LIBS"
12567 LIBS="$XFT_LIBS $LIBS"
12568 ac_fn_c_check_header_mongrel "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
12569 if test "x$ac_cv_header_X11_Xft_Xft_h" = x""yes; then :
12570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
12571 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
12572 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then :
12573 $as_echo_n "(cached) " >&6
12574 else
12575 ac_check_lib_save_LIBS=$LIBS
12576 LIBS="-lXft $XFT_LIBS $LIBS"
12577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12578 /* end confdefs.h. */
12580 /* Override any GCC internal prototype to avoid an error.
12581 Use char because int might match the return type of a GCC
12582 builtin and then its argument prototype would still apply. */
12583 #ifdef __cplusplus
12584 extern "C"
12585 #endif
12586 char XftFontOpen ();
12588 main ()
12590 return XftFontOpen ();
12592 return 0;
12594 _ACEOF
12595 if ac_fn_c_try_link "$LINENO"; then :
12596 ac_cv_lib_Xft_XftFontOpen=yes
12597 else
12598 ac_cv_lib_Xft_XftFontOpen=no
12600 rm -f core conftest.err conftest.$ac_objext \
12601 conftest$ac_exeext conftest.$ac_ext
12602 LIBS=$ac_check_lib_save_LIBS
12604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12605 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
12606 if test "x$ac_cv_lib_Xft_XftFontOpen" = x""yes; then :
12607 HAVE_XFT=yes
12614 if test "${HAVE_XFT}" = "yes"; then
12616 $as_echo "#define HAVE_XFT 1" >>confdefs.h
12619 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
12620 else
12621 CPPFLAGS="$OLD_CPPFLAGS"
12622 CFLAGS="$OLD_CFLAGS"
12623 LIBS="$OLD_LIBS"
12624 fi # "${HAVE_XFT}" = "yes"
12625 fi # "$HAVE_XFT" != no
12626 fi # "x${with_xft}" != "xno"
12628 ## We used to allow building with FreeType and without Xft.
12629 ## However, the ftx font backend driver is not in good shape.
12630 if test "$HAVE_XFT" != "yes"; then
12631 HAVE_XFT=no
12632 HAVE_FREETYPE=no
12633 else
12635 succeeded=no
12637 # Extract the first word of "pkg-config", so it can be a program name with args.
12638 set dummy pkg-config; ac_word=$2
12639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12640 $as_echo_n "checking for $ac_word... " >&6; }
12641 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12642 $as_echo_n "(cached) " >&6
12643 else
12644 case $PKG_CONFIG in
12645 [\\/]* | ?:[\\/]*)
12646 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12650 for as_dir in $PATH
12652 IFS=$as_save_IFS
12653 test -z "$as_dir" && as_dir=.
12654 for ac_exec_ext in '' $ac_executable_extensions; do
12655 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12656 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12658 break 2
12660 done
12661 done
12662 IFS=$as_save_IFS
12664 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12666 esac
12668 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12669 if test -n "$PKG_CONFIG"; then
12670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12671 $as_echo "$PKG_CONFIG" >&6; }
12672 else
12673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12674 $as_echo "no" >&6; }
12679 if test "$PKG_CONFIG" = "no" ; then
12680 HAVE_FREETYPE=no
12681 else
12682 PKG_CONFIG_MIN_VERSION=0.9.0
12683 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype2" >&5
12685 $as_echo_n "checking for freetype2... " >&6; }
12687 if $PKG_CONFIG --exists "freetype2" 2>&5; then
12688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12689 $as_echo "yes" >&6; }
12690 succeeded=yes
12692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FREETYPE_CFLAGS" >&5
12693 $as_echo_n "checking FREETYPE_CFLAGS... " >&6; }
12694 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2"|sed -e 's,///*,/,g'`
12695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_CFLAGS" >&5
12696 $as_echo "$FREETYPE_CFLAGS" >&6; }
12698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FREETYPE_LIBS" >&5
12699 $as_echo_n "checking FREETYPE_LIBS... " >&6; }
12700 FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2"|sed -e 's,///*,/,g'`
12701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIBS" >&5
12702 $as_echo "$FREETYPE_LIBS" >&6; }
12703 else
12704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12705 $as_echo "no" >&6; }
12706 FREETYPE_CFLAGS=""
12707 FREETYPE_LIBS=""
12708 ## If we have a custom action on failure, don't print errors, but
12709 ## do set a variable so people can do so.
12710 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
12716 else
12717 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12718 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12722 if test $succeeded = yes; then
12723 HAVE_FREETYPE=yes
12724 else
12725 HAVE_FREETYPE=no
12729 test "$HAVE_FREETYPE" = "no" && as_fn_error "libxft requires libfreetype" "$LINENO" 5
12732 HAVE_LIBOTF=no
12733 if test "${HAVE_FREETYPE}" = "yes"; then
12735 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
12737 if test "${with_libotf}" != "no"; then
12739 succeeded=no
12741 # Extract the first word of "pkg-config", so it can be a program name with args.
12742 set dummy pkg-config; ac_word=$2
12743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12744 $as_echo_n "checking for $ac_word... " >&6; }
12745 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12746 $as_echo_n "(cached) " >&6
12747 else
12748 case $PKG_CONFIG in
12749 [\\/]* | ?:[\\/]*)
12750 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12754 for as_dir in $PATH
12756 IFS=$as_save_IFS
12757 test -z "$as_dir" && as_dir=.
12758 for ac_exec_ext in '' $ac_executable_extensions; do
12759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12760 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12762 break 2
12764 done
12765 done
12766 IFS=$as_save_IFS
12768 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12770 esac
12772 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12773 if test -n "$PKG_CONFIG"; then
12774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12775 $as_echo "$PKG_CONFIG" >&6; }
12776 else
12777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12778 $as_echo "no" >&6; }
12783 if test "$PKG_CONFIG" = "no" ; then
12784 HAVE_LIBOTF=no
12785 else
12786 PKG_CONFIG_MIN_VERSION=0.9.0
12787 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
12789 $as_echo_n "checking for libotf... " >&6; }
12791 if $PKG_CONFIG --exists "libotf" 2>&5; then
12792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12793 $as_echo "yes" >&6; }
12794 succeeded=yes
12796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_CFLAGS" >&5
12797 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
12798 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
12799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_CFLAGS" >&5
12800 $as_echo "$LIBOTF_CFLAGS" >&6; }
12802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_LIBS" >&5
12803 $as_echo_n "checking LIBOTF_LIBS... " >&6; }
12804 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
12805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_LIBS" >&5
12806 $as_echo "$LIBOTF_LIBS" >&6; }
12807 else
12808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12809 $as_echo "no" >&6; }
12810 LIBOTF_CFLAGS=""
12811 LIBOTF_LIBS=""
12812 ## If we have a custom action on failure, don't print errors, but
12813 ## do set a variable so people can do so.
12814 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
12820 else
12821 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12822 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12826 if test $succeeded = yes; then
12827 HAVE_LIBOTF=yes
12828 else
12829 HAVE_LIBOTF=no
12832 if test "$HAVE_LIBOTF" = "yes"; then
12834 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
12836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
12837 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
12838 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then :
12839 $as_echo_n "(cached) " >&6
12840 else
12841 ac_check_lib_save_LIBS=$LIBS
12842 LIBS="-lotf $LIBS"
12843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12844 /* end confdefs.h. */
12846 /* Override any GCC internal prototype to avoid an error.
12847 Use char because int might match the return type of a GCC
12848 builtin and then its argument prototype would still apply. */
12849 #ifdef __cplusplus
12850 extern "C"
12851 #endif
12852 char OTF_get_variation_glyphs ();
12854 main ()
12856 return OTF_get_variation_glyphs ();
12858 return 0;
12860 _ACEOF
12861 if ac_fn_c_try_link "$LINENO"; then :
12862 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
12863 else
12864 ac_cv_lib_otf_OTF_get_variation_glyphs=no
12866 rm -f core conftest.err conftest.$ac_objext \
12867 conftest$ac_exeext conftest.$ac_ext
12868 LIBS=$ac_check_lib_save_LIBS
12870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
12871 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
12872 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x""yes; then :
12873 HAVE_OTF_GET_VARIATION_GLYPHS=yes
12874 else
12875 HAVE_OTF_GET_VARIATION_GLYPHS=no
12878 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
12880 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
12887 HAVE_M17N_FLT=no
12888 if test "${HAVE_LIBOTF}" = yes; then
12889 if test "${with_m17n_flt}" != "no"; then
12891 succeeded=no
12893 # Extract the first word of "pkg-config", so it can be a program name with args.
12894 set dummy pkg-config; ac_word=$2
12895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12896 $as_echo_n "checking for $ac_word... " >&6; }
12897 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12898 $as_echo_n "(cached) " >&6
12899 else
12900 case $PKG_CONFIG in
12901 [\\/]* | ?:[\\/]*)
12902 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12906 for as_dir in $PATH
12908 IFS=$as_save_IFS
12909 test -z "$as_dir" && as_dir=.
12910 for ac_exec_ext in '' $ac_executable_extensions; do
12911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12912 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12914 break 2
12916 done
12917 done
12918 IFS=$as_save_IFS
12920 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12922 esac
12924 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12925 if test -n "$PKG_CONFIG"; then
12926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12927 $as_echo "$PKG_CONFIG" >&6; }
12928 else
12929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12930 $as_echo "no" >&6; }
12935 if test "$PKG_CONFIG" = "no" ; then
12936 HAVE_M17N_FLT=no
12937 else
12938 PKG_CONFIG_MIN_VERSION=0.9.0
12939 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
12941 $as_echo_n "checking for m17n-flt... " >&6; }
12943 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
12944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12945 $as_echo "yes" >&6; }
12946 succeeded=yes
12948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_CFLAGS" >&5
12949 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
12950 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
12951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_CFLAGS" >&5
12952 $as_echo "$M17N_FLT_CFLAGS" >&6; }
12954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_LIBS" >&5
12955 $as_echo_n "checking M17N_FLT_LIBS... " >&6; }
12956 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
12957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_LIBS" >&5
12958 $as_echo "$M17N_FLT_LIBS" >&6; }
12959 else
12960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12961 $as_echo "no" >&6; }
12962 M17N_FLT_CFLAGS=""
12963 M17N_FLT_LIBS=""
12964 ## If we have a custom action on failure, don't print errors, but
12965 ## do set a variable so people can do so.
12966 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
12972 else
12973 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12974 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12978 if test $succeeded = yes; then
12979 HAVE_M17N_FLT=yes
12980 else
12981 HAVE_M17N_FLT=no
12984 if test "$HAVE_M17N_FLT" = "yes"; then
12986 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
12991 else
12992 HAVE_XFT=no
12993 HAVE_FREETYPE=no
12994 HAVE_LIBOTF=no
12995 HAVE_M17N_FLT=no
12998 ### End of font-backend (under X11) section.
13009 ### Use -lXpm if available, unless `--with-xpm=no'.
13010 HAVE_XPM=no
13011 LIBXPM=
13012 if test "${HAVE_X11}" = "yes"; then
13013 if test "${with_xpm}" != "no"; then
13014 ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
13015 if test "x$ac_cv_header_X11_xpm_h" = x""yes; then :
13016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
13017 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
13018 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then :
13019 $as_echo_n "(cached) " >&6
13020 else
13021 ac_check_lib_save_LIBS=$LIBS
13022 LIBS="-lXpm -lX11 $LIBS"
13023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13024 /* end confdefs.h. */
13026 /* Override any GCC internal prototype to avoid an error.
13027 Use char because int might match the return type of a GCC
13028 builtin and then its argument prototype would still apply. */
13029 #ifdef __cplusplus
13030 extern "C"
13031 #endif
13032 char XpmReadFileToPixmap ();
13034 main ()
13036 return XpmReadFileToPixmap ();
13038 return 0;
13040 _ACEOF
13041 if ac_fn_c_try_link "$LINENO"; then :
13042 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
13043 else
13044 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
13046 rm -f core conftest.err conftest.$ac_objext \
13047 conftest$ac_exeext conftest.$ac_ext
13048 LIBS=$ac_check_lib_save_LIBS
13050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
13051 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
13052 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x""yes; then :
13053 HAVE_XPM=yes
13059 if test "${HAVE_XPM}" = "yes"; then
13060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
13061 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
13062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13063 /* end confdefs.h. */
13064 #include "X11/xpm.h"
13065 #ifndef XpmReturnAllocPixels
13066 no_return_alloc_pixels
13067 #endif
13069 _ACEOF
13070 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13071 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then :
13072 HAVE_XPM=no
13073 else
13074 HAVE_XPM=yes
13076 rm -f conftest*
13079 if test "${HAVE_XPM}" = "yes"; then
13080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13081 $as_echo "yes" >&6; }
13082 else
13083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13084 $as_echo "no" >&6; }
13089 if test "${HAVE_XPM}" = "yes"; then
13091 $as_echo "#define HAVE_XPM 1" >>confdefs.h
13093 LIBXPM=-lXpm
13098 ### Use -ljpeg if available, unless `--with-jpeg=no'.
13099 HAVE_JPEG=no
13100 LIBJPEG=
13101 if test "${HAVE_X11}" = "yes"; then
13102 if test "${with_jpeg}" != "no"; then
13103 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
13104 if test "x$ac_cv_header_jerror_h" = x""yes; then :
13105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
13106 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
13107 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then :
13108 $as_echo_n "(cached) " >&6
13109 else
13110 ac_check_lib_save_LIBS=$LIBS
13111 LIBS="-ljpeg $LIBS"
13112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13113 /* end confdefs.h. */
13115 /* Override any GCC internal prototype to avoid an error.
13116 Use char because int might match the return type of a GCC
13117 builtin and then its argument prototype would still apply. */
13118 #ifdef __cplusplus
13119 extern "C"
13120 #endif
13121 char jpeg_destroy_compress ();
13123 main ()
13125 return jpeg_destroy_compress ();
13127 return 0;
13129 _ACEOF
13130 if ac_fn_c_try_link "$LINENO"; then :
13131 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
13132 else
13133 ac_cv_lib_jpeg_jpeg_destroy_compress=no
13135 rm -f core conftest.err conftest.$ac_objext \
13136 conftest$ac_exeext conftest.$ac_ext
13137 LIBS=$ac_check_lib_save_LIBS
13139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13140 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13141 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x""yes; then :
13142 HAVE_JPEG=yes
13150 if test "${HAVE_JPEG}" = "yes"; then
13151 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
13153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13154 /* end confdefs.h. */
13155 #include <jpeglib.h>
13156 version=JPEG_LIB_VERSION
13158 _ACEOF
13159 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13160 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then :
13161 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
13163 else
13164 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
13165 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13166 HAVE_JPEG=no
13168 rm -f conftest*
13171 if test "${HAVE_JPEG}" = "yes"; then
13172 LIBJPEG=-ljpeg
13177 ### Use -lpng if available, unless `--with-png=no'.
13178 HAVE_PNG=no
13179 LIBPNG=
13180 if test "${HAVE_X11}" = "yes"; then
13181 if test "${with_png}" != "no"; then
13182 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13183 # in /usr/include/libpng.
13184 for ac_header in png.h libpng/png.h
13185 do :
13186 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13187 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13188 eval as_val=\$$as_ac_Header
13189 if test "x$as_val" = x""yes; then :
13190 cat >>confdefs.h <<_ACEOF
13191 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13192 _ACEOF
13196 done
13198 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
13199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
13200 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
13201 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then :
13202 $as_echo_n "(cached) " >&6
13203 else
13204 ac_check_lib_save_LIBS=$LIBS
13205 LIBS="-lpng -lz -lm $LIBS"
13206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13207 /* end confdefs.h. */
13209 /* Override any GCC internal prototype to avoid an error.
13210 Use char because int might match the return type of a GCC
13211 builtin and then its argument prototype would still apply. */
13212 #ifdef __cplusplus
13213 extern "C"
13214 #endif
13215 char png_get_channels ();
13217 main ()
13219 return png_get_channels ();
13221 return 0;
13223 _ACEOF
13224 if ac_fn_c_try_link "$LINENO"; then :
13225 ac_cv_lib_png_png_get_channels=yes
13226 else
13227 ac_cv_lib_png_png_get_channels=no
13229 rm -f core conftest.err conftest.$ac_objext \
13230 conftest$ac_exeext conftest.$ac_ext
13231 LIBS=$ac_check_lib_save_LIBS
13233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
13234 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
13235 if test "x$ac_cv_lib_png_png_get_channels" = x""yes; then :
13236 HAVE_PNG=yes
13242 if test "${HAVE_PNG}" = "yes"; then
13244 $as_echo "#define HAVE_PNG 1" >>confdefs.h
13246 LIBPNG="-lpng -lz -lm"
13251 ### Use -ltiff if available, unless `--with-tiff=no'.
13252 HAVE_TIFF=no
13253 LIBTIFF=
13254 if test "${HAVE_X11}" = "yes"; then
13255 if test "${with_tiff}" != "no"; then
13256 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
13257 if test "x$ac_cv_header_tiffio_h" = x""yes; then :
13258 tifflibs="-lz -lm"
13259 # At least one tiff package requires the jpeg library.
13260 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
13261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
13262 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
13263 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then :
13264 $as_echo_n "(cached) " >&6
13265 else
13266 ac_check_lib_save_LIBS=$LIBS
13267 LIBS="-ltiff $tifflibs $LIBS"
13268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13269 /* end confdefs.h. */
13271 /* Override any GCC internal prototype to avoid an error.
13272 Use char because int might match the return type of a GCC
13273 builtin and then its argument prototype would still apply. */
13274 #ifdef __cplusplus
13275 extern "C"
13276 #endif
13277 char TIFFGetVersion ();
13279 main ()
13281 return TIFFGetVersion ();
13283 return 0;
13285 _ACEOF
13286 if ac_fn_c_try_link "$LINENO"; then :
13287 ac_cv_lib_tiff_TIFFGetVersion=yes
13288 else
13289 ac_cv_lib_tiff_TIFFGetVersion=no
13291 rm -f core conftest.err conftest.$ac_objext \
13292 conftest$ac_exeext conftest.$ac_ext
13293 LIBS=$ac_check_lib_save_LIBS
13295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
13296 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
13297 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x""yes; then :
13298 HAVE_TIFF=yes
13306 if test "${HAVE_TIFF}" = "yes"; then
13308 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
13310 LIBTIFF=-ltiff
13315 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
13316 HAVE_GIF=no
13317 LIBGIF=
13318 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
13319 ac_fn_c_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
13320 if test "x$ac_cv_header_gif_lib_h" = x""yes; then :
13321 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
13322 # Earlier versions can crash Emacs.
13323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
13324 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
13325 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then :
13326 $as_echo_n "(cached) " >&6
13327 else
13328 ac_check_lib_save_LIBS=$LIBS
13329 LIBS="-lgif $LIBS"
13330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13331 /* end confdefs.h. */
13333 /* Override any GCC internal prototype to avoid an error.
13334 Use char because int might match the return type of a GCC
13335 builtin and then its argument prototype would still apply. */
13336 #ifdef __cplusplus
13337 extern "C"
13338 #endif
13339 char EGifPutExtensionLast ();
13341 main ()
13343 return EGifPutExtensionLast ();
13345 return 0;
13347 _ACEOF
13348 if ac_fn_c_try_link "$LINENO"; then :
13349 ac_cv_lib_gif_EGifPutExtensionLast=yes
13350 else
13351 ac_cv_lib_gif_EGifPutExtensionLast=no
13353 rm -f core conftest.err conftest.$ac_objext \
13354 conftest$ac_exeext conftest.$ac_ext
13355 LIBS=$ac_check_lib_save_LIBS
13357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
13358 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
13359 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x""yes; then :
13360 HAVE_GIF=yes
13361 else
13362 HAVE_GIF=maybe
13369 if test "$HAVE_GIF" = yes; then
13370 LIBGIF=-lgif
13371 elif test "$HAVE_GIF" = maybe; then
13372 # If gif_lib.h but no libgif, try libungif.
13373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
13374 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
13375 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then :
13376 $as_echo_n "(cached) " >&6
13377 else
13378 ac_check_lib_save_LIBS=$LIBS
13379 LIBS="-lungif $LIBS"
13380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13381 /* end confdefs.h. */
13383 /* Override any GCC internal prototype to avoid an error.
13384 Use char because int might match the return type of a GCC
13385 builtin and then its argument prototype would still apply. */
13386 #ifdef __cplusplus
13387 extern "C"
13388 #endif
13389 char EGifPutExtensionLast ();
13391 main ()
13393 return EGifPutExtensionLast ();
13395 return 0;
13397 _ACEOF
13398 if ac_fn_c_try_link "$LINENO"; then :
13399 ac_cv_lib_ungif_EGifPutExtensionLast=yes
13400 else
13401 ac_cv_lib_ungif_EGifPutExtensionLast=no
13403 rm -f core conftest.err conftest.$ac_objext \
13404 conftest$ac_exeext conftest.$ac_ext
13405 LIBS=$ac_check_lib_save_LIBS
13407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
13408 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
13409 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x""yes; then :
13410 HAVE_GIF=yes
13411 else
13412 HAVE_GIF=no
13415 test "$HAVE_GIF" = yes && LIBGIF=-lungif
13418 if test "${HAVE_GIF}" = "yes"; then
13420 $as_echo "#define HAVE_GIF 1" >>confdefs.h
13426 if test "${HAVE_X11}" = "yes"; then
13427 MISSING=""
13428 WITH_NO=""
13429 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
13430 MISSING="libXpm" && WITH_NO="--with-xpm=no"
13431 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
13432 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
13433 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
13434 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
13435 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
13436 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
13437 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
13438 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
13440 if test "X${MISSING}" != X; then
13441 as_fn_error "The following required libraries were not found:
13442 $MISSING
13443 Maybe some development libraries/packages are missing?
13444 If you don't want to link with them give
13445 $WITH_NO
13446 as options to configure" "$LINENO" 5
13450 ### Use -lgpm if available, unless `--with-gpm=no'.
13451 HAVE_GPM=no
13452 LIBGPM=
13453 if test "${with_gpm}" != "no"; then
13454 ac_fn_c_check_header_mongrel "$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
13455 if test "x$ac_cv_header_gpm_h" = x""yes; then :
13456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
13457 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
13458 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then :
13459 $as_echo_n "(cached) " >&6
13460 else
13461 ac_check_lib_save_LIBS=$LIBS
13462 LIBS="-lgpm $LIBS"
13463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13464 /* end confdefs.h. */
13466 /* Override any GCC internal prototype to avoid an error.
13467 Use char because int might match the return type of a GCC
13468 builtin and then its argument prototype would still apply. */
13469 #ifdef __cplusplus
13470 extern "C"
13471 #endif
13472 char Gpm_Open ();
13474 main ()
13476 return Gpm_Open ();
13478 return 0;
13480 _ACEOF
13481 if ac_fn_c_try_link "$LINENO"; then :
13482 ac_cv_lib_gpm_Gpm_Open=yes
13483 else
13484 ac_cv_lib_gpm_Gpm_Open=no
13486 rm -f core conftest.err conftest.$ac_objext \
13487 conftest$ac_exeext conftest.$ac_ext
13488 LIBS=$ac_check_lib_save_LIBS
13490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
13491 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
13492 if test "x$ac_cv_lib_gpm_Gpm_Open" = x""yes; then :
13493 HAVE_GPM=yes
13500 if test "${HAVE_GPM}" = "yes"; then
13502 $as_echo "#define HAVE_GPM 1" >>confdefs.h
13504 LIBGPM=-lgpm
13509 ac_fn_c_check_header_mongrel "$LINENO" "malloc/malloc.h" "ac_cv_header_malloc_malloc_h" "$ac_includes_default"
13510 if test "x$ac_cv_header_malloc_malloc_h" = x""yes; then :
13512 $as_echo "#define HAVE_MALLOC_MALLOC_H 1" >>confdefs.h
13518 C_SWITCH_X_SYSTEM=
13519 ### Use NeXTstep API to implement GUI.
13520 if test "${HAVE_NS}" = "yes"; then
13522 $as_echo "#define HAVE_NS 1" >>confdefs.h
13524 if test "${NS_IMPL_COCOA}" = "yes"; then
13526 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
13529 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
13531 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
13533 # See also .m.o rule in Makefile.in */
13534 # FIXME: are all these flags really needed? Document here why. */
13535 C_SWITCH_X_SYSTEM="-D_REENTRANT -fPIC -fno-strict-aliasing -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
13536 ## Extra CFLAGS applied to src/*.m files.
13537 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"
13539 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
13541 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
13544 # We also have mouse menus.
13545 HAVE_MENUS=yes
13546 OTHER_FILES=ns-app
13550 ### Use session management (-lSM -lICE) if available
13551 HAVE_X_SM=no
13552 LIBXSM=
13553 if test "${HAVE_X11}" = "yes"; then
13554 ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
13555 if test "x$ac_cv_header_X11_SM_SMlib_h" = x""yes; then :
13556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
13557 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
13558 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then :
13559 $as_echo_n "(cached) " >&6
13560 else
13561 ac_check_lib_save_LIBS=$LIBS
13562 LIBS="-lSM -lICE $LIBS"
13563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13564 /* end confdefs.h. */
13566 /* Override any GCC internal prototype to avoid an error.
13567 Use char because int might match the return type of a GCC
13568 builtin and then its argument prototype would still apply. */
13569 #ifdef __cplusplus
13570 extern "C"
13571 #endif
13572 char SmcOpenConnection ();
13574 main ()
13576 return SmcOpenConnection ();
13578 return 0;
13580 _ACEOF
13581 if ac_fn_c_try_link "$LINENO"; then :
13582 ac_cv_lib_SM_SmcOpenConnection=yes
13583 else
13584 ac_cv_lib_SM_SmcOpenConnection=no
13586 rm -f core conftest.err conftest.$ac_objext \
13587 conftest$ac_exeext conftest.$ac_ext
13588 LIBS=$ac_check_lib_save_LIBS
13590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
13591 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
13592 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x""yes; then :
13593 HAVE_X_SM=yes
13600 if test "${HAVE_X_SM}" = "yes"; then
13602 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
13604 LIBXSM="-lSM -lICE"
13605 case "$LIBS" in
13606 *-lSM*) ;;
13607 *) LIBS="$LIBXSM $LIBS" ;;
13608 esac
13613 ### Use libxml (-lxml2) if available
13614 HAVE_LIBXML2=no
13615 if test "${with_xml2}" != "no"; then
13616 ### I'm not sure what the version number should be, so I just guessed.
13618 succeeded=no
13620 # Extract the first word of "pkg-config", so it can be a program name with args.
13621 set dummy pkg-config; ac_word=$2
13622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13623 $as_echo_n "checking for $ac_word... " >&6; }
13624 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
13625 $as_echo_n "(cached) " >&6
13626 else
13627 case $PKG_CONFIG in
13628 [\\/]* | ?:[\\/]*)
13629 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13633 for as_dir in $PATH
13635 IFS=$as_save_IFS
13636 test -z "$as_dir" && as_dir=.
13637 for ac_exec_ext in '' $ac_executable_extensions; do
13638 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13639 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13641 break 2
13643 done
13644 done
13645 IFS=$as_save_IFS
13647 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13649 esac
13651 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13652 if test -n "$PKG_CONFIG"; then
13653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13654 $as_echo "$PKG_CONFIG" >&6; }
13655 else
13656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13657 $as_echo "no" >&6; }
13662 if test "$PKG_CONFIG" = "no" ; then
13663 HAVE_LIBXML2=no
13664 else
13665 PKG_CONFIG_MIN_VERSION=0.9.0
13666 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.6.17" >&5
13668 $as_echo_n "checking for libxml-2.0 > 2.6.17... " >&6; }
13670 if $PKG_CONFIG --exists "libxml-2.0 > 2.6.17" 2>&5; then
13671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13672 $as_echo "yes" >&6; }
13673 succeeded=yes
13675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_CFLAGS" >&5
13676 $as_echo_n "checking LIBXML2_CFLAGS... " >&6; }
13677 LIBXML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 > 2.6.17"|sed -e 's,///*,/,g'`
13678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_CFLAGS" >&5
13679 $as_echo "$LIBXML2_CFLAGS" >&6; }
13681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_LIBS" >&5
13682 $as_echo_n "checking LIBXML2_LIBS... " >&6; }
13683 LIBXML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0 > 2.6.17"|sed -e 's,///*,/,g'`
13684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_LIBS" >&5
13685 $as_echo "$LIBXML2_LIBS" >&6; }
13686 else
13687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13688 $as_echo "no" >&6; }
13689 LIBXML2_CFLAGS=""
13690 LIBXML2_LIBS=""
13691 ## If we have a custom action on failure, don't print errors, but
13692 ## do set a variable so people can do so.
13693 LIBXML2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 > 2.6.17"`
13699 else
13700 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13701 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13705 if test $succeeded = yes; then
13706 HAVE_LIBXML2=yes
13707 else
13708 HAVE_LIBXML2=no
13711 if test "${HAVE_LIBXML2}" = "yes"; then
13712 LIBS="$LIBXML2_LIBS $LIBS"
13713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
13714 $as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
13715 if test "${ac_cv_lib_xml2_htmlReadMemory+set}" = set; then :
13716 $as_echo_n "(cached) " >&6
13717 else
13718 ac_check_lib_save_LIBS=$LIBS
13719 LIBS="-lxml2 $LIBS"
13720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13721 /* end confdefs.h. */
13723 /* Override any GCC internal prototype to avoid an error.
13724 Use char because int might match the return type of a GCC
13725 builtin and then its argument prototype would still apply. */
13726 #ifdef __cplusplus
13727 extern "C"
13728 #endif
13729 char htmlReadMemory ();
13731 main ()
13733 return htmlReadMemory ();
13735 return 0;
13737 _ACEOF
13738 if ac_fn_c_try_link "$LINENO"; then :
13739 ac_cv_lib_xml2_htmlReadMemory=yes
13740 else
13741 ac_cv_lib_xml2_htmlReadMemory=no
13743 rm -f core conftest.err conftest.$ac_objext \
13744 conftest$ac_exeext conftest.$ac_ext
13745 LIBS=$ac_check_lib_save_LIBS
13747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
13748 $as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
13749 if test "x$ac_cv_lib_xml2_htmlReadMemory" = x""yes; then :
13750 HAVE_LIBXML2=yes
13751 else
13752 HAVE_LIBXML2=no
13755 if test "${HAVE_LIBXML2}" = "yes"; then
13757 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
13759 else
13760 LIBXML2_LIBS=""
13761 LIBXML2_CFLAGS=""
13768 # If netdb.h doesn't declare h_errno, we must declare it by hand.
13769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
13770 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
13771 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then :
13772 $as_echo_n "(cached) " >&6
13773 else
13774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13775 /* end confdefs.h. */
13776 #include <netdb.h>
13778 main ()
13780 return h_errno;
13782 return 0;
13784 _ACEOF
13785 if ac_fn_c_try_link "$LINENO"; then :
13786 emacs_cv_netdb_declares_h_errno=yes
13787 else
13788 emacs_cv_netdb_declares_h_errno=no
13790 rm -f core conftest.err conftest.$ac_objext \
13791 conftest$ac_exeext conftest.$ac_ext
13793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
13794 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
13795 if test $emacs_cv_netdb_declares_h_errno = yes; then
13797 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
13801 # fmod, logb, and frexp are found in -lm on most systems.
13802 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
13803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
13804 $as_echo_n "checking for sqrt in -lm... " >&6; }
13805 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
13806 $as_echo_n "(cached) " >&6
13807 else
13808 ac_check_lib_save_LIBS=$LIBS
13809 LIBS="-lm $LIBS"
13810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13811 /* end confdefs.h. */
13813 /* Override any GCC internal prototype to avoid an error.
13814 Use char because int might match the return type of a GCC
13815 builtin and then its argument prototype would still apply. */
13816 #ifdef __cplusplus
13817 extern "C"
13818 #endif
13819 char sqrt ();
13821 main ()
13823 return sqrt ();
13825 return 0;
13827 _ACEOF
13828 if ac_fn_c_try_link "$LINENO"; then :
13829 ac_cv_lib_m_sqrt=yes
13830 else
13831 ac_cv_lib_m_sqrt=no
13833 rm -f core conftest.err conftest.$ac_objext \
13834 conftest$ac_exeext conftest.$ac_ext
13835 LIBS=$ac_check_lib_save_LIBS
13837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
13838 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
13839 if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
13840 cat >>confdefs.h <<_ACEOF
13841 #define HAVE_LIBM 1
13842 _ACEOF
13844 LIBS="-lm $LIBS"
13849 # Check for mail-locking functions in a "mail" library. Probably this should
13850 # have the same check as for liblockfile below.
13851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
13852 $as_echo_n "checking for maillock in -lmail... " >&6; }
13853 if test "${ac_cv_lib_mail_maillock+set}" = set; then :
13854 $as_echo_n "(cached) " >&6
13855 else
13856 ac_check_lib_save_LIBS=$LIBS
13857 LIBS="-lmail $LIBS"
13858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13859 /* end confdefs.h. */
13861 /* Override any GCC internal prototype to avoid an error.
13862 Use char because int might match the return type of a GCC
13863 builtin and then its argument prototype would still apply. */
13864 #ifdef __cplusplus
13865 extern "C"
13866 #endif
13867 char maillock ();
13869 main ()
13871 return maillock ();
13873 return 0;
13875 _ACEOF
13876 if ac_fn_c_try_link "$LINENO"; then :
13877 ac_cv_lib_mail_maillock=yes
13878 else
13879 ac_cv_lib_mail_maillock=no
13881 rm -f core conftest.err conftest.$ac_objext \
13882 conftest$ac_exeext conftest.$ac_ext
13883 LIBS=$ac_check_lib_save_LIBS
13885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
13886 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
13887 if test "x$ac_cv_lib_mail_maillock" = x""yes; then :
13888 have_mail=yes
13889 else
13890 have_mail=no
13893 if test $have_mail = yes; then
13894 LIBS_MAIL=-lmail
13895 LIBS="$LIBS_MAIL $LIBS"
13897 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
13899 else
13900 LIBS_MAIL=
13902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
13903 $as_echo_n "checking for maillock in -llockfile... " >&6; }
13904 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then :
13905 $as_echo_n "(cached) " >&6
13906 else
13907 ac_check_lib_save_LIBS=$LIBS
13908 LIBS="-llockfile $LIBS"
13909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13910 /* end confdefs.h. */
13912 /* Override any GCC internal prototype to avoid an error.
13913 Use char because int might match the return type of a GCC
13914 builtin and then its argument prototype would still apply. */
13915 #ifdef __cplusplus
13916 extern "C"
13917 #endif
13918 char maillock ();
13920 main ()
13922 return maillock ();
13924 return 0;
13926 _ACEOF
13927 if ac_fn_c_try_link "$LINENO"; then :
13928 ac_cv_lib_lockfile_maillock=yes
13929 else
13930 ac_cv_lib_lockfile_maillock=no
13932 rm -f core conftest.err conftest.$ac_objext \
13933 conftest$ac_exeext conftest.$ac_ext
13934 LIBS=$ac_check_lib_save_LIBS
13936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
13937 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
13938 if test "x$ac_cv_lib_lockfile_maillock" = x""yes; then :
13939 have_lockfile=yes
13940 else
13941 have_lockfile=no
13944 if test $have_lockfile = yes; then
13945 LIBS_MAIL=-llockfile
13946 LIBS="$LIBS_MAIL $LIBS"
13948 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
13950 else
13951 # If we have the shared liblockfile, assume we must use it for mail
13952 # locking (e.g. Debian). If we couldn't link against liblockfile
13953 # (no liblockfile.a installed), ensure that we don't need to.
13954 # Extract the first word of "liblockfile.so", so it can be a program name with args.
13955 set dummy liblockfile.so; ac_word=$2
13956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13957 $as_echo_n "checking for $ac_word... " >&6; }
13958 if test "${ac_cv_prog_liblockfile+set}" = set; then :
13959 $as_echo_n "(cached) " >&6
13960 else
13961 if test -n "$liblockfile"; then
13962 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
13963 else
13964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13965 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
13966 for as_dir in $as_dummy
13968 IFS=$as_save_IFS
13969 test -z "$as_dir" && as_dir=.
13970 for ac_exec_ext in '' $ac_executable_extensions; do
13971 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13972 ac_cv_prog_liblockfile="yes"
13973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13974 break 2
13976 done
13977 done
13978 IFS=$as_save_IFS
13980 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
13983 liblockfile=$ac_cv_prog_liblockfile
13984 if test -n "$liblockfile"; then
13985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
13986 $as_echo "$liblockfile" >&6; }
13987 else
13988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13989 $as_echo "no" >&6; }
13993 if test $ac_cv_prog_liblockfile = yes; then
13994 as_fn_error "Shared liblockfile found but can't link against it.
13995 This probably means that movemail could lose mail.
13996 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
13999 for ac_func in touchlock
14000 do :
14001 ac_fn_c_check_func "$LINENO" "touchlock" "ac_cv_func_touchlock"
14002 if test "x$ac_cv_func_touchlock" = x""yes; then :
14003 cat >>confdefs.h <<_ACEOF
14004 #define HAVE_TOUCHLOCK 1
14005 _ACEOF
14008 done
14010 for ac_header in maillock.h
14011 do :
14012 ac_fn_c_check_header_mongrel "$LINENO" "maillock.h" "ac_cv_header_maillock_h" "$ac_includes_default"
14013 if test "x$ac_cv_header_maillock_h" = x""yes; then :
14014 cat >>confdefs.h <<_ACEOF
14015 #define HAVE_MAILLOCK_H 1
14016 _ACEOF
14020 done
14024 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
14025 ## interlock access to the mail spool. The alternative is a lock file named
14026 ## /usr/spool/mail/$USER.lock.
14027 mail_lock=no
14028 case "$opsys" in
14029 aix4-2) mail_lock="lockf" ;;
14031 gnu|freebsd|netbsd|openbsd|darwin|irix6-5) mail_lock="flock" ;;
14033 ## On GNU/Linux systems, both methods are used by various mail programs.
14034 ## I assume most people are using newer mailers that have heard of flock.
14035 ## Change this if you need to.
14036 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
14037 ## configure gets the right answers, and that means *NOT* using flock.
14038 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
14039 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
14040 ## Debian maintainer hasn't provided a clean fix for Emacs.
14041 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
14042 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
14043 ## correct logic. -- fx
14044 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
14045 ## liblockfile is a Free Software replacement for libmail, used on
14046 ## Debian systems and elsewhere. -rfr.
14047 gnu-*)
14048 mail_lock="flock"
14049 if test $have_mail = yes || test $have_lockfile = yes; then
14050 test $ac_cv_header_maillock_h = yes && mail_lock=no
14053 esac
14055 BLESSMAIL_TARGET=
14056 case "$mail_lock" in
14057 flock)
14058 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
14061 lockf)
14062 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
14065 *) BLESSMAIL_TARGET="need-blessmail" ;;
14066 esac
14070 for ac_func in gethostname getdomainname \
14071 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
14072 random lrand48 logb frexp fmod rint cbrt ftime setsid \
14073 strerror fpathconf select euidaccess getpagesize tzset setlocale \
14074 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
14075 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm \
14076 sendto recvfrom getsockopt setsockopt getsockname getpeername \
14077 gai_strerror mkstemp getline getdelim mremap fsync sync \
14078 difftime mempcpy mblen mbrlen posix_memalign \
14079 cfmakeraw cfsetspeed copysign __executable_start
14080 do :
14081 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14082 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14083 eval as_val=\$$as_ac_var
14084 if test "x$as_val" = x""yes; then :
14085 cat >>confdefs.h <<_ACEOF
14086 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14087 _ACEOF
14090 done
14093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unwind_init" >&5
14094 $as_echo_n "checking for __builtin_unwind_init... " >&6; }
14095 if test "${emacs_cv_func___builtin_unwind_init+set}" = set; then :
14096 $as_echo_n "(cached) " >&6
14097 else
14098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14099 /* end confdefs.h. */
14102 main ()
14104 __builtin_unwind_init ();
14106 return 0;
14108 _ACEOF
14109 if ac_fn_c_try_link "$LINENO"; then :
14110 emacs_cv_func___builtin_unwind_init=yes
14111 else
14112 emacs_cv_func___builtin_unwind_init=no
14114 rm -f core conftest.err conftest.$ac_objext \
14115 conftest$ac_exeext conftest.$ac_ext
14117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func___builtin_unwind_init" >&5
14118 $as_echo "$emacs_cv_func___builtin_unwind_init" >&6; }
14119 if test $emacs_cv_func___builtin_unwind_init = yes; then
14121 $as_echo "#define HAVE___BUILTIN_UNWIND_INIT 1" >>confdefs.h
14125 for ac_header in sys/un.h
14126 do :
14127 ac_fn_c_check_header_mongrel "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
14128 if test "x$ac_cv_header_sys_un_h" = x""yes; then :
14129 cat >>confdefs.h <<_ACEOF
14130 #define HAVE_SYS_UN_H 1
14131 _ACEOF
14135 done
14138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
14139 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
14140 if test "${ac_cv_sys_largefile_source+set}" = set; then :
14141 $as_echo_n "(cached) " >&6
14142 else
14143 while :; do
14144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14145 /* end confdefs.h. */
14146 #include <sys/types.h> /* for off_t */
14147 #include <stdio.h>
14149 main ()
14151 int (*fp) (FILE *, off_t, int) = fseeko;
14152 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14154 return 0;
14156 _ACEOF
14157 if ac_fn_c_try_link "$LINENO"; then :
14158 ac_cv_sys_largefile_source=no; break
14160 rm -f core conftest.err conftest.$ac_objext \
14161 conftest$ac_exeext conftest.$ac_ext
14162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14163 /* end confdefs.h. */
14164 #define _LARGEFILE_SOURCE 1
14165 #include <sys/types.h> /* for off_t */
14166 #include <stdio.h>
14168 main ()
14170 int (*fp) (FILE *, off_t, int) = fseeko;
14171 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14173 return 0;
14175 _ACEOF
14176 if ac_fn_c_try_link "$LINENO"; then :
14177 ac_cv_sys_largefile_source=1; break
14179 rm -f core conftest.err conftest.$ac_objext \
14180 conftest$ac_exeext conftest.$ac_ext
14181 ac_cv_sys_largefile_source=unknown
14182 break
14183 done
14185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
14186 $as_echo "$ac_cv_sys_largefile_source" >&6; }
14187 case $ac_cv_sys_largefile_source in #(
14188 no | unknown) ;;
14190 cat >>confdefs.h <<_ACEOF
14191 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
14192 _ACEOF
14194 esac
14195 rm -rf conftest*
14197 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
14198 # in glibc 2.1.3, but that breaks too many other things.
14199 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
14200 if test $ac_cv_sys_largefile_source != unknown; then
14202 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
14207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
14208 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
14209 if test "${ac_cv_func_getpgrp_void+set}" = set; then :
14210 $as_echo_n "(cached) " >&6
14211 else
14212 # Use it with a single arg.
14213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14214 /* end confdefs.h. */
14215 $ac_includes_default
14217 main ()
14219 getpgrp (0);
14221 return 0;
14223 _ACEOF
14224 if ac_fn_c_try_compile "$LINENO"; then :
14225 ac_cv_func_getpgrp_void=no
14226 else
14227 ac_cv_func_getpgrp_void=yes
14229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
14233 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
14234 if test $ac_cv_func_getpgrp_void = yes; then
14236 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
14241 # UNIX98 PTYs.
14242 for ac_func in grantpt
14243 do :
14244 ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt"
14245 if test "x$ac_cv_func_grantpt" = x""yes; then :
14246 cat >>confdefs.h <<_ACEOF
14247 #define HAVE_GRANTPT 1
14248 _ACEOF
14251 done
14254 # PTY-related GNU extensions.
14255 for ac_func in getpt
14256 do :
14257 ac_fn_c_check_func "$LINENO" "getpt" "ac_cv_func_getpt"
14258 if test "x$ac_cv_func_getpt" = x""yes; then :
14259 cat >>confdefs.h <<_ACEOF
14260 #define HAVE_GETPT 1
14261 _ACEOF
14264 done
14267 # Check this now, so that we will NOT find the above functions in ncurses.
14268 # That is because we have not set up to link ncurses in lib-src.
14269 # It's better to believe a function is not available
14270 # than to expect to find it in ncurses.
14271 # Also we need tputs and friends to be able to build at all.
14272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
14273 $as_echo_n "checking for library containing tputs... " >&6; }
14274 # Run a test program that contains a call to tputs, a call that is
14275 # never executed. This tests whether a pre-'main' dynamic linker
14276 # works with the library. It's too much trouble to actually call
14277 # tputs in the test program, due to portability hassles. When
14278 # cross-compiling, assume the test program will run if it links.
14280 # Maybe curses should be tried earlier?
14281 # See http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9736#35
14282 for tputs_library in '' ncurses terminfo termcap curses; do
14283 OLIBS=$LIBS
14284 if test -z "$tputs_library"; then
14285 LIBS_TERMCAP=
14286 msg='none required'
14287 else
14288 LIBS_TERMCAP=-l$tputs_library
14289 msg=$LIBS_TERMCAP
14290 LIBS="$LIBS_TERMCAP $LIBS"
14292 if test "$cross_compiling" = yes; then :
14293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14294 /* end confdefs.h. */
14296 extern void tputs (const char *, int, int (*)(int));
14297 int main (int argc, char **argv)
14299 if (argc == 10000)
14300 tputs (argv[0], 0, 0);
14301 return 0;
14304 _ACEOF
14305 if ac_fn_c_try_link "$LINENO"; then :
14307 else
14308 msg=no
14310 rm -f core conftest.err conftest.$ac_objext \
14311 conftest$ac_exeext conftest.$ac_ext
14312 else
14313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14314 /* end confdefs.h. */
14316 extern void tputs (const char *, int, int (*)(int));
14317 int main (int argc, char **argv)
14319 if (argc == 10000)
14320 tputs (argv[0], 0, 0);
14321 return 0;
14324 _ACEOF
14325 if ac_fn_c_try_run "$LINENO"; then :
14327 else
14328 msg=no
14330 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14331 conftest.$ac_objext conftest.beam conftest.$ac_ext
14334 LIBS=$OLIBS
14335 if test "X$msg" != Xno; then
14336 break
14338 done
14339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5
14340 $as_echo "$msg" >&6; }
14341 if test "X$msg" = Xno; then
14342 as_fn_error "The required function \`tputs' was not found in any library.
14343 These libraries were tried: libncurses, libterminfo, libtermcap, libcurses.
14344 Please try installing whichever of these libraries is most appropriate
14345 for your system, together with its header files.
14346 For example, a libncurses-dev(el) or similar package." "$LINENO" 5
14348 # Must define this when any termcap library is found.
14350 $as_echo "#define HAVE_LIBNCURSES 1" >>confdefs.h
14352 ## FIXME This was the cpp logic, but I am not sure it is right.
14353 ## The above test has not necessarily found libncurses.
14354 HAVE_LIBNCURSES=yes
14356 ## Use terminfo instead of termcap?
14357 ## Note only system files NOT using terminfo are:
14358 ## freebsd < 40000, ms-w32, msdos, netbsd < 599002500, and
14359 ## darwin|gnu without ncurses.
14360 TERMINFO=no
14361 case "$opsys" in
14362 ## cygwin: Fewer environment variables to go wrong, more terminal types.
14363 ## hpux10-20: Use the system provided termcap(3) library.
14364 ## openbsd: David Mazieres <dm@reeducation-labor.lcs.mit.edu> says this
14365 ## is necessary. Otherwise Emacs dumps core when run -nw.
14366 aix4-2|cygwin|hpux*|irix6-5|openbsd|sol2*|unixware) TERMINFO=yes ;;
14368 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
14369 ## The ncurses library has been moved out of the System framework in
14370 ## Mac OS X 10.2. So if configure detects it, set the command-line
14371 ## option to use it.
14372 darwin|gnu*)
14373 ## (HAVE_LIBNCURSES was not always true, but is since 2010-03-18.)
14374 if test "x$HAVE_LIBNCURSES" = "xyes"; then
14375 TERMINFO=yes
14376 LIBS_TERMCAP="-lncurses"
14380 freebsd)
14381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
14382 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
14383 if test "${emacs_cv_freebsd_terminfo+set}" = set; then :
14384 $as_echo_n "(cached) " >&6
14385 else
14386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14387 /* end confdefs.h. */
14388 #include <osreldate.h>
14390 main ()
14392 #if __FreeBSD_version < 400000
14393 fail;
14394 #endif
14397 return 0;
14399 _ACEOF
14400 if ac_fn_c_try_link "$LINENO"; then :
14401 emacs_cv_freebsd_terminfo=yes
14402 else
14403 emacs_cv_freebsd_terminfo=no
14405 rm -f core conftest.err conftest.$ac_objext \
14406 conftest$ac_exeext conftest.$ac_ext
14410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
14411 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
14413 if test $emacs_cv_freebsd_terminfo = yes; then
14414 TERMINFO=yes
14415 LIBS_TERMCAP="-lncurses"
14416 else
14417 LIBS_TERMCAP="-ltermcap"
14421 netbsd)
14422 if test "x$LIBS_TERMCAP" = "x-lterminfo"; then
14423 TERMINFO=yes
14424 else
14425 LIBS_TERMCAP="-ltermcap"
14429 esac
14431 case "$opsys" in
14432 ## hpux: Make sure we get select from libc rather than from libcurses
14433 ## because libcurses on HPUX 10.10 has a broken version of select.
14434 ## We used to use -lc -lcurses, but this may be cleaner.
14435 hpux*) LIBS_TERMCAP="-ltermcap" ;;
14437 openbsd) LIBS_TERMCAP="-lncurses" ;;
14439 ## Must use system termcap, if we use any termcap. It does special things.
14440 sol2*) test "$TERMINFO" != yes && LIBS_TERMCAP="-ltermcap" ;;
14441 esac
14443 TERMCAP_OBJ=tparam.o
14444 if test $TERMINFO = yes; then
14446 $as_echo "#define TERMINFO 1" >>confdefs.h
14448 TERMCAP_OBJ=terminfo.o
14454 # Do we have res_init, for detecting changes in /etc/resolv.conf?
14455 resolv=no
14456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14457 /* end confdefs.h. */
14458 #include <netinet/in.h>
14459 #include <arpa/nameser.h>
14460 #include <resolv.h>
14462 main ()
14464 return res_init();
14466 return 0;
14468 _ACEOF
14469 if ac_fn_c_try_link "$LINENO"; then :
14470 have_res_init=yes
14471 else
14472 have_res_init=no
14474 rm -f core conftest.err conftest.$ac_objext \
14475 conftest$ac_exeext conftest.$ac_ext
14476 if test "$have_res_init" = no; then
14477 OLIBS="$LIBS"
14478 LIBS="$LIBS -lresolv"
14479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
14480 $as_echo_n "checking for res_init with -lresolv... " >&6; }
14481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14482 /* end confdefs.h. */
14483 #include <netinet/in.h>
14484 #include <arpa/nameser.h>
14485 #include <resolv.h>
14487 main ()
14489 return res_init();
14491 return 0;
14493 _ACEOF
14494 if ac_fn_c_try_link "$LINENO"; then :
14495 have_res_init=yes
14496 else
14497 have_res_init=no
14499 rm -f core conftest.err conftest.$ac_objext \
14500 conftest$ac_exeext conftest.$ac_ext
14501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
14502 $as_echo "$have_res_init" >&6; }
14503 if test "$have_res_init" = yes ; then
14504 resolv=yes
14506 LIBS="$OLIBS"
14509 if test "$have_res_init" = yes; then
14511 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
14515 # Do we need the Hesiod library to provide the support routines?
14516 LIBHESIOD=
14517 if test "$with_hesiod" != no ; then
14518 # Don't set $LIBS here -- see comments above. FIXME which comments?
14519 ac_fn_c_check_func "$LINENO" "res_send" "ac_cv_func_res_send"
14520 if test "x$ac_cv_func_res_send" = x""yes; then :
14522 else
14523 ac_fn_c_check_func "$LINENO" "__res_send" "ac_cv_func___res_send"
14524 if test "x$ac_cv_func___res_send" = x""yes; then :
14526 else
14527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
14528 $as_echo_n "checking for res_send in -lresolv... " >&6; }
14529 if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
14530 $as_echo_n "(cached) " >&6
14531 else
14532 ac_check_lib_save_LIBS=$LIBS
14533 LIBS="-lresolv $LIBS"
14534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14535 /* end confdefs.h. */
14537 /* Override any GCC internal prototype to avoid an error.
14538 Use char because int might match the return type of a GCC
14539 builtin and then its argument prototype would still apply. */
14540 #ifdef __cplusplus
14541 extern "C"
14542 #endif
14543 char res_send ();
14545 main ()
14547 return res_send ();
14549 return 0;
14551 _ACEOF
14552 if ac_fn_c_try_link "$LINENO"; then :
14553 ac_cv_lib_resolv_res_send=yes
14554 else
14555 ac_cv_lib_resolv_res_send=no
14557 rm -f core conftest.err conftest.$ac_objext \
14558 conftest$ac_exeext conftest.$ac_ext
14559 LIBS=$ac_check_lib_save_LIBS
14561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
14562 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
14563 if test "x$ac_cv_lib_resolv_res_send" = x""yes; then :
14564 resolv=yes
14565 else
14566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
14567 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
14568 if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
14569 $as_echo_n "(cached) " >&6
14570 else
14571 ac_check_lib_save_LIBS=$LIBS
14572 LIBS="-lresolv $LIBS"
14573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14574 /* end confdefs.h. */
14576 /* Override any GCC internal prototype to avoid an error.
14577 Use char because int might match the return type of a GCC
14578 builtin and then its argument prototype would still apply. */
14579 #ifdef __cplusplus
14580 extern "C"
14581 #endif
14582 char __res_send ();
14584 main ()
14586 return __res_send ();
14588 return 0;
14590 _ACEOF
14591 if ac_fn_c_try_link "$LINENO"; then :
14592 ac_cv_lib_resolv___res_send=yes
14593 else
14594 ac_cv_lib_resolv___res_send=no
14596 rm -f core conftest.err conftest.$ac_objext \
14597 conftest$ac_exeext conftest.$ac_ext
14598 LIBS=$ac_check_lib_save_LIBS
14600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
14601 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
14602 if test "x$ac_cv_lib_resolv___res_send" = x""yes; then :
14603 resolv=yes
14612 if test "$resolv" = yes ; then
14613 RESOLVLIB=-lresolv
14614 else
14615 RESOLVLIB=
14617 ac_fn_c_check_func "$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
14618 if test "x$ac_cv_func_hes_getmailhost" = x""yes; then :
14620 else
14621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
14622 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
14623 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
14624 $as_echo_n "(cached) " >&6
14625 else
14626 ac_check_lib_save_LIBS=$LIBS
14627 LIBS="-lhesiod $RESOLVLIB $LIBS"
14628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14629 /* end confdefs.h. */
14631 /* Override any GCC internal prototype to avoid an error.
14632 Use char because int might match the return type of a GCC
14633 builtin and then its argument prototype would still apply. */
14634 #ifdef __cplusplus
14635 extern "C"
14636 #endif
14637 char hes_getmailhost ();
14639 main ()
14641 return hes_getmailhost ();
14643 return 0;
14645 _ACEOF
14646 if ac_fn_c_try_link "$LINENO"; then :
14647 ac_cv_lib_hesiod_hes_getmailhost=yes
14648 else
14649 ac_cv_lib_hesiod_hes_getmailhost=no
14651 rm -f core conftest.err conftest.$ac_objext \
14652 conftest$ac_exeext conftest.$ac_ext
14653 LIBS=$ac_check_lib_save_LIBS
14655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
14656 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
14657 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x""yes; then :
14658 hesiod=yes
14659 else
14666 if test x"$hesiod" = xyes; then
14668 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
14670 LIBHESIOD=-lhesiod
14675 # Do we need libresolv (due to res_init or Hesiod)?
14676 if test "$resolv" = yes ; then
14678 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
14680 LIBRESOLV=-lresolv
14681 else
14682 LIBRESOLV=
14686 # These tell us which Kerberos-related libraries to use.
14687 COM_ERRLIB=
14688 CRYPTOLIB=
14689 KRB5LIB=
14690 DESLIB=
14691 KRB4LIB=
14693 if test "${with_kerberos}" != no; then
14694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
14695 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
14696 if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
14697 $as_echo_n "(cached) " >&6
14698 else
14699 ac_check_lib_save_LIBS=$LIBS
14700 LIBS="-lcom_err $LIBS"
14701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14702 /* end confdefs.h. */
14704 /* Override any GCC internal prototype to avoid an error.
14705 Use char because int might match the return type of a GCC
14706 builtin and then its argument prototype would still apply. */
14707 #ifdef __cplusplus
14708 extern "C"
14709 #endif
14710 char com_err ();
14712 main ()
14714 return com_err ();
14716 return 0;
14718 _ACEOF
14719 if ac_fn_c_try_link "$LINENO"; then :
14720 ac_cv_lib_com_err_com_err=yes
14721 else
14722 ac_cv_lib_com_err_com_err=no
14724 rm -f core conftest.err conftest.$ac_objext \
14725 conftest$ac_exeext conftest.$ac_ext
14726 LIBS=$ac_check_lib_save_LIBS
14728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
14729 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
14730 if test "x$ac_cv_lib_com_err_com_err" = x""yes; then :
14731 have_com_err=yes
14732 else
14733 have_com_err=no
14736 if test $have_com_err = yes; then
14737 COM_ERRLIB=-lcom_err
14738 LIBS="$COM_ERRLIB $LIBS"
14740 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
14743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
14744 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
14745 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
14746 $as_echo_n "(cached) " >&6
14747 else
14748 ac_check_lib_save_LIBS=$LIBS
14749 LIBS="-lcrypto $LIBS"
14750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14751 /* end confdefs.h. */
14753 /* Override any GCC internal prototype to avoid an error.
14754 Use char because int might match the return type of a GCC
14755 builtin and then its argument prototype would still apply. */
14756 #ifdef __cplusplus
14757 extern "C"
14758 #endif
14759 char mit_des_cbc_encrypt ();
14761 main ()
14763 return mit_des_cbc_encrypt ();
14765 return 0;
14767 _ACEOF
14768 if ac_fn_c_try_link "$LINENO"; then :
14769 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
14770 else
14771 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
14773 rm -f core conftest.err conftest.$ac_objext \
14774 conftest$ac_exeext conftest.$ac_ext
14775 LIBS=$ac_check_lib_save_LIBS
14777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
14778 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
14779 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x""yes; then :
14780 have_crypto=yes
14781 else
14782 have_crypto=no
14785 if test $have_crypto = yes; then
14786 CRYPTOLIB=-lcrypto
14787 LIBS="$CRYPTOLIB $LIBS"
14789 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
14792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
14793 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
14794 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
14795 $as_echo_n "(cached) " >&6
14796 else
14797 ac_check_lib_save_LIBS=$LIBS
14798 LIBS="-lk5crypto $LIBS"
14799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14800 /* end confdefs.h. */
14802 /* Override any GCC internal prototype to avoid an error.
14803 Use char because int might match the return type of a GCC
14804 builtin and then its argument prototype would still apply. */
14805 #ifdef __cplusplus
14806 extern "C"
14807 #endif
14808 char mit_des_cbc_encrypt ();
14810 main ()
14812 return mit_des_cbc_encrypt ();
14814 return 0;
14816 _ACEOF
14817 if ac_fn_c_try_link "$LINENO"; then :
14818 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
14819 else
14820 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
14822 rm -f core conftest.err conftest.$ac_objext \
14823 conftest$ac_exeext conftest.$ac_ext
14824 LIBS=$ac_check_lib_save_LIBS
14826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
14827 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
14828 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x""yes; then :
14829 have_k5crypto=yes
14830 else
14831 have_k5crypto=no
14834 if test $have_k5crypto = yes; then
14835 CRYPTOLIB=-lk5crypto
14836 LIBS="$CRYPTOLIB $LIBS"
14838 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
14841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
14842 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
14843 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
14844 $as_echo_n "(cached) " >&6
14845 else
14846 ac_check_lib_save_LIBS=$LIBS
14847 LIBS="-lkrb5 $LIBS"
14848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14849 /* end confdefs.h. */
14851 /* Override any GCC internal prototype to avoid an error.
14852 Use char because int might match the return type of a GCC
14853 builtin and then its argument prototype would still apply. */
14854 #ifdef __cplusplus
14855 extern "C"
14856 #endif
14857 char krb5_init_context ();
14859 main ()
14861 return krb5_init_context ();
14863 return 0;
14865 _ACEOF
14866 if ac_fn_c_try_link "$LINENO"; then :
14867 ac_cv_lib_krb5_krb5_init_context=yes
14868 else
14869 ac_cv_lib_krb5_krb5_init_context=no
14871 rm -f core conftest.err conftest.$ac_objext \
14872 conftest$ac_exeext conftest.$ac_ext
14873 LIBS=$ac_check_lib_save_LIBS
14875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
14876 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
14877 if test "x$ac_cv_lib_krb5_krb5_init_context" = x""yes; then :
14878 have_krb5=yes
14879 else
14880 have_krb5=no
14883 if test $have_krb5=yes; then
14884 KRB5LIB=-lkrb5
14885 LIBS="$KRB5LIB $LIBS"
14887 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
14890 if test "${with_kerberos5}" = no; then
14891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
14892 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
14893 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
14894 $as_echo_n "(cached) " >&6
14895 else
14896 ac_check_lib_save_LIBS=$LIBS
14897 LIBS="-ldes425 $LIBS"
14898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14899 /* end confdefs.h. */
14901 /* Override any GCC internal prototype to avoid an error.
14902 Use char because int might match the return type of a GCC
14903 builtin and then its argument prototype would still apply. */
14904 #ifdef __cplusplus
14905 extern "C"
14906 #endif
14907 char des_cbc_encrypt ();
14909 main ()
14911 return des_cbc_encrypt ();
14913 return 0;
14915 _ACEOF
14916 if ac_fn_c_try_link "$LINENO"; then :
14917 ac_cv_lib_des425_des_cbc_encrypt=yes
14918 else
14919 ac_cv_lib_des425_des_cbc_encrypt=no
14921 rm -f core conftest.err conftest.$ac_objext \
14922 conftest$ac_exeext conftest.$ac_ext
14923 LIBS=$ac_check_lib_save_LIBS
14925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
14926 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
14927 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x""yes; then :
14928 have_des425=yes
14929 else
14930 have_des425=no
14933 if test $have_des425 = yes; then
14934 DESLIB=-ldes425
14935 LIBS="$DESLIB $LIBS"
14937 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
14939 else
14940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
14941 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
14942 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
14943 $as_echo_n "(cached) " >&6
14944 else
14945 ac_check_lib_save_LIBS=$LIBS
14946 LIBS="-ldes $LIBS"
14947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14948 /* end confdefs.h. */
14950 /* Override any GCC internal prototype to avoid an error.
14951 Use char because int might match the return type of a GCC
14952 builtin and then its argument prototype would still apply. */
14953 #ifdef __cplusplus
14954 extern "C"
14955 #endif
14956 char des_cbc_encrypt ();
14958 main ()
14960 return des_cbc_encrypt ();
14962 return 0;
14964 _ACEOF
14965 if ac_fn_c_try_link "$LINENO"; then :
14966 ac_cv_lib_des_des_cbc_encrypt=yes
14967 else
14968 ac_cv_lib_des_des_cbc_encrypt=no
14970 rm -f core conftest.err conftest.$ac_objext \
14971 conftest$ac_exeext conftest.$ac_ext
14972 LIBS=$ac_check_lib_save_LIBS
14974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
14975 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
14976 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x""yes; then :
14977 have_des=yes
14978 else
14979 have_des=no
14982 if test $have_des = yes; then
14983 DESLIB=-ldes
14984 LIBS="$DESLIB $LIBS"
14986 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
14990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
14991 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
14992 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
14993 $as_echo_n "(cached) " >&6
14994 else
14995 ac_check_lib_save_LIBS=$LIBS
14996 LIBS="-lkrb4 $LIBS"
14997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14998 /* end confdefs.h. */
15000 /* Override any GCC internal prototype to avoid an error.
15001 Use char because int might match the return type of a GCC
15002 builtin and then its argument prototype would still apply. */
15003 #ifdef __cplusplus
15004 extern "C"
15005 #endif
15006 char krb_get_cred ();
15008 main ()
15010 return krb_get_cred ();
15012 return 0;
15014 _ACEOF
15015 if ac_fn_c_try_link "$LINENO"; then :
15016 ac_cv_lib_krb4_krb_get_cred=yes
15017 else
15018 ac_cv_lib_krb4_krb_get_cred=no
15020 rm -f core conftest.err conftest.$ac_objext \
15021 conftest$ac_exeext conftest.$ac_ext
15022 LIBS=$ac_check_lib_save_LIBS
15024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
15025 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
15026 if test "x$ac_cv_lib_krb4_krb_get_cred" = x""yes; then :
15027 have_krb4=yes
15028 else
15029 have_krb4=no
15032 if test $have_krb4 = yes; then
15033 KRB4LIB=-lkrb4
15034 LIBS="$KRB4LIB $LIBS"
15036 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
15038 else
15039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
15040 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
15041 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
15042 $as_echo_n "(cached) " >&6
15043 else
15044 ac_check_lib_save_LIBS=$LIBS
15045 LIBS="-lkrb $LIBS"
15046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15047 /* end confdefs.h. */
15049 /* Override any GCC internal prototype to avoid an error.
15050 Use char because int might match the return type of a GCC
15051 builtin and then its argument prototype would still apply. */
15052 #ifdef __cplusplus
15053 extern "C"
15054 #endif
15055 char krb_get_cred ();
15057 main ()
15059 return krb_get_cred ();
15061 return 0;
15063 _ACEOF
15064 if ac_fn_c_try_link "$LINENO"; then :
15065 ac_cv_lib_krb_krb_get_cred=yes
15066 else
15067 ac_cv_lib_krb_krb_get_cred=no
15069 rm -f core conftest.err conftest.$ac_objext \
15070 conftest$ac_exeext conftest.$ac_ext
15071 LIBS=$ac_check_lib_save_LIBS
15073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
15074 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
15075 if test "x$ac_cv_lib_krb_krb_get_cred" = x""yes; then :
15076 have_krb=yes
15077 else
15078 have_krb=no
15081 if test $have_krb = yes; then
15082 KRB4LIB=-lkrb
15083 LIBS="$KRB4LIB $LIBS"
15085 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
15091 if test "${with_kerberos5}" != no; then
15092 for ac_header in krb5.h
15093 do :
15094 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
15095 if test "x$ac_cv_header_krb5_h" = x""yes; then :
15096 cat >>confdefs.h <<_ACEOF
15097 #define HAVE_KRB5_H 1
15098 _ACEOF
15099 ac_fn_c_check_member "$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
15101 if test "x$ac_cv_member_krb5_error_text" = x""yes; then :
15103 cat >>confdefs.h <<_ACEOF
15104 #define HAVE_KRB5_ERROR_TEXT 1
15105 _ACEOF
15109 ac_fn_c_check_member "$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
15111 if test "x$ac_cv_member_krb5_error_e_text" = x""yes; then :
15113 cat >>confdefs.h <<_ACEOF
15114 #define HAVE_KRB5_ERROR_E_TEXT 1
15115 _ACEOF
15122 done
15124 else
15125 for ac_header in des.h
15126 do :
15127 ac_fn_c_check_header_mongrel "$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
15128 if test "x$ac_cv_header_des_h" = x""yes; then :
15129 cat >>confdefs.h <<_ACEOF
15130 #define HAVE_DES_H 1
15131 _ACEOF
15133 else
15134 for ac_header in kerberosIV/des.h
15135 do :
15136 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
15137 if test "x$ac_cv_header_kerberosIV_des_h" = x""yes; then :
15138 cat >>confdefs.h <<_ACEOF
15139 #define HAVE_KERBEROSIV_DES_H 1
15140 _ACEOF
15142 else
15143 for ac_header in kerberos/des.h
15144 do :
15145 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
15146 if test "x$ac_cv_header_kerberos_des_h" = x""yes; then :
15147 cat >>confdefs.h <<_ACEOF
15148 #define HAVE_KERBEROS_DES_H 1
15149 _ACEOF
15153 done
15157 done
15161 done
15163 for ac_header in krb.h
15164 do :
15165 ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
15166 if test "x$ac_cv_header_krb_h" = x""yes; then :
15167 cat >>confdefs.h <<_ACEOF
15168 #define HAVE_KRB_H 1
15169 _ACEOF
15171 else
15172 for ac_header in kerberosIV/krb.h
15173 do :
15174 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
15175 if test "x$ac_cv_header_kerberosIV_krb_h" = x""yes; then :
15176 cat >>confdefs.h <<_ACEOF
15177 #define HAVE_KERBEROSIV_KRB_H 1
15178 _ACEOF
15180 else
15181 for ac_header in kerberos/krb.h
15182 do :
15183 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
15184 if test "x$ac_cv_header_kerberos_krb_h" = x""yes; then :
15185 cat >>confdefs.h <<_ACEOF
15186 #define HAVE_KERBEROS_KRB_H 1
15187 _ACEOF
15191 done
15195 done
15199 done
15202 for ac_header in com_err.h
15203 do :
15204 ac_fn_c_check_header_mongrel "$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
15205 if test "x$ac_cv_header_com_err_h" = x""yes; then :
15206 cat >>confdefs.h <<_ACEOF
15207 #define HAVE_COM_ERR_H 1
15208 _ACEOF
15212 done
15222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
15223 $as_echo_n "checking whether localtime caches TZ... " >&6; }
15224 if test "${emacs_cv_localtime_cache+set}" = set; then :
15225 $as_echo_n "(cached) " >&6
15226 else
15227 if test x$ac_cv_func_tzset = xyes; then
15228 if test "$cross_compiling" = yes; then :
15229 # If we have tzset, assume the worst when cross-compiling.
15230 emacs_cv_localtime_cache=yes
15231 else
15232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15233 /* end confdefs.h. */
15234 #include <time.h>
15235 char TZ_GMT0[] = "TZ=GMT0";
15236 char TZ_PST8[] = "TZ=PST8";
15237 main()
15239 time_t now = time ((time_t *) 0);
15240 int hour_GMT0, hour_unset;
15241 if (putenv (TZ_GMT0) != 0)
15242 exit (1);
15243 hour_GMT0 = localtime (&now)->tm_hour;
15244 unsetenv("TZ");
15245 hour_unset = localtime (&now)->tm_hour;
15246 if (putenv (TZ_PST8) != 0)
15247 exit (1);
15248 if (localtime (&now)->tm_hour == hour_GMT0)
15249 exit (1);
15250 unsetenv("TZ");
15251 if (localtime (&now)->tm_hour != hour_unset)
15252 exit (1);
15253 exit (0);
15255 _ACEOF
15256 if ac_fn_c_try_run "$LINENO"; then :
15257 emacs_cv_localtime_cache=no
15258 else
15259 emacs_cv_localtime_cache=yes
15261 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15262 conftest.$ac_objext conftest.beam conftest.$ac_ext
15265 else
15266 # If we lack tzset, report that localtime does not cache TZ,
15267 # since we can't invalidate the cache if we don't have tzset.
15268 emacs_cv_localtime_cache=no
15271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
15272 $as_echo "$emacs_cv_localtime_cache" >&6; }
15273 if test $emacs_cv_localtime_cache = yes; then
15275 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
15279 if test "x$HAVE_TIMEVAL" = xyes; then
15280 for ac_func in gettimeofday
15281 do :
15282 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
15283 if test "x$ac_cv_func_gettimeofday" = x""yes; then :
15284 cat >>confdefs.h <<_ACEOF
15285 #define HAVE_GETTIMEOFDAY 1
15286 _ACEOF
15289 done
15291 if test $ac_cv_func_gettimeofday = yes; then
15292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday can accept two arguments" >&5
15293 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
15294 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then :
15295 $as_echo_n "(cached) " >&6
15296 else
15297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15298 /* end confdefs.h. */
15300 #ifdef TIME_WITH_SYS_TIME
15301 #include <sys/time.h>
15302 #include <time.h>
15303 #else
15304 #ifdef HAVE_SYS_TIME_H
15305 #include <sys/time.h>
15306 #else
15307 #include <time.h>
15308 #endif
15309 #endif
15311 main ()
15313 struct timeval time;
15314 gettimeofday (&time, 0);
15316 return 0;
15318 _ACEOF
15319 if ac_fn_c_try_compile "$LINENO"; then :
15320 emacs_cv_gettimeofday_two_arguments=yes
15321 else
15322 emacs_cv_gettimeofday_two_arguments=no
15324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_gettimeofday_two_arguments" >&5
15327 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
15328 if test $emacs_cv_gettimeofday_two_arguments = no; then
15330 $as_echo "#define GETTIMEOFDAY_ONE_ARGUMENT 1" >>confdefs.h
15336 ok_so_far=yes
15337 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
15338 if test "x$ac_cv_func_socket" = x""yes; then :
15340 else
15341 ok_so_far=no
15344 if test $ok_so_far = yes; then
15345 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
15346 if test "x$ac_cv_header_netinet_in_h" = x""yes; then :
15348 else
15349 ok_so_far=no
15354 if test $ok_so_far = yes; then
15355 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
15356 if test "x$ac_cv_header_arpa_inet_h" = x""yes; then :
15358 else
15359 ok_so_far=no
15364 if test $ok_so_far = yes; then
15366 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
15370 if test -f /usr/lpp/X11/bin/smt.exp; then
15372 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
15376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
15377 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
15378 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
15379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15380 $as_echo "yes" >&6; }
15382 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
15384 else
15385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15386 $as_echo "no" >&6; }
15389 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
15390 if test "x$ac_cv_type_pid_t" = x""yes; then :
15392 else
15394 cat >>confdefs.h <<_ACEOF
15395 #define pid_t int
15396 _ACEOF
15400 for ac_header in vfork.h
15401 do :
15402 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
15403 if test "x$ac_cv_header_vfork_h" = x""yes; then :
15404 cat >>confdefs.h <<_ACEOF
15405 #define HAVE_VFORK_H 1
15406 _ACEOF
15410 done
15412 for ac_func in fork vfork
15413 do :
15414 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15415 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15416 eval as_val=\$$as_ac_var
15417 if test "x$as_val" = x""yes; then :
15418 cat >>confdefs.h <<_ACEOF
15419 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15420 _ACEOF
15423 done
15425 if test "x$ac_cv_func_fork" = xyes; then
15426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
15427 $as_echo_n "checking for working fork... " >&6; }
15428 if test "${ac_cv_func_fork_works+set}" = set; then :
15429 $as_echo_n "(cached) " >&6
15430 else
15431 if test "$cross_compiling" = yes; then :
15432 ac_cv_func_fork_works=cross
15433 else
15434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15435 /* end confdefs.h. */
15436 $ac_includes_default
15438 main ()
15441 /* By Ruediger Kuhlmann. */
15442 return fork () < 0;
15445 return 0;
15447 _ACEOF
15448 if ac_fn_c_try_run "$LINENO"; then :
15449 ac_cv_func_fork_works=yes
15450 else
15451 ac_cv_func_fork_works=no
15453 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15454 conftest.$ac_objext conftest.beam conftest.$ac_ext
15458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
15459 $as_echo "$ac_cv_func_fork_works" >&6; }
15461 else
15462 ac_cv_func_fork_works=$ac_cv_func_fork
15464 if test "x$ac_cv_func_fork_works" = xcross; then
15465 case $host in
15466 *-*-amigaos* | *-*-msdosdjgpp*)
15467 # Override, as these systems have only a dummy fork() stub
15468 ac_cv_func_fork_works=no
15471 ac_cv_func_fork_works=yes
15473 esac
15474 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
15475 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
15477 ac_cv_func_vfork_works=$ac_cv_func_vfork
15478 if test "x$ac_cv_func_vfork" = xyes; then
15479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
15480 $as_echo_n "checking for working vfork... " >&6; }
15481 if test "${ac_cv_func_vfork_works+set}" = set; then :
15482 $as_echo_n "(cached) " >&6
15483 else
15484 if test "$cross_compiling" = yes; then :
15485 ac_cv_func_vfork_works=cross
15486 else
15487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15488 /* end confdefs.h. */
15489 /* Thanks to Paul Eggert for this test. */
15490 $ac_includes_default
15491 #include <sys/wait.h>
15492 #ifdef HAVE_VFORK_H
15493 # include <vfork.h>
15494 #endif
15495 /* On some sparc systems, changes by the child to local and incoming
15496 argument registers are propagated back to the parent. The compiler
15497 is told about this with #include <vfork.h>, but some compilers
15498 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
15499 static variable whose address is put into a register that is
15500 clobbered by the vfork. */
15501 static void
15502 #ifdef __cplusplus
15503 sparc_address_test (int arg)
15504 # else
15505 sparc_address_test (arg) int arg;
15506 #endif
15508 static pid_t child;
15509 if (!child) {
15510 child = vfork ();
15511 if (child < 0) {
15512 perror ("vfork");
15513 _exit(2);
15515 if (!child) {
15516 arg = getpid();
15517 write(-1, "", 0);
15518 _exit (arg);
15524 main ()
15526 pid_t parent = getpid ();
15527 pid_t child;
15529 sparc_address_test (0);
15531 child = vfork ();
15533 if (child == 0) {
15534 /* Here is another test for sparc vfork register problems. This
15535 test uses lots of local variables, at least as many local
15536 variables as main has allocated so far including compiler
15537 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
15538 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
15539 reuse the register of parent for one of the local variables,
15540 since it will think that parent can't possibly be used any more
15541 in this routine. Assigning to the local variable will thus
15542 munge parent in the parent process. */
15543 pid_t
15544 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
15545 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
15546 /* Convince the compiler that p..p7 are live; otherwise, it might
15547 use the same hardware register for all 8 local variables. */
15548 if (p != p1 || p != p2 || p != p3 || p != p4
15549 || p != p5 || p != p6 || p != p7)
15550 _exit(1);
15552 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
15553 from child file descriptors. If the child closes a descriptor
15554 before it execs or exits, this munges the parent's descriptor
15555 as well. Test for this by closing stdout in the child. */
15556 _exit(close(fileno(stdout)) != 0);
15557 } else {
15558 int status;
15559 struct stat st;
15561 while (wait(&status) != child)
15563 return (
15564 /* Was there some problem with vforking? */
15565 child < 0
15567 /* Did the child fail? (This shouldn't happen.) */
15568 || status
15570 /* Did the vfork/compiler bug occur? */
15571 || parent != getpid()
15573 /* Did the file descriptor bug occur? */
15574 || fstat(fileno(stdout), &st) != 0
15578 _ACEOF
15579 if ac_fn_c_try_run "$LINENO"; then :
15580 ac_cv_func_vfork_works=yes
15581 else
15582 ac_cv_func_vfork_works=no
15584 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15585 conftest.$ac_objext conftest.beam conftest.$ac_ext
15589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
15590 $as_echo "$ac_cv_func_vfork_works" >&6; }
15593 if test "x$ac_cv_func_fork_works" = xcross; then
15594 ac_cv_func_vfork_works=$ac_cv_func_vfork
15595 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
15596 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
15599 if test "x$ac_cv_func_vfork_works" = xyes; then
15601 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
15603 else
15605 $as_echo "#define vfork fork" >>confdefs.h
15608 if test "x$ac_cv_func_fork_works" = xyes; then
15610 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
15615 for ac_func in snprintf
15616 do :
15617 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
15618 if test "x$ac_cv_func_snprintf" = x""yes; then :
15619 cat >>confdefs.h <<_ACEOF
15620 #define HAVE_SNPRINTF 1
15621 _ACEOF
15624 done
15627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
15628 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
15629 if test "${emacs_cv_langinfo_codeset+set}" = set; then :
15630 $as_echo_n "(cached) " >&6
15631 else
15632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15633 /* end confdefs.h. */
15634 #include <langinfo.h>
15636 main ()
15638 char* cs = nl_langinfo(CODESET);
15640 return 0;
15642 _ACEOF
15643 if ac_fn_c_try_link "$LINENO"; then :
15644 emacs_cv_langinfo_codeset=yes
15645 else
15646 emacs_cv_langinfo_codeset=no
15648 rm -f core conftest.err conftest.$ac_objext \
15649 conftest$ac_exeext conftest.$ac_ext
15652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
15653 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
15654 if test $emacs_cv_langinfo_codeset = yes; then
15656 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
15660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
15661 $as_echo_n "checking for mbstate_t... " >&6; }
15662 if test "${ac_cv_type_mbstate_t+set}" = set; then :
15663 $as_echo_n "(cached) " >&6
15664 else
15665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15666 /* end confdefs.h. */
15667 $ac_includes_default
15668 # include <wchar.h>
15670 main ()
15672 mbstate_t x; return sizeof x;
15674 return 0;
15676 _ACEOF
15677 if ac_fn_c_try_compile "$LINENO"; then :
15678 ac_cv_type_mbstate_t=yes
15679 else
15680 ac_cv_type_mbstate_t=no
15682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
15685 $as_echo "$ac_cv_type_mbstate_t" >&6; }
15686 if test $ac_cv_type_mbstate_t = yes; then
15688 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
15690 else
15692 $as_echo "#define mbstate_t int" >>confdefs.h
15696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
15697 $as_echo_n "checking for C restricted array declarations... " >&6; }
15698 if test "${emacs_cv_c_restrict_arr+set}" = set; then :
15699 $as_echo_n "(cached) " >&6
15700 else
15701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15702 /* end confdefs.h. */
15703 void fred (int x[__restrict]);
15705 main ()
15709 return 0;
15711 _ACEOF
15712 if ac_fn_c_try_compile "$LINENO"; then :
15713 emacs_cv_c_restrict_arr=yes
15714 else
15715 emacs_cv_c_restrict_arr=no
15717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
15720 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
15721 if test "$emacs_cv_c_restrict_arr" = yes; then
15723 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
15728 # Set up the CFLAGS for real compilation, so we can substitute it.
15729 CFLAGS="$REAL_CFLAGS"
15730 CPPFLAGS="$REAL_CPPFLAGS"
15732 ## Hack to detect a buggy GCC version.
15733 if test "x$GCC" = xyes \
15734 && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
15735 && test x"`echo $CFLAGS | grep '\-O[23]'`" != x \
15736 && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then
15737 as_fn_error "GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
15740 version=$PACKAGE_VERSION
15742 ### Specify what sort of things we'll be editing into Makefile and config.h.
15743 ### Use configuration here uncanonicalized to avoid exceeding size limits.
15746 ## Unused?
15767 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
15768 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
15769 ## end of LIBX_BASE, but nothing ever set it.
15774 ## Used in lwlib/Makefile.in.
15776 if test -n "${machfile}"; then
15777 M_FILE="\$(srcdir)/${machfile}"
15778 else
15779 M_FILE=
15781 S_FILE="\$(srcdir)/${opsysfile}"
15792 cat >>confdefs.h <<_ACEOF
15793 #define EMACS_CONFIGURATION "${canonical}"
15794 _ACEOF
15797 cat >>confdefs.h <<_ACEOF
15798 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
15799 _ACEOF
15801 if test -n "$machfile"; then
15803 cat >>confdefs.h <<_ACEOF
15804 #define config_machfile "${machfile}"
15805 _ACEOF
15809 cat >>confdefs.h <<_ACEOF
15810 #define config_opsysfile "${opsysfile}"
15811 _ACEOF
15814 XMENU_OBJ=
15815 XOBJ=
15816 FONT_OBJ=
15817 if test "${HAVE_X_WINDOWS}" = "yes" ; then
15819 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
15821 XMENU_OBJ=xmenu.o
15822 XOBJ="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
15823 FONT_OBJ=xfont.o
15824 if test "$HAVE_XFT" = "yes"; then
15825 FONT_OBJ="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
15826 elif test "$HAVE_FREETYPE" = "yes"; then
15827 FONT_OBJ="$FONT_OBJ ftfont.o ftxfont.o"
15835 WIDGET_OBJ=
15836 MOTIF_LIBW=
15837 if test "${USE_X_TOOLKIT}" != "none" ; then
15838 WIDGET_OBJ=widget.o
15840 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
15842 if test "${USE_X_TOOLKIT}" = "LUCID"; then
15844 $as_echo "#define USE_LUCID 1" >>confdefs.h
15846 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
15848 $as_echo "#define USE_MOTIF 1" >>confdefs.h
15850 MOTIF_LIBW=-lXm
15851 case "$opsys" in
15852 gnu-linux)
15853 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
15854 MOTIF_LIBW="$MOTIF_LIBW -lXpm"
15857 unixware)
15858 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
15859 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
15860 MOTIF_LIBW="MOTIF_LIBW -lXimp"
15863 aix4-2)
15864 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
15865 MOTIF_LIBW="$MOTIF_LIBW -li18n"
15867 esac
15868 MOTIF_LIBW="$MOTIF_LIBW $LIBXP"
15873 TOOLKIT_LIBW=
15874 case "$USE_X_TOOLKIT" in
15875 MOTIF) TOOLKIT_LIBW="$MOTIF_LIBW" ;;
15876 LUCID) TOOLKIT_LIBW="$LUCID_LIBW" ;;
15877 none) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW="$GTK_LIBS" ;;
15878 esac
15881 if test "$USE_X_TOOLKIT" = "none"; then
15882 LIBXT_OTHER="\$(LIBXSM)"
15883 OLDXMENU_TARGET="really-oldXMenu"
15884 else
15885 LIBXT_OTHER="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
15886 OLDXMENU_TARGET="really-lwlib"
15890 ## The X Menu stuff is present in the X10 distribution, but missing
15891 ## from X11. If we have X10, just use the installed library;
15892 ## otherwise, use our own copy.
15893 if test "${HAVE_X11}" = "yes" ; then
15895 $as_echo "#define HAVE_X11 1" >>confdefs.h
15898 if test "$USE_X_TOOLKIT" = "none"; then
15899 OLDXMENU="\${oldXMenudir}/libXMenu11.a"
15900 else
15901 OLDXMENU="\${lwlibdir}/liblw.a"
15903 LIBXMENU="\$(OLDXMENU)"
15904 LIBX_OTHER="\$(LIBXT) \$(LIBX_EXTRA)"
15905 OLDXMENU_DEPS="\${OLDXMENU} ../src/\${OLDXMENU}"
15906 else
15907 ## For a syntactically valid Makefile; not actually used for anything.
15908 ## See comments in src/Makefile.in.
15909 OLDXMENU=nothing
15910 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
15911 if test "${HAVE_X_WINDOWS}" = "yes"; then
15912 LIBXMENU="-lXMenu"
15913 else
15914 LIBXMENU=
15916 LIBX_OTHER=
15917 OLDXMENU_DEPS=
15920 if test "$HAVE_GTK" = "yes" || test "$HAVE_MENUS" != "yes"; then
15921 OLDXMENU_TARGET=
15922 OLDXMENU=nothing
15923 LIBXMENU=
15924 OLDXMENU_DEPS=
15933 if test "${HAVE_MENUS}" = "yes" ; then
15935 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
15939 if test "${GNU_MALLOC}" = "yes" ; then
15941 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
15945 RALLOC_OBJ=
15946 if test "${REL_ALLOC}" = "yes" ; then
15948 $as_echo "#define REL_ALLOC 1" >>confdefs.h
15951 test "$system_malloc" != "yes" && RALLOC_OBJ=ralloc.o
15955 if test "$opsys" = "cygwin"; then
15956 CYGWIN_OBJ="sheap.o"
15957 ## Cygwin differs because of its unexec().
15958 PRE_ALLOC_OBJ=
15959 POST_ALLOC_OBJ=lastfile.o
15960 else
15961 CYGWIN_OBJ=
15962 PRE_ALLOC_OBJ=lastfile.o
15963 POST_ALLOC_OBJ=
15969 # Configure gnulib here, now that we know LIBS.
15981 LIBC_FATAL_STDERR_=1
15982 export LIBC_FATAL_STDERR_
15984 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15985 # for constant arguments. Useless!
15986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
15987 $as_echo_n "checking for working alloca.h... " >&6; }
15988 if test "${ac_cv_working_alloca_h+set}" = set; then :
15989 $as_echo_n "(cached) " >&6
15990 else
15991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15992 /* end confdefs.h. */
15993 #include <alloca.h>
15995 main ()
15997 char *p = (char *) alloca (2 * sizeof (int));
15998 if (p) return 0;
16000 return 0;
16002 _ACEOF
16003 if ac_fn_c_try_link "$LINENO"; then :
16004 ac_cv_working_alloca_h=yes
16005 else
16006 ac_cv_working_alloca_h=no
16008 rm -f core conftest.err conftest.$ac_objext \
16009 conftest$ac_exeext conftest.$ac_ext
16011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
16012 $as_echo "$ac_cv_working_alloca_h" >&6; }
16013 if test $ac_cv_working_alloca_h = yes; then
16015 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
16019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
16020 $as_echo_n "checking for alloca... " >&6; }
16021 if test "${ac_cv_func_alloca_works+set}" = set; then :
16022 $as_echo_n "(cached) " >&6
16023 else
16024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16025 /* end confdefs.h. */
16026 #ifdef __GNUC__
16027 # define alloca __builtin_alloca
16028 #else
16029 # ifdef _MSC_VER
16030 # include <malloc.h>
16031 # define alloca _alloca
16032 # else
16033 # ifdef HAVE_ALLOCA_H
16034 # include <alloca.h>
16035 # else
16036 # ifdef _AIX
16037 #pragma alloca
16038 # else
16039 # ifndef alloca /* predefined by HP cc +Olibcalls */
16040 char *alloca ();
16041 # endif
16042 # endif
16043 # endif
16044 # endif
16045 #endif
16048 main ()
16050 char *p = (char *) alloca (1);
16051 if (p) return 0;
16053 return 0;
16055 _ACEOF
16056 if ac_fn_c_try_link "$LINENO"; then :
16057 ac_cv_func_alloca_works=yes
16058 else
16059 ac_cv_func_alloca_works=no
16061 rm -f core conftest.err conftest.$ac_objext \
16062 conftest$ac_exeext conftest.$ac_ext
16064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
16065 $as_echo "$ac_cv_func_alloca_works" >&6; }
16067 if test $ac_cv_func_alloca_works = yes; then
16069 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
16071 else
16072 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16073 # that cause trouble. Some versions do not even contain alloca or
16074 # contain a buggy version. If you still want to use their alloca,
16075 # use ar to extract alloca.o from them instead of compiling alloca.c.
16081 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
16083 $as_echo "#define C_ALLOCA 1" >>confdefs.h
16086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
16087 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
16088 if test "${ac_cv_os_cray+set}" = set; then :
16089 $as_echo_n "(cached) " >&6
16090 else
16091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16092 /* end confdefs.h. */
16093 #if defined CRAY && ! defined CRAY2
16094 webecray
16095 #else
16096 wenotbecray
16097 #endif
16099 _ACEOF
16100 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16101 $EGREP "webecray" >/dev/null 2>&1; then :
16102 ac_cv_os_cray=yes
16103 else
16104 ac_cv_os_cray=no
16106 rm -f conftest*
16109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
16110 $as_echo "$ac_cv_os_cray" >&6; }
16111 if test $ac_cv_os_cray = yes; then
16112 for ac_func in _getb67 GETB67 getb67; do
16113 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16114 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16115 eval as_val=\$$as_ac_var
16116 if test "x$as_val" = x""yes; then :
16118 cat >>confdefs.h <<_ACEOF
16119 #define CRAY_STACKSEG_END $ac_func
16120 _ACEOF
16122 break
16125 done
16128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
16129 $as_echo_n "checking stack direction for C alloca... " >&6; }
16130 if test "${ac_cv_c_stack_direction+set}" = set; then :
16131 $as_echo_n "(cached) " >&6
16132 else
16133 if test "$cross_compiling" = yes; then :
16134 ac_cv_c_stack_direction=0
16135 else
16136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16137 /* end confdefs.h. */
16138 $ac_includes_default
16140 find_stack_direction (int *addr, int depth)
16142 int dir, dummy = 0;
16143 if (! addr)
16144 addr = &dummy;
16145 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
16146 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
16147 return dir + dummy;
16151 main (int argc, char **argv)
16153 return find_stack_direction (0, argc + !argv + 20) < 0;
16155 _ACEOF
16156 if ac_fn_c_try_run "$LINENO"; then :
16157 ac_cv_c_stack_direction=1
16158 else
16159 ac_cv_c_stack_direction=-1
16161 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16162 conftest.$ac_objext conftest.beam conftest.$ac_ext
16166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
16167 $as_echo "$ac_cv_c_stack_direction" >&6; }
16168 cat >>confdefs.h <<_ACEOF
16169 #define STACK_DIRECTION $ac_cv_c_stack_direction
16170 _ACEOF
16178 for ac_func in $ac_func_list
16179 do :
16180 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16181 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16182 eval as_val=\$$as_ac_var
16183 if test "x$as_val" = x""yes; then :
16184 cat >>confdefs.h <<_ACEOF
16185 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16186 _ACEOF
16189 done
16194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
16195 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
16196 if test "${ac_cv_c_bigendian+set}" = set; then :
16197 $as_echo_n "(cached) " >&6
16198 else
16199 ac_cv_c_bigendian=unknown
16200 # See if we're dealing with a universal compiler.
16201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16202 /* end confdefs.h. */
16203 #ifndef __APPLE_CC__
16204 not a universal capable compiler
16205 #endif
16206 typedef int dummy;
16208 _ACEOF
16209 if ac_fn_c_try_compile "$LINENO"; then :
16211 # Check for potential -arch flags. It is not universal unless
16212 # there are at least two -arch flags with different values.
16213 ac_arch=
16214 ac_prev=
16215 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
16216 if test -n "$ac_prev"; then
16217 case $ac_word in
16218 i?86 | x86_64 | ppc | ppc64)
16219 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
16220 ac_arch=$ac_word
16221 else
16222 ac_cv_c_bigendian=universal
16223 break
16226 esac
16227 ac_prev=
16228 elif test "x$ac_word" = "x-arch"; then
16229 ac_prev=arch
16231 done
16233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16234 if test $ac_cv_c_bigendian = unknown; then
16235 # See if sys/param.h defines the BYTE_ORDER macro.
16236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16237 /* end confdefs.h. */
16238 #include <sys/types.h>
16239 #include <sys/param.h>
16242 main ()
16244 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
16245 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
16246 && LITTLE_ENDIAN)
16247 bogus endian macros
16248 #endif
16251 return 0;
16253 _ACEOF
16254 if ac_fn_c_try_compile "$LINENO"; then :
16255 # It does; now see whether it defined to BIG_ENDIAN or not.
16256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16257 /* end confdefs.h. */
16258 #include <sys/types.h>
16259 #include <sys/param.h>
16262 main ()
16264 #if BYTE_ORDER != BIG_ENDIAN
16265 not big endian
16266 #endif
16269 return 0;
16271 _ACEOF
16272 if ac_fn_c_try_compile "$LINENO"; then :
16273 ac_cv_c_bigendian=yes
16274 else
16275 ac_cv_c_bigendian=no
16277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16281 if test $ac_cv_c_bigendian = unknown; then
16282 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
16283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16284 /* end confdefs.h. */
16285 #include <limits.h>
16288 main ()
16290 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
16291 bogus endian macros
16292 #endif
16295 return 0;
16297 _ACEOF
16298 if ac_fn_c_try_compile "$LINENO"; then :
16299 # It does; now see whether it defined to _BIG_ENDIAN or not.
16300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16301 /* end confdefs.h. */
16302 #include <limits.h>
16305 main ()
16307 #ifndef _BIG_ENDIAN
16308 not big endian
16309 #endif
16312 return 0;
16314 _ACEOF
16315 if ac_fn_c_try_compile "$LINENO"; then :
16316 ac_cv_c_bigendian=yes
16317 else
16318 ac_cv_c_bigendian=no
16320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16324 if test $ac_cv_c_bigendian = unknown; then
16325 # Compile a test program.
16326 if test "$cross_compiling" = yes; then :
16327 # Try to guess by grepping values from an object file.
16328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16329 /* end confdefs.h. */
16330 short int ascii_mm[] =
16331 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
16332 short int ascii_ii[] =
16333 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
16334 int use_ascii (int i) {
16335 return ascii_mm[i] + ascii_ii[i];
16337 short int ebcdic_ii[] =
16338 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
16339 short int ebcdic_mm[] =
16340 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
16341 int use_ebcdic (int i) {
16342 return ebcdic_mm[i] + ebcdic_ii[i];
16344 extern int foo;
16347 main ()
16349 return use_ascii (foo) == use_ebcdic (foo);
16351 return 0;
16353 _ACEOF
16354 if ac_fn_c_try_compile "$LINENO"; then :
16355 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
16356 ac_cv_c_bigendian=yes
16358 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
16359 if test "$ac_cv_c_bigendian" = unknown; then
16360 ac_cv_c_bigendian=no
16361 else
16362 # finding both strings is unlikely to happen, but who knows?
16363 ac_cv_c_bigendian=unknown
16367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16368 else
16369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16370 /* end confdefs.h. */
16371 $ac_includes_default
16373 main ()
16376 /* Are we little or big endian? From Harbison&Steele. */
16377 union
16379 long int l;
16380 char c[sizeof (long int)];
16381 } u;
16382 u.l = 1;
16383 return u.c[sizeof (long int) - 1] == 1;
16386 return 0;
16388 _ACEOF
16389 if ac_fn_c_try_run "$LINENO"; then :
16390 ac_cv_c_bigendian=no
16391 else
16392 ac_cv_c_bigendian=yes
16394 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16395 conftest.$ac_objext conftest.beam conftest.$ac_ext
16400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
16401 $as_echo "$ac_cv_c_bigendian" >&6; }
16402 case $ac_cv_c_bigendian in #(
16403 yes)
16404 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
16405 ;; #(
16407 ;; #(
16408 universal)
16410 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
16412 ;; #(
16414 as_fn_error "unknown endianness
16415 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
16416 esac
16419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
16420 $as_echo_n "checking for inline... " >&6; }
16421 if test "${ac_cv_c_inline+set}" = set; then :
16422 $as_echo_n "(cached) " >&6
16423 else
16424 ac_cv_c_inline=no
16425 for ac_kw in inline __inline__ __inline; do
16426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16427 /* end confdefs.h. */
16428 #ifndef __cplusplus
16429 typedef int foo_t;
16430 static $ac_kw foo_t static_foo () {return 0; }
16431 $ac_kw foo_t foo () {return 0; }
16432 #endif
16434 _ACEOF
16435 if ac_fn_c_try_compile "$LINENO"; then :
16436 ac_cv_c_inline=$ac_kw
16438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16439 test "$ac_cv_c_inline" != no && break
16440 done
16443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
16444 $as_echo "$ac_cv_c_inline" >&6; }
16446 case $ac_cv_c_inline in
16447 inline | yes) ;;
16449 case $ac_cv_c_inline in
16450 no) ac_val=;;
16451 *) ac_val=$ac_cv_c_inline;;
16452 esac
16453 cat >>confdefs.h <<_ACEOF
16454 #ifndef __cplusplus
16455 #define inline $ac_val
16456 #endif
16457 _ACEOF
16459 esac
16462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtold conforms to C99" >&5
16463 $as_echo_n "checking whether strtold conforms to C99... " >&6; }
16464 if test "${gl_cv_func_c99_strtold+set}" = set; then :
16465 $as_echo_n "(cached) " >&6
16466 else
16467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16468 /* end confdefs.h. */
16469 /* On HP-UX before 11.23, strtold returns a struct instead of
16470 long double. Reject implementations like that, by requiring
16471 compatibility with the C99 prototype. */
16472 #include <stdlib.h>
16473 static long double (*p) (char const *, char **) = strtold;
16474 static long double
16475 test (char const *nptr, char **endptr)
16477 long double r;
16478 r = strtold (nptr, endptr);
16479 return r;
16482 main ()
16484 return test ("1.0", NULL) != 1 || p ("1.0", NULL) != 1;
16486 return 0;
16488 _ACEOF
16489 if ac_fn_c_try_link "$LINENO"; then :
16490 gl_cv_func_c99_strtold=yes
16491 else
16492 gl_cv_func_c99_strtold=no
16494 rm -f core conftest.err conftest.$ac_objext \
16495 conftest$ac_exeext conftest.$ac_ext
16497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_c99_strtold" >&5
16498 $as_echo "$gl_cv_func_c99_strtold" >&6; }
16499 if test $gl_cv_func_c99_strtold = yes; then
16501 $as_echo "#define HAVE_C99_STRTOLD 1" >>confdefs.h
16506 GNULIB_CHDIR=0;
16507 GNULIB_CHOWN=0;
16508 GNULIB_CLOSE=0;
16509 GNULIB_DUP=0;
16510 GNULIB_DUP2=0;
16511 GNULIB_DUP3=0;
16512 GNULIB_ENVIRON=0;
16513 GNULIB_EUIDACCESS=0;
16514 GNULIB_FACCESSAT=0;
16515 GNULIB_FCHDIR=0;
16516 GNULIB_FCHOWNAT=0;
16517 GNULIB_FDATASYNC=0;
16518 GNULIB_FSYNC=0;
16519 GNULIB_FTRUNCATE=0;
16520 GNULIB_GETCWD=0;
16521 GNULIB_GETDOMAINNAME=0;
16522 GNULIB_GETDTABLESIZE=0;
16523 GNULIB_GETGROUPS=0;
16524 GNULIB_GETHOSTNAME=0;
16525 GNULIB_GETLOGIN=0;
16526 GNULIB_GETLOGIN_R=0;
16527 GNULIB_GETPAGESIZE=0;
16528 GNULIB_GETUSERSHELL=0;
16529 GNULIB_GROUP_MEMBER=0;
16530 GNULIB_LCHOWN=0;
16531 GNULIB_LINK=0;
16532 GNULIB_LINKAT=0;
16533 GNULIB_LSEEK=0;
16534 GNULIB_PIPE=0;
16535 GNULIB_PIPE2=0;
16536 GNULIB_PREAD=0;
16537 GNULIB_PWRITE=0;
16538 GNULIB_READ=0;
16539 GNULIB_READLINK=0;
16540 GNULIB_READLINKAT=0;
16541 GNULIB_RMDIR=0;
16542 GNULIB_SLEEP=0;
16543 GNULIB_SYMLINK=0;
16544 GNULIB_SYMLINKAT=0;
16545 GNULIB_TTYNAME_R=0;
16546 GNULIB_UNISTD_H_GETOPT=0;
16547 GNULIB_UNISTD_H_NONBLOCKING=0;
16548 GNULIB_UNISTD_H_SIGPIPE=0;
16549 GNULIB_UNLINK=0;
16550 GNULIB_UNLINKAT=0;
16551 GNULIB_USLEEP=0;
16552 GNULIB_WRITE=0;
16553 HAVE_CHOWN=1;
16554 HAVE_DUP2=1;
16555 HAVE_DUP3=1;
16556 HAVE_EUIDACCESS=1;
16557 HAVE_FACCESSAT=1;
16558 HAVE_FCHDIR=1;
16559 HAVE_FCHOWNAT=1;
16560 HAVE_FDATASYNC=1;
16561 HAVE_FSYNC=1;
16562 HAVE_FTRUNCATE=1;
16563 HAVE_GETDTABLESIZE=1;
16564 HAVE_GETGROUPS=1;
16565 HAVE_GETHOSTNAME=1;
16566 HAVE_GETLOGIN=1;
16567 HAVE_GETPAGESIZE=1;
16568 HAVE_GROUP_MEMBER=1;
16569 HAVE_LCHOWN=1;
16570 HAVE_LINK=1;
16571 HAVE_LINKAT=1;
16572 HAVE_PIPE=1;
16573 HAVE_PIPE2=1;
16574 HAVE_PREAD=1;
16575 HAVE_PWRITE=1;
16576 HAVE_READLINK=1;
16577 HAVE_READLINKAT=1;
16578 HAVE_SLEEP=1;
16579 HAVE_SYMLINK=1;
16580 HAVE_SYMLINKAT=1;
16581 HAVE_UNLINKAT=1;
16582 HAVE_USLEEP=1;
16583 HAVE_DECL_ENVIRON=1;
16584 HAVE_DECL_FCHDIR=1;
16585 HAVE_DECL_FDATASYNC=1;
16586 HAVE_DECL_GETDOMAINNAME=1;
16587 HAVE_DECL_GETLOGIN_R=1;
16588 HAVE_DECL_GETPAGESIZE=1;
16589 HAVE_DECL_GETUSERSHELL=1;
16590 HAVE_DECL_TTYNAME_R=1;
16591 HAVE_OS_H=0;
16592 HAVE_SYS_PARAM_H=0;
16593 REPLACE_CHOWN=0;
16594 REPLACE_CLOSE=0;
16595 REPLACE_DUP=0;
16596 REPLACE_DUP2=0;
16597 REPLACE_FCHOWNAT=0;
16598 REPLACE_GETCWD=0;
16599 REPLACE_GETDOMAINNAME=0;
16600 REPLACE_GETLOGIN_R=0;
16601 REPLACE_GETGROUPS=0;
16602 REPLACE_GETPAGESIZE=0;
16603 REPLACE_LCHOWN=0;
16604 REPLACE_LINK=0;
16605 REPLACE_LINKAT=0;
16606 REPLACE_LSEEK=0;
16607 REPLACE_PREAD=0;
16608 REPLACE_PWRITE=0;
16609 REPLACE_READ=0;
16610 REPLACE_READLINK=0;
16611 REPLACE_RMDIR=0;
16612 REPLACE_SLEEP=0;
16613 REPLACE_SYMLINK=0;
16614 REPLACE_TTYNAME_R=0;
16615 REPLACE_UNLINK=0;
16616 REPLACE_UNLINKAT=0;
16617 REPLACE_USLEEP=0;
16618 REPLACE_WRITE=0;
16619 UNISTD_H_HAVE_WINSOCK2_H=0;
16620 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
16623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_dm_mode in struct stat" >&5
16624 $as_echo_n "checking for st_dm_mode in struct stat... " >&6; }
16625 if test "${ac_cv_struct_st_dm_mode+set}" = set; then :
16626 $as_echo_n "(cached) " >&6
16627 else
16628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16629 /* end confdefs.h. */
16631 #include <sys/types.h>
16632 #include <sys/stat.h>
16634 main ()
16636 struct stat s; s.st_dm_mode;
16638 return 0;
16640 _ACEOF
16641 if ac_fn_c_try_compile "$LINENO"; then :
16642 ac_cv_struct_st_dm_mode=yes
16643 else
16644 ac_cv_struct_st_dm_mode=no
16646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_st_dm_mode" >&5
16649 $as_echo "$ac_cv_struct_st_dm_mode" >&6; }
16651 if test $ac_cv_struct_st_dm_mode = yes; then
16653 $as_echo "#define HAVE_ST_DM_MODE 1" >>confdefs.h
16658 ac_fn_c_check_decl "$LINENO" "strmode" "ac_cv_have_decl_strmode" "$ac_includes_default"
16659 if test "x$ac_cv_have_decl_strmode" = x""yes; then :
16660 ac_have_decl=1
16661 else
16662 ac_have_decl=0
16665 cat >>confdefs.h <<_ACEOF
16666 #define HAVE_DECL_STRMODE $ac_have_decl
16667 _ACEOF
16670 GNULIB__EXIT=0;
16671 GNULIB_ATOLL=0;
16672 GNULIB_CALLOC_POSIX=0;
16673 GNULIB_CANONICALIZE_FILE_NAME=0;
16674 GNULIB_GETLOADAVG=0;
16675 GNULIB_GETSUBOPT=0;
16676 GNULIB_GRANTPT=0;
16677 GNULIB_MALLOC_POSIX=0;
16678 GNULIB_MBTOWC=0;
16679 GNULIB_MKDTEMP=0;
16680 GNULIB_MKOSTEMP=0;
16681 GNULIB_MKOSTEMPS=0;
16682 GNULIB_MKSTEMP=0;
16683 GNULIB_MKSTEMPS=0;
16684 GNULIB_PTSNAME=0;
16685 GNULIB_PUTENV=0;
16686 GNULIB_RANDOM_R=0;
16687 GNULIB_REALLOC_POSIX=0;
16688 GNULIB_REALPATH=0;
16689 GNULIB_RPMATCH=0;
16690 GNULIB_SETENV=0;
16691 GNULIB_STRTOD=0;
16692 GNULIB_STRTOLL=0;
16693 GNULIB_STRTOULL=0;
16694 GNULIB_SYSTEM_POSIX=0;
16695 GNULIB_UNLOCKPT=0;
16696 GNULIB_UNSETENV=0;
16697 GNULIB_WCTOMB=0;
16698 HAVE__EXIT=1;
16699 HAVE_ATOLL=1;
16700 HAVE_CANONICALIZE_FILE_NAME=1;
16701 HAVE_DECL_GETLOADAVG=1;
16702 HAVE_GETSUBOPT=1;
16703 HAVE_GRANTPT=1;
16704 HAVE_MKDTEMP=1;
16705 HAVE_MKOSTEMP=1;
16706 HAVE_MKOSTEMPS=1;
16707 HAVE_MKSTEMP=1;
16708 HAVE_MKSTEMPS=1;
16709 HAVE_PTSNAME=1;
16710 HAVE_RANDOM_H=1;
16711 HAVE_RANDOM_R=1;
16712 HAVE_REALPATH=1;
16713 HAVE_RPMATCH=1;
16714 HAVE_SETENV=1;
16715 HAVE_DECL_SETENV=1;
16716 HAVE_STRTOD=1;
16717 HAVE_STRTOLL=1;
16718 HAVE_STRTOULL=1;
16719 HAVE_STRUCT_RANDOM_DATA=1;
16720 HAVE_SYS_LOADAVG_H=0;
16721 HAVE_UNLOCKPT=1;
16722 HAVE_DECL_UNSETENV=1;
16723 REPLACE_CALLOC=0;
16724 REPLACE_CANONICALIZE_FILE_NAME=0;
16725 REPLACE_MALLOC=0;
16726 REPLACE_MBTOWC=0;
16727 REPLACE_MKSTEMP=0;
16728 REPLACE_PUTENV=0;
16729 REPLACE_REALLOC=0;
16730 REPLACE_REALPATH=0;
16731 REPLACE_SETENV=0;
16732 REPLACE_STRTOD=0;
16733 REPLACE_UNSETENV=0;
16734 REPLACE_WCTOMB=0;
16738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
16739 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
16740 if test "${gl_cv_have_include_next+set}" = set; then :
16741 $as_echo_n "(cached) " >&6
16742 else
16743 rm -rf conftestd1a conftestd1b conftestd2
16744 mkdir conftestd1a conftestd1b conftestd2
16745 cat <<EOF > conftestd1a/conftest.h
16746 #define DEFINED_IN_CONFTESTD1
16747 #include_next <conftest.h>
16748 #ifdef DEFINED_IN_CONFTESTD2
16749 int foo;
16750 #else
16751 #error "include_next doesn't work"
16752 #endif
16754 cat <<EOF > conftestd1b/conftest.h
16755 #define DEFINED_IN_CONFTESTD1
16756 #include <stdio.h>
16757 #include_next <conftest.h>
16758 #ifdef DEFINED_IN_CONFTESTD2
16759 int foo;
16760 #else
16761 #error "include_next doesn't work"
16762 #endif
16764 cat <<EOF > conftestd2/conftest.h
16765 #ifndef DEFINED_IN_CONFTESTD1
16766 #error "include_next test doesn't work"
16767 #endif
16768 #define DEFINED_IN_CONFTESTD2
16770 gl_save_CPPFLAGS="$CPPFLAGS"
16771 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
16772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16773 /* end confdefs.h. */
16774 #include <conftest.h>
16775 _ACEOF
16776 if ac_fn_c_try_compile "$LINENO"; then :
16777 gl_cv_have_include_next=yes
16778 else
16779 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
16780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16781 /* end confdefs.h. */
16782 #include <conftest.h>
16783 _ACEOF
16784 if ac_fn_c_try_compile "$LINENO"; then :
16785 gl_cv_have_include_next=buggy
16786 else
16787 gl_cv_have_include_next=no
16789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16793 CPPFLAGS="$gl_save_CPPFLAGS"
16794 rm -rf conftestd1a conftestd1b conftestd2
16797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
16798 $as_echo "$gl_cv_have_include_next" >&6; }
16799 PRAGMA_SYSTEM_HEADER=
16800 if test $gl_cv_have_include_next = yes; then
16801 INCLUDE_NEXT=include_next
16802 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
16803 if test -n "$GCC"; then
16804 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
16806 else
16807 if test $gl_cv_have_include_next = buggy; then
16808 INCLUDE_NEXT=include
16809 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
16810 else
16811 INCLUDE_NEXT=include
16812 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
16818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
16819 $as_echo_n "checking whether system header files limit the line length... " >&6; }
16820 if test "${gl_cv_pragma_columns+set}" = set; then :
16821 $as_echo_n "(cached) " >&6
16822 else
16823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16824 /* end confdefs.h. */
16826 #ifdef __TANDEM
16827 choke me
16828 #endif
16830 _ACEOF
16831 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16832 $EGREP "choke me" >/dev/null 2>&1; then :
16833 gl_cv_pragma_columns=yes
16834 else
16835 gl_cv_pragma_columns=no
16837 rm -f conftest*
16841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
16842 $as_echo "$gl_cv_pragma_columns" >&6; }
16843 if test $gl_cv_pragma_columns = yes; then
16844 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
16845 else
16846 PRAGMA_COLUMNS=
16865 if test $gl_cv_have_include_next = yes; then
16866 gl_cv_next_getopt_h='<'getopt.h'>'
16867 else
16868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
16869 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
16870 if test "${gl_cv_next_getopt_h+set}" = set; then :
16871 $as_echo_n "(cached) " >&6
16872 else
16874 if test $ac_cv_header_getopt_h = yes; then
16877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16878 /* end confdefs.h. */
16879 #include <getopt.h>
16881 _ACEOF
16882 case "$host_os" in
16883 aix*) gl_absname_cpp="$ac_cpp -C" ;;
16884 *) gl_absname_cpp="$ac_cpp" ;;
16885 esac
16887 case "$host_os" in
16888 mingw*)
16889 gl_dirsep_regex='[/\\]'
16892 gl_dirsep_regex='/'
16894 esac
16896 gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'getopt.h|{
16897 s|.*"\(.*'"${gl_dirsep_regex}"'getopt.h\)".*|\1|
16898 s|^/[^/]|//&|
16902 gl_cv_next_getopt_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16903 sed -n "$gl_absolute_header_sed"`'"'
16904 else
16905 gl_cv_next_getopt_h='<'getopt.h'>'
16910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
16911 $as_echo "$gl_cv_next_getopt_h" >&6; }
16913 NEXT_GETOPT_H=$gl_cv_next_getopt_h
16915 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16916 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16917 gl_next_as_first_directive='<'getopt.h'>'
16918 else
16919 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16920 gl_next_as_first_directive=$gl_cv_next_getopt_h
16922 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H=$gl_next_as_first_directive
16927 if test $ac_cv_header_getopt_h = yes; then
16928 HAVE_GETOPT_H=1
16929 else
16930 HAVE_GETOPT_H=0
16934 gl_replace_getopt=
16936 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
16937 for ac_header in getopt.h
16938 do :
16939 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
16940 if test "x$ac_cv_header_getopt_h" = x""yes; then :
16941 cat >>confdefs.h <<_ACEOF
16942 #define HAVE_GETOPT_H 1
16943 _ACEOF
16945 else
16946 gl_replace_getopt=yes
16949 done
16953 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
16954 for ac_func in getopt_long_only
16955 do :
16956 ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
16957 if test "x$ac_cv_func_getopt_long_only" = x""yes; then :
16958 cat >>confdefs.h <<_ACEOF
16959 #define HAVE_GETOPT_LONG_ONLY 1
16960 _ACEOF
16962 else
16963 gl_replace_getopt=yes
16965 done
16969 if test -z "$gl_replace_getopt"; then
16970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
16971 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
16972 if test "${gl_cv_func_getopt_posix+set}" = set; then :
16973 $as_echo_n "(cached) " >&6
16974 else
16976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16977 /* end confdefs.h. */
16978 #include <unistd.h>
16980 main ()
16982 int *p = &optreset; return optreset;
16984 return 0;
16986 _ACEOF
16987 if ac_fn_c_try_link "$LINENO"; then :
16988 gl_optind_min=1
16989 else
16990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16991 /* end confdefs.h. */
16992 #include <getopt.h>
16994 main ()
16996 return !getopt_clip;
16998 return 0;
17000 _ACEOF
17001 if ac_fn_c_try_compile "$LINENO"; then :
17002 gl_optind_min=1
17003 else
17004 gl_optind_min=0
17006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17008 rm -f core conftest.err conftest.$ac_objext \
17009 conftest$ac_exeext conftest.$ac_ext
17011 gl_save_CPPFLAGS=$CPPFLAGS
17012 CPPFLAGS="$CPPFLAGS -DOPTIND_MIN=$gl_optind_min"
17013 if test "$cross_compiling" = yes; then :
17014 case "$host_os" in
17015 mingw*) gl_cv_func_getopt_posix="guessing no";;
17016 darwin* | aix*) gl_cv_func_getopt_posix="guessing no";;
17017 *) gl_cv_func_getopt_posix="guessing yes";;
17018 esac
17020 else
17021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17022 /* end confdefs.h. */
17024 #include <unistd.h>
17025 #include <stdlib.h>
17026 #include <string.h>
17029 main ()
17032 static char program[] = "program";
17033 static char a[] = "-a";
17034 static char foo[] = "foo";
17035 static char bar[] = "bar";
17036 char *argv[] = { program, a, foo, bar, NULL };
17037 int c;
17039 optind = OPTIND_MIN;
17040 opterr = 0;
17042 c = getopt (4, argv, "ab");
17043 if (!(c == 'a'))
17044 return 1;
17045 c = getopt (4, argv, "ab");
17046 if (!(c == -1))
17047 return 2;
17048 if (!(optind == 2))
17049 return 3;
17051 /* Some internal state exists at this point. */
17053 static char program[] = "program";
17054 static char donald[] = "donald";
17055 static char p[] = "-p";
17056 static char billy[] = "billy";
17057 static char duck[] = "duck";
17058 static char a[] = "-a";
17059 static char bar[] = "bar";
17060 char *argv[] = { program, donald, p, billy, duck, a, bar, NULL };
17061 int c;
17063 optind = OPTIND_MIN;
17064 opterr = 0;
17066 c = getopt (7, argv, "+abp:q:");
17067 if (!(c == -1))
17068 return 4;
17069 if (!(strcmp (argv[0], "program") == 0))
17070 return 5;
17071 if (!(strcmp (argv[1], "donald") == 0))
17072 return 6;
17073 if (!(strcmp (argv[2], "-p") == 0))
17074 return 7;
17075 if (!(strcmp (argv[3], "billy") == 0))
17076 return 8;
17077 if (!(strcmp (argv[4], "duck") == 0))
17078 return 9;
17079 if (!(strcmp (argv[5], "-a") == 0))
17080 return 10;
17081 if (!(strcmp (argv[6], "bar") == 0))
17082 return 11;
17083 if (!(optind == 1))
17084 return 12;
17086 /* Detect MacOS 10.5, AIX 7.1 bug. */
17088 static char program[] = "program";
17089 static char ab[] = "-ab";
17090 char *argv[3] = { program, ab, NULL };
17091 optind = OPTIND_MIN;
17092 opterr = 0;
17093 if (getopt (2, argv, "ab:") != 'a')
17094 return 13;
17095 if (getopt (2, argv, "ab:") != '?')
17096 return 14;
17097 if (optopt != 'b')
17098 return 15;
17099 if (optind != 2)
17100 return 16;
17103 return 0;
17106 _ACEOF
17107 if ac_fn_c_try_run "$LINENO"; then :
17108 gl_cv_func_getopt_posix=yes
17109 else
17110 gl_cv_func_getopt_posix=no
17112 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17113 conftest.$ac_objext conftest.beam conftest.$ac_ext
17116 CPPFLAGS=$gl_save_CPPFLAGS
17119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
17120 $as_echo "$gl_cv_func_getopt_posix" >&6; }
17121 case "$gl_cv_func_getopt_posix" in
17122 *no) gl_replace_getopt=yes ;;
17123 esac
17126 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
17127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
17128 $as_echo_n "checking for working GNU getopt function... " >&6; }
17129 if test "${gl_cv_func_getopt_gnu+set}" = set; then :
17130 $as_echo_n "(cached) " >&6
17131 else
17132 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
17133 # optstring is necessary for programs like m4 that have POSIX-mandated
17134 # semantics for supporting options interspersed with files.
17135 # Also, since getopt_long is a GNU extension, we require optind=0.
17136 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
17137 # so take care to revert to the correct (non-)export state.
17138 gl_awk_probe='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
17139 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
17140 xx) gl_had_POSIXLY_CORRECT=exported ;;
17141 x) gl_had_POSIXLY_CORRECT=yes ;;
17142 *) gl_had_POSIXLY_CORRECT= ;;
17143 esac
17144 POSIXLY_CORRECT=1
17145 export POSIXLY_CORRECT
17146 if test "$cross_compiling" = yes; then :
17147 case $host_os:$ac_cv_have_decl_optreset in
17148 *-gnu*:* | mingw*:*) gl_cv_func_getopt_gnu=no;;
17149 *:yes) gl_cv_func_getopt_gnu=no;;
17150 *) gl_cv_func_getopt_gnu=yes;;
17151 esac
17153 else
17154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17155 /* end confdefs.h. */
17156 #include <getopt.h>
17157 #include <stddef.h>
17158 #include <string.h>
17160 #include <stdlib.h>
17161 #if defined __MACH__ && defined __APPLE__
17162 /* Avoid a crash on MacOS X. */
17163 #include <mach/mach.h>
17164 #include <mach/mach_error.h>
17165 #include <mach/thread_status.h>
17166 #include <mach/exception.h>
17167 #include <mach/task.h>
17168 #include <pthread.h>
17169 /* The exception port on which our thread listens. */
17170 static mach_port_t our_exception_port;
17171 /* The main function of the thread listening for exceptions of type
17172 EXC_BAD_ACCESS. */
17173 static void *
17174 mach_exception_thread (void *arg)
17176 /* Buffer for a message to be received. */
17177 struct {
17178 mach_msg_header_t head;
17179 mach_msg_body_t msgh_body;
17180 char data[1024];
17181 } msg;
17182 mach_msg_return_t retval;
17183 /* Wait for a message on the exception port. */
17184 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
17185 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
17186 if (retval != MACH_MSG_SUCCESS)
17187 abort ();
17188 exit (1);
17190 static void
17191 nocrash_init (void)
17193 mach_port_t self = mach_task_self ();
17194 /* Allocate a port on which the thread shall listen for exceptions. */
17195 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
17196 == KERN_SUCCESS) {
17197 /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
17198 if (mach_port_insert_right (self, our_exception_port, our_exception_port,
17199 MACH_MSG_TYPE_MAKE_SEND)
17200 == KERN_SUCCESS) {
17201 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
17202 for us. */
17203 exception_mask_t mask = EXC_MASK_BAD_ACCESS;
17204 /* Create the thread listening on the exception port. */
17205 pthread_attr_t attr;
17206 pthread_t thread;
17207 if (pthread_attr_init (&attr) == 0
17208 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
17209 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
17210 pthread_attr_destroy (&attr);
17211 /* Replace the exception port info for these exceptions with our own.
17212 Note that we replace the exception port for the entire task, not only
17213 for a particular thread. This has the effect that when our exception
17214 port gets the message, the thread specific exception port has already
17215 been asked, and we don't need to bother about it.
17216 See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
17217 task_set_exception_ports (self, mask, our_exception_port,
17218 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
17223 #elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
17224 /* Avoid a crash on native Windows. */
17225 #define WIN32_LEAN_AND_MEAN
17226 #include <windows.h>
17227 #include <winerror.h>
17228 static LONG WINAPI
17229 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
17231 switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
17233 case EXCEPTION_ACCESS_VIOLATION:
17234 case EXCEPTION_IN_PAGE_ERROR:
17235 case EXCEPTION_STACK_OVERFLOW:
17236 case EXCEPTION_GUARD_PAGE:
17237 case EXCEPTION_PRIV_INSTRUCTION:
17238 case EXCEPTION_ILLEGAL_INSTRUCTION:
17239 case EXCEPTION_DATATYPE_MISALIGNMENT:
17240 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
17241 case EXCEPTION_NONCONTINUABLE_EXCEPTION:
17242 exit (1);
17244 return EXCEPTION_CONTINUE_SEARCH;
17246 static void
17247 nocrash_init (void)
17249 SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
17251 #else
17252 /* Avoid a crash on POSIX systems. */
17253 #include <signal.h>
17254 /* A POSIX signal handler. */
17255 static void
17256 exception_handler (int sig)
17258 exit (1);
17260 static void
17261 nocrash_init (void)
17263 #ifdef SIGSEGV
17264 signal (SIGSEGV, exception_handler);
17265 #endif
17266 #ifdef SIGBUS
17267 signal (SIGBUS, exception_handler);
17268 #endif
17270 #endif
17274 main ()
17277 int result = 0;
17279 nocrash_init();
17281 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
17282 and fails on MacOS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
17283 OSF/1 5.1, Solaris 10. */
17285 static char conftest[] = "conftest";
17286 static char plus[] = "-+";
17287 char *argv[3] = { conftest, plus, NULL };
17288 opterr = 0;
17289 if (getopt (2, argv, "+a") != '?')
17290 result |= 1;
17292 /* This code succeeds on glibc 2.8, mingw,
17293 and fails on MacOS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
17294 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
17296 static char program[] = "program";
17297 static char p[] = "-p";
17298 static char foo[] = "foo";
17299 static char bar[] = "bar";
17300 char *argv[] = { program, p, foo, bar, NULL };
17302 optind = 1;
17303 if (getopt (4, argv, "p::") != 'p')
17304 result |= 2;
17305 else if (optarg != NULL)
17306 result |= 4;
17307 else if (getopt (4, argv, "p::") != -1)
17308 result |= 6;
17309 else if (optind != 2)
17310 result |= 8;
17312 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
17314 static char program[] = "program";
17315 static char foo[] = "foo";
17316 static char p[] = "-p";
17317 char *argv[] = { program, foo, p, NULL };
17318 optind = 0;
17319 if (getopt (3, argv, "-p") != 1)
17320 result |= 16;
17321 else if (getopt (3, argv, "-p") != 'p')
17322 result |= 32;
17324 /* This code fails on glibc 2.11. */
17326 static char program[] = "program";
17327 static char b[] = "-b";
17328 static char a[] = "-a";
17329 char *argv[] = { program, b, a, NULL };
17330 optind = opterr = 0;
17331 if (getopt (3, argv, "+:a:b") != 'b')
17332 result |= 64;
17333 else if (getopt (3, argv, "+:a:b") != ':')
17334 result |= 64;
17336 /* This code dumps core on glibc 2.14. */
17338 static char program[] = "program";
17339 static char w[] = "-W";
17340 static char dummy[] = "dummy";
17341 char *argv[] = { program, w, dummy, NULL };
17342 optind = opterr = 1;
17343 if (getopt (3, argv, "W;") != 'W')
17344 result |= 128;
17346 return result;
17349 return 0;
17351 _ACEOF
17352 if ac_fn_c_try_run "$LINENO"; then :
17353 gl_cv_func_getopt_gnu=yes
17354 else
17355 gl_cv_func_getopt_gnu=no
17357 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17358 conftest.$ac_objext conftest.beam conftest.$ac_ext
17361 case $gl_had_POSIXLY_CORRECT in
17362 exported) ;;
17363 yes) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;}; POSIXLY_CORRECT=1 ;;
17364 *) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;} ;;
17365 esac
17368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
17369 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
17370 if test "$gl_cv_func_getopt_gnu" = "no"; then
17371 gl_replace_getopt=yes
17379 REPLACE_GETOPT=0
17382 if test -n "$gl_replace_getopt"; then :
17384 REPLACE_GETOPT=1
17389 if test $REPLACE_GETOPT = 1; then
17391 GETOPT_H=getopt.h
17393 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
17397 GNULIB_UNISTD_H_GETOPT=1
17400 ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
17401 if test "x$ac_cv_have_decl_getenv" = x""yes; then :
17402 ac_have_decl=1
17403 else
17404 ac_have_decl=0
17407 cat >>confdefs.h <<_ACEOF
17408 #define HAVE_DECL_GETENV $ac_have_decl
17409 _ACEOF
17412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
17413 $as_echo_n "checking for unsigned long long int... " >&6; }
17414 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
17415 $as_echo_n "(cached) " >&6
17416 else
17417 ac_cv_type_unsigned_long_long_int=yes
17418 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
17419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17420 /* end confdefs.h. */
17422 /* For now, do not test the preprocessor; as of 2007 there are too many
17423 implementations with broken preprocessors. Perhaps this can
17424 be revisited in 2012. In the meantime, code should not expect
17425 #if to work with literals wider than 32 bits. */
17426 /* Test literals. */
17427 long long int ll = 9223372036854775807ll;
17428 long long int nll = -9223372036854775807LL;
17429 unsigned long long int ull = 18446744073709551615ULL;
17430 /* Test constant expressions. */
17431 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
17432 ? 1 : -1)];
17433 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
17434 ? 1 : -1)];
17435 int i = 63;
17437 main ()
17439 /* Test availability of runtime routines for shift and division. */
17440 long long int llmax = 9223372036854775807ll;
17441 unsigned long long int ullmax = 18446744073709551615ull;
17442 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
17443 | (llmax / ll) | (llmax % ll)
17444 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
17445 | (ullmax / ull) | (ullmax % ull));
17447 return 0;
17450 _ACEOF
17451 if ac_fn_c_try_link "$LINENO"; then :
17453 else
17454 ac_cv_type_unsigned_long_long_int=no
17456 rm -f core conftest.err conftest.$ac_objext \
17457 conftest$ac_exeext conftest.$ac_ext
17460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
17461 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
17462 if test $ac_cv_type_unsigned_long_long_int = yes; then
17464 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
17470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
17471 $as_echo_n "checking for long long int... " >&6; }
17472 if test "${ac_cv_type_long_long_int+set}" = set; then :
17473 $as_echo_n "(cached) " >&6
17474 else
17475 ac_cv_type_long_long_int=yes
17476 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
17477 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
17478 if test $ac_cv_type_long_long_int = yes; then
17479 if test "$cross_compiling" = yes; then :
17481 else
17482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17483 /* end confdefs.h. */
17484 #include <limits.h>
17485 #ifndef LLONG_MAX
17486 # define HALF \
17487 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
17488 # define LLONG_MAX (HALF - 1 + HALF)
17489 #endif
17491 main ()
17493 long long int n = 1;
17494 int i;
17495 for (i = 0; ; i++)
17497 long long int m = n << i;
17498 if (m >> i != n)
17499 return 1;
17500 if (LLONG_MAX / 2 < m)
17501 break;
17503 return 0;
17505 return 0;
17507 _ACEOF
17508 if ac_fn_c_try_run "$LINENO"; then :
17510 else
17511 ac_cv_type_long_long_int=no
17513 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17514 conftest.$ac_objext conftest.beam conftest.$ac_ext
17520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
17521 $as_echo "$ac_cv_type_long_long_int" >&6; }
17522 if test $ac_cv_type_long_long_int = yes; then
17524 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
17533 gl_cv_c_multiarch=no
17534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17535 /* end confdefs.h. */
17536 #ifndef __APPLE_CC__
17537 not a universal capable compiler
17538 #endif
17539 typedef int dummy;
17541 _ACEOF
17542 if ac_fn_c_try_compile "$LINENO"; then :
17544 arch=
17545 prev=
17546 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
17547 if test -n "$prev"; then
17548 case $word in
17549 i?86 | x86_64 | ppc | ppc64)
17550 if test -z "$arch" || test "$arch" = "$word"; then
17551 arch="$word"
17552 else
17553 gl_cv_c_multiarch=yes
17556 esac
17557 prev=
17558 else
17559 if test "x$word" = "x-arch"; then
17560 prev=arch
17563 done
17566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17567 if test $gl_cv_c_multiarch = yes; then
17568 APPLE_UNIVERSAL_BUILD=1
17569 else
17570 APPLE_UNIVERSAL_BUILD=0
17577 if test $ac_cv_type_long_long_int = yes; then
17578 HAVE_LONG_LONG_INT=1
17579 else
17580 HAVE_LONG_LONG_INT=0
17584 if test $ac_cv_type_unsigned_long_long_int = yes; then
17585 HAVE_UNSIGNED_LONG_LONG_INT=1
17586 else
17587 HAVE_UNSIGNED_LONG_LONG_INT=0
17592 if test $ac_cv_header_wchar_h = yes; then
17593 HAVE_WCHAR_H=1
17594 else
17595 HAVE_WCHAR_H=0
17599 if test $ac_cv_header_inttypes_h = yes; then
17600 HAVE_INTTYPES_H=1
17601 else
17602 HAVE_INTTYPES_H=0
17606 if test $ac_cv_header_sys_types_h = yes; then
17607 HAVE_SYS_TYPES_H=1
17608 else
17609 HAVE_SYS_TYPES_H=0
17622 if test $gl_cv_have_include_next = yes; then
17623 gl_cv_next_stdint_h='<'stdint.h'>'
17624 else
17625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
17626 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
17627 if test "${gl_cv_next_stdint_h+set}" = set; then :
17628 $as_echo_n "(cached) " >&6
17629 else
17631 if test $ac_cv_header_stdint_h = yes; then
17634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17635 /* end confdefs.h. */
17636 #include <stdint.h>
17638 _ACEOF
17639 case "$host_os" in
17640 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17641 *) gl_absname_cpp="$ac_cpp" ;;
17642 esac
17644 case "$host_os" in
17645 mingw*)
17646 gl_dirsep_regex='[/\\]'
17649 gl_dirsep_regex='/'
17651 esac
17653 gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'stdint.h|{
17654 s|.*"\(.*'"${gl_dirsep_regex}"'stdint.h\)".*|\1|
17655 s|^/[^/]|//&|
17659 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17660 sed -n "$gl_absolute_header_sed"`'"'
17661 else
17662 gl_cv_next_stdint_h='<'stdint.h'>'
17667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
17668 $as_echo "$gl_cv_next_stdint_h" >&6; }
17670 NEXT_STDINT_H=$gl_cv_next_stdint_h
17672 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17673 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17674 gl_next_as_first_directive='<'stdint.h'>'
17675 else
17676 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17677 gl_next_as_first_directive=$gl_cv_next_stdint_h
17679 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
17684 if test $ac_cv_header_stdint_h = yes; then
17685 HAVE_STDINT_H=1
17686 else
17687 HAVE_STDINT_H=0
17691 if test $ac_cv_header_stdint_h = yes; then
17692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
17693 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
17694 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
17695 $as_echo_n "(cached) " >&6
17696 else
17697 gl_cv_header_working_stdint_h=no
17698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17699 /* end confdefs.h. */
17702 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
17703 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
17704 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
17705 #include <stdint.h>
17706 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
17707 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
17708 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
17709 #endif
17712 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17713 included before <wchar.h>. */
17714 #include <stddef.h>
17715 #include <signal.h>
17716 #if HAVE_WCHAR_H
17717 # include <stdio.h>
17718 # include <time.h>
17719 # include <wchar.h>
17720 #endif
17723 #ifdef INT8_MAX
17724 int8_t a1 = INT8_MAX;
17725 int8_t a1min = INT8_MIN;
17726 #endif
17727 #ifdef INT16_MAX
17728 int16_t a2 = INT16_MAX;
17729 int16_t a2min = INT16_MIN;
17730 #endif
17731 #ifdef INT32_MAX
17732 int32_t a3 = INT32_MAX;
17733 int32_t a3min = INT32_MIN;
17734 #endif
17735 #ifdef INT64_MAX
17736 int64_t a4 = INT64_MAX;
17737 int64_t a4min = INT64_MIN;
17738 #endif
17739 #ifdef UINT8_MAX
17740 uint8_t b1 = UINT8_MAX;
17741 #else
17742 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
17743 #endif
17744 #ifdef UINT16_MAX
17745 uint16_t b2 = UINT16_MAX;
17746 #endif
17747 #ifdef UINT32_MAX
17748 uint32_t b3 = UINT32_MAX;
17749 #endif
17750 #ifdef UINT64_MAX
17751 uint64_t b4 = UINT64_MAX;
17752 #endif
17753 int_least8_t c1 = INT8_C (0x7f);
17754 int_least8_t c1max = INT_LEAST8_MAX;
17755 int_least8_t c1min = INT_LEAST8_MIN;
17756 int_least16_t c2 = INT16_C (0x7fff);
17757 int_least16_t c2max = INT_LEAST16_MAX;
17758 int_least16_t c2min = INT_LEAST16_MIN;
17759 int_least32_t c3 = INT32_C (0x7fffffff);
17760 int_least32_t c3max = INT_LEAST32_MAX;
17761 int_least32_t c3min = INT_LEAST32_MIN;
17762 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
17763 int_least64_t c4max = INT_LEAST64_MAX;
17764 int_least64_t c4min = INT_LEAST64_MIN;
17765 uint_least8_t d1 = UINT8_C (0xff);
17766 uint_least8_t d1max = UINT_LEAST8_MAX;
17767 uint_least16_t d2 = UINT16_C (0xffff);
17768 uint_least16_t d2max = UINT_LEAST16_MAX;
17769 uint_least32_t d3 = UINT32_C (0xffffffff);
17770 uint_least32_t d3max = UINT_LEAST32_MAX;
17771 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
17772 uint_least64_t d4max = UINT_LEAST64_MAX;
17773 int_fast8_t e1 = INT_FAST8_MAX;
17774 int_fast8_t e1min = INT_FAST8_MIN;
17775 int_fast16_t e2 = INT_FAST16_MAX;
17776 int_fast16_t e2min = INT_FAST16_MIN;
17777 int_fast32_t e3 = INT_FAST32_MAX;
17778 int_fast32_t e3min = INT_FAST32_MIN;
17779 int_fast64_t e4 = INT_FAST64_MAX;
17780 int_fast64_t e4min = INT_FAST64_MIN;
17781 uint_fast8_t f1 = UINT_FAST8_MAX;
17782 uint_fast16_t f2 = UINT_FAST16_MAX;
17783 uint_fast32_t f3 = UINT_FAST32_MAX;
17784 uint_fast64_t f4 = UINT_FAST64_MAX;
17785 #ifdef INTPTR_MAX
17786 intptr_t g = INTPTR_MAX;
17787 intptr_t gmin = INTPTR_MIN;
17788 #endif
17789 #ifdef UINTPTR_MAX
17790 uintptr_t h = UINTPTR_MAX;
17791 #endif
17792 intmax_t i = INTMAX_MAX;
17793 uintmax_t j = UINTMAX_MAX;
17795 #include <limits.h> /* for CHAR_BIT */
17796 #define TYPE_MINIMUM(t) \
17797 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
17798 #define TYPE_MAXIMUM(t) \
17799 ((t) ((t) 0 < (t) -1 \
17800 ? (t) -1 \
17801 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
17802 struct s {
17803 int check_PTRDIFF:
17804 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
17805 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
17806 ? 1 : -1;
17807 /* Detect bug in FreeBSD 6.0 / ia64. */
17808 int check_SIG_ATOMIC:
17809 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
17810 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
17811 ? 1 : -1;
17812 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
17813 int check_WCHAR:
17814 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
17815 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
17816 ? 1 : -1;
17817 /* Detect bug in mingw. */
17818 int check_WINT:
17819 WINT_MIN == TYPE_MINIMUM (wint_t)
17820 && WINT_MAX == TYPE_MAXIMUM (wint_t)
17821 ? 1 : -1;
17823 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
17824 int check_UINT8_C:
17825 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
17826 int check_UINT16_C:
17827 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
17829 /* Detect bugs in OpenBSD 3.9 stdint.h. */
17830 #ifdef UINT8_MAX
17831 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
17832 #endif
17833 #ifdef UINT16_MAX
17834 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
17835 #endif
17836 #ifdef UINT32_MAX
17837 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
17838 #endif
17839 #ifdef UINT64_MAX
17840 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
17841 #endif
17842 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
17843 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
17844 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
17845 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
17846 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
17847 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
17848 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
17849 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
17850 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
17851 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
17852 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
17856 main ()
17860 return 0;
17862 _ACEOF
17863 if ac_fn_c_try_compile "$LINENO"; then :
17864 if test "$cross_compiling" = yes; then :
17865 gl_cv_header_working_stdint_h=yes
17867 else
17868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17869 /* end confdefs.h. */
17872 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
17873 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
17874 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
17875 #include <stdint.h>
17878 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17879 included before <wchar.h>. */
17880 #include <stddef.h>
17881 #include <signal.h>
17882 #if HAVE_WCHAR_H
17883 # include <stdio.h>
17884 # include <time.h>
17885 # include <wchar.h>
17886 #endif
17889 #include <stdio.h>
17890 #include <string.h>
17891 #define MVAL(macro) MVAL1(macro)
17892 #define MVAL1(expression) #expression
17893 static const char *macro_values[] =
17895 #ifdef INT8_MAX
17896 MVAL (INT8_MAX),
17897 #endif
17898 #ifdef INT16_MAX
17899 MVAL (INT16_MAX),
17900 #endif
17901 #ifdef INT32_MAX
17902 MVAL (INT32_MAX),
17903 #endif
17904 #ifdef INT64_MAX
17905 MVAL (INT64_MAX),
17906 #endif
17907 #ifdef UINT8_MAX
17908 MVAL (UINT8_MAX),
17909 #endif
17910 #ifdef UINT16_MAX
17911 MVAL (UINT16_MAX),
17912 #endif
17913 #ifdef UINT32_MAX
17914 MVAL (UINT32_MAX),
17915 #endif
17916 #ifdef UINT64_MAX
17917 MVAL (UINT64_MAX),
17918 #endif
17919 NULL
17923 main ()
17926 const char **mv;
17927 for (mv = macro_values; *mv != NULL; mv++)
17929 const char *value = *mv;
17930 /* Test whether it looks like a cast expression. */
17931 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
17932 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
17933 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
17934 || strncmp (value, "((int)"/*)*/, 6) == 0
17935 || strncmp (value, "((signed short)"/*)*/, 15) == 0
17936 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
17937 return mv - macro_values + 1;
17939 return 0;
17942 return 0;
17944 _ACEOF
17945 if ac_fn_c_try_run "$LINENO"; then :
17946 gl_cv_header_working_stdint_h=yes
17948 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17949 conftest.$ac_objext conftest.beam conftest.$ac_ext
17954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
17958 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
17960 if test "$gl_cv_header_working_stdint_h" = yes; then
17961 STDINT_H=
17962 else
17963 for ac_header in sys/inttypes.h sys/bitypes.h
17964 do :
17965 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17966 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17967 eval as_val=\$$as_ac_Header
17968 if test "x$as_val" = x""yes; then :
17969 cat >>confdefs.h <<_ACEOF
17970 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17971 _ACEOF
17975 done
17977 if test $ac_cv_header_sys_inttypes_h = yes; then
17978 HAVE_SYS_INTTYPES_H=1
17979 else
17980 HAVE_SYS_INTTYPES_H=0
17983 if test $ac_cv_header_sys_bitypes_h = yes; then
17984 HAVE_SYS_BITYPES_H=1
17985 else
17986 HAVE_SYS_BITYPES_H=0
17992 if test $APPLE_UNIVERSAL_BUILD = 0; then
17995 for gltype in ptrdiff_t size_t ; do
17996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
17997 $as_echo_n "checking for bit size of $gltype... " >&6; }
17998 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
17999 $as_echo_n "(cached) " >&6
18000 else
18001 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
18002 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18003 included before <wchar.h>. */
18004 #include <stddef.h>
18005 #include <signal.h>
18006 #if HAVE_WCHAR_H
18007 # include <stdio.h>
18008 # include <time.h>
18009 # include <wchar.h>
18010 #endif
18012 #include <limits.h>"; then :
18014 else
18015 result=unknown
18018 eval gl_cv_bitsizeof_${gltype}=\$result
18021 eval ac_res=\$gl_cv_bitsizeof_${gltype}
18022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18023 $as_echo "$ac_res" >&6; }
18024 eval result=\$gl_cv_bitsizeof_${gltype}
18025 if test $result = unknown; then
18026 result=0
18028 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18029 cat >>confdefs.h <<_ACEOF
18030 #define BITSIZEOF_${GLTYPE} $result
18031 _ACEOF
18033 eval BITSIZEOF_${GLTYPE}=\$result
18034 done
18040 for gltype in sig_atomic_t wchar_t wint_t ; do
18041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
18042 $as_echo_n "checking for bit size of $gltype... " >&6; }
18043 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
18044 $as_echo_n "(cached) " >&6
18045 else
18046 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
18047 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18048 included before <wchar.h>. */
18049 #include <stddef.h>
18050 #include <signal.h>
18051 #if HAVE_WCHAR_H
18052 # include <stdio.h>
18053 # include <time.h>
18054 # include <wchar.h>
18055 #endif
18057 #include <limits.h>"; then :
18059 else
18060 result=unknown
18063 eval gl_cv_bitsizeof_${gltype}=\$result
18066 eval ac_res=\$gl_cv_bitsizeof_${gltype}
18067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18068 $as_echo "$ac_res" >&6; }
18069 eval result=\$gl_cv_bitsizeof_${gltype}
18070 if test $result = unknown; then
18071 result=0
18073 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18074 cat >>confdefs.h <<_ACEOF
18075 #define BITSIZEOF_${GLTYPE} $result
18076 _ACEOF
18078 eval BITSIZEOF_${GLTYPE}=\$result
18079 done
18084 for gltype in sig_atomic_t wchar_t wint_t ; do
18085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
18086 $as_echo_n "checking whether $gltype is signed... " >&6; }
18087 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
18088 $as_echo_n "(cached) " >&6
18089 else
18090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18091 /* end confdefs.h. */
18093 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18094 included before <wchar.h>. */
18095 #include <stddef.h>
18096 #include <signal.h>
18097 #if HAVE_WCHAR_H
18098 # include <stdio.h>
18099 # include <time.h>
18100 # include <wchar.h>
18101 #endif
18103 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
18105 main ()
18109 return 0;
18111 _ACEOF
18112 if ac_fn_c_try_compile "$LINENO"; then :
18113 result=yes
18114 else
18115 result=no
18117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18118 eval gl_cv_type_${gltype}_signed=\$result
18121 eval ac_res=\$gl_cv_type_${gltype}_signed
18122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18123 $as_echo "$ac_res" >&6; }
18124 eval result=\$gl_cv_type_${gltype}_signed
18125 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18126 if test "$result" = yes; then
18127 cat >>confdefs.h <<_ACEOF
18128 #define HAVE_SIGNED_${GLTYPE} 1
18129 _ACEOF
18131 eval HAVE_SIGNED_${GLTYPE}=1
18132 else
18133 eval HAVE_SIGNED_${GLTYPE}=0
18135 done
18138 gl_cv_type_ptrdiff_t_signed=yes
18139 gl_cv_type_size_t_signed=no
18140 if test $APPLE_UNIVERSAL_BUILD = 0; then
18143 for gltype in ptrdiff_t size_t ; do
18144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
18145 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
18146 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
18147 $as_echo_n "(cached) " >&6
18148 else
18149 eval gl_cv_type_${gltype}_suffix=no
18150 eval result=\$gl_cv_type_${gltype}_signed
18151 if test "$result" = yes; then
18152 glsufu=
18153 else
18154 glsufu=u
18156 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
18157 case $glsuf in
18158 '') gltype1='int';;
18159 l) gltype1='long int';;
18160 ll) gltype1='long long int';;
18161 i64) gltype1='__int64';;
18162 u) gltype1='unsigned int';;
18163 ul) gltype1='unsigned long int';;
18164 ull) gltype1='unsigned long long int';;
18165 ui64)gltype1='unsigned __int64';;
18166 esac
18167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18168 /* end confdefs.h. */
18170 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18171 included before <wchar.h>. */
18172 #include <stddef.h>
18173 #include <signal.h>
18174 #if HAVE_WCHAR_H
18175 # include <stdio.h>
18176 # include <time.h>
18177 # include <wchar.h>
18178 #endif
18180 extern $gltype foo;
18181 extern $gltype1 foo;
18183 main ()
18187 return 0;
18189 _ACEOF
18190 if ac_fn_c_try_compile "$LINENO"; then :
18191 eval gl_cv_type_${gltype}_suffix=\$glsuf
18193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18194 eval result=\$gl_cv_type_${gltype}_suffix
18195 test "$result" != no && break
18196 done
18198 eval ac_res=\$gl_cv_type_${gltype}_suffix
18199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18200 $as_echo "$ac_res" >&6; }
18201 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18202 eval result=\$gl_cv_type_${gltype}_suffix
18203 test "$result" = no && result=
18204 eval ${GLTYPE}_SUFFIX=\$result
18205 cat >>confdefs.h <<_ACEOF
18206 #define ${GLTYPE}_SUFFIX $result
18207 _ACEOF
18209 done
18215 for gltype in sig_atomic_t wchar_t wint_t ; do
18216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
18217 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
18218 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
18219 $as_echo_n "(cached) " >&6
18220 else
18221 eval gl_cv_type_${gltype}_suffix=no
18222 eval result=\$gl_cv_type_${gltype}_signed
18223 if test "$result" = yes; then
18224 glsufu=
18225 else
18226 glsufu=u
18228 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
18229 case $glsuf in
18230 '') gltype1='int';;
18231 l) gltype1='long int';;
18232 ll) gltype1='long long int';;
18233 i64) gltype1='__int64';;
18234 u) gltype1='unsigned int';;
18235 ul) gltype1='unsigned long int';;
18236 ull) gltype1='unsigned long long int';;
18237 ui64)gltype1='unsigned __int64';;
18238 esac
18239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18240 /* end confdefs.h. */
18242 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18243 included before <wchar.h>. */
18244 #include <stddef.h>
18245 #include <signal.h>
18246 #if HAVE_WCHAR_H
18247 # include <stdio.h>
18248 # include <time.h>
18249 # include <wchar.h>
18250 #endif
18252 extern $gltype foo;
18253 extern $gltype1 foo;
18255 main ()
18259 return 0;
18261 _ACEOF
18262 if ac_fn_c_try_compile "$LINENO"; then :
18263 eval gl_cv_type_${gltype}_suffix=\$glsuf
18265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18266 eval result=\$gl_cv_type_${gltype}_suffix
18267 test "$result" != no && break
18268 done
18270 eval ac_res=\$gl_cv_type_${gltype}_suffix
18271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18272 $as_echo "$ac_res" >&6; }
18273 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18274 eval result=\$gl_cv_type_${gltype}_suffix
18275 test "$result" = no && result=
18276 eval ${GLTYPE}_SUFFIX=\$result
18277 cat >>confdefs.h <<_ACEOF
18278 #define ${GLTYPE}_SUFFIX $result
18279 _ACEOF
18281 done
18285 if test $BITSIZEOF_WINT_T -lt 32; then
18286 BITSIZEOF_WINT_T=32
18289 STDINT_H=stdint.h
18292 if test -n "$STDINT_H"; then
18293 GL_GENERATE_STDINT_H_TRUE=
18294 GL_GENERATE_STDINT_H_FALSE='#'
18295 else
18296 GL_GENERATE_STDINT_H_TRUE='#'
18297 GL_GENERATE_STDINT_H_FALSE=
18304 GNULIB_IMAXABS=0;
18305 GNULIB_IMAXDIV=0;
18306 GNULIB_STRTOIMAX=0;
18307 GNULIB_STRTOUMAX=0;
18308 HAVE_DECL_IMAXABS=1;
18309 HAVE_DECL_IMAXDIV=1;
18310 HAVE_DECL_STRTOIMAX=1;
18311 HAVE_DECL_STRTOUMAX=1;
18312 INT32_MAX_LT_INTMAX_MAX=1;
18313 INT64_MAX_EQ_LONG_MAX='defined _LP64';
18314 PRI_MACROS_BROKEN=0;
18315 PRIPTR_PREFIX=__PRIPTR_PREFIX;
18316 UINT32_MAX_LT_UINTMAX_MAX=1;
18317 UINT64_MAX_EQ_ULONG_MAX='defined _LP64';
18333 if test $gl_cv_have_include_next = yes; then
18334 gl_cv_next_inttypes_h='<'inttypes.h'>'
18335 else
18336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
18337 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
18338 if test "${gl_cv_next_inttypes_h+set}" = set; then :
18339 $as_echo_n "(cached) " >&6
18340 else
18342 if test $ac_cv_header_inttypes_h = yes; then
18345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18346 /* end confdefs.h. */
18347 #include <inttypes.h>
18349 _ACEOF
18350 case "$host_os" in
18351 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18352 *) gl_absname_cpp="$ac_cpp" ;;
18353 esac
18355 case "$host_os" in
18356 mingw*)
18357 gl_dirsep_regex='[/\\]'
18360 gl_dirsep_regex='/'
18362 esac
18364 gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'inttypes.h|{
18365 s|.*"\(.*'"${gl_dirsep_regex}"'inttypes.h\)".*|\1|
18366 s|^/[^/]|//&|
18370 gl_cv_next_inttypes_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18371 sed -n "$gl_absolute_header_sed"`'"'
18372 else
18373 gl_cv_next_inttypes_h='<'inttypes.h'>'
18378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
18379 $as_echo "$gl_cv_next_inttypes_h" >&6; }
18381 NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
18383 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18384 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18385 gl_next_as_first_directive='<'inttypes.h'>'
18386 else
18387 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18388 gl_next_as_first_directive=$gl_cv_next_inttypes_h
18390 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive
18399 $as_echo "#define GL_TRIGGER_STDC_LIMIT_MACROS 1" >>confdefs.h
18406 GNULIB_FCHMODAT=0;
18407 GNULIB_FSTAT=0;
18408 GNULIB_FSTATAT=0;
18409 GNULIB_FUTIMENS=0;
18410 GNULIB_LCHMOD=0;
18411 GNULIB_LSTAT=0;
18412 GNULIB_MKDIRAT=0;
18413 GNULIB_MKFIFO=0;
18414 GNULIB_MKFIFOAT=0;
18415 GNULIB_MKNOD=0;
18416 GNULIB_MKNODAT=0;
18417 GNULIB_STAT=0;
18418 GNULIB_UTIMENSAT=0;
18419 HAVE_FCHMODAT=1;
18420 HAVE_FSTATAT=1;
18421 HAVE_FUTIMENS=1;
18422 HAVE_LCHMOD=1;
18423 HAVE_LSTAT=1;
18424 HAVE_MKDIRAT=1;
18425 HAVE_MKFIFO=1;
18426 HAVE_MKFIFOAT=1;
18427 HAVE_MKNOD=1;
18428 HAVE_MKNODAT=1;
18429 HAVE_UTIMENSAT=1;
18430 REPLACE_FSTAT=0;
18431 REPLACE_FSTATAT=0;
18432 REPLACE_FUTIMENS=0;
18433 REPLACE_LSTAT=0;
18434 REPLACE_MKDIR=0;
18435 REPLACE_MKFIFO=0;
18436 REPLACE_MKNOD=0;
18437 REPLACE_STAT=0;
18438 REPLACE_UTIMENSAT=0;
18443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
18444 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
18445 if test "${gl_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
18446 $as_echo_n "(cached) " >&6
18447 else
18448 rm -f conftest.sym conftest.file
18449 echo >conftest.file
18450 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
18451 if test "$cross_compiling" = yes; then :
18452 # When cross-compiling, be pessimistic so we will end up using the
18453 # replacement version of lstat that checks for trailing slashes and
18454 # calls lstat a second time when necessary.
18455 gl_cv_func_lstat_dereferences_slashed_symlink=no
18457 else
18458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18459 /* end confdefs.h. */
18460 $ac_includes_default
18462 main ()
18464 struct stat sbuf;
18465 /* Linux will dereference the symlink and fail, as required by
18466 POSIX. That is better in the sense that it means we will not
18467 have to compile and use the lstat wrapper. */
18468 return lstat ("conftest.sym/", &sbuf) == 0;
18471 return 0;
18473 _ACEOF
18474 if ac_fn_c_try_run "$LINENO"; then :
18475 gl_cv_func_lstat_dereferences_slashed_symlink=yes
18476 else
18477 gl_cv_func_lstat_dereferences_slashed_symlink=no
18479 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18480 conftest.$ac_objext conftest.beam conftest.$ac_ext
18483 else
18484 # If the 'ln -s' command failed, then we probably don't even
18485 # have an lstat function.
18486 gl_cv_func_lstat_dereferences_slashed_symlink=no
18488 rm -f conftest.sym conftest.file
18491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
18492 $as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
18493 test $gl_cv_func_lstat_dereferences_slashed_symlink = yes &&
18495 cat >>confdefs.h <<_ACEOF
18496 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
18497 _ACEOF
18501 GNULIB_MKTIME=0;
18502 GNULIB_NANOSLEEP=0;
18503 GNULIB_STRPTIME=0;
18504 GNULIB_TIMEGM=0;
18505 GNULIB_TIME_R=0;
18506 HAVE_DECL_LOCALTIME_R=1;
18507 HAVE_NANOSLEEP=1;
18508 HAVE_STRPTIME=1;
18509 HAVE_TIMEGM=1;
18510 REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
18511 REPLACE_MKTIME=GNULIB_PORTCHECK;
18512 REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
18513 REPLACE_TIMEGM=GNULIB_PORTCHECK;
18520 GNULIB_PTHREAD_SIGMASK=0;
18521 GNULIB_RAISE=0;
18522 GNULIB_SIGNAL_H_SIGPIPE=0;
18523 GNULIB_SIGPROCMASK=0;
18524 GNULIB_SIGACTION=0;
18525 HAVE_POSIX_SIGNALBLOCKING=1;
18526 HAVE_PTHREAD_SIGMASK=1;
18527 HAVE_RAISE=1;
18528 HAVE_SIGSET_T=1;
18529 HAVE_SIGINFO_T=1;
18530 HAVE_SIGACTION=1;
18531 HAVE_STRUCT_SIGACTION_SA_SIGACTION=1;
18533 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=1;
18535 HAVE_SIGHANDLER_T=1;
18536 REPLACE_PTHREAD_SIGMASK=0;
18537 REPLACE_RAISE=0;
18542 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
18543 #include <signal.h>
18544 /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */
18545 #include <sys/types.h>
18548 if test "x$ac_cv_type_sigset_t" = x""yes; then :
18550 cat >>confdefs.h <<_ACEOF
18551 #define HAVE_SIGSET_T 1
18552 _ACEOF
18554 gl_cv_type_sigset_t=yes
18555 else
18556 gl_cv_type_sigset_t=no
18559 if test $gl_cv_type_sigset_t != yes; then
18560 HAVE_SIGSET_T=0
18567 if test $ac_cv_header_sys_socket_h = no; then
18568 for ac_header in ws2tcpip.h
18569 do :
18570 ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
18571 if test "x$ac_cv_header_ws2tcpip_h" = x""yes; then :
18572 cat >>confdefs.h <<_ACEOF
18573 #define HAVE_WS2TCPIP_H 1
18574 _ACEOF
18578 done
18582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
18583 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
18584 if test "${ac_cv_header_stdbool_h+set}" = set; then :
18585 $as_echo_n "(cached) " >&6
18586 else
18587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18588 /* end confdefs.h. */
18590 #include <stdbool.h>
18591 #ifndef bool
18592 "error: bool is not defined"
18593 #endif
18594 #ifndef false
18595 "error: false is not defined"
18596 #endif
18597 #if false
18598 "error: false is not 0"
18599 #endif
18600 #ifndef true
18601 "error: true is not defined"
18602 #endif
18603 #if true != 1
18604 "error: true is not 1"
18605 #endif
18606 #ifndef __bool_true_false_are_defined
18607 "error: __bool_true_false_are_defined is not defined"
18608 #endif
18610 struct s { _Bool s: 1; _Bool t; } s;
18612 char a[true == 1 ? 1 : -1];
18613 char b[false == 0 ? 1 : -1];
18614 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
18615 char d[(bool) 0.5 == true ? 1 : -1];
18616 /* See body of main program for 'e'. */
18617 char f[(_Bool) 0.0 == false ? 1 : -1];
18618 char g[true];
18619 char h[sizeof (_Bool)];
18620 char i[sizeof s.t];
18621 enum { j = false, k = true, l = false * true, m = true * 256 };
18622 /* The following fails for
18623 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
18624 _Bool n[m];
18625 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
18626 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
18627 /* Catch a bug in an HP-UX C compiler. See
18628 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
18629 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
18631 _Bool q = true;
18632 _Bool *pq = &q;
18635 main ()
18638 bool e = &s;
18639 *pq |= q;
18640 *pq |= ! q;
18641 /* Refer to every declared value, to avoid compiler optimizations. */
18642 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
18643 + !m + !n + !o + !p + !q + !pq);
18646 return 0;
18648 _ACEOF
18649 if ac_fn_c_try_compile "$LINENO"; then :
18650 ac_cv_header_stdbool_h=yes
18651 else
18652 ac_cv_header_stdbool_h=no
18654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
18657 $as_echo "$ac_cv_header_stdbool_h" >&6; }
18658 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
18659 if test "x$ac_cv_type__Bool" = x""yes; then :
18661 cat >>confdefs.h <<_ACEOF
18662 #define HAVE__BOOL 1
18663 _ACEOF
18670 REPLACE_NULL=0;
18671 HAVE_WCHAR_T=1;
18674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
18675 $as_echo_n "checking for wchar_t... " >&6; }
18676 if test "${gt_cv_c_wchar_t+set}" = set; then :
18677 $as_echo_n "(cached) " >&6
18678 else
18679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18680 /* end confdefs.h. */
18681 #include <stddef.h>
18682 wchar_t foo = (wchar_t)'\0';
18684 main ()
18688 return 0;
18690 _ACEOF
18691 if ac_fn_c_try_compile "$LINENO"; then :
18692 gt_cv_c_wchar_t=yes
18693 else
18694 gt_cv_c_wchar_t=no
18696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
18699 $as_echo "$gt_cv_c_wchar_t" >&6; }
18700 if test $gt_cv_c_wchar_t = yes; then
18702 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
18707 GNULIB_DPRINTF=0;
18708 GNULIB_FCLOSE=0;
18709 GNULIB_FDOPEN=0;
18710 GNULIB_FFLUSH=0;
18711 GNULIB_FGETC=0;
18712 GNULIB_FGETS=0;
18713 GNULIB_FOPEN=0;
18714 GNULIB_FPRINTF=0;
18715 GNULIB_FPRINTF_POSIX=0;
18716 GNULIB_FPURGE=0;
18717 GNULIB_FPUTC=0;
18718 GNULIB_FPUTS=0;
18719 GNULIB_FREAD=0;
18720 GNULIB_FREOPEN=0;
18721 GNULIB_FSCANF=0;
18722 GNULIB_FSEEK=0;
18723 GNULIB_FSEEKO=0;
18724 GNULIB_FTELL=0;
18725 GNULIB_FTELLO=0;
18726 GNULIB_FWRITE=0;
18727 GNULIB_GETC=0;
18728 GNULIB_GETCHAR=0;
18729 GNULIB_GETDELIM=0;
18730 GNULIB_GETLINE=0;
18731 GNULIB_OBSTACK_PRINTF=0;
18732 GNULIB_OBSTACK_PRINTF_POSIX=0;
18733 GNULIB_PCLOSE=0;
18734 GNULIB_PERROR=0;
18735 GNULIB_POPEN=0;
18736 GNULIB_PRINTF=0;
18737 GNULIB_PRINTF_POSIX=0;
18738 GNULIB_PUTC=0;
18739 GNULIB_PUTCHAR=0;
18740 GNULIB_PUTS=0;
18741 GNULIB_REMOVE=0;
18742 GNULIB_RENAME=0;
18743 GNULIB_RENAMEAT=0;
18744 GNULIB_SCANF=0;
18745 GNULIB_SNPRINTF=0;
18746 GNULIB_SPRINTF_POSIX=0;
18747 GNULIB_STDIO_H_NONBLOCKING=0;
18748 GNULIB_STDIO_H_SIGPIPE=0;
18749 GNULIB_TMPFILE=0;
18750 GNULIB_VASPRINTF=0;
18751 GNULIB_VFSCANF=0;
18752 GNULIB_VSCANF=0;
18753 GNULIB_VDPRINTF=0;
18754 GNULIB_VFPRINTF=0;
18755 GNULIB_VFPRINTF_POSIX=0;
18756 GNULIB_VPRINTF=0;
18757 GNULIB_VPRINTF_POSIX=0;
18758 GNULIB_VSNPRINTF=0;
18759 GNULIB_VSPRINTF_POSIX=0;
18760 HAVE_DECL_FPURGE=1;
18761 HAVE_DECL_FSEEKO=1;
18762 HAVE_DECL_FTELLO=1;
18763 HAVE_DECL_GETDELIM=1;
18764 HAVE_DECL_GETLINE=1;
18765 HAVE_DECL_OBSTACK_PRINTF=1;
18766 HAVE_DECL_SNPRINTF=1;
18767 HAVE_DECL_VSNPRINTF=1;
18768 HAVE_DPRINTF=1;
18769 HAVE_FSEEKO=1;
18770 HAVE_FTELLO=1;
18771 HAVE_PCLOSE=1;
18772 HAVE_POPEN=1;
18773 HAVE_RENAMEAT=1;
18774 HAVE_VASPRINTF=1;
18775 HAVE_VDPRINTF=1;
18776 REPLACE_DPRINTF=0;
18777 REPLACE_FCLOSE=0;
18778 REPLACE_FDOPEN=0;
18779 REPLACE_FFLUSH=0;
18780 REPLACE_FOPEN=0;
18781 REPLACE_FPRINTF=0;
18782 REPLACE_FPURGE=0;
18783 REPLACE_FREOPEN=0;
18784 REPLACE_FSEEK=0;
18785 REPLACE_FSEEKO=0;
18786 REPLACE_FTELL=0;
18787 REPLACE_FTELLO=0;
18788 REPLACE_GETDELIM=0;
18789 REPLACE_GETLINE=0;
18790 REPLACE_OBSTACK_PRINTF=0;
18791 REPLACE_PERROR=0;
18792 REPLACE_POPEN=0;
18793 REPLACE_PRINTF=0;
18794 REPLACE_REMOVE=0;
18795 REPLACE_RENAME=0;
18796 REPLACE_RENAMEAT=0;
18797 REPLACE_SNPRINTF=0;
18798 REPLACE_SPRINTF=0;
18799 REPLACE_STDIO_READ_FUNCS=0;
18800 REPLACE_STDIO_WRITE_FUNCS=0;
18801 REPLACE_TMPFILE=0;
18802 REPLACE_VASPRINTF=0;
18803 REPLACE_VDPRINTF=0;
18804 REPLACE_VFPRINTF=0;
18805 REPLACE_VPRINTF=0;
18806 REPLACE_VSNPRINTF=0;
18807 REPLACE_VSPRINTF=0;
18809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
18810 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
18811 if test "${ac_cv_struct_tm+set}" = set; then :
18812 $as_echo_n "(cached) " >&6
18813 else
18814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18815 /* end confdefs.h. */
18816 #include <sys/types.h>
18817 #include <time.h>
18820 main ()
18822 struct tm tm;
18823 int *p = &tm.tm_sec;
18824 return !p;
18826 return 0;
18828 _ACEOF
18829 if ac_fn_c_try_compile "$LINENO"; then :
18830 ac_cv_struct_tm=time.h
18831 else
18832 ac_cv_struct_tm=sys/time.h
18834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
18837 $as_echo "$ac_cv_struct_tm" >&6; }
18838 if test $ac_cv_struct_tm = sys/time.h; then
18840 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
18844 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
18845 #include <$ac_cv_struct_tm>
18848 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
18850 cat >>confdefs.h <<_ACEOF
18851 #define HAVE_STRUCT_TM_TM_ZONE 1
18852 _ACEOF
18857 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
18859 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
18861 else
18862 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
18864 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
18865 ac_have_decl=1
18866 else
18867 ac_have_decl=0
18870 cat >>confdefs.h <<_ACEOF
18871 #define HAVE_DECL_TZNAME $ac_have_decl
18872 _ACEOF
18874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
18875 $as_echo_n "checking for tzname... " >&6; }
18876 if test "${ac_cv_var_tzname+set}" = set; then :
18877 $as_echo_n "(cached) " >&6
18878 else
18879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18880 /* end confdefs.h. */
18881 #include <time.h>
18882 #if !HAVE_DECL_TZNAME
18883 extern char *tzname[];
18884 #endif
18887 main ()
18889 return tzname[0][0];
18891 return 0;
18893 _ACEOF
18894 if ac_fn_c_try_link "$LINENO"; then :
18895 ac_cv_var_tzname=yes
18896 else
18897 ac_cv_var_tzname=no
18899 rm -f core conftest.err conftest.$ac_objext \
18900 conftest$ac_exeext conftest.$ac_ext
18902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
18903 $as_echo "$ac_cv_var_tzname" >&6; }
18904 if test $ac_cv_var_tzname = yes; then
18906 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
18912 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
18914 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then :
18916 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
18925 ac_fn_c_check_decl "$LINENO" "strtoimax" "ac_cv_have_decl_strtoimax" "$ac_includes_default"
18926 if test "x$ac_cv_have_decl_strtoimax" = x""yes; then :
18927 ac_have_decl=1
18928 else
18929 ac_have_decl=0
18932 cat >>confdefs.h <<_ACEOF
18933 #define HAVE_DECL_STRTOIMAX $ac_have_decl
18934 _ACEOF
18938 ac_fn_c_check_decl "$LINENO" "strtoumax" "ac_cv_have_decl_strtoumax" "$ac_includes_default"
18939 if test "x$ac_cv_have_decl_strtoumax" = x""yes; then :
18940 ac_have_decl=1
18941 else
18942 ac_have_decl=0
18945 cat >>confdefs.h <<_ACEOF
18946 #define HAVE_DECL_STRTOUMAX $ac_have_decl
18947 _ACEOF
18951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
18952 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
18953 if test "${ac_cv_header_stat_broken+set}" = set; then :
18954 $as_echo_n "(cached) " >&6
18955 else
18956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18957 /* end confdefs.h. */
18958 #include <sys/types.h>
18959 #include <sys/stat.h>
18961 #if defined S_ISBLK && defined S_IFDIR
18962 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
18963 #endif
18965 #if defined S_ISBLK && defined S_IFCHR
18966 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
18967 #endif
18969 #if defined S_ISLNK && defined S_IFREG
18970 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
18971 #endif
18973 #if defined S_ISSOCK && defined S_IFREG
18974 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
18975 #endif
18977 _ACEOF
18978 if ac_fn_c_try_compile "$LINENO"; then :
18979 ac_cv_header_stat_broken=no
18980 else
18981 ac_cv_header_stat_broken=yes
18983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
18986 $as_echo "$ac_cv_header_stat_broken" >&6; }
18987 if test $ac_cv_header_stat_broken = yes; then
18989 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
18995 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
18996 if test "x$ac_cv_type_mode_t" = x""yes; then :
18998 else
19000 cat >>confdefs.h <<_ACEOF
19001 #define mode_t int
19002 _ACEOF
19006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
19007 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
19008 if test "${ac_cv_c_restrict+set}" = set; then :
19009 $as_echo_n "(cached) " >&6
19010 else
19011 ac_cv_c_restrict=no
19012 # The order here caters to the fact that C++ does not require restrict.
19013 for ac_kw in __restrict __restrict__ _Restrict restrict; do
19014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19015 /* end confdefs.h. */
19016 typedef int * int_ptr;
19017 int foo (int_ptr $ac_kw ip) {
19018 return ip[0];
19021 main ()
19023 int s[1];
19024 int * $ac_kw t = s;
19025 t[0] = 0;
19026 return foo(t)
19028 return 0;
19030 _ACEOF
19031 if ac_fn_c_try_compile "$LINENO"; then :
19032 ac_cv_c_restrict=$ac_kw
19034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19035 test "$ac_cv_c_restrict" != no && break
19036 done
19039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
19040 $as_echo "$ac_cv_c_restrict" >&6; }
19042 case $ac_cv_c_restrict in
19043 restrict) ;;
19044 no) $as_echo "#define restrict /**/" >>confdefs.h
19046 *) cat >>confdefs.h <<_ACEOF
19047 #define restrict $ac_cv_c_restrict
19048 _ACEOF
19050 esac
19056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
19057 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
19058 if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then :
19059 $as_echo_n "(cached) " >&6
19060 else
19061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19062 /* end confdefs.h. */
19063 #include <time.h>
19066 main ()
19068 static struct timespec x; x.tv_sec = x.tv_nsec;
19070 return 0;
19072 _ACEOF
19073 if ac_fn_c_try_compile "$LINENO"; then :
19074 gl_cv_sys_struct_timespec_in_time_h=yes
19075 else
19076 gl_cv_sys_struct_timespec_in_time_h=no
19078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
19081 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
19083 TIME_H_DEFINES_STRUCT_TIMESPEC=0
19084 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
19085 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
19086 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
19087 TIME_H_DEFINES_STRUCT_TIMESPEC=1
19088 else
19089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
19090 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
19091 if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then :
19092 $as_echo_n "(cached) " >&6
19093 else
19094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19095 /* end confdefs.h. */
19096 #include <sys/time.h>
19099 main ()
19101 static struct timespec x; x.tv_sec = x.tv_nsec;
19103 return 0;
19105 _ACEOF
19106 if ac_fn_c_try_compile "$LINENO"; then :
19107 gl_cv_sys_struct_timespec_in_sys_time_h=yes
19108 else
19109 gl_cv_sys_struct_timespec_in_sys_time_h=no
19111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
19114 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
19115 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
19116 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
19117 else
19118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
19119 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
19120 if test "${gl_cv_sys_struct_timespec_in_pthread_h+set}" = set; then :
19121 $as_echo_n "(cached) " >&6
19122 else
19123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19124 /* end confdefs.h. */
19125 #include <pthread.h>
19128 main ()
19130 static struct timespec x; x.tv_sec = x.tv_nsec;
19132 return 0;
19134 _ACEOF
19135 if ac_fn_c_try_compile "$LINENO"; then :
19136 gl_cv_sys_struct_timespec_in_pthread_h=yes
19137 else
19138 gl_cv_sys_struct_timespec_in_pthread_h=no
19140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
19143 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
19144 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
19145 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
19164 if test $gl_cv_have_include_next = yes; then
19165 gl_cv_next_time_h='<'time.h'>'
19166 else
19167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
19168 $as_echo_n "checking absolute name of <time.h>... " >&6; }
19169 if test "${gl_cv_next_time_h+set}" = set; then :
19170 $as_echo_n "(cached) " >&6
19171 else
19173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19174 /* end confdefs.h. */
19175 #include <time.h>
19177 _ACEOF
19178 case "$host_os" in
19179 aix*) gl_absname_cpp="$ac_cpp -C" ;;
19180 *) gl_absname_cpp="$ac_cpp" ;;
19181 esac
19183 case "$host_os" in
19184 mingw*)
19185 gl_dirsep_regex='[/\\]'
19188 gl_dirsep_regex='/'
19190 esac
19192 gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'time.h|{
19193 s|.*"\(.*'"${gl_dirsep_regex}"'time.h\)".*|\1|
19194 s|^/[^/]|//&|
19198 gl_cv_next_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19199 sed -n "$gl_absolute_header_sed"`'"'
19203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
19204 $as_echo "$gl_cv_next_time_h" >&6; }
19206 NEXT_TIME_H=$gl_cv_next_time_h
19208 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
19209 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19210 gl_next_as_first_directive='<'time.h'>'
19211 else
19212 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19213 gl_next_as_first_directive=$gl_cv_next_time_h
19215 NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
19222 ac_fn_c_check_decl "$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "$ac_includes_default"
19223 if test "x$ac_cv_have_decl_localtime_r" = x""yes; then :
19224 ac_have_decl=1
19225 else
19226 ac_have_decl=0
19229 cat >>confdefs.h <<_ACEOF
19230 #define HAVE_DECL_LOCALTIME_R $ac_have_decl
19231 _ACEOF
19236 if false; then
19237 GL_COND_LIBTOOL_TRUE=
19238 GL_COND_LIBTOOL_FALSE='#'
19239 else
19240 GL_COND_LIBTOOL_TRUE='#'
19241 GL_COND_LIBTOOL_FALSE=
19244 gl_cond_libtool=false
19245 gl_libdeps=
19246 gl_ltlibdeps=
19247 gl_m4_base='m4'
19257 gl_source_base='lib'
19260 if test $ac_cv_func_alloca_works = no; then
19264 # Define an additional variable used in the Makefile substitution.
19265 if test $ac_cv_working_alloca_h = yes; then
19266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
19267 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
19268 if test "${gl_cv_rpl_alloca+set}" = set; then :
19269 $as_echo_n "(cached) " >&6
19270 else
19272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19273 /* end confdefs.h. */
19275 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
19276 Need own alloca
19277 #endif
19279 _ACEOF
19280 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19281 $EGREP "Need own alloca" >/dev/null 2>&1; then :
19282 gl_cv_rpl_alloca=yes
19283 else
19284 gl_cv_rpl_alloca=no
19286 rm -f conftest*
19290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
19291 $as_echo "$gl_cv_rpl_alloca" >&6; }
19292 if test $gl_cv_rpl_alloca = yes; then
19294 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
19296 ALLOCA_H=alloca.h
19297 else
19298 ALLOCA_H=
19300 else
19301 ALLOCA_H=alloca.h
19304 if test -n "$ALLOCA_H"; then
19305 GL_GENERATE_ALLOCA_H_TRUE=
19306 GL_GENERATE_ALLOCA_H_FALSE='#'
19307 else
19308 GL_GENERATE_ALLOCA_H_TRUE='#'
19309 GL_GENERATE_ALLOCA_H_FALSE=
19338 $as_echo "#define HAVE_DUP2 1" >>confdefs.h
19341 if test $HAVE_DUP2 = 1; then
19342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5
19343 $as_echo_n "checking whether dup2 works... " >&6; }
19344 if test "${gl_cv_func_dup2_works+set}" = set; then :
19345 $as_echo_n "(cached) " >&6
19346 else
19347 if test "$cross_compiling" = yes; then :
19348 case "$host_os" in
19349 mingw*) # on this platform, dup2 always returns 0 for success
19350 gl_cv_func_dup2_works=no;;
19351 cygwin*) # on cygwin 1.5.x, dup2(1,1) returns 0
19352 gl_cv_func_dup2_works=no;;
19353 linux*) # On linux between 2008-07-27 and 2009-05-11, dup2 of a
19354 # closed fd may yield -EBADF instead of -1 / errno=EBADF.
19355 gl_cv_func_dup2_works=no;;
19356 freebsd*) # on FreeBSD 6.1, dup2(1,1000000) gives EMFILE, not EBADF.
19357 gl_cv_func_dup2_works=no;;
19358 haiku*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC.
19359 gl_cv_func_dup2_works=no;;
19360 *) gl_cv_func_dup2_works=yes;;
19361 esac
19362 else
19363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19364 /* end confdefs.h. */
19366 #include <unistd.h>
19367 #include <fcntl.h>
19368 #include <errno.h>
19370 main ()
19372 int result = 0;
19373 #ifdef FD_CLOEXEC
19374 if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1)
19375 result |= 1;
19376 #endif
19377 if (dup2 (1, 1) == 0)
19378 result |= 2;
19379 #ifdef FD_CLOEXEC
19380 if (fcntl (1, F_GETFD) != FD_CLOEXEC)
19381 result |= 4;
19382 #endif
19383 close (0);
19384 if (dup2 (0, 0) != -1)
19385 result |= 8;
19386 /* Many gnulib modules require POSIX conformance of EBADF. */
19387 if (dup2 (2, 1000000) == -1 && errno != EBADF)
19388 result |= 16;
19389 return result;
19392 return 0;
19395 _ACEOF
19396 if ac_fn_c_try_run "$LINENO"; then :
19397 gl_cv_func_dup2_works=yes
19398 else
19399 gl_cv_func_dup2_works=no
19401 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19402 conftest.$ac_objext conftest.beam conftest.$ac_ext
19407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5
19408 $as_echo "$gl_cv_func_dup2_works" >&6; }
19409 if test "$gl_cv_func_dup2_works" = no; then
19410 REPLACE_DUP2=1
19415 if test $HAVE_DUP2 = 0 || test $REPLACE_DUP2 = 1; then
19424 gl_LIBOBJS="$gl_LIBOBJS dup2.$ac_objext"
19433 GNULIB_DUP2=1
19445 # Persuade glibc <stdlib.h> to declare getloadavg().
19448 gl_save_LIBS=$LIBS
19450 # getloadvg is present in libc on glibc >= 2.2, MacOS X, FreeBSD >= 2.0,
19451 # NetBSD >= 0.9, OpenBSD >= 2.0, Solaris >= 7.
19452 HAVE_GETLOADAVG=1
19453 ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
19454 if test "x$ac_cv_func_getloadavg" = x""yes; then :
19456 else
19457 gl_func_getloadavg_done=no
19459 # Some systems with -lutil have (and need) -lkvm as well, some do not.
19460 # On Solaris, -lkvm requires nlist from -lelf, so check that first
19461 # to get the right answer into the cache.
19462 # For kstat on solaris, we need to test for libelf and libkvm to force the
19463 # definition of SVR4 below.
19464 if test $gl_func_getloadavg_done = no; then
19465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
19466 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
19467 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then :
19468 $as_echo_n "(cached) " >&6
19469 else
19470 ac_check_lib_save_LIBS=$LIBS
19471 LIBS="-lelf $LIBS"
19472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19473 /* end confdefs.h. */
19475 /* Override any GCC internal prototype to avoid an error.
19476 Use char because int might match the return type of a GCC
19477 builtin and then its argument prototype would still apply. */
19478 #ifdef __cplusplus
19479 extern "C"
19480 #endif
19481 char elf_begin ();
19483 main ()
19485 return elf_begin ();
19487 return 0;
19489 _ACEOF
19490 if ac_fn_c_try_link "$LINENO"; then :
19491 ac_cv_lib_elf_elf_begin=yes
19492 else
19493 ac_cv_lib_elf_elf_begin=no
19495 rm -f core conftest.err conftest.$ac_objext \
19496 conftest$ac_exeext conftest.$ac_ext
19497 LIBS=$ac_check_lib_save_LIBS
19499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
19500 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
19501 if test "x$ac_cv_lib_elf_elf_begin" = x""yes; then :
19502 LIBS="-lelf $LIBS"
19505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
19506 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
19507 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
19508 $as_echo_n "(cached) " >&6
19509 else
19510 ac_check_lib_save_LIBS=$LIBS
19511 LIBS="-lkvm $LIBS"
19512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19513 /* end confdefs.h. */
19515 /* Override any GCC internal prototype to avoid an error.
19516 Use char because int might match the return type of a GCC
19517 builtin and then its argument prototype would still apply. */
19518 #ifdef __cplusplus
19519 extern "C"
19520 #endif
19521 char kvm_open ();
19523 main ()
19525 return kvm_open ();
19527 return 0;
19529 _ACEOF
19530 if ac_fn_c_try_link "$LINENO"; then :
19531 ac_cv_lib_kvm_kvm_open=yes
19532 else
19533 ac_cv_lib_kvm_kvm_open=no
19535 rm -f core conftest.err conftest.$ac_objext \
19536 conftest$ac_exeext conftest.$ac_ext
19537 LIBS=$ac_check_lib_save_LIBS
19539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
19540 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
19541 if test "x$ac_cv_lib_kvm_kvm_open" = x""yes; then :
19542 LIBS="-lkvm $LIBS"
19545 # Check for the 4.4BSD definition of getloadavg.
19546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
19547 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
19548 if test "${ac_cv_lib_util_getloadavg+set}" = set; then :
19549 $as_echo_n "(cached) " >&6
19550 else
19551 ac_check_lib_save_LIBS=$LIBS
19552 LIBS="-lutil $LIBS"
19553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19554 /* end confdefs.h. */
19556 /* Override any GCC internal prototype to avoid an error.
19557 Use char because int might match the return type of a GCC
19558 builtin and then its argument prototype would still apply. */
19559 #ifdef __cplusplus
19560 extern "C"
19561 #endif
19562 char getloadavg ();
19564 main ()
19566 return getloadavg ();
19568 return 0;
19570 _ACEOF
19571 if ac_fn_c_try_link "$LINENO"; then :
19572 ac_cv_lib_util_getloadavg=yes
19573 else
19574 ac_cv_lib_util_getloadavg=no
19576 rm -f core conftest.err conftest.$ac_objext \
19577 conftest$ac_exeext conftest.$ac_ext
19578 LIBS=$ac_check_lib_save_LIBS
19580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
19581 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
19582 if test "x$ac_cv_lib_util_getloadavg" = x""yes; then :
19583 LIBS="-lutil $LIBS" gl_func_getloadavg_done=yes
19588 if test $gl_func_getloadavg_done = no; then
19589 # There is a commonly available library for RS/6000 AIX.
19590 # Since it is not a standard part of AIX, it might be installed locally.
19591 gl_getloadavg_LIBS=$LIBS
19592 LIBS="-L/usr/local/lib $LIBS"
19593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
19594 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
19595 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then :
19596 $as_echo_n "(cached) " >&6
19597 else
19598 ac_check_lib_save_LIBS=$LIBS
19599 LIBS="-lgetloadavg $LIBS"
19600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19601 /* end confdefs.h. */
19603 /* Override any GCC internal prototype to avoid an error.
19604 Use char because int might match the return type of a GCC
19605 builtin and then its argument prototype would still apply. */
19606 #ifdef __cplusplus
19607 extern "C"
19608 #endif
19609 char getloadavg ();
19611 main ()
19613 return getloadavg ();
19615 return 0;
19617 _ACEOF
19618 if ac_fn_c_try_link "$LINENO"; then :
19619 ac_cv_lib_getloadavg_getloadavg=yes
19620 else
19621 ac_cv_lib_getloadavg_getloadavg=no
19623 rm -f core conftest.err conftest.$ac_objext \
19624 conftest$ac_exeext conftest.$ac_ext
19625 LIBS=$ac_check_lib_save_LIBS
19627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
19628 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
19629 if test "x$ac_cv_lib_getloadavg_getloadavg" = x""yes; then :
19630 LIBS="-lgetloadavg $LIBS" gl_func_getloadavg_done=yes
19631 else
19632 LIBS=$gl_getloadavg_LIBS
19637 # Set up the replacement function if necessary.
19638 if test $gl_func_getloadavg_done = no; then
19639 HAVE_GETLOADAVG=0
19641 # Solaris has libkstat which does not require root.
19642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
19643 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
19644 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
19645 $as_echo_n "(cached) " >&6
19646 else
19647 ac_check_lib_save_LIBS=$LIBS
19648 LIBS="-lkstat $LIBS"
19649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19650 /* end confdefs.h. */
19652 /* Override any GCC internal prototype to avoid an error.
19653 Use char because int might match the return type of a GCC
19654 builtin and then its argument prototype would still apply. */
19655 #ifdef __cplusplus
19656 extern "C"
19657 #endif
19658 char kstat_open ();
19660 main ()
19662 return kstat_open ();
19664 return 0;
19666 _ACEOF
19667 if ac_fn_c_try_link "$LINENO"; then :
19668 ac_cv_lib_kstat_kstat_open=yes
19669 else
19670 ac_cv_lib_kstat_kstat_open=no
19672 rm -f core conftest.err conftest.$ac_objext \
19673 conftest$ac_exeext conftest.$ac_ext
19674 LIBS=$ac_check_lib_save_LIBS
19676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
19677 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
19678 if test "x$ac_cv_lib_kstat_kstat_open" = x""yes; then :
19679 cat >>confdefs.h <<_ACEOF
19680 #define HAVE_LIBKSTAT 1
19681 _ACEOF
19683 LIBS="-lkstat $LIBS"
19687 test $ac_cv_lib_kstat_kstat_open = yes && gl_func_getloadavg_done=yes
19689 # AIX has libperfstat which does not require root
19690 if test $gl_func_getloadavg_done = no; then
19691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perfstat_cpu_total in -lperfstat" >&5
19692 $as_echo_n "checking for perfstat_cpu_total in -lperfstat... " >&6; }
19693 if test "${ac_cv_lib_perfstat_perfstat_cpu_total+set}" = set; then :
19694 $as_echo_n "(cached) " >&6
19695 else
19696 ac_check_lib_save_LIBS=$LIBS
19697 LIBS="-lperfstat $LIBS"
19698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19699 /* end confdefs.h. */
19701 /* Override any GCC internal prototype to avoid an error.
19702 Use char because int might match the return type of a GCC
19703 builtin and then its argument prototype would still apply. */
19704 #ifdef __cplusplus
19705 extern "C"
19706 #endif
19707 char perfstat_cpu_total ();
19709 main ()
19711 return perfstat_cpu_total ();
19713 return 0;
19715 _ACEOF
19716 if ac_fn_c_try_link "$LINENO"; then :
19717 ac_cv_lib_perfstat_perfstat_cpu_total=yes
19718 else
19719 ac_cv_lib_perfstat_perfstat_cpu_total=no
19721 rm -f core conftest.err conftest.$ac_objext \
19722 conftest$ac_exeext conftest.$ac_ext
19723 LIBS=$ac_check_lib_save_LIBS
19725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_perfstat_perfstat_cpu_total" >&5
19726 $as_echo "$ac_cv_lib_perfstat_perfstat_cpu_total" >&6; }
19727 if test "x$ac_cv_lib_perfstat_perfstat_cpu_total" = x""yes; then :
19728 cat >>confdefs.h <<_ACEOF
19729 #define HAVE_LIBPERFSTAT 1
19730 _ACEOF
19732 LIBS="-lperfstat $LIBS"
19736 test $ac_cv_lib_perfstat_perfstat_cpu_total = yes && gl_func_getloadavg_done=yes
19739 if test $gl_func_getloadavg_done = no; then
19740 ac_fn_c_check_header_mongrel "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
19741 if test "x$ac_cv_header_sys_dg_sys_info_h" = x""yes; then :
19742 gl_func_getloadavg_done=yes
19744 $as_echo "#define DGUX 1" >>confdefs.h
19746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
19747 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
19748 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then :
19749 $as_echo_n "(cached) " >&6
19750 else
19751 ac_check_lib_save_LIBS=$LIBS
19752 LIBS="-ldgc $LIBS"
19753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19754 /* end confdefs.h. */
19756 /* Override any GCC internal prototype to avoid an error.
19757 Use char because int might match the return type of a GCC
19758 builtin and then its argument prototype would still apply. */
19759 #ifdef __cplusplus
19760 extern "C"
19761 #endif
19762 char dg_sys_info ();
19764 main ()
19766 return dg_sys_info ();
19768 return 0;
19770 _ACEOF
19771 if ac_fn_c_try_link "$LINENO"; then :
19772 ac_cv_lib_dgc_dg_sys_info=yes
19773 else
19774 ac_cv_lib_dgc_dg_sys_info=no
19776 rm -f core conftest.err conftest.$ac_objext \
19777 conftest$ac_exeext conftest.$ac_ext
19778 LIBS=$ac_check_lib_save_LIBS
19780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
19781 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
19782 if test "x$ac_cv_lib_dgc_dg_sys_info" = x""yes; then :
19783 cat >>confdefs.h <<_ACEOF
19784 #define HAVE_LIBDGC 1
19785 _ACEOF
19787 LIBS="-ldgc $LIBS"
19799 if test "x$gl_save_LIBS" = x; then
19800 GETLOADAVG_LIBS=$LIBS
19801 else
19802 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$gl_save_LIBS!!"`
19804 LIBS=$gl_save_LIBS
19807 # Test whether the system declares getloadavg. Solaris has the function
19808 # but declares it in <sys/loadavg.h>, not <stdlib.h>.
19809 for ac_header in sys/loadavg.h
19810 do :
19811 ac_fn_c_check_header_mongrel "$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default"
19812 if test "x$ac_cv_header_sys_loadavg_h" = x""yes; then :
19813 cat >>confdefs.h <<_ACEOF
19814 #define HAVE_SYS_LOADAVG_H 1
19815 _ACEOF
19819 done
19821 if test $ac_cv_header_sys_loadavg_h = yes; then
19822 HAVE_SYS_LOADAVG_H=1
19823 else
19824 HAVE_SYS_LOADAVG_H=0
19826 ac_fn_c_check_decl "$LINENO" "getloadavg" "ac_cv_have_decl_getloadavg" "#if HAVE_SYS_LOADAVG_H
19827 # include <sys/loadavg.h>
19828 #endif
19829 #include <stdlib.h>
19831 if test "x$ac_cv_have_decl_getloadavg" = x""yes; then :
19833 else
19834 HAVE_DECL_GETLOADAVG=0
19838 if test $HAVE_GETLOADAVG = 0; then
19847 gl_LIBOBJS="$gl_LIBOBJS getloadavg.$ac_objext"
19850 # Figure out what our getloadavg.c needs.
19852 # On HPUX9, an unprivileged user can get load averages this way.
19853 if test $gl_func_getloadavg_done = no; then
19854 for ac_func in pstat_getdynamic
19855 do :
19856 ac_fn_c_check_func "$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
19857 if test "x$ac_cv_func_pstat_getdynamic" = x""yes; then :
19858 cat >>confdefs.h <<_ACEOF
19859 #define HAVE_PSTAT_GETDYNAMIC 1
19860 _ACEOF
19861 gl_func_getloadavg_done=yes
19863 done
19867 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
19868 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
19869 # Irix 4.0.5F has the header but not the library.
19870 if test $gl_func_getloadavg_done = no && test "$ac_cv_lib_elf_elf_begin" = yes \
19871 && test "$ac_cv_lib_kvm_kvm_open" = yes; then
19872 gl_func_getloadavg_done=yes
19874 $as_echo "#define SVR4 1" >>confdefs.h
19878 if test $gl_func_getloadavg_done = no; then
19879 ac_fn_c_check_header_mongrel "$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
19880 if test "x$ac_cv_header_inq_stats_cpustats_h" = x""yes; then :
19881 gl_func_getloadavg_done=yes
19883 $as_echo "#define UMAX 1" >>confdefs.h
19886 $as_echo "#define UMAX4_3 1" >>confdefs.h
19893 if test $gl_func_getloadavg_done = no; then
19894 ac_fn_c_check_header_mongrel "$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
19895 if test "x$ac_cv_header_sys_cpustats_h" = x""yes; then :
19896 gl_func_getloadavg_done=yes; $as_echo "#define UMAX 1" >>confdefs.h
19903 if test $gl_func_getloadavg_done = no; then
19904 for ac_header in mach/mach.h
19905 do :
19906 ac_fn_c_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
19907 if test "x$ac_cv_header_mach_mach_h" = x""yes; then :
19908 cat >>confdefs.h <<_ACEOF
19909 #define HAVE_MACH_MACH_H 1
19910 _ACEOF
19914 done
19918 for ac_header in nlist.h
19919 do :
19920 ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
19921 if test "x$ac_cv_header_nlist_h" = x""yes; then :
19922 cat >>confdefs.h <<_ACEOF
19923 #define HAVE_NLIST_H 1
19924 _ACEOF
19925 ac_fn_c_check_member "$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
19927 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x""yes; then :
19929 cat >>confdefs.h <<_ACEOF
19930 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
19931 _ACEOF
19936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19937 /* end confdefs.h. */
19938 #include <nlist.h>
19940 main ()
19942 struct nlist x;
19943 #ifdef HAVE_STRUCT_NLIST_N_UN_N_NAME
19944 x.n_un.n_name = "";
19945 #else
19946 x.n_name = "";
19947 #endif
19949 return 0;
19951 _ACEOF
19952 if ac_fn_c_try_link "$LINENO"; then :
19954 $as_echo "#define N_NAME_POINTER 1" >>confdefs.h
19957 rm -f core conftest.err conftest.$ac_objext \
19958 conftest$ac_exeext conftest.$ac_ext
19962 done
19970 GNULIB_GETLOADAVG=1
19981 if test $REPLACE_GETOPT = 1; then
19990 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
20000 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
20011 REPLACE_GETOPT=0
20014 if test -n "$gl_replace_getopt"; then :
20016 REPLACE_GETOPT=1
20021 if test $REPLACE_GETOPT = 1; then
20023 GETOPT_H=getopt.h
20025 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
20029 GNULIB_UNISTD_H_GETOPT=1
20032 if test $REPLACE_GETOPT = 1; then
20041 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
20051 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
20062 if test $ac_cv_func_lstat = yes; then
20064 if test $gl_cv_func_lstat_dereferences_slashed_symlink = no; then
20065 REPLACE_LSTAT=1
20067 else
20068 HAVE_LSTAT=0
20071 if test $REPLACE_LSTAT = 1; then
20080 gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext"
20092 GNULIB_LSTAT=1
20104 if test $APPLE_UNIVERSAL_BUILD = 1; then
20105 # A universal build on Apple MacOS X platforms.
20106 # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode.
20107 # But we need a configuration result that is valid in both modes.
20108 gl_cv_func_working_mktime=no
20110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
20111 $as_echo_n "checking for working mktime... " >&6; }
20112 if test "${gl_cv_func_working_mktime+set}" = set; then :
20113 $as_echo_n "(cached) " >&6
20114 else
20115 if test "$cross_compiling" = yes; then :
20116 gl_cv_func_working_mktime=no
20117 else
20118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20119 /* end confdefs.h. */
20120 /* Test program from Paul Eggert and Tony Leneis. */
20121 #include <limits.h>
20122 #include <stdlib.h>
20123 #include <time.h>
20125 #ifdef HAVE_UNISTD_H
20126 # include <unistd.h>
20127 #endif
20129 #ifndef HAVE_ALARM
20130 # define alarm(X) /* empty */
20131 #endif
20133 /* Work around redefinition to rpl_putenv by other config tests. */
20134 #undef putenv
20136 static time_t time_t_max;
20137 static time_t time_t_min;
20139 /* Values we'll use to set the TZ environment variable. */
20140 static char *tz_strings[] = {
20141 (char *) 0, "TZ=GMT0", "TZ=JST-9",
20142 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
20144 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
20146 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
20147 Based on a problem report from Andreas Jaeger. */
20148 static int
20149 spring_forward_gap ()
20151 /* glibc (up to about 1998-10-07) failed this test. */
20152 struct tm tm;
20154 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
20155 instead of "TZ=America/Vancouver" in order to detect the bug even
20156 on systems that don't support the Olson extension, or don't have the
20157 full zoneinfo tables installed. */
20158 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
20160 tm.tm_year = 98;
20161 tm.tm_mon = 3;
20162 tm.tm_mday = 5;
20163 tm.tm_hour = 2;
20164 tm.tm_min = 0;
20165 tm.tm_sec = 0;
20166 tm.tm_isdst = -1;
20167 return mktime (&tm) != (time_t) -1;
20170 static int
20171 mktime_test1 (time_t now)
20173 struct tm *lt;
20174 return ! (lt = localtime (&now)) || mktime (lt) == now;
20177 static int
20178 mktime_test (time_t now)
20180 return (mktime_test1 (now)
20181 && mktime_test1 ((time_t) (time_t_max - now))
20182 && mktime_test1 ((time_t) (time_t_min + now)));
20185 static int
20186 irix_6_4_bug ()
20188 /* Based on code from Ariel Faigon. */
20189 struct tm tm;
20190 tm.tm_year = 96;
20191 tm.tm_mon = 3;
20192 tm.tm_mday = 0;
20193 tm.tm_hour = 0;
20194 tm.tm_min = 0;
20195 tm.tm_sec = 0;
20196 tm.tm_isdst = -1;
20197 mktime (&tm);
20198 return tm.tm_mon == 2 && tm.tm_mday == 31;
20201 static int
20202 bigtime_test (int j)
20204 struct tm tm;
20205 time_t now;
20206 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
20207 now = mktime (&tm);
20208 if (now != (time_t) -1)
20210 struct tm *lt = localtime (&now);
20211 if (! (lt
20212 && lt->tm_year == tm.tm_year
20213 && lt->tm_mon == tm.tm_mon
20214 && lt->tm_mday == tm.tm_mday
20215 && lt->tm_hour == tm.tm_hour
20216 && lt->tm_min == tm.tm_min
20217 && lt->tm_sec == tm.tm_sec
20218 && lt->tm_yday == tm.tm_yday
20219 && lt->tm_wday == tm.tm_wday
20220 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
20221 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
20222 return 0;
20224 return 1;
20227 static int
20228 year_2050_test ()
20230 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
20231 ignoring leap seconds. */
20232 unsigned long int answer = 2527315200UL;
20234 struct tm tm;
20235 time_t t;
20236 tm.tm_year = 2050 - 1900;
20237 tm.tm_mon = 2 - 1;
20238 tm.tm_mday = 1;
20239 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
20240 tm.tm_isdst = -1;
20242 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
20243 instead of "TZ=America/Vancouver" in order to detect the bug even
20244 on systems that don't support the Olson extension, or don't have the
20245 full zoneinfo tables installed. */
20246 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
20248 t = mktime (&tm);
20250 /* Check that the result is either a failure, or close enough
20251 to the correct answer that we can assume the discrepancy is
20252 due to leap seconds. */
20253 return (t == (time_t) -1
20254 || (0 < t && answer - 120 <= t && t <= answer + 120));
20258 main ()
20260 int result = 0;
20261 time_t t, delta;
20262 int i, j;
20263 int time_t_signed_magnitude = (time_t) ~ (time_t) 0 < (time_t) -1;
20264 int time_t_signed = ! ((time_t) 0 < (time_t) -1);
20266 /* This test makes some buggy mktime implementations loop.
20267 Give up after 60 seconds; a mktime slower than that
20268 isn't worth using anyway. */
20269 alarm (60);
20271 time_t_max = (! time_t_signed
20272 ? (time_t) -1
20273 : ((((time_t) 1 << (sizeof (time_t) * CHAR_BIT - 2)) - 1)
20274 * 2 + 1));
20275 time_t_min = (! time_t_signed
20276 ? (time_t) 0
20277 : time_t_signed_magnitude
20278 ? ~ (time_t) 0
20279 : ~ time_t_max);
20281 delta = time_t_max / 997; /* a suitable prime number */
20282 for (i = 0; i < N_STRINGS; i++)
20284 if (tz_strings[i])
20285 putenv (tz_strings[i]);
20287 for (t = 0; t <= time_t_max - delta; t += delta)
20288 if (! mktime_test (t))
20289 result |= 1;
20290 if (! (mktime_test ((time_t) 1)
20291 && mktime_test ((time_t) (60 * 60))
20292 && mktime_test ((time_t) (60 * 60 * 24))))
20293 result |= 2;
20295 for (j = 1; ; j <<= 1)
20296 if (! bigtime_test (j))
20297 result |= 4;
20298 else if (INT_MAX / 2 < j)
20299 break;
20300 if (! bigtime_test (INT_MAX))
20301 result |= 8;
20303 if (! irix_6_4_bug ())
20304 result |= 16;
20305 if (! spring_forward_gap ())
20306 result |= 32;
20307 if (! year_2050_test ())
20308 result |= 64;
20309 return result;
20311 _ACEOF
20312 if ac_fn_c_try_run "$LINENO"; then :
20313 gl_cv_func_working_mktime=yes
20314 else
20315 gl_cv_func_working_mktime=no
20317 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20318 conftest.$ac_objext conftest.beam conftest.$ac_ext
20323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_mktime" >&5
20324 $as_echo "$gl_cv_func_working_mktime" >&6; }
20326 if test $gl_cv_func_working_mktime = no; then
20327 REPLACE_MKTIME=1
20328 else
20329 REPLACE_MKTIME=0
20332 if test $REPLACE_MKTIME = 1; then
20341 gl_LIBOBJS="$gl_LIBOBJS mktime.$ac_objext"
20352 GNULIB_MKTIME=1
20361 LIB_PTHREAD_SIGMASK=
20364 if test $ac_cv_func_pthread_sigmask = yes; then
20366 else
20367 HAVE_PTHREAD_SIGMASK=0
20368 REPLACE_PTHREAD_SIGMASK=1
20374 if test $HAVE_PTHREAD_SIGMASK = 1; then
20377 if test -z "$LIB_PTHREAD_SIGMASK"; then
20378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask works without -lpthread" >&5
20379 $as_echo_n "checking whether pthread_sigmask works without -lpthread... " >&6; }
20380 if test "${gl_cv_func_pthread_sigmask_in_libc_works+set}" = set; then :
20381 $as_echo_n "(cached) " >&6
20382 else
20384 if test "$cross_compiling" = yes; then :
20386 case "$host_os" in
20387 freebsd* | hpux* | solaris | solaris2.[2-9]*)
20388 gl_cv_func_pthread_sigmask_in_libc_works="guessing no";;
20390 gl_cv_func_pthread_sigmask_in_libc_works="guessing yes";;
20391 esac
20393 else
20394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20395 /* end confdefs.h. */
20397 #include <pthread.h>
20398 #include <signal.h>
20399 #include <stddef.h>
20400 int main ()
20402 sigset_t set;
20403 sigemptyset (&set);
20404 return pthread_sigmask (1729, &set, NULL) != 0;
20406 _ACEOF
20407 if ac_fn_c_try_run "$LINENO"; then :
20408 gl_cv_func_pthread_sigmask_in_libc_works=no
20409 else
20410 gl_cv_func_pthread_sigmask_in_libc_works=yes
20412 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20413 conftest.$ac_objext conftest.beam conftest.$ac_ext
20418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_in_libc_works" >&5
20419 $as_echo "$gl_cv_func_pthread_sigmask_in_libc_works" >&6; }
20420 case "$gl_cv_func_pthread_sigmask_in_libc_works" in
20421 *no)
20422 REPLACE_PTHREAD_SIGMASK=1
20424 $as_echo "#define PTHREAD_SIGMASK_INEFFECTIVE 1" >>confdefs.h
20427 esac
20430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask returns error numbers" >&5
20431 $as_echo_n "checking whether pthread_sigmask returns error numbers... " >&6; }
20432 if test "${gl_cv_func_pthread_sigmask_return_works+set}" = set; then :
20433 $as_echo_n "(cached) " >&6
20434 else
20436 gl_save_LIBS="$LIBS"
20437 LIBS="$LIBS $LIB_PTHREAD_SIGMASK"
20438 if test "$cross_compiling" = yes; then :
20439 case "$host_os" in
20440 cygwin*)
20441 gl_cv_func_pthread_sigmask_return_works="guessing no";;
20443 gl_cv_func_pthread_sigmask_return_works="guessing yes";;
20444 esac
20446 else
20447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20448 /* end confdefs.h. */
20450 #include <pthread.h>
20451 #include <signal.h>
20452 #include <stddef.h>
20453 int main ()
20455 sigset_t set;
20456 sigemptyset (&set);
20457 if (pthread_sigmask (1729, &set, NULL) == -1)
20458 return 1;
20459 return 0;
20461 _ACEOF
20462 if ac_fn_c_try_run "$LINENO"; then :
20463 gl_cv_func_pthread_sigmask_return_works=yes
20464 else
20465 gl_cv_func_pthread_sigmask_return_works=no
20467 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20468 conftest.$ac_objext conftest.beam conftest.$ac_ext
20471 LIBS="$gl_save_LIBS"
20474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_return_works" >&5
20475 $as_echo "$gl_cv_func_pthread_sigmask_return_works" >&6; }
20476 case "$gl_cv_func_pthread_sigmask_return_works" in
20477 *no)
20478 REPLACE_PTHREAD_SIGMASK=1
20480 $as_echo "#define PTHREAD_SIGMASK_FAILS_WITH_ERRNO 1" >>confdefs.h
20483 esac
20485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask unblocks signals correctly" >&5
20486 $as_echo_n "checking whether pthread_sigmask unblocks signals correctly... " >&6; }
20487 if test "${gl_cv_func_pthread_sigmask_unblock_works+set}" = set; then :
20488 $as_echo_n "(cached) " >&6
20489 else
20491 case "$host_os" in
20492 irix*)
20493 gl_cv_func_pthread_sigmask_unblock_works="guessing no";;
20495 gl_cv_func_pthread_sigmask_unblock_works="guessing yes";;
20496 esac
20497 gl_save_LIBS="$LIBS"
20498 LIBS="$LIBS $LIBMULTITHREAD"
20499 if test "$cross_compiling" = yes; then :
20501 else
20502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20503 /* end confdefs.h. */
20505 #include <pthread.h>
20506 #include <signal.h>
20507 #include <stdio.h>
20508 #include <stdlib.h>
20509 #include <unistd.h>
20510 static volatile int sigint_occurred;
20511 static void
20512 sigint_handler (int sig)
20514 sigint_occurred++;
20516 int main ()
20518 sigset_t set;
20519 int pid = getpid ();
20520 char command[80];
20521 signal (SIGINT, sigint_handler);
20522 sigemptyset (&set);
20523 sigaddset (&set, SIGINT);
20524 if (!(pthread_sigmask (SIG_BLOCK, &set, NULL) == 0))
20525 return 1;
20526 sprintf (command, "sh -c 'sleep 1; kill -%d %d' &", SIGINT, pid);
20527 if (!(system (command) == 0))
20528 return 2;
20529 sleep (2);
20530 if (!(sigint_occurred == 0))
20531 return 3;
20532 if (!(pthread_sigmask (SIG_UNBLOCK, &set, NULL) == 0))
20533 return 4;
20534 if (!(sigint_occurred == 1)) /* This fails on IRIX. */
20535 return 5;
20536 return 0;
20538 _ACEOF
20539 if ac_fn_c_try_run "$LINENO"; then :
20541 else
20542 gl_cv_func_pthread_sigmask_unblock_works=no
20544 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20545 conftest.$ac_objext conftest.beam conftest.$ac_ext
20548 LIBS="$gl_save_LIBS"
20551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_unblock_works" >&5
20552 $as_echo "$gl_cv_func_pthread_sigmask_unblock_works" >&6; }
20553 case "$gl_cv_func_pthread_sigmask_unblock_works" in
20554 *no)
20555 REPLACE_PTHREAD_SIGMASK=1
20557 $as_echo "#define PTHREAD_SIGMASK_UNBLOCK_BUG 1" >>confdefs.h
20560 esac
20563 if test $HAVE_PTHREAD_SIGMASK = 0 || test $REPLACE_PTHREAD_SIGMASK = 1; then
20572 gl_LIBOBJS="$gl_LIBOBJS pthread_sigmask.$ac_objext"
20575 if test $HAVE_PTHREAD_SIGMASK = 1; then
20577 $as_echo "#define HAVE_PTHREAD_SIGMASK 1" >>confdefs.h
20587 GNULIB_PTHREAD_SIGMASK=1
20596 if test $ac_cv_func_readlink = no; then
20597 HAVE_READLINK=0
20598 else
20599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
20600 $as_echo_n "checking whether readlink signature is correct... " >&6; }
20601 if test "${gl_cv_decl_readlink_works+set}" = set; then :
20602 $as_echo_n "(cached) " >&6
20603 else
20604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20605 /* end confdefs.h. */
20606 #include <unistd.h>
20607 /* Cause compilation failure if original declaration has wrong type. */
20608 ssize_t readlink (const char *, char *, size_t);
20610 main ()
20614 return 0;
20616 _ACEOF
20617 if ac_fn_c_try_compile "$LINENO"; then :
20618 gl_cv_decl_readlink_works=yes
20619 else
20620 gl_cv_decl_readlink_works=no
20622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
20625 $as_echo "$gl_cv_decl_readlink_works" >&6; }
20626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
20627 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
20628 if test "${gl_cv_func_readlink_works+set}" = set; then :
20629 $as_echo_n "(cached) " >&6
20630 else
20631 # We have readlink, so assume ln -s works.
20632 ln -s conftest.no-such conftest.link
20633 ln -s conftest.link conftest.lnk2
20634 if test "$cross_compiling" = yes; then :
20635 gl_cv_func_readlink_works="guessing no"
20636 else
20637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20638 /* end confdefs.h. */
20639 #include <unistd.h>
20642 main ()
20644 char buf[20];
20645 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
20647 return 0;
20649 _ACEOF
20650 if ac_fn_c_try_run "$LINENO"; then :
20651 gl_cv_func_readlink_works=yes
20652 else
20653 gl_cv_func_readlink_works=no
20655 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20656 conftest.$ac_objext conftest.beam conftest.$ac_ext
20659 rm -f conftest.link conftest.lnk2
20661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
20662 $as_echo "$gl_cv_func_readlink_works" >&6; }
20663 if test "$gl_cv_func_readlink_works" != yes; then
20665 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
20667 REPLACE_READLINK=1
20668 elif test "$gl_cv_decl_readlink_works" != yes; then
20669 REPLACE_READLINK=1
20673 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
20682 gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
20693 GNULIB_READLINK=1
20710 if test $gl_cv_have_include_next = yes; then
20711 gl_cv_next_signal_h='<'signal.h'>'
20712 else
20713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
20714 $as_echo_n "checking absolute name of <signal.h>... " >&6; }
20715 if test "${gl_cv_next_signal_h+set}" = set; then :
20716 $as_echo_n "(cached) " >&6
20717 else
20719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20720 /* end confdefs.h. */
20721 #include <signal.h>
20723 _ACEOF
20724 case "$host_os" in
20725 aix*) gl_absname_cpp="$ac_cpp -C" ;;
20726 *) gl_absname_cpp="$ac_cpp" ;;
20727 esac
20729 case "$host_os" in
20730 mingw*)
20731 gl_dirsep_regex='[/\\]'
20734 gl_dirsep_regex='/'
20736 esac
20738 gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'signal.h|{
20739 s|.*"\(.*'"${gl_dirsep_regex}"'signal.h\)".*|\1|
20740 s|^/[^/]|//&|
20744 gl_cv_next_signal_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20745 sed -n "$gl_absolute_header_sed"`'"'
20749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
20750 $as_echo "$gl_cv_next_signal_h" >&6; }
20752 NEXT_SIGNAL_H=$gl_cv_next_signal_h
20754 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20755 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20756 gl_next_as_first_directive='<'signal.h'>'
20757 else
20758 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20759 gl_next_as_first_directive=$gl_cv_next_signal_h
20761 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H=$gl_next_as_first_directive
20767 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
20768 # then choke on 'volatile sig_atomic_t'. C99 requires that it compile.
20769 ac_fn_c_check_type "$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
20770 #include <signal.h>
20773 if test "x$ac_cv_type_volatile_sig_atomic_t" = x""yes; then :
20775 else
20776 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=0
20785 ac_fn_c_check_type "$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
20786 #include <signal.h>
20789 if test "x$ac_cv_type_sighandler_t" = x""yes; then :
20791 else
20792 HAVE_SIGHANDLER_T=0
20798 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
20799 /* <sys/types.h> is not needed according to POSIX, but the
20800 <sys/socket.h> in i386-unknown-freebsd4.10 and
20801 powerpc-apple-darwin5.5 required it. */
20802 #include <sys/types.h>
20803 #if HAVE_SYS_SOCKET_H
20804 # include <sys/socket.h>
20805 #elif HAVE_WS2TCPIP_H
20806 # include <ws2tcpip.h>
20807 #endif
20810 if test "x$ac_cv_type_socklen_t" = x""yes; then :
20812 else
20813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
20814 $as_echo_n "checking for socklen_t equivalent... " >&6; }
20815 if test "${gl_cv_socklen_t_equiv+set}" = set; then :
20816 $as_echo_n "(cached) " >&6
20817 else
20818 # Systems have either "struct sockaddr *" or
20819 # "void *" as the second argument to getpeername
20820 gl_cv_socklen_t_equiv=
20821 for arg2 in "struct sockaddr" void; do
20822 for t in int size_t "unsigned int" "long int" "unsigned long int"; do
20823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20824 /* end confdefs.h. */
20825 #include <sys/types.h>
20826 #include <sys/socket.h>
20828 int getpeername (int, $arg2 *, $t *);
20830 main ()
20832 $t len;
20833 getpeername (0, 0, &len);
20835 return 0;
20837 _ACEOF
20838 if ac_fn_c_try_compile "$LINENO"; then :
20839 gl_cv_socklen_t_equiv="$t"
20841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20842 test "$gl_cv_socklen_t_equiv" != "" && break
20843 done
20844 test "$gl_cv_socklen_t_equiv" != "" && break
20845 done
20849 if test "$gl_cv_socklen_t_equiv" = ""; then
20850 as_fn_error "Cannot find a type to use in place of socklen_t" "$LINENO" 5
20852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
20853 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
20855 cat >>confdefs.h <<_ACEOF
20856 #define socklen_t $gl_cv_socklen_t_equiv
20857 _ACEOF
20862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
20863 $as_echo_n "checking for ssize_t... " >&6; }
20864 if test "${gt_cv_ssize_t+set}" = set; then :
20865 $as_echo_n "(cached) " >&6
20866 else
20867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20868 /* end confdefs.h. */
20869 #include <sys/types.h>
20871 main ()
20873 int x = sizeof (ssize_t *) + sizeof (ssize_t);
20874 return !x;
20876 return 0;
20878 _ACEOF
20879 if ac_fn_c_try_compile "$LINENO"; then :
20880 gt_cv_ssize_t=yes
20881 else
20882 gt_cv_ssize_t=no
20884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
20887 $as_echo "$gt_cv_ssize_t" >&6; }
20888 if test $gt_cv_ssize_t = no; then
20890 $as_echo "#define ssize_t int" >>confdefs.h
20895 STDARG_H=''
20896 NEXT_STDARG_H='<stdarg.h>'
20897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
20898 $as_echo_n "checking for va_copy... " >&6; }
20899 if test "${gl_cv_func_va_copy+set}" = set; then :
20900 $as_echo_n "(cached) " >&6
20901 else
20903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20904 /* end confdefs.h. */
20905 #include <stdarg.h>
20907 main ()
20910 #ifndef va_copy
20911 void (*func) (va_list, va_list) = va_copy;
20912 #endif
20915 return 0;
20917 _ACEOF
20918 if ac_fn_c_try_compile "$LINENO"; then :
20919 gl_cv_func_va_copy=yes
20920 else
20921 gl_cv_func_va_copy=no
20923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_va_copy" >&5
20927 $as_echo "$gl_cv_func_va_copy" >&6; }
20928 if test $gl_cv_func_va_copy = no; then
20929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20930 /* end confdefs.h. */
20931 #if defined _AIX && !defined __GNUC__
20932 AIX vaccine
20933 #endif
20935 _ACEOF
20936 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20937 $EGREP "vaccine" >/dev/null 2>&1; then :
20938 gl_aixcc=yes
20939 else
20940 gl_aixcc=no
20942 rm -f conftest*
20944 if test $gl_aixcc = yes; then
20945 STDARG_H=stdarg.h
20954 if test $gl_cv_have_include_next = yes; then
20955 gl_cv_next_stdarg_h='<'stdarg.h'>'
20956 else
20957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdarg.h>" >&5
20958 $as_echo_n "checking absolute name of <stdarg.h>... " >&6; }
20959 if test "${gl_cv_next_stdarg_h+set}" = set; then :
20960 $as_echo_n "(cached) " >&6
20961 else
20963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20964 /* end confdefs.h. */
20965 #include <stdarg.h>
20967 _ACEOF
20968 case "$host_os" in
20969 aix*) gl_absname_cpp="$ac_cpp -C" ;;
20970 *) gl_absname_cpp="$ac_cpp" ;;
20971 esac
20973 case "$host_os" in
20974 mingw*)
20975 gl_dirsep_regex='[/\\]'
20978 gl_dirsep_regex='/'
20980 esac
20982 gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'stdarg.h|{
20983 s|.*"\(.*'"${gl_dirsep_regex}"'stdarg.h\)".*|\1|
20984 s|^/[^/]|//&|
20988 gl_cv_next_stdarg_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20989 sed -n "$gl_absolute_header_sed"`'"'
20993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdarg_h" >&5
20994 $as_echo "$gl_cv_next_stdarg_h" >&6; }
20996 NEXT_STDARG_H=$gl_cv_next_stdarg_h
20998 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20999 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21000 gl_next_as_first_directive='<'stdarg.h'>'
21001 else
21002 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21003 gl_next_as_first_directive=$gl_cv_next_stdarg_h
21005 NEXT_AS_FIRST_DIRECTIVE_STDARG_H=$gl_next_as_first_directive
21010 if test "$gl_cv_next_stdarg_h" = '""'; then
21011 gl_cv_next_stdarg_h='"///usr/include/stdarg.h"'
21012 NEXT_STDARG_H="$gl_cv_next_stdarg_h"
21014 else
21016 saved_as_echo_n="$as_echo_n"
21017 as_echo_n=':'
21018 if test "${gl_cv_func___va_copy+set}" = set; then :
21019 $as_echo_n "(cached) " >&6
21020 else
21022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21023 /* end confdefs.h. */
21024 #include <stdarg.h>
21026 main ()
21029 #ifndef __va_copy
21030 error, bail out
21031 #endif
21034 return 0;
21036 _ACEOF
21037 if ac_fn_c_try_compile "$LINENO"; then :
21038 gl_cv_func___va_copy=yes
21039 else
21040 gl_cv_func___va_copy=no
21042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21045 as_echo_n="$saved_as_echo_n"
21047 if test $gl_cv_func___va_copy = yes; then
21049 $as_echo "#define va_copy __va_copy" >>confdefs.h
21051 else
21054 $as_echo "#define va_copy gl_va_copy" >>confdefs.h
21060 if test -n "$STDARG_H"; then
21061 GL_GENERATE_STDARG_H_TRUE=
21062 GL_GENERATE_STDARG_H_FALSE='#'
21063 else
21064 GL_GENERATE_STDARG_H_TRUE='#'
21065 GL_GENERATE_STDARG_H_FALSE=
21073 # Define two additional variables used in the Makefile substitution.
21075 if test "$ac_cv_header_stdbool_h" = yes; then
21076 STDBOOL_H=''
21077 else
21078 STDBOOL_H='stdbool.h'
21081 if test -n "$STDBOOL_H"; then
21082 GL_GENERATE_STDBOOL_H_TRUE=
21083 GL_GENERATE_STDBOOL_H_FALSE='#'
21084 else
21085 GL_GENERATE_STDBOOL_H_TRUE='#'
21086 GL_GENERATE_STDBOOL_H_FALSE=
21090 if test "$ac_cv_type__Bool" = yes; then
21091 HAVE__BOOL=1
21092 else
21093 HAVE__BOOL=0
21100 STDDEF_H=
21101 if test $gt_cv_c_wchar_t = no; then
21102 HAVE_WCHAR_T=0
21103 STDDEF_H=stddef.h
21105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
21106 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
21107 if test "${gl_cv_decl_null_works+set}" = set; then :
21108 $as_echo_n "(cached) " >&6
21109 else
21110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21111 /* end confdefs.h. */
21112 #include <stddef.h>
21113 int test[2 * (sizeof NULL == sizeof (void *)) -1];
21116 main ()
21120 return 0;
21122 _ACEOF
21123 if ac_fn_c_try_compile "$LINENO"; then :
21124 gl_cv_decl_null_works=yes
21125 else
21126 gl_cv_decl_null_works=no
21128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
21131 $as_echo "$gl_cv_decl_null_works" >&6; }
21132 if test $gl_cv_decl_null_works = no; then
21133 REPLACE_NULL=1
21134 STDDEF_H=stddef.h
21137 if test -n "$STDDEF_H"; then
21138 GL_GENERATE_STDDEF_H_TRUE=
21139 GL_GENERATE_STDDEF_H_FALSE='#'
21140 else
21141 GL_GENERATE_STDDEF_H_TRUE='#'
21142 GL_GENERATE_STDDEF_H_FALSE=
21145 if test -n "$STDDEF_H"; then
21154 if test $gl_cv_have_include_next = yes; then
21155 gl_cv_next_stddef_h='<'stddef.h'>'
21156 else
21157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
21158 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
21159 if test "${gl_cv_next_stddef_h+set}" = set; then :
21160 $as_echo_n "(cached) " >&6
21161 else
21163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21164 /* end confdefs.h. */
21165 #include <stddef.h>
21167 _ACEOF
21168 case "$host_os" in
21169 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21170 *) gl_absname_cpp="$ac_cpp" ;;
21171 esac
21173 case "$host_os" in
21174 mingw*)
21175 gl_dirsep_regex='[/\\]'
21178 gl_dirsep_regex='/'
21180 esac
21182 gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'stddef.h|{
21183 s|.*"\(.*'"${gl_dirsep_regex}"'stddef.h\)".*|\1|
21184 s|^/[^/]|//&|
21188 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21189 sed -n "$gl_absolute_header_sed"`'"'
21193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
21194 $as_echo "$gl_cv_next_stddef_h" >&6; }
21196 NEXT_STDDEF_H=$gl_cv_next_stddef_h
21198 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21199 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21200 gl_next_as_first_directive='<'stddef.h'>'
21201 else
21202 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21203 gl_next_as_first_directive=$gl_cv_next_stddef_h
21205 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
21224 if test $gl_cv_have_include_next = yes; then
21225 gl_cv_next_stdio_h='<'stdio.h'>'
21226 else
21227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
21228 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
21229 if test "${gl_cv_next_stdio_h+set}" = set; then :
21230 $as_echo_n "(cached) " >&6
21231 else
21233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21234 /* end confdefs.h. */
21235 #include <stdio.h>
21237 _ACEOF
21238 case "$host_os" in
21239 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21240 *) gl_absname_cpp="$ac_cpp" ;;
21241 esac
21243 case "$host_os" in
21244 mingw*)
21245 gl_dirsep_regex='[/\\]'
21248 gl_dirsep_regex='/'
21250 esac
21252 gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'stdio.h|{
21253 s|.*"\(.*'"${gl_dirsep_regex}"'stdio.h\)".*|\1|
21254 s|^/[^/]|//&|
21258 gl_cv_next_stdio_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21259 sed -n "$gl_absolute_header_sed"`'"'
21263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
21264 $as_echo "$gl_cv_next_stdio_h" >&6; }
21266 NEXT_STDIO_H=$gl_cv_next_stdio_h
21268 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21269 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21270 gl_next_as_first_directive='<'stdio.h'>'
21271 else
21272 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21273 gl_next_as_first_directive=$gl_cv_next_stdio_h
21275 NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
21281 GNULIB_FSCANF=1
21282 GNULIB_SCANF=1
21283 GNULIB_FGETC=1
21284 GNULIB_GETC=1
21285 GNULIB_GETCHAR=1
21286 GNULIB_FGETS=1
21287 GNULIB_FREAD=1
21290 GNULIB_FPRINTF=1
21291 GNULIB_PRINTF=1
21292 GNULIB_VFPRINTF=1
21293 GNULIB_VPRINTF=1
21294 GNULIB_FPUTC=1
21295 GNULIB_PUTC=1
21296 GNULIB_PUTCHAR=1
21297 GNULIB_FPUTS=1
21298 GNULIB_PUTS=1
21299 GNULIB_FWRITE=1
21315 if test $gl_cv_have_include_next = yes; then
21316 gl_cv_next_stdlib_h='<'stdlib.h'>'
21317 else
21318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
21319 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
21320 if test "${gl_cv_next_stdlib_h+set}" = set; then :
21321 $as_echo_n "(cached) " >&6
21322 else
21324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21325 /* end confdefs.h. */
21326 #include <stdlib.h>
21328 _ACEOF
21329 case "$host_os" in
21330 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21331 *) gl_absname_cpp="$ac_cpp" ;;
21332 esac
21334 case "$host_os" in
21335 mingw*)
21336 gl_dirsep_regex='[/\\]'
21339 gl_dirsep_regex='/'
21341 esac
21343 gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'stdlib.h|{
21344 s|.*"\(.*'"${gl_dirsep_regex}"'stdlib.h\)".*|\1|
21345 s|^/[^/]|//&|
21349 gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21350 sed -n "$gl_absolute_header_sed"`'"'
21354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
21355 $as_echo "$gl_cv_next_stdlib_h" >&6; }
21357 NEXT_STDLIB_H=$gl_cv_next_stdlib_h
21359 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21360 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21361 gl_next_as_first_directive='<'stdlib.h'>'
21362 else
21363 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21364 gl_next_as_first_directive=$gl_cv_next_stdlib_h
21366 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
21376 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
21384 $as_echo "#define my_strftime nstrftime" >>confdefs.h
21393 if test "$ac_cv_have_decl_strtoimax" != yes; then
21394 HAVE_DECL_STRTOIMAX=0
21397 if test $ac_cv_func_strtoimax = no; then
21406 gl_LIBOBJS="$gl_LIBOBJS strtoimax.$ac_objext"
21409 ac_fn_c_check_decl "$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
21410 if test "x$ac_cv_have_decl_strtoll" = x""yes; then :
21411 ac_have_decl=1
21412 else
21413 ac_have_decl=0
21416 cat >>confdefs.h <<_ACEOF
21417 #define HAVE_DECL_STRTOLL $ac_have_decl
21418 _ACEOF
21428 GNULIB_STRTOIMAX=1
21438 if test "$ac_cv_have_decl_strtoumax" != yes; then
21439 HAVE_DECL_STRTOUMAX=0
21442 if test $ac_cv_func_strtoumax = no; then
21451 gl_LIBOBJS="$gl_LIBOBJS strtoumax.$ac_objext"
21454 ac_fn_c_check_decl "$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
21455 if test "x$ac_cv_have_decl_strtoull" = x""yes; then :
21456 ac_have_decl=1
21457 else
21458 ac_have_decl=0
21461 cat >>confdefs.h <<_ACEOF
21462 #define HAVE_DECL_STRTOULL $ac_have_decl
21463 _ACEOF
21473 GNULIB_STRTOUMAX=1
21481 if test $ac_cv_func_symlink = no; then
21482 HAVE_SYMLINK=0
21483 else
21484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symlink handles trailing slash correctly" >&5
21485 $as_echo_n "checking whether symlink handles trailing slash correctly... " >&6; }
21486 if test "${gl_cv_func_symlink_works+set}" = set; then :
21487 $as_echo_n "(cached) " >&6
21488 else
21489 if test "$cross_compiling" = yes; then :
21490 gl_cv_func_symlink_works="guessing no"
21491 else
21492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21493 /* end confdefs.h. */
21494 #include <unistd.h>
21497 main ()
21499 int result = 0;
21500 if (!symlink ("a", "conftest.link/"))
21501 result |= 1;
21502 if (symlink ("conftest.f", "conftest.lnk2"))
21503 result |= 2;
21504 else if (!symlink ("a", "conftest.lnk2/"))
21505 result |= 4;
21506 return result;
21509 return 0;
21511 _ACEOF
21512 if ac_fn_c_try_run "$LINENO"; then :
21513 gl_cv_func_symlink_works=yes
21514 else
21515 gl_cv_func_symlink_works=no
21517 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21518 conftest.$ac_objext conftest.beam conftest.$ac_ext
21521 rm -f conftest.f conftest.link conftest.lnk2
21523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_symlink_works" >&5
21524 $as_echo "$gl_cv_func_symlink_works" >&6; }
21525 if test "$gl_cv_func_symlink_works" != yes; then
21526 REPLACE_SYMLINK=1
21530 if test $HAVE_SYMLINK = 0 || test $REPLACE_SYMLINK = 1; then
21539 gl_LIBOBJS="$gl_LIBOBJS symlink.$ac_objext"
21547 GNULIB_SYMLINK=1
21569 if test $gl_cv_have_include_next = yes; then
21570 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
21571 else
21572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
21573 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
21574 if test "${gl_cv_next_sys_stat_h+set}" = set; then :
21575 $as_echo_n "(cached) " >&6
21576 else
21578 if test $ac_cv_header_sys_stat_h = yes; then
21581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21582 /* end confdefs.h. */
21583 #include <sys/stat.h>
21585 _ACEOF
21586 case "$host_os" in
21587 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21588 *) gl_absname_cpp="$ac_cpp" ;;
21589 esac
21591 case "$host_os" in
21592 mingw*)
21593 gl_dirsep_regex='[/\\]'
21596 gl_dirsep_regex='/'
21598 esac
21600 gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'sys/stat.h|{
21601 s|.*"\(.*'"${gl_dirsep_regex}"'sys/stat.h\)".*|\1|
21602 s|^/[^/]|//&|
21606 gl_cv_next_sys_stat_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21607 sed -n "$gl_absolute_header_sed"`'"'
21608 else
21609 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
21614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
21615 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
21617 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
21619 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21620 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21621 gl_next_as_first_directive='<'sys/stat.h'>'
21622 else
21623 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21624 gl_next_as_first_directive=$gl_cv_next_sys_stat_h
21626 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
21634 ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
21635 #include <sys/stat.h>
21637 if test "x$ac_cv_type_nlink_t" = x""yes; then :
21639 else
21641 $as_echo "#define nlink_t int" >>confdefs.h
21659 if test $ac_cv_have_decl_localtime_r = no; then
21660 HAVE_DECL_LOCALTIME_R=0
21664 if test $ac_cv_func_localtime_r = yes; then
21665 HAVE_LOCALTIME_R=1
21666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
21667 $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
21668 if test "${gl_cv_time_r_posix+set}" = set; then :
21669 $as_echo_n "(cached) " >&6
21670 else
21671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21672 /* end confdefs.h. */
21673 #include <time.h>
21675 main ()
21677 /* We don't need to append 'restrict's to the argument types,
21678 even though the POSIX signature has the 'restrict's,
21679 since C99 says they can't affect type compatibility. */
21680 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
21681 if (ptr) return 0;
21682 /* Check the return type is a pointer.
21683 On HP-UX 10 it is 'int'. */
21684 *localtime_r (0, 0);
21686 return 0;
21689 _ACEOF
21690 if ac_fn_c_try_compile "$LINENO"; then :
21691 gl_cv_time_r_posix=yes
21692 else
21693 gl_cv_time_r_posix=no
21695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
21699 $as_echo "$gl_cv_time_r_posix" >&6; }
21700 if test $gl_cv_time_r_posix = yes; then
21701 REPLACE_LOCALTIME_R=0
21702 else
21703 REPLACE_LOCALTIME_R=1
21705 else
21706 HAVE_LOCALTIME_R=0
21709 if test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1; then
21718 gl_LIBOBJS="$gl_LIBOBJS time_r.$ac_objext"
21729 GNULIB_TIME_R=1
21749 if test $gl_cv_have_include_next = yes; then
21750 gl_cv_next_unistd_h='<'unistd.h'>'
21751 else
21752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
21753 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
21754 if test "${gl_cv_next_unistd_h+set}" = set; then :
21755 $as_echo_n "(cached) " >&6
21756 else
21758 if test $ac_cv_header_unistd_h = yes; then
21761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21762 /* end confdefs.h. */
21763 #include <unistd.h>
21765 _ACEOF
21766 case "$host_os" in
21767 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21768 *) gl_absname_cpp="$ac_cpp" ;;
21769 esac
21771 case "$host_os" in
21772 mingw*)
21773 gl_dirsep_regex='[/\\]'
21776 gl_dirsep_regex='/'
21778 esac
21780 gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'unistd.h|{
21781 s|.*"\(.*'"${gl_dirsep_regex}"'unistd.h\)".*|\1|
21782 s|^/[^/]|//&|
21786 gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21787 sed -n "$gl_absolute_header_sed"`'"'
21788 else
21789 gl_cv_next_unistd_h='<'unistd.h'>'
21794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
21795 $as_echo "$gl_cv_next_unistd_h" >&6; }
21797 NEXT_UNISTD_H=$gl_cv_next_unistd_h
21799 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21800 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21801 gl_next_as_first_directive='<'unistd.h'>'
21802 else
21803 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21804 gl_next_as_first_directive=$gl_cv_next_unistd_h
21806 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
21811 if test $ac_cv_header_unistd_h = yes; then
21812 HAVE_UNISTD_H=1
21813 else
21814 HAVE_UNISTD_H=0
21822 gl_gnulib_enabled_dosname=false
21823 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36=false
21824 gl_gnulib_enabled_pathmax=false
21825 gl_gnulib_enabled_sigprocmask=false
21826 gl_gnulib_enabled_stat=false
21827 gl_gnulib_enabled_strtoll=false
21828 gl_gnulib_enabled_strtoull=false
21829 gl_gnulib_enabled_verify=false
21830 func_gl_gnulib_m4code_dosname ()
21832 if ! $gl_gnulib_enabled_dosname; then
21833 gl_gnulib_enabled_dosname=true
21836 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36 ()
21838 if ! $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
21841 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36=true
21844 func_gl_gnulib_m4code_pathmax ()
21846 if ! $gl_gnulib_enabled_pathmax; then
21850 gl_gnulib_enabled_pathmax=true
21853 func_gl_gnulib_m4code_sigprocmask ()
21855 if ! $gl_gnulib_enabled_sigprocmask; then
21859 if test $gl_cv_type_sigset_t = yes; then
21860 ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask"
21861 if test "x$ac_cv_func_sigprocmask" = x""yes; then :
21862 gl_cv_func_sigprocmask=1
21866 if test -z "$gl_cv_func_sigprocmask"; then
21867 HAVE_POSIX_SIGNALBLOCKING=0
21870 if test $HAVE_POSIX_SIGNALBLOCKING = 0; then
21879 gl_LIBOBJS="$gl_LIBOBJS sigprocmask.$ac_objext"
21890 GNULIB_SIGPROCMASK=1
21896 gl_gnulib_enabled_sigprocmask=true
21899 func_gl_gnulib_m4code_stat ()
21901 if ! $gl_gnulib_enabled_stat; then
21905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
21906 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
21907 if test "${gl_cv_func_stat_dir_slash+set}" = set; then :
21908 $as_echo_n "(cached) " >&6
21909 else
21910 if test "$cross_compiling" = yes; then :
21911 case $host_os in
21912 mingw*) gl_cv_func_stat_dir_slash="guessing no";;
21913 *) gl_cv_func_stat_dir_slash="guessing yes";;
21914 esac
21915 else
21916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21917 /* end confdefs.h. */
21918 #include <sys/stat.h>
21921 main ()
21923 struct stat st; return stat (".", &st) != stat ("./", &st);
21925 return 0;
21927 _ACEOF
21928 if ac_fn_c_try_run "$LINENO"; then :
21929 gl_cv_func_stat_dir_slash=yes
21930 else
21931 gl_cv_func_stat_dir_slash=no
21933 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21934 conftest.$ac_objext conftest.beam conftest.$ac_ext
21938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
21939 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
21940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
21941 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
21942 if test "${gl_cv_func_stat_file_slash+set}" = set; then :
21943 $as_echo_n "(cached) " >&6
21944 else
21945 touch conftest.tmp
21946 # Assume that if we have lstat, we can also check symlinks.
21947 if test $ac_cv_func_lstat = yes; then
21948 ln -s conftest.tmp conftest.lnk
21950 if test "$cross_compiling" = yes; then :
21951 gl_cv_func_stat_file_slash="guessing no"
21952 else
21953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21954 /* end confdefs.h. */
21955 #include <sys/stat.h>
21958 main ()
21960 int result = 0;
21961 struct stat st;
21962 if (!stat ("conftest.tmp/", &st))
21963 result |= 1;
21964 #if HAVE_LSTAT
21965 if (!stat ("conftest.lnk/", &st))
21966 result |= 2;
21967 #endif
21968 return result;
21971 return 0;
21973 _ACEOF
21974 if ac_fn_c_try_run "$LINENO"; then :
21975 gl_cv_func_stat_file_slash=yes
21976 else
21977 gl_cv_func_stat_file_slash=no
21979 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21980 conftest.$ac_objext conftest.beam conftest.$ac_ext
21983 rm -f conftest.tmp conftest.lnk
21985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
21986 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
21987 case $gl_cv_func_stat_dir_slash in
21988 *no) REPLACE_STAT=1
21990 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
21992 esac
21993 case $gl_cv_func_stat_file_slash in
21994 *no) REPLACE_STAT=1
21996 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
21998 esac
22000 if test $REPLACE_STAT = 1; then
22009 gl_LIBOBJS="$gl_LIBOBJS stat.$ac_objext"
22021 GNULIB_STAT=1
22027 gl_gnulib_enabled_stat=true
22028 if test $REPLACE_STAT = 1; then
22029 func_gl_gnulib_m4code_dosname
22031 if test $REPLACE_STAT = 1; then
22032 func_gl_gnulib_m4code_pathmax
22034 if test $REPLACE_STAT = 1; then
22035 func_gl_gnulib_m4code_verify
22039 func_gl_gnulib_m4code_strtoll ()
22041 if ! $gl_gnulib_enabled_strtoll; then
22045 if test "$ac_cv_type_long_long_int" = yes; then
22046 for ac_func in strtoll
22047 do :
22048 ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
22049 if test "x$ac_cv_func_strtoll" = x""yes; then :
22050 cat >>confdefs.h <<_ACEOF
22051 #define HAVE_STRTOLL 1
22052 _ACEOF
22055 done
22057 if test $ac_cv_func_strtoll = no; then
22058 HAVE_STRTOLL=0
22062 if test $HAVE_STRTOLL = 0; then
22071 gl_LIBOBJS="$gl_LIBOBJS strtoll.$ac_objext"
22082 GNULIB_STRTOLL=1
22088 gl_gnulib_enabled_strtoll=true
22091 func_gl_gnulib_m4code_strtoull ()
22093 if ! $gl_gnulib_enabled_strtoull; then
22097 if test "$ac_cv_type_unsigned_long_long_int" = yes; then
22098 for ac_func in strtoull
22099 do :
22100 ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
22101 if test "x$ac_cv_func_strtoull" = x""yes; then :
22102 cat >>confdefs.h <<_ACEOF
22103 #define HAVE_STRTOULL 1
22104 _ACEOF
22107 done
22109 if test $ac_cv_func_strtoull = no; then
22110 HAVE_STRTOULL=0
22114 if test $HAVE_STRTOULL = 0; then
22123 gl_LIBOBJS="$gl_LIBOBJS strtoull.$ac_objext"
22134 GNULIB_STRTOULL=1
22140 gl_gnulib_enabled_strtoull=true
22143 func_gl_gnulib_m4code_verify ()
22145 if ! $gl_gnulib_enabled_verify; then
22146 gl_gnulib_enabled_verify=true
22149 if test $REPLACE_GETOPT = 1; then
22150 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36
22152 if test $REPLACE_LSTAT = 1; then
22153 func_gl_gnulib_m4code_dosname
22155 if test $REPLACE_LSTAT = 1; then
22156 func_gl_gnulib_m4code_stat
22158 if test $HAVE_PTHREAD_SIGMASK = 0 || test $REPLACE_PTHREAD_SIGMASK = 1; then
22159 func_gl_gnulib_m4code_sigprocmask
22161 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
22162 func_gl_gnulib_m4code_stat
22164 if test $ac_cv_func_strtoimax = no; then
22165 func_gl_gnulib_m4code_verify
22167 if test $ac_cv_func_strtoimax = no && test $ac_cv_type_long_long_int = yes; then
22168 func_gl_gnulib_m4code_strtoll
22170 if test $ac_cv_func_strtoumax = no; then
22171 func_gl_gnulib_m4code_verify
22173 if test $ac_cv_func_strtoumax = no && test $ac_cv_type_unsigned_long_long_int = yes; then
22174 func_gl_gnulib_m4code_strtoull
22177 if $gl_gnulib_enabled_dosname; then
22178 gl_GNULIB_ENABLED_dosname_TRUE=
22179 gl_GNULIB_ENABLED_dosname_FALSE='#'
22180 else
22181 gl_GNULIB_ENABLED_dosname_TRUE='#'
22182 gl_GNULIB_ENABLED_dosname_FALSE=
22185 if $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
22186 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE=
22187 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE='#'
22188 else
22189 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE='#'
22190 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE=
22193 if $gl_gnulib_enabled_pathmax; then
22194 gl_GNULIB_ENABLED_pathmax_TRUE=
22195 gl_GNULIB_ENABLED_pathmax_FALSE='#'
22196 else
22197 gl_GNULIB_ENABLED_pathmax_TRUE='#'
22198 gl_GNULIB_ENABLED_pathmax_FALSE=
22201 if $gl_gnulib_enabled_sigprocmask; then
22202 gl_GNULIB_ENABLED_sigprocmask_TRUE=
22203 gl_GNULIB_ENABLED_sigprocmask_FALSE='#'
22204 else
22205 gl_GNULIB_ENABLED_sigprocmask_TRUE='#'
22206 gl_GNULIB_ENABLED_sigprocmask_FALSE=
22209 if $gl_gnulib_enabled_stat; then
22210 gl_GNULIB_ENABLED_stat_TRUE=
22211 gl_GNULIB_ENABLED_stat_FALSE='#'
22212 else
22213 gl_GNULIB_ENABLED_stat_TRUE='#'
22214 gl_GNULIB_ENABLED_stat_FALSE=
22217 if $gl_gnulib_enabled_strtoll; then
22218 gl_GNULIB_ENABLED_strtoll_TRUE=
22219 gl_GNULIB_ENABLED_strtoll_FALSE='#'
22220 else
22221 gl_GNULIB_ENABLED_strtoll_TRUE='#'
22222 gl_GNULIB_ENABLED_strtoll_FALSE=
22225 if $gl_gnulib_enabled_strtoull; then
22226 gl_GNULIB_ENABLED_strtoull_TRUE=
22227 gl_GNULIB_ENABLED_strtoull_FALSE='#'
22228 else
22229 gl_GNULIB_ENABLED_strtoull_TRUE='#'
22230 gl_GNULIB_ENABLED_strtoull_FALSE=
22233 if $gl_gnulib_enabled_verify; then
22234 gl_GNULIB_ENABLED_verify_TRUE=
22235 gl_GNULIB_ENABLED_verify_FALSE='#'
22236 else
22237 gl_GNULIB_ENABLED_verify_TRUE='#'
22238 gl_GNULIB_ENABLED_verify_FALSE=
22241 # End of code from modules
22251 gltests_libdeps=
22252 gltests_ltlibdeps=
22262 gl_source_base='tests'
22263 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
22265 gl_module_indicator_condition=$gltests_WITNESS
22276 LIBGNU_LIBDEPS="$gl_libdeps"
22278 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
22282 case "$opsys" in
22283 aix4-2) LD_SWITCH_SYSTEM_TEMACS="-Wl,-bnodelcsect" ;;
22285 darwin)
22286 ## The -headerpad option tells ld (see man page) to leave room at the
22287 ## end of the header for adding load commands. Needed for dumping.
22288 ## 0x690 is the total size of 30 segment load commands (at 56
22289 ## each); under Cocoa 31 commands are required.
22290 if test "$HAVE_NS" = "yes"; then
22291 libs_nsgui="-framework AppKit"
22292 headerpad_extra=6C8
22293 else
22294 libs_nsgui=
22295 headerpad_extra=690
22297 LD_SWITCH_SYSTEM_TEMACS="-fno-pie -prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
22299 ## This is here because src/Makefile.in did some extra fiddling around
22300 ## with LD_SWITCH_SYSTEM. The cpp logic was:
22301 ## #ifndef LD_SWITCH_SYSTEM
22302 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
22303 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
22304 ## not using gcc, darwin system not on an alpha (ie darwin, since
22305 ## darwin + alpha does not occur).
22306 ## Because this was done in src/Makefile.in, the resulting part of
22307 ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link).
22308 ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS,
22309 ## rather than LD_SWITCH_SYSTEM.
22310 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
22311 LD_SWITCH_SYSTEM_TEMACS="-X $LD_SWITCH_SYSTEM_TEMACS"
22314 ## LD_SWITCH_X_SITE_AUX is a -R option saying where to find X at run-time.
22315 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at
22316 ## the point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_AUX
22317 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
22318 ## had different values in configure (in ac_link) and src/Makefile.in.
22319 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
22320 gnu*) LD_SWITCH_SYSTEM_TEMACS="\$(LD_SWITCH_X_SITE_AUX_RPATH)" ;;
22322 *) LD_SWITCH_SYSTEM_TEMACS= ;;
22323 esac
22325 if test "$NS_IMPL_GNUSTEP" = "yes"; then
22326 LD_SWITCH_SYSTEM_TEMACS="${LD_SWITCH_SYSTEM_TEMACS} -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES} -lgnustep-gui -lgnustep-base -lobjc -lpthread"
22332 LD_FIRSTFLAG=
22333 ORDINARY_LINK=
22334 case "$opsys" in
22335 ## gnu: GNU needs its own crt0.
22336 aix4-2|cygwin|darwin|gnu|hpux*|irix6-5|sol2*|unixware) ORDINARY_LINK=yes ;;
22338 ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the
22339 ## library search parth, i.e. it won't search /usr/lib for libc and
22340 ## friends. Using -nostartfiles instead avoids this problem, and
22341 ## will also work on earlier NetBSD releases.
22342 netbsd|openbsd) LD_FIRSTFLAG="-nostartfiles" ;;
22344 ## macpcc: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
22345 ## MkLinux/LinuxPPC needs this.
22346 ## ibms390x only supports opsys = gnu-linux so it can be added here.
22347 gnu-*)
22348 case "$machine" in
22349 macppc|ibms390x) LD_FIRSTFLAG="-nostdlib" ;;
22350 esac
22352 esac
22355 if test "x$ORDINARY_LINK" = "xyes"; then
22357 LD_FIRSTFLAG=""
22359 $as_echo "#define ORDINARY_LINK 1" >>confdefs.h
22362 ## The system files defining neither ORDINARY_LINK nor LD_FIRSTFLAG are:
22363 ## freebsd, gnu-* not on macppc|ibms390x.
22364 elif test "x$GCC" = "xyes" && test "x$LD_FIRSTFLAG" = "x"; then
22366 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
22367 ## places that are difficult to figure out at make time. Fortunately,
22368 ## these same versions allow you to pass arbitrary flags on to the
22369 ## linker, so there is no reason not to use it as a linker.
22371 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from
22372 ## searching for libraries in its internal directories, so we have to
22373 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below).
22374 LD_FIRSTFLAG="-nostdlib"
22377 ## FIXME? What setting of EDIT_LDFLAGS should this have?
22378 test "$NS_IMPL_GNUSTEP" = "yes" && LD_FIRSTFLAG="-rdynamic"
22383 ## FIXME? The logic here is not precisely the same as that above.
22384 ## There is no check here for a pre-defined LD_FIRSTFLAG.
22385 ## Should we only be setting LIB_GCC if LD ~ -nostdlib?
22386 LIB_GCC=
22387 if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
22389 case "$opsys" in
22390 freebsd|netbsd|openbsd) LIB_GCC= ;;
22392 gnu-*)
22393 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
22394 ## build on ARM EABI under GNU/Linux. (Bug#5518)
22395 case $host_cpu in
22396 arm*)
22397 LIB_GCC="-lgcc_s"
22400 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
22401 ## immediately undefine it again and redefine it to empty.
22402 ## Was the C_SWITCH_X_SITE part really necessary?
22403 ## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
22404 LIB_GCC=
22406 esac
22409 ## Ask GCC where to find libgcc.a.
22410 *) LIB_GCC=`$CC -print-libgcc-file-name 2> /dev/null` ;;
22411 esac
22415 ## If we're using X11/GNUstep, define some consequences.
22416 if test "$HAVE_X_WINDOWS" = "yes" || test "$HAVE_NS" = "yes"; then
22418 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
22421 $as_echo "#define HAVE_MOUSE 1" >>confdefs.h
22428 #### Report on what we decided to do.
22429 #### Report GTK as a toolkit, even if it doesn't use Xt.
22430 #### It makes printing result more understandable as using GTK sets
22431 #### toolkit_scroll_bars to yes by default.
22432 if test "${HAVE_GTK}" = "yes"; then
22433 USE_X_TOOLKIT=GTK
22436 and_machfile=
22437 if test -n "$machfile"; then
22438 and_machfile=" and \`${machfile}'"
22441 echo "
22442 Configured for \`${canonical}'.
22444 Where should the build process find the source code? ${srcdir}
22445 What operating system and machine description files should Emacs use?
22446 \`${opsysfile}'${and_machfile}
22447 What compiler should emacs be built with? ${CC} ${CFLAGS}
22448 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
22449 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
22450 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
22451 What window system should Emacs use? ${window_system}
22452 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
22454 if test -n "${x_includes}"; then
22455 echo " Where do we find X Windows header files? ${x_includes}"
22456 else
22457 echo " Where do we find X Windows header files? Standard dirs"
22459 if test -n "${x_libraries}"; then
22460 echo " Where do we find X Windows libraries? ${x_libraries}"
22461 else
22462 echo " Where do we find X Windows libraries? Standard dirs"
22465 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
22466 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
22467 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
22468 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
22469 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
22470 echo " Does Emacs use -lpng? ${HAVE_PNG}"
22471 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
22472 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
22474 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
22475 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
22476 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
22477 echo " Does Emacs use GSettings? ${HAVE_GSETTINGS}"
22478 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
22479 echo " Does Emacs use -lgnutls? ${HAVE_GNUTLS}"
22480 echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
22482 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
22483 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
22484 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
22485 echo " Does Emacs use -lxft? ${HAVE_XFT}"
22487 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
22488 echo
22490 if test -n "${EMACSDATA}"; then
22491 echo " Environment variable EMACSDATA set to: $EMACSDATA"
22493 if test -n "${EMACSDOC}"; then
22494 echo " Environment variable EMACSDOC set to: $EMACSDOC"
22497 if test $USE_XASSERTS = yes; then
22498 echo " Compiling with asserts turned on."
22499 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
22502 echo
22504 if test "$HAVE_NS" = "yes"; then
22505 echo
22506 echo "You must run \"${MAKE-make} install\" in order to test the built application.
22507 The installed application will go to nextstep/Emacs.app and can be
22508 run or moved from there."
22509 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
22510 echo "The application will be fully self-contained."
22511 else
22512 echo "The lisp resources for the application will be installed under ${prefix}.
22513 You may need to run \"${MAKE-make} install\" with sudo. The application will fail
22514 to run if these resources are not installed."
22516 echo
22520 # Remove any trailing slashes in these variables.
22521 test "${prefix}" != NONE &&
22522 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
22523 test "${exec_prefix}" != NONE &&
22524 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
22526 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"
22528 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"
22531 opt_makefile=test/automated/Makefile
22533 if test -f $srcdir/${opt_makefile}.in; then
22534 SUBDIR_MAKEFILES="$SUBDIR_MAKEFILES $opt_makefile"
22535 ac_config_files="$ac_config_files test/automated/Makefile"
22539 SUBDIR_MAKEFILES_IN=`echo " ${SUBDIR_MAKEFILES}" | sed -e 's| | $(srcdir)/|g' -e 's|Makefile|Makefile.in|g'`
22543 ac_config_commands="$ac_config_commands mkdirs"
22546 ac_config_commands="$ac_config_commands epaths"
22549 ac_config_commands="$ac_config_commands gdbinit"
22552 cat >confcache <<\_ACEOF
22553 # This file is a shell script that caches the results of configure
22554 # tests run on this system so they can be shared between configure
22555 # scripts and configure runs, see configure's option --config-cache.
22556 # It is not useful on other systems. If it contains results you don't
22557 # want to keep, you may remove or edit it.
22559 # config.status only pays attention to the cache file if you give it
22560 # the --recheck option to rerun configure.
22562 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22563 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22564 # following values.
22566 _ACEOF
22568 # The following way of writing the cache mishandles newlines in values,
22569 # but we know of no workaround that is simple, portable, and efficient.
22570 # So, we kill variables containing newlines.
22571 # Ultrix sh set writes to stderr and can't be redirected directly,
22572 # and sets the high bit in the cache file unless we assign to the vars.
22574 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22575 eval ac_val=\$$ac_var
22576 case $ac_val in #(
22577 *${as_nl}*)
22578 case $ac_var in #(
22579 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
22580 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
22581 esac
22582 case $ac_var in #(
22583 _ | IFS | as_nl) ;; #(
22584 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
22585 *) { eval $ac_var=; unset $ac_var;} ;;
22586 esac ;;
22587 esac
22588 done
22590 (set) 2>&1 |
22591 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22592 *${as_nl}ac_space=\ *)
22593 # `set' does not quote correctly, so add quotes: double-quote
22594 # substitution turns \\\\ into \\, and sed turns \\ into \.
22595 sed -n \
22596 "s/'/'\\\\''/g;
22597 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22598 ;; #(
22600 # `set' quotes correctly as required by POSIX, so do not add quotes.
22601 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22603 esac |
22604 sort
22606 sed '
22607 /^ac_cv_env_/b end
22608 t clear
22609 :clear
22610 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22611 t end
22612 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22613 :end' >>confcache
22614 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22615 if test -w "$cache_file"; then
22616 test "x$cache_file" != "x/dev/null" &&
22617 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
22618 $as_echo "$as_me: updating cache $cache_file" >&6;}
22619 cat confcache >$cache_file
22620 else
22621 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
22622 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22625 rm -f confcache
22627 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22628 # Let make expand exec_prefix.
22629 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22631 DEFS=-DHAVE_CONFIG_H
22633 ac_libobjs=
22634 ac_ltlibobjs=
22635 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22636 # 1. Remove the extension, and $U if already installed.
22637 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22638 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
22639 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22640 # will be set to the directory where LIBOBJS objects are built.
22641 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22642 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
22643 done
22644 LIBOBJS=$ac_libobjs
22646 LTLIBOBJS=$ac_ltlibobjs
22649 if test -n "$EXEEXT"; then
22650 am__EXEEXT_TRUE=
22651 am__EXEEXT_FALSE='#'
22652 else
22653 am__EXEEXT_TRUE='#'
22654 am__EXEEXT_FALSE=
22657 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22658 as_fn_error "conditional \"AMDEP\" was never defined.
22659 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22661 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22662 as_fn_error "conditional \"am__fastdepCC\" was never defined.
22663 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22666 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
22667 as_fn_error "conditional \"GL_COND_LIBTOOL\" was never defined.
22668 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22670 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
22671 as_fn_error "conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
22672 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22675 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
22676 as_fn_error "conditional \"GL_GENERATE_STDINT_H\" was never defined.
22677 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22679 if test -z "${GL_GENERATE_STDARG_H_TRUE}" && test -z "${GL_GENERATE_STDARG_H_FALSE}"; then
22680 as_fn_error "conditional \"GL_GENERATE_STDARG_H\" was never defined.
22681 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22683 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
22684 as_fn_error "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
22685 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22687 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
22688 as_fn_error "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
22689 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22691 if test -z "${gl_GNULIB_ENABLED_dosname_TRUE}" && test -z "${gl_GNULIB_ENABLED_dosname_FALSE}"; then
22692 as_fn_error "conditional \"gl_GNULIB_ENABLED_dosname\" was never defined.
22693 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22695 if test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE}" && test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE}"; then
22696 as_fn_error "conditional \"gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36\" was never defined.
22697 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22699 if test -z "${gl_GNULIB_ENABLED_pathmax_TRUE}" && test -z "${gl_GNULIB_ENABLED_pathmax_FALSE}"; then
22700 as_fn_error "conditional \"gl_GNULIB_ENABLED_pathmax\" was never defined.
22701 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22703 if test -z "${gl_GNULIB_ENABLED_sigprocmask_TRUE}" && test -z "${gl_GNULIB_ENABLED_sigprocmask_FALSE}"; then
22704 as_fn_error "conditional \"gl_GNULIB_ENABLED_sigprocmask\" was never defined.
22705 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22707 if test -z "${gl_GNULIB_ENABLED_stat_TRUE}" && test -z "${gl_GNULIB_ENABLED_stat_FALSE}"; then
22708 as_fn_error "conditional \"gl_GNULIB_ENABLED_stat\" was never defined.
22709 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22711 if test -z "${gl_GNULIB_ENABLED_strtoll_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoll_FALSE}"; then
22712 as_fn_error "conditional \"gl_GNULIB_ENABLED_strtoll\" was never defined.
22713 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22715 if test -z "${gl_GNULIB_ENABLED_strtoull_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoull_FALSE}"; then
22716 as_fn_error "conditional \"gl_GNULIB_ENABLED_strtoull\" was never defined.
22717 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22719 if test -z "${gl_GNULIB_ENABLED_verify_TRUE}" && test -z "${gl_GNULIB_ENABLED_verify_FALSE}"; then
22720 as_fn_error "conditional \"gl_GNULIB_ENABLED_verify\" was never defined.
22721 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22724 gl_libobjs=
22725 gl_ltlibobjs=
22726 if test -n "$gl_LIBOBJS"; then
22727 # Remove the extension.
22728 sed_drop_objext='s/\.o$//;s/\.obj$//'
22729 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
22730 gl_libobjs="$gl_libobjs $i.$ac_objext"
22731 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
22732 done
22734 gl_LIBOBJS=$gl_libobjs
22736 gl_LTLIBOBJS=$gl_ltlibobjs
22740 gltests_libobjs=
22741 gltests_ltlibobjs=
22742 if test -n "$gltests_LIBOBJS"; then
22743 # Remove the extension.
22744 sed_drop_objext='s/\.o$//;s/\.obj$//'
22745 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
22746 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
22747 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
22748 done
22750 gltests_LIBOBJS=$gltests_libobjs
22752 gltests_LTLIBOBJS=$gltests_ltlibobjs
22756 : ${CONFIG_STATUS=./config.status}
22757 ac_write_fail=0
22758 ac_clean_files_save=$ac_clean_files
22759 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22760 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
22761 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
22762 as_write_fail=0
22763 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
22764 #! $SHELL
22765 # Generated by $as_me.
22766 # Run this file to recreate the current configuration.
22767 # Compiler output produced by configure, useful for debugging
22768 # configure, is in config.log if it exists.
22770 debug=false
22771 ac_cs_recheck=false
22772 ac_cs_silent=false
22774 SHELL=\${CONFIG_SHELL-$SHELL}
22775 export SHELL
22776 _ASEOF
22777 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
22778 ## -------------------- ##
22779 ## M4sh Initialization. ##
22780 ## -------------------- ##
22782 # Be more Bourne compatible
22783 DUALCASE=1; export DUALCASE # for MKS sh
22784 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22785 emulate sh
22786 NULLCMD=:
22787 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
22788 # is contrary to our usage. Disable this feature.
22789 alias -g '${1+"$@"}'='"$@"'
22790 setopt NO_GLOB_SUBST
22791 else
22792 case `(set -o) 2>/dev/null` in #(
22793 *posix*) :
22794 set -o posix ;; #(
22795 *) :
22797 esac
22801 as_nl='
22803 export as_nl
22804 # Printing a long string crashes Solaris 7 /usr/bin/printf.
22805 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
22806 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
22807 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
22808 # Prefer a ksh shell builtin over an external printf program on Solaris,
22809 # but without wasting forks for bash or zsh.
22810 if test -z "$BASH_VERSION$ZSH_VERSION" \
22811 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
22812 as_echo='print -r --'
22813 as_echo_n='print -rn --'
22814 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
22815 as_echo='printf %s\n'
22816 as_echo_n='printf %s'
22817 else
22818 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
22819 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
22820 as_echo_n='/usr/ucb/echo -n'
22821 else
22822 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
22823 as_echo_n_body='eval
22824 arg=$1;
22825 case $arg in #(
22826 *"$as_nl"*)
22827 expr "X$arg" : "X\\(.*\\)$as_nl";
22828 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
22829 esac;
22830 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
22832 export as_echo_n_body
22833 as_echo_n='sh -c $as_echo_n_body as_echo'
22835 export as_echo_body
22836 as_echo='sh -c $as_echo_body as_echo'
22839 # The user is always right.
22840 if test "${PATH_SEPARATOR+set}" != set; then
22841 PATH_SEPARATOR=:
22842 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
22843 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
22844 PATH_SEPARATOR=';'
22849 # IFS
22850 # We need space, tab and new line, in precisely that order. Quoting is
22851 # there to prevent editors from complaining about space-tab.
22852 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22853 # splitting by setting IFS to empty value.)
22854 IFS=" "" $as_nl"
22856 # Find who we are. Look in the path if we contain no directory separator.
22857 case $0 in #((
22858 *[\\/]* ) as_myself=$0 ;;
22859 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22860 for as_dir in $PATH
22862 IFS=$as_save_IFS
22863 test -z "$as_dir" && as_dir=.
22864 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22865 done
22866 IFS=$as_save_IFS
22869 esac
22870 # We did not find ourselves, most probably we were run as `sh COMMAND'
22871 # in which case we are not to be found in the path.
22872 if test "x$as_myself" = x; then
22873 as_myself=$0
22875 if test ! -f "$as_myself"; then
22876 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22877 exit 1
22880 # Unset variables that we do not need and which cause bugs (e.g. in
22881 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
22882 # suppresses any "Segmentation fault" message there. '((' could
22883 # trigger a bug in pdksh 5.2.14.
22884 for as_var in BASH_ENV ENV MAIL MAILPATH
22885 do eval test x\${$as_var+set} = xset \
22886 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
22887 done
22888 PS1='$ '
22889 PS2='> '
22890 PS4='+ '
22892 # NLS nuisances.
22893 LC_ALL=C
22894 export LC_ALL
22895 LANGUAGE=C
22896 export LANGUAGE
22898 # CDPATH.
22899 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22902 # as_fn_error ERROR [LINENO LOG_FD]
22903 # ---------------------------------
22904 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
22905 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22906 # script with status $?, using 1 if that was 0.
22907 as_fn_error ()
22909 as_status=$?; test $as_status -eq 0 && as_status=1
22910 if test "$3"; then
22911 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
22912 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
22914 $as_echo "$as_me: error: $1" >&2
22915 as_fn_exit $as_status
22916 } # as_fn_error
22919 # as_fn_set_status STATUS
22920 # -----------------------
22921 # Set $? to STATUS, without forking.
22922 as_fn_set_status ()
22924 return $1
22925 } # as_fn_set_status
22927 # as_fn_exit STATUS
22928 # -----------------
22929 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
22930 as_fn_exit ()
22932 set +e
22933 as_fn_set_status $1
22934 exit $1
22935 } # as_fn_exit
22937 # as_fn_unset VAR
22938 # ---------------
22939 # Portably unset VAR.
22940 as_fn_unset ()
22942 { eval $1=; unset $1;}
22944 as_unset=as_fn_unset
22945 # as_fn_append VAR VALUE
22946 # ----------------------
22947 # Append the text in VALUE to the end of the definition contained in VAR. Take
22948 # advantage of any shell optimizations that allow amortized linear growth over
22949 # repeated appends, instead of the typical quadratic growth present in naive
22950 # implementations.
22951 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
22952 eval 'as_fn_append ()
22954 eval $1+=\$2
22956 else
22957 as_fn_append ()
22959 eval $1=\$$1\$2
22961 fi # as_fn_append
22963 # as_fn_arith ARG...
22964 # ------------------
22965 # Perform arithmetic evaluation on the ARGs, and store the result in the
22966 # global $as_val. Take advantage of shells that can avoid forks. The arguments
22967 # must be portable across $(()) and expr.
22968 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
22969 eval 'as_fn_arith ()
22971 as_val=$(( $* ))
22973 else
22974 as_fn_arith ()
22976 as_val=`expr "$@" || test $? -eq 1`
22978 fi # as_fn_arith
22981 if expr a : '\(a\)' >/dev/null 2>&1 &&
22982 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22983 as_expr=expr
22984 else
22985 as_expr=false
22988 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22989 as_basename=basename
22990 else
22991 as_basename=false
22994 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22995 as_dirname=dirname
22996 else
22997 as_dirname=false
23000 as_me=`$as_basename -- "$0" ||
23001 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23002 X"$0" : 'X\(//\)$' \| \
23003 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23004 $as_echo X/"$0" |
23005 sed '/^.*\/\([^/][^/]*\)\/*$/{
23006 s//\1/
23009 /^X\/\(\/\/\)$/{
23010 s//\1/
23013 /^X\/\(\/\).*/{
23014 s//\1/
23017 s/.*/./; q'`
23019 # Avoid depending upon Character Ranges.
23020 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23021 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23022 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23023 as_cr_digits='0123456789'
23024 as_cr_alnum=$as_cr_Letters$as_cr_digits
23026 ECHO_C= ECHO_N= ECHO_T=
23027 case `echo -n x` in #(((((
23028 -n*)
23029 case `echo 'xy\c'` in
23030 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
23031 xy) ECHO_C='\c';;
23032 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
23033 ECHO_T=' ';;
23034 esac;;
23036 ECHO_N='-n';;
23037 esac
23039 rm -f conf$$ conf$$.exe conf$$.file
23040 if test -d conf$$.dir; then
23041 rm -f conf$$.dir/conf$$.file
23042 else
23043 rm -f conf$$.dir
23044 mkdir conf$$.dir 2>/dev/null
23046 if (echo >conf$$.file) 2>/dev/null; then
23047 if ln -s conf$$.file conf$$ 2>/dev/null; then
23048 as_ln_s='ln -s'
23049 # ... but there are two gotchas:
23050 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23051 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23052 # In both cases, we have to default to `cp -p'.
23053 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23054 as_ln_s='cp -p'
23055 elif ln conf$$.file conf$$ 2>/dev/null; then
23056 as_ln_s=ln
23057 else
23058 as_ln_s='cp -p'
23060 else
23061 as_ln_s='cp -p'
23063 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23064 rmdir conf$$.dir 2>/dev/null
23067 # as_fn_mkdir_p
23068 # -------------
23069 # Create "$as_dir" as a directory, including parents if necessary.
23070 as_fn_mkdir_p ()
23073 case $as_dir in #(
23074 -*) as_dir=./$as_dir;;
23075 esac
23076 test -d "$as_dir" || eval $as_mkdir_p || {
23077 as_dirs=
23078 while :; do
23079 case $as_dir in #(
23080 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
23081 *) as_qdir=$as_dir;;
23082 esac
23083 as_dirs="'$as_qdir' $as_dirs"
23084 as_dir=`$as_dirname -- "$as_dir" ||
23085 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23086 X"$as_dir" : 'X\(//\)[^/]' \| \
23087 X"$as_dir" : 'X\(//\)$' \| \
23088 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23089 $as_echo X"$as_dir" |
23090 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23091 s//\1/
23094 /^X\(\/\/\)[^/].*/{
23095 s//\1/
23098 /^X\(\/\/\)$/{
23099 s//\1/
23102 /^X\(\/\).*/{
23103 s//\1/
23106 s/.*/./; q'`
23107 test -d "$as_dir" && break
23108 done
23109 test -z "$as_dirs" || eval "mkdir $as_dirs"
23110 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
23113 } # as_fn_mkdir_p
23114 if mkdir -p . 2>/dev/null; then
23115 as_mkdir_p='mkdir -p "$as_dir"'
23116 else
23117 test -d ./-p && rmdir ./-p
23118 as_mkdir_p=false
23121 if test -x / >/dev/null 2>&1; then
23122 as_test_x='test -x'
23123 else
23124 if ls -dL / >/dev/null 2>&1; then
23125 as_ls_L_option=L
23126 else
23127 as_ls_L_option=
23129 as_test_x='
23130 eval sh -c '\''
23131 if test -d "$1"; then
23132 test -d "$1/.";
23133 else
23134 case $1 in #(
23135 -*)set "./$1";;
23136 esac;
23137 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
23138 ???[sx]*):;;*)false;;esac;fi
23139 '\'' sh
23142 as_executable_p=$as_test_x
23144 # Sed expression to map a string onto a valid CPP name.
23145 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23147 # Sed expression to map a string onto a valid variable name.
23148 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23151 exec 6>&1
23152 ## ----------------------------------- ##
23153 ## Main body of $CONFIG_STATUS script. ##
23154 ## ----------------------------------- ##
23155 _ASEOF
23156 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
23158 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23159 # Save the log message, to keep $0 and so on meaningful, and to
23160 # report actual input values of CONFIG_FILES etc. instead of their
23161 # values after options handling.
23162 ac_log="
23163 This file was extended by emacs $as_me 24.2, which was
23164 generated by GNU Autoconf 2.65. Invocation command line was
23166 CONFIG_FILES = $CONFIG_FILES
23167 CONFIG_HEADERS = $CONFIG_HEADERS
23168 CONFIG_LINKS = $CONFIG_LINKS
23169 CONFIG_COMMANDS = $CONFIG_COMMANDS
23170 $ $0 $@
23172 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23175 _ACEOF
23177 case $ac_config_files in *"
23178 "*) set x $ac_config_files; shift; ac_config_files=$*;;
23179 esac
23181 case $ac_config_headers in *"
23182 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
23183 esac
23186 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23187 # Files that config.status was made for.
23188 config_files="$ac_config_files"
23189 config_headers="$ac_config_headers"
23190 config_commands="$ac_config_commands"
23192 _ACEOF
23194 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23195 ac_cs_usage="\
23196 \`$as_me' instantiates files and other configuration actions
23197 from templates according to the current configuration. Unless the files
23198 and actions are specified as TAGs, all are instantiated by default.
23200 Usage: $0 [OPTION]... [TAG]...
23202 -h, --help print this help, then exit
23203 -V, --version print version number and configuration settings, then exit
23204 --config print configuration, then exit
23205 -q, --quiet, --silent
23206 do not print progress messages
23207 -d, --debug don't remove temporary files
23208 --recheck update $as_me by reconfiguring in the same conditions
23209 --file=FILE[:TEMPLATE]
23210 instantiate the configuration file FILE
23211 --header=FILE[:TEMPLATE]
23212 instantiate the configuration header FILE
23214 Configuration files:
23215 $config_files
23217 Configuration headers:
23218 $config_headers
23220 Configuration commands:
23221 $config_commands
23223 Report bugs to the package provider."
23225 _ACEOF
23226 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23227 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
23228 ac_cs_version="\\
23229 emacs config.status 24.2
23230 configured by $0, generated by GNU Autoconf 2.65,
23231 with options \\"\$ac_cs_config\\"
23233 Copyright (C) 2009 Free Software Foundation, Inc.
23234 This config.status script is free software; the Free Software Foundation
23235 gives unlimited permission to copy, distribute and modify it."
23237 ac_pwd='$ac_pwd'
23238 srcdir='$srcdir'
23239 INSTALL='$INSTALL'
23240 MKDIR_P='$MKDIR_P'
23241 AWK='$AWK'
23242 test -n "\$AWK" || AWK=awk
23243 _ACEOF
23245 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23246 # The default lists apply if the user does not specify any file.
23247 ac_need_defaults=:
23248 while test $# != 0
23250 case $1 in
23251 --*=*)
23252 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23253 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23254 ac_shift=:
23257 ac_option=$1
23258 ac_optarg=$2
23259 ac_shift=shift
23261 esac
23263 case $ac_option in
23264 # Handling of the options.
23265 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23266 ac_cs_recheck=: ;;
23267 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23268 $as_echo "$ac_cs_version"; exit ;;
23269 --config | --confi | --conf | --con | --co | --c )
23270 $as_echo "$ac_cs_config"; exit ;;
23271 --debug | --debu | --deb | --de | --d | -d )
23272 debug=: ;;
23273 --file | --fil | --fi | --f )
23274 $ac_shift
23275 case $ac_optarg in
23276 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23277 esac
23278 as_fn_append CONFIG_FILES " '$ac_optarg'"
23279 ac_need_defaults=false;;
23280 --header | --heade | --head | --hea )
23281 $ac_shift
23282 case $ac_optarg in
23283 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23284 esac
23285 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
23286 ac_need_defaults=false;;
23287 --he | --h)
23288 # Conflict between --help and --header
23289 as_fn_error "ambiguous option: \`$1'
23290 Try \`$0 --help' for more information.";;
23291 --help | --hel | -h )
23292 $as_echo "$ac_cs_usage"; exit ;;
23293 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23294 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23295 ac_cs_silent=: ;;
23297 # This is an error.
23298 -*) as_fn_error "unrecognized option: \`$1'
23299 Try \`$0 --help' for more information." ;;
23301 *) as_fn_append ac_config_targets " $1"
23302 ac_need_defaults=false ;;
23304 esac
23305 shift
23306 done
23308 ac_configure_extra_args=
23310 if $ac_cs_silent; then
23311 exec 6>/dev/null
23312 ac_configure_extra_args="$ac_configure_extra_args --silent"
23315 _ACEOF
23316 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23317 if \$ac_cs_recheck; then
23318 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23319 shift
23320 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
23321 CONFIG_SHELL='$SHELL'
23322 export CONFIG_SHELL
23323 exec "\$@"
23326 _ACEOF
23327 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23328 exec 5>>config.log
23330 echo
23331 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23332 ## Running $as_me. ##
23333 _ASBOX
23334 $as_echo "$ac_log"
23335 } >&5
23337 _ACEOF
23338 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23340 # INIT-COMMANDS
23342 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
23343 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPPFLAGS="$CPPFLAGS"
23345 _ACEOF
23347 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23349 # Handling of arguments.
23350 for ac_config_target in $ac_config_targets
23352 case $ac_config_target in
23353 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
23354 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
23355 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23356 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
23357 "lib-src/Makefile") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile" ;;
23358 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
23359 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
23360 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
23361 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
23362 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
23363 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
23364 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
23365 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
23366 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
23367 "test/automated/Makefile") CONFIG_FILES="$CONFIG_FILES test/automated/Makefile" ;;
23368 "mkdirs") CONFIG_COMMANDS="$CONFIG_COMMANDS mkdirs" ;;
23369 "epaths") CONFIG_COMMANDS="$CONFIG_COMMANDS epaths" ;;
23370 "gdbinit") CONFIG_COMMANDS="$CONFIG_COMMANDS gdbinit" ;;
23372 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
23373 esac
23374 done
23377 # If the user did not use the arguments to specify the items to instantiate,
23378 # then the envvar interface is used. Set only those that are not.
23379 # We use the long form for the default assignment because of an extremely
23380 # bizarre bug on SunOS 4.1.3.
23381 if $ac_need_defaults; then
23382 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23383 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23384 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23387 # Have a temporary directory for convenience. Make it in the build tree
23388 # simply because there is no reason against having it here, and in addition,
23389 # creating and moving files from /tmp can sometimes cause problems.
23390 # Hook for its removal unless debugging.
23391 # Note that there is a small window in which the directory will not be cleaned:
23392 # after its creation but before its name has been assigned to `$tmp'.
23393 $debug ||
23395 tmp=
23396 trap 'exit_status=$?
23397 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23399 trap 'as_fn_exit 1' 1 2 13 15
23401 # Create a (secure) tmp directory for tmp files.
23404 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23405 test -n "$tmp" && test -d "$tmp"
23406 } ||
23408 tmp=./conf$$-$RANDOM
23409 (umask 077 && mkdir "$tmp")
23410 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
23412 # Set up the scripts for CONFIG_FILES section.
23413 # No need to generate them if there are no CONFIG_FILES.
23414 # This happens for instance with `./config.status config.h'.
23415 if test -n "$CONFIG_FILES"; then
23417 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
23418 ac_cs_awk_getline=:
23419 ac_cs_awk_pipe_init=
23420 ac_cs_awk_read_file='
23421 while ((getline aline < (F[key])) > 0)
23422 print(aline)
23423 close(F[key])'
23424 ac_cs_awk_pipe_fini=
23425 else
23426 ac_cs_awk_getline=false
23427 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
23428 ac_cs_awk_read_file='
23429 print "|#_!!_#|"
23430 print "cat " F[key] " &&"
23431 '$ac_cs_awk_pipe_init
23432 # The final `:' finishes the AND list.
23433 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
23435 ac_cr=`echo X | tr X '\015'`
23436 # On cygwin, bash can eat \r inside `` if the user requested igncr.
23437 # But we know of no other shell where ac_cr would be empty at this
23438 # point, so we can use a bashism as a fallback.
23439 if test "x$ac_cr" = x; then
23440 eval ac_cr=\$\'\\r\'
23442 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
23443 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
23444 ac_cs_awk_cr='\r'
23445 else
23446 ac_cs_awk_cr=$ac_cr
23449 echo 'BEGIN {' >"$tmp/subs1.awk" &&
23450 _ACEOF
23452 # Create commands to substitute file output variables.
23454 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
23455 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
23456 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
23457 echo "_ACAWK" &&
23458 echo "_ACEOF"
23459 } >conf$$files.sh &&
23460 . ./conf$$files.sh ||
23461 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
23462 rm -f conf$$files.sh
23465 echo "cat >conf$$subs.awk <<_ACEOF" &&
23466 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
23467 echo "_ACEOF"
23468 } >conf$$subs.sh ||
23469 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
23470 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
23471 ac_delim='%!_!# '
23472 for ac_last_try in false false false false false :; do
23473 . ./conf$$subs.sh ||
23474 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
23476 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
23477 if test $ac_delim_n = $ac_delim_num; then
23478 break
23479 elif $ac_last_try; then
23480 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
23481 else
23482 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23484 done
23485 rm -f conf$$subs.sh
23487 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23488 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
23489 _ACEOF
23490 sed -n '
23492 s/^/S["/; s/!.*/"]=/
23495 s/^[^!]*!//
23496 :repl
23497 t repl
23498 s/'"$ac_delim"'$//
23499 t delim
23502 s/\(.\{148\}\)..*/\1/
23503 t more1
23504 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
23507 b repl
23508 :more1
23509 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23512 s/.\{148\}//
23513 t nl
23514 :delim
23516 s/\(.\{148\}\)..*/\1/
23517 t more2
23518 s/["\\]/\\&/g; s/^/"/; s/$/"/
23521 :more2
23522 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23525 s/.\{148\}//
23526 t delim
23527 ' <conf$$subs.awk | sed '
23528 /^[^""]/{
23530 s/\n//
23532 ' >>$CONFIG_STATUS || ac_write_fail=1
23533 rm -f conf$$subs.awk
23534 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23535 _ACAWK
23536 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
23537 for (key in S) S_is_set[key] = 1
23538 FS = "\a"
23539 \$ac_cs_awk_pipe_init
23542 line = $ 0
23543 nfields = split(line, field, "@")
23544 substed = 0
23545 len = length(field[1])
23546 for (i = 2; i < nfields; i++) {
23547 key = field[i]
23548 keylen = length(key)
23549 if (S_is_set[key]) {
23550 value = S[key]
23551 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
23552 len += length(value) + length(field[++i])
23553 substed = 1
23554 } else
23555 len += 1 + keylen
23557 if (nfields == 3 && !substed) {
23558 key = field[2]
23559 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
23560 \$ac_cs_awk_read_file
23561 next
23564 print line
23566 \$ac_cs_awk_pipe_fini
23567 _ACAWK
23568 _ACEOF
23569 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23570 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
23571 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
23572 else
23574 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
23575 || as_fn_error "could not setup config files machinery" "$LINENO" 5
23576 _ACEOF
23578 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23579 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23580 # trailing colons and then remove the whole line if VPATH becomes empty
23581 # (actually we leave an empty line to preserve line numbers).
23582 if test "x$srcdir" = x.; then
23583 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23584 s/:*\$(srcdir):*/:/
23585 s/:*\${srcdir}:*/:/
23586 s/:*@srcdir@:*/:/
23587 s/^\([^=]*=[ ]*\):*/\1/
23588 s/:*$//
23589 s/^[^=]*=[ ]*$//
23593 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23594 fi # test -n "$CONFIG_FILES"
23596 # Set up the scripts for CONFIG_HEADERS section.
23597 # No need to generate them if there are no CONFIG_HEADERS.
23598 # This happens for instance with `./config.status Makefile'.
23599 if test -n "$CONFIG_HEADERS"; then
23600 cat >"$tmp/defines.awk" <<\_ACAWK ||
23601 BEGIN {
23602 _ACEOF
23604 # Transform confdefs.h into an awk script `defines.awk', embedded as
23605 # here-document in config.status, that substitutes the proper values into
23606 # config.h.in to produce config.h.
23608 # Create a delimiter string that does not exist in confdefs.h, to ease
23609 # handling of long lines.
23610 ac_delim='%!_!# '
23611 for ac_last_try in false false :; do
23612 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
23613 if test -z "$ac_t"; then
23614 break
23615 elif $ac_last_try; then
23616 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
23617 else
23618 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23620 done
23622 # For the awk script, D is an array of macro values keyed by name,
23623 # likewise P contains macro parameters if any. Preserve backslash
23624 # newline sequences.
23626 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23627 sed -n '
23628 s/.\{148\}/&'"$ac_delim"'/g
23629 t rset
23630 :rset
23631 s/^[ ]*#[ ]*define[ ][ ]*/ /
23632 t def
23634 :def
23635 s/\\$//
23636 t bsnl
23637 s/["\\]/\\&/g
23638 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
23639 D["\1"]=" \3"/p
23640 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
23642 :bsnl
23643 s/["\\]/\\&/g
23644 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
23645 D["\1"]=" \3\\\\\\n"\\/p
23646 t cont
23647 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
23648 t cont
23650 :cont
23652 s/.\{148\}/&'"$ac_delim"'/g
23653 t clear
23654 :clear
23655 s/\\$//
23656 t bsnlc
23657 s/["\\]/\\&/g; s/^/"/; s/$/"/p
23659 :bsnlc
23660 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
23661 b cont
23662 ' <confdefs.h | sed '
23663 s/'"$ac_delim"'/"\\\
23664 "/g' >>$CONFIG_STATUS || ac_write_fail=1
23666 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23667 for (key in D) D_is_set[key] = 1
23668 FS = "\a"
23670 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
23671 line = \$ 0
23672 split(line, arg, " ")
23673 if (arg[1] == "#") {
23674 defundef = arg[2]
23675 mac1 = arg[3]
23676 } else {
23677 defundef = substr(arg[1], 2)
23678 mac1 = arg[2]
23680 split(mac1, mac2, "(") #)
23681 macro = mac2[1]
23682 prefix = substr(line, 1, index(line, defundef) - 1)
23683 if (D_is_set[macro]) {
23684 # Preserve the white space surrounding the "#".
23685 print prefix "define", macro P[macro] D[macro]
23686 next
23687 } else {
23688 # Replace #undef with comments. This is necessary, for example,
23689 # in the case of _POSIX_SOURCE, which is predefined and required
23690 # on some systems where configure will not decide to define it.
23691 if (defundef == "undef") {
23692 print "/*", prefix defundef, macro, "*/"
23693 next
23697 { print }
23698 _ACAWK
23699 _ACEOF
23700 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23701 as_fn_error "could not setup config headers machinery" "$LINENO" 5
23702 fi # test -n "$CONFIG_HEADERS"
23705 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
23706 shift
23707 for ac_tag
23709 case $ac_tag in
23710 :[FHLC]) ac_mode=$ac_tag; continue;;
23711 esac
23712 case $ac_mode$ac_tag in
23713 :[FHL]*:*);;
23714 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
23715 :[FH]-) ac_tag=-:-;;
23716 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23717 esac
23718 ac_save_IFS=$IFS
23719 IFS=:
23720 set x $ac_tag
23721 IFS=$ac_save_IFS
23722 shift
23723 ac_file=$1
23724 shift
23726 case $ac_mode in
23727 :L) ac_source=$1;;
23728 :[FH])
23729 ac_file_inputs=
23730 for ac_f
23732 case $ac_f in
23733 -) ac_f="$tmp/stdin";;
23734 *) # Look for the file first in the build tree, then in the source tree
23735 # (if the path is not absolute). The absolute path cannot be DOS-style,
23736 # because $ac_f cannot contain `:'.
23737 test -f "$ac_f" ||
23738 case $ac_f in
23739 [\\/$]*) false;;
23740 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23741 esac ||
23742 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
23743 esac
23744 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
23745 as_fn_append ac_file_inputs " '$ac_f'"
23746 done
23748 # Let's still pretend it is `configure' which instantiates (i.e., don't
23749 # use $as_me), people would be surprised to read:
23750 # /* config.h. Generated by config.status. */
23751 configure_input='Generated from '`
23752 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
23753 `' by configure.'
23754 if test x"$ac_file" != x-; then
23755 configure_input="$ac_file. $configure_input"
23756 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
23757 $as_echo "$as_me: creating $ac_file" >&6;}
23759 # Neutralize special characters interpreted by sed in replacement strings.
23760 case $configure_input in #(
23761 *\&* | *\|* | *\\* )
23762 ac_sed_conf_input=`$as_echo "$configure_input" |
23763 sed 's/[\\\\&|]/\\\\&/g'`;; #(
23764 *) ac_sed_conf_input=$configure_input;;
23765 esac
23767 case $ac_tag in
23768 *:-:* | *:-) cat >"$tmp/stdin" \
23769 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
23770 esac
23772 esac
23774 ac_dir=`$as_dirname -- "$ac_file" ||
23775 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23776 X"$ac_file" : 'X\(//\)[^/]' \| \
23777 X"$ac_file" : 'X\(//\)$' \| \
23778 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23779 $as_echo X"$ac_file" |
23780 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23781 s//\1/
23784 /^X\(\/\/\)[^/].*/{
23785 s//\1/
23788 /^X\(\/\/\)$/{
23789 s//\1/
23792 /^X\(\/\).*/{
23793 s//\1/
23796 s/.*/./; q'`
23797 as_dir="$ac_dir"; as_fn_mkdir_p
23798 ac_builddir=.
23800 case "$ac_dir" in
23801 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23803 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
23804 # A ".." for each directory in $ac_dir_suffix.
23805 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
23806 case $ac_top_builddir_sub in
23807 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23808 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23809 esac ;;
23810 esac
23811 ac_abs_top_builddir=$ac_pwd
23812 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23813 # for backward compatibility:
23814 ac_top_builddir=$ac_top_build_prefix
23816 case $srcdir in
23817 .) # We are building in place.
23818 ac_srcdir=.
23819 ac_top_srcdir=$ac_top_builddir_sub
23820 ac_abs_top_srcdir=$ac_pwd ;;
23821 [\\/]* | ?:[\\/]* ) # Absolute name.
23822 ac_srcdir=$srcdir$ac_dir_suffix;
23823 ac_top_srcdir=$srcdir
23824 ac_abs_top_srcdir=$srcdir ;;
23825 *) # Relative name.
23826 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23827 ac_top_srcdir=$ac_top_build_prefix$srcdir
23828 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23829 esac
23830 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23833 case $ac_mode in
23836 # CONFIG_FILE
23839 case $INSTALL in
23840 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23841 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23842 esac
23843 ac_MKDIR_P=$MKDIR_P
23844 case $MKDIR_P in
23845 [\\/$]* | ?:[\\/]* ) ;;
23846 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
23847 esac
23848 _ACEOF
23850 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23851 # If the template does not know about datarootdir, expand it.
23852 # FIXME: This hack should be removed a few years after 2.60.
23853 ac_datarootdir_hack=; ac_datarootdir_seen=
23854 ac_sed_dataroot='
23855 /datarootdir/ {
23859 /@datadir@/p
23860 /@docdir@/p
23861 /@infodir@/p
23862 /@localedir@/p
23863 /@mandir@/p'
23864 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
23865 *datarootdir*) ac_datarootdir_seen=yes;;
23866 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23867 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23868 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23869 _ACEOF
23870 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23871 ac_datarootdir_hack='
23872 s&@datadir@&$datadir&g
23873 s&@docdir@&$docdir&g
23874 s&@infodir@&$infodir&g
23875 s&@localedir@&$localedir&g
23876 s&@mandir@&$mandir&g
23877 s&\\\${datarootdir}&$datarootdir&g' ;;
23878 esac
23879 _ACEOF
23881 # Neutralize VPATH when `$srcdir' = `.'.
23882 # Shell code in configure.ac might set extrasub.
23883 # FIXME: do we really want to maintain this feature?
23884 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23885 ac_sed_extra="$ac_vpsub
23886 $extrasub
23887 _ACEOF
23888 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23890 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23891 s|@configure_input@|$ac_sed_conf_input|;t t
23892 s&@top_builddir@&$ac_top_builddir_sub&;t t
23893 s&@top_build_prefix@&$ac_top_build_prefix&;t t
23894 s&@srcdir@&$ac_srcdir&;t t
23895 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23896 s&@top_srcdir@&$ac_top_srcdir&;t t
23897 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23898 s&@builddir@&$ac_builddir&;t t
23899 s&@abs_builddir@&$ac_abs_builddir&;t t
23900 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23901 s&@INSTALL@&$ac_INSTALL&;t t
23902 s&@MKDIR_P@&$ac_MKDIR_P&;t t
23903 $ac_datarootdir_hack
23905 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
23906 if $ac_cs_awk_getline; then
23907 $AWK -f "$tmp/subs.awk"
23908 else
23909 $AWK -f "$tmp/subs.awk" | $SHELL
23910 fi >$tmp/out \
23911 || as_fn_error "could not create $ac_file" "$LINENO" 5
23913 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23914 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23915 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23916 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23917 which seems to be undefined. Please make sure it is defined." >&5
23918 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23919 which seems to be undefined. Please make sure it is defined." >&2;}
23921 rm -f "$tmp/stdin"
23922 case $ac_file in
23923 -) cat "$tmp/out" && rm -f "$tmp/out";;
23924 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
23925 esac \
23926 || as_fn_error "could not create $ac_file" "$LINENO" 5
23930 # CONFIG_HEADER
23932 if test x"$ac_file" != x-; then
23934 $as_echo "/* $configure_input */" \
23935 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
23936 } >"$tmp/config.h" \
23937 || as_fn_error "could not create $ac_file" "$LINENO" 5
23938 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
23939 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
23940 $as_echo "$as_me: $ac_file is unchanged" >&6;}
23941 else
23942 rm -f "$ac_file"
23943 mv "$tmp/config.h" "$ac_file" \
23944 || as_fn_error "could not create $ac_file" "$LINENO" 5
23946 else
23947 $as_echo "/* $configure_input */" \
23948 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
23949 || as_fn_error "could not create -" "$LINENO" 5
23951 # Compute "$ac_file"'s index in $config_headers.
23952 _am_arg="$ac_file"
23953 _am_stamp_count=1
23954 for _am_header in $config_headers :; do
23955 case $_am_header in
23956 $_am_arg | $_am_arg:* )
23957 break ;;
23959 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23960 esac
23961 done
23962 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
23963 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23964 X"$_am_arg" : 'X\(//\)[^/]' \| \
23965 X"$_am_arg" : 'X\(//\)$' \| \
23966 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
23967 $as_echo X"$_am_arg" |
23968 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23969 s//\1/
23972 /^X\(\/\/\)[^/].*/{
23973 s//\1/
23976 /^X\(\/\/\)$/{
23977 s//\1/
23980 /^X\(\/\).*/{
23981 s//\1/
23984 s/.*/./; q'`/stamp-h$_am_stamp_count
23987 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
23988 $as_echo "$as_me: executing $ac_file commands" >&6;}
23990 esac
23993 case $ac_file$ac_mode in
23994 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
23995 # Autoconf 2.62 quotes --file arguments for eval, but not when files
23996 # are listed without --file. Let's play safe and only enable the eval
23997 # if we detect the quoting.
23998 case $CONFIG_FILES in
23999 *\'*) eval set x "$CONFIG_FILES" ;;
24000 *) set x $CONFIG_FILES ;;
24001 esac
24002 shift
24003 for mf
24005 # Strip MF so we end up with the name of the file.
24006 mf=`echo "$mf" | sed -e 's/:.*$//'`
24007 # Check whether this is an Automake generated Makefile or not.
24008 # We used to match only the files named `Makefile.in', but
24009 # some people rename them; so instead we look at the file content.
24010 # Grep'ing the first line is not enough: some people post-process
24011 # each Makefile.in and add a new line on top of each file to say so.
24012 # Grep'ing the whole file is not good either: AIX grep has a line
24013 # limit of 2048, but all sed's we know have understand at least 4000.
24014 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
24015 dirpart=`$as_dirname -- "$mf" ||
24016 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24017 X"$mf" : 'X\(//\)[^/]' \| \
24018 X"$mf" : 'X\(//\)$' \| \
24019 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
24020 $as_echo X"$mf" |
24021 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24022 s//\1/
24025 /^X\(\/\/\)[^/].*/{
24026 s//\1/
24029 /^X\(\/\/\)$/{
24030 s//\1/
24033 /^X\(\/\).*/{
24034 s//\1/
24037 s/.*/./; q'`
24038 else
24039 continue
24041 # Extract the definition of DEPDIR, am__include, and am__quote
24042 # from the Makefile without running `make'.
24043 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
24044 test -z "$DEPDIR" && continue
24045 am__include=`sed -n 's/^am__include = //p' < "$mf"`
24046 test -z "am__include" && continue
24047 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
24048 # When using ansi2knr, U may be empty or an underscore; expand it
24049 U=`sed -n 's/^U = //p' < "$mf"`
24050 # Find all dependency output files, they are included files with
24051 # $(DEPDIR) in their names. We invoke sed twice because it is the
24052 # simplest approach to changing $(DEPDIR) to its actual value in the
24053 # expansion.
24054 for file in `sed -n "
24055 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
24056 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
24057 # Make sure the directory exists.
24058 test -f "$dirpart/$file" && continue
24059 fdir=`$as_dirname -- "$file" ||
24060 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24061 X"$file" : 'X\(//\)[^/]' \| \
24062 X"$file" : 'X\(//\)$' \| \
24063 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
24064 $as_echo X"$file" |
24065 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24066 s//\1/
24069 /^X\(\/\/\)[^/].*/{
24070 s//\1/
24073 /^X\(\/\/\)$/{
24074 s//\1/
24077 /^X\(\/\).*/{
24078 s//\1/
24081 s/.*/./; q'`
24082 as_dir=$dirpart/$fdir; as_fn_mkdir_p
24083 # echo "creating $dirpart/$file"
24084 echo '# dummy' > "$dirpart/$file"
24085 done
24086 done
24089 "mkdirs":C)
24090 for dir in etc lisp ; do
24091 test -d ${dir} || mkdir ${dir}
24092 done
24094 "epaths":C)
24095 echo creating src/epaths.h
24096 ${MAKE-make} epaths-force
24098 "gdbinit":C)
24099 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
24100 echo creating src/.gdbinit
24101 echo source $srcdir/src/.gdbinit > src/.gdbinit
24105 esac
24106 done # for ac_tag
24109 as_fn_exit 0
24110 _ACEOF
24111 ac_clean_files=$ac_clean_files_save
24113 test $ac_write_fail = 0 ||
24114 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
24117 # configure is writing to config.log, and then calls config.status.
24118 # config.status does its own redirection, appending to config.log.
24119 # Unfortunately, on DOS this fails, as config.log is still kept open
24120 # by configure, so config.status won't be able to write to it; its
24121 # output is simply discarded. So we exec the FD to /dev/null,
24122 # effectively closing config.log, so it can be properly (re)opened and
24123 # appended to by config.status. When coming back to configure, we
24124 # need to make the FD available again.
24125 if test "$no_create" != yes; then
24126 ac_cs_success=:
24127 ac_config_status_args=
24128 test "$silent" = yes &&
24129 ac_config_status_args="$ac_config_status_args --quiet"
24130 exec 5>/dev/null
24131 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24132 exec 5>>config.log
24133 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24134 # would make configure fail if this is the last instruction.
24135 $ac_cs_success || as_fn_exit $?
24137 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
24138 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
24139 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}