* dbusbind.c (xd_signature_cat): Rename from signature_cat.
[emacs.git] / autogen / configure
blobbbd54f5715369a2757ba0e84deb74170517714cf
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for emacs 24.0.50.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
8 # Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
32 esac
36 as_nl='
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
91 # Find who we are. Look in the path if we contain no directory separator.
92 case $0 in #((
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
97 IFS=$as_save_IFS
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100 done
101 IFS=$as_save_IFS
104 esac
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
108 as_myself=$0
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112 exit 1
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136 if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 emulate sh
139 NULLCMD=:
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 setopt NO_GLOB_SUBST
144 else
145 case \`(set -o) 2>/dev/null\` in #(
146 *posix*) :
147 set -o posix ;; #(
148 *) :
150 esac
153 as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
159 exitcode=0
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
166 else
167 exitcode=1; echo positional parameters were not saved.
169 test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev/null; then :
176 as_have_required=yes
177 else
178 as_have_required=no
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
182 else
183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184 as_found=false
185 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
187 IFS=$as_save_IFS
188 test -z "$as_dir" && as_dir=.
189 as_found=:
190 case $as_dir in #(
192 for as_base in sh bash ksh sh5; do
193 # Try only shells that exist, to save several forks.
194 as_shell=$as_dir/$as_base
195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 CONFIG_SHELL=$as_shell as_have_required=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 break 2
202 done;;
203 esac
204 as_found=false
205 done
206 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208 CONFIG_SHELL=$SHELL as_have_required=yes
209 fi; }
210 IFS=$as_save_IFS
213 if test "x$CONFIG_SHELL" != x; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
217 BASH_ENV=/dev/null
218 ENV=/dev/null
219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220 export CONFIG_SHELL
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224 if test x$as_have_required = xno; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x${ZSH_VERSION+set} = xset ; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230 else
231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232 $0: including any error possibly output before this
233 $0: message. Then install a modern shell, or manually run
234 $0: the script under such a shell if you do have one."
236 exit 1
240 SHELL=${CONFIG_SHELL-/bin/sh}
241 export SHELL
242 # Unset more variables known to interfere with behavior of common tools.
243 CLICOLOR_FORCE= GREP_OPTIONS=
244 unset CLICOLOR_FORCE GREP_OPTIONS
246 ## --------------------- ##
247 ## M4sh Shell Functions. ##
248 ## --------------------- ##
249 # as_fn_unset VAR
250 # ---------------
251 # Portably unset VAR.
252 as_fn_unset ()
254 { eval $1=; unset $1;}
256 as_unset=as_fn_unset
258 # as_fn_set_status STATUS
259 # -----------------------
260 # Set $? to STATUS, without forking.
261 as_fn_set_status ()
263 return $1
264 } # as_fn_set_status
266 # as_fn_exit STATUS
267 # -----------------
268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
269 as_fn_exit ()
271 set +e
272 as_fn_set_status $1
273 exit $1
274 } # as_fn_exit
276 # as_fn_mkdir_p
277 # -------------
278 # Create "$as_dir" as a directory, including parents if necessary.
279 as_fn_mkdir_p ()
282 case $as_dir in #(
283 -*) as_dir=./$as_dir;;
284 esac
285 test -d "$as_dir" || eval $as_mkdir_p || {
286 as_dirs=
287 while :; do
288 case $as_dir in #(
289 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290 *) as_qdir=$as_dir;;
291 esac
292 as_dirs="'$as_qdir' $as_dirs"
293 as_dir=`$as_dirname -- "$as_dir" ||
294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295 X"$as_dir" : 'X\(//\)[^/]' \| \
296 X"$as_dir" : 'X\(//\)$' \| \
297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298 $as_echo X"$as_dir" |
299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
300 s//\1/
303 /^X\(\/\/\)[^/].*/{
304 s//\1/
307 /^X\(\/\/\)$/{
308 s//\1/
311 /^X\(\/\).*/{
312 s//\1/
315 s/.*/./; q'`
316 test -d "$as_dir" && break
317 done
318 test -z "$as_dirs" || eval "mkdir $as_dirs"
319 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
322 } # as_fn_mkdir_p
323 # as_fn_append VAR VALUE
324 # ----------------------
325 # Append the text in VALUE to the end of the definition contained in VAR. Take
326 # advantage of any shell optimizations that allow amortized linear growth over
327 # repeated appends, instead of the typical quadratic growth present in naive
328 # implementations.
329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330 eval 'as_fn_append ()
332 eval $1+=\$2
334 else
335 as_fn_append ()
337 eval $1=\$$1\$2
339 fi # as_fn_append
341 # as_fn_arith ARG...
342 # ------------------
343 # Perform arithmetic evaluation on the ARGs, and store the result in the
344 # global $as_val. Take advantage of shells that can avoid forks. The arguments
345 # must be portable across $(()) and expr.
346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
347 eval 'as_fn_arith ()
349 as_val=$(( $* ))
351 else
352 as_fn_arith ()
354 as_val=`expr "$@" || test $? -eq 1`
356 fi # as_fn_arith
359 # as_fn_error ERROR [LINENO LOG_FD]
360 # ---------------------------------
361 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363 # script with status $?, using 1 if that was 0.
364 as_fn_error ()
366 as_status=$?; test $as_status -eq 0 && as_status=1
367 if test "$3"; then
368 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
371 $as_echo "$as_me: error: $1" >&2
372 as_fn_exit $as_status
373 } # as_fn_error
375 if expr a : '\(a\)' >/dev/null 2>&1 &&
376 test "X`expr 00001 : '.*\(...\)'`" = X001; then
377 as_expr=expr
378 else
379 as_expr=false
382 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
383 as_basename=basename
384 else
385 as_basename=false
388 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
389 as_dirname=dirname
390 else
391 as_dirname=false
394 as_me=`$as_basename -- "$0" ||
395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396 X"$0" : 'X\(//\)$' \| \
397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
398 $as_echo X/"$0" |
399 sed '/^.*\/\([^/][^/]*\)\/*$/{
400 s//\1/
403 /^X\/\(\/\/\)$/{
404 s//\1/
407 /^X\/\(\/\).*/{
408 s//\1/
411 s/.*/./; q'`
413 # Avoid depending upon Character Ranges.
414 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417 as_cr_digits='0123456789'
418 as_cr_alnum=$as_cr_Letters$as_cr_digits
421 as_lineno_1=$LINENO as_lineno_1a=$LINENO
422 as_lineno_2=$LINENO as_lineno_2a=$LINENO
423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
426 sed -n '
428 /[$]LINENO/=
429 ' <$as_myself |
430 sed '
431 s/[$]LINENO.*/&-/
432 t lineno
434 :lineno
436 :loop
437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
438 t loop
439 s/-\n.*//
440 ' >$as_me.lineno &&
441 chmod +x "$as_me.lineno" ||
442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
444 # Don't try to exec as it changes $[0], causing all sort of problems
445 # (the dirname of $[0] is not the place where we might find the
446 # original and so on. Autoconf is especially sensitive to this).
447 . "./$as_me.lineno"
448 # Exit status is that of the last command.
449 exit
452 ECHO_C= ECHO_N= ECHO_T=
453 case `echo -n x` in #(((((
454 -n*)
455 case `echo 'xy\c'` in
456 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
457 xy) ECHO_C='\c';;
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
459 ECHO_T=' ';;
460 esac;;
462 ECHO_N='-n';;
463 esac
465 rm -f conf$$ conf$$.exe conf$$.file
466 if test -d conf$$.dir; then
467 rm -f conf$$.dir/conf$$.file
468 else
469 rm -f conf$$.dir
470 mkdir conf$$.dir 2>/dev/null
472 if (echo >conf$$.file) 2>/dev/null; then
473 if ln -s conf$$.file conf$$ 2>/dev/null; then
474 as_ln_s='ln -s'
475 # ... but there are two gotchas:
476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478 # In both cases, we have to default to `cp -p'.
479 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
480 as_ln_s='cp -p'
481 elif ln conf$$.file conf$$ 2>/dev/null; then
482 as_ln_s=ln
483 else
484 as_ln_s='cp -p'
486 else
487 as_ln_s='cp -p'
489 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490 rmdir conf$$.dir 2>/dev/null
492 if mkdir -p . 2>/dev/null; then
493 as_mkdir_p='mkdir -p "$as_dir"'
494 else
495 test -d ./-p && rmdir ./-p
496 as_mkdir_p=false
499 if test -x / >/dev/null 2>&1; then
500 as_test_x='test -x'
501 else
502 if ls -dL / >/dev/null 2>&1; then
503 as_ls_L_option=L
504 else
505 as_ls_L_option=
507 as_test_x='
508 eval sh -c '\''
509 if test -d "$1"; then
510 test -d "$1/.";
511 else
512 case $1 in #(
513 -*)set "./$1";;
514 esac;
515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516 ???[sx]*):;;*)false;;esac;fi
517 '\'' sh
520 as_executable_p=$as_test_x
522 # Sed expression to map a string onto a valid CPP name.
523 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
525 # Sed expression to map a string onto a valid variable name.
526 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
529 test -n "$DJDIR" || exec 7<&0 </dev/null
530 exec 6>&1
532 # Name of the host.
533 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
534 # so uname gets run too.
535 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
538 # Initializations.
540 ac_default_prefix=/usr/local
541 ac_clean_files=
542 ac_config_libobj_dir=.
543 LIBOBJS=
544 cross_compiling=no
545 subdirs=
546 MFLAGS=
547 MAKEFLAGS=
549 # Identity of this package.
550 PACKAGE_NAME='emacs'
551 PACKAGE_TARNAME='emacs'
552 PACKAGE_VERSION='24.0.50'
553 PACKAGE_STRING='emacs 24.0.50'
554 PACKAGE_BUGREPORT=''
555 PACKAGE_URL=''
557 ac_unique_file="src/lisp.h"
558 # Factoring default headers for most tests.
559 ac_includes_default="\
560 #include <stdio.h>
561 #ifdef HAVE_SYS_TYPES_H
562 # include <sys/types.h>
563 #endif
564 #ifdef HAVE_SYS_STAT_H
565 # include <sys/stat.h>
566 #endif
567 #ifdef STDC_HEADERS
568 # include <stdlib.h>
569 # include <stddef.h>
570 #else
571 # ifdef HAVE_STDLIB_H
572 # include <stdlib.h>
573 # endif
574 #endif
575 #ifdef HAVE_STRING_H
576 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
577 # include <memory.h>
578 # endif
579 # include <string.h>
580 #endif
581 #ifdef HAVE_STRINGS_H
582 # include <strings.h>
583 #endif
584 #ifdef HAVE_INTTYPES_H
585 # include <inttypes.h>
586 #endif
587 #ifdef HAVE_STDINT_H
588 # include <stdint.h>
589 #endif
590 #ifdef HAVE_UNISTD_H
591 # include <unistd.h>
592 #endif"
594 ac_header_list=
595 ac_func_list=
596 gl_getopt_required=POSIX
597 gl_getopt_required=POSIX
598 ac_subst_vars='gltests_LTLIBOBJS
599 gltests_LIBOBJS
600 gl_LTLIBOBJS
601 gl_LIBOBJS
602 am__EXEEXT_FALSE
603 am__EXEEXT_TRUE
604 LTLIBOBJS
605 LIBOBJS
606 SUBDIR_MAKEFILES_IN
607 LIB_GCC
608 LD_FIRSTFLAG
609 LD_SWITCH_SYSTEM_TEMACS
610 LIBGNU_LTLIBDEPS
611 LIBGNU_LIBDEPS
612 gltests_WITNESS
613 gl_GNULIB_ENABLED_verify_FALSE
614 gl_GNULIB_ENABLED_verify_TRUE
615 gl_GNULIB_ENABLED_strtoull_FALSE
616 gl_GNULIB_ENABLED_strtoull_TRUE
617 gl_GNULIB_ENABLED_strtoll_FALSE
618 gl_GNULIB_ENABLED_strtoll_TRUE
619 gl_GNULIB_ENABLED_stat_FALSE
620 gl_GNULIB_ENABLED_stat_TRUE
621 gl_GNULIB_ENABLED_sigprocmask_FALSE
622 gl_GNULIB_ENABLED_sigprocmask_TRUE
623 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE
624 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE
625 gl_GNULIB_ENABLED_dosname_FALSE
626 gl_GNULIB_ENABLED_dosname_TRUE
627 LTLIBINTL
628 LIBINTL
629 HAVE_UNISTD_H
630 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
631 NEXT_UNISTD_H
632 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
633 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
634 TIME_H_DEFINES_STRUCT_TIMESPEC
635 NEXT_AS_FIRST_DIRECTIVE_TIME_H
636 NEXT_TIME_H
637 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
638 NEXT_SYS_STAT_H
639 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
640 NEXT_STDLIB_H
641 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
642 NEXT_STDIO_H
643 REPLACE_VSPRINTF
644 REPLACE_VSNPRINTF
645 REPLACE_VPRINTF
646 REPLACE_VFPRINTF
647 REPLACE_VDPRINTF
648 REPLACE_VASPRINTF
649 REPLACE_TMPFILE
650 REPLACE_STDIO_WRITE_FUNCS
651 REPLACE_STDIO_READ_FUNCS
652 REPLACE_SPRINTF
653 REPLACE_SNPRINTF
654 REPLACE_RENAMEAT
655 REPLACE_RENAME
656 REPLACE_REMOVE
657 REPLACE_PRINTF
658 REPLACE_POPEN
659 REPLACE_PERROR
660 REPLACE_OBSTACK_PRINTF
661 REPLACE_GETLINE
662 REPLACE_GETDELIM
663 REPLACE_FTELLO
664 REPLACE_FTELL
665 REPLACE_FSEEKO
666 REPLACE_FSEEK
667 REPLACE_FREOPEN
668 REPLACE_FPURGE
669 REPLACE_FPRINTF
670 REPLACE_FOPEN
671 REPLACE_FFLUSH
672 REPLACE_FCLOSE
673 REPLACE_DPRINTF
674 HAVE_VDPRINTF
675 HAVE_VASPRINTF
676 HAVE_RENAMEAT
677 HAVE_FTELLO
678 HAVE_FSEEKO
679 HAVE_DPRINTF
680 HAVE_DECL_VSNPRINTF
681 HAVE_DECL_SNPRINTF
682 HAVE_DECL_OBSTACK_PRINTF
683 HAVE_DECL_GETLINE
684 HAVE_DECL_GETDELIM
685 HAVE_DECL_FTELLO
686 HAVE_DECL_FSEEKO
687 HAVE_DECL_FPURGE
688 GNULIB_VSPRINTF_POSIX
689 GNULIB_VSNPRINTF
690 GNULIB_VPRINTF_POSIX
691 GNULIB_VPRINTF
692 GNULIB_VFPRINTF_POSIX
693 GNULIB_VFPRINTF
694 GNULIB_VDPRINTF
695 GNULIB_VSCANF
696 GNULIB_VFSCANF
697 GNULIB_VASPRINTF
698 GNULIB_TMPFILE
699 GNULIB_STDIO_H_SIGPIPE
700 GNULIB_STDIO_H_NONBLOCKING
701 GNULIB_SPRINTF_POSIX
702 GNULIB_SNPRINTF
703 GNULIB_SCANF
704 GNULIB_RENAMEAT
705 GNULIB_RENAME
706 GNULIB_REMOVE
707 GNULIB_PUTS
708 GNULIB_PUTCHAR
709 GNULIB_PUTC
710 GNULIB_PRINTF_POSIX
711 GNULIB_PRINTF
712 GNULIB_POPEN
713 GNULIB_PERROR
714 GNULIB_OBSTACK_PRINTF_POSIX
715 GNULIB_OBSTACK_PRINTF
716 GNULIB_GETS
717 GNULIB_GETLINE
718 GNULIB_GETDELIM
719 GNULIB_GETCHAR
720 GNULIB_GETC
721 GNULIB_FWRITE
722 GNULIB_FTELLO
723 GNULIB_FTELL
724 GNULIB_FSEEKO
725 GNULIB_FSEEK
726 GNULIB_FSCANF
727 GNULIB_FREOPEN
728 GNULIB_FREAD
729 GNULIB_FPUTS
730 GNULIB_FPUTC
731 GNULIB_FPURGE
732 GNULIB_FPRINTF_POSIX
733 GNULIB_FPRINTF
734 GNULIB_FOPEN
735 GNULIB_FGETS
736 GNULIB_FGETC
737 GNULIB_FFLUSH
738 GNULIB_FCLOSE
739 GNULIB_DPRINTF
740 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
741 NEXT_STDDEF_H
742 GL_GENERATE_STDDEF_H_FALSE
743 GL_GENERATE_STDDEF_H_TRUE
744 STDDEF_H
745 HAVE_WCHAR_T
746 REPLACE_NULL
747 HAVE__BOOL
748 GL_GENERATE_STDBOOL_H_FALSE
749 GL_GENERATE_STDBOOL_H_TRUE
750 STDBOOL_H
751 GL_GENERATE_STDARG_H_FALSE
752 GL_GENERATE_STDARG_H_TRUE
753 STDARG_H
754 NEXT_AS_FIRST_DIRECTIVE_STDARG_H
755 NEXT_STDARG_H
756 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
757 NEXT_SIGNAL_H
758 REPLACE_PTHREAD_SIGMASK
759 HAVE_SIGHANDLER_T
760 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
761 HAVE_STRUCT_SIGACTION_SA_SIGACTION
762 HAVE_SIGACTION
763 HAVE_SIGINFO_T
764 HAVE_SIGSET_T
765 HAVE_PTHREAD_SIGMASK
766 HAVE_POSIX_SIGNALBLOCKING
767 GNULIB_SIGACTION
768 GNULIB_SIGPROCMASK
769 GNULIB_SIGNAL_H_SIGPIPE
770 GNULIB_PTHREAD_SIGMASK
771 LIB_PTHREAD_SIGMASK
772 REPLACE_TIMEGM
773 REPLACE_NANOSLEEP
774 REPLACE_MKTIME
775 REPLACE_LOCALTIME_R
776 HAVE_TIMEGM
777 HAVE_STRPTIME
778 HAVE_NANOSLEEP
779 HAVE_DECL_LOCALTIME_R
780 GNULIB_TIME_R
781 GNULIB_TIMEGM
782 GNULIB_STRPTIME
783 GNULIB_NANOSLEEP
784 GNULIB_MKTIME
785 REPLACE_UTIMENSAT
786 REPLACE_STAT
787 REPLACE_MKNOD
788 REPLACE_MKFIFO
789 REPLACE_MKDIR
790 REPLACE_LSTAT
791 REPLACE_FUTIMENS
792 REPLACE_FSTATAT
793 REPLACE_FSTAT
794 HAVE_UTIMENSAT
795 HAVE_MKNODAT
796 HAVE_MKNOD
797 HAVE_MKFIFOAT
798 HAVE_MKFIFO
799 HAVE_MKDIRAT
800 HAVE_LSTAT
801 HAVE_LCHMOD
802 HAVE_FUTIMENS
803 HAVE_FSTATAT
804 HAVE_FCHMODAT
805 GNULIB_UTIMENSAT
806 GNULIB_STAT
807 GNULIB_MKNODAT
808 GNULIB_MKNOD
809 GNULIB_MKFIFOAT
810 GNULIB_MKFIFO
811 GNULIB_MKDIRAT
812 GNULIB_LSTAT
813 GNULIB_LCHMOD
814 GNULIB_FUTIMENS
815 GNULIB_FSTATAT
816 GNULIB_FCHMODAT
817 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
818 NEXT_INTTYPES_H
819 UINT64_MAX_EQ_ULONG_MAX
820 UINT32_MAX_LT_UINTMAX_MAX
821 PRIPTR_PREFIX
822 PRI_MACROS_BROKEN
823 INT64_MAX_EQ_LONG_MAX
824 INT32_MAX_LT_INTMAX_MAX
825 HAVE_DECL_STRTOUMAX
826 HAVE_DECL_STRTOIMAX
827 HAVE_DECL_IMAXDIV
828 HAVE_DECL_IMAXABS
829 GNULIB_STRTOUMAX
830 GNULIB_STRTOIMAX
831 GNULIB_IMAXDIV
832 GNULIB_IMAXABS
833 GL_GENERATE_STDINT_H_FALSE
834 GL_GENERATE_STDINT_H_TRUE
835 STDINT_H
836 WINT_T_SUFFIX
837 WCHAR_T_SUFFIX
838 SIG_ATOMIC_T_SUFFIX
839 SIZE_T_SUFFIX
840 PTRDIFF_T_SUFFIX
841 HAVE_SIGNED_WINT_T
842 HAVE_SIGNED_WCHAR_T
843 HAVE_SIGNED_SIG_ATOMIC_T
844 BITSIZEOF_WINT_T
845 BITSIZEOF_WCHAR_T
846 BITSIZEOF_SIG_ATOMIC_T
847 BITSIZEOF_SIZE_T
848 BITSIZEOF_PTRDIFF_T
849 APPLE_UNIVERSAL_BUILD
850 HAVE_SYS_BITYPES_H
851 HAVE_SYS_INTTYPES_H
852 HAVE_STDINT_H
853 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
854 NEXT_STDINT_H
855 HAVE_SYS_TYPES_H
856 HAVE_INTTYPES_H
857 HAVE_WCHAR_H
858 HAVE_UNSIGNED_LONG_LONG_INT
859 HAVE_LONG_LONG_INT
860 GETOPT_H
861 HAVE_GETOPT_H
862 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
863 NEXT_GETOPT_H
864 PRAGMA_COLUMNS
865 PRAGMA_SYSTEM_HEADER
866 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
867 INCLUDE_NEXT
868 GETLOADAVG_LIBS
869 REPLACE_WCTOMB
870 REPLACE_UNSETENV
871 REPLACE_STRTOD
872 REPLACE_SETENV
873 REPLACE_REALPATH
874 REPLACE_REALLOC
875 REPLACE_PUTENV
876 REPLACE_MKSTEMP
877 REPLACE_MBTOWC
878 REPLACE_MALLOC
879 REPLACE_CANONICALIZE_FILE_NAME
880 REPLACE_CALLOC
881 HAVE_DECL_UNSETENV
882 HAVE_UNLOCKPT
883 HAVE_SYS_LOADAVG_H
884 HAVE_STRUCT_RANDOM_DATA
885 HAVE_STRTOULL
886 HAVE_STRTOLL
887 HAVE_STRTOD
888 HAVE_DECL_SETENV
889 HAVE_SETENV
890 HAVE_RPMATCH
891 HAVE_REALPATH
892 HAVE_RANDOM_R
893 HAVE_RANDOM_H
894 HAVE_PTSNAME
895 HAVE_MKSTEMPS
896 HAVE_MKSTEMP
897 HAVE_MKOSTEMPS
898 HAVE_MKOSTEMP
899 HAVE_MKDTEMP
900 HAVE_GRANTPT
901 HAVE_GETSUBOPT
902 HAVE_DECL_GETLOADAVG
903 HAVE_CANONICALIZE_FILE_NAME
904 HAVE_ATOLL
905 HAVE__EXIT
906 GNULIB_WCTOMB
907 GNULIB_UNSETENV
908 GNULIB_UNLOCKPT
909 GNULIB_SYSTEM_POSIX
910 GNULIB_STRTOULL
911 GNULIB_STRTOLL
912 GNULIB_STRTOD
913 GNULIB_SETENV
914 GNULIB_RPMATCH
915 GNULIB_REALPATH
916 GNULIB_REALLOC_POSIX
917 GNULIB_RANDOM_R
918 GNULIB_PUTENV
919 GNULIB_PTSNAME
920 GNULIB_MKSTEMPS
921 GNULIB_MKSTEMP
922 GNULIB_MKOSTEMPS
923 GNULIB_MKOSTEMP
924 GNULIB_MKDTEMP
925 GNULIB_MBTOWC
926 GNULIB_MALLOC_POSIX
927 GNULIB_GRANTPT
928 GNULIB_GETSUBOPT
929 GNULIB_GETLOADAVG
930 GNULIB_CANONICALIZE_FILE_NAME
931 GNULIB_CALLOC_POSIX
932 GNULIB_ATOLL
933 GNULIB__EXIT
934 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
935 UNISTD_H_HAVE_WINSOCK2_H
936 REPLACE_WRITE
937 REPLACE_USLEEP
938 REPLACE_UNLINKAT
939 REPLACE_UNLINK
940 REPLACE_TTYNAME_R
941 REPLACE_SYMLINK
942 REPLACE_SLEEP
943 REPLACE_RMDIR
944 REPLACE_READLINK
945 REPLACE_READ
946 REPLACE_PWRITE
947 REPLACE_PREAD
948 REPLACE_LSEEK
949 REPLACE_LINKAT
950 REPLACE_LINK
951 REPLACE_LCHOWN
952 REPLACE_GETPAGESIZE
953 REPLACE_GETGROUPS
954 REPLACE_GETLOGIN_R
955 REPLACE_GETDOMAINNAME
956 REPLACE_GETCWD
957 REPLACE_FCHOWNAT
958 REPLACE_DUP2
959 REPLACE_DUP
960 REPLACE_CLOSE
961 REPLACE_CHOWN
962 HAVE_SYS_PARAM_H
963 HAVE_OS_H
964 HAVE_DECL_TTYNAME_R
965 HAVE_DECL_GETUSERSHELL
966 HAVE_DECL_GETPAGESIZE
967 HAVE_DECL_GETLOGIN_R
968 HAVE_DECL_GETDOMAINNAME
969 HAVE_DECL_FCHDIR
970 HAVE_DECL_ENVIRON
971 HAVE_USLEEP
972 HAVE_UNLINKAT
973 HAVE_SYMLINKAT
974 HAVE_SYMLINK
975 HAVE_SLEEP
976 HAVE_READLINKAT
977 HAVE_READLINK
978 HAVE_PWRITE
979 HAVE_PREAD
980 HAVE_PIPE2
981 HAVE_PIPE
982 HAVE_LINKAT
983 HAVE_LINK
984 HAVE_LCHOWN
985 HAVE_GROUP_MEMBER
986 HAVE_GETPAGESIZE
987 HAVE_GETLOGIN
988 HAVE_GETHOSTNAME
989 HAVE_GETGROUPS
990 HAVE_GETDTABLESIZE
991 HAVE_FTRUNCATE
992 HAVE_FSYNC
993 HAVE_FCHOWNAT
994 HAVE_FCHDIR
995 HAVE_FACCESSAT
996 HAVE_EUIDACCESS
997 HAVE_DUP3
998 HAVE_DUP2
999 HAVE_CHOWN
1000 GNULIB_WRITE
1001 GNULIB_USLEEP
1002 GNULIB_UNLINKAT
1003 GNULIB_UNLINK
1004 GNULIB_UNISTD_H_SIGPIPE
1005 GNULIB_UNISTD_H_NONBLOCKING
1006 GNULIB_UNISTD_H_GETOPT
1007 GNULIB_TTYNAME_R
1008 GNULIB_SYMLINKAT
1009 GNULIB_SYMLINK
1010 GNULIB_SLEEP
1011 GNULIB_RMDIR
1012 GNULIB_READLINKAT
1013 GNULIB_READLINK
1014 GNULIB_READ
1015 GNULIB_PWRITE
1016 GNULIB_PREAD
1017 GNULIB_PIPE2
1018 GNULIB_PIPE
1019 GNULIB_LSEEK
1020 GNULIB_LINKAT
1021 GNULIB_LINK
1022 GNULIB_LCHOWN
1023 GNULIB_GROUP_MEMBER
1024 GNULIB_GETUSERSHELL
1025 GNULIB_GETPAGESIZE
1026 GNULIB_GETLOGIN_R
1027 GNULIB_GETLOGIN
1028 GNULIB_GETHOSTNAME
1029 GNULIB_GETGROUPS
1030 GNULIB_GETDTABLESIZE
1031 GNULIB_GETDOMAINNAME
1032 GNULIB_GETCWD
1033 GNULIB_FTRUNCATE
1034 GNULIB_FSYNC
1035 GNULIB_FCHOWNAT
1036 GNULIB_FCHDIR
1037 GNULIB_FACCESSAT
1038 GNULIB_EUIDACCESS
1039 GNULIB_ENVIRON
1040 GNULIB_DUP3
1041 GNULIB_DUP2
1042 GNULIB_CLOSE
1043 GNULIB_CHOWN
1044 GL_GENERATE_ALLOCA_H_FALSE
1045 GL_GENERATE_ALLOCA_H_TRUE
1046 ALLOCA_H
1047 ALLOCA
1048 GL_COND_LIBTOOL_FALSE
1049 GL_COND_LIBTOOL_TRUE
1050 POST_ALLOC_OBJ
1051 PRE_ALLOC_OBJ
1052 CYGWIN_OBJ
1053 RALLOC_OBJ
1054 OLDXMENU_DEPS
1055 LIBX_OTHER
1056 LIBXMENU
1057 OLDXMENU
1058 OLDXMENU_TARGET
1059 LIBXT_OTHER
1060 TOOLKIT_LIBW
1061 WIDGET_OBJ
1062 XOBJ
1063 XMENU_OBJ
1064 FONT_OBJ
1065 OTHER_FILES
1066 GNU_OBJC_CFLAGS
1067 ns_appsrc
1068 ns_appresdir
1069 ns_appbindir
1070 ns_appdir
1071 S_FILE
1072 M_FILE
1073 X_TOOLKIT_TYPE
1074 C_SWITCH_X_SYSTEM
1075 C_SWITCH_X_SITE
1076 LD_SWITCH_X_SITE
1077 gameuser
1078 gamedir
1079 bitmapdir
1080 archlibdir
1081 etcdir
1082 x_default_search_path
1083 lisppath
1084 locallisppath
1085 lispdir
1086 srcdir
1087 canonical
1088 configuration
1089 version
1090 KRB4LIB
1091 DESLIB
1092 KRB5LIB
1093 CRYPTOLIB
1094 COM_ERRLIB
1095 LIBRESOLV
1096 LIBHESIOD
1097 TERMCAP_OBJ
1098 LIBS_TERMCAP
1099 BLESSMAIL_TARGET
1100 LIBS_MAIL
1101 liblockfile
1102 LIBXML2_LIBS
1103 LIBXML2_CFLAGS
1104 LIBXSM
1105 LIBGPM
1106 LIBGIF
1107 LIBTIFF
1108 LIBPNG
1109 LIBJPEG
1110 LIBXPM
1111 M17N_FLT_LIBS
1112 M17N_FLT_CFLAGS
1113 LIBOTF_LIBS
1114 LIBOTF_CFLAGS
1115 FREETYPE_LIBS
1116 FREETYPE_CFLAGS
1117 XFT_LIBS
1118 XFT_CFLAGS
1119 FONTCONFIG_LIBS
1120 FONTCONFIG_CFLAGS
1121 LIBXMU
1122 LIBXTR6
1123 LIBGNUTLS_LIBS
1124 LIBGNUTLS_CFLAGS
1125 LIBSELINUX_LIBS
1126 SETTINGS_LIBS
1127 SETTINGS_CFLAGS
1128 GCONF_LIBS
1129 GCONF_CFLAGS
1130 GSETTINGS_LIBS
1131 GSETTINGS_CFLAGS
1132 DBUS_OBJ
1133 DBUS_LIBS
1134 DBUS_CFLAGS
1135 GTK_OBJ
1136 GTK_LIBS
1137 GTK_CFLAGS
1138 IMAGEMAGICK_LIBS
1139 IMAGEMAGICK_CFLAGS
1140 RSVG_LIBS
1141 RSVG_CFLAGS
1142 LIB_PTHREAD
1143 VMLIMIT_OBJ
1144 GMALLOC_OBJ
1145 HAVE_XSERVER
1146 LIB_STANDARD
1147 NS_OBJC_OBJ
1148 NS_OBJ
1149 TEMACS_LDFLAGS2
1150 LD_SWITCH_X_SITE_AUX_RPATH
1151 LD_SWITCH_X_SITE_AUX
1152 XMKMF
1153 DEPFLAGS
1154 MKDEPDIR
1155 CFLAGS_SOUND
1156 ALSA_LIBS
1157 ALSA_CFLAGS
1158 PKG_CONFIG
1159 LIBSOUND
1160 CRT_DIR
1161 START_FILES
1162 LIB_MATH
1163 LIBS_SYSTEM
1164 C_SWITCH_SYSTEM
1165 UNEXEC_OBJ
1166 C_SWITCH_MACHINE
1167 LD_SWITCH_SYSTEM
1168 CANNOT_DUMP
1169 HAVE_MAKEINFO
1170 GZIP_PROG
1171 INSTALL_INFO
1172 C_WARNINGS_SWITCH
1173 EGREP
1174 GREP
1176 RANLIB
1177 am__fastdepCC_FALSE
1178 am__fastdepCC_TRUE
1179 CCDEPMODE
1180 AMDEPBACKSLASH
1181 AMDEP_FALSE
1182 AMDEP_TRUE
1183 am__quote
1184 am__include
1185 DEPDIR
1186 OBJEXT
1187 EXEEXT
1188 ac_ct_CC
1189 CPPFLAGS
1190 LDFLAGS
1191 CFLAGS
1193 host_os
1194 host_vendor
1195 host_cpu
1196 host
1197 build_os
1198 build_vendor
1199 build_cpu
1200 build
1201 PROFILING_CFLAGS
1202 MAINT
1203 GZIP_INFO
1204 am__untar
1205 am__tar
1206 AMTAR
1207 am__leading_dot
1208 SET_MAKE
1210 mkdir_p
1211 MKDIR_P
1212 INSTALL_STRIP_PROGRAM
1213 STRIP
1214 install_sh
1215 MAKEINFO
1216 AUTOHEADER
1217 AUTOMAKE
1218 AUTOCONF
1219 ACLOCAL
1220 VERSION
1221 PACKAGE
1222 CYGPATH_W
1223 am__isrc
1224 INSTALL_DATA
1225 INSTALL_SCRIPT
1226 INSTALL_PROGRAM
1227 target_alias
1228 host_alias
1229 build_alias
1230 LIBS
1231 ECHO_T
1232 ECHO_N
1233 ECHO_C
1234 DEFS
1235 mandir
1236 localedir
1237 libdir
1238 psdir
1239 pdfdir
1240 dvidir
1241 htmldir
1242 infodir
1243 docdir
1244 oldincludedir
1245 includedir
1246 localstatedir
1247 sharedstatedir
1248 sysconfdir
1249 datadir
1250 datarootdir
1251 libexecdir
1252 sbindir
1253 bindir
1254 program_transform_name
1255 prefix
1256 exec_prefix
1257 PACKAGE_URL
1258 PACKAGE_BUGREPORT
1259 PACKAGE_STRING
1260 PACKAGE_VERSION
1261 PACKAGE_TARNAME
1262 PACKAGE_NAME
1263 PATH_SEPARATOR
1264 SHELL'
1265 ac_subst_files='deps_frag
1266 lisp_frag
1267 ns_frag'
1268 ac_user_opts='
1269 enable_option_checking
1270 with_pop
1271 with_kerberos
1272 with_kerberos5
1273 with_hesiod
1274 with_mmdf
1275 with_mail_unlink
1276 with_mailhost
1277 with_sound
1278 with_sync_input
1279 with_x_toolkit
1280 with_wide_int
1281 with_xpm
1282 with_jpeg
1283 with_tiff
1284 with_gif
1285 with_png
1286 with_rsvg
1287 with_xml2
1288 with_imagemagick
1289 with_xft
1290 with_libotf
1291 with_m17n_flt
1292 with_toolkit_scroll_bars
1293 with_xaw3d
1294 with_xim
1295 with_ns
1296 with_gpm
1297 with_dbus
1298 with_gconf
1299 with_gsettings
1300 with_selinux
1301 with_gnutls
1302 with_makeinfo
1303 with_compress_info
1304 with_pkg_config_prog
1305 with_crt_dir
1306 with_gameuser
1307 with_gnustep_conf
1308 enable_ns_self_contained
1309 enable_asserts
1310 enable_maintainer_mode
1311 enable_locallisppath
1312 enable_checking
1313 enable_use_lisp_union_type
1314 enable_profiling
1315 enable_autodepend
1316 enable_dependency_tracking
1317 enable_largefile
1318 with_x
1320 ac_precious_vars='build_alias
1321 host_alias
1322 target_alias
1324 CFLAGS
1325 LDFLAGS
1326 LIBS
1327 CPPFLAGS
1329 XMKMF'
1332 # Initialize some variables set by options.
1333 ac_init_help=
1334 ac_init_version=false
1335 ac_unrecognized_opts=
1336 ac_unrecognized_sep=
1337 # The variables have the same names as the options, with
1338 # dashes changed to underlines.
1339 cache_file=/dev/null
1340 exec_prefix=NONE
1341 no_create=
1342 no_recursion=
1343 prefix=NONE
1344 program_prefix=NONE
1345 program_suffix=NONE
1346 program_transform_name=s,x,x,
1347 silent=
1348 site=
1349 srcdir=
1350 verbose=
1351 x_includes=NONE
1352 x_libraries=NONE
1354 # Installation directory options.
1355 # These are left unexpanded so users can "make install exec_prefix=/foo"
1356 # and all the variables that are supposed to be based on exec_prefix
1357 # by default will actually change.
1358 # Use braces instead of parens because sh, perl, etc. also accept them.
1359 # (The list follows the same order as the GNU Coding Standards.)
1360 bindir='${exec_prefix}/bin'
1361 sbindir='${exec_prefix}/sbin'
1362 libexecdir='${exec_prefix}/libexec'
1363 datarootdir='${prefix}/share'
1364 datadir='${datarootdir}'
1365 sysconfdir='${prefix}/etc'
1366 sharedstatedir='${prefix}/com'
1367 localstatedir='${prefix}/var'
1368 includedir='${prefix}/include'
1369 oldincludedir='/usr/include'
1370 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1371 infodir='${datarootdir}/info'
1372 htmldir='${docdir}'
1373 dvidir='${docdir}'
1374 pdfdir='${docdir}'
1375 psdir='${docdir}'
1376 libdir='${exec_prefix}/lib'
1377 localedir='${datarootdir}/locale'
1378 mandir='${datarootdir}/man'
1380 ac_prev=
1381 ac_dashdash=
1382 for ac_option
1384 # If the previous option needs an argument, assign it.
1385 if test -n "$ac_prev"; then
1386 eval $ac_prev=\$ac_option
1387 ac_prev=
1388 continue
1391 case $ac_option in
1392 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1393 *) ac_optarg=yes ;;
1394 esac
1396 # Accept the important Cygnus configure options, so we can diagnose typos.
1398 case $ac_dashdash$ac_option in
1400 ac_dashdash=yes ;;
1402 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1403 ac_prev=bindir ;;
1404 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1405 bindir=$ac_optarg ;;
1407 -build | --build | --buil | --bui | --bu)
1408 ac_prev=build_alias ;;
1409 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1410 build_alias=$ac_optarg ;;
1412 -cache-file | --cache-file | --cache-fil | --cache-fi \
1413 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1414 ac_prev=cache_file ;;
1415 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1416 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1417 cache_file=$ac_optarg ;;
1419 --config-cache | -C)
1420 cache_file=config.cache ;;
1422 -datadir | --datadir | --datadi | --datad)
1423 ac_prev=datadir ;;
1424 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1425 datadir=$ac_optarg ;;
1427 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1428 | --dataroo | --dataro | --datar)
1429 ac_prev=datarootdir ;;
1430 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1431 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1432 datarootdir=$ac_optarg ;;
1434 -disable-* | --disable-*)
1435 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1436 # Reject names that are not valid shell variable names.
1437 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1438 as_fn_error "invalid feature name: $ac_useropt"
1439 ac_useropt_orig=$ac_useropt
1440 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1441 case $ac_user_opts in
1443 "enable_$ac_useropt"
1444 "*) ;;
1445 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1446 ac_unrecognized_sep=', ';;
1447 esac
1448 eval enable_$ac_useropt=no ;;
1450 -docdir | --docdir | --docdi | --doc | --do)
1451 ac_prev=docdir ;;
1452 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1453 docdir=$ac_optarg ;;
1455 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1456 ac_prev=dvidir ;;
1457 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1458 dvidir=$ac_optarg ;;
1460 -enable-* | --enable-*)
1461 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1462 # Reject names that are not valid shell variable names.
1463 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1464 as_fn_error "invalid feature name: $ac_useropt"
1465 ac_useropt_orig=$ac_useropt
1466 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1467 case $ac_user_opts in
1469 "enable_$ac_useropt"
1470 "*) ;;
1471 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1472 ac_unrecognized_sep=', ';;
1473 esac
1474 eval enable_$ac_useropt=\$ac_optarg ;;
1476 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1477 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1478 | --exec | --exe | --ex)
1479 ac_prev=exec_prefix ;;
1480 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1481 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1482 | --exec=* | --exe=* | --ex=*)
1483 exec_prefix=$ac_optarg ;;
1485 -gas | --gas | --ga | --g)
1486 # Obsolete; use --with-gas.
1487 with_gas=yes ;;
1489 -help | --help | --hel | --he | -h)
1490 ac_init_help=long ;;
1491 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1492 ac_init_help=recursive ;;
1493 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1494 ac_init_help=short ;;
1496 -host | --host | --hos | --ho)
1497 ac_prev=host_alias ;;
1498 -host=* | --host=* | --hos=* | --ho=*)
1499 host_alias=$ac_optarg ;;
1501 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1502 ac_prev=htmldir ;;
1503 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1504 | --ht=*)
1505 htmldir=$ac_optarg ;;
1507 -includedir | --includedir | --includedi | --included | --include \
1508 | --includ | --inclu | --incl | --inc)
1509 ac_prev=includedir ;;
1510 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1511 | --includ=* | --inclu=* | --incl=* | --inc=*)
1512 includedir=$ac_optarg ;;
1514 -infodir | --infodir | --infodi | --infod | --info | --inf)
1515 ac_prev=infodir ;;
1516 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1517 infodir=$ac_optarg ;;
1519 -libdir | --libdir | --libdi | --libd)
1520 ac_prev=libdir ;;
1521 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1522 libdir=$ac_optarg ;;
1524 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1525 | --libexe | --libex | --libe)
1526 ac_prev=libexecdir ;;
1527 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1528 | --libexe=* | --libex=* | --libe=*)
1529 libexecdir=$ac_optarg ;;
1531 -localedir | --localedir | --localedi | --localed | --locale)
1532 ac_prev=localedir ;;
1533 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1534 localedir=$ac_optarg ;;
1536 -localstatedir | --localstatedir | --localstatedi | --localstated \
1537 | --localstate | --localstat | --localsta | --localst | --locals)
1538 ac_prev=localstatedir ;;
1539 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1540 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1541 localstatedir=$ac_optarg ;;
1543 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1544 ac_prev=mandir ;;
1545 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1546 mandir=$ac_optarg ;;
1548 -nfp | --nfp | --nf)
1549 # Obsolete; use --without-fp.
1550 with_fp=no ;;
1552 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1553 | --no-cr | --no-c | -n)
1554 no_create=yes ;;
1556 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1557 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1558 no_recursion=yes ;;
1560 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1561 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1562 | --oldin | --oldi | --old | --ol | --o)
1563 ac_prev=oldincludedir ;;
1564 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1565 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1566 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1567 oldincludedir=$ac_optarg ;;
1569 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1570 ac_prev=prefix ;;
1571 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1572 prefix=$ac_optarg ;;
1574 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1575 | --program-pre | --program-pr | --program-p)
1576 ac_prev=program_prefix ;;
1577 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1578 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1579 program_prefix=$ac_optarg ;;
1581 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1582 | --program-suf | --program-su | --program-s)
1583 ac_prev=program_suffix ;;
1584 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1585 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1586 program_suffix=$ac_optarg ;;
1588 -program-transform-name | --program-transform-name \
1589 | --program-transform-nam | --program-transform-na \
1590 | --program-transform-n | --program-transform- \
1591 | --program-transform | --program-transfor \
1592 | --program-transfo | --program-transf \
1593 | --program-trans | --program-tran \
1594 | --progr-tra | --program-tr | --program-t)
1595 ac_prev=program_transform_name ;;
1596 -program-transform-name=* | --program-transform-name=* \
1597 | --program-transform-nam=* | --program-transform-na=* \
1598 | --program-transform-n=* | --program-transform-=* \
1599 | --program-transform=* | --program-transfor=* \
1600 | --program-transfo=* | --program-transf=* \
1601 | --program-trans=* | --program-tran=* \
1602 | --progr-tra=* | --program-tr=* | --program-t=*)
1603 program_transform_name=$ac_optarg ;;
1605 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1606 ac_prev=pdfdir ;;
1607 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1608 pdfdir=$ac_optarg ;;
1610 -psdir | --psdir | --psdi | --psd | --ps)
1611 ac_prev=psdir ;;
1612 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1613 psdir=$ac_optarg ;;
1615 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1616 | -silent | --silent | --silen | --sile | --sil)
1617 silent=yes ;;
1619 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1620 ac_prev=sbindir ;;
1621 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1622 | --sbi=* | --sb=*)
1623 sbindir=$ac_optarg ;;
1625 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1626 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1627 | --sharedst | --shareds | --shared | --share | --shar \
1628 | --sha | --sh)
1629 ac_prev=sharedstatedir ;;
1630 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1631 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1632 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1633 | --sha=* | --sh=*)
1634 sharedstatedir=$ac_optarg ;;
1636 -site | --site | --sit)
1637 ac_prev=site ;;
1638 -site=* | --site=* | --sit=*)
1639 site=$ac_optarg ;;
1641 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1642 ac_prev=srcdir ;;
1643 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1644 srcdir=$ac_optarg ;;
1646 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1647 | --syscon | --sysco | --sysc | --sys | --sy)
1648 ac_prev=sysconfdir ;;
1649 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1650 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1651 sysconfdir=$ac_optarg ;;
1653 -target | --target | --targe | --targ | --tar | --ta | --t)
1654 ac_prev=target_alias ;;
1655 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1656 target_alias=$ac_optarg ;;
1658 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1659 verbose=yes ;;
1661 -version | --version | --versio | --versi | --vers | -V)
1662 ac_init_version=: ;;
1664 -with-* | --with-*)
1665 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1666 # Reject names that are not valid shell variable names.
1667 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1668 as_fn_error "invalid package name: $ac_useropt"
1669 ac_useropt_orig=$ac_useropt
1670 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1671 case $ac_user_opts in
1673 "with_$ac_useropt"
1674 "*) ;;
1675 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1676 ac_unrecognized_sep=', ';;
1677 esac
1678 eval with_$ac_useropt=\$ac_optarg ;;
1680 -without-* | --without-*)
1681 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1682 # Reject names that are not valid shell variable names.
1683 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1684 as_fn_error "invalid package name: $ac_useropt"
1685 ac_useropt_orig=$ac_useropt
1686 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1687 case $ac_user_opts in
1689 "with_$ac_useropt"
1690 "*) ;;
1691 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1692 ac_unrecognized_sep=', ';;
1693 esac
1694 eval with_$ac_useropt=no ;;
1696 --x)
1697 # Obsolete; use --with-x.
1698 with_x=yes ;;
1700 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1701 | --x-incl | --x-inc | --x-in | --x-i)
1702 ac_prev=x_includes ;;
1703 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1704 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1705 x_includes=$ac_optarg ;;
1707 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1708 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1709 ac_prev=x_libraries ;;
1710 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1711 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1712 x_libraries=$ac_optarg ;;
1714 -*) as_fn_error "unrecognized option: \`$ac_option'
1715 Try \`$0 --help' for more information."
1718 *=*)
1719 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1720 # Reject names that are not valid shell variable names.
1721 case $ac_envvar in #(
1722 '' | [0-9]* | *[!_$as_cr_alnum]* )
1723 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1724 esac
1725 eval $ac_envvar=\$ac_optarg
1726 export $ac_envvar ;;
1729 # FIXME: should be removed in autoconf 3.0.
1730 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1731 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1732 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1733 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1736 esac
1737 done
1739 if test -n "$ac_prev"; then
1740 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1741 as_fn_error "missing argument to $ac_option"
1744 if test -n "$ac_unrecognized_opts"; then
1745 case $enable_option_checking in
1746 no) ;;
1747 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1748 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1749 esac
1752 # Check all directory arguments for consistency.
1753 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1754 datadir sysconfdir sharedstatedir localstatedir includedir \
1755 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1756 libdir localedir mandir
1758 eval ac_val=\$$ac_var
1759 # Remove trailing slashes.
1760 case $ac_val in
1761 */ )
1762 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1763 eval $ac_var=\$ac_val;;
1764 esac
1765 # Be sure to have absolute directory names.
1766 case $ac_val in
1767 [\\/$]* | ?:[\\/]* ) continue;;
1768 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1769 esac
1770 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1771 done
1773 # There might be people who depend on the old broken behavior: `$host'
1774 # used to hold the argument of --host etc.
1775 # FIXME: To remove some day.
1776 build=$build_alias
1777 host=$host_alias
1778 target=$target_alias
1780 # FIXME: To remove some day.
1781 if test "x$host_alias" != x; then
1782 if test "x$build_alias" = x; then
1783 cross_compiling=maybe
1784 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1785 If a cross compiler is detected then cross compile mode will be used." >&2
1786 elif test "x$build_alias" != "x$host_alias"; then
1787 cross_compiling=yes
1791 ac_tool_prefix=
1792 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1794 test "$silent" = yes && exec 6>/dev/null
1797 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1798 ac_ls_di=`ls -di .` &&
1799 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1800 as_fn_error "working directory cannot be determined"
1801 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1802 as_fn_error "pwd does not report name of working directory"
1805 # Find the source files, if location was not specified.
1806 if test -z "$srcdir"; then
1807 ac_srcdir_defaulted=yes
1808 # Try the directory containing this script, then the parent directory.
1809 ac_confdir=`$as_dirname -- "$as_myself" ||
1810 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1811 X"$as_myself" : 'X\(//\)[^/]' \| \
1812 X"$as_myself" : 'X\(//\)$' \| \
1813 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1814 $as_echo X"$as_myself" |
1815 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1816 s//\1/
1819 /^X\(\/\/\)[^/].*/{
1820 s//\1/
1823 /^X\(\/\/\)$/{
1824 s//\1/
1827 /^X\(\/\).*/{
1828 s//\1/
1831 s/.*/./; q'`
1832 srcdir=$ac_confdir
1833 if test ! -r "$srcdir/$ac_unique_file"; then
1834 srcdir=..
1836 else
1837 ac_srcdir_defaulted=no
1839 if test ! -r "$srcdir/$ac_unique_file"; then
1840 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1841 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1843 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1844 ac_abs_confdir=`(
1845 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1846 pwd)`
1847 # When building in place, set srcdir=.
1848 if test "$ac_abs_confdir" = "$ac_pwd"; then
1849 srcdir=.
1851 # Remove unnecessary trailing slashes from srcdir.
1852 # Double slashes in file names in object file debugging info
1853 # mess up M-x gdb in Emacs.
1854 case $srcdir in
1855 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1856 esac
1857 for ac_var in $ac_precious_vars; do
1858 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1859 eval ac_env_${ac_var}_value=\$${ac_var}
1860 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1861 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1862 done
1865 # Report the --help message.
1867 if test "$ac_init_help" = "long"; then
1868 # Omit some internal or obsolete options to make the list less imposing.
1869 # This message is too long to be a string in the A/UX 3.1 sh.
1870 cat <<_ACEOF
1871 \`configure' configures emacs 24.0.50 to adapt to many kinds of systems.
1873 Usage: $0 [OPTION]... [VAR=VALUE]...
1875 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1876 VAR=VALUE. See below for descriptions of some of the useful variables.
1878 Defaults for the options are specified in brackets.
1880 Configuration:
1881 -h, --help display this help and exit
1882 --help=short display options specific to this package
1883 --help=recursive display the short help of all the included packages
1884 -V, --version display version information and exit
1885 -q, --quiet, --silent do not print \`checking...' messages
1886 --cache-file=FILE cache test results in FILE [disabled]
1887 -C, --config-cache alias for \`--cache-file=config.cache'
1888 -n, --no-create do not create output files
1889 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1891 Installation directories:
1892 --prefix=PREFIX install architecture-independent files in PREFIX
1893 [$ac_default_prefix]
1894 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1895 [PREFIX]
1897 By default, \`make install' will install all the files in
1898 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1899 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1900 for instance \`--prefix=\$HOME'.
1902 For better control, use the options below.
1904 Fine tuning of the installation directories:
1905 --bindir=DIR user executables [EPREFIX/bin]
1906 --sbindir=DIR system admin executables [EPREFIX/sbin]
1907 --libexecdir=DIR program executables [EPREFIX/libexec]
1908 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1909 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1910 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1911 --libdir=DIR object code libraries [EPREFIX/lib]
1912 --includedir=DIR C header files [PREFIX/include]
1913 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1914 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1915 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1916 --infodir=DIR info documentation [DATAROOTDIR/info]
1917 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1918 --mandir=DIR man documentation [DATAROOTDIR/man]
1919 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1920 --htmldir=DIR html documentation [DOCDIR]
1921 --dvidir=DIR dvi documentation [DOCDIR]
1922 --pdfdir=DIR pdf documentation [DOCDIR]
1923 --psdir=DIR ps documentation [DOCDIR]
1924 _ACEOF
1926 cat <<\_ACEOF
1928 Program names:
1929 --program-prefix=PREFIX prepend PREFIX to installed program names
1930 --program-suffix=SUFFIX append SUFFIX to installed program names
1931 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1933 X features:
1934 --x-includes=DIR X include files are in DIR
1935 --x-libraries=DIR X library files are in DIR
1937 System types:
1938 --build=BUILD configure for building on BUILD [guessed]
1939 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1940 _ACEOF
1943 if test -n "$ac_init_help"; then
1944 case $ac_init_help in
1945 short | recursive ) echo "Configuration of emacs 24.0.50:";;
1946 esac
1947 cat <<\_ACEOF
1949 Optional Features:
1950 --disable-option-checking ignore unrecognized --enable/--with options
1951 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1952 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1953 --disable-ns-self-contained
1954 disable self contained build under NeXTstep
1955 --enable-asserts compile code with asserts enabled
1956 --disable-maintainer-mode
1957 disable make rules and dependencies not useful (and
1958 sometimes confusing) to the casual installer
1959 --enable-locallisppath=PATH
1960 directories Emacs should search for lisp files
1961 specific to this site
1962 --enable-checking[=LIST]
1963 enable expensive run-time checks. With LIST, enable
1964 only specific categories of checks. Categories are:
1965 all,yes,no. Flags are: stringbytes, stringoverrun,
1966 stringfreelist, xmallocoverrun, conslist
1967 --enable-use-lisp-union-type
1968 use a union for the Lisp_Object data type. This is
1969 only useful for development for catching certain
1970 types of bugs.
1971 --enable-profiling build emacs with profiling support. This might not
1972 work on all platforms
1973 --enable-autodepend automatically generate dependencies to .h-files.
1974 Requires GNU Make and Gcc. Enabled if GNU Make and
1975 Gcc is found
1976 --disable-dependency-tracking speeds up one-time build
1977 --enable-dependency-tracking do not reject slow dependency extractors
1978 --disable-largefile omit support for large files
1980 Optional Packages:
1981 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1982 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1983 --without-pop don't support POP mail retrieval with movemail
1984 --with-kerberos support Kerberos-authenticated POP
1985 --with-kerberos5 support Kerberos version 5 authenticated POP
1986 --with-hesiod support Hesiod to get the POP server host
1987 --with-mmdf support MMDF mailboxes
1988 --with-mail-unlink unlink, rather than empty, mail spool after reading
1989 --with-mailhost=HOSTNAME
1990 string giving default POP mail host
1991 --without-sound don't compile with sound support
1992 --without-sync-input process async input synchronously
1993 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes or gtk, gtk3,
1994 lucid or athena, motif, no)
1995 --with-wide-int prefer wide Emacs integers (typically 62-bit)
1996 --without-xpm don't compile with XPM image support
1997 --without-jpeg don't compile with JPEG image support
1998 --without-tiff don't compile with TIFF image support
1999 --without-gif don't compile with GIF image support
2000 --without-png don't compile with PNG image support
2001 --without-rsvg don't compile with SVG image support
2002 --without-xml2 don't compile with XML parsing support
2003 --without-imagemagick don't compile with ImageMagick image support
2004 --without-xft don't use XFT for anti aliased fonts
2005 --without-libotf don't use libotf for OpenType font support
2006 --without-m17n-flt don't use m17n-flt for text shaping
2007 --without-toolkit-scroll-bars
2008 don't use Motif or Xaw3d scroll bars
2009 --without-xaw3d don't use Xaw3d
2010 --without-xim don't use X11 XIM
2011 --with-ns use NeXTstep (Cocoa or GNUstep) windowing system
2012 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
2013 console
2014 --without-dbus don't compile with D-Bus support
2015 --without-gconf don't compile with GConf support
2016 --without-gsettings don't compile with GSettings support
2017 --without-selinux don't compile with SELinux support
2018 --without-gnutls don't use -lgnutls for SSL/TLS support
2019 --without-makeinfo don't require makeinfo for building manuals
2020 --without-compress-info don't compress the installed Info pages
2021 --with-pkg-config-prog=PATH
2022 path to pkg-config for finding GTK and librsvg
2023 --with-crt-dir=DIR directory containing crtn.o etc. The default is
2024 /usr/lib, or /usr/lib64 on some platforms.
2025 --with-gameuser=USER user for shared game score files
2026 --with-gnustep-conf=PATH
2027 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
2028 or /etc/GNUstep/GNUstep.conf
2029 --with-x use the X Window System
2031 Some influential environment variables:
2032 CC C compiler command
2033 CFLAGS C compiler flags
2034 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2035 nonstandard directory <lib dir>
2036 LIBS libraries to pass to the linker, e.g. -l<library>
2037 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2038 you have headers in a nonstandard directory <include dir>
2039 CPP C preprocessor
2040 XMKMF Path to xmkmf, Makefile generator for X Window System
2042 Use these variables to override the choices made by `configure' or to help
2043 it to find libraries and programs with nonstandard names/locations.
2045 Report bugs to the package provider.
2046 _ACEOF
2047 ac_status=$?
2050 if test "$ac_init_help" = "recursive"; then
2051 # If there are subdirs, report their specific --help.
2052 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2053 test -d "$ac_dir" ||
2054 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2055 continue
2056 ac_builddir=.
2058 case "$ac_dir" in
2059 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2061 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2062 # A ".." for each directory in $ac_dir_suffix.
2063 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2064 case $ac_top_builddir_sub in
2065 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2066 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2067 esac ;;
2068 esac
2069 ac_abs_top_builddir=$ac_pwd
2070 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2071 # for backward compatibility:
2072 ac_top_builddir=$ac_top_build_prefix
2074 case $srcdir in
2075 .) # We are building in place.
2076 ac_srcdir=.
2077 ac_top_srcdir=$ac_top_builddir_sub
2078 ac_abs_top_srcdir=$ac_pwd ;;
2079 [\\/]* | ?:[\\/]* ) # Absolute name.
2080 ac_srcdir=$srcdir$ac_dir_suffix;
2081 ac_top_srcdir=$srcdir
2082 ac_abs_top_srcdir=$srcdir ;;
2083 *) # Relative name.
2084 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2085 ac_top_srcdir=$ac_top_build_prefix$srcdir
2086 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2087 esac
2088 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2090 cd "$ac_dir" || { ac_status=$?; continue; }
2091 # Check for guested configure.
2092 if test -f "$ac_srcdir/configure.gnu"; then
2093 echo &&
2094 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2095 elif test -f "$ac_srcdir/configure"; then
2096 echo &&
2097 $SHELL "$ac_srcdir/configure" --help=recursive
2098 else
2099 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2100 fi || ac_status=$?
2101 cd "$ac_pwd" || { ac_status=$?; break; }
2102 done
2105 test -n "$ac_init_help" && exit $ac_status
2106 if $ac_init_version; then
2107 cat <<\_ACEOF
2108 emacs configure 24.0.50
2109 generated by GNU Autoconf 2.65
2111 Copyright (C) 2009 Free Software Foundation, Inc.
2112 This configure script is free software; the Free Software Foundation
2113 gives unlimited permission to copy, distribute and modify it.
2114 _ACEOF
2115 exit
2118 ## ------------------------ ##
2119 ## Autoconf initialization. ##
2120 ## ------------------------ ##
2122 # ac_fn_c_try_compile LINENO
2123 # --------------------------
2124 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2125 ac_fn_c_try_compile ()
2127 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2128 rm -f conftest.$ac_objext
2129 if { { ac_try="$ac_compile"
2130 case "(($ac_try" in
2131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2132 *) ac_try_echo=$ac_try;;
2133 esac
2134 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2135 $as_echo "$ac_try_echo"; } >&5
2136 (eval "$ac_compile") 2>conftest.err
2137 ac_status=$?
2138 if test -s conftest.err; then
2139 grep -v '^ *+' conftest.err >conftest.er1
2140 cat conftest.er1 >&5
2141 mv -f conftest.er1 conftest.err
2143 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2144 test $ac_status = 0; } && {
2145 test -z "$ac_c_werror_flag" ||
2146 test ! -s conftest.err
2147 } && test -s conftest.$ac_objext; then :
2148 ac_retval=0
2149 else
2150 $as_echo "$as_me: failed program was:" >&5
2151 sed 's/^/| /' conftest.$ac_ext >&5
2153 ac_retval=1
2155 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2156 as_fn_set_status $ac_retval
2158 } # ac_fn_c_try_compile
2160 # ac_fn_c_try_cpp LINENO
2161 # ----------------------
2162 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2163 ac_fn_c_try_cpp ()
2165 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2166 if { { ac_try="$ac_cpp conftest.$ac_ext"
2167 case "(($ac_try" in
2168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2169 *) ac_try_echo=$ac_try;;
2170 esac
2171 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2172 $as_echo "$ac_try_echo"; } >&5
2173 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2174 ac_status=$?
2175 if test -s conftest.err; then
2176 grep -v '^ *+' conftest.err >conftest.er1
2177 cat conftest.er1 >&5
2178 mv -f conftest.er1 conftest.err
2180 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2181 test $ac_status = 0; } >/dev/null && {
2182 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2183 test ! -s conftest.err
2184 }; then :
2185 ac_retval=0
2186 else
2187 $as_echo "$as_me: failed program was:" >&5
2188 sed 's/^/| /' conftest.$ac_ext >&5
2190 ac_retval=1
2192 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2193 as_fn_set_status $ac_retval
2195 } # ac_fn_c_try_cpp
2197 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2198 # -------------------------------------------------------
2199 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2200 # the include files in INCLUDES and setting the cache variable VAR
2201 # accordingly.
2202 ac_fn_c_check_header_mongrel ()
2204 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2205 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2207 $as_echo_n "checking for $2... " >&6; }
2208 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2209 $as_echo_n "(cached) " >&6
2211 eval ac_res=\$$3
2212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2213 $as_echo "$ac_res" >&6; }
2214 else
2215 # Is the header compilable?
2216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2217 $as_echo_n "checking $2 usability... " >&6; }
2218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2219 /* end confdefs.h. */
2221 #include <$2>
2222 _ACEOF
2223 if ac_fn_c_try_compile "$LINENO"; then :
2224 ac_header_compiler=yes
2225 else
2226 ac_header_compiler=no
2228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2230 $as_echo "$ac_header_compiler" >&6; }
2232 # Is the header present?
2233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2234 $as_echo_n "checking $2 presence... " >&6; }
2235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2236 /* end confdefs.h. */
2237 #include <$2>
2238 _ACEOF
2239 if ac_fn_c_try_cpp "$LINENO"; then :
2240 ac_header_preproc=yes
2241 else
2242 ac_header_preproc=no
2244 rm -f conftest.err conftest.$ac_ext
2245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2246 $as_echo "$ac_header_preproc" >&6; }
2248 # So? What about this header?
2249 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2250 yes:no: )
2251 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2252 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2253 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2254 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2256 no:yes:* )
2257 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2258 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2259 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2260 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2261 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2262 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2263 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2264 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2265 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2266 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2268 esac
2269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2270 $as_echo_n "checking for $2... " >&6; }
2271 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2272 $as_echo_n "(cached) " >&6
2273 else
2274 eval "$3=\$ac_header_compiler"
2276 eval ac_res=\$$3
2277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2278 $as_echo "$ac_res" >&6; }
2280 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2282 } # ac_fn_c_check_header_mongrel
2284 # ac_fn_c_try_run LINENO
2285 # ----------------------
2286 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2287 # that executables *can* be run.
2288 ac_fn_c_try_run ()
2290 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2291 if { { ac_try="$ac_link"
2292 case "(($ac_try" in
2293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2294 *) ac_try_echo=$ac_try;;
2295 esac
2296 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2297 $as_echo "$ac_try_echo"; } >&5
2298 (eval "$ac_link") 2>&5
2299 ac_status=$?
2300 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2301 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2302 { { case "(($ac_try" in
2303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2304 *) ac_try_echo=$ac_try;;
2305 esac
2306 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2307 $as_echo "$ac_try_echo"; } >&5
2308 (eval "$ac_try") 2>&5
2309 ac_status=$?
2310 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2311 test $ac_status = 0; }; }; then :
2312 ac_retval=0
2313 else
2314 $as_echo "$as_me: program exited with status $ac_status" >&5
2315 $as_echo "$as_me: failed program was:" >&5
2316 sed 's/^/| /' conftest.$ac_ext >&5
2318 ac_retval=$ac_status
2320 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2321 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2322 as_fn_set_status $ac_retval
2324 } # ac_fn_c_try_run
2326 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2327 # -------------------------------------------------------
2328 # Tests whether HEADER exists and can be compiled using the include files in
2329 # INCLUDES, setting the cache variable VAR accordingly.
2330 ac_fn_c_check_header_compile ()
2332 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2334 $as_echo_n "checking for $2... " >&6; }
2335 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2336 $as_echo_n "(cached) " >&6
2337 else
2338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2339 /* end confdefs.h. */
2341 #include <$2>
2342 _ACEOF
2343 if ac_fn_c_try_compile "$LINENO"; then :
2344 eval "$3=yes"
2345 else
2346 eval "$3=no"
2348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2350 eval ac_res=\$$3
2351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2352 $as_echo "$ac_res" >&6; }
2353 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2355 } # ac_fn_c_check_header_compile
2357 # ac_fn_c_try_link LINENO
2358 # -----------------------
2359 # Try to link conftest.$ac_ext, and return whether this succeeded.
2360 ac_fn_c_try_link ()
2362 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2363 rm -f conftest.$ac_objext conftest$ac_exeext
2364 if { { ac_try="$ac_link"
2365 case "(($ac_try" in
2366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2367 *) ac_try_echo=$ac_try;;
2368 esac
2369 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2370 $as_echo "$ac_try_echo"; } >&5
2371 (eval "$ac_link") 2>conftest.err
2372 ac_status=$?
2373 if test -s conftest.err; then
2374 grep -v '^ *+' conftest.err >conftest.er1
2375 cat conftest.er1 >&5
2376 mv -f conftest.er1 conftest.err
2378 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2379 test $ac_status = 0; } && {
2380 test -z "$ac_c_werror_flag" ||
2381 test ! -s conftest.err
2382 } && test -s conftest$ac_exeext && {
2383 test "$cross_compiling" = yes ||
2384 $as_test_x conftest$ac_exeext
2385 }; then :
2386 ac_retval=0
2387 else
2388 $as_echo "$as_me: failed program was:" >&5
2389 sed 's/^/| /' conftest.$ac_ext >&5
2391 ac_retval=1
2393 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2394 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2395 # interfere with the next link command; also delete a directory that is
2396 # left behind by Apple's compiler. We do this before executing the actions.
2397 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2398 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2399 as_fn_set_status $ac_retval
2401 } # ac_fn_c_try_link
2403 # ac_fn_c_check_decl LINENO SYMBOL VAR
2404 # ------------------------------------
2405 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2406 ac_fn_c_check_decl ()
2408 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2410 $as_echo_n "checking whether $2 is declared... " >&6; }
2411 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2412 $as_echo_n "(cached) " >&6
2413 else
2414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2415 /* end confdefs.h. */
2418 main ()
2420 #ifndef $2
2421 (void) $2;
2422 #endif
2425 return 0;
2427 _ACEOF
2428 if ac_fn_c_try_compile "$LINENO"; then :
2429 eval "$3=yes"
2430 else
2431 eval "$3=no"
2433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2435 eval ac_res=\$$3
2436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2437 $as_echo "$ac_res" >&6; }
2438 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2440 } # ac_fn_c_check_decl
2442 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2443 # ----------------------------------------------
2444 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2445 ac_fn_c_check_header_preproc ()
2447 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2449 $as_echo_n "checking for $2... " >&6; }
2450 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2451 $as_echo_n "(cached) " >&6
2452 else
2453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2454 /* end confdefs.h. */
2455 #include <$2>
2456 _ACEOF
2457 if ac_fn_c_try_cpp "$LINENO"; then :
2458 eval "$3=yes"
2459 else
2460 eval "$3=no"
2462 rm -f conftest.err conftest.$ac_ext
2464 eval ac_res=\$$3
2465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2466 $as_echo "$ac_res" >&6; }
2467 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2469 } # ac_fn_c_check_header_preproc
2471 # ac_fn_c_check_func LINENO FUNC VAR
2472 # ----------------------------------
2473 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2474 ac_fn_c_check_func ()
2476 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2478 $as_echo_n "checking for $2... " >&6; }
2479 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2480 $as_echo_n "(cached) " >&6
2481 else
2482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2483 /* end confdefs.h. */
2484 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2485 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2486 #define $2 innocuous_$2
2488 /* System header to define __stub macros and hopefully few prototypes,
2489 which can conflict with char $2 (); below.
2490 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2491 <limits.h> exists even on freestanding compilers. */
2493 #ifdef __STDC__
2494 # include <limits.h>
2495 #else
2496 # include <assert.h>
2497 #endif
2499 #undef $2
2501 /* Override any GCC internal prototype to avoid an error.
2502 Use char because int might match the return type of a GCC
2503 builtin and then its argument prototype would still apply. */
2504 #ifdef __cplusplus
2505 extern "C"
2506 #endif
2507 char $2 ();
2508 /* The GNU C library defines this for functions which it implements
2509 to always fail with ENOSYS. Some functions are actually named
2510 something starting with __ and the normal name is an alias. */
2511 #if defined __stub_$2 || defined __stub___$2
2512 choke me
2513 #endif
2516 main ()
2518 return $2 ();
2520 return 0;
2522 _ACEOF
2523 if ac_fn_c_try_link "$LINENO"; then :
2524 eval "$3=yes"
2525 else
2526 eval "$3=no"
2528 rm -f core conftest.err conftest.$ac_objext \
2529 conftest$ac_exeext conftest.$ac_ext
2531 eval ac_res=\$$3
2532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2533 $as_echo "$ac_res" >&6; }
2534 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2536 } # ac_fn_c_check_func
2538 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2539 # ----------------------------------------------------
2540 # Tries to find if the field MEMBER exists in type AGGR, after including
2541 # INCLUDES, setting cache variable VAR accordingly.
2542 ac_fn_c_check_member ()
2544 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2546 $as_echo_n "checking for $2.$3... " >&6; }
2547 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2548 $as_echo_n "(cached) " >&6
2549 else
2550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2551 /* end confdefs.h. */
2554 main ()
2556 static $2 ac_aggr;
2557 if (ac_aggr.$3)
2558 return 0;
2560 return 0;
2562 _ACEOF
2563 if ac_fn_c_try_compile "$LINENO"; then :
2564 eval "$4=yes"
2565 else
2566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2567 /* end confdefs.h. */
2570 main ()
2572 static $2 ac_aggr;
2573 if (sizeof ac_aggr.$3)
2574 return 0;
2576 return 0;
2578 _ACEOF
2579 if ac_fn_c_try_compile "$LINENO"; then :
2580 eval "$4=yes"
2581 else
2582 eval "$4=no"
2584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2588 eval ac_res=\$$4
2589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2590 $as_echo "$ac_res" >&6; }
2591 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2593 } # ac_fn_c_check_member
2595 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2596 # -------------------------------------------
2597 # Tests whether TYPE exists after having included INCLUDES, setting cache
2598 # variable VAR accordingly.
2599 ac_fn_c_check_type ()
2601 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2603 $as_echo_n "checking for $2... " >&6; }
2604 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2605 $as_echo_n "(cached) " >&6
2606 else
2607 eval "$3=no"
2608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2609 /* end confdefs.h. */
2612 main ()
2614 if (sizeof ($2))
2615 return 0;
2617 return 0;
2619 _ACEOF
2620 if ac_fn_c_try_compile "$LINENO"; then :
2621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2622 /* end confdefs.h. */
2625 main ()
2627 if (sizeof (($2)))
2628 return 0;
2630 return 0;
2632 _ACEOF
2633 if ac_fn_c_try_compile "$LINENO"; then :
2635 else
2636 eval "$3=yes"
2638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2642 eval ac_res=\$$3
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2644 $as_echo "$ac_res" >&6; }
2645 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2647 } # ac_fn_c_check_type
2649 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2650 # --------------------------------------------
2651 # Tries to find the compile-time value of EXPR in a program that includes
2652 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2653 # computed
2654 ac_fn_c_compute_int ()
2656 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2657 if test "$cross_compiling" = yes; then
2658 # Depending upon the size, compute the lo and hi bounds.
2659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2660 /* end confdefs.h. */
2663 main ()
2665 static int test_array [1 - 2 * !(($2) >= 0)];
2666 test_array [0] = 0
2669 return 0;
2671 _ACEOF
2672 if ac_fn_c_try_compile "$LINENO"; then :
2673 ac_lo=0 ac_mid=0
2674 while :; do
2675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2676 /* end confdefs.h. */
2679 main ()
2681 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2682 test_array [0] = 0
2685 return 0;
2687 _ACEOF
2688 if ac_fn_c_try_compile "$LINENO"; then :
2689 ac_hi=$ac_mid; break
2690 else
2691 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2692 if test $ac_lo -le $ac_mid; then
2693 ac_lo= ac_hi=
2694 break
2696 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2699 done
2700 else
2701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2702 /* end confdefs.h. */
2705 main ()
2707 static int test_array [1 - 2 * !(($2) < 0)];
2708 test_array [0] = 0
2711 return 0;
2713 _ACEOF
2714 if ac_fn_c_try_compile "$LINENO"; then :
2715 ac_hi=-1 ac_mid=-1
2716 while :; do
2717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2718 /* end confdefs.h. */
2721 main ()
2723 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2724 test_array [0] = 0
2727 return 0;
2729 _ACEOF
2730 if ac_fn_c_try_compile "$LINENO"; then :
2731 ac_lo=$ac_mid; break
2732 else
2733 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2734 if test $ac_mid -le $ac_hi; then
2735 ac_lo= ac_hi=
2736 break
2738 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2741 done
2742 else
2743 ac_lo= ac_hi=
2745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2748 # Binary search between lo and hi bounds.
2749 while test "x$ac_lo" != "x$ac_hi"; do
2750 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2752 /* end confdefs.h. */
2755 main ()
2757 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2758 test_array [0] = 0
2761 return 0;
2763 _ACEOF
2764 if ac_fn_c_try_compile "$LINENO"; then :
2765 ac_hi=$ac_mid
2766 else
2767 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2770 done
2771 case $ac_lo in #((
2772 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2773 '') ac_retval=1 ;;
2774 esac
2775 else
2776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2777 /* end confdefs.h. */
2779 static long int longval () { return $2; }
2780 static unsigned long int ulongval () { return $2; }
2781 #include <stdio.h>
2782 #include <stdlib.h>
2784 main ()
2787 FILE *f = fopen ("conftest.val", "w");
2788 if (! f)
2789 return 1;
2790 if (($2) < 0)
2792 long int i = longval ();
2793 if (i != ($2))
2794 return 1;
2795 fprintf (f, "%ld", i);
2797 else
2799 unsigned long int i = ulongval ();
2800 if (i != ($2))
2801 return 1;
2802 fprintf (f, "%lu", i);
2804 /* Do not output a trailing newline, as this causes \r\n confusion
2805 on some platforms. */
2806 return ferror (f) || fclose (f) != 0;
2809 return 0;
2811 _ACEOF
2812 if ac_fn_c_try_run "$LINENO"; then :
2813 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2814 else
2815 ac_retval=1
2817 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2818 conftest.$ac_objext conftest.beam conftest.$ac_ext
2819 rm -f conftest.val
2822 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2823 as_fn_set_status $ac_retval
2825 } # ac_fn_c_compute_int
2826 cat >config.log <<_ACEOF
2827 This file contains any messages produced by compilers while
2828 running configure, to aid debugging if configure makes a mistake.
2830 It was created by emacs $as_me 24.0.50, which was
2831 generated by GNU Autoconf 2.65. Invocation command line was
2833 $ $0 $@
2835 _ACEOF
2836 exec 5>>config.log
2838 cat <<_ASUNAME
2839 ## --------- ##
2840 ## Platform. ##
2841 ## --------- ##
2843 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2844 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2845 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2846 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2847 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2849 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2850 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2852 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2853 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2854 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2855 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2856 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2857 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2858 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2860 _ASUNAME
2862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2863 for as_dir in $PATH
2865 IFS=$as_save_IFS
2866 test -z "$as_dir" && as_dir=.
2867 $as_echo "PATH: $as_dir"
2868 done
2869 IFS=$as_save_IFS
2871 } >&5
2873 cat >&5 <<_ACEOF
2876 ## ----------- ##
2877 ## Core tests. ##
2878 ## ----------- ##
2880 _ACEOF
2883 # Keep a trace of the command line.
2884 # Strip out --no-create and --no-recursion so they do not pile up.
2885 # Strip out --silent because we don't want to record it for future runs.
2886 # Also quote any args containing shell meta-characters.
2887 # Make two passes to allow for proper duplicate-argument suppression.
2888 ac_configure_args=
2889 ac_configure_args0=
2890 ac_configure_args1=
2891 ac_must_keep_next=false
2892 for ac_pass in 1 2
2894 for ac_arg
2896 case $ac_arg in
2897 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2898 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2899 | -silent | --silent | --silen | --sile | --sil)
2900 continue ;;
2901 *\'*)
2902 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2903 esac
2904 case $ac_pass in
2905 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2907 as_fn_append ac_configure_args1 " '$ac_arg'"
2908 if test $ac_must_keep_next = true; then
2909 ac_must_keep_next=false # Got value, back to normal.
2910 else
2911 case $ac_arg in
2912 *=* | --config-cache | -C | -disable-* | --disable-* \
2913 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2914 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2915 | -with-* | --with-* | -without-* | --without-* | --x)
2916 case "$ac_configure_args0 " in
2917 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2918 esac
2920 -* ) ac_must_keep_next=true ;;
2921 esac
2923 as_fn_append ac_configure_args " '$ac_arg'"
2925 esac
2926 done
2927 done
2928 { ac_configure_args0=; unset ac_configure_args0;}
2929 { ac_configure_args1=; unset ac_configure_args1;}
2931 # When interrupted or exit'd, cleanup temporary files, and complete
2932 # config.log. We remove comments because anyway the quotes in there
2933 # would cause problems or look ugly.
2934 # WARNING: Use '\'' to represent an apostrophe within the trap.
2935 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2936 trap 'exit_status=$?
2937 # Save into config.log some information that might help in debugging.
2939 echo
2941 cat <<\_ASBOX
2942 ## ---------------- ##
2943 ## Cache variables. ##
2944 ## ---------------- ##
2945 _ASBOX
2946 echo
2947 # The following way of writing the cache mishandles newlines in values,
2949 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2950 eval ac_val=\$$ac_var
2951 case $ac_val in #(
2952 *${as_nl}*)
2953 case $ac_var in #(
2954 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2955 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2956 esac
2957 case $ac_var in #(
2958 _ | IFS | as_nl) ;; #(
2959 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2960 *) { eval $ac_var=; unset $ac_var;} ;;
2961 esac ;;
2962 esac
2963 done
2964 (set) 2>&1 |
2965 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2966 *${as_nl}ac_space=\ *)
2967 sed -n \
2968 "s/'\''/'\''\\\\'\'''\''/g;
2969 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2970 ;; #(
2972 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2974 esac |
2975 sort
2977 echo
2979 cat <<\_ASBOX
2980 ## ----------------- ##
2981 ## Output variables. ##
2982 ## ----------------- ##
2983 _ASBOX
2984 echo
2985 for ac_var in $ac_subst_vars
2987 eval ac_val=\$$ac_var
2988 case $ac_val in
2989 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2990 esac
2991 $as_echo "$ac_var='\''$ac_val'\''"
2992 done | sort
2993 echo
2995 if test -n "$ac_subst_files"; then
2996 cat <<\_ASBOX
2997 ## ------------------- ##
2998 ## File substitutions. ##
2999 ## ------------------- ##
3000 _ASBOX
3001 echo
3002 for ac_var in $ac_subst_files
3004 eval ac_val=\$$ac_var
3005 case $ac_val in
3006 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3007 esac
3008 $as_echo "$ac_var='\''$ac_val'\''"
3009 done | sort
3010 echo
3013 if test -s confdefs.h; then
3014 cat <<\_ASBOX
3015 ## ----------- ##
3016 ## confdefs.h. ##
3017 ## ----------- ##
3018 _ASBOX
3019 echo
3020 cat confdefs.h
3021 echo
3023 test "$ac_signal" != 0 &&
3024 $as_echo "$as_me: caught signal $ac_signal"
3025 $as_echo "$as_me: exit $exit_status"
3026 } >&5
3027 rm -f core *.core core.conftest.* &&
3028 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3029 exit $exit_status
3031 for ac_signal in 1 2 13 15; do
3032 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3033 done
3034 ac_signal=0
3036 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3037 rm -f -r conftest* confdefs.h
3039 $as_echo "/* confdefs.h */" > confdefs.h
3041 # Predefined preprocessor variables.
3043 cat >>confdefs.h <<_ACEOF
3044 #define PACKAGE_NAME "$PACKAGE_NAME"
3045 _ACEOF
3047 cat >>confdefs.h <<_ACEOF
3048 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3049 _ACEOF
3051 cat >>confdefs.h <<_ACEOF
3052 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3053 _ACEOF
3055 cat >>confdefs.h <<_ACEOF
3056 #define PACKAGE_STRING "$PACKAGE_STRING"
3057 _ACEOF
3059 cat >>confdefs.h <<_ACEOF
3060 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3061 _ACEOF
3063 cat >>confdefs.h <<_ACEOF
3064 #define PACKAGE_URL "$PACKAGE_URL"
3065 _ACEOF
3068 # Let the site file select an alternate cache file if it wants to.
3069 # Prefer an explicitly selected file to automatically selected ones.
3070 ac_site_file1=NONE
3071 ac_site_file2=NONE
3072 if test -n "$CONFIG_SITE"; then
3073 ac_site_file1=$CONFIG_SITE
3074 elif test "x$prefix" != xNONE; then
3075 ac_site_file1=$prefix/share/config.site
3076 ac_site_file2=$prefix/etc/config.site
3077 else
3078 ac_site_file1=$ac_default_prefix/share/config.site
3079 ac_site_file2=$ac_default_prefix/etc/config.site
3081 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3083 test "x$ac_site_file" = xNONE && continue
3084 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3085 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3086 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3087 sed 's/^/| /' "$ac_site_file" >&5
3088 . "$ac_site_file"
3090 done
3092 if test -r "$cache_file"; then
3093 # Some versions of bash will fail to source /dev/null (special files
3094 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3095 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3096 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3097 $as_echo "$as_me: loading cache $cache_file" >&6;}
3098 case $cache_file in
3099 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3100 *) . "./$cache_file";;
3101 esac
3103 else
3104 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3105 $as_echo "$as_me: creating cache $cache_file" >&6;}
3106 >$cache_file
3109 as_fn_append ac_header_list " stdlib.h"
3110 as_fn_append ac_header_list " unistd.h"
3111 as_fn_append ac_header_list " sys/param.h"
3112 as_fn_append ac_func_list " readlinkat"
3113 as_fn_append ac_func_list " dup2"
3114 gl_getopt_required=GNU
3115 as_fn_append ac_header_list " getopt.h"
3116 as_fn_append ac_header_list " wchar.h"
3117 as_fn_append ac_header_list " stdint.h"
3118 as_fn_append ac_header_list " inttypes.h"
3119 as_fn_append ac_func_list " lstat"
3120 as_fn_append ac_func_list " alarm"
3121 as_fn_append ac_func_list " pthread_sigmask"
3122 as_fn_append ac_func_list " readlink"
3123 as_fn_append ac_header_list " sys/socket.h"
3124 as_fn_append ac_func_list " tzset"
3125 as_fn_append ac_func_list " symlink"
3126 as_fn_append ac_header_list " sys/stat.h"
3127 as_fn_append ac_header_list " sys/time.h"
3128 as_fn_append ac_func_list " localtime_r"
3129 # Check that the precious variables saved in the cache have kept the same
3130 # value.
3131 ac_cache_corrupted=false
3132 for ac_var in $ac_precious_vars; do
3133 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3134 eval ac_new_set=\$ac_env_${ac_var}_set
3135 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3136 eval ac_new_val=\$ac_env_${ac_var}_value
3137 case $ac_old_set,$ac_new_set in
3138 set,)
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3140 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3141 ac_cache_corrupted=: ;;
3142 ,set)
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3144 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3145 ac_cache_corrupted=: ;;
3146 ,);;
3148 if test "x$ac_old_val" != "x$ac_new_val"; then
3149 # differences in whitespace do not lead to failure.
3150 ac_old_val_w=`echo x $ac_old_val`
3151 ac_new_val_w=`echo x $ac_new_val`
3152 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3153 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3154 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3155 ac_cache_corrupted=:
3156 else
3157 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3158 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3159 eval $ac_var=\$ac_old_val
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3162 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3164 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3165 fi;;
3166 esac
3167 # Pass precious variables to config.status.
3168 if test "$ac_new_set" = set; then
3169 case $ac_new_val in
3170 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3171 *) ac_arg=$ac_var=$ac_new_val ;;
3172 esac
3173 case " $ac_configure_args " in
3174 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3175 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3176 esac
3178 done
3179 if $ac_cache_corrupted; then
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3181 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3182 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3183 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3184 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3186 ## -------------------- ##
3187 ## Main body of script. ##
3188 ## -------------------- ##
3190 ac_ext=c
3191 ac_cpp='$CPP $CPPFLAGS'
3192 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3193 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3194 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3197 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
3200 am__api_version='1.11'
3202 ac_aux_dir=
3203 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3204 for ac_t in install-sh install.sh shtool; do
3205 if test -f "$ac_dir/$ac_t"; then
3206 ac_aux_dir=$ac_dir
3207 ac_install_sh="$ac_aux_dir/$ac_t -c"
3208 break 2
3210 done
3211 done
3212 if test -z "$ac_aux_dir"; then
3213 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3216 # These three variables are undocumented and unsupported,
3217 # and are intended to be withdrawn in a future Autoconf release.
3218 # They can cause serious problems if a builder's source tree is in a directory
3219 # whose full name contains unusual characters.
3220 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3221 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3222 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3225 # Find a good install program. We prefer a C program (faster),
3226 # so one script is as good as another. But avoid the broken or
3227 # incompatible versions:
3228 # SysV /etc/install, /usr/sbin/install
3229 # SunOS /usr/etc/install
3230 # IRIX /sbin/install
3231 # AIX /bin/install
3232 # AmigaOS /C/install, which installs bootblocks on floppy discs
3233 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3234 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3235 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3236 # OS/2's system install, which has a completely different semantic
3237 # ./install, which can be erroneously created by make from ./install.sh.
3238 # Reject install programs that cannot install multiple files.
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3240 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3241 if test -z "$INSTALL"; then
3242 if test "${ac_cv_path_install+set}" = set; then :
3243 $as_echo_n "(cached) " >&6
3244 else
3245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3246 for as_dir in $PATH
3248 IFS=$as_save_IFS
3249 test -z "$as_dir" && as_dir=.
3250 # Account for people who put trailing slashes in PATH elements.
3251 case $as_dir/ in #((
3252 ./ | .// | /[cC]/* | \
3253 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3254 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3255 /usr/ucb/* ) ;;
3257 # OSF1 and SCO ODT 3.0 have their own names for install.
3258 # Don't use installbsd from OSF since it installs stuff as root
3259 # by default.
3260 for ac_prog in ginstall scoinst install; do
3261 for ac_exec_ext in '' $ac_executable_extensions; do
3262 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3263 if test $ac_prog = install &&
3264 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3265 # AIX install. It has an incompatible calling convention.
3267 elif test $ac_prog = install &&
3268 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3269 # program-specific install script used by HP pwplus--don't use.
3271 else
3272 rm -rf conftest.one conftest.two conftest.dir
3273 echo one > conftest.one
3274 echo two > conftest.two
3275 mkdir conftest.dir
3276 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3277 test -s conftest.one && test -s conftest.two &&
3278 test -s conftest.dir/conftest.one &&
3279 test -s conftest.dir/conftest.two
3280 then
3281 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3282 break 3
3286 done
3287 done
3289 esac
3291 done
3292 IFS=$as_save_IFS
3294 rm -rf conftest.one conftest.two conftest.dir
3297 if test "${ac_cv_path_install+set}" = set; then
3298 INSTALL=$ac_cv_path_install
3299 else
3300 # As a last resort, use the slow shell script. Don't cache a
3301 # value for INSTALL within a source directory, because that will
3302 # break other packages using the cache if that directory is
3303 # removed, or if the value is a relative name.
3304 INSTALL=$ac_install_sh
3307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3308 $as_echo "$INSTALL" >&6; }
3310 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3311 # It thinks the first close brace ends the variable substitution.
3312 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3314 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3316 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3319 $as_echo_n "checking whether build environment is sane... " >&6; }
3320 # Just in case
3321 sleep 1
3322 echo timestamp > conftest.file
3323 # Reject unsafe characters in $srcdir or the absolute working directory
3324 # name. Accept space and tab only in the latter.
3325 am_lf='
3327 case `pwd` in
3328 *[\\\"\#\$\&\'\`$am_lf]*)
3329 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3330 esac
3331 case $srcdir in
3332 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3333 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3334 esac
3336 # Do `set' in a subshell so we don't clobber the current shell's
3337 # arguments. Must try -L first in case configure is actually a
3338 # symlink; some systems play weird games with the mod time of symlinks
3339 # (eg FreeBSD returns the mod time of the symlink's containing
3340 # directory).
3341 if (
3342 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3343 if test "$*" = "X"; then
3344 # -L didn't work.
3345 set X `ls -t "$srcdir/configure" conftest.file`
3347 rm -f conftest.file
3348 if test "$*" != "X $srcdir/configure conftest.file" \
3349 && test "$*" != "X conftest.file $srcdir/configure"; then
3351 # If neither matched, then we have a broken ls. This can happen
3352 # if, for instance, CONFIG_SHELL is bash and it inherits a
3353 # broken ls alias from the environment. This has actually
3354 # happened. Such a system could not be considered "sane".
3355 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3356 alias in your environment" "$LINENO" 5
3359 test "$2" = conftest.file
3361 then
3362 # Ok.
3364 else
3365 as_fn_error "newly created file is older than distributed files!
3366 Check your system clock" "$LINENO" 5
3368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3369 $as_echo "yes" >&6; }
3370 test "$program_prefix" != NONE &&
3371 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3372 # Use a double $ so make ignores it.
3373 test "$program_suffix" != NONE &&
3374 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3375 # Double any \ or $.
3376 # By default was `s,x,x', remove it if useless.
3377 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3378 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3380 # expand $ac_aux_dir to an absolute path
3381 am_aux_dir=`cd $ac_aux_dir && pwd`
3383 if test x"${MISSING+set}" != xset; then
3384 case $am_aux_dir in
3385 *\ * | *\ *)
3386 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3388 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3389 esac
3391 # Use eval to expand $SHELL
3392 if eval "$MISSING --run true"; then
3393 am_missing_run="$MISSING --run "
3394 else
3395 am_missing_run=
3396 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3397 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3400 if test x"${install_sh}" != xset; then
3401 case $am_aux_dir in
3402 *\ * | *\ *)
3403 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3405 install_sh="\${SHELL} $am_aux_dir/install-sh"
3406 esac
3409 # Installed binaries are usually stripped using `strip' when the user
3410 # run `make install-strip'. However `strip' might not be the right
3411 # tool to use in cross-compilation environments, therefore Automake
3412 # will honor the `STRIP' environment variable to overrule this program.
3413 if test "$cross_compiling" != no; then
3414 if test -n "$ac_tool_prefix"; then
3415 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3416 set dummy ${ac_tool_prefix}strip; ac_word=$2
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3418 $as_echo_n "checking for $ac_word... " >&6; }
3419 if test "${ac_cv_prog_STRIP+set}" = set; then :
3420 $as_echo_n "(cached) " >&6
3421 else
3422 if test -n "$STRIP"; then
3423 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3424 else
3425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3426 for as_dir in $PATH
3428 IFS=$as_save_IFS
3429 test -z "$as_dir" && as_dir=.
3430 for ac_exec_ext in '' $ac_executable_extensions; do
3431 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3432 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3434 break 2
3436 done
3437 done
3438 IFS=$as_save_IFS
3442 STRIP=$ac_cv_prog_STRIP
3443 if test -n "$STRIP"; then
3444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3445 $as_echo "$STRIP" >&6; }
3446 else
3447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3448 $as_echo "no" >&6; }
3453 if test -z "$ac_cv_prog_STRIP"; then
3454 ac_ct_STRIP=$STRIP
3455 # Extract the first word of "strip", so it can be a program name with args.
3456 set dummy strip; ac_word=$2
3457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3458 $as_echo_n "checking for $ac_word... " >&6; }
3459 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3460 $as_echo_n "(cached) " >&6
3461 else
3462 if test -n "$ac_ct_STRIP"; then
3463 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3464 else
3465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3466 for as_dir in $PATH
3468 IFS=$as_save_IFS
3469 test -z "$as_dir" && as_dir=.
3470 for ac_exec_ext in '' $ac_executable_extensions; do
3471 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3472 ac_cv_prog_ac_ct_STRIP="strip"
3473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3474 break 2
3476 done
3477 done
3478 IFS=$as_save_IFS
3482 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3483 if test -n "$ac_ct_STRIP"; then
3484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3485 $as_echo "$ac_ct_STRIP" >&6; }
3486 else
3487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3488 $as_echo "no" >&6; }
3491 if test "x$ac_ct_STRIP" = x; then
3492 STRIP=":"
3493 else
3494 case $cross_compiling:$ac_tool_warned in
3495 yes:)
3496 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3497 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3498 ac_tool_warned=yes ;;
3499 esac
3500 STRIP=$ac_ct_STRIP
3502 else
3503 STRIP="$ac_cv_prog_STRIP"
3507 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3510 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3511 if test -z "$MKDIR_P"; then
3512 if test "${ac_cv_path_mkdir+set}" = set; then :
3513 $as_echo_n "(cached) " >&6
3514 else
3515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3516 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3518 IFS=$as_save_IFS
3519 test -z "$as_dir" && as_dir=.
3520 for ac_prog in mkdir gmkdir; do
3521 for ac_exec_ext in '' $ac_executable_extensions; do
3522 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3523 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3524 'mkdir (GNU coreutils) '* | \
3525 'mkdir (coreutils) '* | \
3526 'mkdir (fileutils) '4.1*)
3527 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3528 break 3;;
3529 esac
3530 done
3531 done
3532 done
3533 IFS=$as_save_IFS
3537 test -d ./--version && rmdir ./--version
3538 if test "${ac_cv_path_mkdir+set}" = set; then
3539 MKDIR_P="$ac_cv_path_mkdir -p"
3540 else
3541 # As a last resort, use the slow shell script. Don't cache a
3542 # value for MKDIR_P within a source directory, because that will
3543 # break other packages using the cache if that directory is
3544 # removed, or if the value is a relative name.
3545 MKDIR_P="$ac_install_sh -d"
3548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3549 $as_echo "$MKDIR_P" >&6; }
3552 mkdir_p="$MKDIR_P"
3553 case $mkdir_p in
3554 [\\/$]* | ?:[\\/]*) ;;
3555 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3556 esac
3558 for ac_prog in gawk mawk nawk awk
3560 # Extract the first word of "$ac_prog", so it can be a program name with args.
3561 set dummy $ac_prog; ac_word=$2
3562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3563 $as_echo_n "checking for $ac_word... " >&6; }
3564 if test "${ac_cv_prog_AWK+set}" = set; then :
3565 $as_echo_n "(cached) " >&6
3566 else
3567 if test -n "$AWK"; then
3568 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3569 else
3570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3571 for as_dir in $PATH
3573 IFS=$as_save_IFS
3574 test -z "$as_dir" && as_dir=.
3575 for ac_exec_ext in '' $ac_executable_extensions; do
3576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3577 ac_cv_prog_AWK="$ac_prog"
3578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3579 break 2
3581 done
3582 done
3583 IFS=$as_save_IFS
3587 AWK=$ac_cv_prog_AWK
3588 if test -n "$AWK"; then
3589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3590 $as_echo "$AWK" >&6; }
3591 else
3592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3593 $as_echo "no" >&6; }
3597 test -n "$AWK" && break
3598 done
3600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3601 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3602 set x ${MAKE-make}
3603 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3604 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3605 $as_echo_n "(cached) " >&6
3606 else
3607 cat >conftest.make <<\_ACEOF
3608 SHELL = /bin/sh
3609 all:
3610 @echo '@@@%%%=$(MAKE)=@@@%%%'
3611 _ACEOF
3612 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3613 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3614 *@@@%%%=?*=@@@%%%*)
3615 eval ac_cv_prog_make_${ac_make}_set=yes;;
3617 eval ac_cv_prog_make_${ac_make}_set=no;;
3618 esac
3619 rm -f conftest.make
3621 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3623 $as_echo "yes" >&6; }
3624 SET_MAKE=
3625 else
3626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3627 $as_echo "no" >&6; }
3628 SET_MAKE="MAKE=${MAKE-make}"
3631 rm -rf .tst 2>/dev/null
3632 mkdir .tst 2>/dev/null
3633 if test -d .tst; then
3634 am__leading_dot=.
3635 else
3636 am__leading_dot=_
3638 rmdir .tst 2>/dev/null
3640 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3641 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3642 # is not polluted with repeated "-I."
3643 am__isrc=' -I$(srcdir)'
3644 # test to see if srcdir already configured
3645 if test -f $srcdir/config.status; then
3646 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3650 # test whether we have cygpath
3651 if test -z "$CYGPATH_W"; then
3652 if (cygpath --version) >/dev/null 2>/dev/null; then
3653 CYGPATH_W='cygpath -w'
3654 else
3655 CYGPATH_W=echo
3660 # Define the identity of the package.
3661 PACKAGE='emacs'
3662 VERSION='24.0.50'
3665 cat >>confdefs.h <<_ACEOF
3666 #define PACKAGE "$PACKAGE"
3667 _ACEOF
3670 cat >>confdefs.h <<_ACEOF
3671 #define VERSION "$VERSION"
3672 _ACEOF
3674 # Some tools Automake needs.
3676 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3679 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3682 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3685 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3688 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3690 # We need awk for the "check" target. The system "awk" is bad on
3691 # some platforms.
3692 # Always define AMTAR for backward compatibility.
3694 AMTAR=${AMTAR-"${am_missing_run}tar"}
3696 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3705 lispdir='${datadir}/emacs/${version}/lisp'
3706 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
3707 '${datadir}/emacs/site-lisp'
3708 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
3709 etcdir='${datadir}/emacs/${version}/etc'
3710 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
3711 docdir='${datadir}/emacs/${version}/etc'
3712 gamedir='${localstatedir}/games/emacs'
3717 # Check whether --with-pop was given.
3718 if test "${with_pop+set}" = set; then :
3719 withval=$with_pop;
3720 else
3721 with_pop=yes
3724 if test "$with_pop" = yes; then
3725 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
3730 # Check whether --with-kerberos was given.
3731 if test "${with_kerberos+set}" = set; then :
3732 withval=$with_kerberos;
3733 else
3734 with_kerberos=no
3737 if test "$with_kerberos" != no; then
3738 $as_echo "#define KERBEROS 1" >>confdefs.h
3743 # Check whether --with-kerberos5 was given.
3744 if test "${with_kerberos5+set}" = set; then :
3745 withval=$with_kerberos5;
3746 else
3747 with_kerberos5=no
3750 if test "${with_kerberos5}" != no; then
3751 if test "${with_kerberos}" = no; then
3752 with_kerberos=yes
3753 $as_echo "#define KERBEROS 1" >>confdefs.h
3757 $as_echo "#define KERBEROS5 1" >>confdefs.h
3762 # Check whether --with-hesiod was given.
3763 if test "${with_hesiod+set}" = set; then :
3764 withval=$with_hesiod;
3765 else
3766 with_hesiod=no
3769 if test "$with_hesiod" != no; then
3771 $as_echo "#define HESIOD 1" >>confdefs.h
3776 # Check whether --with-mmdf was given.
3777 if test "${with_mmdf+set}" = set; then :
3778 withval=$with_mmdf;
3779 else
3780 with_mmdf=no
3783 if test "$with_mmdf" != no; then
3785 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
3790 # Check whether --with-mail-unlink was given.
3791 if test "${with_mail_unlink+set}" = set; then :
3792 withval=$with_mail_unlink;
3793 else
3794 with_mail_unlink=no
3797 if test "$with_mail_unlink" != no; then
3799 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
3804 # Check whether --with-mailhost was given.
3805 if test "${with_mailhost+set}" = set; then :
3806 withval=$with_mailhost;
3807 cat >>confdefs.h <<_ACEOF
3808 #define MAILHOST "$withval"
3809 _ACEOF
3815 # Check whether --with-sound was given.
3816 if test "${with_sound+set}" = set; then :
3817 withval=$with_sound;
3818 else
3819 with_sound=yes
3824 # Check whether --with-sync-input was given.
3825 if test "${with_sync_input+set}" = set; then :
3826 withval=$with_sync_input;
3827 else
3828 with_sync_input=yes
3831 if test "$with_sync_input" = yes; then
3833 $as_echo "#define SYNC_INPUT 1" >>confdefs.h
3838 # Check whether --with-x-toolkit was given.
3839 if test "${with_x_toolkit+set}" = set; then :
3840 withval=$with_x_toolkit; case "${withval}" in
3841 y | ye | yes ) val=gtk ;;
3842 n | no ) val=no ;;
3843 l | lu | luc | luci | lucid ) val=lucid ;;
3844 a | at | ath | athe | athen | athena ) val=athena ;;
3845 m | mo | mot | moti | motif ) val=motif ;;
3846 g | gt | gtk ) val=gtk ;;
3847 gtk3 ) val=gtk3 ;;
3849 as_fn_error "\`--with-x-toolkit=$withval' is invalid;
3850 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk' or
3851 \`gtk3'. \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." "$LINENO" 5
3853 esac
3854 with_x_toolkit=$val
3860 # Check whether --with-wide-int was given.
3861 if test "${with_wide_int+set}" = set; then :
3862 withval=$with_wide_int;
3863 else
3864 with_wide_int=no
3867 if test "$with_wide_int" = yes; then
3869 $as_echo "#define WIDE_EMACS_INT 1" >>confdefs.h
3874 # Check whether --with-xpm was given.
3875 if test "${with_xpm+set}" = set; then :
3876 withval=$with_xpm;
3877 else
3878 with_xpm=yes
3882 # Check whether --with-jpeg was given.
3883 if test "${with_jpeg+set}" = set; then :
3884 withval=$with_jpeg;
3885 else
3886 with_jpeg=yes
3890 # Check whether --with-tiff was given.
3891 if test "${with_tiff+set}" = set; then :
3892 withval=$with_tiff;
3893 else
3894 with_tiff=yes
3898 # Check whether --with-gif was given.
3899 if test "${with_gif+set}" = set; then :
3900 withval=$with_gif;
3901 else
3902 with_gif=yes
3906 # Check whether --with-png was given.
3907 if test "${with_png+set}" = set; then :
3908 withval=$with_png;
3909 else
3910 with_png=yes
3914 # Check whether --with-rsvg was given.
3915 if test "${with_rsvg+set}" = set; then :
3916 withval=$with_rsvg;
3917 else
3918 with_rsvg=yes
3922 # Check whether --with-xml2 was given.
3923 if test "${with_xml2+set}" = set; then :
3924 withval=$with_xml2;
3925 else
3926 with_xml2=yes
3930 # Check whether --with-imagemagick was given.
3931 if test "${with_imagemagick+set}" = set; then :
3932 withval=$with_imagemagick;
3933 else
3934 with_imagemagick=yes
3939 # Check whether --with-xft was given.
3940 if test "${with_xft+set}" = set; then :
3941 withval=$with_xft;
3942 else
3943 with_xft=yes
3947 # Check whether --with-libotf was given.
3948 if test "${with_libotf+set}" = set; then :
3949 withval=$with_libotf;
3950 else
3951 with_libotf=yes
3955 # Check whether --with-m17n-flt was given.
3956 if test "${with_m17n_flt+set}" = set; then :
3957 withval=$with_m17n_flt;
3958 else
3959 with_m17n_flt=yes
3964 # Check whether --with-toolkit-scroll-bars was given.
3965 if test "${with_toolkit_scroll_bars+set}" = set; then :
3966 withval=$with_toolkit_scroll_bars;
3967 else
3968 with_toolkit_scroll_bars=yes
3972 # Check whether --with-xaw3d was given.
3973 if test "${with_xaw3d+set}" = set; then :
3974 withval=$with_xaw3d;
3975 else
3976 with_xaw3d=yes
3980 # Check whether --with-xim was given.
3981 if test "${with_xim+set}" = set; then :
3982 withval=$with_xim;
3983 else
3984 with_xim=yes
3988 # Check whether --with-ns was given.
3989 if test "${with_ns+set}" = set; then :
3990 withval=$with_ns;
3991 else
3992 with_ns=no
3997 # Check whether --with-gpm was given.
3998 if test "${with_gpm+set}" = set; then :
3999 withval=$with_gpm;
4000 else
4001 with_gpm=yes
4005 # Check whether --with-dbus was given.
4006 if test "${with_dbus+set}" = set; then :
4007 withval=$with_dbus;
4008 else
4009 with_dbus=yes
4013 # Check whether --with-gconf was given.
4014 if test "${with_gconf+set}" = set; then :
4015 withval=$with_gconf;
4016 else
4017 with_gconf=yes
4021 # Check whether --with-gsettings was given.
4022 if test "${with_gsettings+set}" = set; then :
4023 withval=$with_gsettings;
4024 else
4025 with_gsettings=yes
4029 # Check whether --with-selinux was given.
4030 if test "${with_selinux+set}" = set; then :
4031 withval=$with_selinux;
4032 else
4033 with_selinux=yes
4037 # Check whether --with-gnutls was given.
4038 if test "${with_gnutls+set}" = set; then :
4039 withval=$with_gnutls;
4040 else
4041 with_gnutls=yes
4045 ## For the times when you want to build Emacs but don't have
4046 ## a suitable makeinfo, and can live without the manuals.
4048 # Check whether --with-makeinfo was given.
4049 if test "${with_makeinfo+set}" = set; then :
4050 withval=$with_makeinfo;
4051 else
4052 with_makeinfo=yes
4056 ## This is an option because I do not know if all info/man support
4057 ## compressed files, nor how to test if they do so.
4059 # Check whether --with-compress-info was given.
4060 if test "${with_compress_info+set}" = set; then :
4061 withval=$with_compress_info;
4062 else
4063 with_compress_info=yes
4066 if test $with_compress_info = yes; then
4067 GZIP_INFO=yes
4068 else
4069 GZIP_INFO=
4074 # Check whether --with-pkg-config-prog was given.
4075 if test "${with_pkg_config_prog+set}" = set; then :
4076 withval=$with_pkg_config_prog;
4079 if test "X${with_pkg_config_prog}" != X; then
4080 if test "${with_pkg_config_prog}" != yes; then
4081 PKG_CONFIG="${with_pkg_config_prog}"
4085 CRT_DIR=
4087 # Check whether --with-crt-dir was given.
4088 if test "${with_crt_dir+set}" = set; then :
4089 withval=$with_crt_dir;
4092 CRT_DIR="${with_crt_dir}"
4095 # Check whether --with-gameuser was given.
4096 if test "${with_gameuser+set}" = set; then :
4097 withval=$with_gameuser;
4100 test "X${with_gameuser}" != X && test "${with_gameuser}" != yes \
4101 && gameuser="${with_gameuser}"
4102 test "X$gameuser" = X && gameuser=games
4105 # Check whether --with-gnustep-conf was given.
4106 if test "${with_gnustep_conf+set}" = set; then :
4107 withval=$with_gnustep_conf;
4110 test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
4111 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
4112 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
4113 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
4115 # Check whether --enable-ns-self-contained was given.
4116 if test "${enable_ns_self_contained+set}" = set; then :
4117 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
4118 else
4119 EN_NS_SELF_CONTAINED=yes
4123 # Check whether --enable-asserts was given.
4124 if test "${enable_asserts+set}" = set; then :
4125 enableval=$enable_asserts; USE_XASSERTS=$enableval
4126 else
4127 USE_XASSERTS=no
4131 # Check whether --enable-maintainer-mode was given.
4132 if test "${enable_maintainer_mode+set}" = set; then :
4133 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4134 else
4135 USE_MAINTAINER_MODE=yes
4138 if test $USE_MAINTAINER_MODE = yes; then
4139 MAINT=
4140 else
4141 MAINT=#
4145 # Check whether --enable-locallisppath was given.
4146 if test "${enable_locallisppath+set}" = set; then :
4147 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
4148 locallisppath=
4149 elif test "${enableval}" != "yes"; then
4150 locallisppath=${enableval}
4155 # Check whether --enable-checking was given.
4156 if test "${enable_checking+set}" = set; then :
4157 enableval=$enable_checking; ac_checking_flags="${enableval}"
4160 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
4161 for check in $ac_checking_flags
4163 case $check in
4164 # these set all the flags to specific states
4165 yes) ac_enable_checking=1 ;;
4166 no) ac_enable_checking= ;
4167 ac_gc_check_stringbytes= ;
4168 ac_gc_check_string_overrun= ;
4169 ac_gc_check_string_free_list= ;
4170 ac_xmalloc_overrun= ;
4171 ac_gc_check_cons_list= ;;
4172 all) ac_enable_checking=1 ;
4173 ac_gc_check_stringbytes=1 ;
4174 ac_gc_check_string_overrun=1 ;
4175 ac_gc_check_string_free_list=1 ;
4176 ac_xmalloc_overrun=1 ;
4177 ac_gc_check_cons_list=1 ;;
4178 # these enable particular checks
4179 stringbytes) ac_gc_check_stringbytes=1 ;;
4180 stringoverrun) ac_gc_check_string_overrun=1 ;;
4181 stringfreelist) ac_gc_check_string_free_list=1 ;;
4182 xmallocoverrun) ac_xmalloc_overrun=1 ;;
4183 conslist) ac_gc_check_cons_list=1 ;;
4184 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
4185 esac
4186 done
4187 IFS="$ac_save_IFS"
4189 if test x$ac_enable_checking != x ; then
4191 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
4194 if test x$ac_gc_check_stringbytes != x ; then
4196 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
4199 if test x$ac_gc_check_string_overrun != x ; then
4201 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
4204 if test x$ac_gc_check_string_free_list != x ; then
4206 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
4209 if test x$ac_xmalloc_overrun != x ; then
4211 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
4214 if test x$ac_gc_check_cons_list != x ; then
4216 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
4220 # Check whether --enable-use-lisp-union-type was given.
4221 if test "${enable_use_lisp_union_type+set}" = set; then :
4222 enableval=$enable_use_lisp_union_type; if test "${enableval}" != "no"; then
4224 $as_echo "#define USE_LISP_UNION_TYPE 1" >>confdefs.h
4231 # Check whether --enable-profiling was given.
4232 if test "${enable_profiling+set}" = set; then :
4233 enableval=$enable_profiling; ac_enable_profiling="${enableval}"
4236 if test x$ac_enable_profiling != x ; then
4237 PROFILING_CFLAGS="-DPROFILING=1 -pg"
4238 else
4239 PROFILING_CFLAGS=
4243 # Check whether --enable-autodepend was given.
4244 if test "${enable_autodepend+set}" = set; then :
4245 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}"
4246 else
4247 ac_enable_autodepend=yes
4251 #### Make srcdir absolute, if it isn't already. It's important to
4252 #### avoid running the path through pwd unnecessarily, since pwd can
4253 #### give you automounter prefixes, which can go away. We do all this
4254 #### so Emacs can find its files when run uninstalled.
4255 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
4256 unset CDPATH
4257 case "${srcdir}" in
4258 /* ) ;;
4260 ## We may be able to use the $PWD environment variable to make this
4261 ## absolute. But sometimes PWD is inaccurate.
4262 ## Note: we used to use ${PWD} at the end instead of `pwd`,
4263 ## but that tested only for a well-formed and valid PWD,
4264 ## it did not object when PWD was well-formed and valid but just wrong.
4265 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
4266 then
4267 srcdir="$PWD"
4268 else
4269 srcdir="`(cd ${srcdir}; pwd)`"
4272 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
4273 esac
4275 #### Given the configuration name, set machfile and opsysfile to the
4276 #### names of the m/*.h and s/*.h files we should use.
4278 ### Canonicalize the configuration name.
4280 # Make sure we can run config.sub.
4281 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4282 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4285 $as_echo_n "checking build system type... " >&6; }
4286 if test "${ac_cv_build+set}" = set; then :
4287 $as_echo_n "(cached) " >&6
4288 else
4289 ac_build_alias=$build_alias
4290 test "x$ac_build_alias" = x &&
4291 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4292 test "x$ac_build_alias" = x &&
4293 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4294 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4295 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4299 $as_echo "$ac_cv_build" >&6; }
4300 case $ac_cv_build in
4301 *-*-*) ;;
4302 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4303 esac
4304 build=$ac_cv_build
4305 ac_save_IFS=$IFS; IFS='-'
4306 set x $ac_cv_build
4307 shift
4308 build_cpu=$1
4309 build_vendor=$2
4310 shift; shift
4311 # Remember, the first character of IFS is used to create $*,
4312 # except with old shells:
4313 build_os=$*
4314 IFS=$ac_save_IFS
4315 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4319 $as_echo_n "checking host system type... " >&6; }
4320 if test "${ac_cv_host+set}" = set; then :
4321 $as_echo_n "(cached) " >&6
4322 else
4323 if test "x$host_alias" = x; then
4324 ac_cv_host=$ac_cv_build
4325 else
4326 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4327 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4332 $as_echo "$ac_cv_host" >&6; }
4333 case $ac_cv_host in
4334 *-*-*) ;;
4335 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4336 esac
4337 host=$ac_cv_host
4338 ac_save_IFS=$IFS; IFS='-'
4339 set x $ac_cv_host
4340 shift
4341 host_cpu=$1
4342 host_vendor=$2
4343 shift; shift
4344 # Remember, the first character of IFS is used to create $*,
4345 # except with old shells:
4346 host_os=$*
4347 IFS=$ac_save_IFS
4348 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4351 canonical=$host
4352 configuration=${host_alias-${build_alias-$host}}
4356 ### If you add support for a new configuration, add code to this
4357 ### switch statement to recognize your configuration name and select
4358 ### the appropriate operating system and machine description files.
4360 ### You would hope that you could choose an m/*.h file pretty much
4361 ### based on the machine portion of the configuration name, and an s/*.h
4362 ### file based on the operating system portion. However, it turns out
4363 ### that each m/*.h file is pretty manufacturer-specific - for
4364 ### example mips.h is MIPS
4365 ### So we basically have to have a special case for each
4366 ### configuration name.
4368 ### As far as handling version numbers on operating systems is
4369 ### concerned, make sure things will fail in a fixable way. If
4370 ### /etc/MACHINES doesn't say anything about version numbers, be
4371 ### prepared to handle anything reasonably. If version numbers
4372 ### matter, be sure /etc/MACHINES says something about it.
4374 machine='' opsys='' unported=no
4375 case "${canonical}" in
4377 ## GNU/Linux and similar ports
4378 *-*-linux* )
4379 opsys=gnu-linux
4380 case ${canonical} in
4381 alpha*) machine=alpha ;;
4382 s390-*) machine=ibms390 ;;
4383 s390x-*) machine=ibms390x ;;
4384 powerpc*) machine=macppc ;;
4385 sparc*) machine=sparc ;;
4386 ia64*) machine=ia64 ;;
4387 m68k*) machine=m68k ;;
4388 x86_64*) machine=amdx86-64 ;;
4389 esac
4392 ## FreeBSD ports
4393 *-*-freebsd* )
4394 opsys=freebsd
4395 case "${canonical}" in
4396 alpha*) machine=alpha ;;
4397 amd64-*|x86_64-*) machine=amdx86-64 ;;
4398 ia64-*) machine=ia64 ;;
4399 i[3456]86-*) machine=intel386 ;;
4400 powerpc-*) machine=macppc ;;
4401 sparc-*) machine=sparc ;;
4402 sparc64-*) machine=sparc ;;
4403 esac
4406 ## FreeBSD kernel + glibc based userland
4407 *-*-kfreebsd*gnu* )
4408 opsys=gnu-kfreebsd
4409 case "${canonical}" in
4410 alpha*) machine=alpha ;;
4411 amd64-*|x86_64-*) machine=amdx86-64 ;;
4412 ia64-*) machine=ia64 ;;
4413 i[3456]86-*) machine=intel386 ;;
4414 powerpc-*) machine=macppc ;;
4415 sparc-*) machine=sparc ;;
4416 sparc64-*) machine=sparc ;;
4417 esac
4420 ## NetBSD ports
4421 *-*-netbsd* )
4422 opsys=netbsd
4423 case "${canonical}" in
4424 alpha*) machine=alpha ;;
4425 x86_64-*) machine=amdx86-64 ;;
4426 i[3456]86-*) machine=intel386 ;;
4427 m68k-*) machine=m68k ;;
4428 powerpc-*) machine=macppc ;;
4429 sparc*-) machine=sparc ;;
4430 vax-*) machine=vax ;;
4431 esac
4434 ## OpenBSD ports
4435 *-*-openbsd* )
4436 opsys=openbsd
4437 case "${canonical}" in
4438 alpha*) machine=alpha ;;
4439 x86_64-*) machine=amdx86-64 ;;
4440 i386-*) machine=intel386 ;;
4441 powerpc-*) machine=macppc ;;
4442 sparc*) machine=sparc ;;
4443 vax-*) machine=vax ;;
4444 esac
4447 ## Apple Darwin / Mac OS X
4448 *-apple-darwin* )
4449 case "${canonical}" in
4450 i[3456]86-* ) machine=intel386 ;;
4451 powerpc-* ) machine=macppc ;;
4452 x86_64-* ) machine=amdx86-64 ;;
4453 * ) unported=yes ;;
4454 esac
4455 opsys=darwin
4456 # Define CPP as follows to make autoconf work correctly.
4457 CPP="${CC-cc} -E -no-cpp-precomp"
4458 # Use fink packages if available.
4459 if test -d /sw/include && test -d /sw/lib; then
4460 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
4461 CPP="${CPP} ${GCC_TEST_OPTIONS}"
4462 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
4466 ## HP 9000 series 700 and 800, running HP/UX
4467 hppa*-hp-hpux10.2* )
4468 opsys=hpux10-20
4470 hppa*-hp-hpux1[1-9]* )
4471 opsys=hpux11
4472 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
4475 ## IBM machines
4476 rs6000-ibm-aix4.[23]* )
4477 machine=ibmrs6000 opsys=aix4-2
4479 powerpc-ibm-aix4.[23]* )
4480 machine=ibmrs6000 opsys=aix4-2
4482 rs6000-ibm-aix[56]* )
4483 machine=ibmrs6000 opsys=aix4-2
4485 powerpc-ibm-aix[56]* )
4486 machine=ibmrs6000 opsys=aix4-2
4489 ## Silicon Graphics machines
4490 ## Iris 4D
4491 mips-sgi-irix6.5 )
4492 opsys=irix6-5
4493 # Without defining _LANGUAGE_C, things get masked out in the headers
4494 # so that, for instance, grepping for `free' in stdlib.h fails and
4495 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
4496 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
4497 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
4500 ## Suns
4501 *-sun-solaris* \
4502 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* \
4503 | x86_64-*-solaris2* | x86_64-*-sunos5*)
4504 case "${canonical}" in
4505 i[3456]86-*-* ) machine=intel386 ;;
4506 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
4507 sparc* ) machine=sparc ;;
4508 * ) unported=yes ;;
4509 esac
4510 case "${canonical}" in
4511 *-sunos5.6* | *-solaris2.6* )
4512 opsys=sol2-6
4513 NON_GNU_CPP=/usr/ccs/lib/cpp
4514 RANLIB="ar -ts"
4516 *-sunos5.[7-9]* | *-solaris2.[7-9]* )
4517 opsys=sol2-6
4518 emacs_check_sunpro_c=yes
4519 NON_GNU_CPP=/usr/ccs/lib/cpp
4521 *-sunos5* | *-solaris* )
4522 opsys=sol2-10
4523 emacs_check_sunpro_c=yes
4524 NON_GNU_CPP=/usr/ccs/lib/cpp
4526 esac
4527 ## Watch out for a compiler that we know will not work.
4528 case "${canonical}" in
4529 *-solaris* | *-sunos5* )
4530 if [ "x$CC" = x/usr/ucb/cc ]; then
4531 ## /usr/ucb/cc doesn't work;
4532 ## we should find some other compiler that does work.
4533 unset CC
4536 *) ;;
4537 esac
4540 ## Intel 386 machines where we don't care about the manufacturer.
4541 i[3456]86-*-* )
4542 machine=intel386
4543 case "${canonical}" in
4544 *-cygwin ) opsys=cygwin ;;
4545 *-darwin* ) opsys=darwin
4546 CPP="${CC-cc} -E -no-cpp-precomp"
4548 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
4549 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
4550 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
4551 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
4552 esac
4556 unported=yes
4558 esac
4560 ### If the code above didn't choose an operating system, just choose
4561 ### an operating system based on the configuration name. You really
4562 ### only want to use this when you have no idea what the right
4563 ### operating system is; if you know what operating systems a machine
4564 ### runs, it's cleaner to make it explicit in the case statement
4565 ### above.
4566 if test x"${opsys}" = x; then
4567 case "${canonical}" in
4568 *-gnu* ) opsys=gnu ;;
4570 unported=yes
4572 esac
4577 if test $unported = yes; then
4578 as_fn_error "Emacs hasn't been ported to \`${canonical}' systems.
4579 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
4582 if test -n "$machine"; then
4583 machfile="m/${machine}.h"
4584 else
4585 machfile=
4587 opsysfile="s/${opsys}.h"
4590 #### Choose a compiler.
4591 test -n "$CC" && cc_specified=yes
4593 # Save the value of CFLAGS that the user specified.
4594 SPECIFIED_CFLAGS="$CFLAGS"
4596 ac_ext=c
4597 ac_cpp='$CPP $CPPFLAGS'
4598 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4599 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4600 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4601 if test -n "$ac_tool_prefix"; then
4602 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4603 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4605 $as_echo_n "checking for $ac_word... " >&6; }
4606 if test "${ac_cv_prog_CC+set}" = set; then :
4607 $as_echo_n "(cached) " >&6
4608 else
4609 if test -n "$CC"; then
4610 ac_cv_prog_CC="$CC" # Let the user override the test.
4611 else
4612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4613 for as_dir in $PATH
4615 IFS=$as_save_IFS
4616 test -z "$as_dir" && as_dir=.
4617 for ac_exec_ext in '' $ac_executable_extensions; do
4618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4619 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4621 break 2
4623 done
4624 done
4625 IFS=$as_save_IFS
4629 CC=$ac_cv_prog_CC
4630 if test -n "$CC"; then
4631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4632 $as_echo "$CC" >&6; }
4633 else
4634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4635 $as_echo "no" >&6; }
4640 if test -z "$ac_cv_prog_CC"; then
4641 ac_ct_CC=$CC
4642 # Extract the first word of "gcc", so it can be a program name with args.
4643 set dummy gcc; ac_word=$2
4644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4645 $as_echo_n "checking for $ac_word... " >&6; }
4646 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4647 $as_echo_n "(cached) " >&6
4648 else
4649 if test -n "$ac_ct_CC"; then
4650 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4651 else
4652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4653 for as_dir in $PATH
4655 IFS=$as_save_IFS
4656 test -z "$as_dir" && as_dir=.
4657 for ac_exec_ext in '' $ac_executable_extensions; do
4658 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4659 ac_cv_prog_ac_ct_CC="gcc"
4660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4661 break 2
4663 done
4664 done
4665 IFS=$as_save_IFS
4669 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4670 if test -n "$ac_ct_CC"; then
4671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4672 $as_echo "$ac_ct_CC" >&6; }
4673 else
4674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4675 $as_echo "no" >&6; }
4678 if test "x$ac_ct_CC" = x; then
4679 CC=""
4680 else
4681 case $cross_compiling:$ac_tool_warned in
4682 yes:)
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4684 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4685 ac_tool_warned=yes ;;
4686 esac
4687 CC=$ac_ct_CC
4689 else
4690 CC="$ac_cv_prog_CC"
4693 if test -z "$CC"; then
4694 if test -n "$ac_tool_prefix"; then
4695 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4696 set dummy ${ac_tool_prefix}cc; ac_word=$2
4697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4698 $as_echo_n "checking for $ac_word... " >&6; }
4699 if test "${ac_cv_prog_CC+set}" = set; then :
4700 $as_echo_n "(cached) " >&6
4701 else
4702 if test -n "$CC"; then
4703 ac_cv_prog_CC="$CC" # Let the user override the test.
4704 else
4705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4706 for as_dir in $PATH
4708 IFS=$as_save_IFS
4709 test -z "$as_dir" && as_dir=.
4710 for ac_exec_ext in '' $ac_executable_extensions; do
4711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4712 ac_cv_prog_CC="${ac_tool_prefix}cc"
4713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4714 break 2
4716 done
4717 done
4718 IFS=$as_save_IFS
4722 CC=$ac_cv_prog_CC
4723 if test -n "$CC"; then
4724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4725 $as_echo "$CC" >&6; }
4726 else
4727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4728 $as_echo "no" >&6; }
4734 if test -z "$CC"; then
4735 # Extract the first word of "cc", so it can be a program name with args.
4736 set dummy cc; ac_word=$2
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4738 $as_echo_n "checking for $ac_word... " >&6; }
4739 if test "${ac_cv_prog_CC+set}" = set; then :
4740 $as_echo_n "(cached) " >&6
4741 else
4742 if test -n "$CC"; then
4743 ac_cv_prog_CC="$CC" # Let the user override the test.
4744 else
4745 ac_prog_rejected=no
4746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4747 for as_dir in $PATH
4749 IFS=$as_save_IFS
4750 test -z "$as_dir" && as_dir=.
4751 for ac_exec_ext in '' $ac_executable_extensions; do
4752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4753 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4754 ac_prog_rejected=yes
4755 continue
4757 ac_cv_prog_CC="cc"
4758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4759 break 2
4761 done
4762 done
4763 IFS=$as_save_IFS
4765 if test $ac_prog_rejected = yes; then
4766 # We found a bogon in the path, so make sure we never use it.
4767 set dummy $ac_cv_prog_CC
4768 shift
4769 if test $# != 0; then
4770 # We chose a different compiler from the bogus one.
4771 # However, it has the same basename, so the bogon will be chosen
4772 # first if we set CC to just the basename; use the full file name.
4773 shift
4774 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4779 CC=$ac_cv_prog_CC
4780 if test -n "$CC"; then
4781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4782 $as_echo "$CC" >&6; }
4783 else
4784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4785 $as_echo "no" >&6; }
4790 if test -z "$CC"; then
4791 if test -n "$ac_tool_prefix"; then
4792 for ac_prog in cl.exe
4794 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4795 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4797 $as_echo_n "checking for $ac_word... " >&6; }
4798 if test "${ac_cv_prog_CC+set}" = set; then :
4799 $as_echo_n "(cached) " >&6
4800 else
4801 if test -n "$CC"; then
4802 ac_cv_prog_CC="$CC" # Let the user override the test.
4803 else
4804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4805 for as_dir in $PATH
4807 IFS=$as_save_IFS
4808 test -z "$as_dir" && as_dir=.
4809 for ac_exec_ext in '' $ac_executable_extensions; do
4810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4811 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4813 break 2
4815 done
4816 done
4817 IFS=$as_save_IFS
4821 CC=$ac_cv_prog_CC
4822 if test -n "$CC"; then
4823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4824 $as_echo "$CC" >&6; }
4825 else
4826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4827 $as_echo "no" >&6; }
4831 test -n "$CC" && break
4832 done
4834 if test -z "$CC"; then
4835 ac_ct_CC=$CC
4836 for ac_prog in cl.exe
4838 # Extract the first word of "$ac_prog", so it can be a program name with args.
4839 set dummy $ac_prog; ac_word=$2
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4841 $as_echo_n "checking for $ac_word... " >&6; }
4842 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4843 $as_echo_n "(cached) " >&6
4844 else
4845 if test -n "$ac_ct_CC"; then
4846 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4847 else
4848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4849 for as_dir in $PATH
4851 IFS=$as_save_IFS
4852 test -z "$as_dir" && as_dir=.
4853 for ac_exec_ext in '' $ac_executable_extensions; do
4854 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4855 ac_cv_prog_ac_ct_CC="$ac_prog"
4856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4857 break 2
4859 done
4860 done
4861 IFS=$as_save_IFS
4865 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4866 if test -n "$ac_ct_CC"; then
4867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4868 $as_echo "$ac_ct_CC" >&6; }
4869 else
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4871 $as_echo "no" >&6; }
4875 test -n "$ac_ct_CC" && break
4876 done
4878 if test "x$ac_ct_CC" = x; then
4879 CC=""
4880 else
4881 case $cross_compiling:$ac_tool_warned in
4882 yes:)
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4884 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4885 ac_tool_warned=yes ;;
4886 esac
4887 CC=$ac_ct_CC
4894 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4895 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4896 as_fn_error "no acceptable C compiler found in \$PATH
4897 See \`config.log' for more details." "$LINENO" 5; }
4899 # Provide some information about the compiler.
4900 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4901 set X $ac_compile
4902 ac_compiler=$2
4903 for ac_option in --version -v -V -qversion; do
4904 { { ac_try="$ac_compiler $ac_option >&5"
4905 case "(($ac_try" in
4906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4907 *) ac_try_echo=$ac_try;;
4908 esac
4909 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4910 $as_echo "$ac_try_echo"; } >&5
4911 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4912 ac_status=$?
4913 if test -s conftest.err; then
4914 sed '10a\
4915 ... rest of stderr output deleted ...
4916 10q' conftest.err >conftest.er1
4917 cat conftest.er1 >&5
4919 rm -f conftest.er1 conftest.err
4920 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4921 test $ac_status = 0; }
4922 done
4924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4925 /* end confdefs.h. */
4928 main ()
4932 return 0;
4934 _ACEOF
4935 ac_clean_files_save=$ac_clean_files
4936 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4937 # Try to create an executable without -o first, disregard a.out.
4938 # It will help us diagnose broken compilers, and finding out an intuition
4939 # of exeext.
4940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4941 $as_echo_n "checking whether the C compiler works... " >&6; }
4942 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4944 # The possible output files:
4945 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4947 ac_rmfiles=
4948 for ac_file in $ac_files
4950 case $ac_file in
4951 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4952 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4953 esac
4954 done
4955 rm -f $ac_rmfiles
4957 if { { ac_try="$ac_link_default"
4958 case "(($ac_try" in
4959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4960 *) ac_try_echo=$ac_try;;
4961 esac
4962 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4963 $as_echo "$ac_try_echo"; } >&5
4964 (eval "$ac_link_default") 2>&5
4965 ac_status=$?
4966 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4967 test $ac_status = 0; }; then :
4968 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4969 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4970 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4971 # so that the user can short-circuit this test for compilers unknown to
4972 # Autoconf.
4973 for ac_file in $ac_files ''
4975 test -f "$ac_file" || continue
4976 case $ac_file in
4977 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4979 [ab].out )
4980 # We found the default executable, but exeext='' is most
4981 # certainly right.
4982 break;;
4983 *.* )
4984 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4985 then :; else
4986 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4988 # We set ac_cv_exeext here because the later test for it is not
4989 # safe: cross compilers may not add the suffix if given an `-o'
4990 # argument, so we may need to know it at that point already.
4991 # Even if this section looks crufty: it has the advantage of
4992 # actually working.
4993 break;;
4995 break;;
4996 esac
4997 done
4998 test "$ac_cv_exeext" = no && ac_cv_exeext=
5000 else
5001 ac_file=''
5003 if test -z "$ac_file"; then :
5004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5005 $as_echo "no" >&6; }
5006 $as_echo "$as_me: failed program was:" >&5
5007 sed 's/^/| /' conftest.$ac_ext >&5
5009 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5010 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5011 { as_fn_set_status 77
5012 as_fn_error "C compiler cannot create executables
5013 See \`config.log' for more details." "$LINENO" 5; }; }
5014 else
5015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5016 $as_echo "yes" >&6; }
5018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5019 $as_echo_n "checking for C compiler default output file name... " >&6; }
5020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5021 $as_echo "$ac_file" >&6; }
5022 ac_exeext=$ac_cv_exeext
5024 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
5025 ac_clean_files=$ac_clean_files_save
5026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5027 $as_echo_n "checking for suffix of executables... " >&6; }
5028 if { { ac_try="$ac_link"
5029 case "(($ac_try" in
5030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5031 *) ac_try_echo=$ac_try;;
5032 esac
5033 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5034 $as_echo "$ac_try_echo"; } >&5
5035 (eval "$ac_link") 2>&5
5036 ac_status=$?
5037 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5038 test $ac_status = 0; }; then :
5039 # If both `conftest.exe' and `conftest' are `present' (well, observable)
5040 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
5041 # work properly (i.e., refer to `conftest.exe'), while it won't with
5042 # `rm'.
5043 for ac_file in conftest.exe conftest conftest.*; do
5044 test -f "$ac_file" || continue
5045 case $ac_file in
5046 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5047 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5048 break;;
5049 * ) break;;
5050 esac
5051 done
5052 else
5053 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5054 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5055 as_fn_error "cannot compute suffix of executables: cannot compile and link
5056 See \`config.log' for more details." "$LINENO" 5; }
5058 rm -f conftest conftest$ac_cv_exeext
5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5060 $as_echo "$ac_cv_exeext" >&6; }
5062 rm -f conftest.$ac_ext
5063 EXEEXT=$ac_cv_exeext
5064 ac_exeext=$EXEEXT
5065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5066 /* end confdefs.h. */
5067 #include <stdio.h>
5069 main ()
5071 FILE *f = fopen ("conftest.out", "w");
5072 return ferror (f) || fclose (f) != 0;
5075 return 0;
5077 _ACEOF
5078 ac_clean_files="$ac_clean_files conftest.out"
5079 # Check that the compiler produces executables we can run. If not, either
5080 # the compiler is broken, or we cross compile.
5081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5082 $as_echo_n "checking whether we are cross compiling... " >&6; }
5083 if test "$cross_compiling" != yes; then
5084 { { ac_try="$ac_link"
5085 case "(($ac_try" in
5086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5087 *) ac_try_echo=$ac_try;;
5088 esac
5089 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5090 $as_echo "$ac_try_echo"; } >&5
5091 (eval "$ac_link") 2>&5
5092 ac_status=$?
5093 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5094 test $ac_status = 0; }
5095 if { ac_try='./conftest$ac_cv_exeext'
5096 { { case "(($ac_try" in
5097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5098 *) ac_try_echo=$ac_try;;
5099 esac
5100 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5101 $as_echo "$ac_try_echo"; } >&5
5102 (eval "$ac_try") 2>&5
5103 ac_status=$?
5104 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5105 test $ac_status = 0; }; }; then
5106 cross_compiling=no
5107 else
5108 if test "$cross_compiling" = maybe; then
5109 cross_compiling=yes
5110 else
5111 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5112 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5113 as_fn_error "cannot run C compiled programs.
5114 If you meant to cross compile, use \`--host'.
5115 See \`config.log' for more details." "$LINENO" 5; }
5119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5120 $as_echo "$cross_compiling" >&6; }
5122 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5123 ac_clean_files=$ac_clean_files_save
5124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5125 $as_echo_n "checking for suffix of object files... " >&6; }
5126 if test "${ac_cv_objext+set}" = set; then :
5127 $as_echo_n "(cached) " >&6
5128 else
5129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5130 /* end confdefs.h. */
5133 main ()
5137 return 0;
5139 _ACEOF
5140 rm -f conftest.o conftest.obj
5141 if { { ac_try="$ac_compile"
5142 case "(($ac_try" in
5143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5144 *) ac_try_echo=$ac_try;;
5145 esac
5146 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5147 $as_echo "$ac_try_echo"; } >&5
5148 (eval "$ac_compile") 2>&5
5149 ac_status=$?
5150 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5151 test $ac_status = 0; }; then :
5152 for ac_file in conftest.o conftest.obj conftest.*; do
5153 test -f "$ac_file" || continue;
5154 case $ac_file in
5155 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5156 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5157 break;;
5158 esac
5159 done
5160 else
5161 $as_echo "$as_me: failed program was:" >&5
5162 sed 's/^/| /' conftest.$ac_ext >&5
5164 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5165 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5166 as_fn_error "cannot compute suffix of object files: cannot compile
5167 See \`config.log' for more details." "$LINENO" 5; }
5169 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5172 $as_echo "$ac_cv_objext" >&6; }
5173 OBJEXT=$ac_cv_objext
5174 ac_objext=$OBJEXT
5175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5176 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5177 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5178 $as_echo_n "(cached) " >&6
5179 else
5180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5181 /* end confdefs.h. */
5184 main ()
5186 #ifndef __GNUC__
5187 choke me
5188 #endif
5191 return 0;
5193 _ACEOF
5194 if ac_fn_c_try_compile "$LINENO"; then :
5195 ac_compiler_gnu=yes
5196 else
5197 ac_compiler_gnu=no
5199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5200 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5204 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5205 if test $ac_compiler_gnu = yes; then
5206 GCC=yes
5207 else
5208 GCC=
5210 ac_test_CFLAGS=${CFLAGS+set}
5211 ac_save_CFLAGS=$CFLAGS
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5213 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5214 if test "${ac_cv_prog_cc_g+set}" = set; then :
5215 $as_echo_n "(cached) " >&6
5216 else
5217 ac_save_c_werror_flag=$ac_c_werror_flag
5218 ac_c_werror_flag=yes
5219 ac_cv_prog_cc_g=no
5220 CFLAGS="-g"
5221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5222 /* end confdefs.h. */
5225 main ()
5229 return 0;
5231 _ACEOF
5232 if ac_fn_c_try_compile "$LINENO"; then :
5233 ac_cv_prog_cc_g=yes
5234 else
5235 CFLAGS=""
5236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5237 /* end confdefs.h. */
5240 main ()
5244 return 0;
5246 _ACEOF
5247 if ac_fn_c_try_compile "$LINENO"; then :
5249 else
5250 ac_c_werror_flag=$ac_save_c_werror_flag
5251 CFLAGS="-g"
5252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5253 /* end confdefs.h. */
5256 main ()
5260 return 0;
5262 _ACEOF
5263 if ac_fn_c_try_compile "$LINENO"; then :
5264 ac_cv_prog_cc_g=yes
5266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5271 ac_c_werror_flag=$ac_save_c_werror_flag
5273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5274 $as_echo "$ac_cv_prog_cc_g" >&6; }
5275 if test "$ac_test_CFLAGS" = set; then
5276 CFLAGS=$ac_save_CFLAGS
5277 elif test $ac_cv_prog_cc_g = yes; then
5278 if test "$GCC" = yes; then
5279 CFLAGS="-g -O2"
5280 else
5281 CFLAGS="-g"
5283 else
5284 if test "$GCC" = yes; then
5285 CFLAGS="-O2"
5286 else
5287 CFLAGS=
5290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5291 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5292 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5293 $as_echo_n "(cached) " >&6
5294 else
5295 ac_cv_prog_cc_c89=no
5296 ac_save_CC=$CC
5297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5298 /* end confdefs.h. */
5299 #include <stdarg.h>
5300 #include <stdio.h>
5301 #include <sys/types.h>
5302 #include <sys/stat.h>
5303 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5304 struct buf { int x; };
5305 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5306 static char *e (p, i)
5307 char **p;
5308 int i;
5310 return p[i];
5312 static char *f (char * (*g) (char **, int), char **p, ...)
5314 char *s;
5315 va_list v;
5316 va_start (v,p);
5317 s = g (p, va_arg (v,int));
5318 va_end (v);
5319 return s;
5322 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5323 function prototypes and stuff, but not '\xHH' hex character constants.
5324 These don't provoke an error unfortunately, instead are silently treated
5325 as 'x'. The following induces an error, until -std is added to get
5326 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5327 array size at least. It's necessary to write '\x00'==0 to get something
5328 that's true only with -std. */
5329 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5331 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5332 inside strings and character constants. */
5333 #define FOO(x) 'x'
5334 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5336 int test (int i, double x);
5337 struct s1 {int (*f) (int a);};
5338 struct s2 {int (*f) (double a);};
5339 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5340 int argc;
5341 char **argv;
5343 main ()
5345 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5347 return 0;
5349 _ACEOF
5350 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5351 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5353 CC="$ac_save_CC $ac_arg"
5354 if ac_fn_c_try_compile "$LINENO"; then :
5355 ac_cv_prog_cc_c89=$ac_arg
5357 rm -f core conftest.err conftest.$ac_objext
5358 test "x$ac_cv_prog_cc_c89" != "xno" && break
5359 done
5360 rm -f conftest.$ac_ext
5361 CC=$ac_save_CC
5364 # AC_CACHE_VAL
5365 case "x$ac_cv_prog_cc_c89" in
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5368 $as_echo "none needed" >&6; } ;;
5369 xno)
5370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5371 $as_echo "unsupported" >&6; } ;;
5373 CC="$CC $ac_cv_prog_cc_c89"
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5375 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5376 esac
5377 if test "x$ac_cv_prog_cc_c89" != xno; then :
5381 ac_ext=c
5382 ac_cpp='$CPP $CPPFLAGS'
5383 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5384 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5385 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5386 DEPDIR="${am__leading_dot}deps"
5388 ac_config_commands="$ac_config_commands depfiles"
5391 am_make=${MAKE-make}
5392 cat > confinc << 'END'
5393 am__doit:
5394 @echo this is the am__doit target
5395 .PHONY: am__doit
5397 # If we don't find an include directive, just comment out the code.
5398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5399 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5400 am__include="#"
5401 am__quote=
5402 _am_result=none
5403 # First try GNU make style include.
5404 echo "include confinc" > confmf
5405 # Ignore all kinds of additional output from `make'.
5406 case `$am_make -s -f confmf 2> /dev/null` in #(
5407 *the\ am__doit\ target*)
5408 am__include=include
5409 am__quote=
5410 _am_result=GNU
5412 esac
5413 # Now try BSD make style include.
5414 if test "$am__include" = "#"; then
5415 echo '.include "confinc"' > confmf
5416 case `$am_make -s -f confmf 2> /dev/null` in #(
5417 *the\ am__doit\ target*)
5418 am__include=.include
5419 am__quote="\""
5420 _am_result=BSD
5422 esac
5426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5427 $as_echo "$_am_result" >&6; }
5428 rm -f confinc confmf
5430 # Check whether --enable-dependency-tracking was given.
5431 if test "${enable_dependency_tracking+set}" = set; then :
5432 enableval=$enable_dependency_tracking;
5435 if test "x$enable_dependency_tracking" != xno; then
5436 am_depcomp="$ac_aux_dir/depcomp"
5437 AMDEPBACKSLASH='\'
5439 if test "x$enable_dependency_tracking" != xno; then
5440 AMDEP_TRUE=
5441 AMDEP_FALSE='#'
5442 else
5443 AMDEP_TRUE='#'
5444 AMDEP_FALSE=
5449 depcc="$CC" am_compiler_list=
5451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5452 $as_echo_n "checking dependency style of $depcc... " >&6; }
5453 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5454 $as_echo_n "(cached) " >&6
5455 else
5456 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5457 # We make a subdir and do the tests there. Otherwise we can end up
5458 # making bogus files that we don't know about and never remove. For
5459 # instance it was reported that on HP-UX the gcc test will end up
5460 # making a dummy file named `D' -- because `-MD' means `put the output
5461 # in D'.
5462 mkdir conftest.dir
5463 # Copy depcomp to subdir because otherwise we won't find it if we're
5464 # using a relative directory.
5465 cp "$am_depcomp" conftest.dir
5466 cd conftest.dir
5467 # We will build objects and dependencies in a subdirectory because
5468 # it helps to detect inapplicable dependency modes. For instance
5469 # both Tru64's cc and ICC support -MD to output dependencies as a
5470 # side effect of compilation, but ICC will put the dependencies in
5471 # the current directory while Tru64 will put them in the object
5472 # directory.
5473 mkdir sub
5475 am_cv_CC_dependencies_compiler_type=none
5476 if test "$am_compiler_list" = ""; then
5477 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5479 am__universal=false
5480 case " $depcc " in #(
5481 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5482 esac
5484 for depmode in $am_compiler_list; do
5485 # Setup a source with many dependencies, because some compilers
5486 # like to wrap large dependency lists on column 80 (with \), and
5487 # we should not choose a depcomp mode which is confused by this.
5489 # We need to recreate these files for each test, as the compiler may
5490 # overwrite some of them when testing with obscure command lines.
5491 # This happens at least with the AIX C compiler.
5492 : > sub/conftest.c
5493 for i in 1 2 3 4 5 6; do
5494 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5495 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5496 # Solaris 8's {/usr,}/bin/sh.
5497 touch sub/conftst$i.h
5498 done
5499 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5501 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5502 # mode. It turns out that the SunPro C++ compiler does not properly
5503 # handle `-M -o', and we need to detect this. Also, some Intel
5504 # versions had trouble with output in subdirs
5505 am__obj=sub/conftest.${OBJEXT-o}
5506 am__minus_obj="-o $am__obj"
5507 case $depmode in
5508 gcc)
5509 # This depmode causes a compiler race in universal mode.
5510 test "$am__universal" = false || continue
5512 nosideeffect)
5513 # after this tag, mechanisms are not by side-effect, so they'll
5514 # only be used when explicitly requested
5515 if test "x$enable_dependency_tracking" = xyes; then
5516 continue
5517 else
5518 break
5521 msvisualcpp | msvcmsys)
5522 # This compiler won't grok `-c -o', but also, the minuso test has
5523 # not run yet. These depmodes are late enough in the game, and
5524 # so weak that their functioning should not be impacted.
5525 am__obj=conftest.${OBJEXT-o}
5526 am__minus_obj=
5528 none) break ;;
5529 esac
5530 if depmode=$depmode \
5531 source=sub/conftest.c object=$am__obj \
5532 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5533 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5534 >/dev/null 2>conftest.err &&
5535 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5536 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5537 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5538 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5539 # icc doesn't choke on unknown options, it will just issue warnings
5540 # or remarks (even with -Werror). So we grep stderr for any message
5541 # that says an option was ignored or not supported.
5542 # When given -MP, icc 7.0 and 7.1 complain thusly:
5543 # icc: Command line warning: ignoring option '-M'; no argument required
5544 # The diagnosis changed in icc 8.0:
5545 # icc: Command line remark: option '-MP' not supported
5546 if (grep 'ignoring option' conftest.err ||
5547 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5548 am_cv_CC_dependencies_compiler_type=$depmode
5549 break
5552 done
5554 cd ..
5555 rm -rf conftest.dir
5556 else
5557 am_cv_CC_dependencies_compiler_type=none
5561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5562 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5563 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5566 test "x$enable_dependency_tracking" != xno \
5567 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5568 am__fastdepCC_TRUE=
5569 am__fastdepCC_FALSE='#'
5570 else
5571 am__fastdepCC_TRUE='#'
5572 am__fastdepCC_FALSE=
5576 if test "x$CC" != xcc; then
5577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5578 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5579 else
5580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5581 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5583 set dummy $CC; ac_cc=`$as_echo "$2" |
5584 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5585 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
5586 $as_echo_n "(cached) " >&6
5587 else
5588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5589 /* end confdefs.h. */
5592 main ()
5596 return 0;
5598 _ACEOF
5599 # Make sure it works both with $CC and with simple cc.
5600 # We do the test twice because some compilers refuse to overwrite an
5601 # existing .o file with -o, though they will create one.
5602 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5603 rm -f conftest2.*
5604 if { { case "(($ac_try" in
5605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5606 *) ac_try_echo=$ac_try;;
5607 esac
5608 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5609 $as_echo "$ac_try_echo"; } >&5
5610 (eval "$ac_try") 2>&5
5611 ac_status=$?
5612 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5613 test $ac_status = 0; } &&
5614 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5616 *) ac_try_echo=$ac_try;;
5617 esac
5618 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5619 $as_echo "$ac_try_echo"; } >&5
5620 (eval "$ac_try") 2>&5
5621 ac_status=$?
5622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5623 test $ac_status = 0; };
5624 then
5625 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5626 if test "x$CC" != xcc; then
5627 # Test first that cc exists at all.
5628 if { ac_try='cc -c conftest.$ac_ext >&5'
5629 { { case "(($ac_try" in
5630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5631 *) ac_try_echo=$ac_try;;
5632 esac
5633 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5634 $as_echo "$ac_try_echo"; } >&5
5635 (eval "$ac_try") 2>&5
5636 ac_status=$?
5637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5638 test $ac_status = 0; }; }; then
5639 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5640 rm -f conftest2.*
5641 if { { case "(($ac_try" in
5642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5643 *) ac_try_echo=$ac_try;;
5644 esac
5645 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5646 $as_echo "$ac_try_echo"; } >&5
5647 (eval "$ac_try") 2>&5
5648 ac_status=$?
5649 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5650 test $ac_status = 0; } &&
5651 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5653 *) ac_try_echo=$ac_try;;
5654 esac
5655 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5656 $as_echo "$ac_try_echo"; } >&5
5657 (eval "$ac_try") 2>&5
5658 ac_status=$?
5659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5660 test $ac_status = 0; };
5661 then
5662 # cc works too.
5664 else
5665 # cc exists but doesn't like -o.
5666 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5670 else
5671 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5673 rm -f core conftest*
5676 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5678 $as_echo "yes" >&6; }
5679 else
5680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5681 $as_echo "no" >&6; }
5683 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5687 # FIXME: we rely on the cache variable name because
5688 # there is no other way.
5689 set dummy $CC
5690 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5691 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5692 if test "$am_t" != yes; then
5693 # Losing compiler, so override with the script.
5694 # FIXME: It is wrong to rewrite CC.
5695 # But if we don't then we get into trouble of one sort or another.
5696 # A longer-term fix would be to have automake use am__CC in this case,
5697 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5698 CC="$am_aux_dir/compile $CC"
5703 # Initialize gnulib right after verifying that the C compiler works.
5704 if test -n "$ac_tool_prefix"; then
5705 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5706 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5708 $as_echo_n "checking for $ac_word... " >&6; }
5709 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5710 $as_echo_n "(cached) " >&6
5711 else
5712 if test -n "$RANLIB"; then
5713 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5714 else
5715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5716 for as_dir in $PATH
5718 IFS=$as_save_IFS
5719 test -z "$as_dir" && as_dir=.
5720 for ac_exec_ext in '' $ac_executable_extensions; do
5721 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5722 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5724 break 2
5726 done
5727 done
5728 IFS=$as_save_IFS
5732 RANLIB=$ac_cv_prog_RANLIB
5733 if test -n "$RANLIB"; then
5734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5735 $as_echo "$RANLIB" >&6; }
5736 else
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5738 $as_echo "no" >&6; }
5743 if test -z "$ac_cv_prog_RANLIB"; then
5744 ac_ct_RANLIB=$RANLIB
5745 # Extract the first word of "ranlib", so it can be a program name with args.
5746 set dummy ranlib; ac_word=$2
5747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5748 $as_echo_n "checking for $ac_word... " >&6; }
5749 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5750 $as_echo_n "(cached) " >&6
5751 else
5752 if test -n "$ac_ct_RANLIB"; then
5753 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5754 else
5755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5756 for as_dir in $PATH
5758 IFS=$as_save_IFS
5759 test -z "$as_dir" && as_dir=.
5760 for ac_exec_ext in '' $ac_executable_extensions; do
5761 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5762 ac_cv_prog_ac_ct_RANLIB="ranlib"
5763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5764 break 2
5766 done
5767 done
5768 IFS=$as_save_IFS
5772 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5773 if test -n "$ac_ct_RANLIB"; then
5774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5775 $as_echo "$ac_ct_RANLIB" >&6; }
5776 else
5777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5778 $as_echo "no" >&6; }
5781 if test "x$ac_ct_RANLIB" = x; then
5782 RANLIB=":"
5783 else
5784 case $cross_compiling:$ac_tool_warned in
5785 yes:)
5786 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5787 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5788 ac_tool_warned=yes ;;
5789 esac
5790 RANLIB=$ac_ct_RANLIB
5792 else
5793 RANLIB="$ac_cv_prog_RANLIB"
5797 ac_ext=c
5798 ac_cpp='$CPP $CPPFLAGS'
5799 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5800 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5801 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5803 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5804 # On Suns, sometimes $CPP names a directory.
5805 if test -n "$CPP" && test -d "$CPP"; then
5806 CPP=
5808 if test -z "$CPP"; then
5809 if test "${ac_cv_prog_CPP+set}" = set; then :
5810 $as_echo_n "(cached) " >&6
5811 else
5812 # Double quotes because CPP needs to be expanded
5813 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5815 ac_preproc_ok=false
5816 for ac_c_preproc_warn_flag in '' yes
5818 # Use a header file that comes with gcc, so configuring glibc
5819 # with a fresh cross-compiler works.
5820 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5821 # <limits.h> exists even on freestanding compilers.
5822 # On the NeXT, cc -E runs the code through the compiler's parser,
5823 # not just through cpp. "Syntax error" is here to catch this case.
5824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5825 /* end confdefs.h. */
5826 #ifdef __STDC__
5827 # include <limits.h>
5828 #else
5829 # include <assert.h>
5830 #endif
5831 Syntax error
5832 _ACEOF
5833 if ac_fn_c_try_cpp "$LINENO"; then :
5835 else
5836 # Broken: fails on valid input.
5837 continue
5839 rm -f conftest.err conftest.$ac_ext
5841 # OK, works on sane cases. Now check whether nonexistent headers
5842 # can be detected and how.
5843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5844 /* end confdefs.h. */
5845 #include <ac_nonexistent.h>
5846 _ACEOF
5847 if ac_fn_c_try_cpp "$LINENO"; then :
5848 # Broken: success on invalid input.
5849 continue
5850 else
5851 # Passes both tests.
5852 ac_preproc_ok=:
5853 break
5855 rm -f conftest.err conftest.$ac_ext
5857 done
5858 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5859 rm -f conftest.err conftest.$ac_ext
5860 if $ac_preproc_ok; then :
5861 break
5864 done
5865 ac_cv_prog_CPP=$CPP
5868 CPP=$ac_cv_prog_CPP
5869 else
5870 ac_cv_prog_CPP=$CPP
5872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5873 $as_echo "$CPP" >&6; }
5874 ac_preproc_ok=false
5875 for ac_c_preproc_warn_flag in '' yes
5877 # Use a header file that comes with gcc, so configuring glibc
5878 # with a fresh cross-compiler works.
5879 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5880 # <limits.h> exists even on freestanding compilers.
5881 # On the NeXT, cc -E runs the code through the compiler's parser,
5882 # not just through cpp. "Syntax error" is here to catch this case.
5883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5884 /* end confdefs.h. */
5885 #ifdef __STDC__
5886 # include <limits.h>
5887 #else
5888 # include <assert.h>
5889 #endif
5890 Syntax error
5891 _ACEOF
5892 if ac_fn_c_try_cpp "$LINENO"; then :
5894 else
5895 # Broken: fails on valid input.
5896 continue
5898 rm -f conftest.err conftest.$ac_ext
5900 # OK, works on sane cases. Now check whether nonexistent headers
5901 # can be detected and how.
5902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5903 /* end confdefs.h. */
5904 #include <ac_nonexistent.h>
5905 _ACEOF
5906 if ac_fn_c_try_cpp "$LINENO"; then :
5907 # Broken: success on invalid input.
5908 continue
5909 else
5910 # Passes both tests.
5911 ac_preproc_ok=:
5912 break
5914 rm -f conftest.err conftest.$ac_ext
5916 done
5917 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5918 rm -f conftest.err conftest.$ac_ext
5919 if $ac_preproc_ok; then :
5921 else
5922 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5923 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5924 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5925 See \`config.log' for more details." "$LINENO" 5; }
5928 ac_ext=c
5929 ac_cpp='$CPP $CPPFLAGS'
5930 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5931 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5932 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5936 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5937 if test "${ac_cv_path_GREP+set}" = set; then :
5938 $as_echo_n "(cached) " >&6
5939 else
5940 if test -z "$GREP"; then
5941 ac_path_GREP_found=false
5942 # Loop through the user's path and test for each of PROGNAME-LIST
5943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5944 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5946 IFS=$as_save_IFS
5947 test -z "$as_dir" && as_dir=.
5948 for ac_prog in grep ggrep; do
5949 for ac_exec_ext in '' $ac_executable_extensions; do
5950 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5951 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5952 # Check for GNU ac_path_GREP and select it if it is found.
5953 # Check for GNU $ac_path_GREP
5954 case `"$ac_path_GREP" --version 2>&1` in
5955 *GNU*)
5956 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5958 ac_count=0
5959 $as_echo_n 0123456789 >"conftest.in"
5960 while :
5962 cat "conftest.in" "conftest.in" >"conftest.tmp"
5963 mv "conftest.tmp" "conftest.in"
5964 cp "conftest.in" "conftest.nl"
5965 $as_echo 'GREP' >> "conftest.nl"
5966 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5967 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5968 as_fn_arith $ac_count + 1 && ac_count=$as_val
5969 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5970 # Best one so far, save it but keep looking for a better one
5971 ac_cv_path_GREP="$ac_path_GREP"
5972 ac_path_GREP_max=$ac_count
5974 # 10*(2^10) chars as input seems more than enough
5975 test $ac_count -gt 10 && break
5976 done
5977 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5978 esac
5980 $ac_path_GREP_found && break 3
5981 done
5982 done
5983 done
5984 IFS=$as_save_IFS
5985 if test -z "$ac_cv_path_GREP"; then
5986 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5988 else
5989 ac_cv_path_GREP=$GREP
5993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5994 $as_echo "$ac_cv_path_GREP" >&6; }
5995 GREP="$ac_cv_path_GREP"
5998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5999 $as_echo_n "checking for egrep... " >&6; }
6000 if test "${ac_cv_path_EGREP+set}" = set; then :
6001 $as_echo_n "(cached) " >&6
6002 else
6003 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6004 then ac_cv_path_EGREP="$GREP -E"
6005 else
6006 if test -z "$EGREP"; then
6007 ac_path_EGREP_found=false
6008 # Loop through the user's path and test for each of PROGNAME-LIST
6009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6010 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6012 IFS=$as_save_IFS
6013 test -z "$as_dir" && as_dir=.
6014 for ac_prog in egrep; do
6015 for ac_exec_ext in '' $ac_executable_extensions; do
6016 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6017 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6018 # Check for GNU ac_path_EGREP and select it if it is found.
6019 # Check for GNU $ac_path_EGREP
6020 case `"$ac_path_EGREP" --version 2>&1` in
6021 *GNU*)
6022 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6024 ac_count=0
6025 $as_echo_n 0123456789 >"conftest.in"
6026 while :
6028 cat "conftest.in" "conftest.in" >"conftest.tmp"
6029 mv "conftest.tmp" "conftest.in"
6030 cp "conftest.in" "conftest.nl"
6031 $as_echo 'EGREP' >> "conftest.nl"
6032 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6033 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6034 as_fn_arith $ac_count + 1 && ac_count=$as_val
6035 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6036 # Best one so far, save it but keep looking for a better one
6037 ac_cv_path_EGREP="$ac_path_EGREP"
6038 ac_path_EGREP_max=$ac_count
6040 # 10*(2^10) chars as input seems more than enough
6041 test $ac_count -gt 10 && break
6042 done
6043 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6044 esac
6046 $ac_path_EGREP_found && break 3
6047 done
6048 done
6049 done
6050 IFS=$as_save_IFS
6051 if test -z "$ac_cv_path_EGREP"; then
6052 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6054 else
6055 ac_cv_path_EGREP=$EGREP
6060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6061 $as_echo "$ac_cv_path_EGREP" >&6; }
6062 EGREP="$ac_cv_path_EGREP"
6065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6066 $as_echo_n "checking for ANSI C header files... " >&6; }
6067 if test "${ac_cv_header_stdc+set}" = set; then :
6068 $as_echo_n "(cached) " >&6
6069 else
6070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6071 /* end confdefs.h. */
6072 #include <stdlib.h>
6073 #include <stdarg.h>
6074 #include <string.h>
6075 #include <float.h>
6078 main ()
6082 return 0;
6084 _ACEOF
6085 if ac_fn_c_try_compile "$LINENO"; then :
6086 ac_cv_header_stdc=yes
6087 else
6088 ac_cv_header_stdc=no
6090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6092 if test $ac_cv_header_stdc = yes; then
6093 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6095 /* end confdefs.h. */
6096 #include <string.h>
6098 _ACEOF
6099 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6100 $EGREP "memchr" >/dev/null 2>&1; then :
6102 else
6103 ac_cv_header_stdc=no
6105 rm -f conftest*
6109 if test $ac_cv_header_stdc = yes; then
6110 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6112 /* end confdefs.h. */
6113 #include <stdlib.h>
6115 _ACEOF
6116 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6117 $EGREP "free" >/dev/null 2>&1; then :
6119 else
6120 ac_cv_header_stdc=no
6122 rm -f conftest*
6126 if test $ac_cv_header_stdc = yes; then
6127 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6128 if test "$cross_compiling" = yes; then :
6130 else
6131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6132 /* end confdefs.h. */
6133 #include <ctype.h>
6134 #include <stdlib.h>
6135 #if ((' ' & 0x0FF) == 0x020)
6136 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6137 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6138 #else
6139 # define ISLOWER(c) \
6140 (('a' <= (c) && (c) <= 'i') \
6141 || ('j' <= (c) && (c) <= 'r') \
6142 || ('s' <= (c) && (c) <= 'z'))
6143 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6144 #endif
6146 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6148 main ()
6150 int i;
6151 for (i = 0; i < 256; i++)
6152 if (XOR (islower (i), ISLOWER (i))
6153 || toupper (i) != TOUPPER (i))
6154 return 2;
6155 return 0;
6157 _ACEOF
6158 if ac_fn_c_try_run "$LINENO"; then :
6160 else
6161 ac_cv_header_stdc=no
6163 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6164 conftest.$ac_objext conftest.beam conftest.$ac_ext
6169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6170 $as_echo "$ac_cv_header_stdc" >&6; }
6171 if test $ac_cv_header_stdc = yes; then
6173 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6177 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6178 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6179 inttypes.h stdint.h unistd.h
6180 do :
6181 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6182 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6184 eval as_val=\$$as_ac_Header
6185 if test "x$as_val" = x""yes; then :
6186 cat >>confdefs.h <<_ACEOF
6187 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6188 _ACEOF
6192 done
6198 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6199 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
6200 MINIX=yes
6201 else
6202 MINIX=
6206 if test "$MINIX" = yes; then
6208 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6211 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6214 $as_echo "#define _MINIX 1" >>confdefs.h
6218 case "$host_os" in
6219 hpux*)
6221 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
6224 esac
6227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6228 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6229 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
6230 $as_echo_n "(cached) " >&6
6231 else
6232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6233 /* end confdefs.h. */
6235 # define __EXTENSIONS__ 1
6236 $ac_includes_default
6238 main ()
6242 return 0;
6244 _ACEOF
6245 if ac_fn_c_try_compile "$LINENO"; then :
6246 ac_cv_safe_to_define___extensions__=yes
6247 else
6248 ac_cv_safe_to_define___extensions__=no
6250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6253 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6254 test $ac_cv_safe_to_define___extensions__ = yes &&
6255 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6257 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6259 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6261 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6263 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6272 case $ac_cv_prog_cc_stdc in #(
6273 no) :
6274 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6275 *) :
6276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
6277 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
6278 if test "${ac_cv_prog_cc_c99+set}" = set; then :
6279 $as_echo_n "(cached) " >&6
6280 else
6281 ac_cv_prog_cc_c99=no
6282 ac_save_CC=$CC
6283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6284 /* end confdefs.h. */
6285 #include <stdarg.h>
6286 #include <stdbool.h>
6287 #include <stdlib.h>
6288 #include <wchar.h>
6289 #include <stdio.h>
6291 // Check varargs macros. These examples are taken from C99 6.10.3.5.
6292 #define debug(...) fprintf (stderr, __VA_ARGS__)
6293 #define showlist(...) puts (#__VA_ARGS__)
6294 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6295 static void
6296 test_varargs_macros (void)
6298 int x = 1234;
6299 int y = 5678;
6300 debug ("Flag");
6301 debug ("X = %d\n", x);
6302 showlist (The first, second, and third items.);
6303 report (x>y, "x is %d but y is %d", x, y);
6306 // Check long long types.
6307 #define BIG64 18446744073709551615ull
6308 #define BIG32 4294967295ul
6309 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6310 #if !BIG_OK
6311 your preprocessor is broken;
6312 #endif
6313 #if BIG_OK
6314 #else
6315 your preprocessor is broken;
6316 #endif
6317 static long long int bignum = -9223372036854775807LL;
6318 static unsigned long long int ubignum = BIG64;
6320 struct incomplete_array
6322 int datasize;
6323 double data[];
6326 struct named_init {
6327 int number;
6328 const wchar_t *name;
6329 double average;
6332 typedef const char *ccp;
6334 static inline int
6335 test_restrict (ccp restrict text)
6337 // See if C++-style comments work.
6338 // Iterate through items via the restricted pointer.
6339 // Also check for declarations in for loops.
6340 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6341 continue;
6342 return 0;
6345 // Check varargs and va_copy.
6346 static void
6347 test_varargs (const char *format, ...)
6349 va_list args;
6350 va_start (args, format);
6351 va_list args_copy;
6352 va_copy (args_copy, args);
6354 const char *str;
6355 int number;
6356 float fnumber;
6358 while (*format)
6360 switch (*format++)
6362 case 's': // string
6363 str = va_arg (args_copy, const char *);
6364 break;
6365 case 'd': // int
6366 number = va_arg (args_copy, int);
6367 break;
6368 case 'f': // float
6369 fnumber = va_arg (args_copy, double);
6370 break;
6371 default:
6372 break;
6375 va_end (args_copy);
6376 va_end (args);
6380 main ()
6383 // Check bool.
6384 _Bool success = false;
6386 // Check restrict.
6387 if (test_restrict ("String literal") == 0)
6388 success = true;
6389 char *restrict newvar = "Another string";
6391 // Check varargs.
6392 test_varargs ("s, d' f .", "string", 65, 34.234);
6393 test_varargs_macros ();
6395 // Check flexible array members.
6396 struct incomplete_array *ia =
6397 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6398 ia->datasize = 10;
6399 for (int i = 0; i < ia->datasize; ++i)
6400 ia->data[i] = i * 1.234;
6402 // Check named initializers.
6403 struct named_init ni = {
6404 .number = 34,
6405 .name = L"Test wide string",
6406 .average = 543.34343,
6409 ni.number = 58;
6411 int dynamic_array[ni.number];
6412 dynamic_array[ni.number - 1] = 543;
6414 // work around unused variable warnings
6415 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6416 || dynamic_array[ni.number - 1] != 543);
6419 return 0;
6421 _ACEOF
6422 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
6424 CC="$ac_save_CC $ac_arg"
6425 if ac_fn_c_try_compile "$LINENO"; then :
6426 ac_cv_prog_cc_c99=$ac_arg
6428 rm -f core conftest.err conftest.$ac_objext
6429 test "x$ac_cv_prog_cc_c99" != "xno" && break
6430 done
6431 rm -f conftest.$ac_ext
6432 CC=$ac_save_CC
6435 # AC_CACHE_VAL
6436 case "x$ac_cv_prog_cc_c99" in
6438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6439 $as_echo "none needed" >&6; } ;;
6440 xno)
6441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6442 $as_echo "unsupported" >&6; } ;;
6444 CC="$CC $ac_cv_prog_cc_c99"
6445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
6446 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6447 esac
6448 if test "x$ac_cv_prog_cc_c99" != xno; then :
6449 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
6450 else
6451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6452 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6453 if test "${ac_cv_prog_cc_c89+set}" = set; then :
6454 $as_echo_n "(cached) " >&6
6455 else
6456 ac_cv_prog_cc_c89=no
6457 ac_save_CC=$CC
6458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6459 /* end confdefs.h. */
6460 #include <stdarg.h>
6461 #include <stdio.h>
6462 #include <sys/types.h>
6463 #include <sys/stat.h>
6464 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6465 struct buf { int x; };
6466 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6467 static char *e (p, i)
6468 char **p;
6469 int i;
6471 return p[i];
6473 static char *f (char * (*g) (char **, int), char **p, ...)
6475 char *s;
6476 va_list v;
6477 va_start (v,p);
6478 s = g (p, va_arg (v,int));
6479 va_end (v);
6480 return s;
6483 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6484 function prototypes and stuff, but not '\xHH' hex character constants.
6485 These don't provoke an error unfortunately, instead are silently treated
6486 as 'x'. The following induces an error, until -std is added to get
6487 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6488 array size at least. It's necessary to write '\x00'==0 to get something
6489 that's true only with -std. */
6490 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6492 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6493 inside strings and character constants. */
6494 #define FOO(x) 'x'
6495 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6497 int test (int i, double x);
6498 struct s1 {int (*f) (int a);};
6499 struct s2 {int (*f) (double a);};
6500 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6501 int argc;
6502 char **argv;
6504 main ()
6506 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6508 return 0;
6510 _ACEOF
6511 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6512 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6514 CC="$ac_save_CC $ac_arg"
6515 if ac_fn_c_try_compile "$LINENO"; then :
6516 ac_cv_prog_cc_c89=$ac_arg
6518 rm -f core conftest.err conftest.$ac_objext
6519 test "x$ac_cv_prog_cc_c89" != "xno" && break
6520 done
6521 rm -f conftest.$ac_ext
6522 CC=$ac_save_CC
6525 # AC_CACHE_VAL
6526 case "x$ac_cv_prog_cc_c89" in
6528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6529 $as_echo "none needed" >&6; } ;;
6530 xno)
6531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6532 $as_echo "unsupported" >&6; } ;;
6534 CC="$CC $ac_cv_prog_cc_c89"
6535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6536 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6537 esac
6538 if test "x$ac_cv_prog_cc_c89" != xno; then :
6539 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
6540 else
6541 ac_cv_prog_cc_stdc=no
6546 esac
6547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
6548 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
6549 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
6550 $as_echo_n "(cached) " >&6
6553 case $ac_cv_prog_cc_stdc in #(
6554 no) :
6555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6556 $as_echo "unsupported" >&6; } ;; #(
6557 '') :
6558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6559 $as_echo "none needed" >&6; } ;; #(
6560 *) :
6561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
6562 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
6563 esac
6567 # Code from module alloca-opt:
6568 # Code from module allocator:
6569 # Code from module arg-nonnull:
6570 # Code from module c++defs:
6571 # Code from module careadlinkat:
6572 # Code from module crypto/md5:
6573 # Code from module crypto/sha1:
6574 # Code from module crypto/sha256:
6575 # Code from module crypto/sha512:
6576 # Code from module dosname:
6577 # Code from module dtoastr:
6578 # Code from module dup2:
6579 # Code from module extensions:
6581 # Code from module filemode:
6582 # Code from module getloadavg:
6583 # Code from module getopt-gnu:
6584 # Code from module getopt-posix:
6585 # Code from module gettext-h:
6586 # Code from module ignore-value:
6587 # Code from module include_next:
6588 # Code from module intprops:
6589 # Code from module inttypes-incomplete:
6590 # Code from module lstat:
6591 # Code from module mktime:
6592 # Code from module multiarch:
6593 # Code from module pthread_sigmask:
6594 # Code from module readlink:
6595 # Code from module signal:
6596 # Code from module sigprocmask:
6597 # Code from module socklen:
6598 # Code from module ssize_t:
6599 # Code from module stat:
6600 # Code from module stdarg:
6602 # Code from module stdbool:
6603 # Code from module stddef:
6604 # Code from module stdint:
6605 # Code from module stdio:
6606 # Code from module stdlib:
6607 # Code from module strftime:
6608 # Code from module strtoimax:
6609 # Code from module strtoll:
6610 # Code from module strtoull:
6611 # Code from module strtoumax:
6612 # Code from module symlink:
6613 # Code from module sys_stat:
6614 # Code from module time:
6615 # Code from module time_r:
6616 # Code from module u64:
6617 # Code from module unistd:
6618 # Code from module verify:
6619 # Code from module warn-on-use:
6622 # On Suns, sometimes $CPP names a directory.
6623 if test -n "$CPP" && test -d "$CPP"; then
6624 CPP=
6627 ## If not using gcc, and on Solaris, and no CPP specified, see if
6628 ## using a Sun compiler, which needs -Xs to prevent whitespace.
6629 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
6630 test x"$CPP" = x; then
6631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using a Sun C compiler" >&5
6632 $as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
6633 if test "${emacs_cv_sunpro_c+set}" = set; then :
6634 $as_echo_n "(cached) " >&6
6635 else
6636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6637 /* end confdefs.h. */
6640 main ()
6642 #ifndef __SUNPRO_C
6643 fail;
6644 #endif
6647 return 0;
6649 _ACEOF
6650 if ac_fn_c_try_link "$LINENO"; then :
6651 emacs_cv_sunpro_c=yes
6652 else
6653 emacs_cv_sunpro_c=no
6655 rm -f core conftest.err conftest.$ac_objext \
6656 conftest$ac_exeext conftest.$ac_ext
6659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_sunpro_c" >&5
6660 $as_echo "$emacs_cv_sunpro_c" >&6; }
6662 if test x"$emacs_cv_sunpro_c" = xyes; then
6663 NON_GNU_CPP="$CC -E -Xs"
6667 #### Some systems specify a CPP to use unless we are using GCC.
6668 #### Now that we know whether we are using GCC, we can decide whether
6669 #### to use that one.
6670 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
6671 then
6672 CPP="$NON_GNU_CPP"
6675 #### Some systems specify a CC to use unless we are using GCC.
6676 #### Now that we know whether we are using GCC, we can decide whether
6677 #### to use that one.
6678 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
6679 test x$cc_specified != xyes
6680 then
6681 CC="$NON_GNU_CC"
6684 if test x$GCC = xyes; then
6685 test "x$GCC_TEST_OPTIONS" != x && CC="$CC $GCC_TEST_OPTIONS"
6686 else
6687 test "x$NON_GCC_TEST_OPTIONS" != x && CC="$CC $NON_GCC_TEST_OPTIONS"
6690 ### Use -Wdeclaration-after-statement if the compiler supports it
6691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wdeclaration-after-statement" >&5
6692 $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
6693 SAVE_CFLAGS="$CFLAGS"
6694 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6696 /* end confdefs.h. */
6699 main ()
6703 return 0;
6705 _ACEOF
6706 if ac_fn_c_try_compile "$LINENO"; then :
6707 has_option=yes
6708 else
6709 has_option=no
6711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6712 if test $has_option = yes; then
6713 C_WARNINGS_SWITCH="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
6715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
6716 $as_echo "$has_option" >&6; }
6717 CFLAGS="$SAVE_CFLAGS"
6718 unset has_option
6719 unset SAVE_CFLAGS
6721 ### Use -Wold-style-definition if the compiler supports it
6722 # This can be removed when conversion to standard C is finished.
6723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wold-style-definition" >&5
6724 $as_echo_n "checking whether gcc understands -Wold-style-definition... " >&6; }
6725 SAVE_CFLAGS="$CFLAGS"
6726 CFLAGS="$CFLAGS -Wold-style-definition"
6727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6728 /* end confdefs.h. */
6731 main ()
6735 return 0;
6737 _ACEOF
6738 if ac_fn_c_try_compile "$LINENO"; then :
6739 has_option=yes
6740 else
6741 has_option=no
6743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6744 if test $has_option = yes; then
6745 C_WARNINGS_SWITCH="-Wold-style-definition $C_WARNINGS_SWITCH"
6747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
6748 $as_echo "$has_option" >&6; }
6749 CFLAGS="$SAVE_CFLAGS"
6750 unset has_option
6751 unset SAVE_CFLAGS
6753 ### Use -Wimplicit-function-declaration if the compiler supports it
6754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wimplicit-function-declaration" >&5
6755 $as_echo_n "checking whether gcc understands -Wimplicit-function-declaration... " >&6; }
6756 SAVE_CFLAGS="$CFLAGS"
6757 CFLAGS="$CFLAGS -Wimplicit-function-declaration"
6758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6759 /* end confdefs.h. */
6762 main ()
6766 return 0;
6768 _ACEOF
6769 if ac_fn_c_try_compile "$LINENO"; then :
6770 has_option=yes
6771 else
6772 has_option=no
6774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6775 if test $has_option = yes; then
6776 C_WARNINGS_SWITCH="-Wimplicit-function-declaration $C_WARNINGS_SWITCH"
6778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
6779 $as_echo "$has_option" >&6; }
6780 CFLAGS="$SAVE_CFLAGS"
6781 unset has_option
6782 unset SAVE_CFLAGS
6787 #### Some other nice autoconf tests.
6789 ac_ext=c
6790 ac_cpp='$CPP $CPPFLAGS'
6791 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6792 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6793 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6795 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6796 # On Suns, sometimes $CPP names a directory.
6797 if test -n "$CPP" && test -d "$CPP"; then
6798 CPP=
6800 if test -z "$CPP"; then
6801 if test "${ac_cv_prog_CPP+set}" = set; then :
6802 $as_echo_n "(cached) " >&6
6803 else
6804 # Double quotes because CPP needs to be expanded
6805 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6807 ac_preproc_ok=false
6808 for ac_c_preproc_warn_flag in '' yes
6810 # Use a header file that comes with gcc, so configuring glibc
6811 # with a fresh cross-compiler works.
6812 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6813 # <limits.h> exists even on freestanding compilers.
6814 # On the NeXT, cc -E runs the code through the compiler's parser,
6815 # not just through cpp. "Syntax error" is here to catch this case.
6816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6817 /* end confdefs.h. */
6818 #ifdef __STDC__
6819 # include <limits.h>
6820 #else
6821 # include <assert.h>
6822 #endif
6823 Syntax error
6824 _ACEOF
6825 if ac_fn_c_try_cpp "$LINENO"; then :
6827 else
6828 # Broken: fails on valid input.
6829 continue
6831 rm -f conftest.err conftest.$ac_ext
6833 # OK, works on sane cases. Now check whether nonexistent headers
6834 # can be detected and how.
6835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6836 /* end confdefs.h. */
6837 #include <ac_nonexistent.h>
6838 _ACEOF
6839 if ac_fn_c_try_cpp "$LINENO"; then :
6840 # Broken: success on invalid input.
6841 continue
6842 else
6843 # Passes both tests.
6844 ac_preproc_ok=:
6845 break
6847 rm -f conftest.err conftest.$ac_ext
6849 done
6850 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6851 rm -f conftest.err conftest.$ac_ext
6852 if $ac_preproc_ok; then :
6853 break
6856 done
6857 ac_cv_prog_CPP=$CPP
6860 CPP=$ac_cv_prog_CPP
6861 else
6862 ac_cv_prog_CPP=$CPP
6864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6865 $as_echo "$CPP" >&6; }
6866 ac_preproc_ok=false
6867 for ac_c_preproc_warn_flag in '' yes
6869 # Use a header file that comes with gcc, so configuring glibc
6870 # with a fresh cross-compiler works.
6871 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6872 # <limits.h> exists even on freestanding compilers.
6873 # On the NeXT, cc -E runs the code through the compiler's parser,
6874 # not just through cpp. "Syntax error" is here to catch this case.
6875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6876 /* end confdefs.h. */
6877 #ifdef __STDC__
6878 # include <limits.h>
6879 #else
6880 # include <assert.h>
6881 #endif
6882 Syntax error
6883 _ACEOF
6884 if ac_fn_c_try_cpp "$LINENO"; then :
6886 else
6887 # Broken: fails on valid input.
6888 continue
6890 rm -f conftest.err conftest.$ac_ext
6892 # OK, works on sane cases. Now check whether nonexistent headers
6893 # can be detected and how.
6894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6895 /* end confdefs.h. */
6896 #include <ac_nonexistent.h>
6897 _ACEOF
6898 if ac_fn_c_try_cpp "$LINENO"; then :
6899 # Broken: success on invalid input.
6900 continue
6901 else
6902 # Passes both tests.
6903 ac_preproc_ok=:
6904 break
6906 rm -f conftest.err conftest.$ac_ext
6908 done
6909 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6910 rm -f conftest.err conftest.$ac_ext
6911 if $ac_preproc_ok; then :
6913 else
6914 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6915 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6916 as_fn_error "C preprocessor \"$CPP\" fails sanity check
6917 See \`config.log' for more details." "$LINENO" 5; }
6920 ac_ext=c
6921 ac_cpp='$CPP $CPPFLAGS'
6922 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6923 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6924 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6927 if test "x$RANLIB" = x; then
6928 if test -n "$ac_tool_prefix"; then
6929 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6930 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6932 $as_echo_n "checking for $ac_word... " >&6; }
6933 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6934 $as_echo_n "(cached) " >&6
6935 else
6936 if test -n "$RANLIB"; then
6937 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6938 else
6939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6940 for as_dir in $PATH
6942 IFS=$as_save_IFS
6943 test -z "$as_dir" && as_dir=.
6944 for ac_exec_ext in '' $ac_executable_extensions; do
6945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6946 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6948 break 2
6950 done
6951 done
6952 IFS=$as_save_IFS
6956 RANLIB=$ac_cv_prog_RANLIB
6957 if test -n "$RANLIB"; then
6958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6959 $as_echo "$RANLIB" >&6; }
6960 else
6961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6962 $as_echo "no" >&6; }
6967 if test -z "$ac_cv_prog_RANLIB"; then
6968 ac_ct_RANLIB=$RANLIB
6969 # Extract the first word of "ranlib", so it can be a program name with args.
6970 set dummy ranlib; ac_word=$2
6971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6972 $as_echo_n "checking for $ac_word... " >&6; }
6973 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6974 $as_echo_n "(cached) " >&6
6975 else
6976 if test -n "$ac_ct_RANLIB"; then
6977 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6978 else
6979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6980 for as_dir in $PATH
6982 IFS=$as_save_IFS
6983 test -z "$as_dir" && as_dir=.
6984 for ac_exec_ext in '' $ac_executable_extensions; do
6985 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6986 ac_cv_prog_ac_ct_RANLIB="ranlib"
6987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6988 break 2
6990 done
6991 done
6992 IFS=$as_save_IFS
6996 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6997 if test -n "$ac_ct_RANLIB"; then
6998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6999 $as_echo "$ac_ct_RANLIB" >&6; }
7000 else
7001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7002 $as_echo "no" >&6; }
7005 if test "x$ac_ct_RANLIB" = x; then
7006 RANLIB=":"
7007 else
7008 case $cross_compiling:$ac_tool_warned in
7009 yes:)
7010 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7011 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7012 ac_tool_warned=yes ;;
7013 esac
7014 RANLIB=$ac_ct_RANLIB
7016 else
7017 RANLIB="$ac_cv_prog_RANLIB"
7022 ## Although we're running on an amd64 kernel, we're actually compiling for
7023 ## the x86 architecture. The user should probably have provided an
7024 ## explicit --build to `configure', but if everything else than the kernel
7025 ## is running in i386 mode, we can help them out.
7026 if test "$machine" = "amdx86-64"; then
7027 ac_fn_c_check_decl "$LINENO" "i386" "ac_cv_have_decl_i386" "$ac_includes_default"
7028 if test "x$ac_cv_have_decl_i386" = x""yes; then :
7032 if test "$ac_cv_have_decl_i386" = "yes"; then
7033 canonical=`echo "$canonical" | sed -e 's/^amd64/i386/' -e 's/^x86_64/i386/'`
7034 machine=intel386
7035 machfile="m/${machine}.h"
7039 # Extract the first word of "install-info", so it can be a program name with args.
7040 set dummy install-info; ac_word=$2
7041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7042 $as_echo_n "checking for $ac_word... " >&6; }
7043 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
7044 $as_echo_n "(cached) " >&6
7045 else
7046 case $INSTALL_INFO in
7047 [\\/]* | ?:[\\/]*)
7048 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
7051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7052 for as_dir in $PATH
7054 IFS=$as_save_IFS
7055 test -z "$as_dir" && as_dir=.
7056 for ac_exec_ext in '' $ac_executable_extensions; do
7057 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7058 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
7059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7060 break 2
7062 done
7063 done
7064 IFS=$as_save_IFS
7067 esac
7069 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
7070 if test -n "$INSTALL_INFO"; then
7071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
7072 $as_echo "$INSTALL_INFO" >&6; }
7073 else
7074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7075 $as_echo "no" >&6; }
7079 # Extract the first word of "install-info", so it can be a program name with args.
7080 set dummy install-info; ac_word=$2
7081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7082 $as_echo_n "checking for $ac_word... " >&6; }
7083 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
7084 $as_echo_n "(cached) " >&6
7085 else
7086 case $INSTALL_INFO in
7087 [\\/]* | ?:[\\/]*)
7088 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
7091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7092 for as_dir in /usr/sbin
7094 IFS=$as_save_IFS
7095 test -z "$as_dir" && as_dir=.
7096 for ac_exec_ext in '' $ac_executable_extensions; do
7097 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7098 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
7099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7100 break 2
7102 done
7103 done
7104 IFS=$as_save_IFS
7107 esac
7109 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
7110 if test -n "$INSTALL_INFO"; then
7111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
7112 $as_echo "$INSTALL_INFO" >&6; }
7113 else
7114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7115 $as_echo "no" >&6; }
7119 # Extract the first word of "install-info", so it can be a program name with args.
7120 set dummy install-info; ac_word=$2
7121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7122 $as_echo_n "checking for $ac_word... " >&6; }
7123 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
7124 $as_echo_n "(cached) " >&6
7125 else
7126 case $INSTALL_INFO in
7127 [\\/]* | ?:[\\/]*)
7128 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
7131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7132 for as_dir in /sbin
7134 IFS=$as_save_IFS
7135 test -z "$as_dir" && as_dir=.
7136 for ac_exec_ext in '' $ac_executable_extensions; do
7137 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7138 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
7139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7140 break 2
7142 done
7143 done
7144 IFS=$as_save_IFS
7146 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
7148 esac
7150 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
7151 if test -n "$INSTALL_INFO"; then
7152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
7153 $as_echo "$INSTALL_INFO" >&6; }
7154 else
7155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7156 $as_echo "no" >&6; }
7160 # Extract the first word of "gzip", so it can be a program name with args.
7161 set dummy gzip; ac_word=$2
7162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7163 $as_echo_n "checking for $ac_word... " >&6; }
7164 if test "${ac_cv_path_GZIP_PROG+set}" = set; then :
7165 $as_echo_n "(cached) " >&6
7166 else
7167 case $GZIP_PROG in
7168 [\\/]* | ?:[\\/]*)
7169 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
7172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7173 for as_dir in $PATH
7175 IFS=$as_save_IFS
7176 test -z "$as_dir" && as_dir=.
7177 for ac_exec_ext in '' $ac_executable_extensions; do
7178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7179 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
7180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7181 break 2
7183 done
7184 done
7185 IFS=$as_save_IFS
7188 esac
7190 GZIP_PROG=$ac_cv_path_GZIP_PROG
7191 if test -n "$GZIP_PROG"; then
7192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
7193 $as_echo "$GZIP_PROG" >&6; }
7194 else
7195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7196 $as_echo "no" >&6; }
7202 ## Need makeinfo >= 4.6 (?) to build the manuals.
7203 # Extract the first word of "makeinfo", so it can be a program name with args.
7204 set dummy makeinfo; ac_word=$2
7205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7206 $as_echo_n "checking for $ac_word... " >&6; }
7207 if test "${ac_cv_path_MAKEINFO+set}" = set; then :
7208 $as_echo_n "(cached) " >&6
7209 else
7210 case $MAKEINFO in
7211 [\\/]* | ?:[\\/]*)
7212 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
7215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7216 for as_dir in $PATH
7218 IFS=$as_save_IFS
7219 test -z "$as_dir" && as_dir=.
7220 for ac_exec_ext in '' $ac_executable_extensions; do
7221 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7222 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
7223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7224 break 2
7226 done
7227 done
7228 IFS=$as_save_IFS
7230 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
7232 esac
7234 MAKEINFO=$ac_cv_path_MAKEINFO
7235 if test -n "$MAKEINFO"; then
7236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7237 $as_echo "$MAKEINFO" >&6; }
7238 else
7239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7240 $as_echo "no" >&6; }
7244 if test "$MAKEINFO" != "no" && \
7245 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
7246 MAKEINFO=no
7249 ## Makeinfo is unusual. For a released Emacs, the manuals are
7250 ## pre-built, and not deleted by the normal clean rules. makeinfo is
7251 ## therefore in the category of "special tools" not normally required, which
7252 ## configure does not have to check for (eg autoconf itself).
7253 ## In a Bazaar checkout on the other hand, the manuals are not included.
7254 ## So makeinfo is a requirement to build from Bazaar, and configure
7255 ## should test for it as it does for any other build requirement.
7256 ## We use the presence of $srcdir/info/emacs to distinguish a release,
7257 ## with pre-built manuals, from a Bazaar checkout.
7258 HAVE_MAKEINFO=yes
7260 if test "$MAKEINFO" = "no"; then
7261 MAKEINFO=makeinfo
7262 if test "x${with_makeinfo}" = "xno"; then
7263 HAVE_MAKEINFO=no
7264 elif test ! -e $srcdir/info/emacs; then
7265 as_fn_error "You do not seem to have makeinfo >= 4.6, and your
7266 source tree does not seem to have pre-built manuals in the \`info' directory.
7267 Either install a suitable version of makeinfo, or re-run configure
7268 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
7274 if test x$GCC = xyes; then
7275 test "x$GCC_LINK_TEST_OPTIONS" != x && \
7276 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
7277 else
7278 test "x$NON_GCC_LINK_TEST_OPTIONS" != x && \
7279 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
7283 late_LDFLAGS=$LDFLAGS
7284 if test x$GCC = xyes; then
7285 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
7286 else
7287 LDFLAGS="$LDFLAGS -znocombreloc"
7290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
7291 $as_echo_n "checking for -znocombreloc... " >&6; }
7292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7293 /* end confdefs.h. */
7296 main ()
7300 return 0;
7302 _ACEOF
7303 if ac_fn_c_try_link "$LINENO"; then :
7304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7305 $as_echo "yes" >&6; }
7306 else
7307 LDFLAGS=$late_LDFLAGS
7308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7309 $as_echo "no" >&6; }
7311 rm -f core conftest.err conftest.$ac_objext \
7312 conftest$ac_exeext conftest.$ac_ext
7315 # The value of CPP is a quoted variable reference, so we need to do this
7316 # to get its actual value...
7317 CPP=`eval "echo $CPP"`
7320 test "x$CANNOT_DUMP" = "x" && CANNOT_DUMP=no
7321 case "$opsys" in
7322 your-opsys-here) CANNOT_DUMP=yes ;;
7323 esac
7325 test "$CANNOT_DUMP" = "yes" && \
7327 $as_echo "#define CANNOT_DUMP 1" >>confdefs.h
7333 UNEXEC_OBJ=unexelf.o
7334 case "$opsys" in
7335 # MSDOS uses unexcoff.o
7336 # MSWindows uses unexw32.o
7337 aix4-2)
7338 UNEXEC_OBJ=unexaix.o
7340 cygwin)
7341 UNEXEC_OBJ=unexcw.o
7343 darwin)
7344 UNEXEC_OBJ=unexmacosx.o
7346 hpux10-20 | hpux11)
7347 UNEXEC_OBJ=unexhp9k800.o
7349 sol2-10)
7350 # Use the Solaris dldump() function, called from unexsol.c, to dump
7351 # emacs, instead of the generic ELF dump code found in unexelf.c.
7352 # The resulting binary has a complete symbol table, and is better
7353 # for debugging and other observability tools (debuggers, pstack, etc).
7355 # If you encounter a problem using dldump(), please consider sending
7356 # a message to the OpenSolaris tools-linking mailing list:
7357 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
7359 # It is likely that dldump() works with older Solaris too, but this has
7360 # not been tested, so for now this change is for Solaris 10 or newer.
7361 UNEXEC_OBJ=unexsol.o
7363 esac
7365 LD_SWITCH_SYSTEM=
7366 case "$opsys" in
7367 freebsd)
7368 ## Let `ld' find image libs and similar things in /usr/local/lib.
7369 ## The system compiler, GCC, has apparently been modified to not
7370 ## look there, contrary to what a stock GCC would do.
7371 LD_SWITCH_SYSTEM=-L/usr/local/lib
7374 gnu-linux)
7375 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
7376 case $host_cpu in mips*) LD_SWITCH_SYSTEM="-G 0";; esac
7379 netbsd)
7380 LD_SWITCH_SYSTEM="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
7383 openbsd)
7384 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
7385 ## otherwise Emacs dumps core on elf systems.
7386 LD_SWITCH_SYSTEM="-Z"
7388 esac
7391 ac_link="$ac_link $LD_SWITCH_SYSTEM"
7393 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_AUX,
7394 ## which has not been defined yet. When this was handled with cpp,
7395 ## it was expanded to null when configure sourced the s/*.h file.
7396 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
7397 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
7398 ## (or somesuch), but because it is supposed to go at the _front_
7399 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
7400 ## Compare with the gnu-linux case below, which added to the end
7401 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
7402 ## LD_SWITCH_SYSTEM_TEMACS.
7403 case "$opsys" in
7404 netbsd|openbsd)
7405 ## _AUX_RPATH is like _AUX, but uses -rpath instead of -R.
7406 LD_SWITCH_SYSTEM="\$(LD_SWITCH_X_SITE_AUX_RPATH) $LD_SWITCH_SYSTEM" ;;
7407 esac
7410 C_SWITCH_MACHINE=
7411 if test "$machine" = "alpha"; then
7412 ac_fn_c_check_decl "$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
7413 if test "x$ac_cv_have_decl___ELF__" = x""yes; then :
7417 if test "$ac_cv_have_decl___ELF__" = "yes"; then
7418 ## With ELF, make sure that all common symbols get allocated to in the
7419 ## data section. Otherwise, the dump of temacs may miss variables in
7420 ## the shared library that have been initialized. For example, with
7421 ## GNU libc, __malloc_initialized would normally be resolved to the
7422 ## shared library's .bss section, which is fatal.
7423 if test "x$GCC" = "xyes"; then
7424 C_SWITCH_MACHINE="-fno-common"
7425 else
7426 as_fn_error "What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
7428 else
7429 UNEXEC_OBJ=unexalpha.o
7436 C_SWITCH_SYSTEM=
7437 ## Some programs in src produce warnings saying certain subprograms
7438 ## are too complex and need a MAXMEM value greater than 2000 for
7439 ## additional optimization. --nils@exp-math.uni-essen.de
7440 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
7441 C_SWITCH_SYSTEM="-ma -qmaxmem=4000"
7442 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
7443 ## It is redundant in glibc2, since we define _GNU_SOURCE.
7447 LIBS_SYSTEM=
7448 case "$opsys" in
7449 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
7450 aix4-2) LIBS_SYSTEM="-lrts -lIM -liconv" ;;
7452 freebsd) LIBS_SYSTEM="-lutil" ;;
7454 hpux*) LIBS_SYSTEM="-l:libdld.sl" ;;
7456 sol2*) LIBS_SYSTEM="-lsocket -lnsl" ;;
7458 ## Motif needs -lgen.
7459 unixware) LIBS_SYSTEM="-lsocket -lnsl -lelf -lgen" ;;
7460 esac
7464 ### Make sure subsequent tests use flags consistent with the build flags.
7466 if test x"${OVERRIDE_CPPFLAGS}" != x; then
7467 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
7468 else
7469 CPPFLAGS="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
7472 # Suppress obsolescent Autoconf test for size_t; Emacs assumes C89 or better.
7474 # Likewise for obsolescent test for uid_t, gid_t; Emacs assumes them.
7477 # Check whether --enable-largefile was given.
7478 if test "${enable_largefile+set}" = set; then :
7479 enableval=$enable_largefile;
7482 if test "$enable_largefile" != no; then
7484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
7485 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
7486 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
7487 $as_echo_n "(cached) " >&6
7488 else
7489 ac_cv_sys_largefile_CC=no
7490 if test "$GCC" != yes; then
7491 ac_save_CC=$CC
7492 while :; do
7493 # IRIX 6.2 and later do not support large files by default,
7494 # so use the C compiler's -n32 option if that helps.
7495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7496 /* end confdefs.h. */
7497 #include <sys/types.h>
7498 /* Check that off_t can represent 2**63 - 1 correctly.
7499 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7500 since some C++ compilers masquerading as C compilers
7501 incorrectly reject 9223372036854775807. */
7502 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7503 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7504 && LARGE_OFF_T % 2147483647 == 1)
7505 ? 1 : -1];
7507 main ()
7511 return 0;
7513 _ACEOF
7514 if ac_fn_c_try_compile "$LINENO"; then :
7515 break
7517 rm -f core conftest.err conftest.$ac_objext
7518 CC="$CC -n32"
7519 if ac_fn_c_try_compile "$LINENO"; then :
7520 ac_cv_sys_largefile_CC=' -n32'; break
7522 rm -f core conftest.err conftest.$ac_objext
7523 break
7524 done
7525 CC=$ac_save_CC
7526 rm -f conftest.$ac_ext
7529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
7530 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
7531 if test "$ac_cv_sys_largefile_CC" != no; then
7532 CC=$CC$ac_cv_sys_largefile_CC
7535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
7536 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
7537 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
7538 $as_echo_n "(cached) " >&6
7539 else
7540 while :; do
7541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7542 /* end confdefs.h. */
7543 #include <sys/types.h>
7544 /* Check that off_t can represent 2**63 - 1 correctly.
7545 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7546 since some C++ compilers masquerading as C compilers
7547 incorrectly reject 9223372036854775807. */
7548 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7549 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7550 && LARGE_OFF_T % 2147483647 == 1)
7551 ? 1 : -1];
7553 main ()
7557 return 0;
7559 _ACEOF
7560 if ac_fn_c_try_compile "$LINENO"; then :
7561 ac_cv_sys_file_offset_bits=no; break
7563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7565 /* end confdefs.h. */
7566 #define _FILE_OFFSET_BITS 64
7567 #include <sys/types.h>
7568 /* Check that off_t can represent 2**63 - 1 correctly.
7569 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7570 since some C++ compilers masquerading as C compilers
7571 incorrectly reject 9223372036854775807. */
7572 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7573 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7574 && LARGE_OFF_T % 2147483647 == 1)
7575 ? 1 : -1];
7577 main ()
7581 return 0;
7583 _ACEOF
7584 if ac_fn_c_try_compile "$LINENO"; then :
7585 ac_cv_sys_file_offset_bits=64; break
7587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7588 ac_cv_sys_file_offset_bits=unknown
7589 break
7590 done
7592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
7593 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
7594 case $ac_cv_sys_file_offset_bits in #(
7595 no | unknown) ;;
7597 cat >>confdefs.h <<_ACEOF
7598 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7599 _ACEOF
7601 esac
7602 rm -rf conftest*
7603 if test $ac_cv_sys_file_offset_bits = unknown; then
7604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
7605 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
7606 if test "${ac_cv_sys_large_files+set}" = set; then :
7607 $as_echo_n "(cached) " >&6
7608 else
7609 while :; do
7610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7611 /* end confdefs.h. */
7612 #include <sys/types.h>
7613 /* Check that off_t can represent 2**63 - 1 correctly.
7614 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7615 since some C++ compilers masquerading as C compilers
7616 incorrectly reject 9223372036854775807. */
7617 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7618 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7619 && LARGE_OFF_T % 2147483647 == 1)
7620 ? 1 : -1];
7622 main ()
7626 return 0;
7628 _ACEOF
7629 if ac_fn_c_try_compile "$LINENO"; then :
7630 ac_cv_sys_large_files=no; break
7632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7634 /* end confdefs.h. */
7635 #define _LARGE_FILES 1
7636 #include <sys/types.h>
7637 /* Check that off_t can represent 2**63 - 1 correctly.
7638 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7639 since some C++ compilers masquerading as C compilers
7640 incorrectly reject 9223372036854775807. */
7641 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7642 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7643 && LARGE_OFF_T % 2147483647 == 1)
7644 ? 1 : -1];
7646 main ()
7650 return 0;
7652 _ACEOF
7653 if ac_fn_c_try_compile "$LINENO"; then :
7654 ac_cv_sys_large_files=1; break
7656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7657 ac_cv_sys_large_files=unknown
7658 break
7659 done
7661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
7662 $as_echo "$ac_cv_sys_large_files" >&6; }
7663 case $ac_cv_sys_large_files in #(
7664 no | unknown) ;;
7666 cat >>confdefs.h <<_ACEOF
7667 #define _LARGE_FILES $ac_cv_sys_large_files
7668 _ACEOF
7670 esac
7671 rm -rf conftest*
7677 LIB_MATH=-lm
7678 LIB_STANDARD=
7679 START_FILES=
7681 case $opsys in
7682 cygwin )
7683 LIB_MATH=
7684 START_FILES='pre-crt0.o'
7686 darwin )
7687 ## Adding -lm confuses the dynamic linker, so omit it.
7688 LIB_MATH=
7689 START_FILES='pre-crt0.o'
7691 freebsd )
7692 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
7693 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
7695 gnu-linux | gnu-kfreebsd )
7696 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
7697 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
7699 hpux10-20 | hpux11 )
7700 LIB_STANDARD=-lc
7701 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o'
7703 netbsd | openbsd )
7704 if test -f $CRT_DIR/crti.o; then
7705 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
7706 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
7707 else
7708 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
7709 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
7712 esac
7717 crt_files=
7719 for file in x $LIB_STANDARD $START_FILES; do
7720 case "$file" in
7721 *CRT_DIR*) crt_files="$crt_files `echo $file | sed -e 's|.*/||'`" ;;
7722 esac
7723 done
7725 if test "x$crt_files" != x; then
7727 ## If user specified a crt-dir, use that unconditionally.
7728 crt_gcc=no
7730 if test "X$CRT_DIR" = "X"; then
7732 CRT_DIR=/usr/lib # default
7734 case "$canonical" in
7735 x86_64-*-linux-gnu* | s390x-*-linux-gnu*)
7736 ## On x86-64 and s390x GNU/Linux distributions, the standard library
7737 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
7738 ## For anything else (eg /usr/lib32), it is up the user to specify
7739 ## the location (bug#5655).
7740 ## Test for crtn.o, not just the directory, because sometimes the
7741 ## directory exists but does not have the relevant files (bug#1287).
7742 ## FIXME better to test for binary compatibility somehow.
7743 test -e /usr/lib64/crtn.o && CRT_DIR=/usr/lib64
7746 powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*) CRT_DIR=/usr/lib64 ;;
7747 esac
7749 case "$opsys" in
7750 hpux10-20) CRT_DIR=/lib ;;
7751 esac
7753 test "x${GCC}" = xyes && crt_gcc=yes
7755 fi # CRT_DIR = ""
7757 crt_missing=
7759 for file in $crt_files; do
7761 ## If we're using gcc, try to determine it automatically by asking
7762 ## gcc. [If this doesn't work, CRT_DIR will remain at the
7763 ## system-dependent default from above.]
7764 if test $crt_gcc = yes && test ! -e $CRT_DIR/$file; then
7766 crt_file=`$CC --print-file-name=$file 2>/dev/null`
7767 case "$crt_file" in
7768 */*)
7769 CRT_DIR=`$as_dirname -- "$crt_file" ||
7770 $as_expr X"$crt_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7771 X"$crt_file" : 'X\(//\)[^/]' \| \
7772 X"$crt_file" : 'X\(//\)$' \| \
7773 X"$crt_file" : 'X\(/\)' \| . 2>/dev/null ||
7774 $as_echo X"$crt_file" |
7775 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7776 s//\1/
7779 /^X\(\/\/\)[^/].*/{
7780 s//\1/
7783 /^X\(\/\/\)$/{
7784 s//\1/
7787 /^X\(\/\).*/{
7788 s//\1/
7791 s/.*/./; q'`
7793 esac
7796 crt_gcc=no
7798 test -e $CRT_DIR/$file || crt_missing="$crt_missing $file"
7799 done # $crt_files
7801 test "x$crt_missing" = x || \
7802 as_fn_error "Required file(s) not found:$crt_missing
7803 Try using the --with-crt-dir option." "$LINENO" 5
7805 fi # crt_files != ""
7813 if test "${with_sound}" != "no"; then
7814 # Sound support for GNU/Linux and the free BSDs.
7815 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
7816 do :
7817 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7818 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7819 eval as_val=\$$as_ac_Header
7820 if test "x$as_val" = x""yes; then :
7821 cat >>confdefs.h <<_ACEOF
7822 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7823 _ACEOF
7824 have_sound_header=yes
7827 done
7829 # Emulation library used on NetBSD.
7830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
7831 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
7832 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
7833 $as_echo_n "(cached) " >&6
7834 else
7835 ac_check_lib_save_LIBS=$LIBS
7836 LIBS="-lossaudio $LIBS"
7837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7838 /* end confdefs.h. */
7840 /* Override any GCC internal prototype to avoid an error.
7841 Use char because int might match the return type of a GCC
7842 builtin and then its argument prototype would still apply. */
7843 #ifdef __cplusplus
7844 extern "C"
7845 #endif
7846 char _oss_ioctl ();
7848 main ()
7850 return _oss_ioctl ();
7852 return 0;
7854 _ACEOF
7855 if ac_fn_c_try_link "$LINENO"; then :
7856 ac_cv_lib_ossaudio__oss_ioctl=yes
7857 else
7858 ac_cv_lib_ossaudio__oss_ioctl=no
7860 rm -f core conftest.err conftest.$ac_objext \
7861 conftest$ac_exeext conftest.$ac_ext
7862 LIBS=$ac_check_lib_save_LIBS
7864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
7865 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
7866 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x""yes; then :
7867 LIBSOUND=-lossaudio
7868 else
7869 LIBSOUND=
7874 ALSA_REQUIRED=1.0.0
7875 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
7877 succeeded=no
7879 # Extract the first word of "pkg-config", so it can be a program name with args.
7880 set dummy pkg-config; ac_word=$2
7881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7882 $as_echo_n "checking for $ac_word... " >&6; }
7883 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
7884 $as_echo_n "(cached) " >&6
7885 else
7886 case $PKG_CONFIG in
7887 [\\/]* | ?:[\\/]*)
7888 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7892 for as_dir in $PATH
7894 IFS=$as_save_IFS
7895 test -z "$as_dir" && as_dir=.
7896 for ac_exec_ext in '' $ac_executable_extensions; do
7897 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7898 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7900 break 2
7902 done
7903 done
7904 IFS=$as_save_IFS
7906 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
7908 esac
7910 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7911 if test -n "$PKG_CONFIG"; then
7912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7913 $as_echo "$PKG_CONFIG" >&6; }
7914 else
7915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7916 $as_echo "no" >&6; }
7921 if test "$PKG_CONFIG" = "no" ; then
7922 HAVE_ALSA=no
7923 else
7924 PKG_CONFIG_MIN_VERSION=0.9.0
7925 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
7926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
7927 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
7929 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
7930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7931 $as_echo "yes" >&6; }
7932 succeeded=yes
7934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_CFLAGS" >&5
7935 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
7936 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
7937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
7938 $as_echo "$ALSA_CFLAGS" >&6; }
7940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_LIBS" >&5
7941 $as_echo_n "checking ALSA_LIBS... " >&6; }
7942 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
7943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
7944 $as_echo "$ALSA_LIBS" >&6; }
7945 else
7946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7947 $as_echo "no" >&6; }
7948 ALSA_CFLAGS=""
7949 ALSA_LIBS=""
7950 ## If we have a custom action on failure, don't print errors, but
7951 ## do set a variable so people can do so.
7952 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
7958 else
7959 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
7960 echo "*** See http://www.freedesktop.org/software/pkgconfig"
7964 if test $succeeded = yes; then
7965 HAVE_ALSA=yes
7966 else
7967 HAVE_ALSA=no
7970 if test $HAVE_ALSA = yes; then
7971 SAVE_CFLAGS="$CFLAGS"
7972 SAVE_LDFLAGS="$LDFLAGS"
7973 CFLAGS="$ALSA_CFLAGS $CFLAGS"
7974 LDFLAGS="$ALSA_LIBS $LDFLAGS"
7975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7976 /* end confdefs.h. */
7977 #include <asoundlib.h>
7979 main ()
7981 snd_lib_error_set_handler (0);
7983 return 0;
7985 _ACEOF
7986 if ac_fn_c_try_compile "$LINENO"; then :
7987 emacs_alsa_normal=yes
7988 else
7989 emacs_alsa_normal=no
7991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7992 if test "$emacs_alsa_normal" != yes; then
7993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7994 /* end confdefs.h. */
7995 #include <alsa/asoundlib.h>
7997 main ()
7999 snd_lib_error_set_handler (0);
8001 return 0;
8003 _ACEOF
8004 if ac_fn_c_try_compile "$LINENO"; then :
8005 emacs_alsa_subdir=yes
8006 else
8007 emacs_alsa_subdir=no
8009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8010 if test "$emacs_alsa_subdir" != yes; then
8011 as_fn_error "pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
8013 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
8016 CFLAGS="$SAVE_CFLAGS"
8017 LDFLAGS="$SAVE_LDFLAGS"
8018 LIBSOUND="$LIBSOUND $ALSA_LIBS"
8019 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
8021 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
8025 if test x$have_sound_header = xyes || test $HAVE_ALSA = yes; then
8026 case "$opsys" in
8027 gnu-linux|freebsd|netbsd)
8029 $as_echo "#define HAVE_SOUND 1" >>confdefs.h
8032 esac
8038 for ac_header in sys/select.h sys/time.h unistd.h utime.h \
8039 linux/version.h sys/systeminfo.h \
8040 stdio_ext.h fcntl.h coff.h pty.h sys/mman.h \
8041 sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
8042 sys/utsname.h pwd.h utmp.h dirent.h util.h
8043 do :
8044 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8045 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8046 eval as_val=\$$as_ac_Header
8047 if test "x$as_val" = x""yes; then :
8048 cat >>confdefs.h <<_ACEOF
8049 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8050 _ACEOF
8054 done
8057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
8058 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
8059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8060 /* end confdefs.h. */
8061 #include <sys/personality.h>
8063 main ()
8065 personality (PER_LINUX32)
8067 return 0;
8069 _ACEOF
8070 if ac_fn_c_try_compile "$LINENO"; then :
8071 emacs_cv_personality_linux32=yes
8072 else
8073 emacs_cv_personality_linux32=no
8075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
8077 $as_echo "$emacs_cv_personality_linux32" >&6; }
8079 if test $emacs_cv_personality_linux32 = yes; then
8081 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
8085 for ac_header in term.h
8086 do :
8087 ac_fn_c_check_header_preproc "$LINENO" "term.h" "ac_cv_header_term_h"
8088 if test "x$ac_cv_header_term_h" = x""yes; then :
8089 cat >>confdefs.h <<_ACEOF
8090 #define HAVE_TERM_H 1
8091 _ACEOF
8095 done
8097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8098 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8099 if test "${ac_cv_header_time+set}" = set; then :
8100 $as_echo_n "(cached) " >&6
8101 else
8102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8103 /* end confdefs.h. */
8104 #include <sys/types.h>
8105 #include <sys/time.h>
8106 #include <time.h>
8109 main ()
8111 if ((struct tm *) 0)
8112 return 0;
8114 return 0;
8116 _ACEOF
8117 if ac_fn_c_try_compile "$LINENO"; then :
8118 ac_cv_header_time=yes
8119 else
8120 ac_cv_header_time=no
8122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8125 $as_echo "$ac_cv_header_time" >&6; }
8126 if test $ac_cv_header_time = yes; then
8128 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8132 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default"
8133 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then :
8134 ac_have_decl=1
8135 else
8136 ac_have_decl=0
8139 cat >>confdefs.h <<_ACEOF
8140 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
8141 _ACEOF
8143 if test $ac_cv_have_decl_sys_siglist != yes; then
8144 # For Tru64, at least:
8145 ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default"
8146 if test "x$ac_cv_have_decl___sys_siglist" = x""yes; then :
8147 ac_have_decl=1
8148 else
8149 ac_have_decl=0
8152 cat >>confdefs.h <<_ACEOF
8153 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
8154 _ACEOF
8156 if test $ac_cv_have_decl___sys_siglist = yes; then
8158 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
8162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8163 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8164 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8165 $as_echo_n "(cached) " >&6
8166 else
8167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8168 /* end confdefs.h. */
8169 #include <sys/types.h>
8170 #include <sys/wait.h>
8171 #ifndef WEXITSTATUS
8172 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8173 #endif
8174 #ifndef WIFEXITED
8175 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8176 #endif
8179 main ()
8181 int s;
8182 wait (&s);
8183 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8185 return 0;
8187 _ACEOF
8188 if ac_fn_c_try_compile "$LINENO"; then :
8189 ac_cv_header_sys_wait_h=yes
8190 else
8191 ac_cv_header_sys_wait_h=no
8193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8196 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8197 if test $ac_cv_header_sys_wait_h = yes; then
8199 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
8205 $as_echo_n "checking for struct utimbuf... " >&6; }
8206 if test "${emacs_cv_struct_utimbuf+set}" = set; then :
8207 $as_echo_n "(cached) " >&6
8208 else
8209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8210 /* end confdefs.h. */
8211 #ifdef TIME_WITH_SYS_TIME
8212 #include <sys/time.h>
8213 #include <time.h>
8214 #else
8215 #ifdef HAVE_SYS_TIME_H
8216 #include <sys/time.h>
8217 #else
8218 #include <time.h>
8219 #endif
8220 #endif
8221 #ifdef HAVE_UTIME_H
8222 #include <utime.h>
8223 #endif
8225 main ()
8227 static struct utimbuf x; x.actime = x.modtime;
8229 return 0;
8231 _ACEOF
8232 if ac_fn_c_try_compile "$LINENO"; then :
8233 emacs_cv_struct_utimbuf=yes
8234 else
8235 emacs_cv_struct_utimbuf=no
8237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_utimbuf" >&5
8240 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
8241 if test $emacs_cv_struct_utimbuf = yes; then
8243 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
8247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
8248 $as_echo_n "checking for speed_t... " >&6; }
8249 if test "${emacs_cv_speed_t+set}" = set; then :
8250 $as_echo_n "(cached) " >&6
8251 else
8252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8253 /* end confdefs.h. */
8254 #include <termios.h>
8256 main ()
8258 speed_t x = 1;
8260 return 0;
8262 _ACEOF
8263 if ac_fn_c_try_compile "$LINENO"; then :
8264 emacs_cv_speed_t=yes
8265 else
8266 emacs_cv_speed_t=no
8268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
8271 $as_echo "$emacs_cv_speed_t" >&6; }
8272 if test $emacs_cv_speed_t = yes; then
8274 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
8278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
8279 $as_echo_n "checking for struct timeval... " >&6; }
8280 if test "${emacs_cv_struct_timeval+set}" = set; then :
8281 $as_echo_n "(cached) " >&6
8282 else
8283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8284 /* end confdefs.h. */
8285 #ifdef TIME_WITH_SYS_TIME
8286 #include <sys/time.h>
8287 #include <time.h>
8288 #else
8289 #ifdef HAVE_SYS_TIME_H
8290 #include <sys/time.h>
8291 #else
8292 #include <time.h>
8293 #endif
8294 #endif
8296 main ()
8298 static struct timeval x; x.tv_sec = x.tv_usec;
8300 return 0;
8302 _ACEOF
8303 if ac_fn_c_try_compile "$LINENO"; then :
8304 emacs_cv_struct_timeval=yes
8305 else
8306 emacs_cv_struct_timeval=no
8308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_timeval" >&5
8311 $as_echo "$emacs_cv_struct_timeval" >&6; }
8312 HAVE_TIMEVAL=$emacs_cv_struct_timeval
8313 if test $emacs_cv_struct_timeval = yes; then
8315 $as_echo "#define HAVE_TIMEVAL 1" >>confdefs.h
8319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct exception" >&5
8320 $as_echo_n "checking for struct exception... " >&6; }
8321 if test "${emacs_cv_struct_exception+set}" = set; then :
8322 $as_echo_n "(cached) " >&6
8323 else
8324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8325 /* end confdefs.h. */
8326 #include <math.h>
8328 main ()
8330 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
8332 return 0;
8334 _ACEOF
8335 if ac_fn_c_try_compile "$LINENO"; then :
8336 emacs_cv_struct_exception=yes
8337 else
8338 emacs_cv_struct_exception=no
8340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_exception" >&5
8343 $as_echo "$emacs_cv_struct_exception" >&6; }
8344 HAVE_EXCEPTION=$emacs_cv_struct_exception
8345 if test $emacs_cv_struct_exception != yes; then
8347 $as_echo "#define NO_MATHERR 1" >>confdefs.h
8351 for ac_header in sys/socket.h
8352 do :
8353 ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
8354 if test "x$ac_cv_header_sys_socket_h" = x""yes; then :
8355 cat >>confdefs.h <<_ACEOF
8356 #define HAVE_SYS_SOCKET_H 1
8357 _ACEOF
8361 done
8363 for ac_header in net/if.h
8364 do :
8365 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
8366 #if HAVE_SYS_SOCKET_H
8367 #include <sys/socket.h>
8368 #endif
8370 if test "x$ac_cv_header_net_if_h" = x""yes; then :
8371 cat >>confdefs.h <<_ACEOF
8372 #define HAVE_NET_IF_H 1
8373 _ACEOF
8377 done
8379 for ac_header in ifaddrs.h
8380 do :
8381 ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default
8382 #if HAVE_SYS_SOCKET_H
8383 #include <sys/socket.h>
8384 #endif
8386 if test "x$ac_cv_header_ifaddrs_h" = x""yes; then :
8387 cat >>confdefs.h <<_ACEOF
8388 #define HAVE_IFADDRS_H 1
8389 _ACEOF
8393 done
8395 for ac_header in net/if_dl.h
8396 do :
8397 ac_fn_c_check_header_compile "$LINENO" "net/if_dl.h" "ac_cv_header_net_if_dl_h" "$ac_includes_default
8398 #if HAVE_SYS_SOCKET_H
8399 #include <sys/socket.h>
8400 #endif
8402 if test "x$ac_cv_header_net_if_dl_h" = x""yes; then :
8403 cat >>confdefs.h <<_ACEOF
8404 #define HAVE_NET_IF_DL_H 1
8405 _ACEOF
8409 done
8411 for ac_func in getifaddrs freeifaddrs
8412 do :
8413 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8414 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8415 eval as_val=\$$as_ac_var
8416 if test "x$as_val" = x""yes; then :
8417 cat >>confdefs.h <<_ACEOF
8418 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8419 _ACEOF
8422 done
8425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
8426 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
8427 if test "${ac_cv_struct_tm+set}" = set; then :
8428 $as_echo_n "(cached) " >&6
8429 else
8430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8431 /* end confdefs.h. */
8432 #include <sys/types.h>
8433 #include <time.h>
8436 main ()
8438 struct tm tm;
8439 int *p = &tm.tm_sec;
8440 return !p;
8442 return 0;
8444 _ACEOF
8445 if ac_fn_c_try_compile "$LINENO"; then :
8446 ac_cv_struct_tm=time.h
8447 else
8448 ac_cv_struct_tm=sys/time.h
8450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
8453 $as_echo "$ac_cv_struct_tm" >&6; }
8454 if test $ac_cv_struct_tm = sys/time.h; then
8456 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
8460 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
8461 #include <$ac_cv_struct_tm>
8464 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
8466 cat >>confdefs.h <<_ACEOF
8467 #define HAVE_STRUCT_TM_TM_ZONE 1
8468 _ACEOF
8473 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8475 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
8477 else
8478 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
8480 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
8481 ac_have_decl=1
8482 else
8483 ac_have_decl=0
8486 cat >>confdefs.h <<_ACEOF
8487 #define HAVE_DECL_TZNAME $ac_have_decl
8488 _ACEOF
8490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
8491 $as_echo_n "checking for tzname... " >&6; }
8492 if test "${ac_cv_var_tzname+set}" = set; then :
8493 $as_echo_n "(cached) " >&6
8494 else
8495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8496 /* end confdefs.h. */
8497 #include <time.h>
8498 #if !HAVE_DECL_TZNAME
8499 extern char *tzname[];
8500 #endif
8503 main ()
8505 return tzname[0][0];
8507 return 0;
8509 _ACEOF
8510 if ac_fn_c_try_link "$LINENO"; then :
8511 ac_cv_var_tzname=yes
8512 else
8513 ac_cv_var_tzname=no
8515 rm -f core conftest.err conftest.$ac_objext \
8516 conftest$ac_exeext conftest.$ac_ext
8518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
8519 $as_echo "$ac_cv_var_tzname" >&6; }
8520 if test $ac_cv_var_tzname = yes; then
8522 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
8527 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
8529 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then :
8531 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
8535 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
8536 #if HAVE_SYS_SOCKET_H
8537 #include <sys/socket.h>
8538 #endif
8539 #if HAVE_NET_IF_H
8540 #include <net/if.h>
8541 #endif
8543 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x""yes; then :
8545 cat >>confdefs.h <<_ACEOF
8546 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8547 _ACEOF
8551 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
8552 #if HAVE_SYS_SOCKET_H
8553 #include <sys/socket.h>
8554 #endif
8555 #if HAVE_NET_IF_H
8556 #include <net/if.h>
8557 #endif
8559 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x""yes; then :
8561 cat >>confdefs.h <<_ACEOF
8562 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8563 _ACEOF
8567 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
8568 #if HAVE_SYS_SOCKET_H
8569 #include <sys/socket.h>
8570 #endif
8571 #if HAVE_NET_IF_H
8572 #include <net/if.h>
8573 #endif
8575 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x""yes; then :
8577 cat >>confdefs.h <<_ACEOF
8578 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8579 _ACEOF
8583 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
8584 #if HAVE_SYS_SOCKET_H
8585 #include <sys/socket.h>
8586 #endif
8587 #if HAVE_NET_IF_H
8588 #include <net/if.h>
8589 #endif
8591 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x""yes; then :
8593 cat >>confdefs.h <<_ACEOF
8594 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8595 _ACEOF
8599 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
8600 #if HAVE_SYS_SOCKET_H
8601 #include <sys/socket.h>
8602 #endif
8603 #if HAVE_NET_IF_H
8604 #include <net/if.h>
8605 #endif
8607 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x""yes; then :
8609 cat >>confdefs.h <<_ACEOF
8610 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8611 _ACEOF
8615 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr.sa_len" "ac_cv_member_struct_ifreq_ifr_addr_sa_len" "$ac_includes_default
8616 #if HAVE_SYS_SOCKET_H
8617 #include <sys/socket.h>
8618 #endif
8619 #if HAVE_NET_IF_H
8620 #include <net/if.h>
8621 #endif
8623 if test "x$ac_cv_member_struct_ifreq_ifr_addr_sa_len" = x""yes; then :
8625 cat >>confdefs.h <<_ACEOF
8626 #define HAVE_STRUCT_IFREQ_IFR_ADDR_SA_LEN 1
8627 _ACEOF
8634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
8635 $as_echo_n "checking for function prototypes... " >&6; }
8636 if test "$ac_cv_prog_cc_c89" != no; then
8637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8638 $as_echo "yes" >&6; }
8640 $as_echo "#define PROTOTYPES 1" >>confdefs.h
8643 $as_echo "#define __PROTOTYPES 1" >>confdefs.h
8645 else
8646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8647 $as_echo "no" >&6; }
8650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
8651 $as_echo_n "checking for working volatile... " >&6; }
8652 if test "${ac_cv_c_volatile+set}" = set; then :
8653 $as_echo_n "(cached) " >&6
8654 else
8655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8656 /* end confdefs.h. */
8659 main ()
8662 volatile int x;
8663 int * volatile y = (int *) 0;
8664 return !x && !y;
8666 return 0;
8668 _ACEOF
8669 if ac_fn_c_try_compile "$LINENO"; then :
8670 ac_cv_c_volatile=yes
8671 else
8672 ac_cv_c_volatile=no
8674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
8677 $as_echo "$ac_cv_c_volatile" >&6; }
8678 if test $ac_cv_c_volatile = no; then
8680 $as_echo "#define volatile /**/" >>confdefs.h
8684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
8685 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
8686 if test "${ac_cv_c_const+set}" = set; then :
8687 $as_echo_n "(cached) " >&6
8688 else
8689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8690 /* end confdefs.h. */
8693 main ()
8695 /* FIXME: Include the comments suggested by Paul. */
8696 #ifndef __cplusplus
8697 /* Ultrix mips cc rejects this. */
8698 typedef int charset[2];
8699 const charset cs;
8700 /* SunOS 4.1.1 cc rejects this. */
8701 char const *const *pcpcc;
8702 char **ppc;
8703 /* NEC SVR4.0.2 mips cc rejects this. */
8704 struct point {int x, y;};
8705 static struct point const zero = {0,0};
8706 /* AIX XL C 1.02.0.0 rejects this.
8707 It does not let you subtract one const X* pointer from another in
8708 an arm of an if-expression whose if-part is not a constant
8709 expression */
8710 const char *g = "string";
8711 pcpcc = &g + (g ? g-g : 0);
8712 /* HPUX 7.0 cc rejects these. */
8713 ++pcpcc;
8714 ppc = (char**) pcpcc;
8715 pcpcc = (char const *const *) ppc;
8716 { /* SCO 3.2v4 cc rejects this. */
8717 char *t;
8718 char const *s = 0 ? (char *) 0 : (char const *) 0;
8720 *t++ = 0;
8721 if (s) return 0;
8723 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8724 int x[] = {25, 17};
8725 const int *foo = &x[0];
8726 ++foo;
8728 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8729 typedef const int *iptr;
8730 iptr p = 0;
8731 ++p;
8733 { /* AIX XL C 1.02.0.0 rejects this saying
8734 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8735 struct s { int j; const int *ap[3]; };
8736 struct s *b; b->j = 5;
8738 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8739 const int foo = 10;
8740 if (!foo) return 0;
8742 return !cs[0] && !zero.x;
8743 #endif
8746 return 0;
8748 _ACEOF
8749 if ac_fn_c_try_compile "$LINENO"; then :
8750 ac_cv_c_const=yes
8751 else
8752 ac_cv_c_const=no
8754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
8757 $as_echo "$ac_cv_c_const" >&6; }
8758 if test $ac_cv_c_const = no; then
8760 $as_echo "#define const /**/" >>confdefs.h
8764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for void * support" >&5
8765 $as_echo_n "checking for void * support... " >&6; }
8766 if test "${emacs_cv_void_star+set}" = set; then :
8767 $as_echo_n "(cached) " >&6
8768 else
8769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8770 /* end confdefs.h. */
8773 main ()
8775 void * foo;
8777 return 0;
8779 _ACEOF
8780 if ac_fn_c_try_compile "$LINENO"; then :
8781 emacs_cv_void_star=yes
8782 else
8783 emacs_cv_void_star=no
8785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_void_star" >&5
8788 $as_echo "$emacs_cv_void_star" >&6; }
8789 if test $emacs_cv_void_star = yes; then
8790 $as_echo "#define POINTER_TYPE void" >>confdefs.h
8792 else
8793 $as_echo "#define POINTER_TYPE char" >>confdefs.h
8797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8798 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8799 if test "${ac_cv_c_bigendian+set}" = set; then :
8800 $as_echo_n "(cached) " >&6
8801 else
8802 ac_cv_c_bigendian=unknown
8803 # See if we're dealing with a universal compiler.
8804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8805 /* end confdefs.h. */
8806 #ifndef __APPLE_CC__
8807 not a universal capable compiler
8808 #endif
8809 typedef int dummy;
8811 _ACEOF
8812 if ac_fn_c_try_compile "$LINENO"; then :
8814 # Check for potential -arch flags. It is not universal unless
8815 # there are at least two -arch flags with different values.
8816 ac_arch=
8817 ac_prev=
8818 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8819 if test -n "$ac_prev"; then
8820 case $ac_word in
8821 i?86 | x86_64 | ppc | ppc64)
8822 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8823 ac_arch=$ac_word
8824 else
8825 ac_cv_c_bigendian=universal
8826 break
8829 esac
8830 ac_prev=
8831 elif test "x$ac_word" = "x-arch"; then
8832 ac_prev=arch
8834 done
8836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8837 if test $ac_cv_c_bigendian = unknown; then
8838 # See if sys/param.h defines the BYTE_ORDER macro.
8839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8840 /* end confdefs.h. */
8841 #include <sys/types.h>
8842 #include <sys/param.h>
8845 main ()
8847 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8848 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8849 && LITTLE_ENDIAN)
8850 bogus endian macros
8851 #endif
8854 return 0;
8856 _ACEOF
8857 if ac_fn_c_try_compile "$LINENO"; then :
8858 # It does; now see whether it defined to BIG_ENDIAN or not.
8859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8860 /* end confdefs.h. */
8861 #include <sys/types.h>
8862 #include <sys/param.h>
8865 main ()
8867 #if BYTE_ORDER != BIG_ENDIAN
8868 not big endian
8869 #endif
8872 return 0;
8874 _ACEOF
8875 if ac_fn_c_try_compile "$LINENO"; then :
8876 ac_cv_c_bigendian=yes
8877 else
8878 ac_cv_c_bigendian=no
8880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8884 if test $ac_cv_c_bigendian = unknown; then
8885 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8887 /* end confdefs.h. */
8888 #include <limits.h>
8891 main ()
8893 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8894 bogus endian macros
8895 #endif
8898 return 0;
8900 _ACEOF
8901 if ac_fn_c_try_compile "$LINENO"; then :
8902 # It does; now see whether it defined to _BIG_ENDIAN or not.
8903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8904 /* end confdefs.h. */
8905 #include <limits.h>
8908 main ()
8910 #ifndef _BIG_ENDIAN
8911 not big endian
8912 #endif
8915 return 0;
8917 _ACEOF
8918 if ac_fn_c_try_compile "$LINENO"; then :
8919 ac_cv_c_bigendian=yes
8920 else
8921 ac_cv_c_bigendian=no
8923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8927 if test $ac_cv_c_bigendian = unknown; then
8928 # Compile a test program.
8929 if test "$cross_compiling" = yes; then :
8930 # Try to guess by grepping values from an object file.
8931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8932 /* end confdefs.h. */
8933 short int ascii_mm[] =
8934 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8935 short int ascii_ii[] =
8936 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8937 int use_ascii (int i) {
8938 return ascii_mm[i] + ascii_ii[i];
8940 short int ebcdic_ii[] =
8941 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8942 short int ebcdic_mm[] =
8943 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8944 int use_ebcdic (int i) {
8945 return ebcdic_mm[i] + ebcdic_ii[i];
8947 extern int foo;
8950 main ()
8952 return use_ascii (foo) == use_ebcdic (foo);
8954 return 0;
8956 _ACEOF
8957 if ac_fn_c_try_compile "$LINENO"; then :
8958 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8959 ac_cv_c_bigendian=yes
8961 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8962 if test "$ac_cv_c_bigendian" = unknown; then
8963 ac_cv_c_bigendian=no
8964 else
8965 # finding both strings is unlikely to happen, but who knows?
8966 ac_cv_c_bigendian=unknown
8970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8971 else
8972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8973 /* end confdefs.h. */
8974 $ac_includes_default
8976 main ()
8979 /* Are we little or big endian? From Harbison&Steele. */
8980 union
8982 long int l;
8983 char c[sizeof (long int)];
8984 } u;
8985 u.l = 1;
8986 return u.c[sizeof (long int) - 1] == 1;
8989 return 0;
8991 _ACEOF
8992 if ac_fn_c_try_run "$LINENO"; then :
8993 ac_cv_c_bigendian=no
8994 else
8995 ac_cv_c_bigendian=yes
8997 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8998 conftest.$ac_objext conftest.beam conftest.$ac_ext
9003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9004 $as_echo "$ac_cv_c_bigendian" >&6; }
9005 case $ac_cv_c_bigendian in #(
9006 yes)
9007 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9008 ;; #(
9010 ;; #(
9011 universal)
9013 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9015 ;; #(
9017 as_fn_error "unknown endianness
9018 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9019 esac
9022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__ ((__aligned__ (expr)))" >&5
9023 $as_echo_n "checking for __attribute__ ((__aligned__ (expr)))... " >&6; }
9024 if test "${emacs_cv_attribute_aligned+set}" = set; then :
9025 $as_echo_n "(cached) " >&6
9026 else
9027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9028 /* end confdefs.h. */
9029 char __attribute__ ((__aligned__ (1 << 3))) c;
9031 main ()
9035 return 0;
9037 _ACEOF
9038 if ac_fn_c_try_compile "$LINENO"; then :
9039 emacs_cv_attribute_aligned=yes
9040 else
9041 emacs_cv_attribute_aligned=no
9043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_attribute_aligned" >&5
9046 $as_echo "$emacs_cv_attribute_aligned" >&6; }
9047 if test $emacs_cv_attribute_aligned = yes; then
9049 $as_echo "#define HAVE_ATTRIBUTE_ALIGNED 1" >>confdefs.h
9053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9054 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9055 set x ${MAKE-make}
9056 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9057 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
9058 $as_echo_n "(cached) " >&6
9059 else
9060 cat >conftest.make <<\_ACEOF
9061 SHELL = /bin/sh
9062 all:
9063 @echo '@@@%%%=$(MAKE)=@@@%%%'
9064 _ACEOF
9065 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9066 case `${MAKE-make} -f conftest.make 2>/dev/null` in
9067 *@@@%%%=?*=@@@%%%*)
9068 eval ac_cv_prog_make_${ac_make}_set=yes;;
9070 eval ac_cv_prog_make_${ac_make}_set=no;;
9071 esac
9072 rm -f conftest.make
9074 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9076 $as_echo "yes" >&6; }
9077 SET_MAKE=
9078 else
9079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9080 $as_echo "no" >&6; }
9081 SET_MAKE="MAKE=${MAKE-make}"
9085 DEPFLAGS=
9086 MKDEPDIR=":"
9087 deps_frag=deps.mk
9088 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
9089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
9090 $as_echo_n "checking whether we are using GNU Make... " >&6; }
9091 HAVE_GNU_MAKE=no
9092 testval=`make --version 2>/dev/null | grep 'GNU Make'`
9093 if test "x$testval" != x; then
9094 HAVE_GNU_MAKE=yes
9095 else
9096 ac_enable_autodepend=no
9098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
9099 $as_echo "$HAVE_GNU_MAKE" >&6; }
9100 if test $HAVE_GNU_MAKE = yes; then
9101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
9102 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
9103 SAVE_CFLAGS="$CFLAGS"
9104 CFLAGS="$CFLAGS -MMD -MF deps.d -MP"
9105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9106 /* end confdefs.h. */
9109 main ()
9113 return 0;
9115 _ACEOF
9116 if ac_fn_c_try_compile "$LINENO"; then :
9118 else
9119 ac_enable_autodepend=no
9121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9122 CFLAGS="$SAVE_CFLAGS"
9123 test -f deps.d || ac_enable_autodepend=no
9124 rm -rf deps.d
9125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
9126 $as_echo "$ac_enable_autodepend" >&6; }
9128 if test $ac_enable_autodepend = yes; then
9129 DEPFLAGS='-MMD -MF ${DEPDIR}/$*.d -MP'
9130 ## In parallel builds, another make might create depdir between
9131 ## the first test and mkdir, so stick another test on the end.
9132 ## Or use install-sh -d? mkdir -p is not portable.
9133 MKDEPDIR='test -d ${DEPDIR} || mkdir ${DEPDIR} || test -d ${DEPDIR}'
9134 deps_frag=autodeps.mk
9137 deps_frag=$srcdir/src/$deps_frag
9143 lisp_frag=$srcdir/src/lisp.mk
9147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
9148 $as_echo_n "checking for long file names... " >&6; }
9149 if test "${ac_cv_sys_long_file_names+set}" = set; then :
9150 $as_echo_n "(cached) " >&6
9151 else
9152 ac_cv_sys_long_file_names=yes
9153 # Test for long file names in all the places we know might matter:
9154 # . the current directory, where building will happen
9155 # $prefix/lib where we will be installing things
9156 # $exec_prefix/lib likewise
9157 # $TMPDIR if set, where it might want to write temporary files
9158 # /tmp where it might want to write temporary files
9159 # /var/tmp likewise
9160 # /usr/tmp likewise
9161 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9162 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9163 # in the usual case where exec_prefix is '${prefix}'.
9164 case $ac_dir in #(
9165 . | /* | ?:[\\/]*) ;; #(
9166 *) continue;;
9167 esac
9168 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9169 ac_xdir=$ac_dir/cf$$
9170 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9171 ac_tf1=$ac_xdir/conftest9012345
9172 ac_tf2=$ac_xdir/conftest9012346
9173 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9174 ac_cv_sys_long_file_names=no
9175 rm -f -r "$ac_xdir" 2>/dev/null
9176 test $ac_cv_sys_long_file_names = no && break
9177 done
9179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
9180 $as_echo "$ac_cv_sys_long_file_names" >&6; }
9181 if test $ac_cv_sys_long_file_names = yes; then
9183 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
9188 #### Choose a window system.
9190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
9191 $as_echo_n "checking for X... " >&6; }
9194 # Check whether --with-x was given.
9195 if test "${with_x+set}" = set; then :
9196 withval=$with_x;
9199 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9200 if test "x$with_x" = xno; then
9201 # The user explicitly disabled X.
9202 have_x=disabled
9203 else
9204 case $x_includes,$x_libraries in #(
9205 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
9206 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
9207 $as_echo_n "(cached) " >&6
9208 else
9209 # One or both of the vars are not set, and there is no cached value.
9210 ac_x_includes=no ac_x_libraries=no
9211 rm -f -r conftest.dir
9212 if mkdir conftest.dir; then
9213 cd conftest.dir
9214 cat >Imakefile <<'_ACEOF'
9215 incroot:
9216 @echo incroot='${INCROOT}'
9217 usrlibdir:
9218 @echo usrlibdir='${USRLIBDIR}'
9219 libdir:
9220 @echo libdir='${LIBDIR}'
9221 _ACEOF
9222 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9223 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9224 for ac_var in incroot usrlibdir libdir; do
9225 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9226 done
9227 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9228 for ac_extension in a so sl dylib la dll; do
9229 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9230 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9231 ac_im_usrlibdir=$ac_im_libdir; break
9233 done
9234 # Screen out bogus values from the imake configuration. They are
9235 # bogus both because they are the default anyway, and because
9236 # using them would break gcc on systems where it needs fixed includes.
9237 case $ac_im_incroot in
9238 /usr/include) ac_x_includes= ;;
9239 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9240 esac
9241 case $ac_im_usrlibdir in
9242 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
9243 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9244 esac
9246 cd ..
9247 rm -f -r conftest.dir
9250 # Standard set of common directories for X headers.
9251 # Check X11 before X11Rn because it is often a symlink to the current release.
9252 ac_x_header_dirs='
9253 /usr/X11/include
9254 /usr/X11R7/include
9255 /usr/X11R6/include
9256 /usr/X11R5/include
9257 /usr/X11R4/include
9259 /usr/include/X11
9260 /usr/include/X11R7
9261 /usr/include/X11R6
9262 /usr/include/X11R5
9263 /usr/include/X11R4
9265 /usr/local/X11/include
9266 /usr/local/X11R7/include
9267 /usr/local/X11R6/include
9268 /usr/local/X11R5/include
9269 /usr/local/X11R4/include
9271 /usr/local/include/X11
9272 /usr/local/include/X11R7
9273 /usr/local/include/X11R6
9274 /usr/local/include/X11R5
9275 /usr/local/include/X11R4
9277 /usr/X386/include
9278 /usr/x386/include
9279 /usr/XFree86/include/X11
9281 /usr/include
9282 /usr/local/include
9283 /usr/unsupported/include
9284 /usr/athena/include
9285 /usr/local/x11r5/include
9286 /usr/lpp/Xamples/include
9288 /usr/openwin/include
9289 /usr/openwin/share/include'
9291 if test "$ac_x_includes" = no; then
9292 # Guess where to find include files, by looking for Xlib.h.
9293 # First, try using that file with no special directory specified.
9294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9295 /* end confdefs.h. */
9296 #include <X11/Xlib.h>
9297 _ACEOF
9298 if ac_fn_c_try_cpp "$LINENO"; then :
9299 # We can compile using X headers with no special include directory.
9300 ac_x_includes=
9301 else
9302 for ac_dir in $ac_x_header_dirs; do
9303 if test -r "$ac_dir/X11/Xlib.h"; then
9304 ac_x_includes=$ac_dir
9305 break
9307 done
9309 rm -f conftest.err conftest.$ac_ext
9310 fi # $ac_x_includes = no
9312 if test "$ac_x_libraries" = no; then
9313 # Check for the libraries.
9314 # See if we find them without any special options.
9315 # Don't add to $LIBS permanently.
9316 ac_save_LIBS=$LIBS
9317 LIBS="-lX11 $LIBS"
9318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9319 /* end confdefs.h. */
9320 #include <X11/Xlib.h>
9322 main ()
9324 XrmInitialize ()
9326 return 0;
9328 _ACEOF
9329 if ac_fn_c_try_link "$LINENO"; then :
9330 LIBS=$ac_save_LIBS
9331 # We can link X programs with no special library path.
9332 ac_x_libraries=
9333 else
9334 LIBS=$ac_save_LIBS
9335 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9337 # Don't even attempt the hair of trying to link an X program!
9338 for ac_extension in a so sl dylib la dll; do
9339 if test -r "$ac_dir/libX11.$ac_extension"; then
9340 ac_x_libraries=$ac_dir
9341 break 2
9343 done
9344 done
9346 rm -f core conftest.err conftest.$ac_objext \
9347 conftest$ac_exeext conftest.$ac_ext
9348 fi # $ac_x_libraries = no
9350 case $ac_x_includes,$ac_x_libraries in #(
9351 no,* | *,no | *\'*)
9352 # Didn't find X, or a directory has "'" in its name.
9353 ac_cv_have_x="have_x=no";; #(
9355 # Record where we found X for the cache.
9356 ac_cv_have_x="have_x=yes\
9357 ac_x_includes='$ac_x_includes'\
9358 ac_x_libraries='$ac_x_libraries'"
9359 esac
9361 ;; #(
9362 *) have_x=yes;;
9363 esac
9364 eval "$ac_cv_have_x"
9365 fi # $with_x != no
9367 if test "$have_x" != yes; then
9368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
9369 $as_echo "$have_x" >&6; }
9370 no_x=yes
9371 else
9372 # If each of the values was on the command line, it overrides each guess.
9373 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9374 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9375 # Update the cache value to reflect the command line values.
9376 ac_cv_have_x="have_x=yes\
9377 ac_x_includes='$x_includes'\
9378 ac_x_libraries='$x_libraries'"
9379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
9380 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
9383 if test "$no_x" = yes; then
9384 window_system=none
9385 else
9386 window_system=x11
9389 ## Workaround for bug in autoconf <= 2.62.
9390 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
9391 ## No need to do anything special for these standard directories.
9392 if test -n "${x_libraries}" && test x"${x_libraries}" != xNONE; then
9394 x_libraries=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
9398 LD_SWITCH_X_SITE_AUX=
9399 LD_SWITCH_X_SITE_AUX_RPATH=
9400 if test "${x_libraries}" != NONE; then
9401 if test -n "${x_libraries}"; then
9402 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9403 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9404 LD_SWITCH_X_SITE_AUX_RPATH=`echo ${LD_SWITCH_X_SITE_AUX} | sed -e 's/-R/-Wl,-rpath,/'`
9406 x_default_search_path=""
9407 x_search_path=${x_libraries}
9408 if test -z "${x_search_path}"; then
9409 x_search_path=/usr/lib
9411 for x_library in `echo ${x_search_path}: | \
9412 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9413 x_search_path="\
9414 ${x_library}/X11/%L/%T/%N%C%S:\
9415 ${x_library}/X11/%l/%T/%N%C%S:\
9416 ${x_library}/X11/%T/%N%C%S:\
9417 ${x_library}/X11/%L/%T/%N%S:\
9418 ${x_library}/X11/%l/%T/%N%S:\
9419 ${x_library}/X11/%T/%N%S"
9420 if test x"${x_default_search_path}" = x; then
9421 x_default_search_path=${x_search_path}
9422 else
9423 x_default_search_path="${x_search_path}:${x_default_search_path}"
9425 done
9430 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9431 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9434 if test x"${x_includes}" = x; then
9435 bitmapdir=/usr/include/X11/bitmaps
9436 else
9437 # accumulate include directories that have X11 bitmap subdirectories
9438 bmd_acc="dummyval"
9439 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9440 if test -d "${bmd}/X11/bitmaps"; then
9441 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9443 if test -d "${bmd}/bitmaps"; then
9444 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9446 done
9447 if test ${bmd_acc} != "dummyval"; then
9448 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9452 HAVE_NS=no
9453 NS_IMPL_COCOA=no
9454 NS_IMPL_GNUSTEP=no
9455 tmp_CPPFLAGS="$CPPFLAGS"
9456 tmp_CFLAGS="$CFLAGS"
9457 CPPFLAGS="$CPPFLAGS -x objective-c"
9458 CFLAGS="$CFLAGS -x objective-c"
9459 TEMACS_LDFLAGS2="\${LDFLAGS}"
9460 if test "${with_ns}" != no; then
9461 if test "${opsys}" = darwin; then
9462 NS_IMPL_COCOA=yes
9463 ns_appdir=`pwd`/nextstep/Emacs.app
9464 ns_appbindir=${ns_appdir}/Contents/MacOS/
9465 ns_appresdir=${ns_appdir}/Contents/Resources
9466 ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base
9467 elif test -f $GNUSTEP_CONFIG_FILE; then
9468 NS_IMPL_GNUSTEP=yes
9469 ns_appdir=`pwd`/nextstep/Emacs.app
9470 ns_appbindir=${ns_appdir}/
9471 ns_appresdir=${ns_appdir}/Resources
9472 ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base
9473 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9474 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9475 GNUSTEP_LOCAL_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
9476 GNUSTEP_LOCAL_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
9477 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
9478 GNUSTEP_LOCAL_HEADERS="-I${GNUSTEP_LOCAL_HEADERS}"
9479 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
9480 GNUSTEP_LOCAL_LIBRARIES="-L${GNUSTEP_LOCAL_LIBRARIES}"
9481 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9482 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9483 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
9484 LIB_STANDARD=
9485 START_FILES=
9486 TEMACS_LDFLAGS2=
9488 ac_fn_c_check_header_mongrel "$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
9489 if test "x$ac_cv_header_AppKit_AppKit_h" = x""yes; then :
9490 HAVE_NS=yes
9491 else
9492 as_fn_error "\`--with-ns' was specified, but the include
9493 files are missing or cannot be compiled." "$LINENO" 5
9497 NS_HAVE_NSINTEGER=yes
9498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9499 /* end confdefs.h. */
9500 #include <Foundation/NSObjCRuntime.h>
9502 main ()
9504 NSInteger i;
9506 return 0;
9508 _ACEOF
9509 if ac_fn_c_try_compile "$LINENO"; then :
9510 ns_have_nsinteger=yes
9511 else
9512 ns_have_nsinteger=no
9514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9515 if test $ns_have_nsinteger = no; then
9516 NS_HAVE_NSINTEGER=no
9521 ns_frag=/dev/null
9522 NS_OBJ=
9523 NS_OBJC_OBJ=
9524 if test "${HAVE_NS}" = yes; then
9525 window_system=nextstep
9526 with_xft=no
9527 # set up packaging dirs
9528 exec_prefix=${ns_appbindir}
9529 libexecdir=${ns_appbindir}/libexec
9530 if test "${EN_NS_SELF_CONTAINED}" = yes; then
9531 prefix=${ns_appresdir}
9533 ns_frag=$srcdir/src/ns.mk
9534 NS_OBJ="fontset.o fringe.o image.o"
9535 NS_OBJC_OBJ="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o"
9537 CFLAGS="$tmp_CFLAGS"
9538 CPPFLAGS="$tmp_CPPFLAGS"
9544 case "${window_system}" in
9545 x11 )
9546 HAVE_X_WINDOWS=yes
9547 HAVE_X11=yes
9548 case "${with_x_toolkit}" in
9549 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9550 motif ) USE_X_TOOLKIT=MOTIF ;;
9551 gtk ) with_gtk=yes
9552 USE_X_TOOLKIT=none ;;
9553 gtk3 ) with_gtk3=yes
9554 USE_X_TOOLKIT=none ;;
9555 no ) USE_X_TOOLKIT=none ;;
9556 * ) USE_X_TOOLKIT=maybe ;;
9557 esac
9559 nextstep | none )
9560 HAVE_X_WINDOWS=no
9561 HAVE_X11=no
9562 USE_X_TOOLKIT=none
9564 esac
9566 if test "$window_system" = none && test "X$with_x" != "Xno"; then
9567 # Extract the first word of "X", so it can be a program name with args.
9568 set dummy X; ac_word=$2
9569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9570 $as_echo_n "checking for $ac_word... " >&6; }
9571 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then :
9572 $as_echo_n "(cached) " >&6
9573 else
9574 if test -n "$HAVE_XSERVER"; then
9575 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9576 else
9577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9578 for as_dir in $PATH
9580 IFS=$as_save_IFS
9581 test -z "$as_dir" && as_dir=.
9582 for ac_exec_ext in '' $ac_executable_extensions; do
9583 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9584 ac_cv_prog_HAVE_XSERVER="true"
9585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9586 break 2
9588 done
9589 done
9590 IFS=$as_save_IFS
9592 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9595 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9596 if test -n "$HAVE_XSERVER"; then
9597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
9598 $as_echo "$HAVE_XSERVER" >&6; }
9599 else
9600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9601 $as_echo "no" >&6; }
9605 if test "$HAVE_XSERVER" = true ||
9606 test -n "$DISPLAY" ||
9607 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
9608 as_fn_error "You seem to be running X, but no X development libraries
9609 were found. You should install the relevant development files for X
9610 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9611 sure you have development files for image handling, i.e.
9612 tiff, gif, jpeg, png and xpm.
9613 If you are sure you want Emacs compiled without X window support, pass
9614 --without-x
9615 to configure." "$LINENO" 5
9619 ### If we're using X11, we should use the X menu package.
9620 HAVE_MENUS=no
9621 case ${HAVE_X11} in
9622 yes ) HAVE_MENUS=yes ;;
9623 esac
9625 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9626 # Assume not, until told otherwise.
9627 GNU_MALLOC=yes
9628 doug_lea_malloc=yes
9629 ac_fn_c_check_func "$LINENO" "malloc_get_state" "ac_cv_func_malloc_get_state"
9630 if test "x$ac_cv_func_malloc_get_state" = x""yes; then :
9632 else
9633 doug_lea_malloc=no
9636 ac_fn_c_check_func "$LINENO" "malloc_set_state" "ac_cv_func_malloc_set_state"
9637 if test "x$ac_cv_func_malloc_set_state" = x""yes; then :
9639 else
9640 doug_lea_malloc=no
9643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __after_morecore_hook exists" >&5
9644 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
9645 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then :
9646 $as_echo_n "(cached) " >&6
9647 else
9648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9649 /* end confdefs.h. */
9650 extern void (* __after_morecore_hook)();
9652 main ()
9654 __after_morecore_hook = 0
9656 return 0;
9658 _ACEOF
9659 if ac_fn_c_try_link "$LINENO"; then :
9660 emacs_cv_var___after_morecore_hook=yes
9661 else
9662 emacs_cv_var___after_morecore_hook=no
9664 rm -f core conftest.err conftest.$ac_objext \
9665 conftest$ac_exeext conftest.$ac_ext
9667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var___after_morecore_hook" >&5
9668 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
9669 if test $emacs_cv_var___after_morecore_hook = no; then
9670 doug_lea_malloc=no
9674 system_malloc=no
9675 case "$opsys" in
9676 ## darwin ld insists on the use of malloc routines in the System framework.
9677 darwin|sol2-10) system_malloc=yes ;;
9678 esac
9680 if test "${system_malloc}" = "yes"; then
9682 $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
9684 GNU_MALLOC=no
9685 GNU_MALLOC_reason="
9686 (The GNU allocators don't work with this system configuration.)"
9687 GMALLOC_OBJ=
9688 VMLIMIT_OBJ=
9689 else
9690 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ=gmalloc.o
9691 VMLIMIT_OBJ=vm-limit.o
9696 if test "$doug_lea_malloc" = "yes" ; then
9697 if test "$GNU_MALLOC" = yes ; then
9698 GNU_MALLOC_reason="
9699 (Using Doug Lea's new malloc from the GNU C Library.)"
9702 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
9705 ## Use mmap directly for allocating larger buffers.
9706 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
9707 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
9708 ## Does the AC_FUNC_MMAP test below make this check unecessary?
9709 case "$opsys" in
9710 gnu*) REL_ALLOC=no ;;
9711 esac
9714 if test x"${REL_ALLOC}" = x; then
9715 REL_ALLOC=${GNU_MALLOC}
9718 use_mmap_for_buffers=no
9719 case "$opsys" in
9720 cygwin|freebsd|irix6-5) use_mmap_for_buffers=yes ;;
9721 esac
9726 for ac_header in $ac_header_list
9727 do :
9728 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9729 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9731 eval as_val=\$$as_ac_Header
9732 if test "x$as_val" = x""yes; then :
9733 cat >>confdefs.h <<_ACEOF
9734 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9735 _ACEOF
9739 done
9748 for ac_func in getpagesize
9749 do :
9750 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
9751 if test "x$ac_cv_func_getpagesize" = x""yes; then :
9752 cat >>confdefs.h <<_ACEOF
9753 #define HAVE_GETPAGESIZE 1
9754 _ACEOF
9757 done
9759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
9760 $as_echo_n "checking for working mmap... " >&6; }
9761 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
9762 $as_echo_n "(cached) " >&6
9763 else
9764 if test "$cross_compiling" = yes; then :
9765 ac_cv_func_mmap_fixed_mapped=no
9766 else
9767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9768 /* end confdefs.h. */
9769 $ac_includes_default
9770 /* malloc might have been renamed as rpl_malloc. */
9771 #undef malloc
9773 /* Thanks to Mike Haertel and Jim Avera for this test.
9774 Here is a matrix of mmap possibilities:
9775 mmap private not fixed
9776 mmap private fixed at somewhere currently unmapped
9777 mmap private fixed at somewhere already mapped
9778 mmap shared not fixed
9779 mmap shared fixed at somewhere currently unmapped
9780 mmap shared fixed at somewhere already mapped
9781 For private mappings, we should verify that changes cannot be read()
9782 back from the file, nor mmap's back from the file at a different
9783 address. (There have been systems where private was not correctly
9784 implemented like the infamous i386 svr4.0, and systems where the
9785 VM page cache was not coherent with the file system buffer cache
9786 like early versions of FreeBSD and possibly contemporary NetBSD.)
9787 For shared mappings, we should conversely verify that changes get
9788 propagated back to all the places they're supposed to be.
9790 Grep wants private fixed already mapped.
9791 The main things grep needs to know about mmap are:
9792 * does it exist and is it safe to write into the mmap'd area
9793 * how to use it (BSD variants) */
9795 #include <fcntl.h>
9796 #include <sys/mman.h>
9798 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
9799 char *malloc ();
9800 #endif
9802 /* This mess was copied from the GNU getpagesize.h. */
9803 #ifndef HAVE_GETPAGESIZE
9804 # ifdef _SC_PAGESIZE
9805 # define getpagesize() sysconf(_SC_PAGESIZE)
9806 # else /* no _SC_PAGESIZE */
9807 # ifdef HAVE_SYS_PARAM_H
9808 # include <sys/param.h>
9809 # ifdef EXEC_PAGESIZE
9810 # define getpagesize() EXEC_PAGESIZE
9811 # else /* no EXEC_PAGESIZE */
9812 # ifdef NBPG
9813 # define getpagesize() NBPG * CLSIZE
9814 # ifndef CLSIZE
9815 # define CLSIZE 1
9816 # endif /* no CLSIZE */
9817 # else /* no NBPG */
9818 # ifdef NBPC
9819 # define getpagesize() NBPC
9820 # else /* no NBPC */
9821 # ifdef PAGESIZE
9822 # define getpagesize() PAGESIZE
9823 # endif /* PAGESIZE */
9824 # endif /* no NBPC */
9825 # endif /* no NBPG */
9826 # endif /* no EXEC_PAGESIZE */
9827 # else /* no HAVE_SYS_PARAM_H */
9828 # define getpagesize() 8192 /* punt totally */
9829 # endif /* no HAVE_SYS_PARAM_H */
9830 # endif /* no _SC_PAGESIZE */
9832 #endif /* no HAVE_GETPAGESIZE */
9835 main ()
9837 char *data, *data2, *data3;
9838 const char *cdata2;
9839 int i, pagesize;
9840 int fd, fd2;
9842 pagesize = getpagesize ();
9844 /* First, make a file with some known garbage in it. */
9845 data = (char *) malloc (pagesize);
9846 if (!data)
9847 return 1;
9848 for (i = 0; i < pagesize; ++i)
9849 *(data + i) = rand ();
9850 umask (0);
9851 fd = creat ("conftest.mmap", 0600);
9852 if (fd < 0)
9853 return 2;
9854 if (write (fd, data, pagesize) != pagesize)
9855 return 3;
9856 close (fd);
9858 /* Next, check that the tail of a page is zero-filled. File must have
9859 non-zero length, otherwise we risk SIGBUS for entire page. */
9860 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
9861 if (fd2 < 0)
9862 return 4;
9863 cdata2 = "";
9864 if (write (fd2, cdata2, 1) != 1)
9865 return 5;
9866 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
9867 if (data2 == MAP_FAILED)
9868 return 6;
9869 for (i = 0; i < pagesize; ++i)
9870 if (*(data2 + i))
9871 return 7;
9872 close (fd2);
9873 if (munmap (data2, pagesize))
9874 return 8;
9876 /* Next, try to mmap the file at a fixed address which already has
9877 something else allocated at it. If we can, also make sure that
9878 we see the same garbage. */
9879 fd = open ("conftest.mmap", O_RDWR);
9880 if (fd < 0)
9881 return 9;
9882 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9883 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9884 return 10;
9885 for (i = 0; i < pagesize; ++i)
9886 if (*(data + i) != *(data2 + i))
9887 return 11;
9889 /* Finally, make sure that changes to the mapped area do not
9890 percolate back to the file as seen by read(). (This is a bug on
9891 some variants of i386 svr4.0.) */
9892 for (i = 0; i < pagesize; ++i)
9893 *(data2 + i) = *(data2 + i) + 1;
9894 data3 = (char *) malloc (pagesize);
9895 if (!data3)
9896 return 12;
9897 if (read (fd, data3, pagesize) != pagesize)
9898 return 13;
9899 for (i = 0; i < pagesize; ++i)
9900 if (*(data + i) != *(data3 + i))
9901 return 14;
9902 close (fd);
9903 return 0;
9905 _ACEOF
9906 if ac_fn_c_try_run "$LINENO"; then :
9907 ac_cv_func_mmap_fixed_mapped=yes
9908 else
9909 ac_cv_func_mmap_fixed_mapped=no
9911 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9912 conftest.$ac_objext conftest.beam conftest.$ac_ext
9916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
9917 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
9918 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9920 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
9923 rm -f conftest.mmap conftest.txt
9925 if test $use_mmap_for_buffers = yes; then
9927 $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
9929 REL_ALLOC=no
9932 LIBS="$LIBS_SYSTEM $LIBS"
9934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
9935 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
9936 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
9937 $as_echo_n "(cached) " >&6
9938 else
9939 ac_check_lib_save_LIBS=$LIBS
9940 LIBS="-ldnet $LIBS"
9941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9942 /* end confdefs.h. */
9944 /* Override any GCC internal prototype to avoid an error.
9945 Use char because int might match the return type of a GCC
9946 builtin and then its argument prototype would still apply. */
9947 #ifdef __cplusplus
9948 extern "C"
9949 #endif
9950 char dnet_ntoa ();
9952 main ()
9954 return dnet_ntoa ();
9956 return 0;
9958 _ACEOF
9959 if ac_fn_c_try_link "$LINENO"; then :
9960 ac_cv_lib_dnet_dnet_ntoa=yes
9961 else
9962 ac_cv_lib_dnet_dnet_ntoa=no
9964 rm -f core conftest.err conftest.$ac_objext \
9965 conftest$ac_exeext conftest.$ac_ext
9966 LIBS=$ac_check_lib_save_LIBS
9968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9969 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
9970 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
9971 cat >>confdefs.h <<_ACEOF
9972 #define HAVE_LIBDNET 1
9973 _ACEOF
9975 LIBS="-ldnet $LIBS"
9980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
9981 $as_echo_n "checking for main in -lXbsd... " >&6; }
9982 if test "${ac_cv_lib_Xbsd_main+set}" = set; then :
9983 $as_echo_n "(cached) " >&6
9984 else
9985 ac_check_lib_save_LIBS=$LIBS
9986 LIBS="-lXbsd $LIBS"
9987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9988 /* end confdefs.h. */
9992 main ()
9994 return main ();
9996 return 0;
9998 _ACEOF
9999 if ac_fn_c_try_link "$LINENO"; then :
10000 ac_cv_lib_Xbsd_main=yes
10001 else
10002 ac_cv_lib_Xbsd_main=no
10004 rm -f core conftest.err conftest.$ac_objext \
10005 conftest$ac_exeext conftest.$ac_ext
10006 LIBS=$ac_check_lib_save_LIBS
10008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
10009 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
10010 if test "x$ac_cv_lib_Xbsd_main" = x""yes; then :
10011 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10015 LIB_PTHREAD=
10016 for ac_header in pthread.h
10017 do :
10018 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
10019 if test "x$ac_cv_header_pthread_h" = x""yes; then :
10020 cat >>confdefs.h <<_ACEOF
10021 #define HAVE_PTHREAD_H 1
10022 _ACEOF
10026 done
10028 if test "$ac_cv_header_pthread_h"; then
10029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lpthread" >&5
10030 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
10031 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then :
10032 $as_echo_n "(cached) " >&6
10033 else
10034 ac_check_lib_save_LIBS=$LIBS
10035 LIBS="-lpthread $LIBS"
10036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10037 /* end confdefs.h. */
10039 /* Override any GCC internal prototype to avoid an error.
10040 Use char because int might match the return type of a GCC
10041 builtin and then its argument prototype would still apply. */
10042 #ifdef __cplusplus
10043 extern "C"
10044 #endif
10045 char pthread_self ();
10047 main ()
10049 return pthread_self ();
10051 return 0;
10053 _ACEOF
10054 if ac_fn_c_try_link "$LINENO"; then :
10055 ac_cv_lib_pthread_pthread_self=yes
10056 else
10057 ac_cv_lib_pthread_pthread_self=no
10059 rm -f core conftest.err conftest.$ac_objext \
10060 conftest$ac_exeext conftest.$ac_ext
10061 LIBS=$ac_check_lib_save_LIBS
10063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_self" >&5
10064 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
10065 if test "x$ac_cv_lib_pthread_pthread_self" = x""yes; then :
10066 HAVE_PTHREAD=yes
10070 if test "$HAVE_PTHREAD" = yes; then
10071 case "${canonical}" in
10072 *-hpux*) ;;
10073 *) LIB_PTHREAD="-lpthread" ;;
10074 esac
10076 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
10081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
10082 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
10083 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then :
10084 $as_echo_n "(cached) " >&6
10085 else
10086 ac_check_lib_save_LIBS=$LIBS
10087 LIBS="-lpthreads $LIBS"
10088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10089 /* end confdefs.h. */
10091 /* Override any GCC internal prototype to avoid an error.
10092 Use char because int might match the return type of a GCC
10093 builtin and then its argument prototype would still apply. */
10094 #ifdef __cplusplus
10095 extern "C"
10096 #endif
10097 char cma_open ();
10099 main ()
10101 return cma_open ();
10103 return 0;
10105 _ACEOF
10106 if ac_fn_c_try_link "$LINENO"; then :
10107 ac_cv_lib_pthreads_cma_open=yes
10108 else
10109 ac_cv_lib_pthreads_cma_open=no
10111 rm -f core conftest.err conftest.$ac_objext \
10112 conftest$ac_exeext conftest.$ac_ext
10113 LIBS=$ac_check_lib_save_LIBS
10115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
10116 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
10117 if test "x$ac_cv_lib_pthreads_cma_open" = x""yes; then :
10118 cat >>confdefs.h <<_ACEOF
10119 #define HAVE_LIBPTHREADS 1
10120 _ACEOF
10122 LIBS="-lpthreads $LIBS"
10127 ## Note: when using cpp in s/aix4.2.h, this definition depended on
10128 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
10129 ## the system file was sourced. Hence the value of LIBS_SYSTEM
10130 ## added to LIBS in configure would never contain the pthreads part,
10131 ## but the value used in Makefiles might. FIXME?
10133 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
10134 ## be harmless on older versions of X where it happens to exist.
10135 test "$opsys" = "aix4-2" && \
10136 test $ac_cv_lib_pthreads_cma_open = yes && \
10137 LIBS_SYSTEM="$LIBS_SYSTEM -lpthreads"
10140 case ${host_os} in
10141 aix*)
10142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
10143 $as_echo_n "checking for -bbigtoc option... " >&6; }
10144 if test "${gdb_cv_bigtoc+set}" = set; then :
10145 $as_echo_n "(cached) " >&6
10146 else
10148 case $GCC in
10149 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
10150 *) gdb_cv_bigtoc=-bbigtoc ;;
10151 esac
10153 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10155 /* end confdefs.h. */
10158 main ()
10160 int i;
10162 return 0;
10164 _ACEOF
10165 if ac_fn_c_try_link "$LINENO"; then :
10167 else
10168 gdb_cv_bigtoc=
10170 rm -f core conftest.err conftest.$ac_objext \
10171 conftest$ac_exeext conftest.$ac_ext
10174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
10175 $as_echo "$gdb_cv_bigtoc" >&6; }
10177 esac
10179 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10180 # used for the tests that follow. We set them back to REAL_CFLAGS and
10181 # REAL_CPPFLAGS later on.
10183 REAL_CFLAGS="$CFLAGS"
10184 REAL_CPPFLAGS="$CPPFLAGS"
10186 if test "${HAVE_X11}" = "yes"; then
10187 DEFS="$C_SWITCH_X_SITE $DEFS"
10188 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10189 LIBS="-lX11 $LIBS"
10190 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10191 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10193 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10194 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10195 # but it's more convenient here to set LD_RUN_PATH
10196 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10197 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10198 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10199 export LD_RUN_PATH
10202 if test "${opsys}" = "gnu-linux"; then
10203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
10204 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
10205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10206 /* end confdefs.h. */
10209 main ()
10211 XOpenDisplay ("foo");
10213 return 0;
10215 _ACEOF
10216 if ac_fn_c_try_link "$LINENO"; then :
10217 xlinux_first_failure=no
10218 else
10219 xlinux_first_failure=yes
10221 rm -f core conftest.err conftest.$ac_objext \
10222 conftest$ac_exeext conftest.$ac_ext
10223 if test "${xlinux_first_failure}" = "yes"; then
10224 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
10225 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
10226 OLD_CPPFLAGS="$CPPFLAGS"
10227 OLD_LIBS="$LIBS"
10228 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
10229 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
10230 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
10231 LIBS="$LIBS -b i486-linuxaout"
10232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10233 /* end confdefs.h. */
10236 main ()
10238 XOpenDisplay ("foo");
10240 return 0;
10242 _ACEOF
10243 if ac_fn_c_try_link "$LINENO"; then :
10244 xlinux_second_failure=no
10245 else
10246 xlinux_second_failure=yes
10248 rm -f core conftest.err conftest.$ac_objext \
10249 conftest$ac_exeext conftest.$ac_ext
10250 if test "${xlinux_second_failure}" = "yes"; then
10251 # If we get the same failure with -b, there is no use adding -b.
10252 # So take it out. This plays safe.
10253 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10254 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10255 CPPFLAGS="$OLD_CPPFLAGS"
10256 LIBS="$OLD_LIBS"
10257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10258 $as_echo "no" >&6; }
10259 else
10260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10261 $as_echo "yes" >&6; }
10263 else
10264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10265 $as_echo "no" >&6; }
10269 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10270 # header files included from there.
10271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
10272 $as_echo_n "checking for Xkb... " >&6; }
10273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10274 /* end confdefs.h. */
10275 #include <X11/Xlib.h>
10276 #include <X11/XKBlib.h>
10278 main ()
10280 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10282 return 0;
10284 _ACEOF
10285 if ac_fn_c_try_link "$LINENO"; then :
10286 emacs_xkb=yes
10287 else
10288 emacs_xkb=no
10290 rm -f core conftest.err conftest.$ac_objext \
10291 conftest$ac_exeext conftest.$ac_ext
10292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
10293 $as_echo "$emacs_xkb" >&6; }
10294 if test $emacs_xkb = yes; then
10296 $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
10300 for ac_func in XrmSetDatabase XScreenResourceString \
10301 XScreenNumberOfScreen XSetWMProtocols
10302 do :
10303 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10304 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10305 eval as_val=\$$as_ac_var
10306 if test "x$as_val" = x""yes; then :
10307 cat >>confdefs.h <<_ACEOF
10308 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10309 _ACEOF
10312 done
10316 if test "${window_system}" = "x11"; then
10317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
10318 $as_echo_n "checking X11 version 6... " >&6; }
10319 if test "${emacs_cv_x11_version_6+set}" = set; then :
10320 $as_echo_n "(cached) " >&6
10321 else
10322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10323 /* end confdefs.h. */
10324 #include <X11/Xlib.h>
10326 main ()
10328 #if XlibSpecificationRelease < 6
10329 fail;
10330 #endif
10333 return 0;
10335 _ACEOF
10336 if ac_fn_c_try_link "$LINENO"; then :
10337 emacs_cv_x11_version_6=yes
10338 else
10339 emacs_cv_x11_version_6=no
10341 rm -f core conftest.err conftest.$ac_objext \
10342 conftest$ac_exeext conftest.$ac_ext
10345 if test $emacs_cv_x11_version_6 = yes; then
10346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
10347 $as_echo "6 or newer" >&6; }
10349 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
10352 $as_echo "#define HAVE_X_I18N 1" >>confdefs.h
10354 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
10355 ## XIM support.
10356 case "$opsys" in
10357 sol2-*) : ;;
10359 $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
10362 esac
10363 else
10364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
10365 $as_echo "before 6" >&6; }
10370 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
10371 HAVE_RSVG=no
10372 if test "${HAVE_X11}" = "yes" || test "${HAVE_NS}" = "yes"; then
10373 if test "${with_rsvg}" != "no"; then
10374 RSVG_REQUIRED=2.11.0
10375 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
10378 succeeded=no
10380 # Extract the first word of "pkg-config", so it can be a program name with args.
10381 set dummy pkg-config; ac_word=$2
10382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10383 $as_echo_n "checking for $ac_word... " >&6; }
10384 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10385 $as_echo_n "(cached) " >&6
10386 else
10387 case $PKG_CONFIG in
10388 [\\/]* | ?:[\\/]*)
10389 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10393 for as_dir in $PATH
10395 IFS=$as_save_IFS
10396 test -z "$as_dir" && as_dir=.
10397 for ac_exec_ext in '' $ac_executable_extensions; do
10398 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10399 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10401 break 2
10403 done
10404 done
10405 IFS=$as_save_IFS
10407 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10409 esac
10411 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10412 if test -n "$PKG_CONFIG"; then
10413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10414 $as_echo "$PKG_CONFIG" >&6; }
10415 else
10416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10417 $as_echo "no" >&6; }
10422 if test "$PKG_CONFIG" = "no" ; then
10424 else
10425 PKG_CONFIG_MIN_VERSION=0.9.0
10426 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
10428 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
10430 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
10431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10432 $as_echo "yes" >&6; }
10433 succeeded=yes
10435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_CFLAGS" >&5
10436 $as_echo_n "checking RSVG_CFLAGS... " >&6; }
10437 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_CFLAGS" >&5
10439 $as_echo "$RSVG_CFLAGS" >&6; }
10441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_LIBS" >&5
10442 $as_echo_n "checking RSVG_LIBS... " >&6; }
10443 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_LIBS" >&5
10445 $as_echo "$RSVG_LIBS" >&6; }
10446 else
10447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10448 $as_echo "no" >&6; }
10449 RSVG_CFLAGS=""
10450 RSVG_LIBS=""
10451 ## If we have a custom action on failure, don't print errors, but
10452 ## do set a variable so people can do so.
10453 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
10459 else
10460 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10461 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10465 if test $succeeded = yes; then
10466 HAVE_RSVG=yes
10467 else
10474 if test $HAVE_RSVG = yes; then
10476 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
10478 CFLAGS="$CFLAGS $RSVG_CFLAGS"
10479 LIBS="$RSVG_LIBS $LIBS"
10484 HAVE_IMAGEMAGICK=no
10485 if test "${HAVE_X11}" = "yes"; then
10486 if test "${with_imagemagick}" != "no"; then
10487 ## 6.2.8 is the earliest version known to work, but earlier versions
10488 ## might work - let us know if you find one.
10489 ## 6.0.7 does not work. See bug#7955.
10490 IMAGEMAGICK_MODULE="Wand >= 6.2.8"
10492 succeeded=no
10494 # Extract the first word of "pkg-config", so it can be a program name with args.
10495 set dummy pkg-config; ac_word=$2
10496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10497 $as_echo_n "checking for $ac_word... " >&6; }
10498 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10499 $as_echo_n "(cached) " >&6
10500 else
10501 case $PKG_CONFIG in
10502 [\\/]* | ?:[\\/]*)
10503 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10507 for as_dir in $PATH
10509 IFS=$as_save_IFS
10510 test -z "$as_dir" && as_dir=.
10511 for ac_exec_ext in '' $ac_executable_extensions; do
10512 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10513 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10515 break 2
10517 done
10518 done
10519 IFS=$as_save_IFS
10521 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10523 esac
10525 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10526 if test -n "$PKG_CONFIG"; then
10527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10528 $as_echo "$PKG_CONFIG" >&6; }
10529 else
10530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10531 $as_echo "no" >&6; }
10536 if test "$PKG_CONFIG" = "no" ; then
10538 else
10539 PKG_CONFIG_MIN_VERSION=0.9.0
10540 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
10542 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
10544 if $PKG_CONFIG --exists "$IMAGEMAGICK_MODULE" 2>&5; then
10545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10546 $as_echo "yes" >&6; }
10547 succeeded=yes
10549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_CFLAGS" >&5
10550 $as_echo_n "checking IMAGEMAGICK_CFLAGS... " >&6; }
10551 IMAGEMAGICK_CFLAGS=`$PKG_CONFIG --cflags "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
10552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_CFLAGS" >&5
10553 $as_echo "$IMAGEMAGICK_CFLAGS" >&6; }
10555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_LIBS" >&5
10556 $as_echo_n "checking IMAGEMAGICK_LIBS... " >&6; }
10557 IMAGEMAGICK_LIBS=`$PKG_CONFIG --libs "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
10558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_LIBS" >&5
10559 $as_echo "$IMAGEMAGICK_LIBS" >&6; }
10560 else
10561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10562 $as_echo "no" >&6; }
10563 IMAGEMAGICK_CFLAGS=""
10564 IMAGEMAGICK_LIBS=""
10565 ## If we have a custom action on failure, don't print errors, but
10566 ## do set a variable so people can do so.
10567 IMAGEMAGICK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$IMAGEMAGICK_MODULE"`
10573 else
10574 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10575 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10579 if test $succeeded = yes; then
10580 HAVE_IMAGEMAGICK=yes
10581 else
10588 if test $HAVE_IMAGEMAGICK = yes; then
10590 $as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
10592 CFLAGS="$CFLAGS $IMAGEMAGICK_CFLAGS"
10593 LIBS="$IMAGEMAGICK_LIBS $LIBS"
10594 for ac_func in MagickExportImagePixels
10595 do :
10596 ac_fn_c_check_func "$LINENO" "MagickExportImagePixels" "ac_cv_func_MagickExportImagePixels"
10597 if test "x$ac_cv_func_MagickExportImagePixels" = x""yes; then :
10598 cat >>confdefs.h <<_ACEOF
10599 #define HAVE_MAGICKEXPORTIMAGEPIXELS 1
10600 _ACEOF
10603 done
10610 HAVE_GTK=no
10611 GTK_OBJ=
10612 if test "${with_gtk3}" = "yes"; then
10613 GLIB_REQUIRED=2.28
10614 GTK_REQUIRED=3.0
10615 GTK_MODULES="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10618 succeeded=no
10620 # Extract the first word of "pkg-config", so it can be a program name with args.
10621 set dummy pkg-config; ac_word=$2
10622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10623 $as_echo_n "checking for $ac_word... " >&6; }
10624 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10625 $as_echo_n "(cached) " >&6
10626 else
10627 case $PKG_CONFIG in
10628 [\\/]* | ?:[\\/]*)
10629 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10633 for as_dir in $PATH
10635 IFS=$as_save_IFS
10636 test -z "$as_dir" && as_dir=.
10637 for ac_exec_ext in '' $ac_executable_extensions; do
10638 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10639 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10641 break 2
10643 done
10644 done
10645 IFS=$as_save_IFS
10647 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10649 esac
10651 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10652 if test -n "$PKG_CONFIG"; then
10653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10654 $as_echo "$PKG_CONFIG" >&6; }
10655 else
10656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10657 $as_echo "no" >&6; }
10662 if test "$PKG_CONFIG" = "no" ; then
10663 pkg_check_gtk=no
10664 else
10665 PKG_CONFIG_MIN_VERSION=0.9.0
10666 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
10668 $as_echo_n "checking for $GTK_MODULES... " >&6; }
10670 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10672 $as_echo "yes" >&6; }
10673 succeeded=yes
10675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
10676 $as_echo_n "checking GTK_CFLAGS... " >&6; }
10677 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
10678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
10679 $as_echo "$GTK_CFLAGS" >&6; }
10681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
10682 $as_echo_n "checking GTK_LIBS... " >&6; }
10683 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
10684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
10685 $as_echo "$GTK_LIBS" >&6; }
10686 else
10687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10688 $as_echo "no" >&6; }
10689 GTK_CFLAGS=""
10690 GTK_LIBS=""
10691 ## If we have a custom action on failure, don't print errors, but
10692 ## do set a variable so people can do so.
10693 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10699 else
10700 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10701 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10705 if test $succeeded = yes; then
10706 pkg_check_gtk=yes
10707 else
10708 pkg_check_gtk=no
10711 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
10712 as_fn_error "$GTK_PKG_ERRORS" "$LINENO" 5
10715 $as_echo "#define HAVE_GTK3 1" >>confdefs.h
10717 GTK_OBJ=emacsgtkfixed.o
10720 if test "$pkg_check_gtk" != "yes"; then
10721 HAVE_GTK=no
10722 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
10723 GLIB_REQUIRED=2.6
10724 GTK_REQUIRED=2.6
10725 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10728 succeeded=no
10730 # Extract the first word of "pkg-config", so it can be a program name with args.
10731 set dummy pkg-config; ac_word=$2
10732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10733 $as_echo_n "checking for $ac_word... " >&6; }
10734 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10735 $as_echo_n "(cached) " >&6
10736 else
10737 case $PKG_CONFIG in
10738 [\\/]* | ?:[\\/]*)
10739 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10743 for as_dir in $PATH
10745 IFS=$as_save_IFS
10746 test -z "$as_dir" && as_dir=.
10747 for ac_exec_ext in '' $ac_executable_extensions; do
10748 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10749 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10751 break 2
10753 done
10754 done
10755 IFS=$as_save_IFS
10757 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10759 esac
10761 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10762 if test -n "$PKG_CONFIG"; then
10763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10764 $as_echo "$PKG_CONFIG" >&6; }
10765 else
10766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10767 $as_echo "no" >&6; }
10772 if test "$PKG_CONFIG" = "no" ; then
10773 pkg_check_gtk=no
10774 else
10775 PKG_CONFIG_MIN_VERSION=0.9.0
10776 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
10778 $as_echo_n "checking for $GTK_MODULES... " >&6; }
10780 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10782 $as_echo "yes" >&6; }
10783 succeeded=yes
10785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
10786 $as_echo_n "checking GTK_CFLAGS... " >&6; }
10787 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
10788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
10789 $as_echo "$GTK_CFLAGS" >&6; }
10791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
10792 $as_echo_n "checking GTK_LIBS... " >&6; }
10793 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
10794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
10795 $as_echo "$GTK_LIBS" >&6; }
10796 else
10797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10798 $as_echo "no" >&6; }
10799 GTK_CFLAGS=""
10800 GTK_LIBS=""
10801 ## If we have a custom action on failure, don't print errors, but
10802 ## do set a variable so people can do so.
10803 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10809 else
10810 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10811 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10815 if test $succeeded = yes; then
10816 pkg_check_gtk=yes
10817 else
10818 pkg_check_gtk=no
10821 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
10822 as_fn_error "$GTK_PKG_ERRORS" "$LINENO" 5
10827 if test x"$pkg_check_gtk" = xyes; then
10831 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
10832 CFLAGS="$CFLAGS $GTK_CFLAGS"
10833 LIBS="$GTK_LIBS $LIBS"
10834 GTK_COMPILES=no
10835 for ac_func in gtk_main
10836 do :
10837 ac_fn_c_check_func "$LINENO" "gtk_main" "ac_cv_func_gtk_main"
10838 if test "x$ac_cv_func_gtk_main" = x""yes; then :
10839 cat >>confdefs.h <<_ACEOF
10840 #define HAVE_GTK_MAIN 1
10841 _ACEOF
10842 GTK_COMPILES=yes
10844 done
10846 if test "${GTK_COMPILES}" != "yes"; then
10847 if test "$USE_X_TOOLKIT" != "maybe"; then
10848 as_fn_error "Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
10850 else
10851 HAVE_GTK=yes
10853 $as_echo "#define USE_GTK 1" >>confdefs.h
10855 GTK_OBJ="gtkutil.o $GTK_OBJ"
10856 USE_X_TOOLKIT=none
10857 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
10859 else
10860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
10861 closing open displays. This is no problem if you just use
10862 one display, but if you use more than one and close one of them
10863 Emacs may crash." >&5
10864 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
10865 closing open displays. This is no problem if you just use
10866 one display, but if you use more than one and close one of them
10867 Emacs may crash." >&2;}
10868 sleep 3
10876 if test "${HAVE_GTK}" = "yes"; then
10878 if test "$with_toolkit_scroll_bars" != no; then
10879 with_toolkit_scroll_bars=yes
10882 HAVE_GTK_FILE_SELECTION=no
10883 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
10884 #include <gtk/gtk.h>
10886 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x""yes; then :
10887 HAVE_GTK_FILE_SELECTION=yes
10888 else
10889 HAVE_GTK_FILE_SELECTION=no
10892 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
10893 for ac_func in gtk_file_selection_new
10894 do :
10895 ac_fn_c_check_func "$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
10896 if test "x$ac_cv_func_gtk_file_selection_new" = x""yes; then :
10897 cat >>confdefs.h <<_ACEOF
10898 #define HAVE_GTK_FILE_SELECTION_NEW 1
10899 _ACEOF
10902 done
10907 for ac_func in gtk_widget_get_window gtk_widget_set_has_window \
10908 gtk_dialog_get_action_area gtk_widget_get_sensitive \
10909 gtk_widget_get_mapped gtk_adjustment_get_page_size \
10910 gtk_orientable_set_orientation
10911 do :
10912 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10913 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10914 eval as_val=\$$as_ac_var
10915 if test "x$as_val" = x""yes; then :
10916 cat >>confdefs.h <<_ACEOF
10917 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10918 _ACEOF
10921 done
10926 HAVE_DBUS=no
10927 DBUS_OBJ=
10928 if test "${with_dbus}" = "yes"; then
10930 succeeded=no
10932 # Extract the first word of "pkg-config", so it can be a program name with args.
10933 set dummy pkg-config; ac_word=$2
10934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10935 $as_echo_n "checking for $ac_word... " >&6; }
10936 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10937 $as_echo_n "(cached) " >&6
10938 else
10939 case $PKG_CONFIG in
10940 [\\/]* | ?:[\\/]*)
10941 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10945 for as_dir in $PATH
10947 IFS=$as_save_IFS
10948 test -z "$as_dir" && as_dir=.
10949 for ac_exec_ext in '' $ac_executable_extensions; do
10950 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10951 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10953 break 2
10955 done
10956 done
10957 IFS=$as_save_IFS
10959 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10961 esac
10963 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10964 if test -n "$PKG_CONFIG"; then
10965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10966 $as_echo "$PKG_CONFIG" >&6; }
10967 else
10968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10969 $as_echo "no" >&6; }
10974 if test "$PKG_CONFIG" = "no" ; then
10975 HAVE_DBUS=no
10976 else
10977 PKG_CONFIG_MIN_VERSION=0.9.0
10978 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
10980 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
10982 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
10983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10984 $as_echo "yes" >&6; }
10985 succeeded=yes
10987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_CFLAGS" >&5
10988 $as_echo_n "checking DBUS_CFLAGS... " >&6; }
10989 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
10990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_CFLAGS" >&5
10991 $as_echo "$DBUS_CFLAGS" >&6; }
10993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_LIBS" >&5
10994 $as_echo_n "checking DBUS_LIBS... " >&6; }
10995 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
10996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_LIBS" >&5
10997 $as_echo "$DBUS_LIBS" >&6; }
10998 else
10999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11000 $as_echo "no" >&6; }
11001 DBUS_CFLAGS=""
11002 DBUS_LIBS=""
11003 ## If we have a custom action on failure, don't print errors, but
11004 ## do set a variable so people can do so.
11005 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
11011 else
11012 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11013 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11017 if test $succeeded = yes; then
11018 HAVE_DBUS=yes
11019 else
11020 HAVE_DBUS=no
11023 if test "$HAVE_DBUS" = yes; then
11024 LIBS="$LIBS $DBUS_LIBS"
11026 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
11028 for ac_func in dbus_watch_get_unix_fd
11029 do :
11030 ac_fn_c_check_func "$LINENO" "dbus_watch_get_unix_fd" "ac_cv_func_dbus_watch_get_unix_fd"
11031 if test "x$ac_cv_func_dbus_watch_get_unix_fd" = x""yes; then :
11032 cat >>confdefs.h <<_ACEOF
11033 #define HAVE_DBUS_WATCH_GET_UNIX_FD 1
11034 _ACEOF
11037 done
11039 DBUS_OBJ=dbusbind.o
11044 HAVE_GSETTINGS=no
11045 if test "${HAVE_X11}" = "yes" && test "${with_gsettings}" = "yes"; then
11047 succeeded=no
11049 # Extract the first word of "pkg-config", so it can be a program name with args.
11050 set dummy pkg-config; ac_word=$2
11051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11052 $as_echo_n "checking for $ac_word... " >&6; }
11053 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11054 $as_echo_n "(cached) " >&6
11055 else
11056 case $PKG_CONFIG in
11057 [\\/]* | ?:[\\/]*)
11058 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11062 for as_dir in $PATH
11064 IFS=$as_save_IFS
11065 test -z "$as_dir" && as_dir=.
11066 for ac_exec_ext in '' $ac_executable_extensions; do
11067 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11068 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11070 break 2
11072 done
11073 done
11074 IFS=$as_save_IFS
11076 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11078 esac
11080 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11081 if test -n "$PKG_CONFIG"; then
11082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11083 $as_echo "$PKG_CONFIG" >&6; }
11084 else
11085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11086 $as_echo "no" >&6; }
11091 if test "$PKG_CONFIG" = "no" ; then
11092 HAVE_GSETTINGS=no
11093 else
11094 PKG_CONFIG_MIN_VERSION=0.9.0
11095 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gio-2.0 >= 2.26" >&5
11097 $as_echo_n "checking for gio-2.0 >= 2.26... " >&6; }
11099 if $PKG_CONFIG --exists "gio-2.0 >= 2.26" 2>&5; then
11100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11101 $as_echo "yes" >&6; }
11102 succeeded=yes
11104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GSETTINGS_CFLAGS" >&5
11105 $as_echo_n "checking GSETTINGS_CFLAGS... " >&6; }
11106 GSETTINGS_CFLAGS=`$PKG_CONFIG --cflags "gio-2.0 >= 2.26"|sed -e 's,///*,/,g'`
11107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSETTINGS_CFLAGS" >&5
11108 $as_echo "$GSETTINGS_CFLAGS" >&6; }
11110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GSETTINGS_LIBS" >&5
11111 $as_echo_n "checking GSETTINGS_LIBS... " >&6; }
11112 GSETTINGS_LIBS=`$PKG_CONFIG --libs "gio-2.0 >= 2.26"|sed -e 's,///*,/,g'`
11113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSETTINGS_LIBS" >&5
11114 $as_echo "$GSETTINGS_LIBS" >&6; }
11115 else
11116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11117 $as_echo "no" >&6; }
11118 GSETTINGS_CFLAGS=""
11119 GSETTINGS_LIBS=""
11120 ## If we have a custom action on failure, don't print errors, but
11121 ## do set a variable so people can do so.
11122 GSETTINGS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gio-2.0 >= 2.26"`
11128 else
11129 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11130 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11134 if test $succeeded = yes; then
11135 HAVE_GSETTINGS=yes
11136 else
11137 HAVE_GSETTINGS=no
11140 if test "$HAVE_GSETTINGS" = "yes"; then
11142 $as_echo "#define HAVE_GSETTINGS 1" >>confdefs.h
11144 SETTINGS_CFLAGS="$GSETTINGS_CFLAGS"
11145 SETTINGS_LIBS="$GSETTINGS_LIBS"
11149 HAVE_GCONF=no
11150 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
11152 succeeded=no
11154 # Extract the first word of "pkg-config", so it can be a program name with args.
11155 set dummy pkg-config; ac_word=$2
11156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11157 $as_echo_n "checking for $ac_word... " >&6; }
11158 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11159 $as_echo_n "(cached) " >&6
11160 else
11161 case $PKG_CONFIG in
11162 [\\/]* | ?:[\\/]*)
11163 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11167 for as_dir in $PATH
11169 IFS=$as_save_IFS
11170 test -z "$as_dir" && as_dir=.
11171 for ac_exec_ext in '' $ac_executable_extensions; do
11172 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11173 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11175 break 2
11177 done
11178 done
11179 IFS=$as_save_IFS
11181 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11183 esac
11185 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11186 if test -n "$PKG_CONFIG"; then
11187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11188 $as_echo "$PKG_CONFIG" >&6; }
11189 else
11190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11191 $as_echo "no" >&6; }
11196 if test "$PKG_CONFIG" = "no" ; then
11197 HAVE_GCONF=no
11198 else
11199 PKG_CONFIG_MIN_VERSION=0.9.0
11200 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
11202 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
11204 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
11205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11206 $as_echo "yes" >&6; }
11207 succeeded=yes
11209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_CFLAGS" >&5
11210 $as_echo_n "checking GCONF_CFLAGS... " >&6; }
11211 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
11212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_CFLAGS" >&5
11213 $as_echo "$GCONF_CFLAGS" >&6; }
11215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_LIBS" >&5
11216 $as_echo_n "checking GCONF_LIBS... " >&6; }
11217 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
11218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_LIBS" >&5
11219 $as_echo "$GCONF_LIBS" >&6; }
11220 else
11221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11222 $as_echo "no" >&6; }
11223 GCONF_CFLAGS=""
11224 GCONF_LIBS=""
11225 ## If we have a custom action on failure, don't print errors, but
11226 ## do set a variable so people can do so.
11227 GCONF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
11233 else
11234 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11235 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11239 if test $succeeded = yes; then
11240 HAVE_GCONF=yes
11241 else
11242 HAVE_GCONF=no
11245 if test "$HAVE_GCONF" = yes; then
11247 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
11249 SETTINGS_CFLAGS="$SETTINGS_CFLAGS $GCONF_CFLAGS"
11250 SETTINGS_LIBS="$SETTINGS_LIBS $GCONF_LIBS"
11254 if test "$HAVE_GSETTINGS" = "yes" || test "$HAVE_GCONF" = "yes"; then
11255 SAVE_CFLAGS="$CFLAGS"
11256 SAVE_LDFLAGS="$LDFLAGS"
11257 CFLAGS="$SETTINGS_CFLAGS $CFLAGS"
11258 LDFLAGS="$SETTINGS_LIBS $LDFLAGS"
11259 for ac_func in g_type_init
11260 do :
11261 ac_fn_c_check_func "$LINENO" "g_type_init" "ac_cv_func_g_type_init"
11262 if test "x$ac_cv_func_g_type_init" = x""yes; then :
11263 cat >>confdefs.h <<_ACEOF
11264 #define HAVE_G_TYPE_INIT 1
11265 _ACEOF
11268 done
11270 CFLAGS="$SAVE_CFLAGS"
11271 LDFLAGS="$SAVE_LDFLAGS"
11277 HAVE_LIBSELINUX=no
11278 LIBSELINUX_LIBS=
11279 if test "${with_selinux}" = "yes"; then
11280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
11281 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
11282 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then :
11283 $as_echo_n "(cached) " >&6
11284 else
11285 ac_check_lib_save_LIBS=$LIBS
11286 LIBS="-lselinux $LIBS"
11287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11288 /* end confdefs.h. */
11290 /* Override any GCC internal prototype to avoid an error.
11291 Use char because int might match the return type of a GCC
11292 builtin and then its argument prototype would still apply. */
11293 #ifdef __cplusplus
11294 extern "C"
11295 #endif
11296 char lgetfilecon ();
11298 main ()
11300 return lgetfilecon ();
11302 return 0;
11304 _ACEOF
11305 if ac_fn_c_try_link "$LINENO"; then :
11306 ac_cv_lib_selinux_lgetfilecon=yes
11307 else
11308 ac_cv_lib_selinux_lgetfilecon=no
11310 rm -f core conftest.err conftest.$ac_objext \
11311 conftest$ac_exeext conftest.$ac_ext
11312 LIBS=$ac_check_lib_save_LIBS
11314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
11315 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
11316 if test "x$ac_cv_lib_selinux_lgetfilecon" = x""yes; then :
11317 HAVE_LIBSELINUX=yes
11318 else
11319 HAVE_LIBSELINUX=no
11322 if test "$HAVE_LIBSELINUX" = yes; then
11324 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
11326 LIBSELINUX_LIBS=-lselinux
11331 HAVE_GNUTLS=no
11332 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY=no
11333 if test "${with_gnutls}" = "yes" ; then
11335 succeeded=no
11337 # Extract the first word of "pkg-config", so it can be a program name with args.
11338 set dummy pkg-config; ac_word=$2
11339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11340 $as_echo_n "checking for $ac_word... " >&6; }
11341 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11342 $as_echo_n "(cached) " >&6
11343 else
11344 case $PKG_CONFIG in
11345 [\\/]* | ?:[\\/]*)
11346 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11350 for as_dir in $PATH
11352 IFS=$as_save_IFS
11353 test -z "$as_dir" && as_dir=.
11354 for ac_exec_ext in '' $ac_executable_extensions; do
11355 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11356 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11358 break 2
11360 done
11361 done
11362 IFS=$as_save_IFS
11364 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11366 esac
11368 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11369 if test -n "$PKG_CONFIG"; then
11370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11371 $as_echo "$PKG_CONFIG" >&6; }
11372 else
11373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11374 $as_echo "no" >&6; }
11379 if test "$PKG_CONFIG" = "no" ; then
11380 HAVE_GNUTLS=no
11381 else
11382 PKG_CONFIG_MIN_VERSION=0.9.0
11383 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.6.0" >&5
11385 $as_echo_n "checking for gnutls >= 2.6.0... " >&6; }
11387 if $PKG_CONFIG --exists "gnutls >= 2.6.0" 2>&5; then
11388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11389 $as_echo "yes" >&6; }
11390 succeeded=yes
11392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_CFLAGS" >&5
11393 $as_echo_n "checking LIBGNUTLS_CFLAGS... " >&6; }
11394 LIBGNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls >= 2.6.0"|sed -e 's,///*,/,g'`
11395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_CFLAGS" >&5
11396 $as_echo "$LIBGNUTLS_CFLAGS" >&6; }
11398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_LIBS" >&5
11399 $as_echo_n "checking LIBGNUTLS_LIBS... " >&6; }
11400 LIBGNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls >= 2.6.0"|sed -e 's,///*,/,g'`
11401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_LIBS" >&5
11402 $as_echo "$LIBGNUTLS_LIBS" >&6; }
11403 else
11404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11405 $as_echo "no" >&6; }
11406 LIBGNUTLS_CFLAGS=""
11407 LIBGNUTLS_LIBS=""
11408 ## If we have a custom action on failure, don't print errors, but
11409 ## do set a variable so people can do so.
11410 LIBGNUTLS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnutls >= 2.6.0"`
11416 else
11417 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11418 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11422 if test $succeeded = yes; then
11423 HAVE_GNUTLS=yes
11424 else
11425 HAVE_GNUTLS=no
11428 if test "${HAVE_GNUTLS}" = "yes"; then
11430 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
11434 CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
11435 LIBS="$LIBGNUTLS_LIBS $LIBS"
11436 for ac_func in gnutls_certificate_set_verify_function
11437 do :
11438 ac_fn_c_check_func "$LINENO" "gnutls_certificate_set_verify_function" "ac_cv_func_gnutls_certificate_set_verify_function"
11439 if test "x$ac_cv_func_gnutls_certificate_set_verify_function" = x""yes; then :
11440 cat >>confdefs.h <<_ACEOF
11441 #define HAVE_GNUTLS_CERTIFICATE_SET_VERIFY_FUNCTION 1
11442 _ACEOF
11443 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY=yes
11445 done
11448 if test "${HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY}" = "yes"; then
11450 $as_echo "#define HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY 1" >>confdefs.h
11458 HAVE_XAW3D=no
11459 LUCID_LIBW=
11460 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
11461 if test "$with_xaw3d" != no; then
11462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
11463 $as_echo_n "checking for xaw3d... " >&6; }
11464 if test "${emacs_cv_xaw3d+set}" = set; then :
11465 $as_echo_n "(cached) " >&6
11466 else
11467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11468 /* end confdefs.h. */
11470 #include <X11/Intrinsic.h>
11471 #include <X11/Xaw3d/Simple.h>
11473 main ()
11477 return 0;
11479 _ACEOF
11480 if ac_fn_c_try_link "$LINENO"; then :
11481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XawScrollbarSetThumb in -lXaw3d" >&5
11482 $as_echo_n "checking for XawScrollbarSetThumb in -lXaw3d... " >&6; }
11483 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then :
11484 $as_echo_n "(cached) " >&6
11485 else
11486 ac_check_lib_save_LIBS=$LIBS
11487 LIBS="-lXaw3d $LIBS"
11488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11489 /* end confdefs.h. */
11491 /* Override any GCC internal prototype to avoid an error.
11492 Use char because int might match the return type of a GCC
11493 builtin and then its argument prototype would still apply. */
11494 #ifdef __cplusplus
11495 extern "C"
11496 #endif
11497 char XawScrollbarSetThumb ();
11499 main ()
11501 return XawScrollbarSetThumb ();
11503 return 0;
11505 _ACEOF
11506 if ac_fn_c_try_link "$LINENO"; then :
11507 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
11508 else
11509 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
11511 rm -f core conftest.err conftest.$ac_objext \
11512 conftest$ac_exeext conftest.$ac_ext
11513 LIBS=$ac_check_lib_save_LIBS
11515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
11516 $as_echo "$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
11517 if test "x$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" = x""yes; then :
11518 emacs_cv_xaw3d=yes
11519 else
11520 emacs_cv_xaw3d=no
11523 else
11524 emacs_cv_xaw3d=no
11526 rm -f core conftest.err conftest.$ac_objext \
11527 conftest$ac_exeext conftest.$ac_ext
11530 else
11531 emacs_cv_xaw3d=no
11533 if test $emacs_cv_xaw3d = yes; then
11534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
11535 $as_echo "yes; using Lucid toolkit" >&6; }
11536 USE_X_TOOLKIT=LUCID
11537 HAVE_XAW3D=yes
11538 LUCID_LIBW=-lXaw3d
11540 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
11542 else
11543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11544 $as_echo "no" >&6; }
11545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
11546 $as_echo_n "checking for libXaw... " >&6; }
11547 if test "${emacs_cv_xaw+set}" = set; then :
11548 $as_echo_n "(cached) " >&6
11549 else
11550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11551 /* end confdefs.h. */
11553 #include <X11/Intrinsic.h>
11554 #include <X11/Xaw/Simple.h>
11556 main ()
11560 return 0;
11562 _ACEOF
11563 if ac_fn_c_try_link "$LINENO"; then :
11564 emacs_cv_xaw=yes
11565 else
11566 emacs_cv_xaw=no
11568 rm -f core conftest.err conftest.$ac_objext \
11569 conftest$ac_exeext conftest.$ac_ext
11572 if test $emacs_cv_xaw = yes; then
11573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
11574 $as_echo "yes; using Lucid toolkit" >&6; }
11575 USE_X_TOOLKIT=LUCID
11576 LUCID_LIBW=-lXaw
11577 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
11578 as_fn_error "Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
11579 else
11580 as_fn_error "No X toolkit could be found.
11581 If you are sure you want Emacs compiled without an X toolkit, pass
11582 --with-x-toolkit=no
11583 to configure. Otherwise, install the development libraries for the toolkit
11584 that you want to use (e.g. Gtk+) and re-run configure." "$LINENO" 5
11589 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
11591 LIBXTR6=
11592 if test "${USE_X_TOOLKIT}" != "none"; then
11593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
11594 $as_echo_n "checking X11 toolkit version... " >&6; }
11595 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then :
11596 $as_echo_n "(cached) " >&6
11597 else
11598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11599 /* end confdefs.h. */
11600 #include <X11/Intrinsic.h>
11602 main ()
11604 #if XtSpecificationRelease < 6
11605 fail;
11606 #endif
11609 return 0;
11611 _ACEOF
11612 if ac_fn_c_try_link "$LINENO"; then :
11613 emacs_cv_x11_toolkit_version_6=yes
11614 else
11615 emacs_cv_x11_toolkit_version_6=no
11617 rm -f core conftest.err conftest.$ac_objext \
11618 conftest$ac_exeext conftest.$ac_ext
11621 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
11622 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
11624 $as_echo "6 or newer" >&6; }
11626 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
11628 LIBXTR6="-lSM -lICE"
11629 case "$opsys" in
11630 ## Use libw.a along with X11R6 Xt.
11631 unixware) LIBXTR6="$LIBXTR6 -lw" ;;
11632 esac
11633 else
11634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
11635 $as_echo "before 6" >&6; }
11638 OLDLIBS="$LIBS"
11639 if test x$HAVE_X11XTR6 = xyes; then
11640 LIBS="-lXt -lSM -lICE $LIBS"
11641 else
11642 LIBS="-lXt $LIBS"
11644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
11645 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
11646 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then :
11647 $as_echo_n "(cached) " >&6
11648 else
11649 ac_check_lib_save_LIBS=$LIBS
11650 LIBS="-lXmu $LIBS"
11651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11652 /* end confdefs.h. */
11654 /* Override any GCC internal prototype to avoid an error.
11655 Use char because int might match the return type of a GCC
11656 builtin and then its argument prototype would still apply. */
11657 #ifdef __cplusplus
11658 extern "C"
11659 #endif
11660 char XmuConvertStandardSelection ();
11662 main ()
11664 return XmuConvertStandardSelection ();
11666 return 0;
11668 _ACEOF
11669 if ac_fn_c_try_link "$LINENO"; then :
11670 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
11671 else
11672 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
11674 rm -f core conftest.err conftest.$ac_objext \
11675 conftest$ac_exeext conftest.$ac_ext
11676 LIBS=$ac_check_lib_save_LIBS
11678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
11679 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
11680 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x""yes; then :
11681 cat >>confdefs.h <<_ACEOF
11682 #define HAVE_LIBXMU 1
11683 _ACEOF
11685 LIBS="-lXmu $LIBS"
11689 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
11693 LIBXMU=-lXmu
11694 case $opsys in
11695 ## These systems don't supply Xmu.
11696 hpux* | aix4-2 )
11697 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU=
11699 esac
11702 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
11703 if test "${HAVE_X11}" = "yes"; then
11704 if test "${USE_X_TOOLKIT}" != "none"; then
11705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
11706 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
11707 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
11708 $as_echo_n "(cached) " >&6
11709 else
11710 ac_check_lib_save_LIBS=$LIBS
11711 LIBS="-lXext $LIBS"
11712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11713 /* end confdefs.h. */
11715 /* Override any GCC internal prototype to avoid an error.
11716 Use char because int might match the return type of a GCC
11717 builtin and then its argument prototype would still apply. */
11718 #ifdef __cplusplus
11719 extern "C"
11720 #endif
11721 char XShapeQueryExtension ();
11723 main ()
11725 return XShapeQueryExtension ();
11727 return 0;
11729 _ACEOF
11730 if ac_fn_c_try_link "$LINENO"; then :
11731 ac_cv_lib_Xext_XShapeQueryExtension=yes
11732 else
11733 ac_cv_lib_Xext_XShapeQueryExtension=no
11735 rm -f core conftest.err conftest.$ac_objext \
11736 conftest$ac_exeext conftest.$ac_ext
11737 LIBS=$ac_check_lib_save_LIBS
11739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
11740 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
11741 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then :
11742 cat >>confdefs.h <<_ACEOF
11743 #define HAVE_LIBXEXT 1
11744 _ACEOF
11746 LIBS="-lXext $LIBS"
11753 LIBXP=
11754 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif version 2.1" >&5
11756 $as_echo_n "checking for Motif version 2.1... " >&6; }
11757 if test "${emacs_cv_motif_version_2_1+set}" = set; then :
11758 $as_echo_n "(cached) " >&6
11759 else
11760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11761 /* end confdefs.h. */
11762 #include <Xm/Xm.h>
11764 main ()
11766 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
11767 int x = 5;
11768 #else
11769 Motif version prior to 2.1.
11770 #endif
11772 return 0;
11774 _ACEOF
11775 if ac_fn_c_try_compile "$LINENO"; then :
11776 emacs_cv_motif_version_2_1=yes
11777 else
11778 emacs_cv_motif_version_2_1=no
11780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
11783 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
11784 if test $emacs_cv_motif_version_2_1 = yes; then
11785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
11786 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
11787 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then :
11788 $as_echo_n "(cached) " >&6
11789 else
11790 ac_check_lib_save_LIBS=$LIBS
11791 LIBS="-lXp $LIBS"
11792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11793 /* end confdefs.h. */
11795 /* Override any GCC internal prototype to avoid an error.
11796 Use char because int might match the return type of a GCC
11797 builtin and then its argument prototype would still apply. */
11798 #ifdef __cplusplus
11799 extern "C"
11800 #endif
11801 char XpCreateContext ();
11803 main ()
11805 return XpCreateContext ();
11807 return 0;
11809 _ACEOF
11810 if ac_fn_c_try_link "$LINENO"; then :
11811 ac_cv_lib_Xp_XpCreateContext=yes
11812 else
11813 ac_cv_lib_Xp_XpCreateContext=no
11815 rm -f core conftest.err conftest.$ac_objext \
11816 conftest$ac_exeext conftest.$ac_ext
11817 LIBS=$ac_check_lib_save_LIBS
11819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
11820 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
11821 if test "x$ac_cv_lib_Xp_XpCreateContext" = x""yes; then :
11822 LIBXP=-lXp
11825 else
11826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
11827 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
11828 if test "${emacs_cv_lesstif+set}" = set; then :
11829 $as_echo_n "(cached) " >&6
11830 else
11831 # We put this in CFLAGS temporarily to precede other -I options
11832 # that might be in CFLAGS temporarily.
11833 # We put this in CPPFLAGS where it precedes the other -I options.
11834 OLD_CPPFLAGS=$CPPFLAGS
11835 OLD_CFLAGS=$CFLAGS
11836 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
11837 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
11838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11839 /* end confdefs.h. */
11840 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
11842 main ()
11844 int x = 5;
11846 return 0;
11848 _ACEOF
11849 if ac_fn_c_try_compile "$LINENO"; then :
11850 emacs_cv_lesstif=yes
11851 else
11852 emacs_cv_lesstif=no
11854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
11857 $as_echo "$emacs_cv_lesstif" >&6; }
11858 if test $emacs_cv_lesstif = yes; then
11859 # Make sure this -I option remains in CPPFLAGS after it is set
11860 # back to REAL_CPPFLAGS.
11861 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
11862 # have those other -I options anyway. Ultimately, having this
11863 # directory ultimately in CPPFLAGS will be enough.
11864 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
11865 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
11866 else
11867 CFLAGS=$OLD_CFLAGS
11868 CPPFLAGS=$OLD_CPPFLAGS
11874 USE_TOOLKIT_SCROLL_BARS=no
11875 if test "${with_toolkit_scroll_bars}" != "no"; then
11876 if test "${USE_X_TOOLKIT}" != "none"; then
11877 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11878 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11880 HAVE_XAW3D=no
11881 USE_TOOLKIT_SCROLL_BARS=yes
11882 elif test "${HAVE_XAW3D}" = "yes"; then
11883 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11885 USE_TOOLKIT_SCROLL_BARS=yes
11887 elif test "${HAVE_GTK}" = "yes"; then
11888 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11890 USE_TOOLKIT_SCROLL_BARS=yes
11891 elif test "${HAVE_NS}" = "yes"; then
11892 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11894 USE_TOOLKIT_SCROLL_BARS=yes
11898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11899 /* end confdefs.h. */
11901 #include <X11/Xlib.h>
11902 #include <X11/Xresource.h>
11904 main ()
11906 XIMProc callback;
11908 return 0;
11910 _ACEOF
11911 if ac_fn_c_try_compile "$LINENO"; then :
11912 HAVE_XIM=yes
11914 $as_echo "#define HAVE_XIM 1" >>confdefs.h
11916 else
11917 HAVE_XIM=no
11919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11922 if test "${with_xim}" != "no"; then
11924 $as_echo "#define USE_XIM 1" >>confdefs.h
11929 if test "${HAVE_XIM}" != "no"; then
11930 late_CFLAGS=$CFLAGS
11931 if test "$GCC" = yes; then
11932 CFLAGS="$CFLAGS --pedantic-errors"
11934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11935 /* end confdefs.h. */
11937 #include <X11/Xlib.h>
11938 #include <X11/Xresource.h>
11940 main ()
11942 Display *display;
11943 XrmDatabase db;
11944 char *res_name;
11945 char *res_class;
11946 XIMProc callback;
11947 XPointer *client_data;
11948 #ifndef __GNUC__
11949 /* If we're not using GCC, it's probably not XFree86, and this is
11950 probably right, but we can't use something like --pedantic-errors. */
11951 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
11952 char*, XIMProc, XPointer*);
11953 #endif
11954 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
11955 client_data);
11957 return 0;
11959 _ACEOF
11960 if ac_fn_c_try_compile "$LINENO"; then :
11961 emacs_cv_arg6_star=yes
11963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11964 if test "$emacs_cv_arg6_star" = yes; then
11965 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
11967 else
11968 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
11971 CFLAGS=$late_CFLAGS
11974 ### Start of font-backend (under any platform) section.
11975 # (nothing here yet -- this is a placeholder)
11976 ### End of font-backend (under any platform) section.
11978 ### Start of font-backend (under X11) section.
11979 if test "${HAVE_X11}" = "yes"; then
11981 succeeded=no
11983 # Extract the first word of "pkg-config", so it can be a program name with args.
11984 set dummy pkg-config; ac_word=$2
11985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11986 $as_echo_n "checking for $ac_word... " >&6; }
11987 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11988 $as_echo_n "(cached) " >&6
11989 else
11990 case $PKG_CONFIG in
11991 [\\/]* | ?:[\\/]*)
11992 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11996 for as_dir in $PATH
11998 IFS=$as_save_IFS
11999 test -z "$as_dir" && as_dir=.
12000 for ac_exec_ext in '' $ac_executable_extensions; do
12001 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12002 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12004 break 2
12006 done
12007 done
12008 IFS=$as_save_IFS
12010 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12012 esac
12014 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12015 if test -n "$PKG_CONFIG"; then
12016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12017 $as_echo "$PKG_CONFIG" >&6; }
12018 else
12019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12020 $as_echo "no" >&6; }
12025 if test "$PKG_CONFIG" = "no" ; then
12026 HAVE_FC=no
12027 else
12028 PKG_CONFIG_MIN_VERSION=0.9.0
12029 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
12031 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
12033 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
12034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12035 $as_echo "yes" >&6; }
12036 succeeded=yes
12038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_CFLAGS" >&5
12039 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
12040 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
12041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_CFLAGS" >&5
12042 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
12044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_LIBS" >&5
12045 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
12046 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
12047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_LIBS" >&5
12048 $as_echo "$FONTCONFIG_LIBS" >&6; }
12049 else
12050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12051 $as_echo "no" >&6; }
12052 FONTCONFIG_CFLAGS=""
12053 FONTCONFIG_LIBS=""
12054 ## If we have a custom action on failure, don't print errors, but
12055 ## do set a variable so people can do so.
12056 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
12062 else
12063 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12064 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12068 if test $succeeded = yes; then
12069 HAVE_FC=yes
12070 else
12071 HAVE_FC=no
12075 ## Use -lXft if available, unless `--with-xft=no'.
12076 HAVE_XFT=maybe
12077 if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then
12078 with_xft="no";
12080 if test "x${with_xft}" != "xno"; then
12083 succeeded=no
12085 # Extract the first word of "pkg-config", so it can be a program name with args.
12086 set dummy pkg-config; ac_word=$2
12087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12088 $as_echo_n "checking for $ac_word... " >&6; }
12089 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12090 $as_echo_n "(cached) " >&6
12091 else
12092 case $PKG_CONFIG in
12093 [\\/]* | ?:[\\/]*)
12094 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12098 for as_dir in $PATH
12100 IFS=$as_save_IFS
12101 test -z "$as_dir" && as_dir=.
12102 for ac_exec_ext in '' $ac_executable_extensions; do
12103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12104 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12106 break 2
12108 done
12109 done
12110 IFS=$as_save_IFS
12112 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12114 esac
12116 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12117 if test -n "$PKG_CONFIG"; then
12118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12119 $as_echo "$PKG_CONFIG" >&6; }
12120 else
12121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12122 $as_echo "no" >&6; }
12127 if test "$PKG_CONFIG" = "no" ; then
12128 HAVE_XFT=no
12129 else
12130 PKG_CONFIG_MIN_VERSION=0.9.0
12131 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
12133 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
12135 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
12136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12137 $as_echo "yes" >&6; }
12138 succeeded=yes
12140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_CFLAGS" >&5
12141 $as_echo_n "checking XFT_CFLAGS... " >&6; }
12142 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_CFLAGS" >&5
12144 $as_echo "$XFT_CFLAGS" >&6; }
12146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_LIBS" >&5
12147 $as_echo_n "checking XFT_LIBS... " >&6; }
12148 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_LIBS" >&5
12150 $as_echo "$XFT_LIBS" >&6; }
12151 else
12152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12153 $as_echo "no" >&6; }
12154 XFT_CFLAGS=""
12155 XFT_LIBS=""
12156 ## If we have a custom action on failure, don't print errors, but
12157 ## do set a variable so people can do so.
12158 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
12164 else
12165 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12166 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12170 if test $succeeded = yes; then
12172 else
12173 HAVE_XFT=no
12176 ## Because xftfont.c uses XRenderQueryExtension, we also
12177 ## need to link to -lXrender.
12178 HAVE_XRENDER=no
12179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
12180 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
12181 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
12182 $as_echo_n "(cached) " >&6
12183 else
12184 ac_check_lib_save_LIBS=$LIBS
12185 LIBS="-lXrender $LIBS"
12186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12187 /* end confdefs.h. */
12189 /* Override any GCC internal prototype to avoid an error.
12190 Use char because int might match the return type of a GCC
12191 builtin and then its argument prototype would still apply. */
12192 #ifdef __cplusplus
12193 extern "C"
12194 #endif
12195 char XRenderQueryExtension ();
12197 main ()
12199 return XRenderQueryExtension ();
12201 return 0;
12203 _ACEOF
12204 if ac_fn_c_try_link "$LINENO"; then :
12205 ac_cv_lib_Xrender_XRenderQueryExtension=yes
12206 else
12207 ac_cv_lib_Xrender_XRenderQueryExtension=no
12209 rm -f core conftest.err conftest.$ac_objext \
12210 conftest$ac_exeext conftest.$ac_ext
12211 LIBS=$ac_check_lib_save_LIBS
12213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
12214 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
12215 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x""yes; then :
12216 HAVE_XRENDER=yes
12219 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
12220 OLD_CPPFLAGS="$CPPFLAGS"
12221 OLD_CFLAGS="$CFLAGS"
12222 OLD_LIBS="$LIBS"
12223 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
12224 CFLAGS="$CFLAGS $XFT_CFLAGS"
12225 XFT_LIBS="-lXrender $XFT_LIBS"
12226 LIBS="$XFT_LIBS $LIBS"
12227 ac_fn_c_check_header_mongrel "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
12228 if test "x$ac_cv_header_X11_Xft_Xft_h" = x""yes; then :
12229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
12230 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
12231 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then :
12232 $as_echo_n "(cached) " >&6
12233 else
12234 ac_check_lib_save_LIBS=$LIBS
12235 LIBS="-lXft $XFT_LIBS $LIBS"
12236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12237 /* end confdefs.h. */
12239 /* Override any GCC internal prototype to avoid an error.
12240 Use char because int might match the return type of a GCC
12241 builtin and then its argument prototype would still apply. */
12242 #ifdef __cplusplus
12243 extern "C"
12244 #endif
12245 char XftFontOpen ();
12247 main ()
12249 return XftFontOpen ();
12251 return 0;
12253 _ACEOF
12254 if ac_fn_c_try_link "$LINENO"; then :
12255 ac_cv_lib_Xft_XftFontOpen=yes
12256 else
12257 ac_cv_lib_Xft_XftFontOpen=no
12259 rm -f core conftest.err conftest.$ac_objext \
12260 conftest$ac_exeext conftest.$ac_ext
12261 LIBS=$ac_check_lib_save_LIBS
12263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12264 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
12265 if test "x$ac_cv_lib_Xft_XftFontOpen" = x""yes; then :
12266 HAVE_XFT=yes
12273 if test "${HAVE_XFT}" = "yes"; then
12275 $as_echo "#define HAVE_XFT 1" >>confdefs.h
12278 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
12279 else
12280 CPPFLAGS="$OLD_CPPFLAGS"
12281 CFLAGS="$OLD_CFLAGS"
12282 LIBS="$OLD_LIBS"
12283 fi # "${HAVE_XFT}" = "yes"
12284 fi # "$HAVE_XFT" != no
12285 fi # "x${with_xft}" != "xno"
12287 ## We used to allow building with FreeType and without Xft.
12288 ## However, the ftx font backend driver is not in good shape.
12289 if test "$HAVE_XFT" != "yes"; then
12290 HAVE_XFT=no
12291 HAVE_FREETYPE=no
12292 else
12294 succeeded=no
12296 # Extract the first word of "pkg-config", so it can be a program name with args.
12297 set dummy pkg-config; ac_word=$2
12298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12299 $as_echo_n "checking for $ac_word... " >&6; }
12300 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12301 $as_echo_n "(cached) " >&6
12302 else
12303 case $PKG_CONFIG in
12304 [\\/]* | ?:[\\/]*)
12305 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12309 for as_dir in $PATH
12311 IFS=$as_save_IFS
12312 test -z "$as_dir" && as_dir=.
12313 for ac_exec_ext in '' $ac_executable_extensions; do
12314 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12315 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12316 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12317 break 2
12319 done
12320 done
12321 IFS=$as_save_IFS
12323 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12325 esac
12327 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12328 if test -n "$PKG_CONFIG"; then
12329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12330 $as_echo "$PKG_CONFIG" >&6; }
12331 else
12332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12333 $as_echo "no" >&6; }
12338 if test "$PKG_CONFIG" = "no" ; then
12339 HAVE_FREETYPE=no
12340 else
12341 PKG_CONFIG_MIN_VERSION=0.9.0
12342 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype2" >&5
12344 $as_echo_n "checking for freetype2... " >&6; }
12346 if $PKG_CONFIG --exists "freetype2" 2>&5; then
12347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12348 $as_echo "yes" >&6; }
12349 succeeded=yes
12351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FREETYPE_CFLAGS" >&5
12352 $as_echo_n "checking FREETYPE_CFLAGS... " >&6; }
12353 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2"|sed -e 's,///*,/,g'`
12354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_CFLAGS" >&5
12355 $as_echo "$FREETYPE_CFLAGS" >&6; }
12357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FREETYPE_LIBS" >&5
12358 $as_echo_n "checking FREETYPE_LIBS... " >&6; }
12359 FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2"|sed -e 's,///*,/,g'`
12360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIBS" >&5
12361 $as_echo "$FREETYPE_LIBS" >&6; }
12362 else
12363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12364 $as_echo "no" >&6; }
12365 FREETYPE_CFLAGS=""
12366 FREETYPE_LIBS=""
12367 ## If we have a custom action on failure, don't print errors, but
12368 ## do set a variable so people can do so.
12369 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
12375 else
12376 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12377 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12381 if test $succeeded = yes; then
12382 HAVE_FREETYPE=yes
12383 else
12384 HAVE_FREETYPE=no
12388 test "$HAVE_FREETYPE" = "no" && as_fn_error "libxft requires libfreetype" "$LINENO" 5
12391 HAVE_LIBOTF=no
12392 if test "${HAVE_FREETYPE}" = "yes"; then
12394 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
12396 if test "${with_libotf}" != "no"; then
12398 succeeded=no
12400 # Extract the first word of "pkg-config", so it can be a program name with args.
12401 set dummy pkg-config; ac_word=$2
12402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12403 $as_echo_n "checking for $ac_word... " >&6; }
12404 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12405 $as_echo_n "(cached) " >&6
12406 else
12407 case $PKG_CONFIG in
12408 [\\/]* | ?:[\\/]*)
12409 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12413 for as_dir in $PATH
12415 IFS=$as_save_IFS
12416 test -z "$as_dir" && as_dir=.
12417 for ac_exec_ext in '' $ac_executable_extensions; do
12418 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12419 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12421 break 2
12423 done
12424 done
12425 IFS=$as_save_IFS
12427 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12429 esac
12431 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12432 if test -n "$PKG_CONFIG"; then
12433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12434 $as_echo "$PKG_CONFIG" >&6; }
12435 else
12436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12437 $as_echo "no" >&6; }
12442 if test "$PKG_CONFIG" = "no" ; then
12443 HAVE_LIBOTF=no
12444 else
12445 PKG_CONFIG_MIN_VERSION=0.9.0
12446 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
12448 $as_echo_n "checking for libotf... " >&6; }
12450 if $PKG_CONFIG --exists "libotf" 2>&5; then
12451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12452 $as_echo "yes" >&6; }
12453 succeeded=yes
12455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_CFLAGS" >&5
12456 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
12457 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
12458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_CFLAGS" >&5
12459 $as_echo "$LIBOTF_CFLAGS" >&6; }
12461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_LIBS" >&5
12462 $as_echo_n "checking LIBOTF_LIBS... " >&6; }
12463 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
12464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_LIBS" >&5
12465 $as_echo "$LIBOTF_LIBS" >&6; }
12466 else
12467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12468 $as_echo "no" >&6; }
12469 LIBOTF_CFLAGS=""
12470 LIBOTF_LIBS=""
12471 ## If we have a custom action on failure, don't print errors, but
12472 ## do set a variable so people can do so.
12473 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
12479 else
12480 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12481 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12485 if test $succeeded = yes; then
12486 HAVE_LIBOTF=yes
12487 else
12488 HAVE_LIBOTF=no
12491 if test "$HAVE_LIBOTF" = "yes"; then
12493 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
12495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
12496 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
12497 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then :
12498 $as_echo_n "(cached) " >&6
12499 else
12500 ac_check_lib_save_LIBS=$LIBS
12501 LIBS="-lotf $LIBS"
12502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12503 /* end confdefs.h. */
12505 /* Override any GCC internal prototype to avoid an error.
12506 Use char because int might match the return type of a GCC
12507 builtin and then its argument prototype would still apply. */
12508 #ifdef __cplusplus
12509 extern "C"
12510 #endif
12511 char OTF_get_variation_glyphs ();
12513 main ()
12515 return OTF_get_variation_glyphs ();
12517 return 0;
12519 _ACEOF
12520 if ac_fn_c_try_link "$LINENO"; then :
12521 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
12522 else
12523 ac_cv_lib_otf_OTF_get_variation_glyphs=no
12525 rm -f core conftest.err conftest.$ac_objext \
12526 conftest$ac_exeext conftest.$ac_ext
12527 LIBS=$ac_check_lib_save_LIBS
12529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
12530 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
12531 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x""yes; then :
12532 HAVE_OTF_GET_VARIATION_GLYPHS=yes
12533 else
12534 HAVE_OTF_GET_VARIATION_GLYPHS=no
12537 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
12539 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
12546 HAVE_M17N_FLT=no
12547 if test "${HAVE_LIBOTF}" = yes; then
12548 if test "${with_m17n_flt}" != "no"; then
12550 succeeded=no
12552 # Extract the first word of "pkg-config", so it can be a program name with args.
12553 set dummy pkg-config; ac_word=$2
12554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12555 $as_echo_n "checking for $ac_word... " >&6; }
12556 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12557 $as_echo_n "(cached) " >&6
12558 else
12559 case $PKG_CONFIG in
12560 [\\/]* | ?:[\\/]*)
12561 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12565 for as_dir in $PATH
12567 IFS=$as_save_IFS
12568 test -z "$as_dir" && as_dir=.
12569 for ac_exec_ext in '' $ac_executable_extensions; do
12570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12571 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12573 break 2
12575 done
12576 done
12577 IFS=$as_save_IFS
12579 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12581 esac
12583 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12584 if test -n "$PKG_CONFIG"; then
12585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12586 $as_echo "$PKG_CONFIG" >&6; }
12587 else
12588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12589 $as_echo "no" >&6; }
12594 if test "$PKG_CONFIG" = "no" ; then
12595 HAVE_M17N_FLT=no
12596 else
12597 PKG_CONFIG_MIN_VERSION=0.9.0
12598 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
12600 $as_echo_n "checking for m17n-flt... " >&6; }
12602 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
12603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12604 $as_echo "yes" >&6; }
12605 succeeded=yes
12607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_CFLAGS" >&5
12608 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
12609 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
12610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_CFLAGS" >&5
12611 $as_echo "$M17N_FLT_CFLAGS" >&6; }
12613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_LIBS" >&5
12614 $as_echo_n "checking M17N_FLT_LIBS... " >&6; }
12615 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
12616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_LIBS" >&5
12617 $as_echo "$M17N_FLT_LIBS" >&6; }
12618 else
12619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12620 $as_echo "no" >&6; }
12621 M17N_FLT_CFLAGS=""
12622 M17N_FLT_LIBS=""
12623 ## If we have a custom action on failure, don't print errors, but
12624 ## do set a variable so people can do so.
12625 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
12631 else
12632 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12633 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12637 if test $succeeded = yes; then
12638 HAVE_M17N_FLT=yes
12639 else
12640 HAVE_M17N_FLT=no
12643 if test "$HAVE_M17N_FLT" = "yes"; then
12645 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
12650 else
12651 HAVE_XFT=no
12652 HAVE_FREETYPE=no
12653 HAVE_LIBOTF=no
12654 HAVE_M17N_FLT=no
12657 ### End of font-backend (under X11) section.
12668 ### Use -lXpm if available, unless `--with-xpm=no'.
12669 HAVE_XPM=no
12670 LIBXPM=
12671 if test "${HAVE_X11}" = "yes"; then
12672 if test "${with_xpm}" != "no"; then
12673 ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
12674 if test "x$ac_cv_header_X11_xpm_h" = x""yes; then :
12675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
12676 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
12677 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then :
12678 $as_echo_n "(cached) " >&6
12679 else
12680 ac_check_lib_save_LIBS=$LIBS
12681 LIBS="-lXpm -lX11 $LIBS"
12682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12683 /* end confdefs.h. */
12685 /* Override any GCC internal prototype to avoid an error.
12686 Use char because int might match the return type of a GCC
12687 builtin and then its argument prototype would still apply. */
12688 #ifdef __cplusplus
12689 extern "C"
12690 #endif
12691 char XpmReadFileToPixmap ();
12693 main ()
12695 return XpmReadFileToPixmap ();
12697 return 0;
12699 _ACEOF
12700 if ac_fn_c_try_link "$LINENO"; then :
12701 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
12702 else
12703 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
12705 rm -f core conftest.err conftest.$ac_objext \
12706 conftest$ac_exeext conftest.$ac_ext
12707 LIBS=$ac_check_lib_save_LIBS
12709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
12710 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
12711 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x""yes; then :
12712 HAVE_XPM=yes
12718 if test "${HAVE_XPM}" = "yes"; then
12719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
12720 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
12721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12722 /* end confdefs.h. */
12723 #include "X11/xpm.h"
12724 #ifndef XpmReturnAllocPixels
12725 no_return_alloc_pixels
12726 #endif
12728 _ACEOF
12729 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12730 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then :
12731 HAVE_XPM=no
12732 else
12733 HAVE_XPM=yes
12735 rm -f conftest*
12738 if test "${HAVE_XPM}" = "yes"; then
12739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12740 $as_echo "yes" >&6; }
12741 else
12742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12743 $as_echo "no" >&6; }
12748 if test "${HAVE_XPM}" = "yes"; then
12750 $as_echo "#define HAVE_XPM 1" >>confdefs.h
12752 LIBXPM=-lXpm
12757 ### Use -ljpeg if available, unless `--with-jpeg=no'.
12758 HAVE_JPEG=no
12759 LIBJPEG=
12760 if test "${HAVE_X11}" = "yes"; then
12761 if test "${with_jpeg}" != "no"; then
12762 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
12763 if test "x$ac_cv_header_jerror_h" = x""yes; then :
12764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
12765 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
12766 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then :
12767 $as_echo_n "(cached) " >&6
12768 else
12769 ac_check_lib_save_LIBS=$LIBS
12770 LIBS="-ljpeg $LIBS"
12771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12772 /* end confdefs.h. */
12774 /* Override any GCC internal prototype to avoid an error.
12775 Use char because int might match the return type of a GCC
12776 builtin and then its argument prototype would still apply. */
12777 #ifdef __cplusplus
12778 extern "C"
12779 #endif
12780 char jpeg_destroy_compress ();
12782 main ()
12784 return jpeg_destroy_compress ();
12786 return 0;
12788 _ACEOF
12789 if ac_fn_c_try_link "$LINENO"; then :
12790 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
12791 else
12792 ac_cv_lib_jpeg_jpeg_destroy_compress=no
12794 rm -f core conftest.err conftest.$ac_objext \
12795 conftest$ac_exeext conftest.$ac_ext
12796 LIBS=$ac_check_lib_save_LIBS
12798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
12799 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
12800 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x""yes; then :
12801 HAVE_JPEG=yes
12809 if test "${HAVE_JPEG}" = "yes"; then
12810 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
12812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12813 /* end confdefs.h. */
12814 #include <jpeglib.h>
12815 version=JPEG_LIB_VERSION
12817 _ACEOF
12818 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12819 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then :
12820 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
12822 else
12823 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
12824 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
12825 HAVE_JPEG=no
12827 rm -f conftest*
12830 if test "${HAVE_JPEG}" = "yes"; then
12831 LIBJPEG=-ljpeg
12836 ### Use -lpng if available, unless `--with-png=no'.
12837 HAVE_PNG=no
12838 LIBPNG=
12839 if test "${HAVE_X11}" = "yes"; then
12840 if test "${with_png}" != "no"; then
12841 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
12842 # in /usr/include/libpng.
12843 for ac_header in png.h libpng/png.h
12844 do :
12845 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12846 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12847 eval as_val=\$$as_ac_Header
12848 if test "x$as_val" = x""yes; then :
12849 cat >>confdefs.h <<_ACEOF
12850 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12851 _ACEOF
12855 done
12857 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
12858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
12859 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
12860 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then :
12861 $as_echo_n "(cached) " >&6
12862 else
12863 ac_check_lib_save_LIBS=$LIBS
12864 LIBS="-lpng -lz -lm $LIBS"
12865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12866 /* end confdefs.h. */
12868 /* Override any GCC internal prototype to avoid an error.
12869 Use char because int might match the return type of a GCC
12870 builtin and then its argument prototype would still apply. */
12871 #ifdef __cplusplus
12872 extern "C"
12873 #endif
12874 char png_get_channels ();
12876 main ()
12878 return png_get_channels ();
12880 return 0;
12882 _ACEOF
12883 if ac_fn_c_try_link "$LINENO"; then :
12884 ac_cv_lib_png_png_get_channels=yes
12885 else
12886 ac_cv_lib_png_png_get_channels=no
12888 rm -f core conftest.err conftest.$ac_objext \
12889 conftest$ac_exeext conftest.$ac_ext
12890 LIBS=$ac_check_lib_save_LIBS
12892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
12893 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
12894 if test "x$ac_cv_lib_png_png_get_channels" = x""yes; then :
12895 HAVE_PNG=yes
12901 if test "${HAVE_PNG}" = "yes"; then
12903 $as_echo "#define HAVE_PNG 1" >>confdefs.h
12905 LIBPNG="-lpng -lz -lm"
12910 ### Use -ltiff if available, unless `--with-tiff=no'.
12911 HAVE_TIFF=no
12912 LIBTIFF=
12913 if test "${HAVE_X11}" = "yes"; then
12914 if test "${with_tiff}" != "no"; then
12915 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
12916 if test "x$ac_cv_header_tiffio_h" = x""yes; then :
12917 tifflibs="-lz -lm"
12918 # At least one tiff package requires the jpeg library.
12919 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
12920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
12921 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
12922 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then :
12923 $as_echo_n "(cached) " >&6
12924 else
12925 ac_check_lib_save_LIBS=$LIBS
12926 LIBS="-ltiff $tifflibs $LIBS"
12927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12928 /* end confdefs.h. */
12930 /* Override any GCC internal prototype to avoid an error.
12931 Use char because int might match the return type of a GCC
12932 builtin and then its argument prototype would still apply. */
12933 #ifdef __cplusplus
12934 extern "C"
12935 #endif
12936 char TIFFGetVersion ();
12938 main ()
12940 return TIFFGetVersion ();
12942 return 0;
12944 _ACEOF
12945 if ac_fn_c_try_link "$LINENO"; then :
12946 ac_cv_lib_tiff_TIFFGetVersion=yes
12947 else
12948 ac_cv_lib_tiff_TIFFGetVersion=no
12950 rm -f core conftest.err conftest.$ac_objext \
12951 conftest$ac_exeext conftest.$ac_ext
12952 LIBS=$ac_check_lib_save_LIBS
12954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
12955 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
12956 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x""yes; then :
12957 HAVE_TIFF=yes
12965 if test "${HAVE_TIFF}" = "yes"; then
12967 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
12969 LIBTIFF=-ltiff
12974 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
12975 HAVE_GIF=no
12976 LIBGIF=
12977 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
12978 ac_fn_c_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
12979 if test "x$ac_cv_header_gif_lib_h" = x""yes; then :
12980 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
12981 # Earlier versions can crash Emacs.
12982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
12983 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
12984 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then :
12985 $as_echo_n "(cached) " >&6
12986 else
12987 ac_check_lib_save_LIBS=$LIBS
12988 LIBS="-lgif $LIBS"
12989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12990 /* end confdefs.h. */
12992 /* Override any GCC internal prototype to avoid an error.
12993 Use char because int might match the return type of a GCC
12994 builtin and then its argument prototype would still apply. */
12995 #ifdef __cplusplus
12996 extern "C"
12997 #endif
12998 char EGifPutExtensionLast ();
13000 main ()
13002 return EGifPutExtensionLast ();
13004 return 0;
13006 _ACEOF
13007 if ac_fn_c_try_link "$LINENO"; then :
13008 ac_cv_lib_gif_EGifPutExtensionLast=yes
13009 else
13010 ac_cv_lib_gif_EGifPutExtensionLast=no
13012 rm -f core conftest.err conftest.$ac_objext \
13013 conftest$ac_exeext conftest.$ac_ext
13014 LIBS=$ac_check_lib_save_LIBS
13016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
13017 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
13018 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x""yes; then :
13019 HAVE_GIF=yes
13020 else
13021 HAVE_GIF=maybe
13028 if test "$HAVE_GIF" = yes; then
13029 LIBGIF=-lgif
13030 elif test "$HAVE_GIF" = maybe; then
13031 # If gif_lib.h but no libgif, try libungif.
13032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
13033 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
13034 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then :
13035 $as_echo_n "(cached) " >&6
13036 else
13037 ac_check_lib_save_LIBS=$LIBS
13038 LIBS="-lungif $LIBS"
13039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13040 /* end confdefs.h. */
13042 /* Override any GCC internal prototype to avoid an error.
13043 Use char because int might match the return type of a GCC
13044 builtin and then its argument prototype would still apply. */
13045 #ifdef __cplusplus
13046 extern "C"
13047 #endif
13048 char EGifPutExtensionLast ();
13050 main ()
13052 return EGifPutExtensionLast ();
13054 return 0;
13056 _ACEOF
13057 if ac_fn_c_try_link "$LINENO"; then :
13058 ac_cv_lib_ungif_EGifPutExtensionLast=yes
13059 else
13060 ac_cv_lib_ungif_EGifPutExtensionLast=no
13062 rm -f core conftest.err conftest.$ac_objext \
13063 conftest$ac_exeext conftest.$ac_ext
13064 LIBS=$ac_check_lib_save_LIBS
13066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
13067 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
13068 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x""yes; then :
13069 HAVE_GIF=yes
13070 else
13071 HAVE_GIF=no
13074 test "$HAVE_GIF" = yes && LIBGIF=-lungif
13077 if test "${HAVE_GIF}" = "yes"; then
13079 $as_echo "#define HAVE_GIF 1" >>confdefs.h
13085 if test "${HAVE_X11}" = "yes"; then
13086 MISSING=""
13087 WITH_NO=""
13088 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
13089 MISSING="libXpm" && WITH_NO="--with-xpm=no"
13090 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
13091 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
13092 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
13093 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
13094 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
13095 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
13096 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
13097 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
13099 if test "X${MISSING}" != X; then
13100 as_fn_error "The following required libraries were not found:
13101 $MISSING
13102 Maybe some development libraries/packages are missing?
13103 If you don't want to link with them give
13104 $WITH_NO
13105 as options to configure" "$LINENO" 5
13109 ### Use -lgpm if available, unless `--with-gpm=no'.
13110 HAVE_GPM=no
13111 LIBGPM=
13112 if test "${with_gpm}" != "no"; then
13113 ac_fn_c_check_header_mongrel "$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
13114 if test "x$ac_cv_header_gpm_h" = x""yes; then :
13115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
13116 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
13117 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then :
13118 $as_echo_n "(cached) " >&6
13119 else
13120 ac_check_lib_save_LIBS=$LIBS
13121 LIBS="-lgpm $LIBS"
13122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13123 /* end confdefs.h. */
13125 /* Override any GCC internal prototype to avoid an error.
13126 Use char because int might match the return type of a GCC
13127 builtin and then its argument prototype would still apply. */
13128 #ifdef __cplusplus
13129 extern "C"
13130 #endif
13131 char Gpm_Open ();
13133 main ()
13135 return Gpm_Open ();
13137 return 0;
13139 _ACEOF
13140 if ac_fn_c_try_link "$LINENO"; then :
13141 ac_cv_lib_gpm_Gpm_Open=yes
13142 else
13143 ac_cv_lib_gpm_Gpm_Open=no
13145 rm -f core conftest.err conftest.$ac_objext \
13146 conftest$ac_exeext conftest.$ac_ext
13147 LIBS=$ac_check_lib_save_LIBS
13149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
13150 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
13151 if test "x$ac_cv_lib_gpm_Gpm_Open" = x""yes; then :
13152 HAVE_GPM=yes
13159 if test "${HAVE_GPM}" = "yes"; then
13161 $as_echo "#define HAVE_GPM 1" >>confdefs.h
13163 LIBGPM=-lgpm
13168 ac_fn_c_check_header_mongrel "$LINENO" "malloc/malloc.h" "ac_cv_header_malloc_malloc_h" "$ac_includes_default"
13169 if test "x$ac_cv_header_malloc_malloc_h" = x""yes; then :
13171 $as_echo "#define HAVE_MALLOC_MALLOC_H 1" >>confdefs.h
13177 C_SWITCH_X_SYSTEM=
13178 ### Use NeXTstep API to implement GUI.
13179 if test "${HAVE_NS}" = "yes"; then
13181 $as_echo "#define HAVE_NS 1" >>confdefs.h
13183 if test "${NS_IMPL_COCOA}" = "yes"; then
13185 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
13187 GNU_OBJC_CFLAGS=
13189 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
13191 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
13193 # See also .m.o rule in Makefile.in */
13194 # FIXME: are all these flags really needed? Document here why. */
13195 C_SWITCH_X_SYSTEM="-D_REENTRANT -fPIC -fno-strict-aliasing"
13196 GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
13198 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
13200 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
13203 # We also have mouse menus.
13204 HAVE_MENUS=yes
13205 OTHER_FILES=ns-app
13209 ### Use session management (-lSM -lICE) if available
13210 HAVE_X_SM=no
13211 LIBXSM=
13212 if test "${HAVE_X11}" = "yes"; then
13213 ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
13214 if test "x$ac_cv_header_X11_SM_SMlib_h" = x""yes; then :
13215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
13216 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
13217 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then :
13218 $as_echo_n "(cached) " >&6
13219 else
13220 ac_check_lib_save_LIBS=$LIBS
13221 LIBS="-lSM -lICE $LIBS"
13222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13223 /* end confdefs.h. */
13225 /* Override any GCC internal prototype to avoid an error.
13226 Use char because int might match the return type of a GCC
13227 builtin and then its argument prototype would still apply. */
13228 #ifdef __cplusplus
13229 extern "C"
13230 #endif
13231 char SmcOpenConnection ();
13233 main ()
13235 return SmcOpenConnection ();
13237 return 0;
13239 _ACEOF
13240 if ac_fn_c_try_link "$LINENO"; then :
13241 ac_cv_lib_SM_SmcOpenConnection=yes
13242 else
13243 ac_cv_lib_SM_SmcOpenConnection=no
13245 rm -f core conftest.err conftest.$ac_objext \
13246 conftest$ac_exeext conftest.$ac_ext
13247 LIBS=$ac_check_lib_save_LIBS
13249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
13250 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
13251 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x""yes; then :
13252 HAVE_X_SM=yes
13259 if test "${HAVE_X_SM}" = "yes"; then
13261 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
13263 LIBXSM="-lSM -lICE"
13264 case "$LIBS" in
13265 *-lSM*) ;;
13266 *) LIBS="$LIBXSM $LIBS" ;;
13267 esac
13272 ### Use libxml (-lxml2) if available
13273 if test "${with_xml2}" != "no"; then
13274 ### I'm not sure what the version number should be, so I just guessed.
13276 succeeded=no
13278 # Extract the first word of "pkg-config", so it can be a program name with args.
13279 set dummy pkg-config; ac_word=$2
13280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13281 $as_echo_n "checking for $ac_word... " >&6; }
13282 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
13283 $as_echo_n "(cached) " >&6
13284 else
13285 case $PKG_CONFIG in
13286 [\\/]* | ?:[\\/]*)
13287 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13291 for as_dir in $PATH
13293 IFS=$as_save_IFS
13294 test -z "$as_dir" && as_dir=.
13295 for ac_exec_ext in '' $ac_executable_extensions; do
13296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13297 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13299 break 2
13301 done
13302 done
13303 IFS=$as_save_IFS
13305 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13307 esac
13309 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13310 if test -n "$PKG_CONFIG"; then
13311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13312 $as_echo "$PKG_CONFIG" >&6; }
13313 else
13314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13315 $as_echo "no" >&6; }
13320 if test "$PKG_CONFIG" = "no" ; then
13321 HAVE_LIBXML2=no
13322 else
13323 PKG_CONFIG_MIN_VERSION=0.9.0
13324 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.6.17" >&5
13326 $as_echo_n "checking for libxml-2.0 > 2.6.17... " >&6; }
13328 if $PKG_CONFIG --exists "libxml-2.0 > 2.6.17" 2>&5; then
13329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13330 $as_echo "yes" >&6; }
13331 succeeded=yes
13333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_CFLAGS" >&5
13334 $as_echo_n "checking LIBXML2_CFLAGS... " >&6; }
13335 LIBXML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 > 2.6.17"|sed -e 's,///*,/,g'`
13336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_CFLAGS" >&5
13337 $as_echo "$LIBXML2_CFLAGS" >&6; }
13339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_LIBS" >&5
13340 $as_echo_n "checking LIBXML2_LIBS... " >&6; }
13341 LIBXML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0 > 2.6.17"|sed -e 's,///*,/,g'`
13342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_LIBS" >&5
13343 $as_echo "$LIBXML2_LIBS" >&6; }
13344 else
13345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13346 $as_echo "no" >&6; }
13347 LIBXML2_CFLAGS=""
13348 LIBXML2_LIBS=""
13349 ## If we have a custom action on failure, don't print errors, but
13350 ## do set a variable so people can do so.
13351 LIBXML2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 > 2.6.17"`
13357 else
13358 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13359 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13363 if test $succeeded = yes; then
13364 HAVE_LIBXML2=yes
13365 else
13366 HAVE_LIBXML2=no
13369 if test "${HAVE_LIBXML2}" = "yes"; then
13370 LIBS="$LIBXML2_LIBS $LIBS"
13371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
13372 $as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
13373 if test "${ac_cv_lib_xml2_htmlReadMemory+set}" = set; then :
13374 $as_echo_n "(cached) " >&6
13375 else
13376 ac_check_lib_save_LIBS=$LIBS
13377 LIBS="-lxml2 $LIBS"
13378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13379 /* end confdefs.h. */
13381 /* Override any GCC internal prototype to avoid an error.
13382 Use char because int might match the return type of a GCC
13383 builtin and then its argument prototype would still apply. */
13384 #ifdef __cplusplus
13385 extern "C"
13386 #endif
13387 char htmlReadMemory ();
13389 main ()
13391 return htmlReadMemory ();
13393 return 0;
13395 _ACEOF
13396 if ac_fn_c_try_link "$LINENO"; then :
13397 ac_cv_lib_xml2_htmlReadMemory=yes
13398 else
13399 ac_cv_lib_xml2_htmlReadMemory=no
13401 rm -f core conftest.err conftest.$ac_objext \
13402 conftest$ac_exeext conftest.$ac_ext
13403 LIBS=$ac_check_lib_save_LIBS
13405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
13406 $as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
13407 if test "x$ac_cv_lib_xml2_htmlReadMemory" = x""yes; then :
13408 HAVE_LIBXML2=yes
13409 else
13410 HAVE_LIBXML2=no
13413 if test "${HAVE_LIBXML2}" = "yes"; then
13415 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
13417 else
13418 LIBXML2_LIBS=""
13419 LIBXML2_CFLAGS=""
13426 # If netdb.h doesn't declare h_errno, we must declare it by hand.
13427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
13428 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
13429 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then :
13430 $as_echo_n "(cached) " >&6
13431 else
13432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13433 /* end confdefs.h. */
13434 #include <netdb.h>
13436 main ()
13438 return h_errno;
13440 return 0;
13442 _ACEOF
13443 if ac_fn_c_try_link "$LINENO"; then :
13444 emacs_cv_netdb_declares_h_errno=yes
13445 else
13446 emacs_cv_netdb_declares_h_errno=no
13448 rm -f core conftest.err conftest.$ac_objext \
13449 conftest$ac_exeext conftest.$ac_ext
13451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
13452 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
13453 if test $emacs_cv_netdb_declares_h_errno = yes; then
13455 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
13459 # fmod, logb, and frexp are found in -lm on most systems.
13460 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
13461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
13462 $as_echo_n "checking for sqrt in -lm... " >&6; }
13463 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
13464 $as_echo_n "(cached) " >&6
13465 else
13466 ac_check_lib_save_LIBS=$LIBS
13467 LIBS="-lm $LIBS"
13468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13469 /* end confdefs.h. */
13471 /* Override any GCC internal prototype to avoid an error.
13472 Use char because int might match the return type of a GCC
13473 builtin and then its argument prototype would still apply. */
13474 #ifdef __cplusplus
13475 extern "C"
13476 #endif
13477 char sqrt ();
13479 main ()
13481 return sqrt ();
13483 return 0;
13485 _ACEOF
13486 if ac_fn_c_try_link "$LINENO"; then :
13487 ac_cv_lib_m_sqrt=yes
13488 else
13489 ac_cv_lib_m_sqrt=no
13491 rm -f core conftest.err conftest.$ac_objext \
13492 conftest$ac_exeext conftest.$ac_ext
13493 LIBS=$ac_check_lib_save_LIBS
13495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
13496 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
13497 if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
13498 cat >>confdefs.h <<_ACEOF
13499 #define HAVE_LIBM 1
13500 _ACEOF
13502 LIBS="-lm $LIBS"
13507 # Check for mail-locking functions in a "mail" library. Probably this should
13508 # have the same check as for liblockfile below.
13509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
13510 $as_echo_n "checking for maillock in -lmail... " >&6; }
13511 if test "${ac_cv_lib_mail_maillock+set}" = set; then :
13512 $as_echo_n "(cached) " >&6
13513 else
13514 ac_check_lib_save_LIBS=$LIBS
13515 LIBS="-lmail $LIBS"
13516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13517 /* end confdefs.h. */
13519 /* Override any GCC internal prototype to avoid an error.
13520 Use char because int might match the return type of a GCC
13521 builtin and then its argument prototype would still apply. */
13522 #ifdef __cplusplus
13523 extern "C"
13524 #endif
13525 char maillock ();
13527 main ()
13529 return maillock ();
13531 return 0;
13533 _ACEOF
13534 if ac_fn_c_try_link "$LINENO"; then :
13535 ac_cv_lib_mail_maillock=yes
13536 else
13537 ac_cv_lib_mail_maillock=no
13539 rm -f core conftest.err conftest.$ac_objext \
13540 conftest$ac_exeext conftest.$ac_ext
13541 LIBS=$ac_check_lib_save_LIBS
13543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
13544 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
13545 if test "x$ac_cv_lib_mail_maillock" = x""yes; then :
13546 have_mail=yes
13547 else
13548 have_mail=no
13551 if test $have_mail = yes; then
13552 LIBS_MAIL=-lmail
13553 LIBS="$LIBS_MAIL $LIBS"
13555 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
13557 else
13558 LIBS_MAIL=
13560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
13561 $as_echo_n "checking for maillock in -llockfile... " >&6; }
13562 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then :
13563 $as_echo_n "(cached) " >&6
13564 else
13565 ac_check_lib_save_LIBS=$LIBS
13566 LIBS="-llockfile $LIBS"
13567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13568 /* end confdefs.h. */
13570 /* Override any GCC internal prototype to avoid an error.
13571 Use char because int might match the return type of a GCC
13572 builtin and then its argument prototype would still apply. */
13573 #ifdef __cplusplus
13574 extern "C"
13575 #endif
13576 char maillock ();
13578 main ()
13580 return maillock ();
13582 return 0;
13584 _ACEOF
13585 if ac_fn_c_try_link "$LINENO"; then :
13586 ac_cv_lib_lockfile_maillock=yes
13587 else
13588 ac_cv_lib_lockfile_maillock=no
13590 rm -f core conftest.err conftest.$ac_objext \
13591 conftest$ac_exeext conftest.$ac_ext
13592 LIBS=$ac_check_lib_save_LIBS
13594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
13595 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
13596 if test "x$ac_cv_lib_lockfile_maillock" = x""yes; then :
13597 have_lockfile=yes
13598 else
13599 have_lockfile=no
13602 if test $have_lockfile = yes; then
13603 LIBS_MAIL=-llockfile
13604 LIBS="$LIBS_MAIL $LIBS"
13606 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
13608 else
13609 # If we have the shared liblockfile, assume we must use it for mail
13610 # locking (e.g. Debian). If we couldn't link against liblockfile
13611 # (no liblockfile.a installed), ensure that we don't need to.
13612 # Extract the first word of "liblockfile.so", so it can be a program name with args.
13613 set dummy liblockfile.so; ac_word=$2
13614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13615 $as_echo_n "checking for $ac_word... " >&6; }
13616 if test "${ac_cv_prog_liblockfile+set}" = set; then :
13617 $as_echo_n "(cached) " >&6
13618 else
13619 if test -n "$liblockfile"; then
13620 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
13621 else
13622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13623 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
13624 for as_dir in $as_dummy
13626 IFS=$as_save_IFS
13627 test -z "$as_dir" && as_dir=.
13628 for ac_exec_ext in '' $ac_executable_extensions; do
13629 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13630 ac_cv_prog_liblockfile="yes"
13631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13632 break 2
13634 done
13635 done
13636 IFS=$as_save_IFS
13638 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
13641 liblockfile=$ac_cv_prog_liblockfile
13642 if test -n "$liblockfile"; then
13643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
13644 $as_echo "$liblockfile" >&6; }
13645 else
13646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13647 $as_echo "no" >&6; }
13651 if test $ac_cv_prog_liblockfile = yes; then
13652 as_fn_error "Shared liblockfile found but can't link against it.
13653 This probably means that movemail could lose mail.
13654 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
13657 for ac_func in touchlock
13658 do :
13659 ac_fn_c_check_func "$LINENO" "touchlock" "ac_cv_func_touchlock"
13660 if test "x$ac_cv_func_touchlock" = x""yes; then :
13661 cat >>confdefs.h <<_ACEOF
13662 #define HAVE_TOUCHLOCK 1
13663 _ACEOF
13666 done
13668 for ac_header in maillock.h
13669 do :
13670 ac_fn_c_check_header_mongrel "$LINENO" "maillock.h" "ac_cv_header_maillock_h" "$ac_includes_default"
13671 if test "x$ac_cv_header_maillock_h" = x""yes; then :
13672 cat >>confdefs.h <<_ACEOF
13673 #define HAVE_MAILLOCK_H 1
13674 _ACEOF
13678 done
13682 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
13683 ## interlock access to the mail spool. The alternative is a lock file named
13684 ## /usr/spool/mail/$USER.lock.
13685 mail_lock=no
13686 case "$opsys" in
13687 aix4-2) mail_lock="lockf" ;;
13689 gnu|freebsd|netbsd|openbsd|darwin|irix6-5) mail_lock="flock" ;;
13691 ## On GNU/Linux systems, both methods are used by various mail programs.
13692 ## I assume most people are using newer mailers that have heard of flock.
13693 ## Change this if you need to.
13694 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
13695 ## configure gets the right answers, and that means *NOT* using flock.
13696 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
13697 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
13698 ## Debian maintainer hasn't provided a clean fix for Emacs.
13699 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
13700 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
13701 ## correct logic. -- fx
13702 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
13703 ## liblockfile is a Free Software replacement for libmail, used on
13704 ## Debian systems and elsewhere. -rfr.
13705 gnu-*)
13706 mail_lock="flock"
13707 if test $have_mail = yes || test $have_lockfile = yes; then
13708 test $ac_cv_header_maillock_h = yes && mail_lock=no
13711 esac
13713 BLESSMAIL_TARGET=
13714 case "$mail_lock" in
13715 flock)
13716 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
13719 lockf)
13720 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
13723 *) BLESSMAIL_TARGET="need-blessmail" ;;
13724 esac
13728 for ac_func in gethostname getdomainname \
13729 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
13730 random lrand48 logb frexp fmod rint cbrt ftime setsid \
13731 strerror fpathconf select euidaccess getpagesize tzset setlocale \
13732 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
13733 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm \
13734 sendto recvfrom getsockopt setsockopt getsockname getpeername \
13735 gai_strerror mkstemp getline getdelim mremap fsync sync \
13736 difftime mempcpy mblen mbrlen posix_memalign \
13737 cfmakeraw cfsetspeed isnan copysign __executable_start
13738 do :
13739 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13740 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13741 eval as_val=\$$as_ac_var
13742 if test "x$as_val" = x""yes; then :
13743 cat >>confdefs.h <<_ACEOF
13744 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13745 _ACEOF
13748 done
13751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unwind_init" >&5
13752 $as_echo_n "checking for __builtin_unwind_init... " >&6; }
13753 if test "${emacs_cv_func___builtin_unwind_init+set}" = set; then :
13754 $as_echo_n "(cached) " >&6
13755 else
13756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13757 /* end confdefs.h. */
13760 main ()
13762 __builtin_unwind_init ();
13764 return 0;
13766 _ACEOF
13767 if ac_fn_c_try_link "$LINENO"; then :
13768 emacs_cv_func___builtin_unwind_init=yes
13769 else
13770 emacs_cv_func___builtin_unwind_init=no
13772 rm -f core conftest.err conftest.$ac_objext \
13773 conftest$ac_exeext conftest.$ac_ext
13775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func___builtin_unwind_init" >&5
13776 $as_echo "$emacs_cv_func___builtin_unwind_init" >&6; }
13777 if test $emacs_cv_func___builtin_unwind_init = yes; then
13779 $as_echo "#define HAVE___BUILTIN_UNWIND_INIT 1" >>confdefs.h
13783 for ac_header in sys/un.h
13784 do :
13785 ac_fn_c_check_header_mongrel "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
13786 if test "x$ac_cv_header_sys_un_h" = x""yes; then :
13787 cat >>confdefs.h <<_ACEOF
13788 #define HAVE_SYS_UN_H 1
13789 _ACEOF
13793 done
13796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13797 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
13798 if test "${ac_cv_sys_largefile_source+set}" = set; then :
13799 $as_echo_n "(cached) " >&6
13800 else
13801 while :; do
13802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13803 /* end confdefs.h. */
13804 #include <sys/types.h> /* for off_t */
13805 #include <stdio.h>
13807 main ()
13809 int (*fp) (FILE *, off_t, int) = fseeko;
13810 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13812 return 0;
13814 _ACEOF
13815 if ac_fn_c_try_link "$LINENO"; then :
13816 ac_cv_sys_largefile_source=no; break
13818 rm -f core conftest.err conftest.$ac_objext \
13819 conftest$ac_exeext conftest.$ac_ext
13820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13821 /* end confdefs.h. */
13822 #define _LARGEFILE_SOURCE 1
13823 #include <sys/types.h> /* for off_t */
13824 #include <stdio.h>
13826 main ()
13828 int (*fp) (FILE *, off_t, int) = fseeko;
13829 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13831 return 0;
13833 _ACEOF
13834 if ac_fn_c_try_link "$LINENO"; then :
13835 ac_cv_sys_largefile_source=1; break
13837 rm -f core conftest.err conftest.$ac_objext \
13838 conftest$ac_exeext conftest.$ac_ext
13839 ac_cv_sys_largefile_source=unknown
13840 break
13841 done
13843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
13844 $as_echo "$ac_cv_sys_largefile_source" >&6; }
13845 case $ac_cv_sys_largefile_source in #(
13846 no | unknown) ;;
13848 cat >>confdefs.h <<_ACEOF
13849 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13850 _ACEOF
13852 esac
13853 rm -rf conftest*
13855 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13856 # in glibc 2.1.3, but that breaks too many other things.
13857 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13858 if test $ac_cv_sys_largefile_source != unknown; then
13860 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
13865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
13866 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
13867 if test "${ac_cv_func_getpgrp_void+set}" = set; then :
13868 $as_echo_n "(cached) " >&6
13869 else
13870 # Use it with a single arg.
13871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13872 /* end confdefs.h. */
13873 $ac_includes_default
13875 main ()
13877 getpgrp (0);
13879 return 0;
13881 _ACEOF
13882 if ac_fn_c_try_compile "$LINENO"; then :
13883 ac_cv_func_getpgrp_void=no
13884 else
13885 ac_cv_func_getpgrp_void=yes
13887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
13891 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
13892 if test $ac_cv_func_getpgrp_void = yes; then
13894 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
13899 # UNIX98 PTYs.
13900 for ac_func in grantpt
13901 do :
13902 ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt"
13903 if test "x$ac_cv_func_grantpt" = x""yes; then :
13904 cat >>confdefs.h <<_ACEOF
13905 #define HAVE_GRANTPT 1
13906 _ACEOF
13909 done
13912 # PTY-related GNU extensions.
13913 for ac_func in getpt
13914 do :
13915 ac_fn_c_check_func "$LINENO" "getpt" "ac_cv_func_getpt"
13916 if test "x$ac_cv_func_getpt" = x""yes; then :
13917 cat >>confdefs.h <<_ACEOF
13918 #define HAVE_GETPT 1
13919 _ACEOF
13922 done
13925 # Check this now, so that we will NOT find the above functions in ncurses.
13926 # That is because we have not set up to link ncurses in lib-src.
13927 # It's better to believe a function is not available
13928 # than to expect to find it in ncurses.
13929 # Also we need tputs and friends to be able to build at all.
13930 have_tputs_et_al=true
13931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
13932 $as_echo_n "checking for library containing tputs... " >&6; }
13933 if test "${ac_cv_search_tputs+set}" = set; then :
13934 $as_echo_n "(cached) " >&6
13935 else
13936 ac_func_search_save_LIBS=$LIBS
13937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13938 /* end confdefs.h. */
13940 /* Override any GCC internal prototype to avoid an error.
13941 Use char because int might match the return type of a GCC
13942 builtin and then its argument prototype would still apply. */
13943 #ifdef __cplusplus
13944 extern "C"
13945 #endif
13946 char tputs ();
13948 main ()
13950 return tputs ();
13952 return 0;
13954 _ACEOF
13955 for ac_lib in '' ncurses terminfo termcap; do
13956 if test -z "$ac_lib"; then
13957 ac_res="none required"
13958 else
13959 ac_res=-l$ac_lib
13960 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13962 if ac_fn_c_try_link "$LINENO"; then :
13963 ac_cv_search_tputs=$ac_res
13965 rm -f core conftest.err conftest.$ac_objext \
13966 conftest$ac_exeext
13967 if test "${ac_cv_search_tputs+set}" = set; then :
13968 break
13970 done
13971 if test "${ac_cv_search_tputs+set}" = set; then :
13973 else
13974 ac_cv_search_tputs=no
13976 rm conftest.$ac_ext
13977 LIBS=$ac_func_search_save_LIBS
13979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tputs" >&5
13980 $as_echo "$ac_cv_search_tputs" >&6; }
13981 ac_res=$ac_cv_search_tputs
13982 if test "$ac_res" != no; then :
13983 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13985 else
13986 have_tputs_et_al=false
13989 if test "$have_tputs_et_al" != true; then
13990 as_fn_error "I couldn't find termcap functions (tputs and friends).
13991 Maybe some development libraries/packages are missing? Try installing
13992 libncurses-dev(el), libterminfo-dev(el) or similar." "$LINENO" 5
13994 # Must define this when any termcap library is found.
13996 $as_echo "#define HAVE_LIBNCURSES 1" >>confdefs.h
13998 ## FIXME This was the cpp logic, but I am not sure it is right.
13999 ## The above test has not necessarily found libncurses.
14000 HAVE_LIBNCURSES=yes
14002 ## Use terminfo instead of termcap?
14003 ## Note only system files NOT using terminfo are:
14004 ## freebsd < 40000, ms-w32, msdos, netbsd < 599002500, and
14005 ## darwin|gnu without ncurses.
14006 TERMINFO=no
14007 LIBS_TERMCAP=
14008 case "$opsys" in
14009 ## cygwin: Fewer environment variables to go wrong, more terminal types.
14010 ## hpux10-20: Use the system provided termcap(3) library.
14011 ## openbsd: David Mazieres <dm@reeducation-labor.lcs.mit.edu> says this
14012 ## is necessary. Otherwise Emacs dumps core when run -nw.
14013 aix4-2|cygwin|hpux*|irix6-5|openbsd|sol2*|unixware) TERMINFO=yes ;;
14015 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
14016 ## The ncurses library has been moved out of the System framework in
14017 ## Mac OS X 10.2. So if configure detects it, set the command-line
14018 ## option to use it.
14019 darwin|gnu*)
14020 ## (HAVE_LIBNCURSES was not always true, but is since 2010-03-18.)
14021 if test "x$HAVE_LIBNCURSES" = "xyes"; then
14022 TERMINFO=yes
14023 LIBS_TERMCAP="-lncurses"
14027 freebsd)
14028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
14029 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
14030 if test "${emacs_cv_freebsd_terminfo+set}" = set; then :
14031 $as_echo_n "(cached) " >&6
14032 else
14033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14034 /* end confdefs.h. */
14035 #include <osreldate.h>
14037 main ()
14039 #if __FreeBSD_version < 400000
14040 fail;
14041 #endif
14044 return 0;
14046 _ACEOF
14047 if ac_fn_c_try_link "$LINENO"; then :
14048 emacs_cv_freebsd_terminfo=yes
14049 else
14050 emacs_cv_freebsd_terminfo=no
14052 rm -f core conftest.err conftest.$ac_objext \
14053 conftest$ac_exeext conftest.$ac_ext
14057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
14058 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
14060 if test $emacs_cv_freebsd_terminfo = yes; then
14061 TERMINFO=yes
14062 LIBS_TERMCAP="-lncurses"
14063 else
14064 LIBS_TERMCAP="-ltermcap"
14068 netbsd)
14069 if test $ac_cv_search_tputs = -lterminfo; then
14070 TERMINFO=yes
14071 LIBS_TERMCAP="-lterminfo"
14072 else
14073 LIBS_TERMCAP="-ltermcap"
14077 esac
14079 case "$opsys" in
14080 ## hpux: Make sure we get select from libc rather than from libcurses
14081 ## because libcurses on HPUX 10.10 has a broken version of select.
14082 ## We used to use -lc -lcurses, but this may be cleaner.
14083 hpux*) LIBS_TERMCAP="-ltermcap" ;;
14085 openbsd) LIBS_TERMCAP="-lncurses" ;;
14087 ## Must use system termcap, if we use any termcap. It does special things.
14088 sol2*) test "$TERMINFO" != yes && LIBS_TERMCAP="-ltermcap" ;;
14089 esac
14091 TERMCAP_OBJ=tparam.o
14092 if test $TERMINFO = yes; then
14094 $as_echo "#define TERMINFO 1" >>confdefs.h
14097 ## Default used to be -ltermcap. Add a case above if need something else.
14098 test "x$LIBS_TERMCAP" = "x" && LIBS_TERMCAP="-lcurses"
14100 TERMCAP_OBJ=terminfo.o
14106 # Do we have res_init, for detecting changes in /etc/resolv.conf?
14107 resolv=no
14108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14109 /* end confdefs.h. */
14110 #include <netinet/in.h>
14111 #include <arpa/nameser.h>
14112 #include <resolv.h>
14114 main ()
14116 return res_init();
14118 return 0;
14120 _ACEOF
14121 if ac_fn_c_try_link "$LINENO"; then :
14122 have_res_init=yes
14123 else
14124 have_res_init=no
14126 rm -f core conftest.err conftest.$ac_objext \
14127 conftest$ac_exeext conftest.$ac_ext
14128 if test "$have_res_init" = no; then
14129 OLIBS="$LIBS"
14130 LIBS="$LIBS -lresolv"
14131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
14132 $as_echo_n "checking for res_init with -lresolv... " >&6; }
14133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14134 /* end confdefs.h. */
14135 #include <netinet/in.h>
14136 #include <arpa/nameser.h>
14137 #include <resolv.h>
14139 main ()
14141 return res_init();
14143 return 0;
14145 _ACEOF
14146 if ac_fn_c_try_link "$LINENO"; then :
14147 have_res_init=yes
14148 else
14149 have_res_init=no
14151 rm -f core conftest.err conftest.$ac_objext \
14152 conftest$ac_exeext conftest.$ac_ext
14153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
14154 $as_echo "$have_res_init" >&6; }
14155 if test "$have_res_init" = yes ; then
14156 resolv=yes
14158 LIBS="$OLIBS"
14161 if test "$have_res_init" = yes; then
14163 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
14167 # Do we need the Hesiod library to provide the support routines?
14168 LIBHESIOD=
14169 if test "$with_hesiod" != no ; then
14170 # Don't set $LIBS here -- see comments above. FIXME which comments?
14171 ac_fn_c_check_func "$LINENO" "res_send" "ac_cv_func_res_send"
14172 if test "x$ac_cv_func_res_send" = x""yes; then :
14174 else
14175 ac_fn_c_check_func "$LINENO" "__res_send" "ac_cv_func___res_send"
14176 if test "x$ac_cv_func___res_send" = x""yes; then :
14178 else
14179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
14180 $as_echo_n "checking for res_send in -lresolv... " >&6; }
14181 if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
14182 $as_echo_n "(cached) " >&6
14183 else
14184 ac_check_lib_save_LIBS=$LIBS
14185 LIBS="-lresolv $LIBS"
14186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14187 /* end confdefs.h. */
14189 /* Override any GCC internal prototype to avoid an error.
14190 Use char because int might match the return type of a GCC
14191 builtin and then its argument prototype would still apply. */
14192 #ifdef __cplusplus
14193 extern "C"
14194 #endif
14195 char res_send ();
14197 main ()
14199 return res_send ();
14201 return 0;
14203 _ACEOF
14204 if ac_fn_c_try_link "$LINENO"; then :
14205 ac_cv_lib_resolv_res_send=yes
14206 else
14207 ac_cv_lib_resolv_res_send=no
14209 rm -f core conftest.err conftest.$ac_objext \
14210 conftest$ac_exeext conftest.$ac_ext
14211 LIBS=$ac_check_lib_save_LIBS
14213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
14214 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
14215 if test "x$ac_cv_lib_resolv_res_send" = x""yes; then :
14216 resolv=yes
14217 else
14218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
14219 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
14220 if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
14221 $as_echo_n "(cached) " >&6
14222 else
14223 ac_check_lib_save_LIBS=$LIBS
14224 LIBS="-lresolv $LIBS"
14225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14226 /* end confdefs.h. */
14228 /* Override any GCC internal prototype to avoid an error.
14229 Use char because int might match the return type of a GCC
14230 builtin and then its argument prototype would still apply. */
14231 #ifdef __cplusplus
14232 extern "C"
14233 #endif
14234 char __res_send ();
14236 main ()
14238 return __res_send ();
14240 return 0;
14242 _ACEOF
14243 if ac_fn_c_try_link "$LINENO"; then :
14244 ac_cv_lib_resolv___res_send=yes
14245 else
14246 ac_cv_lib_resolv___res_send=no
14248 rm -f core conftest.err conftest.$ac_objext \
14249 conftest$ac_exeext conftest.$ac_ext
14250 LIBS=$ac_check_lib_save_LIBS
14252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
14253 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
14254 if test "x$ac_cv_lib_resolv___res_send" = x""yes; then :
14255 resolv=yes
14264 if test "$resolv" = yes ; then
14265 RESOLVLIB=-lresolv
14266 else
14267 RESOLVLIB=
14269 ac_fn_c_check_func "$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
14270 if test "x$ac_cv_func_hes_getmailhost" = x""yes; then :
14272 else
14273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
14274 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
14275 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
14276 $as_echo_n "(cached) " >&6
14277 else
14278 ac_check_lib_save_LIBS=$LIBS
14279 LIBS="-lhesiod $RESOLVLIB $LIBS"
14280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14281 /* end confdefs.h. */
14283 /* Override any GCC internal prototype to avoid an error.
14284 Use char because int might match the return type of a GCC
14285 builtin and then its argument prototype would still apply. */
14286 #ifdef __cplusplus
14287 extern "C"
14288 #endif
14289 char hes_getmailhost ();
14291 main ()
14293 return hes_getmailhost ();
14295 return 0;
14297 _ACEOF
14298 if ac_fn_c_try_link "$LINENO"; then :
14299 ac_cv_lib_hesiod_hes_getmailhost=yes
14300 else
14301 ac_cv_lib_hesiod_hes_getmailhost=no
14303 rm -f core conftest.err conftest.$ac_objext \
14304 conftest$ac_exeext conftest.$ac_ext
14305 LIBS=$ac_check_lib_save_LIBS
14307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
14308 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
14309 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x""yes; then :
14310 hesiod=yes
14311 else
14318 if test x"$hesiod" = xyes; then
14320 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
14322 LIBHESIOD=-lhesiod
14327 # Do we need libresolv (due to res_init or Hesiod)?
14328 if test "$resolv" = yes ; then
14330 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
14332 LIBRESOLV=-lresolv
14333 else
14334 LIBRESOLV=
14338 # These tell us which Kerberos-related libraries to use.
14339 COM_ERRLIB=
14340 CRYPTOLIB=
14341 KRB5LIB=
14342 DESLIB=
14343 KRB4LIB=
14345 if test "${with_kerberos}" != no; then
14346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
14347 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
14348 if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
14349 $as_echo_n "(cached) " >&6
14350 else
14351 ac_check_lib_save_LIBS=$LIBS
14352 LIBS="-lcom_err $LIBS"
14353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14354 /* end confdefs.h. */
14356 /* Override any GCC internal prototype to avoid an error.
14357 Use char because int might match the return type of a GCC
14358 builtin and then its argument prototype would still apply. */
14359 #ifdef __cplusplus
14360 extern "C"
14361 #endif
14362 char com_err ();
14364 main ()
14366 return com_err ();
14368 return 0;
14370 _ACEOF
14371 if ac_fn_c_try_link "$LINENO"; then :
14372 ac_cv_lib_com_err_com_err=yes
14373 else
14374 ac_cv_lib_com_err_com_err=no
14376 rm -f core conftest.err conftest.$ac_objext \
14377 conftest$ac_exeext conftest.$ac_ext
14378 LIBS=$ac_check_lib_save_LIBS
14380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
14381 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
14382 if test "x$ac_cv_lib_com_err_com_err" = x""yes; then :
14383 have_com_err=yes
14384 else
14385 have_com_err=no
14388 if test $have_com_err = yes; then
14389 COM_ERRLIB=-lcom_err
14390 LIBS="$COM_ERRLIB $LIBS"
14392 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
14395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
14396 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
14397 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
14398 $as_echo_n "(cached) " >&6
14399 else
14400 ac_check_lib_save_LIBS=$LIBS
14401 LIBS="-lcrypto $LIBS"
14402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14403 /* end confdefs.h. */
14405 /* Override any GCC internal prototype to avoid an error.
14406 Use char because int might match the return type of a GCC
14407 builtin and then its argument prototype would still apply. */
14408 #ifdef __cplusplus
14409 extern "C"
14410 #endif
14411 char mit_des_cbc_encrypt ();
14413 main ()
14415 return mit_des_cbc_encrypt ();
14417 return 0;
14419 _ACEOF
14420 if ac_fn_c_try_link "$LINENO"; then :
14421 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
14422 else
14423 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
14425 rm -f core conftest.err conftest.$ac_objext \
14426 conftest$ac_exeext conftest.$ac_ext
14427 LIBS=$ac_check_lib_save_LIBS
14429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
14430 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
14431 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x""yes; then :
14432 have_crypto=yes
14433 else
14434 have_crypto=no
14437 if test $have_crypto = yes; then
14438 CRYPTOLIB=-lcrypto
14439 LIBS="$CRYPTOLIB $LIBS"
14441 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
14444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
14445 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
14446 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
14447 $as_echo_n "(cached) " >&6
14448 else
14449 ac_check_lib_save_LIBS=$LIBS
14450 LIBS="-lk5crypto $LIBS"
14451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14452 /* end confdefs.h. */
14454 /* Override any GCC internal prototype to avoid an error.
14455 Use char because int might match the return type of a GCC
14456 builtin and then its argument prototype would still apply. */
14457 #ifdef __cplusplus
14458 extern "C"
14459 #endif
14460 char mit_des_cbc_encrypt ();
14462 main ()
14464 return mit_des_cbc_encrypt ();
14466 return 0;
14468 _ACEOF
14469 if ac_fn_c_try_link "$LINENO"; then :
14470 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
14471 else
14472 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
14474 rm -f core conftest.err conftest.$ac_objext \
14475 conftest$ac_exeext conftest.$ac_ext
14476 LIBS=$ac_check_lib_save_LIBS
14478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
14479 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
14480 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x""yes; then :
14481 have_k5crypto=yes
14482 else
14483 have_k5crypto=no
14486 if test $have_k5crypto = yes; then
14487 CRYPTOLIB=-lk5crypto
14488 LIBS="$CRYPTOLIB $LIBS"
14490 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
14493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
14494 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
14495 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
14496 $as_echo_n "(cached) " >&6
14497 else
14498 ac_check_lib_save_LIBS=$LIBS
14499 LIBS="-lkrb5 $LIBS"
14500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14501 /* end confdefs.h. */
14503 /* Override any GCC internal prototype to avoid an error.
14504 Use char because int might match the return type of a GCC
14505 builtin and then its argument prototype would still apply. */
14506 #ifdef __cplusplus
14507 extern "C"
14508 #endif
14509 char krb5_init_context ();
14511 main ()
14513 return krb5_init_context ();
14515 return 0;
14517 _ACEOF
14518 if ac_fn_c_try_link "$LINENO"; then :
14519 ac_cv_lib_krb5_krb5_init_context=yes
14520 else
14521 ac_cv_lib_krb5_krb5_init_context=no
14523 rm -f core conftest.err conftest.$ac_objext \
14524 conftest$ac_exeext conftest.$ac_ext
14525 LIBS=$ac_check_lib_save_LIBS
14527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
14528 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
14529 if test "x$ac_cv_lib_krb5_krb5_init_context" = x""yes; then :
14530 have_krb5=yes
14531 else
14532 have_krb5=no
14535 if test $have_krb5=yes; then
14536 KRB5LIB=-lkrb5
14537 LIBS="$KRB5LIB $LIBS"
14539 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
14542 if test "${with_kerberos5}" = no; then
14543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
14544 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
14545 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
14546 $as_echo_n "(cached) " >&6
14547 else
14548 ac_check_lib_save_LIBS=$LIBS
14549 LIBS="-ldes425 $LIBS"
14550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14551 /* end confdefs.h. */
14553 /* Override any GCC internal prototype to avoid an error.
14554 Use char because int might match the return type of a GCC
14555 builtin and then its argument prototype would still apply. */
14556 #ifdef __cplusplus
14557 extern "C"
14558 #endif
14559 char des_cbc_encrypt ();
14561 main ()
14563 return des_cbc_encrypt ();
14565 return 0;
14567 _ACEOF
14568 if ac_fn_c_try_link "$LINENO"; then :
14569 ac_cv_lib_des425_des_cbc_encrypt=yes
14570 else
14571 ac_cv_lib_des425_des_cbc_encrypt=no
14573 rm -f core conftest.err conftest.$ac_objext \
14574 conftest$ac_exeext conftest.$ac_ext
14575 LIBS=$ac_check_lib_save_LIBS
14577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
14578 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
14579 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x""yes; then :
14580 have_des425=yes
14581 else
14582 have_des425=no
14585 if test $have_des425 = yes; then
14586 DESLIB=-ldes425
14587 LIBS="$DESLIB $LIBS"
14589 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
14591 else
14592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
14593 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
14594 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
14595 $as_echo_n "(cached) " >&6
14596 else
14597 ac_check_lib_save_LIBS=$LIBS
14598 LIBS="-ldes $LIBS"
14599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14600 /* end confdefs.h. */
14602 /* Override any GCC internal prototype to avoid an error.
14603 Use char because int might match the return type of a GCC
14604 builtin and then its argument prototype would still apply. */
14605 #ifdef __cplusplus
14606 extern "C"
14607 #endif
14608 char des_cbc_encrypt ();
14610 main ()
14612 return des_cbc_encrypt ();
14614 return 0;
14616 _ACEOF
14617 if ac_fn_c_try_link "$LINENO"; then :
14618 ac_cv_lib_des_des_cbc_encrypt=yes
14619 else
14620 ac_cv_lib_des_des_cbc_encrypt=no
14622 rm -f core conftest.err conftest.$ac_objext \
14623 conftest$ac_exeext conftest.$ac_ext
14624 LIBS=$ac_check_lib_save_LIBS
14626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
14627 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
14628 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x""yes; then :
14629 have_des=yes
14630 else
14631 have_des=no
14634 if test $have_des = yes; then
14635 DESLIB=-ldes
14636 LIBS="$DESLIB $LIBS"
14638 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
14642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
14643 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
14644 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
14645 $as_echo_n "(cached) " >&6
14646 else
14647 ac_check_lib_save_LIBS=$LIBS
14648 LIBS="-lkrb4 $LIBS"
14649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14650 /* end confdefs.h. */
14652 /* Override any GCC internal prototype to avoid an error.
14653 Use char because int might match the return type of a GCC
14654 builtin and then its argument prototype would still apply. */
14655 #ifdef __cplusplus
14656 extern "C"
14657 #endif
14658 char krb_get_cred ();
14660 main ()
14662 return krb_get_cred ();
14664 return 0;
14666 _ACEOF
14667 if ac_fn_c_try_link "$LINENO"; then :
14668 ac_cv_lib_krb4_krb_get_cred=yes
14669 else
14670 ac_cv_lib_krb4_krb_get_cred=no
14672 rm -f core conftest.err conftest.$ac_objext \
14673 conftest$ac_exeext conftest.$ac_ext
14674 LIBS=$ac_check_lib_save_LIBS
14676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
14677 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
14678 if test "x$ac_cv_lib_krb4_krb_get_cred" = x""yes; then :
14679 have_krb4=yes
14680 else
14681 have_krb4=no
14684 if test $have_krb4 = yes; then
14685 KRB4LIB=-lkrb4
14686 LIBS="$KRB4LIB $LIBS"
14688 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
14690 else
14691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
14692 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
14693 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
14694 $as_echo_n "(cached) " >&6
14695 else
14696 ac_check_lib_save_LIBS=$LIBS
14697 LIBS="-lkrb $LIBS"
14698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14699 /* end confdefs.h. */
14701 /* Override any GCC internal prototype to avoid an error.
14702 Use char because int might match the return type of a GCC
14703 builtin and then its argument prototype would still apply. */
14704 #ifdef __cplusplus
14705 extern "C"
14706 #endif
14707 char krb_get_cred ();
14709 main ()
14711 return krb_get_cred ();
14713 return 0;
14715 _ACEOF
14716 if ac_fn_c_try_link "$LINENO"; then :
14717 ac_cv_lib_krb_krb_get_cred=yes
14718 else
14719 ac_cv_lib_krb_krb_get_cred=no
14721 rm -f core conftest.err conftest.$ac_objext \
14722 conftest$ac_exeext conftest.$ac_ext
14723 LIBS=$ac_check_lib_save_LIBS
14725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
14726 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
14727 if test "x$ac_cv_lib_krb_krb_get_cred" = x""yes; then :
14728 have_krb=yes
14729 else
14730 have_krb=no
14733 if test $have_krb = yes; then
14734 KRB4LIB=-lkrb
14735 LIBS="$KRB4LIB $LIBS"
14737 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
14743 if test "${with_kerberos5}" != no; then
14744 for ac_header in krb5.h
14745 do :
14746 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
14747 if test "x$ac_cv_header_krb5_h" = x""yes; then :
14748 cat >>confdefs.h <<_ACEOF
14749 #define HAVE_KRB5_H 1
14750 _ACEOF
14751 ac_fn_c_check_member "$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
14753 if test "x$ac_cv_member_krb5_error_text" = x""yes; then :
14755 cat >>confdefs.h <<_ACEOF
14756 #define HAVE_KRB5_ERROR_TEXT 1
14757 _ACEOF
14761 ac_fn_c_check_member "$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
14763 if test "x$ac_cv_member_krb5_error_e_text" = x""yes; then :
14765 cat >>confdefs.h <<_ACEOF
14766 #define HAVE_KRB5_ERROR_E_TEXT 1
14767 _ACEOF
14774 done
14776 else
14777 for ac_header in des.h
14778 do :
14779 ac_fn_c_check_header_mongrel "$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
14780 if test "x$ac_cv_header_des_h" = x""yes; then :
14781 cat >>confdefs.h <<_ACEOF
14782 #define HAVE_DES_H 1
14783 _ACEOF
14785 else
14786 for ac_header in kerberosIV/des.h
14787 do :
14788 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
14789 if test "x$ac_cv_header_kerberosIV_des_h" = x""yes; then :
14790 cat >>confdefs.h <<_ACEOF
14791 #define HAVE_KERBEROSIV_DES_H 1
14792 _ACEOF
14794 else
14795 for ac_header in kerberos/des.h
14796 do :
14797 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
14798 if test "x$ac_cv_header_kerberos_des_h" = x""yes; then :
14799 cat >>confdefs.h <<_ACEOF
14800 #define HAVE_KERBEROS_DES_H 1
14801 _ACEOF
14805 done
14809 done
14813 done
14815 for ac_header in krb.h
14816 do :
14817 ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
14818 if test "x$ac_cv_header_krb_h" = x""yes; then :
14819 cat >>confdefs.h <<_ACEOF
14820 #define HAVE_KRB_H 1
14821 _ACEOF
14823 else
14824 for ac_header in kerberosIV/krb.h
14825 do :
14826 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
14827 if test "x$ac_cv_header_kerberosIV_krb_h" = x""yes; then :
14828 cat >>confdefs.h <<_ACEOF
14829 #define HAVE_KERBEROSIV_KRB_H 1
14830 _ACEOF
14832 else
14833 for ac_header in kerberos/krb.h
14834 do :
14835 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
14836 if test "x$ac_cv_header_kerberos_krb_h" = x""yes; then :
14837 cat >>confdefs.h <<_ACEOF
14838 #define HAVE_KERBEROS_KRB_H 1
14839 _ACEOF
14843 done
14847 done
14851 done
14854 for ac_header in com_err.h
14855 do :
14856 ac_fn_c_check_header_mongrel "$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
14857 if test "x$ac_cv_header_com_err_h" = x""yes; then :
14858 cat >>confdefs.h <<_ACEOF
14859 #define HAVE_COM_ERR_H 1
14860 _ACEOF
14864 done
14874 # Solaris requires -lintl if you want strerror (which calls dgettext)
14875 # to return localized messages.
14876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
14877 $as_echo_n "checking for dgettext in -lintl... " >&6; }
14878 if test "${ac_cv_lib_intl_dgettext+set}" = set; then :
14879 $as_echo_n "(cached) " >&6
14880 else
14881 ac_check_lib_save_LIBS=$LIBS
14882 LIBS="-lintl $LIBS"
14883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14884 /* end confdefs.h. */
14886 /* Override any GCC internal prototype to avoid an error.
14887 Use char because int might match the return type of a GCC
14888 builtin and then its argument prototype would still apply. */
14889 #ifdef __cplusplus
14890 extern "C"
14891 #endif
14892 char dgettext ();
14894 main ()
14896 return dgettext ();
14898 return 0;
14900 _ACEOF
14901 if ac_fn_c_try_link "$LINENO"; then :
14902 ac_cv_lib_intl_dgettext=yes
14903 else
14904 ac_cv_lib_intl_dgettext=no
14906 rm -f core conftest.err conftest.$ac_objext \
14907 conftest$ac_exeext conftest.$ac_ext
14908 LIBS=$ac_check_lib_save_LIBS
14910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
14911 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
14912 if test "x$ac_cv_lib_intl_dgettext" = x""yes; then :
14913 cat >>confdefs.h <<_ACEOF
14914 #define HAVE_LIBINTL 1
14915 _ACEOF
14917 LIBS="-lintl $LIBS"
14922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
14923 $as_echo_n "checking whether localtime caches TZ... " >&6; }
14924 if test "${emacs_cv_localtime_cache+set}" = set; then :
14925 $as_echo_n "(cached) " >&6
14926 else
14927 if test x$ac_cv_func_tzset = xyes; then
14928 if test "$cross_compiling" = yes; then :
14929 # If we have tzset, assume the worst when cross-compiling.
14930 emacs_cv_localtime_cache=yes
14931 else
14932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14933 /* end confdefs.h. */
14934 #include <time.h>
14935 char TZ_GMT0[] = "TZ=GMT0";
14936 char TZ_PST8[] = "TZ=PST8";
14937 main()
14939 time_t now = time ((time_t *) 0);
14940 int hour_GMT0, hour_unset;
14941 if (putenv (TZ_GMT0) != 0)
14942 exit (1);
14943 hour_GMT0 = localtime (&now)->tm_hour;
14944 unsetenv("TZ");
14945 hour_unset = localtime (&now)->tm_hour;
14946 if (putenv (TZ_PST8) != 0)
14947 exit (1);
14948 if (localtime (&now)->tm_hour == hour_GMT0)
14949 exit (1);
14950 unsetenv("TZ");
14951 if (localtime (&now)->tm_hour != hour_unset)
14952 exit (1);
14953 exit (0);
14955 _ACEOF
14956 if ac_fn_c_try_run "$LINENO"; then :
14957 emacs_cv_localtime_cache=no
14958 else
14959 emacs_cv_localtime_cache=yes
14961 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14962 conftest.$ac_objext conftest.beam conftest.$ac_ext
14965 else
14966 # If we lack tzset, report that localtime does not cache TZ,
14967 # since we can't invalidate the cache if we don't have tzset.
14968 emacs_cv_localtime_cache=no
14971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
14972 $as_echo "$emacs_cv_localtime_cache" >&6; }
14973 if test $emacs_cv_localtime_cache = yes; then
14975 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
14979 if test "x$HAVE_TIMEVAL" = xyes; then
14980 for ac_func in gettimeofday
14981 do :
14982 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
14983 if test "x$ac_cv_func_gettimeofday" = x""yes; then :
14984 cat >>confdefs.h <<_ACEOF
14985 #define HAVE_GETTIMEOFDAY 1
14986 _ACEOF
14989 done
14991 if test $ac_cv_func_gettimeofday = yes; then
14992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday can accept two arguments" >&5
14993 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
14994 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then :
14995 $as_echo_n "(cached) " >&6
14996 else
14997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14998 /* end confdefs.h. */
15000 #ifdef TIME_WITH_SYS_TIME
15001 #include <sys/time.h>
15002 #include <time.h>
15003 #else
15004 #ifdef HAVE_SYS_TIME_H
15005 #include <sys/time.h>
15006 #else
15007 #include <time.h>
15008 #endif
15009 #endif
15011 main ()
15013 struct timeval time;
15014 gettimeofday (&time, 0);
15016 return 0;
15018 _ACEOF
15019 if ac_fn_c_try_compile "$LINENO"; then :
15020 emacs_cv_gettimeofday_two_arguments=yes
15021 else
15022 emacs_cv_gettimeofday_two_arguments=no
15024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_gettimeofday_two_arguments" >&5
15027 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
15028 if test $emacs_cv_gettimeofday_two_arguments = no; then
15030 $as_echo "#define GETTIMEOFDAY_ONE_ARGUMENT 1" >>confdefs.h
15036 ok_so_far=yes
15037 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
15038 if test "x$ac_cv_func_socket" = x""yes; then :
15040 else
15041 ok_so_far=no
15044 if test $ok_so_far = yes; then
15045 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
15046 if test "x$ac_cv_header_netinet_in_h" = x""yes; then :
15048 else
15049 ok_so_far=no
15054 if test $ok_so_far = yes; then
15055 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
15056 if test "x$ac_cv_header_arpa_inet_h" = x""yes; then :
15058 else
15059 ok_so_far=no
15064 if test $ok_so_far = yes; then
15066 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
15070 if test -f /usr/lpp/X11/bin/smt.exp; then
15072 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
15076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
15077 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
15078 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
15079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15080 $as_echo "yes" >&6; }
15082 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
15084 else
15085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15086 $as_echo "no" >&6; }
15089 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
15090 if test "x$ac_cv_type_pid_t" = x""yes; then :
15092 else
15094 cat >>confdefs.h <<_ACEOF
15095 #define pid_t int
15096 _ACEOF
15100 for ac_header in vfork.h
15101 do :
15102 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
15103 if test "x$ac_cv_header_vfork_h" = x""yes; then :
15104 cat >>confdefs.h <<_ACEOF
15105 #define HAVE_VFORK_H 1
15106 _ACEOF
15110 done
15112 for ac_func in fork vfork
15113 do :
15114 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15115 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15116 eval as_val=\$$as_ac_var
15117 if test "x$as_val" = x""yes; then :
15118 cat >>confdefs.h <<_ACEOF
15119 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15120 _ACEOF
15123 done
15125 if test "x$ac_cv_func_fork" = xyes; then
15126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
15127 $as_echo_n "checking for working fork... " >&6; }
15128 if test "${ac_cv_func_fork_works+set}" = set; then :
15129 $as_echo_n "(cached) " >&6
15130 else
15131 if test "$cross_compiling" = yes; then :
15132 ac_cv_func_fork_works=cross
15133 else
15134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15135 /* end confdefs.h. */
15136 $ac_includes_default
15138 main ()
15141 /* By Ruediger Kuhlmann. */
15142 return fork () < 0;
15145 return 0;
15147 _ACEOF
15148 if ac_fn_c_try_run "$LINENO"; then :
15149 ac_cv_func_fork_works=yes
15150 else
15151 ac_cv_func_fork_works=no
15153 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15154 conftest.$ac_objext conftest.beam conftest.$ac_ext
15158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
15159 $as_echo "$ac_cv_func_fork_works" >&6; }
15161 else
15162 ac_cv_func_fork_works=$ac_cv_func_fork
15164 if test "x$ac_cv_func_fork_works" = xcross; then
15165 case $host in
15166 *-*-amigaos* | *-*-msdosdjgpp*)
15167 # Override, as these systems have only a dummy fork() stub
15168 ac_cv_func_fork_works=no
15171 ac_cv_func_fork_works=yes
15173 esac
15174 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
15175 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
15177 ac_cv_func_vfork_works=$ac_cv_func_vfork
15178 if test "x$ac_cv_func_vfork" = xyes; then
15179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
15180 $as_echo_n "checking for working vfork... " >&6; }
15181 if test "${ac_cv_func_vfork_works+set}" = set; then :
15182 $as_echo_n "(cached) " >&6
15183 else
15184 if test "$cross_compiling" = yes; then :
15185 ac_cv_func_vfork_works=cross
15186 else
15187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15188 /* end confdefs.h. */
15189 /* Thanks to Paul Eggert for this test. */
15190 $ac_includes_default
15191 #include <sys/wait.h>
15192 #ifdef HAVE_VFORK_H
15193 # include <vfork.h>
15194 #endif
15195 /* On some sparc systems, changes by the child to local and incoming
15196 argument registers are propagated back to the parent. The compiler
15197 is told about this with #include <vfork.h>, but some compilers
15198 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
15199 static variable whose address is put into a register that is
15200 clobbered by the vfork. */
15201 static void
15202 #ifdef __cplusplus
15203 sparc_address_test (int arg)
15204 # else
15205 sparc_address_test (arg) int arg;
15206 #endif
15208 static pid_t child;
15209 if (!child) {
15210 child = vfork ();
15211 if (child < 0) {
15212 perror ("vfork");
15213 _exit(2);
15215 if (!child) {
15216 arg = getpid();
15217 write(-1, "", 0);
15218 _exit (arg);
15224 main ()
15226 pid_t parent = getpid ();
15227 pid_t child;
15229 sparc_address_test (0);
15231 child = vfork ();
15233 if (child == 0) {
15234 /* Here is another test for sparc vfork register problems. This
15235 test uses lots of local variables, at least as many local
15236 variables as main has allocated so far including compiler
15237 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
15238 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
15239 reuse the register of parent for one of the local variables,
15240 since it will think that parent can't possibly be used any more
15241 in this routine. Assigning to the local variable will thus
15242 munge parent in the parent process. */
15243 pid_t
15244 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
15245 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
15246 /* Convince the compiler that p..p7 are live; otherwise, it might
15247 use the same hardware register for all 8 local variables. */
15248 if (p != p1 || p != p2 || p != p3 || p != p4
15249 || p != p5 || p != p6 || p != p7)
15250 _exit(1);
15252 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
15253 from child file descriptors. If the child closes a descriptor
15254 before it execs or exits, this munges the parent's descriptor
15255 as well. Test for this by closing stdout in the child. */
15256 _exit(close(fileno(stdout)) != 0);
15257 } else {
15258 int status;
15259 struct stat st;
15261 while (wait(&status) != child)
15263 return (
15264 /* Was there some problem with vforking? */
15265 child < 0
15267 /* Did the child fail? (This shouldn't happen.) */
15268 || status
15270 /* Did the vfork/compiler bug occur? */
15271 || parent != getpid()
15273 /* Did the file descriptor bug occur? */
15274 || fstat(fileno(stdout), &st) != 0
15278 _ACEOF
15279 if ac_fn_c_try_run "$LINENO"; then :
15280 ac_cv_func_vfork_works=yes
15281 else
15282 ac_cv_func_vfork_works=no
15284 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15285 conftest.$ac_objext conftest.beam conftest.$ac_ext
15289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
15290 $as_echo "$ac_cv_func_vfork_works" >&6; }
15293 if test "x$ac_cv_func_fork_works" = xcross; then
15294 ac_cv_func_vfork_works=$ac_cv_func_vfork
15295 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
15296 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
15299 if test "x$ac_cv_func_vfork_works" = xyes; then
15301 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
15303 else
15305 $as_echo "#define vfork fork" >>confdefs.h
15308 if test "x$ac_cv_func_fork_works" = xyes; then
15310 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
15315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
15316 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
15317 if test "${emacs_cv_langinfo_codeset+set}" = set; then :
15318 $as_echo_n "(cached) " >&6
15319 else
15320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15321 /* end confdefs.h. */
15322 #include <langinfo.h>
15324 main ()
15326 char* cs = nl_langinfo(CODESET);
15328 return 0;
15330 _ACEOF
15331 if ac_fn_c_try_link "$LINENO"; then :
15332 emacs_cv_langinfo_codeset=yes
15333 else
15334 emacs_cv_langinfo_codeset=no
15336 rm -f core conftest.err conftest.$ac_objext \
15337 conftest$ac_exeext conftest.$ac_ext
15340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
15341 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
15342 if test $emacs_cv_langinfo_codeset = yes; then
15344 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
15348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
15349 $as_echo_n "checking for mbstate_t... " >&6; }
15350 if test "${ac_cv_type_mbstate_t+set}" = set; then :
15351 $as_echo_n "(cached) " >&6
15352 else
15353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15354 /* end confdefs.h. */
15355 $ac_includes_default
15356 # include <wchar.h>
15358 main ()
15360 mbstate_t x; return sizeof x;
15362 return 0;
15364 _ACEOF
15365 if ac_fn_c_try_compile "$LINENO"; then :
15366 ac_cv_type_mbstate_t=yes
15367 else
15368 ac_cv_type_mbstate_t=no
15370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
15373 $as_echo "$ac_cv_type_mbstate_t" >&6; }
15374 if test $ac_cv_type_mbstate_t = yes; then
15376 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
15378 else
15380 $as_echo "#define mbstate_t int" >>confdefs.h
15384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
15385 $as_echo_n "checking for C restricted array declarations... " >&6; }
15386 if test "${emacs_cv_c_restrict_arr+set}" = set; then :
15387 $as_echo_n "(cached) " >&6
15388 else
15389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15390 /* end confdefs.h. */
15391 void fred (int x[__restrict]);
15393 main ()
15397 return 0;
15399 _ACEOF
15400 if ac_fn_c_try_compile "$LINENO"; then :
15401 emacs_cv_c_restrict_arr=yes
15402 else
15403 emacs_cv_c_restrict_arr=no
15405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
15408 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
15409 if test "$emacs_cv_c_restrict_arr" = yes; then
15411 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
15416 # Set up the CFLAGS for real compilation, so we can substitute it.
15417 CFLAGS="$REAL_CFLAGS"
15418 CPPFLAGS="$REAL_CPPFLAGS"
15420 ## Hack to detect a buggy GCC version.
15421 if test "x$GCC" = xyes \
15422 && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
15423 && test x"`echo $CFLAGS | grep '\-O[23]'`" != x \
15424 && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then
15425 as_fn_error "GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
15428 version=$PACKAGE_VERSION
15430 ### Specify what sort of things we'll be editing into Makefile and config.h.
15431 ### Use configuration here uncanonicalized to avoid exceeding size limits.
15434 ## Unused?
15455 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
15456 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
15457 ## end of LIBX_BASE, but nothing ever set it.
15462 ## Used in lwlib/Makefile.in.
15464 if test -n "${machfile}"; then
15465 M_FILE="\$(srcdir)/${machfile}"
15466 else
15467 M_FILE=
15469 S_FILE="\$(srcdir)/${opsysfile}"
15480 cat >>confdefs.h <<_ACEOF
15481 #define EMACS_CONFIGURATION "${canonical}"
15482 _ACEOF
15485 cat >>confdefs.h <<_ACEOF
15486 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
15487 _ACEOF
15489 if test -n "$machfile"; then
15491 cat >>confdefs.h <<_ACEOF
15492 #define config_machfile "${machfile}"
15493 _ACEOF
15497 cat >>confdefs.h <<_ACEOF
15498 #define config_opsysfile "${opsysfile}"
15499 _ACEOF
15502 XMENU_OBJ=
15503 XOBJ=
15504 FONT_OBJ=
15505 if test "${HAVE_X_WINDOWS}" = "yes" ; then
15507 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
15509 XMENU_OBJ=xmenu.o
15510 XOBJ="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
15511 FONT_OBJ=xfont.o
15512 if test "$HAVE_XFT" = "yes"; then
15513 FONT_OBJ="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
15514 elif test "$HAVE_FREETYPE" = "yes"; then
15515 FONT_OBJ="$FONT_OBJ ftfont.o ftxfont.o"
15523 WIDGET_OBJ=
15524 MOTIF_LIBW=
15525 if test "${USE_X_TOOLKIT}" != "none" ; then
15526 WIDGET_OBJ=widget.o
15528 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
15530 if test "${USE_X_TOOLKIT}" = "LUCID"; then
15532 $as_echo "#define USE_LUCID 1" >>confdefs.h
15534 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
15536 $as_echo "#define USE_MOTIF 1" >>confdefs.h
15538 MOTIF_LIBW=-lXm
15539 case "$opsys" in
15540 gnu-linux)
15541 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
15542 MOTIF_LIBW="$MOTIF_LIBW -lXpm"
15545 unixware)
15546 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
15547 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
15548 MOTIF_LIBW="MOTIF_LIBW -lXimp"
15551 aix4-2)
15552 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
15553 MOTIF_LIBW="$MOTIF_LIBW -li18n"
15555 esac
15556 MOTIF_LIBW="$MOTIF_LIBW $LIBXP"
15561 TOOLKIT_LIBW=
15562 case "$USE_X_TOOLKIT" in
15563 MOTIF) TOOLKIT_LIBW="$MOTIF_LIBW" ;;
15564 LUCID) TOOLKIT_LIBW="$LUCID_LIBW" ;;
15565 none) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW="$GTK_LIBS" ;;
15566 esac
15569 if test "$USE_X_TOOLKIT" = "none"; then
15570 LIBXT_OTHER="\$(LIBXSM)"
15571 OLDXMENU_TARGET="really-oldXMenu"
15572 else
15573 LIBXT_OTHER="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
15574 OLDXMENU_TARGET="really-lwlib"
15578 ## The X Menu stuff is present in the X10 distribution, but missing
15579 ## from X11. If we have X10, just use the installed library;
15580 ## otherwise, use our own copy.
15581 if test "${HAVE_X11}" = "yes" ; then
15583 $as_echo "#define HAVE_X11 1" >>confdefs.h
15586 if test "$USE_X_TOOLKIT" = "none"; then
15587 OLDXMENU="\${oldXMenudir}/libXMenu11.a"
15588 else
15589 OLDXMENU="\${lwlibdir}/liblw.a"
15591 LIBXMENU="\$(OLDXMENU)"
15592 LIBX_OTHER="\$(LIBXT) \$(LIBX_EXTRA)"
15593 OLDXMENU_DEPS="\${OLDXMENU} ../src/\${OLDXMENU}"
15594 else
15595 ## For a syntactically valid Makefile; not actually used for anything.
15596 ## See comments in src/Makefile.in.
15597 OLDXMENU=nothing
15598 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
15599 if test "${HAVE_X_WINDOWS}" = "yes"; then
15600 LIBXMENU="-lXMenu"
15601 else
15602 LIBXMENU=
15604 LIBX_OTHER=
15605 OLDXMENU_DEPS=
15608 if test "$HAVE_GTK" = "yes" || test "$HAVE_MENUS" != "yes"; then
15609 OLDXMENU_TARGET=
15610 OLDXMENU=nothing
15611 LIBXMENU=
15612 OLDXMENU_DEPS=
15621 if test "${HAVE_MENUS}" = "yes" ; then
15623 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
15627 if test "${GNU_MALLOC}" = "yes" ; then
15629 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
15633 RALLOC_OBJ=
15634 if test "${REL_ALLOC}" = "yes" ; then
15636 $as_echo "#define REL_ALLOC 1" >>confdefs.h
15639 test "$system_malloc" != "yes" && RALLOC_OBJ=ralloc.o
15643 if test "$opsys" = "cygwin"; then
15644 CYGWIN_OBJ="sheap.o"
15645 ## Cygwin differs because of its unexec().
15646 PRE_ALLOC_OBJ=
15647 POST_ALLOC_OBJ=lastfile.o
15648 else
15649 CYGWIN_OBJ=
15650 PRE_ALLOC_OBJ=lastfile.o
15651 POST_ALLOC_OBJ=
15657 # Configure gnulib here, now that we know LIBS.
15668 LIBC_FATAL_STDERR_=1
15669 export LIBC_FATAL_STDERR_
15671 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15672 # for constant arguments. Useless!
15673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
15674 $as_echo_n "checking for working alloca.h... " >&6; }
15675 if test "${ac_cv_working_alloca_h+set}" = set; then :
15676 $as_echo_n "(cached) " >&6
15677 else
15678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15679 /* end confdefs.h. */
15680 #include <alloca.h>
15682 main ()
15684 char *p = (char *) alloca (2 * sizeof (int));
15685 if (p) return 0;
15687 return 0;
15689 _ACEOF
15690 if ac_fn_c_try_link "$LINENO"; then :
15691 ac_cv_working_alloca_h=yes
15692 else
15693 ac_cv_working_alloca_h=no
15695 rm -f core conftest.err conftest.$ac_objext \
15696 conftest$ac_exeext conftest.$ac_ext
15698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
15699 $as_echo "$ac_cv_working_alloca_h" >&6; }
15700 if test $ac_cv_working_alloca_h = yes; then
15702 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
15706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
15707 $as_echo_n "checking for alloca... " >&6; }
15708 if test "${ac_cv_func_alloca_works+set}" = set; then :
15709 $as_echo_n "(cached) " >&6
15710 else
15711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15712 /* end confdefs.h. */
15713 #ifdef __GNUC__
15714 # define alloca __builtin_alloca
15715 #else
15716 # ifdef _MSC_VER
15717 # include <malloc.h>
15718 # define alloca _alloca
15719 # else
15720 # ifdef HAVE_ALLOCA_H
15721 # include <alloca.h>
15722 # else
15723 # ifdef _AIX
15724 #pragma alloca
15725 # else
15726 # ifndef alloca /* predefined by HP cc +Olibcalls */
15727 char *alloca ();
15728 # endif
15729 # endif
15730 # endif
15731 # endif
15732 #endif
15735 main ()
15737 char *p = (char *) alloca (1);
15738 if (p) return 0;
15740 return 0;
15742 _ACEOF
15743 if ac_fn_c_try_link "$LINENO"; then :
15744 ac_cv_func_alloca_works=yes
15745 else
15746 ac_cv_func_alloca_works=no
15748 rm -f core conftest.err conftest.$ac_objext \
15749 conftest$ac_exeext conftest.$ac_ext
15751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
15752 $as_echo "$ac_cv_func_alloca_works" >&6; }
15754 if test $ac_cv_func_alloca_works = yes; then
15756 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
15758 else
15759 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15760 # that cause trouble. Some versions do not even contain alloca or
15761 # contain a buggy version. If you still want to use their alloca,
15762 # use ar to extract alloca.o from them instead of compiling alloca.c.
15768 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
15770 $as_echo "#define C_ALLOCA 1" >>confdefs.h
15773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
15774 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
15775 if test "${ac_cv_os_cray+set}" = set; then :
15776 $as_echo_n "(cached) " >&6
15777 else
15778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15779 /* end confdefs.h. */
15780 #if defined CRAY && ! defined CRAY2
15781 webecray
15782 #else
15783 wenotbecray
15784 #endif
15786 _ACEOF
15787 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15788 $EGREP "webecray" >/dev/null 2>&1; then :
15789 ac_cv_os_cray=yes
15790 else
15791 ac_cv_os_cray=no
15793 rm -f conftest*
15796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
15797 $as_echo "$ac_cv_os_cray" >&6; }
15798 if test $ac_cv_os_cray = yes; then
15799 for ac_func in _getb67 GETB67 getb67; do
15800 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15801 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15802 eval as_val=\$$as_ac_var
15803 if test "x$as_val" = x""yes; then :
15805 cat >>confdefs.h <<_ACEOF
15806 #define CRAY_STACKSEG_END $ac_func
15807 _ACEOF
15809 break
15812 done
15815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
15816 $as_echo_n "checking stack direction for C alloca... " >&6; }
15817 if test "${ac_cv_c_stack_direction+set}" = set; then :
15818 $as_echo_n "(cached) " >&6
15819 else
15820 if test "$cross_compiling" = yes; then :
15821 ac_cv_c_stack_direction=0
15822 else
15823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15824 /* end confdefs.h. */
15825 $ac_includes_default
15827 find_stack_direction (int *addr, int depth)
15829 int dir, dummy = 0;
15830 if (! addr)
15831 addr = &dummy;
15832 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
15833 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
15834 return dir + dummy;
15838 main (int argc, char **argv)
15840 return find_stack_direction (0, argc + !argv + 20) < 0;
15842 _ACEOF
15843 if ac_fn_c_try_run "$LINENO"; then :
15844 ac_cv_c_stack_direction=1
15845 else
15846 ac_cv_c_stack_direction=-1
15848 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15849 conftest.$ac_objext conftest.beam conftest.$ac_ext
15853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
15854 $as_echo "$ac_cv_c_stack_direction" >&6; }
15855 cat >>confdefs.h <<_ACEOF
15856 #define STACK_DIRECTION $ac_cv_c_stack_direction
15857 _ACEOF
15865 for ac_func in $ac_func_list
15866 do :
15867 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15868 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15869 eval as_val=\$$as_ac_var
15870 if test "x$as_val" = x""yes; then :
15871 cat >>confdefs.h <<_ACEOF
15872 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15873 _ACEOF
15876 done
15881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
15882 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
15883 if test "${ac_cv_c_bigendian+set}" = set; then :
15884 $as_echo_n "(cached) " >&6
15885 else
15886 ac_cv_c_bigendian=unknown
15887 # See if we're dealing with a universal compiler.
15888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15889 /* end confdefs.h. */
15890 #ifndef __APPLE_CC__
15891 not a universal capable compiler
15892 #endif
15893 typedef int dummy;
15895 _ACEOF
15896 if ac_fn_c_try_compile "$LINENO"; then :
15898 # Check for potential -arch flags. It is not universal unless
15899 # there are at least two -arch flags with different values.
15900 ac_arch=
15901 ac_prev=
15902 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
15903 if test -n "$ac_prev"; then
15904 case $ac_word in
15905 i?86 | x86_64 | ppc | ppc64)
15906 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
15907 ac_arch=$ac_word
15908 else
15909 ac_cv_c_bigendian=universal
15910 break
15913 esac
15914 ac_prev=
15915 elif test "x$ac_word" = "x-arch"; then
15916 ac_prev=arch
15918 done
15920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15921 if test $ac_cv_c_bigendian = unknown; then
15922 # See if sys/param.h defines the BYTE_ORDER macro.
15923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15924 /* end confdefs.h. */
15925 #include <sys/types.h>
15926 #include <sys/param.h>
15929 main ()
15931 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
15932 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
15933 && LITTLE_ENDIAN)
15934 bogus endian macros
15935 #endif
15938 return 0;
15940 _ACEOF
15941 if ac_fn_c_try_compile "$LINENO"; then :
15942 # It does; now see whether it defined to BIG_ENDIAN or not.
15943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15944 /* end confdefs.h. */
15945 #include <sys/types.h>
15946 #include <sys/param.h>
15949 main ()
15951 #if BYTE_ORDER != BIG_ENDIAN
15952 not big endian
15953 #endif
15956 return 0;
15958 _ACEOF
15959 if ac_fn_c_try_compile "$LINENO"; then :
15960 ac_cv_c_bigendian=yes
15961 else
15962 ac_cv_c_bigendian=no
15964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15968 if test $ac_cv_c_bigendian = unknown; then
15969 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
15970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15971 /* end confdefs.h. */
15972 #include <limits.h>
15975 main ()
15977 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
15978 bogus endian macros
15979 #endif
15982 return 0;
15984 _ACEOF
15985 if ac_fn_c_try_compile "$LINENO"; then :
15986 # It does; now see whether it defined to _BIG_ENDIAN or not.
15987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15988 /* end confdefs.h. */
15989 #include <limits.h>
15992 main ()
15994 #ifndef _BIG_ENDIAN
15995 not big endian
15996 #endif
15999 return 0;
16001 _ACEOF
16002 if ac_fn_c_try_compile "$LINENO"; then :
16003 ac_cv_c_bigendian=yes
16004 else
16005 ac_cv_c_bigendian=no
16007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16011 if test $ac_cv_c_bigendian = unknown; then
16012 # Compile a test program.
16013 if test "$cross_compiling" = yes; then :
16014 # Try to guess by grepping values from an object file.
16015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16016 /* end confdefs.h. */
16017 short int ascii_mm[] =
16018 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
16019 short int ascii_ii[] =
16020 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
16021 int use_ascii (int i) {
16022 return ascii_mm[i] + ascii_ii[i];
16024 short int ebcdic_ii[] =
16025 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
16026 short int ebcdic_mm[] =
16027 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
16028 int use_ebcdic (int i) {
16029 return ebcdic_mm[i] + ebcdic_ii[i];
16031 extern int foo;
16034 main ()
16036 return use_ascii (foo) == use_ebcdic (foo);
16038 return 0;
16040 _ACEOF
16041 if ac_fn_c_try_compile "$LINENO"; then :
16042 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
16043 ac_cv_c_bigendian=yes
16045 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
16046 if test "$ac_cv_c_bigendian" = unknown; then
16047 ac_cv_c_bigendian=no
16048 else
16049 # finding both strings is unlikely to happen, but who knows?
16050 ac_cv_c_bigendian=unknown
16054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16055 else
16056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16057 /* end confdefs.h. */
16058 $ac_includes_default
16060 main ()
16063 /* Are we little or big endian? From Harbison&Steele. */
16064 union
16066 long int l;
16067 char c[sizeof (long int)];
16068 } u;
16069 u.l = 1;
16070 return u.c[sizeof (long int) - 1] == 1;
16073 return 0;
16075 _ACEOF
16076 if ac_fn_c_try_run "$LINENO"; then :
16077 ac_cv_c_bigendian=no
16078 else
16079 ac_cv_c_bigendian=yes
16081 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16082 conftest.$ac_objext conftest.beam conftest.$ac_ext
16087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
16088 $as_echo "$ac_cv_c_bigendian" >&6; }
16089 case $ac_cv_c_bigendian in #(
16090 yes)
16091 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
16092 ;; #(
16094 ;; #(
16095 universal)
16097 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
16099 ;; #(
16101 as_fn_error "unknown endianness
16102 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
16103 esac
16106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
16107 $as_echo_n "checking for inline... " >&6; }
16108 if test "${ac_cv_c_inline+set}" = set; then :
16109 $as_echo_n "(cached) " >&6
16110 else
16111 ac_cv_c_inline=no
16112 for ac_kw in inline __inline__ __inline; do
16113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16114 /* end confdefs.h. */
16115 #ifndef __cplusplus
16116 typedef int foo_t;
16117 static $ac_kw foo_t static_foo () {return 0; }
16118 $ac_kw foo_t foo () {return 0; }
16119 #endif
16121 _ACEOF
16122 if ac_fn_c_try_compile "$LINENO"; then :
16123 ac_cv_c_inline=$ac_kw
16125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16126 test "$ac_cv_c_inline" != no && break
16127 done
16130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
16131 $as_echo "$ac_cv_c_inline" >&6; }
16133 case $ac_cv_c_inline in
16134 inline | yes) ;;
16136 case $ac_cv_c_inline in
16137 no) ac_val=;;
16138 *) ac_val=$ac_cv_c_inline;;
16139 esac
16140 cat >>confdefs.h <<_ACEOF
16141 #ifndef __cplusplus
16142 #define inline $ac_val
16143 #endif
16144 _ACEOF
16146 esac
16149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtold conforms to C99" >&5
16150 $as_echo_n "checking whether strtold conforms to C99... " >&6; }
16151 if test "${gl_cv_func_c99_strtold+set}" = set; then :
16152 $as_echo_n "(cached) " >&6
16153 else
16154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16155 /* end confdefs.h. */
16156 /* On HP-UX before 11.23, strtold returns a struct instead of
16157 long double. Reject implementations like that, by requiring
16158 compatibility with the C99 prototype. */
16159 #include <stdlib.h>
16160 static long double (*p) (char const *, char **) = strtold;
16161 static long double
16162 test (char const *nptr, char **endptr)
16164 long double r;
16165 r = strtold (nptr, endptr);
16166 return r;
16169 main ()
16171 return test ("1.0", NULL) != 1 || p ("1.0", NULL) != 1;
16173 return 0;
16175 _ACEOF
16176 if ac_fn_c_try_link "$LINENO"; then :
16177 gl_cv_func_c99_strtold=yes
16178 else
16179 gl_cv_func_c99_strtold=no
16181 rm -f core conftest.err conftest.$ac_objext \
16182 conftest$ac_exeext conftest.$ac_ext
16184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_c99_strtold" >&5
16185 $as_echo "$gl_cv_func_c99_strtold" >&6; }
16186 if test $gl_cv_func_c99_strtold = yes; then
16188 $as_echo "#define HAVE_C99_STRTOLD 1" >>confdefs.h
16193 GNULIB_CHOWN=0;
16194 GNULIB_CLOSE=0;
16195 GNULIB_DUP2=0;
16196 GNULIB_DUP3=0;
16197 GNULIB_ENVIRON=0;
16198 GNULIB_EUIDACCESS=0;
16199 GNULIB_FACCESSAT=0;
16200 GNULIB_FCHDIR=0;
16201 GNULIB_FCHOWNAT=0;
16202 GNULIB_FSYNC=0;
16203 GNULIB_FTRUNCATE=0;
16204 GNULIB_GETCWD=0;
16205 GNULIB_GETDOMAINNAME=0;
16206 GNULIB_GETDTABLESIZE=0;
16207 GNULIB_GETGROUPS=0;
16208 GNULIB_GETHOSTNAME=0;
16209 GNULIB_GETLOGIN=0;
16210 GNULIB_GETLOGIN_R=0;
16211 GNULIB_GETPAGESIZE=0;
16212 GNULIB_GETUSERSHELL=0;
16213 GNULIB_GROUP_MEMBER=0;
16214 GNULIB_LCHOWN=0;
16215 GNULIB_LINK=0;
16216 GNULIB_LINKAT=0;
16217 GNULIB_LSEEK=0;
16218 GNULIB_PIPE=0;
16219 GNULIB_PIPE2=0;
16220 GNULIB_PREAD=0;
16221 GNULIB_PWRITE=0;
16222 GNULIB_READ=0;
16223 GNULIB_READLINK=0;
16224 GNULIB_READLINKAT=0;
16225 GNULIB_RMDIR=0;
16226 GNULIB_SLEEP=0;
16227 GNULIB_SYMLINK=0;
16228 GNULIB_SYMLINKAT=0;
16229 GNULIB_TTYNAME_R=0;
16230 GNULIB_UNISTD_H_GETOPT=0;
16231 GNULIB_UNISTD_H_NONBLOCKING=0;
16232 GNULIB_UNISTD_H_SIGPIPE=0;
16233 GNULIB_UNLINK=0;
16234 GNULIB_UNLINKAT=0;
16235 GNULIB_USLEEP=0;
16236 GNULIB_WRITE=0;
16237 HAVE_CHOWN=1;
16238 HAVE_DUP2=1;
16239 HAVE_DUP3=1;
16240 HAVE_EUIDACCESS=1;
16241 HAVE_FACCESSAT=1;
16242 HAVE_FCHDIR=1;
16243 HAVE_FCHOWNAT=1;
16244 HAVE_FSYNC=1;
16245 HAVE_FTRUNCATE=1;
16246 HAVE_GETDTABLESIZE=1;
16247 HAVE_GETGROUPS=1;
16248 HAVE_GETHOSTNAME=1;
16249 HAVE_GETLOGIN=1;
16250 HAVE_GETPAGESIZE=1;
16251 HAVE_GROUP_MEMBER=1;
16252 HAVE_LCHOWN=1;
16253 HAVE_LINK=1;
16254 HAVE_LINKAT=1;
16255 HAVE_PIPE=1;
16256 HAVE_PIPE2=1;
16257 HAVE_PREAD=1;
16258 HAVE_PWRITE=1;
16259 HAVE_READLINK=1;
16260 HAVE_READLINKAT=1;
16261 HAVE_SLEEP=1;
16262 HAVE_SYMLINK=1;
16263 HAVE_SYMLINKAT=1;
16264 HAVE_UNLINKAT=1;
16265 HAVE_USLEEP=1;
16266 HAVE_DECL_ENVIRON=1;
16267 HAVE_DECL_FCHDIR=1;
16268 HAVE_DECL_GETDOMAINNAME=1;
16269 HAVE_DECL_GETLOGIN_R=1;
16270 HAVE_DECL_GETPAGESIZE=1;
16271 HAVE_DECL_GETUSERSHELL=1;
16272 HAVE_DECL_TTYNAME_R=1;
16273 HAVE_OS_H=0;
16274 HAVE_SYS_PARAM_H=0;
16275 REPLACE_CHOWN=0;
16276 REPLACE_CLOSE=0;
16277 REPLACE_DUP=0;
16278 REPLACE_DUP2=0;
16279 REPLACE_FCHOWNAT=0;
16280 REPLACE_GETCWD=0;
16281 REPLACE_GETDOMAINNAME=0;
16282 REPLACE_GETLOGIN_R=0;
16283 REPLACE_GETGROUPS=0;
16284 REPLACE_GETPAGESIZE=0;
16285 REPLACE_LCHOWN=0;
16286 REPLACE_LINK=0;
16287 REPLACE_LINKAT=0;
16288 REPLACE_LSEEK=0;
16289 REPLACE_PREAD=0;
16290 REPLACE_PWRITE=0;
16291 REPLACE_READ=0;
16292 REPLACE_READLINK=0;
16293 REPLACE_RMDIR=0;
16294 REPLACE_SLEEP=0;
16295 REPLACE_SYMLINK=0;
16296 REPLACE_TTYNAME_R=0;
16297 REPLACE_UNLINK=0;
16298 REPLACE_UNLINKAT=0;
16299 REPLACE_USLEEP=0;
16300 REPLACE_WRITE=0;
16301 UNISTD_H_HAVE_WINSOCK2_H=0;
16302 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
16307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_dm_mode in struct stat" >&5
16308 $as_echo_n "checking for st_dm_mode in struct stat... " >&6; }
16309 if test "${ac_cv_struct_st_dm_mode+set}" = set; then :
16310 $as_echo_n "(cached) " >&6
16311 else
16312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16313 /* end confdefs.h. */
16315 #include <sys/types.h>
16316 #include <sys/stat.h>
16318 main ()
16320 struct stat s; s.st_dm_mode;
16322 return 0;
16324 _ACEOF
16325 if ac_fn_c_try_compile "$LINENO"; then :
16326 ac_cv_struct_st_dm_mode=yes
16327 else
16328 ac_cv_struct_st_dm_mode=no
16330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_st_dm_mode" >&5
16333 $as_echo "$ac_cv_struct_st_dm_mode" >&6; }
16335 if test $ac_cv_struct_st_dm_mode = yes; then
16337 $as_echo "#define HAVE_ST_DM_MODE 1" >>confdefs.h
16342 ac_fn_c_check_decl "$LINENO" "strmode" "ac_cv_have_decl_strmode" "$ac_includes_default"
16343 if test "x$ac_cv_have_decl_strmode" = x""yes; then :
16344 ac_have_decl=1
16345 else
16346 ac_have_decl=0
16349 cat >>confdefs.h <<_ACEOF
16350 #define HAVE_DECL_STRMODE $ac_have_decl
16351 _ACEOF
16354 GNULIB__EXIT=0;
16355 GNULIB_ATOLL=0;
16356 GNULIB_CALLOC_POSIX=0;
16357 GNULIB_CANONICALIZE_FILE_NAME=0;
16358 GNULIB_GETLOADAVG=0;
16359 GNULIB_GETSUBOPT=0;
16360 GNULIB_GRANTPT=0;
16361 GNULIB_MALLOC_POSIX=0;
16362 GNULIB_MBTOWC=0;
16363 GNULIB_MKDTEMP=0;
16364 GNULIB_MKOSTEMP=0;
16365 GNULIB_MKOSTEMPS=0;
16366 GNULIB_MKSTEMP=0;
16367 GNULIB_MKSTEMPS=0;
16368 GNULIB_PTSNAME=0;
16369 GNULIB_PUTENV=0;
16370 GNULIB_RANDOM_R=0;
16371 GNULIB_REALLOC_POSIX=0;
16372 GNULIB_REALPATH=0;
16373 GNULIB_RPMATCH=0;
16374 GNULIB_SETENV=0;
16375 GNULIB_STRTOD=0;
16376 GNULIB_STRTOLL=0;
16377 GNULIB_STRTOULL=0;
16378 GNULIB_SYSTEM_POSIX=0;
16379 GNULIB_UNLOCKPT=0;
16380 GNULIB_UNSETENV=0;
16381 GNULIB_WCTOMB=0;
16382 HAVE__EXIT=1;
16383 HAVE_ATOLL=1;
16384 HAVE_CANONICALIZE_FILE_NAME=1;
16385 HAVE_DECL_GETLOADAVG=1;
16386 HAVE_GETSUBOPT=1;
16387 HAVE_GRANTPT=1;
16388 HAVE_MKDTEMP=1;
16389 HAVE_MKOSTEMP=1;
16390 HAVE_MKOSTEMPS=1;
16391 HAVE_MKSTEMP=1;
16392 HAVE_MKSTEMPS=1;
16393 HAVE_PTSNAME=1;
16394 HAVE_RANDOM_H=1;
16395 HAVE_RANDOM_R=1;
16396 HAVE_REALPATH=1;
16397 HAVE_RPMATCH=1;
16398 HAVE_SETENV=1;
16399 HAVE_DECL_SETENV=1;
16400 HAVE_STRTOD=1;
16401 HAVE_STRTOLL=1;
16402 HAVE_STRTOULL=1;
16403 HAVE_STRUCT_RANDOM_DATA=1;
16404 HAVE_SYS_LOADAVG_H=0;
16405 HAVE_UNLOCKPT=1;
16406 HAVE_DECL_UNSETENV=1;
16407 REPLACE_CALLOC=0;
16408 REPLACE_CANONICALIZE_FILE_NAME=0;
16409 REPLACE_MALLOC=0;
16410 REPLACE_MBTOWC=0;
16411 REPLACE_MKSTEMP=0;
16412 REPLACE_PUTENV=0;
16413 REPLACE_REALLOC=0;
16414 REPLACE_REALPATH=0;
16415 REPLACE_SETENV=0;
16416 REPLACE_STRTOD=0;
16417 REPLACE_UNSETENV=0;
16418 REPLACE_WCTOMB=0;
16422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
16423 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
16424 if test "${gl_cv_have_include_next+set}" = set; then :
16425 $as_echo_n "(cached) " >&6
16426 else
16427 rm -rf conftestd1a conftestd1b conftestd2
16428 mkdir conftestd1a conftestd1b conftestd2
16429 cat <<EOF > conftestd1a/conftest.h
16430 #define DEFINED_IN_CONFTESTD1
16431 #include_next <conftest.h>
16432 #ifdef DEFINED_IN_CONFTESTD2
16433 int foo;
16434 #else
16435 #error "include_next doesn't work"
16436 #endif
16438 cat <<EOF > conftestd1b/conftest.h
16439 #define DEFINED_IN_CONFTESTD1
16440 #include <stdio.h>
16441 #include_next <conftest.h>
16442 #ifdef DEFINED_IN_CONFTESTD2
16443 int foo;
16444 #else
16445 #error "include_next doesn't work"
16446 #endif
16448 cat <<EOF > conftestd2/conftest.h
16449 #ifndef DEFINED_IN_CONFTESTD1
16450 #error "include_next test doesn't work"
16451 #endif
16452 #define DEFINED_IN_CONFTESTD2
16454 gl_save_CPPFLAGS="$CPPFLAGS"
16455 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
16456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16457 /* end confdefs.h. */
16458 #include <conftest.h>
16459 _ACEOF
16460 if ac_fn_c_try_compile "$LINENO"; then :
16461 gl_cv_have_include_next=yes
16462 else
16463 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
16464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16465 /* end confdefs.h. */
16466 #include <conftest.h>
16467 _ACEOF
16468 if ac_fn_c_try_compile "$LINENO"; then :
16469 gl_cv_have_include_next=buggy
16470 else
16471 gl_cv_have_include_next=no
16473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16477 CPPFLAGS="$gl_save_CPPFLAGS"
16478 rm -rf conftestd1a conftestd1b conftestd2
16481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
16482 $as_echo "$gl_cv_have_include_next" >&6; }
16483 PRAGMA_SYSTEM_HEADER=
16484 if test $gl_cv_have_include_next = yes; then
16485 INCLUDE_NEXT=include_next
16486 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
16487 if test -n "$GCC"; then
16488 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
16490 else
16491 if test $gl_cv_have_include_next = buggy; then
16492 INCLUDE_NEXT=include
16493 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
16494 else
16495 INCLUDE_NEXT=include
16496 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
16502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
16503 $as_echo_n "checking whether system header files limit the line length... " >&6; }
16504 if test "${gl_cv_pragma_columns+set}" = set; then :
16505 $as_echo_n "(cached) " >&6
16506 else
16507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16508 /* end confdefs.h. */
16510 #ifdef __TANDEM
16511 choke me
16512 #endif
16514 _ACEOF
16515 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16516 $EGREP "choke me" >/dev/null 2>&1; then :
16517 gl_cv_pragma_columns=yes
16518 else
16519 gl_cv_pragma_columns=no
16521 rm -f conftest*
16525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
16526 $as_echo "$gl_cv_pragma_columns" >&6; }
16527 if test $gl_cv_pragma_columns = yes; then
16528 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
16529 else
16530 PRAGMA_COLUMNS=
16549 if test $gl_cv_have_include_next = yes; then
16550 gl_cv_next_getopt_h='<'getopt.h'>'
16551 else
16552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
16553 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
16554 if test "${gl_cv_next_getopt_h+set}" = set; then :
16555 $as_echo_n "(cached) " >&6
16556 else
16558 if test $ac_cv_header_getopt_h = yes; then
16561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16562 /* end confdefs.h. */
16563 #include <getopt.h>
16565 _ACEOF
16566 case "$host_os" in
16567 aix*) gl_absname_cpp="$ac_cpp -C" ;;
16568 *) gl_absname_cpp="$ac_cpp" ;;
16569 esac
16570 gl_cv_next_getopt_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16571 sed -n '\#/getopt.h#{
16572 s#.*"\(.*/getopt.h\)".*#\1#
16573 s#^/[^/]#//&#
16576 }'`'"'
16577 else
16578 gl_cv_next_getopt_h='<'getopt.h'>'
16583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
16584 $as_echo "$gl_cv_next_getopt_h" >&6; }
16586 NEXT_GETOPT_H=$gl_cv_next_getopt_h
16588 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16589 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16590 gl_next_as_first_directive='<'getopt.h'>'
16591 else
16592 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16593 gl_next_as_first_directive=$gl_cv_next_getopt_h
16595 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H=$gl_next_as_first_directive
16600 if test $ac_cv_header_getopt_h = yes; then
16601 HAVE_GETOPT_H=1
16602 else
16603 HAVE_GETOPT_H=0
16607 gl_replace_getopt=
16609 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
16610 for ac_header in getopt.h
16611 do :
16612 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
16613 if test "x$ac_cv_header_getopt_h" = x""yes; then :
16614 cat >>confdefs.h <<_ACEOF
16615 #define HAVE_GETOPT_H 1
16616 _ACEOF
16618 else
16619 gl_replace_getopt=yes
16622 done
16626 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
16627 for ac_func in getopt_long_only
16628 do :
16629 ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
16630 if test "x$ac_cv_func_getopt_long_only" = x""yes; then :
16631 cat >>confdefs.h <<_ACEOF
16632 #define HAVE_GETOPT_LONG_ONLY 1
16633 _ACEOF
16635 else
16636 gl_replace_getopt=yes
16638 done
16642 if test -z "$gl_replace_getopt"; then
16643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
16644 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
16645 if test "${gl_cv_func_getopt_posix+set}" = set; then :
16646 $as_echo_n "(cached) " >&6
16647 else
16649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16650 /* end confdefs.h. */
16651 #include <unistd.h>
16653 main ()
16655 int *p = &optreset; return optreset;
16657 return 0;
16659 _ACEOF
16660 if ac_fn_c_try_link "$LINENO"; then :
16661 gl_optind_min=1
16662 else
16663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16664 /* end confdefs.h. */
16665 #include <getopt.h>
16667 main ()
16669 return !getopt_clip;
16671 return 0;
16673 _ACEOF
16674 if ac_fn_c_try_compile "$LINENO"; then :
16675 gl_optind_min=1
16676 else
16677 gl_optind_min=0
16679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16681 rm -f core conftest.err conftest.$ac_objext \
16682 conftest$ac_exeext conftest.$ac_ext
16684 gl_save_CPPFLAGS=$CPPFLAGS
16685 CPPFLAGS="$CPPFLAGS -DOPTIND_MIN=$gl_optind_min"
16686 if test "$cross_compiling" = yes; then :
16687 case "$host_os" in
16688 mingw*) gl_cv_func_getopt_posix="guessing no";;
16689 darwin* | aix*) gl_cv_func_getopt_posix="guessing no";;
16690 *) gl_cv_func_getopt_posix="guessing yes";;
16691 esac
16693 else
16694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16695 /* end confdefs.h. */
16697 #include <unistd.h>
16698 #include <stdlib.h>
16699 #include <string.h>
16702 main ()
16705 static char program[] = "program";
16706 static char a[] = "-a";
16707 static char foo[] = "foo";
16708 static char bar[] = "bar";
16709 char *argv[] = { program, a, foo, bar, NULL };
16710 int c;
16712 optind = OPTIND_MIN;
16713 opterr = 0;
16715 c = getopt (4, argv, "ab");
16716 if (!(c == 'a'))
16717 return 1;
16718 c = getopt (4, argv, "ab");
16719 if (!(c == -1))
16720 return 2;
16721 if (!(optind == 2))
16722 return 3;
16724 /* Some internal state exists at this point. */
16726 static char program[] = "program";
16727 static char donald[] = "donald";
16728 static char p[] = "-p";
16729 static char billy[] = "billy";
16730 static char duck[] = "duck";
16731 static char a[] = "-a";
16732 static char bar[] = "bar";
16733 char *argv[] = { program, donald, p, billy, duck, a, bar, NULL };
16734 int c;
16736 optind = OPTIND_MIN;
16737 opterr = 0;
16739 c = getopt (7, argv, "+abp:q:");
16740 if (!(c == -1))
16741 return 4;
16742 if (!(strcmp (argv[0], "program") == 0))
16743 return 5;
16744 if (!(strcmp (argv[1], "donald") == 0))
16745 return 6;
16746 if (!(strcmp (argv[2], "-p") == 0))
16747 return 7;
16748 if (!(strcmp (argv[3], "billy") == 0))
16749 return 8;
16750 if (!(strcmp (argv[4], "duck") == 0))
16751 return 9;
16752 if (!(strcmp (argv[5], "-a") == 0))
16753 return 10;
16754 if (!(strcmp (argv[6], "bar") == 0))
16755 return 11;
16756 if (!(optind == 1))
16757 return 12;
16759 /* Detect MacOS 10.5, AIX 7.1 bug. */
16761 static char program[] = "program";
16762 static char ab[] = "-ab";
16763 char *argv[3] = { program, ab, NULL };
16764 optind = OPTIND_MIN;
16765 opterr = 0;
16766 if (getopt (2, argv, "ab:") != 'a')
16767 return 13;
16768 if (getopt (2, argv, "ab:") != '?')
16769 return 14;
16770 if (optopt != 'b')
16771 return 15;
16772 if (optind != 2)
16773 return 16;
16776 return 0;
16779 _ACEOF
16780 if ac_fn_c_try_run "$LINENO"; then :
16781 gl_cv_func_getopt_posix=yes
16782 else
16783 gl_cv_func_getopt_posix=no
16785 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16786 conftest.$ac_objext conftest.beam conftest.$ac_ext
16789 CPPFLAGS=$gl_save_CPPFLAGS
16792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
16793 $as_echo "$gl_cv_func_getopt_posix" >&6; }
16794 case "$gl_cv_func_getopt_posix" in
16795 *no) gl_replace_getopt=yes ;;
16796 esac
16799 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
16800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
16801 $as_echo_n "checking for working GNU getopt function... " >&6; }
16802 if test "${gl_cv_func_getopt_gnu+set}" = set; then :
16803 $as_echo_n "(cached) " >&6
16804 else
16805 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
16806 # optstring is necessary for programs like m4 that have POSIX-mandated
16807 # semantics for supporting options interspersed with files.
16808 # Also, since getopt_long is a GNU extension, we require optind=0.
16809 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
16810 # so take care to revert to the correct (non-)export state.
16811 gl_awk_probe='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
16812 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
16813 xx) gl_had_POSIXLY_CORRECT=exported ;;
16814 x) gl_had_POSIXLY_CORRECT=yes ;;
16815 *) gl_had_POSIXLY_CORRECT= ;;
16816 esac
16817 POSIXLY_CORRECT=1
16818 export POSIXLY_CORRECT
16819 if test "$cross_compiling" = yes; then :
16820 case $host_os:$ac_cv_have_decl_optreset in
16821 *-gnu*:* | mingw*:*) gl_cv_func_getopt_gnu=no;;
16822 *:yes) gl_cv_func_getopt_gnu=no;;
16823 *) gl_cv_func_getopt_gnu=yes;;
16824 esac
16826 else
16827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16828 /* end confdefs.h. */
16829 #include <getopt.h>
16830 #include <stddef.h>
16831 #include <string.h>
16834 main ()
16837 int result = 0;
16838 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
16839 and fails on MacOS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
16840 OSF/1 5.1, Solaris 10. */
16842 static char conftest[] = "conftest";
16843 static char plus[] = "-+";
16844 char *argv[3] = { conftest, plus, NULL };
16845 opterr = 0;
16846 if (getopt (2, argv, "+a") != '?')
16847 result |= 1;
16849 /* This code succeeds on glibc 2.8, mingw,
16850 and fails on MacOS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
16851 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
16853 static char program[] = "program";
16854 static char p[] = "-p";
16855 static char foo[] = "foo";
16856 static char bar[] = "bar";
16857 char *argv[] = { program, p, foo, bar, NULL };
16859 optind = 1;
16860 if (getopt (4, argv, "p::") != 'p')
16861 result |= 2;
16862 else if (optarg != NULL)
16863 result |= 4;
16864 else if (getopt (4, argv, "p::") != -1)
16865 result |= 6;
16866 else if (optind != 2)
16867 result |= 8;
16869 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
16871 static char program[] = "program";
16872 static char foo[] = "foo";
16873 static char p[] = "-p";
16874 char *argv[] = { program, foo, p, NULL };
16875 optind = 0;
16876 if (getopt (3, argv, "-p") != 1)
16877 result |= 16;
16878 else if (getopt (3, argv, "-p") != 'p')
16879 result |= 32;
16881 /* This code fails on glibc 2.11. */
16883 static char program[] = "program";
16884 static char b[] = "-b";
16885 static char a[] = "-a";
16886 char *argv[] = { program, b, a, NULL };
16887 optind = opterr = 0;
16888 if (getopt (3, argv, "+:a:b") != 'b')
16889 result |= 64;
16890 else if (getopt (3, argv, "+:a:b") != ':')
16891 result |= 64;
16893 /* This code dumps core on glibc 2.14. */
16895 static char program[] = "program";
16896 static char w[] = "-W";
16897 static char dummy[] = "dummy";
16898 char *argv[] = { program, w, dummy, NULL };
16899 optind = opterr = 1;
16900 if (getopt (3, argv, "W;") != 'W')
16901 result |= 128;
16903 return result;
16906 return 0;
16908 _ACEOF
16909 if ac_fn_c_try_run "$LINENO"; then :
16910 gl_cv_func_getopt_gnu=yes
16911 else
16912 gl_cv_func_getopt_gnu=no
16914 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16915 conftest.$ac_objext conftest.beam conftest.$ac_ext
16918 case $gl_had_POSIXLY_CORRECT in
16919 exported) ;;
16920 yes) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;}; POSIXLY_CORRECT=1 ;;
16921 *) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;} ;;
16922 esac
16925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
16926 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
16927 if test "$gl_cv_func_getopt_gnu" = "no"; then
16928 gl_replace_getopt=yes
16936 REPLACE_GETOPT=0
16939 if test -n "$gl_replace_getopt"; then :
16941 REPLACE_GETOPT=1
16946 if test $REPLACE_GETOPT = 1; then
16948 GETOPT_H=getopt.h
16950 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
16954 GNULIB_UNISTD_H_GETOPT=1
16957 ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
16958 if test "x$ac_cv_have_decl_getenv" = x""yes; then :
16959 ac_have_decl=1
16960 else
16961 ac_have_decl=0
16964 cat >>confdefs.h <<_ACEOF
16965 #define HAVE_DECL_GETENV $ac_have_decl
16966 _ACEOF
16969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
16970 $as_echo_n "checking for unsigned long long int... " >&6; }
16971 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
16972 $as_echo_n "(cached) " >&6
16973 else
16974 ac_cv_type_unsigned_long_long_int=yes
16975 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
16976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16977 /* end confdefs.h. */
16979 /* For now, do not test the preprocessor; as of 2007 there are too many
16980 implementations with broken preprocessors. Perhaps this can
16981 be revisited in 2012. In the meantime, code should not expect
16982 #if to work with literals wider than 32 bits. */
16983 /* Test literals. */
16984 long long int ll = 9223372036854775807ll;
16985 long long int nll = -9223372036854775807LL;
16986 unsigned long long int ull = 18446744073709551615ULL;
16987 /* Test constant expressions. */
16988 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
16989 ? 1 : -1)];
16990 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
16991 ? 1 : -1)];
16992 int i = 63;
16994 main ()
16996 /* Test availability of runtime routines for shift and division. */
16997 long long int llmax = 9223372036854775807ll;
16998 unsigned long long int ullmax = 18446744073709551615ull;
16999 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
17000 | (llmax / ll) | (llmax % ll)
17001 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
17002 | (ullmax / ull) | (ullmax % ull));
17004 return 0;
17007 _ACEOF
17008 if ac_fn_c_try_link "$LINENO"; then :
17010 else
17011 ac_cv_type_unsigned_long_long_int=no
17013 rm -f core conftest.err conftest.$ac_objext \
17014 conftest$ac_exeext conftest.$ac_ext
17017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
17018 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
17019 if test $ac_cv_type_unsigned_long_long_int = yes; then
17021 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
17027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
17028 $as_echo_n "checking for long long int... " >&6; }
17029 if test "${ac_cv_type_long_long_int+set}" = set; then :
17030 $as_echo_n "(cached) " >&6
17031 else
17032 ac_cv_type_long_long_int=yes
17033 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
17034 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
17035 if test $ac_cv_type_long_long_int = yes; then
17036 if test "$cross_compiling" = yes; then :
17038 else
17039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17040 /* end confdefs.h. */
17041 #include <limits.h>
17042 #ifndef LLONG_MAX
17043 # define HALF \
17044 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
17045 # define LLONG_MAX (HALF - 1 + HALF)
17046 #endif
17048 main ()
17050 long long int n = 1;
17051 int i;
17052 for (i = 0; ; i++)
17054 long long int m = n << i;
17055 if (m >> i != n)
17056 return 1;
17057 if (LLONG_MAX / 2 < m)
17058 break;
17060 return 0;
17062 return 0;
17064 _ACEOF
17065 if ac_fn_c_try_run "$LINENO"; then :
17067 else
17068 ac_cv_type_long_long_int=no
17070 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17071 conftest.$ac_objext conftest.beam conftest.$ac_ext
17077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
17078 $as_echo "$ac_cv_type_long_long_int" >&6; }
17079 if test $ac_cv_type_long_long_int = yes; then
17081 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
17090 gl_cv_c_multiarch=no
17091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17092 /* end confdefs.h. */
17093 #ifndef __APPLE_CC__
17094 not a universal capable compiler
17095 #endif
17096 typedef int dummy;
17098 _ACEOF
17099 if ac_fn_c_try_compile "$LINENO"; then :
17101 arch=
17102 prev=
17103 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
17104 if test -n "$prev"; then
17105 case $word in
17106 i?86 | x86_64 | ppc | ppc64)
17107 if test -z "$arch" || test "$arch" = "$word"; then
17108 arch="$word"
17109 else
17110 gl_cv_c_multiarch=yes
17113 esac
17114 prev=
17115 else
17116 if test "x$word" = "x-arch"; then
17117 prev=arch
17120 done
17123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17124 if test $gl_cv_c_multiarch = yes; then
17125 APPLE_UNIVERSAL_BUILD=1
17126 else
17127 APPLE_UNIVERSAL_BUILD=0
17134 if test $ac_cv_type_long_long_int = yes; then
17135 HAVE_LONG_LONG_INT=1
17136 else
17137 HAVE_LONG_LONG_INT=0
17141 if test $ac_cv_type_unsigned_long_long_int = yes; then
17142 HAVE_UNSIGNED_LONG_LONG_INT=1
17143 else
17144 HAVE_UNSIGNED_LONG_LONG_INT=0
17149 if test $ac_cv_header_wchar_h = yes; then
17150 HAVE_WCHAR_H=1
17151 else
17152 HAVE_WCHAR_H=0
17156 if test $ac_cv_header_inttypes_h = yes; then
17157 HAVE_INTTYPES_H=1
17158 else
17159 HAVE_INTTYPES_H=0
17163 if test $ac_cv_header_sys_types_h = yes; then
17164 HAVE_SYS_TYPES_H=1
17165 else
17166 HAVE_SYS_TYPES_H=0
17179 if test $gl_cv_have_include_next = yes; then
17180 gl_cv_next_stdint_h='<'stdint.h'>'
17181 else
17182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
17183 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
17184 if test "${gl_cv_next_stdint_h+set}" = set; then :
17185 $as_echo_n "(cached) " >&6
17186 else
17188 if test $ac_cv_header_stdint_h = yes; then
17191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17192 /* end confdefs.h. */
17193 #include <stdint.h>
17195 _ACEOF
17196 case "$host_os" in
17197 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17198 *) gl_absname_cpp="$ac_cpp" ;;
17199 esac
17200 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17201 sed -n '\#/stdint.h#{
17202 s#.*"\(.*/stdint.h\)".*#\1#
17203 s#^/[^/]#//&#
17206 }'`'"'
17207 else
17208 gl_cv_next_stdint_h='<'stdint.h'>'
17213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
17214 $as_echo "$gl_cv_next_stdint_h" >&6; }
17216 NEXT_STDINT_H=$gl_cv_next_stdint_h
17218 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17219 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17220 gl_next_as_first_directive='<'stdint.h'>'
17221 else
17222 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17223 gl_next_as_first_directive=$gl_cv_next_stdint_h
17225 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
17230 if test $ac_cv_header_stdint_h = yes; then
17231 HAVE_STDINT_H=1
17232 else
17233 HAVE_STDINT_H=0
17237 if test $ac_cv_header_stdint_h = yes; then
17238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
17239 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
17240 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
17241 $as_echo_n "(cached) " >&6
17242 else
17243 gl_cv_header_working_stdint_h=no
17244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17245 /* end confdefs.h. */
17248 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
17249 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
17250 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
17251 #include <stdint.h>
17252 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
17253 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
17254 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
17255 #endif
17258 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17259 included before <wchar.h>. */
17260 #include <stddef.h>
17261 #include <signal.h>
17262 #if HAVE_WCHAR_H
17263 # include <stdio.h>
17264 # include <time.h>
17265 # include <wchar.h>
17266 #endif
17269 #ifdef INT8_MAX
17270 int8_t a1 = INT8_MAX;
17271 int8_t a1min = INT8_MIN;
17272 #endif
17273 #ifdef INT16_MAX
17274 int16_t a2 = INT16_MAX;
17275 int16_t a2min = INT16_MIN;
17276 #endif
17277 #ifdef INT32_MAX
17278 int32_t a3 = INT32_MAX;
17279 int32_t a3min = INT32_MIN;
17280 #endif
17281 #ifdef INT64_MAX
17282 int64_t a4 = INT64_MAX;
17283 int64_t a4min = INT64_MIN;
17284 #endif
17285 #ifdef UINT8_MAX
17286 uint8_t b1 = UINT8_MAX;
17287 #else
17288 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
17289 #endif
17290 #ifdef UINT16_MAX
17291 uint16_t b2 = UINT16_MAX;
17292 #endif
17293 #ifdef UINT32_MAX
17294 uint32_t b3 = UINT32_MAX;
17295 #endif
17296 #ifdef UINT64_MAX
17297 uint64_t b4 = UINT64_MAX;
17298 #endif
17299 int_least8_t c1 = INT8_C (0x7f);
17300 int_least8_t c1max = INT_LEAST8_MAX;
17301 int_least8_t c1min = INT_LEAST8_MIN;
17302 int_least16_t c2 = INT16_C (0x7fff);
17303 int_least16_t c2max = INT_LEAST16_MAX;
17304 int_least16_t c2min = INT_LEAST16_MIN;
17305 int_least32_t c3 = INT32_C (0x7fffffff);
17306 int_least32_t c3max = INT_LEAST32_MAX;
17307 int_least32_t c3min = INT_LEAST32_MIN;
17308 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
17309 int_least64_t c4max = INT_LEAST64_MAX;
17310 int_least64_t c4min = INT_LEAST64_MIN;
17311 uint_least8_t d1 = UINT8_C (0xff);
17312 uint_least8_t d1max = UINT_LEAST8_MAX;
17313 uint_least16_t d2 = UINT16_C (0xffff);
17314 uint_least16_t d2max = UINT_LEAST16_MAX;
17315 uint_least32_t d3 = UINT32_C (0xffffffff);
17316 uint_least32_t d3max = UINT_LEAST32_MAX;
17317 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
17318 uint_least64_t d4max = UINT_LEAST64_MAX;
17319 int_fast8_t e1 = INT_FAST8_MAX;
17320 int_fast8_t e1min = INT_FAST8_MIN;
17321 int_fast16_t e2 = INT_FAST16_MAX;
17322 int_fast16_t e2min = INT_FAST16_MIN;
17323 int_fast32_t e3 = INT_FAST32_MAX;
17324 int_fast32_t e3min = INT_FAST32_MIN;
17325 int_fast64_t e4 = INT_FAST64_MAX;
17326 int_fast64_t e4min = INT_FAST64_MIN;
17327 uint_fast8_t f1 = UINT_FAST8_MAX;
17328 uint_fast16_t f2 = UINT_FAST16_MAX;
17329 uint_fast32_t f3 = UINT_FAST32_MAX;
17330 uint_fast64_t f4 = UINT_FAST64_MAX;
17331 #ifdef INTPTR_MAX
17332 intptr_t g = INTPTR_MAX;
17333 intptr_t gmin = INTPTR_MIN;
17334 #endif
17335 #ifdef UINTPTR_MAX
17336 uintptr_t h = UINTPTR_MAX;
17337 #endif
17338 intmax_t i = INTMAX_MAX;
17339 uintmax_t j = UINTMAX_MAX;
17341 #include <limits.h> /* for CHAR_BIT */
17342 #define TYPE_MINIMUM(t) \
17343 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
17344 #define TYPE_MAXIMUM(t) \
17345 ((t) ((t) 0 < (t) -1 \
17346 ? (t) -1 \
17347 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
17348 struct s {
17349 int check_PTRDIFF:
17350 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
17351 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
17352 ? 1 : -1;
17353 /* Detect bug in FreeBSD 6.0 / ia64. */
17354 int check_SIG_ATOMIC:
17355 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
17356 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
17357 ? 1 : -1;
17358 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
17359 int check_WCHAR:
17360 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
17361 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
17362 ? 1 : -1;
17363 /* Detect bug in mingw. */
17364 int check_WINT:
17365 WINT_MIN == TYPE_MINIMUM (wint_t)
17366 && WINT_MAX == TYPE_MAXIMUM (wint_t)
17367 ? 1 : -1;
17369 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
17370 int check_UINT8_C:
17371 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
17372 int check_UINT16_C:
17373 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
17375 /* Detect bugs in OpenBSD 3.9 stdint.h. */
17376 #ifdef UINT8_MAX
17377 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
17378 #endif
17379 #ifdef UINT16_MAX
17380 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
17381 #endif
17382 #ifdef UINT32_MAX
17383 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
17384 #endif
17385 #ifdef UINT64_MAX
17386 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
17387 #endif
17388 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
17389 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
17390 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
17391 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
17392 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
17393 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
17394 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
17395 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
17396 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
17397 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
17398 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
17402 main ()
17406 return 0;
17408 _ACEOF
17409 if ac_fn_c_try_compile "$LINENO"; then :
17410 if test "$cross_compiling" = yes; then :
17411 gl_cv_header_working_stdint_h=yes
17413 else
17414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17415 /* end confdefs.h. */
17418 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
17419 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
17420 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
17421 #include <stdint.h>
17424 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17425 included before <wchar.h>. */
17426 #include <stddef.h>
17427 #include <signal.h>
17428 #if HAVE_WCHAR_H
17429 # include <stdio.h>
17430 # include <time.h>
17431 # include <wchar.h>
17432 #endif
17435 #include <stdio.h>
17436 #include <string.h>
17437 #define MVAL(macro) MVAL1(macro)
17438 #define MVAL1(expression) #expression
17439 static const char *macro_values[] =
17441 #ifdef INT8_MAX
17442 MVAL (INT8_MAX),
17443 #endif
17444 #ifdef INT16_MAX
17445 MVAL (INT16_MAX),
17446 #endif
17447 #ifdef INT32_MAX
17448 MVAL (INT32_MAX),
17449 #endif
17450 #ifdef INT64_MAX
17451 MVAL (INT64_MAX),
17452 #endif
17453 #ifdef UINT8_MAX
17454 MVAL (UINT8_MAX),
17455 #endif
17456 #ifdef UINT16_MAX
17457 MVAL (UINT16_MAX),
17458 #endif
17459 #ifdef UINT32_MAX
17460 MVAL (UINT32_MAX),
17461 #endif
17462 #ifdef UINT64_MAX
17463 MVAL (UINT64_MAX),
17464 #endif
17465 NULL
17469 main ()
17472 const char **mv;
17473 for (mv = macro_values; *mv != NULL; mv++)
17475 const char *value = *mv;
17476 /* Test whether it looks like a cast expression. */
17477 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
17478 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
17479 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
17480 || strncmp (value, "((int)"/*)*/, 6) == 0
17481 || strncmp (value, "((signed short)"/*)*/, 15) == 0
17482 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
17483 return mv - macro_values + 1;
17485 return 0;
17488 return 0;
17490 _ACEOF
17491 if ac_fn_c_try_run "$LINENO"; then :
17492 gl_cv_header_working_stdint_h=yes
17494 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17495 conftest.$ac_objext conftest.beam conftest.$ac_ext
17500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
17504 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
17506 if test "$gl_cv_header_working_stdint_h" = yes; then
17507 STDINT_H=
17508 else
17509 for ac_header in sys/inttypes.h sys/bitypes.h
17510 do :
17511 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17512 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17513 eval as_val=\$$as_ac_Header
17514 if test "x$as_val" = x""yes; then :
17515 cat >>confdefs.h <<_ACEOF
17516 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17517 _ACEOF
17521 done
17523 if test $ac_cv_header_sys_inttypes_h = yes; then
17524 HAVE_SYS_INTTYPES_H=1
17525 else
17526 HAVE_SYS_INTTYPES_H=0
17529 if test $ac_cv_header_sys_bitypes_h = yes; then
17530 HAVE_SYS_BITYPES_H=1
17531 else
17532 HAVE_SYS_BITYPES_H=0
17538 if test $APPLE_UNIVERSAL_BUILD = 0; then
17541 for gltype in ptrdiff_t size_t ; do
17542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
17543 $as_echo_n "checking for bit size of $gltype... " >&6; }
17544 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
17545 $as_echo_n "(cached) " >&6
17546 else
17547 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
17548 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17549 included before <wchar.h>. */
17550 #include <stddef.h>
17551 #include <signal.h>
17552 #if HAVE_WCHAR_H
17553 # include <stdio.h>
17554 # include <time.h>
17555 # include <wchar.h>
17556 #endif
17558 #include <limits.h>"; then :
17560 else
17561 result=unknown
17564 eval gl_cv_bitsizeof_${gltype}=\$result
17567 eval ac_res=\$gl_cv_bitsizeof_${gltype}
17568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17569 $as_echo "$ac_res" >&6; }
17570 eval result=\$gl_cv_bitsizeof_${gltype}
17571 if test $result = unknown; then
17572 result=0
17574 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17575 cat >>confdefs.h <<_ACEOF
17576 #define BITSIZEOF_${GLTYPE} $result
17577 _ACEOF
17579 eval BITSIZEOF_${GLTYPE}=\$result
17580 done
17586 for gltype in sig_atomic_t wchar_t wint_t ; do
17587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
17588 $as_echo_n "checking for bit size of $gltype... " >&6; }
17589 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
17590 $as_echo_n "(cached) " >&6
17591 else
17592 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
17593 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17594 included before <wchar.h>. */
17595 #include <stddef.h>
17596 #include <signal.h>
17597 #if HAVE_WCHAR_H
17598 # include <stdio.h>
17599 # include <time.h>
17600 # include <wchar.h>
17601 #endif
17603 #include <limits.h>"; then :
17605 else
17606 result=unknown
17609 eval gl_cv_bitsizeof_${gltype}=\$result
17612 eval ac_res=\$gl_cv_bitsizeof_${gltype}
17613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17614 $as_echo "$ac_res" >&6; }
17615 eval result=\$gl_cv_bitsizeof_${gltype}
17616 if test $result = unknown; then
17617 result=0
17619 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17620 cat >>confdefs.h <<_ACEOF
17621 #define BITSIZEOF_${GLTYPE} $result
17622 _ACEOF
17624 eval BITSIZEOF_${GLTYPE}=\$result
17625 done
17630 for gltype in sig_atomic_t wchar_t wint_t ; do
17631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
17632 $as_echo_n "checking whether $gltype is signed... " >&6; }
17633 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
17634 $as_echo_n "(cached) " >&6
17635 else
17636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17637 /* end confdefs.h. */
17639 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17640 included before <wchar.h>. */
17641 #include <stddef.h>
17642 #include <signal.h>
17643 #if HAVE_WCHAR_H
17644 # include <stdio.h>
17645 # include <time.h>
17646 # include <wchar.h>
17647 #endif
17649 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
17651 main ()
17655 return 0;
17657 _ACEOF
17658 if ac_fn_c_try_compile "$LINENO"; then :
17659 result=yes
17660 else
17661 result=no
17663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17664 eval gl_cv_type_${gltype}_signed=\$result
17667 eval ac_res=\$gl_cv_type_${gltype}_signed
17668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17669 $as_echo "$ac_res" >&6; }
17670 eval result=\$gl_cv_type_${gltype}_signed
17671 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17672 if test "$result" = yes; then
17673 cat >>confdefs.h <<_ACEOF
17674 #define HAVE_SIGNED_${GLTYPE} 1
17675 _ACEOF
17677 eval HAVE_SIGNED_${GLTYPE}=1
17678 else
17679 eval HAVE_SIGNED_${GLTYPE}=0
17681 done
17684 gl_cv_type_ptrdiff_t_signed=yes
17685 gl_cv_type_size_t_signed=no
17686 if test $APPLE_UNIVERSAL_BUILD = 0; then
17689 for gltype in ptrdiff_t size_t ; do
17690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
17691 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
17692 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
17693 $as_echo_n "(cached) " >&6
17694 else
17695 eval gl_cv_type_${gltype}_suffix=no
17696 eval result=\$gl_cv_type_${gltype}_signed
17697 if test "$result" = yes; then
17698 glsufu=
17699 else
17700 glsufu=u
17702 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
17703 case $glsuf in
17704 '') gltype1='int';;
17705 l) gltype1='long int';;
17706 ll) gltype1='long long int';;
17707 i64) gltype1='__int64';;
17708 u) gltype1='unsigned int';;
17709 ul) gltype1='unsigned long int';;
17710 ull) gltype1='unsigned long long int';;
17711 ui64)gltype1='unsigned __int64';;
17712 esac
17713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17714 /* end confdefs.h. */
17716 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17717 included before <wchar.h>. */
17718 #include <stddef.h>
17719 #include <signal.h>
17720 #if HAVE_WCHAR_H
17721 # include <stdio.h>
17722 # include <time.h>
17723 # include <wchar.h>
17724 #endif
17726 extern $gltype foo;
17727 extern $gltype1 foo;
17729 main ()
17733 return 0;
17735 _ACEOF
17736 if ac_fn_c_try_compile "$LINENO"; then :
17737 eval gl_cv_type_${gltype}_suffix=\$glsuf
17739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17740 eval result=\$gl_cv_type_${gltype}_suffix
17741 test "$result" != no && break
17742 done
17744 eval ac_res=\$gl_cv_type_${gltype}_suffix
17745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17746 $as_echo "$ac_res" >&6; }
17747 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17748 eval result=\$gl_cv_type_${gltype}_suffix
17749 test "$result" = no && result=
17750 eval ${GLTYPE}_SUFFIX=\$result
17751 cat >>confdefs.h <<_ACEOF
17752 #define ${GLTYPE}_SUFFIX $result
17753 _ACEOF
17755 done
17761 for gltype in sig_atomic_t wchar_t wint_t ; do
17762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
17763 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
17764 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
17765 $as_echo_n "(cached) " >&6
17766 else
17767 eval gl_cv_type_${gltype}_suffix=no
17768 eval result=\$gl_cv_type_${gltype}_signed
17769 if test "$result" = yes; then
17770 glsufu=
17771 else
17772 glsufu=u
17774 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
17775 case $glsuf in
17776 '') gltype1='int';;
17777 l) gltype1='long int';;
17778 ll) gltype1='long long int';;
17779 i64) gltype1='__int64';;
17780 u) gltype1='unsigned int';;
17781 ul) gltype1='unsigned long int';;
17782 ull) gltype1='unsigned long long int';;
17783 ui64)gltype1='unsigned __int64';;
17784 esac
17785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17786 /* end confdefs.h. */
17788 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17789 included before <wchar.h>. */
17790 #include <stddef.h>
17791 #include <signal.h>
17792 #if HAVE_WCHAR_H
17793 # include <stdio.h>
17794 # include <time.h>
17795 # include <wchar.h>
17796 #endif
17798 extern $gltype foo;
17799 extern $gltype1 foo;
17801 main ()
17805 return 0;
17807 _ACEOF
17808 if ac_fn_c_try_compile "$LINENO"; then :
17809 eval gl_cv_type_${gltype}_suffix=\$glsuf
17811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17812 eval result=\$gl_cv_type_${gltype}_suffix
17813 test "$result" != no && break
17814 done
17816 eval ac_res=\$gl_cv_type_${gltype}_suffix
17817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17818 $as_echo "$ac_res" >&6; }
17819 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17820 eval result=\$gl_cv_type_${gltype}_suffix
17821 test "$result" = no && result=
17822 eval ${GLTYPE}_SUFFIX=\$result
17823 cat >>confdefs.h <<_ACEOF
17824 #define ${GLTYPE}_SUFFIX $result
17825 _ACEOF
17827 done
17831 STDINT_H=stdint.h
17834 if test -n "$STDINT_H"; then
17835 GL_GENERATE_STDINT_H_TRUE=
17836 GL_GENERATE_STDINT_H_FALSE='#'
17837 else
17838 GL_GENERATE_STDINT_H_TRUE='#'
17839 GL_GENERATE_STDINT_H_FALSE=
17846 GNULIB_IMAXABS=0;
17847 GNULIB_IMAXDIV=0;
17848 GNULIB_STRTOIMAX=0;
17849 GNULIB_STRTOUMAX=0;
17850 HAVE_DECL_IMAXABS=1;
17851 HAVE_DECL_IMAXDIV=1;
17852 HAVE_DECL_STRTOIMAX=1;
17853 HAVE_DECL_STRTOUMAX=1;
17854 INT32_MAX_LT_INTMAX_MAX=1;
17855 INT64_MAX_EQ_LONG_MAX='defined _LP64';
17856 PRI_MACROS_BROKEN=0;
17857 PRIPTR_PREFIX=__PRIPTR_PREFIX;
17858 UINT32_MAX_LT_UINTMAX_MAX=1;
17859 UINT64_MAX_EQ_ULONG_MAX='defined _LP64';
17875 if test $gl_cv_have_include_next = yes; then
17876 gl_cv_next_inttypes_h='<'inttypes.h'>'
17877 else
17878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
17879 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
17880 if test "${gl_cv_next_inttypes_h+set}" = set; then :
17881 $as_echo_n "(cached) " >&6
17882 else
17884 if test $ac_cv_header_inttypes_h = yes; then
17887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17888 /* end confdefs.h. */
17889 #include <inttypes.h>
17891 _ACEOF
17892 case "$host_os" in
17893 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17894 *) gl_absname_cpp="$ac_cpp" ;;
17895 esac
17896 gl_cv_next_inttypes_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17897 sed -n '\#/inttypes.h#{
17898 s#.*"\(.*/inttypes.h\)".*#\1#
17899 s#^/[^/]#//&#
17902 }'`'"'
17903 else
17904 gl_cv_next_inttypes_h='<'inttypes.h'>'
17909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
17910 $as_echo "$gl_cv_next_inttypes_h" >&6; }
17912 NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
17914 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17915 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17916 gl_next_as_first_directive='<'inttypes.h'>'
17917 else
17918 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17919 gl_next_as_first_directive=$gl_cv_next_inttypes_h
17921 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive
17930 $as_echo "#define GL_TRIGGER_STDC_LIMIT_MACROS 1" >>confdefs.h
17937 GNULIB_FCHMODAT=0;
17938 GNULIB_FSTATAT=0;
17939 GNULIB_FUTIMENS=0;
17940 GNULIB_LCHMOD=0;
17941 GNULIB_LSTAT=0;
17942 GNULIB_MKDIRAT=0;
17943 GNULIB_MKFIFO=0;
17944 GNULIB_MKFIFOAT=0;
17945 GNULIB_MKNOD=0;
17946 GNULIB_MKNODAT=0;
17947 GNULIB_STAT=0;
17948 GNULIB_UTIMENSAT=0;
17949 HAVE_FCHMODAT=1;
17950 HAVE_FSTATAT=1;
17951 HAVE_FUTIMENS=1;
17952 HAVE_LCHMOD=1;
17953 HAVE_LSTAT=1;
17954 HAVE_MKDIRAT=1;
17955 HAVE_MKFIFO=1;
17956 HAVE_MKFIFOAT=1;
17957 HAVE_MKNOD=1;
17958 HAVE_MKNODAT=1;
17959 HAVE_UTIMENSAT=1;
17960 REPLACE_FSTAT=0;
17961 REPLACE_FSTATAT=0;
17962 REPLACE_FUTIMENS=0;
17963 REPLACE_LSTAT=0;
17964 REPLACE_MKDIR=0;
17965 REPLACE_MKFIFO=0;
17966 REPLACE_MKNOD=0;
17967 REPLACE_STAT=0;
17968 REPLACE_UTIMENSAT=0;
17973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
17974 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
17975 if test "${gl_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
17976 $as_echo_n "(cached) " >&6
17977 else
17978 rm -f conftest.sym conftest.file
17979 echo >conftest.file
17980 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
17981 if test "$cross_compiling" = yes; then :
17982 # When cross-compiling, be pessimistic so we will end up using the
17983 # replacement version of lstat that checks for trailing slashes and
17984 # calls lstat a second time when necessary.
17985 gl_cv_func_lstat_dereferences_slashed_symlink=no
17987 else
17988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17989 /* end confdefs.h. */
17990 $ac_includes_default
17992 main ()
17994 struct stat sbuf;
17995 /* Linux will dereference the symlink and fail, as required by
17996 POSIX. That is better in the sense that it means we will not
17997 have to compile and use the lstat wrapper. */
17998 return lstat ("conftest.sym/", &sbuf) == 0;
18001 return 0;
18003 _ACEOF
18004 if ac_fn_c_try_run "$LINENO"; then :
18005 gl_cv_func_lstat_dereferences_slashed_symlink=yes
18006 else
18007 gl_cv_func_lstat_dereferences_slashed_symlink=no
18009 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18010 conftest.$ac_objext conftest.beam conftest.$ac_ext
18013 else
18014 # If the 'ln -s' command failed, then we probably don't even
18015 # have an lstat function.
18016 gl_cv_func_lstat_dereferences_slashed_symlink=no
18018 rm -f conftest.sym conftest.file
18021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
18022 $as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
18023 test $gl_cv_func_lstat_dereferences_slashed_symlink = yes &&
18025 cat >>confdefs.h <<_ACEOF
18026 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
18027 _ACEOF
18031 GNULIB_MKTIME=0;
18032 GNULIB_NANOSLEEP=0;
18033 GNULIB_STRPTIME=0;
18034 GNULIB_TIMEGM=0;
18035 GNULIB_TIME_R=0;
18036 HAVE_DECL_LOCALTIME_R=1;
18037 HAVE_NANOSLEEP=1;
18038 HAVE_STRPTIME=1;
18039 HAVE_TIMEGM=1;
18040 REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
18041 REPLACE_MKTIME=GNULIB_PORTCHECK;
18042 REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
18043 REPLACE_TIMEGM=GNULIB_PORTCHECK;
18050 GNULIB_PTHREAD_SIGMASK=0;
18051 GNULIB_SIGNAL_H_SIGPIPE=0;
18052 GNULIB_SIGPROCMASK=0;
18053 GNULIB_SIGACTION=0;
18054 HAVE_POSIX_SIGNALBLOCKING=1;
18055 HAVE_PTHREAD_SIGMASK=1;
18056 HAVE_SIGSET_T=1;
18057 HAVE_SIGINFO_T=1;
18058 HAVE_SIGACTION=1;
18059 HAVE_STRUCT_SIGACTION_SA_SIGACTION=1;
18061 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=1;
18063 HAVE_SIGHANDLER_T=1;
18064 REPLACE_PTHREAD_SIGMASK=0;
18069 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
18070 #include <signal.h>
18071 /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */
18072 #include <sys/types.h>
18075 if test "x$ac_cv_type_sigset_t" = x""yes; then :
18077 cat >>confdefs.h <<_ACEOF
18078 #define HAVE_SIGSET_T 1
18079 _ACEOF
18081 gl_cv_type_sigset_t=yes
18082 else
18083 gl_cv_type_sigset_t=no
18086 if test $gl_cv_type_sigset_t != yes; then
18087 HAVE_SIGSET_T=0
18094 if test $ac_cv_header_sys_socket_h = no; then
18095 for ac_header in ws2tcpip.h
18096 do :
18097 ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
18098 if test "x$ac_cv_header_ws2tcpip_h" = x""yes; then :
18099 cat >>confdefs.h <<_ACEOF
18100 #define HAVE_WS2TCPIP_H 1
18101 _ACEOF
18105 done
18109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
18110 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
18111 if test "${ac_cv_header_stdbool_h+set}" = set; then :
18112 $as_echo_n "(cached) " >&6
18113 else
18114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18115 /* end confdefs.h. */
18117 #include <stdbool.h>
18118 #ifndef bool
18119 "error: bool is not defined"
18120 #endif
18121 #ifndef false
18122 "error: false is not defined"
18123 #endif
18124 #if false
18125 "error: false is not 0"
18126 #endif
18127 #ifndef true
18128 "error: true is not defined"
18129 #endif
18130 #if true != 1
18131 "error: true is not 1"
18132 #endif
18133 #ifndef __bool_true_false_are_defined
18134 "error: __bool_true_false_are_defined is not defined"
18135 #endif
18137 struct s { _Bool s: 1; _Bool t; } s;
18139 char a[true == 1 ? 1 : -1];
18140 char b[false == 0 ? 1 : -1];
18141 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
18142 char d[(bool) 0.5 == true ? 1 : -1];
18143 /* See body of main program for 'e'. */
18144 char f[(_Bool) 0.0 == false ? 1 : -1];
18145 char g[true];
18146 char h[sizeof (_Bool)];
18147 char i[sizeof s.t];
18148 enum { j = false, k = true, l = false * true, m = true * 256 };
18149 /* The following fails for
18150 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
18151 _Bool n[m];
18152 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
18153 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
18154 /* Catch a bug in an HP-UX C compiler. See
18155 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
18156 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
18158 _Bool q = true;
18159 _Bool *pq = &q;
18162 main ()
18165 bool e = &s;
18166 *pq |= q;
18167 *pq |= ! q;
18168 /* Refer to every declared value, to avoid compiler optimizations. */
18169 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
18170 + !m + !n + !o + !p + !q + !pq);
18173 return 0;
18175 _ACEOF
18176 if ac_fn_c_try_compile "$LINENO"; then :
18177 ac_cv_header_stdbool_h=yes
18178 else
18179 ac_cv_header_stdbool_h=no
18181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
18184 $as_echo "$ac_cv_header_stdbool_h" >&6; }
18185 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
18186 if test "x$ac_cv_type__Bool" = x""yes; then :
18188 cat >>confdefs.h <<_ACEOF
18189 #define HAVE__BOOL 1
18190 _ACEOF
18197 REPLACE_NULL=0;
18198 HAVE_WCHAR_T=1;
18201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
18202 $as_echo_n "checking for wchar_t... " >&6; }
18203 if test "${gt_cv_c_wchar_t+set}" = set; then :
18204 $as_echo_n "(cached) " >&6
18205 else
18206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18207 /* end confdefs.h. */
18208 #include <stddef.h>
18209 wchar_t foo = (wchar_t)'\0';
18211 main ()
18215 return 0;
18217 _ACEOF
18218 if ac_fn_c_try_compile "$LINENO"; then :
18219 gt_cv_c_wchar_t=yes
18220 else
18221 gt_cv_c_wchar_t=no
18223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
18226 $as_echo "$gt_cv_c_wchar_t" >&6; }
18227 if test $gt_cv_c_wchar_t = yes; then
18229 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
18234 GNULIB_DPRINTF=0;
18235 GNULIB_FCLOSE=0;
18236 GNULIB_FFLUSH=0;
18237 GNULIB_FGETC=0;
18238 GNULIB_FGETS=0;
18239 GNULIB_FOPEN=0;
18240 GNULIB_FPRINTF=0;
18241 GNULIB_FPRINTF_POSIX=0;
18242 GNULIB_FPURGE=0;
18243 GNULIB_FPUTC=0;
18244 GNULIB_FPUTS=0;
18245 GNULIB_FREAD=0;
18246 GNULIB_FREOPEN=0;
18247 GNULIB_FSCANF=0;
18248 GNULIB_FSEEK=0;
18249 GNULIB_FSEEKO=0;
18250 GNULIB_FTELL=0;
18251 GNULIB_FTELLO=0;
18252 GNULIB_FWRITE=0;
18253 GNULIB_GETC=0;
18254 GNULIB_GETCHAR=0;
18255 GNULIB_GETDELIM=0;
18256 GNULIB_GETLINE=0;
18257 GNULIB_GETS=0;
18258 GNULIB_OBSTACK_PRINTF=0;
18259 GNULIB_OBSTACK_PRINTF_POSIX=0;
18260 GNULIB_PERROR=0;
18261 GNULIB_POPEN=0;
18262 GNULIB_PRINTF=0;
18263 GNULIB_PRINTF_POSIX=0;
18264 GNULIB_PUTC=0;
18265 GNULIB_PUTCHAR=0;
18266 GNULIB_PUTS=0;
18267 GNULIB_REMOVE=0;
18268 GNULIB_RENAME=0;
18269 GNULIB_RENAMEAT=0;
18270 GNULIB_SCANF=0;
18271 GNULIB_SNPRINTF=0;
18272 GNULIB_SPRINTF_POSIX=0;
18273 GNULIB_STDIO_H_NONBLOCKING=0;
18274 GNULIB_STDIO_H_SIGPIPE=0;
18275 GNULIB_TMPFILE=0;
18276 GNULIB_VASPRINTF=0;
18277 GNULIB_VFSCANF=0;
18278 GNULIB_VSCANF=0;
18279 GNULIB_VDPRINTF=0;
18280 GNULIB_VFPRINTF=0;
18281 GNULIB_VFPRINTF_POSIX=0;
18282 GNULIB_VPRINTF=0;
18283 GNULIB_VPRINTF_POSIX=0;
18284 GNULIB_VSNPRINTF=0;
18285 GNULIB_VSPRINTF_POSIX=0;
18286 HAVE_DECL_FPURGE=1;
18287 HAVE_DECL_FSEEKO=1;
18288 HAVE_DECL_FTELLO=1;
18289 HAVE_DECL_GETDELIM=1;
18290 HAVE_DECL_GETLINE=1;
18291 HAVE_DECL_OBSTACK_PRINTF=1;
18292 HAVE_DECL_SNPRINTF=1;
18293 HAVE_DECL_VSNPRINTF=1;
18294 HAVE_DPRINTF=1;
18295 HAVE_FSEEKO=1;
18296 HAVE_FTELLO=1;
18297 HAVE_RENAMEAT=1;
18298 HAVE_VASPRINTF=1;
18299 HAVE_VDPRINTF=1;
18300 REPLACE_DPRINTF=0;
18301 REPLACE_FCLOSE=0;
18302 REPLACE_FFLUSH=0;
18303 REPLACE_FOPEN=0;
18304 REPLACE_FPRINTF=0;
18305 REPLACE_FPURGE=0;
18306 REPLACE_FREOPEN=0;
18307 REPLACE_FSEEK=0;
18308 REPLACE_FSEEKO=0;
18309 REPLACE_FTELL=0;
18310 REPLACE_FTELLO=0;
18311 REPLACE_GETDELIM=0;
18312 REPLACE_GETLINE=0;
18313 REPLACE_OBSTACK_PRINTF=0;
18314 REPLACE_PERROR=0;
18315 REPLACE_POPEN=0;
18316 REPLACE_PRINTF=0;
18317 REPLACE_REMOVE=0;
18318 REPLACE_RENAME=0;
18319 REPLACE_RENAMEAT=0;
18320 REPLACE_SNPRINTF=0;
18321 REPLACE_SPRINTF=0;
18322 REPLACE_STDIO_READ_FUNCS=0;
18323 REPLACE_STDIO_WRITE_FUNCS=0;
18324 REPLACE_TMPFILE=0;
18325 REPLACE_VASPRINTF=0;
18326 REPLACE_VDPRINTF=0;
18327 REPLACE_VFPRINTF=0;
18328 REPLACE_VPRINTF=0;
18329 REPLACE_VSNPRINTF=0;
18330 REPLACE_VSPRINTF=0;
18333 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
18335 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then :
18337 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
18344 ac_fn_c_check_decl "$LINENO" "strtoimax" "ac_cv_have_decl_strtoimax" "$ac_includes_default"
18345 if test "x$ac_cv_have_decl_strtoimax" = x""yes; then :
18346 ac_have_decl=1
18347 else
18348 ac_have_decl=0
18351 cat >>confdefs.h <<_ACEOF
18352 #define HAVE_DECL_STRTOIMAX $ac_have_decl
18353 _ACEOF
18355 ac_fn_c_check_decl "$LINENO" "strtoumax" "ac_cv_have_decl_strtoumax" "$ac_includes_default"
18356 if test "x$ac_cv_have_decl_strtoumax" = x""yes; then :
18357 ac_have_decl=1
18358 else
18359 ac_have_decl=0
18362 cat >>confdefs.h <<_ACEOF
18363 #define HAVE_DECL_STRTOUMAX $ac_have_decl
18364 _ACEOF
18368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
18369 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
18370 if test "${ac_cv_header_stat_broken+set}" = set; then :
18371 $as_echo_n "(cached) " >&6
18372 else
18373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18374 /* end confdefs.h. */
18375 #include <sys/types.h>
18376 #include <sys/stat.h>
18378 #if defined S_ISBLK && defined S_IFDIR
18379 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
18380 #endif
18382 #if defined S_ISBLK && defined S_IFCHR
18383 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
18384 #endif
18386 #if defined S_ISLNK && defined S_IFREG
18387 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
18388 #endif
18390 #if defined S_ISSOCK && defined S_IFREG
18391 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
18392 #endif
18394 _ACEOF
18395 if ac_fn_c_try_compile "$LINENO"; then :
18396 ac_cv_header_stat_broken=no
18397 else
18398 ac_cv_header_stat_broken=yes
18400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
18403 $as_echo "$ac_cv_header_stat_broken" >&6; }
18404 if test $ac_cv_header_stat_broken = yes; then
18406 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
18412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
18413 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
18414 if test "${ac_cv_c_restrict+set}" = set; then :
18415 $as_echo_n "(cached) " >&6
18416 else
18417 ac_cv_c_restrict=no
18418 # The order here caters to the fact that C++ does not require restrict.
18419 for ac_kw in __restrict __restrict__ _Restrict restrict; do
18420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18421 /* end confdefs.h. */
18422 typedef int * int_ptr;
18423 int foo (int_ptr $ac_kw ip) {
18424 return ip[0];
18427 main ()
18429 int s[1];
18430 int * $ac_kw t = s;
18431 t[0] = 0;
18432 return foo(t)
18434 return 0;
18436 _ACEOF
18437 if ac_fn_c_try_compile "$LINENO"; then :
18438 ac_cv_c_restrict=$ac_kw
18440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18441 test "$ac_cv_c_restrict" != no && break
18442 done
18445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
18446 $as_echo "$ac_cv_c_restrict" >&6; }
18448 case $ac_cv_c_restrict in
18449 restrict) ;;
18450 no) $as_echo "#define restrict /**/" >>confdefs.h
18452 *) cat >>confdefs.h <<_ACEOF
18453 #define restrict $ac_cv_c_restrict
18454 _ACEOF
18456 esac
18462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
18463 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
18464 if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then :
18465 $as_echo_n "(cached) " >&6
18466 else
18467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18468 /* end confdefs.h. */
18469 #include <time.h>
18472 main ()
18474 static struct timespec x; x.tv_sec = x.tv_nsec;
18476 return 0;
18478 _ACEOF
18479 if ac_fn_c_try_compile "$LINENO"; then :
18480 gl_cv_sys_struct_timespec_in_time_h=yes
18481 else
18482 gl_cv_sys_struct_timespec_in_time_h=no
18484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
18487 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
18489 TIME_H_DEFINES_STRUCT_TIMESPEC=0
18490 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
18491 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
18492 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
18493 TIME_H_DEFINES_STRUCT_TIMESPEC=1
18494 else
18495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
18496 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
18497 if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then :
18498 $as_echo_n "(cached) " >&6
18499 else
18500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18501 /* end confdefs.h. */
18502 #include <sys/time.h>
18505 main ()
18507 static struct timespec x; x.tv_sec = x.tv_nsec;
18509 return 0;
18511 _ACEOF
18512 if ac_fn_c_try_compile "$LINENO"; then :
18513 gl_cv_sys_struct_timespec_in_sys_time_h=yes
18514 else
18515 gl_cv_sys_struct_timespec_in_sys_time_h=no
18517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
18520 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
18521 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
18522 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
18523 else
18524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
18525 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
18526 if test "${gl_cv_sys_struct_timespec_in_pthread_h+set}" = set; then :
18527 $as_echo_n "(cached) " >&6
18528 else
18529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18530 /* end confdefs.h. */
18531 #include <pthread.h>
18534 main ()
18536 static struct timespec x; x.tv_sec = x.tv_nsec;
18538 return 0;
18540 _ACEOF
18541 if ac_fn_c_try_compile "$LINENO"; then :
18542 gl_cv_sys_struct_timespec_in_pthread_h=yes
18543 else
18544 gl_cv_sys_struct_timespec_in_pthread_h=no
18546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
18549 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
18550 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
18551 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
18570 if test $gl_cv_have_include_next = yes; then
18571 gl_cv_next_time_h='<'time.h'>'
18572 else
18573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
18574 $as_echo_n "checking absolute name of <time.h>... " >&6; }
18575 if test "${gl_cv_next_time_h+set}" = set; then :
18576 $as_echo_n "(cached) " >&6
18577 else
18579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18580 /* end confdefs.h. */
18581 #include <time.h>
18583 _ACEOF
18584 case "$host_os" in
18585 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18586 *) gl_absname_cpp="$ac_cpp" ;;
18587 esac
18588 gl_cv_next_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18589 sed -n '\#/time.h#{
18590 s#.*"\(.*/time.h\)".*#\1#
18591 s#^/[^/]#//&#
18594 }'`'"'
18598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
18599 $as_echo "$gl_cv_next_time_h" >&6; }
18601 NEXT_TIME_H=$gl_cv_next_time_h
18603 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18604 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18605 gl_next_as_first_directive='<'time.h'>'
18606 else
18607 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18608 gl_next_as_first_directive=$gl_cv_next_time_h
18610 NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
18617 ac_fn_c_check_decl "$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "$ac_includes_default"
18618 if test "x$ac_cv_have_decl_localtime_r" = x""yes; then :
18619 ac_have_decl=1
18620 else
18621 ac_have_decl=0
18624 cat >>confdefs.h <<_ACEOF
18625 #define HAVE_DECL_LOCALTIME_R $ac_have_decl
18626 _ACEOF
18631 if false; then
18632 GL_COND_LIBTOOL_TRUE=
18633 GL_COND_LIBTOOL_FALSE='#'
18634 else
18635 GL_COND_LIBTOOL_TRUE='#'
18636 GL_COND_LIBTOOL_FALSE=
18639 gl_cond_libtool=false
18640 gl_libdeps=
18641 gl_ltlibdeps=
18642 gl_m4_base='m4'
18652 gl_source_base='lib'
18655 if test $ac_cv_func_alloca_works = no; then
18659 # Define an additional variable used in the Makefile substitution.
18660 if test $ac_cv_working_alloca_h = yes; then
18661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
18662 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
18663 if test "${gl_cv_rpl_alloca+set}" = set; then :
18664 $as_echo_n "(cached) " >&6
18665 else
18667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18668 /* end confdefs.h. */
18670 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
18671 Need own alloca
18672 #endif
18674 _ACEOF
18675 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18676 $EGREP "Need own alloca" >/dev/null 2>&1; then :
18677 gl_cv_rpl_alloca=yes
18678 else
18679 gl_cv_rpl_alloca=no
18681 rm -f conftest*
18685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
18686 $as_echo "$gl_cv_rpl_alloca" >&6; }
18687 if test $gl_cv_rpl_alloca = yes; then
18689 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
18691 ALLOCA_H=alloca.h
18692 else
18693 ALLOCA_H=
18695 else
18696 ALLOCA_H=alloca.h
18699 if test -n "$ALLOCA_H"; then
18700 GL_GENERATE_ALLOCA_H_TRUE=
18701 GL_GENERATE_ALLOCA_H_FALSE='#'
18702 else
18703 GL_GENERATE_ALLOCA_H_TRUE='#'
18704 GL_GENERATE_ALLOCA_H_FALSE=
18733 $as_echo "#define HAVE_DUP2 1" >>confdefs.h
18736 if test $HAVE_DUP2 = 1; then
18737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5
18738 $as_echo_n "checking whether dup2 works... " >&6; }
18739 if test "${gl_cv_func_dup2_works+set}" = set; then :
18740 $as_echo_n "(cached) " >&6
18741 else
18742 if test "$cross_compiling" = yes; then :
18743 case "$host_os" in
18744 mingw*) # on this platform, dup2 always returns 0 for success
18745 gl_cv_func_dup2_works=no;;
18746 cygwin*) # on cygwin 1.5.x, dup2(1,1) returns 0
18747 gl_cv_func_dup2_works=no;;
18748 linux*) # On linux between 2008-07-27 and 2009-05-11, dup2 of a
18749 # closed fd may yield -EBADF instead of -1 / errno=EBADF.
18750 gl_cv_func_dup2_works=no;;
18751 freebsd*) # on FreeBSD 6.1, dup2(1,1000000) gives EMFILE, not EBADF.
18752 gl_cv_func_dup2_works=no;;
18753 haiku*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC.
18754 gl_cv_func_dup2_works=no;;
18755 *) gl_cv_func_dup2_works=yes;;
18756 esac
18757 else
18758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18759 /* end confdefs.h. */
18761 #include <unistd.h>
18762 #include <fcntl.h>
18763 #include <errno.h>
18765 main ()
18767 int result = 0;
18768 #ifdef FD_CLOEXEC
18769 if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1)
18770 result |= 1;
18771 #endif
18772 if (dup2 (1, 1) == 0)
18773 result |= 2;
18774 #ifdef FD_CLOEXEC
18775 if (fcntl (1, F_GETFD) != FD_CLOEXEC)
18776 result |= 4;
18777 #endif
18778 close (0);
18779 if (dup2 (0, 0) != -1)
18780 result |= 8;
18781 /* Many gnulib modules require POSIX conformance of EBADF. */
18782 if (dup2 (2, 1000000) == -1 && errno != EBADF)
18783 result |= 16;
18784 return result;
18787 return 0;
18790 _ACEOF
18791 if ac_fn_c_try_run "$LINENO"; then :
18792 gl_cv_func_dup2_works=yes
18793 else
18794 gl_cv_func_dup2_works=no
18796 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18797 conftest.$ac_objext conftest.beam conftest.$ac_ext
18802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5
18803 $as_echo "$gl_cv_func_dup2_works" >&6; }
18804 if test "$gl_cv_func_dup2_works" = no; then
18808 if test $ac_cv_func_dup2 = yes; then
18809 REPLACE_DUP2=1
18819 gl_LIBOBJS="$gl_LIBOBJS dup2.$ac_objext"
18830 GNULIB_DUP2=1
18842 # Persuade glibc <stdlib.h> to declare getloadavg().
18845 gl_save_LIBS=$LIBS
18847 # getloadvg is present in libc on glibc >= 2.2, MacOS X, FreeBSD >= 2.0,
18848 # NetBSD >= 0.9, OpenBSD >= 2.0, Solaris >= 7.
18849 HAVE_GETLOADAVG=1
18850 ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
18851 if test "x$ac_cv_func_getloadavg" = x""yes; then :
18853 else
18854 gl_func_getloadavg_done=no
18856 # Some systems with -lutil have (and need) -lkvm as well, some do not.
18857 # On Solaris, -lkvm requires nlist from -lelf, so check that first
18858 # to get the right answer into the cache.
18859 # For kstat on solaris, we need to test for libelf and libkvm to force the
18860 # definition of SVR4 below.
18861 if test $gl_func_getloadavg_done = no; then
18862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
18863 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
18864 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then :
18865 $as_echo_n "(cached) " >&6
18866 else
18867 ac_check_lib_save_LIBS=$LIBS
18868 LIBS="-lelf $LIBS"
18869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18870 /* end confdefs.h. */
18872 /* Override any GCC internal prototype to avoid an error.
18873 Use char because int might match the return type of a GCC
18874 builtin and then its argument prototype would still apply. */
18875 #ifdef __cplusplus
18876 extern "C"
18877 #endif
18878 char elf_begin ();
18880 main ()
18882 return elf_begin ();
18884 return 0;
18886 _ACEOF
18887 if ac_fn_c_try_link "$LINENO"; then :
18888 ac_cv_lib_elf_elf_begin=yes
18889 else
18890 ac_cv_lib_elf_elf_begin=no
18892 rm -f core conftest.err conftest.$ac_objext \
18893 conftest$ac_exeext conftest.$ac_ext
18894 LIBS=$ac_check_lib_save_LIBS
18896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
18897 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
18898 if test "x$ac_cv_lib_elf_elf_begin" = x""yes; then :
18899 LIBS="-lelf $LIBS"
18902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
18903 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
18904 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
18905 $as_echo_n "(cached) " >&6
18906 else
18907 ac_check_lib_save_LIBS=$LIBS
18908 LIBS="-lkvm $LIBS"
18909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18910 /* end confdefs.h. */
18912 /* Override any GCC internal prototype to avoid an error.
18913 Use char because int might match the return type of a GCC
18914 builtin and then its argument prototype would still apply. */
18915 #ifdef __cplusplus
18916 extern "C"
18917 #endif
18918 char kvm_open ();
18920 main ()
18922 return kvm_open ();
18924 return 0;
18926 _ACEOF
18927 if ac_fn_c_try_link "$LINENO"; then :
18928 ac_cv_lib_kvm_kvm_open=yes
18929 else
18930 ac_cv_lib_kvm_kvm_open=no
18932 rm -f core conftest.err conftest.$ac_objext \
18933 conftest$ac_exeext conftest.$ac_ext
18934 LIBS=$ac_check_lib_save_LIBS
18936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
18937 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
18938 if test "x$ac_cv_lib_kvm_kvm_open" = x""yes; then :
18939 LIBS="-lkvm $LIBS"
18942 # Check for the 4.4BSD definition of getloadavg.
18943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
18944 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
18945 if test "${ac_cv_lib_util_getloadavg+set}" = set; then :
18946 $as_echo_n "(cached) " >&6
18947 else
18948 ac_check_lib_save_LIBS=$LIBS
18949 LIBS="-lutil $LIBS"
18950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18951 /* end confdefs.h. */
18953 /* Override any GCC internal prototype to avoid an error.
18954 Use char because int might match the return type of a GCC
18955 builtin and then its argument prototype would still apply. */
18956 #ifdef __cplusplus
18957 extern "C"
18958 #endif
18959 char getloadavg ();
18961 main ()
18963 return getloadavg ();
18965 return 0;
18967 _ACEOF
18968 if ac_fn_c_try_link "$LINENO"; then :
18969 ac_cv_lib_util_getloadavg=yes
18970 else
18971 ac_cv_lib_util_getloadavg=no
18973 rm -f core conftest.err conftest.$ac_objext \
18974 conftest$ac_exeext conftest.$ac_ext
18975 LIBS=$ac_check_lib_save_LIBS
18977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
18978 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
18979 if test "x$ac_cv_lib_util_getloadavg" = x""yes; then :
18980 LIBS="-lutil $LIBS" gl_func_getloadavg_done=yes
18985 if test $gl_func_getloadavg_done = no; then
18986 # There is a commonly available library for RS/6000 AIX.
18987 # Since it is not a standard part of AIX, it might be installed locally.
18988 gl_getloadavg_LIBS=$LIBS
18989 LIBS="-L/usr/local/lib $LIBS"
18990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
18991 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
18992 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then :
18993 $as_echo_n "(cached) " >&6
18994 else
18995 ac_check_lib_save_LIBS=$LIBS
18996 LIBS="-lgetloadavg $LIBS"
18997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18998 /* end confdefs.h. */
19000 /* Override any GCC internal prototype to avoid an error.
19001 Use char because int might match the return type of a GCC
19002 builtin and then its argument prototype would still apply. */
19003 #ifdef __cplusplus
19004 extern "C"
19005 #endif
19006 char getloadavg ();
19008 main ()
19010 return getloadavg ();
19012 return 0;
19014 _ACEOF
19015 if ac_fn_c_try_link "$LINENO"; then :
19016 ac_cv_lib_getloadavg_getloadavg=yes
19017 else
19018 ac_cv_lib_getloadavg_getloadavg=no
19020 rm -f core conftest.err conftest.$ac_objext \
19021 conftest$ac_exeext conftest.$ac_ext
19022 LIBS=$ac_check_lib_save_LIBS
19024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
19025 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
19026 if test "x$ac_cv_lib_getloadavg_getloadavg" = x""yes; then :
19027 LIBS="-lgetloadavg $LIBS" gl_func_getloadavg_done=yes
19028 else
19029 LIBS=$gl_getloadavg_LIBS
19034 # Set up the replacement function if necessary.
19035 if test $gl_func_getloadavg_done = no; then
19036 HAVE_GETLOADAVG=0
19038 # Solaris has libkstat which does not require root.
19039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
19040 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
19041 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
19042 $as_echo_n "(cached) " >&6
19043 else
19044 ac_check_lib_save_LIBS=$LIBS
19045 LIBS="-lkstat $LIBS"
19046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19047 /* end confdefs.h. */
19049 /* Override any GCC internal prototype to avoid an error.
19050 Use char because int might match the return type of a GCC
19051 builtin and then its argument prototype would still apply. */
19052 #ifdef __cplusplus
19053 extern "C"
19054 #endif
19055 char kstat_open ();
19057 main ()
19059 return kstat_open ();
19061 return 0;
19063 _ACEOF
19064 if ac_fn_c_try_link "$LINENO"; then :
19065 ac_cv_lib_kstat_kstat_open=yes
19066 else
19067 ac_cv_lib_kstat_kstat_open=no
19069 rm -f core conftest.err conftest.$ac_objext \
19070 conftest$ac_exeext conftest.$ac_ext
19071 LIBS=$ac_check_lib_save_LIBS
19073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
19074 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
19075 if test "x$ac_cv_lib_kstat_kstat_open" = x""yes; then :
19076 cat >>confdefs.h <<_ACEOF
19077 #define HAVE_LIBKSTAT 1
19078 _ACEOF
19080 LIBS="-lkstat $LIBS"
19084 test $ac_cv_lib_kstat_kstat_open = yes && gl_func_getloadavg_done=yes
19086 # AIX has libperfstat which does not require root
19087 if test $gl_func_getloadavg_done = no; then
19088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perfstat_cpu_total in -lperfstat" >&5
19089 $as_echo_n "checking for perfstat_cpu_total in -lperfstat... " >&6; }
19090 if test "${ac_cv_lib_perfstat_perfstat_cpu_total+set}" = set; then :
19091 $as_echo_n "(cached) " >&6
19092 else
19093 ac_check_lib_save_LIBS=$LIBS
19094 LIBS="-lperfstat $LIBS"
19095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19096 /* end confdefs.h. */
19098 /* Override any GCC internal prototype to avoid an error.
19099 Use char because int might match the return type of a GCC
19100 builtin and then its argument prototype would still apply. */
19101 #ifdef __cplusplus
19102 extern "C"
19103 #endif
19104 char perfstat_cpu_total ();
19106 main ()
19108 return perfstat_cpu_total ();
19110 return 0;
19112 _ACEOF
19113 if ac_fn_c_try_link "$LINENO"; then :
19114 ac_cv_lib_perfstat_perfstat_cpu_total=yes
19115 else
19116 ac_cv_lib_perfstat_perfstat_cpu_total=no
19118 rm -f core conftest.err conftest.$ac_objext \
19119 conftest$ac_exeext conftest.$ac_ext
19120 LIBS=$ac_check_lib_save_LIBS
19122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_perfstat_perfstat_cpu_total" >&5
19123 $as_echo "$ac_cv_lib_perfstat_perfstat_cpu_total" >&6; }
19124 if test "x$ac_cv_lib_perfstat_perfstat_cpu_total" = x""yes; then :
19125 cat >>confdefs.h <<_ACEOF
19126 #define HAVE_LIBPERFSTAT 1
19127 _ACEOF
19129 LIBS="-lperfstat $LIBS"
19133 test $ac_cv_lib_perfstat_perfstat_cpu_total = yes && gl_func_getloadavg_done=yes
19136 if test $gl_func_getloadavg_done = no; then
19137 ac_fn_c_check_header_mongrel "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
19138 if test "x$ac_cv_header_sys_dg_sys_info_h" = x""yes; then :
19139 gl_func_getloadavg_done=yes
19141 $as_echo "#define DGUX 1" >>confdefs.h
19143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
19144 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
19145 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then :
19146 $as_echo_n "(cached) " >&6
19147 else
19148 ac_check_lib_save_LIBS=$LIBS
19149 LIBS="-ldgc $LIBS"
19150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19151 /* end confdefs.h. */
19153 /* Override any GCC internal prototype to avoid an error.
19154 Use char because int might match the return type of a GCC
19155 builtin and then its argument prototype would still apply. */
19156 #ifdef __cplusplus
19157 extern "C"
19158 #endif
19159 char dg_sys_info ();
19161 main ()
19163 return dg_sys_info ();
19165 return 0;
19167 _ACEOF
19168 if ac_fn_c_try_link "$LINENO"; then :
19169 ac_cv_lib_dgc_dg_sys_info=yes
19170 else
19171 ac_cv_lib_dgc_dg_sys_info=no
19173 rm -f core conftest.err conftest.$ac_objext \
19174 conftest$ac_exeext conftest.$ac_ext
19175 LIBS=$ac_check_lib_save_LIBS
19177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
19178 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
19179 if test "x$ac_cv_lib_dgc_dg_sys_info" = x""yes; then :
19180 cat >>confdefs.h <<_ACEOF
19181 #define HAVE_LIBDGC 1
19182 _ACEOF
19184 LIBS="-ldgc $LIBS"
19196 if test "x$gl_save_LIBS" = x; then
19197 GETLOADAVG_LIBS=$LIBS
19198 else
19199 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$gl_save_LIBS!!"`
19201 LIBS=$gl_save_LIBS
19204 # Test whether the system declares getloadavg. Solaris has the function
19205 # but declares it in <sys/loadavg.h>, not <stdlib.h>.
19206 for ac_header in sys/loadavg.h
19207 do :
19208 ac_fn_c_check_header_mongrel "$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default"
19209 if test "x$ac_cv_header_sys_loadavg_h" = x""yes; then :
19210 cat >>confdefs.h <<_ACEOF
19211 #define HAVE_SYS_LOADAVG_H 1
19212 _ACEOF
19216 done
19218 if test $ac_cv_header_sys_loadavg_h = yes; then
19219 HAVE_SYS_LOADAVG_H=1
19220 else
19221 HAVE_SYS_LOADAVG_H=0
19223 ac_fn_c_check_decl "$LINENO" "getloadavg" "ac_cv_have_decl_getloadavg" "#if HAVE_SYS_LOADAVG_H
19224 # include <sys/loadavg.h>
19225 #endif
19226 #include <stdlib.h>
19228 if test "x$ac_cv_have_decl_getloadavg" = x""yes; then :
19230 else
19231 HAVE_DECL_GETLOADAVG=0
19235 if test $HAVE_GETLOADAVG = 0; then
19244 gl_LIBOBJS="$gl_LIBOBJS getloadavg.$ac_objext"
19247 # Figure out what our getloadavg.c needs.
19249 # On HPUX9, an unprivileged user can get load averages this way.
19250 if test $gl_func_getloadavg_done = no; then
19251 for ac_func in pstat_getdynamic
19252 do :
19253 ac_fn_c_check_func "$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
19254 if test "x$ac_cv_func_pstat_getdynamic" = x""yes; then :
19255 cat >>confdefs.h <<_ACEOF
19256 #define HAVE_PSTAT_GETDYNAMIC 1
19257 _ACEOF
19258 gl_func_getloadavg_done=yes
19260 done
19264 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
19265 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
19266 # Irix 4.0.5F has the header but not the library.
19267 if test $gl_func_getloadavg_done = no && test "$ac_cv_lib_elf_elf_begin" = yes \
19268 && test "$ac_cv_lib_kvm_kvm_open" = yes; then
19269 gl_func_getloadavg_done=yes
19271 $as_echo "#define SVR4 1" >>confdefs.h
19275 if test $gl_func_getloadavg_done = no; then
19276 ac_fn_c_check_header_mongrel "$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
19277 if test "x$ac_cv_header_inq_stats_cpustats_h" = x""yes; then :
19278 gl_func_getloadavg_done=yes
19280 $as_echo "#define UMAX 1" >>confdefs.h
19283 $as_echo "#define UMAX4_3 1" >>confdefs.h
19290 if test $gl_func_getloadavg_done = no; then
19291 ac_fn_c_check_header_mongrel "$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
19292 if test "x$ac_cv_header_sys_cpustats_h" = x""yes; then :
19293 gl_func_getloadavg_done=yes; $as_echo "#define UMAX 1" >>confdefs.h
19300 if test $gl_func_getloadavg_done = no; then
19301 for ac_header in mach/mach.h
19302 do :
19303 ac_fn_c_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
19304 if test "x$ac_cv_header_mach_mach_h" = x""yes; then :
19305 cat >>confdefs.h <<_ACEOF
19306 #define HAVE_MACH_MACH_H 1
19307 _ACEOF
19311 done
19315 for ac_header in nlist.h
19316 do :
19317 ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
19318 if test "x$ac_cv_header_nlist_h" = x""yes; then :
19319 cat >>confdefs.h <<_ACEOF
19320 #define HAVE_NLIST_H 1
19321 _ACEOF
19322 ac_fn_c_check_member "$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
19324 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x""yes; then :
19326 cat >>confdefs.h <<_ACEOF
19327 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
19328 _ACEOF
19333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19334 /* end confdefs.h. */
19335 #include <nlist.h>
19337 main ()
19339 struct nlist x;
19340 #ifdef HAVE_STRUCT_NLIST_N_UN_N_NAME
19341 x.n_un.n_name = "";
19342 #else
19343 x.n_name = "";
19344 #endif
19346 return 0;
19348 _ACEOF
19349 if ac_fn_c_try_link "$LINENO"; then :
19351 $as_echo "#define N_NAME_POINTER 1" >>confdefs.h
19354 rm -f core conftest.err conftest.$ac_objext \
19355 conftest$ac_exeext conftest.$ac_ext
19359 done
19367 GNULIB_GETLOADAVG=1
19378 if test $REPLACE_GETOPT = 1; then
19387 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
19397 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
19408 REPLACE_GETOPT=0
19411 if test -n "$gl_replace_getopt"; then :
19413 REPLACE_GETOPT=1
19418 if test $REPLACE_GETOPT = 1; then
19420 GETOPT_H=getopt.h
19422 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
19426 GNULIB_UNISTD_H_GETOPT=1
19429 if test $REPLACE_GETOPT = 1; then
19438 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
19448 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
19459 if test $ac_cv_func_lstat = yes; then
19461 if test $gl_cv_func_lstat_dereferences_slashed_symlink = no; then
19462 REPLACE_LSTAT=1
19464 else
19465 HAVE_LSTAT=0
19468 if test $REPLACE_LSTAT = 1; then
19477 gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext"
19489 GNULIB_LSTAT=1
19501 if test $APPLE_UNIVERSAL_BUILD = 1; then
19502 # A universal build on Apple MacOS X platforms.
19503 # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode.
19504 # But we need a configuration result that is valid in both modes.
19505 gl_cv_func_working_mktime=no
19507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
19508 $as_echo_n "checking for working mktime... " >&6; }
19509 if test "${gl_cv_func_working_mktime+set}" = set; then :
19510 $as_echo_n "(cached) " >&6
19511 else
19512 if test "$cross_compiling" = yes; then :
19513 gl_cv_func_working_mktime=no
19514 else
19515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19516 /* end confdefs.h. */
19517 /* Test program from Paul Eggert and Tony Leneis. */
19518 #include <limits.h>
19519 #include <stdlib.h>
19520 #include <time.h>
19522 #ifdef HAVE_UNISTD_H
19523 # include <unistd.h>
19524 #endif
19526 #ifndef HAVE_ALARM
19527 # define alarm(X) /* empty */
19528 #endif
19530 /* Work around redefinition to rpl_putenv by other config tests. */
19531 #undef putenv
19533 static time_t time_t_max;
19534 static time_t time_t_min;
19536 /* Values we'll use to set the TZ environment variable. */
19537 static char *tz_strings[] = {
19538 (char *) 0, "TZ=GMT0", "TZ=JST-9",
19539 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
19541 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
19543 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
19544 Based on a problem report from Andreas Jaeger. */
19545 static int
19546 spring_forward_gap ()
19548 /* glibc (up to about 1998-10-07) failed this test. */
19549 struct tm tm;
19551 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
19552 instead of "TZ=America/Vancouver" in order to detect the bug even
19553 on systems that don't support the Olson extension, or don't have the
19554 full zoneinfo tables installed. */
19555 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
19557 tm.tm_year = 98;
19558 tm.tm_mon = 3;
19559 tm.tm_mday = 5;
19560 tm.tm_hour = 2;
19561 tm.tm_min = 0;
19562 tm.tm_sec = 0;
19563 tm.tm_isdst = -1;
19564 return mktime (&tm) != (time_t) -1;
19567 static int
19568 mktime_test1 (time_t now)
19570 struct tm *lt;
19571 return ! (lt = localtime (&now)) || mktime (lt) == now;
19574 static int
19575 mktime_test (time_t now)
19577 return (mktime_test1 (now)
19578 && mktime_test1 ((time_t) (time_t_max - now))
19579 && mktime_test1 ((time_t) (time_t_min + now)));
19582 static int
19583 irix_6_4_bug ()
19585 /* Based on code from Ariel Faigon. */
19586 struct tm tm;
19587 tm.tm_year = 96;
19588 tm.tm_mon = 3;
19589 tm.tm_mday = 0;
19590 tm.tm_hour = 0;
19591 tm.tm_min = 0;
19592 tm.tm_sec = 0;
19593 tm.tm_isdst = -1;
19594 mktime (&tm);
19595 return tm.tm_mon == 2 && tm.tm_mday == 31;
19598 static int
19599 bigtime_test (int j)
19601 struct tm tm;
19602 time_t now;
19603 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
19604 now = mktime (&tm);
19605 if (now != (time_t) -1)
19607 struct tm *lt = localtime (&now);
19608 if (! (lt
19609 && lt->tm_year == tm.tm_year
19610 && lt->tm_mon == tm.tm_mon
19611 && lt->tm_mday == tm.tm_mday
19612 && lt->tm_hour == tm.tm_hour
19613 && lt->tm_min == tm.tm_min
19614 && lt->tm_sec == tm.tm_sec
19615 && lt->tm_yday == tm.tm_yday
19616 && lt->tm_wday == tm.tm_wday
19617 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
19618 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
19619 return 0;
19621 return 1;
19624 static int
19625 year_2050_test ()
19627 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
19628 ignoring leap seconds. */
19629 unsigned long int answer = 2527315200UL;
19631 struct tm tm;
19632 time_t t;
19633 tm.tm_year = 2050 - 1900;
19634 tm.tm_mon = 2 - 1;
19635 tm.tm_mday = 1;
19636 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
19637 tm.tm_isdst = -1;
19639 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
19640 instead of "TZ=America/Vancouver" in order to detect the bug even
19641 on systems that don't support the Olson extension, or don't have the
19642 full zoneinfo tables installed. */
19643 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
19645 t = mktime (&tm);
19647 /* Check that the result is either a failure, or close enough
19648 to the correct answer that we can assume the discrepancy is
19649 due to leap seconds. */
19650 return (t == (time_t) -1
19651 || (0 < t && answer - 120 <= t && t <= answer + 120));
19655 main ()
19657 int result = 0;
19658 time_t t, delta;
19659 int i, j;
19660 int time_t_signed_magnitude = (time_t) ~ (time_t) 0 < (time_t) -1;
19661 int time_t_signed = ! ((time_t) 0 < (time_t) -1);
19663 /* This test makes some buggy mktime implementations loop.
19664 Give up after 60 seconds; a mktime slower than that
19665 isn't worth using anyway. */
19666 alarm (60);
19668 time_t_max = (! time_t_signed
19669 ? (time_t) -1
19670 : ((((time_t) 1 << (sizeof (time_t) * CHAR_BIT - 2)) - 1)
19671 * 2 + 1));
19672 time_t_min = (! time_t_signed
19673 ? (time_t) 0
19674 : time_t_signed_magnitude
19675 ? ~ (time_t) 0
19676 : ~ time_t_max);
19678 delta = time_t_max / 997; /* a suitable prime number */
19679 for (i = 0; i < N_STRINGS; i++)
19681 if (tz_strings[i])
19682 putenv (tz_strings[i]);
19684 for (t = 0; t <= time_t_max - delta; t += delta)
19685 if (! mktime_test (t))
19686 result |= 1;
19687 if (! (mktime_test ((time_t) 1)
19688 && mktime_test ((time_t) (60 * 60))
19689 && mktime_test ((time_t) (60 * 60 * 24))))
19690 result |= 2;
19692 for (j = 1; ; j <<= 1)
19693 if (! bigtime_test (j))
19694 result |= 4;
19695 else if (INT_MAX / 2 < j)
19696 break;
19697 if (! bigtime_test (INT_MAX))
19698 result |= 8;
19700 if (! irix_6_4_bug ())
19701 result |= 16;
19702 if (! spring_forward_gap ())
19703 result |= 32;
19704 if (! year_2050_test ())
19705 result |= 64;
19706 return result;
19708 _ACEOF
19709 if ac_fn_c_try_run "$LINENO"; then :
19710 gl_cv_func_working_mktime=yes
19711 else
19712 gl_cv_func_working_mktime=no
19714 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19715 conftest.$ac_objext conftest.beam conftest.$ac_ext
19720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_mktime" >&5
19721 $as_echo "$gl_cv_func_working_mktime" >&6; }
19723 if test $gl_cv_func_working_mktime = no; then
19724 REPLACE_MKTIME=1
19725 else
19726 REPLACE_MKTIME=0
19729 if test $REPLACE_MKTIME = 1; then
19738 gl_LIBOBJS="$gl_LIBOBJS mktime.$ac_objext"
19749 GNULIB_MKTIME=1
19758 LIB_PTHREAD_SIGMASK=
19759 if test $ac_cv_func_pthread_sigmask != yes; then
19760 gl_save_LIBS=$LIBS
19761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_sigmask" >&5
19762 $as_echo_n "checking for library containing pthread_sigmask... " >&6; }
19763 if test "${ac_cv_search_pthread_sigmask+set}" = set; then :
19764 $as_echo_n "(cached) " >&6
19765 else
19766 ac_func_search_save_LIBS=$LIBS
19767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19768 /* end confdefs.h. */
19770 /* Override any GCC internal prototype to avoid an error.
19771 Use char because int might match the return type of a GCC
19772 builtin and then its argument prototype would still apply. */
19773 #ifdef __cplusplus
19774 extern "C"
19775 #endif
19776 char pthread_sigmask ();
19778 main ()
19780 return pthread_sigmask ();
19782 return 0;
19784 _ACEOF
19785 for ac_lib in '' pthread c_r; do
19786 if test -z "$ac_lib"; then
19787 ac_res="none required"
19788 else
19789 ac_res=-l$ac_lib
19790 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19792 if ac_fn_c_try_link "$LINENO"; then :
19793 ac_cv_search_pthread_sigmask=$ac_res
19795 rm -f core conftest.err conftest.$ac_objext \
19796 conftest$ac_exeext
19797 if test "${ac_cv_search_pthread_sigmask+set}" = set; then :
19798 break
19800 done
19801 if test "${ac_cv_search_pthread_sigmask+set}" = set; then :
19803 else
19804 ac_cv_search_pthread_sigmask=no
19806 rm conftest.$ac_ext
19807 LIBS=$ac_func_search_save_LIBS
19809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_sigmask" >&5
19810 $as_echo "$ac_cv_search_pthread_sigmask" >&6; }
19811 ac_res=$ac_cv_search_pthread_sigmask
19812 if test "$ac_res" != no; then :
19813 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19817 LIBS=$gl_save_LIBS
19818 if test "$ac_cv_search_pthread_sigmask" = no; then
19819 HAVE_PTHREAD_SIGMASK=0
19820 elif test "$ac_cv_search_pthread_sigmask" != 'none required'; then
19821 LIB_PTHREAD_SIGMASK=$ac_cv_search_pthread_sigmask
19826 if test $HAVE_PTHREAD_SIGMASK = 0 || test $REPLACE_PTHREAD_SIGMASK = 1; then
19835 gl_LIBOBJS="$gl_LIBOBJS pthread_sigmask.$ac_objext"
19843 GNULIB_PTHREAD_SIGMASK=1
19852 if test $ac_cv_func_readlink = no; then
19853 HAVE_READLINK=0
19854 else
19855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
19856 $as_echo_n "checking whether readlink signature is correct... " >&6; }
19857 if test "${gl_cv_decl_readlink_works+set}" = set; then :
19858 $as_echo_n "(cached) " >&6
19859 else
19860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19861 /* end confdefs.h. */
19862 #include <unistd.h>
19863 /* Cause compilation failure if original declaration has wrong type. */
19864 ssize_t readlink (const char *, char *, size_t);
19866 main ()
19870 return 0;
19872 _ACEOF
19873 if ac_fn_c_try_compile "$LINENO"; then :
19874 gl_cv_decl_readlink_works=yes
19875 else
19876 gl_cv_decl_readlink_works=no
19878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
19881 $as_echo "$gl_cv_decl_readlink_works" >&6; }
19882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
19883 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
19884 if test "${gl_cv_func_readlink_works+set}" = set; then :
19885 $as_echo_n "(cached) " >&6
19886 else
19887 # We have readlink, so assume ln -s works.
19888 ln -s conftest.no-such conftest.link
19889 ln -s conftest.link conftest.lnk2
19890 if test "$cross_compiling" = yes; then :
19891 gl_cv_func_readlink_works="guessing no"
19892 else
19893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19894 /* end confdefs.h. */
19895 #include <unistd.h>
19898 main ()
19900 char buf[20];
19901 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
19903 return 0;
19905 _ACEOF
19906 if ac_fn_c_try_run "$LINENO"; then :
19907 gl_cv_func_readlink_works=yes
19908 else
19909 gl_cv_func_readlink_works=no
19911 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19912 conftest.$ac_objext conftest.beam conftest.$ac_ext
19915 rm -f conftest.link conftest.lnk2
19917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
19918 $as_echo "$gl_cv_func_readlink_works" >&6; }
19919 if test "$gl_cv_func_readlink_works" != yes; then
19921 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
19923 REPLACE_READLINK=1
19924 elif test "$gl_cv_decl_readlink_works" != yes; then
19925 REPLACE_READLINK=1
19929 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
19938 gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
19949 GNULIB_READLINK=1
19966 if test $gl_cv_have_include_next = yes; then
19967 gl_cv_next_signal_h='<'signal.h'>'
19968 else
19969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
19970 $as_echo_n "checking absolute name of <signal.h>... " >&6; }
19971 if test "${gl_cv_next_signal_h+set}" = set; then :
19972 $as_echo_n "(cached) " >&6
19973 else
19975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19976 /* end confdefs.h. */
19977 #include <signal.h>
19979 _ACEOF
19980 case "$host_os" in
19981 aix*) gl_absname_cpp="$ac_cpp -C" ;;
19982 *) gl_absname_cpp="$ac_cpp" ;;
19983 esac
19984 gl_cv_next_signal_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19985 sed -n '\#/signal.h#{
19986 s#.*"\(.*/signal.h\)".*#\1#
19987 s#^/[^/]#//&#
19990 }'`'"'
19994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
19995 $as_echo "$gl_cv_next_signal_h" >&6; }
19997 NEXT_SIGNAL_H=$gl_cv_next_signal_h
19999 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20000 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20001 gl_next_as_first_directive='<'signal.h'>'
20002 else
20003 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20004 gl_next_as_first_directive=$gl_cv_next_signal_h
20006 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H=$gl_next_as_first_directive
20012 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
20013 # then choke on 'volatile sig_atomic_t'. C99 requires that it compile.
20014 ac_fn_c_check_type "$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
20015 #include <signal.h>
20018 if test "x$ac_cv_type_volatile_sig_atomic_t" = x""yes; then :
20020 else
20021 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=0
20028 ac_fn_c_check_type "$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
20029 #include <signal.h>
20032 if test "x$ac_cv_type_sighandler_t" = x""yes; then :
20034 else
20035 HAVE_SIGHANDLER_T=0
20041 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
20042 /* <sys/types.h> is not needed according to POSIX, but the
20043 <sys/socket.h> in i386-unknown-freebsd4.10 and
20044 powerpc-apple-darwin5.5 required it. */
20045 #include <sys/types.h>
20046 #if HAVE_SYS_SOCKET_H
20047 # include <sys/socket.h>
20048 #elif HAVE_WS2TCPIP_H
20049 # include <ws2tcpip.h>
20050 #endif
20053 if test "x$ac_cv_type_socklen_t" = x""yes; then :
20055 else
20056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
20057 $as_echo_n "checking for socklen_t equivalent... " >&6; }
20058 if test "${gl_cv_socklen_t_equiv+set}" = set; then :
20059 $as_echo_n "(cached) " >&6
20060 else
20061 # Systems have either "struct sockaddr *" or
20062 # "void *" as the second argument to getpeername
20063 gl_cv_socklen_t_equiv=
20064 for arg2 in "struct sockaddr" void; do
20065 for t in int size_t "unsigned int" "long int" "unsigned long int"; do
20066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20067 /* end confdefs.h. */
20068 #include <sys/types.h>
20069 #include <sys/socket.h>
20071 int getpeername (int, $arg2 *, $t *);
20073 main ()
20075 $t len;
20076 getpeername (0, 0, &len);
20078 return 0;
20080 _ACEOF
20081 if ac_fn_c_try_compile "$LINENO"; then :
20082 gl_cv_socklen_t_equiv="$t"
20084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20085 test "$gl_cv_socklen_t_equiv" != "" && break
20086 done
20087 test "$gl_cv_socklen_t_equiv" != "" && break
20088 done
20092 if test "$gl_cv_socklen_t_equiv" = ""; then
20093 as_fn_error "Cannot find a type to use in place of socklen_t" "$LINENO" 5
20095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
20096 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
20098 cat >>confdefs.h <<_ACEOF
20099 #define socklen_t $gl_cv_socklen_t_equiv
20100 _ACEOF
20105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
20106 $as_echo_n "checking for ssize_t... " >&6; }
20107 if test "${gt_cv_ssize_t+set}" = set; then :
20108 $as_echo_n "(cached) " >&6
20109 else
20110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20111 /* end confdefs.h. */
20112 #include <sys/types.h>
20114 main ()
20116 int x = sizeof (ssize_t *) + sizeof (ssize_t);
20117 return !x;
20119 return 0;
20121 _ACEOF
20122 if ac_fn_c_try_compile "$LINENO"; then :
20123 gt_cv_ssize_t=yes
20124 else
20125 gt_cv_ssize_t=no
20127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
20130 $as_echo "$gt_cv_ssize_t" >&6; }
20131 if test $gt_cv_ssize_t = no; then
20133 $as_echo "#define ssize_t int" >>confdefs.h
20138 STDARG_H=''
20139 NEXT_STDARG_H='<stdarg.h>'
20140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
20141 $as_echo_n "checking for va_copy... " >&6; }
20142 if test "${gl_cv_func_va_copy+set}" = set; then :
20143 $as_echo_n "(cached) " >&6
20144 else
20146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20147 /* end confdefs.h. */
20148 #include <stdarg.h>
20150 main ()
20153 #ifndef va_copy
20154 void (*func) (va_list, va_list) = va_copy;
20155 #endif
20158 return 0;
20160 _ACEOF
20161 if ac_fn_c_try_compile "$LINENO"; then :
20162 gl_cv_func_va_copy=yes
20163 else
20164 gl_cv_func_va_copy=no
20166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_va_copy" >&5
20170 $as_echo "$gl_cv_func_va_copy" >&6; }
20171 if test $gl_cv_func_va_copy = no; then
20172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20173 /* end confdefs.h. */
20174 #if defined _AIX && !defined __GNUC__
20175 AIX vaccine
20176 #endif
20178 _ACEOF
20179 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20180 $EGREP "vaccine" >/dev/null 2>&1; then :
20181 gl_aixcc=yes
20182 else
20183 gl_aixcc=no
20185 rm -f conftest*
20187 if test $gl_aixcc = yes; then
20188 STDARG_H=stdarg.h
20197 if test $gl_cv_have_include_next = yes; then
20198 gl_cv_next_stdarg_h='<'stdarg.h'>'
20199 else
20200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdarg.h>" >&5
20201 $as_echo_n "checking absolute name of <stdarg.h>... " >&6; }
20202 if test "${gl_cv_next_stdarg_h+set}" = set; then :
20203 $as_echo_n "(cached) " >&6
20204 else
20206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20207 /* end confdefs.h. */
20208 #include <stdarg.h>
20210 _ACEOF
20211 case "$host_os" in
20212 aix*) gl_absname_cpp="$ac_cpp -C" ;;
20213 *) gl_absname_cpp="$ac_cpp" ;;
20214 esac
20215 gl_cv_next_stdarg_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20216 sed -n '\#/stdarg.h#{
20217 s#.*"\(.*/stdarg.h\)".*#\1#
20218 s#^/[^/]#//&#
20221 }'`'"'
20225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdarg_h" >&5
20226 $as_echo "$gl_cv_next_stdarg_h" >&6; }
20228 NEXT_STDARG_H=$gl_cv_next_stdarg_h
20230 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20231 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20232 gl_next_as_first_directive='<'stdarg.h'>'
20233 else
20234 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20235 gl_next_as_first_directive=$gl_cv_next_stdarg_h
20237 NEXT_AS_FIRST_DIRECTIVE_STDARG_H=$gl_next_as_first_directive
20242 if test "$gl_cv_next_stdarg_h" = '""'; then
20243 gl_cv_next_stdarg_h='"///usr/include/stdarg.h"'
20244 NEXT_STDARG_H="$gl_cv_next_stdarg_h"
20246 else
20248 saved_as_echo_n="$as_echo_n"
20249 as_echo_n=':'
20250 if test "${gl_cv_func___va_copy+set}" = set; then :
20251 $as_echo_n "(cached) " >&6
20252 else
20254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20255 /* end confdefs.h. */
20256 #include <stdarg.h>
20258 main ()
20261 #ifndef __va_copy
20262 error, bail out
20263 #endif
20266 return 0;
20268 _ACEOF
20269 if ac_fn_c_try_compile "$LINENO"; then :
20270 gl_cv_func___va_copy=yes
20271 else
20272 gl_cv_func___va_copy=no
20274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20277 as_echo_n="$saved_as_echo_n"
20279 if test $gl_cv_func___va_copy = yes; then
20281 $as_echo "#define va_copy __va_copy" >>confdefs.h
20283 else
20286 $as_echo "#define va_copy gl_va_copy" >>confdefs.h
20292 if test -n "$STDARG_H"; then
20293 GL_GENERATE_STDARG_H_TRUE=
20294 GL_GENERATE_STDARG_H_FALSE='#'
20295 else
20296 GL_GENERATE_STDARG_H_TRUE='#'
20297 GL_GENERATE_STDARG_H_FALSE=
20305 # Define two additional variables used in the Makefile substitution.
20307 if test "$ac_cv_header_stdbool_h" = yes; then
20308 STDBOOL_H=''
20309 else
20310 STDBOOL_H='stdbool.h'
20313 if test -n "$STDBOOL_H"; then
20314 GL_GENERATE_STDBOOL_H_TRUE=
20315 GL_GENERATE_STDBOOL_H_FALSE='#'
20316 else
20317 GL_GENERATE_STDBOOL_H_TRUE='#'
20318 GL_GENERATE_STDBOOL_H_FALSE=
20322 if test "$ac_cv_type__Bool" = yes; then
20323 HAVE__BOOL=1
20324 else
20325 HAVE__BOOL=0
20332 STDDEF_H=
20333 if test $gt_cv_c_wchar_t = no; then
20334 HAVE_WCHAR_T=0
20335 STDDEF_H=stddef.h
20337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
20338 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
20339 if test "${gl_cv_decl_null_works+set}" = set; then :
20340 $as_echo_n "(cached) " >&6
20341 else
20342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20343 /* end confdefs.h. */
20344 #include <stddef.h>
20345 int test[2 * (sizeof NULL == sizeof (void *)) -1];
20348 main ()
20352 return 0;
20354 _ACEOF
20355 if ac_fn_c_try_compile "$LINENO"; then :
20356 gl_cv_decl_null_works=yes
20357 else
20358 gl_cv_decl_null_works=no
20360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
20363 $as_echo "$gl_cv_decl_null_works" >&6; }
20364 if test $gl_cv_decl_null_works = no; then
20365 REPLACE_NULL=1
20366 STDDEF_H=stddef.h
20369 if test -n "$STDDEF_H"; then
20370 GL_GENERATE_STDDEF_H_TRUE=
20371 GL_GENERATE_STDDEF_H_FALSE='#'
20372 else
20373 GL_GENERATE_STDDEF_H_TRUE='#'
20374 GL_GENERATE_STDDEF_H_FALSE=
20377 if test -n "$STDDEF_H"; then
20386 if test $gl_cv_have_include_next = yes; then
20387 gl_cv_next_stddef_h='<'stddef.h'>'
20388 else
20389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
20390 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
20391 if test "${gl_cv_next_stddef_h+set}" = set; then :
20392 $as_echo_n "(cached) " >&6
20393 else
20395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20396 /* end confdefs.h. */
20397 #include <stddef.h>
20399 _ACEOF
20400 case "$host_os" in
20401 aix*) gl_absname_cpp="$ac_cpp -C" ;;
20402 *) gl_absname_cpp="$ac_cpp" ;;
20403 esac
20404 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20405 sed -n '\#/stddef.h#{
20406 s#.*"\(.*/stddef.h\)".*#\1#
20407 s#^/[^/]#//&#
20410 }'`'"'
20414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
20415 $as_echo "$gl_cv_next_stddef_h" >&6; }
20417 NEXT_STDDEF_H=$gl_cv_next_stddef_h
20419 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20420 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20421 gl_next_as_first_directive='<'stddef.h'>'
20422 else
20423 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20424 gl_next_as_first_directive=$gl_cv_next_stddef_h
20426 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
20445 if test $gl_cv_have_include_next = yes; then
20446 gl_cv_next_stdio_h='<'stdio.h'>'
20447 else
20448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
20449 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
20450 if test "${gl_cv_next_stdio_h+set}" = set; then :
20451 $as_echo_n "(cached) " >&6
20452 else
20454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20455 /* end confdefs.h. */
20456 #include <stdio.h>
20458 _ACEOF
20459 case "$host_os" in
20460 aix*) gl_absname_cpp="$ac_cpp -C" ;;
20461 *) gl_absname_cpp="$ac_cpp" ;;
20462 esac
20463 gl_cv_next_stdio_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20464 sed -n '\#/stdio.h#{
20465 s#.*"\(.*/stdio.h\)".*#\1#
20466 s#^/[^/]#//&#
20469 }'`'"'
20473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
20474 $as_echo "$gl_cv_next_stdio_h" >&6; }
20476 NEXT_STDIO_H=$gl_cv_next_stdio_h
20478 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20479 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20480 gl_next_as_first_directive='<'stdio.h'>'
20481 else
20482 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20483 gl_next_as_first_directive=$gl_cv_next_stdio_h
20485 NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
20491 GNULIB_FSCANF=1
20492 GNULIB_SCANF=1
20493 GNULIB_FGETC=1
20494 GNULIB_GETC=1
20495 GNULIB_GETCHAR=1
20496 GNULIB_FGETS=1
20497 GNULIB_GETS=1
20498 GNULIB_FREAD=1
20501 GNULIB_FPRINTF=1
20502 GNULIB_PRINTF=1
20503 GNULIB_VFPRINTF=1
20504 GNULIB_VPRINTF=1
20505 GNULIB_FPUTC=1
20506 GNULIB_PUTC=1
20507 GNULIB_PUTCHAR=1
20508 GNULIB_FPUTS=1
20509 GNULIB_PUTS=1
20510 GNULIB_FWRITE=1
20526 if test $gl_cv_have_include_next = yes; then
20527 gl_cv_next_stdlib_h='<'stdlib.h'>'
20528 else
20529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
20530 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
20531 if test "${gl_cv_next_stdlib_h+set}" = set; then :
20532 $as_echo_n "(cached) " >&6
20533 else
20535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20536 /* end confdefs.h. */
20537 #include <stdlib.h>
20539 _ACEOF
20540 case "$host_os" in
20541 aix*) gl_absname_cpp="$ac_cpp -C" ;;
20542 *) gl_absname_cpp="$ac_cpp" ;;
20543 esac
20544 gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20545 sed -n '\#/stdlib.h#{
20546 s#.*"\(.*/stdlib.h\)".*#\1#
20547 s#^/[^/]#//&#
20550 }'`'"'
20554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
20555 $as_echo "$gl_cv_next_stdlib_h" >&6; }
20557 NEXT_STDLIB_H=$gl_cv_next_stdlib_h
20559 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20560 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20561 gl_next_as_first_directive='<'stdlib.h'>'
20562 else
20563 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20564 gl_next_as_first_directive=$gl_cv_next_stdlib_h
20566 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
20576 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
20584 $as_echo "#define my_strftime nstrftime" >>confdefs.h
20592 if test "$ac_cv_have_decl_strtoimax" != yes; then
20593 HAVE_DECL_STRTOIMAX=0
20595 for ac_func in strtoimax
20596 do :
20597 ac_fn_c_check_func "$LINENO" "strtoimax" "ac_cv_func_strtoimax"
20598 if test "x$ac_cv_func_strtoimax" = x""yes; then :
20599 cat >>confdefs.h <<_ACEOF
20600 #define HAVE_STRTOIMAX 1
20601 _ACEOF
20604 done
20608 if test "$ac_cv_have_decl_strtoimax" != yes && test $ac_cv_func_strtoimax = no; then
20617 gl_LIBOBJS="$gl_LIBOBJS strtoimax.$ac_objext"
20620 ac_fn_c_check_decl "$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
20621 if test "x$ac_cv_have_decl_strtoll" = x""yes; then :
20622 ac_have_decl=1
20623 else
20624 ac_have_decl=0
20627 cat >>confdefs.h <<_ACEOF
20628 #define HAVE_DECL_STRTOLL $ac_have_decl
20629 _ACEOF
20639 GNULIB_STRTOIMAX=1
20648 if test "$ac_cv_have_decl_strtoumax" != yes; then
20649 HAVE_DECL_STRTOUMAX=0
20651 for ac_func in strtoumax
20652 do :
20653 ac_fn_c_check_func "$LINENO" "strtoumax" "ac_cv_func_strtoumax"
20654 if test "x$ac_cv_func_strtoumax" = x""yes; then :
20655 cat >>confdefs.h <<_ACEOF
20656 #define HAVE_STRTOUMAX 1
20657 _ACEOF
20660 done
20664 if test "$ac_cv_have_decl_strtoumax" != yes && test $ac_cv_func_strtoumax = no; then
20673 gl_LIBOBJS="$gl_LIBOBJS strtoumax.$ac_objext"
20676 ac_fn_c_check_decl "$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
20677 if test "x$ac_cv_have_decl_strtoull" = x""yes; then :
20678 ac_have_decl=1
20679 else
20680 ac_have_decl=0
20683 cat >>confdefs.h <<_ACEOF
20684 #define HAVE_DECL_STRTOULL $ac_have_decl
20685 _ACEOF
20695 GNULIB_STRTOUMAX=1
20703 if test $ac_cv_func_symlink = no; then
20704 HAVE_SYMLINK=0
20705 else
20706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symlink handles trailing slash correctly" >&5
20707 $as_echo_n "checking whether symlink handles trailing slash correctly... " >&6; }
20708 if test "${gl_cv_func_symlink_works+set}" = set; then :
20709 $as_echo_n "(cached) " >&6
20710 else
20711 if test "$cross_compiling" = yes; then :
20712 gl_cv_func_symlink_works="guessing no"
20713 else
20714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20715 /* end confdefs.h. */
20716 #include <unistd.h>
20719 main ()
20721 int result = 0;
20722 if (!symlink ("a", "conftest.link/"))
20723 result |= 1;
20724 if (symlink ("conftest.f", "conftest.lnk2"))
20725 result |= 2;
20726 else if (!symlink ("a", "conftest.lnk2/"))
20727 result |= 4;
20728 return result;
20731 return 0;
20733 _ACEOF
20734 if ac_fn_c_try_run "$LINENO"; then :
20735 gl_cv_func_symlink_works=yes
20736 else
20737 gl_cv_func_symlink_works=no
20739 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20740 conftest.$ac_objext conftest.beam conftest.$ac_ext
20743 rm -f conftest.f conftest.link conftest.lnk2
20745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_symlink_works" >&5
20746 $as_echo "$gl_cv_func_symlink_works" >&6; }
20747 if test "$gl_cv_func_symlink_works" != yes; then
20748 REPLACE_SYMLINK=1
20752 if test $HAVE_SYMLINK = 0 || test $REPLACE_SYMLINK = 1; then
20761 gl_LIBOBJS="$gl_LIBOBJS symlink.$ac_objext"
20769 GNULIB_SYMLINK=1
20791 if test $gl_cv_have_include_next = yes; then
20792 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
20793 else
20794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
20795 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
20796 if test "${gl_cv_next_sys_stat_h+set}" = set; then :
20797 $as_echo_n "(cached) " >&6
20798 else
20800 if test $ac_cv_header_sys_stat_h = yes; then
20803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20804 /* end confdefs.h. */
20805 #include <sys/stat.h>
20807 _ACEOF
20808 case "$host_os" in
20809 aix*) gl_absname_cpp="$ac_cpp -C" ;;
20810 *) gl_absname_cpp="$ac_cpp" ;;
20811 esac
20812 gl_cv_next_sys_stat_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20813 sed -n '\#/sys/stat.h#{
20814 s#.*"\(.*/sys/stat.h\)".*#\1#
20815 s#^/[^/]#//&#
20818 }'`'"'
20819 else
20820 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
20825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
20826 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
20828 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
20830 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20831 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20832 gl_next_as_first_directive='<'sys/stat.h'>'
20833 else
20834 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20835 gl_next_as_first_directive=$gl_cv_next_sys_stat_h
20837 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
20843 ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
20844 #include <sys/stat.h>
20846 if test "x$ac_cv_type_nlink_t" = x""yes; then :
20848 else
20850 $as_echo "#define nlink_t int" >>confdefs.h
20868 if test $ac_cv_have_decl_localtime_r = no; then
20869 HAVE_DECL_LOCALTIME_R=0
20873 if test $ac_cv_func_localtime_r = yes; then
20874 HAVE_LOCALTIME_R=1
20875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
20876 $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
20877 if test "${gl_cv_time_r_posix+set}" = set; then :
20878 $as_echo_n "(cached) " >&6
20879 else
20880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20881 /* end confdefs.h. */
20882 #include <time.h>
20884 main ()
20886 /* We don't need to append 'restrict's to the argument types,
20887 even though the POSIX signature has the 'restrict's,
20888 since C99 says they can't affect type compatibility. */
20889 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
20890 if (ptr) return 0;
20891 /* Check the return type is a pointer.
20892 On HP-UX 10 it is 'int'. */
20893 *localtime_r (0, 0);
20895 return 0;
20898 _ACEOF
20899 if ac_fn_c_try_compile "$LINENO"; then :
20900 gl_cv_time_r_posix=yes
20901 else
20902 gl_cv_time_r_posix=no
20904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
20908 $as_echo "$gl_cv_time_r_posix" >&6; }
20909 if test $gl_cv_time_r_posix = yes; then
20910 REPLACE_LOCALTIME_R=0
20911 else
20912 REPLACE_LOCALTIME_R=1
20914 else
20915 HAVE_LOCALTIME_R=0
20918 if test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1; then
20927 gl_LIBOBJS="$gl_LIBOBJS time_r.$ac_objext"
20938 GNULIB_TIME_R=1
20958 if test $gl_cv_have_include_next = yes; then
20959 gl_cv_next_unistd_h='<'unistd.h'>'
20960 else
20961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
20962 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
20963 if test "${gl_cv_next_unistd_h+set}" = set; then :
20964 $as_echo_n "(cached) " >&6
20965 else
20967 if test $ac_cv_header_unistd_h = yes; then
20970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20971 /* end confdefs.h. */
20972 #include <unistd.h>
20974 _ACEOF
20975 case "$host_os" in
20976 aix*) gl_absname_cpp="$ac_cpp -C" ;;
20977 *) gl_absname_cpp="$ac_cpp" ;;
20978 esac
20979 gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20980 sed -n '\#/unistd.h#{
20981 s#.*"\(.*/unistd.h\)".*#\1#
20982 s#^/[^/]#//&#
20985 }'`'"'
20986 else
20987 gl_cv_next_unistd_h='<'unistd.h'>'
20992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
20993 $as_echo "$gl_cv_next_unistd_h" >&6; }
20995 NEXT_UNISTD_H=$gl_cv_next_unistd_h
20997 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20998 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20999 gl_next_as_first_directive='<'unistd.h'>'
21000 else
21001 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21002 gl_next_as_first_directive=$gl_cv_next_unistd_h
21004 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
21009 if test $ac_cv_header_unistd_h = yes; then
21010 HAVE_UNISTD_H=1
21011 else
21012 HAVE_UNISTD_H=0
21018 gl_gnulib_enabled_dosname=false
21019 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36=false
21020 gl_gnulib_enabled_sigprocmask=false
21021 gl_gnulib_enabled_stat=false
21022 gl_gnulib_enabled_strtoll=false
21023 gl_gnulib_enabled_strtoull=false
21024 gl_gnulib_enabled_verify=false
21025 func_gl_gnulib_m4code_dosname ()
21027 if ! $gl_gnulib_enabled_dosname; then
21028 gl_gnulib_enabled_dosname=true
21031 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36 ()
21033 if ! $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
21036 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36=true
21039 func_gl_gnulib_m4code_sigprocmask ()
21041 if ! $gl_gnulib_enabled_sigprocmask; then
21045 if test $gl_cv_type_sigset_t = yes; then
21046 ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask"
21047 if test "x$ac_cv_func_sigprocmask" = x""yes; then :
21048 gl_cv_func_sigprocmask=1
21052 if test -z "$gl_cv_func_sigprocmask"; then
21053 HAVE_POSIX_SIGNALBLOCKING=0
21056 if test $HAVE_POSIX_SIGNALBLOCKING = 0; then
21065 gl_LIBOBJS="$gl_LIBOBJS sigprocmask.$ac_objext"
21074 GNULIB_SIGPROCMASK=1
21080 gl_gnulib_enabled_sigprocmask=true
21083 func_gl_gnulib_m4code_stat ()
21085 if ! $gl_gnulib_enabled_stat; then
21089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
21090 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
21091 if test "${gl_cv_func_stat_dir_slash+set}" = set; then :
21092 $as_echo_n "(cached) " >&6
21093 else
21094 if test "$cross_compiling" = yes; then :
21095 case $host_os in
21096 mingw*) gl_cv_func_stat_dir_slash="guessing no";;
21097 *) gl_cv_func_stat_dir_slash="guessing yes";;
21098 esac
21099 else
21100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21101 /* end confdefs.h. */
21102 #include <sys/stat.h>
21105 main ()
21107 struct stat st; return stat (".", &st) != stat ("./", &st);
21109 return 0;
21111 _ACEOF
21112 if ac_fn_c_try_run "$LINENO"; then :
21113 gl_cv_func_stat_dir_slash=yes
21114 else
21115 gl_cv_func_stat_dir_slash=no
21117 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21118 conftest.$ac_objext conftest.beam conftest.$ac_ext
21122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
21123 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
21124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
21125 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
21126 if test "${gl_cv_func_stat_file_slash+set}" = set; then :
21127 $as_echo_n "(cached) " >&6
21128 else
21129 touch conftest.tmp
21130 # Assume that if we have lstat, we can also check symlinks.
21131 if test $ac_cv_func_lstat = yes; then
21132 ln -s conftest.tmp conftest.lnk
21134 if test "$cross_compiling" = yes; then :
21135 gl_cv_func_stat_file_slash="guessing no"
21136 else
21137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21138 /* end confdefs.h. */
21139 #include <sys/stat.h>
21142 main ()
21144 int result = 0;
21145 struct stat st;
21146 if (!stat ("conftest.tmp/", &st))
21147 result |= 1;
21148 #if HAVE_LSTAT
21149 if (!stat ("conftest.lnk/", &st))
21150 result |= 2;
21151 #endif
21152 return result;
21155 return 0;
21157 _ACEOF
21158 if ac_fn_c_try_run "$LINENO"; then :
21159 gl_cv_func_stat_file_slash=yes
21160 else
21161 gl_cv_func_stat_file_slash=no
21163 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21164 conftest.$ac_objext conftest.beam conftest.$ac_ext
21167 rm -f conftest.tmp conftest.lnk
21169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
21170 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
21171 case $gl_cv_func_stat_dir_slash in
21172 *no) REPLACE_STAT=1
21174 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
21176 esac
21177 case $gl_cv_func_stat_file_slash in
21178 *no) REPLACE_STAT=1
21180 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
21182 esac
21184 if test $REPLACE_STAT = 1; then
21193 gl_LIBOBJS="$gl_LIBOBJS stat.$ac_objext"
21205 GNULIB_STAT=1
21211 gl_gnulib_enabled_stat=true
21212 if $condition; then
21213 func_gl_gnulib_m4code_dosname
21215 if $condition; then
21216 func_gl_gnulib_m4code_verify
21220 func_gl_gnulib_m4code_strtoll ()
21222 if ! $gl_gnulib_enabled_strtoll; then
21226 if test "$ac_cv_type_long_long_int" = yes; then
21227 for ac_func in strtoll
21228 do :
21229 ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
21230 if test "x$ac_cv_func_strtoll" = x""yes; then :
21231 cat >>confdefs.h <<_ACEOF
21232 #define HAVE_STRTOLL 1
21233 _ACEOF
21236 done
21238 if test $ac_cv_func_strtoll = no; then
21239 HAVE_STRTOLL=0
21243 if test $HAVE_STRTOLL = 0; then
21252 gl_LIBOBJS="$gl_LIBOBJS strtoll.$ac_objext"
21263 GNULIB_STRTOLL=1
21269 gl_gnulib_enabled_strtoll=true
21272 func_gl_gnulib_m4code_strtoull ()
21274 if ! $gl_gnulib_enabled_strtoull; then
21278 if test "$ac_cv_type_unsigned_long_long_int" = yes; then
21279 for ac_func in strtoull
21280 do :
21281 ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
21282 if test "x$ac_cv_func_strtoull" = x""yes; then :
21283 cat >>confdefs.h <<_ACEOF
21284 #define HAVE_STRTOULL 1
21285 _ACEOF
21288 done
21290 if test $ac_cv_func_strtoull = no; then
21291 HAVE_STRTOULL=0
21295 if test $HAVE_STRTOULL = 0; then
21304 gl_LIBOBJS="$gl_LIBOBJS strtoull.$ac_objext"
21315 GNULIB_STRTOULL=1
21321 gl_gnulib_enabled_strtoull=true
21324 func_gl_gnulib_m4code_verify ()
21326 if ! $gl_gnulib_enabled_verify; then
21327 gl_gnulib_enabled_verify=true
21330 if test $REPLACE_GETOPT = 1; then
21331 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36
21333 if test $REPLACE_LSTAT = 1; then
21334 func_gl_gnulib_m4code_dosname
21336 if test $REPLACE_LSTAT = 1; then
21337 func_gl_gnulib_m4code_stat
21339 if test $HAVE_PTHREAD_SIGMASK = 0 || test $REPLACE_PTHREAD_SIGMASK = 1; then
21340 func_gl_gnulib_m4code_sigprocmask
21342 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
21343 func_gl_gnulib_m4code_stat
21345 if test "$ac_cv_have_decl_strtoimax" != yes && test $ac_cv_func_strtoimax = no; then
21346 func_gl_gnulib_m4code_verify
21348 if test "$ac_cv_have_decl_strtoimax" != yes && test $ac_cv_func_strtoimax = no && test $ac_cv_type_long_long_int = yes; then
21349 func_gl_gnulib_m4code_strtoll
21351 if test "$ac_cv_have_decl_strtoumax" != yes && test $ac_cv_func_strtoumax = no; then
21352 func_gl_gnulib_m4code_verify
21354 if test "$ac_cv_have_decl_strtoumax" != yes && test $ac_cv_func_strtoumax = no && test $ac_cv_type_unsigned_long_long_int = yes; then
21355 func_gl_gnulib_m4code_strtoull
21358 if $gl_gnulib_enabled_dosname; then
21359 gl_GNULIB_ENABLED_dosname_TRUE=
21360 gl_GNULIB_ENABLED_dosname_FALSE='#'
21361 else
21362 gl_GNULIB_ENABLED_dosname_TRUE='#'
21363 gl_GNULIB_ENABLED_dosname_FALSE=
21366 if $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
21367 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE=
21368 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE='#'
21369 else
21370 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE='#'
21371 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE=
21374 if $gl_gnulib_enabled_sigprocmask; then
21375 gl_GNULIB_ENABLED_sigprocmask_TRUE=
21376 gl_GNULIB_ENABLED_sigprocmask_FALSE='#'
21377 else
21378 gl_GNULIB_ENABLED_sigprocmask_TRUE='#'
21379 gl_GNULIB_ENABLED_sigprocmask_FALSE=
21382 if $gl_gnulib_enabled_stat; then
21383 gl_GNULIB_ENABLED_stat_TRUE=
21384 gl_GNULIB_ENABLED_stat_FALSE='#'
21385 else
21386 gl_GNULIB_ENABLED_stat_TRUE='#'
21387 gl_GNULIB_ENABLED_stat_FALSE=
21390 if $gl_gnulib_enabled_strtoll; then
21391 gl_GNULIB_ENABLED_strtoll_TRUE=
21392 gl_GNULIB_ENABLED_strtoll_FALSE='#'
21393 else
21394 gl_GNULIB_ENABLED_strtoll_TRUE='#'
21395 gl_GNULIB_ENABLED_strtoll_FALSE=
21398 if $gl_gnulib_enabled_strtoull; then
21399 gl_GNULIB_ENABLED_strtoull_TRUE=
21400 gl_GNULIB_ENABLED_strtoull_FALSE='#'
21401 else
21402 gl_GNULIB_ENABLED_strtoull_TRUE='#'
21403 gl_GNULIB_ENABLED_strtoull_FALSE=
21406 if $gl_gnulib_enabled_verify; then
21407 gl_GNULIB_ENABLED_verify_TRUE=
21408 gl_GNULIB_ENABLED_verify_FALSE='#'
21409 else
21410 gl_GNULIB_ENABLED_verify_TRUE='#'
21411 gl_GNULIB_ENABLED_verify_FALSE=
21414 # End of code from modules
21424 gltests_libdeps=
21425 gltests_ltlibdeps=
21435 gl_source_base='tests'
21436 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
21438 gl_module_indicator_condition=$gltests_WITNESS
21449 LIBGNU_LIBDEPS="$gl_libdeps"
21451 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
21455 case "$opsys" in
21456 aix4-2) LD_SWITCH_SYSTEM_TEMACS="-Wl,-bnodelcsect" ;;
21458 darwin)
21459 ## The -headerpad option tells ld (see man page) to leave room at the
21460 ## end of the header for adding load commands. Needed for dumping.
21461 ## 0x690 is the total size of 30 segment load commands (at 56
21462 ## each); under Cocoa 31 commands are required.
21463 if test "$HAVE_NS" = "yes"; then
21464 libs_nsgui="-framework AppKit"
21465 headerpad_extra=6C8
21466 else
21467 libs_nsgui=
21468 headerpad_extra=690
21470 LD_SWITCH_SYSTEM_TEMACS="-fno-pie -prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
21472 ## This is here because src/Makefile.in did some extra fiddling around
21473 ## with LD_SWITCH_SYSTEM. The cpp logic was:
21474 ## #ifndef LD_SWITCH_SYSTEM
21475 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
21476 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
21477 ## not using gcc, darwin system not on an alpha (ie darwin, since
21478 ## darwin + alpha does not occur).
21479 ## Because this was done in src/Makefile.in, the resulting part of
21480 ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link).
21481 ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS,
21482 ## rather than LD_SWITCH_SYSTEM.
21483 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
21484 LD_SWITCH_SYSTEM_TEMACS="-X $LD_SWITCH_SYSTEM_TEMACS"
21487 ## LD_SWITCH_X_SITE_AUX is a -R option saying where to find X at run-time.
21488 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at
21489 ## the point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_AUX
21490 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
21491 ## had different values in configure (in ac_link) and src/Makefile.in.
21492 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
21493 gnu-linux) LD_SWITCH_SYSTEM_TEMACS="\$(LD_SWITCH_X_SITE_AUX)" ;;
21495 *) LD_SWITCH_SYSTEM_TEMACS= ;;
21496 esac
21498 if test "$NS_IMPL_GNUSTEP" = "yes"; then
21499 LD_SWITCH_SYSTEM_TEMACS="${LD_SWITCH_SYSTEM_TEMACS} -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES} -lgnustep-gui -lgnustep-base -lobjc -lpthread"
21505 LD_FIRSTFLAG=
21506 ORDINARY_LINK=
21507 case "$opsys" in
21508 ## gnu: GNU needs its own crt0.
21509 aix4-2|cygwin|darwin|gnu|hpux*|irix6-5|sol2*|unixware) ORDINARY_LINK=yes ;;
21511 ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the
21512 ## library search parth, i.e. it won't search /usr/lib for libc and
21513 ## friends. Using -nostartfiles instead avoids this problem, and
21514 ## will also work on earlier NetBSD releases.
21515 netbsd|openbsd) LD_FIRSTFLAG="-nostartfiles" ;;
21517 ## macpcc: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
21518 ## MkLinux/LinuxPPC needs this.
21519 ## ibms390x only supports opsys = gnu-linux so it can be added here.
21520 gnu-*)
21521 case "$machine" in
21522 macppc|ibms390x) LD_FIRSTFLAG="-nostdlib" ;;
21523 esac
21525 esac
21528 if test "x$ORDINARY_LINK" = "xyes"; then
21530 LD_FIRSTFLAG=""
21532 $as_echo "#define ORDINARY_LINK 1" >>confdefs.h
21535 ## The system files defining neither ORDINARY_LINK nor LD_FIRSTFLAG are:
21536 ## freebsd, gnu-* not on macppc|ibms390x.
21537 elif test "x$GCC" = "xyes" && test "x$LD_FIRSTFLAG" = "x"; then
21539 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
21540 ## places that are difficult to figure out at make time. Fortunately,
21541 ## these same versions allow you to pass arbitrary flags on to the
21542 ## linker, so there is no reason not to use it as a linker.
21544 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from
21545 ## searching for libraries in its internal directories, so we have to
21546 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below).
21547 LD_FIRSTFLAG="-nostdlib"
21550 ## FIXME? What setting of EDIT_LDFLAGS should this have?
21551 test "$NS_IMPL_GNUSTEP" = "yes" && LD_FIRSTFLAG="-rdynamic"
21556 ## FIXME? The logic here is not precisely the same as that above.
21557 ## There is no check here for a pre-defined LD_FIRSTFLAG.
21558 ## Should we only be setting LIB_GCC if LD ~ -nostdlib?
21559 LIB_GCC=
21560 if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
21562 case "$opsys" in
21563 freebsd|netbsd|openbsd) LIB_GCC= ;;
21565 gnu-*)
21566 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
21567 ## build on ARM EABI under GNU/Linux. (Bug#5518)
21568 case $host_cpu in
21569 arm*)
21570 LIB_GCC="-lgcc_s"
21573 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
21574 ## immediately undefine it again and redefine it to empty.
21575 ## Was the C_SWITCH_X_SITE part really necessary?
21576 ## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
21577 LIB_GCC=
21579 esac
21582 ## Ask GCC where to find libgcc.a.
21583 *) LIB_GCC=`$CC -print-libgcc-file-name 2> /dev/null` ;;
21584 esac
21588 ## If we're using X11/GNUstep, define some consequences.
21589 if test "$HAVE_X_WINDOWS" = "yes" || test "$HAVE_NS" = "yes"; then
21591 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
21594 $as_echo "#define HAVE_MOUSE 1" >>confdefs.h
21601 #### Report on what we decided to do.
21602 #### Report GTK as a toolkit, even if it doesn't use Xt.
21603 #### It makes printing result more understandable as using GTK sets
21604 #### toolkit_scroll_bars to yes by default.
21605 if test "${HAVE_GTK}" = "yes"; then
21606 USE_X_TOOLKIT=GTK
21609 and_machfile=
21610 if test -n "$machfile"; then
21611 and_machfile=" and \`${machfile}'"
21614 echo "
21615 Configured for \`${canonical}'.
21617 Where should the build process find the source code? ${srcdir}
21618 What operating system and machine description files should Emacs use?
21619 \`${opsysfile}'${and_machfile}
21620 What compiler should emacs be built with? ${CC} ${CFLAGS}
21621 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
21622 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
21623 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
21624 What window system should Emacs use? ${window_system}
21625 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
21627 if test -n "${x_includes}"; then
21628 echo " Where do we find X Windows header files? ${x_includes}"
21629 else
21630 echo " Where do we find X Windows header files? Standard dirs"
21632 if test -n "${x_libraries}"; then
21633 echo " Where do we find X Windows libraries? ${x_libraries}"
21634 else
21635 echo " Where do we find X Windows libraries? Standard dirs"
21638 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
21639 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
21640 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
21641 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
21642 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
21643 echo " Does Emacs use -lpng? ${HAVE_PNG}"
21644 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
21645 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
21647 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
21648 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
21649 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
21650 echo " Does Emacs use GSettings? ${HAVE_GSETTINGS}"
21651 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
21652 echo " Does Emacs use -lgnutls (2.6.x or higher)? ${HAVE_GNUTLS}"
21653 echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
21655 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
21656 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
21657 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
21658 echo " Does Emacs use -lxft? ${HAVE_XFT}"
21660 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
21661 echo
21663 if test $USE_XASSERTS = yes; then
21664 echo " Compiling with asserts turned on."
21665 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
21668 echo
21670 if test "$HAVE_NS" = "yes"; then
21671 echo
21672 echo "You must run \"make install\" in order to test the built application.
21673 The installed application will go to nextstep/Emacs.app and can be
21674 run or moved from there."
21675 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
21676 echo "The application will be fully self-contained."
21677 else
21678 echo "The lisp resources for the application will be installed under ${prefix}.
21679 You may need to run \"make install\" with sudo. The application will fail
21680 to run if these resources are not installed."
21682 echo
21686 # Remove any trailing slashes in these variables.
21687 test "${prefix}" != NONE &&
21688 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
21689 test "${exec_prefix}" != NONE &&
21690 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
21692 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"
21694 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"
21697 opt_makefile=test/automated/Makefile
21699 if test -f $srcdir/${opt_makefile}.in; then
21700 SUBDIR_MAKEFILES="$SUBDIR_MAKEFILES $opt_makefile"
21701 ac_config_files="$ac_config_files test/automated/Makefile"
21705 SUBDIR_MAKEFILES_IN=`echo " ${SUBDIR_MAKEFILES}" | sed -e 's| | $(srcdir)/|g' -e 's|Makefile|Makefile.in|g'`
21709 ac_config_commands="$ac_config_commands mkdirs"
21712 ac_config_commands="$ac_config_commands epaths"
21715 ac_config_commands="$ac_config_commands gdbinit"
21718 cat >confcache <<\_ACEOF
21719 # This file is a shell script that caches the results of configure
21720 # tests run on this system so they can be shared between configure
21721 # scripts and configure runs, see configure's option --config-cache.
21722 # It is not useful on other systems. If it contains results you don't
21723 # want to keep, you may remove or edit it.
21725 # config.status only pays attention to the cache file if you give it
21726 # the --recheck option to rerun configure.
21728 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21729 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21730 # following values.
21732 _ACEOF
21734 # The following way of writing the cache mishandles newlines in values,
21735 # but we know of no workaround that is simple, portable, and efficient.
21736 # So, we kill variables containing newlines.
21737 # Ultrix sh set writes to stderr and can't be redirected directly,
21738 # and sets the high bit in the cache file unless we assign to the vars.
21740 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21741 eval ac_val=\$$ac_var
21742 case $ac_val in #(
21743 *${as_nl}*)
21744 case $ac_var in #(
21745 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
21746 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
21747 esac
21748 case $ac_var in #(
21749 _ | IFS | as_nl) ;; #(
21750 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
21751 *) { eval $ac_var=; unset $ac_var;} ;;
21752 esac ;;
21753 esac
21754 done
21756 (set) 2>&1 |
21757 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21758 *${as_nl}ac_space=\ *)
21759 # `set' does not quote correctly, so add quotes: double-quote
21760 # substitution turns \\\\ into \\, and sed turns \\ into \.
21761 sed -n \
21762 "s/'/'\\\\''/g;
21763 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21764 ;; #(
21766 # `set' quotes correctly as required by POSIX, so do not add quotes.
21767 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21769 esac |
21770 sort
21772 sed '
21773 /^ac_cv_env_/b end
21774 t clear
21775 :clear
21776 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21777 t end
21778 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21779 :end' >>confcache
21780 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21781 if test -w "$cache_file"; then
21782 test "x$cache_file" != "x/dev/null" &&
21783 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
21784 $as_echo "$as_me: updating cache $cache_file" >&6;}
21785 cat confcache >$cache_file
21786 else
21787 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
21788 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21791 rm -f confcache
21793 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21794 # Let make expand exec_prefix.
21795 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21797 DEFS=-DHAVE_CONFIG_H
21799 ac_libobjs=
21800 ac_ltlibobjs=
21801 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21802 # 1. Remove the extension, and $U if already installed.
21803 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21804 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
21805 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21806 # will be set to the directory where LIBOBJS objects are built.
21807 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21808 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
21809 done
21810 LIBOBJS=$ac_libobjs
21812 LTLIBOBJS=$ac_ltlibobjs
21815 if test -n "$EXEEXT"; then
21816 am__EXEEXT_TRUE=
21817 am__EXEEXT_FALSE='#'
21818 else
21819 am__EXEEXT_TRUE='#'
21820 am__EXEEXT_FALSE=
21823 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21824 as_fn_error "conditional \"AMDEP\" was never defined.
21825 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21827 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21828 as_fn_error "conditional \"am__fastdepCC\" was never defined.
21829 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21832 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
21833 as_fn_error "conditional \"GL_COND_LIBTOOL\" was never defined.
21834 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21836 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
21837 as_fn_error "conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
21838 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21841 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
21842 as_fn_error "conditional \"GL_GENERATE_STDINT_H\" was never defined.
21843 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21845 if test -z "${GL_GENERATE_STDARG_H_TRUE}" && test -z "${GL_GENERATE_STDARG_H_FALSE}"; then
21846 as_fn_error "conditional \"GL_GENERATE_STDARG_H\" was never defined.
21847 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21849 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
21850 as_fn_error "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
21851 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21853 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
21854 as_fn_error "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
21855 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21857 if test -z "${gl_GNULIB_ENABLED_dosname_TRUE}" && test -z "${gl_GNULIB_ENABLED_dosname_FALSE}"; then
21858 as_fn_error "conditional \"gl_GNULIB_ENABLED_dosname\" was never defined.
21859 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21861 if test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE}" && test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE}"; then
21862 as_fn_error "conditional \"gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36\" was never defined.
21863 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21865 if test -z "${gl_GNULIB_ENABLED_sigprocmask_TRUE}" && test -z "${gl_GNULIB_ENABLED_sigprocmask_FALSE}"; then
21866 as_fn_error "conditional \"gl_GNULIB_ENABLED_sigprocmask\" was never defined.
21867 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21869 if test -z "${gl_GNULIB_ENABLED_stat_TRUE}" && test -z "${gl_GNULIB_ENABLED_stat_FALSE}"; then
21870 as_fn_error "conditional \"gl_GNULIB_ENABLED_stat\" was never defined.
21871 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21873 if test -z "${gl_GNULIB_ENABLED_strtoll_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoll_FALSE}"; then
21874 as_fn_error "conditional \"gl_GNULIB_ENABLED_strtoll\" was never defined.
21875 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21877 if test -z "${gl_GNULIB_ENABLED_strtoull_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoull_FALSE}"; then
21878 as_fn_error "conditional \"gl_GNULIB_ENABLED_strtoull\" was never defined.
21879 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21881 if test -z "${gl_GNULIB_ENABLED_verify_TRUE}" && test -z "${gl_GNULIB_ENABLED_verify_FALSE}"; then
21882 as_fn_error "conditional \"gl_GNULIB_ENABLED_verify\" was never defined.
21883 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21886 gl_libobjs=
21887 gl_ltlibobjs=
21888 if test -n "$gl_LIBOBJS"; then
21889 # Remove the extension.
21890 sed_drop_objext='s/\.o$//;s/\.obj$//'
21891 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
21892 gl_libobjs="$gl_libobjs $i.$ac_objext"
21893 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
21894 done
21896 gl_LIBOBJS=$gl_libobjs
21898 gl_LTLIBOBJS=$gl_ltlibobjs
21902 gltests_libobjs=
21903 gltests_ltlibobjs=
21904 if test -n "$gltests_LIBOBJS"; then
21905 # Remove the extension.
21906 sed_drop_objext='s/\.o$//;s/\.obj$//'
21907 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
21908 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
21909 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
21910 done
21912 gltests_LIBOBJS=$gltests_libobjs
21914 gltests_LTLIBOBJS=$gltests_ltlibobjs
21918 : ${CONFIG_STATUS=./config.status}
21919 ac_write_fail=0
21920 ac_clean_files_save=$ac_clean_files
21921 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21922 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
21923 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
21924 as_write_fail=0
21925 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
21926 #! $SHELL
21927 # Generated by $as_me.
21928 # Run this file to recreate the current configuration.
21929 # Compiler output produced by configure, useful for debugging
21930 # configure, is in config.log if it exists.
21932 debug=false
21933 ac_cs_recheck=false
21934 ac_cs_silent=false
21936 SHELL=\${CONFIG_SHELL-$SHELL}
21937 export SHELL
21938 _ASEOF
21939 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
21940 ## -------------------- ##
21941 ## M4sh Initialization. ##
21942 ## -------------------- ##
21944 # Be more Bourne compatible
21945 DUALCASE=1; export DUALCASE # for MKS sh
21946 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
21947 emulate sh
21948 NULLCMD=:
21949 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21950 # is contrary to our usage. Disable this feature.
21951 alias -g '${1+"$@"}'='"$@"'
21952 setopt NO_GLOB_SUBST
21953 else
21954 case `(set -o) 2>/dev/null` in #(
21955 *posix*) :
21956 set -o posix ;; #(
21957 *) :
21959 esac
21963 as_nl='
21965 export as_nl
21966 # Printing a long string crashes Solaris 7 /usr/bin/printf.
21967 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
21968 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
21969 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
21970 # Prefer a ksh shell builtin over an external printf program on Solaris,
21971 # but without wasting forks for bash or zsh.
21972 if test -z "$BASH_VERSION$ZSH_VERSION" \
21973 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
21974 as_echo='print -r --'
21975 as_echo_n='print -rn --'
21976 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
21977 as_echo='printf %s\n'
21978 as_echo_n='printf %s'
21979 else
21980 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
21981 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
21982 as_echo_n='/usr/ucb/echo -n'
21983 else
21984 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
21985 as_echo_n_body='eval
21986 arg=$1;
21987 case $arg in #(
21988 *"$as_nl"*)
21989 expr "X$arg" : "X\\(.*\\)$as_nl";
21990 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
21991 esac;
21992 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
21994 export as_echo_n_body
21995 as_echo_n='sh -c $as_echo_n_body as_echo'
21997 export as_echo_body
21998 as_echo='sh -c $as_echo_body as_echo'
22001 # The user is always right.
22002 if test "${PATH_SEPARATOR+set}" != set; then
22003 PATH_SEPARATOR=:
22004 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
22005 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
22006 PATH_SEPARATOR=';'
22011 # IFS
22012 # We need space, tab and new line, in precisely that order. Quoting is
22013 # there to prevent editors from complaining about space-tab.
22014 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22015 # splitting by setting IFS to empty value.)
22016 IFS=" "" $as_nl"
22018 # Find who we are. Look in the path if we contain no directory separator.
22019 case $0 in #((
22020 *[\\/]* ) as_myself=$0 ;;
22021 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22022 for as_dir in $PATH
22024 IFS=$as_save_IFS
22025 test -z "$as_dir" && as_dir=.
22026 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22027 done
22028 IFS=$as_save_IFS
22031 esac
22032 # We did not find ourselves, most probably we were run as `sh COMMAND'
22033 # in which case we are not to be found in the path.
22034 if test "x$as_myself" = x; then
22035 as_myself=$0
22037 if test ! -f "$as_myself"; then
22038 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22039 exit 1
22042 # Unset variables that we do not need and which cause bugs (e.g. in
22043 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
22044 # suppresses any "Segmentation fault" message there. '((' could
22045 # trigger a bug in pdksh 5.2.14.
22046 for as_var in BASH_ENV ENV MAIL MAILPATH
22047 do eval test x\${$as_var+set} = xset \
22048 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
22049 done
22050 PS1='$ '
22051 PS2='> '
22052 PS4='+ '
22054 # NLS nuisances.
22055 LC_ALL=C
22056 export LC_ALL
22057 LANGUAGE=C
22058 export LANGUAGE
22060 # CDPATH.
22061 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22064 # as_fn_error ERROR [LINENO LOG_FD]
22065 # ---------------------------------
22066 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
22067 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22068 # script with status $?, using 1 if that was 0.
22069 as_fn_error ()
22071 as_status=$?; test $as_status -eq 0 && as_status=1
22072 if test "$3"; then
22073 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
22074 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
22076 $as_echo "$as_me: error: $1" >&2
22077 as_fn_exit $as_status
22078 } # as_fn_error
22081 # as_fn_set_status STATUS
22082 # -----------------------
22083 # Set $? to STATUS, without forking.
22084 as_fn_set_status ()
22086 return $1
22087 } # as_fn_set_status
22089 # as_fn_exit STATUS
22090 # -----------------
22091 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
22092 as_fn_exit ()
22094 set +e
22095 as_fn_set_status $1
22096 exit $1
22097 } # as_fn_exit
22099 # as_fn_unset VAR
22100 # ---------------
22101 # Portably unset VAR.
22102 as_fn_unset ()
22104 { eval $1=; unset $1;}
22106 as_unset=as_fn_unset
22107 # as_fn_append VAR VALUE
22108 # ----------------------
22109 # Append the text in VALUE to the end of the definition contained in VAR. Take
22110 # advantage of any shell optimizations that allow amortized linear growth over
22111 # repeated appends, instead of the typical quadratic growth present in naive
22112 # implementations.
22113 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
22114 eval 'as_fn_append ()
22116 eval $1+=\$2
22118 else
22119 as_fn_append ()
22121 eval $1=\$$1\$2
22123 fi # as_fn_append
22125 # as_fn_arith ARG...
22126 # ------------------
22127 # Perform arithmetic evaluation on the ARGs, and store the result in the
22128 # global $as_val. Take advantage of shells that can avoid forks. The arguments
22129 # must be portable across $(()) and expr.
22130 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
22131 eval 'as_fn_arith ()
22133 as_val=$(( $* ))
22135 else
22136 as_fn_arith ()
22138 as_val=`expr "$@" || test $? -eq 1`
22140 fi # as_fn_arith
22143 if expr a : '\(a\)' >/dev/null 2>&1 &&
22144 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22145 as_expr=expr
22146 else
22147 as_expr=false
22150 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22151 as_basename=basename
22152 else
22153 as_basename=false
22156 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22157 as_dirname=dirname
22158 else
22159 as_dirname=false
22162 as_me=`$as_basename -- "$0" ||
22163 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22164 X"$0" : 'X\(//\)$' \| \
22165 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22166 $as_echo X/"$0" |
22167 sed '/^.*\/\([^/][^/]*\)\/*$/{
22168 s//\1/
22171 /^X\/\(\/\/\)$/{
22172 s//\1/
22175 /^X\/\(\/\).*/{
22176 s//\1/
22179 s/.*/./; q'`
22181 # Avoid depending upon Character Ranges.
22182 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22183 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22184 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22185 as_cr_digits='0123456789'
22186 as_cr_alnum=$as_cr_Letters$as_cr_digits
22188 ECHO_C= ECHO_N= ECHO_T=
22189 case `echo -n x` in #(((((
22190 -n*)
22191 case `echo 'xy\c'` in
22192 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
22193 xy) ECHO_C='\c';;
22194 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
22195 ECHO_T=' ';;
22196 esac;;
22198 ECHO_N='-n';;
22199 esac
22201 rm -f conf$$ conf$$.exe conf$$.file
22202 if test -d conf$$.dir; then
22203 rm -f conf$$.dir/conf$$.file
22204 else
22205 rm -f conf$$.dir
22206 mkdir conf$$.dir 2>/dev/null
22208 if (echo >conf$$.file) 2>/dev/null; then
22209 if ln -s conf$$.file conf$$ 2>/dev/null; then
22210 as_ln_s='ln -s'
22211 # ... but there are two gotchas:
22212 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22213 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22214 # In both cases, we have to default to `cp -p'.
22215 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22216 as_ln_s='cp -p'
22217 elif ln conf$$.file conf$$ 2>/dev/null; then
22218 as_ln_s=ln
22219 else
22220 as_ln_s='cp -p'
22222 else
22223 as_ln_s='cp -p'
22225 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22226 rmdir conf$$.dir 2>/dev/null
22229 # as_fn_mkdir_p
22230 # -------------
22231 # Create "$as_dir" as a directory, including parents if necessary.
22232 as_fn_mkdir_p ()
22235 case $as_dir in #(
22236 -*) as_dir=./$as_dir;;
22237 esac
22238 test -d "$as_dir" || eval $as_mkdir_p || {
22239 as_dirs=
22240 while :; do
22241 case $as_dir in #(
22242 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
22243 *) as_qdir=$as_dir;;
22244 esac
22245 as_dirs="'$as_qdir' $as_dirs"
22246 as_dir=`$as_dirname -- "$as_dir" ||
22247 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22248 X"$as_dir" : 'X\(//\)[^/]' \| \
22249 X"$as_dir" : 'X\(//\)$' \| \
22250 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22251 $as_echo X"$as_dir" |
22252 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22253 s//\1/
22256 /^X\(\/\/\)[^/].*/{
22257 s//\1/
22260 /^X\(\/\/\)$/{
22261 s//\1/
22264 /^X\(\/\).*/{
22265 s//\1/
22268 s/.*/./; q'`
22269 test -d "$as_dir" && break
22270 done
22271 test -z "$as_dirs" || eval "mkdir $as_dirs"
22272 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
22275 } # as_fn_mkdir_p
22276 if mkdir -p . 2>/dev/null; then
22277 as_mkdir_p='mkdir -p "$as_dir"'
22278 else
22279 test -d ./-p && rmdir ./-p
22280 as_mkdir_p=false
22283 if test -x / >/dev/null 2>&1; then
22284 as_test_x='test -x'
22285 else
22286 if ls -dL / >/dev/null 2>&1; then
22287 as_ls_L_option=L
22288 else
22289 as_ls_L_option=
22291 as_test_x='
22292 eval sh -c '\''
22293 if test -d "$1"; then
22294 test -d "$1/.";
22295 else
22296 case $1 in #(
22297 -*)set "./$1";;
22298 esac;
22299 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
22300 ???[sx]*):;;*)false;;esac;fi
22301 '\'' sh
22304 as_executable_p=$as_test_x
22306 # Sed expression to map a string onto a valid CPP name.
22307 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22309 # Sed expression to map a string onto a valid variable name.
22310 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22313 exec 6>&1
22314 ## ----------------------------------- ##
22315 ## Main body of $CONFIG_STATUS script. ##
22316 ## ----------------------------------- ##
22317 _ASEOF
22318 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
22320 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22321 # Save the log message, to keep $0 and so on meaningful, and to
22322 # report actual input values of CONFIG_FILES etc. instead of their
22323 # values after options handling.
22324 ac_log="
22325 This file was extended by emacs $as_me 24.0.50, which was
22326 generated by GNU Autoconf 2.65. Invocation command line was
22328 CONFIG_FILES = $CONFIG_FILES
22329 CONFIG_HEADERS = $CONFIG_HEADERS
22330 CONFIG_LINKS = $CONFIG_LINKS
22331 CONFIG_COMMANDS = $CONFIG_COMMANDS
22332 $ $0 $@
22334 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22337 _ACEOF
22339 case $ac_config_files in *"
22340 "*) set x $ac_config_files; shift; ac_config_files=$*;;
22341 esac
22343 case $ac_config_headers in *"
22344 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
22345 esac
22348 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22349 # Files that config.status was made for.
22350 config_files="$ac_config_files"
22351 config_headers="$ac_config_headers"
22352 config_commands="$ac_config_commands"
22354 _ACEOF
22356 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22357 ac_cs_usage="\
22358 \`$as_me' instantiates files and other configuration actions
22359 from templates according to the current configuration. Unless the files
22360 and actions are specified as TAGs, all are instantiated by default.
22362 Usage: $0 [OPTION]... [TAG]...
22364 -h, --help print this help, then exit
22365 -V, --version print version number and configuration settings, then exit
22366 --config print configuration, then exit
22367 -q, --quiet, --silent
22368 do not print progress messages
22369 -d, --debug don't remove temporary files
22370 --recheck update $as_me by reconfiguring in the same conditions
22371 --file=FILE[:TEMPLATE]
22372 instantiate the configuration file FILE
22373 --header=FILE[:TEMPLATE]
22374 instantiate the configuration header FILE
22376 Configuration files:
22377 $config_files
22379 Configuration headers:
22380 $config_headers
22382 Configuration commands:
22383 $config_commands
22385 Report bugs to the package provider."
22387 _ACEOF
22388 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22389 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
22390 ac_cs_version="\\
22391 emacs config.status 24.0.50
22392 configured by $0, generated by GNU Autoconf 2.65,
22393 with options \\"\$ac_cs_config\\"
22395 Copyright (C) 2009 Free Software Foundation, Inc.
22396 This config.status script is free software; the Free Software Foundation
22397 gives unlimited permission to copy, distribute and modify it."
22399 ac_pwd='$ac_pwd'
22400 srcdir='$srcdir'
22401 INSTALL='$INSTALL'
22402 MKDIR_P='$MKDIR_P'
22403 AWK='$AWK'
22404 test -n "\$AWK" || AWK=awk
22405 _ACEOF
22407 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22408 # The default lists apply if the user does not specify any file.
22409 ac_need_defaults=:
22410 while test $# != 0
22412 case $1 in
22413 --*=*)
22414 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22415 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22416 ac_shift=:
22419 ac_option=$1
22420 ac_optarg=$2
22421 ac_shift=shift
22423 esac
22425 case $ac_option in
22426 # Handling of the options.
22427 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22428 ac_cs_recheck=: ;;
22429 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22430 $as_echo "$ac_cs_version"; exit ;;
22431 --config | --confi | --conf | --con | --co | --c )
22432 $as_echo "$ac_cs_config"; exit ;;
22433 --debug | --debu | --deb | --de | --d | -d )
22434 debug=: ;;
22435 --file | --fil | --fi | --f )
22436 $ac_shift
22437 case $ac_optarg in
22438 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22439 esac
22440 as_fn_append CONFIG_FILES " '$ac_optarg'"
22441 ac_need_defaults=false;;
22442 --header | --heade | --head | --hea )
22443 $ac_shift
22444 case $ac_optarg in
22445 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22446 esac
22447 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
22448 ac_need_defaults=false;;
22449 --he | --h)
22450 # Conflict between --help and --header
22451 as_fn_error "ambiguous option: \`$1'
22452 Try \`$0 --help' for more information.";;
22453 --help | --hel | -h )
22454 $as_echo "$ac_cs_usage"; exit ;;
22455 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22456 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22457 ac_cs_silent=: ;;
22459 # This is an error.
22460 -*) as_fn_error "unrecognized option: \`$1'
22461 Try \`$0 --help' for more information." ;;
22463 *) as_fn_append ac_config_targets " $1"
22464 ac_need_defaults=false ;;
22466 esac
22467 shift
22468 done
22470 ac_configure_extra_args=
22472 if $ac_cs_silent; then
22473 exec 6>/dev/null
22474 ac_configure_extra_args="$ac_configure_extra_args --silent"
22477 _ACEOF
22478 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22479 if \$ac_cs_recheck; then
22480 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22481 shift
22482 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
22483 CONFIG_SHELL='$SHELL'
22484 export CONFIG_SHELL
22485 exec "\$@"
22488 _ACEOF
22489 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22490 exec 5>>config.log
22492 echo
22493 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22494 ## Running $as_me. ##
22495 _ASBOX
22496 $as_echo "$ac_log"
22497 } >&5
22499 _ACEOF
22500 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22502 # INIT-COMMANDS
22504 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22505 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPPFLAGS="$CPPFLAGS"
22507 _ACEOF
22509 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22511 # Handling of arguments.
22512 for ac_config_target in $ac_config_targets
22514 case $ac_config_target in
22515 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
22516 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22517 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22518 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
22519 "lib-src/Makefile") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile" ;;
22520 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
22521 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
22522 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
22523 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
22524 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
22525 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
22526 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
22527 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
22528 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
22529 "test/automated/Makefile") CONFIG_FILES="$CONFIG_FILES test/automated/Makefile" ;;
22530 "mkdirs") CONFIG_COMMANDS="$CONFIG_COMMANDS mkdirs" ;;
22531 "epaths") CONFIG_COMMANDS="$CONFIG_COMMANDS epaths" ;;
22532 "gdbinit") CONFIG_COMMANDS="$CONFIG_COMMANDS gdbinit" ;;
22534 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
22535 esac
22536 done
22539 # If the user did not use the arguments to specify the items to instantiate,
22540 # then the envvar interface is used. Set only those that are not.
22541 # We use the long form for the default assignment because of an extremely
22542 # bizarre bug on SunOS 4.1.3.
22543 if $ac_need_defaults; then
22544 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22545 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22546 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22549 # Have a temporary directory for convenience. Make it in the build tree
22550 # simply because there is no reason against having it here, and in addition,
22551 # creating and moving files from /tmp can sometimes cause problems.
22552 # Hook for its removal unless debugging.
22553 # Note that there is a small window in which the directory will not be cleaned:
22554 # after its creation but before its name has been assigned to `$tmp'.
22555 $debug ||
22557 tmp=
22558 trap 'exit_status=$?
22559 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22561 trap 'as_fn_exit 1' 1 2 13 15
22563 # Create a (secure) tmp directory for tmp files.
22566 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22567 test -n "$tmp" && test -d "$tmp"
22568 } ||
22570 tmp=./conf$$-$RANDOM
22571 (umask 077 && mkdir "$tmp")
22572 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
22574 # Set up the scripts for CONFIG_FILES section.
22575 # No need to generate them if there are no CONFIG_FILES.
22576 # This happens for instance with `./config.status config.h'.
22577 if test -n "$CONFIG_FILES"; then
22579 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
22580 ac_cs_awk_getline=:
22581 ac_cs_awk_pipe_init=
22582 ac_cs_awk_read_file='
22583 while ((getline aline < (F[key])) > 0)
22584 print(aline)
22585 close(F[key])'
22586 ac_cs_awk_pipe_fini=
22587 else
22588 ac_cs_awk_getline=false
22589 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
22590 ac_cs_awk_read_file='
22591 print "|#_!!_#|"
22592 print "cat " F[key] " &&"
22593 '$ac_cs_awk_pipe_init
22594 # The final `:' finishes the AND list.
22595 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
22597 ac_cr=`echo X | tr X '\015'`
22598 # On cygwin, bash can eat \r inside `` if the user requested igncr.
22599 # But we know of no other shell where ac_cr would be empty at this
22600 # point, so we can use a bashism as a fallback.
22601 if test "x$ac_cr" = x; then
22602 eval ac_cr=\$\'\\r\'
22604 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
22605 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22606 ac_cs_awk_cr='\r'
22607 else
22608 ac_cs_awk_cr=$ac_cr
22611 echo 'BEGIN {' >"$tmp/subs1.awk" &&
22612 _ACEOF
22614 # Create commands to substitute file output variables.
22616 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
22617 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
22618 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
22619 echo "_ACAWK" &&
22620 echo "_ACEOF"
22621 } >conf$$files.sh &&
22622 . ./conf$$files.sh ||
22623 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
22624 rm -f conf$$files.sh
22627 echo "cat >conf$$subs.awk <<_ACEOF" &&
22628 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
22629 echo "_ACEOF"
22630 } >conf$$subs.sh ||
22631 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
22632 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
22633 ac_delim='%!_!# '
22634 for ac_last_try in false false false false false :; do
22635 . ./conf$$subs.sh ||
22636 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
22638 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
22639 if test $ac_delim_n = $ac_delim_num; then
22640 break
22641 elif $ac_last_try; then
22642 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
22643 else
22644 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22646 done
22647 rm -f conf$$subs.sh
22649 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22650 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
22651 _ACEOF
22652 sed -n '
22654 s/^/S["/; s/!.*/"]=/
22657 s/^[^!]*!//
22658 :repl
22659 t repl
22660 s/'"$ac_delim"'$//
22661 t delim
22664 s/\(.\{148\}\)..*/\1/
22665 t more1
22666 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
22669 b repl
22670 :more1
22671 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22674 s/.\{148\}//
22675 t nl
22676 :delim
22678 s/\(.\{148\}\)..*/\1/
22679 t more2
22680 s/["\\]/\\&/g; s/^/"/; s/$/"/
22683 :more2
22684 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22687 s/.\{148\}//
22688 t delim
22689 ' <conf$$subs.awk | sed '
22690 /^[^""]/{
22692 s/\n//
22694 ' >>$CONFIG_STATUS || ac_write_fail=1
22695 rm -f conf$$subs.awk
22696 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22697 _ACAWK
22698 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
22699 for (key in S) S_is_set[key] = 1
22700 FS = "\a"
22701 \$ac_cs_awk_pipe_init
22704 line = $ 0
22705 nfields = split(line, field, "@")
22706 substed = 0
22707 len = length(field[1])
22708 for (i = 2; i < nfields; i++) {
22709 key = field[i]
22710 keylen = length(key)
22711 if (S_is_set[key]) {
22712 value = S[key]
22713 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
22714 len += length(value) + length(field[++i])
22715 substed = 1
22716 } else
22717 len += 1 + keylen
22719 if (nfields == 3 && !substed) {
22720 key = field[2]
22721 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
22722 \$ac_cs_awk_read_file
22723 next
22726 print line
22728 \$ac_cs_awk_pipe_fini
22729 _ACAWK
22730 _ACEOF
22731 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22732 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
22733 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
22734 else
22736 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
22737 || as_fn_error "could not setup config files machinery" "$LINENO" 5
22738 _ACEOF
22740 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22741 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22742 # trailing colons and then remove the whole line if VPATH becomes empty
22743 # (actually we leave an empty line to preserve line numbers).
22744 if test "x$srcdir" = x.; then
22745 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22746 s/:*\$(srcdir):*/:/
22747 s/:*\${srcdir}:*/:/
22748 s/:*@srcdir@:*/:/
22749 s/^\([^=]*=[ ]*\):*/\1/
22750 s/:*$//
22751 s/^[^=]*=[ ]*$//
22755 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22756 fi # test -n "$CONFIG_FILES"
22758 # Set up the scripts for CONFIG_HEADERS section.
22759 # No need to generate them if there are no CONFIG_HEADERS.
22760 # This happens for instance with `./config.status Makefile'.
22761 if test -n "$CONFIG_HEADERS"; then
22762 cat >"$tmp/defines.awk" <<\_ACAWK ||
22763 BEGIN {
22764 _ACEOF
22766 # Transform confdefs.h into an awk script `defines.awk', embedded as
22767 # here-document in config.status, that substitutes the proper values into
22768 # config.h.in to produce config.h.
22770 # Create a delimiter string that does not exist in confdefs.h, to ease
22771 # handling of long lines.
22772 ac_delim='%!_!# '
22773 for ac_last_try in false false :; do
22774 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
22775 if test -z "$ac_t"; then
22776 break
22777 elif $ac_last_try; then
22778 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
22779 else
22780 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22782 done
22784 # For the awk script, D is an array of macro values keyed by name,
22785 # likewise P contains macro parameters if any. Preserve backslash
22786 # newline sequences.
22788 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22789 sed -n '
22790 s/.\{148\}/&'"$ac_delim"'/g
22791 t rset
22792 :rset
22793 s/^[ ]*#[ ]*define[ ][ ]*/ /
22794 t def
22796 :def
22797 s/\\$//
22798 t bsnl
22799 s/["\\]/\\&/g
22800 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22801 D["\1"]=" \3"/p
22802 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
22804 :bsnl
22805 s/["\\]/\\&/g
22806 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22807 D["\1"]=" \3\\\\\\n"\\/p
22808 t cont
22809 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
22810 t cont
22812 :cont
22814 s/.\{148\}/&'"$ac_delim"'/g
22815 t clear
22816 :clear
22817 s/\\$//
22818 t bsnlc
22819 s/["\\]/\\&/g; s/^/"/; s/$/"/p
22821 :bsnlc
22822 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
22823 b cont
22824 ' <confdefs.h | sed '
22825 s/'"$ac_delim"'/"\\\
22826 "/g' >>$CONFIG_STATUS || ac_write_fail=1
22828 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22829 for (key in D) D_is_set[key] = 1
22830 FS = "\a"
22832 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
22833 line = \$ 0
22834 split(line, arg, " ")
22835 if (arg[1] == "#") {
22836 defundef = arg[2]
22837 mac1 = arg[3]
22838 } else {
22839 defundef = substr(arg[1], 2)
22840 mac1 = arg[2]
22842 split(mac1, mac2, "(") #)
22843 macro = mac2[1]
22844 prefix = substr(line, 1, index(line, defundef) - 1)
22845 if (D_is_set[macro]) {
22846 # Preserve the white space surrounding the "#".
22847 print prefix "define", macro P[macro] D[macro]
22848 next
22849 } else {
22850 # Replace #undef with comments. This is necessary, for example,
22851 # in the case of _POSIX_SOURCE, which is predefined and required
22852 # on some systems where configure will not decide to define it.
22853 if (defundef == "undef") {
22854 print "/*", prefix defundef, macro, "*/"
22855 next
22859 { print }
22860 _ACAWK
22861 _ACEOF
22862 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22863 as_fn_error "could not setup config headers machinery" "$LINENO" 5
22864 fi # test -n "$CONFIG_HEADERS"
22867 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
22868 shift
22869 for ac_tag
22871 case $ac_tag in
22872 :[FHLC]) ac_mode=$ac_tag; continue;;
22873 esac
22874 case $ac_mode$ac_tag in
22875 :[FHL]*:*);;
22876 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
22877 :[FH]-) ac_tag=-:-;;
22878 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22879 esac
22880 ac_save_IFS=$IFS
22881 IFS=:
22882 set x $ac_tag
22883 IFS=$ac_save_IFS
22884 shift
22885 ac_file=$1
22886 shift
22888 case $ac_mode in
22889 :L) ac_source=$1;;
22890 :[FH])
22891 ac_file_inputs=
22892 for ac_f
22894 case $ac_f in
22895 -) ac_f="$tmp/stdin";;
22896 *) # Look for the file first in the build tree, then in the source tree
22897 # (if the path is not absolute). The absolute path cannot be DOS-style,
22898 # because $ac_f cannot contain `:'.
22899 test -f "$ac_f" ||
22900 case $ac_f in
22901 [\\/$]*) false;;
22902 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22903 esac ||
22904 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
22905 esac
22906 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22907 as_fn_append ac_file_inputs " '$ac_f'"
22908 done
22910 # Let's still pretend it is `configure' which instantiates (i.e., don't
22911 # use $as_me), people would be surprised to read:
22912 # /* config.h. Generated by config.status. */
22913 configure_input='Generated from '`
22914 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22915 `' by configure.'
22916 if test x"$ac_file" != x-; then
22917 configure_input="$ac_file. $configure_input"
22918 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
22919 $as_echo "$as_me: creating $ac_file" >&6;}
22921 # Neutralize special characters interpreted by sed in replacement strings.
22922 case $configure_input in #(
22923 *\&* | *\|* | *\\* )
22924 ac_sed_conf_input=`$as_echo "$configure_input" |
22925 sed 's/[\\\\&|]/\\\\&/g'`;; #(
22926 *) ac_sed_conf_input=$configure_input;;
22927 esac
22929 case $ac_tag in
22930 *:-:* | *:-) cat >"$tmp/stdin" \
22931 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
22932 esac
22934 esac
22936 ac_dir=`$as_dirname -- "$ac_file" ||
22937 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22938 X"$ac_file" : 'X\(//\)[^/]' \| \
22939 X"$ac_file" : 'X\(//\)$' \| \
22940 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22941 $as_echo X"$ac_file" |
22942 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22943 s//\1/
22946 /^X\(\/\/\)[^/].*/{
22947 s//\1/
22950 /^X\(\/\/\)$/{
22951 s//\1/
22954 /^X\(\/\).*/{
22955 s//\1/
22958 s/.*/./; q'`
22959 as_dir="$ac_dir"; as_fn_mkdir_p
22960 ac_builddir=.
22962 case "$ac_dir" in
22963 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22965 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
22966 # A ".." for each directory in $ac_dir_suffix.
22967 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22968 case $ac_top_builddir_sub in
22969 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22970 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22971 esac ;;
22972 esac
22973 ac_abs_top_builddir=$ac_pwd
22974 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22975 # for backward compatibility:
22976 ac_top_builddir=$ac_top_build_prefix
22978 case $srcdir in
22979 .) # We are building in place.
22980 ac_srcdir=.
22981 ac_top_srcdir=$ac_top_builddir_sub
22982 ac_abs_top_srcdir=$ac_pwd ;;
22983 [\\/]* | ?:[\\/]* ) # Absolute name.
22984 ac_srcdir=$srcdir$ac_dir_suffix;
22985 ac_top_srcdir=$srcdir
22986 ac_abs_top_srcdir=$srcdir ;;
22987 *) # Relative name.
22988 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22989 ac_top_srcdir=$ac_top_build_prefix$srcdir
22990 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22991 esac
22992 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22995 case $ac_mode in
22998 # CONFIG_FILE
23001 case $INSTALL in
23002 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23003 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23004 esac
23005 ac_MKDIR_P=$MKDIR_P
23006 case $MKDIR_P in
23007 [\\/$]* | ?:[\\/]* ) ;;
23008 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
23009 esac
23010 _ACEOF
23012 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23013 # If the template does not know about datarootdir, expand it.
23014 # FIXME: This hack should be removed a few years after 2.60.
23015 ac_datarootdir_hack=; ac_datarootdir_seen=
23016 ac_sed_dataroot='
23017 /datarootdir/ {
23021 /@datadir@/p
23022 /@docdir@/p
23023 /@infodir@/p
23024 /@localedir@/p
23025 /@mandir@/p'
23026 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
23027 *datarootdir*) ac_datarootdir_seen=yes;;
23028 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23029 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23030 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23031 _ACEOF
23032 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23033 ac_datarootdir_hack='
23034 s&@datadir@&$datadir&g
23035 s&@docdir@&$docdir&g
23036 s&@infodir@&$infodir&g
23037 s&@localedir@&$localedir&g
23038 s&@mandir@&$mandir&g
23039 s&\\\${datarootdir}&$datarootdir&g' ;;
23040 esac
23041 _ACEOF
23043 # Neutralize VPATH when `$srcdir' = `.'.
23044 # Shell code in configure.ac might set extrasub.
23045 # FIXME: do we really want to maintain this feature?
23046 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23047 ac_sed_extra="$ac_vpsub
23048 $extrasub
23049 _ACEOF
23050 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23052 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23053 s|@configure_input@|$ac_sed_conf_input|;t t
23054 s&@top_builddir@&$ac_top_builddir_sub&;t t
23055 s&@top_build_prefix@&$ac_top_build_prefix&;t t
23056 s&@srcdir@&$ac_srcdir&;t t
23057 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23058 s&@top_srcdir@&$ac_top_srcdir&;t t
23059 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23060 s&@builddir@&$ac_builddir&;t t
23061 s&@abs_builddir@&$ac_abs_builddir&;t t
23062 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23063 s&@INSTALL@&$ac_INSTALL&;t t
23064 s&@MKDIR_P@&$ac_MKDIR_P&;t t
23065 $ac_datarootdir_hack
23067 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
23068 if $ac_cs_awk_getline; then
23069 $AWK -f "$tmp/subs.awk"
23070 else
23071 $AWK -f "$tmp/subs.awk" | $SHELL
23072 fi >$tmp/out \
23073 || as_fn_error "could not create $ac_file" "$LINENO" 5
23075 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23076 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23077 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23078 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23079 which seems to be undefined. Please make sure it is defined." >&5
23080 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23081 which seems to be undefined. Please make sure it is defined." >&2;}
23083 rm -f "$tmp/stdin"
23084 case $ac_file in
23085 -) cat "$tmp/out" && rm -f "$tmp/out";;
23086 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
23087 esac \
23088 || as_fn_error "could not create $ac_file" "$LINENO" 5
23092 # CONFIG_HEADER
23094 if test x"$ac_file" != x-; then
23096 $as_echo "/* $configure_input */" \
23097 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
23098 } >"$tmp/config.h" \
23099 || as_fn_error "could not create $ac_file" "$LINENO" 5
23100 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
23101 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
23102 $as_echo "$as_me: $ac_file is unchanged" >&6;}
23103 else
23104 rm -f "$ac_file"
23105 mv "$tmp/config.h" "$ac_file" \
23106 || as_fn_error "could not create $ac_file" "$LINENO" 5
23108 else
23109 $as_echo "/* $configure_input */" \
23110 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
23111 || as_fn_error "could not create -" "$LINENO" 5
23113 # Compute "$ac_file"'s index in $config_headers.
23114 _am_arg="$ac_file"
23115 _am_stamp_count=1
23116 for _am_header in $config_headers :; do
23117 case $_am_header in
23118 $_am_arg | $_am_arg:* )
23119 break ;;
23121 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23122 esac
23123 done
23124 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
23125 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23126 X"$_am_arg" : 'X\(//\)[^/]' \| \
23127 X"$_am_arg" : 'X\(//\)$' \| \
23128 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
23129 $as_echo X"$_am_arg" |
23130 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23131 s//\1/
23134 /^X\(\/\/\)[^/].*/{
23135 s//\1/
23138 /^X\(\/\/\)$/{
23139 s//\1/
23142 /^X\(\/\).*/{
23143 s//\1/
23146 s/.*/./; q'`/stamp-h$_am_stamp_count
23149 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
23150 $as_echo "$as_me: executing $ac_file commands" >&6;}
23152 esac
23155 case $ac_file$ac_mode in
23156 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
23157 # Autoconf 2.62 quotes --file arguments for eval, but not when files
23158 # are listed without --file. Let's play safe and only enable the eval
23159 # if we detect the quoting.
23160 case $CONFIG_FILES in
23161 *\'*) eval set x "$CONFIG_FILES" ;;
23162 *) set x $CONFIG_FILES ;;
23163 esac
23164 shift
23165 for mf
23167 # Strip MF so we end up with the name of the file.
23168 mf=`echo "$mf" | sed -e 's/:.*$//'`
23169 # Check whether this is an Automake generated Makefile or not.
23170 # We used to match only the files named `Makefile.in', but
23171 # some people rename them; so instead we look at the file content.
23172 # Grep'ing the first line is not enough: some people post-process
23173 # each Makefile.in and add a new line on top of each file to say so.
23174 # Grep'ing the whole file is not good either: AIX grep has a line
23175 # limit of 2048, but all sed's we know have understand at least 4000.
23176 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
23177 dirpart=`$as_dirname -- "$mf" ||
23178 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23179 X"$mf" : 'X\(//\)[^/]' \| \
23180 X"$mf" : 'X\(//\)$' \| \
23181 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
23182 $as_echo X"$mf" |
23183 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23184 s//\1/
23187 /^X\(\/\/\)[^/].*/{
23188 s//\1/
23191 /^X\(\/\/\)$/{
23192 s//\1/
23195 /^X\(\/\).*/{
23196 s//\1/
23199 s/.*/./; q'`
23200 else
23201 continue
23203 # Extract the definition of DEPDIR, am__include, and am__quote
23204 # from the Makefile without running `make'.
23205 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23206 test -z "$DEPDIR" && continue
23207 am__include=`sed -n 's/^am__include = //p' < "$mf"`
23208 test -z "am__include" && continue
23209 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23210 # When using ansi2knr, U may be empty or an underscore; expand it
23211 U=`sed -n 's/^U = //p' < "$mf"`
23212 # Find all dependency output files, they are included files with
23213 # $(DEPDIR) in their names. We invoke sed twice because it is the
23214 # simplest approach to changing $(DEPDIR) to its actual value in the
23215 # expansion.
23216 for file in `sed -n "
23217 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23218 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23219 # Make sure the directory exists.
23220 test -f "$dirpart/$file" && continue
23221 fdir=`$as_dirname -- "$file" ||
23222 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23223 X"$file" : 'X\(//\)[^/]' \| \
23224 X"$file" : 'X\(//\)$' \| \
23225 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
23226 $as_echo X"$file" |
23227 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23228 s//\1/
23231 /^X\(\/\/\)[^/].*/{
23232 s//\1/
23235 /^X\(\/\/\)$/{
23236 s//\1/
23239 /^X\(\/\).*/{
23240 s//\1/
23243 s/.*/./; q'`
23244 as_dir=$dirpart/$fdir; as_fn_mkdir_p
23245 # echo "creating $dirpart/$file"
23246 echo '# dummy' > "$dirpart/$file"
23247 done
23248 done
23251 "mkdirs":C)
23252 for dir in etc lisp ; do
23253 test -d ${dir} || mkdir ${dir}
23254 done
23256 "epaths":C)
23257 echo creating src/epaths.h
23258 ${MAKE-make} epaths-force
23260 "gdbinit":C)
23261 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
23262 echo creating src/.gdbinit
23263 echo source $srcdir/src/.gdbinit > src/.gdbinit
23267 esac
23268 done # for ac_tag
23271 as_fn_exit 0
23272 _ACEOF
23273 ac_clean_files=$ac_clean_files_save
23275 test $ac_write_fail = 0 ||
23276 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
23279 # configure is writing to config.log, and then calls config.status.
23280 # config.status does its own redirection, appending to config.log.
23281 # Unfortunately, on DOS this fails, as config.log is still kept open
23282 # by configure, so config.status won't be able to write to it; its
23283 # output is simply discarded. So we exec the FD to /dev/null,
23284 # effectively closing config.log, so it can be properly (re)opened and
23285 # appended to by config.status. When coming back to configure, we
23286 # need to make the FD available again.
23287 if test "$no_create" != yes; then
23288 ac_cs_success=:
23289 ac_config_status_args=
23290 test "$silent" = yes &&
23291 ac_config_status_args="$ac_config_status_args --quiet"
23292 exec 5>/dev/null
23293 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23294 exec 5>>config.log
23295 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23296 # would make configure fail if this is the last instruction.
23297 $ac_cs_success || as_fn_exit $?
23299 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
23300 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
23301 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}