* lisp/replace.el (occur-mode-map): Rebind occur-edit-mode to "e".
[emacs.git] / autogen / configure
blob8483168848ab759d1241d335b9eb97dc6b682a90
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 RANLIB
1174 ARFLAGS
1176 EGREP
1177 GREP
1179 am__fastdepCC_FALSE
1180 am__fastdepCC_TRUE
1181 CCDEPMODE
1182 AMDEPBACKSLASH
1183 AMDEP_FALSE
1184 AMDEP_TRUE
1185 am__quote
1186 am__include
1187 DEPDIR
1188 OBJEXT
1189 EXEEXT
1190 ac_ct_CC
1191 CPPFLAGS
1192 LDFLAGS
1193 CFLAGS
1195 host_os
1196 host_vendor
1197 host_cpu
1198 host
1199 build_os
1200 build_vendor
1201 build_cpu
1202 build
1203 PROFILING_CFLAGS
1204 MAINT
1205 GZIP_INFO
1206 am__untar
1207 am__tar
1208 AMTAR
1209 am__leading_dot
1210 SET_MAKE
1212 mkdir_p
1213 MKDIR_P
1214 INSTALL_STRIP_PROGRAM
1215 STRIP
1216 install_sh
1217 MAKEINFO
1218 AUTOHEADER
1219 AUTOMAKE
1220 AUTOCONF
1221 ACLOCAL
1222 VERSION
1223 PACKAGE
1224 CYGPATH_W
1225 am__isrc
1226 INSTALL_DATA
1227 INSTALL_SCRIPT
1228 INSTALL_PROGRAM
1229 target_alias
1230 host_alias
1231 build_alias
1232 LIBS
1233 ECHO_T
1234 ECHO_N
1235 ECHO_C
1236 DEFS
1237 mandir
1238 localedir
1239 libdir
1240 psdir
1241 pdfdir
1242 dvidir
1243 htmldir
1244 infodir
1245 docdir
1246 oldincludedir
1247 includedir
1248 localstatedir
1249 sharedstatedir
1250 sysconfdir
1251 datadir
1252 datarootdir
1253 libexecdir
1254 sbindir
1255 bindir
1256 program_transform_name
1257 prefix
1258 exec_prefix
1259 PACKAGE_URL
1260 PACKAGE_BUGREPORT
1261 PACKAGE_STRING
1262 PACKAGE_VERSION
1263 PACKAGE_TARNAME
1264 PACKAGE_NAME
1265 PATH_SEPARATOR
1266 SHELL'
1267 ac_subst_files='deps_frag
1268 lisp_frag
1269 ns_frag'
1270 ac_user_opts='
1271 enable_option_checking
1272 with_pop
1273 with_kerberos
1274 with_kerberos5
1275 with_hesiod
1276 with_mmdf
1277 with_mail_unlink
1278 with_mailhost
1279 with_sound
1280 with_sync_input
1281 with_x_toolkit
1282 with_wide_int
1283 with_xpm
1284 with_jpeg
1285 with_tiff
1286 with_gif
1287 with_png
1288 with_rsvg
1289 with_xml2
1290 with_imagemagick
1291 with_xft
1292 with_libotf
1293 with_m17n_flt
1294 with_toolkit_scroll_bars
1295 with_xaw3d
1296 with_xim
1297 with_ns
1298 with_gpm
1299 with_dbus
1300 with_gconf
1301 with_gsettings
1302 with_selinux
1303 with_gnutls
1304 with_makeinfo
1305 with_compress_info
1306 with_pkg_config_prog
1307 with_crt_dir
1308 with_gameuser
1309 with_gnustep_conf
1310 enable_ns_self_contained
1311 enable_asserts
1312 enable_maintainer_mode
1313 enable_locallisppath
1314 enable_checking
1315 enable_use_lisp_union_type
1316 enable_profiling
1317 enable_autodepend
1318 enable_dependency_tracking
1319 enable_largefile
1320 with_x
1322 ac_precious_vars='build_alias
1323 host_alias
1324 target_alias
1326 CFLAGS
1327 LDFLAGS
1328 LIBS
1329 CPPFLAGS
1331 XMKMF'
1334 # Initialize some variables set by options.
1335 ac_init_help=
1336 ac_init_version=false
1337 ac_unrecognized_opts=
1338 ac_unrecognized_sep=
1339 # The variables have the same names as the options, with
1340 # dashes changed to underlines.
1341 cache_file=/dev/null
1342 exec_prefix=NONE
1343 no_create=
1344 no_recursion=
1345 prefix=NONE
1346 program_prefix=NONE
1347 program_suffix=NONE
1348 program_transform_name=s,x,x,
1349 silent=
1350 site=
1351 srcdir=
1352 verbose=
1353 x_includes=NONE
1354 x_libraries=NONE
1356 # Installation directory options.
1357 # These are left unexpanded so users can "make install exec_prefix=/foo"
1358 # and all the variables that are supposed to be based on exec_prefix
1359 # by default will actually change.
1360 # Use braces instead of parens because sh, perl, etc. also accept them.
1361 # (The list follows the same order as the GNU Coding Standards.)
1362 bindir='${exec_prefix}/bin'
1363 sbindir='${exec_prefix}/sbin'
1364 libexecdir='${exec_prefix}/libexec'
1365 datarootdir='${prefix}/share'
1366 datadir='${datarootdir}'
1367 sysconfdir='${prefix}/etc'
1368 sharedstatedir='${prefix}/com'
1369 localstatedir='${prefix}/var'
1370 includedir='${prefix}/include'
1371 oldincludedir='/usr/include'
1372 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1373 infodir='${datarootdir}/info'
1374 htmldir='${docdir}'
1375 dvidir='${docdir}'
1376 pdfdir='${docdir}'
1377 psdir='${docdir}'
1378 libdir='${exec_prefix}/lib'
1379 localedir='${datarootdir}/locale'
1380 mandir='${datarootdir}/man'
1382 ac_prev=
1383 ac_dashdash=
1384 for ac_option
1386 # If the previous option needs an argument, assign it.
1387 if test -n "$ac_prev"; then
1388 eval $ac_prev=\$ac_option
1389 ac_prev=
1390 continue
1393 case $ac_option in
1394 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1395 *) ac_optarg=yes ;;
1396 esac
1398 # Accept the important Cygnus configure options, so we can diagnose typos.
1400 case $ac_dashdash$ac_option in
1402 ac_dashdash=yes ;;
1404 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1405 ac_prev=bindir ;;
1406 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1407 bindir=$ac_optarg ;;
1409 -build | --build | --buil | --bui | --bu)
1410 ac_prev=build_alias ;;
1411 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1412 build_alias=$ac_optarg ;;
1414 -cache-file | --cache-file | --cache-fil | --cache-fi \
1415 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1416 ac_prev=cache_file ;;
1417 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1418 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1419 cache_file=$ac_optarg ;;
1421 --config-cache | -C)
1422 cache_file=config.cache ;;
1424 -datadir | --datadir | --datadi | --datad)
1425 ac_prev=datadir ;;
1426 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1427 datadir=$ac_optarg ;;
1429 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1430 | --dataroo | --dataro | --datar)
1431 ac_prev=datarootdir ;;
1432 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1433 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1434 datarootdir=$ac_optarg ;;
1436 -disable-* | --disable-*)
1437 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1438 # Reject names that are not valid shell variable names.
1439 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1440 as_fn_error "invalid feature name: $ac_useropt"
1441 ac_useropt_orig=$ac_useropt
1442 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1443 case $ac_user_opts in
1445 "enable_$ac_useropt"
1446 "*) ;;
1447 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1448 ac_unrecognized_sep=', ';;
1449 esac
1450 eval enable_$ac_useropt=no ;;
1452 -docdir | --docdir | --docdi | --doc | --do)
1453 ac_prev=docdir ;;
1454 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1455 docdir=$ac_optarg ;;
1457 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1458 ac_prev=dvidir ;;
1459 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1460 dvidir=$ac_optarg ;;
1462 -enable-* | --enable-*)
1463 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1464 # Reject names that are not valid shell variable names.
1465 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1466 as_fn_error "invalid feature name: $ac_useropt"
1467 ac_useropt_orig=$ac_useropt
1468 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1469 case $ac_user_opts in
1471 "enable_$ac_useropt"
1472 "*) ;;
1473 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1474 ac_unrecognized_sep=', ';;
1475 esac
1476 eval enable_$ac_useropt=\$ac_optarg ;;
1478 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1479 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1480 | --exec | --exe | --ex)
1481 ac_prev=exec_prefix ;;
1482 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1483 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1484 | --exec=* | --exe=* | --ex=*)
1485 exec_prefix=$ac_optarg ;;
1487 -gas | --gas | --ga | --g)
1488 # Obsolete; use --with-gas.
1489 with_gas=yes ;;
1491 -help | --help | --hel | --he | -h)
1492 ac_init_help=long ;;
1493 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1494 ac_init_help=recursive ;;
1495 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1496 ac_init_help=short ;;
1498 -host | --host | --hos | --ho)
1499 ac_prev=host_alias ;;
1500 -host=* | --host=* | --hos=* | --ho=*)
1501 host_alias=$ac_optarg ;;
1503 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1504 ac_prev=htmldir ;;
1505 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1506 | --ht=*)
1507 htmldir=$ac_optarg ;;
1509 -includedir | --includedir | --includedi | --included | --include \
1510 | --includ | --inclu | --incl | --inc)
1511 ac_prev=includedir ;;
1512 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1513 | --includ=* | --inclu=* | --incl=* | --inc=*)
1514 includedir=$ac_optarg ;;
1516 -infodir | --infodir | --infodi | --infod | --info | --inf)
1517 ac_prev=infodir ;;
1518 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1519 infodir=$ac_optarg ;;
1521 -libdir | --libdir | --libdi | --libd)
1522 ac_prev=libdir ;;
1523 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1524 libdir=$ac_optarg ;;
1526 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1527 | --libexe | --libex | --libe)
1528 ac_prev=libexecdir ;;
1529 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1530 | --libexe=* | --libex=* | --libe=*)
1531 libexecdir=$ac_optarg ;;
1533 -localedir | --localedir | --localedi | --localed | --locale)
1534 ac_prev=localedir ;;
1535 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1536 localedir=$ac_optarg ;;
1538 -localstatedir | --localstatedir | --localstatedi | --localstated \
1539 | --localstate | --localstat | --localsta | --localst | --locals)
1540 ac_prev=localstatedir ;;
1541 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1542 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1543 localstatedir=$ac_optarg ;;
1545 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1546 ac_prev=mandir ;;
1547 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1548 mandir=$ac_optarg ;;
1550 -nfp | --nfp | --nf)
1551 # Obsolete; use --without-fp.
1552 with_fp=no ;;
1554 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1555 | --no-cr | --no-c | -n)
1556 no_create=yes ;;
1558 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1559 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1560 no_recursion=yes ;;
1562 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1563 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1564 | --oldin | --oldi | --old | --ol | --o)
1565 ac_prev=oldincludedir ;;
1566 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1567 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1568 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1569 oldincludedir=$ac_optarg ;;
1571 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1572 ac_prev=prefix ;;
1573 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1574 prefix=$ac_optarg ;;
1576 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1577 | --program-pre | --program-pr | --program-p)
1578 ac_prev=program_prefix ;;
1579 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1580 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1581 program_prefix=$ac_optarg ;;
1583 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1584 | --program-suf | --program-su | --program-s)
1585 ac_prev=program_suffix ;;
1586 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1587 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1588 program_suffix=$ac_optarg ;;
1590 -program-transform-name | --program-transform-name \
1591 | --program-transform-nam | --program-transform-na \
1592 | --program-transform-n | --program-transform- \
1593 | --program-transform | --program-transfor \
1594 | --program-transfo | --program-transf \
1595 | --program-trans | --program-tran \
1596 | --progr-tra | --program-tr | --program-t)
1597 ac_prev=program_transform_name ;;
1598 -program-transform-name=* | --program-transform-name=* \
1599 | --program-transform-nam=* | --program-transform-na=* \
1600 | --program-transform-n=* | --program-transform-=* \
1601 | --program-transform=* | --program-transfor=* \
1602 | --program-transfo=* | --program-transf=* \
1603 | --program-trans=* | --program-tran=* \
1604 | --progr-tra=* | --program-tr=* | --program-t=*)
1605 program_transform_name=$ac_optarg ;;
1607 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1608 ac_prev=pdfdir ;;
1609 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1610 pdfdir=$ac_optarg ;;
1612 -psdir | --psdir | --psdi | --psd | --ps)
1613 ac_prev=psdir ;;
1614 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1615 psdir=$ac_optarg ;;
1617 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1618 | -silent | --silent | --silen | --sile | --sil)
1619 silent=yes ;;
1621 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1622 ac_prev=sbindir ;;
1623 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1624 | --sbi=* | --sb=*)
1625 sbindir=$ac_optarg ;;
1627 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1628 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1629 | --sharedst | --shareds | --shared | --share | --shar \
1630 | --sha | --sh)
1631 ac_prev=sharedstatedir ;;
1632 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1633 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1634 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1635 | --sha=* | --sh=*)
1636 sharedstatedir=$ac_optarg ;;
1638 -site | --site | --sit)
1639 ac_prev=site ;;
1640 -site=* | --site=* | --sit=*)
1641 site=$ac_optarg ;;
1643 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1644 ac_prev=srcdir ;;
1645 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1646 srcdir=$ac_optarg ;;
1648 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1649 | --syscon | --sysco | --sysc | --sys | --sy)
1650 ac_prev=sysconfdir ;;
1651 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1652 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1653 sysconfdir=$ac_optarg ;;
1655 -target | --target | --targe | --targ | --tar | --ta | --t)
1656 ac_prev=target_alias ;;
1657 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1658 target_alias=$ac_optarg ;;
1660 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1661 verbose=yes ;;
1663 -version | --version | --versio | --versi | --vers | -V)
1664 ac_init_version=: ;;
1666 -with-* | --with-*)
1667 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1668 # Reject names that are not valid shell variable names.
1669 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1670 as_fn_error "invalid package name: $ac_useropt"
1671 ac_useropt_orig=$ac_useropt
1672 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1673 case $ac_user_opts in
1675 "with_$ac_useropt"
1676 "*) ;;
1677 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1678 ac_unrecognized_sep=', ';;
1679 esac
1680 eval with_$ac_useropt=\$ac_optarg ;;
1682 -without-* | --without-*)
1683 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1684 # Reject names that are not valid shell variable names.
1685 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1686 as_fn_error "invalid package name: $ac_useropt"
1687 ac_useropt_orig=$ac_useropt
1688 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1689 case $ac_user_opts in
1691 "with_$ac_useropt"
1692 "*) ;;
1693 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1694 ac_unrecognized_sep=', ';;
1695 esac
1696 eval with_$ac_useropt=no ;;
1698 --x)
1699 # Obsolete; use --with-x.
1700 with_x=yes ;;
1702 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1703 | --x-incl | --x-inc | --x-in | --x-i)
1704 ac_prev=x_includes ;;
1705 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1706 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1707 x_includes=$ac_optarg ;;
1709 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1710 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1711 ac_prev=x_libraries ;;
1712 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1713 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1714 x_libraries=$ac_optarg ;;
1716 -*) as_fn_error "unrecognized option: \`$ac_option'
1717 Try \`$0 --help' for more information."
1720 *=*)
1721 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1722 # Reject names that are not valid shell variable names.
1723 case $ac_envvar in #(
1724 '' | [0-9]* | *[!_$as_cr_alnum]* )
1725 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1726 esac
1727 eval $ac_envvar=\$ac_optarg
1728 export $ac_envvar ;;
1731 # FIXME: should be removed in autoconf 3.0.
1732 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1733 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1734 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1735 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1738 esac
1739 done
1741 if test -n "$ac_prev"; then
1742 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1743 as_fn_error "missing argument to $ac_option"
1746 if test -n "$ac_unrecognized_opts"; then
1747 case $enable_option_checking in
1748 no) ;;
1749 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1750 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1751 esac
1754 # Check all directory arguments for consistency.
1755 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1756 datadir sysconfdir sharedstatedir localstatedir includedir \
1757 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1758 libdir localedir mandir
1760 eval ac_val=\$$ac_var
1761 # Remove trailing slashes.
1762 case $ac_val in
1763 */ )
1764 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1765 eval $ac_var=\$ac_val;;
1766 esac
1767 # Be sure to have absolute directory names.
1768 case $ac_val in
1769 [\\/$]* | ?:[\\/]* ) continue;;
1770 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1771 esac
1772 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1773 done
1775 # There might be people who depend on the old broken behavior: `$host'
1776 # used to hold the argument of --host etc.
1777 # FIXME: To remove some day.
1778 build=$build_alias
1779 host=$host_alias
1780 target=$target_alias
1782 # FIXME: To remove some day.
1783 if test "x$host_alias" != x; then
1784 if test "x$build_alias" = x; then
1785 cross_compiling=maybe
1786 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1787 If a cross compiler is detected then cross compile mode will be used." >&2
1788 elif test "x$build_alias" != "x$host_alias"; then
1789 cross_compiling=yes
1793 ac_tool_prefix=
1794 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1796 test "$silent" = yes && exec 6>/dev/null
1799 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1800 ac_ls_di=`ls -di .` &&
1801 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1802 as_fn_error "working directory cannot be determined"
1803 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1804 as_fn_error "pwd does not report name of working directory"
1807 # Find the source files, if location was not specified.
1808 if test -z "$srcdir"; then
1809 ac_srcdir_defaulted=yes
1810 # Try the directory containing this script, then the parent directory.
1811 ac_confdir=`$as_dirname -- "$as_myself" ||
1812 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1813 X"$as_myself" : 'X\(//\)[^/]' \| \
1814 X"$as_myself" : 'X\(//\)$' \| \
1815 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1816 $as_echo X"$as_myself" |
1817 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1818 s//\1/
1821 /^X\(\/\/\)[^/].*/{
1822 s//\1/
1825 /^X\(\/\/\)$/{
1826 s//\1/
1829 /^X\(\/\).*/{
1830 s//\1/
1833 s/.*/./; q'`
1834 srcdir=$ac_confdir
1835 if test ! -r "$srcdir/$ac_unique_file"; then
1836 srcdir=..
1838 else
1839 ac_srcdir_defaulted=no
1841 if test ! -r "$srcdir/$ac_unique_file"; then
1842 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1843 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1845 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1846 ac_abs_confdir=`(
1847 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1848 pwd)`
1849 # When building in place, set srcdir=.
1850 if test "$ac_abs_confdir" = "$ac_pwd"; then
1851 srcdir=.
1853 # Remove unnecessary trailing slashes from srcdir.
1854 # Double slashes in file names in object file debugging info
1855 # mess up M-x gdb in Emacs.
1856 case $srcdir in
1857 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1858 esac
1859 for ac_var in $ac_precious_vars; do
1860 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1861 eval ac_env_${ac_var}_value=\$${ac_var}
1862 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1863 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1864 done
1867 # Report the --help message.
1869 if test "$ac_init_help" = "long"; then
1870 # Omit some internal or obsolete options to make the list less imposing.
1871 # This message is too long to be a string in the A/UX 3.1 sh.
1872 cat <<_ACEOF
1873 \`configure' configures emacs 24.0.50 to adapt to many kinds of systems.
1875 Usage: $0 [OPTION]... [VAR=VALUE]...
1877 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1878 VAR=VALUE. See below for descriptions of some of the useful variables.
1880 Defaults for the options are specified in brackets.
1882 Configuration:
1883 -h, --help display this help and exit
1884 --help=short display options specific to this package
1885 --help=recursive display the short help of all the included packages
1886 -V, --version display version information and exit
1887 -q, --quiet, --silent do not print \`checking...' messages
1888 --cache-file=FILE cache test results in FILE [disabled]
1889 -C, --config-cache alias for \`--cache-file=config.cache'
1890 -n, --no-create do not create output files
1891 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1893 Installation directories:
1894 --prefix=PREFIX install architecture-independent files in PREFIX
1895 [$ac_default_prefix]
1896 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1897 [PREFIX]
1899 By default, \`make install' will install all the files in
1900 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1901 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1902 for instance \`--prefix=\$HOME'.
1904 For better control, use the options below.
1906 Fine tuning of the installation directories:
1907 --bindir=DIR user executables [EPREFIX/bin]
1908 --sbindir=DIR system admin executables [EPREFIX/sbin]
1909 --libexecdir=DIR program executables [EPREFIX/libexec]
1910 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1911 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1912 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1913 --libdir=DIR object code libraries [EPREFIX/lib]
1914 --includedir=DIR C header files [PREFIX/include]
1915 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1916 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1917 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1918 --infodir=DIR info documentation [DATAROOTDIR/info]
1919 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1920 --mandir=DIR man documentation [DATAROOTDIR/man]
1921 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1922 --htmldir=DIR html documentation [DOCDIR]
1923 --dvidir=DIR dvi documentation [DOCDIR]
1924 --pdfdir=DIR pdf documentation [DOCDIR]
1925 --psdir=DIR ps documentation [DOCDIR]
1926 _ACEOF
1928 cat <<\_ACEOF
1930 Program names:
1931 --program-prefix=PREFIX prepend PREFIX to installed program names
1932 --program-suffix=SUFFIX append SUFFIX to installed program names
1933 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1935 X features:
1936 --x-includes=DIR X include files are in DIR
1937 --x-libraries=DIR X library files are in DIR
1939 System types:
1940 --build=BUILD configure for building on BUILD [guessed]
1941 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1942 _ACEOF
1945 if test -n "$ac_init_help"; then
1946 case $ac_init_help in
1947 short | recursive ) echo "Configuration of emacs 24.0.50:";;
1948 esac
1949 cat <<\_ACEOF
1951 Optional Features:
1952 --disable-option-checking ignore unrecognized --enable/--with options
1953 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1954 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1955 --disable-ns-self-contained
1956 disable self contained build under NeXTstep
1957 --enable-asserts compile code with asserts enabled
1958 --disable-maintainer-mode
1959 disable make rules and dependencies not useful (and
1960 sometimes confusing) to the casual installer
1961 --enable-locallisppath=PATH
1962 directories Emacs should search for lisp files
1963 specific to this site
1964 --enable-checking[=LIST]
1965 enable expensive run-time checks. With LIST, enable
1966 only specific categories of checks. Categories are:
1967 all,yes,no. Flags are: stringbytes, stringoverrun,
1968 stringfreelist, xmallocoverrun, conslist
1969 --enable-use-lisp-union-type
1970 use a union for the Lisp_Object data type. This is
1971 only useful for development for catching certain
1972 types of bugs.
1973 --enable-profiling build emacs with profiling support. This might not
1974 work on all platforms
1975 --enable-autodepend automatically generate dependencies to .h-files.
1976 Requires GNU Make and Gcc. Enabled if GNU Make and
1977 Gcc is found
1978 --disable-dependency-tracking speeds up one-time build
1979 --enable-dependency-tracking do not reject slow dependency extractors
1980 --disable-largefile omit support for large files
1982 Optional Packages:
1983 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1984 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1985 --without-pop don't support POP mail retrieval with movemail
1986 --with-kerberos support Kerberos-authenticated POP
1987 --with-kerberos5 support Kerberos version 5 authenticated POP
1988 --with-hesiod support Hesiod to get the POP server host
1989 --with-mmdf support MMDF mailboxes
1990 --with-mail-unlink unlink, rather than empty, mail spool after reading
1991 --with-mailhost=HOSTNAME
1992 string giving default POP mail host
1993 --without-sound don't compile with sound support
1994 --without-sync-input process async input synchronously
1995 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes or gtk, gtk3,
1996 lucid or athena, motif, no)
1997 --with-wide-int prefer wide Emacs integers (typically 62-bit)
1998 --without-xpm don't compile with XPM image support
1999 --without-jpeg don't compile with JPEG image support
2000 --without-tiff don't compile with TIFF image support
2001 --without-gif don't compile with GIF image support
2002 --without-png don't compile with PNG image support
2003 --without-rsvg don't compile with SVG image support
2004 --without-xml2 don't compile with XML parsing support
2005 --without-imagemagick don't compile with ImageMagick image support
2006 --without-xft don't use XFT for anti aliased fonts
2007 --without-libotf don't use libotf for OpenType font support
2008 --without-m17n-flt don't use m17n-flt for text shaping
2009 --without-toolkit-scroll-bars
2010 don't use Motif or Xaw3d scroll bars
2011 --without-xaw3d don't use Xaw3d
2012 --without-xim don't use X11 XIM
2013 --with-ns use NeXTstep (Cocoa or GNUstep) windowing system
2014 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
2015 console
2016 --without-dbus don't compile with D-Bus support
2017 --without-gconf don't compile with GConf support
2018 --without-gsettings don't compile with GSettings support
2019 --without-selinux don't compile with SELinux support
2020 --without-gnutls don't use -lgnutls for SSL/TLS support
2021 --without-makeinfo don't require makeinfo for building manuals
2022 --without-compress-info don't compress the installed Info pages
2023 --with-pkg-config-prog=PATH
2024 path to pkg-config for finding GTK and librsvg
2025 --with-crt-dir=DIR directory containing crtn.o etc. The default is
2026 /usr/lib, or /usr/lib64 on some platforms.
2027 --with-gameuser=USER user for shared game score files
2028 --with-gnustep-conf=PATH
2029 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
2030 or /etc/GNUstep/GNUstep.conf
2031 --with-x use the X Window System
2033 Some influential environment variables:
2034 CC C compiler command
2035 CFLAGS C compiler flags
2036 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2037 nonstandard directory <lib dir>
2038 LIBS libraries to pass to the linker, e.g. -l<library>
2039 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2040 you have headers in a nonstandard directory <include dir>
2041 CPP C preprocessor
2042 XMKMF Path to xmkmf, Makefile generator for X Window System
2044 Use these variables to override the choices made by `configure' or to help
2045 it to find libraries and programs with nonstandard names/locations.
2047 Report bugs to the package provider.
2048 _ACEOF
2049 ac_status=$?
2052 if test "$ac_init_help" = "recursive"; then
2053 # If there are subdirs, report their specific --help.
2054 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2055 test -d "$ac_dir" ||
2056 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2057 continue
2058 ac_builddir=.
2060 case "$ac_dir" in
2061 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2063 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2064 # A ".." for each directory in $ac_dir_suffix.
2065 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2066 case $ac_top_builddir_sub in
2067 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2068 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2069 esac ;;
2070 esac
2071 ac_abs_top_builddir=$ac_pwd
2072 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2073 # for backward compatibility:
2074 ac_top_builddir=$ac_top_build_prefix
2076 case $srcdir in
2077 .) # We are building in place.
2078 ac_srcdir=.
2079 ac_top_srcdir=$ac_top_builddir_sub
2080 ac_abs_top_srcdir=$ac_pwd ;;
2081 [\\/]* | ?:[\\/]* ) # Absolute name.
2082 ac_srcdir=$srcdir$ac_dir_suffix;
2083 ac_top_srcdir=$srcdir
2084 ac_abs_top_srcdir=$srcdir ;;
2085 *) # Relative name.
2086 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2087 ac_top_srcdir=$ac_top_build_prefix$srcdir
2088 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2089 esac
2090 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2092 cd "$ac_dir" || { ac_status=$?; continue; }
2093 # Check for guested configure.
2094 if test -f "$ac_srcdir/configure.gnu"; then
2095 echo &&
2096 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2097 elif test -f "$ac_srcdir/configure"; then
2098 echo &&
2099 $SHELL "$ac_srcdir/configure" --help=recursive
2100 else
2101 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2102 fi || ac_status=$?
2103 cd "$ac_pwd" || { ac_status=$?; break; }
2104 done
2107 test -n "$ac_init_help" && exit $ac_status
2108 if $ac_init_version; then
2109 cat <<\_ACEOF
2110 emacs configure 24.0.50
2111 generated by GNU Autoconf 2.65
2113 Copyright (C) 2009 Free Software Foundation, Inc.
2114 This configure script is free software; the Free Software Foundation
2115 gives unlimited permission to copy, distribute and modify it.
2116 _ACEOF
2117 exit
2120 ## ------------------------ ##
2121 ## Autoconf initialization. ##
2122 ## ------------------------ ##
2124 # ac_fn_c_try_compile LINENO
2125 # --------------------------
2126 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2127 ac_fn_c_try_compile ()
2129 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2130 rm -f conftest.$ac_objext
2131 if { { ac_try="$ac_compile"
2132 case "(($ac_try" in
2133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2134 *) ac_try_echo=$ac_try;;
2135 esac
2136 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2137 $as_echo "$ac_try_echo"; } >&5
2138 (eval "$ac_compile") 2>conftest.err
2139 ac_status=$?
2140 if test -s conftest.err; then
2141 grep -v '^ *+' conftest.err >conftest.er1
2142 cat conftest.er1 >&5
2143 mv -f conftest.er1 conftest.err
2145 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2146 test $ac_status = 0; } && {
2147 test -z "$ac_c_werror_flag" ||
2148 test ! -s conftest.err
2149 } && test -s conftest.$ac_objext; then :
2150 ac_retval=0
2151 else
2152 $as_echo "$as_me: failed program was:" >&5
2153 sed 's/^/| /' conftest.$ac_ext >&5
2155 ac_retval=1
2157 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2158 as_fn_set_status $ac_retval
2160 } # ac_fn_c_try_compile
2162 # ac_fn_c_try_cpp LINENO
2163 # ----------------------
2164 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2165 ac_fn_c_try_cpp ()
2167 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2168 if { { ac_try="$ac_cpp conftest.$ac_ext"
2169 case "(($ac_try" in
2170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2171 *) ac_try_echo=$ac_try;;
2172 esac
2173 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2174 $as_echo "$ac_try_echo"; } >&5
2175 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2176 ac_status=$?
2177 if test -s conftest.err; then
2178 grep -v '^ *+' conftest.err >conftest.er1
2179 cat conftest.er1 >&5
2180 mv -f conftest.er1 conftest.err
2182 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2183 test $ac_status = 0; } >/dev/null && {
2184 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2185 test ! -s conftest.err
2186 }; then :
2187 ac_retval=0
2188 else
2189 $as_echo "$as_me: failed program was:" >&5
2190 sed 's/^/| /' conftest.$ac_ext >&5
2192 ac_retval=1
2194 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2195 as_fn_set_status $ac_retval
2197 } # ac_fn_c_try_cpp
2199 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2200 # -------------------------------------------------------
2201 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2202 # the include files in INCLUDES and setting the cache variable VAR
2203 # accordingly.
2204 ac_fn_c_check_header_mongrel ()
2206 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2207 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2209 $as_echo_n "checking for $2... " >&6; }
2210 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2211 $as_echo_n "(cached) " >&6
2213 eval ac_res=\$$3
2214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2215 $as_echo "$ac_res" >&6; }
2216 else
2217 # Is the header compilable?
2218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2219 $as_echo_n "checking $2 usability... " >&6; }
2220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2221 /* end confdefs.h. */
2223 #include <$2>
2224 _ACEOF
2225 if ac_fn_c_try_compile "$LINENO"; then :
2226 ac_header_compiler=yes
2227 else
2228 ac_header_compiler=no
2230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2232 $as_echo "$ac_header_compiler" >&6; }
2234 # Is the header present?
2235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2236 $as_echo_n "checking $2 presence... " >&6; }
2237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2238 /* end confdefs.h. */
2239 #include <$2>
2240 _ACEOF
2241 if ac_fn_c_try_cpp "$LINENO"; then :
2242 ac_header_preproc=yes
2243 else
2244 ac_header_preproc=no
2246 rm -f conftest.err conftest.$ac_ext
2247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2248 $as_echo "$ac_header_preproc" >&6; }
2250 # So? What about this header?
2251 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2252 yes:no: )
2253 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2254 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2255 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2256 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2258 no:yes:* )
2259 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2260 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2261 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2262 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2263 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2264 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2265 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2266 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2267 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2268 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2270 esac
2271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2272 $as_echo_n "checking for $2... " >&6; }
2273 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2274 $as_echo_n "(cached) " >&6
2275 else
2276 eval "$3=\$ac_header_compiler"
2278 eval ac_res=\$$3
2279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2280 $as_echo "$ac_res" >&6; }
2282 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2284 } # ac_fn_c_check_header_mongrel
2286 # ac_fn_c_try_run LINENO
2287 # ----------------------
2288 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2289 # that executables *can* be run.
2290 ac_fn_c_try_run ()
2292 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2293 if { { ac_try="$ac_link"
2294 case "(($ac_try" in
2295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2296 *) ac_try_echo=$ac_try;;
2297 esac
2298 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2299 $as_echo "$ac_try_echo"; } >&5
2300 (eval "$ac_link") 2>&5
2301 ac_status=$?
2302 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2303 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2304 { { case "(($ac_try" in
2305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2306 *) ac_try_echo=$ac_try;;
2307 esac
2308 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2309 $as_echo "$ac_try_echo"; } >&5
2310 (eval "$ac_try") 2>&5
2311 ac_status=$?
2312 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2313 test $ac_status = 0; }; }; then :
2314 ac_retval=0
2315 else
2316 $as_echo "$as_me: program exited with status $ac_status" >&5
2317 $as_echo "$as_me: failed program was:" >&5
2318 sed 's/^/| /' conftest.$ac_ext >&5
2320 ac_retval=$ac_status
2322 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2323 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2324 as_fn_set_status $ac_retval
2326 } # ac_fn_c_try_run
2328 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2329 # -------------------------------------------------------
2330 # Tests whether HEADER exists and can be compiled using the include files in
2331 # INCLUDES, setting the cache variable VAR accordingly.
2332 ac_fn_c_check_header_compile ()
2334 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2336 $as_echo_n "checking for $2... " >&6; }
2337 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2338 $as_echo_n "(cached) " >&6
2339 else
2340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2341 /* end confdefs.h. */
2343 #include <$2>
2344 _ACEOF
2345 if ac_fn_c_try_compile "$LINENO"; then :
2346 eval "$3=yes"
2347 else
2348 eval "$3=no"
2350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2352 eval ac_res=\$$3
2353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2354 $as_echo "$ac_res" >&6; }
2355 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2357 } # ac_fn_c_check_header_compile
2359 # ac_fn_c_try_link LINENO
2360 # -----------------------
2361 # Try to link conftest.$ac_ext, and return whether this succeeded.
2362 ac_fn_c_try_link ()
2364 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2365 rm -f conftest.$ac_objext conftest$ac_exeext
2366 if { { ac_try="$ac_link"
2367 case "(($ac_try" in
2368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2369 *) ac_try_echo=$ac_try;;
2370 esac
2371 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2372 $as_echo "$ac_try_echo"; } >&5
2373 (eval "$ac_link") 2>conftest.err
2374 ac_status=$?
2375 if test -s conftest.err; then
2376 grep -v '^ *+' conftest.err >conftest.er1
2377 cat conftest.er1 >&5
2378 mv -f conftest.er1 conftest.err
2380 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2381 test $ac_status = 0; } && {
2382 test -z "$ac_c_werror_flag" ||
2383 test ! -s conftest.err
2384 } && test -s conftest$ac_exeext && {
2385 test "$cross_compiling" = yes ||
2386 $as_test_x conftest$ac_exeext
2387 }; then :
2388 ac_retval=0
2389 else
2390 $as_echo "$as_me: failed program was:" >&5
2391 sed 's/^/| /' conftest.$ac_ext >&5
2393 ac_retval=1
2395 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2396 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2397 # interfere with the next link command; also delete a directory that is
2398 # left behind by Apple's compiler. We do this before executing the actions.
2399 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2400 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2401 as_fn_set_status $ac_retval
2403 } # ac_fn_c_try_link
2405 # ac_fn_c_check_decl LINENO SYMBOL VAR
2406 # ------------------------------------
2407 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2408 ac_fn_c_check_decl ()
2410 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2412 $as_echo_n "checking whether $2 is declared... " >&6; }
2413 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2414 $as_echo_n "(cached) " >&6
2415 else
2416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2417 /* end confdefs.h. */
2420 main ()
2422 #ifndef $2
2423 (void) $2;
2424 #endif
2427 return 0;
2429 _ACEOF
2430 if ac_fn_c_try_compile "$LINENO"; then :
2431 eval "$3=yes"
2432 else
2433 eval "$3=no"
2435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2437 eval ac_res=\$$3
2438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2439 $as_echo "$ac_res" >&6; }
2440 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2442 } # ac_fn_c_check_decl
2444 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2445 # ----------------------------------------------
2446 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2447 ac_fn_c_check_header_preproc ()
2449 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2451 $as_echo_n "checking for $2... " >&6; }
2452 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2453 $as_echo_n "(cached) " >&6
2454 else
2455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2456 /* end confdefs.h. */
2457 #include <$2>
2458 _ACEOF
2459 if ac_fn_c_try_cpp "$LINENO"; then :
2460 eval "$3=yes"
2461 else
2462 eval "$3=no"
2464 rm -f conftest.err conftest.$ac_ext
2466 eval ac_res=\$$3
2467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2468 $as_echo "$ac_res" >&6; }
2469 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2471 } # ac_fn_c_check_header_preproc
2473 # ac_fn_c_check_func LINENO FUNC VAR
2474 # ----------------------------------
2475 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2476 ac_fn_c_check_func ()
2478 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2480 $as_echo_n "checking for $2... " >&6; }
2481 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2482 $as_echo_n "(cached) " >&6
2483 else
2484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2485 /* end confdefs.h. */
2486 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2487 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2488 #define $2 innocuous_$2
2490 /* System header to define __stub macros and hopefully few prototypes,
2491 which can conflict with char $2 (); below.
2492 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2493 <limits.h> exists even on freestanding compilers. */
2495 #ifdef __STDC__
2496 # include <limits.h>
2497 #else
2498 # include <assert.h>
2499 #endif
2501 #undef $2
2503 /* Override any GCC internal prototype to avoid an error.
2504 Use char because int might match the return type of a GCC
2505 builtin and then its argument prototype would still apply. */
2506 #ifdef __cplusplus
2507 extern "C"
2508 #endif
2509 char $2 ();
2510 /* The GNU C library defines this for functions which it implements
2511 to always fail with ENOSYS. Some functions are actually named
2512 something starting with __ and the normal name is an alias. */
2513 #if defined __stub_$2 || defined __stub___$2
2514 choke me
2515 #endif
2518 main ()
2520 return $2 ();
2522 return 0;
2524 _ACEOF
2525 if ac_fn_c_try_link "$LINENO"; then :
2526 eval "$3=yes"
2527 else
2528 eval "$3=no"
2530 rm -f core conftest.err conftest.$ac_objext \
2531 conftest$ac_exeext conftest.$ac_ext
2533 eval ac_res=\$$3
2534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2535 $as_echo "$ac_res" >&6; }
2536 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2538 } # ac_fn_c_check_func
2540 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2541 # ----------------------------------------------------
2542 # Tries to find if the field MEMBER exists in type AGGR, after including
2543 # INCLUDES, setting cache variable VAR accordingly.
2544 ac_fn_c_check_member ()
2546 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2548 $as_echo_n "checking for $2.$3... " >&6; }
2549 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2550 $as_echo_n "(cached) " >&6
2551 else
2552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2553 /* end confdefs.h. */
2556 main ()
2558 static $2 ac_aggr;
2559 if (ac_aggr.$3)
2560 return 0;
2562 return 0;
2564 _ACEOF
2565 if ac_fn_c_try_compile "$LINENO"; then :
2566 eval "$4=yes"
2567 else
2568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2569 /* end confdefs.h. */
2572 main ()
2574 static $2 ac_aggr;
2575 if (sizeof ac_aggr.$3)
2576 return 0;
2578 return 0;
2580 _ACEOF
2581 if ac_fn_c_try_compile "$LINENO"; then :
2582 eval "$4=yes"
2583 else
2584 eval "$4=no"
2586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2590 eval ac_res=\$$4
2591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2592 $as_echo "$ac_res" >&6; }
2593 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2595 } # ac_fn_c_check_member
2597 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2598 # -------------------------------------------
2599 # Tests whether TYPE exists after having included INCLUDES, setting cache
2600 # variable VAR accordingly.
2601 ac_fn_c_check_type ()
2603 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2605 $as_echo_n "checking for $2... " >&6; }
2606 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2607 $as_echo_n "(cached) " >&6
2608 else
2609 eval "$3=no"
2610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2611 /* end confdefs.h. */
2614 main ()
2616 if (sizeof ($2))
2617 return 0;
2619 return 0;
2621 _ACEOF
2622 if ac_fn_c_try_compile "$LINENO"; then :
2623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2624 /* end confdefs.h. */
2627 main ()
2629 if (sizeof (($2)))
2630 return 0;
2632 return 0;
2634 _ACEOF
2635 if ac_fn_c_try_compile "$LINENO"; then :
2637 else
2638 eval "$3=yes"
2640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2644 eval ac_res=\$$3
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2646 $as_echo "$ac_res" >&6; }
2647 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2649 } # ac_fn_c_check_type
2651 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2652 # --------------------------------------------
2653 # Tries to find the compile-time value of EXPR in a program that includes
2654 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2655 # computed
2656 ac_fn_c_compute_int ()
2658 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2659 if test "$cross_compiling" = yes; then
2660 # Depending upon the size, compute the lo and hi bounds.
2661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2662 /* end confdefs.h. */
2665 main ()
2667 static int test_array [1 - 2 * !(($2) >= 0)];
2668 test_array [0] = 0
2671 return 0;
2673 _ACEOF
2674 if ac_fn_c_try_compile "$LINENO"; then :
2675 ac_lo=0 ac_mid=0
2676 while :; do
2677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2678 /* end confdefs.h. */
2681 main ()
2683 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2684 test_array [0] = 0
2687 return 0;
2689 _ACEOF
2690 if ac_fn_c_try_compile "$LINENO"; then :
2691 ac_hi=$ac_mid; break
2692 else
2693 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2694 if test $ac_lo -le $ac_mid; then
2695 ac_lo= ac_hi=
2696 break
2698 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2701 done
2702 else
2703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2704 /* end confdefs.h. */
2707 main ()
2709 static int test_array [1 - 2 * !(($2) < 0)];
2710 test_array [0] = 0
2713 return 0;
2715 _ACEOF
2716 if ac_fn_c_try_compile "$LINENO"; then :
2717 ac_hi=-1 ac_mid=-1
2718 while :; do
2719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2720 /* end confdefs.h. */
2723 main ()
2725 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2726 test_array [0] = 0
2729 return 0;
2731 _ACEOF
2732 if ac_fn_c_try_compile "$LINENO"; then :
2733 ac_lo=$ac_mid; break
2734 else
2735 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2736 if test $ac_mid -le $ac_hi; then
2737 ac_lo= ac_hi=
2738 break
2740 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2743 done
2744 else
2745 ac_lo= ac_hi=
2747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2750 # Binary search between lo and hi bounds.
2751 while test "x$ac_lo" != "x$ac_hi"; do
2752 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2754 /* end confdefs.h. */
2757 main ()
2759 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2760 test_array [0] = 0
2763 return 0;
2765 _ACEOF
2766 if ac_fn_c_try_compile "$LINENO"; then :
2767 ac_hi=$ac_mid
2768 else
2769 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2772 done
2773 case $ac_lo in #((
2774 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2775 '') ac_retval=1 ;;
2776 esac
2777 else
2778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2779 /* end confdefs.h. */
2781 static long int longval () { return $2; }
2782 static unsigned long int ulongval () { return $2; }
2783 #include <stdio.h>
2784 #include <stdlib.h>
2786 main ()
2789 FILE *f = fopen ("conftest.val", "w");
2790 if (! f)
2791 return 1;
2792 if (($2) < 0)
2794 long int i = longval ();
2795 if (i != ($2))
2796 return 1;
2797 fprintf (f, "%ld", i);
2799 else
2801 unsigned long int i = ulongval ();
2802 if (i != ($2))
2803 return 1;
2804 fprintf (f, "%lu", i);
2806 /* Do not output a trailing newline, as this causes \r\n confusion
2807 on some platforms. */
2808 return ferror (f) || fclose (f) != 0;
2811 return 0;
2813 _ACEOF
2814 if ac_fn_c_try_run "$LINENO"; then :
2815 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2816 else
2817 ac_retval=1
2819 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2820 conftest.$ac_objext conftest.beam conftest.$ac_ext
2821 rm -f conftest.val
2824 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2825 as_fn_set_status $ac_retval
2827 } # ac_fn_c_compute_int
2828 cat >config.log <<_ACEOF
2829 This file contains any messages produced by compilers while
2830 running configure, to aid debugging if configure makes a mistake.
2832 It was created by emacs $as_me 24.0.50, which was
2833 generated by GNU Autoconf 2.65. Invocation command line was
2835 $ $0 $@
2837 _ACEOF
2838 exec 5>>config.log
2840 cat <<_ASUNAME
2841 ## --------- ##
2842 ## Platform. ##
2843 ## --------- ##
2845 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2846 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2847 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2848 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2849 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2851 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2852 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2854 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2855 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2856 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2857 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2858 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2859 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2860 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2862 _ASUNAME
2864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2865 for as_dir in $PATH
2867 IFS=$as_save_IFS
2868 test -z "$as_dir" && as_dir=.
2869 $as_echo "PATH: $as_dir"
2870 done
2871 IFS=$as_save_IFS
2873 } >&5
2875 cat >&5 <<_ACEOF
2878 ## ----------- ##
2879 ## Core tests. ##
2880 ## ----------- ##
2882 _ACEOF
2885 # Keep a trace of the command line.
2886 # Strip out --no-create and --no-recursion so they do not pile up.
2887 # Strip out --silent because we don't want to record it for future runs.
2888 # Also quote any args containing shell meta-characters.
2889 # Make two passes to allow for proper duplicate-argument suppression.
2890 ac_configure_args=
2891 ac_configure_args0=
2892 ac_configure_args1=
2893 ac_must_keep_next=false
2894 for ac_pass in 1 2
2896 for ac_arg
2898 case $ac_arg in
2899 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2900 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2901 | -silent | --silent | --silen | --sile | --sil)
2902 continue ;;
2903 *\'*)
2904 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2905 esac
2906 case $ac_pass in
2907 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2909 as_fn_append ac_configure_args1 " '$ac_arg'"
2910 if test $ac_must_keep_next = true; then
2911 ac_must_keep_next=false # Got value, back to normal.
2912 else
2913 case $ac_arg in
2914 *=* | --config-cache | -C | -disable-* | --disable-* \
2915 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2916 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2917 | -with-* | --with-* | -without-* | --without-* | --x)
2918 case "$ac_configure_args0 " in
2919 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2920 esac
2922 -* ) ac_must_keep_next=true ;;
2923 esac
2925 as_fn_append ac_configure_args " '$ac_arg'"
2927 esac
2928 done
2929 done
2930 { ac_configure_args0=; unset ac_configure_args0;}
2931 { ac_configure_args1=; unset ac_configure_args1;}
2933 # When interrupted or exit'd, cleanup temporary files, and complete
2934 # config.log. We remove comments because anyway the quotes in there
2935 # would cause problems or look ugly.
2936 # WARNING: Use '\'' to represent an apostrophe within the trap.
2937 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2938 trap 'exit_status=$?
2939 # Save into config.log some information that might help in debugging.
2941 echo
2943 cat <<\_ASBOX
2944 ## ---------------- ##
2945 ## Cache variables. ##
2946 ## ---------------- ##
2947 _ASBOX
2948 echo
2949 # The following way of writing the cache mishandles newlines in values,
2951 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2952 eval ac_val=\$$ac_var
2953 case $ac_val in #(
2954 *${as_nl}*)
2955 case $ac_var in #(
2956 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2957 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2958 esac
2959 case $ac_var in #(
2960 _ | IFS | as_nl) ;; #(
2961 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2962 *) { eval $ac_var=; unset $ac_var;} ;;
2963 esac ;;
2964 esac
2965 done
2966 (set) 2>&1 |
2967 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2968 *${as_nl}ac_space=\ *)
2969 sed -n \
2970 "s/'\''/'\''\\\\'\'''\''/g;
2971 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2972 ;; #(
2974 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2976 esac |
2977 sort
2979 echo
2981 cat <<\_ASBOX
2982 ## ----------------- ##
2983 ## Output variables. ##
2984 ## ----------------- ##
2985 _ASBOX
2986 echo
2987 for ac_var in $ac_subst_vars
2989 eval ac_val=\$$ac_var
2990 case $ac_val in
2991 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2992 esac
2993 $as_echo "$ac_var='\''$ac_val'\''"
2994 done | sort
2995 echo
2997 if test -n "$ac_subst_files"; then
2998 cat <<\_ASBOX
2999 ## ------------------- ##
3000 ## File substitutions. ##
3001 ## ------------------- ##
3002 _ASBOX
3003 echo
3004 for ac_var in $ac_subst_files
3006 eval ac_val=\$$ac_var
3007 case $ac_val in
3008 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3009 esac
3010 $as_echo "$ac_var='\''$ac_val'\''"
3011 done | sort
3012 echo
3015 if test -s confdefs.h; then
3016 cat <<\_ASBOX
3017 ## ----------- ##
3018 ## confdefs.h. ##
3019 ## ----------- ##
3020 _ASBOX
3021 echo
3022 cat confdefs.h
3023 echo
3025 test "$ac_signal" != 0 &&
3026 $as_echo "$as_me: caught signal $ac_signal"
3027 $as_echo "$as_me: exit $exit_status"
3028 } >&5
3029 rm -f core *.core core.conftest.* &&
3030 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3031 exit $exit_status
3033 for ac_signal in 1 2 13 15; do
3034 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3035 done
3036 ac_signal=0
3038 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3039 rm -f -r conftest* confdefs.h
3041 $as_echo "/* confdefs.h */" > confdefs.h
3043 # Predefined preprocessor variables.
3045 cat >>confdefs.h <<_ACEOF
3046 #define PACKAGE_NAME "$PACKAGE_NAME"
3047 _ACEOF
3049 cat >>confdefs.h <<_ACEOF
3050 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3051 _ACEOF
3053 cat >>confdefs.h <<_ACEOF
3054 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3055 _ACEOF
3057 cat >>confdefs.h <<_ACEOF
3058 #define PACKAGE_STRING "$PACKAGE_STRING"
3059 _ACEOF
3061 cat >>confdefs.h <<_ACEOF
3062 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3063 _ACEOF
3065 cat >>confdefs.h <<_ACEOF
3066 #define PACKAGE_URL "$PACKAGE_URL"
3067 _ACEOF
3070 # Let the site file select an alternate cache file if it wants to.
3071 # Prefer an explicitly selected file to automatically selected ones.
3072 ac_site_file1=NONE
3073 ac_site_file2=NONE
3074 if test -n "$CONFIG_SITE"; then
3075 ac_site_file1=$CONFIG_SITE
3076 elif test "x$prefix" != xNONE; then
3077 ac_site_file1=$prefix/share/config.site
3078 ac_site_file2=$prefix/etc/config.site
3079 else
3080 ac_site_file1=$ac_default_prefix/share/config.site
3081 ac_site_file2=$ac_default_prefix/etc/config.site
3083 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3085 test "x$ac_site_file" = xNONE && continue
3086 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3087 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3088 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3089 sed 's/^/| /' "$ac_site_file" >&5
3090 . "$ac_site_file"
3092 done
3094 if test -r "$cache_file"; then
3095 # Some versions of bash will fail to source /dev/null (special files
3096 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3097 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3098 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3099 $as_echo "$as_me: loading cache $cache_file" >&6;}
3100 case $cache_file in
3101 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3102 *) . "./$cache_file";;
3103 esac
3105 else
3106 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3107 $as_echo "$as_me: creating cache $cache_file" >&6;}
3108 >$cache_file
3111 as_fn_append ac_header_list " stdlib.h"
3112 as_fn_append ac_header_list " unistd.h"
3113 as_fn_append ac_header_list " sys/param.h"
3114 as_fn_append ac_func_list " readlinkat"
3115 gl_getopt_required=GNU
3116 as_fn_append ac_header_list " getopt.h"
3117 as_fn_append ac_header_list " wchar.h"
3118 as_fn_append ac_header_list " stdint.h"
3119 as_fn_append ac_header_list " inttypes.h"
3120 as_fn_append ac_func_list " lstat"
3121 as_fn_append ac_func_list " alarm"
3122 as_fn_append ac_func_list " pthread_sigmask"
3123 as_fn_append ac_func_list " readlink"
3124 as_fn_append ac_header_list " sys/socket.h"
3125 as_fn_append ac_func_list " tzset"
3126 as_fn_append ac_func_list " strtoimax"
3127 as_fn_append ac_func_list " strtoumax"
3128 as_fn_append ac_func_list " symlink"
3129 as_fn_append ac_header_list " sys/stat.h"
3130 as_fn_append ac_header_list " sys/time.h"
3131 as_fn_append ac_func_list " localtime_r"
3132 # Check that the precious variables saved in the cache have kept the same
3133 # value.
3134 ac_cache_corrupted=false
3135 for ac_var in $ac_precious_vars; do
3136 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3137 eval ac_new_set=\$ac_env_${ac_var}_set
3138 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3139 eval ac_new_val=\$ac_env_${ac_var}_value
3140 case $ac_old_set,$ac_new_set in
3141 set,)
3142 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3143 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3144 ac_cache_corrupted=: ;;
3145 ,set)
3146 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3147 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3148 ac_cache_corrupted=: ;;
3149 ,);;
3151 if test "x$ac_old_val" != "x$ac_new_val"; then
3152 # differences in whitespace do not lead to failure.
3153 ac_old_val_w=`echo x $ac_old_val`
3154 ac_new_val_w=`echo x $ac_new_val`
3155 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3157 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3158 ac_cache_corrupted=:
3159 else
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3161 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3162 eval $ac_var=\$ac_old_val
3164 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3165 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3167 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3168 fi;;
3169 esac
3170 # Pass precious variables to config.status.
3171 if test "$ac_new_set" = set; then
3172 case $ac_new_val in
3173 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3174 *) ac_arg=$ac_var=$ac_new_val ;;
3175 esac
3176 case " $ac_configure_args " in
3177 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3178 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3179 esac
3181 done
3182 if $ac_cache_corrupted; then
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3184 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3185 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3186 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3187 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3189 ## -------------------- ##
3190 ## Main body of script. ##
3191 ## -------------------- ##
3193 ac_ext=c
3194 ac_cpp='$CPP $CPPFLAGS'
3195 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3196 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3197 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3200 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
3203 ac_aux_dir=
3204 for ac_dir in build-aux "$srcdir"/build-aux; do
3205 for ac_t in install-sh install.sh shtool; do
3206 if test -f "$ac_dir/$ac_t"; then
3207 ac_aux_dir=$ac_dir
3208 ac_install_sh="$ac_aux_dir/$ac_t -c"
3209 break 2
3211 done
3212 done
3213 if test -z "$ac_aux_dir"; then
3214 as_fn_error "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
3217 # These three variables are undocumented and unsupported,
3218 # and are intended to be withdrawn in a future Autoconf release.
3219 # They can cause serious problems if a builder's source tree is in a directory
3220 # whose full name contains unusual characters.
3221 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3222 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3223 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3226 am__api_version='1.11'
3228 # Find a good install program. We prefer a C program (faster),
3229 # so one script is as good as another. But avoid the broken or
3230 # incompatible versions:
3231 # SysV /etc/install, /usr/sbin/install
3232 # SunOS /usr/etc/install
3233 # IRIX /sbin/install
3234 # AIX /bin/install
3235 # AmigaOS /C/install, which installs bootblocks on floppy discs
3236 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3237 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3238 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3239 # OS/2's system install, which has a completely different semantic
3240 # ./install, which can be erroneously created by make from ./install.sh.
3241 # Reject install programs that cannot install multiple files.
3242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3243 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3244 if test -z "$INSTALL"; then
3245 if test "${ac_cv_path_install+set}" = set; then :
3246 $as_echo_n "(cached) " >&6
3247 else
3248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3249 for as_dir in $PATH
3251 IFS=$as_save_IFS
3252 test -z "$as_dir" && as_dir=.
3253 # Account for people who put trailing slashes in PATH elements.
3254 case $as_dir/ in #((
3255 ./ | .// | /[cC]/* | \
3256 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3257 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3258 /usr/ucb/* ) ;;
3260 # OSF1 and SCO ODT 3.0 have their own names for install.
3261 # Don't use installbsd from OSF since it installs stuff as root
3262 # by default.
3263 for ac_prog in ginstall scoinst install; do
3264 for ac_exec_ext in '' $ac_executable_extensions; do
3265 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3266 if test $ac_prog = install &&
3267 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3268 # AIX install. It has an incompatible calling convention.
3270 elif test $ac_prog = install &&
3271 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3272 # program-specific install script used by HP pwplus--don't use.
3274 else
3275 rm -rf conftest.one conftest.two conftest.dir
3276 echo one > conftest.one
3277 echo two > conftest.two
3278 mkdir conftest.dir
3279 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3280 test -s conftest.one && test -s conftest.two &&
3281 test -s conftest.dir/conftest.one &&
3282 test -s conftest.dir/conftest.two
3283 then
3284 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3285 break 3
3289 done
3290 done
3292 esac
3294 done
3295 IFS=$as_save_IFS
3297 rm -rf conftest.one conftest.two conftest.dir
3300 if test "${ac_cv_path_install+set}" = set; then
3301 INSTALL=$ac_cv_path_install
3302 else
3303 # As a last resort, use the slow shell script. Don't cache a
3304 # value for INSTALL within a source directory, because that will
3305 # break other packages using the cache if that directory is
3306 # removed, or if the value is a relative name.
3307 INSTALL=$ac_install_sh
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3311 $as_echo "$INSTALL" >&6; }
3313 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3314 # It thinks the first close brace ends the variable substitution.
3315 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3317 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3319 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3322 $as_echo_n "checking whether build environment is sane... " >&6; }
3323 # Just in case
3324 sleep 1
3325 echo timestamp > conftest.file
3326 # Reject unsafe characters in $srcdir or the absolute working directory
3327 # name. Accept space and tab only in the latter.
3328 am_lf='
3330 case `pwd` in
3331 *[\\\"\#\$\&\'\`$am_lf]*)
3332 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3333 esac
3334 case $srcdir in
3335 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3336 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3337 esac
3339 # Do `set' in a subshell so we don't clobber the current shell's
3340 # arguments. Must try -L first in case configure is actually a
3341 # symlink; some systems play weird games with the mod time of symlinks
3342 # (eg FreeBSD returns the mod time of the symlink's containing
3343 # directory).
3344 if (
3345 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3346 if test "$*" = "X"; then
3347 # -L didn't work.
3348 set X `ls -t "$srcdir/configure" conftest.file`
3350 rm -f conftest.file
3351 if test "$*" != "X $srcdir/configure conftest.file" \
3352 && test "$*" != "X conftest.file $srcdir/configure"; then
3354 # If neither matched, then we have a broken ls. This can happen
3355 # if, for instance, CONFIG_SHELL is bash and it inherits a
3356 # broken ls alias from the environment. This has actually
3357 # happened. Such a system could not be considered "sane".
3358 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3359 alias in your environment" "$LINENO" 5
3362 test "$2" = conftest.file
3364 then
3365 # Ok.
3367 else
3368 as_fn_error "newly created file is older than distributed files!
3369 Check your system clock" "$LINENO" 5
3371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3372 $as_echo "yes" >&6; }
3373 test "$program_prefix" != NONE &&
3374 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3375 # Use a double $ so make ignores it.
3376 test "$program_suffix" != NONE &&
3377 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3378 # Double any \ or $.
3379 # By default was `s,x,x', remove it if useless.
3380 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3381 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3383 # expand $ac_aux_dir to an absolute path
3384 am_aux_dir=`cd $ac_aux_dir && pwd`
3386 if test x"${MISSING+set}" != xset; then
3387 case $am_aux_dir in
3388 *\ * | *\ *)
3389 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3391 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3392 esac
3394 # Use eval to expand $SHELL
3395 if eval "$MISSING --run true"; then
3396 am_missing_run="$MISSING --run "
3397 else
3398 am_missing_run=
3399 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3400 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3403 if test x"${install_sh}" != xset; then
3404 case $am_aux_dir in
3405 *\ * | *\ *)
3406 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3408 install_sh="\${SHELL} $am_aux_dir/install-sh"
3409 esac
3412 # Installed binaries are usually stripped using `strip' when the user
3413 # run `make install-strip'. However `strip' might not be the right
3414 # tool to use in cross-compilation environments, therefore Automake
3415 # will honor the `STRIP' environment variable to overrule this program.
3416 if test "$cross_compiling" != no; then
3417 if test -n "$ac_tool_prefix"; then
3418 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3419 set dummy ${ac_tool_prefix}strip; ac_word=$2
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3421 $as_echo_n "checking for $ac_word... " >&6; }
3422 if test "${ac_cv_prog_STRIP+set}" = set; then :
3423 $as_echo_n "(cached) " >&6
3424 else
3425 if test -n "$STRIP"; then
3426 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3427 else
3428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3429 for as_dir in $PATH
3431 IFS=$as_save_IFS
3432 test -z "$as_dir" && as_dir=.
3433 for ac_exec_ext in '' $ac_executable_extensions; do
3434 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3435 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3437 break 2
3439 done
3440 done
3441 IFS=$as_save_IFS
3445 STRIP=$ac_cv_prog_STRIP
3446 if test -n "$STRIP"; then
3447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3448 $as_echo "$STRIP" >&6; }
3449 else
3450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3451 $as_echo "no" >&6; }
3456 if test -z "$ac_cv_prog_STRIP"; then
3457 ac_ct_STRIP=$STRIP
3458 # Extract the first word of "strip", so it can be a program name with args.
3459 set dummy strip; ac_word=$2
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3461 $as_echo_n "checking for $ac_word... " >&6; }
3462 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3463 $as_echo_n "(cached) " >&6
3464 else
3465 if test -n "$ac_ct_STRIP"; then
3466 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3467 else
3468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3469 for as_dir in $PATH
3471 IFS=$as_save_IFS
3472 test -z "$as_dir" && as_dir=.
3473 for ac_exec_ext in '' $ac_executable_extensions; do
3474 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3475 ac_cv_prog_ac_ct_STRIP="strip"
3476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3477 break 2
3479 done
3480 done
3481 IFS=$as_save_IFS
3485 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3486 if test -n "$ac_ct_STRIP"; then
3487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3488 $as_echo "$ac_ct_STRIP" >&6; }
3489 else
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3491 $as_echo "no" >&6; }
3494 if test "x$ac_ct_STRIP" = x; then
3495 STRIP=":"
3496 else
3497 case $cross_compiling:$ac_tool_warned in
3498 yes:)
3499 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3500 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3501 ac_tool_warned=yes ;;
3502 esac
3503 STRIP=$ac_ct_STRIP
3505 else
3506 STRIP="$ac_cv_prog_STRIP"
3510 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3513 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3514 if test -z "$MKDIR_P"; then
3515 if test "${ac_cv_path_mkdir+set}" = set; then :
3516 $as_echo_n "(cached) " >&6
3517 else
3518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3519 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3521 IFS=$as_save_IFS
3522 test -z "$as_dir" && as_dir=.
3523 for ac_prog in mkdir gmkdir; do
3524 for ac_exec_ext in '' $ac_executable_extensions; do
3525 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3526 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3527 'mkdir (GNU coreutils) '* | \
3528 'mkdir (coreutils) '* | \
3529 'mkdir (fileutils) '4.1*)
3530 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3531 break 3;;
3532 esac
3533 done
3534 done
3535 done
3536 IFS=$as_save_IFS
3540 test -d ./--version && rmdir ./--version
3541 if test "${ac_cv_path_mkdir+set}" = set; then
3542 MKDIR_P="$ac_cv_path_mkdir -p"
3543 else
3544 # As a last resort, use the slow shell script. Don't cache a
3545 # value for MKDIR_P within a source directory, because that will
3546 # break other packages using the cache if that directory is
3547 # removed, or if the value is a relative name.
3548 MKDIR_P="$ac_install_sh -d"
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3552 $as_echo "$MKDIR_P" >&6; }
3555 mkdir_p="$MKDIR_P"
3556 case $mkdir_p in
3557 [\\/$]* | ?:[\\/]*) ;;
3558 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3559 esac
3561 for ac_prog in gawk mawk nawk awk
3563 # Extract the first word of "$ac_prog", so it can be a program name with args.
3564 set dummy $ac_prog; ac_word=$2
3565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3566 $as_echo_n "checking for $ac_word... " >&6; }
3567 if test "${ac_cv_prog_AWK+set}" = set; then :
3568 $as_echo_n "(cached) " >&6
3569 else
3570 if test -n "$AWK"; then
3571 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3572 else
3573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3574 for as_dir in $PATH
3576 IFS=$as_save_IFS
3577 test -z "$as_dir" && as_dir=.
3578 for ac_exec_ext in '' $ac_executable_extensions; do
3579 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3580 ac_cv_prog_AWK="$ac_prog"
3581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3582 break 2
3584 done
3585 done
3586 IFS=$as_save_IFS
3590 AWK=$ac_cv_prog_AWK
3591 if test -n "$AWK"; then
3592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3593 $as_echo "$AWK" >&6; }
3594 else
3595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3596 $as_echo "no" >&6; }
3600 test -n "$AWK" && break
3601 done
3603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3604 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3605 set x ${MAKE-make}
3606 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3607 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3608 $as_echo_n "(cached) " >&6
3609 else
3610 cat >conftest.make <<\_ACEOF
3611 SHELL = /bin/sh
3612 all:
3613 @echo '@@@%%%=$(MAKE)=@@@%%%'
3614 _ACEOF
3615 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3616 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3617 *@@@%%%=?*=@@@%%%*)
3618 eval ac_cv_prog_make_${ac_make}_set=yes;;
3620 eval ac_cv_prog_make_${ac_make}_set=no;;
3621 esac
3622 rm -f conftest.make
3624 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3626 $as_echo "yes" >&6; }
3627 SET_MAKE=
3628 else
3629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3630 $as_echo "no" >&6; }
3631 SET_MAKE="MAKE=${MAKE-make}"
3634 rm -rf .tst 2>/dev/null
3635 mkdir .tst 2>/dev/null
3636 if test -d .tst; then
3637 am__leading_dot=.
3638 else
3639 am__leading_dot=_
3641 rmdir .tst 2>/dev/null
3643 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3644 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3645 # is not polluted with repeated "-I."
3646 am__isrc=' -I$(srcdir)'
3647 # test to see if srcdir already configured
3648 if test -f $srcdir/config.status; then
3649 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3653 # test whether we have cygpath
3654 if test -z "$CYGPATH_W"; then
3655 if (cygpath --version) >/dev/null 2>/dev/null; then
3656 CYGPATH_W='cygpath -w'
3657 else
3658 CYGPATH_W=echo
3663 # Define the identity of the package.
3664 PACKAGE='emacs'
3665 VERSION='24.0.50'
3668 cat >>confdefs.h <<_ACEOF
3669 #define PACKAGE "$PACKAGE"
3670 _ACEOF
3673 cat >>confdefs.h <<_ACEOF
3674 #define VERSION "$VERSION"
3675 _ACEOF
3677 # Some tools Automake needs.
3679 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3682 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3685 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3688 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3691 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3693 # We need awk for the "check" target. The system "awk" is bad on
3694 # some platforms.
3695 # Always define AMTAR for backward compatibility.
3697 AMTAR=${AMTAR-"${am_missing_run}tar"}
3699 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3708 lispdir='${datadir}/emacs/${version}/lisp'
3709 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
3710 '${datadir}/emacs/site-lisp'
3711 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
3712 etcdir='${datadir}/emacs/${version}/etc'
3713 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
3714 docdir='${datadir}/emacs/${version}/etc'
3715 gamedir='${localstatedir}/games/emacs'
3720 # Check whether --with-pop was given.
3721 if test "${with_pop+set}" = set; then :
3722 withval=$with_pop;
3723 else
3724 with_pop=yes
3727 if test "$with_pop" = yes; then
3728 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
3733 # Check whether --with-kerberos was given.
3734 if test "${with_kerberos+set}" = set; then :
3735 withval=$with_kerberos;
3736 else
3737 with_kerberos=no
3740 if test "$with_kerberos" != no; then
3741 $as_echo "#define KERBEROS 1" >>confdefs.h
3746 # Check whether --with-kerberos5 was given.
3747 if test "${with_kerberos5+set}" = set; then :
3748 withval=$with_kerberos5;
3749 else
3750 with_kerberos5=no
3753 if test "${with_kerberos5}" != no; then
3754 if test "${with_kerberos}" = no; then
3755 with_kerberos=yes
3756 $as_echo "#define KERBEROS 1" >>confdefs.h
3760 $as_echo "#define KERBEROS5 1" >>confdefs.h
3765 # Check whether --with-hesiod was given.
3766 if test "${with_hesiod+set}" = set; then :
3767 withval=$with_hesiod;
3768 else
3769 with_hesiod=no
3772 if test "$with_hesiod" != no; then
3774 $as_echo "#define HESIOD 1" >>confdefs.h
3779 # Check whether --with-mmdf was given.
3780 if test "${with_mmdf+set}" = set; then :
3781 withval=$with_mmdf;
3782 else
3783 with_mmdf=no
3786 if test "$with_mmdf" != no; then
3788 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
3793 # Check whether --with-mail-unlink was given.
3794 if test "${with_mail_unlink+set}" = set; then :
3795 withval=$with_mail_unlink;
3796 else
3797 with_mail_unlink=no
3800 if test "$with_mail_unlink" != no; then
3802 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
3807 # Check whether --with-mailhost was given.
3808 if test "${with_mailhost+set}" = set; then :
3809 withval=$with_mailhost;
3810 cat >>confdefs.h <<_ACEOF
3811 #define MAILHOST "$withval"
3812 _ACEOF
3818 # Check whether --with-sound was given.
3819 if test "${with_sound+set}" = set; then :
3820 withval=$with_sound;
3821 else
3822 with_sound=yes
3827 # Check whether --with-sync-input was given.
3828 if test "${with_sync_input+set}" = set; then :
3829 withval=$with_sync_input;
3830 else
3831 with_sync_input=yes
3834 if test "$with_sync_input" = yes; then
3836 $as_echo "#define SYNC_INPUT 1" >>confdefs.h
3841 # Check whether --with-x-toolkit was given.
3842 if test "${with_x_toolkit+set}" = set; then :
3843 withval=$with_x_toolkit; case "${withval}" in
3844 y | ye | yes ) val=gtk ;;
3845 n | no ) val=no ;;
3846 l | lu | luc | luci | lucid ) val=lucid ;;
3847 a | at | ath | athe | athen | athena ) val=athena ;;
3848 m | mo | mot | moti | motif ) val=motif ;;
3849 g | gt | gtk ) val=gtk ;;
3850 gtk3 ) val=gtk3 ;;
3852 as_fn_error "\`--with-x-toolkit=$withval' is invalid;
3853 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk' or
3854 \`gtk3'. \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." "$LINENO" 5
3856 esac
3857 with_x_toolkit=$val
3863 # Check whether --with-wide-int was given.
3864 if test "${with_wide_int+set}" = set; then :
3865 withval=$with_wide_int;
3866 else
3867 with_wide_int=no
3870 if test "$with_wide_int" = yes; then
3872 $as_echo "#define WIDE_EMACS_INT 1" >>confdefs.h
3877 # Check whether --with-xpm was given.
3878 if test "${with_xpm+set}" = set; then :
3879 withval=$with_xpm;
3880 else
3881 with_xpm=yes
3885 # Check whether --with-jpeg was given.
3886 if test "${with_jpeg+set}" = set; then :
3887 withval=$with_jpeg;
3888 else
3889 with_jpeg=yes
3893 # Check whether --with-tiff was given.
3894 if test "${with_tiff+set}" = set; then :
3895 withval=$with_tiff;
3896 else
3897 with_tiff=yes
3901 # Check whether --with-gif was given.
3902 if test "${with_gif+set}" = set; then :
3903 withval=$with_gif;
3904 else
3905 with_gif=yes
3909 # Check whether --with-png was given.
3910 if test "${with_png+set}" = set; then :
3911 withval=$with_png;
3912 else
3913 with_png=yes
3917 # Check whether --with-rsvg was given.
3918 if test "${with_rsvg+set}" = set; then :
3919 withval=$with_rsvg;
3920 else
3921 with_rsvg=yes
3925 # Check whether --with-xml2 was given.
3926 if test "${with_xml2+set}" = set; then :
3927 withval=$with_xml2;
3928 else
3929 with_xml2=yes
3933 # Check whether --with-imagemagick was given.
3934 if test "${with_imagemagick+set}" = set; then :
3935 withval=$with_imagemagick;
3936 else
3937 with_imagemagick=yes
3942 # Check whether --with-xft was given.
3943 if test "${with_xft+set}" = set; then :
3944 withval=$with_xft;
3945 else
3946 with_xft=yes
3950 # Check whether --with-libotf was given.
3951 if test "${with_libotf+set}" = set; then :
3952 withval=$with_libotf;
3953 else
3954 with_libotf=yes
3958 # Check whether --with-m17n-flt was given.
3959 if test "${with_m17n_flt+set}" = set; then :
3960 withval=$with_m17n_flt;
3961 else
3962 with_m17n_flt=yes
3967 # Check whether --with-toolkit-scroll-bars was given.
3968 if test "${with_toolkit_scroll_bars+set}" = set; then :
3969 withval=$with_toolkit_scroll_bars;
3970 else
3971 with_toolkit_scroll_bars=yes
3975 # Check whether --with-xaw3d was given.
3976 if test "${with_xaw3d+set}" = set; then :
3977 withval=$with_xaw3d;
3978 else
3979 with_xaw3d=yes
3983 # Check whether --with-xim was given.
3984 if test "${with_xim+set}" = set; then :
3985 withval=$with_xim;
3986 else
3987 with_xim=yes
3991 # Check whether --with-ns was given.
3992 if test "${with_ns+set}" = set; then :
3993 withval=$with_ns;
3994 else
3995 with_ns=no
4000 # Check whether --with-gpm was given.
4001 if test "${with_gpm+set}" = set; then :
4002 withval=$with_gpm;
4003 else
4004 with_gpm=yes
4008 # Check whether --with-dbus was given.
4009 if test "${with_dbus+set}" = set; then :
4010 withval=$with_dbus;
4011 else
4012 with_dbus=yes
4016 # Check whether --with-gconf was given.
4017 if test "${with_gconf+set}" = set; then :
4018 withval=$with_gconf;
4019 else
4020 with_gconf=yes
4024 # Check whether --with-gsettings was given.
4025 if test "${with_gsettings+set}" = set; then :
4026 withval=$with_gsettings;
4027 else
4028 with_gsettings=yes
4032 # Check whether --with-selinux was given.
4033 if test "${with_selinux+set}" = set; then :
4034 withval=$with_selinux;
4035 else
4036 with_selinux=yes
4040 # Check whether --with-gnutls was given.
4041 if test "${with_gnutls+set}" = set; then :
4042 withval=$with_gnutls;
4043 else
4044 with_gnutls=yes
4048 ## For the times when you want to build Emacs but don't have
4049 ## a suitable makeinfo, and can live without the manuals.
4051 # Check whether --with-makeinfo was given.
4052 if test "${with_makeinfo+set}" = set; then :
4053 withval=$with_makeinfo;
4054 else
4055 with_makeinfo=yes
4059 ## This is an option because I do not know if all info/man support
4060 ## compressed files, nor how to test if they do so.
4062 # Check whether --with-compress-info was given.
4063 if test "${with_compress_info+set}" = set; then :
4064 withval=$with_compress_info;
4065 else
4066 with_compress_info=yes
4069 if test $with_compress_info = yes; then
4070 GZIP_INFO=yes
4071 else
4072 GZIP_INFO=
4077 # Check whether --with-pkg-config-prog was given.
4078 if test "${with_pkg_config_prog+set}" = set; then :
4079 withval=$with_pkg_config_prog;
4082 if test "X${with_pkg_config_prog}" != X; then
4083 if test "${with_pkg_config_prog}" != yes; then
4084 PKG_CONFIG="${with_pkg_config_prog}"
4088 CRT_DIR=
4090 # Check whether --with-crt-dir was given.
4091 if test "${with_crt_dir+set}" = set; then :
4092 withval=$with_crt_dir;
4095 CRT_DIR="${with_crt_dir}"
4098 # Check whether --with-gameuser was given.
4099 if test "${with_gameuser+set}" = set; then :
4100 withval=$with_gameuser;
4103 test "X${with_gameuser}" != X && test "${with_gameuser}" != yes \
4104 && gameuser="${with_gameuser}"
4105 test "X$gameuser" = X && gameuser=games
4108 # Check whether --with-gnustep-conf was given.
4109 if test "${with_gnustep_conf+set}" = set; then :
4110 withval=$with_gnustep_conf;
4113 test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
4114 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
4115 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
4116 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
4118 # Check whether --enable-ns-self-contained was given.
4119 if test "${enable_ns_self_contained+set}" = set; then :
4120 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
4121 else
4122 EN_NS_SELF_CONTAINED=yes
4126 # Check whether --enable-asserts was given.
4127 if test "${enable_asserts+set}" = set; then :
4128 enableval=$enable_asserts; USE_XASSERTS=$enableval
4129 else
4130 USE_XASSERTS=no
4134 # Check whether --enable-maintainer-mode was given.
4135 if test "${enable_maintainer_mode+set}" = set; then :
4136 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4137 else
4138 USE_MAINTAINER_MODE=yes
4141 if test $USE_MAINTAINER_MODE = yes; then
4142 MAINT=
4143 else
4144 MAINT=#
4148 # Check whether --enable-locallisppath was given.
4149 if test "${enable_locallisppath+set}" = set; then :
4150 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
4151 locallisppath=
4152 elif test "${enableval}" != "yes"; then
4153 locallisppath=${enableval}
4158 # Check whether --enable-checking was given.
4159 if test "${enable_checking+set}" = set; then :
4160 enableval=$enable_checking; ac_checking_flags="${enableval}"
4163 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
4164 for check in $ac_checking_flags
4166 case $check in
4167 # these set all the flags to specific states
4168 yes) ac_enable_checking=1 ;;
4169 no) ac_enable_checking= ;
4170 ac_gc_check_stringbytes= ;
4171 ac_gc_check_string_overrun= ;
4172 ac_gc_check_string_free_list= ;
4173 ac_xmalloc_overrun= ;
4174 ac_gc_check_cons_list= ;;
4175 all) ac_enable_checking=1 ;
4176 ac_gc_check_stringbytes=1 ;
4177 ac_gc_check_string_overrun=1 ;
4178 ac_gc_check_string_free_list=1 ;
4179 ac_xmalloc_overrun=1 ;
4180 ac_gc_check_cons_list=1 ;;
4181 # these enable particular checks
4182 stringbytes) ac_gc_check_stringbytes=1 ;;
4183 stringoverrun) ac_gc_check_string_overrun=1 ;;
4184 stringfreelist) ac_gc_check_string_free_list=1 ;;
4185 xmallocoverrun) ac_xmalloc_overrun=1 ;;
4186 conslist) ac_gc_check_cons_list=1 ;;
4187 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
4188 esac
4189 done
4190 IFS="$ac_save_IFS"
4192 if test x$ac_enable_checking != x ; then
4194 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
4197 if test x$ac_gc_check_stringbytes != x ; then
4199 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
4202 if test x$ac_gc_check_string_overrun != x ; then
4204 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
4207 if test x$ac_gc_check_string_free_list != x ; then
4209 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
4212 if test x$ac_xmalloc_overrun != x ; then
4214 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
4217 if test x$ac_gc_check_cons_list != x ; then
4219 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
4223 # Check whether --enable-use-lisp-union-type was given.
4224 if test "${enable_use_lisp_union_type+set}" = set; then :
4225 enableval=$enable_use_lisp_union_type; if test "${enableval}" != "no"; then
4227 $as_echo "#define USE_LISP_UNION_TYPE 1" >>confdefs.h
4234 # Check whether --enable-profiling was given.
4235 if test "${enable_profiling+set}" = set; then :
4236 enableval=$enable_profiling; ac_enable_profiling="${enableval}"
4239 if test x$ac_enable_profiling != x ; then
4240 PROFILING_CFLAGS="-DPROFILING=1 -pg"
4241 else
4242 PROFILING_CFLAGS=
4246 # Check whether --enable-autodepend was given.
4247 if test "${enable_autodepend+set}" = set; then :
4248 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}"
4249 else
4250 ac_enable_autodepend=yes
4254 #### Make srcdir absolute, if it isn't already. It's important to
4255 #### avoid running the path through pwd unnecessarily, since pwd can
4256 #### give you automounter prefixes, which can go away. We do all this
4257 #### so Emacs can find its files when run uninstalled.
4258 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
4259 unset CDPATH
4260 case "${srcdir}" in
4261 /* ) ;;
4263 ## We may be able to use the $PWD environment variable to make this
4264 ## absolute. But sometimes PWD is inaccurate.
4265 ## Note: we used to use ${PWD} at the end instead of `pwd`,
4266 ## but that tested only for a well-formed and valid PWD,
4267 ## it did not object when PWD was well-formed and valid but just wrong.
4268 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
4269 then
4270 srcdir="$PWD"
4271 else
4272 srcdir="`(cd ${srcdir}; pwd)`"
4275 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
4276 esac
4278 #### Given the configuration name, set machfile and opsysfile to the
4279 #### names of the m/*.h and s/*.h files we should use.
4281 ### Canonicalize the configuration name.
4283 # Make sure we can run config.sub.
4284 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4285 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4288 $as_echo_n "checking build system type... " >&6; }
4289 if test "${ac_cv_build+set}" = set; then :
4290 $as_echo_n "(cached) " >&6
4291 else
4292 ac_build_alias=$build_alias
4293 test "x$ac_build_alias" = x &&
4294 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4295 test "x$ac_build_alias" = x &&
4296 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4297 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4298 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4302 $as_echo "$ac_cv_build" >&6; }
4303 case $ac_cv_build in
4304 *-*-*) ;;
4305 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4306 esac
4307 build=$ac_cv_build
4308 ac_save_IFS=$IFS; IFS='-'
4309 set x $ac_cv_build
4310 shift
4311 build_cpu=$1
4312 build_vendor=$2
4313 shift; shift
4314 # Remember, the first character of IFS is used to create $*,
4315 # except with old shells:
4316 build_os=$*
4317 IFS=$ac_save_IFS
4318 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4322 $as_echo_n "checking host system type... " >&6; }
4323 if test "${ac_cv_host+set}" = set; then :
4324 $as_echo_n "(cached) " >&6
4325 else
4326 if test "x$host_alias" = x; then
4327 ac_cv_host=$ac_cv_build
4328 else
4329 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4330 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4335 $as_echo "$ac_cv_host" >&6; }
4336 case $ac_cv_host in
4337 *-*-*) ;;
4338 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4339 esac
4340 host=$ac_cv_host
4341 ac_save_IFS=$IFS; IFS='-'
4342 set x $ac_cv_host
4343 shift
4344 host_cpu=$1
4345 host_vendor=$2
4346 shift; shift
4347 # Remember, the first character of IFS is used to create $*,
4348 # except with old shells:
4349 host_os=$*
4350 IFS=$ac_save_IFS
4351 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4354 canonical=$host
4355 configuration=${host_alias-${build_alias-$host}}
4359 ### If you add support for a new configuration, add code to this
4360 ### switch statement to recognize your configuration name and select
4361 ### the appropriate operating system and machine description files.
4363 ### You would hope that you could choose an m/*.h file pretty much
4364 ### based on the machine portion of the configuration name, and an s/*.h
4365 ### file based on the operating system portion. However, it turns out
4366 ### that each m/*.h file is pretty manufacturer-specific - for
4367 ### example mips.h is MIPS
4368 ### So we basically have to have a special case for each
4369 ### configuration name.
4371 ### As far as handling version numbers on operating systems is
4372 ### concerned, make sure things will fail in a fixable way. If
4373 ### /etc/MACHINES doesn't say anything about version numbers, be
4374 ### prepared to handle anything reasonably. If version numbers
4375 ### matter, be sure /etc/MACHINES says something about it.
4377 machine='' opsys='' unported=no
4378 case "${canonical}" in
4380 ## GNU/Linux and similar ports
4381 *-*-linux* )
4382 opsys=gnu-linux
4383 case ${canonical} in
4384 alpha*) machine=alpha ;;
4385 s390-*) machine=ibms390 ;;
4386 s390x-*) machine=ibms390x ;;
4387 powerpc*) machine=macppc ;;
4388 sparc*) machine=sparc ;;
4389 ia64*) machine=ia64 ;;
4390 m68k*) machine=m68k ;;
4391 x86_64*) machine=amdx86-64 ;;
4392 esac
4395 ## FreeBSD ports
4396 *-*-freebsd* )
4397 opsys=freebsd
4398 case "${canonical}" in
4399 alpha*) machine=alpha ;;
4400 amd64-*|x86_64-*) machine=amdx86-64 ;;
4401 ia64-*) machine=ia64 ;;
4402 i[3456]86-*) machine=intel386 ;;
4403 powerpc-*) machine=macppc ;;
4404 sparc-*) machine=sparc ;;
4405 sparc64-*) machine=sparc ;;
4406 esac
4409 ## FreeBSD kernel + glibc based userland
4410 *-*-kfreebsd*gnu* )
4411 opsys=gnu-kfreebsd
4412 case "${canonical}" in
4413 alpha*) machine=alpha ;;
4414 amd64-*|x86_64-*) machine=amdx86-64 ;;
4415 ia64-*) machine=ia64 ;;
4416 i[3456]86-*) machine=intel386 ;;
4417 powerpc-*) machine=macppc ;;
4418 sparc-*) machine=sparc ;;
4419 sparc64-*) machine=sparc ;;
4420 esac
4423 ## NetBSD ports
4424 *-*-netbsd* )
4425 opsys=netbsd
4426 case "${canonical}" in
4427 alpha*) machine=alpha ;;
4428 x86_64-*) machine=amdx86-64 ;;
4429 i[3456]86-*) machine=intel386 ;;
4430 m68k-*) machine=m68k ;;
4431 powerpc-*) machine=macppc ;;
4432 sparc*-) machine=sparc ;;
4433 vax-*) machine=vax ;;
4434 esac
4437 ## OpenBSD ports
4438 *-*-openbsd* )
4439 opsys=openbsd
4440 case "${canonical}" in
4441 alpha*) machine=alpha ;;
4442 x86_64-*) machine=amdx86-64 ;;
4443 i386-*) machine=intel386 ;;
4444 powerpc-*) machine=macppc ;;
4445 sparc*) machine=sparc ;;
4446 vax-*) machine=vax ;;
4447 esac
4450 ## Apple Darwin / Mac OS X
4451 *-apple-darwin* )
4452 case "${canonical}" in
4453 i[3456]86-* ) machine=intel386 ;;
4454 powerpc-* ) machine=macppc ;;
4455 x86_64-* ) machine=amdx86-64 ;;
4456 * ) unported=yes ;;
4457 esac
4458 opsys=darwin
4459 # Define CPP as follows to make autoconf work correctly.
4460 CPP="${CC-cc} -E -no-cpp-precomp"
4461 # Use fink packages if available.
4462 if test -d /sw/include && test -d /sw/lib; then
4463 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
4464 CPP="${CPP} ${GCC_TEST_OPTIONS}"
4465 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
4469 ## HP 9000 series 700 and 800, running HP/UX
4470 hppa*-hp-hpux10.2* )
4471 opsys=hpux10-20
4473 hppa*-hp-hpux1[1-9]* )
4474 opsys=hpux11
4475 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
4478 ## IBM machines
4479 rs6000-ibm-aix4.[23]* )
4480 machine=ibmrs6000 opsys=aix4-2
4482 powerpc-ibm-aix4.[23]* )
4483 machine=ibmrs6000 opsys=aix4-2
4485 rs6000-ibm-aix[56]* )
4486 machine=ibmrs6000 opsys=aix4-2
4488 powerpc-ibm-aix[56]* )
4489 machine=ibmrs6000 opsys=aix4-2
4492 ## Silicon Graphics machines
4493 ## Iris 4D
4494 mips-sgi-irix6.5 )
4495 opsys=irix6-5
4496 # Without defining _LANGUAGE_C, things get masked out in the headers
4497 # so that, for instance, grepping for `free' in stdlib.h fails and
4498 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
4499 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
4500 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
4503 ## Suns
4504 *-sun-solaris* \
4505 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* \
4506 | x86_64-*-solaris2* | x86_64-*-sunos5*)
4507 case "${canonical}" in
4508 i[3456]86-*-* ) machine=intel386 ;;
4509 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
4510 sparc* ) machine=sparc ;;
4511 * ) unported=yes ;;
4512 esac
4513 case "${canonical}" in
4514 *-sunos5.6* | *-solaris2.6* )
4515 opsys=sol2-6
4516 NON_GNU_CPP=/usr/ccs/lib/cpp
4517 RANLIB="ar -ts"
4519 *-sunos5.[7-9]* | *-solaris2.[7-9]* )
4520 opsys=sol2-6
4521 emacs_check_sunpro_c=yes
4522 NON_GNU_CPP=/usr/ccs/lib/cpp
4524 *-sunos5* | *-solaris* )
4525 opsys=sol2-10
4526 emacs_check_sunpro_c=yes
4527 NON_GNU_CPP=/usr/ccs/lib/cpp
4529 esac
4530 ## Watch out for a compiler that we know will not work.
4531 case "${canonical}" in
4532 *-solaris* | *-sunos5* )
4533 if [ "x$CC" = x/usr/ucb/cc ]; then
4534 ## /usr/ucb/cc doesn't work;
4535 ## we should find some other compiler that does work.
4536 unset CC
4539 *) ;;
4540 esac
4543 ## Intel 386 machines where we don't care about the manufacturer.
4544 i[3456]86-*-* )
4545 machine=intel386
4546 case "${canonical}" in
4547 *-cygwin ) opsys=cygwin ;;
4548 *-darwin* ) opsys=darwin
4549 CPP="${CC-cc} -E -no-cpp-precomp"
4551 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
4552 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
4553 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
4554 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
4555 esac
4559 unported=yes
4561 esac
4563 ### If the code above didn't choose an operating system, just choose
4564 ### an operating system based on the configuration name. You really
4565 ### only want to use this when you have no idea what the right
4566 ### operating system is; if you know what operating systems a machine
4567 ### runs, it's cleaner to make it explicit in the case statement
4568 ### above.
4569 if test x"${opsys}" = x; then
4570 case "${canonical}" in
4571 *-gnu* ) opsys=gnu ;;
4573 unported=yes
4575 esac
4580 if test $unported = yes; then
4581 as_fn_error "Emacs hasn't been ported to \`${canonical}' systems.
4582 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
4585 if test -n "$machine"; then
4586 machfile="m/${machine}.h"
4587 else
4588 machfile=
4590 opsysfile="s/${opsys}.h"
4593 #### Choose a compiler.
4594 test -n "$CC" && cc_specified=yes
4596 # Save the value of CFLAGS that the user specified.
4597 SPECIFIED_CFLAGS="$CFLAGS"
4599 ac_ext=c
4600 ac_cpp='$CPP $CPPFLAGS'
4601 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4602 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4603 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4604 if test -n "$ac_tool_prefix"; then
4605 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4606 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4608 $as_echo_n "checking for $ac_word... " >&6; }
4609 if test "${ac_cv_prog_CC+set}" = set; then :
4610 $as_echo_n "(cached) " >&6
4611 else
4612 if test -n "$CC"; then
4613 ac_cv_prog_CC="$CC" # Let the user override the test.
4614 else
4615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4616 for as_dir in $PATH
4618 IFS=$as_save_IFS
4619 test -z "$as_dir" && as_dir=.
4620 for ac_exec_ext in '' $ac_executable_extensions; do
4621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4622 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4624 break 2
4626 done
4627 done
4628 IFS=$as_save_IFS
4632 CC=$ac_cv_prog_CC
4633 if test -n "$CC"; then
4634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4635 $as_echo "$CC" >&6; }
4636 else
4637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4638 $as_echo "no" >&6; }
4643 if test -z "$ac_cv_prog_CC"; then
4644 ac_ct_CC=$CC
4645 # Extract the first word of "gcc", so it can be a program name with args.
4646 set dummy gcc; ac_word=$2
4647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4648 $as_echo_n "checking for $ac_word... " >&6; }
4649 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4650 $as_echo_n "(cached) " >&6
4651 else
4652 if test -n "$ac_ct_CC"; then
4653 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4654 else
4655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4656 for as_dir in $PATH
4658 IFS=$as_save_IFS
4659 test -z "$as_dir" && as_dir=.
4660 for ac_exec_ext in '' $ac_executable_extensions; do
4661 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4662 ac_cv_prog_ac_ct_CC="gcc"
4663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4664 break 2
4666 done
4667 done
4668 IFS=$as_save_IFS
4672 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4673 if test -n "$ac_ct_CC"; then
4674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4675 $as_echo "$ac_ct_CC" >&6; }
4676 else
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4678 $as_echo "no" >&6; }
4681 if test "x$ac_ct_CC" = x; then
4682 CC=""
4683 else
4684 case $cross_compiling:$ac_tool_warned in
4685 yes:)
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4687 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4688 ac_tool_warned=yes ;;
4689 esac
4690 CC=$ac_ct_CC
4692 else
4693 CC="$ac_cv_prog_CC"
4696 if test -z "$CC"; then
4697 if test -n "$ac_tool_prefix"; then
4698 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4699 set dummy ${ac_tool_prefix}cc; ac_word=$2
4700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4701 $as_echo_n "checking for $ac_word... " >&6; }
4702 if test "${ac_cv_prog_CC+set}" = set; then :
4703 $as_echo_n "(cached) " >&6
4704 else
4705 if test -n "$CC"; then
4706 ac_cv_prog_CC="$CC" # Let the user override the test.
4707 else
4708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4709 for as_dir in $PATH
4711 IFS=$as_save_IFS
4712 test -z "$as_dir" && as_dir=.
4713 for ac_exec_ext in '' $ac_executable_extensions; do
4714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4715 ac_cv_prog_CC="${ac_tool_prefix}cc"
4716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4717 break 2
4719 done
4720 done
4721 IFS=$as_save_IFS
4725 CC=$ac_cv_prog_CC
4726 if test -n "$CC"; then
4727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4728 $as_echo "$CC" >&6; }
4729 else
4730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4731 $as_echo "no" >&6; }
4737 if test -z "$CC"; then
4738 # Extract the first word of "cc", so it can be a program name with args.
4739 set dummy cc; ac_word=$2
4740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4741 $as_echo_n "checking for $ac_word... " >&6; }
4742 if test "${ac_cv_prog_CC+set}" = set; then :
4743 $as_echo_n "(cached) " >&6
4744 else
4745 if test -n "$CC"; then
4746 ac_cv_prog_CC="$CC" # Let the user override the test.
4747 else
4748 ac_prog_rejected=no
4749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4750 for as_dir in $PATH
4752 IFS=$as_save_IFS
4753 test -z "$as_dir" && as_dir=.
4754 for ac_exec_ext in '' $ac_executable_extensions; do
4755 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4756 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4757 ac_prog_rejected=yes
4758 continue
4760 ac_cv_prog_CC="cc"
4761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4762 break 2
4764 done
4765 done
4766 IFS=$as_save_IFS
4768 if test $ac_prog_rejected = yes; then
4769 # We found a bogon in the path, so make sure we never use it.
4770 set dummy $ac_cv_prog_CC
4771 shift
4772 if test $# != 0; then
4773 # We chose a different compiler from the bogus one.
4774 # However, it has the same basename, so the bogon will be chosen
4775 # first if we set CC to just the basename; use the full file name.
4776 shift
4777 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4782 CC=$ac_cv_prog_CC
4783 if test -n "$CC"; then
4784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4785 $as_echo "$CC" >&6; }
4786 else
4787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4788 $as_echo "no" >&6; }
4793 if test -z "$CC"; then
4794 if test -n "$ac_tool_prefix"; then
4795 for ac_prog in cl.exe
4797 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4798 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4800 $as_echo_n "checking for $ac_word... " >&6; }
4801 if test "${ac_cv_prog_CC+set}" = set; then :
4802 $as_echo_n "(cached) " >&6
4803 else
4804 if test -n "$CC"; then
4805 ac_cv_prog_CC="$CC" # Let the user override the test.
4806 else
4807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4808 for as_dir in $PATH
4810 IFS=$as_save_IFS
4811 test -z "$as_dir" && as_dir=.
4812 for ac_exec_ext in '' $ac_executable_extensions; do
4813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4814 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4816 break 2
4818 done
4819 done
4820 IFS=$as_save_IFS
4824 CC=$ac_cv_prog_CC
4825 if test -n "$CC"; then
4826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4827 $as_echo "$CC" >&6; }
4828 else
4829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4830 $as_echo "no" >&6; }
4834 test -n "$CC" && break
4835 done
4837 if test -z "$CC"; then
4838 ac_ct_CC=$CC
4839 for ac_prog in cl.exe
4841 # Extract the first word of "$ac_prog", so it can be a program name with args.
4842 set dummy $ac_prog; ac_word=$2
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4844 $as_echo_n "checking for $ac_word... " >&6; }
4845 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4846 $as_echo_n "(cached) " >&6
4847 else
4848 if test -n "$ac_ct_CC"; then
4849 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4850 else
4851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4852 for as_dir in $PATH
4854 IFS=$as_save_IFS
4855 test -z "$as_dir" && as_dir=.
4856 for ac_exec_ext in '' $ac_executable_extensions; do
4857 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4858 ac_cv_prog_ac_ct_CC="$ac_prog"
4859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4860 break 2
4862 done
4863 done
4864 IFS=$as_save_IFS
4868 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4869 if test -n "$ac_ct_CC"; then
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4871 $as_echo "$ac_ct_CC" >&6; }
4872 else
4873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4874 $as_echo "no" >&6; }
4878 test -n "$ac_ct_CC" && break
4879 done
4881 if test "x$ac_ct_CC" = x; then
4882 CC=""
4883 else
4884 case $cross_compiling:$ac_tool_warned in
4885 yes:)
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4887 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4888 ac_tool_warned=yes ;;
4889 esac
4890 CC=$ac_ct_CC
4897 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4898 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4899 as_fn_error "no acceptable C compiler found in \$PATH
4900 See \`config.log' for more details." "$LINENO" 5; }
4902 # Provide some information about the compiler.
4903 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4904 set X $ac_compile
4905 ac_compiler=$2
4906 for ac_option in --version -v -V -qversion; do
4907 { { ac_try="$ac_compiler $ac_option >&5"
4908 case "(($ac_try" in
4909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4910 *) ac_try_echo=$ac_try;;
4911 esac
4912 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4913 $as_echo "$ac_try_echo"; } >&5
4914 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4915 ac_status=$?
4916 if test -s conftest.err; then
4917 sed '10a\
4918 ... rest of stderr output deleted ...
4919 10q' conftest.err >conftest.er1
4920 cat conftest.er1 >&5
4922 rm -f conftest.er1 conftest.err
4923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4924 test $ac_status = 0; }
4925 done
4927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4928 /* end confdefs.h. */
4931 main ()
4935 return 0;
4937 _ACEOF
4938 ac_clean_files_save=$ac_clean_files
4939 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4940 # Try to create an executable without -o first, disregard a.out.
4941 # It will help us diagnose broken compilers, and finding out an intuition
4942 # of exeext.
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4944 $as_echo_n "checking whether the C compiler works... " >&6; }
4945 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4947 # The possible output files:
4948 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4950 ac_rmfiles=
4951 for ac_file in $ac_files
4953 case $ac_file in
4954 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4955 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4956 esac
4957 done
4958 rm -f $ac_rmfiles
4960 if { { ac_try="$ac_link_default"
4961 case "(($ac_try" in
4962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4963 *) ac_try_echo=$ac_try;;
4964 esac
4965 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4966 $as_echo "$ac_try_echo"; } >&5
4967 (eval "$ac_link_default") 2>&5
4968 ac_status=$?
4969 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4970 test $ac_status = 0; }; then :
4971 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4972 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4973 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4974 # so that the user can short-circuit this test for compilers unknown to
4975 # Autoconf.
4976 for ac_file in $ac_files ''
4978 test -f "$ac_file" || continue
4979 case $ac_file in
4980 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4982 [ab].out )
4983 # We found the default executable, but exeext='' is most
4984 # certainly right.
4985 break;;
4986 *.* )
4987 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4988 then :; else
4989 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4991 # We set ac_cv_exeext here because the later test for it is not
4992 # safe: cross compilers may not add the suffix if given an `-o'
4993 # argument, so we may need to know it at that point already.
4994 # Even if this section looks crufty: it has the advantage of
4995 # actually working.
4996 break;;
4998 break;;
4999 esac
5000 done
5001 test "$ac_cv_exeext" = no && ac_cv_exeext=
5003 else
5004 ac_file=''
5006 if test -z "$ac_file"; then :
5007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5008 $as_echo "no" >&6; }
5009 $as_echo "$as_me: failed program was:" >&5
5010 sed 's/^/| /' conftest.$ac_ext >&5
5012 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5013 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5014 { as_fn_set_status 77
5015 as_fn_error "C compiler cannot create executables
5016 See \`config.log' for more details." "$LINENO" 5; }; }
5017 else
5018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5019 $as_echo "yes" >&6; }
5021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5022 $as_echo_n "checking for C compiler default output file name... " >&6; }
5023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5024 $as_echo "$ac_file" >&6; }
5025 ac_exeext=$ac_cv_exeext
5027 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
5028 ac_clean_files=$ac_clean_files_save
5029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5030 $as_echo_n "checking for suffix of executables... " >&6; }
5031 if { { ac_try="$ac_link"
5032 case "(($ac_try" in
5033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5034 *) ac_try_echo=$ac_try;;
5035 esac
5036 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5037 $as_echo "$ac_try_echo"; } >&5
5038 (eval "$ac_link") 2>&5
5039 ac_status=$?
5040 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5041 test $ac_status = 0; }; then :
5042 # If both `conftest.exe' and `conftest' are `present' (well, observable)
5043 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
5044 # work properly (i.e., refer to `conftest.exe'), while it won't with
5045 # `rm'.
5046 for ac_file in conftest.exe conftest conftest.*; do
5047 test -f "$ac_file" || continue
5048 case $ac_file in
5049 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5050 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5051 break;;
5052 * ) break;;
5053 esac
5054 done
5055 else
5056 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5057 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5058 as_fn_error "cannot compute suffix of executables: cannot compile and link
5059 See \`config.log' for more details." "$LINENO" 5; }
5061 rm -f conftest conftest$ac_cv_exeext
5062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5063 $as_echo "$ac_cv_exeext" >&6; }
5065 rm -f conftest.$ac_ext
5066 EXEEXT=$ac_cv_exeext
5067 ac_exeext=$EXEEXT
5068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5069 /* end confdefs.h. */
5070 #include <stdio.h>
5072 main ()
5074 FILE *f = fopen ("conftest.out", "w");
5075 return ferror (f) || fclose (f) != 0;
5078 return 0;
5080 _ACEOF
5081 ac_clean_files="$ac_clean_files conftest.out"
5082 # Check that the compiler produces executables we can run. If not, either
5083 # the compiler is broken, or we cross compile.
5084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5085 $as_echo_n "checking whether we are cross compiling... " >&6; }
5086 if test "$cross_compiling" != yes; then
5087 { { ac_try="$ac_link"
5088 case "(($ac_try" in
5089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5090 *) ac_try_echo=$ac_try;;
5091 esac
5092 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5093 $as_echo "$ac_try_echo"; } >&5
5094 (eval "$ac_link") 2>&5
5095 ac_status=$?
5096 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5097 test $ac_status = 0; }
5098 if { ac_try='./conftest$ac_cv_exeext'
5099 { { case "(($ac_try" in
5100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5101 *) ac_try_echo=$ac_try;;
5102 esac
5103 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5104 $as_echo "$ac_try_echo"; } >&5
5105 (eval "$ac_try") 2>&5
5106 ac_status=$?
5107 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5108 test $ac_status = 0; }; }; then
5109 cross_compiling=no
5110 else
5111 if test "$cross_compiling" = maybe; then
5112 cross_compiling=yes
5113 else
5114 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5115 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5116 as_fn_error "cannot run C compiled programs.
5117 If you meant to cross compile, use \`--host'.
5118 See \`config.log' for more details." "$LINENO" 5; }
5122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5123 $as_echo "$cross_compiling" >&6; }
5125 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5126 ac_clean_files=$ac_clean_files_save
5127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5128 $as_echo_n "checking for suffix of object files... " >&6; }
5129 if test "${ac_cv_objext+set}" = set; then :
5130 $as_echo_n "(cached) " >&6
5131 else
5132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5133 /* end confdefs.h. */
5136 main ()
5140 return 0;
5142 _ACEOF
5143 rm -f conftest.o conftest.obj
5144 if { { ac_try="$ac_compile"
5145 case "(($ac_try" in
5146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5147 *) ac_try_echo=$ac_try;;
5148 esac
5149 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5150 $as_echo "$ac_try_echo"; } >&5
5151 (eval "$ac_compile") 2>&5
5152 ac_status=$?
5153 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5154 test $ac_status = 0; }; then :
5155 for ac_file in conftest.o conftest.obj conftest.*; do
5156 test -f "$ac_file" || continue;
5157 case $ac_file in
5158 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5159 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5160 break;;
5161 esac
5162 done
5163 else
5164 $as_echo "$as_me: failed program was:" >&5
5165 sed 's/^/| /' conftest.$ac_ext >&5
5167 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5168 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5169 as_fn_error "cannot compute suffix of object files: cannot compile
5170 See \`config.log' for more details." "$LINENO" 5; }
5172 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5175 $as_echo "$ac_cv_objext" >&6; }
5176 OBJEXT=$ac_cv_objext
5177 ac_objext=$OBJEXT
5178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5179 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5180 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5181 $as_echo_n "(cached) " >&6
5182 else
5183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5184 /* end confdefs.h. */
5187 main ()
5189 #ifndef __GNUC__
5190 choke me
5191 #endif
5194 return 0;
5196 _ACEOF
5197 if ac_fn_c_try_compile "$LINENO"; then :
5198 ac_compiler_gnu=yes
5199 else
5200 ac_compiler_gnu=no
5202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5203 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5207 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5208 if test $ac_compiler_gnu = yes; then
5209 GCC=yes
5210 else
5211 GCC=
5213 ac_test_CFLAGS=${CFLAGS+set}
5214 ac_save_CFLAGS=$CFLAGS
5215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5216 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5217 if test "${ac_cv_prog_cc_g+set}" = set; then :
5218 $as_echo_n "(cached) " >&6
5219 else
5220 ac_save_c_werror_flag=$ac_c_werror_flag
5221 ac_c_werror_flag=yes
5222 ac_cv_prog_cc_g=no
5223 CFLAGS="-g"
5224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5225 /* end confdefs.h. */
5228 main ()
5232 return 0;
5234 _ACEOF
5235 if ac_fn_c_try_compile "$LINENO"; then :
5236 ac_cv_prog_cc_g=yes
5237 else
5238 CFLAGS=""
5239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5240 /* end confdefs.h. */
5243 main ()
5247 return 0;
5249 _ACEOF
5250 if ac_fn_c_try_compile "$LINENO"; then :
5252 else
5253 ac_c_werror_flag=$ac_save_c_werror_flag
5254 CFLAGS="-g"
5255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5256 /* end confdefs.h. */
5259 main ()
5263 return 0;
5265 _ACEOF
5266 if ac_fn_c_try_compile "$LINENO"; then :
5267 ac_cv_prog_cc_g=yes
5269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5274 ac_c_werror_flag=$ac_save_c_werror_flag
5276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5277 $as_echo "$ac_cv_prog_cc_g" >&6; }
5278 if test "$ac_test_CFLAGS" = set; then
5279 CFLAGS=$ac_save_CFLAGS
5280 elif test $ac_cv_prog_cc_g = yes; then
5281 if test "$GCC" = yes; then
5282 CFLAGS="-g -O2"
5283 else
5284 CFLAGS="-g"
5286 else
5287 if test "$GCC" = yes; then
5288 CFLAGS="-O2"
5289 else
5290 CFLAGS=
5293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5294 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5295 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5296 $as_echo_n "(cached) " >&6
5297 else
5298 ac_cv_prog_cc_c89=no
5299 ac_save_CC=$CC
5300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5301 /* end confdefs.h. */
5302 #include <stdarg.h>
5303 #include <stdio.h>
5304 #include <sys/types.h>
5305 #include <sys/stat.h>
5306 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5307 struct buf { int x; };
5308 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5309 static char *e (p, i)
5310 char **p;
5311 int i;
5313 return p[i];
5315 static char *f (char * (*g) (char **, int), char **p, ...)
5317 char *s;
5318 va_list v;
5319 va_start (v,p);
5320 s = g (p, va_arg (v,int));
5321 va_end (v);
5322 return s;
5325 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5326 function prototypes and stuff, but not '\xHH' hex character constants.
5327 These don't provoke an error unfortunately, instead are silently treated
5328 as 'x'. The following induces an error, until -std is added to get
5329 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5330 array size at least. It's necessary to write '\x00'==0 to get something
5331 that's true only with -std. */
5332 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5334 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5335 inside strings and character constants. */
5336 #define FOO(x) 'x'
5337 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5339 int test (int i, double x);
5340 struct s1 {int (*f) (int a);};
5341 struct s2 {int (*f) (double a);};
5342 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5343 int argc;
5344 char **argv;
5346 main ()
5348 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5350 return 0;
5352 _ACEOF
5353 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5354 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5356 CC="$ac_save_CC $ac_arg"
5357 if ac_fn_c_try_compile "$LINENO"; then :
5358 ac_cv_prog_cc_c89=$ac_arg
5360 rm -f core conftest.err conftest.$ac_objext
5361 test "x$ac_cv_prog_cc_c89" != "xno" && break
5362 done
5363 rm -f conftest.$ac_ext
5364 CC=$ac_save_CC
5367 # AC_CACHE_VAL
5368 case "x$ac_cv_prog_cc_c89" in
5370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5371 $as_echo "none needed" >&6; } ;;
5372 xno)
5373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5374 $as_echo "unsupported" >&6; } ;;
5376 CC="$CC $ac_cv_prog_cc_c89"
5377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5378 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5379 esac
5380 if test "x$ac_cv_prog_cc_c89" != xno; then :
5384 ac_ext=c
5385 ac_cpp='$CPP $CPPFLAGS'
5386 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5387 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5388 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5389 DEPDIR="${am__leading_dot}deps"
5391 ac_config_commands="$ac_config_commands depfiles"
5394 am_make=${MAKE-make}
5395 cat > confinc << 'END'
5396 am__doit:
5397 @echo this is the am__doit target
5398 .PHONY: am__doit
5400 # If we don't find an include directive, just comment out the code.
5401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5402 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5403 am__include="#"
5404 am__quote=
5405 _am_result=none
5406 # First try GNU make style include.
5407 echo "include confinc" > confmf
5408 # Ignore all kinds of additional output from `make'.
5409 case `$am_make -s -f confmf 2> /dev/null` in #(
5410 *the\ am__doit\ target*)
5411 am__include=include
5412 am__quote=
5413 _am_result=GNU
5415 esac
5416 # Now try BSD make style include.
5417 if test "$am__include" = "#"; then
5418 echo '.include "confinc"' > confmf
5419 case `$am_make -s -f confmf 2> /dev/null` in #(
5420 *the\ am__doit\ target*)
5421 am__include=.include
5422 am__quote="\""
5423 _am_result=BSD
5425 esac
5429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5430 $as_echo "$_am_result" >&6; }
5431 rm -f confinc confmf
5433 # Check whether --enable-dependency-tracking was given.
5434 if test "${enable_dependency_tracking+set}" = set; then :
5435 enableval=$enable_dependency_tracking;
5438 if test "x$enable_dependency_tracking" != xno; then
5439 am_depcomp="$ac_aux_dir/depcomp"
5440 AMDEPBACKSLASH='\'
5442 if test "x$enable_dependency_tracking" != xno; then
5443 AMDEP_TRUE=
5444 AMDEP_FALSE='#'
5445 else
5446 AMDEP_TRUE='#'
5447 AMDEP_FALSE=
5452 depcc="$CC" am_compiler_list=
5454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5455 $as_echo_n "checking dependency style of $depcc... " >&6; }
5456 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5457 $as_echo_n "(cached) " >&6
5458 else
5459 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5460 # We make a subdir and do the tests there. Otherwise we can end up
5461 # making bogus files that we don't know about and never remove. For
5462 # instance it was reported that on HP-UX the gcc test will end up
5463 # making a dummy file named `D' -- because `-MD' means `put the output
5464 # in D'.
5465 mkdir conftest.dir
5466 # Copy depcomp to subdir because otherwise we won't find it if we're
5467 # using a relative directory.
5468 cp "$am_depcomp" conftest.dir
5469 cd conftest.dir
5470 # We will build objects and dependencies in a subdirectory because
5471 # it helps to detect inapplicable dependency modes. For instance
5472 # both Tru64's cc and ICC support -MD to output dependencies as a
5473 # side effect of compilation, but ICC will put the dependencies in
5474 # the current directory while Tru64 will put them in the object
5475 # directory.
5476 mkdir sub
5478 am_cv_CC_dependencies_compiler_type=none
5479 if test "$am_compiler_list" = ""; then
5480 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5482 am__universal=false
5483 case " $depcc " in #(
5484 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5485 esac
5487 for depmode in $am_compiler_list; do
5488 # Setup a source with many dependencies, because some compilers
5489 # like to wrap large dependency lists on column 80 (with \), and
5490 # we should not choose a depcomp mode which is confused by this.
5492 # We need to recreate these files for each test, as the compiler may
5493 # overwrite some of them when testing with obscure command lines.
5494 # This happens at least with the AIX C compiler.
5495 : > sub/conftest.c
5496 for i in 1 2 3 4 5 6; do
5497 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5498 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5499 # Solaris 8's {/usr,}/bin/sh.
5500 touch sub/conftst$i.h
5501 done
5502 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5504 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5505 # mode. It turns out that the SunPro C++ compiler does not properly
5506 # handle `-M -o', and we need to detect this. Also, some Intel
5507 # versions had trouble with output in subdirs
5508 am__obj=sub/conftest.${OBJEXT-o}
5509 am__minus_obj="-o $am__obj"
5510 case $depmode in
5511 gcc)
5512 # This depmode causes a compiler race in universal mode.
5513 test "$am__universal" = false || continue
5515 nosideeffect)
5516 # after this tag, mechanisms are not by side-effect, so they'll
5517 # only be used when explicitly requested
5518 if test "x$enable_dependency_tracking" = xyes; then
5519 continue
5520 else
5521 break
5524 msvisualcpp | msvcmsys)
5525 # This compiler won't grok `-c -o', but also, the minuso test has
5526 # not run yet. These depmodes are late enough in the game, and
5527 # so weak that their functioning should not be impacted.
5528 am__obj=conftest.${OBJEXT-o}
5529 am__minus_obj=
5531 none) break ;;
5532 esac
5533 if depmode=$depmode \
5534 source=sub/conftest.c object=$am__obj \
5535 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5536 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5537 >/dev/null 2>conftest.err &&
5538 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5539 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5540 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5541 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5542 # icc doesn't choke on unknown options, it will just issue warnings
5543 # or remarks (even with -Werror). So we grep stderr for any message
5544 # that says an option was ignored or not supported.
5545 # When given -MP, icc 7.0 and 7.1 complain thusly:
5546 # icc: Command line warning: ignoring option '-M'; no argument required
5547 # The diagnosis changed in icc 8.0:
5548 # icc: Command line remark: option '-MP' not supported
5549 if (grep 'ignoring option' conftest.err ||
5550 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5551 am_cv_CC_dependencies_compiler_type=$depmode
5552 break
5555 done
5557 cd ..
5558 rm -rf conftest.dir
5559 else
5560 am_cv_CC_dependencies_compiler_type=none
5564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5565 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5566 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5569 test "x$enable_dependency_tracking" != xno \
5570 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5571 am__fastdepCC_TRUE=
5572 am__fastdepCC_FALSE='#'
5573 else
5574 am__fastdepCC_TRUE='#'
5575 am__fastdepCC_FALSE=
5579 if test "x$CC" != xcc; then
5580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5581 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5582 else
5583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5584 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5586 set dummy $CC; ac_cc=`$as_echo "$2" |
5587 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5588 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
5589 $as_echo_n "(cached) " >&6
5590 else
5591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5592 /* end confdefs.h. */
5595 main ()
5599 return 0;
5601 _ACEOF
5602 # Make sure it works both with $CC and with simple cc.
5603 # We do the test twice because some compilers refuse to overwrite an
5604 # existing .o file with -o, though they will create one.
5605 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5606 rm -f conftest2.*
5607 if { { case "(($ac_try" in
5608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5609 *) ac_try_echo=$ac_try;;
5610 esac
5611 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5612 $as_echo "$ac_try_echo"; } >&5
5613 (eval "$ac_try") 2>&5
5614 ac_status=$?
5615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5616 test $ac_status = 0; } &&
5617 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5619 *) ac_try_echo=$ac_try;;
5620 esac
5621 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5622 $as_echo "$ac_try_echo"; } >&5
5623 (eval "$ac_try") 2>&5
5624 ac_status=$?
5625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5626 test $ac_status = 0; };
5627 then
5628 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5629 if test "x$CC" != xcc; then
5630 # Test first that cc exists at all.
5631 if { ac_try='cc -c conftest.$ac_ext >&5'
5632 { { case "(($ac_try" in
5633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5634 *) ac_try_echo=$ac_try;;
5635 esac
5636 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5637 $as_echo "$ac_try_echo"; } >&5
5638 (eval "$ac_try") 2>&5
5639 ac_status=$?
5640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5641 test $ac_status = 0; }; }; then
5642 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5643 rm -f conftest2.*
5644 if { { case "(($ac_try" in
5645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5646 *) ac_try_echo=$ac_try;;
5647 esac
5648 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5649 $as_echo "$ac_try_echo"; } >&5
5650 (eval "$ac_try") 2>&5
5651 ac_status=$?
5652 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5653 test $ac_status = 0; } &&
5654 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5656 *) ac_try_echo=$ac_try;;
5657 esac
5658 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5659 $as_echo "$ac_try_echo"; } >&5
5660 (eval "$ac_try") 2>&5
5661 ac_status=$?
5662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5663 test $ac_status = 0; };
5664 then
5665 # cc works too.
5667 else
5668 # cc exists but doesn't like -o.
5669 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5673 else
5674 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5676 rm -f core conftest*
5679 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5681 $as_echo "yes" >&6; }
5682 else
5683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5684 $as_echo "no" >&6; }
5686 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5690 # FIXME: we rely on the cache variable name because
5691 # there is no other way.
5692 set dummy $CC
5693 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5694 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5695 if test "$am_t" != yes; then
5696 # Losing compiler, so override with the script.
5697 # FIXME: It is wrong to rewrite CC.
5698 # But if we don't then we get into trouble of one sort or another.
5699 # A longer-term fix would be to have automake use am__CC in this case,
5700 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5701 CC="$am_aux_dir/compile $CC"
5706 # Initialize gnulib right after verifying that the C compiler works.
5708 ac_ext=c
5709 ac_cpp='$CPP $CPPFLAGS'
5710 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5711 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5712 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5714 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5715 # On Suns, sometimes $CPP names a directory.
5716 if test -n "$CPP" && test -d "$CPP"; then
5717 CPP=
5719 if test -z "$CPP"; then
5720 if test "${ac_cv_prog_CPP+set}" = set; then :
5721 $as_echo_n "(cached) " >&6
5722 else
5723 # Double quotes because CPP needs to be expanded
5724 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5726 ac_preproc_ok=false
5727 for ac_c_preproc_warn_flag in '' yes
5729 # Use a header file that comes with gcc, so configuring glibc
5730 # with a fresh cross-compiler works.
5731 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5732 # <limits.h> exists even on freestanding compilers.
5733 # On the NeXT, cc -E runs the code through the compiler's parser,
5734 # not just through cpp. "Syntax error" is here to catch this case.
5735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5736 /* end confdefs.h. */
5737 #ifdef __STDC__
5738 # include <limits.h>
5739 #else
5740 # include <assert.h>
5741 #endif
5742 Syntax error
5743 _ACEOF
5744 if ac_fn_c_try_cpp "$LINENO"; then :
5746 else
5747 # Broken: fails on valid input.
5748 continue
5750 rm -f conftest.err conftest.$ac_ext
5752 # OK, works on sane cases. Now check whether nonexistent headers
5753 # can be detected and how.
5754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5755 /* end confdefs.h. */
5756 #include <ac_nonexistent.h>
5757 _ACEOF
5758 if ac_fn_c_try_cpp "$LINENO"; then :
5759 # Broken: success on invalid input.
5760 continue
5761 else
5762 # Passes both tests.
5763 ac_preproc_ok=:
5764 break
5766 rm -f conftest.err conftest.$ac_ext
5768 done
5769 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5770 rm -f conftest.err conftest.$ac_ext
5771 if $ac_preproc_ok; then :
5772 break
5775 done
5776 ac_cv_prog_CPP=$CPP
5779 CPP=$ac_cv_prog_CPP
5780 else
5781 ac_cv_prog_CPP=$CPP
5783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5784 $as_echo "$CPP" >&6; }
5785 ac_preproc_ok=false
5786 for ac_c_preproc_warn_flag in '' yes
5788 # Use a header file that comes with gcc, so configuring glibc
5789 # with a fresh cross-compiler works.
5790 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5791 # <limits.h> exists even on freestanding compilers.
5792 # On the NeXT, cc -E runs the code through the compiler's parser,
5793 # not just through cpp. "Syntax error" is here to catch this case.
5794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5795 /* end confdefs.h. */
5796 #ifdef __STDC__
5797 # include <limits.h>
5798 #else
5799 # include <assert.h>
5800 #endif
5801 Syntax error
5802 _ACEOF
5803 if ac_fn_c_try_cpp "$LINENO"; then :
5805 else
5806 # Broken: fails on valid input.
5807 continue
5809 rm -f conftest.err conftest.$ac_ext
5811 # OK, works on sane cases. Now check whether nonexistent headers
5812 # can be detected and how.
5813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5814 /* end confdefs.h. */
5815 #include <ac_nonexistent.h>
5816 _ACEOF
5817 if ac_fn_c_try_cpp "$LINENO"; then :
5818 # Broken: success on invalid input.
5819 continue
5820 else
5821 # Passes both tests.
5822 ac_preproc_ok=:
5823 break
5825 rm -f conftest.err conftest.$ac_ext
5827 done
5828 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5829 rm -f conftest.err conftest.$ac_ext
5830 if $ac_preproc_ok; then :
5832 else
5833 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5834 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5835 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5836 See \`config.log' for more details." "$LINENO" 5; }
5839 ac_ext=c
5840 ac_cpp='$CPP $CPPFLAGS'
5841 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5842 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5843 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5847 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5848 if test "${ac_cv_path_GREP+set}" = set; then :
5849 $as_echo_n "(cached) " >&6
5850 else
5851 if test -z "$GREP"; then
5852 ac_path_GREP_found=false
5853 # Loop through the user's path and test for each of PROGNAME-LIST
5854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5855 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5857 IFS=$as_save_IFS
5858 test -z "$as_dir" && as_dir=.
5859 for ac_prog in grep ggrep; do
5860 for ac_exec_ext in '' $ac_executable_extensions; do
5861 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5862 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5863 # Check for GNU ac_path_GREP and select it if it is found.
5864 # Check for GNU $ac_path_GREP
5865 case `"$ac_path_GREP" --version 2>&1` in
5866 *GNU*)
5867 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5869 ac_count=0
5870 $as_echo_n 0123456789 >"conftest.in"
5871 while :
5873 cat "conftest.in" "conftest.in" >"conftest.tmp"
5874 mv "conftest.tmp" "conftest.in"
5875 cp "conftest.in" "conftest.nl"
5876 $as_echo 'GREP' >> "conftest.nl"
5877 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5878 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5879 as_fn_arith $ac_count + 1 && ac_count=$as_val
5880 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5881 # Best one so far, save it but keep looking for a better one
5882 ac_cv_path_GREP="$ac_path_GREP"
5883 ac_path_GREP_max=$ac_count
5885 # 10*(2^10) chars as input seems more than enough
5886 test $ac_count -gt 10 && break
5887 done
5888 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5889 esac
5891 $ac_path_GREP_found && break 3
5892 done
5893 done
5894 done
5895 IFS=$as_save_IFS
5896 if test -z "$ac_cv_path_GREP"; then
5897 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5899 else
5900 ac_cv_path_GREP=$GREP
5904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5905 $as_echo "$ac_cv_path_GREP" >&6; }
5906 GREP="$ac_cv_path_GREP"
5909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5910 $as_echo_n "checking for egrep... " >&6; }
5911 if test "${ac_cv_path_EGREP+set}" = set; then :
5912 $as_echo_n "(cached) " >&6
5913 else
5914 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5915 then ac_cv_path_EGREP="$GREP -E"
5916 else
5917 if test -z "$EGREP"; then
5918 ac_path_EGREP_found=false
5919 # Loop through the user's path and test for each of PROGNAME-LIST
5920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5921 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5923 IFS=$as_save_IFS
5924 test -z "$as_dir" && as_dir=.
5925 for ac_prog in egrep; do
5926 for ac_exec_ext in '' $ac_executable_extensions; do
5927 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5928 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5929 # Check for GNU ac_path_EGREP and select it if it is found.
5930 # Check for GNU $ac_path_EGREP
5931 case `"$ac_path_EGREP" --version 2>&1` in
5932 *GNU*)
5933 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5935 ac_count=0
5936 $as_echo_n 0123456789 >"conftest.in"
5937 while :
5939 cat "conftest.in" "conftest.in" >"conftest.tmp"
5940 mv "conftest.tmp" "conftest.in"
5941 cp "conftest.in" "conftest.nl"
5942 $as_echo 'EGREP' >> "conftest.nl"
5943 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5944 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5945 as_fn_arith $ac_count + 1 && ac_count=$as_val
5946 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5947 # Best one so far, save it but keep looking for a better one
5948 ac_cv_path_EGREP="$ac_path_EGREP"
5949 ac_path_EGREP_max=$ac_count
5951 # 10*(2^10) chars as input seems more than enough
5952 test $ac_count -gt 10 && break
5953 done
5954 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5955 esac
5957 $ac_path_EGREP_found && break 3
5958 done
5959 done
5960 done
5961 IFS=$as_save_IFS
5962 if test -z "$ac_cv_path_EGREP"; then
5963 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5965 else
5966 ac_cv_path_EGREP=$EGREP
5971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5972 $as_echo "$ac_cv_path_EGREP" >&6; }
5973 EGREP="$ac_cv_path_EGREP"
5978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
5979 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
5980 if test "${gl_cv_c_amsterdam_compiler+set}" = set; then :
5981 $as_echo_n "(cached) " >&6
5982 else
5984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5985 /* end confdefs.h. */
5987 #ifdef __ACK__
5988 Amsterdam
5989 #endif
5991 _ACEOF
5992 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5993 $EGREP "Amsterdam" >/dev/null 2>&1; then :
5994 gl_cv_c_amsterdam_compiler=yes
5995 else
5996 gl_cv_c_amsterdam_compiler=no
5998 rm -f conftest*
6002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
6003 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
6004 if test -z "$AR"; then
6005 if test $gl_cv_c_amsterdam_compiler = yes; then
6006 AR='cc -c.a'
6007 if test -z "$ARFLAGS"; then
6008 ARFLAGS='-o'
6010 else
6011 if test -n "$ac_tool_prefix"; then
6012 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6013 set dummy ${ac_tool_prefix}ar; ac_word=$2
6014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6015 $as_echo_n "checking for $ac_word... " >&6; }
6016 if test "${ac_cv_prog_AR+set}" = set; then :
6017 $as_echo_n "(cached) " >&6
6018 else
6019 if test -n "$AR"; then
6020 ac_cv_prog_AR="$AR" # Let the user override the test.
6021 else
6022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6023 for as_dir in $PATH
6025 IFS=$as_save_IFS
6026 test -z "$as_dir" && as_dir=.
6027 for ac_exec_ext in '' $ac_executable_extensions; do
6028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6029 ac_cv_prog_AR="${ac_tool_prefix}ar"
6030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6031 break 2
6033 done
6034 done
6035 IFS=$as_save_IFS
6039 AR=$ac_cv_prog_AR
6040 if test -n "$AR"; then
6041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6042 $as_echo "$AR" >&6; }
6043 else
6044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6045 $as_echo "no" >&6; }
6050 if test -z "$ac_cv_prog_AR"; then
6051 ac_ct_AR=$AR
6052 # Extract the first word of "ar", so it can be a program name with args.
6053 set dummy ar; ac_word=$2
6054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6055 $as_echo_n "checking for $ac_word... " >&6; }
6056 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6057 $as_echo_n "(cached) " >&6
6058 else
6059 if test -n "$ac_ct_AR"; then
6060 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6061 else
6062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6063 for as_dir in $PATH
6065 IFS=$as_save_IFS
6066 test -z "$as_dir" && as_dir=.
6067 for ac_exec_ext in '' $ac_executable_extensions; do
6068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6069 ac_cv_prog_ac_ct_AR="ar"
6070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6071 break 2
6073 done
6074 done
6075 IFS=$as_save_IFS
6079 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6080 if test -n "$ac_ct_AR"; then
6081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6082 $as_echo "$ac_ct_AR" >&6; }
6083 else
6084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6085 $as_echo "no" >&6; }
6088 if test "x$ac_ct_AR" = x; then
6089 AR="ar"
6090 else
6091 case $cross_compiling:$ac_tool_warned in
6092 yes:)
6093 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6094 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6095 ac_tool_warned=yes ;;
6096 esac
6097 AR=$ac_ct_AR
6099 else
6100 AR="$ac_cv_prog_AR"
6103 if test -z "$ARFLAGS"; then
6104 ARFLAGS='cru'
6107 else
6108 if test -z "$ARFLAGS"; then
6109 ARFLAGS='cru'
6114 if test -z "$RANLIB"; then
6115 if test $gl_cv_c_amsterdam_compiler = yes; then
6116 RANLIB=':'
6117 else
6118 if test -n "$ac_tool_prefix"; then
6119 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6120 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6122 $as_echo_n "checking for $ac_word... " >&6; }
6123 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6124 $as_echo_n "(cached) " >&6
6125 else
6126 if test -n "$RANLIB"; then
6127 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6128 else
6129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6130 for as_dir in $PATH
6132 IFS=$as_save_IFS
6133 test -z "$as_dir" && as_dir=.
6134 for ac_exec_ext in '' $ac_executable_extensions; do
6135 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6136 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6138 break 2
6140 done
6141 done
6142 IFS=$as_save_IFS
6146 RANLIB=$ac_cv_prog_RANLIB
6147 if test -n "$RANLIB"; then
6148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6149 $as_echo "$RANLIB" >&6; }
6150 else
6151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6152 $as_echo "no" >&6; }
6157 if test -z "$ac_cv_prog_RANLIB"; then
6158 ac_ct_RANLIB=$RANLIB
6159 # Extract the first word of "ranlib", so it can be a program name with args.
6160 set dummy ranlib; ac_word=$2
6161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6162 $as_echo_n "checking for $ac_word... " >&6; }
6163 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6164 $as_echo_n "(cached) " >&6
6165 else
6166 if test -n "$ac_ct_RANLIB"; then
6167 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6168 else
6169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6170 for as_dir in $PATH
6172 IFS=$as_save_IFS
6173 test -z "$as_dir" && as_dir=.
6174 for ac_exec_ext in '' $ac_executable_extensions; do
6175 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6176 ac_cv_prog_ac_ct_RANLIB="ranlib"
6177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6178 break 2
6180 done
6181 done
6182 IFS=$as_save_IFS
6186 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6187 if test -n "$ac_ct_RANLIB"; then
6188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6189 $as_echo "$ac_ct_RANLIB" >&6; }
6190 else
6191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6192 $as_echo "no" >&6; }
6195 if test "x$ac_ct_RANLIB" = x; then
6196 RANLIB=":"
6197 else
6198 case $cross_compiling:$ac_tool_warned in
6199 yes:)
6200 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6201 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6202 ac_tool_warned=yes ;;
6203 esac
6204 RANLIB=$ac_ct_RANLIB
6206 else
6207 RANLIB="$ac_cv_prog_RANLIB"
6214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6215 $as_echo_n "checking for ANSI C header files... " >&6; }
6216 if test "${ac_cv_header_stdc+set}" = set; then :
6217 $as_echo_n "(cached) " >&6
6218 else
6219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6220 /* end confdefs.h. */
6221 #include <stdlib.h>
6222 #include <stdarg.h>
6223 #include <string.h>
6224 #include <float.h>
6227 main ()
6231 return 0;
6233 _ACEOF
6234 if ac_fn_c_try_compile "$LINENO"; then :
6235 ac_cv_header_stdc=yes
6236 else
6237 ac_cv_header_stdc=no
6239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6241 if test $ac_cv_header_stdc = yes; then
6242 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6244 /* end confdefs.h. */
6245 #include <string.h>
6247 _ACEOF
6248 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6249 $EGREP "memchr" >/dev/null 2>&1; then :
6251 else
6252 ac_cv_header_stdc=no
6254 rm -f conftest*
6258 if test $ac_cv_header_stdc = yes; then
6259 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6261 /* end confdefs.h. */
6262 #include <stdlib.h>
6264 _ACEOF
6265 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6266 $EGREP "free" >/dev/null 2>&1; then :
6268 else
6269 ac_cv_header_stdc=no
6271 rm -f conftest*
6275 if test $ac_cv_header_stdc = yes; then
6276 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6277 if test "$cross_compiling" = yes; then :
6279 else
6280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6281 /* end confdefs.h. */
6282 #include <ctype.h>
6283 #include <stdlib.h>
6284 #if ((' ' & 0x0FF) == 0x020)
6285 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6286 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6287 #else
6288 # define ISLOWER(c) \
6289 (('a' <= (c) && (c) <= 'i') \
6290 || ('j' <= (c) && (c) <= 'r') \
6291 || ('s' <= (c) && (c) <= 'z'))
6292 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6293 #endif
6295 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6297 main ()
6299 int i;
6300 for (i = 0; i < 256; i++)
6301 if (XOR (islower (i), ISLOWER (i))
6302 || toupper (i) != TOUPPER (i))
6303 return 2;
6304 return 0;
6306 _ACEOF
6307 if ac_fn_c_try_run "$LINENO"; then :
6309 else
6310 ac_cv_header_stdc=no
6312 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6313 conftest.$ac_objext conftest.beam conftest.$ac_ext
6318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6319 $as_echo "$ac_cv_header_stdc" >&6; }
6320 if test $ac_cv_header_stdc = yes; then
6322 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6326 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6327 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6328 inttypes.h stdint.h unistd.h
6329 do :
6330 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6331 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6333 eval as_val=\$$as_ac_Header
6334 if test "x$as_val" = x""yes; then :
6335 cat >>confdefs.h <<_ACEOF
6336 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6337 _ACEOF
6341 done
6347 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6348 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
6349 MINIX=yes
6350 else
6351 MINIX=
6355 if test "$MINIX" = yes; then
6357 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6360 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6363 $as_echo "#define _MINIX 1" >>confdefs.h
6367 case "$host_os" in
6368 hpux*)
6370 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
6373 esac
6376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6377 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6378 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
6379 $as_echo_n "(cached) " >&6
6380 else
6381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6382 /* end confdefs.h. */
6384 # define __EXTENSIONS__ 1
6385 $ac_includes_default
6387 main ()
6391 return 0;
6393 _ACEOF
6394 if ac_fn_c_try_compile "$LINENO"; then :
6395 ac_cv_safe_to_define___extensions__=yes
6396 else
6397 ac_cv_safe_to_define___extensions__=no
6399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6402 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6403 test $ac_cv_safe_to_define___extensions__ = yes &&
6404 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6406 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6408 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
6410 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6412 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6414 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6423 # Check whether --enable-largefile was given.
6424 if test "${enable_largefile+set}" = set; then :
6425 enableval=$enable_largefile;
6428 if test "$enable_largefile" != no; then
6430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6431 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6432 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
6433 $as_echo_n "(cached) " >&6
6434 else
6435 ac_cv_sys_largefile_CC=no
6436 if test "$GCC" != yes; then
6437 ac_save_CC=$CC
6438 while :; do
6439 # IRIX 6.2 and later do not support large files by default,
6440 # so use the C compiler's -n32 option if that helps.
6441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6442 /* end confdefs.h. */
6443 #include <sys/types.h>
6444 /* Check that off_t can represent 2**63 - 1 correctly.
6445 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6446 since some C++ compilers masquerading as C compilers
6447 incorrectly reject 9223372036854775807. */
6448 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6449 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6450 && LARGE_OFF_T % 2147483647 == 1)
6451 ? 1 : -1];
6453 main ()
6457 return 0;
6459 _ACEOF
6460 if ac_fn_c_try_compile "$LINENO"; then :
6461 break
6463 rm -f core conftest.err conftest.$ac_objext
6464 CC="$CC -n32"
6465 if ac_fn_c_try_compile "$LINENO"; then :
6466 ac_cv_sys_largefile_CC=' -n32'; break
6468 rm -f core conftest.err conftest.$ac_objext
6469 break
6470 done
6471 CC=$ac_save_CC
6472 rm -f conftest.$ac_ext
6475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6476 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6477 if test "$ac_cv_sys_largefile_CC" != no; then
6478 CC=$CC$ac_cv_sys_largefile_CC
6481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6482 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6483 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
6484 $as_echo_n "(cached) " >&6
6485 else
6486 while :; do
6487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6488 /* end confdefs.h. */
6489 #include <sys/types.h>
6490 /* Check that off_t can represent 2**63 - 1 correctly.
6491 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6492 since some C++ compilers masquerading as C compilers
6493 incorrectly reject 9223372036854775807. */
6494 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6495 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6496 && LARGE_OFF_T % 2147483647 == 1)
6497 ? 1 : -1];
6499 main ()
6503 return 0;
6505 _ACEOF
6506 if ac_fn_c_try_compile "$LINENO"; then :
6507 ac_cv_sys_file_offset_bits=no; break
6509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6511 /* end confdefs.h. */
6512 #define _FILE_OFFSET_BITS 64
6513 #include <sys/types.h>
6514 /* Check that off_t can represent 2**63 - 1 correctly.
6515 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6516 since some C++ compilers masquerading as C compilers
6517 incorrectly reject 9223372036854775807. */
6518 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6519 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6520 && LARGE_OFF_T % 2147483647 == 1)
6521 ? 1 : -1];
6523 main ()
6527 return 0;
6529 _ACEOF
6530 if ac_fn_c_try_compile "$LINENO"; then :
6531 ac_cv_sys_file_offset_bits=64; break
6533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6534 ac_cv_sys_file_offset_bits=unknown
6535 break
6536 done
6538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6539 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6540 case $ac_cv_sys_file_offset_bits in #(
6541 no | unknown) ;;
6543 cat >>confdefs.h <<_ACEOF
6544 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6545 _ACEOF
6547 esac
6548 rm -rf conftest*
6549 if test $ac_cv_sys_file_offset_bits = unknown; then
6550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6551 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6552 if test "${ac_cv_sys_large_files+set}" = set; then :
6553 $as_echo_n "(cached) " >&6
6554 else
6555 while :; do
6556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6557 /* end confdefs.h. */
6558 #include <sys/types.h>
6559 /* Check that off_t can represent 2**63 - 1 correctly.
6560 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6561 since some C++ compilers masquerading as C compilers
6562 incorrectly reject 9223372036854775807. */
6563 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6564 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6565 && LARGE_OFF_T % 2147483647 == 1)
6566 ? 1 : -1];
6568 main ()
6572 return 0;
6574 _ACEOF
6575 if ac_fn_c_try_compile "$LINENO"; then :
6576 ac_cv_sys_large_files=no; break
6578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6580 /* end confdefs.h. */
6581 #define _LARGE_FILES 1
6582 #include <sys/types.h>
6583 /* Check that off_t can represent 2**63 - 1 correctly.
6584 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6585 since some C++ compilers masquerading as C compilers
6586 incorrectly reject 9223372036854775807. */
6587 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6588 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6589 && LARGE_OFF_T % 2147483647 == 1)
6590 ? 1 : -1];
6592 main ()
6596 return 0;
6598 _ACEOF
6599 if ac_fn_c_try_compile "$LINENO"; then :
6600 ac_cv_sys_large_files=1; break
6602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6603 ac_cv_sys_large_files=unknown
6604 break
6605 done
6607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6608 $as_echo "$ac_cv_sys_large_files" >&6; }
6609 case $ac_cv_sys_large_files in #(
6610 no | unknown) ;;
6612 cat >>confdefs.h <<_ACEOF
6613 #define _LARGE_FILES $ac_cv_sys_large_files
6614 _ACEOF
6616 esac
6617 rm -rf conftest*
6623 case $ac_cv_prog_cc_stdc in #(
6624 no) :
6625 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6626 *) :
6627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
6628 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
6629 if test "${ac_cv_prog_cc_c99+set}" = set; then :
6630 $as_echo_n "(cached) " >&6
6631 else
6632 ac_cv_prog_cc_c99=no
6633 ac_save_CC=$CC
6634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6635 /* end confdefs.h. */
6636 #include <stdarg.h>
6637 #include <stdbool.h>
6638 #include <stdlib.h>
6639 #include <wchar.h>
6640 #include <stdio.h>
6642 // Check varargs macros. These examples are taken from C99 6.10.3.5.
6643 #define debug(...) fprintf (stderr, __VA_ARGS__)
6644 #define showlist(...) puts (#__VA_ARGS__)
6645 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6646 static void
6647 test_varargs_macros (void)
6649 int x = 1234;
6650 int y = 5678;
6651 debug ("Flag");
6652 debug ("X = %d\n", x);
6653 showlist (The first, second, and third items.);
6654 report (x>y, "x is %d but y is %d", x, y);
6657 // Check long long types.
6658 #define BIG64 18446744073709551615ull
6659 #define BIG32 4294967295ul
6660 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6661 #if !BIG_OK
6662 your preprocessor is broken;
6663 #endif
6664 #if BIG_OK
6665 #else
6666 your preprocessor is broken;
6667 #endif
6668 static long long int bignum = -9223372036854775807LL;
6669 static unsigned long long int ubignum = BIG64;
6671 struct incomplete_array
6673 int datasize;
6674 double data[];
6677 struct named_init {
6678 int number;
6679 const wchar_t *name;
6680 double average;
6683 typedef const char *ccp;
6685 static inline int
6686 test_restrict (ccp restrict text)
6688 // See if C++-style comments work.
6689 // Iterate through items via the restricted pointer.
6690 // Also check for declarations in for loops.
6691 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6692 continue;
6693 return 0;
6696 // Check varargs and va_copy.
6697 static void
6698 test_varargs (const char *format, ...)
6700 va_list args;
6701 va_start (args, format);
6702 va_list args_copy;
6703 va_copy (args_copy, args);
6705 const char *str;
6706 int number;
6707 float fnumber;
6709 while (*format)
6711 switch (*format++)
6713 case 's': // string
6714 str = va_arg (args_copy, const char *);
6715 break;
6716 case 'd': // int
6717 number = va_arg (args_copy, int);
6718 break;
6719 case 'f': // float
6720 fnumber = va_arg (args_copy, double);
6721 break;
6722 default:
6723 break;
6726 va_end (args_copy);
6727 va_end (args);
6731 main ()
6734 // Check bool.
6735 _Bool success = false;
6737 // Check restrict.
6738 if (test_restrict ("String literal") == 0)
6739 success = true;
6740 char *restrict newvar = "Another string";
6742 // Check varargs.
6743 test_varargs ("s, d' f .", "string", 65, 34.234);
6744 test_varargs_macros ();
6746 // Check flexible array members.
6747 struct incomplete_array *ia =
6748 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6749 ia->datasize = 10;
6750 for (int i = 0; i < ia->datasize; ++i)
6751 ia->data[i] = i * 1.234;
6753 // Check named initializers.
6754 struct named_init ni = {
6755 .number = 34,
6756 .name = L"Test wide string",
6757 .average = 543.34343,
6760 ni.number = 58;
6762 int dynamic_array[ni.number];
6763 dynamic_array[ni.number - 1] = 543;
6765 // work around unused variable warnings
6766 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6767 || dynamic_array[ni.number - 1] != 543);
6770 return 0;
6772 _ACEOF
6773 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
6775 CC="$ac_save_CC $ac_arg"
6776 if ac_fn_c_try_compile "$LINENO"; then :
6777 ac_cv_prog_cc_c99=$ac_arg
6779 rm -f core conftest.err conftest.$ac_objext
6780 test "x$ac_cv_prog_cc_c99" != "xno" && break
6781 done
6782 rm -f conftest.$ac_ext
6783 CC=$ac_save_CC
6786 # AC_CACHE_VAL
6787 case "x$ac_cv_prog_cc_c99" in
6789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6790 $as_echo "none needed" >&6; } ;;
6791 xno)
6792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6793 $as_echo "unsupported" >&6; } ;;
6795 CC="$CC $ac_cv_prog_cc_c99"
6796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
6797 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6798 esac
6799 if test "x$ac_cv_prog_cc_c99" != xno; then :
6800 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
6801 else
6802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6803 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6804 if test "${ac_cv_prog_cc_c89+set}" = set; then :
6805 $as_echo_n "(cached) " >&6
6806 else
6807 ac_cv_prog_cc_c89=no
6808 ac_save_CC=$CC
6809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6810 /* end confdefs.h. */
6811 #include <stdarg.h>
6812 #include <stdio.h>
6813 #include <sys/types.h>
6814 #include <sys/stat.h>
6815 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6816 struct buf { int x; };
6817 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6818 static char *e (p, i)
6819 char **p;
6820 int i;
6822 return p[i];
6824 static char *f (char * (*g) (char **, int), char **p, ...)
6826 char *s;
6827 va_list v;
6828 va_start (v,p);
6829 s = g (p, va_arg (v,int));
6830 va_end (v);
6831 return s;
6834 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6835 function prototypes and stuff, but not '\xHH' hex character constants.
6836 These don't provoke an error unfortunately, instead are silently treated
6837 as 'x'. The following induces an error, until -std is added to get
6838 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6839 array size at least. It's necessary to write '\x00'==0 to get something
6840 that's true only with -std. */
6841 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6843 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6844 inside strings and character constants. */
6845 #define FOO(x) 'x'
6846 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6848 int test (int i, double x);
6849 struct s1 {int (*f) (int a);};
6850 struct s2 {int (*f) (double a);};
6851 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6852 int argc;
6853 char **argv;
6855 main ()
6857 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6859 return 0;
6861 _ACEOF
6862 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6863 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6865 CC="$ac_save_CC $ac_arg"
6866 if ac_fn_c_try_compile "$LINENO"; then :
6867 ac_cv_prog_cc_c89=$ac_arg
6869 rm -f core conftest.err conftest.$ac_objext
6870 test "x$ac_cv_prog_cc_c89" != "xno" && break
6871 done
6872 rm -f conftest.$ac_ext
6873 CC=$ac_save_CC
6876 # AC_CACHE_VAL
6877 case "x$ac_cv_prog_cc_c89" in
6879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6880 $as_echo "none needed" >&6; } ;;
6881 xno)
6882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6883 $as_echo "unsupported" >&6; } ;;
6885 CC="$CC $ac_cv_prog_cc_c89"
6886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6887 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6888 esac
6889 if test "x$ac_cv_prog_cc_c89" != xno; then :
6890 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
6891 else
6892 ac_cv_prog_cc_stdc=no
6897 esac
6898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
6899 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
6900 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
6901 $as_echo_n "(cached) " >&6
6904 case $ac_cv_prog_cc_stdc in #(
6905 no) :
6906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6907 $as_echo "unsupported" >&6; } ;; #(
6908 '') :
6909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6910 $as_echo "none needed" >&6; } ;; #(
6911 *) :
6912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
6913 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
6914 esac
6918 # Code from module alloca-opt:
6919 # Code from module allocator:
6920 # Code from module careadlinkat:
6921 # Code from module crypto/md5:
6922 # Code from module crypto/sha1:
6923 # Code from module crypto/sha256:
6924 # Code from module crypto/sha512:
6925 # Code from module dosname:
6926 # Code from module dtoastr:
6927 # Code from module dup2:
6928 # Code from module extensions:
6930 # Code from module filemode:
6931 # Code from module getloadavg:
6932 # Code from module getopt-gnu:
6933 # Code from module getopt-posix:
6934 # Code from module gettext-h:
6935 # Code from module ignore-value:
6936 # Code from module include_next:
6937 # Code from module intprops:
6938 # Code from module inttypes-incomplete:
6939 # Code from module largefile:
6941 # Code from module lstat:
6942 # Code from module mktime:
6943 # Code from module multiarch:
6944 # Code from module nocrash:
6945 # Code from module pthread_sigmask:
6946 # Code from module readlink:
6947 # Code from module signal:
6948 # Code from module sigprocmask:
6949 # Code from module snippet/_Noreturn:
6950 # Code from module snippet/arg-nonnull:
6951 # Code from module snippet/c++defs:
6952 # Code from module snippet/warn-on-use:
6953 # Code from module socklen:
6954 # Code from module ssize_t:
6955 # Code from module stat:
6956 # Code from module stdarg:
6958 # Code from module stdbool:
6959 # Code from module stddef:
6960 # Code from module stdint:
6961 # Code from module stdio:
6962 # Code from module stdlib:
6963 # Code from module strftime:
6964 # Code from module strtoimax:
6965 # Code from module strtoll:
6966 # Code from module strtoull:
6967 # Code from module strtoumax:
6968 # Code from module symlink:
6969 # Code from module sys_stat:
6970 # Code from module time:
6971 # Code from module time_r:
6972 # Code from module u64:
6973 # Code from module unistd:
6974 # Code from module verify:
6977 # On Suns, sometimes $CPP names a directory.
6978 if test -n "$CPP" && test -d "$CPP"; then
6979 CPP=
6982 ## If not using gcc, and on Solaris, and no CPP specified, see if
6983 ## using a Sun compiler, which needs -Xs to prevent whitespace.
6984 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
6985 test x"$CPP" = x; then
6986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using a Sun C compiler" >&5
6987 $as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
6988 if test "${emacs_cv_sunpro_c+set}" = set; then :
6989 $as_echo_n "(cached) " >&6
6990 else
6991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6992 /* end confdefs.h. */
6995 main ()
6997 #ifndef __SUNPRO_C
6998 fail;
6999 #endif
7002 return 0;
7004 _ACEOF
7005 if ac_fn_c_try_link "$LINENO"; then :
7006 emacs_cv_sunpro_c=yes
7007 else
7008 emacs_cv_sunpro_c=no
7010 rm -f core conftest.err conftest.$ac_objext \
7011 conftest$ac_exeext conftest.$ac_ext
7014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_sunpro_c" >&5
7015 $as_echo "$emacs_cv_sunpro_c" >&6; }
7017 if test x"$emacs_cv_sunpro_c" = xyes; then
7018 NON_GNU_CPP="$CC -E -Xs"
7022 #### Some systems specify a CPP to use unless we are using GCC.
7023 #### Now that we know whether we are using GCC, we can decide whether
7024 #### to use that one.
7025 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
7026 then
7027 CPP="$NON_GNU_CPP"
7030 #### Some systems specify a CC to use unless we are using GCC.
7031 #### Now that we know whether we are using GCC, we can decide whether
7032 #### to use that one.
7033 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
7034 test x$cc_specified != xyes
7035 then
7036 CC="$NON_GNU_CC"
7039 if test x$GCC = xyes; then
7040 test "x$GCC_TEST_OPTIONS" != x && CC="$CC $GCC_TEST_OPTIONS"
7041 else
7042 test "x$NON_GCC_TEST_OPTIONS" != x && CC="$CC $NON_GCC_TEST_OPTIONS"
7045 ### Use -Wdeclaration-after-statement if the compiler supports it
7046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wdeclaration-after-statement" >&5
7047 $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
7048 SAVE_CFLAGS="$CFLAGS"
7049 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
7050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7051 /* end confdefs.h. */
7054 main ()
7058 return 0;
7060 _ACEOF
7061 if ac_fn_c_try_compile "$LINENO"; then :
7062 has_option=yes
7063 else
7064 has_option=no
7066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7067 if test $has_option = yes; then
7068 C_WARNINGS_SWITCH="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
7070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
7071 $as_echo "$has_option" >&6; }
7072 CFLAGS="$SAVE_CFLAGS"
7073 unset has_option
7074 unset SAVE_CFLAGS
7076 ### Use -Wold-style-definition if the compiler supports it
7077 # This can be removed when conversion to standard C is finished.
7078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wold-style-definition" >&5
7079 $as_echo_n "checking whether gcc understands -Wold-style-definition... " >&6; }
7080 SAVE_CFLAGS="$CFLAGS"
7081 CFLAGS="$CFLAGS -Wold-style-definition"
7082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7083 /* end confdefs.h. */
7086 main ()
7090 return 0;
7092 _ACEOF
7093 if ac_fn_c_try_compile "$LINENO"; then :
7094 has_option=yes
7095 else
7096 has_option=no
7098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7099 if test $has_option = yes; then
7100 C_WARNINGS_SWITCH="-Wold-style-definition $C_WARNINGS_SWITCH"
7102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
7103 $as_echo "$has_option" >&6; }
7104 CFLAGS="$SAVE_CFLAGS"
7105 unset has_option
7106 unset SAVE_CFLAGS
7108 ### Use -Wimplicit-function-declaration if the compiler supports it
7109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wimplicit-function-declaration" >&5
7110 $as_echo_n "checking whether gcc understands -Wimplicit-function-declaration... " >&6; }
7111 SAVE_CFLAGS="$CFLAGS"
7112 CFLAGS="$CFLAGS -Wimplicit-function-declaration"
7113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7114 /* end confdefs.h. */
7117 main ()
7121 return 0;
7123 _ACEOF
7124 if ac_fn_c_try_compile "$LINENO"; then :
7125 has_option=yes
7126 else
7127 has_option=no
7129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7130 if test $has_option = yes; then
7131 C_WARNINGS_SWITCH="-Wimplicit-function-declaration $C_WARNINGS_SWITCH"
7133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
7134 $as_echo "$has_option" >&6; }
7135 CFLAGS="$SAVE_CFLAGS"
7136 unset has_option
7137 unset SAVE_CFLAGS
7142 #### Some other nice autoconf tests.
7144 ac_ext=c
7145 ac_cpp='$CPP $CPPFLAGS'
7146 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7147 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7148 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7150 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7151 # On Suns, sometimes $CPP names a directory.
7152 if test -n "$CPP" && test -d "$CPP"; then
7153 CPP=
7155 if test -z "$CPP"; then
7156 if test "${ac_cv_prog_CPP+set}" = set; then :
7157 $as_echo_n "(cached) " >&6
7158 else
7159 # Double quotes because CPP needs to be expanded
7160 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7162 ac_preproc_ok=false
7163 for ac_c_preproc_warn_flag in '' yes
7165 # Use a header file that comes with gcc, so configuring glibc
7166 # with a fresh cross-compiler works.
7167 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7168 # <limits.h> exists even on freestanding compilers.
7169 # On the NeXT, cc -E runs the code through the compiler's parser,
7170 # not just through cpp. "Syntax error" is here to catch this case.
7171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7172 /* end confdefs.h. */
7173 #ifdef __STDC__
7174 # include <limits.h>
7175 #else
7176 # include <assert.h>
7177 #endif
7178 Syntax error
7179 _ACEOF
7180 if ac_fn_c_try_cpp "$LINENO"; then :
7182 else
7183 # Broken: fails on valid input.
7184 continue
7186 rm -f conftest.err conftest.$ac_ext
7188 # OK, works on sane cases. Now check whether nonexistent headers
7189 # can be detected and how.
7190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7191 /* end confdefs.h. */
7192 #include <ac_nonexistent.h>
7193 _ACEOF
7194 if ac_fn_c_try_cpp "$LINENO"; then :
7195 # Broken: success on invalid input.
7196 continue
7197 else
7198 # Passes both tests.
7199 ac_preproc_ok=:
7200 break
7202 rm -f conftest.err conftest.$ac_ext
7204 done
7205 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7206 rm -f conftest.err conftest.$ac_ext
7207 if $ac_preproc_ok; then :
7208 break
7211 done
7212 ac_cv_prog_CPP=$CPP
7215 CPP=$ac_cv_prog_CPP
7216 else
7217 ac_cv_prog_CPP=$CPP
7219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7220 $as_echo "$CPP" >&6; }
7221 ac_preproc_ok=false
7222 for ac_c_preproc_warn_flag in '' yes
7224 # Use a header file that comes with gcc, so configuring glibc
7225 # with a fresh cross-compiler works.
7226 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7227 # <limits.h> exists even on freestanding compilers.
7228 # On the NeXT, cc -E runs the code through the compiler's parser,
7229 # not just through cpp. "Syntax error" is here to catch this case.
7230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7231 /* end confdefs.h. */
7232 #ifdef __STDC__
7233 # include <limits.h>
7234 #else
7235 # include <assert.h>
7236 #endif
7237 Syntax error
7238 _ACEOF
7239 if ac_fn_c_try_cpp "$LINENO"; then :
7241 else
7242 # Broken: fails on valid input.
7243 continue
7245 rm -f conftest.err conftest.$ac_ext
7247 # OK, works on sane cases. Now check whether nonexistent headers
7248 # can be detected and how.
7249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7250 /* end confdefs.h. */
7251 #include <ac_nonexistent.h>
7252 _ACEOF
7253 if ac_fn_c_try_cpp "$LINENO"; then :
7254 # Broken: success on invalid input.
7255 continue
7256 else
7257 # Passes both tests.
7258 ac_preproc_ok=:
7259 break
7261 rm -f conftest.err conftest.$ac_ext
7263 done
7264 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7265 rm -f conftest.err conftest.$ac_ext
7266 if $ac_preproc_ok; then :
7268 else
7269 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7270 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7271 as_fn_error "C preprocessor \"$CPP\" fails sanity check
7272 See \`config.log' for more details." "$LINENO" 5; }
7275 ac_ext=c
7276 ac_cpp='$CPP $CPPFLAGS'
7277 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7278 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7279 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7282 if test "x$RANLIB" = x; then
7283 if test -n "$ac_tool_prefix"; then
7284 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7285 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7287 $as_echo_n "checking for $ac_word... " >&6; }
7288 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7289 $as_echo_n "(cached) " >&6
7290 else
7291 if test -n "$RANLIB"; then
7292 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7293 else
7294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7295 for as_dir in $PATH
7297 IFS=$as_save_IFS
7298 test -z "$as_dir" && as_dir=.
7299 for ac_exec_ext in '' $ac_executable_extensions; do
7300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7301 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7303 break 2
7305 done
7306 done
7307 IFS=$as_save_IFS
7311 RANLIB=$ac_cv_prog_RANLIB
7312 if test -n "$RANLIB"; then
7313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7314 $as_echo "$RANLIB" >&6; }
7315 else
7316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7317 $as_echo "no" >&6; }
7322 if test -z "$ac_cv_prog_RANLIB"; then
7323 ac_ct_RANLIB=$RANLIB
7324 # Extract the first word of "ranlib", so it can be a program name with args.
7325 set dummy ranlib; ac_word=$2
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7327 $as_echo_n "checking for $ac_word... " >&6; }
7328 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7329 $as_echo_n "(cached) " >&6
7330 else
7331 if test -n "$ac_ct_RANLIB"; then
7332 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7333 else
7334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7335 for as_dir in $PATH
7337 IFS=$as_save_IFS
7338 test -z "$as_dir" && as_dir=.
7339 for ac_exec_ext in '' $ac_executable_extensions; do
7340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7341 ac_cv_prog_ac_ct_RANLIB="ranlib"
7342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7343 break 2
7345 done
7346 done
7347 IFS=$as_save_IFS
7351 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7352 if test -n "$ac_ct_RANLIB"; then
7353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7354 $as_echo "$ac_ct_RANLIB" >&6; }
7355 else
7356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7357 $as_echo "no" >&6; }
7360 if test "x$ac_ct_RANLIB" = x; then
7361 RANLIB=":"
7362 else
7363 case $cross_compiling:$ac_tool_warned in
7364 yes:)
7365 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7366 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7367 ac_tool_warned=yes ;;
7368 esac
7369 RANLIB=$ac_ct_RANLIB
7371 else
7372 RANLIB="$ac_cv_prog_RANLIB"
7377 ## Although we're running on an amd64 kernel, we're actually compiling for
7378 ## the x86 architecture. The user should probably have provided an
7379 ## explicit --build to `configure', but if everything else than the kernel
7380 ## is running in i386 mode, we can help them out.
7381 if test "$machine" = "amdx86-64"; then
7382 ac_fn_c_check_decl "$LINENO" "i386" "ac_cv_have_decl_i386" "$ac_includes_default"
7383 if test "x$ac_cv_have_decl_i386" = x""yes; then :
7387 if test "$ac_cv_have_decl_i386" = "yes"; then
7388 canonical=`echo "$canonical" | sed -e 's/^amd64/i386/' -e 's/^x86_64/i386/'`
7389 machine=intel386
7390 machfile="m/${machine}.h"
7394 # Extract the first word of "install-info", so it can be a program name with args.
7395 set dummy install-info; ac_word=$2
7396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7397 $as_echo_n "checking for $ac_word... " >&6; }
7398 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
7399 $as_echo_n "(cached) " >&6
7400 else
7401 case $INSTALL_INFO in
7402 [\\/]* | ?:[\\/]*)
7403 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
7406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7407 for as_dir in $PATH
7409 IFS=$as_save_IFS
7410 test -z "$as_dir" && as_dir=.
7411 for ac_exec_ext in '' $ac_executable_extensions; do
7412 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7413 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
7414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7415 break 2
7417 done
7418 done
7419 IFS=$as_save_IFS
7422 esac
7424 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
7425 if test -n "$INSTALL_INFO"; then
7426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
7427 $as_echo "$INSTALL_INFO" >&6; }
7428 else
7429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7430 $as_echo "no" >&6; }
7434 # Extract the first word of "install-info", so it can be a program name with args.
7435 set dummy install-info; ac_word=$2
7436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7437 $as_echo_n "checking for $ac_word... " >&6; }
7438 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
7439 $as_echo_n "(cached) " >&6
7440 else
7441 case $INSTALL_INFO in
7442 [\\/]* | ?:[\\/]*)
7443 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
7446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7447 for as_dir in /usr/sbin
7449 IFS=$as_save_IFS
7450 test -z "$as_dir" && as_dir=.
7451 for ac_exec_ext in '' $ac_executable_extensions; do
7452 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7453 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
7454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7455 break 2
7457 done
7458 done
7459 IFS=$as_save_IFS
7462 esac
7464 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
7465 if test -n "$INSTALL_INFO"; then
7466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
7467 $as_echo "$INSTALL_INFO" >&6; }
7468 else
7469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7470 $as_echo "no" >&6; }
7474 # Extract the first word of "install-info", so it can be a program name with args.
7475 set dummy install-info; ac_word=$2
7476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7477 $as_echo_n "checking for $ac_word... " >&6; }
7478 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
7479 $as_echo_n "(cached) " >&6
7480 else
7481 case $INSTALL_INFO in
7482 [\\/]* | ?:[\\/]*)
7483 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
7486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7487 for as_dir in /sbin
7489 IFS=$as_save_IFS
7490 test -z "$as_dir" && as_dir=.
7491 for ac_exec_ext in '' $ac_executable_extensions; do
7492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7493 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
7494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7495 break 2
7497 done
7498 done
7499 IFS=$as_save_IFS
7501 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
7503 esac
7505 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
7506 if test -n "$INSTALL_INFO"; then
7507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
7508 $as_echo "$INSTALL_INFO" >&6; }
7509 else
7510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7511 $as_echo "no" >&6; }
7515 # Extract the first word of "gzip", so it can be a program name with args.
7516 set dummy gzip; ac_word=$2
7517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7518 $as_echo_n "checking for $ac_word... " >&6; }
7519 if test "${ac_cv_path_GZIP_PROG+set}" = set; then :
7520 $as_echo_n "(cached) " >&6
7521 else
7522 case $GZIP_PROG in
7523 [\\/]* | ?:[\\/]*)
7524 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
7527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7528 for as_dir in $PATH
7530 IFS=$as_save_IFS
7531 test -z "$as_dir" && as_dir=.
7532 for ac_exec_ext in '' $ac_executable_extensions; do
7533 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7534 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
7535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7536 break 2
7538 done
7539 done
7540 IFS=$as_save_IFS
7543 esac
7545 GZIP_PROG=$ac_cv_path_GZIP_PROG
7546 if test -n "$GZIP_PROG"; then
7547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
7548 $as_echo "$GZIP_PROG" >&6; }
7549 else
7550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7551 $as_echo "no" >&6; }
7557 ## Need makeinfo >= 4.6 (?) to build the manuals.
7558 # Extract the first word of "makeinfo", so it can be a program name with args.
7559 set dummy makeinfo; ac_word=$2
7560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7561 $as_echo_n "checking for $ac_word... " >&6; }
7562 if test "${ac_cv_path_MAKEINFO+set}" = set; then :
7563 $as_echo_n "(cached) " >&6
7564 else
7565 case $MAKEINFO in
7566 [\\/]* | ?:[\\/]*)
7567 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
7570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7571 for as_dir in $PATH
7573 IFS=$as_save_IFS
7574 test -z "$as_dir" && as_dir=.
7575 for ac_exec_ext in '' $ac_executable_extensions; do
7576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7577 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
7578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7579 break 2
7581 done
7582 done
7583 IFS=$as_save_IFS
7585 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
7587 esac
7589 MAKEINFO=$ac_cv_path_MAKEINFO
7590 if test -n "$MAKEINFO"; then
7591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7592 $as_echo "$MAKEINFO" >&6; }
7593 else
7594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7595 $as_echo "no" >&6; }
7599 if test "$MAKEINFO" != "no" && \
7600 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
7601 MAKEINFO=no
7604 ## Makeinfo is unusual. For a released Emacs, the manuals are
7605 ## pre-built, and not deleted by the normal clean rules. makeinfo is
7606 ## therefore in the category of "special tools" not normally required, which
7607 ## configure does not have to check for (eg autoconf itself).
7608 ## In a Bazaar checkout on the other hand, the manuals are not included.
7609 ## So makeinfo is a requirement to build from Bazaar, and configure
7610 ## should test for it as it does for any other build requirement.
7611 ## We use the presence of $srcdir/info/emacs to distinguish a release,
7612 ## with pre-built manuals, from a Bazaar checkout.
7613 HAVE_MAKEINFO=yes
7615 if test "$MAKEINFO" = "no"; then
7616 MAKEINFO=makeinfo
7617 if test "x${with_makeinfo}" = "xno"; then
7618 HAVE_MAKEINFO=no
7619 elif test ! -e $srcdir/info/emacs; then
7620 as_fn_error "You do not seem to have makeinfo >= 4.6, and your
7621 source tree does not seem to have pre-built manuals in the \`info' directory.
7622 Either install a suitable version of makeinfo, or re-run configure
7623 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
7629 if test x$GCC = xyes; then
7630 test "x$GCC_LINK_TEST_OPTIONS" != x && \
7631 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
7632 else
7633 test "x$NON_GCC_LINK_TEST_OPTIONS" != x && \
7634 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
7638 late_LDFLAGS=$LDFLAGS
7639 if test x$GCC = xyes; then
7640 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
7641 else
7642 LDFLAGS="$LDFLAGS -znocombreloc"
7645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
7646 $as_echo_n "checking for -znocombreloc... " >&6; }
7647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7648 /* end confdefs.h. */
7651 main ()
7655 return 0;
7657 _ACEOF
7658 if ac_fn_c_try_link "$LINENO"; then :
7659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7660 $as_echo "yes" >&6; }
7661 else
7662 LDFLAGS=$late_LDFLAGS
7663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7664 $as_echo "no" >&6; }
7666 rm -f core conftest.err conftest.$ac_objext \
7667 conftest$ac_exeext conftest.$ac_ext
7670 # The value of CPP is a quoted variable reference, so we need to do this
7671 # to get its actual value...
7672 CPP=`eval "echo $CPP"`
7675 test "x$CANNOT_DUMP" = "x" && CANNOT_DUMP=no
7676 case "$opsys" in
7677 your-opsys-here) CANNOT_DUMP=yes ;;
7678 esac
7680 test "$CANNOT_DUMP" = "yes" && \
7682 $as_echo "#define CANNOT_DUMP 1" >>confdefs.h
7688 UNEXEC_OBJ=unexelf.o
7689 case "$opsys" in
7690 # MSDOS uses unexcoff.o
7691 # MSWindows uses unexw32.o
7692 aix4-2)
7693 UNEXEC_OBJ=unexaix.o
7695 cygwin)
7696 UNEXEC_OBJ=unexcw.o
7698 darwin)
7699 UNEXEC_OBJ=unexmacosx.o
7701 hpux10-20 | hpux11)
7702 UNEXEC_OBJ=unexhp9k800.o
7704 sol2-10)
7705 # Use the Solaris dldump() function, called from unexsol.c, to dump
7706 # emacs, instead of the generic ELF dump code found in unexelf.c.
7707 # The resulting binary has a complete symbol table, and is better
7708 # for debugging and other observability tools (debuggers, pstack, etc).
7710 # If you encounter a problem using dldump(), please consider sending
7711 # a message to the OpenSolaris tools-linking mailing list:
7712 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
7714 # It is likely that dldump() works with older Solaris too, but this has
7715 # not been tested, so for now this change is for Solaris 10 or newer.
7716 UNEXEC_OBJ=unexsol.o
7718 esac
7720 LD_SWITCH_SYSTEM=
7721 case "$opsys" in
7722 freebsd)
7723 ## Let `ld' find image libs and similar things in /usr/local/lib.
7724 ## The system compiler, GCC, has apparently been modified to not
7725 ## look there, contrary to what a stock GCC would do.
7726 LD_SWITCH_SYSTEM=-L/usr/local/lib
7729 gnu-linux)
7730 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
7731 case $host_cpu in mips*) LD_SWITCH_SYSTEM="-G 0";; esac
7734 netbsd)
7735 LD_SWITCH_SYSTEM="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
7738 openbsd)
7739 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
7740 ## otherwise Emacs dumps core on elf systems.
7741 LD_SWITCH_SYSTEM="-Z"
7743 esac
7746 ac_link="$ac_link $LD_SWITCH_SYSTEM"
7748 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_AUX,
7749 ## which has not been defined yet. When this was handled with cpp,
7750 ## it was expanded to null when configure sourced the s/*.h file.
7751 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
7752 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
7753 ## (or somesuch), but because it is supposed to go at the _front_
7754 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
7755 ## Compare with the gnu-linux case below, which added to the end
7756 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
7757 ## LD_SWITCH_SYSTEM_TEMACS.
7758 case "$opsys" in
7759 netbsd|openbsd)
7760 ## _AUX_RPATH is like _AUX, but uses -rpath instead of -R.
7761 LD_SWITCH_SYSTEM="\$(LD_SWITCH_X_SITE_AUX_RPATH) $LD_SWITCH_SYSTEM" ;;
7762 esac
7765 C_SWITCH_MACHINE=
7766 if test "$machine" = "alpha"; then
7767 ac_fn_c_check_decl "$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
7768 if test "x$ac_cv_have_decl___ELF__" = x""yes; then :
7772 if test "$ac_cv_have_decl___ELF__" = "yes"; then
7773 ## With ELF, make sure that all common symbols get allocated to in the
7774 ## data section. Otherwise, the dump of temacs may miss variables in
7775 ## the shared library that have been initialized. For example, with
7776 ## GNU libc, __malloc_initialized would normally be resolved to the
7777 ## shared library's .bss section, which is fatal.
7778 if test "x$GCC" = "xyes"; then
7779 C_SWITCH_MACHINE="-fno-common"
7780 else
7781 as_fn_error "What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
7783 else
7784 UNEXEC_OBJ=unexalpha.o
7791 C_SWITCH_SYSTEM=
7792 ## Some programs in src produce warnings saying certain subprograms
7793 ## are too complex and need a MAXMEM value greater than 2000 for
7794 ## additional optimization. --nils@exp-math.uni-essen.de
7795 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
7796 C_SWITCH_SYSTEM="-ma -qmaxmem=4000"
7797 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
7798 ## It is redundant in glibc2, since we define _GNU_SOURCE.
7802 LIBS_SYSTEM=
7803 case "$opsys" in
7804 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
7805 aix4-2) LIBS_SYSTEM="-lrts -lIM -liconv" ;;
7807 freebsd) LIBS_SYSTEM="-lutil" ;;
7809 hpux*) LIBS_SYSTEM="-l:libdld.sl" ;;
7811 sol2*) LIBS_SYSTEM="-lsocket -lnsl" ;;
7813 ## Motif needs -lgen.
7814 unixware) LIBS_SYSTEM="-lsocket -lnsl -lelf -lgen" ;;
7815 esac
7819 ### Make sure subsequent tests use flags consistent with the build flags.
7821 if test x"${OVERRIDE_CPPFLAGS}" != x; then
7822 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
7823 else
7824 CPPFLAGS="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
7827 # Suppress obsolescent Autoconf test for size_t; Emacs assumes C89 or better.
7829 # Likewise for obsolescent test for uid_t, gid_t; Emacs assumes them.
7832 # Check whether --enable-largefile was given.
7833 if test "${enable_largefile+set}" = set; then :
7834 enableval=$enable_largefile;
7837 if test "$enable_largefile" != no; then
7839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
7840 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
7841 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
7842 $as_echo_n "(cached) " >&6
7843 else
7844 ac_cv_sys_largefile_CC=no
7845 if test "$GCC" != yes; then
7846 ac_save_CC=$CC
7847 while :; do
7848 # IRIX 6.2 and later do not support large files by default,
7849 # so use the C compiler's -n32 option if that helps.
7850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7851 /* end confdefs.h. */
7852 #include <sys/types.h>
7853 /* Check that off_t can represent 2**63 - 1 correctly.
7854 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7855 since some C++ compilers masquerading as C compilers
7856 incorrectly reject 9223372036854775807. */
7857 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7858 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7859 && LARGE_OFF_T % 2147483647 == 1)
7860 ? 1 : -1];
7862 main ()
7866 return 0;
7868 _ACEOF
7869 if ac_fn_c_try_compile "$LINENO"; then :
7870 break
7872 rm -f core conftest.err conftest.$ac_objext
7873 CC="$CC -n32"
7874 if ac_fn_c_try_compile "$LINENO"; then :
7875 ac_cv_sys_largefile_CC=' -n32'; break
7877 rm -f core conftest.err conftest.$ac_objext
7878 break
7879 done
7880 CC=$ac_save_CC
7881 rm -f conftest.$ac_ext
7884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
7885 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
7886 if test "$ac_cv_sys_largefile_CC" != no; then
7887 CC=$CC$ac_cv_sys_largefile_CC
7890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
7891 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
7892 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
7893 $as_echo_n "(cached) " >&6
7894 else
7895 while :; do
7896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7897 /* end confdefs.h. */
7898 #include <sys/types.h>
7899 /* Check that off_t can represent 2**63 - 1 correctly.
7900 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7901 since some C++ compilers masquerading as C compilers
7902 incorrectly reject 9223372036854775807. */
7903 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7904 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7905 && LARGE_OFF_T % 2147483647 == 1)
7906 ? 1 : -1];
7908 main ()
7912 return 0;
7914 _ACEOF
7915 if ac_fn_c_try_compile "$LINENO"; then :
7916 ac_cv_sys_file_offset_bits=no; break
7918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7920 /* end confdefs.h. */
7921 #define _FILE_OFFSET_BITS 64
7922 #include <sys/types.h>
7923 /* Check that off_t can represent 2**63 - 1 correctly.
7924 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7925 since some C++ compilers masquerading as C compilers
7926 incorrectly reject 9223372036854775807. */
7927 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7928 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7929 && LARGE_OFF_T % 2147483647 == 1)
7930 ? 1 : -1];
7932 main ()
7936 return 0;
7938 _ACEOF
7939 if ac_fn_c_try_compile "$LINENO"; then :
7940 ac_cv_sys_file_offset_bits=64; break
7942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7943 ac_cv_sys_file_offset_bits=unknown
7944 break
7945 done
7947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
7948 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
7949 case $ac_cv_sys_file_offset_bits in #(
7950 no | unknown) ;;
7952 cat >>confdefs.h <<_ACEOF
7953 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7954 _ACEOF
7956 esac
7957 rm -rf conftest*
7958 if test $ac_cv_sys_file_offset_bits = unknown; then
7959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
7960 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
7961 if test "${ac_cv_sys_large_files+set}" = set; then :
7962 $as_echo_n "(cached) " >&6
7963 else
7964 while :; do
7965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7966 /* end confdefs.h. */
7967 #include <sys/types.h>
7968 /* Check that off_t can represent 2**63 - 1 correctly.
7969 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7970 since some C++ compilers masquerading as C compilers
7971 incorrectly reject 9223372036854775807. */
7972 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7973 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7974 && LARGE_OFF_T % 2147483647 == 1)
7975 ? 1 : -1];
7977 main ()
7981 return 0;
7983 _ACEOF
7984 if ac_fn_c_try_compile "$LINENO"; then :
7985 ac_cv_sys_large_files=no; break
7987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7989 /* end confdefs.h. */
7990 #define _LARGE_FILES 1
7991 #include <sys/types.h>
7992 /* Check that off_t can represent 2**63 - 1 correctly.
7993 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7994 since some C++ compilers masquerading as C compilers
7995 incorrectly reject 9223372036854775807. */
7996 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7997 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7998 && LARGE_OFF_T % 2147483647 == 1)
7999 ? 1 : -1];
8001 main ()
8005 return 0;
8007 _ACEOF
8008 if ac_fn_c_try_compile "$LINENO"; then :
8009 ac_cv_sys_large_files=1; break
8011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8012 ac_cv_sys_large_files=unknown
8013 break
8014 done
8016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
8017 $as_echo "$ac_cv_sys_large_files" >&6; }
8018 case $ac_cv_sys_large_files in #(
8019 no | unknown) ;;
8021 cat >>confdefs.h <<_ACEOF
8022 #define _LARGE_FILES $ac_cv_sys_large_files
8023 _ACEOF
8025 esac
8026 rm -rf conftest*
8034 LIB_MATH=-lm
8035 LIB_STANDARD=
8036 START_FILES=
8038 case $opsys in
8039 cygwin )
8040 LIB_MATH=
8041 START_FILES='pre-crt0.o'
8043 darwin )
8044 ## Adding -lm confuses the dynamic linker, so omit it.
8045 LIB_MATH=
8046 START_FILES='pre-crt0.o'
8048 freebsd )
8049 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
8050 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
8052 gnu-linux | gnu-kfreebsd )
8053 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
8054 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
8056 hpux10-20 | hpux11 )
8057 LIB_STANDARD=-lc
8058 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o'
8060 netbsd | openbsd )
8061 if test -f $CRT_DIR/crti.o; then
8062 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
8063 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
8064 else
8065 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
8066 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
8069 esac
8074 crt_files=
8076 for file in x $LIB_STANDARD $START_FILES; do
8077 case "$file" in
8078 *CRT_DIR*) crt_files="$crt_files `echo $file | sed -e 's|.*/||'`" ;;
8079 esac
8080 done
8082 if test "x$crt_files" != x; then
8084 ## If user specified a crt-dir, use that unconditionally.
8085 crt_gcc=no
8087 if test "X$CRT_DIR" = "X"; then
8089 CRT_DIR=/usr/lib # default
8091 case "$canonical" in
8092 x86_64-*-linux-gnu* | s390x-*-linux-gnu*)
8093 ## On x86-64 and s390x GNU/Linux distributions, the standard library
8094 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
8095 ## For anything else (eg /usr/lib32), it is up the user to specify
8096 ## the location (bug#5655).
8097 ## Test for crtn.o, not just the directory, because sometimes the
8098 ## directory exists but does not have the relevant files (bug#1287).
8099 ## FIXME better to test for binary compatibility somehow.
8100 test -e /usr/lib64/crtn.o && CRT_DIR=/usr/lib64
8103 powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*) CRT_DIR=/usr/lib64 ;;
8104 esac
8106 case "$opsys" in
8107 hpux10-20) CRT_DIR=/lib ;;
8108 esac
8110 test "x${GCC}" = xyes && crt_gcc=yes
8112 fi # CRT_DIR = ""
8114 crt_missing=
8116 for file in $crt_files; do
8118 ## If we're using gcc, try to determine it automatically by asking
8119 ## gcc. [If this doesn't work, CRT_DIR will remain at the
8120 ## system-dependent default from above.]
8121 if test $crt_gcc = yes && test ! -e $CRT_DIR/$file; then
8123 crt_file=`$CC --print-file-name=$file 2>/dev/null`
8124 case "$crt_file" in
8125 */*)
8126 CRT_DIR=`$as_dirname -- "$crt_file" ||
8127 $as_expr X"$crt_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8128 X"$crt_file" : 'X\(//\)[^/]' \| \
8129 X"$crt_file" : 'X\(//\)$' \| \
8130 X"$crt_file" : 'X\(/\)' \| . 2>/dev/null ||
8131 $as_echo X"$crt_file" |
8132 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8133 s//\1/
8136 /^X\(\/\/\)[^/].*/{
8137 s//\1/
8140 /^X\(\/\/\)$/{
8141 s//\1/
8144 /^X\(\/\).*/{
8145 s//\1/
8148 s/.*/./; q'`
8150 esac
8153 crt_gcc=no
8155 test -e $CRT_DIR/$file || crt_missing="$crt_missing $file"
8156 done # $crt_files
8158 test "x$crt_missing" = x || \
8159 as_fn_error "Required file(s) not found:$crt_missing
8160 Try using the --with-crt-dir option." "$LINENO" 5
8162 fi # crt_files != ""
8170 if test "${with_sound}" != "no"; then
8171 # Sound support for GNU/Linux and the free BSDs.
8172 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
8173 do :
8174 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8175 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8176 eval as_val=\$$as_ac_Header
8177 if test "x$as_val" = x""yes; then :
8178 cat >>confdefs.h <<_ACEOF
8179 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8180 _ACEOF
8181 have_sound_header=yes
8184 done
8186 # Emulation library used on NetBSD.
8187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
8188 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
8189 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
8190 $as_echo_n "(cached) " >&6
8191 else
8192 ac_check_lib_save_LIBS=$LIBS
8193 LIBS="-lossaudio $LIBS"
8194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8195 /* end confdefs.h. */
8197 /* Override any GCC internal prototype to avoid an error.
8198 Use char because int might match the return type of a GCC
8199 builtin and then its argument prototype would still apply. */
8200 #ifdef __cplusplus
8201 extern "C"
8202 #endif
8203 char _oss_ioctl ();
8205 main ()
8207 return _oss_ioctl ();
8209 return 0;
8211 _ACEOF
8212 if ac_fn_c_try_link "$LINENO"; then :
8213 ac_cv_lib_ossaudio__oss_ioctl=yes
8214 else
8215 ac_cv_lib_ossaudio__oss_ioctl=no
8217 rm -f core conftest.err conftest.$ac_objext \
8218 conftest$ac_exeext conftest.$ac_ext
8219 LIBS=$ac_check_lib_save_LIBS
8221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
8222 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
8223 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x""yes; then :
8224 LIBSOUND=-lossaudio
8225 else
8226 LIBSOUND=
8231 ALSA_REQUIRED=1.0.0
8232 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
8234 succeeded=no
8236 # Extract the first word of "pkg-config", so it can be a program name with args.
8237 set dummy pkg-config; ac_word=$2
8238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8239 $as_echo_n "checking for $ac_word... " >&6; }
8240 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8241 $as_echo_n "(cached) " >&6
8242 else
8243 case $PKG_CONFIG in
8244 [\\/]* | ?:[\\/]*)
8245 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8249 for as_dir in $PATH
8251 IFS=$as_save_IFS
8252 test -z "$as_dir" && as_dir=.
8253 for ac_exec_ext in '' $ac_executable_extensions; do
8254 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8255 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8257 break 2
8259 done
8260 done
8261 IFS=$as_save_IFS
8263 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8265 esac
8267 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8268 if test -n "$PKG_CONFIG"; then
8269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8270 $as_echo "$PKG_CONFIG" >&6; }
8271 else
8272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8273 $as_echo "no" >&6; }
8278 if test "$PKG_CONFIG" = "no" ; then
8279 HAVE_ALSA=no
8280 else
8281 PKG_CONFIG_MIN_VERSION=0.9.0
8282 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
8284 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
8286 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
8287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8288 $as_echo "yes" >&6; }
8289 succeeded=yes
8291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_CFLAGS" >&5
8292 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
8293 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
8294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
8295 $as_echo "$ALSA_CFLAGS" >&6; }
8297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_LIBS" >&5
8298 $as_echo_n "checking ALSA_LIBS... " >&6; }
8299 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
8300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
8301 $as_echo "$ALSA_LIBS" >&6; }
8302 else
8303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8304 $as_echo "no" >&6; }
8305 ALSA_CFLAGS=""
8306 ALSA_LIBS=""
8307 ## If we have a custom action on failure, don't print errors, but
8308 ## do set a variable so people can do so.
8309 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
8315 else
8316 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8317 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8321 if test $succeeded = yes; then
8322 HAVE_ALSA=yes
8323 else
8324 HAVE_ALSA=no
8327 if test $HAVE_ALSA = yes; then
8328 SAVE_CFLAGS="$CFLAGS"
8329 SAVE_LDFLAGS="$LDFLAGS"
8330 CFLAGS="$ALSA_CFLAGS $CFLAGS"
8331 LDFLAGS="$ALSA_LIBS $LDFLAGS"
8332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8333 /* end confdefs.h. */
8334 #include <asoundlib.h>
8336 main ()
8338 snd_lib_error_set_handler (0);
8340 return 0;
8342 _ACEOF
8343 if ac_fn_c_try_compile "$LINENO"; then :
8344 emacs_alsa_normal=yes
8345 else
8346 emacs_alsa_normal=no
8348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8349 if test "$emacs_alsa_normal" != yes; then
8350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8351 /* end confdefs.h. */
8352 #include <alsa/asoundlib.h>
8354 main ()
8356 snd_lib_error_set_handler (0);
8358 return 0;
8360 _ACEOF
8361 if ac_fn_c_try_compile "$LINENO"; then :
8362 emacs_alsa_subdir=yes
8363 else
8364 emacs_alsa_subdir=no
8366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8367 if test "$emacs_alsa_subdir" != yes; then
8368 as_fn_error "pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
8370 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
8373 CFLAGS="$SAVE_CFLAGS"
8374 LDFLAGS="$SAVE_LDFLAGS"
8375 LIBSOUND="$LIBSOUND $ALSA_LIBS"
8376 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
8378 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
8382 if test x$have_sound_header = xyes || test $HAVE_ALSA = yes; then
8383 case "$opsys" in
8384 gnu-linux|freebsd|netbsd)
8386 $as_echo "#define HAVE_SOUND 1" >>confdefs.h
8389 esac
8395 for ac_header in sys/select.h sys/time.h unistd.h utime.h \
8396 linux/version.h sys/systeminfo.h \
8397 stdio_ext.h fcntl.h coff.h pty.h sys/mman.h \
8398 sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
8399 sys/utsname.h pwd.h utmp.h dirent.h util.h
8400 do :
8401 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8402 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8403 eval as_val=\$$as_ac_Header
8404 if test "x$as_val" = x""yes; then :
8405 cat >>confdefs.h <<_ACEOF
8406 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8407 _ACEOF
8411 done
8414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
8415 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
8416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8417 /* end confdefs.h. */
8418 #include <sys/personality.h>
8420 main ()
8422 personality (PER_LINUX32)
8424 return 0;
8426 _ACEOF
8427 if ac_fn_c_try_compile "$LINENO"; then :
8428 emacs_cv_personality_linux32=yes
8429 else
8430 emacs_cv_personality_linux32=no
8432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
8434 $as_echo "$emacs_cv_personality_linux32" >&6; }
8436 if test $emacs_cv_personality_linux32 = yes; then
8438 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
8442 for ac_header in term.h
8443 do :
8444 ac_fn_c_check_header_preproc "$LINENO" "term.h" "ac_cv_header_term_h"
8445 if test "x$ac_cv_header_term_h" = x""yes; then :
8446 cat >>confdefs.h <<_ACEOF
8447 #define HAVE_TERM_H 1
8448 _ACEOF
8452 done
8454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8455 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8456 if test "${ac_cv_header_time+set}" = set; then :
8457 $as_echo_n "(cached) " >&6
8458 else
8459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8460 /* end confdefs.h. */
8461 #include <sys/types.h>
8462 #include <sys/time.h>
8463 #include <time.h>
8466 main ()
8468 if ((struct tm *) 0)
8469 return 0;
8471 return 0;
8473 _ACEOF
8474 if ac_fn_c_try_compile "$LINENO"; then :
8475 ac_cv_header_time=yes
8476 else
8477 ac_cv_header_time=no
8479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8482 $as_echo "$ac_cv_header_time" >&6; }
8483 if test $ac_cv_header_time = yes; then
8485 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8489 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default"
8490 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then :
8491 ac_have_decl=1
8492 else
8493 ac_have_decl=0
8496 cat >>confdefs.h <<_ACEOF
8497 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
8498 _ACEOF
8500 if test $ac_cv_have_decl_sys_siglist != yes; then
8501 # For Tru64, at least:
8502 ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default"
8503 if test "x$ac_cv_have_decl___sys_siglist" = x""yes; then :
8504 ac_have_decl=1
8505 else
8506 ac_have_decl=0
8509 cat >>confdefs.h <<_ACEOF
8510 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
8511 _ACEOF
8513 if test $ac_cv_have_decl___sys_siglist = yes; then
8515 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
8519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8520 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8521 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8522 $as_echo_n "(cached) " >&6
8523 else
8524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8525 /* end confdefs.h. */
8526 #include <sys/types.h>
8527 #include <sys/wait.h>
8528 #ifndef WEXITSTATUS
8529 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8530 #endif
8531 #ifndef WIFEXITED
8532 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8533 #endif
8536 main ()
8538 int s;
8539 wait (&s);
8540 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8542 return 0;
8544 _ACEOF
8545 if ac_fn_c_try_compile "$LINENO"; then :
8546 ac_cv_header_sys_wait_h=yes
8547 else
8548 ac_cv_header_sys_wait_h=no
8550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8553 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8554 if test $ac_cv_header_sys_wait_h = yes; then
8556 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
8562 $as_echo_n "checking for struct utimbuf... " >&6; }
8563 if test "${emacs_cv_struct_utimbuf+set}" = set; then :
8564 $as_echo_n "(cached) " >&6
8565 else
8566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8567 /* end confdefs.h. */
8568 #ifdef TIME_WITH_SYS_TIME
8569 #include <sys/time.h>
8570 #include <time.h>
8571 #else
8572 #ifdef HAVE_SYS_TIME_H
8573 #include <sys/time.h>
8574 #else
8575 #include <time.h>
8576 #endif
8577 #endif
8578 #ifdef HAVE_UTIME_H
8579 #include <utime.h>
8580 #endif
8582 main ()
8584 static struct utimbuf x; x.actime = x.modtime;
8586 return 0;
8588 _ACEOF
8589 if ac_fn_c_try_compile "$LINENO"; then :
8590 emacs_cv_struct_utimbuf=yes
8591 else
8592 emacs_cv_struct_utimbuf=no
8594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_utimbuf" >&5
8597 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
8598 if test $emacs_cv_struct_utimbuf = yes; then
8600 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
8604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
8605 $as_echo_n "checking for speed_t... " >&6; }
8606 if test "${emacs_cv_speed_t+set}" = set; then :
8607 $as_echo_n "(cached) " >&6
8608 else
8609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8610 /* end confdefs.h. */
8611 #include <termios.h>
8613 main ()
8615 speed_t x = 1;
8617 return 0;
8619 _ACEOF
8620 if ac_fn_c_try_compile "$LINENO"; then :
8621 emacs_cv_speed_t=yes
8622 else
8623 emacs_cv_speed_t=no
8625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
8628 $as_echo "$emacs_cv_speed_t" >&6; }
8629 if test $emacs_cv_speed_t = yes; then
8631 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
8635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
8636 $as_echo_n "checking for struct timeval... " >&6; }
8637 if test "${emacs_cv_struct_timeval+set}" = set; then :
8638 $as_echo_n "(cached) " >&6
8639 else
8640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8641 /* end confdefs.h. */
8642 #ifdef TIME_WITH_SYS_TIME
8643 #include <sys/time.h>
8644 #include <time.h>
8645 #else
8646 #ifdef HAVE_SYS_TIME_H
8647 #include <sys/time.h>
8648 #else
8649 #include <time.h>
8650 #endif
8651 #endif
8653 main ()
8655 static struct timeval x; x.tv_sec = x.tv_usec;
8657 return 0;
8659 _ACEOF
8660 if ac_fn_c_try_compile "$LINENO"; then :
8661 emacs_cv_struct_timeval=yes
8662 else
8663 emacs_cv_struct_timeval=no
8665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_timeval" >&5
8668 $as_echo "$emacs_cv_struct_timeval" >&6; }
8669 HAVE_TIMEVAL=$emacs_cv_struct_timeval
8670 if test $emacs_cv_struct_timeval = yes; then
8672 $as_echo "#define HAVE_TIMEVAL 1" >>confdefs.h
8676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct exception" >&5
8677 $as_echo_n "checking for struct exception... " >&6; }
8678 if test "${emacs_cv_struct_exception+set}" = set; then :
8679 $as_echo_n "(cached) " >&6
8680 else
8681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8682 /* end confdefs.h. */
8683 #include <math.h>
8685 main ()
8687 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
8689 return 0;
8691 _ACEOF
8692 if ac_fn_c_try_compile "$LINENO"; then :
8693 emacs_cv_struct_exception=yes
8694 else
8695 emacs_cv_struct_exception=no
8697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_exception" >&5
8700 $as_echo "$emacs_cv_struct_exception" >&6; }
8701 HAVE_EXCEPTION=$emacs_cv_struct_exception
8702 if test $emacs_cv_struct_exception != yes; then
8704 $as_echo "#define NO_MATHERR 1" >>confdefs.h
8708 for ac_header in sys/socket.h
8709 do :
8710 ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
8711 if test "x$ac_cv_header_sys_socket_h" = x""yes; then :
8712 cat >>confdefs.h <<_ACEOF
8713 #define HAVE_SYS_SOCKET_H 1
8714 _ACEOF
8718 done
8720 for ac_header in net/if.h
8721 do :
8722 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
8723 #if HAVE_SYS_SOCKET_H
8724 #include <sys/socket.h>
8725 #endif
8727 if test "x$ac_cv_header_net_if_h" = x""yes; then :
8728 cat >>confdefs.h <<_ACEOF
8729 #define HAVE_NET_IF_H 1
8730 _ACEOF
8734 done
8736 for ac_header in ifaddrs.h
8737 do :
8738 ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default
8739 #if HAVE_SYS_SOCKET_H
8740 #include <sys/socket.h>
8741 #endif
8743 if test "x$ac_cv_header_ifaddrs_h" = x""yes; then :
8744 cat >>confdefs.h <<_ACEOF
8745 #define HAVE_IFADDRS_H 1
8746 _ACEOF
8750 done
8752 for ac_header in net/if_dl.h
8753 do :
8754 ac_fn_c_check_header_compile "$LINENO" "net/if_dl.h" "ac_cv_header_net_if_dl_h" "$ac_includes_default
8755 #if HAVE_SYS_SOCKET_H
8756 #include <sys/socket.h>
8757 #endif
8759 if test "x$ac_cv_header_net_if_dl_h" = x""yes; then :
8760 cat >>confdefs.h <<_ACEOF
8761 #define HAVE_NET_IF_DL_H 1
8762 _ACEOF
8766 done
8768 for ac_func in getifaddrs freeifaddrs
8769 do :
8770 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8771 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8772 eval as_val=\$$as_ac_var
8773 if test "x$as_val" = x""yes; then :
8774 cat >>confdefs.h <<_ACEOF
8775 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8776 _ACEOF
8779 done
8782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
8783 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
8784 if test "${ac_cv_struct_tm+set}" = set; then :
8785 $as_echo_n "(cached) " >&6
8786 else
8787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8788 /* end confdefs.h. */
8789 #include <sys/types.h>
8790 #include <time.h>
8793 main ()
8795 struct tm tm;
8796 int *p = &tm.tm_sec;
8797 return !p;
8799 return 0;
8801 _ACEOF
8802 if ac_fn_c_try_compile "$LINENO"; then :
8803 ac_cv_struct_tm=time.h
8804 else
8805 ac_cv_struct_tm=sys/time.h
8807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
8810 $as_echo "$ac_cv_struct_tm" >&6; }
8811 if test $ac_cv_struct_tm = sys/time.h; then
8813 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
8817 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
8818 #include <$ac_cv_struct_tm>
8821 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
8823 cat >>confdefs.h <<_ACEOF
8824 #define HAVE_STRUCT_TM_TM_ZONE 1
8825 _ACEOF
8830 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8832 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
8834 else
8835 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
8837 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
8838 ac_have_decl=1
8839 else
8840 ac_have_decl=0
8843 cat >>confdefs.h <<_ACEOF
8844 #define HAVE_DECL_TZNAME $ac_have_decl
8845 _ACEOF
8847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
8848 $as_echo_n "checking for tzname... " >&6; }
8849 if test "${ac_cv_var_tzname+set}" = set; then :
8850 $as_echo_n "(cached) " >&6
8851 else
8852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8853 /* end confdefs.h. */
8854 #include <time.h>
8855 #if !HAVE_DECL_TZNAME
8856 extern char *tzname[];
8857 #endif
8860 main ()
8862 return tzname[0][0];
8864 return 0;
8866 _ACEOF
8867 if ac_fn_c_try_link "$LINENO"; then :
8868 ac_cv_var_tzname=yes
8869 else
8870 ac_cv_var_tzname=no
8872 rm -f core conftest.err conftest.$ac_objext \
8873 conftest$ac_exeext conftest.$ac_ext
8875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
8876 $as_echo "$ac_cv_var_tzname" >&6; }
8877 if test $ac_cv_var_tzname = yes; then
8879 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
8884 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
8886 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then :
8888 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
8892 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
8893 #if HAVE_SYS_SOCKET_H
8894 #include <sys/socket.h>
8895 #endif
8896 #if HAVE_NET_IF_H
8897 #include <net/if.h>
8898 #endif
8900 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x""yes; then :
8902 cat >>confdefs.h <<_ACEOF
8903 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8904 _ACEOF
8908 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
8909 #if HAVE_SYS_SOCKET_H
8910 #include <sys/socket.h>
8911 #endif
8912 #if HAVE_NET_IF_H
8913 #include <net/if.h>
8914 #endif
8916 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x""yes; then :
8918 cat >>confdefs.h <<_ACEOF
8919 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8920 _ACEOF
8924 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
8925 #if HAVE_SYS_SOCKET_H
8926 #include <sys/socket.h>
8927 #endif
8928 #if HAVE_NET_IF_H
8929 #include <net/if.h>
8930 #endif
8932 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x""yes; then :
8934 cat >>confdefs.h <<_ACEOF
8935 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8936 _ACEOF
8940 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
8941 #if HAVE_SYS_SOCKET_H
8942 #include <sys/socket.h>
8943 #endif
8944 #if HAVE_NET_IF_H
8945 #include <net/if.h>
8946 #endif
8948 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x""yes; then :
8950 cat >>confdefs.h <<_ACEOF
8951 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8952 _ACEOF
8956 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
8957 #if HAVE_SYS_SOCKET_H
8958 #include <sys/socket.h>
8959 #endif
8960 #if HAVE_NET_IF_H
8961 #include <net/if.h>
8962 #endif
8964 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x""yes; then :
8966 cat >>confdefs.h <<_ACEOF
8967 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8968 _ACEOF
8972 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr.sa_len" "ac_cv_member_struct_ifreq_ifr_addr_sa_len" "$ac_includes_default
8973 #if HAVE_SYS_SOCKET_H
8974 #include <sys/socket.h>
8975 #endif
8976 #if HAVE_NET_IF_H
8977 #include <net/if.h>
8978 #endif
8980 if test "x$ac_cv_member_struct_ifreq_ifr_addr_sa_len" = x""yes; then :
8982 cat >>confdefs.h <<_ACEOF
8983 #define HAVE_STRUCT_IFREQ_IFR_ADDR_SA_LEN 1
8984 _ACEOF
8991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
8992 $as_echo_n "checking for function prototypes... " >&6; }
8993 if test "$ac_cv_prog_cc_c89" != no; then
8994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8995 $as_echo "yes" >&6; }
8997 $as_echo "#define PROTOTYPES 1" >>confdefs.h
9000 $as_echo "#define __PROTOTYPES 1" >>confdefs.h
9002 else
9003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9004 $as_echo "no" >&6; }
9007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
9008 $as_echo_n "checking for working volatile... " >&6; }
9009 if test "${ac_cv_c_volatile+set}" = set; then :
9010 $as_echo_n "(cached) " >&6
9011 else
9012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9013 /* end confdefs.h. */
9016 main ()
9019 volatile int x;
9020 int * volatile y = (int *) 0;
9021 return !x && !y;
9023 return 0;
9025 _ACEOF
9026 if ac_fn_c_try_compile "$LINENO"; then :
9027 ac_cv_c_volatile=yes
9028 else
9029 ac_cv_c_volatile=no
9031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
9034 $as_echo "$ac_cv_c_volatile" >&6; }
9035 if test $ac_cv_c_volatile = no; then
9037 $as_echo "#define volatile /**/" >>confdefs.h
9041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
9042 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
9043 if test "${ac_cv_c_const+set}" = set; then :
9044 $as_echo_n "(cached) " >&6
9045 else
9046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9047 /* end confdefs.h. */
9050 main ()
9052 /* FIXME: Include the comments suggested by Paul. */
9053 #ifndef __cplusplus
9054 /* Ultrix mips cc rejects this. */
9055 typedef int charset[2];
9056 const charset cs;
9057 /* SunOS 4.1.1 cc rejects this. */
9058 char const *const *pcpcc;
9059 char **ppc;
9060 /* NEC SVR4.0.2 mips cc rejects this. */
9061 struct point {int x, y;};
9062 static struct point const zero = {0,0};
9063 /* AIX XL C 1.02.0.0 rejects this.
9064 It does not let you subtract one const X* pointer from another in
9065 an arm of an if-expression whose if-part is not a constant
9066 expression */
9067 const char *g = "string";
9068 pcpcc = &g + (g ? g-g : 0);
9069 /* HPUX 7.0 cc rejects these. */
9070 ++pcpcc;
9071 ppc = (char**) pcpcc;
9072 pcpcc = (char const *const *) ppc;
9073 { /* SCO 3.2v4 cc rejects this. */
9074 char *t;
9075 char const *s = 0 ? (char *) 0 : (char const *) 0;
9077 *t++ = 0;
9078 if (s) return 0;
9080 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9081 int x[] = {25, 17};
9082 const int *foo = &x[0];
9083 ++foo;
9085 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9086 typedef const int *iptr;
9087 iptr p = 0;
9088 ++p;
9090 { /* AIX XL C 1.02.0.0 rejects this saying
9091 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9092 struct s { int j; const int *ap[3]; };
9093 struct s *b; b->j = 5;
9095 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9096 const int foo = 10;
9097 if (!foo) return 0;
9099 return !cs[0] && !zero.x;
9100 #endif
9103 return 0;
9105 _ACEOF
9106 if ac_fn_c_try_compile "$LINENO"; then :
9107 ac_cv_c_const=yes
9108 else
9109 ac_cv_c_const=no
9111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
9114 $as_echo "$ac_cv_c_const" >&6; }
9115 if test $ac_cv_c_const = no; then
9117 $as_echo "#define const /**/" >>confdefs.h
9121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for void * support" >&5
9122 $as_echo_n "checking for void * support... " >&6; }
9123 if test "${emacs_cv_void_star+set}" = set; then :
9124 $as_echo_n "(cached) " >&6
9125 else
9126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9127 /* end confdefs.h. */
9130 main ()
9132 void * foo;
9134 return 0;
9136 _ACEOF
9137 if ac_fn_c_try_compile "$LINENO"; then :
9138 emacs_cv_void_star=yes
9139 else
9140 emacs_cv_void_star=no
9142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_void_star" >&5
9145 $as_echo "$emacs_cv_void_star" >&6; }
9146 if test $emacs_cv_void_star = yes; then
9147 $as_echo "#define POINTER_TYPE void" >>confdefs.h
9149 else
9150 $as_echo "#define POINTER_TYPE char" >>confdefs.h
9154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
9155 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
9156 if test "${ac_cv_c_bigendian+set}" = set; then :
9157 $as_echo_n "(cached) " >&6
9158 else
9159 ac_cv_c_bigendian=unknown
9160 # See if we're dealing with a universal compiler.
9161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9162 /* end confdefs.h. */
9163 #ifndef __APPLE_CC__
9164 not a universal capable compiler
9165 #endif
9166 typedef int dummy;
9168 _ACEOF
9169 if ac_fn_c_try_compile "$LINENO"; then :
9171 # Check for potential -arch flags. It is not universal unless
9172 # there are at least two -arch flags with different values.
9173 ac_arch=
9174 ac_prev=
9175 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
9176 if test -n "$ac_prev"; then
9177 case $ac_word in
9178 i?86 | x86_64 | ppc | ppc64)
9179 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
9180 ac_arch=$ac_word
9181 else
9182 ac_cv_c_bigendian=universal
9183 break
9186 esac
9187 ac_prev=
9188 elif test "x$ac_word" = "x-arch"; then
9189 ac_prev=arch
9191 done
9193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9194 if test $ac_cv_c_bigendian = unknown; then
9195 # See if sys/param.h defines the BYTE_ORDER macro.
9196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9197 /* end confdefs.h. */
9198 #include <sys/types.h>
9199 #include <sys/param.h>
9202 main ()
9204 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
9205 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
9206 && LITTLE_ENDIAN)
9207 bogus endian macros
9208 #endif
9211 return 0;
9213 _ACEOF
9214 if ac_fn_c_try_compile "$LINENO"; then :
9215 # It does; now see whether it defined to BIG_ENDIAN or not.
9216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9217 /* end confdefs.h. */
9218 #include <sys/types.h>
9219 #include <sys/param.h>
9222 main ()
9224 #if BYTE_ORDER != BIG_ENDIAN
9225 not big endian
9226 #endif
9229 return 0;
9231 _ACEOF
9232 if ac_fn_c_try_compile "$LINENO"; then :
9233 ac_cv_c_bigendian=yes
9234 else
9235 ac_cv_c_bigendian=no
9237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9241 if test $ac_cv_c_bigendian = unknown; then
9242 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9244 /* end confdefs.h. */
9245 #include <limits.h>
9248 main ()
9250 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9251 bogus endian macros
9252 #endif
9255 return 0;
9257 _ACEOF
9258 if ac_fn_c_try_compile "$LINENO"; then :
9259 # It does; now see whether it defined to _BIG_ENDIAN or not.
9260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9261 /* end confdefs.h. */
9262 #include <limits.h>
9265 main ()
9267 #ifndef _BIG_ENDIAN
9268 not big endian
9269 #endif
9272 return 0;
9274 _ACEOF
9275 if ac_fn_c_try_compile "$LINENO"; then :
9276 ac_cv_c_bigendian=yes
9277 else
9278 ac_cv_c_bigendian=no
9280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9284 if test $ac_cv_c_bigendian = unknown; then
9285 # Compile a test program.
9286 if test "$cross_compiling" = yes; then :
9287 # Try to guess by grepping values from an object file.
9288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9289 /* end confdefs.h. */
9290 short int ascii_mm[] =
9291 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9292 short int ascii_ii[] =
9293 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9294 int use_ascii (int i) {
9295 return ascii_mm[i] + ascii_ii[i];
9297 short int ebcdic_ii[] =
9298 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9299 short int ebcdic_mm[] =
9300 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9301 int use_ebcdic (int i) {
9302 return ebcdic_mm[i] + ebcdic_ii[i];
9304 extern int foo;
9307 main ()
9309 return use_ascii (foo) == use_ebcdic (foo);
9311 return 0;
9313 _ACEOF
9314 if ac_fn_c_try_compile "$LINENO"; then :
9315 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
9316 ac_cv_c_bigendian=yes
9318 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9319 if test "$ac_cv_c_bigendian" = unknown; then
9320 ac_cv_c_bigendian=no
9321 else
9322 # finding both strings is unlikely to happen, but who knows?
9323 ac_cv_c_bigendian=unknown
9327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9328 else
9329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9330 /* end confdefs.h. */
9331 $ac_includes_default
9333 main ()
9336 /* Are we little or big endian? From Harbison&Steele. */
9337 union
9339 long int l;
9340 char c[sizeof (long int)];
9341 } u;
9342 u.l = 1;
9343 return u.c[sizeof (long int) - 1] == 1;
9346 return 0;
9348 _ACEOF
9349 if ac_fn_c_try_run "$LINENO"; then :
9350 ac_cv_c_bigendian=no
9351 else
9352 ac_cv_c_bigendian=yes
9354 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9355 conftest.$ac_objext conftest.beam conftest.$ac_ext
9360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9361 $as_echo "$ac_cv_c_bigendian" >&6; }
9362 case $ac_cv_c_bigendian in #(
9363 yes)
9364 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9365 ;; #(
9367 ;; #(
9368 universal)
9370 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9372 ;; #(
9374 as_fn_error "unknown endianness
9375 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9376 esac
9379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__ ((__aligned__ (expr)))" >&5
9380 $as_echo_n "checking for __attribute__ ((__aligned__ (expr)))... " >&6; }
9381 if test "${emacs_cv_attribute_aligned+set}" = set; then :
9382 $as_echo_n "(cached) " >&6
9383 else
9384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9385 /* end confdefs.h. */
9386 char __attribute__ ((__aligned__ (1 << 3))) c;
9388 main ()
9392 return 0;
9394 _ACEOF
9395 if ac_fn_c_try_compile "$LINENO"; then :
9396 emacs_cv_attribute_aligned=yes
9397 else
9398 emacs_cv_attribute_aligned=no
9400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_attribute_aligned" >&5
9403 $as_echo "$emacs_cv_attribute_aligned" >&6; }
9404 if test $emacs_cv_attribute_aligned = yes; then
9406 $as_echo "#define HAVE_ATTRIBUTE_ALIGNED 1" >>confdefs.h
9410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9411 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9412 set x ${MAKE-make}
9413 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9414 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
9415 $as_echo_n "(cached) " >&6
9416 else
9417 cat >conftest.make <<\_ACEOF
9418 SHELL = /bin/sh
9419 all:
9420 @echo '@@@%%%=$(MAKE)=@@@%%%'
9421 _ACEOF
9422 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9423 case `${MAKE-make} -f conftest.make 2>/dev/null` in
9424 *@@@%%%=?*=@@@%%%*)
9425 eval ac_cv_prog_make_${ac_make}_set=yes;;
9427 eval ac_cv_prog_make_${ac_make}_set=no;;
9428 esac
9429 rm -f conftest.make
9431 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9433 $as_echo "yes" >&6; }
9434 SET_MAKE=
9435 else
9436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9437 $as_echo "no" >&6; }
9438 SET_MAKE="MAKE=${MAKE-make}"
9442 DEPFLAGS=
9443 MKDEPDIR=":"
9444 deps_frag=deps.mk
9445 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
9446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
9447 $as_echo_n "checking whether we are using GNU Make... " >&6; }
9448 HAVE_GNU_MAKE=no
9449 testval=`make --version 2>/dev/null | grep 'GNU Make'`
9450 if test "x$testval" != x; then
9451 HAVE_GNU_MAKE=yes
9452 else
9453 ac_enable_autodepend=no
9455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
9456 $as_echo "$HAVE_GNU_MAKE" >&6; }
9457 if test $HAVE_GNU_MAKE = yes; then
9458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
9459 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
9460 SAVE_CFLAGS="$CFLAGS"
9461 CFLAGS="$CFLAGS -MMD -MF deps.d -MP"
9462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9463 /* end confdefs.h. */
9466 main ()
9470 return 0;
9472 _ACEOF
9473 if ac_fn_c_try_compile "$LINENO"; then :
9475 else
9476 ac_enable_autodepend=no
9478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9479 CFLAGS="$SAVE_CFLAGS"
9480 test -f deps.d || ac_enable_autodepend=no
9481 rm -rf deps.d
9482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
9483 $as_echo "$ac_enable_autodepend" >&6; }
9485 if test $ac_enable_autodepend = yes; then
9486 DEPFLAGS='-MMD -MF ${DEPDIR}/$*.d -MP'
9487 ## In parallel builds, another make might create depdir between
9488 ## the first test and mkdir, so stick another test on the end.
9489 ## Or use install-sh -d? mkdir -p is not portable.
9490 MKDEPDIR='test -d ${DEPDIR} || mkdir ${DEPDIR} || test -d ${DEPDIR}'
9491 deps_frag=autodeps.mk
9494 deps_frag=$srcdir/src/$deps_frag
9500 lisp_frag=$srcdir/src/lisp.mk
9504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
9505 $as_echo_n "checking for long file names... " >&6; }
9506 if test "${ac_cv_sys_long_file_names+set}" = set; then :
9507 $as_echo_n "(cached) " >&6
9508 else
9509 ac_cv_sys_long_file_names=yes
9510 # Test for long file names in all the places we know might matter:
9511 # . the current directory, where building will happen
9512 # $prefix/lib where we will be installing things
9513 # $exec_prefix/lib likewise
9514 # $TMPDIR if set, where it might want to write temporary files
9515 # /tmp where it might want to write temporary files
9516 # /var/tmp likewise
9517 # /usr/tmp likewise
9518 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9519 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9520 # in the usual case where exec_prefix is '${prefix}'.
9521 case $ac_dir in #(
9522 . | /* | ?:[\\/]*) ;; #(
9523 *) continue;;
9524 esac
9525 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9526 ac_xdir=$ac_dir/cf$$
9527 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9528 ac_tf1=$ac_xdir/conftest9012345
9529 ac_tf2=$ac_xdir/conftest9012346
9530 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9531 ac_cv_sys_long_file_names=no
9532 rm -f -r "$ac_xdir" 2>/dev/null
9533 test $ac_cv_sys_long_file_names = no && break
9534 done
9536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
9537 $as_echo "$ac_cv_sys_long_file_names" >&6; }
9538 if test $ac_cv_sys_long_file_names = yes; then
9540 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
9545 #### Choose a window system.
9547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
9548 $as_echo_n "checking for X... " >&6; }
9551 # Check whether --with-x was given.
9552 if test "${with_x+set}" = set; then :
9553 withval=$with_x;
9556 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9557 if test "x$with_x" = xno; then
9558 # The user explicitly disabled X.
9559 have_x=disabled
9560 else
9561 case $x_includes,$x_libraries in #(
9562 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
9563 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
9564 $as_echo_n "(cached) " >&6
9565 else
9566 # One or both of the vars are not set, and there is no cached value.
9567 ac_x_includes=no ac_x_libraries=no
9568 rm -f -r conftest.dir
9569 if mkdir conftest.dir; then
9570 cd conftest.dir
9571 cat >Imakefile <<'_ACEOF'
9572 incroot:
9573 @echo incroot='${INCROOT}'
9574 usrlibdir:
9575 @echo usrlibdir='${USRLIBDIR}'
9576 libdir:
9577 @echo libdir='${LIBDIR}'
9578 _ACEOF
9579 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9580 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9581 for ac_var in incroot usrlibdir libdir; do
9582 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9583 done
9584 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9585 for ac_extension in a so sl dylib la dll; do
9586 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9587 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9588 ac_im_usrlibdir=$ac_im_libdir; break
9590 done
9591 # Screen out bogus values from the imake configuration. They are
9592 # bogus both because they are the default anyway, and because
9593 # using them would break gcc on systems where it needs fixed includes.
9594 case $ac_im_incroot in
9595 /usr/include) ac_x_includes= ;;
9596 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9597 esac
9598 case $ac_im_usrlibdir in
9599 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
9600 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9601 esac
9603 cd ..
9604 rm -f -r conftest.dir
9607 # Standard set of common directories for X headers.
9608 # Check X11 before X11Rn because it is often a symlink to the current release.
9609 ac_x_header_dirs='
9610 /usr/X11/include
9611 /usr/X11R7/include
9612 /usr/X11R6/include
9613 /usr/X11R5/include
9614 /usr/X11R4/include
9616 /usr/include/X11
9617 /usr/include/X11R7
9618 /usr/include/X11R6
9619 /usr/include/X11R5
9620 /usr/include/X11R4
9622 /usr/local/X11/include
9623 /usr/local/X11R7/include
9624 /usr/local/X11R6/include
9625 /usr/local/X11R5/include
9626 /usr/local/X11R4/include
9628 /usr/local/include/X11
9629 /usr/local/include/X11R7
9630 /usr/local/include/X11R6
9631 /usr/local/include/X11R5
9632 /usr/local/include/X11R4
9634 /usr/X386/include
9635 /usr/x386/include
9636 /usr/XFree86/include/X11
9638 /usr/include
9639 /usr/local/include
9640 /usr/unsupported/include
9641 /usr/athena/include
9642 /usr/local/x11r5/include
9643 /usr/lpp/Xamples/include
9645 /usr/openwin/include
9646 /usr/openwin/share/include'
9648 if test "$ac_x_includes" = no; then
9649 # Guess where to find include files, by looking for Xlib.h.
9650 # First, try using that file with no special directory specified.
9651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9652 /* end confdefs.h. */
9653 #include <X11/Xlib.h>
9654 _ACEOF
9655 if ac_fn_c_try_cpp "$LINENO"; then :
9656 # We can compile using X headers with no special include directory.
9657 ac_x_includes=
9658 else
9659 for ac_dir in $ac_x_header_dirs; do
9660 if test -r "$ac_dir/X11/Xlib.h"; then
9661 ac_x_includes=$ac_dir
9662 break
9664 done
9666 rm -f conftest.err conftest.$ac_ext
9667 fi # $ac_x_includes = no
9669 if test "$ac_x_libraries" = no; then
9670 # Check for the libraries.
9671 # See if we find them without any special options.
9672 # Don't add to $LIBS permanently.
9673 ac_save_LIBS=$LIBS
9674 LIBS="-lX11 $LIBS"
9675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9676 /* end confdefs.h. */
9677 #include <X11/Xlib.h>
9679 main ()
9681 XrmInitialize ()
9683 return 0;
9685 _ACEOF
9686 if ac_fn_c_try_link "$LINENO"; then :
9687 LIBS=$ac_save_LIBS
9688 # We can link X programs with no special library path.
9689 ac_x_libraries=
9690 else
9691 LIBS=$ac_save_LIBS
9692 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9694 # Don't even attempt the hair of trying to link an X program!
9695 for ac_extension in a so sl dylib la dll; do
9696 if test -r "$ac_dir/libX11.$ac_extension"; then
9697 ac_x_libraries=$ac_dir
9698 break 2
9700 done
9701 done
9703 rm -f core conftest.err conftest.$ac_objext \
9704 conftest$ac_exeext conftest.$ac_ext
9705 fi # $ac_x_libraries = no
9707 case $ac_x_includes,$ac_x_libraries in #(
9708 no,* | *,no | *\'*)
9709 # Didn't find X, or a directory has "'" in its name.
9710 ac_cv_have_x="have_x=no";; #(
9712 # Record where we found X for the cache.
9713 ac_cv_have_x="have_x=yes\
9714 ac_x_includes='$ac_x_includes'\
9715 ac_x_libraries='$ac_x_libraries'"
9716 esac
9718 ;; #(
9719 *) have_x=yes;;
9720 esac
9721 eval "$ac_cv_have_x"
9722 fi # $with_x != no
9724 if test "$have_x" != yes; then
9725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
9726 $as_echo "$have_x" >&6; }
9727 no_x=yes
9728 else
9729 # If each of the values was on the command line, it overrides each guess.
9730 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9731 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9732 # Update the cache value to reflect the command line values.
9733 ac_cv_have_x="have_x=yes\
9734 ac_x_includes='$x_includes'\
9735 ac_x_libraries='$x_libraries'"
9736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
9737 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
9740 if test "$no_x" = yes; then
9741 window_system=none
9742 else
9743 window_system=x11
9746 ## Workaround for bug in autoconf <= 2.62.
9747 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
9748 ## No need to do anything special for these standard directories.
9749 if test -n "${x_libraries}" && test x"${x_libraries}" != xNONE; then
9751 x_libraries=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
9755 LD_SWITCH_X_SITE_AUX=
9756 LD_SWITCH_X_SITE_AUX_RPATH=
9757 if test "${x_libraries}" != NONE; then
9758 if test -n "${x_libraries}"; then
9759 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9760 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9761 LD_SWITCH_X_SITE_AUX_RPATH=`echo ${LD_SWITCH_X_SITE_AUX} | sed -e 's/-R/-Wl,-rpath,/'`
9763 x_default_search_path=""
9764 x_search_path=${x_libraries}
9765 if test -z "${x_search_path}"; then
9766 x_search_path=/usr/lib
9768 for x_library in `echo ${x_search_path}: | \
9769 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9770 x_search_path="\
9771 ${x_library}/X11/%L/%T/%N%C%S:\
9772 ${x_library}/X11/%l/%T/%N%C%S:\
9773 ${x_library}/X11/%T/%N%C%S:\
9774 ${x_library}/X11/%L/%T/%N%S:\
9775 ${x_library}/X11/%l/%T/%N%S:\
9776 ${x_library}/X11/%T/%N%S"
9777 if test x"${x_default_search_path}" = x; then
9778 x_default_search_path=${x_search_path}
9779 else
9780 x_default_search_path="${x_search_path}:${x_default_search_path}"
9782 done
9787 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9788 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9791 if test x"${x_includes}" = x; then
9792 bitmapdir=/usr/include/X11/bitmaps
9793 else
9794 # accumulate include directories that have X11 bitmap subdirectories
9795 bmd_acc="dummyval"
9796 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9797 if test -d "${bmd}/X11/bitmaps"; then
9798 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9800 if test -d "${bmd}/bitmaps"; then
9801 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9803 done
9804 if test ${bmd_acc} != "dummyval"; then
9805 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9809 HAVE_NS=no
9810 NS_IMPL_COCOA=no
9811 NS_IMPL_GNUSTEP=no
9812 tmp_CPPFLAGS="$CPPFLAGS"
9813 tmp_CFLAGS="$CFLAGS"
9814 CPPFLAGS="$CPPFLAGS -x objective-c"
9815 CFLAGS="$CFLAGS -x objective-c"
9816 TEMACS_LDFLAGS2="\${LDFLAGS}"
9817 GNU_OBJC_CFLAGS=
9818 if test "${with_ns}" != no; then
9819 if test "${opsys}" = darwin; then
9820 NS_IMPL_COCOA=yes
9821 ns_appdir=`pwd`/nextstep/Emacs.app
9822 ns_appbindir=${ns_appdir}/Contents/MacOS/
9823 ns_appresdir=${ns_appdir}/Contents/Resources
9824 ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base
9825 elif test -f $GNUSTEP_CONFIG_FILE; then
9826 NS_IMPL_GNUSTEP=yes
9827 ns_appdir=`pwd`/nextstep/Emacs.app
9828 ns_appbindir=${ns_appdir}/
9829 ns_appresdir=${ns_appdir}/Resources
9830 ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base
9831 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9832 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9833 GNUSTEP_LOCAL_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
9834 GNUSTEP_LOCAL_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
9835 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
9836 GNUSTEP_LOCAL_HEADERS="-I${GNUSTEP_LOCAL_HEADERS}"
9837 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
9838 GNUSTEP_LOCAL_LIBRARIES="-L${GNUSTEP_LOCAL_LIBRARIES}"
9839 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9840 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9841 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
9842 LIB_STANDARD=
9843 START_FILES=
9844 TEMACS_LDFLAGS2=
9845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS" >&5
9846 $as_echo_n "checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS... " >&6; }
9847 if test "${emacs_cv_objc_exceptions+set}" = set; then :
9848 $as_echo_n "(cached) " >&6
9849 else
9850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9851 /* end confdefs.h. */
9852 #include <GNUstepBase/GSConfig.h>
9854 main ()
9856 #if defined BASE_NATIVE_OBJC_EXCEPTIONS && BASE_NATIVE_OBJC_EXCEPTIONS > 0
9858 #else
9859 fail;
9860 #endif
9862 return 0;
9864 _ACEOF
9865 if ac_fn_c_try_compile "$LINENO"; then :
9866 emacs_cv_objc_exceptions=yes
9867 else
9868 emacs_cv_objc_exceptions=no
9870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_objc_exceptions" >&5
9873 $as_echo "$emacs_cv_objc_exceptions" >&6; }
9874 if test $emacs_cv_objc_exceptions = yes; then
9876 $as_echo "#define _NATIVE_OBJC_EXCEPTIONS 1" >>confdefs.h
9878 GNU_OBJC_CFLAGS="-fobjc-exceptions"
9882 CFLAGS="$CFLAGS $GNU_OBJC_CFLAGS"
9884 ac_fn_c_check_header_mongrel "$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
9885 if test "x$ac_cv_header_AppKit_AppKit_h" = x""yes; then :
9886 HAVE_NS=yes
9887 else
9888 as_fn_error "\`--with-ns' was specified, but the include
9889 files are missing or cannot be compiled." "$LINENO" 5
9893 NS_HAVE_NSINTEGER=yes
9894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9895 /* end confdefs.h. */
9896 #include <Foundation/NSObjCRuntime.h>
9898 main ()
9900 NSInteger i;
9902 return 0;
9904 _ACEOF
9905 if ac_fn_c_try_compile "$LINENO"; then :
9906 ns_have_nsinteger=yes
9907 else
9908 ns_have_nsinteger=no
9910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9911 if test $ns_have_nsinteger = no; then
9912 NS_HAVE_NSINTEGER=no
9917 ns_frag=/dev/null
9918 NS_OBJ=
9919 NS_OBJC_OBJ=
9920 if test "${HAVE_NS}" = yes; then
9921 window_system=nextstep
9922 with_xft=no
9923 # set up packaging dirs
9924 exec_prefix=${ns_appbindir}
9925 libexecdir=${ns_appbindir}/libexec
9926 if test "${EN_NS_SELF_CONTAINED}" = yes; then
9927 prefix=${ns_appresdir}
9929 ns_frag=$srcdir/src/ns.mk
9930 NS_OBJ="fontset.o fringe.o image.o"
9931 NS_OBJC_OBJ="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o"
9933 CFLAGS="$tmp_CFLAGS"
9934 CPPFLAGS="$tmp_CPPFLAGS"
9940 case "${window_system}" in
9941 x11 )
9942 HAVE_X_WINDOWS=yes
9943 HAVE_X11=yes
9944 case "${with_x_toolkit}" in
9945 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9946 motif ) USE_X_TOOLKIT=MOTIF ;;
9947 gtk ) with_gtk=yes
9948 USE_X_TOOLKIT=none ;;
9949 gtk3 ) with_gtk3=yes
9950 USE_X_TOOLKIT=none ;;
9951 no ) USE_X_TOOLKIT=none ;;
9952 * ) USE_X_TOOLKIT=maybe ;;
9953 esac
9955 nextstep | none )
9956 HAVE_X_WINDOWS=no
9957 HAVE_X11=no
9958 USE_X_TOOLKIT=none
9960 esac
9962 if test "$window_system" = none && test "X$with_x" != "Xno"; then
9963 # Extract the first word of "X", so it can be a program name with args.
9964 set dummy X; ac_word=$2
9965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9966 $as_echo_n "checking for $ac_word... " >&6; }
9967 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then :
9968 $as_echo_n "(cached) " >&6
9969 else
9970 if test -n "$HAVE_XSERVER"; then
9971 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9972 else
9973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9974 for as_dir in $PATH
9976 IFS=$as_save_IFS
9977 test -z "$as_dir" && as_dir=.
9978 for ac_exec_ext in '' $ac_executable_extensions; do
9979 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9980 ac_cv_prog_HAVE_XSERVER="true"
9981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9982 break 2
9984 done
9985 done
9986 IFS=$as_save_IFS
9988 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9991 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9992 if test -n "$HAVE_XSERVER"; then
9993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
9994 $as_echo "$HAVE_XSERVER" >&6; }
9995 else
9996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9997 $as_echo "no" >&6; }
10001 if test "$HAVE_XSERVER" = true ||
10002 test -n "$DISPLAY" ||
10003 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
10004 as_fn_error "You seem to be running X, but no X development libraries
10005 were found. You should install the relevant development files for X
10006 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
10007 sure you have development files for image handling, i.e.
10008 tiff, gif, jpeg, png and xpm.
10009 If you are sure you want Emacs compiled without X window support, pass
10010 --without-x
10011 to configure." "$LINENO" 5
10015 ### If we're using X11, we should use the X menu package.
10016 HAVE_MENUS=no
10017 case ${HAVE_X11} in
10018 yes ) HAVE_MENUS=yes ;;
10019 esac
10021 # Do the opsystem or machine files prohibit the use of the GNU malloc?
10022 # Assume not, until told otherwise.
10023 GNU_MALLOC=yes
10024 doug_lea_malloc=yes
10025 ac_fn_c_check_func "$LINENO" "malloc_get_state" "ac_cv_func_malloc_get_state"
10026 if test "x$ac_cv_func_malloc_get_state" = x""yes; then :
10028 else
10029 doug_lea_malloc=no
10032 ac_fn_c_check_func "$LINENO" "malloc_set_state" "ac_cv_func_malloc_set_state"
10033 if test "x$ac_cv_func_malloc_set_state" = x""yes; then :
10035 else
10036 doug_lea_malloc=no
10039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __after_morecore_hook exists" >&5
10040 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
10041 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then :
10042 $as_echo_n "(cached) " >&6
10043 else
10044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10045 /* end confdefs.h. */
10046 extern void (* __after_morecore_hook)();
10048 main ()
10050 __after_morecore_hook = 0
10052 return 0;
10054 _ACEOF
10055 if ac_fn_c_try_link "$LINENO"; then :
10056 emacs_cv_var___after_morecore_hook=yes
10057 else
10058 emacs_cv_var___after_morecore_hook=no
10060 rm -f core conftest.err conftest.$ac_objext \
10061 conftest$ac_exeext conftest.$ac_ext
10063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var___after_morecore_hook" >&5
10064 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
10065 if test $emacs_cv_var___after_morecore_hook = no; then
10066 doug_lea_malloc=no
10070 system_malloc=no
10071 case "$opsys" in
10072 ## darwin ld insists on the use of malloc routines in the System framework.
10073 darwin|sol2-10) system_malloc=yes ;;
10074 esac
10076 if test "${system_malloc}" = "yes"; then
10078 $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
10080 GNU_MALLOC=no
10081 GNU_MALLOC_reason="
10082 (The GNU allocators don't work with this system configuration.)"
10083 GMALLOC_OBJ=
10084 VMLIMIT_OBJ=
10085 else
10086 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ=gmalloc.o
10087 VMLIMIT_OBJ=vm-limit.o
10092 if test "$doug_lea_malloc" = "yes" ; then
10093 if test "$GNU_MALLOC" = yes ; then
10094 GNU_MALLOC_reason="
10095 (Using Doug Lea's new malloc from the GNU C Library.)"
10098 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
10101 ## Use mmap directly for allocating larger buffers.
10102 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
10103 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
10104 ## Does the AC_FUNC_MMAP test below make this check unecessary?
10105 case "$opsys" in
10106 gnu*) REL_ALLOC=no ;;
10107 esac
10110 if test x"${REL_ALLOC}" = x; then
10111 REL_ALLOC=${GNU_MALLOC}
10114 use_mmap_for_buffers=no
10115 case "$opsys" in
10116 cygwin|freebsd|irix6-5) use_mmap_for_buffers=yes ;;
10117 esac
10122 for ac_header in $ac_header_list
10123 do :
10124 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10125 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
10127 eval as_val=\$$as_ac_Header
10128 if test "x$as_val" = x""yes; then :
10129 cat >>confdefs.h <<_ACEOF
10130 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10131 _ACEOF
10135 done
10144 for ac_func in getpagesize
10145 do :
10146 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
10147 if test "x$ac_cv_func_getpagesize" = x""yes; then :
10148 cat >>confdefs.h <<_ACEOF
10149 #define HAVE_GETPAGESIZE 1
10150 _ACEOF
10153 done
10155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
10156 $as_echo_n "checking for working mmap... " >&6; }
10157 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
10158 $as_echo_n "(cached) " >&6
10159 else
10160 if test "$cross_compiling" = yes; then :
10161 ac_cv_func_mmap_fixed_mapped=no
10162 else
10163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10164 /* end confdefs.h. */
10165 $ac_includes_default
10166 /* malloc might have been renamed as rpl_malloc. */
10167 #undef malloc
10169 /* Thanks to Mike Haertel and Jim Avera for this test.
10170 Here is a matrix of mmap possibilities:
10171 mmap private not fixed
10172 mmap private fixed at somewhere currently unmapped
10173 mmap private fixed at somewhere already mapped
10174 mmap shared not fixed
10175 mmap shared fixed at somewhere currently unmapped
10176 mmap shared fixed at somewhere already mapped
10177 For private mappings, we should verify that changes cannot be read()
10178 back from the file, nor mmap's back from the file at a different
10179 address. (There have been systems where private was not correctly
10180 implemented like the infamous i386 svr4.0, and systems where the
10181 VM page cache was not coherent with the file system buffer cache
10182 like early versions of FreeBSD and possibly contemporary NetBSD.)
10183 For shared mappings, we should conversely verify that changes get
10184 propagated back to all the places they're supposed to be.
10186 Grep wants private fixed already mapped.
10187 The main things grep needs to know about mmap are:
10188 * does it exist and is it safe to write into the mmap'd area
10189 * how to use it (BSD variants) */
10191 #include <fcntl.h>
10192 #include <sys/mman.h>
10194 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10195 char *malloc ();
10196 #endif
10198 /* This mess was copied from the GNU getpagesize.h. */
10199 #ifndef HAVE_GETPAGESIZE
10200 # ifdef _SC_PAGESIZE
10201 # define getpagesize() sysconf(_SC_PAGESIZE)
10202 # else /* no _SC_PAGESIZE */
10203 # ifdef HAVE_SYS_PARAM_H
10204 # include <sys/param.h>
10205 # ifdef EXEC_PAGESIZE
10206 # define getpagesize() EXEC_PAGESIZE
10207 # else /* no EXEC_PAGESIZE */
10208 # ifdef NBPG
10209 # define getpagesize() NBPG * CLSIZE
10210 # ifndef CLSIZE
10211 # define CLSIZE 1
10212 # endif /* no CLSIZE */
10213 # else /* no NBPG */
10214 # ifdef NBPC
10215 # define getpagesize() NBPC
10216 # else /* no NBPC */
10217 # ifdef PAGESIZE
10218 # define getpagesize() PAGESIZE
10219 # endif /* PAGESIZE */
10220 # endif /* no NBPC */
10221 # endif /* no NBPG */
10222 # endif /* no EXEC_PAGESIZE */
10223 # else /* no HAVE_SYS_PARAM_H */
10224 # define getpagesize() 8192 /* punt totally */
10225 # endif /* no HAVE_SYS_PARAM_H */
10226 # endif /* no _SC_PAGESIZE */
10228 #endif /* no HAVE_GETPAGESIZE */
10231 main ()
10233 char *data, *data2, *data3;
10234 const char *cdata2;
10235 int i, pagesize;
10236 int fd, fd2;
10238 pagesize = getpagesize ();
10240 /* First, make a file with some known garbage in it. */
10241 data = (char *) malloc (pagesize);
10242 if (!data)
10243 return 1;
10244 for (i = 0; i < pagesize; ++i)
10245 *(data + i) = rand ();
10246 umask (0);
10247 fd = creat ("conftest.mmap", 0600);
10248 if (fd < 0)
10249 return 2;
10250 if (write (fd, data, pagesize) != pagesize)
10251 return 3;
10252 close (fd);
10254 /* Next, check that the tail of a page is zero-filled. File must have
10255 non-zero length, otherwise we risk SIGBUS for entire page. */
10256 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
10257 if (fd2 < 0)
10258 return 4;
10259 cdata2 = "";
10260 if (write (fd2, cdata2, 1) != 1)
10261 return 5;
10262 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
10263 if (data2 == MAP_FAILED)
10264 return 6;
10265 for (i = 0; i < pagesize; ++i)
10266 if (*(data2 + i))
10267 return 7;
10268 close (fd2);
10269 if (munmap (data2, pagesize))
10270 return 8;
10272 /* Next, try to mmap the file at a fixed address which already has
10273 something else allocated at it. If we can, also make sure that
10274 we see the same garbage. */
10275 fd = open ("conftest.mmap", O_RDWR);
10276 if (fd < 0)
10277 return 9;
10278 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10279 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10280 return 10;
10281 for (i = 0; i < pagesize; ++i)
10282 if (*(data + i) != *(data2 + i))
10283 return 11;
10285 /* Finally, make sure that changes to the mapped area do not
10286 percolate back to the file as seen by read(). (This is a bug on
10287 some variants of i386 svr4.0.) */
10288 for (i = 0; i < pagesize; ++i)
10289 *(data2 + i) = *(data2 + i) + 1;
10290 data3 = (char *) malloc (pagesize);
10291 if (!data3)
10292 return 12;
10293 if (read (fd, data3, pagesize) != pagesize)
10294 return 13;
10295 for (i = 0; i < pagesize; ++i)
10296 if (*(data + i) != *(data3 + i))
10297 return 14;
10298 close (fd);
10299 return 0;
10301 _ACEOF
10302 if ac_fn_c_try_run "$LINENO"; then :
10303 ac_cv_func_mmap_fixed_mapped=yes
10304 else
10305 ac_cv_func_mmap_fixed_mapped=no
10307 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10308 conftest.$ac_objext conftest.beam conftest.$ac_ext
10312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
10313 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
10314 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10316 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
10319 rm -f conftest.mmap conftest.txt
10321 if test $use_mmap_for_buffers = yes; then
10323 $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
10325 REL_ALLOC=no
10328 LIBS="$LIBS_SYSTEM $LIBS"
10330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
10331 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
10332 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
10333 $as_echo_n "(cached) " >&6
10334 else
10335 ac_check_lib_save_LIBS=$LIBS
10336 LIBS="-ldnet $LIBS"
10337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10338 /* end confdefs.h. */
10340 /* Override any GCC internal prototype to avoid an error.
10341 Use char because int might match the return type of a GCC
10342 builtin and then its argument prototype would still apply. */
10343 #ifdef __cplusplus
10344 extern "C"
10345 #endif
10346 char dnet_ntoa ();
10348 main ()
10350 return dnet_ntoa ();
10352 return 0;
10354 _ACEOF
10355 if ac_fn_c_try_link "$LINENO"; then :
10356 ac_cv_lib_dnet_dnet_ntoa=yes
10357 else
10358 ac_cv_lib_dnet_dnet_ntoa=no
10360 rm -f core conftest.err conftest.$ac_objext \
10361 conftest$ac_exeext conftest.$ac_ext
10362 LIBS=$ac_check_lib_save_LIBS
10364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10365 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10366 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
10367 cat >>confdefs.h <<_ACEOF
10368 #define HAVE_LIBDNET 1
10369 _ACEOF
10371 LIBS="-ldnet $LIBS"
10376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
10377 $as_echo_n "checking for main in -lXbsd... " >&6; }
10378 if test "${ac_cv_lib_Xbsd_main+set}" = set; then :
10379 $as_echo_n "(cached) " >&6
10380 else
10381 ac_check_lib_save_LIBS=$LIBS
10382 LIBS="-lXbsd $LIBS"
10383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10384 /* end confdefs.h. */
10388 main ()
10390 return main ();
10392 return 0;
10394 _ACEOF
10395 if ac_fn_c_try_link "$LINENO"; then :
10396 ac_cv_lib_Xbsd_main=yes
10397 else
10398 ac_cv_lib_Xbsd_main=no
10400 rm -f core conftest.err conftest.$ac_objext \
10401 conftest$ac_exeext conftest.$ac_ext
10402 LIBS=$ac_check_lib_save_LIBS
10404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
10405 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
10406 if test "x$ac_cv_lib_Xbsd_main" = x""yes; then :
10407 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10411 LIB_PTHREAD=
10412 for ac_header in pthread.h
10413 do :
10414 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
10415 if test "x$ac_cv_header_pthread_h" = x""yes; then :
10416 cat >>confdefs.h <<_ACEOF
10417 #define HAVE_PTHREAD_H 1
10418 _ACEOF
10422 done
10424 if test "$ac_cv_header_pthread_h"; then
10425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lpthread" >&5
10426 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
10427 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then :
10428 $as_echo_n "(cached) " >&6
10429 else
10430 ac_check_lib_save_LIBS=$LIBS
10431 LIBS="-lpthread $LIBS"
10432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10433 /* end confdefs.h. */
10435 /* Override any GCC internal prototype to avoid an error.
10436 Use char because int might match the return type of a GCC
10437 builtin and then its argument prototype would still apply. */
10438 #ifdef __cplusplus
10439 extern "C"
10440 #endif
10441 char pthread_self ();
10443 main ()
10445 return pthread_self ();
10447 return 0;
10449 _ACEOF
10450 if ac_fn_c_try_link "$LINENO"; then :
10451 ac_cv_lib_pthread_pthread_self=yes
10452 else
10453 ac_cv_lib_pthread_pthread_self=no
10455 rm -f core conftest.err conftest.$ac_objext \
10456 conftest$ac_exeext conftest.$ac_ext
10457 LIBS=$ac_check_lib_save_LIBS
10459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_self" >&5
10460 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
10461 if test "x$ac_cv_lib_pthread_pthread_self" = x""yes; then :
10462 HAVE_PTHREAD=yes
10466 if test "$HAVE_PTHREAD" = yes; then
10467 case "${canonical}" in
10468 *-hpux*) ;;
10469 *) LIB_PTHREAD="-lpthread" ;;
10470 esac
10472 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
10477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
10478 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
10479 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then :
10480 $as_echo_n "(cached) " >&6
10481 else
10482 ac_check_lib_save_LIBS=$LIBS
10483 LIBS="-lpthreads $LIBS"
10484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10485 /* end confdefs.h. */
10487 /* Override any GCC internal prototype to avoid an error.
10488 Use char because int might match the return type of a GCC
10489 builtin and then its argument prototype would still apply. */
10490 #ifdef __cplusplus
10491 extern "C"
10492 #endif
10493 char cma_open ();
10495 main ()
10497 return cma_open ();
10499 return 0;
10501 _ACEOF
10502 if ac_fn_c_try_link "$LINENO"; then :
10503 ac_cv_lib_pthreads_cma_open=yes
10504 else
10505 ac_cv_lib_pthreads_cma_open=no
10507 rm -f core conftest.err conftest.$ac_objext \
10508 conftest$ac_exeext conftest.$ac_ext
10509 LIBS=$ac_check_lib_save_LIBS
10511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
10512 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
10513 if test "x$ac_cv_lib_pthreads_cma_open" = x""yes; then :
10514 cat >>confdefs.h <<_ACEOF
10515 #define HAVE_LIBPTHREADS 1
10516 _ACEOF
10518 LIBS="-lpthreads $LIBS"
10523 ## Note: when using cpp in s/aix4.2.h, this definition depended on
10524 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
10525 ## the system file was sourced. Hence the value of LIBS_SYSTEM
10526 ## added to LIBS in configure would never contain the pthreads part,
10527 ## but the value used in Makefiles might. FIXME?
10529 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
10530 ## be harmless on older versions of X where it happens to exist.
10531 test "$opsys" = "aix4-2" && \
10532 test $ac_cv_lib_pthreads_cma_open = yes && \
10533 LIBS_SYSTEM="$LIBS_SYSTEM -lpthreads"
10536 case ${host_os} in
10537 aix*)
10538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
10539 $as_echo_n "checking for -bbigtoc option... " >&6; }
10540 if test "${gdb_cv_bigtoc+set}" = set; then :
10541 $as_echo_n "(cached) " >&6
10542 else
10544 case $GCC in
10545 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
10546 *) gdb_cv_bigtoc=-bbigtoc ;;
10547 esac
10549 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10551 /* end confdefs.h. */
10554 main ()
10556 int i;
10558 return 0;
10560 _ACEOF
10561 if ac_fn_c_try_link "$LINENO"; then :
10563 else
10564 gdb_cv_bigtoc=
10566 rm -f core conftest.err conftest.$ac_objext \
10567 conftest$ac_exeext conftest.$ac_ext
10570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
10571 $as_echo "$gdb_cv_bigtoc" >&6; }
10573 esac
10575 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10576 # used for the tests that follow. We set them back to REAL_CFLAGS and
10577 # REAL_CPPFLAGS later on.
10579 REAL_CFLAGS="$CFLAGS"
10580 REAL_CPPFLAGS="$CPPFLAGS"
10582 if test "${HAVE_X11}" = "yes"; then
10583 DEFS="$C_SWITCH_X_SITE $DEFS"
10584 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10585 LIBS="-lX11 $LIBS"
10586 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10587 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10589 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10590 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10591 # but it's more convenient here to set LD_RUN_PATH
10592 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10593 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10594 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10595 export LD_RUN_PATH
10598 if test "${opsys}" = "gnu-linux"; then
10599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
10600 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
10601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10602 /* end confdefs.h. */
10605 main ()
10607 XOpenDisplay ("foo");
10609 return 0;
10611 _ACEOF
10612 if ac_fn_c_try_link "$LINENO"; then :
10613 xlinux_first_failure=no
10614 else
10615 xlinux_first_failure=yes
10617 rm -f core conftest.err conftest.$ac_objext \
10618 conftest$ac_exeext conftest.$ac_ext
10619 if test "${xlinux_first_failure}" = "yes"; then
10620 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
10621 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
10622 OLD_CPPFLAGS="$CPPFLAGS"
10623 OLD_LIBS="$LIBS"
10624 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
10625 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
10626 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
10627 LIBS="$LIBS -b i486-linuxaout"
10628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10629 /* end confdefs.h. */
10632 main ()
10634 XOpenDisplay ("foo");
10636 return 0;
10638 _ACEOF
10639 if ac_fn_c_try_link "$LINENO"; then :
10640 xlinux_second_failure=no
10641 else
10642 xlinux_second_failure=yes
10644 rm -f core conftest.err conftest.$ac_objext \
10645 conftest$ac_exeext conftest.$ac_ext
10646 if test "${xlinux_second_failure}" = "yes"; then
10647 # If we get the same failure with -b, there is no use adding -b.
10648 # So take it out. This plays safe.
10649 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10650 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10651 CPPFLAGS="$OLD_CPPFLAGS"
10652 LIBS="$OLD_LIBS"
10653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10654 $as_echo "no" >&6; }
10655 else
10656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10657 $as_echo "yes" >&6; }
10659 else
10660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10661 $as_echo "no" >&6; }
10665 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10666 # header files included from there.
10667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
10668 $as_echo_n "checking for Xkb... " >&6; }
10669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10670 /* end confdefs.h. */
10671 #include <X11/Xlib.h>
10672 #include <X11/XKBlib.h>
10674 main ()
10676 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10678 return 0;
10680 _ACEOF
10681 if ac_fn_c_try_link "$LINENO"; then :
10682 emacs_xkb=yes
10683 else
10684 emacs_xkb=no
10686 rm -f core conftest.err conftest.$ac_objext \
10687 conftest$ac_exeext conftest.$ac_ext
10688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
10689 $as_echo "$emacs_xkb" >&6; }
10690 if test $emacs_xkb = yes; then
10692 $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
10696 for ac_func in XrmSetDatabase XScreenResourceString \
10697 XScreenNumberOfScreen XSetWMProtocols
10698 do :
10699 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10700 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10701 eval as_val=\$$as_ac_var
10702 if test "x$as_val" = x""yes; then :
10703 cat >>confdefs.h <<_ACEOF
10704 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10705 _ACEOF
10708 done
10712 if test "${window_system}" = "x11"; then
10713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
10714 $as_echo_n "checking X11 version 6... " >&6; }
10715 if test "${emacs_cv_x11_version_6+set}" = set; then :
10716 $as_echo_n "(cached) " >&6
10717 else
10718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10719 /* end confdefs.h. */
10720 #include <X11/Xlib.h>
10722 main ()
10724 #if XlibSpecificationRelease < 6
10725 fail;
10726 #endif
10729 return 0;
10731 _ACEOF
10732 if ac_fn_c_try_link "$LINENO"; then :
10733 emacs_cv_x11_version_6=yes
10734 else
10735 emacs_cv_x11_version_6=no
10737 rm -f core conftest.err conftest.$ac_objext \
10738 conftest$ac_exeext conftest.$ac_ext
10741 if test $emacs_cv_x11_version_6 = yes; then
10742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
10743 $as_echo "6 or newer" >&6; }
10745 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
10748 $as_echo "#define HAVE_X_I18N 1" >>confdefs.h
10750 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
10751 ## XIM support.
10752 case "$opsys" in
10753 sol2-*) : ;;
10755 $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
10758 esac
10759 else
10760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
10761 $as_echo "before 6" >&6; }
10766 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
10767 HAVE_RSVG=no
10768 if test "${HAVE_X11}" = "yes" || test "${HAVE_NS}" = "yes"; then
10769 if test "${with_rsvg}" != "no"; then
10770 RSVG_REQUIRED=2.11.0
10771 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
10774 succeeded=no
10776 # Extract the first word of "pkg-config", so it can be a program name with args.
10777 set dummy pkg-config; ac_word=$2
10778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10779 $as_echo_n "checking for $ac_word... " >&6; }
10780 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10781 $as_echo_n "(cached) " >&6
10782 else
10783 case $PKG_CONFIG in
10784 [\\/]* | ?:[\\/]*)
10785 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10789 for as_dir in $PATH
10791 IFS=$as_save_IFS
10792 test -z "$as_dir" && as_dir=.
10793 for ac_exec_ext in '' $ac_executable_extensions; do
10794 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10795 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10797 break 2
10799 done
10800 done
10801 IFS=$as_save_IFS
10803 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10805 esac
10807 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10808 if test -n "$PKG_CONFIG"; then
10809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10810 $as_echo "$PKG_CONFIG" >&6; }
10811 else
10812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10813 $as_echo "no" >&6; }
10818 if test "$PKG_CONFIG" = "no" ; then
10820 else
10821 PKG_CONFIG_MIN_VERSION=0.9.0
10822 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
10824 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
10826 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
10827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10828 $as_echo "yes" >&6; }
10829 succeeded=yes
10831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_CFLAGS" >&5
10832 $as_echo_n "checking RSVG_CFLAGS... " >&6; }
10833 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_CFLAGS" >&5
10835 $as_echo "$RSVG_CFLAGS" >&6; }
10837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_LIBS" >&5
10838 $as_echo_n "checking RSVG_LIBS... " >&6; }
10839 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_LIBS" >&5
10841 $as_echo "$RSVG_LIBS" >&6; }
10842 else
10843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10844 $as_echo "no" >&6; }
10845 RSVG_CFLAGS=""
10846 RSVG_LIBS=""
10847 ## If we have a custom action on failure, don't print errors, but
10848 ## do set a variable so people can do so.
10849 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
10855 else
10856 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10857 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10861 if test $succeeded = yes; then
10862 HAVE_RSVG=yes
10863 else
10870 if test $HAVE_RSVG = yes; then
10872 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
10874 CFLAGS="$CFLAGS $RSVG_CFLAGS"
10875 LIBS="$RSVG_LIBS $LIBS"
10880 HAVE_IMAGEMAGICK=no
10881 if test "${HAVE_X11}" = "yes"; then
10882 if test "${with_imagemagick}" != "no"; then
10883 ## 6.2.8 is the earliest version known to work, but earlier versions
10884 ## might work - let us know if you find one.
10885 ## 6.0.7 does not work. See bug#7955.
10886 IMAGEMAGICK_MODULE="Wand >= 6.2.8"
10888 succeeded=no
10890 # Extract the first word of "pkg-config", so it can be a program name with args.
10891 set dummy pkg-config; ac_word=$2
10892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10893 $as_echo_n "checking for $ac_word... " >&6; }
10894 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10895 $as_echo_n "(cached) " >&6
10896 else
10897 case $PKG_CONFIG in
10898 [\\/]* | ?:[\\/]*)
10899 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10903 for as_dir in $PATH
10905 IFS=$as_save_IFS
10906 test -z "$as_dir" && as_dir=.
10907 for ac_exec_ext in '' $ac_executable_extensions; do
10908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10909 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10911 break 2
10913 done
10914 done
10915 IFS=$as_save_IFS
10917 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10919 esac
10921 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10922 if test -n "$PKG_CONFIG"; then
10923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10924 $as_echo "$PKG_CONFIG" >&6; }
10925 else
10926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10927 $as_echo "no" >&6; }
10932 if test "$PKG_CONFIG" = "no" ; then
10934 else
10935 PKG_CONFIG_MIN_VERSION=0.9.0
10936 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
10938 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
10940 if $PKG_CONFIG --exists "$IMAGEMAGICK_MODULE" 2>&5; then
10941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10942 $as_echo "yes" >&6; }
10943 succeeded=yes
10945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_CFLAGS" >&5
10946 $as_echo_n "checking IMAGEMAGICK_CFLAGS... " >&6; }
10947 IMAGEMAGICK_CFLAGS=`$PKG_CONFIG --cflags "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
10948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_CFLAGS" >&5
10949 $as_echo "$IMAGEMAGICK_CFLAGS" >&6; }
10951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_LIBS" >&5
10952 $as_echo_n "checking IMAGEMAGICK_LIBS... " >&6; }
10953 IMAGEMAGICK_LIBS=`$PKG_CONFIG --libs "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
10954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_LIBS" >&5
10955 $as_echo "$IMAGEMAGICK_LIBS" >&6; }
10956 else
10957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10958 $as_echo "no" >&6; }
10959 IMAGEMAGICK_CFLAGS=""
10960 IMAGEMAGICK_LIBS=""
10961 ## If we have a custom action on failure, don't print errors, but
10962 ## do set a variable so people can do so.
10963 IMAGEMAGICK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$IMAGEMAGICK_MODULE"`
10969 else
10970 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10971 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10975 if test $succeeded = yes; then
10976 HAVE_IMAGEMAGICK=yes
10977 else
10984 if test $HAVE_IMAGEMAGICK = yes; then
10986 $as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
10988 CFLAGS="$CFLAGS $IMAGEMAGICK_CFLAGS"
10989 LIBS="$IMAGEMAGICK_LIBS $LIBS"
10990 for ac_func in MagickExportImagePixels
10991 do :
10992 ac_fn_c_check_func "$LINENO" "MagickExportImagePixels" "ac_cv_func_MagickExportImagePixels"
10993 if test "x$ac_cv_func_MagickExportImagePixels" = x""yes; then :
10994 cat >>confdefs.h <<_ACEOF
10995 #define HAVE_MAGICKEXPORTIMAGEPIXELS 1
10996 _ACEOF
10999 done
11006 HAVE_GTK=no
11007 GTK_OBJ=
11008 if test "${with_gtk3}" = "yes"; then
11009 GLIB_REQUIRED=2.28
11010 GTK_REQUIRED=3.0
11011 GTK_MODULES="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11014 succeeded=no
11016 # Extract the first word of "pkg-config", so it can be a program name with args.
11017 set dummy pkg-config; ac_word=$2
11018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11019 $as_echo_n "checking for $ac_word... " >&6; }
11020 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11021 $as_echo_n "(cached) " >&6
11022 else
11023 case $PKG_CONFIG in
11024 [\\/]* | ?:[\\/]*)
11025 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11029 for as_dir in $PATH
11031 IFS=$as_save_IFS
11032 test -z "$as_dir" && as_dir=.
11033 for ac_exec_ext in '' $ac_executable_extensions; do
11034 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11035 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11037 break 2
11039 done
11040 done
11041 IFS=$as_save_IFS
11043 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11045 esac
11047 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11048 if test -n "$PKG_CONFIG"; then
11049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11050 $as_echo "$PKG_CONFIG" >&6; }
11051 else
11052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11053 $as_echo "no" >&6; }
11058 if test "$PKG_CONFIG" = "no" ; then
11059 pkg_check_gtk=no
11060 else
11061 PKG_CONFIG_MIN_VERSION=0.9.0
11062 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
11064 $as_echo_n "checking for $GTK_MODULES... " >&6; }
11066 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11068 $as_echo "yes" >&6; }
11069 succeeded=yes
11071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
11072 $as_echo_n "checking GTK_CFLAGS... " >&6; }
11073 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
11074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
11075 $as_echo "$GTK_CFLAGS" >&6; }
11077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
11078 $as_echo_n "checking GTK_LIBS... " >&6; }
11079 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
11080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
11081 $as_echo "$GTK_LIBS" >&6; }
11082 else
11083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11084 $as_echo "no" >&6; }
11085 GTK_CFLAGS=""
11086 GTK_LIBS=""
11087 ## If we have a custom action on failure, don't print errors, but
11088 ## do set a variable so people can do so.
11089 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11095 else
11096 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11097 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11101 if test $succeeded = yes; then
11102 pkg_check_gtk=yes
11103 else
11104 pkg_check_gtk=no
11107 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
11108 as_fn_error "$GTK_PKG_ERRORS" "$LINENO" 5
11111 $as_echo "#define HAVE_GTK3 1" >>confdefs.h
11113 GTK_OBJ=emacsgtkfixed.o
11116 if test "$pkg_check_gtk" != "yes"; then
11117 HAVE_GTK=no
11118 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
11119 GLIB_REQUIRED=2.6
11120 GTK_REQUIRED=2.6
11121 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11124 succeeded=no
11126 # Extract the first word of "pkg-config", so it can be a program name with args.
11127 set dummy pkg-config; ac_word=$2
11128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11129 $as_echo_n "checking for $ac_word... " >&6; }
11130 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11131 $as_echo_n "(cached) " >&6
11132 else
11133 case $PKG_CONFIG in
11134 [\\/]* | ?:[\\/]*)
11135 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11139 for as_dir in $PATH
11141 IFS=$as_save_IFS
11142 test -z "$as_dir" && as_dir=.
11143 for ac_exec_ext in '' $ac_executable_extensions; do
11144 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11145 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11147 break 2
11149 done
11150 done
11151 IFS=$as_save_IFS
11153 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11155 esac
11157 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11158 if test -n "$PKG_CONFIG"; then
11159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11160 $as_echo "$PKG_CONFIG" >&6; }
11161 else
11162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11163 $as_echo "no" >&6; }
11168 if test "$PKG_CONFIG" = "no" ; then
11169 pkg_check_gtk=no
11170 else
11171 PKG_CONFIG_MIN_VERSION=0.9.0
11172 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
11174 $as_echo_n "checking for $GTK_MODULES... " >&6; }
11176 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11178 $as_echo "yes" >&6; }
11179 succeeded=yes
11181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
11182 $as_echo_n "checking GTK_CFLAGS... " >&6; }
11183 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
11184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
11185 $as_echo "$GTK_CFLAGS" >&6; }
11187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
11188 $as_echo_n "checking GTK_LIBS... " >&6; }
11189 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
11190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
11191 $as_echo "$GTK_LIBS" >&6; }
11192 else
11193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11194 $as_echo "no" >&6; }
11195 GTK_CFLAGS=""
11196 GTK_LIBS=""
11197 ## If we have a custom action on failure, don't print errors, but
11198 ## do set a variable so people can do so.
11199 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11205 else
11206 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11207 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11211 if test $succeeded = yes; then
11212 pkg_check_gtk=yes
11213 else
11214 pkg_check_gtk=no
11217 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
11218 as_fn_error "$GTK_PKG_ERRORS" "$LINENO" 5
11223 if test x"$pkg_check_gtk" = xyes; then
11227 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
11228 CFLAGS="$CFLAGS $GTK_CFLAGS"
11229 LIBS="$GTK_LIBS $LIBS"
11230 GTK_COMPILES=no
11231 for ac_func in gtk_main
11232 do :
11233 ac_fn_c_check_func "$LINENO" "gtk_main" "ac_cv_func_gtk_main"
11234 if test "x$ac_cv_func_gtk_main" = x""yes; then :
11235 cat >>confdefs.h <<_ACEOF
11236 #define HAVE_GTK_MAIN 1
11237 _ACEOF
11238 GTK_COMPILES=yes
11240 done
11242 if test "${GTK_COMPILES}" != "yes"; then
11243 if test "$USE_X_TOOLKIT" != "maybe"; then
11244 as_fn_error "Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
11246 else
11247 HAVE_GTK=yes
11249 $as_echo "#define USE_GTK 1" >>confdefs.h
11251 GTK_OBJ="gtkutil.o $GTK_OBJ"
11252 USE_X_TOOLKIT=none
11253 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
11255 else
11256 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
11257 closing open displays. This is no problem if you just use
11258 one display, but if you use more than one and close one of them
11259 Emacs may crash." >&5
11260 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
11261 closing open displays. This is no problem if you just use
11262 one display, but if you use more than one and close one of them
11263 Emacs may crash." >&2;}
11264 sleep 3
11272 if test "${HAVE_GTK}" = "yes"; then
11274 if test "$with_toolkit_scroll_bars" != no; then
11275 with_toolkit_scroll_bars=yes
11278 HAVE_GTK_FILE_SELECTION=no
11279 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
11280 #include <gtk/gtk.h>
11282 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x""yes; then :
11283 HAVE_GTK_FILE_SELECTION=yes
11284 else
11285 HAVE_GTK_FILE_SELECTION=no
11288 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
11289 for ac_func in gtk_file_selection_new
11290 do :
11291 ac_fn_c_check_func "$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
11292 if test "x$ac_cv_func_gtk_file_selection_new" = x""yes; then :
11293 cat >>confdefs.h <<_ACEOF
11294 #define HAVE_GTK_FILE_SELECTION_NEW 1
11295 _ACEOF
11298 done
11303 for ac_func in gtk_widget_get_window gtk_widget_set_has_window \
11304 gtk_dialog_get_action_area gtk_widget_get_sensitive \
11305 gtk_widget_get_mapped gtk_adjustment_get_page_size \
11306 gtk_orientable_set_orientation
11307 do :
11308 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11309 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11310 eval as_val=\$$as_ac_var
11311 if test "x$as_val" = x""yes; then :
11312 cat >>confdefs.h <<_ACEOF
11313 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11314 _ACEOF
11317 done
11322 HAVE_DBUS=no
11323 DBUS_OBJ=
11324 if test "${with_dbus}" = "yes"; then
11326 succeeded=no
11328 # Extract the first word of "pkg-config", so it can be a program name with args.
11329 set dummy pkg-config; ac_word=$2
11330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11331 $as_echo_n "checking for $ac_word... " >&6; }
11332 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11333 $as_echo_n "(cached) " >&6
11334 else
11335 case $PKG_CONFIG in
11336 [\\/]* | ?:[\\/]*)
11337 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11341 for as_dir in $PATH
11343 IFS=$as_save_IFS
11344 test -z "$as_dir" && as_dir=.
11345 for ac_exec_ext in '' $ac_executable_extensions; do
11346 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11347 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11349 break 2
11351 done
11352 done
11353 IFS=$as_save_IFS
11355 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11357 esac
11359 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11360 if test -n "$PKG_CONFIG"; then
11361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11362 $as_echo "$PKG_CONFIG" >&6; }
11363 else
11364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11365 $as_echo "no" >&6; }
11370 if test "$PKG_CONFIG" = "no" ; then
11371 HAVE_DBUS=no
11372 else
11373 PKG_CONFIG_MIN_VERSION=0.9.0
11374 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
11376 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
11378 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
11379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11380 $as_echo "yes" >&6; }
11381 succeeded=yes
11383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_CFLAGS" >&5
11384 $as_echo_n "checking DBUS_CFLAGS... " >&6; }
11385 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
11386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_CFLAGS" >&5
11387 $as_echo "$DBUS_CFLAGS" >&6; }
11389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_LIBS" >&5
11390 $as_echo_n "checking DBUS_LIBS... " >&6; }
11391 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
11392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_LIBS" >&5
11393 $as_echo "$DBUS_LIBS" >&6; }
11394 else
11395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11396 $as_echo "no" >&6; }
11397 DBUS_CFLAGS=""
11398 DBUS_LIBS=""
11399 ## If we have a custom action on failure, don't print errors, but
11400 ## do set a variable so people can do so.
11401 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
11407 else
11408 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11409 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11413 if test $succeeded = yes; then
11414 HAVE_DBUS=yes
11415 else
11416 HAVE_DBUS=no
11419 if test "$HAVE_DBUS" = yes; then
11420 LIBS="$LIBS $DBUS_LIBS"
11422 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
11424 for ac_func in dbus_watch_get_unix_fd
11425 do :
11426 ac_fn_c_check_func "$LINENO" "dbus_watch_get_unix_fd" "ac_cv_func_dbus_watch_get_unix_fd"
11427 if test "x$ac_cv_func_dbus_watch_get_unix_fd" = x""yes; then :
11428 cat >>confdefs.h <<_ACEOF
11429 #define HAVE_DBUS_WATCH_GET_UNIX_FD 1
11430 _ACEOF
11433 done
11435 DBUS_OBJ=dbusbind.o
11440 HAVE_GSETTINGS=no
11441 if test "${HAVE_X11}" = "yes" && test "${with_gsettings}" = "yes"; then
11443 succeeded=no
11445 # Extract the first word of "pkg-config", so it can be a program name with args.
11446 set dummy pkg-config; ac_word=$2
11447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11448 $as_echo_n "checking for $ac_word... " >&6; }
11449 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11450 $as_echo_n "(cached) " >&6
11451 else
11452 case $PKG_CONFIG in
11453 [\\/]* | ?:[\\/]*)
11454 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11458 for as_dir in $PATH
11460 IFS=$as_save_IFS
11461 test -z "$as_dir" && as_dir=.
11462 for ac_exec_ext in '' $ac_executable_extensions; do
11463 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11464 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11466 break 2
11468 done
11469 done
11470 IFS=$as_save_IFS
11472 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11474 esac
11476 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11477 if test -n "$PKG_CONFIG"; then
11478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11479 $as_echo "$PKG_CONFIG" >&6; }
11480 else
11481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11482 $as_echo "no" >&6; }
11487 if test "$PKG_CONFIG" = "no" ; then
11488 HAVE_GSETTINGS=no
11489 else
11490 PKG_CONFIG_MIN_VERSION=0.9.0
11491 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gio-2.0 >= 2.26" >&5
11493 $as_echo_n "checking for gio-2.0 >= 2.26... " >&6; }
11495 if $PKG_CONFIG --exists "gio-2.0 >= 2.26" 2>&5; then
11496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11497 $as_echo "yes" >&6; }
11498 succeeded=yes
11500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GSETTINGS_CFLAGS" >&5
11501 $as_echo_n "checking GSETTINGS_CFLAGS... " >&6; }
11502 GSETTINGS_CFLAGS=`$PKG_CONFIG --cflags "gio-2.0 >= 2.26"|sed -e 's,///*,/,g'`
11503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSETTINGS_CFLAGS" >&5
11504 $as_echo "$GSETTINGS_CFLAGS" >&6; }
11506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GSETTINGS_LIBS" >&5
11507 $as_echo_n "checking GSETTINGS_LIBS... " >&6; }
11508 GSETTINGS_LIBS=`$PKG_CONFIG --libs "gio-2.0 >= 2.26"|sed -e 's,///*,/,g'`
11509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSETTINGS_LIBS" >&5
11510 $as_echo "$GSETTINGS_LIBS" >&6; }
11511 else
11512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11513 $as_echo "no" >&6; }
11514 GSETTINGS_CFLAGS=""
11515 GSETTINGS_LIBS=""
11516 ## If we have a custom action on failure, don't print errors, but
11517 ## do set a variable so people can do so.
11518 GSETTINGS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gio-2.0 >= 2.26"`
11524 else
11525 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11526 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11530 if test $succeeded = yes; then
11531 HAVE_GSETTINGS=yes
11532 else
11533 HAVE_GSETTINGS=no
11536 if test "$HAVE_GSETTINGS" = "yes"; then
11538 $as_echo "#define HAVE_GSETTINGS 1" >>confdefs.h
11540 SETTINGS_CFLAGS="$GSETTINGS_CFLAGS"
11541 SETTINGS_LIBS="$GSETTINGS_LIBS"
11545 HAVE_GCONF=no
11546 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
11548 succeeded=no
11550 # Extract the first word of "pkg-config", so it can be a program name with args.
11551 set dummy pkg-config; ac_word=$2
11552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11553 $as_echo_n "checking for $ac_word... " >&6; }
11554 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11555 $as_echo_n "(cached) " >&6
11556 else
11557 case $PKG_CONFIG in
11558 [\\/]* | ?:[\\/]*)
11559 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11563 for as_dir in $PATH
11565 IFS=$as_save_IFS
11566 test -z "$as_dir" && as_dir=.
11567 for ac_exec_ext in '' $ac_executable_extensions; do
11568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11569 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11571 break 2
11573 done
11574 done
11575 IFS=$as_save_IFS
11577 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11579 esac
11581 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11582 if test -n "$PKG_CONFIG"; then
11583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11584 $as_echo "$PKG_CONFIG" >&6; }
11585 else
11586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11587 $as_echo "no" >&6; }
11592 if test "$PKG_CONFIG" = "no" ; then
11593 HAVE_GCONF=no
11594 else
11595 PKG_CONFIG_MIN_VERSION=0.9.0
11596 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
11598 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
11600 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
11601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11602 $as_echo "yes" >&6; }
11603 succeeded=yes
11605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_CFLAGS" >&5
11606 $as_echo_n "checking GCONF_CFLAGS... " >&6; }
11607 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
11608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_CFLAGS" >&5
11609 $as_echo "$GCONF_CFLAGS" >&6; }
11611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_LIBS" >&5
11612 $as_echo_n "checking GCONF_LIBS... " >&6; }
11613 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
11614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_LIBS" >&5
11615 $as_echo "$GCONF_LIBS" >&6; }
11616 else
11617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11618 $as_echo "no" >&6; }
11619 GCONF_CFLAGS=""
11620 GCONF_LIBS=""
11621 ## If we have a custom action on failure, don't print errors, but
11622 ## do set a variable so people can do so.
11623 GCONF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
11629 else
11630 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11631 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11635 if test $succeeded = yes; then
11636 HAVE_GCONF=yes
11637 else
11638 HAVE_GCONF=no
11641 if test "$HAVE_GCONF" = yes; then
11643 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
11645 SETTINGS_CFLAGS="$SETTINGS_CFLAGS $GCONF_CFLAGS"
11646 SETTINGS_LIBS="$SETTINGS_LIBS $GCONF_LIBS"
11650 if test "$HAVE_GSETTINGS" = "yes" || test "$HAVE_GCONF" = "yes"; then
11651 SAVE_CFLAGS="$CFLAGS"
11652 SAVE_LDFLAGS="$LDFLAGS"
11653 CFLAGS="$SETTINGS_CFLAGS $CFLAGS"
11654 LDFLAGS="$SETTINGS_LIBS $LDFLAGS"
11655 for ac_func in g_type_init
11656 do :
11657 ac_fn_c_check_func "$LINENO" "g_type_init" "ac_cv_func_g_type_init"
11658 if test "x$ac_cv_func_g_type_init" = x""yes; then :
11659 cat >>confdefs.h <<_ACEOF
11660 #define HAVE_G_TYPE_INIT 1
11661 _ACEOF
11664 done
11666 CFLAGS="$SAVE_CFLAGS"
11667 LDFLAGS="$SAVE_LDFLAGS"
11673 HAVE_LIBSELINUX=no
11674 LIBSELINUX_LIBS=
11675 if test "${with_selinux}" = "yes"; then
11676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
11677 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
11678 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then :
11679 $as_echo_n "(cached) " >&6
11680 else
11681 ac_check_lib_save_LIBS=$LIBS
11682 LIBS="-lselinux $LIBS"
11683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11684 /* end confdefs.h. */
11686 /* Override any GCC internal prototype to avoid an error.
11687 Use char because int might match the return type of a GCC
11688 builtin and then its argument prototype would still apply. */
11689 #ifdef __cplusplus
11690 extern "C"
11691 #endif
11692 char lgetfilecon ();
11694 main ()
11696 return lgetfilecon ();
11698 return 0;
11700 _ACEOF
11701 if ac_fn_c_try_link "$LINENO"; then :
11702 ac_cv_lib_selinux_lgetfilecon=yes
11703 else
11704 ac_cv_lib_selinux_lgetfilecon=no
11706 rm -f core conftest.err conftest.$ac_objext \
11707 conftest$ac_exeext conftest.$ac_ext
11708 LIBS=$ac_check_lib_save_LIBS
11710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
11711 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
11712 if test "x$ac_cv_lib_selinux_lgetfilecon" = x""yes; then :
11713 HAVE_LIBSELINUX=yes
11714 else
11715 HAVE_LIBSELINUX=no
11718 if test "$HAVE_LIBSELINUX" = yes; then
11720 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
11722 LIBSELINUX_LIBS=-lselinux
11727 HAVE_GNUTLS=no
11728 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY=no
11729 if test "${with_gnutls}" = "yes" ; then
11731 succeeded=no
11733 # Extract the first word of "pkg-config", so it can be a program name with args.
11734 set dummy pkg-config; ac_word=$2
11735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11736 $as_echo_n "checking for $ac_word... " >&6; }
11737 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11738 $as_echo_n "(cached) " >&6
11739 else
11740 case $PKG_CONFIG in
11741 [\\/]* | ?:[\\/]*)
11742 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11746 for as_dir in $PATH
11748 IFS=$as_save_IFS
11749 test -z "$as_dir" && as_dir=.
11750 for ac_exec_ext in '' $ac_executable_extensions; do
11751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11752 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11754 break 2
11756 done
11757 done
11758 IFS=$as_save_IFS
11760 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11762 esac
11764 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11765 if test -n "$PKG_CONFIG"; then
11766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11767 $as_echo "$PKG_CONFIG" >&6; }
11768 else
11769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11770 $as_echo "no" >&6; }
11775 if test "$PKG_CONFIG" = "no" ; then
11776 HAVE_GNUTLS=no
11777 else
11778 PKG_CONFIG_MIN_VERSION=0.9.0
11779 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.6.0" >&5
11781 $as_echo_n "checking for gnutls >= 2.6.0... " >&6; }
11783 if $PKG_CONFIG --exists "gnutls >= 2.6.0" 2>&5; then
11784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11785 $as_echo "yes" >&6; }
11786 succeeded=yes
11788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_CFLAGS" >&5
11789 $as_echo_n "checking LIBGNUTLS_CFLAGS... " >&6; }
11790 LIBGNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls >= 2.6.0"|sed -e 's,///*,/,g'`
11791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_CFLAGS" >&5
11792 $as_echo "$LIBGNUTLS_CFLAGS" >&6; }
11794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_LIBS" >&5
11795 $as_echo_n "checking LIBGNUTLS_LIBS... " >&6; }
11796 LIBGNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls >= 2.6.0"|sed -e 's,///*,/,g'`
11797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_LIBS" >&5
11798 $as_echo "$LIBGNUTLS_LIBS" >&6; }
11799 else
11800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11801 $as_echo "no" >&6; }
11802 LIBGNUTLS_CFLAGS=""
11803 LIBGNUTLS_LIBS=""
11804 ## If we have a custom action on failure, don't print errors, but
11805 ## do set a variable so people can do so.
11806 LIBGNUTLS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnutls >= 2.6.0"`
11812 else
11813 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11814 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11818 if test $succeeded = yes; then
11819 HAVE_GNUTLS=yes
11820 else
11821 HAVE_GNUTLS=no
11824 if test "${HAVE_GNUTLS}" = "yes"; then
11826 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
11830 CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
11831 LIBS="$LIBGNUTLS_LIBS $LIBS"
11832 for ac_func in gnutls_certificate_set_verify_function
11833 do :
11834 ac_fn_c_check_func "$LINENO" "gnutls_certificate_set_verify_function" "ac_cv_func_gnutls_certificate_set_verify_function"
11835 if test "x$ac_cv_func_gnutls_certificate_set_verify_function" = x""yes; then :
11836 cat >>confdefs.h <<_ACEOF
11837 #define HAVE_GNUTLS_CERTIFICATE_SET_VERIFY_FUNCTION 1
11838 _ACEOF
11839 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY=yes
11841 done
11844 if test "${HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY}" = "yes"; then
11846 $as_echo "#define HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY 1" >>confdefs.h
11854 HAVE_XAW3D=no
11855 LUCID_LIBW=
11856 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
11857 if test "$with_xaw3d" != no; then
11858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
11859 $as_echo_n "checking for xaw3d... " >&6; }
11860 if test "${emacs_cv_xaw3d+set}" = set; then :
11861 $as_echo_n "(cached) " >&6
11862 else
11863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11864 /* end confdefs.h. */
11866 #include <X11/Intrinsic.h>
11867 #include <X11/Xaw3d/Simple.h>
11869 main ()
11873 return 0;
11875 _ACEOF
11876 if ac_fn_c_try_link "$LINENO"; then :
11877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XawScrollbarSetThumb in -lXaw3d" >&5
11878 $as_echo_n "checking for XawScrollbarSetThumb in -lXaw3d... " >&6; }
11879 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then :
11880 $as_echo_n "(cached) " >&6
11881 else
11882 ac_check_lib_save_LIBS=$LIBS
11883 LIBS="-lXaw3d $LIBS"
11884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11885 /* end confdefs.h. */
11887 /* Override any GCC internal prototype to avoid an error.
11888 Use char because int might match the return type of a GCC
11889 builtin and then its argument prototype would still apply. */
11890 #ifdef __cplusplus
11891 extern "C"
11892 #endif
11893 char XawScrollbarSetThumb ();
11895 main ()
11897 return XawScrollbarSetThumb ();
11899 return 0;
11901 _ACEOF
11902 if ac_fn_c_try_link "$LINENO"; then :
11903 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
11904 else
11905 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
11907 rm -f core conftest.err conftest.$ac_objext \
11908 conftest$ac_exeext conftest.$ac_ext
11909 LIBS=$ac_check_lib_save_LIBS
11911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
11912 $as_echo "$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
11913 if test "x$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" = x""yes; then :
11914 emacs_cv_xaw3d=yes
11915 else
11916 emacs_cv_xaw3d=no
11919 else
11920 emacs_cv_xaw3d=no
11922 rm -f core conftest.err conftest.$ac_objext \
11923 conftest$ac_exeext conftest.$ac_ext
11926 else
11927 emacs_cv_xaw3d=no
11929 if test $emacs_cv_xaw3d = yes; then
11930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
11931 $as_echo "yes; using Lucid toolkit" >&6; }
11932 USE_X_TOOLKIT=LUCID
11933 HAVE_XAW3D=yes
11934 LUCID_LIBW=-lXaw3d
11936 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
11938 else
11939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11940 $as_echo "no" >&6; }
11941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
11942 $as_echo_n "checking for libXaw... " >&6; }
11943 if test "${emacs_cv_xaw+set}" = set; then :
11944 $as_echo_n "(cached) " >&6
11945 else
11946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11947 /* end confdefs.h. */
11949 #include <X11/Intrinsic.h>
11950 #include <X11/Xaw/Simple.h>
11952 main ()
11956 return 0;
11958 _ACEOF
11959 if ac_fn_c_try_link "$LINENO"; then :
11960 emacs_cv_xaw=yes
11961 else
11962 emacs_cv_xaw=no
11964 rm -f core conftest.err conftest.$ac_objext \
11965 conftest$ac_exeext conftest.$ac_ext
11968 if test $emacs_cv_xaw = yes; then
11969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
11970 $as_echo "yes; using Lucid toolkit" >&6; }
11971 USE_X_TOOLKIT=LUCID
11972 LUCID_LIBW=-lXaw
11973 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
11974 as_fn_error "Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
11975 else
11976 as_fn_error "No X toolkit could be found.
11977 If you are sure you want Emacs compiled without an X toolkit, pass
11978 --with-x-toolkit=no
11979 to configure. Otherwise, install the development libraries for the toolkit
11980 that you want to use (e.g. Gtk+) and re-run configure." "$LINENO" 5
11985 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
11987 LIBXTR6=
11988 if test "${USE_X_TOOLKIT}" != "none"; then
11989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
11990 $as_echo_n "checking X11 toolkit version... " >&6; }
11991 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then :
11992 $as_echo_n "(cached) " >&6
11993 else
11994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11995 /* end confdefs.h. */
11996 #include <X11/Intrinsic.h>
11998 main ()
12000 #if XtSpecificationRelease < 6
12001 fail;
12002 #endif
12005 return 0;
12007 _ACEOF
12008 if ac_fn_c_try_link "$LINENO"; then :
12009 emacs_cv_x11_toolkit_version_6=yes
12010 else
12011 emacs_cv_x11_toolkit_version_6=no
12013 rm -f core conftest.err conftest.$ac_objext \
12014 conftest$ac_exeext conftest.$ac_ext
12017 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
12018 if test $emacs_cv_x11_toolkit_version_6 = yes; then
12019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
12020 $as_echo "6 or newer" >&6; }
12022 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
12024 LIBXTR6="-lSM -lICE"
12025 case "$opsys" in
12026 ## Use libw.a along with X11R6 Xt.
12027 unixware) LIBXTR6="$LIBXTR6 -lw" ;;
12028 esac
12029 else
12030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
12031 $as_echo "before 6" >&6; }
12034 OLDLIBS="$LIBS"
12035 if test x$HAVE_X11XTR6 = xyes; then
12036 LIBS="-lXt -lSM -lICE $LIBS"
12037 else
12038 LIBS="-lXt $LIBS"
12040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
12041 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
12042 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then :
12043 $as_echo_n "(cached) " >&6
12044 else
12045 ac_check_lib_save_LIBS=$LIBS
12046 LIBS="-lXmu $LIBS"
12047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12048 /* end confdefs.h. */
12050 /* Override any GCC internal prototype to avoid an error.
12051 Use char because int might match the return type of a GCC
12052 builtin and then its argument prototype would still apply. */
12053 #ifdef __cplusplus
12054 extern "C"
12055 #endif
12056 char XmuConvertStandardSelection ();
12058 main ()
12060 return XmuConvertStandardSelection ();
12062 return 0;
12064 _ACEOF
12065 if ac_fn_c_try_link "$LINENO"; then :
12066 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
12067 else
12068 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
12070 rm -f core conftest.err conftest.$ac_objext \
12071 conftest$ac_exeext conftest.$ac_ext
12072 LIBS=$ac_check_lib_save_LIBS
12074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
12075 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
12076 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x""yes; then :
12077 cat >>confdefs.h <<_ACEOF
12078 #define HAVE_LIBXMU 1
12079 _ACEOF
12081 LIBS="-lXmu $LIBS"
12085 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
12089 LIBXMU=-lXmu
12090 case $opsys in
12091 ## These systems don't supply Xmu.
12092 hpux* | aix4-2 )
12093 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU=
12095 esac
12098 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12099 if test "${HAVE_X11}" = "yes"; then
12100 if test "${USE_X_TOOLKIT}" != "none"; then
12101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
12102 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
12103 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
12104 $as_echo_n "(cached) " >&6
12105 else
12106 ac_check_lib_save_LIBS=$LIBS
12107 LIBS="-lXext $LIBS"
12108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12109 /* end confdefs.h. */
12111 /* Override any GCC internal prototype to avoid an error.
12112 Use char because int might match the return type of a GCC
12113 builtin and then its argument prototype would still apply. */
12114 #ifdef __cplusplus
12115 extern "C"
12116 #endif
12117 char XShapeQueryExtension ();
12119 main ()
12121 return XShapeQueryExtension ();
12123 return 0;
12125 _ACEOF
12126 if ac_fn_c_try_link "$LINENO"; then :
12127 ac_cv_lib_Xext_XShapeQueryExtension=yes
12128 else
12129 ac_cv_lib_Xext_XShapeQueryExtension=no
12131 rm -f core conftest.err conftest.$ac_objext \
12132 conftest$ac_exeext conftest.$ac_ext
12133 LIBS=$ac_check_lib_save_LIBS
12135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12136 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12137 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then :
12138 cat >>confdefs.h <<_ACEOF
12139 #define HAVE_LIBXEXT 1
12140 _ACEOF
12142 LIBS="-lXext $LIBS"
12149 LIBXP=
12150 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif version 2.1" >&5
12152 $as_echo_n "checking for Motif version 2.1... " >&6; }
12153 if test "${emacs_cv_motif_version_2_1+set}" = set; then :
12154 $as_echo_n "(cached) " >&6
12155 else
12156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12157 /* end confdefs.h. */
12158 #include <Xm/Xm.h>
12160 main ()
12162 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12163 int x = 5;
12164 #else
12165 Motif version prior to 2.1.
12166 #endif
12168 return 0;
12170 _ACEOF
12171 if ac_fn_c_try_compile "$LINENO"; then :
12172 emacs_cv_motif_version_2_1=yes
12173 else
12174 emacs_cv_motif_version_2_1=no
12176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
12179 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
12180 if test $emacs_cv_motif_version_2_1 = yes; then
12181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
12182 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
12183 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then :
12184 $as_echo_n "(cached) " >&6
12185 else
12186 ac_check_lib_save_LIBS=$LIBS
12187 LIBS="-lXp $LIBS"
12188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12189 /* end confdefs.h. */
12191 /* Override any GCC internal prototype to avoid an error.
12192 Use char because int might match the return type of a GCC
12193 builtin and then its argument prototype would still apply. */
12194 #ifdef __cplusplus
12195 extern "C"
12196 #endif
12197 char XpCreateContext ();
12199 main ()
12201 return XpCreateContext ();
12203 return 0;
12205 _ACEOF
12206 if ac_fn_c_try_link "$LINENO"; then :
12207 ac_cv_lib_Xp_XpCreateContext=yes
12208 else
12209 ac_cv_lib_Xp_XpCreateContext=no
12211 rm -f core conftest.err conftest.$ac_objext \
12212 conftest$ac_exeext conftest.$ac_ext
12213 LIBS=$ac_check_lib_save_LIBS
12215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12216 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
12217 if test "x$ac_cv_lib_Xp_XpCreateContext" = x""yes; then :
12218 LIBXP=-lXp
12221 else
12222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
12223 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
12224 if test "${emacs_cv_lesstif+set}" = set; then :
12225 $as_echo_n "(cached) " >&6
12226 else
12227 # We put this in CFLAGS temporarily to precede other -I options
12228 # that might be in CFLAGS temporarily.
12229 # We put this in CPPFLAGS where it precedes the other -I options.
12230 OLD_CPPFLAGS=$CPPFLAGS
12231 OLD_CFLAGS=$CFLAGS
12232 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12233 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12235 /* end confdefs.h. */
12236 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12238 main ()
12240 int x = 5;
12242 return 0;
12244 _ACEOF
12245 if ac_fn_c_try_compile "$LINENO"; then :
12246 emacs_cv_lesstif=yes
12247 else
12248 emacs_cv_lesstif=no
12250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
12253 $as_echo "$emacs_cv_lesstif" >&6; }
12254 if test $emacs_cv_lesstif = yes; then
12255 # Make sure this -I option remains in CPPFLAGS after it is set
12256 # back to REAL_CPPFLAGS.
12257 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12258 # have those other -I options anyway. Ultimately, having this
12259 # directory ultimately in CPPFLAGS will be enough.
12260 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12261 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12262 else
12263 CFLAGS=$OLD_CFLAGS
12264 CPPFLAGS=$OLD_CPPFLAGS
12270 USE_TOOLKIT_SCROLL_BARS=no
12271 if test "${with_toolkit_scroll_bars}" != "no"; then
12272 if test "${USE_X_TOOLKIT}" != "none"; then
12273 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12274 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12276 HAVE_XAW3D=no
12277 USE_TOOLKIT_SCROLL_BARS=yes
12278 elif test "${HAVE_XAW3D}" = "yes"; then
12279 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12281 USE_TOOLKIT_SCROLL_BARS=yes
12283 elif test "${HAVE_GTK}" = "yes"; then
12284 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12286 USE_TOOLKIT_SCROLL_BARS=yes
12287 elif test "${HAVE_NS}" = "yes"; then
12288 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12290 USE_TOOLKIT_SCROLL_BARS=yes
12294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12295 /* end confdefs.h. */
12297 #include <X11/Xlib.h>
12298 #include <X11/Xresource.h>
12300 main ()
12302 XIMProc callback;
12304 return 0;
12306 _ACEOF
12307 if ac_fn_c_try_compile "$LINENO"; then :
12308 HAVE_XIM=yes
12310 $as_echo "#define HAVE_XIM 1" >>confdefs.h
12312 else
12313 HAVE_XIM=no
12315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12318 if test "${with_xim}" != "no"; then
12320 $as_echo "#define USE_XIM 1" >>confdefs.h
12325 if test "${HAVE_XIM}" != "no"; then
12326 late_CFLAGS=$CFLAGS
12327 if test "$GCC" = yes; then
12328 CFLAGS="$CFLAGS --pedantic-errors"
12330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12331 /* end confdefs.h. */
12333 #include <X11/Xlib.h>
12334 #include <X11/Xresource.h>
12336 main ()
12338 Display *display;
12339 XrmDatabase db;
12340 char *res_name;
12341 char *res_class;
12342 XIMProc callback;
12343 XPointer *client_data;
12344 #ifndef __GNUC__
12345 /* If we're not using GCC, it's probably not XFree86, and this is
12346 probably right, but we can't use something like --pedantic-errors. */
12347 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12348 char*, XIMProc, XPointer*);
12349 #endif
12350 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12351 client_data);
12353 return 0;
12355 _ACEOF
12356 if ac_fn_c_try_compile "$LINENO"; then :
12357 emacs_cv_arg6_star=yes
12359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12360 if test "$emacs_cv_arg6_star" = yes; then
12361 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
12363 else
12364 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
12367 CFLAGS=$late_CFLAGS
12370 ### Start of font-backend (under any platform) section.
12371 # (nothing here yet -- this is a placeholder)
12372 ### End of font-backend (under any platform) section.
12374 ### Start of font-backend (under X11) section.
12375 if test "${HAVE_X11}" = "yes"; then
12377 succeeded=no
12379 # Extract the first word of "pkg-config", so it can be a program name with args.
12380 set dummy pkg-config; ac_word=$2
12381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12382 $as_echo_n "checking for $ac_word... " >&6; }
12383 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12384 $as_echo_n "(cached) " >&6
12385 else
12386 case $PKG_CONFIG in
12387 [\\/]* | ?:[\\/]*)
12388 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12392 for as_dir in $PATH
12394 IFS=$as_save_IFS
12395 test -z "$as_dir" && as_dir=.
12396 for ac_exec_ext in '' $ac_executable_extensions; do
12397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12398 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12400 break 2
12402 done
12403 done
12404 IFS=$as_save_IFS
12406 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12408 esac
12410 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12411 if test -n "$PKG_CONFIG"; then
12412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12413 $as_echo "$PKG_CONFIG" >&6; }
12414 else
12415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12416 $as_echo "no" >&6; }
12421 if test "$PKG_CONFIG" = "no" ; then
12422 HAVE_FC=no
12423 else
12424 PKG_CONFIG_MIN_VERSION=0.9.0
12425 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
12427 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
12429 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
12430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12431 $as_echo "yes" >&6; }
12432 succeeded=yes
12434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_CFLAGS" >&5
12435 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
12436 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
12437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_CFLAGS" >&5
12438 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
12440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_LIBS" >&5
12441 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
12442 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
12443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_LIBS" >&5
12444 $as_echo "$FONTCONFIG_LIBS" >&6; }
12445 else
12446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12447 $as_echo "no" >&6; }
12448 FONTCONFIG_CFLAGS=""
12449 FONTCONFIG_LIBS=""
12450 ## If we have a custom action on failure, don't print errors, but
12451 ## do set a variable so people can do so.
12452 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
12458 else
12459 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12460 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12464 if test $succeeded = yes; then
12465 HAVE_FC=yes
12466 else
12467 HAVE_FC=no
12471 ## Use -lXft if available, unless `--with-xft=no'.
12472 HAVE_XFT=maybe
12473 if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then
12474 with_xft="no";
12476 if test "x${with_xft}" != "xno"; then
12479 succeeded=no
12481 # Extract the first word of "pkg-config", so it can be a program name with args.
12482 set dummy pkg-config; ac_word=$2
12483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12484 $as_echo_n "checking for $ac_word... " >&6; }
12485 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12486 $as_echo_n "(cached) " >&6
12487 else
12488 case $PKG_CONFIG in
12489 [\\/]* | ?:[\\/]*)
12490 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12494 for as_dir in $PATH
12496 IFS=$as_save_IFS
12497 test -z "$as_dir" && as_dir=.
12498 for ac_exec_ext in '' $ac_executable_extensions; do
12499 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12500 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12502 break 2
12504 done
12505 done
12506 IFS=$as_save_IFS
12508 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12510 esac
12512 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12513 if test -n "$PKG_CONFIG"; then
12514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12515 $as_echo "$PKG_CONFIG" >&6; }
12516 else
12517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12518 $as_echo "no" >&6; }
12523 if test "$PKG_CONFIG" = "no" ; then
12524 HAVE_XFT=no
12525 else
12526 PKG_CONFIG_MIN_VERSION=0.9.0
12527 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
12529 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
12531 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
12532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12533 $as_echo "yes" >&6; }
12534 succeeded=yes
12536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_CFLAGS" >&5
12537 $as_echo_n "checking XFT_CFLAGS... " >&6; }
12538 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_CFLAGS" >&5
12540 $as_echo "$XFT_CFLAGS" >&6; }
12542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_LIBS" >&5
12543 $as_echo_n "checking XFT_LIBS... " >&6; }
12544 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_LIBS" >&5
12546 $as_echo "$XFT_LIBS" >&6; }
12547 else
12548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12549 $as_echo "no" >&6; }
12550 XFT_CFLAGS=""
12551 XFT_LIBS=""
12552 ## If we have a custom action on failure, don't print errors, but
12553 ## do set a variable so people can do so.
12554 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
12560 else
12561 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12562 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12566 if test $succeeded = yes; then
12568 else
12569 HAVE_XFT=no
12572 ## Because xftfont.c uses XRenderQueryExtension, we also
12573 ## need to link to -lXrender.
12574 HAVE_XRENDER=no
12575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
12576 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
12577 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
12578 $as_echo_n "(cached) " >&6
12579 else
12580 ac_check_lib_save_LIBS=$LIBS
12581 LIBS="-lXrender $LIBS"
12582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12583 /* end confdefs.h. */
12585 /* Override any GCC internal prototype to avoid an error.
12586 Use char because int might match the return type of a GCC
12587 builtin and then its argument prototype would still apply. */
12588 #ifdef __cplusplus
12589 extern "C"
12590 #endif
12591 char XRenderQueryExtension ();
12593 main ()
12595 return XRenderQueryExtension ();
12597 return 0;
12599 _ACEOF
12600 if ac_fn_c_try_link "$LINENO"; then :
12601 ac_cv_lib_Xrender_XRenderQueryExtension=yes
12602 else
12603 ac_cv_lib_Xrender_XRenderQueryExtension=no
12605 rm -f core conftest.err conftest.$ac_objext \
12606 conftest$ac_exeext conftest.$ac_ext
12607 LIBS=$ac_check_lib_save_LIBS
12609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
12610 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
12611 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x""yes; then :
12612 HAVE_XRENDER=yes
12615 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
12616 OLD_CPPFLAGS="$CPPFLAGS"
12617 OLD_CFLAGS="$CFLAGS"
12618 OLD_LIBS="$LIBS"
12619 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
12620 CFLAGS="$CFLAGS $XFT_CFLAGS"
12621 XFT_LIBS="-lXrender $XFT_LIBS"
12622 LIBS="$XFT_LIBS $LIBS"
12623 ac_fn_c_check_header_mongrel "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
12624 if test "x$ac_cv_header_X11_Xft_Xft_h" = x""yes; then :
12625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
12626 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
12627 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then :
12628 $as_echo_n "(cached) " >&6
12629 else
12630 ac_check_lib_save_LIBS=$LIBS
12631 LIBS="-lXft $XFT_LIBS $LIBS"
12632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12633 /* end confdefs.h. */
12635 /* Override any GCC internal prototype to avoid an error.
12636 Use char because int might match the return type of a GCC
12637 builtin and then its argument prototype would still apply. */
12638 #ifdef __cplusplus
12639 extern "C"
12640 #endif
12641 char XftFontOpen ();
12643 main ()
12645 return XftFontOpen ();
12647 return 0;
12649 _ACEOF
12650 if ac_fn_c_try_link "$LINENO"; then :
12651 ac_cv_lib_Xft_XftFontOpen=yes
12652 else
12653 ac_cv_lib_Xft_XftFontOpen=no
12655 rm -f core conftest.err conftest.$ac_objext \
12656 conftest$ac_exeext conftest.$ac_ext
12657 LIBS=$ac_check_lib_save_LIBS
12659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12660 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
12661 if test "x$ac_cv_lib_Xft_XftFontOpen" = x""yes; then :
12662 HAVE_XFT=yes
12669 if test "${HAVE_XFT}" = "yes"; then
12671 $as_echo "#define HAVE_XFT 1" >>confdefs.h
12674 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
12675 else
12676 CPPFLAGS="$OLD_CPPFLAGS"
12677 CFLAGS="$OLD_CFLAGS"
12678 LIBS="$OLD_LIBS"
12679 fi # "${HAVE_XFT}" = "yes"
12680 fi # "$HAVE_XFT" != no
12681 fi # "x${with_xft}" != "xno"
12683 ## We used to allow building with FreeType and without Xft.
12684 ## However, the ftx font backend driver is not in good shape.
12685 if test "$HAVE_XFT" != "yes"; then
12686 HAVE_XFT=no
12687 HAVE_FREETYPE=no
12688 else
12690 succeeded=no
12692 # Extract the first word of "pkg-config", so it can be a program name with args.
12693 set dummy pkg-config; ac_word=$2
12694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12695 $as_echo_n "checking for $ac_word... " >&6; }
12696 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12697 $as_echo_n "(cached) " >&6
12698 else
12699 case $PKG_CONFIG in
12700 [\\/]* | ?:[\\/]*)
12701 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12705 for as_dir in $PATH
12707 IFS=$as_save_IFS
12708 test -z "$as_dir" && as_dir=.
12709 for ac_exec_ext in '' $ac_executable_extensions; do
12710 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12711 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12713 break 2
12715 done
12716 done
12717 IFS=$as_save_IFS
12719 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12721 esac
12723 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12724 if test -n "$PKG_CONFIG"; then
12725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12726 $as_echo "$PKG_CONFIG" >&6; }
12727 else
12728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12729 $as_echo "no" >&6; }
12734 if test "$PKG_CONFIG" = "no" ; then
12735 HAVE_FREETYPE=no
12736 else
12737 PKG_CONFIG_MIN_VERSION=0.9.0
12738 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype2" >&5
12740 $as_echo_n "checking for freetype2... " >&6; }
12742 if $PKG_CONFIG --exists "freetype2" 2>&5; then
12743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12744 $as_echo "yes" >&6; }
12745 succeeded=yes
12747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FREETYPE_CFLAGS" >&5
12748 $as_echo_n "checking FREETYPE_CFLAGS... " >&6; }
12749 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2"|sed -e 's,///*,/,g'`
12750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_CFLAGS" >&5
12751 $as_echo "$FREETYPE_CFLAGS" >&6; }
12753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FREETYPE_LIBS" >&5
12754 $as_echo_n "checking FREETYPE_LIBS... " >&6; }
12755 FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2"|sed -e 's,///*,/,g'`
12756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIBS" >&5
12757 $as_echo "$FREETYPE_LIBS" >&6; }
12758 else
12759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12760 $as_echo "no" >&6; }
12761 FREETYPE_CFLAGS=""
12762 FREETYPE_LIBS=""
12763 ## If we have a custom action on failure, don't print errors, but
12764 ## do set a variable so people can do so.
12765 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
12771 else
12772 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12773 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12777 if test $succeeded = yes; then
12778 HAVE_FREETYPE=yes
12779 else
12780 HAVE_FREETYPE=no
12784 test "$HAVE_FREETYPE" = "no" && as_fn_error "libxft requires libfreetype" "$LINENO" 5
12787 HAVE_LIBOTF=no
12788 if test "${HAVE_FREETYPE}" = "yes"; then
12790 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
12792 if test "${with_libotf}" != "no"; then
12794 succeeded=no
12796 # Extract the first word of "pkg-config", so it can be a program name with args.
12797 set dummy pkg-config; ac_word=$2
12798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12799 $as_echo_n "checking for $ac_word... " >&6; }
12800 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12801 $as_echo_n "(cached) " >&6
12802 else
12803 case $PKG_CONFIG in
12804 [\\/]* | ?:[\\/]*)
12805 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12809 for as_dir in $PATH
12811 IFS=$as_save_IFS
12812 test -z "$as_dir" && as_dir=.
12813 for ac_exec_ext in '' $ac_executable_extensions; do
12814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12815 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12817 break 2
12819 done
12820 done
12821 IFS=$as_save_IFS
12823 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12825 esac
12827 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12828 if test -n "$PKG_CONFIG"; then
12829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12830 $as_echo "$PKG_CONFIG" >&6; }
12831 else
12832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12833 $as_echo "no" >&6; }
12838 if test "$PKG_CONFIG" = "no" ; then
12839 HAVE_LIBOTF=no
12840 else
12841 PKG_CONFIG_MIN_VERSION=0.9.0
12842 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
12844 $as_echo_n "checking for libotf... " >&6; }
12846 if $PKG_CONFIG --exists "libotf" 2>&5; then
12847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12848 $as_echo "yes" >&6; }
12849 succeeded=yes
12851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_CFLAGS" >&5
12852 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
12853 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
12854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_CFLAGS" >&5
12855 $as_echo "$LIBOTF_CFLAGS" >&6; }
12857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_LIBS" >&5
12858 $as_echo_n "checking LIBOTF_LIBS... " >&6; }
12859 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
12860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_LIBS" >&5
12861 $as_echo "$LIBOTF_LIBS" >&6; }
12862 else
12863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12864 $as_echo "no" >&6; }
12865 LIBOTF_CFLAGS=""
12866 LIBOTF_LIBS=""
12867 ## If we have a custom action on failure, don't print errors, but
12868 ## do set a variable so people can do so.
12869 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
12875 else
12876 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12877 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12881 if test $succeeded = yes; then
12882 HAVE_LIBOTF=yes
12883 else
12884 HAVE_LIBOTF=no
12887 if test "$HAVE_LIBOTF" = "yes"; then
12889 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
12891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
12892 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
12893 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then :
12894 $as_echo_n "(cached) " >&6
12895 else
12896 ac_check_lib_save_LIBS=$LIBS
12897 LIBS="-lotf $LIBS"
12898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12899 /* end confdefs.h. */
12901 /* Override any GCC internal prototype to avoid an error.
12902 Use char because int might match the return type of a GCC
12903 builtin and then its argument prototype would still apply. */
12904 #ifdef __cplusplus
12905 extern "C"
12906 #endif
12907 char OTF_get_variation_glyphs ();
12909 main ()
12911 return OTF_get_variation_glyphs ();
12913 return 0;
12915 _ACEOF
12916 if ac_fn_c_try_link "$LINENO"; then :
12917 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
12918 else
12919 ac_cv_lib_otf_OTF_get_variation_glyphs=no
12921 rm -f core conftest.err conftest.$ac_objext \
12922 conftest$ac_exeext conftest.$ac_ext
12923 LIBS=$ac_check_lib_save_LIBS
12925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
12926 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
12927 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x""yes; then :
12928 HAVE_OTF_GET_VARIATION_GLYPHS=yes
12929 else
12930 HAVE_OTF_GET_VARIATION_GLYPHS=no
12933 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
12935 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
12942 HAVE_M17N_FLT=no
12943 if test "${HAVE_LIBOTF}" = yes; then
12944 if test "${with_m17n_flt}" != "no"; then
12946 succeeded=no
12948 # Extract the first word of "pkg-config", so it can be a program name with args.
12949 set dummy pkg-config; ac_word=$2
12950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12951 $as_echo_n "checking for $ac_word... " >&6; }
12952 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12953 $as_echo_n "(cached) " >&6
12954 else
12955 case $PKG_CONFIG in
12956 [\\/]* | ?:[\\/]*)
12957 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12961 for as_dir in $PATH
12963 IFS=$as_save_IFS
12964 test -z "$as_dir" && as_dir=.
12965 for ac_exec_ext in '' $ac_executable_extensions; do
12966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12967 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12969 break 2
12971 done
12972 done
12973 IFS=$as_save_IFS
12975 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12977 esac
12979 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12980 if test -n "$PKG_CONFIG"; then
12981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12982 $as_echo "$PKG_CONFIG" >&6; }
12983 else
12984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12985 $as_echo "no" >&6; }
12990 if test "$PKG_CONFIG" = "no" ; then
12991 HAVE_M17N_FLT=no
12992 else
12993 PKG_CONFIG_MIN_VERSION=0.9.0
12994 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
12996 $as_echo_n "checking for m17n-flt... " >&6; }
12998 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
12999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13000 $as_echo "yes" >&6; }
13001 succeeded=yes
13003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_CFLAGS" >&5
13004 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
13005 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
13006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_CFLAGS" >&5
13007 $as_echo "$M17N_FLT_CFLAGS" >&6; }
13009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_LIBS" >&5
13010 $as_echo_n "checking M17N_FLT_LIBS... " >&6; }
13011 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
13012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_LIBS" >&5
13013 $as_echo "$M17N_FLT_LIBS" >&6; }
13014 else
13015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13016 $as_echo "no" >&6; }
13017 M17N_FLT_CFLAGS=""
13018 M17N_FLT_LIBS=""
13019 ## If we have a custom action on failure, don't print errors, but
13020 ## do set a variable so people can do so.
13021 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
13027 else
13028 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13029 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13033 if test $succeeded = yes; then
13034 HAVE_M17N_FLT=yes
13035 else
13036 HAVE_M17N_FLT=no
13039 if test "$HAVE_M17N_FLT" = "yes"; then
13041 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
13046 else
13047 HAVE_XFT=no
13048 HAVE_FREETYPE=no
13049 HAVE_LIBOTF=no
13050 HAVE_M17N_FLT=no
13053 ### End of font-backend (under X11) section.
13064 ### Use -lXpm if available, unless `--with-xpm=no'.
13065 HAVE_XPM=no
13066 LIBXPM=
13067 if test "${HAVE_X11}" = "yes"; then
13068 if test "${with_xpm}" != "no"; then
13069 ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
13070 if test "x$ac_cv_header_X11_xpm_h" = x""yes; then :
13071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
13072 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
13073 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then :
13074 $as_echo_n "(cached) " >&6
13075 else
13076 ac_check_lib_save_LIBS=$LIBS
13077 LIBS="-lXpm -lX11 $LIBS"
13078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13079 /* end confdefs.h. */
13081 /* Override any GCC internal prototype to avoid an error.
13082 Use char because int might match the return type of a GCC
13083 builtin and then its argument prototype would still apply. */
13084 #ifdef __cplusplus
13085 extern "C"
13086 #endif
13087 char XpmReadFileToPixmap ();
13089 main ()
13091 return XpmReadFileToPixmap ();
13093 return 0;
13095 _ACEOF
13096 if ac_fn_c_try_link "$LINENO"; then :
13097 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
13098 else
13099 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
13101 rm -f core conftest.err conftest.$ac_objext \
13102 conftest$ac_exeext conftest.$ac_ext
13103 LIBS=$ac_check_lib_save_LIBS
13105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
13106 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
13107 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x""yes; then :
13108 HAVE_XPM=yes
13114 if test "${HAVE_XPM}" = "yes"; then
13115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
13116 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
13117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13118 /* end confdefs.h. */
13119 #include "X11/xpm.h"
13120 #ifndef XpmReturnAllocPixels
13121 no_return_alloc_pixels
13122 #endif
13124 _ACEOF
13125 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13126 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then :
13127 HAVE_XPM=no
13128 else
13129 HAVE_XPM=yes
13131 rm -f conftest*
13134 if test "${HAVE_XPM}" = "yes"; then
13135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13136 $as_echo "yes" >&6; }
13137 else
13138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13139 $as_echo "no" >&6; }
13144 if test "${HAVE_XPM}" = "yes"; then
13146 $as_echo "#define HAVE_XPM 1" >>confdefs.h
13148 LIBXPM=-lXpm
13153 ### Use -ljpeg if available, unless `--with-jpeg=no'.
13154 HAVE_JPEG=no
13155 LIBJPEG=
13156 if test "${HAVE_X11}" = "yes"; then
13157 if test "${with_jpeg}" != "no"; then
13158 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
13159 if test "x$ac_cv_header_jerror_h" = x""yes; then :
13160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
13161 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
13162 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then :
13163 $as_echo_n "(cached) " >&6
13164 else
13165 ac_check_lib_save_LIBS=$LIBS
13166 LIBS="-ljpeg $LIBS"
13167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13168 /* end confdefs.h. */
13170 /* Override any GCC internal prototype to avoid an error.
13171 Use char because int might match the return type of a GCC
13172 builtin and then its argument prototype would still apply. */
13173 #ifdef __cplusplus
13174 extern "C"
13175 #endif
13176 char jpeg_destroy_compress ();
13178 main ()
13180 return jpeg_destroy_compress ();
13182 return 0;
13184 _ACEOF
13185 if ac_fn_c_try_link "$LINENO"; then :
13186 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
13187 else
13188 ac_cv_lib_jpeg_jpeg_destroy_compress=no
13190 rm -f core conftest.err conftest.$ac_objext \
13191 conftest$ac_exeext conftest.$ac_ext
13192 LIBS=$ac_check_lib_save_LIBS
13194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13195 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13196 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x""yes; then :
13197 HAVE_JPEG=yes
13205 if test "${HAVE_JPEG}" = "yes"; then
13206 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
13208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13209 /* end confdefs.h. */
13210 #include <jpeglib.h>
13211 version=JPEG_LIB_VERSION
13213 _ACEOF
13214 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13215 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then :
13216 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
13218 else
13219 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
13220 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13221 HAVE_JPEG=no
13223 rm -f conftest*
13226 if test "${HAVE_JPEG}" = "yes"; then
13227 LIBJPEG=-ljpeg
13232 ### Use -lpng if available, unless `--with-png=no'.
13233 HAVE_PNG=no
13234 LIBPNG=
13235 if test "${HAVE_X11}" = "yes"; then
13236 if test "${with_png}" != "no"; then
13237 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13238 # in /usr/include/libpng.
13239 for ac_header in png.h libpng/png.h
13240 do :
13241 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13242 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13243 eval as_val=\$$as_ac_Header
13244 if test "x$as_val" = x""yes; then :
13245 cat >>confdefs.h <<_ACEOF
13246 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13247 _ACEOF
13251 done
13253 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
13254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
13255 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
13256 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then :
13257 $as_echo_n "(cached) " >&6
13258 else
13259 ac_check_lib_save_LIBS=$LIBS
13260 LIBS="-lpng -lz -lm $LIBS"
13261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13262 /* end confdefs.h. */
13264 /* Override any GCC internal prototype to avoid an error.
13265 Use char because int might match the return type of a GCC
13266 builtin and then its argument prototype would still apply. */
13267 #ifdef __cplusplus
13268 extern "C"
13269 #endif
13270 char png_get_channels ();
13272 main ()
13274 return png_get_channels ();
13276 return 0;
13278 _ACEOF
13279 if ac_fn_c_try_link "$LINENO"; then :
13280 ac_cv_lib_png_png_get_channels=yes
13281 else
13282 ac_cv_lib_png_png_get_channels=no
13284 rm -f core conftest.err conftest.$ac_objext \
13285 conftest$ac_exeext conftest.$ac_ext
13286 LIBS=$ac_check_lib_save_LIBS
13288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
13289 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
13290 if test "x$ac_cv_lib_png_png_get_channels" = x""yes; then :
13291 HAVE_PNG=yes
13297 if test "${HAVE_PNG}" = "yes"; then
13299 $as_echo "#define HAVE_PNG 1" >>confdefs.h
13301 LIBPNG="-lpng -lz -lm"
13306 ### Use -ltiff if available, unless `--with-tiff=no'.
13307 HAVE_TIFF=no
13308 LIBTIFF=
13309 if test "${HAVE_X11}" = "yes"; then
13310 if test "${with_tiff}" != "no"; then
13311 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
13312 if test "x$ac_cv_header_tiffio_h" = x""yes; then :
13313 tifflibs="-lz -lm"
13314 # At least one tiff package requires the jpeg library.
13315 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
13316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
13317 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
13318 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then :
13319 $as_echo_n "(cached) " >&6
13320 else
13321 ac_check_lib_save_LIBS=$LIBS
13322 LIBS="-ltiff $tifflibs $LIBS"
13323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13324 /* end confdefs.h. */
13326 /* Override any GCC internal prototype to avoid an error.
13327 Use char because int might match the return type of a GCC
13328 builtin and then its argument prototype would still apply. */
13329 #ifdef __cplusplus
13330 extern "C"
13331 #endif
13332 char TIFFGetVersion ();
13334 main ()
13336 return TIFFGetVersion ();
13338 return 0;
13340 _ACEOF
13341 if ac_fn_c_try_link "$LINENO"; then :
13342 ac_cv_lib_tiff_TIFFGetVersion=yes
13343 else
13344 ac_cv_lib_tiff_TIFFGetVersion=no
13346 rm -f core conftest.err conftest.$ac_objext \
13347 conftest$ac_exeext conftest.$ac_ext
13348 LIBS=$ac_check_lib_save_LIBS
13350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
13351 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
13352 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x""yes; then :
13353 HAVE_TIFF=yes
13361 if test "${HAVE_TIFF}" = "yes"; then
13363 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
13365 LIBTIFF=-ltiff
13370 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
13371 HAVE_GIF=no
13372 LIBGIF=
13373 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
13374 ac_fn_c_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
13375 if test "x$ac_cv_header_gif_lib_h" = x""yes; then :
13376 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
13377 # Earlier versions can crash Emacs.
13378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
13379 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
13380 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then :
13381 $as_echo_n "(cached) " >&6
13382 else
13383 ac_check_lib_save_LIBS=$LIBS
13384 LIBS="-lgif $LIBS"
13385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13386 /* end confdefs.h. */
13388 /* Override any GCC internal prototype to avoid an error.
13389 Use char because int might match the return type of a GCC
13390 builtin and then its argument prototype would still apply. */
13391 #ifdef __cplusplus
13392 extern "C"
13393 #endif
13394 char EGifPutExtensionLast ();
13396 main ()
13398 return EGifPutExtensionLast ();
13400 return 0;
13402 _ACEOF
13403 if ac_fn_c_try_link "$LINENO"; then :
13404 ac_cv_lib_gif_EGifPutExtensionLast=yes
13405 else
13406 ac_cv_lib_gif_EGifPutExtensionLast=no
13408 rm -f core conftest.err conftest.$ac_objext \
13409 conftest$ac_exeext conftest.$ac_ext
13410 LIBS=$ac_check_lib_save_LIBS
13412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
13413 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
13414 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x""yes; then :
13415 HAVE_GIF=yes
13416 else
13417 HAVE_GIF=maybe
13424 if test "$HAVE_GIF" = yes; then
13425 LIBGIF=-lgif
13426 elif test "$HAVE_GIF" = maybe; then
13427 # If gif_lib.h but no libgif, try libungif.
13428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
13429 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
13430 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then :
13431 $as_echo_n "(cached) " >&6
13432 else
13433 ac_check_lib_save_LIBS=$LIBS
13434 LIBS="-lungif $LIBS"
13435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13436 /* end confdefs.h. */
13438 /* Override any GCC internal prototype to avoid an error.
13439 Use char because int might match the return type of a GCC
13440 builtin and then its argument prototype would still apply. */
13441 #ifdef __cplusplus
13442 extern "C"
13443 #endif
13444 char EGifPutExtensionLast ();
13446 main ()
13448 return EGifPutExtensionLast ();
13450 return 0;
13452 _ACEOF
13453 if ac_fn_c_try_link "$LINENO"; then :
13454 ac_cv_lib_ungif_EGifPutExtensionLast=yes
13455 else
13456 ac_cv_lib_ungif_EGifPutExtensionLast=no
13458 rm -f core conftest.err conftest.$ac_objext \
13459 conftest$ac_exeext conftest.$ac_ext
13460 LIBS=$ac_check_lib_save_LIBS
13462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
13463 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
13464 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x""yes; then :
13465 HAVE_GIF=yes
13466 else
13467 HAVE_GIF=no
13470 test "$HAVE_GIF" = yes && LIBGIF=-lungif
13473 if test "${HAVE_GIF}" = "yes"; then
13475 $as_echo "#define HAVE_GIF 1" >>confdefs.h
13481 if test "${HAVE_X11}" = "yes"; then
13482 MISSING=""
13483 WITH_NO=""
13484 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
13485 MISSING="libXpm" && WITH_NO="--with-xpm=no"
13486 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
13487 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
13488 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
13489 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
13490 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
13491 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
13492 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
13493 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
13495 if test "X${MISSING}" != X; then
13496 as_fn_error "The following required libraries were not found:
13497 $MISSING
13498 Maybe some development libraries/packages are missing?
13499 If you don't want to link with them give
13500 $WITH_NO
13501 as options to configure" "$LINENO" 5
13505 ### Use -lgpm if available, unless `--with-gpm=no'.
13506 HAVE_GPM=no
13507 LIBGPM=
13508 if test "${with_gpm}" != "no"; then
13509 ac_fn_c_check_header_mongrel "$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
13510 if test "x$ac_cv_header_gpm_h" = x""yes; then :
13511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
13512 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
13513 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then :
13514 $as_echo_n "(cached) " >&6
13515 else
13516 ac_check_lib_save_LIBS=$LIBS
13517 LIBS="-lgpm $LIBS"
13518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13519 /* end confdefs.h. */
13521 /* Override any GCC internal prototype to avoid an error.
13522 Use char because int might match the return type of a GCC
13523 builtin and then its argument prototype would still apply. */
13524 #ifdef __cplusplus
13525 extern "C"
13526 #endif
13527 char Gpm_Open ();
13529 main ()
13531 return Gpm_Open ();
13533 return 0;
13535 _ACEOF
13536 if ac_fn_c_try_link "$LINENO"; then :
13537 ac_cv_lib_gpm_Gpm_Open=yes
13538 else
13539 ac_cv_lib_gpm_Gpm_Open=no
13541 rm -f core conftest.err conftest.$ac_objext \
13542 conftest$ac_exeext conftest.$ac_ext
13543 LIBS=$ac_check_lib_save_LIBS
13545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
13546 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
13547 if test "x$ac_cv_lib_gpm_Gpm_Open" = x""yes; then :
13548 HAVE_GPM=yes
13555 if test "${HAVE_GPM}" = "yes"; then
13557 $as_echo "#define HAVE_GPM 1" >>confdefs.h
13559 LIBGPM=-lgpm
13564 ac_fn_c_check_header_mongrel "$LINENO" "malloc/malloc.h" "ac_cv_header_malloc_malloc_h" "$ac_includes_default"
13565 if test "x$ac_cv_header_malloc_malloc_h" = x""yes; then :
13567 $as_echo "#define HAVE_MALLOC_MALLOC_H 1" >>confdefs.h
13573 C_SWITCH_X_SYSTEM=
13574 ### Use NeXTstep API to implement GUI.
13575 if test "${HAVE_NS}" = "yes"; then
13577 $as_echo "#define HAVE_NS 1" >>confdefs.h
13579 if test "${NS_IMPL_COCOA}" = "yes"; then
13581 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
13584 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
13586 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
13588 # See also .m.o rule in Makefile.in */
13589 # FIXME: are all these flags really needed? Document here why. */
13590 C_SWITCH_X_SYSTEM="-D_REENTRANT -fPIC -fno-strict-aliasing -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
13591 ## Extra CFLAGS applied to src/*.m files.
13592 GNU_OBJC_CFLAGS="$GNU_OBJC_CFLAGS -fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
13594 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
13596 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
13599 # We also have mouse menus.
13600 HAVE_MENUS=yes
13601 OTHER_FILES=ns-app
13605 ### Use session management (-lSM -lICE) if available
13606 HAVE_X_SM=no
13607 LIBXSM=
13608 if test "${HAVE_X11}" = "yes"; then
13609 ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
13610 if test "x$ac_cv_header_X11_SM_SMlib_h" = x""yes; then :
13611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
13612 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
13613 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then :
13614 $as_echo_n "(cached) " >&6
13615 else
13616 ac_check_lib_save_LIBS=$LIBS
13617 LIBS="-lSM -lICE $LIBS"
13618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13619 /* end confdefs.h. */
13621 /* Override any GCC internal prototype to avoid an error.
13622 Use char because int might match the return type of a GCC
13623 builtin and then its argument prototype would still apply. */
13624 #ifdef __cplusplus
13625 extern "C"
13626 #endif
13627 char SmcOpenConnection ();
13629 main ()
13631 return SmcOpenConnection ();
13633 return 0;
13635 _ACEOF
13636 if ac_fn_c_try_link "$LINENO"; then :
13637 ac_cv_lib_SM_SmcOpenConnection=yes
13638 else
13639 ac_cv_lib_SM_SmcOpenConnection=no
13641 rm -f core conftest.err conftest.$ac_objext \
13642 conftest$ac_exeext conftest.$ac_ext
13643 LIBS=$ac_check_lib_save_LIBS
13645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
13646 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
13647 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x""yes; then :
13648 HAVE_X_SM=yes
13655 if test "${HAVE_X_SM}" = "yes"; then
13657 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
13659 LIBXSM="-lSM -lICE"
13660 case "$LIBS" in
13661 *-lSM*) ;;
13662 *) LIBS="$LIBXSM $LIBS" ;;
13663 esac
13668 ### Use libxml (-lxml2) if available
13669 if test "${with_xml2}" != "no"; then
13670 ### I'm not sure what the version number should be, so I just guessed.
13672 succeeded=no
13674 # Extract the first word of "pkg-config", so it can be a program name with args.
13675 set dummy pkg-config; ac_word=$2
13676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13677 $as_echo_n "checking for $ac_word... " >&6; }
13678 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
13679 $as_echo_n "(cached) " >&6
13680 else
13681 case $PKG_CONFIG in
13682 [\\/]* | ?:[\\/]*)
13683 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13687 for as_dir in $PATH
13689 IFS=$as_save_IFS
13690 test -z "$as_dir" && as_dir=.
13691 for ac_exec_ext in '' $ac_executable_extensions; do
13692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13693 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13695 break 2
13697 done
13698 done
13699 IFS=$as_save_IFS
13701 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13703 esac
13705 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13706 if test -n "$PKG_CONFIG"; then
13707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13708 $as_echo "$PKG_CONFIG" >&6; }
13709 else
13710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13711 $as_echo "no" >&6; }
13716 if test "$PKG_CONFIG" = "no" ; then
13717 HAVE_LIBXML2=no
13718 else
13719 PKG_CONFIG_MIN_VERSION=0.9.0
13720 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.6.17" >&5
13722 $as_echo_n "checking for libxml-2.0 > 2.6.17... " >&6; }
13724 if $PKG_CONFIG --exists "libxml-2.0 > 2.6.17" 2>&5; then
13725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13726 $as_echo "yes" >&6; }
13727 succeeded=yes
13729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_CFLAGS" >&5
13730 $as_echo_n "checking LIBXML2_CFLAGS... " >&6; }
13731 LIBXML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 > 2.6.17"|sed -e 's,///*,/,g'`
13732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_CFLAGS" >&5
13733 $as_echo "$LIBXML2_CFLAGS" >&6; }
13735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_LIBS" >&5
13736 $as_echo_n "checking LIBXML2_LIBS... " >&6; }
13737 LIBXML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0 > 2.6.17"|sed -e 's,///*,/,g'`
13738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_LIBS" >&5
13739 $as_echo "$LIBXML2_LIBS" >&6; }
13740 else
13741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13742 $as_echo "no" >&6; }
13743 LIBXML2_CFLAGS=""
13744 LIBXML2_LIBS=""
13745 ## If we have a custom action on failure, don't print errors, but
13746 ## do set a variable so people can do so.
13747 LIBXML2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 > 2.6.17"`
13753 else
13754 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13755 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13759 if test $succeeded = yes; then
13760 HAVE_LIBXML2=yes
13761 else
13762 HAVE_LIBXML2=no
13765 if test "${HAVE_LIBXML2}" = "yes"; then
13766 LIBS="$LIBXML2_LIBS $LIBS"
13767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
13768 $as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
13769 if test "${ac_cv_lib_xml2_htmlReadMemory+set}" = set; then :
13770 $as_echo_n "(cached) " >&6
13771 else
13772 ac_check_lib_save_LIBS=$LIBS
13773 LIBS="-lxml2 $LIBS"
13774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13775 /* end confdefs.h. */
13777 /* Override any GCC internal prototype to avoid an error.
13778 Use char because int might match the return type of a GCC
13779 builtin and then its argument prototype would still apply. */
13780 #ifdef __cplusplus
13781 extern "C"
13782 #endif
13783 char htmlReadMemory ();
13785 main ()
13787 return htmlReadMemory ();
13789 return 0;
13791 _ACEOF
13792 if ac_fn_c_try_link "$LINENO"; then :
13793 ac_cv_lib_xml2_htmlReadMemory=yes
13794 else
13795 ac_cv_lib_xml2_htmlReadMemory=no
13797 rm -f core conftest.err conftest.$ac_objext \
13798 conftest$ac_exeext conftest.$ac_ext
13799 LIBS=$ac_check_lib_save_LIBS
13801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
13802 $as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
13803 if test "x$ac_cv_lib_xml2_htmlReadMemory" = x""yes; then :
13804 HAVE_LIBXML2=yes
13805 else
13806 HAVE_LIBXML2=no
13809 if test "${HAVE_LIBXML2}" = "yes"; then
13811 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
13813 else
13814 LIBXML2_LIBS=""
13815 LIBXML2_CFLAGS=""
13822 # If netdb.h doesn't declare h_errno, we must declare it by hand.
13823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
13824 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
13825 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then :
13826 $as_echo_n "(cached) " >&6
13827 else
13828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13829 /* end confdefs.h. */
13830 #include <netdb.h>
13832 main ()
13834 return h_errno;
13836 return 0;
13838 _ACEOF
13839 if ac_fn_c_try_link "$LINENO"; then :
13840 emacs_cv_netdb_declares_h_errno=yes
13841 else
13842 emacs_cv_netdb_declares_h_errno=no
13844 rm -f core conftest.err conftest.$ac_objext \
13845 conftest$ac_exeext conftest.$ac_ext
13847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
13848 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
13849 if test $emacs_cv_netdb_declares_h_errno = yes; then
13851 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
13855 # fmod, logb, and frexp are found in -lm on most systems.
13856 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
13857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
13858 $as_echo_n "checking for sqrt in -lm... " >&6; }
13859 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
13860 $as_echo_n "(cached) " >&6
13861 else
13862 ac_check_lib_save_LIBS=$LIBS
13863 LIBS="-lm $LIBS"
13864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13865 /* end confdefs.h. */
13867 /* Override any GCC internal prototype to avoid an error.
13868 Use char because int might match the return type of a GCC
13869 builtin and then its argument prototype would still apply. */
13870 #ifdef __cplusplus
13871 extern "C"
13872 #endif
13873 char sqrt ();
13875 main ()
13877 return sqrt ();
13879 return 0;
13881 _ACEOF
13882 if ac_fn_c_try_link "$LINENO"; then :
13883 ac_cv_lib_m_sqrt=yes
13884 else
13885 ac_cv_lib_m_sqrt=no
13887 rm -f core conftest.err conftest.$ac_objext \
13888 conftest$ac_exeext conftest.$ac_ext
13889 LIBS=$ac_check_lib_save_LIBS
13891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
13892 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
13893 if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
13894 cat >>confdefs.h <<_ACEOF
13895 #define HAVE_LIBM 1
13896 _ACEOF
13898 LIBS="-lm $LIBS"
13903 # Check for mail-locking functions in a "mail" library. Probably this should
13904 # have the same check as for liblockfile below.
13905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
13906 $as_echo_n "checking for maillock in -lmail... " >&6; }
13907 if test "${ac_cv_lib_mail_maillock+set}" = set; then :
13908 $as_echo_n "(cached) " >&6
13909 else
13910 ac_check_lib_save_LIBS=$LIBS
13911 LIBS="-lmail $LIBS"
13912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13913 /* end confdefs.h. */
13915 /* Override any GCC internal prototype to avoid an error.
13916 Use char because int might match the return type of a GCC
13917 builtin and then its argument prototype would still apply. */
13918 #ifdef __cplusplus
13919 extern "C"
13920 #endif
13921 char maillock ();
13923 main ()
13925 return maillock ();
13927 return 0;
13929 _ACEOF
13930 if ac_fn_c_try_link "$LINENO"; then :
13931 ac_cv_lib_mail_maillock=yes
13932 else
13933 ac_cv_lib_mail_maillock=no
13935 rm -f core conftest.err conftest.$ac_objext \
13936 conftest$ac_exeext conftest.$ac_ext
13937 LIBS=$ac_check_lib_save_LIBS
13939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
13940 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
13941 if test "x$ac_cv_lib_mail_maillock" = x""yes; then :
13942 have_mail=yes
13943 else
13944 have_mail=no
13947 if test $have_mail = yes; then
13948 LIBS_MAIL=-lmail
13949 LIBS="$LIBS_MAIL $LIBS"
13951 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
13953 else
13954 LIBS_MAIL=
13956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
13957 $as_echo_n "checking for maillock in -llockfile... " >&6; }
13958 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then :
13959 $as_echo_n "(cached) " >&6
13960 else
13961 ac_check_lib_save_LIBS=$LIBS
13962 LIBS="-llockfile $LIBS"
13963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13964 /* end confdefs.h. */
13966 /* Override any GCC internal prototype to avoid an error.
13967 Use char because int might match the return type of a GCC
13968 builtin and then its argument prototype would still apply. */
13969 #ifdef __cplusplus
13970 extern "C"
13971 #endif
13972 char maillock ();
13974 main ()
13976 return maillock ();
13978 return 0;
13980 _ACEOF
13981 if ac_fn_c_try_link "$LINENO"; then :
13982 ac_cv_lib_lockfile_maillock=yes
13983 else
13984 ac_cv_lib_lockfile_maillock=no
13986 rm -f core conftest.err conftest.$ac_objext \
13987 conftest$ac_exeext conftest.$ac_ext
13988 LIBS=$ac_check_lib_save_LIBS
13990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
13991 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
13992 if test "x$ac_cv_lib_lockfile_maillock" = x""yes; then :
13993 have_lockfile=yes
13994 else
13995 have_lockfile=no
13998 if test $have_lockfile = yes; then
13999 LIBS_MAIL=-llockfile
14000 LIBS="$LIBS_MAIL $LIBS"
14002 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
14004 else
14005 # If we have the shared liblockfile, assume we must use it for mail
14006 # locking (e.g. Debian). If we couldn't link against liblockfile
14007 # (no liblockfile.a installed), ensure that we don't need to.
14008 # Extract the first word of "liblockfile.so", so it can be a program name with args.
14009 set dummy liblockfile.so; ac_word=$2
14010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14011 $as_echo_n "checking for $ac_word... " >&6; }
14012 if test "${ac_cv_prog_liblockfile+set}" = set; then :
14013 $as_echo_n "(cached) " >&6
14014 else
14015 if test -n "$liblockfile"; then
14016 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
14017 else
14018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14019 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
14020 for as_dir in $as_dummy
14022 IFS=$as_save_IFS
14023 test -z "$as_dir" && as_dir=.
14024 for ac_exec_ext in '' $ac_executable_extensions; do
14025 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14026 ac_cv_prog_liblockfile="yes"
14027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14028 break 2
14030 done
14031 done
14032 IFS=$as_save_IFS
14034 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
14037 liblockfile=$ac_cv_prog_liblockfile
14038 if test -n "$liblockfile"; then
14039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
14040 $as_echo "$liblockfile" >&6; }
14041 else
14042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14043 $as_echo "no" >&6; }
14047 if test $ac_cv_prog_liblockfile = yes; then
14048 as_fn_error "Shared liblockfile found but can't link against it.
14049 This probably means that movemail could lose mail.
14050 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
14053 for ac_func in touchlock
14054 do :
14055 ac_fn_c_check_func "$LINENO" "touchlock" "ac_cv_func_touchlock"
14056 if test "x$ac_cv_func_touchlock" = x""yes; then :
14057 cat >>confdefs.h <<_ACEOF
14058 #define HAVE_TOUCHLOCK 1
14059 _ACEOF
14062 done
14064 for ac_header in maillock.h
14065 do :
14066 ac_fn_c_check_header_mongrel "$LINENO" "maillock.h" "ac_cv_header_maillock_h" "$ac_includes_default"
14067 if test "x$ac_cv_header_maillock_h" = x""yes; then :
14068 cat >>confdefs.h <<_ACEOF
14069 #define HAVE_MAILLOCK_H 1
14070 _ACEOF
14074 done
14078 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
14079 ## interlock access to the mail spool. The alternative is a lock file named
14080 ## /usr/spool/mail/$USER.lock.
14081 mail_lock=no
14082 case "$opsys" in
14083 aix4-2) mail_lock="lockf" ;;
14085 gnu|freebsd|netbsd|openbsd|darwin|irix6-5) mail_lock="flock" ;;
14087 ## On GNU/Linux systems, both methods are used by various mail programs.
14088 ## I assume most people are using newer mailers that have heard of flock.
14089 ## Change this if you need to.
14090 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
14091 ## configure gets the right answers, and that means *NOT* using flock.
14092 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
14093 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
14094 ## Debian maintainer hasn't provided a clean fix for Emacs.
14095 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
14096 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
14097 ## correct logic. -- fx
14098 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
14099 ## liblockfile is a Free Software replacement for libmail, used on
14100 ## Debian systems and elsewhere. -rfr.
14101 gnu-*)
14102 mail_lock="flock"
14103 if test $have_mail = yes || test $have_lockfile = yes; then
14104 test $ac_cv_header_maillock_h = yes && mail_lock=no
14107 esac
14109 BLESSMAIL_TARGET=
14110 case "$mail_lock" in
14111 flock)
14112 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
14115 lockf)
14116 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
14119 *) BLESSMAIL_TARGET="need-blessmail" ;;
14120 esac
14124 for ac_func in gethostname getdomainname \
14125 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
14126 random lrand48 logb frexp fmod rint cbrt ftime setsid \
14127 strerror fpathconf select euidaccess getpagesize tzset setlocale \
14128 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
14129 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm \
14130 sendto recvfrom getsockopt setsockopt getsockname getpeername \
14131 gai_strerror mkstemp getline getdelim mremap fsync sync \
14132 difftime mempcpy mblen mbrlen posix_memalign \
14133 cfmakeraw cfsetspeed copysign __executable_start
14134 do :
14135 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14136 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14137 eval as_val=\$$as_ac_var
14138 if test "x$as_val" = x""yes; then :
14139 cat >>confdefs.h <<_ACEOF
14140 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14141 _ACEOF
14144 done
14147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unwind_init" >&5
14148 $as_echo_n "checking for __builtin_unwind_init... " >&6; }
14149 if test "${emacs_cv_func___builtin_unwind_init+set}" = set; then :
14150 $as_echo_n "(cached) " >&6
14151 else
14152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14153 /* end confdefs.h. */
14156 main ()
14158 __builtin_unwind_init ();
14160 return 0;
14162 _ACEOF
14163 if ac_fn_c_try_link "$LINENO"; then :
14164 emacs_cv_func___builtin_unwind_init=yes
14165 else
14166 emacs_cv_func___builtin_unwind_init=no
14168 rm -f core conftest.err conftest.$ac_objext \
14169 conftest$ac_exeext conftest.$ac_ext
14171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func___builtin_unwind_init" >&5
14172 $as_echo "$emacs_cv_func___builtin_unwind_init" >&6; }
14173 if test $emacs_cv_func___builtin_unwind_init = yes; then
14175 $as_echo "#define HAVE___BUILTIN_UNWIND_INIT 1" >>confdefs.h
14179 for ac_header in sys/un.h
14180 do :
14181 ac_fn_c_check_header_mongrel "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
14182 if test "x$ac_cv_header_sys_un_h" = x""yes; then :
14183 cat >>confdefs.h <<_ACEOF
14184 #define HAVE_SYS_UN_H 1
14185 _ACEOF
14189 done
14192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
14193 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
14194 if test "${ac_cv_sys_largefile_source+set}" = set; then :
14195 $as_echo_n "(cached) " >&6
14196 else
14197 while :; do
14198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14199 /* end confdefs.h. */
14200 #include <sys/types.h> /* for off_t */
14201 #include <stdio.h>
14203 main ()
14205 int (*fp) (FILE *, off_t, int) = fseeko;
14206 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14208 return 0;
14210 _ACEOF
14211 if ac_fn_c_try_link "$LINENO"; then :
14212 ac_cv_sys_largefile_source=no; break
14214 rm -f core conftest.err conftest.$ac_objext \
14215 conftest$ac_exeext conftest.$ac_ext
14216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14217 /* end confdefs.h. */
14218 #define _LARGEFILE_SOURCE 1
14219 #include <sys/types.h> /* for off_t */
14220 #include <stdio.h>
14222 main ()
14224 int (*fp) (FILE *, off_t, int) = fseeko;
14225 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14227 return 0;
14229 _ACEOF
14230 if ac_fn_c_try_link "$LINENO"; then :
14231 ac_cv_sys_largefile_source=1; break
14233 rm -f core conftest.err conftest.$ac_objext \
14234 conftest$ac_exeext conftest.$ac_ext
14235 ac_cv_sys_largefile_source=unknown
14236 break
14237 done
14239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
14240 $as_echo "$ac_cv_sys_largefile_source" >&6; }
14241 case $ac_cv_sys_largefile_source in #(
14242 no | unknown) ;;
14244 cat >>confdefs.h <<_ACEOF
14245 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
14246 _ACEOF
14248 esac
14249 rm -rf conftest*
14251 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
14252 # in glibc 2.1.3, but that breaks too many other things.
14253 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
14254 if test $ac_cv_sys_largefile_source != unknown; then
14256 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
14261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
14262 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
14263 if test "${ac_cv_func_getpgrp_void+set}" = set; then :
14264 $as_echo_n "(cached) " >&6
14265 else
14266 # Use it with a single arg.
14267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14268 /* end confdefs.h. */
14269 $ac_includes_default
14271 main ()
14273 getpgrp (0);
14275 return 0;
14277 _ACEOF
14278 if ac_fn_c_try_compile "$LINENO"; then :
14279 ac_cv_func_getpgrp_void=no
14280 else
14281 ac_cv_func_getpgrp_void=yes
14283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
14287 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
14288 if test $ac_cv_func_getpgrp_void = yes; then
14290 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
14295 # UNIX98 PTYs.
14296 for ac_func in grantpt
14297 do :
14298 ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt"
14299 if test "x$ac_cv_func_grantpt" = x""yes; then :
14300 cat >>confdefs.h <<_ACEOF
14301 #define HAVE_GRANTPT 1
14302 _ACEOF
14305 done
14308 # PTY-related GNU extensions.
14309 for ac_func in getpt
14310 do :
14311 ac_fn_c_check_func "$LINENO" "getpt" "ac_cv_func_getpt"
14312 if test "x$ac_cv_func_getpt" = x""yes; then :
14313 cat >>confdefs.h <<_ACEOF
14314 #define HAVE_GETPT 1
14315 _ACEOF
14318 done
14321 # Check this now, so that we will NOT find the above functions in ncurses.
14322 # That is because we have not set up to link ncurses in lib-src.
14323 # It's better to believe a function is not available
14324 # than to expect to find it in ncurses.
14325 # Also we need tputs and friends to be able to build at all.
14326 have_tputs_et_al=true
14327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
14328 $as_echo_n "checking for library containing tputs... " >&6; }
14329 if test "${ac_cv_search_tputs+set}" = set; then :
14330 $as_echo_n "(cached) " >&6
14331 else
14332 ac_func_search_save_LIBS=$LIBS
14333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14334 /* end confdefs.h. */
14336 /* Override any GCC internal prototype to avoid an error.
14337 Use char because int might match the return type of a GCC
14338 builtin and then its argument prototype would still apply. */
14339 #ifdef __cplusplus
14340 extern "C"
14341 #endif
14342 char tputs ();
14344 main ()
14346 return tputs ();
14348 return 0;
14350 _ACEOF
14351 for ac_lib in '' ncurses terminfo termcap; do
14352 if test -z "$ac_lib"; then
14353 ac_res="none required"
14354 else
14355 ac_res=-l$ac_lib
14356 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14358 if ac_fn_c_try_link "$LINENO"; then :
14359 ac_cv_search_tputs=$ac_res
14361 rm -f core conftest.err conftest.$ac_objext \
14362 conftest$ac_exeext
14363 if test "${ac_cv_search_tputs+set}" = set; then :
14364 break
14366 done
14367 if test "${ac_cv_search_tputs+set}" = set; then :
14369 else
14370 ac_cv_search_tputs=no
14372 rm conftest.$ac_ext
14373 LIBS=$ac_func_search_save_LIBS
14375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tputs" >&5
14376 $as_echo "$ac_cv_search_tputs" >&6; }
14377 ac_res=$ac_cv_search_tputs
14378 if test "$ac_res" != no; then :
14379 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14381 else
14382 have_tputs_et_al=false
14385 if test "$have_tputs_et_al" != true; then
14386 as_fn_error "I couldn't find termcap functions (tputs and friends).
14387 Maybe some development libraries/packages are missing? Try installing
14388 libncurses-dev(el), libterminfo-dev(el) or similar." "$LINENO" 5
14390 # Must define this when any termcap library is found.
14392 $as_echo "#define HAVE_LIBNCURSES 1" >>confdefs.h
14394 ## FIXME This was the cpp logic, but I am not sure it is right.
14395 ## The above test has not necessarily found libncurses.
14396 HAVE_LIBNCURSES=yes
14398 ## Use terminfo instead of termcap?
14399 ## Note only system files NOT using terminfo are:
14400 ## freebsd < 40000, ms-w32, msdos, netbsd < 599002500, and
14401 ## darwin|gnu without ncurses.
14402 TERMINFO=no
14403 LIBS_TERMCAP=
14404 case "$opsys" in
14405 ## cygwin: Fewer environment variables to go wrong, more terminal types.
14406 ## hpux10-20: Use the system provided termcap(3) library.
14407 ## openbsd: David Mazieres <dm@reeducation-labor.lcs.mit.edu> says this
14408 ## is necessary. Otherwise Emacs dumps core when run -nw.
14409 aix4-2|cygwin|hpux*|irix6-5|openbsd|sol2*|unixware) TERMINFO=yes ;;
14411 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
14412 ## The ncurses library has been moved out of the System framework in
14413 ## Mac OS X 10.2. So if configure detects it, set the command-line
14414 ## option to use it.
14415 darwin|gnu*)
14416 ## (HAVE_LIBNCURSES was not always true, but is since 2010-03-18.)
14417 if test "x$HAVE_LIBNCURSES" = "xyes"; then
14418 TERMINFO=yes
14419 LIBS_TERMCAP="-lncurses"
14423 freebsd)
14424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
14425 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
14426 if test "${emacs_cv_freebsd_terminfo+set}" = set; then :
14427 $as_echo_n "(cached) " >&6
14428 else
14429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14430 /* end confdefs.h. */
14431 #include <osreldate.h>
14433 main ()
14435 #if __FreeBSD_version < 400000
14436 fail;
14437 #endif
14440 return 0;
14442 _ACEOF
14443 if ac_fn_c_try_link "$LINENO"; then :
14444 emacs_cv_freebsd_terminfo=yes
14445 else
14446 emacs_cv_freebsd_terminfo=no
14448 rm -f core conftest.err conftest.$ac_objext \
14449 conftest$ac_exeext conftest.$ac_ext
14453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
14454 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
14456 if test $emacs_cv_freebsd_terminfo = yes; then
14457 TERMINFO=yes
14458 LIBS_TERMCAP="-lncurses"
14459 else
14460 LIBS_TERMCAP="-ltermcap"
14464 netbsd)
14465 if test $ac_cv_search_tputs = -lterminfo; then
14466 TERMINFO=yes
14467 LIBS_TERMCAP="-lterminfo"
14468 else
14469 LIBS_TERMCAP="-ltermcap"
14473 esac
14475 case "$opsys" in
14476 ## hpux: Make sure we get select from libc rather than from libcurses
14477 ## because libcurses on HPUX 10.10 has a broken version of select.
14478 ## We used to use -lc -lcurses, but this may be cleaner.
14479 hpux*) LIBS_TERMCAP="-ltermcap" ;;
14481 openbsd) LIBS_TERMCAP="-lncurses" ;;
14483 ## Must use system termcap, if we use any termcap. It does special things.
14484 sol2*) test "$TERMINFO" != yes && LIBS_TERMCAP="-ltermcap" ;;
14485 esac
14487 TERMCAP_OBJ=tparam.o
14488 if test $TERMINFO = yes; then
14490 $as_echo "#define TERMINFO 1" >>confdefs.h
14493 ## Default used to be -ltermcap. Add a case above if need something else.
14494 test "x$LIBS_TERMCAP" = "x" && LIBS_TERMCAP="-lcurses"
14496 TERMCAP_OBJ=terminfo.o
14502 # Do we have res_init, for detecting changes in /etc/resolv.conf?
14503 resolv=no
14504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14505 /* end confdefs.h. */
14506 #include <netinet/in.h>
14507 #include <arpa/nameser.h>
14508 #include <resolv.h>
14510 main ()
14512 return res_init();
14514 return 0;
14516 _ACEOF
14517 if ac_fn_c_try_link "$LINENO"; then :
14518 have_res_init=yes
14519 else
14520 have_res_init=no
14522 rm -f core conftest.err conftest.$ac_objext \
14523 conftest$ac_exeext conftest.$ac_ext
14524 if test "$have_res_init" = no; then
14525 OLIBS="$LIBS"
14526 LIBS="$LIBS -lresolv"
14527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
14528 $as_echo_n "checking for res_init with -lresolv... " >&6; }
14529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14530 /* end confdefs.h. */
14531 #include <netinet/in.h>
14532 #include <arpa/nameser.h>
14533 #include <resolv.h>
14535 main ()
14537 return res_init();
14539 return 0;
14541 _ACEOF
14542 if ac_fn_c_try_link "$LINENO"; then :
14543 have_res_init=yes
14544 else
14545 have_res_init=no
14547 rm -f core conftest.err conftest.$ac_objext \
14548 conftest$ac_exeext conftest.$ac_ext
14549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
14550 $as_echo "$have_res_init" >&6; }
14551 if test "$have_res_init" = yes ; then
14552 resolv=yes
14554 LIBS="$OLIBS"
14557 if test "$have_res_init" = yes; then
14559 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
14563 # Do we need the Hesiod library to provide the support routines?
14564 LIBHESIOD=
14565 if test "$with_hesiod" != no ; then
14566 # Don't set $LIBS here -- see comments above. FIXME which comments?
14567 ac_fn_c_check_func "$LINENO" "res_send" "ac_cv_func_res_send"
14568 if test "x$ac_cv_func_res_send" = x""yes; then :
14570 else
14571 ac_fn_c_check_func "$LINENO" "__res_send" "ac_cv_func___res_send"
14572 if test "x$ac_cv_func___res_send" = x""yes; then :
14574 else
14575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
14576 $as_echo_n "checking for res_send in -lresolv... " >&6; }
14577 if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
14578 $as_echo_n "(cached) " >&6
14579 else
14580 ac_check_lib_save_LIBS=$LIBS
14581 LIBS="-lresolv $LIBS"
14582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14583 /* end confdefs.h. */
14585 /* Override any GCC internal prototype to avoid an error.
14586 Use char because int might match the return type of a GCC
14587 builtin and then its argument prototype would still apply. */
14588 #ifdef __cplusplus
14589 extern "C"
14590 #endif
14591 char res_send ();
14593 main ()
14595 return res_send ();
14597 return 0;
14599 _ACEOF
14600 if ac_fn_c_try_link "$LINENO"; then :
14601 ac_cv_lib_resolv_res_send=yes
14602 else
14603 ac_cv_lib_resolv_res_send=no
14605 rm -f core conftest.err conftest.$ac_objext \
14606 conftest$ac_exeext conftest.$ac_ext
14607 LIBS=$ac_check_lib_save_LIBS
14609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
14610 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
14611 if test "x$ac_cv_lib_resolv_res_send" = x""yes; then :
14612 resolv=yes
14613 else
14614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
14615 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
14616 if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
14617 $as_echo_n "(cached) " >&6
14618 else
14619 ac_check_lib_save_LIBS=$LIBS
14620 LIBS="-lresolv $LIBS"
14621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14622 /* end confdefs.h. */
14624 /* Override any GCC internal prototype to avoid an error.
14625 Use char because int might match the return type of a GCC
14626 builtin and then its argument prototype would still apply. */
14627 #ifdef __cplusplus
14628 extern "C"
14629 #endif
14630 char __res_send ();
14632 main ()
14634 return __res_send ();
14636 return 0;
14638 _ACEOF
14639 if ac_fn_c_try_link "$LINENO"; then :
14640 ac_cv_lib_resolv___res_send=yes
14641 else
14642 ac_cv_lib_resolv___res_send=no
14644 rm -f core conftest.err conftest.$ac_objext \
14645 conftest$ac_exeext conftest.$ac_ext
14646 LIBS=$ac_check_lib_save_LIBS
14648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
14649 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
14650 if test "x$ac_cv_lib_resolv___res_send" = x""yes; then :
14651 resolv=yes
14660 if test "$resolv" = yes ; then
14661 RESOLVLIB=-lresolv
14662 else
14663 RESOLVLIB=
14665 ac_fn_c_check_func "$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
14666 if test "x$ac_cv_func_hes_getmailhost" = x""yes; then :
14668 else
14669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
14670 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
14671 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
14672 $as_echo_n "(cached) " >&6
14673 else
14674 ac_check_lib_save_LIBS=$LIBS
14675 LIBS="-lhesiod $RESOLVLIB $LIBS"
14676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14677 /* end confdefs.h. */
14679 /* Override any GCC internal prototype to avoid an error.
14680 Use char because int might match the return type of a GCC
14681 builtin and then its argument prototype would still apply. */
14682 #ifdef __cplusplus
14683 extern "C"
14684 #endif
14685 char hes_getmailhost ();
14687 main ()
14689 return hes_getmailhost ();
14691 return 0;
14693 _ACEOF
14694 if ac_fn_c_try_link "$LINENO"; then :
14695 ac_cv_lib_hesiod_hes_getmailhost=yes
14696 else
14697 ac_cv_lib_hesiod_hes_getmailhost=no
14699 rm -f core conftest.err conftest.$ac_objext \
14700 conftest$ac_exeext conftest.$ac_ext
14701 LIBS=$ac_check_lib_save_LIBS
14703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
14704 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
14705 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x""yes; then :
14706 hesiod=yes
14707 else
14714 if test x"$hesiod" = xyes; then
14716 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
14718 LIBHESIOD=-lhesiod
14723 # Do we need libresolv (due to res_init or Hesiod)?
14724 if test "$resolv" = yes ; then
14726 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
14728 LIBRESOLV=-lresolv
14729 else
14730 LIBRESOLV=
14734 # These tell us which Kerberos-related libraries to use.
14735 COM_ERRLIB=
14736 CRYPTOLIB=
14737 KRB5LIB=
14738 DESLIB=
14739 KRB4LIB=
14741 if test "${with_kerberos}" != no; then
14742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
14743 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
14744 if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
14745 $as_echo_n "(cached) " >&6
14746 else
14747 ac_check_lib_save_LIBS=$LIBS
14748 LIBS="-lcom_err $LIBS"
14749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14750 /* end confdefs.h. */
14752 /* Override any GCC internal prototype to avoid an error.
14753 Use char because int might match the return type of a GCC
14754 builtin and then its argument prototype would still apply. */
14755 #ifdef __cplusplus
14756 extern "C"
14757 #endif
14758 char com_err ();
14760 main ()
14762 return com_err ();
14764 return 0;
14766 _ACEOF
14767 if ac_fn_c_try_link "$LINENO"; then :
14768 ac_cv_lib_com_err_com_err=yes
14769 else
14770 ac_cv_lib_com_err_com_err=no
14772 rm -f core conftest.err conftest.$ac_objext \
14773 conftest$ac_exeext conftest.$ac_ext
14774 LIBS=$ac_check_lib_save_LIBS
14776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
14777 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
14778 if test "x$ac_cv_lib_com_err_com_err" = x""yes; then :
14779 have_com_err=yes
14780 else
14781 have_com_err=no
14784 if test $have_com_err = yes; then
14785 COM_ERRLIB=-lcom_err
14786 LIBS="$COM_ERRLIB $LIBS"
14788 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
14791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
14792 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
14793 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
14794 $as_echo_n "(cached) " >&6
14795 else
14796 ac_check_lib_save_LIBS=$LIBS
14797 LIBS="-lcrypto $LIBS"
14798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14799 /* end confdefs.h. */
14801 /* Override any GCC internal prototype to avoid an error.
14802 Use char because int might match the return type of a GCC
14803 builtin and then its argument prototype would still apply. */
14804 #ifdef __cplusplus
14805 extern "C"
14806 #endif
14807 char mit_des_cbc_encrypt ();
14809 main ()
14811 return mit_des_cbc_encrypt ();
14813 return 0;
14815 _ACEOF
14816 if ac_fn_c_try_link "$LINENO"; then :
14817 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
14818 else
14819 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
14821 rm -f core conftest.err conftest.$ac_objext \
14822 conftest$ac_exeext conftest.$ac_ext
14823 LIBS=$ac_check_lib_save_LIBS
14825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
14826 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
14827 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x""yes; then :
14828 have_crypto=yes
14829 else
14830 have_crypto=no
14833 if test $have_crypto = yes; then
14834 CRYPTOLIB=-lcrypto
14835 LIBS="$CRYPTOLIB $LIBS"
14837 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
14840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
14841 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
14842 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
14843 $as_echo_n "(cached) " >&6
14844 else
14845 ac_check_lib_save_LIBS=$LIBS
14846 LIBS="-lk5crypto $LIBS"
14847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14848 /* end confdefs.h. */
14850 /* Override any GCC internal prototype to avoid an error.
14851 Use char because int might match the return type of a GCC
14852 builtin and then its argument prototype would still apply. */
14853 #ifdef __cplusplus
14854 extern "C"
14855 #endif
14856 char mit_des_cbc_encrypt ();
14858 main ()
14860 return mit_des_cbc_encrypt ();
14862 return 0;
14864 _ACEOF
14865 if ac_fn_c_try_link "$LINENO"; then :
14866 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
14867 else
14868 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
14870 rm -f core conftest.err conftest.$ac_objext \
14871 conftest$ac_exeext conftest.$ac_ext
14872 LIBS=$ac_check_lib_save_LIBS
14874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
14875 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
14876 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x""yes; then :
14877 have_k5crypto=yes
14878 else
14879 have_k5crypto=no
14882 if test $have_k5crypto = yes; then
14883 CRYPTOLIB=-lk5crypto
14884 LIBS="$CRYPTOLIB $LIBS"
14886 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
14889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
14890 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
14891 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
14892 $as_echo_n "(cached) " >&6
14893 else
14894 ac_check_lib_save_LIBS=$LIBS
14895 LIBS="-lkrb5 $LIBS"
14896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14897 /* end confdefs.h. */
14899 /* Override any GCC internal prototype to avoid an error.
14900 Use char because int might match the return type of a GCC
14901 builtin and then its argument prototype would still apply. */
14902 #ifdef __cplusplus
14903 extern "C"
14904 #endif
14905 char krb5_init_context ();
14907 main ()
14909 return krb5_init_context ();
14911 return 0;
14913 _ACEOF
14914 if ac_fn_c_try_link "$LINENO"; then :
14915 ac_cv_lib_krb5_krb5_init_context=yes
14916 else
14917 ac_cv_lib_krb5_krb5_init_context=no
14919 rm -f core conftest.err conftest.$ac_objext \
14920 conftest$ac_exeext conftest.$ac_ext
14921 LIBS=$ac_check_lib_save_LIBS
14923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
14924 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
14925 if test "x$ac_cv_lib_krb5_krb5_init_context" = x""yes; then :
14926 have_krb5=yes
14927 else
14928 have_krb5=no
14931 if test $have_krb5=yes; then
14932 KRB5LIB=-lkrb5
14933 LIBS="$KRB5LIB $LIBS"
14935 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
14938 if test "${with_kerberos5}" = no; then
14939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
14940 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
14941 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
14942 $as_echo_n "(cached) " >&6
14943 else
14944 ac_check_lib_save_LIBS=$LIBS
14945 LIBS="-ldes425 $LIBS"
14946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14947 /* end confdefs.h. */
14949 /* Override any GCC internal prototype to avoid an error.
14950 Use char because int might match the return type of a GCC
14951 builtin and then its argument prototype would still apply. */
14952 #ifdef __cplusplus
14953 extern "C"
14954 #endif
14955 char des_cbc_encrypt ();
14957 main ()
14959 return des_cbc_encrypt ();
14961 return 0;
14963 _ACEOF
14964 if ac_fn_c_try_link "$LINENO"; then :
14965 ac_cv_lib_des425_des_cbc_encrypt=yes
14966 else
14967 ac_cv_lib_des425_des_cbc_encrypt=no
14969 rm -f core conftest.err conftest.$ac_objext \
14970 conftest$ac_exeext conftest.$ac_ext
14971 LIBS=$ac_check_lib_save_LIBS
14973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
14974 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
14975 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x""yes; then :
14976 have_des425=yes
14977 else
14978 have_des425=no
14981 if test $have_des425 = yes; then
14982 DESLIB=-ldes425
14983 LIBS="$DESLIB $LIBS"
14985 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
14987 else
14988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
14989 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
14990 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
14991 $as_echo_n "(cached) " >&6
14992 else
14993 ac_check_lib_save_LIBS=$LIBS
14994 LIBS="-ldes $LIBS"
14995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14996 /* end confdefs.h. */
14998 /* Override any GCC internal prototype to avoid an error.
14999 Use char because int might match the return type of a GCC
15000 builtin and then its argument prototype would still apply. */
15001 #ifdef __cplusplus
15002 extern "C"
15003 #endif
15004 char des_cbc_encrypt ();
15006 main ()
15008 return des_cbc_encrypt ();
15010 return 0;
15012 _ACEOF
15013 if ac_fn_c_try_link "$LINENO"; then :
15014 ac_cv_lib_des_des_cbc_encrypt=yes
15015 else
15016 ac_cv_lib_des_des_cbc_encrypt=no
15018 rm -f core conftest.err conftest.$ac_objext \
15019 conftest$ac_exeext conftest.$ac_ext
15020 LIBS=$ac_check_lib_save_LIBS
15022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
15023 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
15024 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x""yes; then :
15025 have_des=yes
15026 else
15027 have_des=no
15030 if test $have_des = yes; then
15031 DESLIB=-ldes
15032 LIBS="$DESLIB $LIBS"
15034 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
15038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
15039 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
15040 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
15041 $as_echo_n "(cached) " >&6
15042 else
15043 ac_check_lib_save_LIBS=$LIBS
15044 LIBS="-lkrb4 $LIBS"
15045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15046 /* end confdefs.h. */
15048 /* Override any GCC internal prototype to avoid an error.
15049 Use char because int might match the return type of a GCC
15050 builtin and then its argument prototype would still apply. */
15051 #ifdef __cplusplus
15052 extern "C"
15053 #endif
15054 char krb_get_cred ();
15056 main ()
15058 return krb_get_cred ();
15060 return 0;
15062 _ACEOF
15063 if ac_fn_c_try_link "$LINENO"; then :
15064 ac_cv_lib_krb4_krb_get_cred=yes
15065 else
15066 ac_cv_lib_krb4_krb_get_cred=no
15068 rm -f core conftest.err conftest.$ac_objext \
15069 conftest$ac_exeext conftest.$ac_ext
15070 LIBS=$ac_check_lib_save_LIBS
15072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
15073 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
15074 if test "x$ac_cv_lib_krb4_krb_get_cred" = x""yes; then :
15075 have_krb4=yes
15076 else
15077 have_krb4=no
15080 if test $have_krb4 = yes; then
15081 KRB4LIB=-lkrb4
15082 LIBS="$KRB4LIB $LIBS"
15084 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
15086 else
15087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
15088 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
15089 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
15090 $as_echo_n "(cached) " >&6
15091 else
15092 ac_check_lib_save_LIBS=$LIBS
15093 LIBS="-lkrb $LIBS"
15094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15095 /* end confdefs.h. */
15097 /* Override any GCC internal prototype to avoid an error.
15098 Use char because int might match the return type of a GCC
15099 builtin and then its argument prototype would still apply. */
15100 #ifdef __cplusplus
15101 extern "C"
15102 #endif
15103 char krb_get_cred ();
15105 main ()
15107 return krb_get_cred ();
15109 return 0;
15111 _ACEOF
15112 if ac_fn_c_try_link "$LINENO"; then :
15113 ac_cv_lib_krb_krb_get_cred=yes
15114 else
15115 ac_cv_lib_krb_krb_get_cred=no
15117 rm -f core conftest.err conftest.$ac_objext \
15118 conftest$ac_exeext conftest.$ac_ext
15119 LIBS=$ac_check_lib_save_LIBS
15121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
15122 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
15123 if test "x$ac_cv_lib_krb_krb_get_cred" = x""yes; then :
15124 have_krb=yes
15125 else
15126 have_krb=no
15129 if test $have_krb = yes; then
15130 KRB4LIB=-lkrb
15131 LIBS="$KRB4LIB $LIBS"
15133 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
15139 if test "${with_kerberos5}" != no; then
15140 for ac_header in krb5.h
15141 do :
15142 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
15143 if test "x$ac_cv_header_krb5_h" = x""yes; then :
15144 cat >>confdefs.h <<_ACEOF
15145 #define HAVE_KRB5_H 1
15146 _ACEOF
15147 ac_fn_c_check_member "$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
15149 if test "x$ac_cv_member_krb5_error_text" = x""yes; then :
15151 cat >>confdefs.h <<_ACEOF
15152 #define HAVE_KRB5_ERROR_TEXT 1
15153 _ACEOF
15157 ac_fn_c_check_member "$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
15159 if test "x$ac_cv_member_krb5_error_e_text" = x""yes; then :
15161 cat >>confdefs.h <<_ACEOF
15162 #define HAVE_KRB5_ERROR_E_TEXT 1
15163 _ACEOF
15170 done
15172 else
15173 for ac_header in des.h
15174 do :
15175 ac_fn_c_check_header_mongrel "$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
15176 if test "x$ac_cv_header_des_h" = x""yes; then :
15177 cat >>confdefs.h <<_ACEOF
15178 #define HAVE_DES_H 1
15179 _ACEOF
15181 else
15182 for ac_header in kerberosIV/des.h
15183 do :
15184 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
15185 if test "x$ac_cv_header_kerberosIV_des_h" = x""yes; then :
15186 cat >>confdefs.h <<_ACEOF
15187 #define HAVE_KERBEROSIV_DES_H 1
15188 _ACEOF
15190 else
15191 for ac_header in kerberos/des.h
15192 do :
15193 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
15194 if test "x$ac_cv_header_kerberos_des_h" = x""yes; then :
15195 cat >>confdefs.h <<_ACEOF
15196 #define HAVE_KERBEROS_DES_H 1
15197 _ACEOF
15201 done
15205 done
15209 done
15211 for ac_header in krb.h
15212 do :
15213 ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
15214 if test "x$ac_cv_header_krb_h" = x""yes; then :
15215 cat >>confdefs.h <<_ACEOF
15216 #define HAVE_KRB_H 1
15217 _ACEOF
15219 else
15220 for ac_header in kerberosIV/krb.h
15221 do :
15222 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
15223 if test "x$ac_cv_header_kerberosIV_krb_h" = x""yes; then :
15224 cat >>confdefs.h <<_ACEOF
15225 #define HAVE_KERBEROSIV_KRB_H 1
15226 _ACEOF
15228 else
15229 for ac_header in kerberos/krb.h
15230 do :
15231 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
15232 if test "x$ac_cv_header_kerberos_krb_h" = x""yes; then :
15233 cat >>confdefs.h <<_ACEOF
15234 #define HAVE_KERBEROS_KRB_H 1
15235 _ACEOF
15239 done
15243 done
15247 done
15250 for ac_header in com_err.h
15251 do :
15252 ac_fn_c_check_header_mongrel "$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
15253 if test "x$ac_cv_header_com_err_h" = x""yes; then :
15254 cat >>confdefs.h <<_ACEOF
15255 #define HAVE_COM_ERR_H 1
15256 _ACEOF
15260 done
15270 # Solaris requires -lintl if you want strerror (which calls dgettext)
15271 # to return localized messages.
15272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
15273 $as_echo_n "checking for dgettext in -lintl... " >&6; }
15274 if test "${ac_cv_lib_intl_dgettext+set}" = set; then :
15275 $as_echo_n "(cached) " >&6
15276 else
15277 ac_check_lib_save_LIBS=$LIBS
15278 LIBS="-lintl $LIBS"
15279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15280 /* end confdefs.h. */
15282 /* Override any GCC internal prototype to avoid an error.
15283 Use char because int might match the return type of a GCC
15284 builtin and then its argument prototype would still apply. */
15285 #ifdef __cplusplus
15286 extern "C"
15287 #endif
15288 char dgettext ();
15290 main ()
15292 return dgettext ();
15294 return 0;
15296 _ACEOF
15297 if ac_fn_c_try_link "$LINENO"; then :
15298 ac_cv_lib_intl_dgettext=yes
15299 else
15300 ac_cv_lib_intl_dgettext=no
15302 rm -f core conftest.err conftest.$ac_objext \
15303 conftest$ac_exeext conftest.$ac_ext
15304 LIBS=$ac_check_lib_save_LIBS
15306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
15307 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
15308 if test "x$ac_cv_lib_intl_dgettext" = x""yes; then :
15309 cat >>confdefs.h <<_ACEOF
15310 #define HAVE_LIBINTL 1
15311 _ACEOF
15313 LIBS="-lintl $LIBS"
15318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
15319 $as_echo_n "checking whether localtime caches TZ... " >&6; }
15320 if test "${emacs_cv_localtime_cache+set}" = set; then :
15321 $as_echo_n "(cached) " >&6
15322 else
15323 if test x$ac_cv_func_tzset = xyes; then
15324 if test "$cross_compiling" = yes; then :
15325 # If we have tzset, assume the worst when cross-compiling.
15326 emacs_cv_localtime_cache=yes
15327 else
15328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15329 /* end confdefs.h. */
15330 #include <time.h>
15331 char TZ_GMT0[] = "TZ=GMT0";
15332 char TZ_PST8[] = "TZ=PST8";
15333 main()
15335 time_t now = time ((time_t *) 0);
15336 int hour_GMT0, hour_unset;
15337 if (putenv (TZ_GMT0) != 0)
15338 exit (1);
15339 hour_GMT0 = localtime (&now)->tm_hour;
15340 unsetenv("TZ");
15341 hour_unset = localtime (&now)->tm_hour;
15342 if (putenv (TZ_PST8) != 0)
15343 exit (1);
15344 if (localtime (&now)->tm_hour == hour_GMT0)
15345 exit (1);
15346 unsetenv("TZ");
15347 if (localtime (&now)->tm_hour != hour_unset)
15348 exit (1);
15349 exit (0);
15351 _ACEOF
15352 if ac_fn_c_try_run "$LINENO"; then :
15353 emacs_cv_localtime_cache=no
15354 else
15355 emacs_cv_localtime_cache=yes
15357 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15358 conftest.$ac_objext conftest.beam conftest.$ac_ext
15361 else
15362 # If we lack tzset, report that localtime does not cache TZ,
15363 # since we can't invalidate the cache if we don't have tzset.
15364 emacs_cv_localtime_cache=no
15367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
15368 $as_echo "$emacs_cv_localtime_cache" >&6; }
15369 if test $emacs_cv_localtime_cache = yes; then
15371 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
15375 if test "x$HAVE_TIMEVAL" = xyes; then
15376 for ac_func in gettimeofday
15377 do :
15378 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
15379 if test "x$ac_cv_func_gettimeofday" = x""yes; then :
15380 cat >>confdefs.h <<_ACEOF
15381 #define HAVE_GETTIMEOFDAY 1
15382 _ACEOF
15385 done
15387 if test $ac_cv_func_gettimeofday = yes; then
15388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday can accept two arguments" >&5
15389 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
15390 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then :
15391 $as_echo_n "(cached) " >&6
15392 else
15393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15394 /* end confdefs.h. */
15396 #ifdef TIME_WITH_SYS_TIME
15397 #include <sys/time.h>
15398 #include <time.h>
15399 #else
15400 #ifdef HAVE_SYS_TIME_H
15401 #include <sys/time.h>
15402 #else
15403 #include <time.h>
15404 #endif
15405 #endif
15407 main ()
15409 struct timeval time;
15410 gettimeofday (&time, 0);
15412 return 0;
15414 _ACEOF
15415 if ac_fn_c_try_compile "$LINENO"; then :
15416 emacs_cv_gettimeofday_two_arguments=yes
15417 else
15418 emacs_cv_gettimeofday_two_arguments=no
15420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_gettimeofday_two_arguments" >&5
15423 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
15424 if test $emacs_cv_gettimeofday_two_arguments = no; then
15426 $as_echo "#define GETTIMEOFDAY_ONE_ARGUMENT 1" >>confdefs.h
15432 ok_so_far=yes
15433 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
15434 if test "x$ac_cv_func_socket" = x""yes; then :
15436 else
15437 ok_so_far=no
15440 if test $ok_so_far = yes; then
15441 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
15442 if test "x$ac_cv_header_netinet_in_h" = x""yes; then :
15444 else
15445 ok_so_far=no
15450 if test $ok_so_far = yes; then
15451 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
15452 if test "x$ac_cv_header_arpa_inet_h" = x""yes; then :
15454 else
15455 ok_so_far=no
15460 if test $ok_so_far = yes; then
15462 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
15466 if test -f /usr/lpp/X11/bin/smt.exp; then
15468 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
15472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
15473 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
15474 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
15475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15476 $as_echo "yes" >&6; }
15478 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
15480 else
15481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15482 $as_echo "no" >&6; }
15485 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
15486 if test "x$ac_cv_type_pid_t" = x""yes; then :
15488 else
15490 cat >>confdefs.h <<_ACEOF
15491 #define pid_t int
15492 _ACEOF
15496 for ac_header in vfork.h
15497 do :
15498 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
15499 if test "x$ac_cv_header_vfork_h" = x""yes; then :
15500 cat >>confdefs.h <<_ACEOF
15501 #define HAVE_VFORK_H 1
15502 _ACEOF
15506 done
15508 for ac_func in fork vfork
15509 do :
15510 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15511 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15512 eval as_val=\$$as_ac_var
15513 if test "x$as_val" = x""yes; then :
15514 cat >>confdefs.h <<_ACEOF
15515 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15516 _ACEOF
15519 done
15521 if test "x$ac_cv_func_fork" = xyes; then
15522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
15523 $as_echo_n "checking for working fork... " >&6; }
15524 if test "${ac_cv_func_fork_works+set}" = set; then :
15525 $as_echo_n "(cached) " >&6
15526 else
15527 if test "$cross_compiling" = yes; then :
15528 ac_cv_func_fork_works=cross
15529 else
15530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15531 /* end confdefs.h. */
15532 $ac_includes_default
15534 main ()
15537 /* By Ruediger Kuhlmann. */
15538 return fork () < 0;
15541 return 0;
15543 _ACEOF
15544 if ac_fn_c_try_run "$LINENO"; then :
15545 ac_cv_func_fork_works=yes
15546 else
15547 ac_cv_func_fork_works=no
15549 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15550 conftest.$ac_objext conftest.beam conftest.$ac_ext
15554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
15555 $as_echo "$ac_cv_func_fork_works" >&6; }
15557 else
15558 ac_cv_func_fork_works=$ac_cv_func_fork
15560 if test "x$ac_cv_func_fork_works" = xcross; then
15561 case $host in
15562 *-*-amigaos* | *-*-msdosdjgpp*)
15563 # Override, as these systems have only a dummy fork() stub
15564 ac_cv_func_fork_works=no
15567 ac_cv_func_fork_works=yes
15569 esac
15570 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
15571 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
15573 ac_cv_func_vfork_works=$ac_cv_func_vfork
15574 if test "x$ac_cv_func_vfork" = xyes; then
15575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
15576 $as_echo_n "checking for working vfork... " >&6; }
15577 if test "${ac_cv_func_vfork_works+set}" = set; then :
15578 $as_echo_n "(cached) " >&6
15579 else
15580 if test "$cross_compiling" = yes; then :
15581 ac_cv_func_vfork_works=cross
15582 else
15583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15584 /* end confdefs.h. */
15585 /* Thanks to Paul Eggert for this test. */
15586 $ac_includes_default
15587 #include <sys/wait.h>
15588 #ifdef HAVE_VFORK_H
15589 # include <vfork.h>
15590 #endif
15591 /* On some sparc systems, changes by the child to local and incoming
15592 argument registers are propagated back to the parent. The compiler
15593 is told about this with #include <vfork.h>, but some compilers
15594 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
15595 static variable whose address is put into a register that is
15596 clobbered by the vfork. */
15597 static void
15598 #ifdef __cplusplus
15599 sparc_address_test (int arg)
15600 # else
15601 sparc_address_test (arg) int arg;
15602 #endif
15604 static pid_t child;
15605 if (!child) {
15606 child = vfork ();
15607 if (child < 0) {
15608 perror ("vfork");
15609 _exit(2);
15611 if (!child) {
15612 arg = getpid();
15613 write(-1, "", 0);
15614 _exit (arg);
15620 main ()
15622 pid_t parent = getpid ();
15623 pid_t child;
15625 sparc_address_test (0);
15627 child = vfork ();
15629 if (child == 0) {
15630 /* Here is another test for sparc vfork register problems. This
15631 test uses lots of local variables, at least as many local
15632 variables as main has allocated so far including compiler
15633 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
15634 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
15635 reuse the register of parent for one of the local variables,
15636 since it will think that parent can't possibly be used any more
15637 in this routine. Assigning to the local variable will thus
15638 munge parent in the parent process. */
15639 pid_t
15640 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
15641 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
15642 /* Convince the compiler that p..p7 are live; otherwise, it might
15643 use the same hardware register for all 8 local variables. */
15644 if (p != p1 || p != p2 || p != p3 || p != p4
15645 || p != p5 || p != p6 || p != p7)
15646 _exit(1);
15648 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
15649 from child file descriptors. If the child closes a descriptor
15650 before it execs or exits, this munges the parent's descriptor
15651 as well. Test for this by closing stdout in the child. */
15652 _exit(close(fileno(stdout)) != 0);
15653 } else {
15654 int status;
15655 struct stat st;
15657 while (wait(&status) != child)
15659 return (
15660 /* Was there some problem with vforking? */
15661 child < 0
15663 /* Did the child fail? (This shouldn't happen.) */
15664 || status
15666 /* Did the vfork/compiler bug occur? */
15667 || parent != getpid()
15669 /* Did the file descriptor bug occur? */
15670 || fstat(fileno(stdout), &st) != 0
15674 _ACEOF
15675 if ac_fn_c_try_run "$LINENO"; then :
15676 ac_cv_func_vfork_works=yes
15677 else
15678 ac_cv_func_vfork_works=no
15680 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15681 conftest.$ac_objext conftest.beam conftest.$ac_ext
15685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
15686 $as_echo "$ac_cv_func_vfork_works" >&6; }
15689 if test "x$ac_cv_func_fork_works" = xcross; then
15690 ac_cv_func_vfork_works=$ac_cv_func_vfork
15691 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
15692 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
15695 if test "x$ac_cv_func_vfork_works" = xyes; then
15697 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
15699 else
15701 $as_echo "#define vfork fork" >>confdefs.h
15704 if test "x$ac_cv_func_fork_works" = xyes; then
15706 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
15711 for ac_func in snprintf
15712 do :
15713 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
15714 if test "x$ac_cv_func_snprintf" = x""yes; then :
15715 cat >>confdefs.h <<_ACEOF
15716 #define HAVE_SNPRINTF 1
15717 _ACEOF
15720 done
15723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
15724 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
15725 if test "${emacs_cv_langinfo_codeset+set}" = set; then :
15726 $as_echo_n "(cached) " >&6
15727 else
15728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15729 /* end confdefs.h. */
15730 #include <langinfo.h>
15732 main ()
15734 char* cs = nl_langinfo(CODESET);
15736 return 0;
15738 _ACEOF
15739 if ac_fn_c_try_link "$LINENO"; then :
15740 emacs_cv_langinfo_codeset=yes
15741 else
15742 emacs_cv_langinfo_codeset=no
15744 rm -f core conftest.err conftest.$ac_objext \
15745 conftest$ac_exeext conftest.$ac_ext
15748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
15749 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
15750 if test $emacs_cv_langinfo_codeset = yes; then
15752 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
15756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
15757 $as_echo_n "checking for mbstate_t... " >&6; }
15758 if test "${ac_cv_type_mbstate_t+set}" = set; then :
15759 $as_echo_n "(cached) " >&6
15760 else
15761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15762 /* end confdefs.h. */
15763 $ac_includes_default
15764 # include <wchar.h>
15766 main ()
15768 mbstate_t x; return sizeof x;
15770 return 0;
15772 _ACEOF
15773 if ac_fn_c_try_compile "$LINENO"; then :
15774 ac_cv_type_mbstate_t=yes
15775 else
15776 ac_cv_type_mbstate_t=no
15778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
15781 $as_echo "$ac_cv_type_mbstate_t" >&6; }
15782 if test $ac_cv_type_mbstate_t = yes; then
15784 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
15786 else
15788 $as_echo "#define mbstate_t int" >>confdefs.h
15792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
15793 $as_echo_n "checking for C restricted array declarations... " >&6; }
15794 if test "${emacs_cv_c_restrict_arr+set}" = set; then :
15795 $as_echo_n "(cached) " >&6
15796 else
15797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15798 /* end confdefs.h. */
15799 void fred (int x[__restrict]);
15801 main ()
15805 return 0;
15807 _ACEOF
15808 if ac_fn_c_try_compile "$LINENO"; then :
15809 emacs_cv_c_restrict_arr=yes
15810 else
15811 emacs_cv_c_restrict_arr=no
15813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
15816 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
15817 if test "$emacs_cv_c_restrict_arr" = yes; then
15819 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
15824 # Set up the CFLAGS for real compilation, so we can substitute it.
15825 CFLAGS="$REAL_CFLAGS"
15826 CPPFLAGS="$REAL_CPPFLAGS"
15828 ## Hack to detect a buggy GCC version.
15829 if test "x$GCC" = xyes \
15830 && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
15831 && test x"`echo $CFLAGS | grep '\-O[23]'`" != x \
15832 && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then
15833 as_fn_error "GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
15836 version=$PACKAGE_VERSION
15838 ### Specify what sort of things we'll be editing into Makefile and config.h.
15839 ### Use configuration here uncanonicalized to avoid exceeding size limits.
15842 ## Unused?
15863 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
15864 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
15865 ## end of LIBX_BASE, but nothing ever set it.
15870 ## Used in lwlib/Makefile.in.
15872 if test -n "${machfile}"; then
15873 M_FILE="\$(srcdir)/${machfile}"
15874 else
15875 M_FILE=
15877 S_FILE="\$(srcdir)/${opsysfile}"
15888 cat >>confdefs.h <<_ACEOF
15889 #define EMACS_CONFIGURATION "${canonical}"
15890 _ACEOF
15893 cat >>confdefs.h <<_ACEOF
15894 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
15895 _ACEOF
15897 if test -n "$machfile"; then
15899 cat >>confdefs.h <<_ACEOF
15900 #define config_machfile "${machfile}"
15901 _ACEOF
15905 cat >>confdefs.h <<_ACEOF
15906 #define config_opsysfile "${opsysfile}"
15907 _ACEOF
15910 XMENU_OBJ=
15911 XOBJ=
15912 FONT_OBJ=
15913 if test "${HAVE_X_WINDOWS}" = "yes" ; then
15915 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
15917 XMENU_OBJ=xmenu.o
15918 XOBJ="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
15919 FONT_OBJ=xfont.o
15920 if test "$HAVE_XFT" = "yes"; then
15921 FONT_OBJ="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
15922 elif test "$HAVE_FREETYPE" = "yes"; then
15923 FONT_OBJ="$FONT_OBJ ftfont.o ftxfont.o"
15931 WIDGET_OBJ=
15932 MOTIF_LIBW=
15933 if test "${USE_X_TOOLKIT}" != "none" ; then
15934 WIDGET_OBJ=widget.o
15936 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
15938 if test "${USE_X_TOOLKIT}" = "LUCID"; then
15940 $as_echo "#define USE_LUCID 1" >>confdefs.h
15942 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
15944 $as_echo "#define USE_MOTIF 1" >>confdefs.h
15946 MOTIF_LIBW=-lXm
15947 case "$opsys" in
15948 gnu-linux)
15949 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
15950 MOTIF_LIBW="$MOTIF_LIBW -lXpm"
15953 unixware)
15954 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
15955 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
15956 MOTIF_LIBW="MOTIF_LIBW -lXimp"
15959 aix4-2)
15960 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
15961 MOTIF_LIBW="$MOTIF_LIBW -li18n"
15963 esac
15964 MOTIF_LIBW="$MOTIF_LIBW $LIBXP"
15969 TOOLKIT_LIBW=
15970 case "$USE_X_TOOLKIT" in
15971 MOTIF) TOOLKIT_LIBW="$MOTIF_LIBW" ;;
15972 LUCID) TOOLKIT_LIBW="$LUCID_LIBW" ;;
15973 none) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW="$GTK_LIBS" ;;
15974 esac
15977 if test "$USE_X_TOOLKIT" = "none"; then
15978 LIBXT_OTHER="\$(LIBXSM)"
15979 OLDXMENU_TARGET="really-oldXMenu"
15980 else
15981 LIBXT_OTHER="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
15982 OLDXMENU_TARGET="really-lwlib"
15986 ## The X Menu stuff is present in the X10 distribution, but missing
15987 ## from X11. If we have X10, just use the installed library;
15988 ## otherwise, use our own copy.
15989 if test "${HAVE_X11}" = "yes" ; then
15991 $as_echo "#define HAVE_X11 1" >>confdefs.h
15994 if test "$USE_X_TOOLKIT" = "none"; then
15995 OLDXMENU="\${oldXMenudir}/libXMenu11.a"
15996 else
15997 OLDXMENU="\${lwlibdir}/liblw.a"
15999 LIBXMENU="\$(OLDXMENU)"
16000 LIBX_OTHER="\$(LIBXT) \$(LIBX_EXTRA)"
16001 OLDXMENU_DEPS="\${OLDXMENU} ../src/\${OLDXMENU}"
16002 else
16003 ## For a syntactically valid Makefile; not actually used for anything.
16004 ## See comments in src/Makefile.in.
16005 OLDXMENU=nothing
16006 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
16007 if test "${HAVE_X_WINDOWS}" = "yes"; then
16008 LIBXMENU="-lXMenu"
16009 else
16010 LIBXMENU=
16012 LIBX_OTHER=
16013 OLDXMENU_DEPS=
16016 if test "$HAVE_GTK" = "yes" || test "$HAVE_MENUS" != "yes"; then
16017 OLDXMENU_TARGET=
16018 OLDXMENU=nothing
16019 LIBXMENU=
16020 OLDXMENU_DEPS=
16029 if test "${HAVE_MENUS}" = "yes" ; then
16031 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
16035 if test "${GNU_MALLOC}" = "yes" ; then
16037 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
16041 RALLOC_OBJ=
16042 if test "${REL_ALLOC}" = "yes" ; then
16044 $as_echo "#define REL_ALLOC 1" >>confdefs.h
16047 test "$system_malloc" != "yes" && RALLOC_OBJ=ralloc.o
16051 if test "$opsys" = "cygwin"; then
16052 CYGWIN_OBJ="sheap.o"
16053 ## Cygwin differs because of its unexec().
16054 PRE_ALLOC_OBJ=
16055 POST_ALLOC_OBJ=lastfile.o
16056 else
16057 CYGWIN_OBJ=
16058 PRE_ALLOC_OBJ=lastfile.o
16059 POST_ALLOC_OBJ=
16065 # Configure gnulib here, now that we know LIBS.
16077 LIBC_FATAL_STDERR_=1
16078 export LIBC_FATAL_STDERR_
16080 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16081 # for constant arguments. Useless!
16082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
16083 $as_echo_n "checking for working alloca.h... " >&6; }
16084 if test "${ac_cv_working_alloca_h+set}" = set; then :
16085 $as_echo_n "(cached) " >&6
16086 else
16087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16088 /* end confdefs.h. */
16089 #include <alloca.h>
16091 main ()
16093 char *p = (char *) alloca (2 * sizeof (int));
16094 if (p) return 0;
16096 return 0;
16098 _ACEOF
16099 if ac_fn_c_try_link "$LINENO"; then :
16100 ac_cv_working_alloca_h=yes
16101 else
16102 ac_cv_working_alloca_h=no
16104 rm -f core conftest.err conftest.$ac_objext \
16105 conftest$ac_exeext conftest.$ac_ext
16107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
16108 $as_echo "$ac_cv_working_alloca_h" >&6; }
16109 if test $ac_cv_working_alloca_h = yes; then
16111 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
16115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
16116 $as_echo_n "checking for alloca... " >&6; }
16117 if test "${ac_cv_func_alloca_works+set}" = set; then :
16118 $as_echo_n "(cached) " >&6
16119 else
16120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16121 /* end confdefs.h. */
16122 #ifdef __GNUC__
16123 # define alloca __builtin_alloca
16124 #else
16125 # ifdef _MSC_VER
16126 # include <malloc.h>
16127 # define alloca _alloca
16128 # else
16129 # ifdef HAVE_ALLOCA_H
16130 # include <alloca.h>
16131 # else
16132 # ifdef _AIX
16133 #pragma alloca
16134 # else
16135 # ifndef alloca /* predefined by HP cc +Olibcalls */
16136 char *alloca ();
16137 # endif
16138 # endif
16139 # endif
16140 # endif
16141 #endif
16144 main ()
16146 char *p = (char *) alloca (1);
16147 if (p) return 0;
16149 return 0;
16151 _ACEOF
16152 if ac_fn_c_try_link "$LINENO"; then :
16153 ac_cv_func_alloca_works=yes
16154 else
16155 ac_cv_func_alloca_works=no
16157 rm -f core conftest.err conftest.$ac_objext \
16158 conftest$ac_exeext conftest.$ac_ext
16160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
16161 $as_echo "$ac_cv_func_alloca_works" >&6; }
16163 if test $ac_cv_func_alloca_works = yes; then
16165 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
16167 else
16168 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16169 # that cause trouble. Some versions do not even contain alloca or
16170 # contain a buggy version. If you still want to use their alloca,
16171 # use ar to extract alloca.o from them instead of compiling alloca.c.
16177 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
16179 $as_echo "#define C_ALLOCA 1" >>confdefs.h
16182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
16183 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
16184 if test "${ac_cv_os_cray+set}" = set; then :
16185 $as_echo_n "(cached) " >&6
16186 else
16187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16188 /* end confdefs.h. */
16189 #if defined CRAY && ! defined CRAY2
16190 webecray
16191 #else
16192 wenotbecray
16193 #endif
16195 _ACEOF
16196 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16197 $EGREP "webecray" >/dev/null 2>&1; then :
16198 ac_cv_os_cray=yes
16199 else
16200 ac_cv_os_cray=no
16202 rm -f conftest*
16205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
16206 $as_echo "$ac_cv_os_cray" >&6; }
16207 if test $ac_cv_os_cray = yes; then
16208 for ac_func in _getb67 GETB67 getb67; do
16209 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16210 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16211 eval as_val=\$$as_ac_var
16212 if test "x$as_val" = x""yes; then :
16214 cat >>confdefs.h <<_ACEOF
16215 #define CRAY_STACKSEG_END $ac_func
16216 _ACEOF
16218 break
16221 done
16224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
16225 $as_echo_n "checking stack direction for C alloca... " >&6; }
16226 if test "${ac_cv_c_stack_direction+set}" = set; then :
16227 $as_echo_n "(cached) " >&6
16228 else
16229 if test "$cross_compiling" = yes; then :
16230 ac_cv_c_stack_direction=0
16231 else
16232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16233 /* end confdefs.h. */
16234 $ac_includes_default
16236 find_stack_direction (int *addr, int depth)
16238 int dir, dummy = 0;
16239 if (! addr)
16240 addr = &dummy;
16241 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
16242 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
16243 return dir + dummy;
16247 main (int argc, char **argv)
16249 return find_stack_direction (0, argc + !argv + 20) < 0;
16251 _ACEOF
16252 if ac_fn_c_try_run "$LINENO"; then :
16253 ac_cv_c_stack_direction=1
16254 else
16255 ac_cv_c_stack_direction=-1
16257 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16258 conftest.$ac_objext conftest.beam conftest.$ac_ext
16262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
16263 $as_echo "$ac_cv_c_stack_direction" >&6; }
16264 cat >>confdefs.h <<_ACEOF
16265 #define STACK_DIRECTION $ac_cv_c_stack_direction
16266 _ACEOF
16274 for ac_func in $ac_func_list
16275 do :
16276 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16277 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16278 eval as_val=\$$as_ac_var
16279 if test "x$as_val" = x""yes; then :
16280 cat >>confdefs.h <<_ACEOF
16281 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16282 _ACEOF
16285 done
16290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
16291 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
16292 if test "${ac_cv_c_bigendian+set}" = set; then :
16293 $as_echo_n "(cached) " >&6
16294 else
16295 ac_cv_c_bigendian=unknown
16296 # See if we're dealing with a universal compiler.
16297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16298 /* end confdefs.h. */
16299 #ifndef __APPLE_CC__
16300 not a universal capable compiler
16301 #endif
16302 typedef int dummy;
16304 _ACEOF
16305 if ac_fn_c_try_compile "$LINENO"; then :
16307 # Check for potential -arch flags. It is not universal unless
16308 # there are at least two -arch flags with different values.
16309 ac_arch=
16310 ac_prev=
16311 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
16312 if test -n "$ac_prev"; then
16313 case $ac_word in
16314 i?86 | x86_64 | ppc | ppc64)
16315 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
16316 ac_arch=$ac_word
16317 else
16318 ac_cv_c_bigendian=universal
16319 break
16322 esac
16323 ac_prev=
16324 elif test "x$ac_word" = "x-arch"; then
16325 ac_prev=arch
16327 done
16329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16330 if test $ac_cv_c_bigendian = unknown; then
16331 # See if sys/param.h defines the BYTE_ORDER macro.
16332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16333 /* end confdefs.h. */
16334 #include <sys/types.h>
16335 #include <sys/param.h>
16338 main ()
16340 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
16341 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
16342 && LITTLE_ENDIAN)
16343 bogus endian macros
16344 #endif
16347 return 0;
16349 _ACEOF
16350 if ac_fn_c_try_compile "$LINENO"; then :
16351 # It does; now see whether it defined to BIG_ENDIAN or not.
16352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16353 /* end confdefs.h. */
16354 #include <sys/types.h>
16355 #include <sys/param.h>
16358 main ()
16360 #if BYTE_ORDER != BIG_ENDIAN
16361 not big endian
16362 #endif
16365 return 0;
16367 _ACEOF
16368 if ac_fn_c_try_compile "$LINENO"; then :
16369 ac_cv_c_bigendian=yes
16370 else
16371 ac_cv_c_bigendian=no
16373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16377 if test $ac_cv_c_bigendian = unknown; then
16378 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
16379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16380 /* end confdefs.h. */
16381 #include <limits.h>
16384 main ()
16386 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
16387 bogus endian macros
16388 #endif
16391 return 0;
16393 _ACEOF
16394 if ac_fn_c_try_compile "$LINENO"; then :
16395 # It does; now see whether it defined to _BIG_ENDIAN or not.
16396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16397 /* end confdefs.h. */
16398 #include <limits.h>
16401 main ()
16403 #ifndef _BIG_ENDIAN
16404 not big endian
16405 #endif
16408 return 0;
16410 _ACEOF
16411 if ac_fn_c_try_compile "$LINENO"; then :
16412 ac_cv_c_bigendian=yes
16413 else
16414 ac_cv_c_bigendian=no
16416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16420 if test $ac_cv_c_bigendian = unknown; then
16421 # Compile a test program.
16422 if test "$cross_compiling" = yes; then :
16423 # Try to guess by grepping values from an object file.
16424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16425 /* end confdefs.h. */
16426 short int ascii_mm[] =
16427 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
16428 short int ascii_ii[] =
16429 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
16430 int use_ascii (int i) {
16431 return ascii_mm[i] + ascii_ii[i];
16433 short int ebcdic_ii[] =
16434 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
16435 short int ebcdic_mm[] =
16436 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
16437 int use_ebcdic (int i) {
16438 return ebcdic_mm[i] + ebcdic_ii[i];
16440 extern int foo;
16443 main ()
16445 return use_ascii (foo) == use_ebcdic (foo);
16447 return 0;
16449 _ACEOF
16450 if ac_fn_c_try_compile "$LINENO"; then :
16451 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
16452 ac_cv_c_bigendian=yes
16454 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
16455 if test "$ac_cv_c_bigendian" = unknown; then
16456 ac_cv_c_bigendian=no
16457 else
16458 # finding both strings is unlikely to happen, but who knows?
16459 ac_cv_c_bigendian=unknown
16463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16464 else
16465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16466 /* end confdefs.h. */
16467 $ac_includes_default
16469 main ()
16472 /* Are we little or big endian? From Harbison&Steele. */
16473 union
16475 long int l;
16476 char c[sizeof (long int)];
16477 } u;
16478 u.l = 1;
16479 return u.c[sizeof (long int) - 1] == 1;
16482 return 0;
16484 _ACEOF
16485 if ac_fn_c_try_run "$LINENO"; then :
16486 ac_cv_c_bigendian=no
16487 else
16488 ac_cv_c_bigendian=yes
16490 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16491 conftest.$ac_objext conftest.beam conftest.$ac_ext
16496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
16497 $as_echo "$ac_cv_c_bigendian" >&6; }
16498 case $ac_cv_c_bigendian in #(
16499 yes)
16500 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
16501 ;; #(
16503 ;; #(
16504 universal)
16506 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
16508 ;; #(
16510 as_fn_error "unknown endianness
16511 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
16512 esac
16515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
16516 $as_echo_n "checking for inline... " >&6; }
16517 if test "${ac_cv_c_inline+set}" = set; then :
16518 $as_echo_n "(cached) " >&6
16519 else
16520 ac_cv_c_inline=no
16521 for ac_kw in inline __inline__ __inline; do
16522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16523 /* end confdefs.h. */
16524 #ifndef __cplusplus
16525 typedef int foo_t;
16526 static $ac_kw foo_t static_foo () {return 0; }
16527 $ac_kw foo_t foo () {return 0; }
16528 #endif
16530 _ACEOF
16531 if ac_fn_c_try_compile "$LINENO"; then :
16532 ac_cv_c_inline=$ac_kw
16534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16535 test "$ac_cv_c_inline" != no && break
16536 done
16539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
16540 $as_echo "$ac_cv_c_inline" >&6; }
16542 case $ac_cv_c_inline in
16543 inline | yes) ;;
16545 case $ac_cv_c_inline in
16546 no) ac_val=;;
16547 *) ac_val=$ac_cv_c_inline;;
16548 esac
16549 cat >>confdefs.h <<_ACEOF
16550 #ifndef __cplusplus
16551 #define inline $ac_val
16552 #endif
16553 _ACEOF
16555 esac
16558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtold conforms to C99" >&5
16559 $as_echo_n "checking whether strtold conforms to C99... " >&6; }
16560 if test "${gl_cv_func_c99_strtold+set}" = set; then :
16561 $as_echo_n "(cached) " >&6
16562 else
16563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16564 /* end confdefs.h. */
16565 /* On HP-UX before 11.23, strtold returns a struct instead of
16566 long double. Reject implementations like that, by requiring
16567 compatibility with the C99 prototype. */
16568 #include <stdlib.h>
16569 static long double (*p) (char const *, char **) = strtold;
16570 static long double
16571 test (char const *nptr, char **endptr)
16573 long double r;
16574 r = strtold (nptr, endptr);
16575 return r;
16578 main ()
16580 return test ("1.0", NULL) != 1 || p ("1.0", NULL) != 1;
16582 return 0;
16584 _ACEOF
16585 if ac_fn_c_try_link "$LINENO"; then :
16586 gl_cv_func_c99_strtold=yes
16587 else
16588 gl_cv_func_c99_strtold=no
16590 rm -f core conftest.err conftest.$ac_objext \
16591 conftest$ac_exeext conftest.$ac_ext
16593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_c99_strtold" >&5
16594 $as_echo "$gl_cv_func_c99_strtold" >&6; }
16595 if test $gl_cv_func_c99_strtold = yes; then
16597 $as_echo "#define HAVE_C99_STRTOLD 1" >>confdefs.h
16602 GNULIB_CHOWN=0;
16603 GNULIB_CLOSE=0;
16604 GNULIB_DUP2=0;
16605 GNULIB_DUP3=0;
16606 GNULIB_ENVIRON=0;
16607 GNULIB_EUIDACCESS=0;
16608 GNULIB_FACCESSAT=0;
16609 GNULIB_FCHDIR=0;
16610 GNULIB_FCHOWNAT=0;
16611 GNULIB_FSYNC=0;
16612 GNULIB_FTRUNCATE=0;
16613 GNULIB_GETCWD=0;
16614 GNULIB_GETDOMAINNAME=0;
16615 GNULIB_GETDTABLESIZE=0;
16616 GNULIB_GETGROUPS=0;
16617 GNULIB_GETHOSTNAME=0;
16618 GNULIB_GETLOGIN=0;
16619 GNULIB_GETLOGIN_R=0;
16620 GNULIB_GETPAGESIZE=0;
16621 GNULIB_GETUSERSHELL=0;
16622 GNULIB_GROUP_MEMBER=0;
16623 GNULIB_LCHOWN=0;
16624 GNULIB_LINK=0;
16625 GNULIB_LINKAT=0;
16626 GNULIB_LSEEK=0;
16627 GNULIB_PIPE=0;
16628 GNULIB_PIPE2=0;
16629 GNULIB_PREAD=0;
16630 GNULIB_PWRITE=0;
16631 GNULIB_READ=0;
16632 GNULIB_READLINK=0;
16633 GNULIB_READLINKAT=0;
16634 GNULIB_RMDIR=0;
16635 GNULIB_SLEEP=0;
16636 GNULIB_SYMLINK=0;
16637 GNULIB_SYMLINKAT=0;
16638 GNULIB_TTYNAME_R=0;
16639 GNULIB_UNISTD_H_GETOPT=0;
16640 GNULIB_UNISTD_H_NONBLOCKING=0;
16641 GNULIB_UNISTD_H_SIGPIPE=0;
16642 GNULIB_UNLINK=0;
16643 GNULIB_UNLINKAT=0;
16644 GNULIB_USLEEP=0;
16645 GNULIB_WRITE=0;
16646 HAVE_CHOWN=1;
16647 HAVE_DUP2=1;
16648 HAVE_DUP3=1;
16649 HAVE_EUIDACCESS=1;
16650 HAVE_FACCESSAT=1;
16651 HAVE_FCHDIR=1;
16652 HAVE_FCHOWNAT=1;
16653 HAVE_FSYNC=1;
16654 HAVE_FTRUNCATE=1;
16655 HAVE_GETDTABLESIZE=1;
16656 HAVE_GETGROUPS=1;
16657 HAVE_GETHOSTNAME=1;
16658 HAVE_GETLOGIN=1;
16659 HAVE_GETPAGESIZE=1;
16660 HAVE_GROUP_MEMBER=1;
16661 HAVE_LCHOWN=1;
16662 HAVE_LINK=1;
16663 HAVE_LINKAT=1;
16664 HAVE_PIPE=1;
16665 HAVE_PIPE2=1;
16666 HAVE_PREAD=1;
16667 HAVE_PWRITE=1;
16668 HAVE_READLINK=1;
16669 HAVE_READLINKAT=1;
16670 HAVE_SLEEP=1;
16671 HAVE_SYMLINK=1;
16672 HAVE_SYMLINKAT=1;
16673 HAVE_UNLINKAT=1;
16674 HAVE_USLEEP=1;
16675 HAVE_DECL_ENVIRON=1;
16676 HAVE_DECL_FCHDIR=1;
16677 HAVE_DECL_GETDOMAINNAME=1;
16678 HAVE_DECL_GETLOGIN_R=1;
16679 HAVE_DECL_GETPAGESIZE=1;
16680 HAVE_DECL_GETUSERSHELL=1;
16681 HAVE_DECL_TTYNAME_R=1;
16682 HAVE_OS_H=0;
16683 HAVE_SYS_PARAM_H=0;
16684 REPLACE_CHOWN=0;
16685 REPLACE_CLOSE=0;
16686 REPLACE_DUP=0;
16687 REPLACE_DUP2=0;
16688 REPLACE_FCHOWNAT=0;
16689 REPLACE_GETCWD=0;
16690 REPLACE_GETDOMAINNAME=0;
16691 REPLACE_GETLOGIN_R=0;
16692 REPLACE_GETGROUPS=0;
16693 REPLACE_GETPAGESIZE=0;
16694 REPLACE_LCHOWN=0;
16695 REPLACE_LINK=0;
16696 REPLACE_LINKAT=0;
16697 REPLACE_LSEEK=0;
16698 REPLACE_PREAD=0;
16699 REPLACE_PWRITE=0;
16700 REPLACE_READ=0;
16701 REPLACE_READLINK=0;
16702 REPLACE_RMDIR=0;
16703 REPLACE_SLEEP=0;
16704 REPLACE_SYMLINK=0;
16705 REPLACE_TTYNAME_R=0;
16706 REPLACE_UNLINK=0;
16707 REPLACE_UNLINKAT=0;
16708 REPLACE_USLEEP=0;
16709 REPLACE_WRITE=0;
16710 UNISTD_H_HAVE_WINSOCK2_H=0;
16711 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
16714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_dm_mode in struct stat" >&5
16715 $as_echo_n "checking for st_dm_mode in struct stat... " >&6; }
16716 if test "${ac_cv_struct_st_dm_mode+set}" = set; then :
16717 $as_echo_n "(cached) " >&6
16718 else
16719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16720 /* end confdefs.h. */
16722 #include <sys/types.h>
16723 #include <sys/stat.h>
16725 main ()
16727 struct stat s; s.st_dm_mode;
16729 return 0;
16731 _ACEOF
16732 if ac_fn_c_try_compile "$LINENO"; then :
16733 ac_cv_struct_st_dm_mode=yes
16734 else
16735 ac_cv_struct_st_dm_mode=no
16737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_st_dm_mode" >&5
16740 $as_echo "$ac_cv_struct_st_dm_mode" >&6; }
16742 if test $ac_cv_struct_st_dm_mode = yes; then
16744 $as_echo "#define HAVE_ST_DM_MODE 1" >>confdefs.h
16749 ac_fn_c_check_decl "$LINENO" "strmode" "ac_cv_have_decl_strmode" "$ac_includes_default"
16750 if test "x$ac_cv_have_decl_strmode" = x""yes; then :
16751 ac_have_decl=1
16752 else
16753 ac_have_decl=0
16756 cat >>confdefs.h <<_ACEOF
16757 #define HAVE_DECL_STRMODE $ac_have_decl
16758 _ACEOF
16761 GNULIB__EXIT=0;
16762 GNULIB_ATOLL=0;
16763 GNULIB_CALLOC_POSIX=0;
16764 GNULIB_CANONICALIZE_FILE_NAME=0;
16765 GNULIB_GETLOADAVG=0;
16766 GNULIB_GETSUBOPT=0;
16767 GNULIB_GRANTPT=0;
16768 GNULIB_MALLOC_POSIX=0;
16769 GNULIB_MBTOWC=0;
16770 GNULIB_MKDTEMP=0;
16771 GNULIB_MKOSTEMP=0;
16772 GNULIB_MKOSTEMPS=0;
16773 GNULIB_MKSTEMP=0;
16774 GNULIB_MKSTEMPS=0;
16775 GNULIB_PTSNAME=0;
16776 GNULIB_PUTENV=0;
16777 GNULIB_RANDOM_R=0;
16778 GNULIB_REALLOC_POSIX=0;
16779 GNULIB_REALPATH=0;
16780 GNULIB_RPMATCH=0;
16781 GNULIB_SETENV=0;
16782 GNULIB_STRTOD=0;
16783 GNULIB_STRTOLL=0;
16784 GNULIB_STRTOULL=0;
16785 GNULIB_SYSTEM_POSIX=0;
16786 GNULIB_UNLOCKPT=0;
16787 GNULIB_UNSETENV=0;
16788 GNULIB_WCTOMB=0;
16789 HAVE__EXIT=1;
16790 HAVE_ATOLL=1;
16791 HAVE_CANONICALIZE_FILE_NAME=1;
16792 HAVE_DECL_GETLOADAVG=1;
16793 HAVE_GETSUBOPT=1;
16794 HAVE_GRANTPT=1;
16795 HAVE_MKDTEMP=1;
16796 HAVE_MKOSTEMP=1;
16797 HAVE_MKOSTEMPS=1;
16798 HAVE_MKSTEMP=1;
16799 HAVE_MKSTEMPS=1;
16800 HAVE_PTSNAME=1;
16801 HAVE_RANDOM_H=1;
16802 HAVE_RANDOM_R=1;
16803 HAVE_REALPATH=1;
16804 HAVE_RPMATCH=1;
16805 HAVE_SETENV=1;
16806 HAVE_DECL_SETENV=1;
16807 HAVE_STRTOD=1;
16808 HAVE_STRTOLL=1;
16809 HAVE_STRTOULL=1;
16810 HAVE_STRUCT_RANDOM_DATA=1;
16811 HAVE_SYS_LOADAVG_H=0;
16812 HAVE_UNLOCKPT=1;
16813 HAVE_DECL_UNSETENV=1;
16814 REPLACE_CALLOC=0;
16815 REPLACE_CANONICALIZE_FILE_NAME=0;
16816 REPLACE_MALLOC=0;
16817 REPLACE_MBTOWC=0;
16818 REPLACE_MKSTEMP=0;
16819 REPLACE_PUTENV=0;
16820 REPLACE_REALLOC=0;
16821 REPLACE_REALPATH=0;
16822 REPLACE_SETENV=0;
16823 REPLACE_STRTOD=0;
16824 REPLACE_UNSETENV=0;
16825 REPLACE_WCTOMB=0;
16829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
16830 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
16831 if test "${gl_cv_have_include_next+set}" = set; then :
16832 $as_echo_n "(cached) " >&6
16833 else
16834 rm -rf conftestd1a conftestd1b conftestd2
16835 mkdir conftestd1a conftestd1b conftestd2
16836 cat <<EOF > conftestd1a/conftest.h
16837 #define DEFINED_IN_CONFTESTD1
16838 #include_next <conftest.h>
16839 #ifdef DEFINED_IN_CONFTESTD2
16840 int foo;
16841 #else
16842 #error "include_next doesn't work"
16843 #endif
16845 cat <<EOF > conftestd1b/conftest.h
16846 #define DEFINED_IN_CONFTESTD1
16847 #include <stdio.h>
16848 #include_next <conftest.h>
16849 #ifdef DEFINED_IN_CONFTESTD2
16850 int foo;
16851 #else
16852 #error "include_next doesn't work"
16853 #endif
16855 cat <<EOF > conftestd2/conftest.h
16856 #ifndef DEFINED_IN_CONFTESTD1
16857 #error "include_next test doesn't work"
16858 #endif
16859 #define DEFINED_IN_CONFTESTD2
16861 gl_save_CPPFLAGS="$CPPFLAGS"
16862 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
16863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16864 /* end confdefs.h. */
16865 #include <conftest.h>
16866 _ACEOF
16867 if ac_fn_c_try_compile "$LINENO"; then :
16868 gl_cv_have_include_next=yes
16869 else
16870 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
16871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16872 /* end confdefs.h. */
16873 #include <conftest.h>
16874 _ACEOF
16875 if ac_fn_c_try_compile "$LINENO"; then :
16876 gl_cv_have_include_next=buggy
16877 else
16878 gl_cv_have_include_next=no
16880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16884 CPPFLAGS="$gl_save_CPPFLAGS"
16885 rm -rf conftestd1a conftestd1b conftestd2
16888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
16889 $as_echo "$gl_cv_have_include_next" >&6; }
16890 PRAGMA_SYSTEM_HEADER=
16891 if test $gl_cv_have_include_next = yes; then
16892 INCLUDE_NEXT=include_next
16893 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
16894 if test -n "$GCC"; then
16895 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
16897 else
16898 if test $gl_cv_have_include_next = buggy; then
16899 INCLUDE_NEXT=include
16900 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
16901 else
16902 INCLUDE_NEXT=include
16903 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
16909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
16910 $as_echo_n "checking whether system header files limit the line length... " >&6; }
16911 if test "${gl_cv_pragma_columns+set}" = set; then :
16912 $as_echo_n "(cached) " >&6
16913 else
16914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16915 /* end confdefs.h. */
16917 #ifdef __TANDEM
16918 choke me
16919 #endif
16921 _ACEOF
16922 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16923 $EGREP "choke me" >/dev/null 2>&1; then :
16924 gl_cv_pragma_columns=yes
16925 else
16926 gl_cv_pragma_columns=no
16928 rm -f conftest*
16932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
16933 $as_echo "$gl_cv_pragma_columns" >&6; }
16934 if test $gl_cv_pragma_columns = yes; then
16935 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
16936 else
16937 PRAGMA_COLUMNS=
16956 if test $gl_cv_have_include_next = yes; then
16957 gl_cv_next_getopt_h='<'getopt.h'>'
16958 else
16959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
16960 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
16961 if test "${gl_cv_next_getopt_h+set}" = set; then :
16962 $as_echo_n "(cached) " >&6
16963 else
16965 if test $ac_cv_header_getopt_h = yes; then
16968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16969 /* end confdefs.h. */
16970 #include <getopt.h>
16972 _ACEOF
16973 case "$host_os" in
16974 aix*) gl_absname_cpp="$ac_cpp -C" ;;
16975 *) gl_absname_cpp="$ac_cpp" ;;
16976 esac
16978 case "$host_os" in
16979 mingw*)
16980 gl_dirsep_regex='[/\\]'
16983 gl_dirsep_regex='/'
16985 esac
16987 gl_absolute_header_sed='\#'"${gl_dirsep_regex}"'getopt.h#{
16988 s#.*"\(.*'"${gl_dirsep_regex}"'getopt.h\)".*#\1#
16989 s#^/[^/]#//&#
16993 gl_cv_next_getopt_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16994 sed -n "$gl_absolute_header_sed"`'"'
16995 else
16996 gl_cv_next_getopt_h='<'getopt.h'>'
17001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
17002 $as_echo "$gl_cv_next_getopt_h" >&6; }
17004 NEXT_GETOPT_H=$gl_cv_next_getopt_h
17006 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17007 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17008 gl_next_as_first_directive='<'getopt.h'>'
17009 else
17010 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17011 gl_next_as_first_directive=$gl_cv_next_getopt_h
17013 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H=$gl_next_as_first_directive
17018 if test $ac_cv_header_getopt_h = yes; then
17019 HAVE_GETOPT_H=1
17020 else
17021 HAVE_GETOPT_H=0
17025 gl_replace_getopt=
17027 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
17028 for ac_header in getopt.h
17029 do :
17030 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
17031 if test "x$ac_cv_header_getopt_h" = x""yes; then :
17032 cat >>confdefs.h <<_ACEOF
17033 #define HAVE_GETOPT_H 1
17034 _ACEOF
17036 else
17037 gl_replace_getopt=yes
17040 done
17044 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
17045 for ac_func in getopt_long_only
17046 do :
17047 ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
17048 if test "x$ac_cv_func_getopt_long_only" = x""yes; then :
17049 cat >>confdefs.h <<_ACEOF
17050 #define HAVE_GETOPT_LONG_ONLY 1
17051 _ACEOF
17053 else
17054 gl_replace_getopt=yes
17056 done
17060 if test -z "$gl_replace_getopt"; then
17061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
17062 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
17063 if test "${gl_cv_func_getopt_posix+set}" = set; then :
17064 $as_echo_n "(cached) " >&6
17065 else
17067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17068 /* end confdefs.h. */
17069 #include <unistd.h>
17071 main ()
17073 int *p = &optreset; return optreset;
17075 return 0;
17077 _ACEOF
17078 if ac_fn_c_try_link "$LINENO"; then :
17079 gl_optind_min=1
17080 else
17081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17082 /* end confdefs.h. */
17083 #include <getopt.h>
17085 main ()
17087 return !getopt_clip;
17089 return 0;
17091 _ACEOF
17092 if ac_fn_c_try_compile "$LINENO"; then :
17093 gl_optind_min=1
17094 else
17095 gl_optind_min=0
17097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17099 rm -f core conftest.err conftest.$ac_objext \
17100 conftest$ac_exeext conftest.$ac_ext
17102 gl_save_CPPFLAGS=$CPPFLAGS
17103 CPPFLAGS="$CPPFLAGS -DOPTIND_MIN=$gl_optind_min"
17104 if test "$cross_compiling" = yes; then :
17105 case "$host_os" in
17106 mingw*) gl_cv_func_getopt_posix="guessing no";;
17107 darwin* | aix*) gl_cv_func_getopt_posix="guessing no";;
17108 *) gl_cv_func_getopt_posix="guessing yes";;
17109 esac
17111 else
17112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17113 /* end confdefs.h. */
17115 #include <unistd.h>
17116 #include <stdlib.h>
17117 #include <string.h>
17120 main ()
17123 static char program[] = "program";
17124 static char a[] = "-a";
17125 static char foo[] = "foo";
17126 static char bar[] = "bar";
17127 char *argv[] = { program, a, foo, bar, NULL };
17128 int c;
17130 optind = OPTIND_MIN;
17131 opterr = 0;
17133 c = getopt (4, argv, "ab");
17134 if (!(c == 'a'))
17135 return 1;
17136 c = getopt (4, argv, "ab");
17137 if (!(c == -1))
17138 return 2;
17139 if (!(optind == 2))
17140 return 3;
17142 /* Some internal state exists at this point. */
17144 static char program[] = "program";
17145 static char donald[] = "donald";
17146 static char p[] = "-p";
17147 static char billy[] = "billy";
17148 static char duck[] = "duck";
17149 static char a[] = "-a";
17150 static char bar[] = "bar";
17151 char *argv[] = { program, donald, p, billy, duck, a, bar, NULL };
17152 int c;
17154 optind = OPTIND_MIN;
17155 opterr = 0;
17157 c = getopt (7, argv, "+abp:q:");
17158 if (!(c == -1))
17159 return 4;
17160 if (!(strcmp (argv[0], "program") == 0))
17161 return 5;
17162 if (!(strcmp (argv[1], "donald") == 0))
17163 return 6;
17164 if (!(strcmp (argv[2], "-p") == 0))
17165 return 7;
17166 if (!(strcmp (argv[3], "billy") == 0))
17167 return 8;
17168 if (!(strcmp (argv[4], "duck") == 0))
17169 return 9;
17170 if (!(strcmp (argv[5], "-a") == 0))
17171 return 10;
17172 if (!(strcmp (argv[6], "bar") == 0))
17173 return 11;
17174 if (!(optind == 1))
17175 return 12;
17177 /* Detect MacOS 10.5, AIX 7.1 bug. */
17179 static char program[] = "program";
17180 static char ab[] = "-ab";
17181 char *argv[3] = { program, ab, NULL };
17182 optind = OPTIND_MIN;
17183 opterr = 0;
17184 if (getopt (2, argv, "ab:") != 'a')
17185 return 13;
17186 if (getopt (2, argv, "ab:") != '?')
17187 return 14;
17188 if (optopt != 'b')
17189 return 15;
17190 if (optind != 2)
17191 return 16;
17194 return 0;
17197 _ACEOF
17198 if ac_fn_c_try_run "$LINENO"; then :
17199 gl_cv_func_getopt_posix=yes
17200 else
17201 gl_cv_func_getopt_posix=no
17203 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17204 conftest.$ac_objext conftest.beam conftest.$ac_ext
17207 CPPFLAGS=$gl_save_CPPFLAGS
17210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
17211 $as_echo "$gl_cv_func_getopt_posix" >&6; }
17212 case "$gl_cv_func_getopt_posix" in
17213 *no) gl_replace_getopt=yes ;;
17214 esac
17217 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
17218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
17219 $as_echo_n "checking for working GNU getopt function... " >&6; }
17220 if test "${gl_cv_func_getopt_gnu+set}" = set; then :
17221 $as_echo_n "(cached) " >&6
17222 else
17223 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
17224 # optstring is necessary for programs like m4 that have POSIX-mandated
17225 # semantics for supporting options interspersed with files.
17226 # Also, since getopt_long is a GNU extension, we require optind=0.
17227 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
17228 # so take care to revert to the correct (non-)export state.
17229 gl_awk_probe='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
17230 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
17231 xx) gl_had_POSIXLY_CORRECT=exported ;;
17232 x) gl_had_POSIXLY_CORRECT=yes ;;
17233 *) gl_had_POSIXLY_CORRECT= ;;
17234 esac
17235 POSIXLY_CORRECT=1
17236 export POSIXLY_CORRECT
17237 if test "$cross_compiling" = yes; then :
17238 case $host_os:$ac_cv_have_decl_optreset in
17239 *-gnu*:* | mingw*:*) gl_cv_func_getopt_gnu=no;;
17240 *:yes) gl_cv_func_getopt_gnu=no;;
17241 *) gl_cv_func_getopt_gnu=yes;;
17242 esac
17244 else
17245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17246 /* end confdefs.h. */
17247 #include <getopt.h>
17248 #include <stddef.h>
17249 #include <string.h>
17251 #include <stdlib.h>
17252 #if defined __MACH__ && defined __APPLE__
17253 /* Avoid a crash on MacOS X. */
17254 #include <mach/mach.h>
17255 #include <mach/mach_error.h>
17256 #include <mach/thread_status.h>
17257 #include <mach/exception.h>
17258 #include <mach/task.h>
17259 #include <pthread.h>
17260 /* The exception port on which our thread listens. */
17261 static mach_port_t our_exception_port;
17262 /* The main function of the thread listening for exceptions of type
17263 EXC_BAD_ACCESS. */
17264 static void *
17265 mach_exception_thread (void *arg)
17267 /* Buffer for a message to be received. */
17268 struct {
17269 mach_msg_header_t head;
17270 mach_msg_body_t msgh_body;
17271 char data[1024];
17272 } msg;
17273 mach_msg_return_t retval;
17274 /* Wait for a message on the exception port. */
17275 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
17276 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
17277 if (retval != MACH_MSG_SUCCESS)
17278 abort ();
17279 exit (1);
17281 static void
17282 nocrash_init (void)
17284 mach_port_t self = mach_task_self ();
17285 /* Allocate a port on which the thread shall listen for exceptions. */
17286 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
17287 == KERN_SUCCESS) {
17288 /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
17289 if (mach_port_insert_right (self, our_exception_port, our_exception_port,
17290 MACH_MSG_TYPE_MAKE_SEND)
17291 == KERN_SUCCESS) {
17292 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
17293 for us. */
17294 exception_mask_t mask = EXC_MASK_BAD_ACCESS;
17295 /* Create the thread listening on the exception port. */
17296 pthread_attr_t attr;
17297 pthread_t thread;
17298 if (pthread_attr_init (&attr) == 0
17299 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
17300 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
17301 pthread_attr_destroy (&attr);
17302 /* Replace the exception port info for these exceptions with our own.
17303 Note that we replace the exception port for the entire task, not only
17304 for a particular thread. This has the effect that when our exception
17305 port gets the message, the thread specific exception port has already
17306 been asked, and we don't need to bother about it.
17307 See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
17308 task_set_exception_ports (self, mask, our_exception_port,
17309 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
17314 #elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
17315 /* Avoid a crash on native Windows. */
17316 #define WIN32_LEAN_AND_MEAN
17317 #include <windows.h>
17318 #include <winerror.h>
17319 static LONG WINAPI
17320 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
17322 switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
17324 case EXCEPTION_ACCESS_VIOLATION:
17325 case EXCEPTION_IN_PAGE_ERROR:
17326 case EXCEPTION_STACK_OVERFLOW:
17327 case EXCEPTION_GUARD_PAGE:
17328 case EXCEPTION_PRIV_INSTRUCTION:
17329 case EXCEPTION_ILLEGAL_INSTRUCTION:
17330 case EXCEPTION_DATATYPE_MISALIGNMENT:
17331 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
17332 case EXCEPTION_NONCONTINUABLE_EXCEPTION:
17333 exit (1);
17335 return EXCEPTION_CONTINUE_SEARCH;
17337 static void
17338 nocrash_init (void)
17340 SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
17342 #else
17343 /* Avoid a crash on POSIX systems. */
17344 #include <signal.h>
17345 /* A POSIX signal handler. */
17346 static void
17347 exception_handler (int sig)
17349 exit (1);
17351 static void
17352 nocrash_init (void)
17354 #ifdef SIGSEGV
17355 signal (SIGSEGV, exception_handler);
17356 #endif
17357 #ifdef SIGBUS
17358 signal (SIGBUS, exception_handler);
17359 #endif
17361 #endif
17365 main ()
17368 int result = 0;
17370 nocrash_init();
17372 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
17373 and fails on MacOS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
17374 OSF/1 5.1, Solaris 10. */
17376 static char conftest[] = "conftest";
17377 static char plus[] = "-+";
17378 char *argv[3] = { conftest, plus, NULL };
17379 opterr = 0;
17380 if (getopt (2, argv, "+a") != '?')
17381 result |= 1;
17383 /* This code succeeds on glibc 2.8, mingw,
17384 and fails on MacOS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
17385 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
17387 static char program[] = "program";
17388 static char p[] = "-p";
17389 static char foo[] = "foo";
17390 static char bar[] = "bar";
17391 char *argv[] = { program, p, foo, bar, NULL };
17393 optind = 1;
17394 if (getopt (4, argv, "p::") != 'p')
17395 result |= 2;
17396 else if (optarg != NULL)
17397 result |= 4;
17398 else if (getopt (4, argv, "p::") != -1)
17399 result |= 6;
17400 else if (optind != 2)
17401 result |= 8;
17403 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
17405 static char program[] = "program";
17406 static char foo[] = "foo";
17407 static char p[] = "-p";
17408 char *argv[] = { program, foo, p, NULL };
17409 optind = 0;
17410 if (getopt (3, argv, "-p") != 1)
17411 result |= 16;
17412 else if (getopt (3, argv, "-p") != 'p')
17413 result |= 32;
17415 /* This code fails on glibc 2.11. */
17417 static char program[] = "program";
17418 static char b[] = "-b";
17419 static char a[] = "-a";
17420 char *argv[] = { program, b, a, NULL };
17421 optind = opterr = 0;
17422 if (getopt (3, argv, "+:a:b") != 'b')
17423 result |= 64;
17424 else if (getopt (3, argv, "+:a:b") != ':')
17425 result |= 64;
17427 /* This code dumps core on glibc 2.14. */
17429 static char program[] = "program";
17430 static char w[] = "-W";
17431 static char dummy[] = "dummy";
17432 char *argv[] = { program, w, dummy, NULL };
17433 optind = opterr = 1;
17434 if (getopt (3, argv, "W;") != 'W')
17435 result |= 128;
17437 return result;
17440 return 0;
17442 _ACEOF
17443 if ac_fn_c_try_run "$LINENO"; then :
17444 gl_cv_func_getopt_gnu=yes
17445 else
17446 gl_cv_func_getopt_gnu=no
17448 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17449 conftest.$ac_objext conftest.beam conftest.$ac_ext
17452 case $gl_had_POSIXLY_CORRECT in
17453 exported) ;;
17454 yes) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;}; POSIXLY_CORRECT=1 ;;
17455 *) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;} ;;
17456 esac
17459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
17460 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
17461 if test "$gl_cv_func_getopt_gnu" = "no"; then
17462 gl_replace_getopt=yes
17470 REPLACE_GETOPT=0
17473 if test -n "$gl_replace_getopt"; then :
17475 REPLACE_GETOPT=1
17480 if test $REPLACE_GETOPT = 1; then
17482 GETOPT_H=getopt.h
17484 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
17488 GNULIB_UNISTD_H_GETOPT=1
17491 ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
17492 if test "x$ac_cv_have_decl_getenv" = x""yes; then :
17493 ac_have_decl=1
17494 else
17495 ac_have_decl=0
17498 cat >>confdefs.h <<_ACEOF
17499 #define HAVE_DECL_GETENV $ac_have_decl
17500 _ACEOF
17503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
17504 $as_echo_n "checking for unsigned long long int... " >&6; }
17505 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
17506 $as_echo_n "(cached) " >&6
17507 else
17508 ac_cv_type_unsigned_long_long_int=yes
17509 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
17510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17511 /* end confdefs.h. */
17513 /* For now, do not test the preprocessor; as of 2007 there are too many
17514 implementations with broken preprocessors. Perhaps this can
17515 be revisited in 2012. In the meantime, code should not expect
17516 #if to work with literals wider than 32 bits. */
17517 /* Test literals. */
17518 long long int ll = 9223372036854775807ll;
17519 long long int nll = -9223372036854775807LL;
17520 unsigned long long int ull = 18446744073709551615ULL;
17521 /* Test constant expressions. */
17522 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
17523 ? 1 : -1)];
17524 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
17525 ? 1 : -1)];
17526 int i = 63;
17528 main ()
17530 /* Test availability of runtime routines for shift and division. */
17531 long long int llmax = 9223372036854775807ll;
17532 unsigned long long int ullmax = 18446744073709551615ull;
17533 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
17534 | (llmax / ll) | (llmax % ll)
17535 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
17536 | (ullmax / ull) | (ullmax % ull));
17538 return 0;
17541 _ACEOF
17542 if ac_fn_c_try_link "$LINENO"; then :
17544 else
17545 ac_cv_type_unsigned_long_long_int=no
17547 rm -f core conftest.err conftest.$ac_objext \
17548 conftest$ac_exeext conftest.$ac_ext
17551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
17552 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
17553 if test $ac_cv_type_unsigned_long_long_int = yes; then
17555 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
17561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
17562 $as_echo_n "checking for long long int... " >&6; }
17563 if test "${ac_cv_type_long_long_int+set}" = set; then :
17564 $as_echo_n "(cached) " >&6
17565 else
17566 ac_cv_type_long_long_int=yes
17567 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
17568 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
17569 if test $ac_cv_type_long_long_int = yes; then
17570 if test "$cross_compiling" = yes; then :
17572 else
17573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17574 /* end confdefs.h. */
17575 #include <limits.h>
17576 #ifndef LLONG_MAX
17577 # define HALF \
17578 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
17579 # define LLONG_MAX (HALF - 1 + HALF)
17580 #endif
17582 main ()
17584 long long int n = 1;
17585 int i;
17586 for (i = 0; ; i++)
17588 long long int m = n << i;
17589 if (m >> i != n)
17590 return 1;
17591 if (LLONG_MAX / 2 < m)
17592 break;
17594 return 0;
17596 return 0;
17598 _ACEOF
17599 if ac_fn_c_try_run "$LINENO"; then :
17601 else
17602 ac_cv_type_long_long_int=no
17604 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17605 conftest.$ac_objext conftest.beam conftest.$ac_ext
17611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
17612 $as_echo "$ac_cv_type_long_long_int" >&6; }
17613 if test $ac_cv_type_long_long_int = yes; then
17615 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
17624 gl_cv_c_multiarch=no
17625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17626 /* end confdefs.h. */
17627 #ifndef __APPLE_CC__
17628 not a universal capable compiler
17629 #endif
17630 typedef int dummy;
17632 _ACEOF
17633 if ac_fn_c_try_compile "$LINENO"; then :
17635 arch=
17636 prev=
17637 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
17638 if test -n "$prev"; then
17639 case $word in
17640 i?86 | x86_64 | ppc | ppc64)
17641 if test -z "$arch" || test "$arch" = "$word"; then
17642 arch="$word"
17643 else
17644 gl_cv_c_multiarch=yes
17647 esac
17648 prev=
17649 else
17650 if test "x$word" = "x-arch"; then
17651 prev=arch
17654 done
17657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17658 if test $gl_cv_c_multiarch = yes; then
17659 APPLE_UNIVERSAL_BUILD=1
17660 else
17661 APPLE_UNIVERSAL_BUILD=0
17668 if test $ac_cv_type_long_long_int = yes; then
17669 HAVE_LONG_LONG_INT=1
17670 else
17671 HAVE_LONG_LONG_INT=0
17675 if test $ac_cv_type_unsigned_long_long_int = yes; then
17676 HAVE_UNSIGNED_LONG_LONG_INT=1
17677 else
17678 HAVE_UNSIGNED_LONG_LONG_INT=0
17683 if test $ac_cv_header_wchar_h = yes; then
17684 HAVE_WCHAR_H=1
17685 else
17686 HAVE_WCHAR_H=0
17690 if test $ac_cv_header_inttypes_h = yes; then
17691 HAVE_INTTYPES_H=1
17692 else
17693 HAVE_INTTYPES_H=0
17697 if test $ac_cv_header_sys_types_h = yes; then
17698 HAVE_SYS_TYPES_H=1
17699 else
17700 HAVE_SYS_TYPES_H=0
17713 if test $gl_cv_have_include_next = yes; then
17714 gl_cv_next_stdint_h='<'stdint.h'>'
17715 else
17716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
17717 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
17718 if test "${gl_cv_next_stdint_h+set}" = set; then :
17719 $as_echo_n "(cached) " >&6
17720 else
17722 if test $ac_cv_header_stdint_h = yes; then
17725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17726 /* end confdefs.h. */
17727 #include <stdint.h>
17729 _ACEOF
17730 case "$host_os" in
17731 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17732 *) gl_absname_cpp="$ac_cpp" ;;
17733 esac
17735 case "$host_os" in
17736 mingw*)
17737 gl_dirsep_regex='[/\\]'
17740 gl_dirsep_regex='/'
17742 esac
17744 gl_absolute_header_sed='\#'"${gl_dirsep_regex}"'stdint.h#{
17745 s#.*"\(.*'"${gl_dirsep_regex}"'stdint.h\)".*#\1#
17746 s#^/[^/]#//&#
17750 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17751 sed -n "$gl_absolute_header_sed"`'"'
17752 else
17753 gl_cv_next_stdint_h='<'stdint.h'>'
17758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
17759 $as_echo "$gl_cv_next_stdint_h" >&6; }
17761 NEXT_STDINT_H=$gl_cv_next_stdint_h
17763 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17764 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17765 gl_next_as_first_directive='<'stdint.h'>'
17766 else
17767 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17768 gl_next_as_first_directive=$gl_cv_next_stdint_h
17770 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
17775 if test $ac_cv_header_stdint_h = yes; then
17776 HAVE_STDINT_H=1
17777 else
17778 HAVE_STDINT_H=0
17782 if test $ac_cv_header_stdint_h = yes; then
17783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
17784 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
17785 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
17786 $as_echo_n "(cached) " >&6
17787 else
17788 gl_cv_header_working_stdint_h=no
17789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17790 /* end confdefs.h. */
17793 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
17794 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
17795 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
17796 #include <stdint.h>
17797 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
17798 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
17799 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
17800 #endif
17803 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17804 included before <wchar.h>. */
17805 #include <stddef.h>
17806 #include <signal.h>
17807 #if HAVE_WCHAR_H
17808 # include <stdio.h>
17809 # include <time.h>
17810 # include <wchar.h>
17811 #endif
17814 #ifdef INT8_MAX
17815 int8_t a1 = INT8_MAX;
17816 int8_t a1min = INT8_MIN;
17817 #endif
17818 #ifdef INT16_MAX
17819 int16_t a2 = INT16_MAX;
17820 int16_t a2min = INT16_MIN;
17821 #endif
17822 #ifdef INT32_MAX
17823 int32_t a3 = INT32_MAX;
17824 int32_t a3min = INT32_MIN;
17825 #endif
17826 #ifdef INT64_MAX
17827 int64_t a4 = INT64_MAX;
17828 int64_t a4min = INT64_MIN;
17829 #endif
17830 #ifdef UINT8_MAX
17831 uint8_t b1 = UINT8_MAX;
17832 #else
17833 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
17834 #endif
17835 #ifdef UINT16_MAX
17836 uint16_t b2 = UINT16_MAX;
17837 #endif
17838 #ifdef UINT32_MAX
17839 uint32_t b3 = UINT32_MAX;
17840 #endif
17841 #ifdef UINT64_MAX
17842 uint64_t b4 = UINT64_MAX;
17843 #endif
17844 int_least8_t c1 = INT8_C (0x7f);
17845 int_least8_t c1max = INT_LEAST8_MAX;
17846 int_least8_t c1min = INT_LEAST8_MIN;
17847 int_least16_t c2 = INT16_C (0x7fff);
17848 int_least16_t c2max = INT_LEAST16_MAX;
17849 int_least16_t c2min = INT_LEAST16_MIN;
17850 int_least32_t c3 = INT32_C (0x7fffffff);
17851 int_least32_t c3max = INT_LEAST32_MAX;
17852 int_least32_t c3min = INT_LEAST32_MIN;
17853 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
17854 int_least64_t c4max = INT_LEAST64_MAX;
17855 int_least64_t c4min = INT_LEAST64_MIN;
17856 uint_least8_t d1 = UINT8_C (0xff);
17857 uint_least8_t d1max = UINT_LEAST8_MAX;
17858 uint_least16_t d2 = UINT16_C (0xffff);
17859 uint_least16_t d2max = UINT_LEAST16_MAX;
17860 uint_least32_t d3 = UINT32_C (0xffffffff);
17861 uint_least32_t d3max = UINT_LEAST32_MAX;
17862 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
17863 uint_least64_t d4max = UINT_LEAST64_MAX;
17864 int_fast8_t e1 = INT_FAST8_MAX;
17865 int_fast8_t e1min = INT_FAST8_MIN;
17866 int_fast16_t e2 = INT_FAST16_MAX;
17867 int_fast16_t e2min = INT_FAST16_MIN;
17868 int_fast32_t e3 = INT_FAST32_MAX;
17869 int_fast32_t e3min = INT_FAST32_MIN;
17870 int_fast64_t e4 = INT_FAST64_MAX;
17871 int_fast64_t e4min = INT_FAST64_MIN;
17872 uint_fast8_t f1 = UINT_FAST8_MAX;
17873 uint_fast16_t f2 = UINT_FAST16_MAX;
17874 uint_fast32_t f3 = UINT_FAST32_MAX;
17875 uint_fast64_t f4 = UINT_FAST64_MAX;
17876 #ifdef INTPTR_MAX
17877 intptr_t g = INTPTR_MAX;
17878 intptr_t gmin = INTPTR_MIN;
17879 #endif
17880 #ifdef UINTPTR_MAX
17881 uintptr_t h = UINTPTR_MAX;
17882 #endif
17883 intmax_t i = INTMAX_MAX;
17884 uintmax_t j = UINTMAX_MAX;
17886 #include <limits.h> /* for CHAR_BIT */
17887 #define TYPE_MINIMUM(t) \
17888 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
17889 #define TYPE_MAXIMUM(t) \
17890 ((t) ((t) 0 < (t) -1 \
17891 ? (t) -1 \
17892 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
17893 struct s {
17894 int check_PTRDIFF:
17895 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
17896 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
17897 ? 1 : -1;
17898 /* Detect bug in FreeBSD 6.0 / ia64. */
17899 int check_SIG_ATOMIC:
17900 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
17901 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
17902 ? 1 : -1;
17903 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
17904 int check_WCHAR:
17905 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
17906 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
17907 ? 1 : -1;
17908 /* Detect bug in mingw. */
17909 int check_WINT:
17910 WINT_MIN == TYPE_MINIMUM (wint_t)
17911 && WINT_MAX == TYPE_MAXIMUM (wint_t)
17912 ? 1 : -1;
17914 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
17915 int check_UINT8_C:
17916 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
17917 int check_UINT16_C:
17918 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
17920 /* Detect bugs in OpenBSD 3.9 stdint.h. */
17921 #ifdef UINT8_MAX
17922 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
17923 #endif
17924 #ifdef UINT16_MAX
17925 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
17926 #endif
17927 #ifdef UINT32_MAX
17928 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
17929 #endif
17930 #ifdef UINT64_MAX
17931 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
17932 #endif
17933 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
17934 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
17935 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
17936 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
17937 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
17938 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
17939 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
17940 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
17941 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
17942 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
17943 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
17947 main ()
17951 return 0;
17953 _ACEOF
17954 if ac_fn_c_try_compile "$LINENO"; then :
17955 if test "$cross_compiling" = yes; then :
17956 gl_cv_header_working_stdint_h=yes
17958 else
17959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17960 /* end confdefs.h. */
17963 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
17964 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
17965 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
17966 #include <stdint.h>
17969 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17970 included before <wchar.h>. */
17971 #include <stddef.h>
17972 #include <signal.h>
17973 #if HAVE_WCHAR_H
17974 # include <stdio.h>
17975 # include <time.h>
17976 # include <wchar.h>
17977 #endif
17980 #include <stdio.h>
17981 #include <string.h>
17982 #define MVAL(macro) MVAL1(macro)
17983 #define MVAL1(expression) #expression
17984 static const char *macro_values[] =
17986 #ifdef INT8_MAX
17987 MVAL (INT8_MAX),
17988 #endif
17989 #ifdef INT16_MAX
17990 MVAL (INT16_MAX),
17991 #endif
17992 #ifdef INT32_MAX
17993 MVAL (INT32_MAX),
17994 #endif
17995 #ifdef INT64_MAX
17996 MVAL (INT64_MAX),
17997 #endif
17998 #ifdef UINT8_MAX
17999 MVAL (UINT8_MAX),
18000 #endif
18001 #ifdef UINT16_MAX
18002 MVAL (UINT16_MAX),
18003 #endif
18004 #ifdef UINT32_MAX
18005 MVAL (UINT32_MAX),
18006 #endif
18007 #ifdef UINT64_MAX
18008 MVAL (UINT64_MAX),
18009 #endif
18010 NULL
18014 main ()
18017 const char **mv;
18018 for (mv = macro_values; *mv != NULL; mv++)
18020 const char *value = *mv;
18021 /* Test whether it looks like a cast expression. */
18022 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
18023 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
18024 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
18025 || strncmp (value, "((int)"/*)*/, 6) == 0
18026 || strncmp (value, "((signed short)"/*)*/, 15) == 0
18027 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
18028 return mv - macro_values + 1;
18030 return 0;
18033 return 0;
18035 _ACEOF
18036 if ac_fn_c_try_run "$LINENO"; then :
18037 gl_cv_header_working_stdint_h=yes
18039 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18040 conftest.$ac_objext conftest.beam conftest.$ac_ext
18045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
18049 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
18051 if test "$gl_cv_header_working_stdint_h" = yes; then
18052 STDINT_H=
18053 else
18054 for ac_header in sys/inttypes.h sys/bitypes.h
18055 do :
18056 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18057 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18058 eval as_val=\$$as_ac_Header
18059 if test "x$as_val" = x""yes; then :
18060 cat >>confdefs.h <<_ACEOF
18061 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18062 _ACEOF
18066 done
18068 if test $ac_cv_header_sys_inttypes_h = yes; then
18069 HAVE_SYS_INTTYPES_H=1
18070 else
18071 HAVE_SYS_INTTYPES_H=0
18074 if test $ac_cv_header_sys_bitypes_h = yes; then
18075 HAVE_SYS_BITYPES_H=1
18076 else
18077 HAVE_SYS_BITYPES_H=0
18083 if test $APPLE_UNIVERSAL_BUILD = 0; then
18086 for gltype in ptrdiff_t size_t ; do
18087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
18088 $as_echo_n "checking for bit size of $gltype... " >&6; }
18089 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
18090 $as_echo_n "(cached) " >&6
18091 else
18092 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
18093 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18094 included before <wchar.h>. */
18095 #include <stddef.h>
18096 #include <signal.h>
18097 #if HAVE_WCHAR_H
18098 # include <stdio.h>
18099 # include <time.h>
18100 # include <wchar.h>
18101 #endif
18103 #include <limits.h>"; then :
18105 else
18106 result=unknown
18109 eval gl_cv_bitsizeof_${gltype}=\$result
18112 eval ac_res=\$gl_cv_bitsizeof_${gltype}
18113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18114 $as_echo "$ac_res" >&6; }
18115 eval result=\$gl_cv_bitsizeof_${gltype}
18116 if test $result = unknown; then
18117 result=0
18119 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18120 cat >>confdefs.h <<_ACEOF
18121 #define BITSIZEOF_${GLTYPE} $result
18122 _ACEOF
18124 eval BITSIZEOF_${GLTYPE}=\$result
18125 done
18131 for gltype in sig_atomic_t wchar_t wint_t ; do
18132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
18133 $as_echo_n "checking for bit size of $gltype... " >&6; }
18134 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
18135 $as_echo_n "(cached) " >&6
18136 else
18137 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
18138 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18139 included before <wchar.h>. */
18140 #include <stddef.h>
18141 #include <signal.h>
18142 #if HAVE_WCHAR_H
18143 # include <stdio.h>
18144 # include <time.h>
18145 # include <wchar.h>
18146 #endif
18148 #include <limits.h>"; then :
18150 else
18151 result=unknown
18154 eval gl_cv_bitsizeof_${gltype}=\$result
18157 eval ac_res=\$gl_cv_bitsizeof_${gltype}
18158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18159 $as_echo "$ac_res" >&6; }
18160 eval result=\$gl_cv_bitsizeof_${gltype}
18161 if test $result = unknown; then
18162 result=0
18164 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18165 cat >>confdefs.h <<_ACEOF
18166 #define BITSIZEOF_${GLTYPE} $result
18167 _ACEOF
18169 eval BITSIZEOF_${GLTYPE}=\$result
18170 done
18175 for gltype in sig_atomic_t wchar_t wint_t ; do
18176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
18177 $as_echo_n "checking whether $gltype is signed... " >&6; }
18178 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
18179 $as_echo_n "(cached) " >&6
18180 else
18181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18182 /* end confdefs.h. */
18184 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18185 included before <wchar.h>. */
18186 #include <stddef.h>
18187 #include <signal.h>
18188 #if HAVE_WCHAR_H
18189 # include <stdio.h>
18190 # include <time.h>
18191 # include <wchar.h>
18192 #endif
18194 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
18196 main ()
18200 return 0;
18202 _ACEOF
18203 if ac_fn_c_try_compile "$LINENO"; then :
18204 result=yes
18205 else
18206 result=no
18208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18209 eval gl_cv_type_${gltype}_signed=\$result
18212 eval ac_res=\$gl_cv_type_${gltype}_signed
18213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18214 $as_echo "$ac_res" >&6; }
18215 eval result=\$gl_cv_type_${gltype}_signed
18216 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18217 if test "$result" = yes; then
18218 cat >>confdefs.h <<_ACEOF
18219 #define HAVE_SIGNED_${GLTYPE} 1
18220 _ACEOF
18222 eval HAVE_SIGNED_${GLTYPE}=1
18223 else
18224 eval HAVE_SIGNED_${GLTYPE}=0
18226 done
18229 gl_cv_type_ptrdiff_t_signed=yes
18230 gl_cv_type_size_t_signed=no
18231 if test $APPLE_UNIVERSAL_BUILD = 0; then
18234 for gltype in ptrdiff_t size_t ; do
18235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
18236 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
18237 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
18238 $as_echo_n "(cached) " >&6
18239 else
18240 eval gl_cv_type_${gltype}_suffix=no
18241 eval result=\$gl_cv_type_${gltype}_signed
18242 if test "$result" = yes; then
18243 glsufu=
18244 else
18245 glsufu=u
18247 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
18248 case $glsuf in
18249 '') gltype1='int';;
18250 l) gltype1='long int';;
18251 ll) gltype1='long long int';;
18252 i64) gltype1='__int64';;
18253 u) gltype1='unsigned int';;
18254 ul) gltype1='unsigned long int';;
18255 ull) gltype1='unsigned long long int';;
18256 ui64)gltype1='unsigned __int64';;
18257 esac
18258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18259 /* end confdefs.h. */
18261 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18262 included before <wchar.h>. */
18263 #include <stddef.h>
18264 #include <signal.h>
18265 #if HAVE_WCHAR_H
18266 # include <stdio.h>
18267 # include <time.h>
18268 # include <wchar.h>
18269 #endif
18271 extern $gltype foo;
18272 extern $gltype1 foo;
18274 main ()
18278 return 0;
18280 _ACEOF
18281 if ac_fn_c_try_compile "$LINENO"; then :
18282 eval gl_cv_type_${gltype}_suffix=\$glsuf
18284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18285 eval result=\$gl_cv_type_${gltype}_suffix
18286 test "$result" != no && break
18287 done
18289 eval ac_res=\$gl_cv_type_${gltype}_suffix
18290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18291 $as_echo "$ac_res" >&6; }
18292 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18293 eval result=\$gl_cv_type_${gltype}_suffix
18294 test "$result" = no && result=
18295 eval ${GLTYPE}_SUFFIX=\$result
18296 cat >>confdefs.h <<_ACEOF
18297 #define ${GLTYPE}_SUFFIX $result
18298 _ACEOF
18300 done
18306 for gltype in sig_atomic_t wchar_t wint_t ; do
18307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
18308 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
18309 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
18310 $as_echo_n "(cached) " >&6
18311 else
18312 eval gl_cv_type_${gltype}_suffix=no
18313 eval result=\$gl_cv_type_${gltype}_signed
18314 if test "$result" = yes; then
18315 glsufu=
18316 else
18317 glsufu=u
18319 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
18320 case $glsuf in
18321 '') gltype1='int';;
18322 l) gltype1='long int';;
18323 ll) gltype1='long long int';;
18324 i64) gltype1='__int64';;
18325 u) gltype1='unsigned int';;
18326 ul) gltype1='unsigned long int';;
18327 ull) gltype1='unsigned long long int';;
18328 ui64)gltype1='unsigned __int64';;
18329 esac
18330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18331 /* end confdefs.h. */
18333 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18334 included before <wchar.h>. */
18335 #include <stddef.h>
18336 #include <signal.h>
18337 #if HAVE_WCHAR_H
18338 # include <stdio.h>
18339 # include <time.h>
18340 # include <wchar.h>
18341 #endif
18343 extern $gltype foo;
18344 extern $gltype1 foo;
18346 main ()
18350 return 0;
18352 _ACEOF
18353 if ac_fn_c_try_compile "$LINENO"; then :
18354 eval gl_cv_type_${gltype}_suffix=\$glsuf
18356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18357 eval result=\$gl_cv_type_${gltype}_suffix
18358 test "$result" != no && break
18359 done
18361 eval ac_res=\$gl_cv_type_${gltype}_suffix
18362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18363 $as_echo "$ac_res" >&6; }
18364 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18365 eval result=\$gl_cv_type_${gltype}_suffix
18366 test "$result" = no && result=
18367 eval ${GLTYPE}_SUFFIX=\$result
18368 cat >>confdefs.h <<_ACEOF
18369 #define ${GLTYPE}_SUFFIX $result
18370 _ACEOF
18372 done
18376 STDINT_H=stdint.h
18379 if test -n "$STDINT_H"; then
18380 GL_GENERATE_STDINT_H_TRUE=
18381 GL_GENERATE_STDINT_H_FALSE='#'
18382 else
18383 GL_GENERATE_STDINT_H_TRUE='#'
18384 GL_GENERATE_STDINT_H_FALSE=
18391 GNULIB_IMAXABS=0;
18392 GNULIB_IMAXDIV=0;
18393 GNULIB_STRTOIMAX=0;
18394 GNULIB_STRTOUMAX=0;
18395 HAVE_DECL_IMAXABS=1;
18396 HAVE_DECL_IMAXDIV=1;
18397 HAVE_DECL_STRTOIMAX=1;
18398 HAVE_DECL_STRTOUMAX=1;
18399 INT32_MAX_LT_INTMAX_MAX=1;
18400 INT64_MAX_EQ_LONG_MAX='defined _LP64';
18401 PRI_MACROS_BROKEN=0;
18402 PRIPTR_PREFIX=__PRIPTR_PREFIX;
18403 UINT32_MAX_LT_UINTMAX_MAX=1;
18404 UINT64_MAX_EQ_ULONG_MAX='defined _LP64';
18420 if test $gl_cv_have_include_next = yes; then
18421 gl_cv_next_inttypes_h='<'inttypes.h'>'
18422 else
18423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
18424 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
18425 if test "${gl_cv_next_inttypes_h+set}" = set; then :
18426 $as_echo_n "(cached) " >&6
18427 else
18429 if test $ac_cv_header_inttypes_h = yes; then
18432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18433 /* end confdefs.h. */
18434 #include <inttypes.h>
18436 _ACEOF
18437 case "$host_os" in
18438 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18439 *) gl_absname_cpp="$ac_cpp" ;;
18440 esac
18442 case "$host_os" in
18443 mingw*)
18444 gl_dirsep_regex='[/\\]'
18447 gl_dirsep_regex='/'
18449 esac
18451 gl_absolute_header_sed='\#'"${gl_dirsep_regex}"'inttypes.h#{
18452 s#.*"\(.*'"${gl_dirsep_regex}"'inttypes.h\)".*#\1#
18453 s#^/[^/]#//&#
18457 gl_cv_next_inttypes_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18458 sed -n "$gl_absolute_header_sed"`'"'
18459 else
18460 gl_cv_next_inttypes_h='<'inttypes.h'>'
18465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
18466 $as_echo "$gl_cv_next_inttypes_h" >&6; }
18468 NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
18470 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18471 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18472 gl_next_as_first_directive='<'inttypes.h'>'
18473 else
18474 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18475 gl_next_as_first_directive=$gl_cv_next_inttypes_h
18477 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive
18486 $as_echo "#define GL_TRIGGER_STDC_LIMIT_MACROS 1" >>confdefs.h
18493 GNULIB_FCHMODAT=0;
18494 GNULIB_FSTATAT=0;
18495 GNULIB_FUTIMENS=0;
18496 GNULIB_LCHMOD=0;
18497 GNULIB_LSTAT=0;
18498 GNULIB_MKDIRAT=0;
18499 GNULIB_MKFIFO=0;
18500 GNULIB_MKFIFOAT=0;
18501 GNULIB_MKNOD=0;
18502 GNULIB_MKNODAT=0;
18503 GNULIB_STAT=0;
18504 GNULIB_UTIMENSAT=0;
18505 HAVE_FCHMODAT=1;
18506 HAVE_FSTATAT=1;
18507 HAVE_FUTIMENS=1;
18508 HAVE_LCHMOD=1;
18509 HAVE_LSTAT=1;
18510 HAVE_MKDIRAT=1;
18511 HAVE_MKFIFO=1;
18512 HAVE_MKFIFOAT=1;
18513 HAVE_MKNOD=1;
18514 HAVE_MKNODAT=1;
18515 HAVE_UTIMENSAT=1;
18516 REPLACE_FSTAT=0;
18517 REPLACE_FSTATAT=0;
18518 REPLACE_FUTIMENS=0;
18519 REPLACE_LSTAT=0;
18520 REPLACE_MKDIR=0;
18521 REPLACE_MKFIFO=0;
18522 REPLACE_MKNOD=0;
18523 REPLACE_STAT=0;
18524 REPLACE_UTIMENSAT=0;
18529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
18530 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
18531 if test "${gl_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
18532 $as_echo_n "(cached) " >&6
18533 else
18534 rm -f conftest.sym conftest.file
18535 echo >conftest.file
18536 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
18537 if test "$cross_compiling" = yes; then :
18538 # When cross-compiling, be pessimistic so we will end up using the
18539 # replacement version of lstat that checks for trailing slashes and
18540 # calls lstat a second time when necessary.
18541 gl_cv_func_lstat_dereferences_slashed_symlink=no
18543 else
18544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18545 /* end confdefs.h. */
18546 $ac_includes_default
18548 main ()
18550 struct stat sbuf;
18551 /* Linux will dereference the symlink and fail, as required by
18552 POSIX. That is better in the sense that it means we will not
18553 have to compile and use the lstat wrapper. */
18554 return lstat ("conftest.sym/", &sbuf) == 0;
18557 return 0;
18559 _ACEOF
18560 if ac_fn_c_try_run "$LINENO"; then :
18561 gl_cv_func_lstat_dereferences_slashed_symlink=yes
18562 else
18563 gl_cv_func_lstat_dereferences_slashed_symlink=no
18565 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18566 conftest.$ac_objext conftest.beam conftest.$ac_ext
18569 else
18570 # If the 'ln -s' command failed, then we probably don't even
18571 # have an lstat function.
18572 gl_cv_func_lstat_dereferences_slashed_symlink=no
18574 rm -f conftest.sym conftest.file
18577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
18578 $as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
18579 test $gl_cv_func_lstat_dereferences_slashed_symlink = yes &&
18581 cat >>confdefs.h <<_ACEOF
18582 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
18583 _ACEOF
18587 GNULIB_MKTIME=0;
18588 GNULIB_NANOSLEEP=0;
18589 GNULIB_STRPTIME=0;
18590 GNULIB_TIMEGM=0;
18591 GNULIB_TIME_R=0;
18592 HAVE_DECL_LOCALTIME_R=1;
18593 HAVE_NANOSLEEP=1;
18594 HAVE_STRPTIME=1;
18595 HAVE_TIMEGM=1;
18596 REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
18597 REPLACE_MKTIME=GNULIB_PORTCHECK;
18598 REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
18599 REPLACE_TIMEGM=GNULIB_PORTCHECK;
18606 GNULIB_PTHREAD_SIGMASK=0;
18607 GNULIB_SIGNAL_H_SIGPIPE=0;
18608 GNULIB_SIGPROCMASK=0;
18609 GNULIB_SIGACTION=0;
18610 HAVE_POSIX_SIGNALBLOCKING=1;
18611 HAVE_PTHREAD_SIGMASK=1;
18612 HAVE_SIGSET_T=1;
18613 HAVE_SIGINFO_T=1;
18614 HAVE_SIGACTION=1;
18615 HAVE_STRUCT_SIGACTION_SA_SIGACTION=1;
18617 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=1;
18619 HAVE_SIGHANDLER_T=1;
18620 REPLACE_PTHREAD_SIGMASK=0;
18625 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
18626 #include <signal.h>
18627 /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */
18628 #include <sys/types.h>
18631 if test "x$ac_cv_type_sigset_t" = x""yes; then :
18633 cat >>confdefs.h <<_ACEOF
18634 #define HAVE_SIGSET_T 1
18635 _ACEOF
18637 gl_cv_type_sigset_t=yes
18638 else
18639 gl_cv_type_sigset_t=no
18642 if test $gl_cv_type_sigset_t != yes; then
18643 HAVE_SIGSET_T=0
18650 if test $ac_cv_header_sys_socket_h = no; then
18651 for ac_header in ws2tcpip.h
18652 do :
18653 ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
18654 if test "x$ac_cv_header_ws2tcpip_h" = x""yes; then :
18655 cat >>confdefs.h <<_ACEOF
18656 #define HAVE_WS2TCPIP_H 1
18657 _ACEOF
18661 done
18665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
18666 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
18667 if test "${ac_cv_header_stdbool_h+set}" = set; then :
18668 $as_echo_n "(cached) " >&6
18669 else
18670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18671 /* end confdefs.h. */
18673 #include <stdbool.h>
18674 #ifndef bool
18675 "error: bool is not defined"
18676 #endif
18677 #ifndef false
18678 "error: false is not defined"
18679 #endif
18680 #if false
18681 "error: false is not 0"
18682 #endif
18683 #ifndef true
18684 "error: true is not defined"
18685 #endif
18686 #if true != 1
18687 "error: true is not 1"
18688 #endif
18689 #ifndef __bool_true_false_are_defined
18690 "error: __bool_true_false_are_defined is not defined"
18691 #endif
18693 struct s { _Bool s: 1; _Bool t; } s;
18695 char a[true == 1 ? 1 : -1];
18696 char b[false == 0 ? 1 : -1];
18697 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
18698 char d[(bool) 0.5 == true ? 1 : -1];
18699 /* See body of main program for 'e'. */
18700 char f[(_Bool) 0.0 == false ? 1 : -1];
18701 char g[true];
18702 char h[sizeof (_Bool)];
18703 char i[sizeof s.t];
18704 enum { j = false, k = true, l = false * true, m = true * 256 };
18705 /* The following fails for
18706 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
18707 _Bool n[m];
18708 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
18709 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
18710 /* Catch a bug in an HP-UX C compiler. See
18711 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
18712 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
18714 _Bool q = true;
18715 _Bool *pq = &q;
18718 main ()
18721 bool e = &s;
18722 *pq |= q;
18723 *pq |= ! q;
18724 /* Refer to every declared value, to avoid compiler optimizations. */
18725 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
18726 + !m + !n + !o + !p + !q + !pq);
18729 return 0;
18731 _ACEOF
18732 if ac_fn_c_try_compile "$LINENO"; then :
18733 ac_cv_header_stdbool_h=yes
18734 else
18735 ac_cv_header_stdbool_h=no
18737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
18740 $as_echo "$ac_cv_header_stdbool_h" >&6; }
18741 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
18742 if test "x$ac_cv_type__Bool" = x""yes; then :
18744 cat >>confdefs.h <<_ACEOF
18745 #define HAVE__BOOL 1
18746 _ACEOF
18753 REPLACE_NULL=0;
18754 HAVE_WCHAR_T=1;
18757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
18758 $as_echo_n "checking for wchar_t... " >&6; }
18759 if test "${gt_cv_c_wchar_t+set}" = set; then :
18760 $as_echo_n "(cached) " >&6
18761 else
18762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18763 /* end confdefs.h. */
18764 #include <stddef.h>
18765 wchar_t foo = (wchar_t)'\0';
18767 main ()
18771 return 0;
18773 _ACEOF
18774 if ac_fn_c_try_compile "$LINENO"; then :
18775 gt_cv_c_wchar_t=yes
18776 else
18777 gt_cv_c_wchar_t=no
18779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
18782 $as_echo "$gt_cv_c_wchar_t" >&6; }
18783 if test $gt_cv_c_wchar_t = yes; then
18785 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
18790 GNULIB_DPRINTF=0;
18791 GNULIB_FCLOSE=0;
18792 GNULIB_FFLUSH=0;
18793 GNULIB_FGETC=0;
18794 GNULIB_FGETS=0;
18795 GNULIB_FOPEN=0;
18796 GNULIB_FPRINTF=0;
18797 GNULIB_FPRINTF_POSIX=0;
18798 GNULIB_FPURGE=0;
18799 GNULIB_FPUTC=0;
18800 GNULIB_FPUTS=0;
18801 GNULIB_FREAD=0;
18802 GNULIB_FREOPEN=0;
18803 GNULIB_FSCANF=0;
18804 GNULIB_FSEEK=0;
18805 GNULIB_FSEEKO=0;
18806 GNULIB_FTELL=0;
18807 GNULIB_FTELLO=0;
18808 GNULIB_FWRITE=0;
18809 GNULIB_GETC=0;
18810 GNULIB_GETCHAR=0;
18811 GNULIB_GETDELIM=0;
18812 GNULIB_GETLINE=0;
18813 GNULIB_GETS=0;
18814 GNULIB_OBSTACK_PRINTF=0;
18815 GNULIB_OBSTACK_PRINTF_POSIX=0;
18816 GNULIB_PERROR=0;
18817 GNULIB_POPEN=0;
18818 GNULIB_PRINTF=0;
18819 GNULIB_PRINTF_POSIX=0;
18820 GNULIB_PUTC=0;
18821 GNULIB_PUTCHAR=0;
18822 GNULIB_PUTS=0;
18823 GNULIB_REMOVE=0;
18824 GNULIB_RENAME=0;
18825 GNULIB_RENAMEAT=0;
18826 GNULIB_SCANF=0;
18827 GNULIB_SNPRINTF=0;
18828 GNULIB_SPRINTF_POSIX=0;
18829 GNULIB_STDIO_H_NONBLOCKING=0;
18830 GNULIB_STDIO_H_SIGPIPE=0;
18831 GNULIB_TMPFILE=0;
18832 GNULIB_VASPRINTF=0;
18833 GNULIB_VFSCANF=0;
18834 GNULIB_VSCANF=0;
18835 GNULIB_VDPRINTF=0;
18836 GNULIB_VFPRINTF=0;
18837 GNULIB_VFPRINTF_POSIX=0;
18838 GNULIB_VPRINTF=0;
18839 GNULIB_VPRINTF_POSIX=0;
18840 GNULIB_VSNPRINTF=0;
18841 GNULIB_VSPRINTF_POSIX=0;
18842 HAVE_DECL_FPURGE=1;
18843 HAVE_DECL_FSEEKO=1;
18844 HAVE_DECL_FTELLO=1;
18845 HAVE_DECL_GETDELIM=1;
18846 HAVE_DECL_GETLINE=1;
18847 HAVE_DECL_OBSTACK_PRINTF=1;
18848 HAVE_DECL_SNPRINTF=1;
18849 HAVE_DECL_VSNPRINTF=1;
18850 HAVE_DPRINTF=1;
18851 HAVE_FSEEKO=1;
18852 HAVE_FTELLO=1;
18853 HAVE_RENAMEAT=1;
18854 HAVE_VASPRINTF=1;
18855 HAVE_VDPRINTF=1;
18856 REPLACE_DPRINTF=0;
18857 REPLACE_FCLOSE=0;
18858 REPLACE_FFLUSH=0;
18859 REPLACE_FOPEN=0;
18860 REPLACE_FPRINTF=0;
18861 REPLACE_FPURGE=0;
18862 REPLACE_FREOPEN=0;
18863 REPLACE_FSEEK=0;
18864 REPLACE_FSEEKO=0;
18865 REPLACE_FTELL=0;
18866 REPLACE_FTELLO=0;
18867 REPLACE_GETDELIM=0;
18868 REPLACE_GETLINE=0;
18869 REPLACE_OBSTACK_PRINTF=0;
18870 REPLACE_PERROR=0;
18871 REPLACE_POPEN=0;
18872 REPLACE_PRINTF=0;
18873 REPLACE_REMOVE=0;
18874 REPLACE_RENAME=0;
18875 REPLACE_RENAMEAT=0;
18876 REPLACE_SNPRINTF=0;
18877 REPLACE_SPRINTF=0;
18878 REPLACE_STDIO_READ_FUNCS=0;
18879 REPLACE_STDIO_WRITE_FUNCS=0;
18880 REPLACE_TMPFILE=0;
18881 REPLACE_VASPRINTF=0;
18882 REPLACE_VDPRINTF=0;
18883 REPLACE_VFPRINTF=0;
18884 REPLACE_VPRINTF=0;
18885 REPLACE_VSNPRINTF=0;
18886 REPLACE_VSPRINTF=0;
18889 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
18891 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then :
18893 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
18902 ac_fn_c_check_decl "$LINENO" "strtoimax" "ac_cv_have_decl_strtoimax" "$ac_includes_default"
18903 if test "x$ac_cv_have_decl_strtoimax" = x""yes; then :
18904 ac_have_decl=1
18905 else
18906 ac_have_decl=0
18909 cat >>confdefs.h <<_ACEOF
18910 #define HAVE_DECL_STRTOIMAX $ac_have_decl
18911 _ACEOF
18915 ac_fn_c_check_decl "$LINENO" "strtoumax" "ac_cv_have_decl_strtoumax" "$ac_includes_default"
18916 if test "x$ac_cv_have_decl_strtoumax" = x""yes; then :
18917 ac_have_decl=1
18918 else
18919 ac_have_decl=0
18922 cat >>confdefs.h <<_ACEOF
18923 #define HAVE_DECL_STRTOUMAX $ac_have_decl
18924 _ACEOF
18928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
18929 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
18930 if test "${ac_cv_header_stat_broken+set}" = set; then :
18931 $as_echo_n "(cached) " >&6
18932 else
18933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18934 /* end confdefs.h. */
18935 #include <sys/types.h>
18936 #include <sys/stat.h>
18938 #if defined S_ISBLK && defined S_IFDIR
18939 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
18940 #endif
18942 #if defined S_ISBLK && defined S_IFCHR
18943 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
18944 #endif
18946 #if defined S_ISLNK && defined S_IFREG
18947 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
18948 #endif
18950 #if defined S_ISSOCK && defined S_IFREG
18951 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
18952 #endif
18954 _ACEOF
18955 if ac_fn_c_try_compile "$LINENO"; then :
18956 ac_cv_header_stat_broken=no
18957 else
18958 ac_cv_header_stat_broken=yes
18960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
18963 $as_echo "$ac_cv_header_stat_broken" >&6; }
18964 if test $ac_cv_header_stat_broken = yes; then
18966 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
18972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
18973 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
18974 if test "${ac_cv_c_restrict+set}" = set; then :
18975 $as_echo_n "(cached) " >&6
18976 else
18977 ac_cv_c_restrict=no
18978 # The order here caters to the fact that C++ does not require restrict.
18979 for ac_kw in __restrict __restrict__ _Restrict restrict; do
18980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18981 /* end confdefs.h. */
18982 typedef int * int_ptr;
18983 int foo (int_ptr $ac_kw ip) {
18984 return ip[0];
18987 main ()
18989 int s[1];
18990 int * $ac_kw t = s;
18991 t[0] = 0;
18992 return foo(t)
18994 return 0;
18996 _ACEOF
18997 if ac_fn_c_try_compile "$LINENO"; then :
18998 ac_cv_c_restrict=$ac_kw
19000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19001 test "$ac_cv_c_restrict" != no && break
19002 done
19005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
19006 $as_echo "$ac_cv_c_restrict" >&6; }
19008 case $ac_cv_c_restrict in
19009 restrict) ;;
19010 no) $as_echo "#define restrict /**/" >>confdefs.h
19012 *) cat >>confdefs.h <<_ACEOF
19013 #define restrict $ac_cv_c_restrict
19014 _ACEOF
19016 esac
19022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
19023 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
19024 if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then :
19025 $as_echo_n "(cached) " >&6
19026 else
19027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19028 /* end confdefs.h. */
19029 #include <time.h>
19032 main ()
19034 static struct timespec x; x.tv_sec = x.tv_nsec;
19036 return 0;
19038 _ACEOF
19039 if ac_fn_c_try_compile "$LINENO"; then :
19040 gl_cv_sys_struct_timespec_in_time_h=yes
19041 else
19042 gl_cv_sys_struct_timespec_in_time_h=no
19044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
19047 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
19049 TIME_H_DEFINES_STRUCT_TIMESPEC=0
19050 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
19051 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
19052 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
19053 TIME_H_DEFINES_STRUCT_TIMESPEC=1
19054 else
19055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
19056 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
19057 if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then :
19058 $as_echo_n "(cached) " >&6
19059 else
19060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19061 /* end confdefs.h. */
19062 #include <sys/time.h>
19065 main ()
19067 static struct timespec x; x.tv_sec = x.tv_nsec;
19069 return 0;
19071 _ACEOF
19072 if ac_fn_c_try_compile "$LINENO"; then :
19073 gl_cv_sys_struct_timespec_in_sys_time_h=yes
19074 else
19075 gl_cv_sys_struct_timespec_in_sys_time_h=no
19077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
19080 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
19081 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
19082 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
19083 else
19084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
19085 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
19086 if test "${gl_cv_sys_struct_timespec_in_pthread_h+set}" = set; then :
19087 $as_echo_n "(cached) " >&6
19088 else
19089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19090 /* end confdefs.h. */
19091 #include <pthread.h>
19094 main ()
19096 static struct timespec x; x.tv_sec = x.tv_nsec;
19098 return 0;
19100 _ACEOF
19101 if ac_fn_c_try_compile "$LINENO"; then :
19102 gl_cv_sys_struct_timespec_in_pthread_h=yes
19103 else
19104 gl_cv_sys_struct_timespec_in_pthread_h=no
19106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
19109 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
19110 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
19111 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
19130 if test $gl_cv_have_include_next = yes; then
19131 gl_cv_next_time_h='<'time.h'>'
19132 else
19133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
19134 $as_echo_n "checking absolute name of <time.h>... " >&6; }
19135 if test "${gl_cv_next_time_h+set}" = set; then :
19136 $as_echo_n "(cached) " >&6
19137 else
19139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19140 /* end confdefs.h. */
19141 #include <time.h>
19143 _ACEOF
19144 case "$host_os" in
19145 aix*) gl_absname_cpp="$ac_cpp -C" ;;
19146 *) gl_absname_cpp="$ac_cpp" ;;
19147 esac
19149 case "$host_os" in
19150 mingw*)
19151 gl_dirsep_regex='[/\\]'
19154 gl_dirsep_regex='/'
19156 esac
19158 gl_absolute_header_sed='\#'"${gl_dirsep_regex}"'time.h#{
19159 s#.*"\(.*'"${gl_dirsep_regex}"'time.h\)".*#\1#
19160 s#^/[^/]#//&#
19164 gl_cv_next_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19165 sed -n "$gl_absolute_header_sed"`'"'
19169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
19170 $as_echo "$gl_cv_next_time_h" >&6; }
19172 NEXT_TIME_H=$gl_cv_next_time_h
19174 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
19175 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19176 gl_next_as_first_directive='<'time.h'>'
19177 else
19178 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19179 gl_next_as_first_directive=$gl_cv_next_time_h
19181 NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
19190 ac_fn_c_check_decl "$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "$ac_includes_default"
19191 if test "x$ac_cv_have_decl_localtime_r" = x""yes; then :
19192 ac_have_decl=1
19193 else
19194 ac_have_decl=0
19197 cat >>confdefs.h <<_ACEOF
19198 #define HAVE_DECL_LOCALTIME_R $ac_have_decl
19199 _ACEOF
19204 if false; then
19205 GL_COND_LIBTOOL_TRUE=
19206 GL_COND_LIBTOOL_FALSE='#'
19207 else
19208 GL_COND_LIBTOOL_TRUE='#'
19209 GL_COND_LIBTOOL_FALSE=
19212 gl_cond_libtool=false
19213 gl_libdeps=
19214 gl_ltlibdeps=
19215 gl_m4_base='m4'
19225 gl_source_base='lib'
19228 if test $ac_cv_func_alloca_works = no; then
19232 # Define an additional variable used in the Makefile substitution.
19233 if test $ac_cv_working_alloca_h = yes; then
19234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
19235 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
19236 if test "${gl_cv_rpl_alloca+set}" = set; then :
19237 $as_echo_n "(cached) " >&6
19238 else
19240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19241 /* end confdefs.h. */
19243 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
19244 Need own alloca
19245 #endif
19247 _ACEOF
19248 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19249 $EGREP "Need own alloca" >/dev/null 2>&1; then :
19250 gl_cv_rpl_alloca=yes
19251 else
19252 gl_cv_rpl_alloca=no
19254 rm -f conftest*
19258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
19259 $as_echo "$gl_cv_rpl_alloca" >&6; }
19260 if test $gl_cv_rpl_alloca = yes; then
19262 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
19264 ALLOCA_H=alloca.h
19265 else
19266 ALLOCA_H=
19268 else
19269 ALLOCA_H=alloca.h
19272 if test -n "$ALLOCA_H"; then
19273 GL_GENERATE_ALLOCA_H_TRUE=
19274 GL_GENERATE_ALLOCA_H_FALSE='#'
19275 else
19276 GL_GENERATE_ALLOCA_H_TRUE='#'
19277 GL_GENERATE_ALLOCA_H_FALSE=
19306 $as_echo "#define HAVE_DUP2 1" >>confdefs.h
19309 if test $HAVE_DUP2 = 1; then
19310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5
19311 $as_echo_n "checking whether dup2 works... " >&6; }
19312 if test "${gl_cv_func_dup2_works+set}" = set; then :
19313 $as_echo_n "(cached) " >&6
19314 else
19315 if test "$cross_compiling" = yes; then :
19316 case "$host_os" in
19317 mingw*) # on this platform, dup2 always returns 0 for success
19318 gl_cv_func_dup2_works=no;;
19319 cygwin*) # on cygwin 1.5.x, dup2(1,1) returns 0
19320 gl_cv_func_dup2_works=no;;
19321 linux*) # On linux between 2008-07-27 and 2009-05-11, dup2 of a
19322 # closed fd may yield -EBADF instead of -1 / errno=EBADF.
19323 gl_cv_func_dup2_works=no;;
19324 freebsd*) # on FreeBSD 6.1, dup2(1,1000000) gives EMFILE, not EBADF.
19325 gl_cv_func_dup2_works=no;;
19326 haiku*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC.
19327 gl_cv_func_dup2_works=no;;
19328 *) gl_cv_func_dup2_works=yes;;
19329 esac
19330 else
19331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19332 /* end confdefs.h. */
19334 #include <unistd.h>
19335 #include <fcntl.h>
19336 #include <errno.h>
19338 main ()
19340 int result = 0;
19341 #ifdef FD_CLOEXEC
19342 if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1)
19343 result |= 1;
19344 #endif
19345 if (dup2 (1, 1) == 0)
19346 result |= 2;
19347 #ifdef FD_CLOEXEC
19348 if (fcntl (1, F_GETFD) != FD_CLOEXEC)
19349 result |= 4;
19350 #endif
19351 close (0);
19352 if (dup2 (0, 0) != -1)
19353 result |= 8;
19354 /* Many gnulib modules require POSIX conformance of EBADF. */
19355 if (dup2 (2, 1000000) == -1 && errno != EBADF)
19356 result |= 16;
19357 return result;
19360 return 0;
19363 _ACEOF
19364 if ac_fn_c_try_run "$LINENO"; then :
19365 gl_cv_func_dup2_works=yes
19366 else
19367 gl_cv_func_dup2_works=no
19369 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19370 conftest.$ac_objext conftest.beam conftest.$ac_ext
19375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5
19376 $as_echo "$gl_cv_func_dup2_works" >&6; }
19377 if test "$gl_cv_func_dup2_works" = no; then
19378 REPLACE_DUP2=1
19383 if test $HAVE_DUP2 = 0 || test $REPLACE_DUP2 = 1; then
19392 gl_LIBOBJS="$gl_LIBOBJS dup2.$ac_objext"
19400 GNULIB_DUP2=1
19412 # Persuade glibc <stdlib.h> to declare getloadavg().
19415 gl_save_LIBS=$LIBS
19417 # getloadvg is present in libc on glibc >= 2.2, MacOS X, FreeBSD >= 2.0,
19418 # NetBSD >= 0.9, OpenBSD >= 2.0, Solaris >= 7.
19419 HAVE_GETLOADAVG=1
19420 ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
19421 if test "x$ac_cv_func_getloadavg" = x""yes; then :
19423 else
19424 gl_func_getloadavg_done=no
19426 # Some systems with -lutil have (and need) -lkvm as well, some do not.
19427 # On Solaris, -lkvm requires nlist from -lelf, so check that first
19428 # to get the right answer into the cache.
19429 # For kstat on solaris, we need to test for libelf and libkvm to force the
19430 # definition of SVR4 below.
19431 if test $gl_func_getloadavg_done = no; then
19432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
19433 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
19434 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then :
19435 $as_echo_n "(cached) " >&6
19436 else
19437 ac_check_lib_save_LIBS=$LIBS
19438 LIBS="-lelf $LIBS"
19439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19440 /* end confdefs.h. */
19442 /* Override any GCC internal prototype to avoid an error.
19443 Use char because int might match the return type of a GCC
19444 builtin and then its argument prototype would still apply. */
19445 #ifdef __cplusplus
19446 extern "C"
19447 #endif
19448 char elf_begin ();
19450 main ()
19452 return elf_begin ();
19454 return 0;
19456 _ACEOF
19457 if ac_fn_c_try_link "$LINENO"; then :
19458 ac_cv_lib_elf_elf_begin=yes
19459 else
19460 ac_cv_lib_elf_elf_begin=no
19462 rm -f core conftest.err conftest.$ac_objext \
19463 conftest$ac_exeext conftest.$ac_ext
19464 LIBS=$ac_check_lib_save_LIBS
19466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
19467 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
19468 if test "x$ac_cv_lib_elf_elf_begin" = x""yes; then :
19469 LIBS="-lelf $LIBS"
19472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
19473 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
19474 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
19475 $as_echo_n "(cached) " >&6
19476 else
19477 ac_check_lib_save_LIBS=$LIBS
19478 LIBS="-lkvm $LIBS"
19479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19480 /* end confdefs.h. */
19482 /* Override any GCC internal prototype to avoid an error.
19483 Use char because int might match the return type of a GCC
19484 builtin and then its argument prototype would still apply. */
19485 #ifdef __cplusplus
19486 extern "C"
19487 #endif
19488 char kvm_open ();
19490 main ()
19492 return kvm_open ();
19494 return 0;
19496 _ACEOF
19497 if ac_fn_c_try_link "$LINENO"; then :
19498 ac_cv_lib_kvm_kvm_open=yes
19499 else
19500 ac_cv_lib_kvm_kvm_open=no
19502 rm -f core conftest.err conftest.$ac_objext \
19503 conftest$ac_exeext conftest.$ac_ext
19504 LIBS=$ac_check_lib_save_LIBS
19506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
19507 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
19508 if test "x$ac_cv_lib_kvm_kvm_open" = x""yes; then :
19509 LIBS="-lkvm $LIBS"
19512 # Check for the 4.4BSD definition of getloadavg.
19513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
19514 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
19515 if test "${ac_cv_lib_util_getloadavg+set}" = set; then :
19516 $as_echo_n "(cached) " >&6
19517 else
19518 ac_check_lib_save_LIBS=$LIBS
19519 LIBS="-lutil $LIBS"
19520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19521 /* end confdefs.h. */
19523 /* Override any GCC internal prototype to avoid an error.
19524 Use char because int might match the return type of a GCC
19525 builtin and then its argument prototype would still apply. */
19526 #ifdef __cplusplus
19527 extern "C"
19528 #endif
19529 char getloadavg ();
19531 main ()
19533 return getloadavg ();
19535 return 0;
19537 _ACEOF
19538 if ac_fn_c_try_link "$LINENO"; then :
19539 ac_cv_lib_util_getloadavg=yes
19540 else
19541 ac_cv_lib_util_getloadavg=no
19543 rm -f core conftest.err conftest.$ac_objext \
19544 conftest$ac_exeext conftest.$ac_ext
19545 LIBS=$ac_check_lib_save_LIBS
19547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
19548 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
19549 if test "x$ac_cv_lib_util_getloadavg" = x""yes; then :
19550 LIBS="-lutil $LIBS" gl_func_getloadavg_done=yes
19555 if test $gl_func_getloadavg_done = no; then
19556 # There is a commonly available library for RS/6000 AIX.
19557 # Since it is not a standard part of AIX, it might be installed locally.
19558 gl_getloadavg_LIBS=$LIBS
19559 LIBS="-L/usr/local/lib $LIBS"
19560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
19561 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
19562 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then :
19563 $as_echo_n "(cached) " >&6
19564 else
19565 ac_check_lib_save_LIBS=$LIBS
19566 LIBS="-lgetloadavg $LIBS"
19567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19568 /* end confdefs.h. */
19570 /* Override any GCC internal prototype to avoid an error.
19571 Use char because int might match the return type of a GCC
19572 builtin and then its argument prototype would still apply. */
19573 #ifdef __cplusplus
19574 extern "C"
19575 #endif
19576 char getloadavg ();
19578 main ()
19580 return getloadavg ();
19582 return 0;
19584 _ACEOF
19585 if ac_fn_c_try_link "$LINENO"; then :
19586 ac_cv_lib_getloadavg_getloadavg=yes
19587 else
19588 ac_cv_lib_getloadavg_getloadavg=no
19590 rm -f core conftest.err conftest.$ac_objext \
19591 conftest$ac_exeext conftest.$ac_ext
19592 LIBS=$ac_check_lib_save_LIBS
19594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
19595 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
19596 if test "x$ac_cv_lib_getloadavg_getloadavg" = x""yes; then :
19597 LIBS="-lgetloadavg $LIBS" gl_func_getloadavg_done=yes
19598 else
19599 LIBS=$gl_getloadavg_LIBS
19604 # Set up the replacement function if necessary.
19605 if test $gl_func_getloadavg_done = no; then
19606 HAVE_GETLOADAVG=0
19608 # Solaris has libkstat which does not require root.
19609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
19610 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
19611 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
19612 $as_echo_n "(cached) " >&6
19613 else
19614 ac_check_lib_save_LIBS=$LIBS
19615 LIBS="-lkstat $LIBS"
19616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19617 /* end confdefs.h. */
19619 /* Override any GCC internal prototype to avoid an error.
19620 Use char because int might match the return type of a GCC
19621 builtin and then its argument prototype would still apply. */
19622 #ifdef __cplusplus
19623 extern "C"
19624 #endif
19625 char kstat_open ();
19627 main ()
19629 return kstat_open ();
19631 return 0;
19633 _ACEOF
19634 if ac_fn_c_try_link "$LINENO"; then :
19635 ac_cv_lib_kstat_kstat_open=yes
19636 else
19637 ac_cv_lib_kstat_kstat_open=no
19639 rm -f core conftest.err conftest.$ac_objext \
19640 conftest$ac_exeext conftest.$ac_ext
19641 LIBS=$ac_check_lib_save_LIBS
19643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
19644 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
19645 if test "x$ac_cv_lib_kstat_kstat_open" = x""yes; then :
19646 cat >>confdefs.h <<_ACEOF
19647 #define HAVE_LIBKSTAT 1
19648 _ACEOF
19650 LIBS="-lkstat $LIBS"
19654 test $ac_cv_lib_kstat_kstat_open = yes && gl_func_getloadavg_done=yes
19656 # AIX has libperfstat which does not require root
19657 if test $gl_func_getloadavg_done = no; then
19658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perfstat_cpu_total in -lperfstat" >&5
19659 $as_echo_n "checking for perfstat_cpu_total in -lperfstat... " >&6; }
19660 if test "${ac_cv_lib_perfstat_perfstat_cpu_total+set}" = set; then :
19661 $as_echo_n "(cached) " >&6
19662 else
19663 ac_check_lib_save_LIBS=$LIBS
19664 LIBS="-lperfstat $LIBS"
19665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19666 /* end confdefs.h. */
19668 /* Override any GCC internal prototype to avoid an error.
19669 Use char because int might match the return type of a GCC
19670 builtin and then its argument prototype would still apply. */
19671 #ifdef __cplusplus
19672 extern "C"
19673 #endif
19674 char perfstat_cpu_total ();
19676 main ()
19678 return perfstat_cpu_total ();
19680 return 0;
19682 _ACEOF
19683 if ac_fn_c_try_link "$LINENO"; then :
19684 ac_cv_lib_perfstat_perfstat_cpu_total=yes
19685 else
19686 ac_cv_lib_perfstat_perfstat_cpu_total=no
19688 rm -f core conftest.err conftest.$ac_objext \
19689 conftest$ac_exeext conftest.$ac_ext
19690 LIBS=$ac_check_lib_save_LIBS
19692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_perfstat_perfstat_cpu_total" >&5
19693 $as_echo "$ac_cv_lib_perfstat_perfstat_cpu_total" >&6; }
19694 if test "x$ac_cv_lib_perfstat_perfstat_cpu_total" = x""yes; then :
19695 cat >>confdefs.h <<_ACEOF
19696 #define HAVE_LIBPERFSTAT 1
19697 _ACEOF
19699 LIBS="-lperfstat $LIBS"
19703 test $ac_cv_lib_perfstat_perfstat_cpu_total = yes && gl_func_getloadavg_done=yes
19706 if test $gl_func_getloadavg_done = no; then
19707 ac_fn_c_check_header_mongrel "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
19708 if test "x$ac_cv_header_sys_dg_sys_info_h" = x""yes; then :
19709 gl_func_getloadavg_done=yes
19711 $as_echo "#define DGUX 1" >>confdefs.h
19713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
19714 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
19715 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then :
19716 $as_echo_n "(cached) " >&6
19717 else
19718 ac_check_lib_save_LIBS=$LIBS
19719 LIBS="-ldgc $LIBS"
19720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19721 /* end confdefs.h. */
19723 /* Override any GCC internal prototype to avoid an error.
19724 Use char because int might match the return type of a GCC
19725 builtin and then its argument prototype would still apply. */
19726 #ifdef __cplusplus
19727 extern "C"
19728 #endif
19729 char dg_sys_info ();
19731 main ()
19733 return dg_sys_info ();
19735 return 0;
19737 _ACEOF
19738 if ac_fn_c_try_link "$LINENO"; then :
19739 ac_cv_lib_dgc_dg_sys_info=yes
19740 else
19741 ac_cv_lib_dgc_dg_sys_info=no
19743 rm -f core conftest.err conftest.$ac_objext \
19744 conftest$ac_exeext conftest.$ac_ext
19745 LIBS=$ac_check_lib_save_LIBS
19747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
19748 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
19749 if test "x$ac_cv_lib_dgc_dg_sys_info" = x""yes; then :
19750 cat >>confdefs.h <<_ACEOF
19751 #define HAVE_LIBDGC 1
19752 _ACEOF
19754 LIBS="-ldgc $LIBS"
19766 if test "x$gl_save_LIBS" = x; then
19767 GETLOADAVG_LIBS=$LIBS
19768 else
19769 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$gl_save_LIBS!!"`
19771 LIBS=$gl_save_LIBS
19774 # Test whether the system declares getloadavg. Solaris has the function
19775 # but declares it in <sys/loadavg.h>, not <stdlib.h>.
19776 for ac_header in sys/loadavg.h
19777 do :
19778 ac_fn_c_check_header_mongrel "$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default"
19779 if test "x$ac_cv_header_sys_loadavg_h" = x""yes; then :
19780 cat >>confdefs.h <<_ACEOF
19781 #define HAVE_SYS_LOADAVG_H 1
19782 _ACEOF
19786 done
19788 if test $ac_cv_header_sys_loadavg_h = yes; then
19789 HAVE_SYS_LOADAVG_H=1
19790 else
19791 HAVE_SYS_LOADAVG_H=0
19793 ac_fn_c_check_decl "$LINENO" "getloadavg" "ac_cv_have_decl_getloadavg" "#if HAVE_SYS_LOADAVG_H
19794 # include <sys/loadavg.h>
19795 #endif
19796 #include <stdlib.h>
19798 if test "x$ac_cv_have_decl_getloadavg" = x""yes; then :
19800 else
19801 HAVE_DECL_GETLOADAVG=0
19805 if test $HAVE_GETLOADAVG = 0; then
19814 gl_LIBOBJS="$gl_LIBOBJS getloadavg.$ac_objext"
19817 # Figure out what our getloadavg.c needs.
19819 # On HPUX9, an unprivileged user can get load averages this way.
19820 if test $gl_func_getloadavg_done = no; then
19821 for ac_func in pstat_getdynamic
19822 do :
19823 ac_fn_c_check_func "$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
19824 if test "x$ac_cv_func_pstat_getdynamic" = x""yes; then :
19825 cat >>confdefs.h <<_ACEOF
19826 #define HAVE_PSTAT_GETDYNAMIC 1
19827 _ACEOF
19828 gl_func_getloadavg_done=yes
19830 done
19834 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
19835 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
19836 # Irix 4.0.5F has the header but not the library.
19837 if test $gl_func_getloadavg_done = no && test "$ac_cv_lib_elf_elf_begin" = yes \
19838 && test "$ac_cv_lib_kvm_kvm_open" = yes; then
19839 gl_func_getloadavg_done=yes
19841 $as_echo "#define SVR4 1" >>confdefs.h
19845 if test $gl_func_getloadavg_done = no; then
19846 ac_fn_c_check_header_mongrel "$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
19847 if test "x$ac_cv_header_inq_stats_cpustats_h" = x""yes; then :
19848 gl_func_getloadavg_done=yes
19850 $as_echo "#define UMAX 1" >>confdefs.h
19853 $as_echo "#define UMAX4_3 1" >>confdefs.h
19860 if test $gl_func_getloadavg_done = no; then
19861 ac_fn_c_check_header_mongrel "$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
19862 if test "x$ac_cv_header_sys_cpustats_h" = x""yes; then :
19863 gl_func_getloadavg_done=yes; $as_echo "#define UMAX 1" >>confdefs.h
19870 if test $gl_func_getloadavg_done = no; then
19871 for ac_header in mach/mach.h
19872 do :
19873 ac_fn_c_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
19874 if test "x$ac_cv_header_mach_mach_h" = x""yes; then :
19875 cat >>confdefs.h <<_ACEOF
19876 #define HAVE_MACH_MACH_H 1
19877 _ACEOF
19881 done
19885 for ac_header in nlist.h
19886 do :
19887 ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
19888 if test "x$ac_cv_header_nlist_h" = x""yes; then :
19889 cat >>confdefs.h <<_ACEOF
19890 #define HAVE_NLIST_H 1
19891 _ACEOF
19892 ac_fn_c_check_member "$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
19894 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x""yes; then :
19896 cat >>confdefs.h <<_ACEOF
19897 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
19898 _ACEOF
19903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19904 /* end confdefs.h. */
19905 #include <nlist.h>
19907 main ()
19909 struct nlist x;
19910 #ifdef HAVE_STRUCT_NLIST_N_UN_N_NAME
19911 x.n_un.n_name = "";
19912 #else
19913 x.n_name = "";
19914 #endif
19916 return 0;
19918 _ACEOF
19919 if ac_fn_c_try_link "$LINENO"; then :
19921 $as_echo "#define N_NAME_POINTER 1" >>confdefs.h
19924 rm -f core conftest.err conftest.$ac_objext \
19925 conftest$ac_exeext conftest.$ac_ext
19929 done
19937 GNULIB_GETLOADAVG=1
19948 if test $REPLACE_GETOPT = 1; then
19957 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
19967 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
19978 REPLACE_GETOPT=0
19981 if test -n "$gl_replace_getopt"; then :
19983 REPLACE_GETOPT=1
19988 if test $REPLACE_GETOPT = 1; then
19990 GETOPT_H=getopt.h
19992 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
19996 GNULIB_UNISTD_H_GETOPT=1
19999 if test $REPLACE_GETOPT = 1; then
20008 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
20018 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
20029 if test $ac_cv_func_lstat = yes; then
20031 if test $gl_cv_func_lstat_dereferences_slashed_symlink = no; then
20032 REPLACE_LSTAT=1
20034 else
20035 HAVE_LSTAT=0
20038 if test $REPLACE_LSTAT = 1; then
20047 gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext"
20059 GNULIB_LSTAT=1
20071 if test $APPLE_UNIVERSAL_BUILD = 1; then
20072 # A universal build on Apple MacOS X platforms.
20073 # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode.
20074 # But we need a configuration result that is valid in both modes.
20075 gl_cv_func_working_mktime=no
20077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
20078 $as_echo_n "checking for working mktime... " >&6; }
20079 if test "${gl_cv_func_working_mktime+set}" = set; then :
20080 $as_echo_n "(cached) " >&6
20081 else
20082 if test "$cross_compiling" = yes; then :
20083 gl_cv_func_working_mktime=no
20084 else
20085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20086 /* end confdefs.h. */
20087 /* Test program from Paul Eggert and Tony Leneis. */
20088 #include <limits.h>
20089 #include <stdlib.h>
20090 #include <time.h>
20092 #ifdef HAVE_UNISTD_H
20093 # include <unistd.h>
20094 #endif
20096 #ifndef HAVE_ALARM
20097 # define alarm(X) /* empty */
20098 #endif
20100 /* Work around redefinition to rpl_putenv by other config tests. */
20101 #undef putenv
20103 static time_t time_t_max;
20104 static time_t time_t_min;
20106 /* Values we'll use to set the TZ environment variable. */
20107 static char *tz_strings[] = {
20108 (char *) 0, "TZ=GMT0", "TZ=JST-9",
20109 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
20111 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
20113 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
20114 Based on a problem report from Andreas Jaeger. */
20115 static int
20116 spring_forward_gap ()
20118 /* glibc (up to about 1998-10-07) failed this test. */
20119 struct tm tm;
20121 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
20122 instead of "TZ=America/Vancouver" in order to detect the bug even
20123 on systems that don't support the Olson extension, or don't have the
20124 full zoneinfo tables installed. */
20125 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
20127 tm.tm_year = 98;
20128 tm.tm_mon = 3;
20129 tm.tm_mday = 5;
20130 tm.tm_hour = 2;
20131 tm.tm_min = 0;
20132 tm.tm_sec = 0;
20133 tm.tm_isdst = -1;
20134 return mktime (&tm) != (time_t) -1;
20137 static int
20138 mktime_test1 (time_t now)
20140 struct tm *lt;
20141 return ! (lt = localtime (&now)) || mktime (lt) == now;
20144 static int
20145 mktime_test (time_t now)
20147 return (mktime_test1 (now)
20148 && mktime_test1 ((time_t) (time_t_max - now))
20149 && mktime_test1 ((time_t) (time_t_min + now)));
20152 static int
20153 irix_6_4_bug ()
20155 /* Based on code from Ariel Faigon. */
20156 struct tm tm;
20157 tm.tm_year = 96;
20158 tm.tm_mon = 3;
20159 tm.tm_mday = 0;
20160 tm.tm_hour = 0;
20161 tm.tm_min = 0;
20162 tm.tm_sec = 0;
20163 tm.tm_isdst = -1;
20164 mktime (&tm);
20165 return tm.tm_mon == 2 && tm.tm_mday == 31;
20168 static int
20169 bigtime_test (int j)
20171 struct tm tm;
20172 time_t now;
20173 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
20174 now = mktime (&tm);
20175 if (now != (time_t) -1)
20177 struct tm *lt = localtime (&now);
20178 if (! (lt
20179 && lt->tm_year == tm.tm_year
20180 && lt->tm_mon == tm.tm_mon
20181 && lt->tm_mday == tm.tm_mday
20182 && lt->tm_hour == tm.tm_hour
20183 && lt->tm_min == tm.tm_min
20184 && lt->tm_sec == tm.tm_sec
20185 && lt->tm_yday == tm.tm_yday
20186 && lt->tm_wday == tm.tm_wday
20187 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
20188 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
20189 return 0;
20191 return 1;
20194 static int
20195 year_2050_test ()
20197 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
20198 ignoring leap seconds. */
20199 unsigned long int answer = 2527315200UL;
20201 struct tm tm;
20202 time_t t;
20203 tm.tm_year = 2050 - 1900;
20204 tm.tm_mon = 2 - 1;
20205 tm.tm_mday = 1;
20206 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
20207 tm.tm_isdst = -1;
20209 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
20210 instead of "TZ=America/Vancouver" in order to detect the bug even
20211 on systems that don't support the Olson extension, or don't have the
20212 full zoneinfo tables installed. */
20213 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
20215 t = mktime (&tm);
20217 /* Check that the result is either a failure, or close enough
20218 to the correct answer that we can assume the discrepancy is
20219 due to leap seconds. */
20220 return (t == (time_t) -1
20221 || (0 < t && answer - 120 <= t && t <= answer + 120));
20225 main ()
20227 int result = 0;
20228 time_t t, delta;
20229 int i, j;
20230 int time_t_signed_magnitude = (time_t) ~ (time_t) 0 < (time_t) -1;
20231 int time_t_signed = ! ((time_t) 0 < (time_t) -1);
20233 /* This test makes some buggy mktime implementations loop.
20234 Give up after 60 seconds; a mktime slower than that
20235 isn't worth using anyway. */
20236 alarm (60);
20238 time_t_max = (! time_t_signed
20239 ? (time_t) -1
20240 : ((((time_t) 1 << (sizeof (time_t) * CHAR_BIT - 2)) - 1)
20241 * 2 + 1));
20242 time_t_min = (! time_t_signed
20243 ? (time_t) 0
20244 : time_t_signed_magnitude
20245 ? ~ (time_t) 0
20246 : ~ time_t_max);
20248 delta = time_t_max / 997; /* a suitable prime number */
20249 for (i = 0; i < N_STRINGS; i++)
20251 if (tz_strings[i])
20252 putenv (tz_strings[i]);
20254 for (t = 0; t <= time_t_max - delta; t += delta)
20255 if (! mktime_test (t))
20256 result |= 1;
20257 if (! (mktime_test ((time_t) 1)
20258 && mktime_test ((time_t) (60 * 60))
20259 && mktime_test ((time_t) (60 * 60 * 24))))
20260 result |= 2;
20262 for (j = 1; ; j <<= 1)
20263 if (! bigtime_test (j))
20264 result |= 4;
20265 else if (INT_MAX / 2 < j)
20266 break;
20267 if (! bigtime_test (INT_MAX))
20268 result |= 8;
20270 if (! irix_6_4_bug ())
20271 result |= 16;
20272 if (! spring_forward_gap ())
20273 result |= 32;
20274 if (! year_2050_test ())
20275 result |= 64;
20276 return result;
20278 _ACEOF
20279 if ac_fn_c_try_run "$LINENO"; then :
20280 gl_cv_func_working_mktime=yes
20281 else
20282 gl_cv_func_working_mktime=no
20284 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20285 conftest.$ac_objext conftest.beam conftest.$ac_ext
20290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_mktime" >&5
20291 $as_echo "$gl_cv_func_working_mktime" >&6; }
20293 if test $gl_cv_func_working_mktime = no; then
20294 REPLACE_MKTIME=1
20295 else
20296 REPLACE_MKTIME=0
20299 if test $REPLACE_MKTIME = 1; then
20308 gl_LIBOBJS="$gl_LIBOBJS mktime.$ac_objext"
20319 GNULIB_MKTIME=1
20328 LIB_PTHREAD_SIGMASK=
20331 if test $ac_cv_func_pthread_sigmask = yes; then
20333 else
20334 HAVE_PTHREAD_SIGMASK=0
20335 REPLACE_PTHREAD_SIGMASK=1
20341 if test $HAVE_PTHREAD_SIGMASK = 1; then
20344 if test -z "$LIB_PTHREAD_SIGMASK"; then
20345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask works without -lpthread" >&5
20346 $as_echo_n "checking whether pthread_sigmask works without -lpthread... " >&6; }
20347 if test "${gl_cv_func_pthread_sigmask_in_libc_works+set}" = set; then :
20348 $as_echo_n "(cached) " >&6
20349 else
20351 if test "$cross_compiling" = yes; then :
20353 case "$host_os" in
20354 freebsd* | hpux* | solaris | solaris2.[2-9]*)
20355 gl_cv_func_pthread_sigmask_in_libc_works="guessing no";;
20357 gl_cv_func_pthread_sigmask_in_libc_works="guessing yes";;
20358 esac
20360 else
20361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20362 /* end confdefs.h. */
20364 #include <pthread.h>
20365 #include <signal.h>
20366 #include <stddef.h>
20367 int main ()
20369 sigset_t set;
20370 sigemptyset (&set);
20371 return pthread_sigmask (1729, &set, NULL) != 0;
20373 _ACEOF
20374 if ac_fn_c_try_run "$LINENO"; then :
20375 gl_cv_func_pthread_sigmask_in_libc_works=no
20376 else
20377 gl_cv_func_pthread_sigmask_in_libc_works=yes
20379 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20380 conftest.$ac_objext conftest.beam conftest.$ac_ext
20385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_in_libc_works" >&5
20386 $as_echo "$gl_cv_func_pthread_sigmask_in_libc_works" >&6; }
20387 case "$gl_cv_func_pthread_sigmask_in_libc_works" in
20388 *no)
20389 REPLACE_PTHREAD_SIGMASK=1
20391 $as_echo "#define PTHREAD_SIGMASK_INEFFECTIVE 1" >>confdefs.h
20394 esac
20397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask returns error numbers" >&5
20398 $as_echo_n "checking whether pthread_sigmask returns error numbers... " >&6; }
20399 if test "${gl_cv_func_pthread_sigmask_return_works+set}" = set; then :
20400 $as_echo_n "(cached) " >&6
20401 else
20403 gl_save_LIBS="$LIBS"
20404 LIBS="$LIBS $LIB_PTHREAD_SIGMASK"
20405 if test "$cross_compiling" = yes; then :
20406 case "$host_os" in
20407 cygwin*)
20408 gl_cv_func_pthread_sigmask_return_works="guessing no";;
20410 gl_cv_func_pthread_sigmask_return_works="guessing yes";;
20411 esac
20413 else
20414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20415 /* end confdefs.h. */
20417 #include <pthread.h>
20418 #include <signal.h>
20419 #include <stddef.h>
20420 int main ()
20422 sigset_t set;
20423 sigemptyset (&set);
20424 if (pthread_sigmask (1729, &set, NULL) == -1)
20425 return 1;
20426 return 0;
20428 _ACEOF
20429 if ac_fn_c_try_run "$LINENO"; then :
20430 gl_cv_func_pthread_sigmask_return_works=yes
20431 else
20432 gl_cv_func_pthread_sigmask_return_works=no
20434 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20435 conftest.$ac_objext conftest.beam conftest.$ac_ext
20438 LIBS="$gl_save_LIBS"
20441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_return_works" >&5
20442 $as_echo "$gl_cv_func_pthread_sigmask_return_works" >&6; }
20443 case "$gl_cv_func_pthread_sigmask_return_works" in
20444 *no)
20445 REPLACE_PTHREAD_SIGMASK=1
20447 $as_echo "#define PTHREAD_SIGMASK_FAILS_WITH_ERRNO 1" >>confdefs.h
20450 esac
20452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask unblocks signals correctly" >&5
20453 $as_echo_n "checking whether pthread_sigmask unblocks signals correctly... " >&6; }
20454 if test "${gl_cv_func_pthread_sigmask_unblock_works+set}" = set; then :
20455 $as_echo_n "(cached) " >&6
20456 else
20458 case "$host_os" in
20459 irix*)
20460 gl_cv_func_pthread_sigmask_unblock_works="guessing no";;
20462 gl_cv_func_pthread_sigmask_unblock_works="guessing yes";;
20463 esac
20464 gl_save_LIBS="$LIBS"
20465 LIBS="$LIBS $LIBMULTITHREAD"
20466 if test "$cross_compiling" = yes; then :
20468 else
20469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20470 /* end confdefs.h. */
20472 #include <pthread.h>
20473 #include <signal.h>
20474 #include <stdio.h>
20475 #include <stdlib.h>
20476 #include <unistd.h>
20477 static volatile int sigint_occurred;
20478 static void
20479 sigint_handler (int sig)
20481 sigint_occurred++;
20483 int main ()
20485 sigset_t set;
20486 int pid = getpid ();
20487 char command[80];
20488 signal (SIGINT, sigint_handler);
20489 sigemptyset (&set);
20490 sigaddset (&set, SIGINT);
20491 if (!(pthread_sigmask (SIG_BLOCK, &set, NULL) == 0))
20492 return 1;
20493 sprintf (command, "sh -c 'sleep 1; kill -%d %d' &", SIGINT, pid);
20494 if (!(system (command) == 0))
20495 return 2;
20496 sleep (2);
20497 if (!(sigint_occurred == 0))
20498 return 3;
20499 if (!(pthread_sigmask (SIG_UNBLOCK, &set, NULL) == 0))
20500 return 4;
20501 if (!(sigint_occurred == 1)) /* This fails on IRIX. */
20502 return 5;
20503 return 0;
20505 _ACEOF
20506 if ac_fn_c_try_run "$LINENO"; then :
20508 else
20509 gl_cv_func_pthread_sigmask_unblock_works=no
20511 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20512 conftest.$ac_objext conftest.beam conftest.$ac_ext
20515 LIBS="$gl_save_LIBS"
20518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_unblock_works" >&5
20519 $as_echo "$gl_cv_func_pthread_sigmask_unblock_works" >&6; }
20520 case "$gl_cv_func_pthread_sigmask_unblock_works" in
20521 *no)
20522 REPLACE_PTHREAD_SIGMASK=1
20524 $as_echo "#define PTHREAD_SIGMASK_UNBLOCK_BUG 1" >>confdefs.h
20527 esac
20530 if test $HAVE_PTHREAD_SIGMASK = 0 || test $REPLACE_PTHREAD_SIGMASK = 1; then
20539 gl_LIBOBJS="$gl_LIBOBJS pthread_sigmask.$ac_objext"
20542 if test $HAVE_PTHREAD_SIGMASK = 1; then
20544 $as_echo "#define HAVE_PTHREAD_SIGMASK 1" >>confdefs.h
20554 GNULIB_PTHREAD_SIGMASK=1
20563 if test $ac_cv_func_readlink = no; then
20564 HAVE_READLINK=0
20565 else
20566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
20567 $as_echo_n "checking whether readlink signature is correct... " >&6; }
20568 if test "${gl_cv_decl_readlink_works+set}" = set; then :
20569 $as_echo_n "(cached) " >&6
20570 else
20571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20572 /* end confdefs.h. */
20573 #include <unistd.h>
20574 /* Cause compilation failure if original declaration has wrong type. */
20575 ssize_t readlink (const char *, char *, size_t);
20577 main ()
20581 return 0;
20583 _ACEOF
20584 if ac_fn_c_try_compile "$LINENO"; then :
20585 gl_cv_decl_readlink_works=yes
20586 else
20587 gl_cv_decl_readlink_works=no
20589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
20592 $as_echo "$gl_cv_decl_readlink_works" >&6; }
20593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
20594 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
20595 if test "${gl_cv_func_readlink_works+set}" = set; then :
20596 $as_echo_n "(cached) " >&6
20597 else
20598 # We have readlink, so assume ln -s works.
20599 ln -s conftest.no-such conftest.link
20600 ln -s conftest.link conftest.lnk2
20601 if test "$cross_compiling" = yes; then :
20602 gl_cv_func_readlink_works="guessing no"
20603 else
20604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20605 /* end confdefs.h. */
20606 #include <unistd.h>
20609 main ()
20611 char buf[20];
20612 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
20614 return 0;
20616 _ACEOF
20617 if ac_fn_c_try_run "$LINENO"; then :
20618 gl_cv_func_readlink_works=yes
20619 else
20620 gl_cv_func_readlink_works=no
20622 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20623 conftest.$ac_objext conftest.beam conftest.$ac_ext
20626 rm -f conftest.link conftest.lnk2
20628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
20629 $as_echo "$gl_cv_func_readlink_works" >&6; }
20630 if test "$gl_cv_func_readlink_works" != yes; then
20632 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
20634 REPLACE_READLINK=1
20635 elif test "$gl_cv_decl_readlink_works" != yes; then
20636 REPLACE_READLINK=1
20640 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
20649 gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
20660 GNULIB_READLINK=1
20677 if test $gl_cv_have_include_next = yes; then
20678 gl_cv_next_signal_h='<'signal.h'>'
20679 else
20680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
20681 $as_echo_n "checking absolute name of <signal.h>... " >&6; }
20682 if test "${gl_cv_next_signal_h+set}" = set; then :
20683 $as_echo_n "(cached) " >&6
20684 else
20686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20687 /* end confdefs.h. */
20688 #include <signal.h>
20690 _ACEOF
20691 case "$host_os" in
20692 aix*) gl_absname_cpp="$ac_cpp -C" ;;
20693 *) gl_absname_cpp="$ac_cpp" ;;
20694 esac
20696 case "$host_os" in
20697 mingw*)
20698 gl_dirsep_regex='[/\\]'
20701 gl_dirsep_regex='/'
20703 esac
20705 gl_absolute_header_sed='\#'"${gl_dirsep_regex}"'signal.h#{
20706 s#.*"\(.*'"${gl_dirsep_regex}"'signal.h\)".*#\1#
20707 s#^/[^/]#//&#
20711 gl_cv_next_signal_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20712 sed -n "$gl_absolute_header_sed"`'"'
20716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
20717 $as_echo "$gl_cv_next_signal_h" >&6; }
20719 NEXT_SIGNAL_H=$gl_cv_next_signal_h
20721 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20722 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20723 gl_next_as_first_directive='<'signal.h'>'
20724 else
20725 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20726 gl_next_as_first_directive=$gl_cv_next_signal_h
20728 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H=$gl_next_as_first_directive
20734 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
20735 # then choke on 'volatile sig_atomic_t'. C99 requires that it compile.
20736 ac_fn_c_check_type "$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
20737 #include <signal.h>
20740 if test "x$ac_cv_type_volatile_sig_atomic_t" = x""yes; then :
20742 else
20743 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=0
20752 ac_fn_c_check_type "$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
20753 #include <signal.h>
20756 if test "x$ac_cv_type_sighandler_t" = x""yes; then :
20758 else
20759 HAVE_SIGHANDLER_T=0
20765 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
20766 /* <sys/types.h> is not needed according to POSIX, but the
20767 <sys/socket.h> in i386-unknown-freebsd4.10 and
20768 powerpc-apple-darwin5.5 required it. */
20769 #include <sys/types.h>
20770 #if HAVE_SYS_SOCKET_H
20771 # include <sys/socket.h>
20772 #elif HAVE_WS2TCPIP_H
20773 # include <ws2tcpip.h>
20774 #endif
20777 if test "x$ac_cv_type_socklen_t" = x""yes; then :
20779 else
20780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
20781 $as_echo_n "checking for socklen_t equivalent... " >&6; }
20782 if test "${gl_cv_socklen_t_equiv+set}" = set; then :
20783 $as_echo_n "(cached) " >&6
20784 else
20785 # Systems have either "struct sockaddr *" or
20786 # "void *" as the second argument to getpeername
20787 gl_cv_socklen_t_equiv=
20788 for arg2 in "struct sockaddr" void; do
20789 for t in int size_t "unsigned int" "long int" "unsigned long int"; do
20790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20791 /* end confdefs.h. */
20792 #include <sys/types.h>
20793 #include <sys/socket.h>
20795 int getpeername (int, $arg2 *, $t *);
20797 main ()
20799 $t len;
20800 getpeername (0, 0, &len);
20802 return 0;
20804 _ACEOF
20805 if ac_fn_c_try_compile "$LINENO"; then :
20806 gl_cv_socklen_t_equiv="$t"
20808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20809 test "$gl_cv_socklen_t_equiv" != "" && break
20810 done
20811 test "$gl_cv_socklen_t_equiv" != "" && break
20812 done
20816 if test "$gl_cv_socklen_t_equiv" = ""; then
20817 as_fn_error "Cannot find a type to use in place of socklen_t" "$LINENO" 5
20819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
20820 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
20822 cat >>confdefs.h <<_ACEOF
20823 #define socklen_t $gl_cv_socklen_t_equiv
20824 _ACEOF
20829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
20830 $as_echo_n "checking for ssize_t... " >&6; }
20831 if test "${gt_cv_ssize_t+set}" = set; then :
20832 $as_echo_n "(cached) " >&6
20833 else
20834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20835 /* end confdefs.h. */
20836 #include <sys/types.h>
20838 main ()
20840 int x = sizeof (ssize_t *) + sizeof (ssize_t);
20841 return !x;
20843 return 0;
20845 _ACEOF
20846 if ac_fn_c_try_compile "$LINENO"; then :
20847 gt_cv_ssize_t=yes
20848 else
20849 gt_cv_ssize_t=no
20851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
20854 $as_echo "$gt_cv_ssize_t" >&6; }
20855 if test $gt_cv_ssize_t = no; then
20857 $as_echo "#define ssize_t int" >>confdefs.h
20862 STDARG_H=''
20863 NEXT_STDARG_H='<stdarg.h>'
20864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
20865 $as_echo_n "checking for va_copy... " >&6; }
20866 if test "${gl_cv_func_va_copy+set}" = set; then :
20867 $as_echo_n "(cached) " >&6
20868 else
20870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20871 /* end confdefs.h. */
20872 #include <stdarg.h>
20874 main ()
20877 #ifndef va_copy
20878 void (*func) (va_list, va_list) = va_copy;
20879 #endif
20882 return 0;
20884 _ACEOF
20885 if ac_fn_c_try_compile "$LINENO"; then :
20886 gl_cv_func_va_copy=yes
20887 else
20888 gl_cv_func_va_copy=no
20890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_va_copy" >&5
20894 $as_echo "$gl_cv_func_va_copy" >&6; }
20895 if test $gl_cv_func_va_copy = no; then
20896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20897 /* end confdefs.h. */
20898 #if defined _AIX && !defined __GNUC__
20899 AIX vaccine
20900 #endif
20902 _ACEOF
20903 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20904 $EGREP "vaccine" >/dev/null 2>&1; then :
20905 gl_aixcc=yes
20906 else
20907 gl_aixcc=no
20909 rm -f conftest*
20911 if test $gl_aixcc = yes; then
20912 STDARG_H=stdarg.h
20921 if test $gl_cv_have_include_next = yes; then
20922 gl_cv_next_stdarg_h='<'stdarg.h'>'
20923 else
20924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdarg.h>" >&5
20925 $as_echo_n "checking absolute name of <stdarg.h>... " >&6; }
20926 if test "${gl_cv_next_stdarg_h+set}" = set; then :
20927 $as_echo_n "(cached) " >&6
20928 else
20930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20931 /* end confdefs.h. */
20932 #include <stdarg.h>
20934 _ACEOF
20935 case "$host_os" in
20936 aix*) gl_absname_cpp="$ac_cpp -C" ;;
20937 *) gl_absname_cpp="$ac_cpp" ;;
20938 esac
20940 case "$host_os" in
20941 mingw*)
20942 gl_dirsep_regex='[/\\]'
20945 gl_dirsep_regex='/'
20947 esac
20949 gl_absolute_header_sed='\#'"${gl_dirsep_regex}"'stdarg.h#{
20950 s#.*"\(.*'"${gl_dirsep_regex}"'stdarg.h\)".*#\1#
20951 s#^/[^/]#//&#
20955 gl_cv_next_stdarg_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20956 sed -n "$gl_absolute_header_sed"`'"'
20960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdarg_h" >&5
20961 $as_echo "$gl_cv_next_stdarg_h" >&6; }
20963 NEXT_STDARG_H=$gl_cv_next_stdarg_h
20965 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20966 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20967 gl_next_as_first_directive='<'stdarg.h'>'
20968 else
20969 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20970 gl_next_as_first_directive=$gl_cv_next_stdarg_h
20972 NEXT_AS_FIRST_DIRECTIVE_STDARG_H=$gl_next_as_first_directive
20977 if test "$gl_cv_next_stdarg_h" = '""'; then
20978 gl_cv_next_stdarg_h='"///usr/include/stdarg.h"'
20979 NEXT_STDARG_H="$gl_cv_next_stdarg_h"
20981 else
20983 saved_as_echo_n="$as_echo_n"
20984 as_echo_n=':'
20985 if test "${gl_cv_func___va_copy+set}" = set; then :
20986 $as_echo_n "(cached) " >&6
20987 else
20989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20990 /* end confdefs.h. */
20991 #include <stdarg.h>
20993 main ()
20996 #ifndef __va_copy
20997 error, bail out
20998 #endif
21001 return 0;
21003 _ACEOF
21004 if ac_fn_c_try_compile "$LINENO"; then :
21005 gl_cv_func___va_copy=yes
21006 else
21007 gl_cv_func___va_copy=no
21009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21012 as_echo_n="$saved_as_echo_n"
21014 if test $gl_cv_func___va_copy = yes; then
21016 $as_echo "#define va_copy __va_copy" >>confdefs.h
21018 else
21021 $as_echo "#define va_copy gl_va_copy" >>confdefs.h
21027 if test -n "$STDARG_H"; then
21028 GL_GENERATE_STDARG_H_TRUE=
21029 GL_GENERATE_STDARG_H_FALSE='#'
21030 else
21031 GL_GENERATE_STDARG_H_TRUE='#'
21032 GL_GENERATE_STDARG_H_FALSE=
21040 # Define two additional variables used in the Makefile substitution.
21042 if test "$ac_cv_header_stdbool_h" = yes; then
21043 STDBOOL_H=''
21044 else
21045 STDBOOL_H='stdbool.h'
21048 if test -n "$STDBOOL_H"; then
21049 GL_GENERATE_STDBOOL_H_TRUE=
21050 GL_GENERATE_STDBOOL_H_FALSE='#'
21051 else
21052 GL_GENERATE_STDBOOL_H_TRUE='#'
21053 GL_GENERATE_STDBOOL_H_FALSE=
21057 if test "$ac_cv_type__Bool" = yes; then
21058 HAVE__BOOL=1
21059 else
21060 HAVE__BOOL=0
21067 STDDEF_H=
21068 if test $gt_cv_c_wchar_t = no; then
21069 HAVE_WCHAR_T=0
21070 STDDEF_H=stddef.h
21072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
21073 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
21074 if test "${gl_cv_decl_null_works+set}" = set; then :
21075 $as_echo_n "(cached) " >&6
21076 else
21077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21078 /* end confdefs.h. */
21079 #include <stddef.h>
21080 int test[2 * (sizeof NULL == sizeof (void *)) -1];
21083 main ()
21087 return 0;
21089 _ACEOF
21090 if ac_fn_c_try_compile "$LINENO"; then :
21091 gl_cv_decl_null_works=yes
21092 else
21093 gl_cv_decl_null_works=no
21095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
21098 $as_echo "$gl_cv_decl_null_works" >&6; }
21099 if test $gl_cv_decl_null_works = no; then
21100 REPLACE_NULL=1
21101 STDDEF_H=stddef.h
21104 if test -n "$STDDEF_H"; then
21105 GL_GENERATE_STDDEF_H_TRUE=
21106 GL_GENERATE_STDDEF_H_FALSE='#'
21107 else
21108 GL_GENERATE_STDDEF_H_TRUE='#'
21109 GL_GENERATE_STDDEF_H_FALSE=
21112 if test -n "$STDDEF_H"; then
21121 if test $gl_cv_have_include_next = yes; then
21122 gl_cv_next_stddef_h='<'stddef.h'>'
21123 else
21124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
21125 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
21126 if test "${gl_cv_next_stddef_h+set}" = set; then :
21127 $as_echo_n "(cached) " >&6
21128 else
21130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21131 /* end confdefs.h. */
21132 #include <stddef.h>
21134 _ACEOF
21135 case "$host_os" in
21136 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21137 *) gl_absname_cpp="$ac_cpp" ;;
21138 esac
21140 case "$host_os" in
21141 mingw*)
21142 gl_dirsep_regex='[/\\]'
21145 gl_dirsep_regex='/'
21147 esac
21149 gl_absolute_header_sed='\#'"${gl_dirsep_regex}"'stddef.h#{
21150 s#.*"\(.*'"${gl_dirsep_regex}"'stddef.h\)".*#\1#
21151 s#^/[^/]#//&#
21155 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21156 sed -n "$gl_absolute_header_sed"`'"'
21160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
21161 $as_echo "$gl_cv_next_stddef_h" >&6; }
21163 NEXT_STDDEF_H=$gl_cv_next_stddef_h
21165 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21166 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21167 gl_next_as_first_directive='<'stddef.h'>'
21168 else
21169 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21170 gl_next_as_first_directive=$gl_cv_next_stddef_h
21172 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
21191 if test $gl_cv_have_include_next = yes; then
21192 gl_cv_next_stdio_h='<'stdio.h'>'
21193 else
21194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
21195 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
21196 if test "${gl_cv_next_stdio_h+set}" = set; then :
21197 $as_echo_n "(cached) " >&6
21198 else
21200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21201 /* end confdefs.h. */
21202 #include <stdio.h>
21204 _ACEOF
21205 case "$host_os" in
21206 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21207 *) gl_absname_cpp="$ac_cpp" ;;
21208 esac
21210 case "$host_os" in
21211 mingw*)
21212 gl_dirsep_regex='[/\\]'
21215 gl_dirsep_regex='/'
21217 esac
21219 gl_absolute_header_sed='\#'"${gl_dirsep_regex}"'stdio.h#{
21220 s#.*"\(.*'"${gl_dirsep_regex}"'stdio.h\)".*#\1#
21221 s#^/[^/]#//&#
21225 gl_cv_next_stdio_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21226 sed -n "$gl_absolute_header_sed"`'"'
21230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
21231 $as_echo "$gl_cv_next_stdio_h" >&6; }
21233 NEXT_STDIO_H=$gl_cv_next_stdio_h
21235 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21236 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21237 gl_next_as_first_directive='<'stdio.h'>'
21238 else
21239 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21240 gl_next_as_first_directive=$gl_cv_next_stdio_h
21242 NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
21248 GNULIB_FSCANF=1
21249 GNULIB_SCANF=1
21250 GNULIB_FGETC=1
21251 GNULIB_GETC=1
21252 GNULIB_GETCHAR=1
21253 GNULIB_FGETS=1
21254 GNULIB_GETS=1
21255 GNULIB_FREAD=1
21258 GNULIB_FPRINTF=1
21259 GNULIB_PRINTF=1
21260 GNULIB_VFPRINTF=1
21261 GNULIB_VPRINTF=1
21262 GNULIB_FPUTC=1
21263 GNULIB_PUTC=1
21264 GNULIB_PUTCHAR=1
21265 GNULIB_FPUTS=1
21266 GNULIB_PUTS=1
21267 GNULIB_FWRITE=1
21283 if test $gl_cv_have_include_next = yes; then
21284 gl_cv_next_stdlib_h='<'stdlib.h'>'
21285 else
21286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
21287 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
21288 if test "${gl_cv_next_stdlib_h+set}" = set; then :
21289 $as_echo_n "(cached) " >&6
21290 else
21292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21293 /* end confdefs.h. */
21294 #include <stdlib.h>
21296 _ACEOF
21297 case "$host_os" in
21298 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21299 *) gl_absname_cpp="$ac_cpp" ;;
21300 esac
21302 case "$host_os" in
21303 mingw*)
21304 gl_dirsep_regex='[/\\]'
21307 gl_dirsep_regex='/'
21309 esac
21311 gl_absolute_header_sed='\#'"${gl_dirsep_regex}"'stdlib.h#{
21312 s#.*"\(.*'"${gl_dirsep_regex}"'stdlib.h\)".*#\1#
21313 s#^/[^/]#//&#
21317 gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21318 sed -n "$gl_absolute_header_sed"`'"'
21322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
21323 $as_echo "$gl_cv_next_stdlib_h" >&6; }
21325 NEXT_STDLIB_H=$gl_cv_next_stdlib_h
21327 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21328 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21329 gl_next_as_first_directive='<'stdlib.h'>'
21330 else
21331 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21332 gl_next_as_first_directive=$gl_cv_next_stdlib_h
21334 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
21344 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
21352 $as_echo "#define my_strftime nstrftime" >>confdefs.h
21361 if test "$ac_cv_have_decl_strtoimax" != yes; then
21362 HAVE_DECL_STRTOIMAX=0
21365 if test $ac_cv_func_strtoimax = no; then
21374 gl_LIBOBJS="$gl_LIBOBJS strtoimax.$ac_objext"
21377 ac_fn_c_check_decl "$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
21378 if test "x$ac_cv_have_decl_strtoll" = x""yes; then :
21379 ac_have_decl=1
21380 else
21381 ac_have_decl=0
21384 cat >>confdefs.h <<_ACEOF
21385 #define HAVE_DECL_STRTOLL $ac_have_decl
21386 _ACEOF
21396 GNULIB_STRTOIMAX=1
21406 if test "$ac_cv_have_decl_strtoumax" != yes; then
21407 HAVE_DECL_STRTOUMAX=0
21410 if test $ac_cv_func_strtoumax = no; then
21419 gl_LIBOBJS="$gl_LIBOBJS strtoumax.$ac_objext"
21422 ac_fn_c_check_decl "$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
21423 if test "x$ac_cv_have_decl_strtoull" = x""yes; then :
21424 ac_have_decl=1
21425 else
21426 ac_have_decl=0
21429 cat >>confdefs.h <<_ACEOF
21430 #define HAVE_DECL_STRTOULL $ac_have_decl
21431 _ACEOF
21441 GNULIB_STRTOUMAX=1
21449 if test $ac_cv_func_symlink = no; then
21450 HAVE_SYMLINK=0
21451 else
21452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symlink handles trailing slash correctly" >&5
21453 $as_echo_n "checking whether symlink handles trailing slash correctly... " >&6; }
21454 if test "${gl_cv_func_symlink_works+set}" = set; then :
21455 $as_echo_n "(cached) " >&6
21456 else
21457 if test "$cross_compiling" = yes; then :
21458 gl_cv_func_symlink_works="guessing no"
21459 else
21460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21461 /* end confdefs.h. */
21462 #include <unistd.h>
21465 main ()
21467 int result = 0;
21468 if (!symlink ("a", "conftest.link/"))
21469 result |= 1;
21470 if (symlink ("conftest.f", "conftest.lnk2"))
21471 result |= 2;
21472 else if (!symlink ("a", "conftest.lnk2/"))
21473 result |= 4;
21474 return result;
21477 return 0;
21479 _ACEOF
21480 if ac_fn_c_try_run "$LINENO"; then :
21481 gl_cv_func_symlink_works=yes
21482 else
21483 gl_cv_func_symlink_works=no
21485 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21486 conftest.$ac_objext conftest.beam conftest.$ac_ext
21489 rm -f conftest.f conftest.link conftest.lnk2
21491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_symlink_works" >&5
21492 $as_echo "$gl_cv_func_symlink_works" >&6; }
21493 if test "$gl_cv_func_symlink_works" != yes; then
21494 REPLACE_SYMLINK=1
21498 if test $HAVE_SYMLINK = 0 || test $REPLACE_SYMLINK = 1; then
21507 gl_LIBOBJS="$gl_LIBOBJS symlink.$ac_objext"
21515 GNULIB_SYMLINK=1
21537 if test $gl_cv_have_include_next = yes; then
21538 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
21539 else
21540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
21541 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
21542 if test "${gl_cv_next_sys_stat_h+set}" = set; then :
21543 $as_echo_n "(cached) " >&6
21544 else
21546 if test $ac_cv_header_sys_stat_h = yes; then
21549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21550 /* end confdefs.h. */
21551 #include <sys/stat.h>
21553 _ACEOF
21554 case "$host_os" in
21555 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21556 *) gl_absname_cpp="$ac_cpp" ;;
21557 esac
21559 case "$host_os" in
21560 mingw*)
21561 gl_dirsep_regex='[/\\]'
21564 gl_dirsep_regex='/'
21566 esac
21568 gl_absolute_header_sed='\#'"${gl_dirsep_regex}"'sys/stat.h#{
21569 s#.*"\(.*'"${gl_dirsep_regex}"'sys/stat.h\)".*#\1#
21570 s#^/[^/]#//&#
21574 gl_cv_next_sys_stat_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21575 sed -n "$gl_absolute_header_sed"`'"'
21576 else
21577 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
21582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
21583 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
21585 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
21587 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21588 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21589 gl_next_as_first_directive='<'sys/stat.h'>'
21590 else
21591 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21592 gl_next_as_first_directive=$gl_cv_next_sys_stat_h
21594 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
21600 ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
21601 #include <sys/stat.h>
21603 if test "x$ac_cv_type_nlink_t" = x""yes; then :
21605 else
21607 $as_echo "#define nlink_t int" >>confdefs.h
21625 if test $ac_cv_have_decl_localtime_r = no; then
21626 HAVE_DECL_LOCALTIME_R=0
21630 if test $ac_cv_func_localtime_r = yes; then
21631 HAVE_LOCALTIME_R=1
21632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
21633 $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
21634 if test "${gl_cv_time_r_posix+set}" = set; then :
21635 $as_echo_n "(cached) " >&6
21636 else
21637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21638 /* end confdefs.h. */
21639 #include <time.h>
21641 main ()
21643 /* We don't need to append 'restrict's to the argument types,
21644 even though the POSIX signature has the 'restrict's,
21645 since C99 says they can't affect type compatibility. */
21646 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
21647 if (ptr) return 0;
21648 /* Check the return type is a pointer.
21649 On HP-UX 10 it is 'int'. */
21650 *localtime_r (0, 0);
21652 return 0;
21655 _ACEOF
21656 if ac_fn_c_try_compile "$LINENO"; then :
21657 gl_cv_time_r_posix=yes
21658 else
21659 gl_cv_time_r_posix=no
21661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
21665 $as_echo "$gl_cv_time_r_posix" >&6; }
21666 if test $gl_cv_time_r_posix = yes; then
21667 REPLACE_LOCALTIME_R=0
21668 else
21669 REPLACE_LOCALTIME_R=1
21671 else
21672 HAVE_LOCALTIME_R=0
21675 if test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1; then
21684 gl_LIBOBJS="$gl_LIBOBJS time_r.$ac_objext"
21695 GNULIB_TIME_R=1
21715 if test $gl_cv_have_include_next = yes; then
21716 gl_cv_next_unistd_h='<'unistd.h'>'
21717 else
21718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
21719 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
21720 if test "${gl_cv_next_unistd_h+set}" = set; then :
21721 $as_echo_n "(cached) " >&6
21722 else
21724 if test $ac_cv_header_unistd_h = yes; then
21727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21728 /* end confdefs.h. */
21729 #include <unistd.h>
21731 _ACEOF
21732 case "$host_os" in
21733 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21734 *) gl_absname_cpp="$ac_cpp" ;;
21735 esac
21737 case "$host_os" in
21738 mingw*)
21739 gl_dirsep_regex='[/\\]'
21742 gl_dirsep_regex='/'
21744 esac
21746 gl_absolute_header_sed='\#'"${gl_dirsep_regex}"'unistd.h#{
21747 s#.*"\(.*'"${gl_dirsep_regex}"'unistd.h\)".*#\1#
21748 s#^/[^/]#//&#
21752 gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21753 sed -n "$gl_absolute_header_sed"`'"'
21754 else
21755 gl_cv_next_unistd_h='<'unistd.h'>'
21760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
21761 $as_echo "$gl_cv_next_unistd_h" >&6; }
21763 NEXT_UNISTD_H=$gl_cv_next_unistd_h
21765 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21766 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21767 gl_next_as_first_directive='<'unistd.h'>'
21768 else
21769 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21770 gl_next_as_first_directive=$gl_cv_next_unistd_h
21772 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
21777 if test $ac_cv_header_unistd_h = yes; then
21778 HAVE_UNISTD_H=1
21779 else
21780 HAVE_UNISTD_H=0
21788 gl_gnulib_enabled_dosname=false
21789 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36=false
21790 gl_gnulib_enabled_sigprocmask=false
21791 gl_gnulib_enabled_stat=false
21792 gl_gnulib_enabled_strtoll=false
21793 gl_gnulib_enabled_strtoull=false
21794 gl_gnulib_enabled_verify=false
21795 func_gl_gnulib_m4code_dosname ()
21797 if ! $gl_gnulib_enabled_dosname; then
21798 gl_gnulib_enabled_dosname=true
21801 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36 ()
21803 if ! $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
21806 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36=true
21809 func_gl_gnulib_m4code_sigprocmask ()
21811 if ! $gl_gnulib_enabled_sigprocmask; then
21815 if test $gl_cv_type_sigset_t = yes; then
21816 ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask"
21817 if test "x$ac_cv_func_sigprocmask" = x""yes; then :
21818 gl_cv_func_sigprocmask=1
21822 if test -z "$gl_cv_func_sigprocmask"; then
21823 HAVE_POSIX_SIGNALBLOCKING=0
21826 if test $HAVE_POSIX_SIGNALBLOCKING = 0; then
21835 gl_LIBOBJS="$gl_LIBOBJS sigprocmask.$ac_objext"
21844 GNULIB_SIGPROCMASK=1
21850 gl_gnulib_enabled_sigprocmask=true
21853 func_gl_gnulib_m4code_stat ()
21855 if ! $gl_gnulib_enabled_stat; then
21859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
21860 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
21861 if test "${gl_cv_func_stat_dir_slash+set}" = set; then :
21862 $as_echo_n "(cached) " >&6
21863 else
21864 if test "$cross_compiling" = yes; then :
21865 case $host_os in
21866 mingw*) gl_cv_func_stat_dir_slash="guessing no";;
21867 *) gl_cv_func_stat_dir_slash="guessing yes";;
21868 esac
21869 else
21870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21871 /* end confdefs.h. */
21872 #include <sys/stat.h>
21875 main ()
21877 struct stat st; return stat (".", &st) != stat ("./", &st);
21879 return 0;
21881 _ACEOF
21882 if ac_fn_c_try_run "$LINENO"; then :
21883 gl_cv_func_stat_dir_slash=yes
21884 else
21885 gl_cv_func_stat_dir_slash=no
21887 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21888 conftest.$ac_objext conftest.beam conftest.$ac_ext
21892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
21893 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
21894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
21895 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
21896 if test "${gl_cv_func_stat_file_slash+set}" = set; then :
21897 $as_echo_n "(cached) " >&6
21898 else
21899 touch conftest.tmp
21900 # Assume that if we have lstat, we can also check symlinks.
21901 if test $ac_cv_func_lstat = yes; then
21902 ln -s conftest.tmp conftest.lnk
21904 if test "$cross_compiling" = yes; then :
21905 gl_cv_func_stat_file_slash="guessing no"
21906 else
21907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21908 /* end confdefs.h. */
21909 #include <sys/stat.h>
21912 main ()
21914 int result = 0;
21915 struct stat st;
21916 if (!stat ("conftest.tmp/", &st))
21917 result |= 1;
21918 #if HAVE_LSTAT
21919 if (!stat ("conftest.lnk/", &st))
21920 result |= 2;
21921 #endif
21922 return result;
21925 return 0;
21927 _ACEOF
21928 if ac_fn_c_try_run "$LINENO"; then :
21929 gl_cv_func_stat_file_slash=yes
21930 else
21931 gl_cv_func_stat_file_slash=no
21933 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21934 conftest.$ac_objext conftest.beam conftest.$ac_ext
21937 rm -f conftest.tmp conftest.lnk
21939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
21940 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
21941 case $gl_cv_func_stat_dir_slash in
21942 *no) REPLACE_STAT=1
21944 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
21946 esac
21947 case $gl_cv_func_stat_file_slash in
21948 *no) REPLACE_STAT=1
21950 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
21952 esac
21954 if test $REPLACE_STAT = 1; then
21963 gl_LIBOBJS="$gl_LIBOBJS stat.$ac_objext"
21975 GNULIB_STAT=1
21981 gl_gnulib_enabled_stat=true
21982 if $condition; then
21983 func_gl_gnulib_m4code_dosname
21985 if $condition; then
21986 func_gl_gnulib_m4code_verify
21990 func_gl_gnulib_m4code_strtoll ()
21992 if ! $gl_gnulib_enabled_strtoll; then
21996 if test "$ac_cv_type_long_long_int" = yes; then
21997 for ac_func in strtoll
21998 do :
21999 ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
22000 if test "x$ac_cv_func_strtoll" = x""yes; then :
22001 cat >>confdefs.h <<_ACEOF
22002 #define HAVE_STRTOLL 1
22003 _ACEOF
22006 done
22008 if test $ac_cv_func_strtoll = no; then
22009 HAVE_STRTOLL=0
22013 if test $HAVE_STRTOLL = 0; then
22022 gl_LIBOBJS="$gl_LIBOBJS strtoll.$ac_objext"
22033 GNULIB_STRTOLL=1
22039 gl_gnulib_enabled_strtoll=true
22042 func_gl_gnulib_m4code_strtoull ()
22044 if ! $gl_gnulib_enabled_strtoull; then
22048 if test "$ac_cv_type_unsigned_long_long_int" = yes; then
22049 for ac_func in strtoull
22050 do :
22051 ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
22052 if test "x$ac_cv_func_strtoull" = x""yes; then :
22053 cat >>confdefs.h <<_ACEOF
22054 #define HAVE_STRTOULL 1
22055 _ACEOF
22058 done
22060 if test $ac_cv_func_strtoull = no; then
22061 HAVE_STRTOULL=0
22065 if test $HAVE_STRTOULL = 0; then
22074 gl_LIBOBJS="$gl_LIBOBJS strtoull.$ac_objext"
22085 GNULIB_STRTOULL=1
22091 gl_gnulib_enabled_strtoull=true
22094 func_gl_gnulib_m4code_verify ()
22096 if ! $gl_gnulib_enabled_verify; then
22097 gl_gnulib_enabled_verify=true
22100 if test $REPLACE_GETOPT = 1; then
22101 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36
22103 if test $REPLACE_LSTAT = 1; then
22104 func_gl_gnulib_m4code_dosname
22106 if test $REPLACE_LSTAT = 1; then
22107 func_gl_gnulib_m4code_stat
22109 if test $HAVE_PTHREAD_SIGMASK = 0 || test $REPLACE_PTHREAD_SIGMASK = 1; then
22110 func_gl_gnulib_m4code_sigprocmask
22112 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
22113 func_gl_gnulib_m4code_stat
22115 if test $ac_cv_func_strtoimax = no; then
22116 func_gl_gnulib_m4code_verify
22118 if test $ac_cv_func_strtoimax = no && test $ac_cv_type_long_long_int = yes; then
22119 func_gl_gnulib_m4code_strtoll
22121 if test $ac_cv_func_strtoumax = no; then
22122 func_gl_gnulib_m4code_verify
22124 if test $ac_cv_func_strtoumax = no && test $ac_cv_type_unsigned_long_long_int = yes; then
22125 func_gl_gnulib_m4code_strtoull
22128 if $gl_gnulib_enabled_dosname; then
22129 gl_GNULIB_ENABLED_dosname_TRUE=
22130 gl_GNULIB_ENABLED_dosname_FALSE='#'
22131 else
22132 gl_GNULIB_ENABLED_dosname_TRUE='#'
22133 gl_GNULIB_ENABLED_dosname_FALSE=
22136 if $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
22137 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE=
22138 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE='#'
22139 else
22140 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE='#'
22141 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE=
22144 if $gl_gnulib_enabled_sigprocmask; then
22145 gl_GNULIB_ENABLED_sigprocmask_TRUE=
22146 gl_GNULIB_ENABLED_sigprocmask_FALSE='#'
22147 else
22148 gl_GNULIB_ENABLED_sigprocmask_TRUE='#'
22149 gl_GNULIB_ENABLED_sigprocmask_FALSE=
22152 if $gl_gnulib_enabled_stat; then
22153 gl_GNULIB_ENABLED_stat_TRUE=
22154 gl_GNULIB_ENABLED_stat_FALSE='#'
22155 else
22156 gl_GNULIB_ENABLED_stat_TRUE='#'
22157 gl_GNULIB_ENABLED_stat_FALSE=
22160 if $gl_gnulib_enabled_strtoll; then
22161 gl_GNULIB_ENABLED_strtoll_TRUE=
22162 gl_GNULIB_ENABLED_strtoll_FALSE='#'
22163 else
22164 gl_GNULIB_ENABLED_strtoll_TRUE='#'
22165 gl_GNULIB_ENABLED_strtoll_FALSE=
22168 if $gl_gnulib_enabled_strtoull; then
22169 gl_GNULIB_ENABLED_strtoull_TRUE=
22170 gl_GNULIB_ENABLED_strtoull_FALSE='#'
22171 else
22172 gl_GNULIB_ENABLED_strtoull_TRUE='#'
22173 gl_GNULIB_ENABLED_strtoull_FALSE=
22176 if $gl_gnulib_enabled_verify; then
22177 gl_GNULIB_ENABLED_verify_TRUE=
22178 gl_GNULIB_ENABLED_verify_FALSE='#'
22179 else
22180 gl_GNULIB_ENABLED_verify_TRUE='#'
22181 gl_GNULIB_ENABLED_verify_FALSE=
22184 # End of code from modules
22194 gltests_libdeps=
22195 gltests_ltlibdeps=
22205 gl_source_base='tests'
22206 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
22208 gl_module_indicator_condition=$gltests_WITNESS
22219 LIBGNU_LIBDEPS="$gl_libdeps"
22221 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
22225 case "$opsys" in
22226 aix4-2) LD_SWITCH_SYSTEM_TEMACS="-Wl,-bnodelcsect" ;;
22228 darwin)
22229 ## The -headerpad option tells ld (see man page) to leave room at the
22230 ## end of the header for adding load commands. Needed for dumping.
22231 ## 0x690 is the total size of 30 segment load commands (at 56
22232 ## each); under Cocoa 31 commands are required.
22233 if test "$HAVE_NS" = "yes"; then
22234 libs_nsgui="-framework AppKit"
22235 headerpad_extra=6C8
22236 else
22237 libs_nsgui=
22238 headerpad_extra=690
22240 LD_SWITCH_SYSTEM_TEMACS="-fno-pie -prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
22242 ## This is here because src/Makefile.in did some extra fiddling around
22243 ## with LD_SWITCH_SYSTEM. The cpp logic was:
22244 ## #ifndef LD_SWITCH_SYSTEM
22245 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
22246 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
22247 ## not using gcc, darwin system not on an alpha (ie darwin, since
22248 ## darwin + alpha does not occur).
22249 ## Because this was done in src/Makefile.in, the resulting part of
22250 ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link).
22251 ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS,
22252 ## rather than LD_SWITCH_SYSTEM.
22253 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
22254 LD_SWITCH_SYSTEM_TEMACS="-X $LD_SWITCH_SYSTEM_TEMACS"
22257 ## LD_SWITCH_X_SITE_AUX is a -R option saying where to find X at run-time.
22258 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at
22259 ## the point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_AUX
22260 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
22261 ## had different values in configure (in ac_link) and src/Makefile.in.
22262 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
22263 gnu-linux) LD_SWITCH_SYSTEM_TEMACS="\$(LD_SWITCH_X_SITE_AUX)" ;;
22265 *) LD_SWITCH_SYSTEM_TEMACS= ;;
22266 esac
22268 if test "$NS_IMPL_GNUSTEP" = "yes"; then
22269 LD_SWITCH_SYSTEM_TEMACS="${LD_SWITCH_SYSTEM_TEMACS} -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES} -lgnustep-gui -lgnustep-base -lobjc -lpthread"
22275 LD_FIRSTFLAG=
22276 ORDINARY_LINK=
22277 case "$opsys" in
22278 ## gnu: GNU needs its own crt0.
22279 aix4-2|cygwin|darwin|gnu|hpux*|irix6-5|sol2*|unixware) ORDINARY_LINK=yes ;;
22281 ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the
22282 ## library search parth, i.e. it won't search /usr/lib for libc and
22283 ## friends. Using -nostartfiles instead avoids this problem, and
22284 ## will also work on earlier NetBSD releases.
22285 netbsd|openbsd) LD_FIRSTFLAG="-nostartfiles" ;;
22287 ## macpcc: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
22288 ## MkLinux/LinuxPPC needs this.
22289 ## ibms390x only supports opsys = gnu-linux so it can be added here.
22290 gnu-*)
22291 case "$machine" in
22292 macppc|ibms390x) LD_FIRSTFLAG="-nostdlib" ;;
22293 esac
22295 esac
22298 if test "x$ORDINARY_LINK" = "xyes"; then
22300 LD_FIRSTFLAG=""
22302 $as_echo "#define ORDINARY_LINK 1" >>confdefs.h
22305 ## The system files defining neither ORDINARY_LINK nor LD_FIRSTFLAG are:
22306 ## freebsd, gnu-* not on macppc|ibms390x.
22307 elif test "x$GCC" = "xyes" && test "x$LD_FIRSTFLAG" = "x"; then
22309 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
22310 ## places that are difficult to figure out at make time. Fortunately,
22311 ## these same versions allow you to pass arbitrary flags on to the
22312 ## linker, so there is no reason not to use it as a linker.
22314 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from
22315 ## searching for libraries in its internal directories, so we have to
22316 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below).
22317 LD_FIRSTFLAG="-nostdlib"
22320 ## FIXME? What setting of EDIT_LDFLAGS should this have?
22321 test "$NS_IMPL_GNUSTEP" = "yes" && LD_FIRSTFLAG="-rdynamic"
22326 ## FIXME? The logic here is not precisely the same as that above.
22327 ## There is no check here for a pre-defined LD_FIRSTFLAG.
22328 ## Should we only be setting LIB_GCC if LD ~ -nostdlib?
22329 LIB_GCC=
22330 if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
22332 case "$opsys" in
22333 freebsd|netbsd|openbsd) LIB_GCC= ;;
22335 gnu-*)
22336 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
22337 ## build on ARM EABI under GNU/Linux. (Bug#5518)
22338 case $host_cpu in
22339 arm*)
22340 LIB_GCC="-lgcc_s"
22343 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
22344 ## immediately undefine it again and redefine it to empty.
22345 ## Was the C_SWITCH_X_SITE part really necessary?
22346 ## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
22347 LIB_GCC=
22349 esac
22352 ## Ask GCC where to find libgcc.a.
22353 *) LIB_GCC=`$CC -print-libgcc-file-name 2> /dev/null` ;;
22354 esac
22358 ## If we're using X11/GNUstep, define some consequences.
22359 if test "$HAVE_X_WINDOWS" = "yes" || test "$HAVE_NS" = "yes"; then
22361 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
22364 $as_echo "#define HAVE_MOUSE 1" >>confdefs.h
22371 #### Report on what we decided to do.
22372 #### Report GTK as a toolkit, even if it doesn't use Xt.
22373 #### It makes printing result more understandable as using GTK sets
22374 #### toolkit_scroll_bars to yes by default.
22375 if test "${HAVE_GTK}" = "yes"; then
22376 USE_X_TOOLKIT=GTK
22379 and_machfile=
22380 if test -n "$machfile"; then
22381 and_machfile=" and \`${machfile}'"
22384 echo "
22385 Configured for \`${canonical}'.
22387 Where should the build process find the source code? ${srcdir}
22388 What operating system and machine description files should Emacs use?
22389 \`${opsysfile}'${and_machfile}
22390 What compiler should emacs be built with? ${CC} ${CFLAGS}
22391 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
22392 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
22393 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
22394 What window system should Emacs use? ${window_system}
22395 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
22397 if test -n "${x_includes}"; then
22398 echo " Where do we find X Windows header files? ${x_includes}"
22399 else
22400 echo " Where do we find X Windows header files? Standard dirs"
22402 if test -n "${x_libraries}"; then
22403 echo " Where do we find X Windows libraries? ${x_libraries}"
22404 else
22405 echo " Where do we find X Windows libraries? Standard dirs"
22408 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
22409 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
22410 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
22411 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
22412 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
22413 echo " Does Emacs use -lpng? ${HAVE_PNG}"
22414 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
22415 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
22417 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
22418 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
22419 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
22420 echo " Does Emacs use GSettings? ${HAVE_GSETTINGS}"
22421 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
22422 echo " Does Emacs use -lgnutls (2.6.x or higher)? ${HAVE_GNUTLS}"
22423 echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
22425 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
22426 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
22427 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
22428 echo " Does Emacs use -lxft? ${HAVE_XFT}"
22430 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
22431 echo
22433 if test $USE_XASSERTS = yes; then
22434 echo " Compiling with asserts turned on."
22435 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
22438 echo
22440 if test "$HAVE_NS" = "yes"; then
22441 echo
22442 echo "You must run \"make install\" in order to test the built application.
22443 The installed application will go to nextstep/Emacs.app and can be
22444 run or moved from there."
22445 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
22446 echo "The application will be fully self-contained."
22447 else
22448 echo "The lisp resources for the application will be installed under ${prefix}.
22449 You may need to run \"make install\" with sudo. The application will fail
22450 to run if these resources are not installed."
22452 echo
22456 # Remove any trailing slashes in these variables.
22457 test "${prefix}" != NONE &&
22458 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
22459 test "${exec_prefix}" != NONE &&
22460 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
22462 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"
22464 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"
22467 opt_makefile=test/automated/Makefile
22469 if test -f $srcdir/${opt_makefile}.in; then
22470 SUBDIR_MAKEFILES="$SUBDIR_MAKEFILES $opt_makefile"
22471 ac_config_files="$ac_config_files test/automated/Makefile"
22475 SUBDIR_MAKEFILES_IN=`echo " ${SUBDIR_MAKEFILES}" | sed -e 's| | $(srcdir)/|g' -e 's|Makefile|Makefile.in|g'`
22479 ac_config_commands="$ac_config_commands mkdirs"
22482 ac_config_commands="$ac_config_commands epaths"
22485 ac_config_commands="$ac_config_commands gdbinit"
22488 cat >confcache <<\_ACEOF
22489 # This file is a shell script that caches the results of configure
22490 # tests run on this system so they can be shared between configure
22491 # scripts and configure runs, see configure's option --config-cache.
22492 # It is not useful on other systems. If it contains results you don't
22493 # want to keep, you may remove or edit it.
22495 # config.status only pays attention to the cache file if you give it
22496 # the --recheck option to rerun configure.
22498 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22499 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22500 # following values.
22502 _ACEOF
22504 # The following way of writing the cache mishandles newlines in values,
22505 # but we know of no workaround that is simple, portable, and efficient.
22506 # So, we kill variables containing newlines.
22507 # Ultrix sh set writes to stderr and can't be redirected directly,
22508 # and sets the high bit in the cache file unless we assign to the vars.
22510 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22511 eval ac_val=\$$ac_var
22512 case $ac_val in #(
22513 *${as_nl}*)
22514 case $ac_var in #(
22515 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
22516 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
22517 esac
22518 case $ac_var in #(
22519 _ | IFS | as_nl) ;; #(
22520 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
22521 *) { eval $ac_var=; unset $ac_var;} ;;
22522 esac ;;
22523 esac
22524 done
22526 (set) 2>&1 |
22527 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22528 *${as_nl}ac_space=\ *)
22529 # `set' does not quote correctly, so add quotes: double-quote
22530 # substitution turns \\\\ into \\, and sed turns \\ into \.
22531 sed -n \
22532 "s/'/'\\\\''/g;
22533 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22534 ;; #(
22536 # `set' quotes correctly as required by POSIX, so do not add quotes.
22537 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22539 esac |
22540 sort
22542 sed '
22543 /^ac_cv_env_/b end
22544 t clear
22545 :clear
22546 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22547 t end
22548 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22549 :end' >>confcache
22550 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22551 if test -w "$cache_file"; then
22552 test "x$cache_file" != "x/dev/null" &&
22553 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
22554 $as_echo "$as_me: updating cache $cache_file" >&6;}
22555 cat confcache >$cache_file
22556 else
22557 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
22558 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22561 rm -f confcache
22563 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22564 # Let make expand exec_prefix.
22565 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22567 DEFS=-DHAVE_CONFIG_H
22569 ac_libobjs=
22570 ac_ltlibobjs=
22571 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22572 # 1. Remove the extension, and $U if already installed.
22573 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22574 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
22575 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22576 # will be set to the directory where LIBOBJS objects are built.
22577 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22578 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
22579 done
22580 LIBOBJS=$ac_libobjs
22582 LTLIBOBJS=$ac_ltlibobjs
22585 if test -n "$EXEEXT"; then
22586 am__EXEEXT_TRUE=
22587 am__EXEEXT_FALSE='#'
22588 else
22589 am__EXEEXT_TRUE='#'
22590 am__EXEEXT_FALSE=
22593 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22594 as_fn_error "conditional \"AMDEP\" was never defined.
22595 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22597 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22598 as_fn_error "conditional \"am__fastdepCC\" was never defined.
22599 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22602 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
22603 as_fn_error "conditional \"GL_COND_LIBTOOL\" was never defined.
22604 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22606 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
22607 as_fn_error "conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
22608 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22611 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
22612 as_fn_error "conditional \"GL_GENERATE_STDINT_H\" was never defined.
22613 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22615 if test -z "${GL_GENERATE_STDARG_H_TRUE}" && test -z "${GL_GENERATE_STDARG_H_FALSE}"; then
22616 as_fn_error "conditional \"GL_GENERATE_STDARG_H\" was never defined.
22617 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22619 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
22620 as_fn_error "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
22621 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22623 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
22624 as_fn_error "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
22625 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22627 if test -z "${gl_GNULIB_ENABLED_dosname_TRUE}" && test -z "${gl_GNULIB_ENABLED_dosname_FALSE}"; then
22628 as_fn_error "conditional \"gl_GNULIB_ENABLED_dosname\" was never defined.
22629 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22631 if test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE}" && test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE}"; then
22632 as_fn_error "conditional \"gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36\" was never defined.
22633 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22635 if test -z "${gl_GNULIB_ENABLED_sigprocmask_TRUE}" && test -z "${gl_GNULIB_ENABLED_sigprocmask_FALSE}"; then
22636 as_fn_error "conditional \"gl_GNULIB_ENABLED_sigprocmask\" was never defined.
22637 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22639 if test -z "${gl_GNULIB_ENABLED_stat_TRUE}" && test -z "${gl_GNULIB_ENABLED_stat_FALSE}"; then
22640 as_fn_error "conditional \"gl_GNULIB_ENABLED_stat\" was never defined.
22641 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22643 if test -z "${gl_GNULIB_ENABLED_strtoll_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoll_FALSE}"; then
22644 as_fn_error "conditional \"gl_GNULIB_ENABLED_strtoll\" was never defined.
22645 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22647 if test -z "${gl_GNULIB_ENABLED_strtoull_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoull_FALSE}"; then
22648 as_fn_error "conditional \"gl_GNULIB_ENABLED_strtoull\" was never defined.
22649 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22651 if test -z "${gl_GNULIB_ENABLED_verify_TRUE}" && test -z "${gl_GNULIB_ENABLED_verify_FALSE}"; then
22652 as_fn_error "conditional \"gl_GNULIB_ENABLED_verify\" was never defined.
22653 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22656 gl_libobjs=
22657 gl_ltlibobjs=
22658 if test -n "$gl_LIBOBJS"; then
22659 # Remove the extension.
22660 sed_drop_objext='s/\.o$//;s/\.obj$//'
22661 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
22662 gl_libobjs="$gl_libobjs $i.$ac_objext"
22663 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
22664 done
22666 gl_LIBOBJS=$gl_libobjs
22668 gl_LTLIBOBJS=$gl_ltlibobjs
22672 gltests_libobjs=
22673 gltests_ltlibobjs=
22674 if test -n "$gltests_LIBOBJS"; then
22675 # Remove the extension.
22676 sed_drop_objext='s/\.o$//;s/\.obj$//'
22677 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
22678 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
22679 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
22680 done
22682 gltests_LIBOBJS=$gltests_libobjs
22684 gltests_LTLIBOBJS=$gltests_ltlibobjs
22688 : ${CONFIG_STATUS=./config.status}
22689 ac_write_fail=0
22690 ac_clean_files_save=$ac_clean_files
22691 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22692 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
22693 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
22694 as_write_fail=0
22695 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
22696 #! $SHELL
22697 # Generated by $as_me.
22698 # Run this file to recreate the current configuration.
22699 # Compiler output produced by configure, useful for debugging
22700 # configure, is in config.log if it exists.
22702 debug=false
22703 ac_cs_recheck=false
22704 ac_cs_silent=false
22706 SHELL=\${CONFIG_SHELL-$SHELL}
22707 export SHELL
22708 _ASEOF
22709 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
22710 ## -------------------- ##
22711 ## M4sh Initialization. ##
22712 ## -------------------- ##
22714 # Be more Bourne compatible
22715 DUALCASE=1; export DUALCASE # for MKS sh
22716 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22717 emulate sh
22718 NULLCMD=:
22719 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
22720 # is contrary to our usage. Disable this feature.
22721 alias -g '${1+"$@"}'='"$@"'
22722 setopt NO_GLOB_SUBST
22723 else
22724 case `(set -o) 2>/dev/null` in #(
22725 *posix*) :
22726 set -o posix ;; #(
22727 *) :
22729 esac
22733 as_nl='
22735 export as_nl
22736 # Printing a long string crashes Solaris 7 /usr/bin/printf.
22737 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
22738 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
22739 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
22740 # Prefer a ksh shell builtin over an external printf program on Solaris,
22741 # but without wasting forks for bash or zsh.
22742 if test -z "$BASH_VERSION$ZSH_VERSION" \
22743 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
22744 as_echo='print -r --'
22745 as_echo_n='print -rn --'
22746 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
22747 as_echo='printf %s\n'
22748 as_echo_n='printf %s'
22749 else
22750 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
22751 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
22752 as_echo_n='/usr/ucb/echo -n'
22753 else
22754 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
22755 as_echo_n_body='eval
22756 arg=$1;
22757 case $arg in #(
22758 *"$as_nl"*)
22759 expr "X$arg" : "X\\(.*\\)$as_nl";
22760 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
22761 esac;
22762 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
22764 export as_echo_n_body
22765 as_echo_n='sh -c $as_echo_n_body as_echo'
22767 export as_echo_body
22768 as_echo='sh -c $as_echo_body as_echo'
22771 # The user is always right.
22772 if test "${PATH_SEPARATOR+set}" != set; then
22773 PATH_SEPARATOR=:
22774 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
22775 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
22776 PATH_SEPARATOR=';'
22781 # IFS
22782 # We need space, tab and new line, in precisely that order. Quoting is
22783 # there to prevent editors from complaining about space-tab.
22784 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22785 # splitting by setting IFS to empty value.)
22786 IFS=" "" $as_nl"
22788 # Find who we are. Look in the path if we contain no directory separator.
22789 case $0 in #((
22790 *[\\/]* ) as_myself=$0 ;;
22791 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22792 for as_dir in $PATH
22794 IFS=$as_save_IFS
22795 test -z "$as_dir" && as_dir=.
22796 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22797 done
22798 IFS=$as_save_IFS
22801 esac
22802 # We did not find ourselves, most probably we were run as `sh COMMAND'
22803 # in which case we are not to be found in the path.
22804 if test "x$as_myself" = x; then
22805 as_myself=$0
22807 if test ! -f "$as_myself"; then
22808 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22809 exit 1
22812 # Unset variables that we do not need and which cause bugs (e.g. in
22813 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
22814 # suppresses any "Segmentation fault" message there. '((' could
22815 # trigger a bug in pdksh 5.2.14.
22816 for as_var in BASH_ENV ENV MAIL MAILPATH
22817 do eval test x\${$as_var+set} = xset \
22818 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
22819 done
22820 PS1='$ '
22821 PS2='> '
22822 PS4='+ '
22824 # NLS nuisances.
22825 LC_ALL=C
22826 export LC_ALL
22827 LANGUAGE=C
22828 export LANGUAGE
22830 # CDPATH.
22831 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22834 # as_fn_error ERROR [LINENO LOG_FD]
22835 # ---------------------------------
22836 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
22837 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22838 # script with status $?, using 1 if that was 0.
22839 as_fn_error ()
22841 as_status=$?; test $as_status -eq 0 && as_status=1
22842 if test "$3"; then
22843 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
22844 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
22846 $as_echo "$as_me: error: $1" >&2
22847 as_fn_exit $as_status
22848 } # as_fn_error
22851 # as_fn_set_status STATUS
22852 # -----------------------
22853 # Set $? to STATUS, without forking.
22854 as_fn_set_status ()
22856 return $1
22857 } # as_fn_set_status
22859 # as_fn_exit STATUS
22860 # -----------------
22861 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
22862 as_fn_exit ()
22864 set +e
22865 as_fn_set_status $1
22866 exit $1
22867 } # as_fn_exit
22869 # as_fn_unset VAR
22870 # ---------------
22871 # Portably unset VAR.
22872 as_fn_unset ()
22874 { eval $1=; unset $1;}
22876 as_unset=as_fn_unset
22877 # as_fn_append VAR VALUE
22878 # ----------------------
22879 # Append the text in VALUE to the end of the definition contained in VAR. Take
22880 # advantage of any shell optimizations that allow amortized linear growth over
22881 # repeated appends, instead of the typical quadratic growth present in naive
22882 # implementations.
22883 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
22884 eval 'as_fn_append ()
22886 eval $1+=\$2
22888 else
22889 as_fn_append ()
22891 eval $1=\$$1\$2
22893 fi # as_fn_append
22895 # as_fn_arith ARG...
22896 # ------------------
22897 # Perform arithmetic evaluation on the ARGs, and store the result in the
22898 # global $as_val. Take advantage of shells that can avoid forks. The arguments
22899 # must be portable across $(()) and expr.
22900 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
22901 eval 'as_fn_arith ()
22903 as_val=$(( $* ))
22905 else
22906 as_fn_arith ()
22908 as_val=`expr "$@" || test $? -eq 1`
22910 fi # as_fn_arith
22913 if expr a : '\(a\)' >/dev/null 2>&1 &&
22914 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22915 as_expr=expr
22916 else
22917 as_expr=false
22920 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22921 as_basename=basename
22922 else
22923 as_basename=false
22926 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22927 as_dirname=dirname
22928 else
22929 as_dirname=false
22932 as_me=`$as_basename -- "$0" ||
22933 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22934 X"$0" : 'X\(//\)$' \| \
22935 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22936 $as_echo X/"$0" |
22937 sed '/^.*\/\([^/][^/]*\)\/*$/{
22938 s//\1/
22941 /^X\/\(\/\/\)$/{
22942 s//\1/
22945 /^X\/\(\/\).*/{
22946 s//\1/
22949 s/.*/./; q'`
22951 # Avoid depending upon Character Ranges.
22952 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22953 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22954 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22955 as_cr_digits='0123456789'
22956 as_cr_alnum=$as_cr_Letters$as_cr_digits
22958 ECHO_C= ECHO_N= ECHO_T=
22959 case `echo -n x` in #(((((
22960 -n*)
22961 case `echo 'xy\c'` in
22962 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
22963 xy) ECHO_C='\c';;
22964 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
22965 ECHO_T=' ';;
22966 esac;;
22968 ECHO_N='-n';;
22969 esac
22971 rm -f conf$$ conf$$.exe conf$$.file
22972 if test -d conf$$.dir; then
22973 rm -f conf$$.dir/conf$$.file
22974 else
22975 rm -f conf$$.dir
22976 mkdir conf$$.dir 2>/dev/null
22978 if (echo >conf$$.file) 2>/dev/null; then
22979 if ln -s conf$$.file conf$$ 2>/dev/null; then
22980 as_ln_s='ln -s'
22981 # ... but there are two gotchas:
22982 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22983 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22984 # In both cases, we have to default to `cp -p'.
22985 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22986 as_ln_s='cp -p'
22987 elif ln conf$$.file conf$$ 2>/dev/null; then
22988 as_ln_s=ln
22989 else
22990 as_ln_s='cp -p'
22992 else
22993 as_ln_s='cp -p'
22995 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22996 rmdir conf$$.dir 2>/dev/null
22999 # as_fn_mkdir_p
23000 # -------------
23001 # Create "$as_dir" as a directory, including parents if necessary.
23002 as_fn_mkdir_p ()
23005 case $as_dir in #(
23006 -*) as_dir=./$as_dir;;
23007 esac
23008 test -d "$as_dir" || eval $as_mkdir_p || {
23009 as_dirs=
23010 while :; do
23011 case $as_dir in #(
23012 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
23013 *) as_qdir=$as_dir;;
23014 esac
23015 as_dirs="'$as_qdir' $as_dirs"
23016 as_dir=`$as_dirname -- "$as_dir" ||
23017 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23018 X"$as_dir" : 'X\(//\)[^/]' \| \
23019 X"$as_dir" : 'X\(//\)$' \| \
23020 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23021 $as_echo X"$as_dir" |
23022 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23023 s//\1/
23026 /^X\(\/\/\)[^/].*/{
23027 s//\1/
23030 /^X\(\/\/\)$/{
23031 s//\1/
23034 /^X\(\/\).*/{
23035 s//\1/
23038 s/.*/./; q'`
23039 test -d "$as_dir" && break
23040 done
23041 test -z "$as_dirs" || eval "mkdir $as_dirs"
23042 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
23045 } # as_fn_mkdir_p
23046 if mkdir -p . 2>/dev/null; then
23047 as_mkdir_p='mkdir -p "$as_dir"'
23048 else
23049 test -d ./-p && rmdir ./-p
23050 as_mkdir_p=false
23053 if test -x / >/dev/null 2>&1; then
23054 as_test_x='test -x'
23055 else
23056 if ls -dL / >/dev/null 2>&1; then
23057 as_ls_L_option=L
23058 else
23059 as_ls_L_option=
23061 as_test_x='
23062 eval sh -c '\''
23063 if test -d "$1"; then
23064 test -d "$1/.";
23065 else
23066 case $1 in #(
23067 -*)set "./$1";;
23068 esac;
23069 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
23070 ???[sx]*):;;*)false;;esac;fi
23071 '\'' sh
23074 as_executable_p=$as_test_x
23076 # Sed expression to map a string onto a valid CPP name.
23077 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23079 # Sed expression to map a string onto a valid variable name.
23080 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23083 exec 6>&1
23084 ## ----------------------------------- ##
23085 ## Main body of $CONFIG_STATUS script. ##
23086 ## ----------------------------------- ##
23087 _ASEOF
23088 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
23090 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23091 # Save the log message, to keep $0 and so on meaningful, and to
23092 # report actual input values of CONFIG_FILES etc. instead of their
23093 # values after options handling.
23094 ac_log="
23095 This file was extended by emacs $as_me 24.0.50, which was
23096 generated by GNU Autoconf 2.65. Invocation command line was
23098 CONFIG_FILES = $CONFIG_FILES
23099 CONFIG_HEADERS = $CONFIG_HEADERS
23100 CONFIG_LINKS = $CONFIG_LINKS
23101 CONFIG_COMMANDS = $CONFIG_COMMANDS
23102 $ $0 $@
23104 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23107 _ACEOF
23109 case $ac_config_files in *"
23110 "*) set x $ac_config_files; shift; ac_config_files=$*;;
23111 esac
23113 case $ac_config_headers in *"
23114 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
23115 esac
23118 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23119 # Files that config.status was made for.
23120 config_files="$ac_config_files"
23121 config_headers="$ac_config_headers"
23122 config_commands="$ac_config_commands"
23124 _ACEOF
23126 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23127 ac_cs_usage="\
23128 \`$as_me' instantiates files and other configuration actions
23129 from templates according to the current configuration. Unless the files
23130 and actions are specified as TAGs, all are instantiated by default.
23132 Usage: $0 [OPTION]... [TAG]...
23134 -h, --help print this help, then exit
23135 -V, --version print version number and configuration settings, then exit
23136 --config print configuration, then exit
23137 -q, --quiet, --silent
23138 do not print progress messages
23139 -d, --debug don't remove temporary files
23140 --recheck update $as_me by reconfiguring in the same conditions
23141 --file=FILE[:TEMPLATE]
23142 instantiate the configuration file FILE
23143 --header=FILE[:TEMPLATE]
23144 instantiate the configuration header FILE
23146 Configuration files:
23147 $config_files
23149 Configuration headers:
23150 $config_headers
23152 Configuration commands:
23153 $config_commands
23155 Report bugs to the package provider."
23157 _ACEOF
23158 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23159 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
23160 ac_cs_version="\\
23161 emacs config.status 24.0.50
23162 configured by $0, generated by GNU Autoconf 2.65,
23163 with options \\"\$ac_cs_config\\"
23165 Copyright (C) 2009 Free Software Foundation, Inc.
23166 This config.status script is free software; the Free Software Foundation
23167 gives unlimited permission to copy, distribute and modify it."
23169 ac_pwd='$ac_pwd'
23170 srcdir='$srcdir'
23171 INSTALL='$INSTALL'
23172 MKDIR_P='$MKDIR_P'
23173 AWK='$AWK'
23174 test -n "\$AWK" || AWK=awk
23175 _ACEOF
23177 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23178 # The default lists apply if the user does not specify any file.
23179 ac_need_defaults=:
23180 while test $# != 0
23182 case $1 in
23183 --*=*)
23184 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23185 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23186 ac_shift=:
23189 ac_option=$1
23190 ac_optarg=$2
23191 ac_shift=shift
23193 esac
23195 case $ac_option in
23196 # Handling of the options.
23197 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23198 ac_cs_recheck=: ;;
23199 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23200 $as_echo "$ac_cs_version"; exit ;;
23201 --config | --confi | --conf | --con | --co | --c )
23202 $as_echo "$ac_cs_config"; exit ;;
23203 --debug | --debu | --deb | --de | --d | -d )
23204 debug=: ;;
23205 --file | --fil | --fi | --f )
23206 $ac_shift
23207 case $ac_optarg in
23208 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23209 esac
23210 as_fn_append CONFIG_FILES " '$ac_optarg'"
23211 ac_need_defaults=false;;
23212 --header | --heade | --head | --hea )
23213 $ac_shift
23214 case $ac_optarg in
23215 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23216 esac
23217 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
23218 ac_need_defaults=false;;
23219 --he | --h)
23220 # Conflict between --help and --header
23221 as_fn_error "ambiguous option: \`$1'
23222 Try \`$0 --help' for more information.";;
23223 --help | --hel | -h )
23224 $as_echo "$ac_cs_usage"; exit ;;
23225 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23226 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23227 ac_cs_silent=: ;;
23229 # This is an error.
23230 -*) as_fn_error "unrecognized option: \`$1'
23231 Try \`$0 --help' for more information." ;;
23233 *) as_fn_append ac_config_targets " $1"
23234 ac_need_defaults=false ;;
23236 esac
23237 shift
23238 done
23240 ac_configure_extra_args=
23242 if $ac_cs_silent; then
23243 exec 6>/dev/null
23244 ac_configure_extra_args="$ac_configure_extra_args --silent"
23247 _ACEOF
23248 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23249 if \$ac_cs_recheck; then
23250 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23251 shift
23252 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
23253 CONFIG_SHELL='$SHELL'
23254 export CONFIG_SHELL
23255 exec "\$@"
23258 _ACEOF
23259 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23260 exec 5>>config.log
23262 echo
23263 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23264 ## Running $as_me. ##
23265 _ASBOX
23266 $as_echo "$ac_log"
23267 } >&5
23269 _ACEOF
23270 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23272 # INIT-COMMANDS
23274 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
23275 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPPFLAGS="$CPPFLAGS"
23277 _ACEOF
23279 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23281 # Handling of arguments.
23282 for ac_config_target in $ac_config_targets
23284 case $ac_config_target in
23285 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
23286 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
23287 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23288 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
23289 "lib-src/Makefile") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile" ;;
23290 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
23291 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
23292 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
23293 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
23294 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
23295 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
23296 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
23297 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
23298 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
23299 "test/automated/Makefile") CONFIG_FILES="$CONFIG_FILES test/automated/Makefile" ;;
23300 "mkdirs") CONFIG_COMMANDS="$CONFIG_COMMANDS mkdirs" ;;
23301 "epaths") CONFIG_COMMANDS="$CONFIG_COMMANDS epaths" ;;
23302 "gdbinit") CONFIG_COMMANDS="$CONFIG_COMMANDS gdbinit" ;;
23304 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
23305 esac
23306 done
23309 # If the user did not use the arguments to specify the items to instantiate,
23310 # then the envvar interface is used. Set only those that are not.
23311 # We use the long form for the default assignment because of an extremely
23312 # bizarre bug on SunOS 4.1.3.
23313 if $ac_need_defaults; then
23314 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23315 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23316 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23319 # Have a temporary directory for convenience. Make it in the build tree
23320 # simply because there is no reason against having it here, and in addition,
23321 # creating and moving files from /tmp can sometimes cause problems.
23322 # Hook for its removal unless debugging.
23323 # Note that there is a small window in which the directory will not be cleaned:
23324 # after its creation but before its name has been assigned to `$tmp'.
23325 $debug ||
23327 tmp=
23328 trap 'exit_status=$?
23329 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23331 trap 'as_fn_exit 1' 1 2 13 15
23333 # Create a (secure) tmp directory for tmp files.
23336 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23337 test -n "$tmp" && test -d "$tmp"
23338 } ||
23340 tmp=./conf$$-$RANDOM
23341 (umask 077 && mkdir "$tmp")
23342 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
23344 # Set up the scripts for CONFIG_FILES section.
23345 # No need to generate them if there are no CONFIG_FILES.
23346 # This happens for instance with `./config.status config.h'.
23347 if test -n "$CONFIG_FILES"; then
23349 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
23350 ac_cs_awk_getline=:
23351 ac_cs_awk_pipe_init=
23352 ac_cs_awk_read_file='
23353 while ((getline aline < (F[key])) > 0)
23354 print(aline)
23355 close(F[key])'
23356 ac_cs_awk_pipe_fini=
23357 else
23358 ac_cs_awk_getline=false
23359 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
23360 ac_cs_awk_read_file='
23361 print "|#_!!_#|"
23362 print "cat " F[key] " &&"
23363 '$ac_cs_awk_pipe_init
23364 # The final `:' finishes the AND list.
23365 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
23367 ac_cr=`echo X | tr X '\015'`
23368 # On cygwin, bash can eat \r inside `` if the user requested igncr.
23369 # But we know of no other shell where ac_cr would be empty at this
23370 # point, so we can use a bashism as a fallback.
23371 if test "x$ac_cr" = x; then
23372 eval ac_cr=\$\'\\r\'
23374 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
23375 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
23376 ac_cs_awk_cr='\r'
23377 else
23378 ac_cs_awk_cr=$ac_cr
23381 echo 'BEGIN {' >"$tmp/subs1.awk" &&
23382 _ACEOF
23384 # Create commands to substitute file output variables.
23386 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
23387 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
23388 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
23389 echo "_ACAWK" &&
23390 echo "_ACEOF"
23391 } >conf$$files.sh &&
23392 . ./conf$$files.sh ||
23393 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
23394 rm -f conf$$files.sh
23397 echo "cat >conf$$subs.awk <<_ACEOF" &&
23398 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
23399 echo "_ACEOF"
23400 } >conf$$subs.sh ||
23401 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
23402 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
23403 ac_delim='%!_!# '
23404 for ac_last_try in false false false false false :; do
23405 . ./conf$$subs.sh ||
23406 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
23408 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
23409 if test $ac_delim_n = $ac_delim_num; then
23410 break
23411 elif $ac_last_try; then
23412 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
23413 else
23414 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23416 done
23417 rm -f conf$$subs.sh
23419 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23420 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
23421 _ACEOF
23422 sed -n '
23424 s/^/S["/; s/!.*/"]=/
23427 s/^[^!]*!//
23428 :repl
23429 t repl
23430 s/'"$ac_delim"'$//
23431 t delim
23434 s/\(.\{148\}\)..*/\1/
23435 t more1
23436 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
23439 b repl
23440 :more1
23441 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23444 s/.\{148\}//
23445 t nl
23446 :delim
23448 s/\(.\{148\}\)..*/\1/
23449 t more2
23450 s/["\\]/\\&/g; s/^/"/; s/$/"/
23453 :more2
23454 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23457 s/.\{148\}//
23458 t delim
23459 ' <conf$$subs.awk | sed '
23460 /^[^""]/{
23462 s/\n//
23464 ' >>$CONFIG_STATUS || ac_write_fail=1
23465 rm -f conf$$subs.awk
23466 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23467 _ACAWK
23468 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
23469 for (key in S) S_is_set[key] = 1
23470 FS = "\a"
23471 \$ac_cs_awk_pipe_init
23474 line = $ 0
23475 nfields = split(line, field, "@")
23476 substed = 0
23477 len = length(field[1])
23478 for (i = 2; i < nfields; i++) {
23479 key = field[i]
23480 keylen = length(key)
23481 if (S_is_set[key]) {
23482 value = S[key]
23483 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
23484 len += length(value) + length(field[++i])
23485 substed = 1
23486 } else
23487 len += 1 + keylen
23489 if (nfields == 3 && !substed) {
23490 key = field[2]
23491 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
23492 \$ac_cs_awk_read_file
23493 next
23496 print line
23498 \$ac_cs_awk_pipe_fini
23499 _ACAWK
23500 _ACEOF
23501 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23502 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
23503 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
23504 else
23506 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
23507 || as_fn_error "could not setup config files machinery" "$LINENO" 5
23508 _ACEOF
23510 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23511 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23512 # trailing colons and then remove the whole line if VPATH becomes empty
23513 # (actually we leave an empty line to preserve line numbers).
23514 if test "x$srcdir" = x.; then
23515 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23516 s/:*\$(srcdir):*/:/
23517 s/:*\${srcdir}:*/:/
23518 s/:*@srcdir@:*/:/
23519 s/^\([^=]*=[ ]*\):*/\1/
23520 s/:*$//
23521 s/^[^=]*=[ ]*$//
23525 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23526 fi # test -n "$CONFIG_FILES"
23528 # Set up the scripts for CONFIG_HEADERS section.
23529 # No need to generate them if there are no CONFIG_HEADERS.
23530 # This happens for instance with `./config.status Makefile'.
23531 if test -n "$CONFIG_HEADERS"; then
23532 cat >"$tmp/defines.awk" <<\_ACAWK ||
23533 BEGIN {
23534 _ACEOF
23536 # Transform confdefs.h into an awk script `defines.awk', embedded as
23537 # here-document in config.status, that substitutes the proper values into
23538 # config.h.in to produce config.h.
23540 # Create a delimiter string that does not exist in confdefs.h, to ease
23541 # handling of long lines.
23542 ac_delim='%!_!# '
23543 for ac_last_try in false false :; do
23544 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
23545 if test -z "$ac_t"; then
23546 break
23547 elif $ac_last_try; then
23548 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
23549 else
23550 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23552 done
23554 # For the awk script, D is an array of macro values keyed by name,
23555 # likewise P contains macro parameters if any. Preserve backslash
23556 # newline sequences.
23558 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23559 sed -n '
23560 s/.\{148\}/&'"$ac_delim"'/g
23561 t rset
23562 :rset
23563 s/^[ ]*#[ ]*define[ ][ ]*/ /
23564 t def
23566 :def
23567 s/\\$//
23568 t bsnl
23569 s/["\\]/\\&/g
23570 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
23571 D["\1"]=" \3"/p
23572 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
23574 :bsnl
23575 s/["\\]/\\&/g
23576 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
23577 D["\1"]=" \3\\\\\\n"\\/p
23578 t cont
23579 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
23580 t cont
23582 :cont
23584 s/.\{148\}/&'"$ac_delim"'/g
23585 t clear
23586 :clear
23587 s/\\$//
23588 t bsnlc
23589 s/["\\]/\\&/g; s/^/"/; s/$/"/p
23591 :bsnlc
23592 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
23593 b cont
23594 ' <confdefs.h | sed '
23595 s/'"$ac_delim"'/"\\\
23596 "/g' >>$CONFIG_STATUS || ac_write_fail=1
23598 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23599 for (key in D) D_is_set[key] = 1
23600 FS = "\a"
23602 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
23603 line = \$ 0
23604 split(line, arg, " ")
23605 if (arg[1] == "#") {
23606 defundef = arg[2]
23607 mac1 = arg[3]
23608 } else {
23609 defundef = substr(arg[1], 2)
23610 mac1 = arg[2]
23612 split(mac1, mac2, "(") #)
23613 macro = mac2[1]
23614 prefix = substr(line, 1, index(line, defundef) - 1)
23615 if (D_is_set[macro]) {
23616 # Preserve the white space surrounding the "#".
23617 print prefix "define", macro P[macro] D[macro]
23618 next
23619 } else {
23620 # Replace #undef with comments. This is necessary, for example,
23621 # in the case of _POSIX_SOURCE, which is predefined and required
23622 # on some systems where configure will not decide to define it.
23623 if (defundef == "undef") {
23624 print "/*", prefix defundef, macro, "*/"
23625 next
23629 { print }
23630 _ACAWK
23631 _ACEOF
23632 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23633 as_fn_error "could not setup config headers machinery" "$LINENO" 5
23634 fi # test -n "$CONFIG_HEADERS"
23637 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
23638 shift
23639 for ac_tag
23641 case $ac_tag in
23642 :[FHLC]) ac_mode=$ac_tag; continue;;
23643 esac
23644 case $ac_mode$ac_tag in
23645 :[FHL]*:*);;
23646 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
23647 :[FH]-) ac_tag=-:-;;
23648 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23649 esac
23650 ac_save_IFS=$IFS
23651 IFS=:
23652 set x $ac_tag
23653 IFS=$ac_save_IFS
23654 shift
23655 ac_file=$1
23656 shift
23658 case $ac_mode in
23659 :L) ac_source=$1;;
23660 :[FH])
23661 ac_file_inputs=
23662 for ac_f
23664 case $ac_f in
23665 -) ac_f="$tmp/stdin";;
23666 *) # Look for the file first in the build tree, then in the source tree
23667 # (if the path is not absolute). The absolute path cannot be DOS-style,
23668 # because $ac_f cannot contain `:'.
23669 test -f "$ac_f" ||
23670 case $ac_f in
23671 [\\/$]*) false;;
23672 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23673 esac ||
23674 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
23675 esac
23676 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
23677 as_fn_append ac_file_inputs " '$ac_f'"
23678 done
23680 # Let's still pretend it is `configure' which instantiates (i.e., don't
23681 # use $as_me), people would be surprised to read:
23682 # /* config.h. Generated by config.status. */
23683 configure_input='Generated from '`
23684 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
23685 `' by configure.'
23686 if test x"$ac_file" != x-; then
23687 configure_input="$ac_file. $configure_input"
23688 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
23689 $as_echo "$as_me: creating $ac_file" >&6;}
23691 # Neutralize special characters interpreted by sed in replacement strings.
23692 case $configure_input in #(
23693 *\&* | *\|* | *\\* )
23694 ac_sed_conf_input=`$as_echo "$configure_input" |
23695 sed 's/[\\\\&|]/\\\\&/g'`;; #(
23696 *) ac_sed_conf_input=$configure_input;;
23697 esac
23699 case $ac_tag in
23700 *:-:* | *:-) cat >"$tmp/stdin" \
23701 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
23702 esac
23704 esac
23706 ac_dir=`$as_dirname -- "$ac_file" ||
23707 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23708 X"$ac_file" : 'X\(//\)[^/]' \| \
23709 X"$ac_file" : 'X\(//\)$' \| \
23710 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23711 $as_echo X"$ac_file" |
23712 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23713 s//\1/
23716 /^X\(\/\/\)[^/].*/{
23717 s//\1/
23720 /^X\(\/\/\)$/{
23721 s//\1/
23724 /^X\(\/\).*/{
23725 s//\1/
23728 s/.*/./; q'`
23729 as_dir="$ac_dir"; as_fn_mkdir_p
23730 ac_builddir=.
23732 case "$ac_dir" in
23733 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23735 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
23736 # A ".." for each directory in $ac_dir_suffix.
23737 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
23738 case $ac_top_builddir_sub in
23739 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23740 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23741 esac ;;
23742 esac
23743 ac_abs_top_builddir=$ac_pwd
23744 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23745 # for backward compatibility:
23746 ac_top_builddir=$ac_top_build_prefix
23748 case $srcdir in
23749 .) # We are building in place.
23750 ac_srcdir=.
23751 ac_top_srcdir=$ac_top_builddir_sub
23752 ac_abs_top_srcdir=$ac_pwd ;;
23753 [\\/]* | ?:[\\/]* ) # Absolute name.
23754 ac_srcdir=$srcdir$ac_dir_suffix;
23755 ac_top_srcdir=$srcdir
23756 ac_abs_top_srcdir=$srcdir ;;
23757 *) # Relative name.
23758 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23759 ac_top_srcdir=$ac_top_build_prefix$srcdir
23760 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23761 esac
23762 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23765 case $ac_mode in
23768 # CONFIG_FILE
23771 case $INSTALL in
23772 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23773 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23774 esac
23775 ac_MKDIR_P=$MKDIR_P
23776 case $MKDIR_P in
23777 [\\/$]* | ?:[\\/]* ) ;;
23778 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
23779 esac
23780 _ACEOF
23782 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23783 # If the template does not know about datarootdir, expand it.
23784 # FIXME: This hack should be removed a few years after 2.60.
23785 ac_datarootdir_hack=; ac_datarootdir_seen=
23786 ac_sed_dataroot='
23787 /datarootdir/ {
23791 /@datadir@/p
23792 /@docdir@/p
23793 /@infodir@/p
23794 /@localedir@/p
23795 /@mandir@/p'
23796 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
23797 *datarootdir*) ac_datarootdir_seen=yes;;
23798 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23799 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23800 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23801 _ACEOF
23802 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23803 ac_datarootdir_hack='
23804 s&@datadir@&$datadir&g
23805 s&@docdir@&$docdir&g
23806 s&@infodir@&$infodir&g
23807 s&@localedir@&$localedir&g
23808 s&@mandir@&$mandir&g
23809 s&\\\${datarootdir}&$datarootdir&g' ;;
23810 esac
23811 _ACEOF
23813 # Neutralize VPATH when `$srcdir' = `.'.
23814 # Shell code in configure.ac might set extrasub.
23815 # FIXME: do we really want to maintain this feature?
23816 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23817 ac_sed_extra="$ac_vpsub
23818 $extrasub
23819 _ACEOF
23820 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23822 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23823 s|@configure_input@|$ac_sed_conf_input|;t t
23824 s&@top_builddir@&$ac_top_builddir_sub&;t t
23825 s&@top_build_prefix@&$ac_top_build_prefix&;t t
23826 s&@srcdir@&$ac_srcdir&;t t
23827 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23828 s&@top_srcdir@&$ac_top_srcdir&;t t
23829 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23830 s&@builddir@&$ac_builddir&;t t
23831 s&@abs_builddir@&$ac_abs_builddir&;t t
23832 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23833 s&@INSTALL@&$ac_INSTALL&;t t
23834 s&@MKDIR_P@&$ac_MKDIR_P&;t t
23835 $ac_datarootdir_hack
23837 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
23838 if $ac_cs_awk_getline; then
23839 $AWK -f "$tmp/subs.awk"
23840 else
23841 $AWK -f "$tmp/subs.awk" | $SHELL
23842 fi >$tmp/out \
23843 || as_fn_error "could not create $ac_file" "$LINENO" 5
23845 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23846 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23847 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23848 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23849 which seems to be undefined. Please make sure it is defined." >&5
23850 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23851 which seems to be undefined. Please make sure it is defined." >&2;}
23853 rm -f "$tmp/stdin"
23854 case $ac_file in
23855 -) cat "$tmp/out" && rm -f "$tmp/out";;
23856 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
23857 esac \
23858 || as_fn_error "could not create $ac_file" "$LINENO" 5
23862 # CONFIG_HEADER
23864 if test x"$ac_file" != x-; then
23866 $as_echo "/* $configure_input */" \
23867 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
23868 } >"$tmp/config.h" \
23869 || as_fn_error "could not create $ac_file" "$LINENO" 5
23870 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
23871 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
23872 $as_echo "$as_me: $ac_file is unchanged" >&6;}
23873 else
23874 rm -f "$ac_file"
23875 mv "$tmp/config.h" "$ac_file" \
23876 || as_fn_error "could not create $ac_file" "$LINENO" 5
23878 else
23879 $as_echo "/* $configure_input */" \
23880 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
23881 || as_fn_error "could not create -" "$LINENO" 5
23883 # Compute "$ac_file"'s index in $config_headers.
23884 _am_arg="$ac_file"
23885 _am_stamp_count=1
23886 for _am_header in $config_headers :; do
23887 case $_am_header in
23888 $_am_arg | $_am_arg:* )
23889 break ;;
23891 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23892 esac
23893 done
23894 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
23895 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23896 X"$_am_arg" : 'X\(//\)[^/]' \| \
23897 X"$_am_arg" : 'X\(//\)$' \| \
23898 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
23899 $as_echo X"$_am_arg" |
23900 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23901 s//\1/
23904 /^X\(\/\/\)[^/].*/{
23905 s//\1/
23908 /^X\(\/\/\)$/{
23909 s//\1/
23912 /^X\(\/\).*/{
23913 s//\1/
23916 s/.*/./; q'`/stamp-h$_am_stamp_count
23919 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
23920 $as_echo "$as_me: executing $ac_file commands" >&6;}
23922 esac
23925 case $ac_file$ac_mode in
23926 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
23927 # Autoconf 2.62 quotes --file arguments for eval, but not when files
23928 # are listed without --file. Let's play safe and only enable the eval
23929 # if we detect the quoting.
23930 case $CONFIG_FILES in
23931 *\'*) eval set x "$CONFIG_FILES" ;;
23932 *) set x $CONFIG_FILES ;;
23933 esac
23934 shift
23935 for mf
23937 # Strip MF so we end up with the name of the file.
23938 mf=`echo "$mf" | sed -e 's/:.*$//'`
23939 # Check whether this is an Automake generated Makefile or not.
23940 # We used to match only the files named `Makefile.in', but
23941 # some people rename them; so instead we look at the file content.
23942 # Grep'ing the first line is not enough: some people post-process
23943 # each Makefile.in and add a new line on top of each file to say so.
23944 # Grep'ing the whole file is not good either: AIX grep has a line
23945 # limit of 2048, but all sed's we know have understand at least 4000.
23946 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
23947 dirpart=`$as_dirname -- "$mf" ||
23948 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23949 X"$mf" : 'X\(//\)[^/]' \| \
23950 X"$mf" : 'X\(//\)$' \| \
23951 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
23952 $as_echo X"$mf" |
23953 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23954 s//\1/
23957 /^X\(\/\/\)[^/].*/{
23958 s//\1/
23961 /^X\(\/\/\)$/{
23962 s//\1/
23965 /^X\(\/\).*/{
23966 s//\1/
23969 s/.*/./; q'`
23970 else
23971 continue
23973 # Extract the definition of DEPDIR, am__include, and am__quote
23974 # from the Makefile without running `make'.
23975 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23976 test -z "$DEPDIR" && continue
23977 am__include=`sed -n 's/^am__include = //p' < "$mf"`
23978 test -z "am__include" && continue
23979 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23980 # When using ansi2knr, U may be empty or an underscore; expand it
23981 U=`sed -n 's/^U = //p' < "$mf"`
23982 # Find all dependency output files, they are included files with
23983 # $(DEPDIR) in their names. We invoke sed twice because it is the
23984 # simplest approach to changing $(DEPDIR) to its actual value in the
23985 # expansion.
23986 for file in `sed -n "
23987 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23988 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23989 # Make sure the directory exists.
23990 test -f "$dirpart/$file" && continue
23991 fdir=`$as_dirname -- "$file" ||
23992 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23993 X"$file" : 'X\(//\)[^/]' \| \
23994 X"$file" : 'X\(//\)$' \| \
23995 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
23996 $as_echo X"$file" |
23997 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23998 s//\1/
24001 /^X\(\/\/\)[^/].*/{
24002 s//\1/
24005 /^X\(\/\/\)$/{
24006 s//\1/
24009 /^X\(\/\).*/{
24010 s//\1/
24013 s/.*/./; q'`
24014 as_dir=$dirpart/$fdir; as_fn_mkdir_p
24015 # echo "creating $dirpart/$file"
24016 echo '# dummy' > "$dirpart/$file"
24017 done
24018 done
24021 "mkdirs":C)
24022 for dir in etc lisp ; do
24023 test -d ${dir} || mkdir ${dir}
24024 done
24026 "epaths":C)
24027 echo creating src/epaths.h
24028 ${MAKE-make} epaths-force
24030 "gdbinit":C)
24031 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
24032 echo creating src/.gdbinit
24033 echo source $srcdir/src/.gdbinit > src/.gdbinit
24037 esac
24038 done # for ac_tag
24041 as_fn_exit 0
24042 _ACEOF
24043 ac_clean_files=$ac_clean_files_save
24045 test $ac_write_fail = 0 ||
24046 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
24049 # configure is writing to config.log, and then calls config.status.
24050 # config.status does its own redirection, appending to config.log.
24051 # Unfortunately, on DOS this fails, as config.log is still kept open
24052 # by configure, so config.status won't be able to write to it; its
24053 # output is simply discarded. So we exec the FD to /dev/null,
24054 # effectively closing config.log, so it can be properly (re)opened and
24055 # appended to by config.status. When coming back to configure, we
24056 # need to make the FD available again.
24057 if test "$no_create" != yes; then
24058 ac_cs_success=:
24059 ac_config_status_args=
24060 test "$silent" = yes &&
24061 ac_config_status_args="$ac_config_status_args --quiet"
24062 exec 5>/dev/null
24063 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24064 exec 5>>config.log
24065 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24066 # would make configure fail if this is the last instruction.
24067 $ac_cs_success || as_fn_exit $?
24069 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
24070 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
24071 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}