Implement default help-echo for mode line.
[emacs.git] / autogen / configure
blobe2bbe20b15fecd7dd342e900080f4bc6d5adb1a3
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for emacs 24.1.50.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
8 # Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
32 esac
36 as_nl='
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
91 # Find who we are. Look in the path if we contain no directory separator.
92 case $0 in #((
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
97 IFS=$as_save_IFS
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100 done
101 IFS=$as_save_IFS
104 esac
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
108 as_myself=$0
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112 exit 1
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136 if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 emulate sh
139 NULLCMD=:
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 setopt NO_GLOB_SUBST
144 else
145 case \`(set -o) 2>/dev/null\` in #(
146 *posix*) :
147 set -o posix ;; #(
148 *) :
150 esac
153 as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
159 exitcode=0
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
166 else
167 exitcode=1; echo positional parameters were not saved.
169 test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev/null; then :
176 as_have_required=yes
177 else
178 as_have_required=no
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
182 else
183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184 as_found=false
185 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
187 IFS=$as_save_IFS
188 test -z "$as_dir" && as_dir=.
189 as_found=:
190 case $as_dir in #(
192 for as_base in sh bash ksh sh5; do
193 # Try only shells that exist, to save several forks.
194 as_shell=$as_dir/$as_base
195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 CONFIG_SHELL=$as_shell as_have_required=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 break 2
202 done;;
203 esac
204 as_found=false
205 done
206 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208 CONFIG_SHELL=$SHELL as_have_required=yes
209 fi; }
210 IFS=$as_save_IFS
213 if test "x$CONFIG_SHELL" != x; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
217 BASH_ENV=/dev/null
218 ENV=/dev/null
219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220 export CONFIG_SHELL
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224 if test x$as_have_required = xno; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x${ZSH_VERSION+set} = xset ; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230 else
231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232 $0: including any error possibly output before this
233 $0: message. Then install a modern shell, or manually run
234 $0: the script under such a shell if you do have one."
236 exit 1
240 SHELL=${CONFIG_SHELL-/bin/sh}
241 export SHELL
242 # Unset more variables known to interfere with behavior of common tools.
243 CLICOLOR_FORCE= GREP_OPTIONS=
244 unset CLICOLOR_FORCE GREP_OPTIONS
246 ## --------------------- ##
247 ## M4sh Shell Functions. ##
248 ## --------------------- ##
249 # as_fn_unset VAR
250 # ---------------
251 # Portably unset VAR.
252 as_fn_unset ()
254 { eval $1=; unset $1;}
256 as_unset=as_fn_unset
258 # as_fn_set_status STATUS
259 # -----------------------
260 # Set $? to STATUS, without forking.
261 as_fn_set_status ()
263 return $1
264 } # as_fn_set_status
266 # as_fn_exit STATUS
267 # -----------------
268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
269 as_fn_exit ()
271 set +e
272 as_fn_set_status $1
273 exit $1
274 } # as_fn_exit
276 # as_fn_mkdir_p
277 # -------------
278 # Create "$as_dir" as a directory, including parents if necessary.
279 as_fn_mkdir_p ()
282 case $as_dir in #(
283 -*) as_dir=./$as_dir;;
284 esac
285 test -d "$as_dir" || eval $as_mkdir_p || {
286 as_dirs=
287 while :; do
288 case $as_dir in #(
289 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290 *) as_qdir=$as_dir;;
291 esac
292 as_dirs="'$as_qdir' $as_dirs"
293 as_dir=`$as_dirname -- "$as_dir" ||
294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295 X"$as_dir" : 'X\(//\)[^/]' \| \
296 X"$as_dir" : 'X\(//\)$' \| \
297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298 $as_echo X"$as_dir" |
299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
300 s//\1/
303 /^X\(\/\/\)[^/].*/{
304 s//\1/
307 /^X\(\/\/\)$/{
308 s//\1/
311 /^X\(\/\).*/{
312 s//\1/
315 s/.*/./; q'`
316 test -d "$as_dir" && break
317 done
318 test -z "$as_dirs" || eval "mkdir $as_dirs"
319 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
322 } # as_fn_mkdir_p
323 # as_fn_append VAR VALUE
324 # ----------------------
325 # Append the text in VALUE to the end of the definition contained in VAR. Take
326 # advantage of any shell optimizations that allow amortized linear growth over
327 # repeated appends, instead of the typical quadratic growth present in naive
328 # implementations.
329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330 eval 'as_fn_append ()
332 eval $1+=\$2
334 else
335 as_fn_append ()
337 eval $1=\$$1\$2
339 fi # as_fn_append
341 # as_fn_arith ARG...
342 # ------------------
343 # Perform arithmetic evaluation on the ARGs, and store the result in the
344 # global $as_val. Take advantage of shells that can avoid forks. The arguments
345 # must be portable across $(()) and expr.
346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
347 eval 'as_fn_arith ()
349 as_val=$(( $* ))
351 else
352 as_fn_arith ()
354 as_val=`expr "$@" || test $? -eq 1`
356 fi # as_fn_arith
359 # as_fn_error ERROR [LINENO LOG_FD]
360 # ---------------------------------
361 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363 # script with status $?, using 1 if that was 0.
364 as_fn_error ()
366 as_status=$?; test $as_status -eq 0 && as_status=1
367 if test "$3"; then
368 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
371 $as_echo "$as_me: error: $1" >&2
372 as_fn_exit $as_status
373 } # as_fn_error
375 if expr a : '\(a\)' >/dev/null 2>&1 &&
376 test "X`expr 00001 : '.*\(...\)'`" = X001; then
377 as_expr=expr
378 else
379 as_expr=false
382 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
383 as_basename=basename
384 else
385 as_basename=false
388 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
389 as_dirname=dirname
390 else
391 as_dirname=false
394 as_me=`$as_basename -- "$0" ||
395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396 X"$0" : 'X\(//\)$' \| \
397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
398 $as_echo X/"$0" |
399 sed '/^.*\/\([^/][^/]*\)\/*$/{
400 s//\1/
403 /^X\/\(\/\/\)$/{
404 s//\1/
407 /^X\/\(\/\).*/{
408 s//\1/
411 s/.*/./; q'`
413 # Avoid depending upon Character Ranges.
414 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417 as_cr_digits='0123456789'
418 as_cr_alnum=$as_cr_Letters$as_cr_digits
421 as_lineno_1=$LINENO as_lineno_1a=$LINENO
422 as_lineno_2=$LINENO as_lineno_2a=$LINENO
423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
426 sed -n '
428 /[$]LINENO/=
429 ' <$as_myself |
430 sed '
431 s/[$]LINENO.*/&-/
432 t lineno
434 :lineno
436 :loop
437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
438 t loop
439 s/-\n.*//
440 ' >$as_me.lineno &&
441 chmod +x "$as_me.lineno" ||
442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
444 # Don't try to exec as it changes $[0], causing all sort of problems
445 # (the dirname of $[0] is not the place where we might find the
446 # original and so on. Autoconf is especially sensitive to this).
447 . "./$as_me.lineno"
448 # Exit status is that of the last command.
449 exit
452 ECHO_C= ECHO_N= ECHO_T=
453 case `echo -n x` in #(((((
454 -n*)
455 case `echo 'xy\c'` in
456 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
457 xy) ECHO_C='\c';;
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
459 ECHO_T=' ';;
460 esac;;
462 ECHO_N='-n';;
463 esac
465 rm -f conf$$ conf$$.exe conf$$.file
466 if test -d conf$$.dir; then
467 rm -f conf$$.dir/conf$$.file
468 else
469 rm -f conf$$.dir
470 mkdir conf$$.dir 2>/dev/null
472 if (echo >conf$$.file) 2>/dev/null; then
473 if ln -s conf$$.file conf$$ 2>/dev/null; then
474 as_ln_s='ln -s'
475 # ... but there are two gotchas:
476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478 # In both cases, we have to default to `cp -p'.
479 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
480 as_ln_s='cp -p'
481 elif ln conf$$.file conf$$ 2>/dev/null; then
482 as_ln_s=ln
483 else
484 as_ln_s='cp -p'
486 else
487 as_ln_s='cp -p'
489 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490 rmdir conf$$.dir 2>/dev/null
492 if mkdir -p . 2>/dev/null; then
493 as_mkdir_p='mkdir -p "$as_dir"'
494 else
495 test -d ./-p && rmdir ./-p
496 as_mkdir_p=false
499 if test -x / >/dev/null 2>&1; then
500 as_test_x='test -x'
501 else
502 if ls -dL / >/dev/null 2>&1; then
503 as_ls_L_option=L
504 else
505 as_ls_L_option=
507 as_test_x='
508 eval sh -c '\''
509 if test -d "$1"; then
510 test -d "$1/.";
511 else
512 case $1 in #(
513 -*)set "./$1";;
514 esac;
515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516 ???[sx]*):;;*)false;;esac;fi
517 '\'' sh
520 as_executable_p=$as_test_x
522 # Sed expression to map a string onto a valid CPP name.
523 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
525 # Sed expression to map a string onto a valid variable name.
526 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
529 test -n "$DJDIR" || exec 7<&0 </dev/null
530 exec 6>&1
532 # Name of the host.
533 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
534 # so uname gets run too.
535 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
538 # Initializations.
540 ac_default_prefix=/usr/local
541 ac_clean_files=
542 ac_config_libobj_dir=.
543 LIBOBJS=
544 cross_compiling=no
545 subdirs=
546 MFLAGS=
547 MAKEFLAGS=
549 # Identity of this package.
550 PACKAGE_NAME='emacs'
551 PACKAGE_TARNAME='emacs'
552 PACKAGE_VERSION='24.1.50'
553 PACKAGE_STRING='emacs 24.1.50'
554 PACKAGE_BUGREPORT=''
555 PACKAGE_URL=''
557 ac_unique_file="src/lisp.h"
558 # Factoring default headers for most tests.
559 ac_includes_default="\
560 #include <stdio.h>
561 #ifdef HAVE_SYS_TYPES_H
562 # include <sys/types.h>
563 #endif
564 #ifdef HAVE_SYS_STAT_H
565 # include <sys/stat.h>
566 #endif
567 #ifdef STDC_HEADERS
568 # include <stdlib.h>
569 # include <stddef.h>
570 #else
571 # ifdef HAVE_STDLIB_H
572 # include <stdlib.h>
573 # endif
574 #endif
575 #ifdef HAVE_STRING_H
576 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
577 # include <memory.h>
578 # endif
579 # include <string.h>
580 #endif
581 #ifdef HAVE_STRINGS_H
582 # include <strings.h>
583 #endif
584 #ifdef HAVE_INTTYPES_H
585 # include <inttypes.h>
586 #endif
587 #ifdef HAVE_STDINT_H
588 # include <stdint.h>
589 #endif
590 #ifdef HAVE_UNISTD_H
591 # include <unistd.h>
592 #endif"
594 ac_header_list=
595 ac_func_list=
596 gl_getopt_required=POSIX
597 gl_getopt_required=POSIX
598 ac_subst_vars='gltests_LTLIBOBJS
599 gltests_LIBOBJS
600 gl_LTLIBOBJS
601 gl_LIBOBJS
602 am__EXEEXT_FALSE
603 am__EXEEXT_TRUE
604 LTLIBOBJS
605 LIBOBJS
606 SUBDIR_MAKEFILES_IN
607 LIB_GCC
608 LD_FIRSTFLAG
609 LD_SWITCH_SYSTEM_TEMACS
610 LIBGNU_LTLIBDEPS
611 LIBGNU_LIBDEPS
612 gltests_WITNESS
613 gl_GNULIB_ENABLED_verify_FALSE
614 gl_GNULIB_ENABLED_verify_TRUE
615 gl_GNULIB_ENABLED_strtoull_FALSE
616 gl_GNULIB_ENABLED_strtoull_TRUE
617 gl_GNULIB_ENABLED_strtoll_FALSE
618 gl_GNULIB_ENABLED_strtoll_TRUE
619 gl_GNULIB_ENABLED_stat_FALSE
620 gl_GNULIB_ENABLED_stat_TRUE
621 gl_GNULIB_ENABLED_sigprocmask_FALSE
622 gl_GNULIB_ENABLED_sigprocmask_TRUE
623 gl_GNULIB_ENABLED_pathmax_FALSE
624 gl_GNULIB_ENABLED_pathmax_TRUE
625 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE
626 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE
627 gl_GNULIB_ENABLED_dosname_FALSE
628 gl_GNULIB_ENABLED_dosname_TRUE
629 LTLIBINTL
630 LIBINTL
631 HAVE_UNISTD_H
632 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
633 NEXT_UNISTD_H
634 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
635 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
636 TIME_H_DEFINES_STRUCT_TIMESPEC
637 NEXT_AS_FIRST_DIRECTIVE_TIME_H
638 NEXT_TIME_H
639 WINDOWS_64_BIT_OFF_T
640 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H
641 NEXT_SYS_TYPES_H
642 WINDOWS_64_BIT_ST_SIZE
643 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
644 NEXT_SYS_STAT_H
645 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
646 NEXT_STDLIB_H
647 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
648 NEXT_STDIO_H
649 REPLACE_VSPRINTF
650 REPLACE_VSNPRINTF
651 REPLACE_VPRINTF
652 REPLACE_VFPRINTF
653 REPLACE_VDPRINTF
654 REPLACE_VASPRINTF
655 REPLACE_TMPFILE
656 REPLACE_STDIO_WRITE_FUNCS
657 REPLACE_STDIO_READ_FUNCS
658 REPLACE_SPRINTF
659 REPLACE_SNPRINTF
660 REPLACE_RENAMEAT
661 REPLACE_RENAME
662 REPLACE_REMOVE
663 REPLACE_PRINTF
664 REPLACE_POPEN
665 REPLACE_PERROR
666 REPLACE_OBSTACK_PRINTF
667 REPLACE_GETLINE
668 REPLACE_GETDELIM
669 REPLACE_FTELLO
670 REPLACE_FTELL
671 REPLACE_FSEEKO
672 REPLACE_FSEEK
673 REPLACE_FREOPEN
674 REPLACE_FPURGE
675 REPLACE_FPRINTF
676 REPLACE_FOPEN
677 REPLACE_FFLUSH
678 REPLACE_FDOPEN
679 REPLACE_FCLOSE
680 REPLACE_DPRINTF
681 HAVE_VDPRINTF
682 HAVE_VASPRINTF
683 HAVE_RENAMEAT
684 HAVE_POPEN
685 HAVE_PCLOSE
686 HAVE_FTELLO
687 HAVE_FSEEKO
688 HAVE_DPRINTF
689 HAVE_DECL_VSNPRINTF
690 HAVE_DECL_SNPRINTF
691 HAVE_DECL_OBSTACK_PRINTF
692 HAVE_DECL_GETLINE
693 HAVE_DECL_GETDELIM
694 HAVE_DECL_FTELLO
695 HAVE_DECL_FSEEKO
696 HAVE_DECL_FPURGE
697 GNULIB_VSPRINTF_POSIX
698 GNULIB_VSNPRINTF
699 GNULIB_VPRINTF_POSIX
700 GNULIB_VPRINTF
701 GNULIB_VFPRINTF_POSIX
702 GNULIB_VFPRINTF
703 GNULIB_VDPRINTF
704 GNULIB_VSCANF
705 GNULIB_VFSCANF
706 GNULIB_VASPRINTF
707 GNULIB_TMPFILE
708 GNULIB_STDIO_H_SIGPIPE
709 GNULIB_STDIO_H_NONBLOCKING
710 GNULIB_SPRINTF_POSIX
711 GNULIB_SNPRINTF
712 GNULIB_SCANF
713 GNULIB_RENAMEAT
714 GNULIB_RENAME
715 GNULIB_REMOVE
716 GNULIB_PUTS
717 GNULIB_PUTCHAR
718 GNULIB_PUTC
719 GNULIB_PRINTF_POSIX
720 GNULIB_PRINTF
721 GNULIB_POPEN
722 GNULIB_PERROR
723 GNULIB_PCLOSE
724 GNULIB_OBSTACK_PRINTF_POSIX
725 GNULIB_OBSTACK_PRINTF
726 GNULIB_GETLINE
727 GNULIB_GETDELIM
728 GNULIB_GETCHAR
729 GNULIB_GETC
730 GNULIB_FWRITE
731 GNULIB_FTELLO
732 GNULIB_FTELL
733 GNULIB_FSEEKO
734 GNULIB_FSEEK
735 GNULIB_FSCANF
736 GNULIB_FREOPEN
737 GNULIB_FREAD
738 GNULIB_FPUTS
739 GNULIB_FPUTC
740 GNULIB_FPURGE
741 GNULIB_FPRINTF_POSIX
742 GNULIB_FPRINTF
743 GNULIB_FOPEN
744 GNULIB_FGETS
745 GNULIB_FGETC
746 GNULIB_FFLUSH
747 GNULIB_FDOPEN
748 GNULIB_FCLOSE
749 GNULIB_DPRINTF
750 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
751 NEXT_STDDEF_H
752 GL_GENERATE_STDDEF_H_FALSE
753 GL_GENERATE_STDDEF_H_TRUE
754 STDDEF_H
755 HAVE_WCHAR_T
756 REPLACE_NULL
757 HAVE__BOOL
758 GL_GENERATE_STDBOOL_H_FALSE
759 GL_GENERATE_STDBOOL_H_TRUE
760 STDBOOL_H
761 GL_GENERATE_STDARG_H_FALSE
762 GL_GENERATE_STDARG_H_TRUE
763 STDARG_H
764 NEXT_AS_FIRST_DIRECTIVE_STDARG_H
765 NEXT_STDARG_H
766 GL_GENERATE_STDALIGN_H_FALSE
767 GL_GENERATE_STDALIGN_H_TRUE
768 STDALIGN_H
769 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
770 NEXT_SIGNAL_H
771 LIB_PTHREAD_SIGMASK
772 REPLACE_RAISE
773 REPLACE_PTHREAD_SIGMASK
774 HAVE_SIGHANDLER_T
775 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
776 HAVE_STRUCT_SIGACTION_SA_SIGACTION
777 HAVE_SIGACTION
778 HAVE_SIGINFO_T
779 HAVE_SIGSET_T
780 HAVE_RAISE
781 HAVE_PTHREAD_SIGMASK
782 HAVE_POSIX_SIGNALBLOCKING
783 GNULIB_SIGACTION
784 GNULIB_SIGPROCMASK
785 GNULIB_SIGNAL_H_SIGPIPE
786 GNULIB_RAISE
787 GNULIB_PTHREAD_SIGMASK
788 REPLACE_TIMEGM
789 REPLACE_NANOSLEEP
790 REPLACE_MKTIME
791 REPLACE_LOCALTIME_R
792 HAVE_TIMEGM
793 HAVE_STRPTIME
794 HAVE_NANOSLEEP
795 HAVE_DECL_LOCALTIME_R
796 GNULIB_TIME_R
797 GNULIB_TIMEGM
798 GNULIB_STRPTIME
799 GNULIB_NANOSLEEP
800 GNULIB_MKTIME
801 REPLACE_UTIMENSAT
802 REPLACE_STAT
803 REPLACE_MKNOD
804 REPLACE_MKFIFO
805 REPLACE_MKDIR
806 REPLACE_LSTAT
807 REPLACE_FUTIMENS
808 REPLACE_FSTATAT
809 REPLACE_FSTAT
810 HAVE_UTIMENSAT
811 HAVE_MKNODAT
812 HAVE_MKNOD
813 HAVE_MKFIFOAT
814 HAVE_MKFIFO
815 HAVE_MKDIRAT
816 HAVE_LSTAT
817 HAVE_LCHMOD
818 HAVE_FUTIMENS
819 HAVE_FSTATAT
820 HAVE_FCHMODAT
821 GNULIB_UTIMENSAT
822 GNULIB_STAT
823 GNULIB_MKNODAT
824 GNULIB_MKNOD
825 GNULIB_MKFIFOAT
826 GNULIB_MKFIFO
827 GNULIB_MKDIRAT
828 GNULIB_LSTAT
829 GNULIB_LCHMOD
830 GNULIB_FUTIMENS
831 GNULIB_FSTATAT
832 GNULIB_FSTAT
833 GNULIB_FCHMODAT
834 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
835 NEXT_INTTYPES_H
836 UINT64_MAX_EQ_ULONG_MAX
837 UINT32_MAX_LT_UINTMAX_MAX
838 PRIPTR_PREFIX
839 PRI_MACROS_BROKEN
840 INT64_MAX_EQ_LONG_MAX
841 INT32_MAX_LT_INTMAX_MAX
842 REPLACE_STRTOIMAX
843 HAVE_DECL_STRTOUMAX
844 HAVE_DECL_STRTOIMAX
845 HAVE_DECL_IMAXDIV
846 HAVE_DECL_IMAXABS
847 GNULIB_STRTOUMAX
848 GNULIB_STRTOIMAX
849 GNULIB_IMAXDIV
850 GNULIB_IMAXABS
851 GL_GENERATE_STDINT_H_FALSE
852 GL_GENERATE_STDINT_H_TRUE
853 STDINT_H
854 WINT_T_SUFFIX
855 WCHAR_T_SUFFIX
856 SIG_ATOMIC_T_SUFFIX
857 SIZE_T_SUFFIX
858 PTRDIFF_T_SUFFIX
859 HAVE_SIGNED_WINT_T
860 HAVE_SIGNED_WCHAR_T
861 HAVE_SIGNED_SIG_ATOMIC_T
862 BITSIZEOF_WINT_T
863 BITSIZEOF_WCHAR_T
864 BITSIZEOF_SIG_ATOMIC_T
865 BITSIZEOF_SIZE_T
866 BITSIZEOF_PTRDIFF_T
867 APPLE_UNIVERSAL_BUILD
868 HAVE_SYS_BITYPES_H
869 HAVE_SYS_INTTYPES_H
870 HAVE_STDINT_H
871 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
872 NEXT_STDINT_H
873 HAVE_SYS_TYPES_H
874 HAVE_INTTYPES_H
875 HAVE_WCHAR_H
876 HAVE_UNSIGNED_LONG_LONG_INT
877 HAVE_LONG_LONG_INT
878 GNULIB_GL_UNISTD_H_GETOPT
879 GETOPT_H
880 HAVE_GETOPT_H
881 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
882 NEXT_GETOPT_H
883 PRAGMA_COLUMNS
884 PRAGMA_SYSTEM_HEADER
885 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
886 INCLUDE_NEXT
887 GETLOADAVG_LIBS
888 REPLACE_WCTOMB
889 REPLACE_UNSETENV
890 REPLACE_STRTOD
891 REPLACE_SETENV
892 REPLACE_REALPATH
893 REPLACE_REALLOC
894 REPLACE_RANDOM_R
895 REPLACE_PUTENV
896 REPLACE_PTSNAME_R
897 REPLACE_MKSTEMP
898 REPLACE_MBTOWC
899 REPLACE_MALLOC
900 REPLACE_CANONICALIZE_FILE_NAME
901 REPLACE_CALLOC
902 HAVE_DECL_UNSETENV
903 HAVE_UNLOCKPT
904 HAVE_SYS_LOADAVG_H
905 HAVE_STRUCT_RANDOM_DATA
906 HAVE_STRTOULL
907 HAVE_STRTOLL
908 HAVE_STRTOD
909 HAVE_DECL_SETENV
910 HAVE_SETENV
911 HAVE_RPMATCH
912 HAVE_REALPATH
913 HAVE_RANDOM_R
914 HAVE_RANDOM_H
915 HAVE_RANDOM
916 HAVE_PTSNAME_R
917 HAVE_PTSNAME
918 HAVE_POSIX_OPENPT
919 HAVE_MKSTEMPS
920 HAVE_MKSTEMP
921 HAVE_MKOSTEMPS
922 HAVE_MKOSTEMP
923 HAVE_MKDTEMP
924 HAVE_GRANTPT
925 HAVE_GETSUBOPT
926 HAVE_DECL_GETLOADAVG
927 HAVE_CANONICALIZE_FILE_NAME
928 HAVE_ATOLL
929 HAVE__EXIT
930 GNULIB_WCTOMB
931 GNULIB_UNSETENV
932 GNULIB_UNLOCKPT
933 GNULIB_SYSTEM_POSIX
934 GNULIB_STRTOULL
935 GNULIB_STRTOLL
936 GNULIB_STRTOD
937 GNULIB_SETENV
938 GNULIB_RPMATCH
939 GNULIB_REALPATH
940 GNULIB_REALLOC_POSIX
941 GNULIB_RANDOM_R
942 GNULIB_RANDOM
943 GNULIB_PUTENV
944 GNULIB_PTSNAME_R
945 GNULIB_PTSNAME
946 GNULIB_POSIX_OPENPT
947 GNULIB_MKSTEMPS
948 GNULIB_MKSTEMP
949 GNULIB_MKOSTEMPS
950 GNULIB_MKOSTEMP
951 GNULIB_MKDTEMP
952 GNULIB_MBTOWC
953 GNULIB_MALLOC_POSIX
954 GNULIB_GRANTPT
955 GNULIB_GETSUBOPT
956 GNULIB_GETLOADAVG
957 GNULIB_CANONICALIZE_FILE_NAME
958 GNULIB_CALLOC_POSIX
959 GNULIB_ATOLL
960 GNULIB__EXIT
961 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
962 UNISTD_H_HAVE_WINSOCK2_H
963 REPLACE_WRITE
964 REPLACE_USLEEP
965 REPLACE_UNLINKAT
966 REPLACE_UNLINK
967 REPLACE_TTYNAME_R
968 REPLACE_SYMLINK
969 REPLACE_SLEEP
970 REPLACE_RMDIR
971 REPLACE_READLINK
972 REPLACE_READ
973 REPLACE_PWRITE
974 REPLACE_PREAD
975 REPLACE_LSEEK
976 REPLACE_LINKAT
977 REPLACE_LINK
978 REPLACE_LCHOWN
979 REPLACE_ISATTY
980 REPLACE_GETPAGESIZE
981 REPLACE_GETGROUPS
982 REPLACE_GETLOGIN_R
983 REPLACE_GETDOMAINNAME
984 REPLACE_GETCWD
985 REPLACE_FTRUNCATE
986 REPLACE_FCHOWNAT
987 REPLACE_DUP2
988 REPLACE_DUP
989 REPLACE_CLOSE
990 REPLACE_CHOWN
991 HAVE_SYS_PARAM_H
992 HAVE_OS_H
993 HAVE_DECL_TTYNAME_R
994 HAVE_DECL_SETHOSTNAME
995 HAVE_DECL_GETUSERSHELL
996 HAVE_DECL_GETPAGESIZE
997 HAVE_DECL_GETLOGIN_R
998 HAVE_DECL_GETDOMAINNAME
999 HAVE_DECL_FDATASYNC
1000 HAVE_DECL_FCHDIR
1001 HAVE_DECL_ENVIRON
1002 HAVE_USLEEP
1003 HAVE_UNLINKAT
1004 HAVE_SYMLINKAT
1005 HAVE_SYMLINK
1006 HAVE_SLEEP
1007 HAVE_SETHOSTNAME
1008 HAVE_READLINKAT
1009 HAVE_READLINK
1010 HAVE_PWRITE
1011 HAVE_PREAD
1012 HAVE_PIPE2
1013 HAVE_PIPE
1014 HAVE_LINKAT
1015 HAVE_LINK
1016 HAVE_LCHOWN
1017 HAVE_GROUP_MEMBER
1018 HAVE_GETPAGESIZE
1019 HAVE_GETLOGIN
1020 HAVE_GETHOSTNAME
1021 HAVE_GETGROUPS
1022 HAVE_GETDTABLESIZE
1023 HAVE_FTRUNCATE
1024 HAVE_FSYNC
1025 HAVE_FDATASYNC
1026 HAVE_FCHOWNAT
1027 HAVE_FCHDIR
1028 HAVE_FACCESSAT
1029 HAVE_EUIDACCESS
1030 HAVE_DUP3
1031 HAVE_DUP2
1032 HAVE_CHOWN
1033 GNULIB_WRITE
1034 GNULIB_USLEEP
1035 GNULIB_UNLINKAT
1036 GNULIB_UNLINK
1037 GNULIB_UNISTD_H_SIGPIPE
1038 GNULIB_UNISTD_H_NONBLOCKING
1039 GNULIB_TTYNAME_R
1040 GNULIB_SYMLINKAT
1041 GNULIB_SYMLINK
1042 GNULIB_SLEEP
1043 GNULIB_SETHOSTNAME
1044 GNULIB_RMDIR
1045 GNULIB_READLINKAT
1046 GNULIB_READLINK
1047 GNULIB_READ
1048 GNULIB_PWRITE
1049 GNULIB_PREAD
1050 GNULIB_PIPE2
1051 GNULIB_PIPE
1052 GNULIB_LSEEK
1053 GNULIB_LINKAT
1054 GNULIB_LINK
1055 GNULIB_LCHOWN
1056 GNULIB_ISATTY
1057 GNULIB_GROUP_MEMBER
1058 GNULIB_GETUSERSHELL
1059 GNULIB_GETPAGESIZE
1060 GNULIB_GETLOGIN_R
1061 GNULIB_GETLOGIN
1062 GNULIB_GETHOSTNAME
1063 GNULIB_GETGROUPS
1064 GNULIB_GETDTABLESIZE
1065 GNULIB_GETDOMAINNAME
1066 GNULIB_GETCWD
1067 GNULIB_FTRUNCATE
1068 GNULIB_FSYNC
1069 GNULIB_FDATASYNC
1070 GNULIB_FCHOWNAT
1071 GNULIB_FCHDIR
1072 GNULIB_FACCESSAT
1073 GNULIB_EUIDACCESS
1074 GNULIB_ENVIRON
1075 GNULIB_DUP3
1076 GNULIB_DUP2
1077 GNULIB_DUP
1078 GNULIB_CLOSE
1079 GNULIB_CHOWN
1080 GNULIB_CHDIR
1081 GL_GENERATE_ALLOCA_H_FALSE
1082 GL_GENERATE_ALLOCA_H_TRUE
1083 ALLOCA_H
1084 ALLOCA
1085 GL_COND_LIBTOOL_FALSE
1086 GL_COND_LIBTOOL_TRUE
1087 POST_ALLOC_OBJ
1088 PRE_ALLOC_OBJ
1089 CYGWIN_OBJ
1090 RALLOC_OBJ
1091 OLDXMENU_DEPS
1092 LIBX_OTHER
1093 LIBXMENU
1094 OLDXMENU
1095 OLDXMENU_TARGET
1096 LIBXT_OTHER
1097 TOOLKIT_LIBW
1098 WIDGET_OBJ
1099 XOBJ
1100 XMENU_OBJ
1101 FONT_OBJ
1102 OTHER_FILES
1103 GNU_OBJC_CFLAGS
1104 ns_appsrc
1105 ns_appresdir
1106 ns_appbindir
1107 ns_appdir
1108 S_FILE
1109 X_TOOLKIT_TYPE
1110 GNUSTEP_CFLAGS
1111 C_SWITCH_X_SITE
1112 LD_SWITCH_X_SITE
1113 gameuser
1114 gamedir
1115 bitmapdir
1116 archlibdir
1117 etcdir
1118 x_default_search_path
1119 lisppath
1120 locallisppath
1121 leimdir
1122 lispdir
1123 srcdir
1124 canonical
1125 configuration
1126 version
1127 KRB4LIB
1128 DESLIB
1129 KRB5LIB
1130 CRYPTOLIB
1131 COM_ERRLIB
1132 LIBRESOLV
1133 LIBHESIOD
1134 TERMCAP_OBJ
1135 LIBS_TERMCAP
1136 BLESSMAIL_TARGET
1137 LIBS_MAIL
1138 liblockfile
1139 LIBXML2_LIBS
1140 LIBXML2_CFLAGS
1141 LIBXSM
1142 LIBGPM
1143 LIBGIF
1144 LIBTIFF
1145 LIBPNG
1146 LIBJPEG
1147 LIBXPM
1148 M17N_FLT_LIBS
1149 M17N_FLT_CFLAGS
1150 LIBOTF_LIBS
1151 LIBOTF_CFLAGS
1152 FREETYPE_LIBS
1153 FREETYPE_CFLAGS
1154 XFT_LIBS
1155 XFT_CFLAGS
1156 FONTCONFIG_LIBS
1157 FONTCONFIG_CFLAGS
1158 LIBXMU
1159 LIBXTR6
1160 LIBGNUTLS_LIBS
1161 LIBGNUTLS_CFLAGS
1162 LIBSELINUX_LIBS
1163 SETTINGS_LIBS
1164 SETTINGS_CFLAGS
1165 GCONF_LIBS
1166 GCONF_CFLAGS
1167 GSETTINGS_LIBS
1168 GSETTINGS_CFLAGS
1169 DBUS_OBJ
1170 DBUS_LIBS
1171 DBUS_CFLAGS
1172 GTK_OBJ
1173 GTK_LIBS
1174 GTK_CFLAGS
1175 IMAGEMAGICK_LIBS
1176 IMAGEMAGICK_CFLAGS
1177 RSVG_LIBS
1178 RSVG_CFLAGS
1179 LIB_PTHREAD
1180 VMLIMIT_OBJ
1181 GMALLOC_OBJ
1182 HAVE_XSERVER
1183 LIB_STANDARD
1184 NS_OBJC_OBJ
1185 NS_OBJ
1186 ns_self_contained
1187 INSTALL_ARCH_INDEP_EXTRA
1188 TEMACS_LDFLAGS2
1189 LD_SWITCH_X_SITE_RPATH
1190 XMKMF
1191 DEPFLAGS
1192 MKDEPDIR
1193 CFLAGS_SOUND
1194 ALSA_LIBS
1195 ALSA_CFLAGS
1196 LIBSOUND
1197 PKG_CONFIG
1198 CRT_DIR
1199 START_FILES
1200 LIB_MATH
1201 LIBS_SYSTEM
1202 C_SWITCH_SYSTEM
1203 UNEXEC_OBJ
1204 C_SWITCH_MACHINE
1205 LD_SWITCH_SYSTEM
1206 CANNOT_DUMP
1207 INFO_OPTS
1208 INFO_EXT
1209 HAVE_MAKEINFO
1210 GZIP_PROG
1211 INSTALL_INFO
1212 GNULIB_WARN_CFLAGS
1213 WARN_CFLAGS
1214 WERROR_CFLAGS
1215 RANLIB
1216 ARFLAGS
1218 EGREP
1219 GREP
1221 am__fastdepCC_FALSE
1222 am__fastdepCC_TRUE
1223 CCDEPMODE
1224 AMDEPBACKSLASH
1225 AMDEP_FALSE
1226 AMDEP_TRUE
1227 am__quote
1228 am__include
1229 DEPDIR
1230 OBJEXT
1231 EXEEXT
1232 ac_ct_CC
1233 CPPFLAGS
1234 LDFLAGS
1235 CFLAGS
1237 host_os
1238 host_vendor
1239 host_cpu
1240 host
1241 build_os
1242 build_vendor
1243 build_cpu
1244 build
1245 PROFILING_CFLAGS
1246 GZIP_INFO
1247 cache_file
1248 am__untar
1249 am__tar
1250 AMTAR
1251 am__leading_dot
1252 SET_MAKE
1254 mkdir_p
1255 MKDIR_P
1256 INSTALL_STRIP_PROGRAM
1257 STRIP
1258 install_sh
1259 MAKEINFO
1260 AUTOHEADER
1261 AUTOMAKE
1262 AUTOCONF
1263 ACLOCAL
1264 VERSION
1265 PACKAGE
1266 CYGPATH_W
1267 am__isrc
1268 INSTALL_DATA
1269 INSTALL_SCRIPT
1270 INSTALL_PROGRAM
1271 target_alias
1272 host_alias
1273 build_alias
1274 LIBS
1275 ECHO_T
1276 ECHO_N
1277 ECHO_C
1278 DEFS
1279 mandir
1280 localedir
1281 libdir
1282 psdir
1283 pdfdir
1284 dvidir
1285 htmldir
1286 infodir
1287 docdir
1288 oldincludedir
1289 includedir
1290 localstatedir
1291 sharedstatedir
1292 sysconfdir
1293 datadir
1294 datarootdir
1295 libexecdir
1296 sbindir
1297 bindir
1298 program_transform_name
1299 prefix
1300 exec_prefix
1301 PACKAGE_URL
1302 PACKAGE_BUGREPORT
1303 PACKAGE_STRING
1304 PACKAGE_VERSION
1305 PACKAGE_TARNAME
1306 PACKAGE_NAME
1307 PATH_SEPARATOR
1308 SHELL'
1309 ac_subst_files='deps_frag
1310 lisp_frag
1311 ns_frag'
1312 ac_user_opts='
1313 enable_option_checking
1314 with_pop
1315 with_kerberos
1316 with_kerberos5
1317 with_hesiod
1318 with_mmdf
1319 with_mail_unlink
1320 with_mailhost
1321 with_sound
1322 with_sync_input
1323 with_x_toolkit
1324 with_wide_int
1325 with_xpm
1326 with_jpeg
1327 with_tiff
1328 with_gif
1329 with_png
1330 with_rsvg
1331 with_xml2
1332 with_imagemagick
1333 with_xft
1334 with_libotf
1335 with_m17n_flt
1336 with_toolkit_scroll_bars
1337 with_xaw3d
1338 with_xim
1339 with_ns
1340 with_gpm
1341 with_dbus
1342 with_gconf
1343 with_gsettings
1344 with_selinux
1345 with_gnutls
1346 with_makeinfo
1347 with_compress_info
1348 with_pkg_config_prog
1349 with_crt_dir
1350 with_gameuser
1351 with_gnustep_conf
1352 enable_ns_self_contained
1353 enable_asserts
1354 enable_locallisppath
1355 enable_checking
1356 enable_use_lisp_union_type
1357 enable_profiling
1358 enable_autodepend
1359 enable_dependency_tracking
1360 enable_largefile
1361 enable_gcc_warnings
1362 with_x
1364 ac_precious_vars='build_alias
1365 host_alias
1366 target_alias
1368 CFLAGS
1369 LDFLAGS
1370 LIBS
1371 CPPFLAGS
1373 XMKMF'
1376 # Initialize some variables set by options.
1377 ac_init_help=
1378 ac_init_version=false
1379 ac_unrecognized_opts=
1380 ac_unrecognized_sep=
1381 # The variables have the same names as the options, with
1382 # dashes changed to underlines.
1383 cache_file=/dev/null
1384 exec_prefix=NONE
1385 no_create=
1386 no_recursion=
1387 prefix=NONE
1388 program_prefix=NONE
1389 program_suffix=NONE
1390 program_transform_name=s,x,x,
1391 silent=
1392 site=
1393 srcdir=
1394 verbose=
1395 x_includes=NONE
1396 x_libraries=NONE
1398 # Installation directory options.
1399 # These are left unexpanded so users can "make install exec_prefix=/foo"
1400 # and all the variables that are supposed to be based on exec_prefix
1401 # by default will actually change.
1402 # Use braces instead of parens because sh, perl, etc. also accept them.
1403 # (The list follows the same order as the GNU Coding Standards.)
1404 bindir='${exec_prefix}/bin'
1405 sbindir='${exec_prefix}/sbin'
1406 libexecdir='${exec_prefix}/libexec'
1407 datarootdir='${prefix}/share'
1408 datadir='${datarootdir}'
1409 sysconfdir='${prefix}/etc'
1410 sharedstatedir='${prefix}/com'
1411 localstatedir='${prefix}/var'
1412 includedir='${prefix}/include'
1413 oldincludedir='/usr/include'
1414 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1415 infodir='${datarootdir}/info'
1416 htmldir='${docdir}'
1417 dvidir='${docdir}'
1418 pdfdir='${docdir}'
1419 psdir='${docdir}'
1420 libdir='${exec_prefix}/lib'
1421 localedir='${datarootdir}/locale'
1422 mandir='${datarootdir}/man'
1424 ac_prev=
1425 ac_dashdash=
1426 for ac_option
1428 # If the previous option needs an argument, assign it.
1429 if test -n "$ac_prev"; then
1430 eval $ac_prev=\$ac_option
1431 ac_prev=
1432 continue
1435 case $ac_option in
1436 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1437 *) ac_optarg=yes ;;
1438 esac
1440 # Accept the important Cygnus configure options, so we can diagnose typos.
1442 case $ac_dashdash$ac_option in
1444 ac_dashdash=yes ;;
1446 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1447 ac_prev=bindir ;;
1448 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1449 bindir=$ac_optarg ;;
1451 -build | --build | --buil | --bui | --bu)
1452 ac_prev=build_alias ;;
1453 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1454 build_alias=$ac_optarg ;;
1456 -cache-file | --cache-file | --cache-fil | --cache-fi \
1457 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1458 ac_prev=cache_file ;;
1459 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1460 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1461 cache_file=$ac_optarg ;;
1463 --config-cache | -C)
1464 cache_file=config.cache ;;
1466 -datadir | --datadir | --datadi | --datad)
1467 ac_prev=datadir ;;
1468 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1469 datadir=$ac_optarg ;;
1471 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1472 | --dataroo | --dataro | --datar)
1473 ac_prev=datarootdir ;;
1474 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1475 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1476 datarootdir=$ac_optarg ;;
1478 -disable-* | --disable-*)
1479 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1480 # Reject names that are not valid shell variable names.
1481 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1482 as_fn_error "invalid feature name: $ac_useropt"
1483 ac_useropt_orig=$ac_useropt
1484 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1485 case $ac_user_opts in
1487 "enable_$ac_useropt"
1488 "*) ;;
1489 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1490 ac_unrecognized_sep=', ';;
1491 esac
1492 eval enable_$ac_useropt=no ;;
1494 -docdir | --docdir | --docdi | --doc | --do)
1495 ac_prev=docdir ;;
1496 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1497 docdir=$ac_optarg ;;
1499 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1500 ac_prev=dvidir ;;
1501 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1502 dvidir=$ac_optarg ;;
1504 -enable-* | --enable-*)
1505 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1506 # Reject names that are not valid shell variable names.
1507 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1508 as_fn_error "invalid feature name: $ac_useropt"
1509 ac_useropt_orig=$ac_useropt
1510 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1511 case $ac_user_opts in
1513 "enable_$ac_useropt"
1514 "*) ;;
1515 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1516 ac_unrecognized_sep=', ';;
1517 esac
1518 eval enable_$ac_useropt=\$ac_optarg ;;
1520 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1521 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1522 | --exec | --exe | --ex)
1523 ac_prev=exec_prefix ;;
1524 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1525 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1526 | --exec=* | --exe=* | --ex=*)
1527 exec_prefix=$ac_optarg ;;
1529 -gas | --gas | --ga | --g)
1530 # Obsolete; use --with-gas.
1531 with_gas=yes ;;
1533 -help | --help | --hel | --he | -h)
1534 ac_init_help=long ;;
1535 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1536 ac_init_help=recursive ;;
1537 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1538 ac_init_help=short ;;
1540 -host | --host | --hos | --ho)
1541 ac_prev=host_alias ;;
1542 -host=* | --host=* | --hos=* | --ho=*)
1543 host_alias=$ac_optarg ;;
1545 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1546 ac_prev=htmldir ;;
1547 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1548 | --ht=*)
1549 htmldir=$ac_optarg ;;
1551 -includedir | --includedir | --includedi | --included | --include \
1552 | --includ | --inclu | --incl | --inc)
1553 ac_prev=includedir ;;
1554 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1555 | --includ=* | --inclu=* | --incl=* | --inc=*)
1556 includedir=$ac_optarg ;;
1558 -infodir | --infodir | --infodi | --infod | --info | --inf)
1559 ac_prev=infodir ;;
1560 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1561 infodir=$ac_optarg ;;
1563 -libdir | --libdir | --libdi | --libd)
1564 ac_prev=libdir ;;
1565 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1566 libdir=$ac_optarg ;;
1568 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1569 | --libexe | --libex | --libe)
1570 ac_prev=libexecdir ;;
1571 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1572 | --libexe=* | --libex=* | --libe=*)
1573 libexecdir=$ac_optarg ;;
1575 -localedir | --localedir | --localedi | --localed | --locale)
1576 ac_prev=localedir ;;
1577 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1578 localedir=$ac_optarg ;;
1580 -localstatedir | --localstatedir | --localstatedi | --localstated \
1581 | --localstate | --localstat | --localsta | --localst | --locals)
1582 ac_prev=localstatedir ;;
1583 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1584 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1585 localstatedir=$ac_optarg ;;
1587 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1588 ac_prev=mandir ;;
1589 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1590 mandir=$ac_optarg ;;
1592 -nfp | --nfp | --nf)
1593 # Obsolete; use --without-fp.
1594 with_fp=no ;;
1596 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1597 | --no-cr | --no-c | -n)
1598 no_create=yes ;;
1600 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1601 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1602 no_recursion=yes ;;
1604 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1605 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1606 | --oldin | --oldi | --old | --ol | --o)
1607 ac_prev=oldincludedir ;;
1608 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1609 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1610 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1611 oldincludedir=$ac_optarg ;;
1613 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1614 ac_prev=prefix ;;
1615 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1616 prefix=$ac_optarg ;;
1618 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1619 | --program-pre | --program-pr | --program-p)
1620 ac_prev=program_prefix ;;
1621 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1622 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1623 program_prefix=$ac_optarg ;;
1625 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1626 | --program-suf | --program-su | --program-s)
1627 ac_prev=program_suffix ;;
1628 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1629 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1630 program_suffix=$ac_optarg ;;
1632 -program-transform-name | --program-transform-name \
1633 | --program-transform-nam | --program-transform-na \
1634 | --program-transform-n | --program-transform- \
1635 | --program-transform | --program-transfor \
1636 | --program-transfo | --program-transf \
1637 | --program-trans | --program-tran \
1638 | --progr-tra | --program-tr | --program-t)
1639 ac_prev=program_transform_name ;;
1640 -program-transform-name=* | --program-transform-name=* \
1641 | --program-transform-nam=* | --program-transform-na=* \
1642 | --program-transform-n=* | --program-transform-=* \
1643 | --program-transform=* | --program-transfor=* \
1644 | --program-transfo=* | --program-transf=* \
1645 | --program-trans=* | --program-tran=* \
1646 | --progr-tra=* | --program-tr=* | --program-t=*)
1647 program_transform_name=$ac_optarg ;;
1649 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1650 ac_prev=pdfdir ;;
1651 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1652 pdfdir=$ac_optarg ;;
1654 -psdir | --psdir | --psdi | --psd | --ps)
1655 ac_prev=psdir ;;
1656 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1657 psdir=$ac_optarg ;;
1659 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1660 | -silent | --silent | --silen | --sile | --sil)
1661 silent=yes ;;
1663 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1664 ac_prev=sbindir ;;
1665 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1666 | --sbi=* | --sb=*)
1667 sbindir=$ac_optarg ;;
1669 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1670 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1671 | --sharedst | --shareds | --shared | --share | --shar \
1672 | --sha | --sh)
1673 ac_prev=sharedstatedir ;;
1674 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1675 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1676 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1677 | --sha=* | --sh=*)
1678 sharedstatedir=$ac_optarg ;;
1680 -site | --site | --sit)
1681 ac_prev=site ;;
1682 -site=* | --site=* | --sit=*)
1683 site=$ac_optarg ;;
1685 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1686 ac_prev=srcdir ;;
1687 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1688 srcdir=$ac_optarg ;;
1690 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1691 | --syscon | --sysco | --sysc | --sys | --sy)
1692 ac_prev=sysconfdir ;;
1693 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1694 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1695 sysconfdir=$ac_optarg ;;
1697 -target | --target | --targe | --targ | --tar | --ta | --t)
1698 ac_prev=target_alias ;;
1699 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1700 target_alias=$ac_optarg ;;
1702 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1703 verbose=yes ;;
1705 -version | --version | --versio | --versi | --vers | -V)
1706 ac_init_version=: ;;
1708 -with-* | --with-*)
1709 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1710 # Reject names that are not valid shell variable names.
1711 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1712 as_fn_error "invalid package name: $ac_useropt"
1713 ac_useropt_orig=$ac_useropt
1714 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1715 case $ac_user_opts in
1717 "with_$ac_useropt"
1718 "*) ;;
1719 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1720 ac_unrecognized_sep=', ';;
1721 esac
1722 eval with_$ac_useropt=\$ac_optarg ;;
1724 -without-* | --without-*)
1725 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1726 # Reject names that are not valid shell variable names.
1727 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1728 as_fn_error "invalid package name: $ac_useropt"
1729 ac_useropt_orig=$ac_useropt
1730 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1731 case $ac_user_opts in
1733 "with_$ac_useropt"
1734 "*) ;;
1735 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1736 ac_unrecognized_sep=', ';;
1737 esac
1738 eval with_$ac_useropt=no ;;
1740 --x)
1741 # Obsolete; use --with-x.
1742 with_x=yes ;;
1744 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1745 | --x-incl | --x-inc | --x-in | --x-i)
1746 ac_prev=x_includes ;;
1747 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1748 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1749 x_includes=$ac_optarg ;;
1751 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1752 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1753 ac_prev=x_libraries ;;
1754 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1755 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1756 x_libraries=$ac_optarg ;;
1758 -*) as_fn_error "unrecognized option: \`$ac_option'
1759 Try \`$0 --help' for more information."
1762 *=*)
1763 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1764 # Reject names that are not valid shell variable names.
1765 case $ac_envvar in #(
1766 '' | [0-9]* | *[!_$as_cr_alnum]* )
1767 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1768 esac
1769 eval $ac_envvar=\$ac_optarg
1770 export $ac_envvar ;;
1773 # FIXME: should be removed in autoconf 3.0.
1774 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1775 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1776 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1777 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1780 esac
1781 done
1783 if test -n "$ac_prev"; then
1784 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1785 as_fn_error "missing argument to $ac_option"
1788 if test -n "$ac_unrecognized_opts"; then
1789 case $enable_option_checking in
1790 no) ;;
1791 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1792 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1793 esac
1796 # Check all directory arguments for consistency.
1797 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1798 datadir sysconfdir sharedstatedir localstatedir includedir \
1799 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1800 libdir localedir mandir
1802 eval ac_val=\$$ac_var
1803 # Remove trailing slashes.
1804 case $ac_val in
1805 */ )
1806 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1807 eval $ac_var=\$ac_val;;
1808 esac
1809 # Be sure to have absolute directory names.
1810 case $ac_val in
1811 [\\/$]* | ?:[\\/]* ) continue;;
1812 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1813 esac
1814 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1815 done
1817 # There might be people who depend on the old broken behavior: `$host'
1818 # used to hold the argument of --host etc.
1819 # FIXME: To remove some day.
1820 build=$build_alias
1821 host=$host_alias
1822 target=$target_alias
1824 # FIXME: To remove some day.
1825 if test "x$host_alias" != x; then
1826 if test "x$build_alias" = x; then
1827 cross_compiling=maybe
1828 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1829 If a cross compiler is detected then cross compile mode will be used." >&2
1830 elif test "x$build_alias" != "x$host_alias"; then
1831 cross_compiling=yes
1835 ac_tool_prefix=
1836 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1838 test "$silent" = yes && exec 6>/dev/null
1841 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1842 ac_ls_di=`ls -di .` &&
1843 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1844 as_fn_error "working directory cannot be determined"
1845 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1846 as_fn_error "pwd does not report name of working directory"
1849 # Find the source files, if location was not specified.
1850 if test -z "$srcdir"; then
1851 ac_srcdir_defaulted=yes
1852 # Try the directory containing this script, then the parent directory.
1853 ac_confdir=`$as_dirname -- "$as_myself" ||
1854 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1855 X"$as_myself" : 'X\(//\)[^/]' \| \
1856 X"$as_myself" : 'X\(//\)$' \| \
1857 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1858 $as_echo X"$as_myself" |
1859 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1860 s//\1/
1863 /^X\(\/\/\)[^/].*/{
1864 s//\1/
1867 /^X\(\/\/\)$/{
1868 s//\1/
1871 /^X\(\/\).*/{
1872 s//\1/
1875 s/.*/./; q'`
1876 srcdir=$ac_confdir
1877 if test ! -r "$srcdir/$ac_unique_file"; then
1878 srcdir=..
1880 else
1881 ac_srcdir_defaulted=no
1883 if test ! -r "$srcdir/$ac_unique_file"; then
1884 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1885 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1887 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1888 ac_abs_confdir=`(
1889 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1890 pwd)`
1891 # When building in place, set srcdir=.
1892 if test "$ac_abs_confdir" = "$ac_pwd"; then
1893 srcdir=.
1895 # Remove unnecessary trailing slashes from srcdir.
1896 # Double slashes in file names in object file debugging info
1897 # mess up M-x gdb in Emacs.
1898 case $srcdir in
1899 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1900 esac
1901 for ac_var in $ac_precious_vars; do
1902 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1903 eval ac_env_${ac_var}_value=\$${ac_var}
1904 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1905 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1906 done
1909 # Report the --help message.
1911 if test "$ac_init_help" = "long"; then
1912 # Omit some internal or obsolete options to make the list less imposing.
1913 # This message is too long to be a string in the A/UX 3.1 sh.
1914 cat <<_ACEOF
1915 \`configure' configures emacs 24.1.50 to adapt to many kinds of systems.
1917 Usage: $0 [OPTION]... [VAR=VALUE]...
1919 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1920 VAR=VALUE. See below for descriptions of some of the useful variables.
1922 Defaults for the options are specified in brackets.
1924 Configuration:
1925 -h, --help display this help and exit
1926 --help=short display options specific to this package
1927 --help=recursive display the short help of all the included packages
1928 -V, --version display version information and exit
1929 -q, --quiet, --silent do not print \`checking...' messages
1930 --cache-file=FILE cache test results in FILE [disabled]
1931 -C, --config-cache alias for \`--cache-file=config.cache'
1932 -n, --no-create do not create output files
1933 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1935 Installation directories:
1936 --prefix=PREFIX install architecture-independent files in PREFIX
1937 [$ac_default_prefix]
1938 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1939 [PREFIX]
1941 By default, \`make install' will install all the files in
1942 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1943 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1944 for instance \`--prefix=\$HOME'.
1946 For better control, use the options below.
1948 Fine tuning of the installation directories:
1949 --bindir=DIR user executables [EPREFIX/bin]
1950 --sbindir=DIR system admin executables [EPREFIX/sbin]
1951 --libexecdir=DIR program executables [EPREFIX/libexec]
1952 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1953 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1954 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1955 --libdir=DIR object code libraries [EPREFIX/lib]
1956 --includedir=DIR C header files [PREFIX/include]
1957 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1958 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1959 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1960 --infodir=DIR info documentation [DATAROOTDIR/info]
1961 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1962 --mandir=DIR man documentation [DATAROOTDIR/man]
1963 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1964 --htmldir=DIR html documentation [DOCDIR]
1965 --dvidir=DIR dvi documentation [DOCDIR]
1966 --pdfdir=DIR pdf documentation [DOCDIR]
1967 --psdir=DIR ps documentation [DOCDIR]
1968 _ACEOF
1970 cat <<\_ACEOF
1972 Program names:
1973 --program-prefix=PREFIX prepend PREFIX to installed program names
1974 --program-suffix=SUFFIX append SUFFIX to installed program names
1975 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1977 X features:
1978 --x-includes=DIR X include files are in DIR
1979 --x-libraries=DIR X library files are in DIR
1981 System types:
1982 --build=BUILD configure for building on BUILD [guessed]
1983 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1984 _ACEOF
1987 if test -n "$ac_init_help"; then
1988 case $ac_init_help in
1989 short | recursive ) echo "Configuration of emacs 24.1.50:";;
1990 esac
1991 cat <<\_ACEOF
1993 Optional Features:
1994 --disable-option-checking ignore unrecognized --enable/--with options
1995 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1996 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1997 --disable-ns-self-contained
1998 disable self contained build under NeXTstep
1999 --enable-asserts compile code with asserts enabled
2000 --enable-locallisppath=PATH
2001 directories Emacs should search for lisp files
2002 specific to this site
2003 --enable-checking[=LIST]
2004 enable expensive run-time checks. With LIST, enable
2005 only specific categories of checks. Categories are:
2006 all,yes,no. Flags are: stringbytes, stringoverrun,
2007 stringfreelist, xmallocoverrun, conslist
2008 --enable-use-lisp-union-type
2009 use a union for the Lisp_Object data type. This is
2010 only useful for development for catching certain
2011 types of bugs.
2012 --enable-profiling build emacs with profiling support. This might not
2013 work on all platforms
2014 --enable-autodepend automatically generate dependencies to .h-files.
2015 Requires GNU Make and Gcc. Enabled if GNU Make and
2016 Gcc is found
2017 --disable-dependency-tracking speeds up one-time build
2018 --enable-dependency-tracking do not reject slow dependency extractors
2019 --disable-largefile omit support for large files
2020 --enable-gcc-warnings turn on lots of GCC warnings (for developers)
2022 Optional Packages:
2023 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
2024 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
2025 --without-pop don't support POP mail retrieval with movemail
2026 --with-kerberos support Kerberos-authenticated POP
2027 --with-kerberos5 support Kerberos version 5 authenticated POP
2028 --with-hesiod support Hesiod to get the POP server host
2029 --with-mmdf support MMDF mailboxes
2030 --with-mail-unlink unlink, rather than empty, mail spool after reading
2031 --with-mailhost=HOSTNAME
2032 string giving default POP mail host
2033 --without-sound don't compile with sound support
2034 --without-sync-input process async input synchronously
2035 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes or gtk, gtk3,
2036 lucid or athena, motif, no)
2037 --with-wide-int prefer wide Emacs integers (typically 62-bit)
2038 --without-xpm don't compile with XPM image support
2039 --without-jpeg don't compile with JPEG image support
2040 --without-tiff don't compile with TIFF image support
2041 --without-gif don't compile with GIF image support
2042 --without-png don't compile with PNG image support
2043 --without-rsvg don't compile with SVG image support
2044 --without-xml2 don't compile with XML parsing support
2045 --without-imagemagick don't compile with ImageMagick image support
2046 --without-xft don't use XFT for anti aliased fonts
2047 --without-libotf don't use libotf for OpenType font support
2048 --without-m17n-flt don't use m17n-flt for text shaping
2049 --without-toolkit-scroll-bars
2050 don't use Motif or Xaw3d scroll bars
2051 --without-xaw3d don't use Xaw3d
2052 --without-xim don't use X11 XIM
2053 --with-ns use NeXTstep (Cocoa or GNUstep) windowing system
2054 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
2055 console
2056 --without-dbus don't compile with D-Bus support
2057 --without-gconf don't compile with GConf support
2058 --without-gsettings don't compile with GSettings support
2059 --without-selinux don't compile with SELinux support
2060 --without-gnutls don't use -lgnutls for SSL/TLS support
2061 --without-makeinfo don't require makeinfo for building manuals
2062 --without-compress-info don't compress the installed Info pages
2063 --with-pkg-config-prog=PATH
2064 path to pkg-config for finding GTK and librsvg
2065 --with-crt-dir=DIR directory containing crtn.o etc. The default is
2066 /usr/lib, or /usr/lib64 on some platforms.
2067 --with-gameuser=USER user for shared game score files
2068 --with-gnustep-conf=PATH
2069 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
2070 or /etc/GNUstep/GNUstep.conf
2071 --with-x use the X Window System
2073 Some influential environment variables:
2074 CC C compiler command
2075 CFLAGS C compiler flags
2076 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2077 nonstandard directory <lib dir>
2078 LIBS libraries to pass to the linker, e.g. -l<library>
2079 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2080 you have headers in a nonstandard directory <include dir>
2081 CPP C preprocessor
2082 XMKMF Path to xmkmf, Makefile generator for X Window System
2084 Use these variables to override the choices made by `configure' or to help
2085 it to find libraries and programs with nonstandard names/locations.
2087 Report bugs to the package provider.
2088 _ACEOF
2089 ac_status=$?
2092 if test "$ac_init_help" = "recursive"; then
2093 # If there are subdirs, report their specific --help.
2094 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2095 test -d "$ac_dir" ||
2096 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2097 continue
2098 ac_builddir=.
2100 case "$ac_dir" in
2101 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2103 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2104 # A ".." for each directory in $ac_dir_suffix.
2105 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2106 case $ac_top_builddir_sub in
2107 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2108 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2109 esac ;;
2110 esac
2111 ac_abs_top_builddir=$ac_pwd
2112 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2113 # for backward compatibility:
2114 ac_top_builddir=$ac_top_build_prefix
2116 case $srcdir in
2117 .) # We are building in place.
2118 ac_srcdir=.
2119 ac_top_srcdir=$ac_top_builddir_sub
2120 ac_abs_top_srcdir=$ac_pwd ;;
2121 [\\/]* | ?:[\\/]* ) # Absolute name.
2122 ac_srcdir=$srcdir$ac_dir_suffix;
2123 ac_top_srcdir=$srcdir
2124 ac_abs_top_srcdir=$srcdir ;;
2125 *) # Relative name.
2126 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2127 ac_top_srcdir=$ac_top_build_prefix$srcdir
2128 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2129 esac
2130 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2132 cd "$ac_dir" || { ac_status=$?; continue; }
2133 # Check for guested configure.
2134 if test -f "$ac_srcdir/configure.gnu"; then
2135 echo &&
2136 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2137 elif test -f "$ac_srcdir/configure"; then
2138 echo &&
2139 $SHELL "$ac_srcdir/configure" --help=recursive
2140 else
2141 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2142 fi || ac_status=$?
2143 cd "$ac_pwd" || { ac_status=$?; break; }
2144 done
2147 test -n "$ac_init_help" && exit $ac_status
2148 if $ac_init_version; then
2149 cat <<\_ACEOF
2150 emacs configure 24.1.50
2151 generated by GNU Autoconf 2.65
2153 Copyright (C) 2009 Free Software Foundation, Inc.
2154 This configure script is free software; the Free Software Foundation
2155 gives unlimited permission to copy, distribute and modify it.
2156 _ACEOF
2157 exit
2160 ## ------------------------ ##
2161 ## Autoconf initialization. ##
2162 ## ------------------------ ##
2164 # ac_fn_c_try_compile LINENO
2165 # --------------------------
2166 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2167 ac_fn_c_try_compile ()
2169 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2170 rm -f conftest.$ac_objext
2171 if { { ac_try="$ac_compile"
2172 case "(($ac_try" in
2173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2174 *) ac_try_echo=$ac_try;;
2175 esac
2176 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2177 $as_echo "$ac_try_echo"; } >&5
2178 (eval "$ac_compile") 2>conftest.err
2179 ac_status=$?
2180 if test -s conftest.err; then
2181 grep -v '^ *+' conftest.err >conftest.er1
2182 cat conftest.er1 >&5
2183 mv -f conftest.er1 conftest.err
2185 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2186 test $ac_status = 0; } && {
2187 test -z "$ac_c_werror_flag" ||
2188 test ! -s conftest.err
2189 } && test -s conftest.$ac_objext; then :
2190 ac_retval=0
2191 else
2192 $as_echo "$as_me: failed program was:" >&5
2193 sed 's/^/| /' conftest.$ac_ext >&5
2195 ac_retval=1
2197 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2198 as_fn_set_status $ac_retval
2200 } # ac_fn_c_try_compile
2202 # ac_fn_c_try_cpp LINENO
2203 # ----------------------
2204 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2205 ac_fn_c_try_cpp ()
2207 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2208 if { { ac_try="$ac_cpp conftest.$ac_ext"
2209 case "(($ac_try" in
2210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2211 *) ac_try_echo=$ac_try;;
2212 esac
2213 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2214 $as_echo "$ac_try_echo"; } >&5
2215 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2216 ac_status=$?
2217 if test -s conftest.err; then
2218 grep -v '^ *+' conftest.err >conftest.er1
2219 cat conftest.er1 >&5
2220 mv -f conftest.er1 conftest.err
2222 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2223 test $ac_status = 0; } >/dev/null && {
2224 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2225 test ! -s conftest.err
2226 }; then :
2227 ac_retval=0
2228 else
2229 $as_echo "$as_me: failed program was:" >&5
2230 sed 's/^/| /' conftest.$ac_ext >&5
2232 ac_retval=1
2234 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2235 as_fn_set_status $ac_retval
2237 } # ac_fn_c_try_cpp
2239 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2240 # -------------------------------------------------------
2241 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2242 # the include files in INCLUDES and setting the cache variable VAR
2243 # accordingly.
2244 ac_fn_c_check_header_mongrel ()
2246 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2247 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2249 $as_echo_n "checking for $2... " >&6; }
2250 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2251 $as_echo_n "(cached) " >&6
2253 eval ac_res=\$$3
2254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2255 $as_echo "$ac_res" >&6; }
2256 else
2257 # Is the header compilable?
2258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2259 $as_echo_n "checking $2 usability... " >&6; }
2260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2261 /* end confdefs.h. */
2263 #include <$2>
2264 _ACEOF
2265 if ac_fn_c_try_compile "$LINENO"; then :
2266 ac_header_compiler=yes
2267 else
2268 ac_header_compiler=no
2270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2272 $as_echo "$ac_header_compiler" >&6; }
2274 # Is the header present?
2275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2276 $as_echo_n "checking $2 presence... " >&6; }
2277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2278 /* end confdefs.h. */
2279 #include <$2>
2280 _ACEOF
2281 if ac_fn_c_try_cpp "$LINENO"; then :
2282 ac_header_preproc=yes
2283 else
2284 ac_header_preproc=no
2286 rm -f conftest.err conftest.$ac_ext
2287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2288 $as_echo "$ac_header_preproc" >&6; }
2290 # So? What about this header?
2291 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2292 yes:no: )
2293 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2294 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2295 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2296 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2298 no:yes:* )
2299 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2300 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2301 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2302 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2303 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2304 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2305 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2306 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2307 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2308 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2310 esac
2311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2312 $as_echo_n "checking for $2... " >&6; }
2313 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2314 $as_echo_n "(cached) " >&6
2315 else
2316 eval "$3=\$ac_header_compiler"
2318 eval ac_res=\$$3
2319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2320 $as_echo "$ac_res" >&6; }
2322 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2324 } # ac_fn_c_check_header_mongrel
2326 # ac_fn_c_try_run LINENO
2327 # ----------------------
2328 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2329 # that executables *can* be run.
2330 ac_fn_c_try_run ()
2332 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2333 if { { ac_try="$ac_link"
2334 case "(($ac_try" in
2335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2336 *) ac_try_echo=$ac_try;;
2337 esac
2338 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2339 $as_echo "$ac_try_echo"; } >&5
2340 (eval "$ac_link") 2>&5
2341 ac_status=$?
2342 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2343 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2344 { { case "(($ac_try" in
2345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2346 *) ac_try_echo=$ac_try;;
2347 esac
2348 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2349 $as_echo "$ac_try_echo"; } >&5
2350 (eval "$ac_try") 2>&5
2351 ac_status=$?
2352 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2353 test $ac_status = 0; }; }; then :
2354 ac_retval=0
2355 else
2356 $as_echo "$as_me: program exited with status $ac_status" >&5
2357 $as_echo "$as_me: failed program was:" >&5
2358 sed 's/^/| /' conftest.$ac_ext >&5
2360 ac_retval=$ac_status
2362 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2363 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2364 as_fn_set_status $ac_retval
2366 } # ac_fn_c_try_run
2368 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2369 # -------------------------------------------------------
2370 # Tests whether HEADER exists and can be compiled using the include files in
2371 # INCLUDES, setting the cache variable VAR accordingly.
2372 ac_fn_c_check_header_compile ()
2374 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2376 $as_echo_n "checking for $2... " >&6; }
2377 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2378 $as_echo_n "(cached) " >&6
2379 else
2380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2381 /* end confdefs.h. */
2383 #include <$2>
2384 _ACEOF
2385 if ac_fn_c_try_compile "$LINENO"; then :
2386 eval "$3=yes"
2387 else
2388 eval "$3=no"
2390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2392 eval ac_res=\$$3
2393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2394 $as_echo "$ac_res" >&6; }
2395 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2397 } # ac_fn_c_check_header_compile
2399 # ac_fn_c_try_link LINENO
2400 # -----------------------
2401 # Try to link conftest.$ac_ext, and return whether this succeeded.
2402 ac_fn_c_try_link ()
2404 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2405 rm -f conftest.$ac_objext conftest$ac_exeext
2406 if { { ac_try="$ac_link"
2407 case "(($ac_try" in
2408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2409 *) ac_try_echo=$ac_try;;
2410 esac
2411 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2412 $as_echo "$ac_try_echo"; } >&5
2413 (eval "$ac_link") 2>conftest.err
2414 ac_status=$?
2415 if test -s conftest.err; then
2416 grep -v '^ *+' conftest.err >conftest.er1
2417 cat conftest.er1 >&5
2418 mv -f conftest.er1 conftest.err
2420 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2421 test $ac_status = 0; } && {
2422 test -z "$ac_c_werror_flag" ||
2423 test ! -s conftest.err
2424 } && test -s conftest$ac_exeext && {
2425 test "$cross_compiling" = yes ||
2426 $as_test_x conftest$ac_exeext
2427 }; then :
2428 ac_retval=0
2429 else
2430 $as_echo "$as_me: failed program was:" >&5
2431 sed 's/^/| /' conftest.$ac_ext >&5
2433 ac_retval=1
2435 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2436 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2437 # interfere with the next link command; also delete a directory that is
2438 # left behind by Apple's compiler. We do this before executing the actions.
2439 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2440 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2441 as_fn_set_status $ac_retval
2443 } # ac_fn_c_try_link
2445 # ac_fn_c_check_decl LINENO SYMBOL VAR
2446 # ------------------------------------
2447 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2448 ac_fn_c_check_decl ()
2450 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2452 $as_echo_n "checking whether $2 is declared... " >&6; }
2453 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2454 $as_echo_n "(cached) " >&6
2455 else
2456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2457 /* end confdefs.h. */
2460 main ()
2462 #ifndef $2
2463 (void) $2;
2464 #endif
2467 return 0;
2469 _ACEOF
2470 if ac_fn_c_try_compile "$LINENO"; then :
2471 eval "$3=yes"
2472 else
2473 eval "$3=no"
2475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2477 eval ac_res=\$$3
2478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2479 $as_echo "$ac_res" >&6; }
2480 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2482 } # ac_fn_c_check_decl
2484 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2485 # ----------------------------------------------
2486 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2487 ac_fn_c_check_header_preproc ()
2489 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2491 $as_echo_n "checking for $2... " >&6; }
2492 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2493 $as_echo_n "(cached) " >&6
2494 else
2495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2496 /* end confdefs.h. */
2497 #include <$2>
2498 _ACEOF
2499 if ac_fn_c_try_cpp "$LINENO"; then :
2500 eval "$3=yes"
2501 else
2502 eval "$3=no"
2504 rm -f conftest.err conftest.$ac_ext
2506 eval ac_res=\$$3
2507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2508 $as_echo "$ac_res" >&6; }
2509 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2511 } # ac_fn_c_check_header_preproc
2513 # ac_fn_c_check_func LINENO FUNC VAR
2514 # ----------------------------------
2515 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2516 ac_fn_c_check_func ()
2518 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2520 $as_echo_n "checking for $2... " >&6; }
2521 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2522 $as_echo_n "(cached) " >&6
2523 else
2524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2525 /* end confdefs.h. */
2526 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2527 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2528 #define $2 innocuous_$2
2530 /* System header to define __stub macros and hopefully few prototypes,
2531 which can conflict with char $2 (); below.
2532 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2533 <limits.h> exists even on freestanding compilers. */
2535 #ifdef __STDC__
2536 # include <limits.h>
2537 #else
2538 # include <assert.h>
2539 #endif
2541 #undef $2
2543 /* Override any GCC internal prototype to avoid an error.
2544 Use char because int might match the return type of a GCC
2545 builtin and then its argument prototype would still apply. */
2546 #ifdef __cplusplus
2547 extern "C"
2548 #endif
2549 char $2 ();
2550 /* The GNU C library defines this for functions which it implements
2551 to always fail with ENOSYS. Some functions are actually named
2552 something starting with __ and the normal name is an alias. */
2553 #if defined __stub_$2 || defined __stub___$2
2554 choke me
2555 #endif
2558 main ()
2560 return $2 ();
2562 return 0;
2564 _ACEOF
2565 if ac_fn_c_try_link "$LINENO"; then :
2566 eval "$3=yes"
2567 else
2568 eval "$3=no"
2570 rm -f core conftest.err conftest.$ac_objext \
2571 conftest$ac_exeext conftest.$ac_ext
2573 eval ac_res=\$$3
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2575 $as_echo "$ac_res" >&6; }
2576 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2578 } # ac_fn_c_check_func
2580 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2581 # ----------------------------------------------------
2582 # Tries to find if the field MEMBER exists in type AGGR, after including
2583 # INCLUDES, setting cache variable VAR accordingly.
2584 ac_fn_c_check_member ()
2586 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2588 $as_echo_n "checking for $2.$3... " >&6; }
2589 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2590 $as_echo_n "(cached) " >&6
2591 else
2592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2593 /* end confdefs.h. */
2596 main ()
2598 static $2 ac_aggr;
2599 if (ac_aggr.$3)
2600 return 0;
2602 return 0;
2604 _ACEOF
2605 if ac_fn_c_try_compile "$LINENO"; then :
2606 eval "$4=yes"
2607 else
2608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2609 /* end confdefs.h. */
2612 main ()
2614 static $2 ac_aggr;
2615 if (sizeof ac_aggr.$3)
2616 return 0;
2618 return 0;
2620 _ACEOF
2621 if ac_fn_c_try_compile "$LINENO"; then :
2622 eval "$4=yes"
2623 else
2624 eval "$4=no"
2626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2630 eval ac_res=\$$4
2631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2632 $as_echo "$ac_res" >&6; }
2633 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2635 } # ac_fn_c_check_member
2637 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2638 # -------------------------------------------
2639 # Tests whether TYPE exists after having included INCLUDES, setting cache
2640 # variable VAR accordingly.
2641 ac_fn_c_check_type ()
2643 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2645 $as_echo_n "checking for $2... " >&6; }
2646 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2647 $as_echo_n "(cached) " >&6
2648 else
2649 eval "$3=no"
2650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2651 /* end confdefs.h. */
2654 main ()
2656 if (sizeof ($2))
2657 return 0;
2659 return 0;
2661 _ACEOF
2662 if ac_fn_c_try_compile "$LINENO"; then :
2663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2664 /* end confdefs.h. */
2667 main ()
2669 if (sizeof (($2)))
2670 return 0;
2672 return 0;
2674 _ACEOF
2675 if ac_fn_c_try_compile "$LINENO"; then :
2677 else
2678 eval "$3=yes"
2680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2684 eval ac_res=\$$3
2685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2686 $as_echo "$ac_res" >&6; }
2687 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2689 } # ac_fn_c_check_type
2691 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2692 # --------------------------------------------
2693 # Tries to find the compile-time value of EXPR in a program that includes
2694 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2695 # computed
2696 ac_fn_c_compute_int ()
2698 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2699 if test "$cross_compiling" = yes; then
2700 # Depending upon the size, compute the lo and hi bounds.
2701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2702 /* end confdefs.h. */
2705 main ()
2707 static int test_array [1 - 2 * !(($2) >= 0)];
2708 test_array [0] = 0
2711 return 0;
2713 _ACEOF
2714 if ac_fn_c_try_compile "$LINENO"; then :
2715 ac_lo=0 ac_mid=0
2716 while :; do
2717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2718 /* end confdefs.h. */
2721 main ()
2723 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2724 test_array [0] = 0
2727 return 0;
2729 _ACEOF
2730 if ac_fn_c_try_compile "$LINENO"; then :
2731 ac_hi=$ac_mid; break
2732 else
2733 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2734 if test $ac_lo -le $ac_mid; then
2735 ac_lo= ac_hi=
2736 break
2738 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2741 done
2742 else
2743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2744 /* end confdefs.h. */
2747 main ()
2749 static int test_array [1 - 2 * !(($2) < 0)];
2750 test_array [0] = 0
2753 return 0;
2755 _ACEOF
2756 if ac_fn_c_try_compile "$LINENO"; then :
2757 ac_hi=-1 ac_mid=-1
2758 while :; do
2759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2760 /* end confdefs.h. */
2763 main ()
2765 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2766 test_array [0] = 0
2769 return 0;
2771 _ACEOF
2772 if ac_fn_c_try_compile "$LINENO"; then :
2773 ac_lo=$ac_mid; break
2774 else
2775 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2776 if test $ac_mid -le $ac_hi; then
2777 ac_lo= ac_hi=
2778 break
2780 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2783 done
2784 else
2785 ac_lo= ac_hi=
2787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2790 # Binary search between lo and hi bounds.
2791 while test "x$ac_lo" != "x$ac_hi"; do
2792 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2794 /* end confdefs.h. */
2797 main ()
2799 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2800 test_array [0] = 0
2803 return 0;
2805 _ACEOF
2806 if ac_fn_c_try_compile "$LINENO"; then :
2807 ac_hi=$ac_mid
2808 else
2809 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2812 done
2813 case $ac_lo in #((
2814 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2815 '') ac_retval=1 ;;
2816 esac
2817 else
2818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2819 /* end confdefs.h. */
2821 static long int longval () { return $2; }
2822 static unsigned long int ulongval () { return $2; }
2823 #include <stdio.h>
2824 #include <stdlib.h>
2826 main ()
2829 FILE *f = fopen ("conftest.val", "w");
2830 if (! f)
2831 return 1;
2832 if (($2) < 0)
2834 long int i = longval ();
2835 if (i != ($2))
2836 return 1;
2837 fprintf (f, "%ld", i);
2839 else
2841 unsigned long int i = ulongval ();
2842 if (i != ($2))
2843 return 1;
2844 fprintf (f, "%lu", i);
2846 /* Do not output a trailing newline, as this causes \r\n confusion
2847 on some platforms. */
2848 return ferror (f) || fclose (f) != 0;
2851 return 0;
2853 _ACEOF
2854 if ac_fn_c_try_run "$LINENO"; then :
2855 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2856 else
2857 ac_retval=1
2859 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2860 conftest.$ac_objext conftest.beam conftest.$ac_ext
2861 rm -f conftest.val
2864 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2865 as_fn_set_status $ac_retval
2867 } # ac_fn_c_compute_int
2868 cat >config.log <<_ACEOF
2869 This file contains any messages produced by compilers while
2870 running configure, to aid debugging if configure makes a mistake.
2872 It was created by emacs $as_me 24.1.50, which was
2873 generated by GNU Autoconf 2.65. Invocation command line was
2875 $ $0 $@
2877 _ACEOF
2878 exec 5>>config.log
2880 cat <<_ASUNAME
2881 ## --------- ##
2882 ## Platform. ##
2883 ## --------- ##
2885 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2886 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2887 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2888 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2889 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2891 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2892 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2894 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2895 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2896 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2897 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2898 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2899 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2900 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2902 _ASUNAME
2904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2905 for as_dir in $PATH
2907 IFS=$as_save_IFS
2908 test -z "$as_dir" && as_dir=.
2909 $as_echo "PATH: $as_dir"
2910 done
2911 IFS=$as_save_IFS
2913 } >&5
2915 cat >&5 <<_ACEOF
2918 ## ----------- ##
2919 ## Core tests. ##
2920 ## ----------- ##
2922 _ACEOF
2925 # Keep a trace of the command line.
2926 # Strip out --no-create and --no-recursion so they do not pile up.
2927 # Strip out --silent because we don't want to record it for future runs.
2928 # Also quote any args containing shell meta-characters.
2929 # Make two passes to allow for proper duplicate-argument suppression.
2930 ac_configure_args=
2931 ac_configure_args0=
2932 ac_configure_args1=
2933 ac_must_keep_next=false
2934 for ac_pass in 1 2
2936 for ac_arg
2938 case $ac_arg in
2939 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2940 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2941 | -silent | --silent | --silen | --sile | --sil)
2942 continue ;;
2943 *\'*)
2944 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2945 esac
2946 case $ac_pass in
2947 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2949 as_fn_append ac_configure_args1 " '$ac_arg'"
2950 if test $ac_must_keep_next = true; then
2951 ac_must_keep_next=false # Got value, back to normal.
2952 else
2953 case $ac_arg in
2954 *=* | --config-cache | -C | -disable-* | --disable-* \
2955 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2956 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2957 | -with-* | --with-* | -without-* | --without-* | --x)
2958 case "$ac_configure_args0 " in
2959 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2960 esac
2962 -* ) ac_must_keep_next=true ;;
2963 esac
2965 as_fn_append ac_configure_args " '$ac_arg'"
2967 esac
2968 done
2969 done
2970 { ac_configure_args0=; unset ac_configure_args0;}
2971 { ac_configure_args1=; unset ac_configure_args1;}
2973 # When interrupted or exit'd, cleanup temporary files, and complete
2974 # config.log. We remove comments because anyway the quotes in there
2975 # would cause problems or look ugly.
2976 # WARNING: Use '\'' to represent an apostrophe within the trap.
2977 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2978 trap 'exit_status=$?
2979 # Save into config.log some information that might help in debugging.
2981 echo
2983 cat <<\_ASBOX
2984 ## ---------------- ##
2985 ## Cache variables. ##
2986 ## ---------------- ##
2987 _ASBOX
2988 echo
2989 # The following way of writing the cache mishandles newlines in values,
2991 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2992 eval ac_val=\$$ac_var
2993 case $ac_val in #(
2994 *${as_nl}*)
2995 case $ac_var in #(
2996 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2997 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2998 esac
2999 case $ac_var in #(
3000 _ | IFS | as_nl) ;; #(
3001 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3002 *) { eval $ac_var=; unset $ac_var;} ;;
3003 esac ;;
3004 esac
3005 done
3006 (set) 2>&1 |
3007 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3008 *${as_nl}ac_space=\ *)
3009 sed -n \
3010 "s/'\''/'\''\\\\'\'''\''/g;
3011 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3012 ;; #(
3014 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3016 esac |
3017 sort
3019 echo
3021 cat <<\_ASBOX
3022 ## ----------------- ##
3023 ## Output variables. ##
3024 ## ----------------- ##
3025 _ASBOX
3026 echo
3027 for ac_var in $ac_subst_vars
3029 eval ac_val=\$$ac_var
3030 case $ac_val in
3031 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3032 esac
3033 $as_echo "$ac_var='\''$ac_val'\''"
3034 done | sort
3035 echo
3037 if test -n "$ac_subst_files"; then
3038 cat <<\_ASBOX
3039 ## ------------------- ##
3040 ## File substitutions. ##
3041 ## ------------------- ##
3042 _ASBOX
3043 echo
3044 for ac_var in $ac_subst_files
3046 eval ac_val=\$$ac_var
3047 case $ac_val in
3048 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3049 esac
3050 $as_echo "$ac_var='\''$ac_val'\''"
3051 done | sort
3052 echo
3055 if test -s confdefs.h; then
3056 cat <<\_ASBOX
3057 ## ----------- ##
3058 ## confdefs.h. ##
3059 ## ----------- ##
3060 _ASBOX
3061 echo
3062 cat confdefs.h
3063 echo
3065 test "$ac_signal" != 0 &&
3066 $as_echo "$as_me: caught signal $ac_signal"
3067 $as_echo "$as_me: exit $exit_status"
3068 } >&5
3069 rm -f core *.core core.conftest.* &&
3070 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3071 exit $exit_status
3073 for ac_signal in 1 2 13 15; do
3074 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3075 done
3076 ac_signal=0
3078 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3079 rm -f -r conftest* confdefs.h
3081 $as_echo "/* confdefs.h */" > confdefs.h
3083 # Predefined preprocessor variables.
3085 cat >>confdefs.h <<_ACEOF
3086 #define PACKAGE_NAME "$PACKAGE_NAME"
3087 _ACEOF
3089 cat >>confdefs.h <<_ACEOF
3090 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3091 _ACEOF
3093 cat >>confdefs.h <<_ACEOF
3094 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3095 _ACEOF
3097 cat >>confdefs.h <<_ACEOF
3098 #define PACKAGE_STRING "$PACKAGE_STRING"
3099 _ACEOF
3101 cat >>confdefs.h <<_ACEOF
3102 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3103 _ACEOF
3105 cat >>confdefs.h <<_ACEOF
3106 #define PACKAGE_URL "$PACKAGE_URL"
3107 _ACEOF
3110 # Let the site file select an alternate cache file if it wants to.
3111 # Prefer an explicitly selected file to automatically selected ones.
3112 ac_site_file1=NONE
3113 ac_site_file2=NONE
3114 if test -n "$CONFIG_SITE"; then
3115 ac_site_file1=$CONFIG_SITE
3116 elif test "x$prefix" != xNONE; then
3117 ac_site_file1=$prefix/share/config.site
3118 ac_site_file2=$prefix/etc/config.site
3119 else
3120 ac_site_file1=$ac_default_prefix/share/config.site
3121 ac_site_file2=$ac_default_prefix/etc/config.site
3123 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3125 test "x$ac_site_file" = xNONE && continue
3126 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3127 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3128 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3129 sed 's/^/| /' "$ac_site_file" >&5
3130 . "$ac_site_file"
3132 done
3134 if test -r "$cache_file"; then
3135 # Some versions of bash will fail to source /dev/null (special files
3136 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3137 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3138 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3139 $as_echo "$as_me: loading cache $cache_file" >&6;}
3140 case $cache_file in
3141 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3142 *) . "./$cache_file";;
3143 esac
3145 else
3146 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3147 $as_echo "$as_me: creating cache $cache_file" >&6;}
3148 >$cache_file
3151 as_fn_append ac_header_list " sys/select.h"
3152 as_fn_append ac_header_list " sys/time.h"
3153 as_fn_append ac_header_list " utime.h"
3154 as_fn_append ac_header_list " linux/version.h"
3155 as_fn_append ac_header_list " sys/systeminfo.h"
3156 as_fn_append ac_header_list " stdio_ext.h"
3157 as_fn_append ac_header_list " fcntl.h"
3158 as_fn_append ac_header_list " coff.h"
3159 as_fn_append ac_header_list " pty.h"
3160 as_fn_append ac_header_list " sys/vlimit.h"
3161 as_fn_append ac_header_list " sys/resource.h"
3162 as_fn_append ac_header_list " sys/utsname.h"
3163 as_fn_append ac_header_list " pwd.h"
3164 as_fn_append ac_header_list " utmp.h"
3165 as_fn_append ac_header_list " dirent.h"
3166 as_fn_append ac_header_list " util.h"
3167 as_fn_append ac_header_list " sys/socket.h"
3168 as_fn_append ac_header_list " stdlib.h"
3169 as_fn_append ac_header_list " unistd.h"
3170 as_fn_append ac_header_list " sys/param.h"
3171 as_fn_append ac_header_list " pthread.h"
3172 as_fn_append ac_header_list " malloc/malloc.h"
3173 as_fn_append ac_header_list " maillock.h"
3174 as_fn_append ac_header_list " sys/un.h"
3175 as_fn_append ac_func_list " tzset"
3176 as_fn_append ac_func_list " readlinkat"
3177 gl_getopt_required=GNU
3178 as_fn_append ac_header_list " getopt.h"
3179 as_fn_append ac_header_list " wchar.h"
3180 as_fn_append ac_header_list " stdint.h"
3181 as_fn_append ac_header_list " inttypes.h"
3182 as_fn_append ac_func_list " lstat"
3183 as_fn_append ac_func_list " alarm"
3184 as_fn_append ac_func_list " pthread_sigmask"
3185 as_fn_append ac_func_list " readlink"
3186 as_fn_append ac_func_list " strtoimax"
3187 as_fn_append ac_func_list " strtoumax"
3188 as_fn_append ac_func_list " symlink"
3189 as_fn_append ac_header_list " sys/stat.h"
3190 as_fn_append ac_func_list " localtime_r"
3191 # Check that the precious variables saved in the cache have kept the same
3192 # value.
3193 ac_cache_corrupted=false
3194 for ac_var in $ac_precious_vars; do
3195 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3196 eval ac_new_set=\$ac_env_${ac_var}_set
3197 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3198 eval ac_new_val=\$ac_env_${ac_var}_value
3199 case $ac_old_set,$ac_new_set in
3200 set,)
3201 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3202 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3203 ac_cache_corrupted=: ;;
3204 ,set)
3205 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3206 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3207 ac_cache_corrupted=: ;;
3208 ,);;
3210 if test "x$ac_old_val" != "x$ac_new_val"; then
3211 # differences in whitespace do not lead to failure.
3212 ac_old_val_w=`echo x $ac_old_val`
3213 ac_new_val_w=`echo x $ac_new_val`
3214 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3215 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3216 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3217 ac_cache_corrupted=:
3218 else
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3220 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3221 eval $ac_var=\$ac_old_val
3223 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3224 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3226 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3227 fi;;
3228 esac
3229 # Pass precious variables to config.status.
3230 if test "$ac_new_set" = set; then
3231 case $ac_new_val in
3232 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3233 *) ac_arg=$ac_var=$ac_new_val ;;
3234 esac
3235 case " $ac_configure_args " in
3236 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3237 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3238 esac
3240 done
3241 if $ac_cache_corrupted; then
3242 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3243 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3245 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3246 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3248 ## -------------------- ##
3249 ## Main body of script. ##
3250 ## -------------------- ##
3252 ac_ext=c
3253 ac_cpp='$CPP $CPPFLAGS'
3254 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3255 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3256 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3259 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
3262 ac_aux_dir=
3263 for ac_dir in build-aux "$srcdir"/build-aux; do
3264 for ac_t in install-sh install.sh shtool; do
3265 if test -f "$ac_dir/$ac_t"; then
3266 ac_aux_dir=$ac_dir
3267 ac_install_sh="$ac_aux_dir/$ac_t -c"
3268 break 2
3270 done
3271 done
3272 if test -z "$ac_aux_dir"; then
3273 as_fn_error "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
3276 # These three variables are undocumented and unsupported,
3277 # and are intended to be withdrawn in a future Autoconf release.
3278 # They can cause serious problems if a builder's source tree is in a directory
3279 # whose full name contains unusual characters.
3280 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3281 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3282 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3285 am__api_version='1.11'
3287 # Find a good install program. We prefer a C program (faster),
3288 # so one script is as good as another. But avoid the broken or
3289 # incompatible versions:
3290 # SysV /etc/install, /usr/sbin/install
3291 # SunOS /usr/etc/install
3292 # IRIX /sbin/install
3293 # AIX /bin/install
3294 # AmigaOS /C/install, which installs bootblocks on floppy discs
3295 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3296 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3297 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3298 # OS/2's system install, which has a completely different semantic
3299 # ./install, which can be erroneously created by make from ./install.sh.
3300 # Reject install programs that cannot install multiple files.
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3302 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3303 if test -z "$INSTALL"; then
3304 if test "${ac_cv_path_install+set}" = set; then :
3305 $as_echo_n "(cached) " >&6
3306 else
3307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3308 for as_dir in $PATH
3310 IFS=$as_save_IFS
3311 test -z "$as_dir" && as_dir=.
3312 # Account for people who put trailing slashes in PATH elements.
3313 case $as_dir/ in #((
3314 ./ | .// | /[cC]/* | \
3315 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3316 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3317 /usr/ucb/* ) ;;
3319 # OSF1 and SCO ODT 3.0 have their own names for install.
3320 # Don't use installbsd from OSF since it installs stuff as root
3321 # by default.
3322 for ac_prog in ginstall scoinst install; do
3323 for ac_exec_ext in '' $ac_executable_extensions; do
3324 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3325 if test $ac_prog = install &&
3326 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3327 # AIX install. It has an incompatible calling convention.
3329 elif test $ac_prog = install &&
3330 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3331 # program-specific install script used by HP pwplus--don't use.
3333 else
3334 rm -rf conftest.one conftest.two conftest.dir
3335 echo one > conftest.one
3336 echo two > conftest.two
3337 mkdir conftest.dir
3338 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3339 test -s conftest.one && test -s conftest.two &&
3340 test -s conftest.dir/conftest.one &&
3341 test -s conftest.dir/conftest.two
3342 then
3343 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3344 break 3
3348 done
3349 done
3351 esac
3353 done
3354 IFS=$as_save_IFS
3356 rm -rf conftest.one conftest.two conftest.dir
3359 if test "${ac_cv_path_install+set}" = set; then
3360 INSTALL=$ac_cv_path_install
3361 else
3362 # As a last resort, use the slow shell script. Don't cache a
3363 # value for INSTALL within a source directory, because that will
3364 # break other packages using the cache if that directory is
3365 # removed, or if the value is a relative name.
3366 INSTALL=$ac_install_sh
3369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3370 $as_echo "$INSTALL" >&6; }
3372 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3373 # It thinks the first close brace ends the variable substitution.
3374 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3376 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3378 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3381 $as_echo_n "checking whether build environment is sane... " >&6; }
3382 # Just in case
3383 sleep 1
3384 echo timestamp > conftest.file
3385 # Reject unsafe characters in $srcdir or the absolute working directory
3386 # name. Accept space and tab only in the latter.
3387 am_lf='
3389 case `pwd` in
3390 *[\\\"\#\$\&\'\`$am_lf]*)
3391 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3392 esac
3393 case $srcdir in
3394 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3395 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3396 esac
3398 # Do `set' in a subshell so we don't clobber the current shell's
3399 # arguments. Must try -L first in case configure is actually a
3400 # symlink; some systems play weird games with the mod time of symlinks
3401 # (eg FreeBSD returns the mod time of the symlink's containing
3402 # directory).
3403 if (
3404 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3405 if test "$*" = "X"; then
3406 # -L didn't work.
3407 set X `ls -t "$srcdir/configure" conftest.file`
3409 rm -f conftest.file
3410 if test "$*" != "X $srcdir/configure conftest.file" \
3411 && test "$*" != "X conftest.file $srcdir/configure"; then
3413 # If neither matched, then we have a broken ls. This can happen
3414 # if, for instance, CONFIG_SHELL is bash and it inherits a
3415 # broken ls alias from the environment. This has actually
3416 # happened. Such a system could not be considered "sane".
3417 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3418 alias in your environment" "$LINENO" 5
3421 test "$2" = conftest.file
3423 then
3424 # Ok.
3426 else
3427 as_fn_error "newly created file is older than distributed files!
3428 Check your system clock" "$LINENO" 5
3430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3431 $as_echo "yes" >&6; }
3432 test "$program_prefix" != NONE &&
3433 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3434 # Use a double $ so make ignores it.
3435 test "$program_suffix" != NONE &&
3436 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3437 # Double any \ or $.
3438 # By default was `s,x,x', remove it if useless.
3439 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3440 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3442 # expand $ac_aux_dir to an absolute path
3443 am_aux_dir=`cd $ac_aux_dir && pwd`
3445 if test x"${MISSING+set}" != xset; then
3446 case $am_aux_dir in
3447 *\ * | *\ *)
3448 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3450 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3451 esac
3453 # Use eval to expand $SHELL
3454 if eval "$MISSING --run true"; then
3455 am_missing_run="$MISSING --run "
3456 else
3457 am_missing_run=
3458 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3459 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3462 if test x"${install_sh}" != xset; then
3463 case $am_aux_dir in
3464 *\ * | *\ *)
3465 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3467 install_sh="\${SHELL} $am_aux_dir/install-sh"
3468 esac
3471 # Installed binaries are usually stripped using `strip' when the user
3472 # run `make install-strip'. However `strip' might not be the right
3473 # tool to use in cross-compilation environments, therefore Automake
3474 # will honor the `STRIP' environment variable to overrule this program.
3475 if test "$cross_compiling" != no; then
3476 if test -n "$ac_tool_prefix"; then
3477 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3478 set dummy ${ac_tool_prefix}strip; ac_word=$2
3479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3480 $as_echo_n "checking for $ac_word... " >&6; }
3481 if test "${ac_cv_prog_STRIP+set}" = set; then :
3482 $as_echo_n "(cached) " >&6
3483 else
3484 if test -n "$STRIP"; then
3485 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3486 else
3487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3488 for as_dir in $PATH
3490 IFS=$as_save_IFS
3491 test -z "$as_dir" && as_dir=.
3492 for ac_exec_ext in '' $ac_executable_extensions; do
3493 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3494 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3496 break 2
3498 done
3499 done
3500 IFS=$as_save_IFS
3504 STRIP=$ac_cv_prog_STRIP
3505 if test -n "$STRIP"; then
3506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3507 $as_echo "$STRIP" >&6; }
3508 else
3509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3510 $as_echo "no" >&6; }
3515 if test -z "$ac_cv_prog_STRIP"; then
3516 ac_ct_STRIP=$STRIP
3517 # Extract the first word of "strip", so it can be a program name with args.
3518 set dummy strip; ac_word=$2
3519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3520 $as_echo_n "checking for $ac_word... " >&6; }
3521 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3522 $as_echo_n "(cached) " >&6
3523 else
3524 if test -n "$ac_ct_STRIP"; then
3525 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3526 else
3527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3528 for as_dir in $PATH
3530 IFS=$as_save_IFS
3531 test -z "$as_dir" && as_dir=.
3532 for ac_exec_ext in '' $ac_executable_extensions; do
3533 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3534 ac_cv_prog_ac_ct_STRIP="strip"
3535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3536 break 2
3538 done
3539 done
3540 IFS=$as_save_IFS
3544 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3545 if test -n "$ac_ct_STRIP"; then
3546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3547 $as_echo "$ac_ct_STRIP" >&6; }
3548 else
3549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3550 $as_echo "no" >&6; }
3553 if test "x$ac_ct_STRIP" = x; then
3554 STRIP=":"
3555 else
3556 case $cross_compiling:$ac_tool_warned in
3557 yes:)
3558 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3559 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3560 ac_tool_warned=yes ;;
3561 esac
3562 STRIP=$ac_ct_STRIP
3564 else
3565 STRIP="$ac_cv_prog_STRIP"
3569 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3572 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3573 if test -z "$MKDIR_P"; then
3574 if test "${ac_cv_path_mkdir+set}" = set; then :
3575 $as_echo_n "(cached) " >&6
3576 else
3577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3578 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3580 IFS=$as_save_IFS
3581 test -z "$as_dir" && as_dir=.
3582 for ac_prog in mkdir gmkdir; do
3583 for ac_exec_ext in '' $ac_executable_extensions; do
3584 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3585 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3586 'mkdir (GNU coreutils) '* | \
3587 'mkdir (coreutils) '* | \
3588 'mkdir (fileutils) '4.1*)
3589 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3590 break 3;;
3591 esac
3592 done
3593 done
3594 done
3595 IFS=$as_save_IFS
3599 test -d ./--version && rmdir ./--version
3600 if test "${ac_cv_path_mkdir+set}" = set; then
3601 MKDIR_P="$ac_cv_path_mkdir -p"
3602 else
3603 # As a last resort, use the slow shell script. Don't cache a
3604 # value for MKDIR_P within a source directory, because that will
3605 # break other packages using the cache if that directory is
3606 # removed, or if the value is a relative name.
3607 MKDIR_P="$ac_install_sh -d"
3610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3611 $as_echo "$MKDIR_P" >&6; }
3614 mkdir_p="$MKDIR_P"
3615 case $mkdir_p in
3616 [\\/$]* | ?:[\\/]*) ;;
3617 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3618 esac
3620 for ac_prog in gawk mawk nawk awk
3622 # Extract the first word of "$ac_prog", so it can be a program name with args.
3623 set dummy $ac_prog; ac_word=$2
3624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3625 $as_echo_n "checking for $ac_word... " >&6; }
3626 if test "${ac_cv_prog_AWK+set}" = set; then :
3627 $as_echo_n "(cached) " >&6
3628 else
3629 if test -n "$AWK"; then
3630 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3631 else
3632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3633 for as_dir in $PATH
3635 IFS=$as_save_IFS
3636 test -z "$as_dir" && as_dir=.
3637 for ac_exec_ext in '' $ac_executable_extensions; do
3638 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3639 ac_cv_prog_AWK="$ac_prog"
3640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3641 break 2
3643 done
3644 done
3645 IFS=$as_save_IFS
3649 AWK=$ac_cv_prog_AWK
3650 if test -n "$AWK"; then
3651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3652 $as_echo "$AWK" >&6; }
3653 else
3654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3655 $as_echo "no" >&6; }
3659 test -n "$AWK" && break
3660 done
3662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3663 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3664 set x ${MAKE-make}
3665 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3666 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3667 $as_echo_n "(cached) " >&6
3668 else
3669 cat >conftest.make <<\_ACEOF
3670 SHELL = /bin/sh
3671 all:
3672 @echo '@@@%%%=$(MAKE)=@@@%%%'
3673 _ACEOF
3674 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3675 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3676 *@@@%%%=?*=@@@%%%*)
3677 eval ac_cv_prog_make_${ac_make}_set=yes;;
3679 eval ac_cv_prog_make_${ac_make}_set=no;;
3680 esac
3681 rm -f conftest.make
3683 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3685 $as_echo "yes" >&6; }
3686 SET_MAKE=
3687 else
3688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3689 $as_echo "no" >&6; }
3690 SET_MAKE="MAKE=${MAKE-make}"
3693 rm -rf .tst 2>/dev/null
3694 mkdir .tst 2>/dev/null
3695 if test -d .tst; then
3696 am__leading_dot=.
3697 else
3698 am__leading_dot=_
3700 rmdir .tst 2>/dev/null
3702 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3703 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3704 # is not polluted with repeated "-I."
3705 am__isrc=' -I$(srcdir)'
3706 # test to see if srcdir already configured
3707 if test -f $srcdir/config.status; then
3708 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3712 # test whether we have cygpath
3713 if test -z "$CYGPATH_W"; then
3714 if (cygpath --version) >/dev/null 2>/dev/null; then
3715 CYGPATH_W='cygpath -w'
3716 else
3717 CYGPATH_W=echo
3722 # Define the identity of the package.
3723 PACKAGE='emacs'
3724 VERSION='24.1.50'
3727 cat >>confdefs.h <<_ACEOF
3728 #define PACKAGE "$PACKAGE"
3729 _ACEOF
3732 cat >>confdefs.h <<_ACEOF
3733 #define VERSION "$VERSION"
3734 _ACEOF
3736 # Some tools Automake needs.
3738 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3741 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3744 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3747 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3750 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3752 # We need awk for the "check" target. The system "awk" is bad on
3753 # some platforms.
3754 # Always define AMTAR for backward compatibility.
3756 AMTAR=${AMTAR-"${am_missing_run}tar"}
3758 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3767 lispdir='${datadir}/emacs/${version}/lisp'
3768 leimdir='${datadir}/emacs/${version}/leim'
3769 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
3770 '${datadir}/emacs/site-lisp'
3771 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
3772 etcdir='${datadir}/emacs/${version}/etc'
3773 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
3774 docdir='${datadir}/emacs/${version}/etc'
3775 gamedir='${localstatedir}/games/emacs'
3780 # Check whether --with-pop was given.
3781 if test "${with_pop+set}" = set; then :
3782 withval=$with_pop;
3783 else
3784 with_pop=yes
3787 if test "$with_pop" = yes; then
3788 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
3793 # Check whether --with-kerberos was given.
3794 if test "${with_kerberos+set}" = set; then :
3795 withval=$with_kerberos;
3796 else
3797 with_kerberos=no
3800 if test "$with_kerberos" != no; then
3801 $as_echo "#define KERBEROS 1" >>confdefs.h
3806 # Check whether --with-kerberos5 was given.
3807 if test "${with_kerberos5+set}" = set; then :
3808 withval=$with_kerberos5;
3809 else
3810 with_kerberos5=no
3813 if test "${with_kerberos5}" != no; then
3814 if test "${with_kerberos}" = no; then
3815 with_kerberos=yes
3816 $as_echo "#define KERBEROS 1" >>confdefs.h
3820 $as_echo "#define KERBEROS5 1" >>confdefs.h
3825 # Check whether --with-hesiod was given.
3826 if test "${with_hesiod+set}" = set; then :
3827 withval=$with_hesiod;
3828 else
3829 with_hesiod=no
3832 if test "$with_hesiod" != no; then
3834 $as_echo "#define HESIOD 1" >>confdefs.h
3839 # Check whether --with-mmdf was given.
3840 if test "${with_mmdf+set}" = set; then :
3841 withval=$with_mmdf;
3842 else
3843 with_mmdf=no
3846 if test "$with_mmdf" != no; then
3848 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
3853 # Check whether --with-mail-unlink was given.
3854 if test "${with_mail_unlink+set}" = set; then :
3855 withval=$with_mail_unlink;
3856 else
3857 with_mail_unlink=no
3860 if test "$with_mail_unlink" != no; then
3862 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
3867 # Check whether --with-mailhost was given.
3868 if test "${with_mailhost+set}" = set; then :
3869 withval=$with_mailhost;
3870 cat >>confdefs.h <<_ACEOF
3871 #define MAILHOST "$withval"
3872 _ACEOF
3878 # Check whether --with-sound was given.
3879 if test "${with_sound+set}" = set; then :
3880 withval=$with_sound;
3881 else
3882 with_sound=yes
3887 # Check whether --with-sync-input was given.
3888 if test "${with_sync_input+set}" = set; then :
3889 withval=$with_sync_input;
3890 else
3891 with_sync_input=yes
3894 if test "$with_sync_input" = yes; then
3896 $as_echo "#define SYNC_INPUT 1" >>confdefs.h
3901 # Check whether --with-x-toolkit was given.
3902 if test "${with_x_toolkit+set}" = set; then :
3903 withval=$with_x_toolkit; case "${withval}" in
3904 y | ye | yes ) val=gtk ;;
3905 n | no ) val=no ;;
3906 l | lu | luc | luci | lucid ) val=lucid ;;
3907 a | at | ath | athe | athen | athena ) val=athena ;;
3908 m | mo | mot | moti | motif ) val=motif ;;
3909 g | gt | gtk ) val=gtk ;;
3910 gtk3 ) val=gtk3 ;;
3912 as_fn_error "\`--with-x-toolkit=$withval' is invalid;
3913 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk' or
3914 \`gtk3'. \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." "$LINENO" 5
3916 esac
3917 with_x_toolkit=$val
3923 # Check whether --with-wide-int was given.
3924 if test "${with_wide_int+set}" = set; then :
3925 withval=$with_wide_int;
3926 else
3927 with_wide_int=no
3930 if test "$with_wide_int" = yes; then
3932 $as_echo "#define WIDE_EMACS_INT 1" >>confdefs.h
3937 # Check whether --with-xpm was given.
3938 if test "${with_xpm+set}" = set; then :
3939 withval=$with_xpm;
3940 else
3941 with_xpm=yes
3945 # Check whether --with-jpeg was given.
3946 if test "${with_jpeg+set}" = set; then :
3947 withval=$with_jpeg;
3948 else
3949 with_jpeg=yes
3953 # Check whether --with-tiff was given.
3954 if test "${with_tiff+set}" = set; then :
3955 withval=$with_tiff;
3956 else
3957 with_tiff=yes
3961 # Check whether --with-gif was given.
3962 if test "${with_gif+set}" = set; then :
3963 withval=$with_gif;
3964 else
3965 with_gif=yes
3969 # Check whether --with-png was given.
3970 if test "${with_png+set}" = set; then :
3971 withval=$with_png;
3972 else
3973 with_png=yes
3977 # Check whether --with-rsvg was given.
3978 if test "${with_rsvg+set}" = set; then :
3979 withval=$with_rsvg;
3980 else
3981 with_rsvg=yes
3985 # Check whether --with-xml2 was given.
3986 if test "${with_xml2+set}" = set; then :
3987 withval=$with_xml2;
3988 else
3989 with_xml2=yes
3993 # Check whether --with-imagemagick was given.
3994 if test "${with_imagemagick+set}" = set; then :
3995 withval=$with_imagemagick;
3996 else
3997 with_imagemagick=yes
4002 # Check whether --with-xft was given.
4003 if test "${with_xft+set}" = set; then :
4004 withval=$with_xft;
4005 else
4006 with_xft=yes
4010 # Check whether --with-libotf was given.
4011 if test "${with_libotf+set}" = set; then :
4012 withval=$with_libotf;
4013 else
4014 with_libotf=yes
4018 # Check whether --with-m17n-flt was given.
4019 if test "${with_m17n_flt+set}" = set; then :
4020 withval=$with_m17n_flt;
4021 else
4022 with_m17n_flt=yes
4027 # Check whether --with-toolkit-scroll-bars was given.
4028 if test "${with_toolkit_scroll_bars+set}" = set; then :
4029 withval=$with_toolkit_scroll_bars;
4030 else
4031 with_toolkit_scroll_bars=yes
4035 # Check whether --with-xaw3d was given.
4036 if test "${with_xaw3d+set}" = set; then :
4037 withval=$with_xaw3d;
4038 else
4039 with_xaw3d=yes
4043 # Check whether --with-xim was given.
4044 if test "${with_xim+set}" = set; then :
4045 withval=$with_xim;
4046 else
4047 with_xim=yes
4051 # Check whether --with-ns was given.
4052 if test "${with_ns+set}" = set; then :
4053 withval=$with_ns;
4054 else
4055 with_ns=no
4060 # Check whether --with-gpm was given.
4061 if test "${with_gpm+set}" = set; then :
4062 withval=$with_gpm;
4063 else
4064 with_gpm=yes
4068 # Check whether --with-dbus was given.
4069 if test "${with_dbus+set}" = set; then :
4070 withval=$with_dbus;
4071 else
4072 with_dbus=yes
4076 # Check whether --with-gconf was given.
4077 if test "${with_gconf+set}" = set; then :
4078 withval=$with_gconf;
4079 else
4080 with_gconf=yes
4084 # Check whether --with-gsettings was given.
4085 if test "${with_gsettings+set}" = set; then :
4086 withval=$with_gsettings;
4087 else
4088 with_gsettings=yes
4092 # Check whether --with-selinux was given.
4093 if test "${with_selinux+set}" = set; then :
4094 withval=$with_selinux;
4095 else
4096 with_selinux=yes
4100 # Check whether --with-gnutls was given.
4101 if test "${with_gnutls+set}" = set; then :
4102 withval=$with_gnutls;
4103 else
4104 with_gnutls=yes
4108 ## For the times when you want to build Emacs but don't have
4109 ## a suitable makeinfo, and can live without the manuals.
4111 # Check whether --with-makeinfo was given.
4112 if test "${with_makeinfo+set}" = set; then :
4113 withval=$with_makeinfo;
4114 else
4115 with_makeinfo=yes
4119 ## Makefile.in needs the cache file name.
4122 ## This is an option because I do not know if all info/man support
4123 ## compressed files, nor how to test if they do so.
4125 # Check whether --with-compress-info was given.
4126 if test "${with_compress_info+set}" = set; then :
4127 withval=$with_compress_info;
4128 else
4129 with_compress_info=yes
4132 if test $with_compress_info = yes; then
4133 GZIP_INFO=yes
4134 else
4135 GZIP_INFO=
4140 # Check whether --with-pkg-config-prog was given.
4141 if test "${with_pkg_config_prog+set}" = set; then :
4142 withval=$with_pkg_config_prog;
4145 if test "X${with_pkg_config_prog}" != X; then
4146 if test "${with_pkg_config_prog}" != yes; then
4147 PKG_CONFIG="${with_pkg_config_prog}"
4151 CRT_DIR=
4153 # Check whether --with-crt-dir was given.
4154 if test "${with_crt_dir+set}" = set; then :
4155 withval=$with_crt_dir;
4158 CRT_DIR="${with_crt_dir}"
4161 # Check whether --with-gameuser was given.
4162 if test "${with_gameuser+set}" = set; then :
4163 withval=$with_gameuser;
4166 test "X${with_gameuser}" != X && test "${with_gameuser}" != yes \
4167 && gameuser="${with_gameuser}"
4168 test "X$gameuser" = X && gameuser=games
4171 # Check whether --with-gnustep-conf was given.
4172 if test "${with_gnustep_conf+set}" = set; then :
4173 withval=$with_gnustep_conf;
4176 test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
4177 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
4178 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
4179 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
4181 # Check whether --enable-ns-self-contained was given.
4182 if test "${enable_ns_self_contained+set}" = set; then :
4183 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
4184 else
4185 EN_NS_SELF_CONTAINED=yes
4189 # Check whether --enable-asserts was given.
4190 if test "${enable_asserts+set}" = set; then :
4191 enableval=$enable_asserts; USE_XASSERTS=$enableval
4192 else
4193 USE_XASSERTS=no
4197 # Check whether --enable-locallisppath was given.
4198 if test "${enable_locallisppath+set}" = set; then :
4199 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
4200 locallisppath=
4201 elif test "${enableval}" != "yes"; then
4202 locallisppath=${enableval}
4207 # Check whether --enable-checking was given.
4208 if test "${enable_checking+set}" = set; then :
4209 enableval=$enable_checking; ac_checking_flags="${enableval}"
4212 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
4213 for check in $ac_checking_flags
4215 case $check in
4216 # these set all the flags to specific states
4217 yes) ac_enable_checking=1 ;;
4218 no) ac_enable_checking= ;
4219 ac_gc_check_stringbytes= ;
4220 ac_gc_check_string_overrun= ;
4221 ac_gc_check_string_free_list= ;
4222 ac_xmalloc_overrun= ;
4223 ac_gc_check_cons_list= ;;
4224 all) ac_enable_checking=1 ;
4225 ac_gc_check_stringbytes=1 ;
4226 ac_gc_check_string_overrun=1 ;
4227 ac_gc_check_string_free_list=1 ;
4228 ac_xmalloc_overrun=1 ;
4229 ac_gc_check_cons_list=1 ;;
4230 # these enable particular checks
4231 stringbytes) ac_gc_check_stringbytes=1 ;;
4232 stringoverrun) ac_gc_check_string_overrun=1 ;;
4233 stringfreelist) ac_gc_check_string_free_list=1 ;;
4234 xmallocoverrun) ac_xmalloc_overrun=1 ;;
4235 conslist) ac_gc_check_cons_list=1 ;;
4236 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
4237 esac
4238 done
4239 IFS="$ac_save_IFS"
4241 if test x$ac_enable_checking != x ; then
4243 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
4246 if test x$ac_gc_check_stringbytes != x ; then
4248 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
4251 if test x$ac_gc_check_string_overrun != x ; then
4253 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
4256 if test x$ac_gc_check_string_free_list != x ; then
4258 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
4261 if test x$ac_xmalloc_overrun != x ; then
4263 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
4266 if test x$ac_gc_check_cons_list != x ; then
4268 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
4272 # Check whether --enable-use-lisp-union-type was given.
4273 if test "${enable_use_lisp_union_type+set}" = set; then :
4274 enableval=$enable_use_lisp_union_type; if test "${enableval}" != "no"; then
4276 $as_echo "#define USE_LISP_UNION_TYPE 1" >>confdefs.h
4283 # Check whether --enable-profiling was given.
4284 if test "${enable_profiling+set}" = set; then :
4285 enableval=$enable_profiling; ac_enable_profiling="${enableval}"
4288 if test x$ac_enable_profiling != x ; then
4289 PROFILING_CFLAGS="-DPROFILING=1 -pg"
4290 else
4291 PROFILING_CFLAGS=
4295 # Check whether --enable-autodepend was given.
4296 if test "${enable_autodepend+set}" = set; then :
4297 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}"
4298 else
4299 ac_enable_autodepend=yes
4303 #### Make srcdir absolute, if it isn't already. It's important to
4304 #### avoid running the path through pwd unnecessarily, since pwd can
4305 #### give you automounter prefixes, which can go away. We do all this
4306 #### so Emacs can find its files when run uninstalled.
4307 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
4308 unset CDPATH
4309 case "${srcdir}" in
4310 /* ) ;;
4312 ## We may be able to use the $PWD environment variable to make this
4313 ## absolute. But sometimes PWD is inaccurate.
4314 ## Note: we used to use ${PWD} at the end instead of `pwd`,
4315 ## but that tested only for a well-formed and valid PWD,
4316 ## it did not object when PWD was well-formed and valid but just wrong.
4317 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
4318 then
4319 srcdir="$PWD"
4320 else
4321 srcdir="`(cd ${srcdir}; pwd)`"
4324 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
4325 esac
4327 #### Given the configuration name, set opsysfile to the
4328 #### name of s/*.h file we should use.
4330 ### Canonicalize the configuration name.
4332 # Make sure we can run config.sub.
4333 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4334 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4337 $as_echo_n "checking build system type... " >&6; }
4338 if test "${ac_cv_build+set}" = set; then :
4339 $as_echo_n "(cached) " >&6
4340 else
4341 ac_build_alias=$build_alias
4342 test "x$ac_build_alias" = x &&
4343 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4344 test "x$ac_build_alias" = x &&
4345 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4346 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4347 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4351 $as_echo "$ac_cv_build" >&6; }
4352 case $ac_cv_build in
4353 *-*-*) ;;
4354 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4355 esac
4356 build=$ac_cv_build
4357 ac_save_IFS=$IFS; IFS='-'
4358 set x $ac_cv_build
4359 shift
4360 build_cpu=$1
4361 build_vendor=$2
4362 shift; shift
4363 # Remember, the first character of IFS is used to create $*,
4364 # except with old shells:
4365 build_os=$*
4366 IFS=$ac_save_IFS
4367 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4371 $as_echo_n "checking host system type... " >&6; }
4372 if test "${ac_cv_host+set}" = set; then :
4373 $as_echo_n "(cached) " >&6
4374 else
4375 if test "x$host_alias" = x; then
4376 ac_cv_host=$ac_cv_build
4377 else
4378 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4379 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4384 $as_echo "$ac_cv_host" >&6; }
4385 case $ac_cv_host in
4386 *-*-*) ;;
4387 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4388 esac
4389 host=$ac_cv_host
4390 ac_save_IFS=$IFS; IFS='-'
4391 set x $ac_cv_host
4392 shift
4393 host_cpu=$1
4394 host_vendor=$2
4395 shift; shift
4396 # Remember, the first character of IFS is used to create $*,
4397 # except with old shells:
4398 host_os=$*
4399 IFS=$ac_save_IFS
4400 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4403 canonical=$host
4404 configuration=${host_alias-${build_alias-$host}}
4408 ### If you add support for a new configuration, add code to this
4409 ### switch statement to recognize your configuration name and select
4410 ### the appropriate operating system file.
4412 ### You would hope that you could choose an s/*.h
4413 ### file based on the operating system portion. However, it turns out
4414 ### that each s/*.h file is pretty manufacturer-specific.
4415 ### So we basically have to have a special case for each
4416 ### configuration name.
4418 ### As far as handling version numbers on operating systems is
4419 ### concerned, make sure things will fail in a fixable way. If
4420 ### /etc/MACHINES doesn't say anything about version numbers, be
4421 ### prepared to handle anything reasonably. If version numbers
4422 ### matter, be sure /etc/MACHINES says something about it.
4424 opsys='' unported=no
4425 case "${canonical}" in
4427 ## GNU/Linux and similar ports
4428 *-*-linux* )
4429 opsys=gnu-linux
4432 ## FreeBSD ports
4433 *-*-freebsd* )
4434 opsys=freebsd
4437 ## FreeBSD kernel + glibc based userland
4438 *-*-kfreebsd*gnu* )
4439 opsys=gnu-kfreebsd
4442 ## NetBSD ports
4443 *-*-netbsd* )
4444 opsys=netbsd
4447 ## OpenBSD ports
4448 *-*-openbsd* )
4449 opsys=openbsd
4452 ## Apple Darwin / Mac OS X
4453 *-apple-darwin* )
4454 case "${canonical}" in
4455 i[3456]86-* ) ;;
4456 powerpc-* ) ;;
4457 x86_64-* ) ;;
4458 * ) unported=yes ;;
4459 esac
4460 opsys=darwin
4461 ## Use fink packages if available.
4462 ## FIXME find a better way to do this: http://debbugs.gnu.org/11507
4463 ## if test -d /sw/include && test -d /sw/lib; then
4464 ## GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
4465 ## NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
4466 ## fi
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 opsys=aix4-2
4482 powerpc-ibm-aix4.[23]* )
4483 opsys=aix4-2
4485 rs6000-ibm-aix[56]* )
4486 opsys=aix4-2
4488 powerpc-ibm-aix[56]* )
4489 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_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
4502 ## Suns
4503 *-sun-solaris* \
4504 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* \
4505 | x86_64-*-solaris2* | x86_64-*-sunos5*)
4506 case "${canonical}" in
4507 i[3456]86-*-* ) ;;
4508 amd64-*-*|x86_64-*-*) ;;
4509 sparc* ) ;;
4510 * ) unported=yes ;;
4511 esac
4512 case "${canonical}" in
4513 *-sunos5.6* | *-solaris2.6* )
4514 opsys=sol2-6
4515 RANLIB="ar -ts"
4517 *-sunos5.[7-9]* | *-solaris2.[7-9]* )
4518 opsys=sol2-6
4519 emacs_check_sunpro_c=yes
4521 *-sunos5* | *-solaris* )
4522 opsys=sol2-10
4523 emacs_check_sunpro_c=yes
4525 esac
4526 ## Watch out for a compiler that we know will not work.
4527 case "${canonical}" in
4528 *-solaris* | *-sunos5* )
4529 if [ "x$CC" = x/usr/ucb/cc ]; then
4530 ## /usr/ucb/cc doesn't work;
4531 ## we should find some other compiler that does work.
4532 unset CC
4535 *) ;;
4536 esac
4539 ## Intel 386 machines where we don't care about the manufacturer.
4540 i[3456]86-*-* )
4541 case "${canonical}" in
4542 *-cygwin ) opsys=cygwin ;;
4543 *-darwin* ) opsys=darwin ;;
4544 *-sysv4.2uw* ) opsys=unixware ;;
4545 *-sysv5uw* ) opsys=unixware ;;
4546 *-sysv5OpenUNIX* ) opsys=unixware ;;
4547 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
4548 esac
4552 unported=yes
4554 esac
4556 ### If the code above didn't choose an operating system, just choose
4557 ### an operating system based on the configuration name. You really
4558 ### only want to use this when you have no idea what the right
4559 ### operating system is; if you know what operating systems a machine
4560 ### runs, it's cleaner to make it explicit in the case statement
4561 ### above.
4562 if test x"${opsys}" = x; then
4563 case "${canonical}" in
4564 *-gnu* ) opsys=gnu ;;
4566 unported=yes
4568 esac
4573 if test $unported = yes; then
4574 as_fn_error "Emacs hasn't been ported to \`${canonical}' systems.
4575 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
4578 opsysfile="s/${opsys}.h"
4581 #### Choose a compiler.
4583 ac_ext=c
4584 ac_cpp='$CPP $CPPFLAGS'
4585 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4586 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4587 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4588 if test -n "$ac_tool_prefix"; then
4589 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4590 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4592 $as_echo_n "checking for $ac_word... " >&6; }
4593 if test "${ac_cv_prog_CC+set}" = set; then :
4594 $as_echo_n "(cached) " >&6
4595 else
4596 if test -n "$CC"; then
4597 ac_cv_prog_CC="$CC" # Let the user override the test.
4598 else
4599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4600 for as_dir in $PATH
4602 IFS=$as_save_IFS
4603 test -z "$as_dir" && as_dir=.
4604 for ac_exec_ext in '' $ac_executable_extensions; do
4605 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4606 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4608 break 2
4610 done
4611 done
4612 IFS=$as_save_IFS
4616 CC=$ac_cv_prog_CC
4617 if test -n "$CC"; then
4618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4619 $as_echo "$CC" >&6; }
4620 else
4621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4622 $as_echo "no" >&6; }
4627 if test -z "$ac_cv_prog_CC"; then
4628 ac_ct_CC=$CC
4629 # Extract the first word of "gcc", so it can be a program name with args.
4630 set dummy gcc; ac_word=$2
4631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4632 $as_echo_n "checking for $ac_word... " >&6; }
4633 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4634 $as_echo_n "(cached) " >&6
4635 else
4636 if test -n "$ac_ct_CC"; then
4637 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4638 else
4639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4640 for as_dir in $PATH
4642 IFS=$as_save_IFS
4643 test -z "$as_dir" && as_dir=.
4644 for ac_exec_ext in '' $ac_executable_extensions; do
4645 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4646 ac_cv_prog_ac_ct_CC="gcc"
4647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4648 break 2
4650 done
4651 done
4652 IFS=$as_save_IFS
4656 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4657 if test -n "$ac_ct_CC"; then
4658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4659 $as_echo "$ac_ct_CC" >&6; }
4660 else
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4662 $as_echo "no" >&6; }
4665 if test "x$ac_ct_CC" = x; then
4666 CC=""
4667 else
4668 case $cross_compiling:$ac_tool_warned in
4669 yes:)
4670 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4671 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4672 ac_tool_warned=yes ;;
4673 esac
4674 CC=$ac_ct_CC
4676 else
4677 CC="$ac_cv_prog_CC"
4680 if test -z "$CC"; then
4681 if test -n "$ac_tool_prefix"; then
4682 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4683 set dummy ${ac_tool_prefix}cc; ac_word=$2
4684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4685 $as_echo_n "checking for $ac_word... " >&6; }
4686 if test "${ac_cv_prog_CC+set}" = set; then :
4687 $as_echo_n "(cached) " >&6
4688 else
4689 if test -n "$CC"; then
4690 ac_cv_prog_CC="$CC" # Let the user override the test.
4691 else
4692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4693 for as_dir in $PATH
4695 IFS=$as_save_IFS
4696 test -z "$as_dir" && as_dir=.
4697 for ac_exec_ext in '' $ac_executable_extensions; do
4698 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4699 ac_cv_prog_CC="${ac_tool_prefix}cc"
4700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4701 break 2
4703 done
4704 done
4705 IFS=$as_save_IFS
4709 CC=$ac_cv_prog_CC
4710 if test -n "$CC"; then
4711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4712 $as_echo "$CC" >&6; }
4713 else
4714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4715 $as_echo "no" >&6; }
4721 if test -z "$CC"; then
4722 # Extract the first word of "cc", so it can be a program name with args.
4723 set dummy cc; ac_word=$2
4724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4725 $as_echo_n "checking for $ac_word... " >&6; }
4726 if test "${ac_cv_prog_CC+set}" = set; then :
4727 $as_echo_n "(cached) " >&6
4728 else
4729 if test -n "$CC"; then
4730 ac_cv_prog_CC="$CC" # Let the user override the test.
4731 else
4732 ac_prog_rejected=no
4733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4734 for as_dir in $PATH
4736 IFS=$as_save_IFS
4737 test -z "$as_dir" && as_dir=.
4738 for ac_exec_ext in '' $ac_executable_extensions; do
4739 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4740 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4741 ac_prog_rejected=yes
4742 continue
4744 ac_cv_prog_CC="cc"
4745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4746 break 2
4748 done
4749 done
4750 IFS=$as_save_IFS
4752 if test $ac_prog_rejected = yes; then
4753 # We found a bogon in the path, so make sure we never use it.
4754 set dummy $ac_cv_prog_CC
4755 shift
4756 if test $# != 0; then
4757 # We chose a different compiler from the bogus one.
4758 # However, it has the same basename, so the bogon will be chosen
4759 # first if we set CC to just the basename; use the full file name.
4760 shift
4761 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4766 CC=$ac_cv_prog_CC
4767 if test -n "$CC"; then
4768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4769 $as_echo "$CC" >&6; }
4770 else
4771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4772 $as_echo "no" >&6; }
4777 if test -z "$CC"; then
4778 if test -n "$ac_tool_prefix"; then
4779 for ac_prog in cl.exe
4781 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4782 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4784 $as_echo_n "checking for $ac_word... " >&6; }
4785 if test "${ac_cv_prog_CC+set}" = set; then :
4786 $as_echo_n "(cached) " >&6
4787 else
4788 if test -n "$CC"; then
4789 ac_cv_prog_CC="$CC" # Let the user override the test.
4790 else
4791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4792 for as_dir in $PATH
4794 IFS=$as_save_IFS
4795 test -z "$as_dir" && as_dir=.
4796 for ac_exec_ext in '' $ac_executable_extensions; do
4797 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4798 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4800 break 2
4802 done
4803 done
4804 IFS=$as_save_IFS
4808 CC=$ac_cv_prog_CC
4809 if test -n "$CC"; then
4810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4811 $as_echo "$CC" >&6; }
4812 else
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4814 $as_echo "no" >&6; }
4818 test -n "$CC" && break
4819 done
4821 if test -z "$CC"; then
4822 ac_ct_CC=$CC
4823 for ac_prog in cl.exe
4825 # Extract the first word of "$ac_prog", so it can be a program name with args.
4826 set dummy $ac_prog; ac_word=$2
4827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4828 $as_echo_n "checking for $ac_word... " >&6; }
4829 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4830 $as_echo_n "(cached) " >&6
4831 else
4832 if test -n "$ac_ct_CC"; then
4833 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4834 else
4835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4836 for as_dir in $PATH
4838 IFS=$as_save_IFS
4839 test -z "$as_dir" && as_dir=.
4840 for ac_exec_ext in '' $ac_executable_extensions; do
4841 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4842 ac_cv_prog_ac_ct_CC="$ac_prog"
4843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4844 break 2
4846 done
4847 done
4848 IFS=$as_save_IFS
4852 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4853 if test -n "$ac_ct_CC"; then
4854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4855 $as_echo "$ac_ct_CC" >&6; }
4856 else
4857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4858 $as_echo "no" >&6; }
4862 test -n "$ac_ct_CC" && break
4863 done
4865 if test "x$ac_ct_CC" = x; then
4866 CC=""
4867 else
4868 case $cross_compiling:$ac_tool_warned in
4869 yes:)
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4871 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4872 ac_tool_warned=yes ;;
4873 esac
4874 CC=$ac_ct_CC
4881 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4882 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4883 as_fn_error "no acceptable C compiler found in \$PATH
4884 See \`config.log' for more details." "$LINENO" 5; }
4886 # Provide some information about the compiler.
4887 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4888 set X $ac_compile
4889 ac_compiler=$2
4890 for ac_option in --version -v -V -qversion; do
4891 { { ac_try="$ac_compiler $ac_option >&5"
4892 case "(($ac_try" in
4893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4894 *) ac_try_echo=$ac_try;;
4895 esac
4896 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4897 $as_echo "$ac_try_echo"; } >&5
4898 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4899 ac_status=$?
4900 if test -s conftest.err; then
4901 sed '10a\
4902 ... rest of stderr output deleted ...
4903 10q' conftest.err >conftest.er1
4904 cat conftest.er1 >&5
4906 rm -f conftest.er1 conftest.err
4907 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4908 test $ac_status = 0; }
4909 done
4911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4912 /* end confdefs.h. */
4915 main ()
4919 return 0;
4921 _ACEOF
4922 ac_clean_files_save=$ac_clean_files
4923 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4924 # Try to create an executable without -o first, disregard a.out.
4925 # It will help us diagnose broken compilers, and finding out an intuition
4926 # of exeext.
4927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4928 $as_echo_n "checking whether the C compiler works... " >&6; }
4929 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4931 # The possible output files:
4932 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4934 ac_rmfiles=
4935 for ac_file in $ac_files
4937 case $ac_file in
4938 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4939 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4940 esac
4941 done
4942 rm -f $ac_rmfiles
4944 if { { ac_try="$ac_link_default"
4945 case "(($ac_try" in
4946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4947 *) ac_try_echo=$ac_try;;
4948 esac
4949 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4950 $as_echo "$ac_try_echo"; } >&5
4951 (eval "$ac_link_default") 2>&5
4952 ac_status=$?
4953 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4954 test $ac_status = 0; }; then :
4955 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4956 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4957 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4958 # so that the user can short-circuit this test for compilers unknown to
4959 # Autoconf.
4960 for ac_file in $ac_files ''
4962 test -f "$ac_file" || continue
4963 case $ac_file in
4964 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4966 [ab].out )
4967 # We found the default executable, but exeext='' is most
4968 # certainly right.
4969 break;;
4970 *.* )
4971 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4972 then :; else
4973 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4975 # We set ac_cv_exeext here because the later test for it is not
4976 # safe: cross compilers may not add the suffix if given an `-o'
4977 # argument, so we may need to know it at that point already.
4978 # Even if this section looks crufty: it has the advantage of
4979 # actually working.
4980 break;;
4982 break;;
4983 esac
4984 done
4985 test "$ac_cv_exeext" = no && ac_cv_exeext=
4987 else
4988 ac_file=''
4990 if test -z "$ac_file"; then :
4991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4992 $as_echo "no" >&6; }
4993 $as_echo "$as_me: failed program was:" >&5
4994 sed 's/^/| /' conftest.$ac_ext >&5
4996 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4997 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4998 { as_fn_set_status 77
4999 as_fn_error "C compiler cannot create executables
5000 See \`config.log' for more details." "$LINENO" 5; }; }
5001 else
5002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5003 $as_echo "yes" >&6; }
5005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5006 $as_echo_n "checking for C compiler default output file name... " >&6; }
5007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5008 $as_echo "$ac_file" >&6; }
5009 ac_exeext=$ac_cv_exeext
5011 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
5012 ac_clean_files=$ac_clean_files_save
5013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5014 $as_echo_n "checking for suffix of executables... " >&6; }
5015 if { { ac_try="$ac_link"
5016 case "(($ac_try" in
5017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5018 *) ac_try_echo=$ac_try;;
5019 esac
5020 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5021 $as_echo "$ac_try_echo"; } >&5
5022 (eval "$ac_link") 2>&5
5023 ac_status=$?
5024 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5025 test $ac_status = 0; }; then :
5026 # If both `conftest.exe' and `conftest' are `present' (well, observable)
5027 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
5028 # work properly (i.e., refer to `conftest.exe'), while it won't with
5029 # `rm'.
5030 for ac_file in conftest.exe conftest conftest.*; do
5031 test -f "$ac_file" || continue
5032 case $ac_file in
5033 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5034 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5035 break;;
5036 * ) break;;
5037 esac
5038 done
5039 else
5040 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5041 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5042 as_fn_error "cannot compute suffix of executables: cannot compile and link
5043 See \`config.log' for more details." "$LINENO" 5; }
5045 rm -f conftest conftest$ac_cv_exeext
5046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5047 $as_echo "$ac_cv_exeext" >&6; }
5049 rm -f conftest.$ac_ext
5050 EXEEXT=$ac_cv_exeext
5051 ac_exeext=$EXEEXT
5052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5053 /* end confdefs.h. */
5054 #include <stdio.h>
5056 main ()
5058 FILE *f = fopen ("conftest.out", "w");
5059 return ferror (f) || fclose (f) != 0;
5062 return 0;
5064 _ACEOF
5065 ac_clean_files="$ac_clean_files conftest.out"
5066 # Check that the compiler produces executables we can run. If not, either
5067 # the compiler is broken, or we cross compile.
5068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5069 $as_echo_n "checking whether we are cross compiling... " >&6; }
5070 if test "$cross_compiling" != yes; then
5071 { { ac_try="$ac_link"
5072 case "(($ac_try" in
5073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5074 *) ac_try_echo=$ac_try;;
5075 esac
5076 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5077 $as_echo "$ac_try_echo"; } >&5
5078 (eval "$ac_link") 2>&5
5079 ac_status=$?
5080 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5081 test $ac_status = 0; }
5082 if { ac_try='./conftest$ac_cv_exeext'
5083 { { case "(($ac_try" in
5084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5085 *) ac_try_echo=$ac_try;;
5086 esac
5087 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5088 $as_echo "$ac_try_echo"; } >&5
5089 (eval "$ac_try") 2>&5
5090 ac_status=$?
5091 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5092 test $ac_status = 0; }; }; then
5093 cross_compiling=no
5094 else
5095 if test "$cross_compiling" = maybe; then
5096 cross_compiling=yes
5097 else
5098 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5099 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5100 as_fn_error "cannot run C compiled programs.
5101 If you meant to cross compile, use \`--host'.
5102 See \`config.log' for more details." "$LINENO" 5; }
5106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5107 $as_echo "$cross_compiling" >&6; }
5109 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5110 ac_clean_files=$ac_clean_files_save
5111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5112 $as_echo_n "checking for suffix of object files... " >&6; }
5113 if test "${ac_cv_objext+set}" = set; then :
5114 $as_echo_n "(cached) " >&6
5115 else
5116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5117 /* end confdefs.h. */
5120 main ()
5124 return 0;
5126 _ACEOF
5127 rm -f conftest.o conftest.obj
5128 if { { ac_try="$ac_compile"
5129 case "(($ac_try" in
5130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5131 *) ac_try_echo=$ac_try;;
5132 esac
5133 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5134 $as_echo "$ac_try_echo"; } >&5
5135 (eval "$ac_compile") 2>&5
5136 ac_status=$?
5137 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5138 test $ac_status = 0; }; then :
5139 for ac_file in conftest.o conftest.obj conftest.*; do
5140 test -f "$ac_file" || continue;
5141 case $ac_file in
5142 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5143 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5144 break;;
5145 esac
5146 done
5147 else
5148 $as_echo "$as_me: failed program was:" >&5
5149 sed 's/^/| /' conftest.$ac_ext >&5
5151 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5152 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5153 as_fn_error "cannot compute suffix of object files: cannot compile
5154 See \`config.log' for more details." "$LINENO" 5; }
5156 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5159 $as_echo "$ac_cv_objext" >&6; }
5160 OBJEXT=$ac_cv_objext
5161 ac_objext=$OBJEXT
5162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5163 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5164 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5165 $as_echo_n "(cached) " >&6
5166 else
5167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5168 /* end confdefs.h. */
5171 main ()
5173 #ifndef __GNUC__
5174 choke me
5175 #endif
5178 return 0;
5180 _ACEOF
5181 if ac_fn_c_try_compile "$LINENO"; then :
5182 ac_compiler_gnu=yes
5183 else
5184 ac_compiler_gnu=no
5186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5187 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5191 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5192 if test $ac_compiler_gnu = yes; then
5193 GCC=yes
5194 else
5195 GCC=
5197 ac_test_CFLAGS=${CFLAGS+set}
5198 ac_save_CFLAGS=$CFLAGS
5199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5200 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5201 if test "${ac_cv_prog_cc_g+set}" = set; then :
5202 $as_echo_n "(cached) " >&6
5203 else
5204 ac_save_c_werror_flag=$ac_c_werror_flag
5205 ac_c_werror_flag=yes
5206 ac_cv_prog_cc_g=no
5207 CFLAGS="-g"
5208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5209 /* end confdefs.h. */
5212 main ()
5216 return 0;
5218 _ACEOF
5219 if ac_fn_c_try_compile "$LINENO"; then :
5220 ac_cv_prog_cc_g=yes
5221 else
5222 CFLAGS=""
5223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5224 /* end confdefs.h. */
5227 main ()
5231 return 0;
5233 _ACEOF
5234 if ac_fn_c_try_compile "$LINENO"; then :
5236 else
5237 ac_c_werror_flag=$ac_save_c_werror_flag
5238 CFLAGS="-g"
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 :
5251 ac_cv_prog_cc_g=yes
5253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5258 ac_c_werror_flag=$ac_save_c_werror_flag
5260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5261 $as_echo "$ac_cv_prog_cc_g" >&6; }
5262 if test "$ac_test_CFLAGS" = set; then
5263 CFLAGS=$ac_save_CFLAGS
5264 elif test $ac_cv_prog_cc_g = yes; then
5265 if test "$GCC" = yes; then
5266 CFLAGS="-g -O2"
5267 else
5268 CFLAGS="-g"
5270 else
5271 if test "$GCC" = yes; then
5272 CFLAGS="-O2"
5273 else
5274 CFLAGS=
5277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5278 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5279 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5280 $as_echo_n "(cached) " >&6
5281 else
5282 ac_cv_prog_cc_c89=no
5283 ac_save_CC=$CC
5284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5285 /* end confdefs.h. */
5286 #include <stdarg.h>
5287 #include <stdio.h>
5288 #include <sys/types.h>
5289 #include <sys/stat.h>
5290 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5291 struct buf { int x; };
5292 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5293 static char *e (p, i)
5294 char **p;
5295 int i;
5297 return p[i];
5299 static char *f (char * (*g) (char **, int), char **p, ...)
5301 char *s;
5302 va_list v;
5303 va_start (v,p);
5304 s = g (p, va_arg (v,int));
5305 va_end (v);
5306 return s;
5309 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5310 function prototypes and stuff, but not '\xHH' hex character constants.
5311 These don't provoke an error unfortunately, instead are silently treated
5312 as 'x'. The following induces an error, until -std is added to get
5313 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5314 array size at least. It's necessary to write '\x00'==0 to get something
5315 that's true only with -std. */
5316 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5318 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5319 inside strings and character constants. */
5320 #define FOO(x) 'x'
5321 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5323 int test (int i, double x);
5324 struct s1 {int (*f) (int a);};
5325 struct s2 {int (*f) (double a);};
5326 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5327 int argc;
5328 char **argv;
5330 main ()
5332 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5334 return 0;
5336 _ACEOF
5337 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5338 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5340 CC="$ac_save_CC $ac_arg"
5341 if ac_fn_c_try_compile "$LINENO"; then :
5342 ac_cv_prog_cc_c89=$ac_arg
5344 rm -f core conftest.err conftest.$ac_objext
5345 test "x$ac_cv_prog_cc_c89" != "xno" && break
5346 done
5347 rm -f conftest.$ac_ext
5348 CC=$ac_save_CC
5351 # AC_CACHE_VAL
5352 case "x$ac_cv_prog_cc_c89" in
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5355 $as_echo "none needed" >&6; } ;;
5356 xno)
5357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5358 $as_echo "unsupported" >&6; } ;;
5360 CC="$CC $ac_cv_prog_cc_c89"
5361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5362 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5363 esac
5364 if test "x$ac_cv_prog_cc_c89" != xno; then :
5368 ac_ext=c
5369 ac_cpp='$CPP $CPPFLAGS'
5370 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5371 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5372 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5373 DEPDIR="${am__leading_dot}deps"
5375 ac_config_commands="$ac_config_commands depfiles"
5378 am_make=${MAKE-make}
5379 cat > confinc << 'END'
5380 am__doit:
5381 @echo this is the am__doit target
5382 .PHONY: am__doit
5384 # If we don't find an include directive, just comment out the code.
5385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5386 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5387 am__include="#"
5388 am__quote=
5389 _am_result=none
5390 # First try GNU make style include.
5391 echo "include confinc" > confmf
5392 # Ignore all kinds of additional output from `make'.
5393 case `$am_make -s -f confmf 2> /dev/null` in #(
5394 *the\ am__doit\ target*)
5395 am__include=include
5396 am__quote=
5397 _am_result=GNU
5399 esac
5400 # Now try BSD make style include.
5401 if test "$am__include" = "#"; then
5402 echo '.include "confinc"' > confmf
5403 case `$am_make -s -f confmf 2> /dev/null` in #(
5404 *the\ am__doit\ target*)
5405 am__include=.include
5406 am__quote="\""
5407 _am_result=BSD
5409 esac
5413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5414 $as_echo "$_am_result" >&6; }
5415 rm -f confinc confmf
5417 # Check whether --enable-dependency-tracking was given.
5418 if test "${enable_dependency_tracking+set}" = set; then :
5419 enableval=$enable_dependency_tracking;
5422 if test "x$enable_dependency_tracking" != xno; then
5423 am_depcomp="$ac_aux_dir/depcomp"
5424 AMDEPBACKSLASH='\'
5426 if test "x$enable_dependency_tracking" != xno; then
5427 AMDEP_TRUE=
5428 AMDEP_FALSE='#'
5429 else
5430 AMDEP_TRUE='#'
5431 AMDEP_FALSE=
5436 depcc="$CC" am_compiler_list=
5438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5439 $as_echo_n "checking dependency style of $depcc... " >&6; }
5440 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5441 $as_echo_n "(cached) " >&6
5442 else
5443 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5444 # We make a subdir and do the tests there. Otherwise we can end up
5445 # making bogus files that we don't know about and never remove. For
5446 # instance it was reported that on HP-UX the gcc test will end up
5447 # making a dummy file named `D' -- because `-MD' means `put the output
5448 # in D'.
5449 mkdir conftest.dir
5450 # Copy depcomp to subdir because otherwise we won't find it if we're
5451 # using a relative directory.
5452 cp "$am_depcomp" conftest.dir
5453 cd conftest.dir
5454 # We will build objects and dependencies in a subdirectory because
5455 # it helps to detect inapplicable dependency modes. For instance
5456 # both Tru64's cc and ICC support -MD to output dependencies as a
5457 # side effect of compilation, but ICC will put the dependencies in
5458 # the current directory while Tru64 will put them in the object
5459 # directory.
5460 mkdir sub
5462 am_cv_CC_dependencies_compiler_type=none
5463 if test "$am_compiler_list" = ""; then
5464 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5466 am__universal=false
5467 case " $depcc " in #(
5468 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5469 esac
5471 for depmode in $am_compiler_list; do
5472 # Setup a source with many dependencies, because some compilers
5473 # like to wrap large dependency lists on column 80 (with \), and
5474 # we should not choose a depcomp mode which is confused by this.
5476 # We need to recreate these files for each test, as the compiler may
5477 # overwrite some of them when testing with obscure command lines.
5478 # This happens at least with the AIX C compiler.
5479 : > sub/conftest.c
5480 for i in 1 2 3 4 5 6; do
5481 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5482 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5483 # Solaris 8's {/usr,}/bin/sh.
5484 touch sub/conftst$i.h
5485 done
5486 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5488 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5489 # mode. It turns out that the SunPro C++ compiler does not properly
5490 # handle `-M -o', and we need to detect this. Also, some Intel
5491 # versions had trouble with output in subdirs
5492 am__obj=sub/conftest.${OBJEXT-o}
5493 am__minus_obj="-o $am__obj"
5494 case $depmode in
5495 gcc)
5496 # This depmode causes a compiler race in universal mode.
5497 test "$am__universal" = false || continue
5499 nosideeffect)
5500 # after this tag, mechanisms are not by side-effect, so they'll
5501 # only be used when explicitly requested
5502 if test "x$enable_dependency_tracking" = xyes; then
5503 continue
5504 else
5505 break
5508 msvisualcpp | msvcmsys)
5509 # This compiler won't grok `-c -o', but also, the minuso test has
5510 # not run yet. These depmodes are late enough in the game, and
5511 # so weak that their functioning should not be impacted.
5512 am__obj=conftest.${OBJEXT-o}
5513 am__minus_obj=
5515 none) break ;;
5516 esac
5517 if depmode=$depmode \
5518 source=sub/conftest.c object=$am__obj \
5519 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5520 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5521 >/dev/null 2>conftest.err &&
5522 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5523 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5524 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5525 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5526 # icc doesn't choke on unknown options, it will just issue warnings
5527 # or remarks (even with -Werror). So we grep stderr for any message
5528 # that says an option was ignored or not supported.
5529 # When given -MP, icc 7.0 and 7.1 complain thusly:
5530 # icc: Command line warning: ignoring option '-M'; no argument required
5531 # The diagnosis changed in icc 8.0:
5532 # icc: Command line remark: option '-MP' not supported
5533 if (grep 'ignoring option' conftest.err ||
5534 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5535 am_cv_CC_dependencies_compiler_type=$depmode
5536 break
5539 done
5541 cd ..
5542 rm -rf conftest.dir
5543 else
5544 am_cv_CC_dependencies_compiler_type=none
5548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5549 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5550 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5553 test "x$enable_dependency_tracking" != xno \
5554 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5555 am__fastdepCC_TRUE=
5556 am__fastdepCC_FALSE='#'
5557 else
5558 am__fastdepCC_TRUE='#'
5559 am__fastdepCC_FALSE=
5563 if test "x$CC" != xcc; then
5564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5565 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5566 else
5567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5568 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5570 set dummy $CC; ac_cc=`$as_echo "$2" |
5571 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5572 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
5573 $as_echo_n "(cached) " >&6
5574 else
5575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5576 /* end confdefs.h. */
5579 main ()
5583 return 0;
5585 _ACEOF
5586 # Make sure it works both with $CC and with simple cc.
5587 # We do the test twice because some compilers refuse to overwrite an
5588 # existing .o file with -o, though they will create one.
5589 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5590 rm -f conftest2.*
5591 if { { case "(($ac_try" in
5592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5593 *) ac_try_echo=$ac_try;;
5594 esac
5595 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5596 $as_echo "$ac_try_echo"; } >&5
5597 (eval "$ac_try") 2>&5
5598 ac_status=$?
5599 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5600 test $ac_status = 0; } &&
5601 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5603 *) ac_try_echo=$ac_try;;
5604 esac
5605 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5606 $as_echo "$ac_try_echo"; } >&5
5607 (eval "$ac_try") 2>&5
5608 ac_status=$?
5609 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5610 test $ac_status = 0; };
5611 then
5612 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5613 if test "x$CC" != xcc; then
5614 # Test first that cc exists at all.
5615 if { ac_try='cc -c conftest.$ac_ext >&5'
5616 { { case "(($ac_try" in
5617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5618 *) ac_try_echo=$ac_try;;
5619 esac
5620 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5621 $as_echo "$ac_try_echo"; } >&5
5622 (eval "$ac_try") 2>&5
5623 ac_status=$?
5624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5625 test $ac_status = 0; }; }; then
5626 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5627 rm -f conftest2.*
5628 if { { case "(($ac_try" in
5629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5630 *) ac_try_echo=$ac_try;;
5631 esac
5632 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5633 $as_echo "$ac_try_echo"; } >&5
5634 (eval "$ac_try") 2>&5
5635 ac_status=$?
5636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5637 test $ac_status = 0; } &&
5638 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5640 *) ac_try_echo=$ac_try;;
5641 esac
5642 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5643 $as_echo "$ac_try_echo"; } >&5
5644 (eval "$ac_try") 2>&5
5645 ac_status=$?
5646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5647 test $ac_status = 0; };
5648 then
5649 # cc works too.
5651 else
5652 # cc exists but doesn't like -o.
5653 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5657 else
5658 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5660 rm -f core conftest*
5663 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5665 $as_echo "yes" >&6; }
5666 else
5667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5668 $as_echo "no" >&6; }
5670 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5674 # FIXME: we rely on the cache variable name because
5675 # there is no other way.
5676 set dummy $CC
5677 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5678 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5679 if test "$am_t" != yes; then
5680 # Losing compiler, so override with the script.
5681 # FIXME: It is wrong to rewrite CC.
5682 # But if we don't then we get into trouble of one sort or another.
5683 # A longer-term fix would be to have automake use am__CC in this case,
5684 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5685 CC="$am_aux_dir/compile $CC"
5690 if test x$GCC = xyes; then
5691 test "x$GCC_TEST_OPTIONS" != x && CC="$CC $GCC_TEST_OPTIONS"
5692 else
5693 test "x$NON_GCC_TEST_OPTIONS" != x && CC="$CC $NON_GCC_TEST_OPTIONS"
5696 # Initialize gnulib right after choosing the compiler.
5698 ac_ext=c
5699 ac_cpp='$CPP $CPPFLAGS'
5700 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5701 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5702 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5704 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5705 # On Suns, sometimes $CPP names a directory.
5706 if test -n "$CPP" && test -d "$CPP"; then
5707 CPP=
5709 if test -z "$CPP"; then
5710 if test "${ac_cv_prog_CPP+set}" = set; then :
5711 $as_echo_n "(cached) " >&6
5712 else
5713 # Double quotes because CPP needs to be expanded
5714 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5716 ac_preproc_ok=false
5717 for ac_c_preproc_warn_flag in '' yes
5719 # Use a header file that comes with gcc, so configuring glibc
5720 # with a fresh cross-compiler works.
5721 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5722 # <limits.h> exists even on freestanding compilers.
5723 # On the NeXT, cc -E runs the code through the compiler's parser,
5724 # not just through cpp. "Syntax error" is here to catch this case.
5725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5726 /* end confdefs.h. */
5727 #ifdef __STDC__
5728 # include <limits.h>
5729 #else
5730 # include <assert.h>
5731 #endif
5732 Syntax error
5733 _ACEOF
5734 if ac_fn_c_try_cpp "$LINENO"; then :
5736 else
5737 # Broken: fails on valid input.
5738 continue
5740 rm -f conftest.err conftest.$ac_ext
5742 # OK, works on sane cases. Now check whether nonexistent headers
5743 # can be detected and how.
5744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5745 /* end confdefs.h. */
5746 #include <ac_nonexistent.h>
5747 _ACEOF
5748 if ac_fn_c_try_cpp "$LINENO"; then :
5749 # Broken: success on invalid input.
5750 continue
5751 else
5752 # Passes both tests.
5753 ac_preproc_ok=:
5754 break
5756 rm -f conftest.err conftest.$ac_ext
5758 done
5759 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5760 rm -f conftest.err conftest.$ac_ext
5761 if $ac_preproc_ok; then :
5762 break
5765 done
5766 ac_cv_prog_CPP=$CPP
5769 CPP=$ac_cv_prog_CPP
5770 else
5771 ac_cv_prog_CPP=$CPP
5773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5774 $as_echo "$CPP" >&6; }
5775 ac_preproc_ok=false
5776 for ac_c_preproc_warn_flag in '' yes
5778 # Use a header file that comes with gcc, so configuring glibc
5779 # with a fresh cross-compiler works.
5780 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5781 # <limits.h> exists even on freestanding compilers.
5782 # On the NeXT, cc -E runs the code through the compiler's parser,
5783 # not just through cpp. "Syntax error" is here to catch this case.
5784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5785 /* end confdefs.h. */
5786 #ifdef __STDC__
5787 # include <limits.h>
5788 #else
5789 # include <assert.h>
5790 #endif
5791 Syntax error
5792 _ACEOF
5793 if ac_fn_c_try_cpp "$LINENO"; then :
5795 else
5796 # Broken: fails on valid input.
5797 continue
5799 rm -f conftest.err conftest.$ac_ext
5801 # OK, works on sane cases. Now check whether nonexistent headers
5802 # can be detected and how.
5803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5804 /* end confdefs.h. */
5805 #include <ac_nonexistent.h>
5806 _ACEOF
5807 if ac_fn_c_try_cpp "$LINENO"; then :
5808 # Broken: success on invalid input.
5809 continue
5810 else
5811 # Passes both tests.
5812 ac_preproc_ok=:
5813 break
5815 rm -f conftest.err conftest.$ac_ext
5817 done
5818 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5819 rm -f conftest.err conftest.$ac_ext
5820 if $ac_preproc_ok; then :
5822 else
5823 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5824 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5825 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5826 See \`config.log' for more details." "$LINENO" 5; }
5829 ac_ext=c
5830 ac_cpp='$CPP $CPPFLAGS'
5831 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5832 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5833 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5837 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5838 if test "${ac_cv_path_GREP+set}" = set; then :
5839 $as_echo_n "(cached) " >&6
5840 else
5841 if test -z "$GREP"; then
5842 ac_path_GREP_found=false
5843 # Loop through the user's path and test for each of PROGNAME-LIST
5844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5845 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5847 IFS=$as_save_IFS
5848 test -z "$as_dir" && as_dir=.
5849 for ac_prog in grep ggrep; do
5850 for ac_exec_ext in '' $ac_executable_extensions; do
5851 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5852 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5853 # Check for GNU ac_path_GREP and select it if it is found.
5854 # Check for GNU $ac_path_GREP
5855 case `"$ac_path_GREP" --version 2>&1` in
5856 *GNU*)
5857 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5859 ac_count=0
5860 $as_echo_n 0123456789 >"conftest.in"
5861 while :
5863 cat "conftest.in" "conftest.in" >"conftest.tmp"
5864 mv "conftest.tmp" "conftest.in"
5865 cp "conftest.in" "conftest.nl"
5866 $as_echo 'GREP' >> "conftest.nl"
5867 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5868 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5869 as_fn_arith $ac_count + 1 && ac_count=$as_val
5870 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5871 # Best one so far, save it but keep looking for a better one
5872 ac_cv_path_GREP="$ac_path_GREP"
5873 ac_path_GREP_max=$ac_count
5875 # 10*(2^10) chars as input seems more than enough
5876 test $ac_count -gt 10 && break
5877 done
5878 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5879 esac
5881 $ac_path_GREP_found && break 3
5882 done
5883 done
5884 done
5885 IFS=$as_save_IFS
5886 if test -z "$ac_cv_path_GREP"; then
5887 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5889 else
5890 ac_cv_path_GREP=$GREP
5894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5895 $as_echo "$ac_cv_path_GREP" >&6; }
5896 GREP="$ac_cv_path_GREP"
5899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5900 $as_echo_n "checking for egrep... " >&6; }
5901 if test "${ac_cv_path_EGREP+set}" = set; then :
5902 $as_echo_n "(cached) " >&6
5903 else
5904 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5905 then ac_cv_path_EGREP="$GREP -E"
5906 else
5907 if test -z "$EGREP"; then
5908 ac_path_EGREP_found=false
5909 # Loop through the user's path and test for each of PROGNAME-LIST
5910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5911 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5913 IFS=$as_save_IFS
5914 test -z "$as_dir" && as_dir=.
5915 for ac_prog in egrep; do
5916 for ac_exec_ext in '' $ac_executable_extensions; do
5917 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5918 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5919 # Check for GNU ac_path_EGREP and select it if it is found.
5920 # Check for GNU $ac_path_EGREP
5921 case `"$ac_path_EGREP" --version 2>&1` in
5922 *GNU*)
5923 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5925 ac_count=0
5926 $as_echo_n 0123456789 >"conftest.in"
5927 while :
5929 cat "conftest.in" "conftest.in" >"conftest.tmp"
5930 mv "conftest.tmp" "conftest.in"
5931 cp "conftest.in" "conftest.nl"
5932 $as_echo 'EGREP' >> "conftest.nl"
5933 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5934 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5935 as_fn_arith $ac_count + 1 && ac_count=$as_val
5936 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5937 # Best one so far, save it but keep looking for a better one
5938 ac_cv_path_EGREP="$ac_path_EGREP"
5939 ac_path_EGREP_max=$ac_count
5941 # 10*(2^10) chars as input seems more than enough
5942 test $ac_count -gt 10 && break
5943 done
5944 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5945 esac
5947 $ac_path_EGREP_found && break 3
5948 done
5949 done
5950 done
5951 IFS=$as_save_IFS
5952 if test -z "$ac_cv_path_EGREP"; then
5953 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5955 else
5956 ac_cv_path_EGREP=$EGREP
5961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5962 $as_echo "$ac_cv_path_EGREP" >&6; }
5963 EGREP="$ac_cv_path_EGREP"
5968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
5969 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
5970 if test "${gl_cv_c_amsterdam_compiler+set}" = set; then :
5971 $as_echo_n "(cached) " >&6
5972 else
5974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5975 /* end confdefs.h. */
5977 #ifdef __ACK__
5978 Amsterdam
5979 #endif
5981 _ACEOF
5982 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5983 $EGREP "Amsterdam" >/dev/null 2>&1; then :
5984 gl_cv_c_amsterdam_compiler=yes
5985 else
5986 gl_cv_c_amsterdam_compiler=no
5988 rm -f conftest*
5992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
5993 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
5994 if test -z "$AR"; then
5995 if test $gl_cv_c_amsterdam_compiler = yes; then
5996 AR='cc -c.a'
5997 if test -z "$ARFLAGS"; then
5998 ARFLAGS='-o'
6000 else
6001 if test -n "$ac_tool_prefix"; then
6002 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6003 set dummy ${ac_tool_prefix}ar; ac_word=$2
6004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6005 $as_echo_n "checking for $ac_word... " >&6; }
6006 if test "${ac_cv_prog_AR+set}" = set; then :
6007 $as_echo_n "(cached) " >&6
6008 else
6009 if test -n "$AR"; then
6010 ac_cv_prog_AR="$AR" # Let the user override the test.
6011 else
6012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6013 for as_dir in $PATH
6015 IFS=$as_save_IFS
6016 test -z "$as_dir" && as_dir=.
6017 for ac_exec_ext in '' $ac_executable_extensions; do
6018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6019 ac_cv_prog_AR="${ac_tool_prefix}ar"
6020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6021 break 2
6023 done
6024 done
6025 IFS=$as_save_IFS
6029 AR=$ac_cv_prog_AR
6030 if test -n "$AR"; then
6031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6032 $as_echo "$AR" >&6; }
6033 else
6034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6035 $as_echo "no" >&6; }
6040 if test -z "$ac_cv_prog_AR"; then
6041 ac_ct_AR=$AR
6042 # Extract the first word of "ar", so it can be a program name with args.
6043 set dummy ar; ac_word=$2
6044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6045 $as_echo_n "checking for $ac_word... " >&6; }
6046 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6047 $as_echo_n "(cached) " >&6
6048 else
6049 if test -n "$ac_ct_AR"; then
6050 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6051 else
6052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6053 for as_dir in $PATH
6055 IFS=$as_save_IFS
6056 test -z "$as_dir" && as_dir=.
6057 for ac_exec_ext in '' $ac_executable_extensions; do
6058 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6059 ac_cv_prog_ac_ct_AR="ar"
6060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6061 break 2
6063 done
6064 done
6065 IFS=$as_save_IFS
6069 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6070 if test -n "$ac_ct_AR"; then
6071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6072 $as_echo "$ac_ct_AR" >&6; }
6073 else
6074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6075 $as_echo "no" >&6; }
6078 if test "x$ac_ct_AR" = x; then
6079 AR="ar"
6080 else
6081 case $cross_compiling:$ac_tool_warned in
6082 yes:)
6083 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6084 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6085 ac_tool_warned=yes ;;
6086 esac
6087 AR=$ac_ct_AR
6089 else
6090 AR="$ac_cv_prog_AR"
6093 if test -z "$ARFLAGS"; then
6094 ARFLAGS='cru'
6097 else
6098 if test -z "$ARFLAGS"; then
6099 ARFLAGS='cru'
6104 if test -z "$RANLIB"; then
6105 if test $gl_cv_c_amsterdam_compiler = yes; then
6106 RANLIB=':'
6107 else
6108 if test -n "$ac_tool_prefix"; then
6109 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6110 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6112 $as_echo_n "checking for $ac_word... " >&6; }
6113 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6114 $as_echo_n "(cached) " >&6
6115 else
6116 if test -n "$RANLIB"; then
6117 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6118 else
6119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6120 for as_dir in $PATH
6122 IFS=$as_save_IFS
6123 test -z "$as_dir" && as_dir=.
6124 for ac_exec_ext in '' $ac_executable_extensions; do
6125 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6126 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6128 break 2
6130 done
6131 done
6132 IFS=$as_save_IFS
6136 RANLIB=$ac_cv_prog_RANLIB
6137 if test -n "$RANLIB"; then
6138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6139 $as_echo "$RANLIB" >&6; }
6140 else
6141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6142 $as_echo "no" >&6; }
6147 if test -z "$ac_cv_prog_RANLIB"; then
6148 ac_ct_RANLIB=$RANLIB
6149 # Extract the first word of "ranlib", so it can be a program name with args.
6150 set dummy ranlib; ac_word=$2
6151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6152 $as_echo_n "checking for $ac_word... " >&6; }
6153 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6154 $as_echo_n "(cached) " >&6
6155 else
6156 if test -n "$ac_ct_RANLIB"; then
6157 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6158 else
6159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6160 for as_dir in $PATH
6162 IFS=$as_save_IFS
6163 test -z "$as_dir" && as_dir=.
6164 for ac_exec_ext in '' $ac_executable_extensions; do
6165 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6166 ac_cv_prog_ac_ct_RANLIB="ranlib"
6167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6168 break 2
6170 done
6171 done
6172 IFS=$as_save_IFS
6176 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6177 if test -n "$ac_ct_RANLIB"; then
6178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6179 $as_echo "$ac_ct_RANLIB" >&6; }
6180 else
6181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6182 $as_echo "no" >&6; }
6185 if test "x$ac_ct_RANLIB" = x; then
6186 RANLIB=":"
6187 else
6188 case $cross_compiling:$ac_tool_warned in
6189 yes:)
6190 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6191 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6192 ac_tool_warned=yes ;;
6193 esac
6194 RANLIB=$ac_ct_RANLIB
6196 else
6197 RANLIB="$ac_cv_prog_RANLIB"
6204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6205 $as_echo_n "checking for ANSI C header files... " >&6; }
6206 if test "${ac_cv_header_stdc+set}" = set; then :
6207 $as_echo_n "(cached) " >&6
6208 else
6209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6210 /* end confdefs.h. */
6211 #include <stdlib.h>
6212 #include <stdarg.h>
6213 #include <string.h>
6214 #include <float.h>
6217 main ()
6221 return 0;
6223 _ACEOF
6224 if ac_fn_c_try_compile "$LINENO"; then :
6225 ac_cv_header_stdc=yes
6226 else
6227 ac_cv_header_stdc=no
6229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6231 if test $ac_cv_header_stdc = yes; then
6232 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6234 /* end confdefs.h. */
6235 #include <string.h>
6237 _ACEOF
6238 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6239 $EGREP "memchr" >/dev/null 2>&1; then :
6241 else
6242 ac_cv_header_stdc=no
6244 rm -f conftest*
6248 if test $ac_cv_header_stdc = yes; then
6249 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6251 /* end confdefs.h. */
6252 #include <stdlib.h>
6254 _ACEOF
6255 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6256 $EGREP "free" >/dev/null 2>&1; then :
6258 else
6259 ac_cv_header_stdc=no
6261 rm -f conftest*
6265 if test $ac_cv_header_stdc = yes; then
6266 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6267 if test "$cross_compiling" = yes; then :
6269 else
6270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6271 /* end confdefs.h. */
6272 #include <ctype.h>
6273 #include <stdlib.h>
6274 #if ((' ' & 0x0FF) == 0x020)
6275 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6276 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6277 #else
6278 # define ISLOWER(c) \
6279 (('a' <= (c) && (c) <= 'i') \
6280 || ('j' <= (c) && (c) <= 'r') \
6281 || ('s' <= (c) && (c) <= 'z'))
6282 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6283 #endif
6285 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6287 main ()
6289 int i;
6290 for (i = 0; i < 256; i++)
6291 if (XOR (islower (i), ISLOWER (i))
6292 || toupper (i) != TOUPPER (i))
6293 return 2;
6294 return 0;
6296 _ACEOF
6297 if ac_fn_c_try_run "$LINENO"; then :
6299 else
6300 ac_cv_header_stdc=no
6302 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6303 conftest.$ac_objext conftest.beam conftest.$ac_ext
6308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6309 $as_echo "$ac_cv_header_stdc" >&6; }
6310 if test $ac_cv_header_stdc = yes; then
6312 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6316 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6317 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6318 inttypes.h stdint.h unistd.h
6319 do :
6320 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6321 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6323 eval as_val=\$$as_ac_Header
6324 if test "x$as_val" = x""yes; then :
6325 cat >>confdefs.h <<_ACEOF
6326 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6327 _ACEOF
6331 done
6337 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6338 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
6339 MINIX=yes
6340 else
6341 MINIX=
6345 if test "$MINIX" = yes; then
6347 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6350 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6353 $as_echo "#define _MINIX 1" >>confdefs.h
6357 case "$host_os" in
6358 hpux*)
6360 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
6363 esac
6366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6367 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6368 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
6369 $as_echo_n "(cached) " >&6
6370 else
6371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6372 /* end confdefs.h. */
6374 # define __EXTENSIONS__ 1
6375 $ac_includes_default
6377 main ()
6381 return 0;
6383 _ACEOF
6384 if ac_fn_c_try_compile "$LINENO"; then :
6385 ac_cv_safe_to_define___extensions__=yes
6386 else
6387 ac_cv_safe_to_define___extensions__=no
6389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6392 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6393 test $ac_cv_safe_to_define___extensions__ = yes &&
6394 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6396 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6398 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
6400 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6402 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6404 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6413 # Check whether --enable-largefile was given.
6414 if test "${enable_largefile+set}" = set; then :
6415 enableval=$enable_largefile;
6418 if test "$enable_largefile" != no; then
6420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6421 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6422 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
6423 $as_echo_n "(cached) " >&6
6424 else
6425 ac_cv_sys_largefile_CC=no
6426 if test "$GCC" != yes; then
6427 ac_save_CC=$CC
6428 while :; do
6429 # IRIX 6.2 and later do not support large files by default,
6430 # so use the C compiler's -n32 option if that helps.
6431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6432 /* end confdefs.h. */
6433 #include <sys/types.h>
6434 /* Check that off_t can represent 2**63 - 1 correctly.
6435 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6436 since some C++ compilers masquerading as C compilers
6437 incorrectly reject 9223372036854775807. */
6438 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6439 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6440 && LARGE_OFF_T % 2147483647 == 1)
6441 ? 1 : -1];
6443 main ()
6447 return 0;
6449 _ACEOF
6450 if ac_fn_c_try_compile "$LINENO"; then :
6451 break
6453 rm -f core conftest.err conftest.$ac_objext
6454 CC="$CC -n32"
6455 if ac_fn_c_try_compile "$LINENO"; then :
6456 ac_cv_sys_largefile_CC=' -n32'; break
6458 rm -f core conftest.err conftest.$ac_objext
6459 break
6460 done
6461 CC=$ac_save_CC
6462 rm -f conftest.$ac_ext
6465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6466 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6467 if test "$ac_cv_sys_largefile_CC" != no; then
6468 CC=$CC$ac_cv_sys_largefile_CC
6471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6472 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6473 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
6474 $as_echo_n "(cached) " >&6
6475 else
6476 while :; do
6477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6478 /* end confdefs.h. */
6479 #include <sys/types.h>
6480 /* Check that off_t can represent 2**63 - 1 correctly.
6481 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6482 since some C++ compilers masquerading as C compilers
6483 incorrectly reject 9223372036854775807. */
6484 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6485 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6486 && LARGE_OFF_T % 2147483647 == 1)
6487 ? 1 : -1];
6489 main ()
6493 return 0;
6495 _ACEOF
6496 if ac_fn_c_try_compile "$LINENO"; then :
6497 ac_cv_sys_file_offset_bits=no; break
6499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6501 /* end confdefs.h. */
6502 #define _FILE_OFFSET_BITS 64
6503 #include <sys/types.h>
6504 /* Check that off_t can represent 2**63 - 1 correctly.
6505 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6506 since some C++ compilers masquerading as C compilers
6507 incorrectly reject 9223372036854775807. */
6508 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6509 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6510 && LARGE_OFF_T % 2147483647 == 1)
6511 ? 1 : -1];
6513 main ()
6517 return 0;
6519 _ACEOF
6520 if ac_fn_c_try_compile "$LINENO"; then :
6521 ac_cv_sys_file_offset_bits=64; break
6523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6524 ac_cv_sys_file_offset_bits=unknown
6525 break
6526 done
6528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6529 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6530 case $ac_cv_sys_file_offset_bits in #(
6531 no | unknown) ;;
6533 cat >>confdefs.h <<_ACEOF
6534 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6535 _ACEOF
6537 esac
6538 rm -rf conftest*
6539 if test $ac_cv_sys_file_offset_bits = unknown; then
6540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6541 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6542 if test "${ac_cv_sys_large_files+set}" = set; then :
6543 $as_echo_n "(cached) " >&6
6544 else
6545 while :; do
6546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6547 /* end confdefs.h. */
6548 #include <sys/types.h>
6549 /* Check that off_t can represent 2**63 - 1 correctly.
6550 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6551 since some C++ compilers masquerading as C compilers
6552 incorrectly reject 9223372036854775807. */
6553 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6554 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6555 && LARGE_OFF_T % 2147483647 == 1)
6556 ? 1 : -1];
6558 main ()
6562 return 0;
6564 _ACEOF
6565 if ac_fn_c_try_compile "$LINENO"; then :
6566 ac_cv_sys_large_files=no; break
6568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6570 /* end confdefs.h. */
6571 #define _LARGE_FILES 1
6572 #include <sys/types.h>
6573 /* Check that off_t can represent 2**63 - 1 correctly.
6574 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6575 since some C++ compilers masquerading as C compilers
6576 incorrectly reject 9223372036854775807. */
6577 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6578 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6579 && LARGE_OFF_T % 2147483647 == 1)
6580 ? 1 : -1];
6582 main ()
6586 return 0;
6588 _ACEOF
6589 if ac_fn_c_try_compile "$LINENO"; then :
6590 ac_cv_sys_large_files=1; break
6592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6593 ac_cv_sys_large_files=unknown
6594 break
6595 done
6597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6598 $as_echo "$ac_cv_sys_large_files" >&6; }
6599 case $ac_cv_sys_large_files in #(
6600 no | unknown) ;;
6602 cat >>confdefs.h <<_ACEOF
6603 #define _LARGE_FILES $ac_cv_sys_large_files
6604 _ACEOF
6606 esac
6607 rm -rf conftest*
6613 case $ac_cv_prog_cc_stdc in #(
6614 no) :
6615 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6616 *) :
6617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
6618 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
6619 if test "${ac_cv_prog_cc_c99+set}" = set; then :
6620 $as_echo_n "(cached) " >&6
6621 else
6622 ac_cv_prog_cc_c99=no
6623 ac_save_CC=$CC
6624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6625 /* end confdefs.h. */
6626 #include <stdarg.h>
6627 #include <stdbool.h>
6628 #include <stdlib.h>
6629 #include <wchar.h>
6630 #include <stdio.h>
6632 // Check varargs macros. These examples are taken from C99 6.10.3.5.
6633 #define debug(...) fprintf (stderr, __VA_ARGS__)
6634 #define showlist(...) puts (#__VA_ARGS__)
6635 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6636 static void
6637 test_varargs_macros (void)
6639 int x = 1234;
6640 int y = 5678;
6641 debug ("Flag");
6642 debug ("X = %d\n", x);
6643 showlist (The first, second, and third items.);
6644 report (x>y, "x is %d but y is %d", x, y);
6647 // Check long long types.
6648 #define BIG64 18446744073709551615ull
6649 #define BIG32 4294967295ul
6650 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6651 #if !BIG_OK
6652 your preprocessor is broken;
6653 #endif
6654 #if BIG_OK
6655 #else
6656 your preprocessor is broken;
6657 #endif
6658 static long long int bignum = -9223372036854775807LL;
6659 static unsigned long long int ubignum = BIG64;
6661 struct incomplete_array
6663 int datasize;
6664 double data[];
6667 struct named_init {
6668 int number;
6669 const wchar_t *name;
6670 double average;
6673 typedef const char *ccp;
6675 static inline int
6676 test_restrict (ccp restrict text)
6678 // See if C++-style comments work.
6679 // Iterate through items via the restricted pointer.
6680 // Also check for declarations in for loops.
6681 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6682 continue;
6683 return 0;
6686 // Check varargs and va_copy.
6687 static void
6688 test_varargs (const char *format, ...)
6690 va_list args;
6691 va_start (args, format);
6692 va_list args_copy;
6693 va_copy (args_copy, args);
6695 const char *str;
6696 int number;
6697 float fnumber;
6699 while (*format)
6701 switch (*format++)
6703 case 's': // string
6704 str = va_arg (args_copy, const char *);
6705 break;
6706 case 'd': // int
6707 number = va_arg (args_copy, int);
6708 break;
6709 case 'f': // float
6710 fnumber = va_arg (args_copy, double);
6711 break;
6712 default:
6713 break;
6716 va_end (args_copy);
6717 va_end (args);
6721 main ()
6724 // Check bool.
6725 _Bool success = false;
6727 // Check restrict.
6728 if (test_restrict ("String literal") == 0)
6729 success = true;
6730 char *restrict newvar = "Another string";
6732 // Check varargs.
6733 test_varargs ("s, d' f .", "string", 65, 34.234);
6734 test_varargs_macros ();
6736 // Check flexible array members.
6737 struct incomplete_array *ia =
6738 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6739 ia->datasize = 10;
6740 for (int i = 0; i < ia->datasize; ++i)
6741 ia->data[i] = i * 1.234;
6743 // Check named initializers.
6744 struct named_init ni = {
6745 .number = 34,
6746 .name = L"Test wide string",
6747 .average = 543.34343,
6750 ni.number = 58;
6752 int dynamic_array[ni.number];
6753 dynamic_array[ni.number - 1] = 543;
6755 // work around unused variable warnings
6756 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6757 || dynamic_array[ni.number - 1] != 543);
6760 return 0;
6762 _ACEOF
6763 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
6765 CC="$ac_save_CC $ac_arg"
6766 if ac_fn_c_try_compile "$LINENO"; then :
6767 ac_cv_prog_cc_c99=$ac_arg
6769 rm -f core conftest.err conftest.$ac_objext
6770 test "x$ac_cv_prog_cc_c99" != "xno" && break
6771 done
6772 rm -f conftest.$ac_ext
6773 CC=$ac_save_CC
6776 # AC_CACHE_VAL
6777 case "x$ac_cv_prog_cc_c99" in
6779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6780 $as_echo "none needed" >&6; } ;;
6781 xno)
6782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6783 $as_echo "unsupported" >&6; } ;;
6785 CC="$CC $ac_cv_prog_cc_c99"
6786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
6787 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6788 esac
6789 if test "x$ac_cv_prog_cc_c99" != xno; then :
6790 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
6791 else
6792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6793 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6794 if test "${ac_cv_prog_cc_c89+set}" = set; then :
6795 $as_echo_n "(cached) " >&6
6796 else
6797 ac_cv_prog_cc_c89=no
6798 ac_save_CC=$CC
6799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6800 /* end confdefs.h. */
6801 #include <stdarg.h>
6802 #include <stdio.h>
6803 #include <sys/types.h>
6804 #include <sys/stat.h>
6805 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6806 struct buf { int x; };
6807 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6808 static char *e (p, i)
6809 char **p;
6810 int i;
6812 return p[i];
6814 static char *f (char * (*g) (char **, int), char **p, ...)
6816 char *s;
6817 va_list v;
6818 va_start (v,p);
6819 s = g (p, va_arg (v,int));
6820 va_end (v);
6821 return s;
6824 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6825 function prototypes and stuff, but not '\xHH' hex character constants.
6826 These don't provoke an error unfortunately, instead are silently treated
6827 as 'x'. The following induces an error, until -std is added to get
6828 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6829 array size at least. It's necessary to write '\x00'==0 to get something
6830 that's true only with -std. */
6831 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6833 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6834 inside strings and character constants. */
6835 #define FOO(x) 'x'
6836 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6838 int test (int i, double x);
6839 struct s1 {int (*f) (int a);};
6840 struct s2 {int (*f) (double a);};
6841 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6842 int argc;
6843 char **argv;
6845 main ()
6847 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6849 return 0;
6851 _ACEOF
6852 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6853 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6855 CC="$ac_save_CC $ac_arg"
6856 if ac_fn_c_try_compile "$LINENO"; then :
6857 ac_cv_prog_cc_c89=$ac_arg
6859 rm -f core conftest.err conftest.$ac_objext
6860 test "x$ac_cv_prog_cc_c89" != "xno" && break
6861 done
6862 rm -f conftest.$ac_ext
6863 CC=$ac_save_CC
6866 # AC_CACHE_VAL
6867 case "x$ac_cv_prog_cc_c89" in
6869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6870 $as_echo "none needed" >&6; } ;;
6871 xno)
6872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6873 $as_echo "unsupported" >&6; } ;;
6875 CC="$CC $ac_cv_prog_cc_c89"
6876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6877 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6878 esac
6879 if test "x$ac_cv_prog_cc_c89" != xno; then :
6880 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
6881 else
6882 ac_cv_prog_cc_stdc=no
6887 esac
6888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
6889 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
6890 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
6891 $as_echo_n "(cached) " >&6
6894 case $ac_cv_prog_cc_stdc in #(
6895 no) :
6896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6897 $as_echo "unsupported" >&6; } ;; #(
6898 '') :
6899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6900 $as_echo "none needed" >&6; } ;; #(
6901 *) :
6902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
6903 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
6904 esac
6908 # Code from module alloca-opt:
6909 # Code from module allocator:
6910 # Code from module careadlinkat:
6911 # Code from module crypto/md5:
6912 # Code from module crypto/sha1:
6913 # Code from module crypto/sha256:
6914 # Code from module crypto/sha512:
6915 # Code from module dosname:
6916 # Code from module dtoastr:
6917 # Code from module dup2:
6918 # Code from module extensions:
6920 # Code from module filemode:
6921 # Code from module getloadavg:
6922 # Code from module getopt-gnu:
6923 # Code from module getopt-posix:
6924 # Code from module gettext-h:
6925 # Code from module ignore-value:
6926 # Code from module include_next:
6927 # Code from module intprops:
6928 # Code from module inttypes-incomplete:
6929 # Code from module largefile:
6931 # Code from module lstat:
6932 # Code from module manywarnings:
6933 # Code from module mktime:
6934 # Code from module multiarch:
6935 # Code from module nocrash:
6936 # Code from module pathmax:
6937 # Code from module pthread_sigmask:
6938 # Code from module readlink:
6939 # Code from module signal-h:
6940 # Code from module sigprocmask:
6941 # Code from module snippet/_Noreturn:
6942 # Code from module snippet/arg-nonnull:
6943 # Code from module snippet/c++defs:
6944 # Code from module snippet/warn-on-use:
6945 # Code from module socklen:
6946 # Code from module ssize_t:
6947 # Code from module stat:
6948 # Code from module stdalign:
6949 # Code from module stdarg:
6953 # Code from module stdbool:
6954 # Code from module stddef:
6955 # Code from module stdint:
6956 # Code from module stdio:
6957 # Code from module stdlib:
6958 # Code from module strftime:
6959 # Code from module strtoimax:
6960 # Code from module strtoll:
6961 # Code from module strtoull:
6962 # Code from module strtoumax:
6963 # Code from module symlink:
6964 # Code from module sys_stat:
6965 # Code from module sys_types:
6966 # Code from module time:
6967 # Code from module time_r:
6968 # Code from module u64:
6969 # Code from module unistd:
6970 # Code from module verify:
6971 # Code from module warnings:
6974 # Check whether --enable-gcc-warnings was given.
6975 if test "${enable_gcc_warnings+set}" = set; then :
6976 enableval=$enable_gcc_warnings; case $enableval in
6977 yes|no) ;;
6978 *) as_fn_error "bad value $enableval for gcc-warnings option" "$LINENO" 5 ;;
6979 esac
6980 gl_gcc_warnings=$enableval
6981 else
6982 gl_gcc_warnings=no
6987 # gl_GCC_VERSION_IFELSE([major], [minor], [run-if-found], [run-if-not-found])
6988 # ------------------------------------------------
6989 # If $CPP is gcc-MAJOR.MINOR or newer, then run RUN-IF-FOUND.
6990 # Otherwise, run RUN-IF-NOT-FOUND.
6993 # When compiling with GCC, prefer -isystem to -I when including system
6994 # include files, to avoid generating useless diagnostics for the files.
6995 if test "$gl_gcc_warnings" != yes; then
6996 isystem='-I'
6997 else
6998 isystem='-isystem '
7000 # This, $nw, is the list of warnings we disable.
7003 case $with_x_toolkit in
7004 lucid | athena | motif)
7005 # Old toolkits mishandle 'const'.
7006 nw="$nw -Wwrite-strings"
7009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Werror" >&5
7010 $as_echo_n "checking whether C compiler handles -Werror... " >&6; }
7011 if test "${gl_cv_warn_c__Werror+set}" = set; then :
7012 $as_echo_n "(cached) " >&6
7013 else
7015 gl_save_compiler_FLAGS="$CFLAGS"
7016 as_fn_append CFLAGS " -Werror"
7017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7018 /* end confdefs.h. */
7021 main ()
7025 return 0;
7027 _ACEOF
7028 if ac_fn_c_try_compile "$LINENO"; then :
7029 gl_cv_warn_c__Werror=yes
7030 else
7031 gl_cv_warn_c__Werror=no
7033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7034 CFLAGS="$gl_save_compiler_FLAGS"
7037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Werror" >&5
7038 $as_echo "$gl_cv_warn_c__Werror" >&6; }
7039 if test "x$gl_cv_warn_c__Werror" = x""yes; then :
7040 as_fn_append WERROR_CFLAGS " -Werror"
7045 esac
7048 nw="$nw -Waggregate-return" # anachronistic
7049 nw="$nw -Wlong-long" # C90 is anachronistic
7050 nw="$nw -Wc++-compat" # We don't care about C++ compilers
7051 nw="$nw -Wundef" # Warns on '#if GNULIB_FOO' etc in gnulib
7052 nw="$nw -Wtraditional" # Warns on #elif which we use often
7053 nw="$nw -Wcast-qual" # Too many warnings for now
7054 nw="$nw -Wconversion" # Too many warnings for now
7055 nw="$nw -Wsystem-headers" # Don't let system headers trigger warnings
7056 nw="$nw -Wsign-conversion" # Too many warnings for now
7057 nw="$nw -Woverlength-strings" # Not a problem these days
7058 nw="$nw -Wtraditional-conversion" # Too many warnings for now
7059 nw="$nw -Wpadded" # Our structs are not padded
7060 nw="$nw -Wredundant-decls" # We regularly (re)declare getenv etc.
7061 nw="$nw -Wlogical-op" # any use of fwrite provokes this
7062 nw="$nw -Wformat-nonliteral" # Emacs does this a lot
7063 nw="$nw -Wvla" # warnings in gettext.h
7064 nw="$nw -Wnested-externs" # use of XARGMATCH/verify_function__
7065 nw="$nw -Wswitch-enum" # Too many warnings for now
7066 nw="$nw -Wswitch-default" # Too many warnings for now
7067 nw="$nw -Wfloat-equal" # e.g., ftoastr.c
7068 nw="$nw -Winline" # e.g., dispnew.c's inlining of row_equal_p
7070 # Emacs doesn't care about shadowing; see
7071 # <http://lists.gnu.org/archive/html/emacs-diffs/2011-11/msg00265.html>.
7072 nw="$nw -Wshadow"
7074 # The following lines should be removable at some point.
7075 nw="$nw -Wstack-protector"
7076 nw="$nw -Wstrict-overflow"
7077 nw="$nw -Wsuggest-attribute=const"
7078 nw="$nw -Wsuggest-attribute=pure"
7082 if test -n "$GCC"; then
7084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is supported" >&5
7085 $as_echo_n "checking whether -Wno-missing-field-initializers is supported... " >&6; }
7086 if test "${gl_cv_cc_nomfi_supported+set}" = set; then :
7087 $as_echo_n "(cached) " >&6
7088 else
7090 gl_save_CFLAGS="$CFLAGS"
7091 CFLAGS="$CFLAGS -W -Werror -Wno-missing-field-initializers"
7092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7093 /* end confdefs.h. */
7096 main ()
7100 return 0;
7102 _ACEOF
7103 if ac_fn_c_try_compile "$LINENO"; then :
7104 gl_cv_cc_nomfi_supported=yes
7105 else
7106 gl_cv_cc_nomfi_supported=no
7108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7109 CFLAGS="$gl_save_CFLAGS"
7112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_supported" >&5
7113 $as_echo "$gl_cv_cc_nomfi_supported" >&6; }
7115 if test "$gl_cv_cc_nomfi_supported" = yes; then
7116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is needed" >&5
7117 $as_echo_n "checking whether -Wno-missing-field-initializers is needed... " >&6; }
7118 if test "${gl_cv_cc_nomfi_needed+set}" = set; then :
7119 $as_echo_n "(cached) " >&6
7120 else
7122 gl_save_CFLAGS="$CFLAGS"
7123 CFLAGS="$CFLAGS -W -Werror"
7124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7125 /* end confdefs.h. */
7126 void f (void)
7128 typedef struct { int a; int b; } s_t;
7129 s_t s1 = { 0, };
7133 main ()
7137 return 0;
7139 _ACEOF
7140 if ac_fn_c_try_compile "$LINENO"; then :
7141 gl_cv_cc_nomfi_needed=no
7142 else
7143 gl_cv_cc_nomfi_needed=yes
7145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7146 CFLAGS="$gl_save_CFLAGS"
7150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_needed" >&5
7151 $as_echo "$gl_cv_cc_nomfi_needed" >&6; }
7155 gl_manywarn_set=
7156 for gl_manywarn_item in \
7157 -Wall \
7158 -W \
7159 -Wformat-y2k \
7160 -Wformat-nonliteral \
7161 -Wformat-security \
7162 -Winit-self \
7163 -Wmissing-include-dirs \
7164 -Wswitch-default \
7165 -Wswitch-enum \
7166 -Wunused \
7167 -Wunknown-pragmas \
7168 -Wstrict-aliasing \
7169 -Wstrict-overflow \
7170 -Wsystem-headers \
7171 -Wfloat-equal \
7172 -Wtraditional \
7173 -Wtraditional-conversion \
7174 -Wdeclaration-after-statement \
7175 -Wundef \
7176 -Wshadow \
7177 -Wunsafe-loop-optimizations \
7178 -Wpointer-arith \
7179 -Wbad-function-cast \
7180 -Wc++-compat \
7181 -Wcast-qual \
7182 -Wcast-align \
7183 -Wwrite-strings \
7184 -Wconversion \
7185 -Wsign-conversion \
7186 -Wlogical-op \
7187 -Waggregate-return \
7188 -Wstrict-prototypes \
7189 -Wold-style-definition \
7190 -Wmissing-prototypes \
7191 -Wmissing-declarations \
7192 -Wmissing-noreturn \
7193 -Wmissing-format-attribute \
7194 -Wpacked \
7195 -Wpadded \
7196 -Wredundant-decls \
7197 -Wnested-externs \
7198 -Wunreachable-code \
7199 -Winline \
7200 -Winvalid-pch \
7201 -Wlong-long \
7202 -Wvla \
7203 -Wvolatile-register-var \
7204 -Wdisabled-optimization \
7205 -Wstack-protector \
7206 -Woverlength-strings \
7207 -Wbuiltin-macro-redefined \
7208 -Wmudflap \
7209 -Wpacked-bitfield-compat \
7210 -Wsync-nand \
7211 ; do
7212 gl_manywarn_set="$gl_manywarn_set $gl_manywarn_item"
7213 done
7214 # The following are not documented in the manual but are included in
7215 # output from gcc --help=warnings.
7216 for gl_manywarn_item in \
7217 -Wattributes \
7218 -Wcoverage-mismatch \
7219 -Wunused-macros \
7220 ; do
7221 gl_manywarn_set="$gl_manywarn_set $gl_manywarn_item"
7222 done
7223 # More warnings from gcc 4.6.2 --help=warnings.
7224 for gl_manywarn_item in \
7225 -Wabi \
7226 -Wcpp \
7227 -Wdeprecated \
7228 -Wdeprecated-declarations \
7229 -Wdiv-by-zero \
7230 -Wdouble-promotion \
7231 -Wendif-labels \
7232 -Wextra \
7233 -Wformat-contains-nul \
7234 -Wformat-extra-args \
7235 -Wformat-zero-length \
7236 -Wformat=2 \
7237 -Wmultichar \
7238 -Wnormalized=nfc \
7239 -Woverflow \
7240 -Wpointer-to-int-cast \
7241 -Wpragmas \
7242 -Wsuggest-attribute=const \
7243 -Wsuggest-attribute=noreturn \
7244 -Wsuggest-attribute=pure \
7245 -Wtrampolines \
7246 ; do
7247 gl_manywarn_set="$gl_manywarn_set $gl_manywarn_item"
7248 done
7250 # Disable the missing-field-initializers warning if needed
7251 if test "$gl_cv_cc_nomfi_needed" = yes; then
7252 gl_manywarn_set="$gl_manywarn_set -Wno-missing-field-initializers"
7255 ws=$gl_manywarn_set
7258 gl_warn_set=
7259 set x $ws; shift
7260 for gl_warn_item
7262 case " $nw " in
7263 *" $gl_warn_item "*)
7266 gl_warn_set="$gl_warn_set $gl_warn_item"
7268 esac
7269 done
7270 ws=$gl_warn_set
7272 for w in $ws; do
7273 as_gl_Warn=`$as_echo "gl_cv_warn_c_$w" | $as_tr_sh`
7274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles $w" >&5
7275 $as_echo_n "checking whether C compiler handles $w... " >&6; }
7276 if { as_var=$as_gl_Warn; eval "test \"\${$as_var+set}\" = set"; }; then :
7277 $as_echo_n "(cached) " >&6
7278 else
7280 gl_save_compiler_FLAGS="$CFLAGS"
7281 as_fn_append CFLAGS " $w"
7282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7283 /* end confdefs.h. */
7286 main ()
7290 return 0;
7292 _ACEOF
7293 if ac_fn_c_try_compile "$LINENO"; then :
7294 eval "$as_gl_Warn=yes"
7295 else
7296 eval "$as_gl_Warn=no"
7298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7299 CFLAGS="$gl_save_compiler_FLAGS"
7302 eval ac_res=\$$as_gl_Warn
7303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7304 $as_echo "$ac_res" >&6; }
7305 eval as_val=\$$as_gl_Warn
7306 if test "x$as_val" = x""yes; then :
7307 as_fn_append WARN_CFLAGS " $w"
7311 done
7312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-missing-field-initializers" >&5
7313 $as_echo_n "checking whether C compiler handles -Wno-missing-field-initializers... " >&6; }
7314 if test "${gl_cv_warn_c__Wno_missing_field_initializers+set}" = set; then :
7315 $as_echo_n "(cached) " >&6
7316 else
7318 gl_save_compiler_FLAGS="$CFLAGS"
7319 as_fn_append CFLAGS " -Wno-missing-field-initializers"
7320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7321 /* end confdefs.h. */
7324 main ()
7328 return 0;
7330 _ACEOF
7331 if ac_fn_c_try_compile "$LINENO"; then :
7332 gl_cv_warn_c__Wno_missing_field_initializers=yes
7333 else
7334 gl_cv_warn_c__Wno_missing_field_initializers=no
7336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7337 CFLAGS="$gl_save_compiler_FLAGS"
7340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_missing_field_initializers" >&5
7341 $as_echo "$gl_cv_warn_c__Wno_missing_field_initializers" >&6; }
7342 if test "x$gl_cv_warn_c__Wno_missing_field_initializers" = x""yes; then :
7343 as_fn_append WARN_CFLAGS " -Wno-missing-field-initializers"
7346 # We need this one
7347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-sign-compare" >&5
7348 $as_echo_n "checking whether C compiler handles -Wno-sign-compare... " >&6; }
7349 if test "${gl_cv_warn_c__Wno_sign_compare+set}" = set; then :
7350 $as_echo_n "(cached) " >&6
7351 else
7353 gl_save_compiler_FLAGS="$CFLAGS"
7354 as_fn_append CFLAGS " -Wno-sign-compare"
7355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7356 /* end confdefs.h. */
7359 main ()
7363 return 0;
7365 _ACEOF
7366 if ac_fn_c_try_compile "$LINENO"; then :
7367 gl_cv_warn_c__Wno_sign_compare=yes
7368 else
7369 gl_cv_warn_c__Wno_sign_compare=no
7371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7372 CFLAGS="$gl_save_compiler_FLAGS"
7375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_sign_compare" >&5
7376 $as_echo "$gl_cv_warn_c__Wno_sign_compare" >&6; }
7377 if test "x$gl_cv_warn_c__Wno_sign_compare" = x""yes; then :
7378 as_fn_append WARN_CFLAGS " -Wno-sign-compare"
7381 # Too many warnings for now
7382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-type-limits" >&5
7383 $as_echo_n "checking whether C compiler handles -Wno-type-limits... " >&6; }
7384 if test "${gl_cv_warn_c__Wno_type_limits+set}" = set; then :
7385 $as_echo_n "(cached) " >&6
7386 else
7388 gl_save_compiler_FLAGS="$CFLAGS"
7389 as_fn_append CFLAGS " -Wno-type-limits"
7390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7391 /* end confdefs.h. */
7394 main ()
7398 return 0;
7400 _ACEOF
7401 if ac_fn_c_try_compile "$LINENO"; then :
7402 gl_cv_warn_c__Wno_type_limits=yes
7403 else
7404 gl_cv_warn_c__Wno_type_limits=no
7406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7407 CFLAGS="$gl_save_compiler_FLAGS"
7410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_type_limits" >&5
7411 $as_echo "$gl_cv_warn_c__Wno_type_limits" >&6; }
7412 if test "x$gl_cv_warn_c__Wno_type_limits" = x""yes; then :
7413 as_fn_append WARN_CFLAGS " -Wno-type-limits"
7416 # Too many warnings for now
7417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-switch" >&5
7418 $as_echo_n "checking whether C compiler handles -Wno-switch... " >&6; }
7419 if test "${gl_cv_warn_c__Wno_switch+set}" = set; then :
7420 $as_echo_n "(cached) " >&6
7421 else
7423 gl_save_compiler_FLAGS="$CFLAGS"
7424 as_fn_append CFLAGS " -Wno-switch"
7425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7426 /* end confdefs.h. */
7429 main ()
7433 return 0;
7435 _ACEOF
7436 if ac_fn_c_try_compile "$LINENO"; then :
7437 gl_cv_warn_c__Wno_switch=yes
7438 else
7439 gl_cv_warn_c__Wno_switch=no
7441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7442 CFLAGS="$gl_save_compiler_FLAGS"
7445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_switch" >&5
7446 $as_echo "$gl_cv_warn_c__Wno_switch" >&6; }
7447 if test "x$gl_cv_warn_c__Wno_switch" = x""yes; then :
7448 as_fn_append WARN_CFLAGS " -Wno-switch"
7451 # Too many warnings for now
7452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-unused-parameter" >&5
7453 $as_echo_n "checking whether C compiler handles -Wno-unused-parameter... " >&6; }
7454 if test "${gl_cv_warn_c__Wno_unused_parameter+set}" = set; then :
7455 $as_echo_n "(cached) " >&6
7456 else
7458 gl_save_compiler_FLAGS="$CFLAGS"
7459 as_fn_append CFLAGS " -Wno-unused-parameter"
7460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7461 /* end confdefs.h. */
7464 main ()
7468 return 0;
7470 _ACEOF
7471 if ac_fn_c_try_compile "$LINENO"; then :
7472 gl_cv_warn_c__Wno_unused_parameter=yes
7473 else
7474 gl_cv_warn_c__Wno_unused_parameter=no
7476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7477 CFLAGS="$gl_save_compiler_FLAGS"
7480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_unused_parameter" >&5
7481 $as_echo "$gl_cv_warn_c__Wno_unused_parameter" >&6; }
7482 if test "x$gl_cv_warn_c__Wno_unused_parameter" = x""yes; then :
7483 as_fn_append WARN_CFLAGS " -Wno-unused-parameter"
7486 # Too many warnings for now
7487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-format-nonliteral" >&5
7488 $as_echo_n "checking whether C compiler handles -Wno-format-nonliteral... " >&6; }
7489 if test "${gl_cv_warn_c__Wno_format_nonliteral+set}" = set; then :
7490 $as_echo_n "(cached) " >&6
7491 else
7493 gl_save_compiler_FLAGS="$CFLAGS"
7494 as_fn_append CFLAGS " -Wno-format-nonliteral"
7495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7496 /* end confdefs.h. */
7499 main ()
7503 return 0;
7505 _ACEOF
7506 if ac_fn_c_try_compile "$LINENO"; then :
7507 gl_cv_warn_c__Wno_format_nonliteral=yes
7508 else
7509 gl_cv_warn_c__Wno_format_nonliteral=no
7511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7512 CFLAGS="$gl_save_compiler_FLAGS"
7515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_format_nonliteral" >&5
7516 $as_echo "$gl_cv_warn_c__Wno_format_nonliteral" >&6; }
7517 if test "x$gl_cv_warn_c__Wno_format_nonliteral" = x""yes; then :
7518 as_fn_append WARN_CFLAGS " -Wno-format-nonliteral"
7523 # In spite of excluding -Wlogical-op above, it is enabled, as of
7524 # gcc 4.5.0 20090517.
7525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-logical-op" >&5
7526 $as_echo_n "checking whether C compiler handles -Wno-logical-op... " >&6; }
7527 if test "${gl_cv_warn_c__Wno_logical_op+set}" = set; then :
7528 $as_echo_n "(cached) " >&6
7529 else
7531 gl_save_compiler_FLAGS="$CFLAGS"
7532 as_fn_append CFLAGS " -Wno-logical-op"
7533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7534 /* end confdefs.h. */
7537 main ()
7541 return 0;
7543 _ACEOF
7544 if ac_fn_c_try_compile "$LINENO"; then :
7545 gl_cv_warn_c__Wno_logical_op=yes
7546 else
7547 gl_cv_warn_c__Wno_logical_op=no
7549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7550 CFLAGS="$gl_save_compiler_FLAGS"
7553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_logical_op" >&5
7554 $as_echo "$gl_cv_warn_c__Wno_logical_op" >&6; }
7555 if test "x$gl_cv_warn_c__Wno_logical_op" = x""yes; then :
7556 as_fn_append WARN_CFLAGS " -Wno-logical-op"
7561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -fdiagnostics-show-option" >&5
7562 $as_echo_n "checking whether C compiler handles -fdiagnostics-show-option... " >&6; }
7563 if test "${gl_cv_warn_c__fdiagnostics_show_option+set}" = set; then :
7564 $as_echo_n "(cached) " >&6
7565 else
7567 gl_save_compiler_FLAGS="$CFLAGS"
7568 as_fn_append CFLAGS " -fdiagnostics-show-option"
7569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7570 /* end confdefs.h. */
7573 main ()
7577 return 0;
7579 _ACEOF
7580 if ac_fn_c_try_compile "$LINENO"; then :
7581 gl_cv_warn_c__fdiagnostics_show_option=yes
7582 else
7583 gl_cv_warn_c__fdiagnostics_show_option=no
7585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7586 CFLAGS="$gl_save_compiler_FLAGS"
7589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__fdiagnostics_show_option" >&5
7590 $as_echo "$gl_cv_warn_c__fdiagnostics_show_option" >&6; }
7591 if test "x$gl_cv_warn_c__fdiagnostics_show_option" = x""yes; then :
7592 as_fn_append WARN_CFLAGS " -fdiagnostics-show-option"
7596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -funit-at-a-time" >&5
7597 $as_echo_n "checking whether C compiler handles -funit-at-a-time... " >&6; }
7598 if test "${gl_cv_warn_c__funit_at_a_time+set}" = set; then :
7599 $as_echo_n "(cached) " >&6
7600 else
7602 gl_save_compiler_FLAGS="$CFLAGS"
7603 as_fn_append CFLAGS " -funit-at-a-time"
7604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7605 /* end confdefs.h. */
7608 main ()
7612 return 0;
7614 _ACEOF
7615 if ac_fn_c_try_compile "$LINENO"; then :
7616 gl_cv_warn_c__funit_at_a_time=yes
7617 else
7618 gl_cv_warn_c__funit_at_a_time=no
7620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7621 CFLAGS="$gl_save_compiler_FLAGS"
7624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__funit_at_a_time" >&5
7625 $as_echo "$gl_cv_warn_c__funit_at_a_time" >&6; }
7626 if test "x$gl_cv_warn_c__funit_at_a_time" = x""yes; then :
7627 as_fn_append WARN_CFLAGS " -funit-at-a-time"
7633 $as_echo "#define lint 1" >>confdefs.h
7636 $as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
7639 $as_echo "#define GNULIB_PORTCHECK 1" >>confdefs.h
7642 # We use a slightly smaller set of warning options for lib/.
7643 # Remove the following and save the result in GNULIB_WARN_CFLAGS.
7645 nw="$nw -Wunused-macros"
7648 gl_warn_set=
7649 set x $WARN_CFLAGS; shift
7650 for gl_warn_item
7652 case " $nw " in
7653 *" $gl_warn_item "*)
7656 gl_warn_set="$gl_warn_set $gl_warn_item"
7658 esac
7659 done
7660 GNULIB_WARN_CFLAGS=$gl_warn_set
7668 # Extract the first word of "install-info", so it can be a program name with args.
7669 set dummy install-info; ac_word=$2
7670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7671 $as_echo_n "checking for $ac_word... " >&6; }
7672 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
7673 $as_echo_n "(cached) " >&6
7674 else
7675 case $INSTALL_INFO in
7676 [\\/]* | ?:[\\/]*)
7677 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
7680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7681 for as_dir in $PATH$PATH_SEPARATOR/usr/sbin$PATH_SEPARATOR/sbin
7683 IFS=$as_save_IFS
7684 test -z "$as_dir" && as_dir=.
7685 for ac_exec_ext in '' $ac_executable_extensions; do
7686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7687 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
7688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7689 break 2
7691 done
7692 done
7693 IFS=$as_save_IFS
7695 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
7697 esac
7699 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
7700 if test -n "$INSTALL_INFO"; then
7701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
7702 $as_echo "$INSTALL_INFO" >&6; }
7703 else
7704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7705 $as_echo "no" >&6; }
7709 # Extract the first word of "gzip", so it can be a program name with args.
7710 set dummy gzip; ac_word=$2
7711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7712 $as_echo_n "checking for $ac_word... " >&6; }
7713 if test "${ac_cv_path_GZIP_PROG+set}" = set; then :
7714 $as_echo_n "(cached) " >&6
7715 else
7716 case $GZIP_PROG in
7717 [\\/]* | ?:[\\/]*)
7718 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
7721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7722 for as_dir in $PATH
7724 IFS=$as_save_IFS
7725 test -z "$as_dir" && as_dir=.
7726 for ac_exec_ext in '' $ac_executable_extensions; do
7727 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7728 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
7729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7730 break 2
7732 done
7733 done
7734 IFS=$as_save_IFS
7737 esac
7739 GZIP_PROG=$ac_cv_path_GZIP_PROG
7740 if test -n "$GZIP_PROG"; then
7741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
7742 $as_echo "$GZIP_PROG" >&6; }
7743 else
7744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7745 $as_echo "no" >&6; }
7751 ## Need makeinfo >= 4.7 (?) to build the manuals.
7752 # Extract the first word of "makeinfo", so it can be a program name with args.
7753 set dummy makeinfo; ac_word=$2
7754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7755 $as_echo_n "checking for $ac_word... " >&6; }
7756 if test "${ac_cv_path_MAKEINFO+set}" = set; then :
7757 $as_echo_n "(cached) " >&6
7758 else
7759 case $MAKEINFO in
7760 [\\/]* | ?:[\\/]*)
7761 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
7764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7765 for as_dir in $PATH
7767 IFS=$as_save_IFS
7768 test -z "$as_dir" && as_dir=.
7769 for ac_exec_ext in '' $ac_executable_extensions; do
7770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7771 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
7772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7773 break 2
7775 done
7776 done
7777 IFS=$as_save_IFS
7779 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
7781 esac
7783 MAKEINFO=$ac_cv_path_MAKEINFO
7784 if test -n "$MAKEINFO"; then
7785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7786 $as_echo "$MAKEINFO" >&6; }
7787 else
7788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7789 $as_echo "no" >&6; }
7793 if test "$MAKEINFO" != "no" && \
7794 test x"`$MAKEINFO --version 2> /dev/null | $EGREP 'texinfo[^0-9]*([1-4][0-9]+|[5-9]|4\.[7-9]|4\.[1-6][0-9]+)'`" = x; then
7795 MAKEINFO=no
7798 ## Makeinfo is unusual. For a released Emacs, the manuals are
7799 ## pre-built, and not deleted by the normal clean rules. makeinfo is
7800 ## therefore in the category of "special tools" not normally required, which
7801 ## configure does not have to check for (eg autoconf itself).
7802 ## In a Bazaar checkout on the other hand, the manuals are not included.
7803 ## So makeinfo is a requirement to build from Bazaar, and configure
7804 ## should test for it as it does for any other build requirement.
7805 ## We use the presence of $srcdir/info/emacs to distinguish a release,
7806 ## with pre-built manuals, from a Bazaar checkout.
7807 HAVE_MAKEINFO=yes
7809 if test "$MAKEINFO" = "no"; then
7810 MAKEINFO=makeinfo
7811 if test "x${with_makeinfo}" = "xno"; then
7812 HAVE_MAKEINFO=no
7813 elif test ! -e $srcdir/info/emacs; then
7814 as_fn_error "You do not seem to have makeinfo >= 4.7, and your
7815 source tree does not seem to have pre-built manuals in the \`info' directory.
7816 Either install a suitable version of makeinfo, or re-run configure
7817 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
7822 INFO_EXT=.info
7823 INFO_OPTS=--no-split
7828 if test x$GCC = xyes; then
7829 test "x$GCC_LINK_TEST_OPTIONS" != x && \
7830 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
7831 else
7832 test "x$NON_GCC_LINK_TEST_OPTIONS" != x && \
7833 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
7837 late_LDFLAGS=$LDFLAGS
7838 if test x$GCC = xyes; then
7839 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
7840 else
7841 LDFLAGS="$LDFLAGS -znocombreloc"
7844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
7845 $as_echo_n "checking for -znocombreloc... " >&6; }
7846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7847 /* end confdefs.h. */
7850 main ()
7854 return 0;
7856 _ACEOF
7857 if ac_fn_c_try_link "$LINENO"; then :
7858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7859 $as_echo "yes" >&6; }
7860 else
7861 LDFLAGS=$late_LDFLAGS
7862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7863 $as_echo "no" >&6; }
7865 rm -f core conftest.err conftest.$ac_objext \
7866 conftest$ac_exeext conftest.$ac_ext
7869 test "x$CANNOT_DUMP" = "x" && CANNOT_DUMP=no
7870 case "$opsys" in
7871 your-opsys-here) CANNOT_DUMP=yes ;;
7872 esac
7874 test "$CANNOT_DUMP" = "yes" && \
7876 $as_echo "#define CANNOT_DUMP 1" >>confdefs.h
7882 UNEXEC_OBJ=unexelf.o
7883 case "$opsys" in
7884 # MSDOS uses unexcoff.o
7885 # MSWindows uses unexw32.o
7886 aix4-2)
7887 UNEXEC_OBJ=unexaix.o
7889 cygwin)
7890 UNEXEC_OBJ=unexcw.o
7892 darwin)
7893 UNEXEC_OBJ=unexmacosx.o
7895 hpux10-20 | hpux11)
7896 UNEXEC_OBJ=unexhp9k800.o
7898 sol2-10)
7899 # Use the Solaris dldump() function, called from unexsol.c, to dump
7900 # emacs, instead of the generic ELF dump code found in unexelf.c.
7901 # The resulting binary has a complete symbol table, and is better
7902 # for debugging and other observability tools (debuggers, pstack, etc).
7904 # If you encounter a problem using dldump(), please consider sending
7905 # a message to the OpenSolaris tools-linking mailing list:
7906 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
7908 # It is likely that dldump() works with older Solaris too, but this has
7909 # not been tested, so for now this change is for Solaris 10 or newer.
7910 UNEXEC_OBJ=unexsol.o
7912 esac
7914 LD_SWITCH_SYSTEM=
7915 case "$opsys" in
7916 freebsd)
7917 ## Let `ld' find image libs and similar things in /usr/local/lib.
7918 ## The system compiler, GCC, has apparently been modified to not
7919 ## look there, contrary to what a stock GCC would do.
7920 ### It's not our place to do this. See bug#10313#17.
7921 ### LD_SWITCH_SYSTEM=-L/usr/local/lib
7925 gnu-linux)
7926 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
7927 case $host_cpu in mips*) LD_SWITCH_SYSTEM="-G 0";; esac
7930 netbsd)
7931 ### It's not our place to do this. See bug#10313#17.
7932 ### LD_SWITCH_SYSTEM="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
7936 openbsd)
7937 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
7938 ## otherwise Emacs dumps core on elf systems.
7939 LD_SWITCH_SYSTEM="-Z"
7941 esac
7944 ac_link="$ac_link $LD_SWITCH_SYSTEM"
7946 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_RPATH,
7947 ## which has not been defined yet. When this was handled with cpp,
7948 ## it was expanded to null when configure sourced the s/*.h file.
7949 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
7950 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
7951 ## (or somesuch), but because it is supposed to go at the _front_
7952 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
7953 ## Compare with the gnu-linux case below, which added to the end
7954 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
7955 ## LD_SWITCH_SYSTEM_TEMACS.
7956 case "$opsys" in
7957 netbsd|openbsd)
7958 LD_SWITCH_SYSTEM="\$(LD_SWITCH_X_SITE_RPATH) $LD_SWITCH_SYSTEM" ;;
7959 esac
7962 C_SWITCH_MACHINE=
7963 case $canonical in
7964 alpha*)
7965 ac_fn_c_check_decl "$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
7966 if test "x$ac_cv_have_decl___ELF__" = x""yes; then :
7970 if test "$ac_cv_have_decl___ELF__" = "yes"; then
7971 ## With ELF, make sure that all common symbols get allocated to in the
7972 ## data section. Otherwise, the dump of temacs may miss variables in
7973 ## the shared library that have been initialized. For example, with
7974 ## GNU libc, __malloc_initialized would normally be resolved to the
7975 ## shared library's .bss section, which is fatal.
7976 if test "x$GCC" = "xyes"; then
7977 C_SWITCH_MACHINE="-fno-common"
7978 else
7979 as_fn_error "What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
7981 else
7982 UNEXEC_OBJ=unexalpha.o
7985 esac
7990 C_SWITCH_SYSTEM=
7991 ## Some programs in src produce warnings saying certain subprograms
7992 ## are too complex and need a MAXMEM value greater than 2000 for
7993 ## additional optimization. --nils@exp-math.uni-essen.de
7994 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
7995 C_SWITCH_SYSTEM="-ma -qmaxmem=4000"
7996 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
7997 ## It is redundant in glibc2, since we define _GNU_SOURCE.
8001 LIBS_SYSTEM=
8002 case "$opsys" in
8003 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
8004 aix4-2) LIBS_SYSTEM="-lrts -lIM -liconv" ;;
8006 freebsd) LIBS_SYSTEM="-lutil" ;;
8008 hpux*) LIBS_SYSTEM="-l:libdld.sl" ;;
8010 sol2*) LIBS_SYSTEM="-lsocket -lnsl" ;;
8012 ## Motif needs -lgen.
8013 unixware) LIBS_SYSTEM="-lsocket -lnsl -lelf -lgen" ;;
8014 esac
8018 ### Make sure subsequent tests use flags consistent with the build flags.
8020 if test x"${OVERRIDE_CPPFLAGS}" != x; then
8021 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
8022 else
8023 CPPFLAGS="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
8026 # Suppress obsolescent Autoconf test for size_t; Emacs assumes C89 or better.
8028 # Likewise for obsolescent test for uid_t, gid_t; Emacs assumes them.
8032 LIB_MATH=-lm
8033 LIB_STANDARD=
8034 START_FILES=
8036 case $opsys in
8037 cygwin )
8038 LIB_MATH=
8039 START_FILES='pre-crt0.o'
8041 darwin )
8042 ## Adding -lm confuses the dynamic linker, so omit it.
8043 LIB_MATH=
8044 START_FILES='pre-crt0.o'
8046 freebsd )
8047 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
8048 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
8050 gnu-linux | gnu-kfreebsd )
8051 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
8052 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
8054 hpux10-20 | hpux11 )
8055 LIB_STANDARD=-lc
8056 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o'
8058 netbsd | openbsd )
8059 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
8060 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
8062 esac
8067 crt_files=
8069 for file in x $LIB_STANDARD $START_FILES; do
8070 case "$file" in
8071 *CRT_DIR*) crt_files="$crt_files `echo $file | sed -e 's|.*/||'`" ;;
8072 esac
8073 done
8075 if test "x$crt_files" != x; then
8077 ## If user specified a crt-dir, use that unconditionally.
8078 crt_gcc=no
8080 if test "X$CRT_DIR" = "X"; then
8082 CRT_DIR=/usr/lib # default
8084 case "$canonical" in
8085 x86_64-*-linux-gnu* | s390x-*-linux-gnu*)
8086 ## On x86-64 and s390x GNU/Linux distributions, the standard library
8087 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
8088 ## For anything else (eg /usr/lib32), it is up the user to specify
8089 ## the location (bug#5655).
8090 ## Test for crtn.o, not just the directory, because sometimes the
8091 ## directory exists but does not have the relevant files (bug#1287).
8092 ## FIXME better to test for binary compatibility somehow.
8093 test -e /usr/lib64/crtn.o && CRT_DIR=/usr/lib64
8096 powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*) CRT_DIR=/usr/lib64 ;;
8097 esac
8099 case "$opsys" in
8100 hpux10-20) CRT_DIR=/lib ;;
8101 esac
8103 test "x${GCC}" = xyes && crt_gcc=yes
8105 fi # CRT_DIR = ""
8107 crt_missing=
8109 for file in $crt_files; do
8111 ## If we're using gcc, try to determine it automatically by asking
8112 ## gcc. [If this doesn't work, CRT_DIR will remain at the
8113 ## system-dependent default from above.]
8114 if test $crt_gcc = yes && test ! -e $CRT_DIR/$file; then
8116 crt_file=`$CC --print-file-name=$file 2>/dev/null`
8117 case "$crt_file" in
8118 */*)
8119 CRT_DIR=`$as_dirname -- "$crt_file" ||
8120 $as_expr X"$crt_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8121 X"$crt_file" : 'X\(//\)[^/]' \| \
8122 X"$crt_file" : 'X\(//\)$' \| \
8123 X"$crt_file" : 'X\(/\)' \| . 2>/dev/null ||
8124 $as_echo X"$crt_file" |
8125 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8126 s//\1/
8129 /^X\(\/\/\)[^/].*/{
8130 s//\1/
8133 /^X\(\/\/\)$/{
8134 s//\1/
8137 /^X\(\/\).*/{
8138 s//\1/
8141 s/.*/./; q'`
8143 esac
8146 crt_gcc=no
8148 test -e $CRT_DIR/$file || crt_missing="$crt_missing $file"
8149 done # $crt_files
8151 test "x$crt_missing" = x || \
8152 as_fn_error "Required file(s) not found:$crt_missing
8153 Try using the --with-crt-dir option." "$LINENO" 5
8155 fi # crt_files != ""
8159 case $opsys in
8160 netbsd | openbsd )
8161 if test -f $CRT_DIR/crti.o; then
8163 test -f $CRT_DIR/crtn.o || \
8164 as_fn_error "Required file not found: crtn.o" "$LINENO" 5
8166 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
8167 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
8170 esac
8173 # Extract the first word of "pkg-config", so it can be a program name with args.
8174 set dummy pkg-config; ac_word=$2
8175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8176 $as_echo_n "checking for $ac_word... " >&6; }
8177 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8178 $as_echo_n "(cached) " >&6
8179 else
8180 case $PKG_CONFIG in
8181 [\\/]* | ?:[\\/]*)
8182 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8186 for as_dir in $PATH
8188 IFS=$as_save_IFS
8189 test -z "$as_dir" && as_dir=.
8190 for ac_exec_ext in '' $ac_executable_extensions; do
8191 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8192 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8194 break 2
8196 done
8197 done
8198 IFS=$as_save_IFS
8200 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8202 esac
8204 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8205 if test -n "$PKG_CONFIG"; then
8206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8207 $as_echo "$PKG_CONFIG" >&6; }
8208 else
8209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8210 $as_echo "no" >&6; }
8218 if test "${with_sound}" != "no"; then
8219 # Sound support for GNU/Linux and the free BSDs.
8220 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
8221 do :
8222 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8223 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8224 eval as_val=\$$as_ac_Header
8225 if test "x$as_val" = x""yes; then :
8226 cat >>confdefs.h <<_ACEOF
8227 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8228 _ACEOF
8229 have_sound_header=yes
8232 done
8234 # Emulation library used on NetBSD.
8235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
8236 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
8237 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
8238 $as_echo_n "(cached) " >&6
8239 else
8240 ac_check_lib_save_LIBS=$LIBS
8241 LIBS="-lossaudio $LIBS"
8242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8243 /* end confdefs.h. */
8245 /* Override any GCC internal prototype to avoid an error.
8246 Use char because int might match the return type of a GCC
8247 builtin and then its argument prototype would still apply. */
8248 #ifdef __cplusplus
8249 extern "C"
8250 #endif
8251 char _oss_ioctl ();
8253 main ()
8255 return _oss_ioctl ();
8257 return 0;
8259 _ACEOF
8260 if ac_fn_c_try_link "$LINENO"; then :
8261 ac_cv_lib_ossaudio__oss_ioctl=yes
8262 else
8263 ac_cv_lib_ossaudio__oss_ioctl=no
8265 rm -f core conftest.err conftest.$ac_objext \
8266 conftest$ac_exeext conftest.$ac_ext
8267 LIBS=$ac_check_lib_save_LIBS
8269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
8270 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
8271 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x""yes; then :
8272 LIBSOUND=-lossaudio
8273 else
8274 LIBSOUND=
8279 ALSA_REQUIRED=1.0.0
8280 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
8282 succeeded=no
8284 if test "$PKG_CONFIG" = "no" ; then
8285 HAVE_ALSA=no
8286 else
8287 PKG_CONFIG_MIN_VERSION=0.9.0
8288 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
8290 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
8292 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5 &&
8293 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES" 2>&5` &&
8294 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES" 2>&5`; then
8295 edit_cflags="
8296 s,///*,/,g
8297 s/^/ /
8298 s/ -I/ $isystem/g
8299 s/^ //
8301 ALSA_CFLAGS=`$as_echo "$ALSA_CFLAGS" | sed -e "$edit_cflags"`
8302 ALSA_LIBS=`$as_echo "$ALSA_LIBS" | sed -e 's,///*,/,g'`
8303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$ALSA_CFLAGS' LIBS='$ALSA_LIBS'" >&5
8304 $as_echo "yes CFLAGS='$ALSA_CFLAGS' LIBS='$ALSA_LIBS'" >&6; }
8305 succeeded=yes
8306 else
8307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8308 $as_echo "no" >&6; }
8309 ALSA_CFLAGS=""
8310 ALSA_LIBS=""
8311 ## If we have a custom action on failure, don't print errors, but
8312 ## do set a variable so people can do so.
8313 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
8319 else
8320 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8321 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8325 if test $succeeded = yes; then
8326 HAVE_ALSA=yes
8327 else
8328 HAVE_ALSA=no
8331 if test $HAVE_ALSA = yes; then
8332 SAVE_CFLAGS="$CFLAGS"
8333 SAVE_LIBS="$LIBS"
8334 CFLAGS="$ALSA_CFLAGS $CFLAGS"
8335 LIBS="$ALSA_LIBS $LIBS"
8336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8337 /* end confdefs.h. */
8338 #include <asoundlib.h>
8340 main ()
8342 snd_lib_error_set_handler (0);
8344 return 0;
8346 _ACEOF
8347 if ac_fn_c_try_compile "$LINENO"; then :
8348 emacs_alsa_normal=yes
8349 else
8350 emacs_alsa_normal=no
8352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8353 if test "$emacs_alsa_normal" != yes; then
8354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8355 /* end confdefs.h. */
8356 #include <alsa/asoundlib.h>
8358 main ()
8360 snd_lib_error_set_handler (0);
8362 return 0;
8364 _ACEOF
8365 if ac_fn_c_try_compile "$LINENO"; then :
8366 emacs_alsa_subdir=yes
8367 else
8368 emacs_alsa_subdir=no
8370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8371 if test "$emacs_alsa_subdir" != yes; then
8372 as_fn_error "pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
8374 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
8377 CFLAGS="$SAVE_CFLAGS"
8378 LIBS="$SAVE_LIBS"
8379 LIBSOUND="$LIBSOUND $ALSA_LIBS"
8380 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
8382 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
8386 if test x$have_sound_header = xyes || test $HAVE_ALSA = yes; then
8387 case "$opsys" in
8388 gnu-linux|freebsd|netbsd)
8390 $as_echo "#define HAVE_SOUND 1" >>confdefs.h
8393 esac
8402 for ac_header in $ac_header_list
8403 do :
8404 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8405 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8407 eval as_val=\$$as_ac_Header
8408 if test "x$as_val" = x""yes; then :
8409 cat >>confdefs.h <<_ACEOF
8410 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8411 _ACEOF
8415 done
8451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
8452 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
8453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8454 /* end confdefs.h. */
8455 #include <sys/personality.h>
8457 main ()
8459 personality (PER_LINUX32)
8461 return 0;
8463 _ACEOF
8464 if ac_fn_c_try_compile "$LINENO"; then :
8465 emacs_cv_personality_linux32=yes
8466 else
8467 emacs_cv_personality_linux32=no
8469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
8471 $as_echo "$emacs_cv_personality_linux32" >&6; }
8473 if test $emacs_cv_personality_linux32 = yes; then
8475 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
8479 for ac_header in term.h
8480 do :
8481 ac_fn_c_check_header_preproc "$LINENO" "term.h" "ac_cv_header_term_h"
8482 if test "x$ac_cv_header_term_h" = x""yes; then :
8483 cat >>confdefs.h <<_ACEOF
8484 #define HAVE_TERM_H 1
8485 _ACEOF
8489 done
8491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8492 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8493 if test "${ac_cv_header_time+set}" = set; then :
8494 $as_echo_n "(cached) " >&6
8495 else
8496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8497 /* end confdefs.h. */
8498 #include <sys/types.h>
8499 #include <sys/time.h>
8500 #include <time.h>
8503 main ()
8505 if ((struct tm *) 0)
8506 return 0;
8508 return 0;
8510 _ACEOF
8511 if ac_fn_c_try_compile "$LINENO"; then :
8512 ac_cv_header_time=yes
8513 else
8514 ac_cv_header_time=no
8516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8519 $as_echo "$ac_cv_header_time" >&6; }
8520 if test $ac_cv_header_time = yes; then
8522 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8526 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default"
8527 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then :
8528 ac_have_decl=1
8529 else
8530 ac_have_decl=0
8533 cat >>confdefs.h <<_ACEOF
8534 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
8535 _ACEOF
8537 if test $ac_cv_have_decl_sys_siglist != yes; then
8538 # For Tru64, at least:
8539 ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default"
8540 if test "x$ac_cv_have_decl___sys_siglist" = x""yes; then :
8541 ac_have_decl=1
8542 else
8543 ac_have_decl=0
8546 cat >>confdefs.h <<_ACEOF
8547 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
8548 _ACEOF
8550 if test $ac_cv_have_decl___sys_siglist = yes; then
8552 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
8556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8557 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8558 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8559 $as_echo_n "(cached) " >&6
8560 else
8561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8562 /* end confdefs.h. */
8563 #include <sys/types.h>
8564 #include <sys/wait.h>
8565 #ifndef WEXITSTATUS
8566 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8567 #endif
8568 #ifndef WIFEXITED
8569 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8570 #endif
8573 main ()
8575 int s;
8576 wait (&s);
8577 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8579 return 0;
8581 _ACEOF
8582 if ac_fn_c_try_compile "$LINENO"; then :
8583 ac_cv_header_sys_wait_h=yes
8584 else
8585 ac_cv_header_sys_wait_h=no
8587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8590 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8591 if test $ac_cv_header_sys_wait_h = yes; then
8593 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
8599 $as_echo_n "checking for struct utimbuf... " >&6; }
8600 if test "${emacs_cv_struct_utimbuf+set}" = set; then :
8601 $as_echo_n "(cached) " >&6
8602 else
8603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8604 /* end confdefs.h. */
8605 #ifdef TIME_WITH_SYS_TIME
8606 #include <sys/time.h>
8607 #include <time.h>
8608 #else
8609 #ifdef HAVE_SYS_TIME_H
8610 #include <sys/time.h>
8611 #else
8612 #include <time.h>
8613 #endif
8614 #endif
8615 #ifdef HAVE_UTIME_H
8616 #include <utime.h>
8617 #endif
8619 main ()
8621 static struct utimbuf x; x.actime = x.modtime;
8623 return 0;
8625 _ACEOF
8626 if ac_fn_c_try_compile "$LINENO"; then :
8627 emacs_cv_struct_utimbuf=yes
8628 else
8629 emacs_cv_struct_utimbuf=no
8631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_utimbuf" >&5
8634 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
8635 if test $emacs_cv_struct_utimbuf = yes; then
8637 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
8641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
8642 $as_echo_n "checking for speed_t... " >&6; }
8643 if test "${emacs_cv_speed_t+set}" = set; then :
8644 $as_echo_n "(cached) " >&6
8645 else
8646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8647 /* end confdefs.h. */
8648 #include <termios.h>
8650 main ()
8652 speed_t x = 1;
8654 return 0;
8656 _ACEOF
8657 if ac_fn_c_try_compile "$LINENO"; then :
8658 emacs_cv_speed_t=yes
8659 else
8660 emacs_cv_speed_t=no
8662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
8665 $as_echo "$emacs_cv_speed_t" >&6; }
8666 if test $emacs_cv_speed_t = yes; then
8668 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
8672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
8673 $as_echo_n "checking for struct timeval... " >&6; }
8674 if test "${emacs_cv_struct_timeval+set}" = set; then :
8675 $as_echo_n "(cached) " >&6
8676 else
8677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8678 /* end confdefs.h. */
8679 #ifdef TIME_WITH_SYS_TIME
8680 #include <sys/time.h>
8681 #include <time.h>
8682 #else
8683 #ifdef HAVE_SYS_TIME_H
8684 #include <sys/time.h>
8685 #else
8686 #include <time.h>
8687 #endif
8688 #endif
8690 main ()
8692 static struct timeval x; x.tv_sec = x.tv_usec;
8694 return 0;
8696 _ACEOF
8697 if ac_fn_c_try_compile "$LINENO"; then :
8698 emacs_cv_struct_timeval=yes
8699 else
8700 emacs_cv_struct_timeval=no
8702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_timeval" >&5
8705 $as_echo "$emacs_cv_struct_timeval" >&6; }
8706 HAVE_TIMEVAL=$emacs_cv_struct_timeval
8707 if test $emacs_cv_struct_timeval = yes; then
8709 $as_echo "#define HAVE_TIMEVAL 1" >>confdefs.h
8713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct exception" >&5
8714 $as_echo_n "checking for struct exception... " >&6; }
8715 if test "${emacs_cv_struct_exception+set}" = set; then :
8716 $as_echo_n "(cached) " >&6
8717 else
8718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8719 /* end confdefs.h. */
8720 #include <math.h>
8722 main ()
8724 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
8726 return 0;
8728 _ACEOF
8729 if ac_fn_c_try_compile "$LINENO"; then :
8730 emacs_cv_struct_exception=yes
8731 else
8732 emacs_cv_struct_exception=no
8734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_exception" >&5
8737 $as_echo "$emacs_cv_struct_exception" >&6; }
8738 HAVE_EXCEPTION=$emacs_cv_struct_exception
8739 if test $emacs_cv_struct_exception != yes; then
8741 $as_echo "#define NO_MATHERR 1" >>confdefs.h
8748 for ac_header in net/if.h
8749 do :
8750 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
8751 #if HAVE_SYS_SOCKET_H
8752 #include <sys/socket.h>
8753 #endif
8755 if test "x$ac_cv_header_net_if_h" = x""yes; then :
8756 cat >>confdefs.h <<_ACEOF
8757 #define HAVE_NET_IF_H 1
8758 _ACEOF
8762 done
8764 for ac_header in ifaddrs.h
8765 do :
8766 ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default
8767 #if HAVE_SYS_SOCKET_H
8768 #include <sys/socket.h>
8769 #endif
8771 if test "x$ac_cv_header_ifaddrs_h" = x""yes; then :
8772 cat >>confdefs.h <<_ACEOF
8773 #define HAVE_IFADDRS_H 1
8774 _ACEOF
8778 done
8780 for ac_header in net/if_dl.h
8781 do :
8782 ac_fn_c_check_header_compile "$LINENO" "net/if_dl.h" "ac_cv_header_net_if_dl_h" "$ac_includes_default
8783 #if HAVE_SYS_SOCKET_H
8784 #include <sys/socket.h>
8785 #endif
8787 if test "x$ac_cv_header_net_if_dl_h" = x""yes; then :
8788 cat >>confdefs.h <<_ACEOF
8789 #define HAVE_NET_IF_DL_H 1
8790 _ACEOF
8794 done
8796 for ac_func in getifaddrs freeifaddrs
8797 do :
8798 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8799 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8800 eval as_val=\$$as_ac_var
8801 if test "x$as_val" = x""yes; then :
8802 cat >>confdefs.h <<_ACEOF
8803 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8804 _ACEOF
8807 done
8810 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
8811 #if HAVE_SYS_SOCKET_H
8812 #include <sys/socket.h>
8813 #endif
8814 #if HAVE_NET_IF_H
8815 #include <net/if.h>
8816 #endif
8818 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x""yes; then :
8820 cat >>confdefs.h <<_ACEOF
8821 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8822 _ACEOF
8826 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
8827 #if HAVE_SYS_SOCKET_H
8828 #include <sys/socket.h>
8829 #endif
8830 #if HAVE_NET_IF_H
8831 #include <net/if.h>
8832 #endif
8834 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x""yes; then :
8836 cat >>confdefs.h <<_ACEOF
8837 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8838 _ACEOF
8842 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
8843 #if HAVE_SYS_SOCKET_H
8844 #include <sys/socket.h>
8845 #endif
8846 #if HAVE_NET_IF_H
8847 #include <net/if.h>
8848 #endif
8850 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x""yes; then :
8852 cat >>confdefs.h <<_ACEOF
8853 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8854 _ACEOF
8858 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
8859 #if HAVE_SYS_SOCKET_H
8860 #include <sys/socket.h>
8861 #endif
8862 #if HAVE_NET_IF_H
8863 #include <net/if.h>
8864 #endif
8866 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x""yes; then :
8868 cat >>confdefs.h <<_ACEOF
8869 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8870 _ACEOF
8874 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
8875 #if HAVE_SYS_SOCKET_H
8876 #include <sys/socket.h>
8877 #endif
8878 #if HAVE_NET_IF_H
8879 #include <net/if.h>
8880 #endif
8882 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x""yes; then :
8884 cat >>confdefs.h <<_ACEOF
8885 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8886 _ACEOF
8890 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr.sa_len" "ac_cv_member_struct_ifreq_ifr_addr_sa_len" "$ac_includes_default
8891 #if HAVE_SYS_SOCKET_H
8892 #include <sys/socket.h>
8893 #endif
8894 #if HAVE_NET_IF_H
8895 #include <net/if.h>
8896 #endif
8898 if test "x$ac_cv_member_struct_ifreq_ifr_addr_sa_len" = x""yes; then :
8900 cat >>confdefs.h <<_ACEOF
8901 #define HAVE_STRUCT_IFREQ_IFR_ADDR_SA_LEN 1
8902 _ACEOF
8909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__ ((__aligned__ (expr)))" >&5
8910 $as_echo_n "checking for __attribute__ ((__aligned__ (expr)))... " >&6; }
8911 if test "${emacs_cv_attribute_aligned+set}" = set; then :
8912 $as_echo_n "(cached) " >&6
8913 else
8914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8915 /* end confdefs.h. */
8916 char __attribute__ ((__aligned__ (1 << 3))) c;
8918 main ()
8922 return 0;
8924 _ACEOF
8925 if ac_fn_c_try_compile "$LINENO"; then :
8926 emacs_cv_attribute_aligned=yes
8927 else
8928 emacs_cv_attribute_aligned=no
8930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_attribute_aligned" >&5
8933 $as_echo "$emacs_cv_attribute_aligned" >&6; }
8934 if test $emacs_cv_attribute_aligned = yes; then
8936 $as_echo "#define HAVE_ATTRIBUTE_ALIGNED 1" >>confdefs.h
8941 DEPFLAGS=
8942 MKDEPDIR=":"
8943 deps_frag=deps.mk
8944 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
8945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
8946 $as_echo_n "checking whether we are using GNU Make... " >&6; }
8947 HAVE_GNU_MAKE=no
8948 testval=`${MAKE-make} --version 2>/dev/null | grep 'GNU Make'`
8949 if test "x$testval" != x; then
8950 HAVE_GNU_MAKE=yes
8951 else
8952 ac_enable_autodepend=no
8954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
8955 $as_echo "$HAVE_GNU_MAKE" >&6; }
8956 if test $HAVE_GNU_MAKE = yes; then
8957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
8958 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
8959 SAVE_CFLAGS="$CFLAGS"
8960 CFLAGS="$CFLAGS -MMD -MF deps.d -MP"
8961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8962 /* end confdefs.h. */
8965 main ()
8969 return 0;
8971 _ACEOF
8972 if ac_fn_c_try_compile "$LINENO"; then :
8974 else
8975 ac_enable_autodepend=no
8977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8978 CFLAGS="$SAVE_CFLAGS"
8979 test -f deps.d || ac_enable_autodepend=no
8980 rm -rf deps.d
8981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
8982 $as_echo "$ac_enable_autodepend" >&6; }
8984 if test $ac_enable_autodepend = yes; then
8985 DEPFLAGS='-MMD -MF ${DEPDIR}/$*.d -MP'
8986 ## MKDIR_P is documented (see AC_PROG_MKDIR_P) to be parallel-safe.
8987 MKDEPDIR='${MKDIR_P} ${DEPDIR}'
8988 deps_frag=autodeps.mk
8991 deps_frag=$srcdir/src/$deps_frag
8997 lisp_frag=$srcdir/src/lisp.mk
9001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
9002 $as_echo_n "checking for long file names... " >&6; }
9003 if test "${ac_cv_sys_long_file_names+set}" = set; then :
9004 $as_echo_n "(cached) " >&6
9005 else
9006 ac_cv_sys_long_file_names=yes
9007 # Test for long file names in all the places we know might matter:
9008 # . the current directory, where building will happen
9009 # $prefix/lib where we will be installing things
9010 # $exec_prefix/lib likewise
9011 # $TMPDIR if set, where it might want to write temporary files
9012 # /tmp where it might want to write temporary files
9013 # /var/tmp likewise
9014 # /usr/tmp likewise
9015 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9016 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9017 # in the usual case where exec_prefix is '${prefix}'.
9018 case $ac_dir in #(
9019 . | /* | ?:[\\/]*) ;; #(
9020 *) continue;;
9021 esac
9022 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9023 ac_xdir=$ac_dir/cf$$
9024 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9025 ac_tf1=$ac_xdir/conftest9012345
9026 ac_tf2=$ac_xdir/conftest9012346
9027 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9028 ac_cv_sys_long_file_names=no
9029 rm -f -r "$ac_xdir" 2>/dev/null
9030 test $ac_cv_sys_long_file_names = no && break
9031 done
9033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
9034 $as_echo "$ac_cv_sys_long_file_names" >&6; }
9035 if test $ac_cv_sys_long_file_names = yes; then
9037 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
9042 #### Choose a window system.
9044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
9045 $as_echo_n "checking for X... " >&6; }
9048 # Check whether --with-x was given.
9049 if test "${with_x+set}" = set; then :
9050 withval=$with_x;
9053 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9054 if test "x$with_x" = xno; then
9055 # The user explicitly disabled X.
9056 have_x=disabled
9057 else
9058 case $x_includes,$x_libraries in #(
9059 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
9060 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
9061 $as_echo_n "(cached) " >&6
9062 else
9063 # One or both of the vars are not set, and there is no cached value.
9064 ac_x_includes=no ac_x_libraries=no
9065 rm -f -r conftest.dir
9066 if mkdir conftest.dir; then
9067 cd conftest.dir
9068 cat >Imakefile <<'_ACEOF'
9069 incroot:
9070 @echo incroot='${INCROOT}'
9071 usrlibdir:
9072 @echo usrlibdir='${USRLIBDIR}'
9073 libdir:
9074 @echo libdir='${LIBDIR}'
9075 _ACEOF
9076 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9077 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9078 for ac_var in incroot usrlibdir libdir; do
9079 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9080 done
9081 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9082 for ac_extension in a so sl dylib la dll; do
9083 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9084 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9085 ac_im_usrlibdir=$ac_im_libdir; break
9087 done
9088 # Screen out bogus values from the imake configuration. They are
9089 # bogus both because they are the default anyway, and because
9090 # using them would break gcc on systems where it needs fixed includes.
9091 case $ac_im_incroot in
9092 /usr/include) ac_x_includes= ;;
9093 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9094 esac
9095 case $ac_im_usrlibdir in
9096 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
9097 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9098 esac
9100 cd ..
9101 rm -f -r conftest.dir
9104 # Standard set of common directories for X headers.
9105 # Check X11 before X11Rn because it is often a symlink to the current release.
9106 ac_x_header_dirs='
9107 /usr/X11/include
9108 /usr/X11R7/include
9109 /usr/X11R6/include
9110 /usr/X11R5/include
9111 /usr/X11R4/include
9113 /usr/include/X11
9114 /usr/include/X11R7
9115 /usr/include/X11R6
9116 /usr/include/X11R5
9117 /usr/include/X11R4
9119 /usr/local/X11/include
9120 /usr/local/X11R7/include
9121 /usr/local/X11R6/include
9122 /usr/local/X11R5/include
9123 /usr/local/X11R4/include
9125 /usr/local/include/X11
9126 /usr/local/include/X11R7
9127 /usr/local/include/X11R6
9128 /usr/local/include/X11R5
9129 /usr/local/include/X11R4
9131 /usr/X386/include
9132 /usr/x386/include
9133 /usr/XFree86/include/X11
9135 /usr/include
9136 /usr/local/include
9137 /usr/unsupported/include
9138 /usr/athena/include
9139 /usr/local/x11r5/include
9140 /usr/lpp/Xamples/include
9142 /usr/openwin/include
9143 /usr/openwin/share/include'
9145 if test "$ac_x_includes" = no; then
9146 # Guess where to find include files, by looking for Xlib.h.
9147 # First, try using that file with no special directory specified.
9148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9149 /* end confdefs.h. */
9150 #include <X11/Xlib.h>
9151 _ACEOF
9152 if ac_fn_c_try_cpp "$LINENO"; then :
9153 # We can compile using X headers with no special include directory.
9154 ac_x_includes=
9155 else
9156 for ac_dir in $ac_x_header_dirs; do
9157 if test -r "$ac_dir/X11/Xlib.h"; then
9158 ac_x_includes=$ac_dir
9159 break
9161 done
9163 rm -f conftest.err conftest.$ac_ext
9164 fi # $ac_x_includes = no
9166 if test "$ac_x_libraries" = no; then
9167 # Check for the libraries.
9168 # See if we find them without any special options.
9169 # Don't add to $LIBS permanently.
9170 ac_save_LIBS=$LIBS
9171 LIBS="-lX11 $LIBS"
9172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9173 /* end confdefs.h. */
9174 #include <X11/Xlib.h>
9176 main ()
9178 XrmInitialize ()
9180 return 0;
9182 _ACEOF
9183 if ac_fn_c_try_link "$LINENO"; then :
9184 LIBS=$ac_save_LIBS
9185 # We can link X programs with no special library path.
9186 ac_x_libraries=
9187 else
9188 LIBS=$ac_save_LIBS
9189 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9191 # Don't even attempt the hair of trying to link an X program!
9192 for ac_extension in a so sl dylib la dll; do
9193 if test -r "$ac_dir/libX11.$ac_extension"; then
9194 ac_x_libraries=$ac_dir
9195 break 2
9197 done
9198 done
9200 rm -f core conftest.err conftest.$ac_objext \
9201 conftest$ac_exeext conftest.$ac_ext
9202 fi # $ac_x_libraries = no
9204 case $ac_x_includes,$ac_x_libraries in #(
9205 no,* | *,no | *\'*)
9206 # Didn't find X, or a directory has "'" in its name.
9207 ac_cv_have_x="have_x=no";; #(
9209 # Record where we found X for the cache.
9210 ac_cv_have_x="have_x=yes\
9211 ac_x_includes='$ac_x_includes'\
9212 ac_x_libraries='$ac_x_libraries'"
9213 esac
9215 ;; #(
9216 *) have_x=yes;;
9217 esac
9218 eval "$ac_cv_have_x"
9219 fi # $with_x != no
9221 if test "$have_x" != yes; then
9222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
9223 $as_echo "$have_x" >&6; }
9224 no_x=yes
9225 else
9226 # If each of the values was on the command line, it overrides each guess.
9227 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9228 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9229 # Update the cache value to reflect the command line values.
9230 ac_cv_have_x="have_x=yes\
9231 ac_x_includes='$x_includes'\
9232 ac_x_libraries='$x_libraries'"
9233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
9234 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
9237 if test "$no_x" = yes; then
9238 window_system=none
9239 else
9240 window_system=x11
9243 LD_SWITCH_X_SITE_RPATH=
9244 if test "${x_libraries}" != NONE; then
9245 if test -n "${x_libraries}"; then
9246 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9247 LD_SWITCH_X_SITE_RPATH=-Wl,-rpath,`echo ${x_libraries} | sed -e "s/:/ -Wl,-rpath,/g"`
9249 x_default_search_path=""
9250 x_search_path=${x_libraries}
9251 if test -z "${x_search_path}"; then
9252 x_search_path=/usr/lib
9254 for x_library in `echo ${x_search_path}: | \
9255 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9256 x_search_path="\
9257 ${x_library}/X11/%L/%T/%N%C%S:\
9258 ${x_library}/X11/%l/%T/%N%C%S:\
9259 ${x_library}/X11/%T/%N%C%S:\
9260 ${x_library}/X11/%L/%T/%N%S:\
9261 ${x_library}/X11/%l/%T/%N%S:\
9262 ${x_library}/X11/%T/%N%S"
9263 if test x"${x_default_search_path}" = x; then
9264 x_default_search_path=${x_search_path}
9265 else
9266 x_default_search_path="${x_search_path}:${x_default_search_path}"
9268 done
9272 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9273 C_SWITCH_X_SITE="$isystem"`echo ${x_includes} | sed -e "s/:/ $isystem/g"`
9276 if test x"${x_includes}" = x; then
9277 bitmapdir=/usr/include/X11/bitmaps
9278 else
9279 # accumulate include directories that have X11 bitmap subdirectories
9280 bmd_acc="dummyval"
9281 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9282 if test -d "${bmd}/X11/bitmaps"; then
9283 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9285 if test -d "${bmd}/bitmaps"; then
9286 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9288 done
9289 if test ${bmd_acc} != "dummyval"; then
9290 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9294 HAVE_NS=no
9295 NS_IMPL_COCOA=no
9296 NS_IMPL_GNUSTEP=no
9297 tmp_CPPFLAGS="$CPPFLAGS"
9298 tmp_CFLAGS="$CFLAGS"
9299 CPPFLAGS="$CPPFLAGS -x objective-c"
9300 CFLAGS="$CFLAGS -x objective-c"
9301 TEMACS_LDFLAGS2="\${LDFLAGS}"
9302 GNU_OBJC_CFLAGS=
9303 if test "${with_ns}" != no; then
9304 if test "${opsys}" = darwin; then
9305 NS_IMPL_COCOA=yes
9306 ns_appdir=`pwd`/nextstep/Emacs.app
9307 ns_appbindir=${ns_appdir}/Contents/MacOS
9308 ns_appresdir=${ns_appdir}/Contents/Resources
9309 ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base
9310 elif test -f $GNUSTEP_CONFIG_FILE; then
9311 NS_IMPL_GNUSTEP=yes
9312 ns_appdir=`pwd`/nextstep/Emacs.app
9313 ns_appbindir=${ns_appdir}
9314 ns_appresdir=${ns_appdir}/Resources
9315 ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base
9316 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9317 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9318 GNUSTEP_LOCAL_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
9319 GNUSTEP_LOCAL_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
9320 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
9321 GNUSTEP_LOCAL_HEADERS="-I${GNUSTEP_LOCAL_HEADERS}"
9322 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
9323 GNUSTEP_LOCAL_LIBRARIES="-L${GNUSTEP_LOCAL_LIBRARIES}"
9324 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9325 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9326 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
9327 LIB_STANDARD=
9328 START_FILES=
9329 TEMACS_LDFLAGS2=
9330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS" >&5
9331 $as_echo_n "checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS... " >&6; }
9332 if test "${emacs_cv_objc_exceptions+set}" = set; then :
9333 $as_echo_n "(cached) " >&6
9334 else
9335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9336 /* end confdefs.h. */
9337 #include <GNUstepBase/GSConfig.h>
9339 main ()
9341 #if defined BASE_NATIVE_OBJC_EXCEPTIONS && BASE_NATIVE_OBJC_EXCEPTIONS > 0
9343 #else
9344 fail;
9345 #endif
9347 return 0;
9349 _ACEOF
9350 if ac_fn_c_try_compile "$LINENO"; then :
9351 emacs_cv_objc_exceptions=yes
9352 else
9353 emacs_cv_objc_exceptions=no
9355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_objc_exceptions" >&5
9358 $as_echo "$emacs_cv_objc_exceptions" >&6; }
9359 if test $emacs_cv_objc_exceptions = yes; then
9361 $as_echo "#define _NATIVE_OBJC_EXCEPTIONS 1" >>confdefs.h
9363 GNU_OBJC_CFLAGS="-fobjc-exceptions"
9367 CFLAGS="$CFLAGS $GNU_OBJC_CFLAGS"
9369 ac_fn_c_check_header_mongrel "$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
9370 if test "x$ac_cv_header_AppKit_AppKit_h" = x""yes; then :
9371 HAVE_NS=yes
9372 else
9373 as_fn_error "\`--with-ns' was specified, but the include
9374 files are missing or cannot be compiled." "$LINENO" 5
9378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9379 /* end confdefs.h. */
9380 #include <Foundation/NSObjCRuntime.h>
9382 main ()
9384 NSInteger i;
9386 return 0;
9388 _ACEOF
9389 if ac_fn_c_try_compile "$LINENO"; then :
9390 ns_have_nsinteger=yes
9391 else
9392 ns_have_nsinteger=no
9394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9395 if test $ns_have_nsinteger = yes; then
9397 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
9403 INSTALL_ARCH_INDEP_EXTRA=install-etc
9404 ns_self_contained=no
9405 ns_frag=/dev/null
9406 NS_OBJ=
9407 NS_OBJC_OBJ=
9408 if test "${HAVE_NS}" = yes; then
9409 if test "$with_toolkit_scroll_bars" = "no"; then
9410 as_fn_error "Non-toolkit scroll bars are not implemented for Nextstep." "$LINENO" 5
9413 window_system=nextstep
9414 with_xft=no
9415 # set up packaging dirs
9416 if test "${EN_NS_SELF_CONTAINED}" = yes; then
9417 ns_self_contained=yes
9418 prefix=${ns_appresdir}
9419 exec_prefix=${ns_appbindir}
9420 libexecdir="\${ns_appbindir}/libexec"
9421 archlibdir="\${ns_appbindir}/libexec"
9422 docdir="\${ns_appresdir}/etc"
9423 etcdir="\${ns_appresdir}/etc"
9424 infodir="\${ns_appresdir}/info"
9425 mandir="\${ns_appresdir}/man"
9426 lispdir="\${ns_appresdir}/lisp"
9427 leimdir="\${ns_appresdir}/leim"
9428 INSTALL_ARCH_INDEP_EXTRA=
9430 ns_frag=$srcdir/src/ns.mk
9431 NS_OBJ="fontset.o fringe.o image.o"
9432 NS_OBJC_OBJ="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o"
9434 CFLAGS="$tmp_CFLAGS"
9435 CPPFLAGS="$tmp_CPPFLAGS"
9443 case "${window_system}" in
9444 x11 )
9445 HAVE_X_WINDOWS=yes
9446 HAVE_X11=yes
9447 case "${with_x_toolkit}" in
9448 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9449 motif ) USE_X_TOOLKIT=MOTIF ;;
9450 gtk ) with_gtk=yes
9451 USE_X_TOOLKIT=none ;;
9452 gtk3 ) with_gtk3=yes
9453 USE_X_TOOLKIT=none ;;
9454 no ) USE_X_TOOLKIT=none ;;
9455 * ) USE_X_TOOLKIT=maybe ;;
9456 esac
9458 nextstep | none )
9459 HAVE_X_WINDOWS=no
9460 HAVE_X11=no
9461 USE_X_TOOLKIT=none
9463 esac
9465 if test "$window_system" = none && test "X$with_x" != "Xno"; then
9466 # Extract the first word of "X", so it can be a program name with args.
9467 set dummy X; ac_word=$2
9468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9469 $as_echo_n "checking for $ac_word... " >&6; }
9470 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then :
9471 $as_echo_n "(cached) " >&6
9472 else
9473 if test -n "$HAVE_XSERVER"; then
9474 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9475 else
9476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9477 for as_dir in $PATH
9479 IFS=$as_save_IFS
9480 test -z "$as_dir" && as_dir=.
9481 for ac_exec_ext in '' $ac_executable_extensions; do
9482 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9483 ac_cv_prog_HAVE_XSERVER="true"
9484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9485 break 2
9487 done
9488 done
9489 IFS=$as_save_IFS
9491 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9494 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9495 if test -n "$HAVE_XSERVER"; then
9496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
9497 $as_echo "$HAVE_XSERVER" >&6; }
9498 else
9499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9500 $as_echo "no" >&6; }
9504 if test "$HAVE_XSERVER" = true ||
9505 test -n "$DISPLAY" ||
9506 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
9507 as_fn_error "You seem to be running X, but no X development libraries
9508 were found. You should install the relevant development files for X
9509 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9510 sure you have development files for image handling, i.e.
9511 tiff, gif, jpeg, png and xpm.
9512 If you are sure you want Emacs compiled without X window support, pass
9513 --without-x
9514 to configure." "$LINENO" 5
9518 ### If we're using X11, we should use the X menu package.
9519 HAVE_MENUS=no
9520 case ${HAVE_X11} in
9521 yes ) HAVE_MENUS=yes ;;
9522 esac
9524 # Does the opsystem file prohibit the use of the GNU malloc?
9525 # Assume not, until told otherwise.
9526 GNU_MALLOC=yes
9528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc is Doug Lea style" >&5
9529 $as_echo_n "checking whether malloc is Doug Lea style... " >&6; }
9530 if test "${emacs_cv_var_doug_lea_malloc+set}" = set; then :
9531 $as_echo_n "(cached) " >&6
9532 else
9533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9534 /* end confdefs.h. */
9535 #include <malloc.h>
9536 static void hook (void) {}
9538 main ()
9540 malloc_set_state (malloc_get_state ());
9541 __after_morecore_hook = hook;
9542 __malloc_initialize_hook = hook;
9544 return 0;
9546 _ACEOF
9547 if ac_fn_c_try_link "$LINENO"; then :
9548 emacs_cv_var_doug_lea_malloc=yes
9549 else
9550 emacs_cv_var_doug_lea_malloc=no
9552 rm -f core conftest.err conftest.$ac_objext \
9553 conftest$ac_exeext conftest.$ac_ext
9555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var_doug_lea_malloc" >&5
9556 $as_echo "$emacs_cv_var_doug_lea_malloc" >&6; }
9557 doug_lea_malloc=$emacs_cv_var_doug_lea_malloc
9560 system_malloc=no
9561 case "$opsys" in
9562 ## darwin ld insists on the use of malloc routines in the System framework.
9563 darwin|sol2-10) system_malloc=yes ;;
9564 esac
9566 if test "${system_malloc}" = "yes"; then
9568 $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
9570 GNU_MALLOC=no
9571 GNU_MALLOC_reason="
9572 (The GNU allocators don't work with this system configuration.)"
9573 GMALLOC_OBJ=
9574 VMLIMIT_OBJ=
9575 else
9576 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ=gmalloc.o
9577 VMLIMIT_OBJ=vm-limit.o
9582 if test "$doug_lea_malloc" = "yes" ; then
9583 if test "$GNU_MALLOC" = yes ; then
9584 GNU_MALLOC_reason="
9585 (Using Doug Lea's new malloc from the GNU C Library.)"
9588 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
9591 ## Use mmap directly for allocating larger buffers.
9592 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
9593 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
9594 ## Does the AC_FUNC_MMAP test below make this check unnecessary?
9595 case "$opsys" in
9596 gnu*) REL_ALLOC=no ;;
9597 esac
9600 if test x"${REL_ALLOC}" = x; then
9601 REL_ALLOC=${GNU_MALLOC}
9604 use_mmap_for_buffers=no
9605 case "$opsys" in
9606 cygwin|freebsd|irix6-5) use_mmap_for_buffers=yes ;;
9607 esac
9616 for ac_func in getpagesize
9617 do :
9618 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
9619 if test "x$ac_cv_func_getpagesize" = x""yes; then :
9620 cat >>confdefs.h <<_ACEOF
9621 #define HAVE_GETPAGESIZE 1
9622 _ACEOF
9625 done
9627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
9628 $as_echo_n "checking for working mmap... " >&6; }
9629 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
9630 $as_echo_n "(cached) " >&6
9631 else
9632 if test "$cross_compiling" = yes; then :
9633 ac_cv_func_mmap_fixed_mapped=no
9634 else
9635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9636 /* end confdefs.h. */
9637 $ac_includes_default
9638 /* malloc might have been renamed as rpl_malloc. */
9639 #undef malloc
9641 /* Thanks to Mike Haertel and Jim Avera for this test.
9642 Here is a matrix of mmap possibilities:
9643 mmap private not fixed
9644 mmap private fixed at somewhere currently unmapped
9645 mmap private fixed at somewhere already mapped
9646 mmap shared not fixed
9647 mmap shared fixed at somewhere currently unmapped
9648 mmap shared fixed at somewhere already mapped
9649 For private mappings, we should verify that changes cannot be read()
9650 back from the file, nor mmap's back from the file at a different
9651 address. (There have been systems where private was not correctly
9652 implemented like the infamous i386 svr4.0, and systems where the
9653 VM page cache was not coherent with the file system buffer cache
9654 like early versions of FreeBSD and possibly contemporary NetBSD.)
9655 For shared mappings, we should conversely verify that changes get
9656 propagated back to all the places they're supposed to be.
9658 Grep wants private fixed already mapped.
9659 The main things grep needs to know about mmap are:
9660 * does it exist and is it safe to write into the mmap'd area
9661 * how to use it (BSD variants) */
9663 #include <fcntl.h>
9664 #include <sys/mman.h>
9666 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
9667 char *malloc ();
9668 #endif
9670 /* This mess was copied from the GNU getpagesize.h. */
9671 #ifndef HAVE_GETPAGESIZE
9672 # ifdef _SC_PAGESIZE
9673 # define getpagesize() sysconf(_SC_PAGESIZE)
9674 # else /* no _SC_PAGESIZE */
9675 # ifdef HAVE_SYS_PARAM_H
9676 # include <sys/param.h>
9677 # ifdef EXEC_PAGESIZE
9678 # define getpagesize() EXEC_PAGESIZE
9679 # else /* no EXEC_PAGESIZE */
9680 # ifdef NBPG
9681 # define getpagesize() NBPG * CLSIZE
9682 # ifndef CLSIZE
9683 # define CLSIZE 1
9684 # endif /* no CLSIZE */
9685 # else /* no NBPG */
9686 # ifdef NBPC
9687 # define getpagesize() NBPC
9688 # else /* no NBPC */
9689 # ifdef PAGESIZE
9690 # define getpagesize() PAGESIZE
9691 # endif /* PAGESIZE */
9692 # endif /* no NBPC */
9693 # endif /* no NBPG */
9694 # endif /* no EXEC_PAGESIZE */
9695 # else /* no HAVE_SYS_PARAM_H */
9696 # define getpagesize() 8192 /* punt totally */
9697 # endif /* no HAVE_SYS_PARAM_H */
9698 # endif /* no _SC_PAGESIZE */
9700 #endif /* no HAVE_GETPAGESIZE */
9703 main ()
9705 char *data, *data2, *data3;
9706 const char *cdata2;
9707 int i, pagesize;
9708 int fd, fd2;
9710 pagesize = getpagesize ();
9712 /* First, make a file with some known garbage in it. */
9713 data = (char *) malloc (pagesize);
9714 if (!data)
9715 return 1;
9716 for (i = 0; i < pagesize; ++i)
9717 *(data + i) = rand ();
9718 umask (0);
9719 fd = creat ("conftest.mmap", 0600);
9720 if (fd < 0)
9721 return 2;
9722 if (write (fd, data, pagesize) != pagesize)
9723 return 3;
9724 close (fd);
9726 /* Next, check that the tail of a page is zero-filled. File must have
9727 non-zero length, otherwise we risk SIGBUS for entire page. */
9728 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
9729 if (fd2 < 0)
9730 return 4;
9731 cdata2 = "";
9732 if (write (fd2, cdata2, 1) != 1)
9733 return 5;
9734 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
9735 if (data2 == MAP_FAILED)
9736 return 6;
9737 for (i = 0; i < pagesize; ++i)
9738 if (*(data2 + i))
9739 return 7;
9740 close (fd2);
9741 if (munmap (data2, pagesize))
9742 return 8;
9744 /* Next, try to mmap the file at a fixed address which already has
9745 something else allocated at it. If we can, also make sure that
9746 we see the same garbage. */
9747 fd = open ("conftest.mmap", O_RDWR);
9748 if (fd < 0)
9749 return 9;
9750 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9751 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9752 return 10;
9753 for (i = 0; i < pagesize; ++i)
9754 if (*(data + i) != *(data2 + i))
9755 return 11;
9757 /* Finally, make sure that changes to the mapped area do not
9758 percolate back to the file as seen by read(). (This is a bug on
9759 some variants of i386 svr4.0.) */
9760 for (i = 0; i < pagesize; ++i)
9761 *(data2 + i) = *(data2 + i) + 1;
9762 data3 = (char *) malloc (pagesize);
9763 if (!data3)
9764 return 12;
9765 if (read (fd, data3, pagesize) != pagesize)
9766 return 13;
9767 for (i = 0; i < pagesize; ++i)
9768 if (*(data + i) != *(data3 + i))
9769 return 14;
9770 close (fd);
9771 return 0;
9773 _ACEOF
9774 if ac_fn_c_try_run "$LINENO"; then :
9775 ac_cv_func_mmap_fixed_mapped=yes
9776 else
9777 ac_cv_func_mmap_fixed_mapped=no
9779 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9780 conftest.$ac_objext conftest.beam conftest.$ac_ext
9784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
9785 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
9786 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9788 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
9791 rm -f conftest.mmap conftest.txt
9793 if test $use_mmap_for_buffers = yes; then
9795 $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
9797 REL_ALLOC=no
9800 LIBS="$LIBS_SYSTEM $LIBS"
9802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
9803 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
9804 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
9805 $as_echo_n "(cached) " >&6
9806 else
9807 ac_check_lib_save_LIBS=$LIBS
9808 LIBS="-ldnet $LIBS"
9809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9810 /* end confdefs.h. */
9812 /* Override any GCC internal prototype to avoid an error.
9813 Use char because int might match the return type of a GCC
9814 builtin and then its argument prototype would still apply. */
9815 #ifdef __cplusplus
9816 extern "C"
9817 #endif
9818 char dnet_ntoa ();
9820 main ()
9822 return dnet_ntoa ();
9824 return 0;
9826 _ACEOF
9827 if ac_fn_c_try_link "$LINENO"; then :
9828 ac_cv_lib_dnet_dnet_ntoa=yes
9829 else
9830 ac_cv_lib_dnet_dnet_ntoa=no
9832 rm -f core conftest.err conftest.$ac_objext \
9833 conftest$ac_exeext conftest.$ac_ext
9834 LIBS=$ac_check_lib_save_LIBS
9836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9837 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
9838 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
9839 cat >>confdefs.h <<_ACEOF
9840 #define HAVE_LIBDNET 1
9841 _ACEOF
9843 LIBS="-ldnet $LIBS"
9848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
9849 $as_echo_n "checking for main in -lXbsd... " >&6; }
9850 if test "${ac_cv_lib_Xbsd_main+set}" = set; then :
9851 $as_echo_n "(cached) " >&6
9852 else
9853 ac_check_lib_save_LIBS=$LIBS
9854 LIBS="-lXbsd $LIBS"
9855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9856 /* end confdefs.h. */
9860 main ()
9862 return main ();
9864 return 0;
9866 _ACEOF
9867 if ac_fn_c_try_link "$LINENO"; then :
9868 ac_cv_lib_Xbsd_main=yes
9869 else
9870 ac_cv_lib_Xbsd_main=no
9872 rm -f core conftest.err conftest.$ac_objext \
9873 conftest$ac_exeext conftest.$ac_ext
9874 LIBS=$ac_check_lib_save_LIBS
9876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
9877 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
9878 if test "x$ac_cv_lib_Xbsd_main" = x""yes; then :
9879 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
9883 LIB_PTHREAD=
9887 if test "$ac_cv_header_pthread_h"; then
9888 if test "$GMALLOC_OBJ" = gmalloc.o; then
9889 emacs_pthread_function=pthread_atfork
9890 else
9891 emacs_pthread_function=pthread_self
9893 as_ac_Lib=`$as_echo "ac_cv_lib_pthread_$emacs_pthread_function" | $as_tr_sh`
9894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $emacs_pthread_function in -lpthread" >&5
9895 $as_echo_n "checking for $emacs_pthread_function in -lpthread... " >&6; }
9896 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
9897 $as_echo_n "(cached) " >&6
9898 else
9899 ac_check_lib_save_LIBS=$LIBS
9900 LIBS="-lpthread $LIBS"
9901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9902 /* end confdefs.h. */
9904 /* Override any GCC internal prototype to avoid an error.
9905 Use char because int might match the return type of a GCC
9906 builtin and then its argument prototype would still apply. */
9907 #ifdef __cplusplus
9908 extern "C"
9909 #endif
9910 char $emacs_pthread_function ();
9912 main ()
9914 return $emacs_pthread_function ();
9916 return 0;
9918 _ACEOF
9919 if ac_fn_c_try_link "$LINENO"; then :
9920 eval "$as_ac_Lib=yes"
9921 else
9922 eval "$as_ac_Lib=no"
9924 rm -f core conftest.err conftest.$ac_objext \
9925 conftest$ac_exeext conftest.$ac_ext
9926 LIBS=$ac_check_lib_save_LIBS
9928 eval ac_res=\$$as_ac_Lib
9929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9930 $as_echo "$ac_res" >&6; }
9931 eval as_val=\$$as_ac_Lib
9932 if test "x$as_val" = x""yes; then :
9933 HAVE_PTHREAD=yes
9937 if test "$HAVE_PTHREAD" = yes; then
9938 case "${canonical}" in
9939 *-hpux*) ;;
9940 *) LIB_PTHREAD="-lpthread"
9941 LIBS="$LIB_PTHREAD $LIBS" ;;
9942 esac
9944 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
9949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
9950 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
9951 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then :
9952 $as_echo_n "(cached) " >&6
9953 else
9954 ac_check_lib_save_LIBS=$LIBS
9955 LIBS="-lpthreads $LIBS"
9956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9957 /* end confdefs.h. */
9959 /* Override any GCC internal prototype to avoid an error.
9960 Use char because int might match the return type of a GCC
9961 builtin and then its argument prototype would still apply. */
9962 #ifdef __cplusplus
9963 extern "C"
9964 #endif
9965 char cma_open ();
9967 main ()
9969 return cma_open ();
9971 return 0;
9973 _ACEOF
9974 if ac_fn_c_try_link "$LINENO"; then :
9975 ac_cv_lib_pthreads_cma_open=yes
9976 else
9977 ac_cv_lib_pthreads_cma_open=no
9979 rm -f core conftest.err conftest.$ac_objext \
9980 conftest$ac_exeext conftest.$ac_ext
9981 LIBS=$ac_check_lib_save_LIBS
9983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
9984 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
9985 if test "x$ac_cv_lib_pthreads_cma_open" = x""yes; then :
9986 cat >>confdefs.h <<_ACEOF
9987 #define HAVE_LIBPTHREADS 1
9988 _ACEOF
9990 LIBS="-lpthreads $LIBS"
9995 ## Note: when using cpp in s/aix4.2.h, this definition depended on
9996 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
9997 ## the system file was sourced. Hence the value of LIBS_SYSTEM
9998 ## added to LIBS in configure would never contain the pthreads part,
9999 ## but the value used in Makefiles might. FIXME?
10001 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
10002 ## be harmless on older versions of X where it happens to exist.
10003 test "$opsys" = "aix4-2" && \
10004 test $ac_cv_lib_pthreads_cma_open = yes && \
10005 LIBS_SYSTEM="$LIBS_SYSTEM -lpthreads"
10008 case ${host_os} in
10009 aix*)
10010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
10011 $as_echo_n "checking for -bbigtoc option... " >&6; }
10012 if test "${gdb_cv_bigtoc+set}" = set; then :
10013 $as_echo_n "(cached) " >&6
10014 else
10016 case $GCC in
10017 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
10018 *) gdb_cv_bigtoc=-bbigtoc ;;
10019 esac
10021 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10023 /* end confdefs.h. */
10026 main ()
10028 int i;
10030 return 0;
10032 _ACEOF
10033 if ac_fn_c_try_link "$LINENO"; then :
10035 else
10036 gdb_cv_bigtoc=
10038 rm -f core conftest.err conftest.$ac_objext \
10039 conftest$ac_exeext conftest.$ac_ext
10042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
10043 $as_echo "$gdb_cv_bigtoc" >&6; }
10045 esac
10047 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10048 # used for the tests that follow. We set them back to REAL_CFLAGS and
10049 # REAL_CPPFLAGS later on.
10051 REAL_CFLAGS="$CFLAGS"
10052 REAL_CPPFLAGS="$CPPFLAGS"
10054 if test "${HAVE_X11}" = "yes"; then
10055 DEFS="$C_SWITCH_X_SITE $DEFS"
10056 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10057 LIBS="-lX11 $LIBS"
10058 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10059 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10061 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10062 # This is handled by LD_SWITCH_X_SITE_RPATH during the real build,
10063 # but it's more convenient here to set LD_RUN_PATH since this
10064 # also works on hosts that don't understand LD_SWITCH_X_SITE_RPATH.
10065 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10066 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10067 export LD_RUN_PATH
10070 if test "${opsys}" = "gnu-linux"; then
10071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
10072 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
10073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10074 /* end confdefs.h. */
10077 main ()
10079 XOpenDisplay ("foo");
10081 return 0;
10083 _ACEOF
10084 if ac_fn_c_try_link "$LINENO"; then :
10085 xgnu_linux_first_failure=no
10086 else
10087 xgnu_linux_first_failure=yes
10089 rm -f core conftest.err conftest.$ac_objext \
10090 conftest$ac_exeext conftest.$ac_ext
10091 if test "${xgnu_linux_first_failure}" = "yes"; then
10092 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
10093 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
10094 OLD_CPPFLAGS="$CPPFLAGS"
10095 OLD_LIBS="$LIBS"
10096 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
10097 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
10098 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
10099 LIBS="$LIBS -b i486-linuxaout"
10100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10101 /* end confdefs.h. */
10104 main ()
10106 XOpenDisplay ("foo");
10108 return 0;
10110 _ACEOF
10111 if ac_fn_c_try_link "$LINENO"; then :
10112 xgnu_linux_second_failure=no
10113 else
10114 xgnu_linux_second_failure=yes
10116 rm -f core conftest.err conftest.$ac_objext \
10117 conftest$ac_exeext conftest.$ac_ext
10118 if test "${xgnu_linux_second_failure}" = "yes"; then
10119 # If we get the same failure with -b, there is no use adding -b.
10120 # So take it out. This plays safe.
10121 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10122 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10123 CPPFLAGS="$OLD_CPPFLAGS"
10124 LIBS="$OLD_LIBS"
10125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10126 $as_echo "no" >&6; }
10127 else
10128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10129 $as_echo "yes" >&6; }
10131 else
10132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10133 $as_echo "no" >&6; }
10137 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10138 # header files included from there.
10139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
10140 $as_echo_n "checking for Xkb... " >&6; }
10141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10142 /* end confdefs.h. */
10143 #include <X11/Xlib.h>
10144 #include <X11/XKBlib.h>
10146 main ()
10148 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10150 return 0;
10152 _ACEOF
10153 if ac_fn_c_try_link "$LINENO"; then :
10154 emacs_xkb=yes
10155 else
10156 emacs_xkb=no
10158 rm -f core conftest.err conftest.$ac_objext \
10159 conftest$ac_exeext conftest.$ac_ext
10160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
10161 $as_echo "$emacs_xkb" >&6; }
10162 if test $emacs_xkb = yes; then
10164 $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
10168 for ac_func in XrmSetDatabase XScreenResourceString \
10169 XScreenNumberOfScreen
10170 do :
10171 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10172 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10173 eval as_val=\$$as_ac_var
10174 if test "x$as_val" = x""yes; then :
10175 cat >>confdefs.h <<_ACEOF
10176 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10177 _ACEOF
10180 done
10184 if test "${window_system}" = "x11"; then
10185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
10186 $as_echo_n "checking X11 version 6... " >&6; }
10187 if test "${emacs_cv_x11_version_6+set}" = set; then :
10188 $as_echo_n "(cached) " >&6
10189 else
10190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10191 /* end confdefs.h. */
10192 #include <X11/Xlib.h>
10194 main ()
10196 #if XlibSpecificationRelease < 6
10197 fail;
10198 #endif
10201 return 0;
10203 _ACEOF
10204 if ac_fn_c_try_link "$LINENO"; then :
10205 emacs_cv_x11_version_6=yes
10206 else
10207 emacs_cv_x11_version_6=no
10209 rm -f core conftest.err conftest.$ac_objext \
10210 conftest$ac_exeext conftest.$ac_ext
10213 if test $emacs_cv_x11_version_6 = yes; then
10214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
10215 $as_echo "6 or newer" >&6; }
10217 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
10220 $as_echo "#define HAVE_X_I18N 1" >>confdefs.h
10222 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
10223 ## XIM support.
10224 case "$opsys" in
10225 sol2-*) : ;;
10227 $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
10230 esac
10231 else
10232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
10233 $as_echo "before 6" >&6; }
10238 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
10239 HAVE_RSVG=no
10240 if test "${HAVE_X11}" = "yes" || test "${HAVE_NS}" = "yes"; then
10241 if test "${with_rsvg}" != "no"; then
10242 RSVG_REQUIRED=2.11.0
10243 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
10246 succeeded=no
10248 if test "$PKG_CONFIG" = "no" ; then
10250 else
10251 PKG_CONFIG_MIN_VERSION=0.9.0
10252 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
10254 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
10256 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5 &&
10257 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE" 2>&5` &&
10258 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE" 2>&5`; then
10259 edit_cflags="
10260 s,///*,/,g
10261 s/^/ /
10262 s/ -I/ $isystem/g
10263 s/^ //
10265 RSVG_CFLAGS=`$as_echo "$RSVG_CFLAGS" | sed -e "$edit_cflags"`
10266 RSVG_LIBS=`$as_echo "$RSVG_LIBS" | sed -e 's,///*,/,g'`
10267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$RSVG_CFLAGS' LIBS='$RSVG_LIBS'" >&5
10268 $as_echo "yes CFLAGS='$RSVG_CFLAGS' LIBS='$RSVG_LIBS'" >&6; }
10269 succeeded=yes
10270 else
10271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10272 $as_echo "no" >&6; }
10273 RSVG_CFLAGS=""
10274 RSVG_LIBS=""
10275 ## If we have a custom action on failure, don't print errors, but
10276 ## do set a variable so people can do so.
10277 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
10283 else
10284 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10285 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10289 if test $succeeded = yes; then
10290 HAVE_RSVG=yes
10291 else
10298 if test $HAVE_RSVG = yes; then
10300 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
10302 CFLAGS="$CFLAGS $RSVG_CFLAGS"
10303 LIBS="$RSVG_LIBS $LIBS"
10308 HAVE_IMAGEMAGICK=no
10309 if test "${HAVE_X11}" = "yes"; then
10310 if test "${with_imagemagick}" != "no"; then
10311 ## 6.2.8 is the earliest version known to work, but earlier versions
10312 ## might work - let us know if you find one.
10313 ## 6.0.7 does not work. See bug#7955.
10314 IMAGEMAGICK_MODULE="Wand >= 6.2.8"
10316 succeeded=no
10318 if test "$PKG_CONFIG" = "no" ; then
10320 else
10321 PKG_CONFIG_MIN_VERSION=0.9.0
10322 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
10324 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
10326 if $PKG_CONFIG --exists "$IMAGEMAGICK_MODULE" 2>&5 &&
10327 IMAGEMAGICK_CFLAGS=`$PKG_CONFIG --cflags "$IMAGEMAGICK_MODULE" 2>&5` &&
10328 IMAGEMAGICK_LIBS=`$PKG_CONFIG --libs "$IMAGEMAGICK_MODULE" 2>&5`; then
10329 edit_cflags="
10330 s,///*,/,g
10331 s/^/ /
10332 s/ -I/ $isystem/g
10333 s/^ //
10335 IMAGEMAGICK_CFLAGS=`$as_echo "$IMAGEMAGICK_CFLAGS" | sed -e "$edit_cflags"`
10336 IMAGEMAGICK_LIBS=`$as_echo "$IMAGEMAGICK_LIBS" | sed -e 's,///*,/,g'`
10337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$IMAGEMAGICK_CFLAGS' LIBS='$IMAGEMAGICK_LIBS'" >&5
10338 $as_echo "yes CFLAGS='$IMAGEMAGICK_CFLAGS' LIBS='$IMAGEMAGICK_LIBS'" >&6; }
10339 succeeded=yes
10340 else
10341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10342 $as_echo "no" >&6; }
10343 IMAGEMAGICK_CFLAGS=""
10344 IMAGEMAGICK_LIBS=""
10345 ## If we have a custom action on failure, don't print errors, but
10346 ## do set a variable so people can do so.
10347 IMAGEMAGICK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$IMAGEMAGICK_MODULE"`
10353 else
10354 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10355 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10359 if test $succeeded = yes; then
10360 HAVE_IMAGEMAGICK=yes
10361 else
10368 if test $HAVE_IMAGEMAGICK = yes; then
10370 $as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
10372 CFLAGS="$CFLAGS $IMAGEMAGICK_CFLAGS"
10373 LIBS="$IMAGEMAGICK_LIBS $LIBS"
10374 for ac_func in MagickExportImagePixels
10375 do :
10376 ac_fn_c_check_func "$LINENO" "MagickExportImagePixels" "ac_cv_func_MagickExportImagePixels"
10377 if test "x$ac_cv_func_MagickExportImagePixels" = x""yes; then :
10378 cat >>confdefs.h <<_ACEOF
10379 #define HAVE_MAGICKEXPORTIMAGEPIXELS 1
10380 _ACEOF
10383 done
10390 HAVE_GTK=no
10391 GTK_OBJ=
10392 if test "${with_gtk3}" = "yes"; then
10393 GLIB_REQUIRED=2.28
10394 GTK_REQUIRED=3.0
10395 GTK_MODULES="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10398 succeeded=no
10400 if test "$PKG_CONFIG" = "no" ; then
10401 pkg_check_gtk=no
10402 else
10403 PKG_CONFIG_MIN_VERSION=0.9.0
10404 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
10406 $as_echo_n "checking for $GTK_MODULES... " >&6; }
10408 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5 &&
10409 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES" 2>&5` &&
10410 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES" 2>&5`; then
10411 edit_cflags="
10412 s,///*,/,g
10413 s/^/ /
10414 s/ -I/ $isystem/g
10415 s/^ //
10417 GTK_CFLAGS=`$as_echo "$GTK_CFLAGS" | sed -e "$edit_cflags"`
10418 GTK_LIBS=`$as_echo "$GTK_LIBS" | sed -e 's,///*,/,g'`
10419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&5
10420 $as_echo "yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&6; }
10421 succeeded=yes
10422 else
10423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10424 $as_echo "no" >&6; }
10425 GTK_CFLAGS=""
10426 GTK_LIBS=""
10427 ## If we have a custom action on failure, don't print errors, but
10428 ## do set a variable so people can do so.
10429 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10435 else
10436 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10437 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10441 if test $succeeded = yes; then
10442 pkg_check_gtk=yes
10443 else
10444 pkg_check_gtk=no
10447 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
10448 as_fn_error "$GTK_PKG_ERRORS" "$LINENO" 5
10451 $as_echo "#define HAVE_GTK3 1" >>confdefs.h
10453 GTK_OBJ=emacsgtkfixed.o
10456 if test "$pkg_check_gtk" != "yes"; then
10457 HAVE_GTK=no
10458 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
10459 GLIB_REQUIRED=2.10
10460 GTK_REQUIRED=2.10
10461 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10464 succeeded=no
10466 if test "$PKG_CONFIG" = "no" ; then
10467 pkg_check_gtk=no
10468 else
10469 PKG_CONFIG_MIN_VERSION=0.9.0
10470 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
10472 $as_echo_n "checking for $GTK_MODULES... " >&6; }
10474 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5 &&
10475 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES" 2>&5` &&
10476 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES" 2>&5`; then
10477 edit_cflags="
10478 s,///*,/,g
10479 s/^/ /
10480 s/ -I/ $isystem/g
10481 s/^ //
10483 GTK_CFLAGS=`$as_echo "$GTK_CFLAGS" | sed -e "$edit_cflags"`
10484 GTK_LIBS=`$as_echo "$GTK_LIBS" | sed -e 's,///*,/,g'`
10485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&5
10486 $as_echo "yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&6; }
10487 succeeded=yes
10488 else
10489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10490 $as_echo "no" >&6; }
10491 GTK_CFLAGS=""
10492 GTK_LIBS=""
10493 ## If we have a custom action on failure, don't print errors, but
10494 ## do set a variable so people can do so.
10495 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10501 else
10502 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10503 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10507 if test $succeeded = yes; then
10508 pkg_check_gtk=yes
10509 else
10510 pkg_check_gtk=no
10513 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
10514 as_fn_error "$GTK_PKG_ERRORS" "$LINENO" 5
10519 if test x"$pkg_check_gtk" = xyes; then
10523 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
10524 CFLAGS="$CFLAGS $GTK_CFLAGS"
10525 LIBS="$GTK_LIBS $LIBS"
10526 GTK_COMPILES=no
10527 for ac_func in gtk_main
10528 do :
10529 ac_fn_c_check_func "$LINENO" "gtk_main" "ac_cv_func_gtk_main"
10530 if test "x$ac_cv_func_gtk_main" = x""yes; then :
10531 cat >>confdefs.h <<_ACEOF
10532 #define HAVE_GTK_MAIN 1
10533 _ACEOF
10534 GTK_COMPILES=yes
10536 done
10538 if test "${GTK_COMPILES}" != "yes"; then
10539 if test "$USE_X_TOOLKIT" != "maybe"; then
10540 as_fn_error "Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
10542 else
10543 HAVE_GTK=yes
10545 $as_echo "#define USE_GTK 1" >>confdefs.h
10547 GTK_OBJ="gtkutil.o $GTK_OBJ"
10548 USE_X_TOOLKIT=none
10549 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
10551 else
10552 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
10553 closing open displays. This is no problem if you just use
10554 one display, but if you use more than one and close one of them
10555 Emacs may crash." >&5
10556 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
10557 closing open displays. This is no problem if you just use
10558 one display, but if you use more than one and close one of them
10559 Emacs may crash." >&2;}
10560 sleep 3
10568 if test "${HAVE_GTK}" = "yes"; then
10570 if test "$with_toolkit_scroll_bars" != no; then
10571 with_toolkit_scroll_bars=yes
10574 HAVE_GTK_FILE_SELECTION=no
10575 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
10576 #include <gtk/gtk.h>
10578 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x""yes; then :
10579 HAVE_GTK_FILE_SELECTION=yes
10580 else
10581 HAVE_GTK_FILE_SELECTION=no
10584 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
10585 for ac_func in gtk_file_selection_new
10586 do :
10587 ac_fn_c_check_func "$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
10588 if test "x$ac_cv_func_gtk_file_selection_new" = x""yes; then :
10589 cat >>confdefs.h <<_ACEOF
10590 #define HAVE_GTK_FILE_SELECTION_NEW 1
10591 _ACEOF
10594 done
10599 for ac_func in gtk_widget_get_window gtk_widget_set_has_window \
10600 gtk_dialog_get_action_area gtk_widget_get_sensitive \
10601 gtk_widget_get_mapped gtk_adjustment_get_page_size \
10602 gtk_orientable_set_orientation \
10603 gtk_window_set_has_resize_grip
10604 do :
10605 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10606 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10607 eval as_val=\$$as_ac_var
10608 if test "x$as_val" = x""yes; then :
10609 cat >>confdefs.h <<_ACEOF
10610 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10611 _ACEOF
10614 done
10618 HAVE_DBUS=no
10619 DBUS_OBJ=
10620 if test "${with_dbus}" = "yes"; then
10622 succeeded=no
10624 if test "$PKG_CONFIG" = "no" ; then
10625 HAVE_DBUS=no
10626 else
10627 PKG_CONFIG_MIN_VERSION=0.9.0
10628 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
10630 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
10632 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5 &&
10633 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0" 2>&5` &&
10634 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0" 2>&5`; then
10635 edit_cflags="
10636 s,///*,/,g
10637 s/^/ /
10638 s/ -I/ $isystem/g
10639 s/^ //
10641 DBUS_CFLAGS=`$as_echo "$DBUS_CFLAGS" | sed -e "$edit_cflags"`
10642 DBUS_LIBS=`$as_echo "$DBUS_LIBS" | sed -e 's,///*,/,g'`
10643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$DBUS_CFLAGS' LIBS='$DBUS_LIBS'" >&5
10644 $as_echo "yes CFLAGS='$DBUS_CFLAGS' LIBS='$DBUS_LIBS'" >&6; }
10645 succeeded=yes
10646 else
10647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10648 $as_echo "no" >&6; }
10649 DBUS_CFLAGS=""
10650 DBUS_LIBS=""
10651 ## If we have a custom action on failure, don't print errors, but
10652 ## do set a variable so people can do so.
10653 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
10659 else
10660 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10661 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10665 if test $succeeded = yes; then
10666 HAVE_DBUS=yes
10667 else
10668 HAVE_DBUS=no
10671 if test "$HAVE_DBUS" = yes; then
10672 LIBS="$LIBS $DBUS_LIBS"
10674 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
10676 for ac_func in dbus_watch_get_unix_fd \
10677 dbus_validate_bus_name \
10678 dbus_validate_path \
10679 dbus_validate_interface \
10680 dbus_validate_member
10681 do :
10682 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10683 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10684 eval as_val=\$$as_ac_var
10685 if test "x$as_val" = x""yes; then :
10686 cat >>confdefs.h <<_ACEOF
10687 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10688 _ACEOF
10691 done
10693 DBUS_OBJ=dbusbind.o
10698 HAVE_GSETTINGS=no
10699 if test "${HAVE_X11}" = "yes" && test "${with_gsettings}" = "yes"; then
10701 succeeded=no
10703 if test "$PKG_CONFIG" = "no" ; then
10704 HAVE_GSETTINGS=no
10705 else
10706 PKG_CONFIG_MIN_VERSION=0.9.0
10707 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gio-2.0 >= 2.26" >&5
10709 $as_echo_n "checking for gio-2.0 >= 2.26... " >&6; }
10711 if $PKG_CONFIG --exists "gio-2.0 >= 2.26" 2>&5 &&
10712 GSETTINGS_CFLAGS=`$PKG_CONFIG --cflags "gio-2.0 >= 2.26" 2>&5` &&
10713 GSETTINGS_LIBS=`$PKG_CONFIG --libs "gio-2.0 >= 2.26" 2>&5`; then
10714 edit_cflags="
10715 s,///*,/,g
10716 s/^/ /
10717 s/ -I/ $isystem/g
10718 s/^ //
10720 GSETTINGS_CFLAGS=`$as_echo "$GSETTINGS_CFLAGS" | sed -e "$edit_cflags"`
10721 GSETTINGS_LIBS=`$as_echo "$GSETTINGS_LIBS" | sed -e 's,///*,/,g'`
10722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GSETTINGS_CFLAGS' LIBS='$GSETTINGS_LIBS'" >&5
10723 $as_echo "yes CFLAGS='$GSETTINGS_CFLAGS' LIBS='$GSETTINGS_LIBS'" >&6; }
10724 succeeded=yes
10725 else
10726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10727 $as_echo "no" >&6; }
10728 GSETTINGS_CFLAGS=""
10729 GSETTINGS_LIBS=""
10730 ## If we have a custom action on failure, don't print errors, but
10731 ## do set a variable so people can do so.
10732 GSETTINGS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gio-2.0 >= 2.26"`
10738 else
10739 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10740 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10744 if test $succeeded = yes; then
10745 HAVE_GSETTINGS=yes
10746 else
10747 HAVE_GSETTINGS=no
10750 if test "$HAVE_GSETTINGS" = "yes"; then
10752 $as_echo "#define HAVE_GSETTINGS 1" >>confdefs.h
10754 SETTINGS_CFLAGS="$GSETTINGS_CFLAGS"
10755 SETTINGS_LIBS="$GSETTINGS_LIBS"
10759 HAVE_GCONF=no
10760 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
10762 succeeded=no
10764 if test "$PKG_CONFIG" = "no" ; then
10765 HAVE_GCONF=no
10766 else
10767 PKG_CONFIG_MIN_VERSION=0.9.0
10768 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
10770 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
10772 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5 &&
10773 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13" 2>&5` &&
10774 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13" 2>&5`; then
10775 edit_cflags="
10776 s,///*,/,g
10777 s/^/ /
10778 s/ -I/ $isystem/g
10779 s/^ //
10781 GCONF_CFLAGS=`$as_echo "$GCONF_CFLAGS" | sed -e "$edit_cflags"`
10782 GCONF_LIBS=`$as_echo "$GCONF_LIBS" | sed -e 's,///*,/,g'`
10783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GCONF_CFLAGS' LIBS='$GCONF_LIBS'" >&5
10784 $as_echo "yes CFLAGS='$GCONF_CFLAGS' LIBS='$GCONF_LIBS'" >&6; }
10785 succeeded=yes
10786 else
10787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10788 $as_echo "no" >&6; }
10789 GCONF_CFLAGS=""
10790 GCONF_LIBS=""
10791 ## If we have a custom action on failure, don't print errors, but
10792 ## do set a variable so people can do so.
10793 GCONF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
10799 else
10800 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10801 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10805 if test $succeeded = yes; then
10806 HAVE_GCONF=yes
10807 else
10808 HAVE_GCONF=no
10811 if test "$HAVE_GCONF" = yes; then
10813 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
10815 SETTINGS_CFLAGS="$SETTINGS_CFLAGS $GCONF_CFLAGS"
10816 SETTINGS_LIBS="$SETTINGS_LIBS $GCONF_LIBS"
10820 if test "$HAVE_GSETTINGS" = "yes" || test "$HAVE_GCONF" = "yes"; then
10821 SAVE_CFLAGS="$CFLAGS"
10822 SAVE_LIBS="$LIBS"
10823 CFLAGS="$SETTINGS_CFLAGS $CFLAGS"
10824 LIBS="$SETTINGS_LIBS $LIBS"
10825 for ac_func in g_type_init
10826 do :
10827 ac_fn_c_check_func "$LINENO" "g_type_init" "ac_cv_func_g_type_init"
10828 if test "x$ac_cv_func_g_type_init" = x""yes; then :
10829 cat >>confdefs.h <<_ACEOF
10830 #define HAVE_G_TYPE_INIT 1
10831 _ACEOF
10834 done
10836 CFLAGS="$SAVE_CFLAGS"
10837 LIBS="$SAVE_LIBS"
10843 HAVE_LIBSELINUX=no
10844 LIBSELINUX_LIBS=
10845 if test "${with_selinux}" = "yes"; then
10846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
10847 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
10848 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then :
10849 $as_echo_n "(cached) " >&6
10850 else
10851 ac_check_lib_save_LIBS=$LIBS
10852 LIBS="-lselinux $LIBS"
10853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10854 /* end confdefs.h. */
10856 /* Override any GCC internal prototype to avoid an error.
10857 Use char because int might match the return type of a GCC
10858 builtin and then its argument prototype would still apply. */
10859 #ifdef __cplusplus
10860 extern "C"
10861 #endif
10862 char lgetfilecon ();
10864 main ()
10866 return lgetfilecon ();
10868 return 0;
10870 _ACEOF
10871 if ac_fn_c_try_link "$LINENO"; then :
10872 ac_cv_lib_selinux_lgetfilecon=yes
10873 else
10874 ac_cv_lib_selinux_lgetfilecon=no
10876 rm -f core conftest.err conftest.$ac_objext \
10877 conftest$ac_exeext conftest.$ac_ext
10878 LIBS=$ac_check_lib_save_LIBS
10880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
10881 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
10882 if test "x$ac_cv_lib_selinux_lgetfilecon" = x""yes; then :
10883 HAVE_LIBSELINUX=yes
10884 else
10885 HAVE_LIBSELINUX=no
10888 if test "$HAVE_LIBSELINUX" = yes; then
10890 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
10892 LIBSELINUX_LIBS=-lselinux
10897 HAVE_GNUTLS=no
10898 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY=no
10899 if test "${with_gnutls}" = "yes" ; then
10901 succeeded=no
10903 if test "$PKG_CONFIG" = "no" ; then
10904 HAVE_GNUTLS=no
10905 else
10906 PKG_CONFIG_MIN_VERSION=0.9.0
10907 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.6.6" >&5
10909 $as_echo_n "checking for gnutls >= 2.6.6... " >&6; }
10911 if $PKG_CONFIG --exists "gnutls >= 2.6.6" 2>&5 &&
10912 LIBGNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls >= 2.6.6" 2>&5` &&
10913 LIBGNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls >= 2.6.6" 2>&5`; then
10914 edit_cflags="
10915 s,///*,/,g
10916 s/^/ /
10917 s/ -I/ $isystem/g
10918 s/^ //
10920 LIBGNUTLS_CFLAGS=`$as_echo "$LIBGNUTLS_CFLAGS" | sed -e "$edit_cflags"`
10921 LIBGNUTLS_LIBS=`$as_echo "$LIBGNUTLS_LIBS" | sed -e 's,///*,/,g'`
10922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBGNUTLS_CFLAGS' LIBS='$LIBGNUTLS_LIBS'" >&5
10923 $as_echo "yes CFLAGS='$LIBGNUTLS_CFLAGS' LIBS='$LIBGNUTLS_LIBS'" >&6; }
10924 succeeded=yes
10925 else
10926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10927 $as_echo "no" >&6; }
10928 LIBGNUTLS_CFLAGS=""
10929 LIBGNUTLS_LIBS=""
10930 ## If we have a custom action on failure, don't print errors, but
10931 ## do set a variable so people can do so.
10932 LIBGNUTLS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnutls >= 2.6.6"`
10938 else
10939 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10940 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10944 if test $succeeded = yes; then
10945 HAVE_GNUTLS=yes
10946 else
10947 HAVE_GNUTLS=no
10950 if test "${HAVE_GNUTLS}" = "yes"; then
10952 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
10956 CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
10957 LIBS="$LIBGNUTLS_LIBS $LIBS"
10958 for ac_func in gnutls_certificate_set_verify_function
10959 do :
10960 ac_fn_c_check_func "$LINENO" "gnutls_certificate_set_verify_function" "ac_cv_func_gnutls_certificate_set_verify_function"
10961 if test "x$ac_cv_func_gnutls_certificate_set_verify_function" = x""yes; then :
10962 cat >>confdefs.h <<_ACEOF
10963 #define HAVE_GNUTLS_CERTIFICATE_SET_VERIFY_FUNCTION 1
10964 _ACEOF
10965 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY=yes
10967 done
10970 if test "${HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY}" = "yes"; then
10972 $as_echo "#define HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY 1" >>confdefs.h
10980 HAVE_XAW3D=no
10981 LUCID_LIBW=
10982 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
10983 if test "$with_xaw3d" != no; then
10984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
10985 $as_echo_n "checking for xaw3d... " >&6; }
10986 if test "${emacs_cv_xaw3d+set}" = set; then :
10987 $as_echo_n "(cached) " >&6
10988 else
10989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10990 /* end confdefs.h. */
10992 #include <X11/Intrinsic.h>
10993 #include <X11/Xaw3d/Simple.h>
10995 main ()
10999 return 0;
11001 _ACEOF
11002 if ac_fn_c_try_link "$LINENO"; then :
11003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XawScrollbarSetThumb in -lXaw3d" >&5
11004 $as_echo_n "checking for XawScrollbarSetThumb in -lXaw3d... " >&6; }
11005 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then :
11006 $as_echo_n "(cached) " >&6
11007 else
11008 ac_check_lib_save_LIBS=$LIBS
11009 LIBS="-lXaw3d $LIBS"
11010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11011 /* end confdefs.h. */
11013 /* Override any GCC internal prototype to avoid an error.
11014 Use char because int might match the return type of a GCC
11015 builtin and then its argument prototype would still apply. */
11016 #ifdef __cplusplus
11017 extern "C"
11018 #endif
11019 char XawScrollbarSetThumb ();
11021 main ()
11023 return XawScrollbarSetThumb ();
11025 return 0;
11027 _ACEOF
11028 if ac_fn_c_try_link "$LINENO"; then :
11029 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
11030 else
11031 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
11033 rm -f core conftest.err conftest.$ac_objext \
11034 conftest$ac_exeext conftest.$ac_ext
11035 LIBS=$ac_check_lib_save_LIBS
11037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
11038 $as_echo "$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
11039 if test "x$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" = x""yes; then :
11040 emacs_cv_xaw3d=yes
11041 else
11042 emacs_cv_xaw3d=no
11045 else
11046 emacs_cv_xaw3d=no
11048 rm -f core conftest.err conftest.$ac_objext \
11049 conftest$ac_exeext conftest.$ac_ext
11052 else
11053 emacs_cv_xaw3d=no
11055 if test $emacs_cv_xaw3d = yes; then
11056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
11057 $as_echo "yes; using Lucid toolkit" >&6; }
11058 USE_X_TOOLKIT=LUCID
11059 HAVE_XAW3D=yes
11060 LUCID_LIBW=-lXaw3d
11062 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
11064 else
11065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11066 $as_echo "no" >&6; }
11067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
11068 $as_echo_n "checking for libXaw... " >&6; }
11069 if test "${emacs_cv_xaw+set}" = set; then :
11070 $as_echo_n "(cached) " >&6
11071 else
11072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11073 /* end confdefs.h. */
11075 #include <X11/Intrinsic.h>
11076 #include <X11/Xaw/Simple.h>
11078 main ()
11082 return 0;
11084 _ACEOF
11085 if ac_fn_c_try_link "$LINENO"; then :
11086 emacs_cv_xaw=yes
11087 else
11088 emacs_cv_xaw=no
11090 rm -f core conftest.err conftest.$ac_objext \
11091 conftest$ac_exeext conftest.$ac_ext
11094 if test $emacs_cv_xaw = yes; then
11095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
11096 $as_echo "yes; using Lucid toolkit" >&6; }
11097 USE_X_TOOLKIT=LUCID
11098 LUCID_LIBW=-lXaw
11099 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
11100 as_fn_error "Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
11101 else
11102 as_fn_error "No X toolkit could be found.
11103 If you are sure you want Emacs compiled without an X toolkit, pass
11104 --with-x-toolkit=no
11105 to configure. Otherwise, install the development libraries for the toolkit
11106 that you want to use (e.g. Gtk+) and re-run configure." "$LINENO" 5
11111 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
11113 LIBXTR6=
11114 if test "${USE_X_TOOLKIT}" != "none"; then
11115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
11116 $as_echo_n "checking X11 toolkit version... " >&6; }
11117 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then :
11118 $as_echo_n "(cached) " >&6
11119 else
11120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11121 /* end confdefs.h. */
11122 #include <X11/Intrinsic.h>
11124 main ()
11126 #if XtSpecificationRelease < 6
11127 fail;
11128 #endif
11131 return 0;
11133 _ACEOF
11134 if ac_fn_c_try_link "$LINENO"; then :
11135 emacs_cv_x11_toolkit_version_6=yes
11136 else
11137 emacs_cv_x11_toolkit_version_6=no
11139 rm -f core conftest.err conftest.$ac_objext \
11140 conftest$ac_exeext conftest.$ac_ext
11143 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
11144 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
11146 $as_echo "6 or newer" >&6; }
11148 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
11150 LIBXTR6="-lSM -lICE"
11151 case "$opsys" in
11152 ## Use libw.a along with X11R6 Xt.
11153 unixware) LIBXTR6="$LIBXTR6 -lw" ;;
11154 esac
11155 else
11156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
11157 $as_echo "before 6" >&6; }
11160 OLDLIBS="$LIBS"
11161 if test x$HAVE_X11XTR6 = xyes; then
11162 LIBS="-lXt -lSM -lICE $LIBS"
11163 else
11164 LIBS="-lXt $LIBS"
11166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
11167 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
11168 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then :
11169 $as_echo_n "(cached) " >&6
11170 else
11171 ac_check_lib_save_LIBS=$LIBS
11172 LIBS="-lXmu $LIBS"
11173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11174 /* end confdefs.h. */
11176 /* Override any GCC internal prototype to avoid an error.
11177 Use char because int might match the return type of a GCC
11178 builtin and then its argument prototype would still apply. */
11179 #ifdef __cplusplus
11180 extern "C"
11181 #endif
11182 char XmuConvertStandardSelection ();
11184 main ()
11186 return XmuConvertStandardSelection ();
11188 return 0;
11190 _ACEOF
11191 if ac_fn_c_try_link "$LINENO"; then :
11192 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
11193 else
11194 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
11196 rm -f core conftest.err conftest.$ac_objext \
11197 conftest$ac_exeext conftest.$ac_ext
11198 LIBS=$ac_check_lib_save_LIBS
11200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
11201 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
11202 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x""yes; then :
11203 cat >>confdefs.h <<_ACEOF
11204 #define HAVE_LIBXMU 1
11205 _ACEOF
11207 LIBS="-lXmu $LIBS"
11211 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
11215 LIBXMU=-lXmu
11216 case $opsys in
11217 ## These systems don't supply Xmu.
11218 hpux* | aix4-2 )
11219 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU=
11221 esac
11224 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
11225 if test "${HAVE_X11}" = "yes"; then
11226 if test "${USE_X_TOOLKIT}" != "none"; then
11227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
11228 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
11229 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
11230 $as_echo_n "(cached) " >&6
11231 else
11232 ac_check_lib_save_LIBS=$LIBS
11233 LIBS="-lXext $LIBS"
11234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11235 /* end confdefs.h. */
11237 /* Override any GCC internal prototype to avoid an error.
11238 Use char because int might match the return type of a GCC
11239 builtin and then its argument prototype would still apply. */
11240 #ifdef __cplusplus
11241 extern "C"
11242 #endif
11243 char XShapeQueryExtension ();
11245 main ()
11247 return XShapeQueryExtension ();
11249 return 0;
11251 _ACEOF
11252 if ac_fn_c_try_link "$LINENO"; then :
11253 ac_cv_lib_Xext_XShapeQueryExtension=yes
11254 else
11255 ac_cv_lib_Xext_XShapeQueryExtension=no
11257 rm -f core conftest.err conftest.$ac_objext \
11258 conftest$ac_exeext conftest.$ac_ext
11259 LIBS=$ac_check_lib_save_LIBS
11261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
11262 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
11263 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then :
11264 cat >>confdefs.h <<_ACEOF
11265 #define HAVE_LIBXEXT 1
11266 _ACEOF
11268 LIBS="-lXext $LIBS"
11275 LIBXP=
11276 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif version 2.1" >&5
11278 $as_echo_n "checking for Motif version 2.1... " >&6; }
11279 if test "${emacs_cv_motif_version_2_1+set}" = set; then :
11280 $as_echo_n "(cached) " >&6
11281 else
11282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11283 /* end confdefs.h. */
11284 #include <Xm/Xm.h>
11286 main ()
11288 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
11289 int x = 5;
11290 #else
11291 Motif version prior to 2.1.
11292 #endif
11294 return 0;
11296 _ACEOF
11297 if ac_fn_c_try_compile "$LINENO"; then :
11298 emacs_cv_motif_version_2_1=yes
11299 else
11300 emacs_cv_motif_version_2_1=no
11302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
11305 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
11306 if test $emacs_cv_motif_version_2_1 = yes; then
11307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
11308 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
11309 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then :
11310 $as_echo_n "(cached) " >&6
11311 else
11312 ac_check_lib_save_LIBS=$LIBS
11313 LIBS="-lXp $LIBS"
11314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11315 /* end confdefs.h. */
11317 /* Override any GCC internal prototype to avoid an error.
11318 Use char because int might match the return type of a GCC
11319 builtin and then its argument prototype would still apply. */
11320 #ifdef __cplusplus
11321 extern "C"
11322 #endif
11323 char XpCreateContext ();
11325 main ()
11327 return XpCreateContext ();
11329 return 0;
11331 _ACEOF
11332 if ac_fn_c_try_link "$LINENO"; then :
11333 ac_cv_lib_Xp_XpCreateContext=yes
11334 else
11335 ac_cv_lib_Xp_XpCreateContext=no
11337 rm -f core conftest.err conftest.$ac_objext \
11338 conftest$ac_exeext conftest.$ac_ext
11339 LIBS=$ac_check_lib_save_LIBS
11341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
11342 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
11343 if test "x$ac_cv_lib_Xp_XpCreateContext" = x""yes; then :
11344 LIBXP=-lXp
11347 else
11348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
11349 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
11350 if test "${emacs_cv_lesstif+set}" = set; then :
11351 $as_echo_n "(cached) " >&6
11352 else
11353 # We put this in CFLAGS temporarily to precede other -I options
11354 # that might be in CFLAGS temporarily.
11355 # We put this in CPPFLAGS where it precedes the other -I options.
11356 OLD_CPPFLAGS=$CPPFLAGS
11357 OLD_CFLAGS=$CFLAGS
11358 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
11359 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
11360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11361 /* end confdefs.h. */
11362 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
11364 main ()
11366 int x = 5;
11368 return 0;
11370 _ACEOF
11371 if ac_fn_c_try_compile "$LINENO"; then :
11372 emacs_cv_lesstif=yes
11373 else
11374 emacs_cv_lesstif=no
11376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
11379 $as_echo "$emacs_cv_lesstif" >&6; }
11380 if test $emacs_cv_lesstif = yes; then
11381 # Make sure this -I option remains in CPPFLAGS after it is set
11382 # back to REAL_CPPFLAGS.
11383 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
11384 # have those other -I options anyway. Ultimately, having this
11385 # directory ultimately in CPPFLAGS will be enough.
11386 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
11387 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
11388 else
11389 CFLAGS=$OLD_CFLAGS
11390 CPPFLAGS=$OLD_CPPFLAGS
11393 ac_fn_c_check_header_mongrel "$LINENO" "Xm/BulletinB.h" "ac_cv_header_Xm_BulletinB_h" "$ac_includes_default"
11394 if test "x$ac_cv_header_Xm_BulletinB_h" = x""yes; then :
11396 else
11397 as_fn_error "Motif toolkit requested but requirements not found." "$LINENO" 5
11404 USE_TOOLKIT_SCROLL_BARS=no
11405 if test "${with_toolkit_scroll_bars}" != "no"; then
11406 if test "${USE_X_TOOLKIT}" != "none"; then
11407 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11408 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11410 HAVE_XAW3D=no
11411 USE_TOOLKIT_SCROLL_BARS=yes
11412 elif test "${HAVE_XAW3D}" = "yes" || test "${USE_X_TOOLKIT}" = "LUCID"; then
11413 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11415 USE_TOOLKIT_SCROLL_BARS=yes
11417 elif test "${HAVE_GTK}" = "yes"; then
11418 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11420 USE_TOOLKIT_SCROLL_BARS=yes
11421 elif test "${HAVE_NS}" = "yes"; then
11422 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11424 USE_TOOLKIT_SCROLL_BARS=yes
11428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11429 /* end confdefs.h. */
11431 #include <X11/Xlib.h>
11432 #include <X11/Xresource.h>
11434 main ()
11436 XIMProc callback;
11438 return 0;
11440 _ACEOF
11441 if ac_fn_c_try_compile "$LINENO"; then :
11442 HAVE_XIM=yes
11444 $as_echo "#define HAVE_XIM 1" >>confdefs.h
11446 else
11447 HAVE_XIM=no
11449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11452 if test "${with_xim}" != "no"; then
11454 $as_echo "#define USE_XIM 1" >>confdefs.h
11459 if test "${HAVE_XIM}" != "no"; then
11460 late_CFLAGS=$CFLAGS
11461 if test "$GCC" = yes; then
11462 CFLAGS="$CFLAGS --pedantic-errors"
11464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11465 /* end confdefs.h. */
11467 #include <X11/Xlib.h>
11468 #include <X11/Xresource.h>
11470 main ()
11472 Display *display;
11473 XrmDatabase db;
11474 char *res_name;
11475 char *res_class;
11476 XIMProc callback;
11477 XPointer *client_data;
11478 #ifndef __GNUC__
11479 /* If we're not using GCC, it's probably not XFree86, and this is
11480 probably right, but we can't use something like --pedantic-errors. */
11481 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
11482 char*, XIMProc, XPointer*);
11483 #endif
11484 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
11485 client_data);
11487 return 0;
11489 _ACEOF
11490 if ac_fn_c_try_compile "$LINENO"; then :
11491 emacs_cv_arg6_star=yes
11493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11494 if test "$emacs_cv_arg6_star" = yes; then
11495 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
11497 else
11498 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
11501 CFLAGS=$late_CFLAGS
11504 ### Start of font-backend (under any platform) section.
11505 # (nothing here yet -- this is a placeholder)
11506 ### End of font-backend (under any platform) section.
11508 ### Start of font-backend (under X11) section.
11509 if test "${HAVE_X11}" = "yes"; then
11511 succeeded=no
11513 if test "$PKG_CONFIG" = "no" ; then
11514 HAVE_FC=no
11515 else
11516 PKG_CONFIG_MIN_VERSION=0.9.0
11517 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
11519 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
11521 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5 &&
11522 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0" 2>&5` &&
11523 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0" 2>&5`; then
11524 edit_cflags="
11525 s,///*,/,g
11526 s/^/ /
11527 s/ -I/ $isystem/g
11528 s/^ //
11530 FONTCONFIG_CFLAGS=`$as_echo "$FONTCONFIG_CFLAGS" | sed -e "$edit_cflags"`
11531 FONTCONFIG_LIBS=`$as_echo "$FONTCONFIG_LIBS" | sed -e 's,///*,/,g'`
11532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$FONTCONFIG_CFLAGS' LIBS='$FONTCONFIG_LIBS'" >&5
11533 $as_echo "yes CFLAGS='$FONTCONFIG_CFLAGS' LIBS='$FONTCONFIG_LIBS'" >&6; }
11534 succeeded=yes
11535 else
11536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11537 $as_echo "no" >&6; }
11538 FONTCONFIG_CFLAGS=""
11539 FONTCONFIG_LIBS=""
11540 ## If we have a custom action on failure, don't print errors, but
11541 ## do set a variable so people can do so.
11542 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
11548 else
11549 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11550 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11554 if test $succeeded = yes; then
11555 HAVE_FC=yes
11556 else
11557 HAVE_FC=no
11561 ## Use -lXft if available, unless `--with-xft=no'.
11562 HAVE_XFT=maybe
11563 if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then
11564 with_xft="no";
11566 if test "x${with_xft}" != "xno"; then
11569 succeeded=no
11571 if test "$PKG_CONFIG" = "no" ; then
11572 HAVE_XFT=no
11573 else
11574 PKG_CONFIG_MIN_VERSION=0.9.0
11575 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
11577 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
11579 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5 &&
11580 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0" 2>&5` &&
11581 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0" 2>&5`; then
11582 edit_cflags="
11583 s,///*,/,g
11584 s/^/ /
11585 s/ -I/ $isystem/g
11586 s/^ //
11588 XFT_CFLAGS=`$as_echo "$XFT_CFLAGS" | sed -e "$edit_cflags"`
11589 XFT_LIBS=`$as_echo "$XFT_LIBS" | sed -e 's,///*,/,g'`
11590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$XFT_CFLAGS' LIBS='$XFT_LIBS'" >&5
11591 $as_echo "yes CFLAGS='$XFT_CFLAGS' LIBS='$XFT_LIBS'" >&6; }
11592 succeeded=yes
11593 else
11594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11595 $as_echo "no" >&6; }
11596 XFT_CFLAGS=""
11597 XFT_LIBS=""
11598 ## If we have a custom action on failure, don't print errors, but
11599 ## do set a variable so people can do so.
11600 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
11606 else
11607 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11608 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11612 if test $succeeded = yes; then
11614 else
11615 HAVE_XFT=no
11618 ## Because xftfont.c uses XRenderQueryExtension, we also
11619 ## need to link to -lXrender.
11620 HAVE_XRENDER=no
11621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
11622 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
11623 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
11624 $as_echo_n "(cached) " >&6
11625 else
11626 ac_check_lib_save_LIBS=$LIBS
11627 LIBS="-lXrender $LIBS"
11628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11629 /* end confdefs.h. */
11631 /* Override any GCC internal prototype to avoid an error.
11632 Use char because int might match the return type of a GCC
11633 builtin and then its argument prototype would still apply. */
11634 #ifdef __cplusplus
11635 extern "C"
11636 #endif
11637 char XRenderQueryExtension ();
11639 main ()
11641 return XRenderQueryExtension ();
11643 return 0;
11645 _ACEOF
11646 if ac_fn_c_try_link "$LINENO"; then :
11647 ac_cv_lib_Xrender_XRenderQueryExtension=yes
11648 else
11649 ac_cv_lib_Xrender_XRenderQueryExtension=no
11651 rm -f core conftest.err conftest.$ac_objext \
11652 conftest$ac_exeext conftest.$ac_ext
11653 LIBS=$ac_check_lib_save_LIBS
11655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
11656 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
11657 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x""yes; then :
11658 HAVE_XRENDER=yes
11661 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
11662 OLD_CPPFLAGS="$CPPFLAGS"
11663 OLD_CFLAGS="$CFLAGS"
11664 OLD_LIBS="$LIBS"
11665 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
11666 CFLAGS="$CFLAGS $XFT_CFLAGS"
11667 XFT_LIBS="-lXrender $XFT_LIBS"
11668 LIBS="$XFT_LIBS $LIBS"
11669 ac_fn_c_check_header_mongrel "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
11670 if test "x$ac_cv_header_X11_Xft_Xft_h" = x""yes; then :
11671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
11672 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
11673 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then :
11674 $as_echo_n "(cached) " >&6
11675 else
11676 ac_check_lib_save_LIBS=$LIBS
11677 LIBS="-lXft $XFT_LIBS $LIBS"
11678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11679 /* end confdefs.h. */
11681 /* Override any GCC internal prototype to avoid an error.
11682 Use char because int might match the return type of a GCC
11683 builtin and then its argument prototype would still apply. */
11684 #ifdef __cplusplus
11685 extern "C"
11686 #endif
11687 char XftFontOpen ();
11689 main ()
11691 return XftFontOpen ();
11693 return 0;
11695 _ACEOF
11696 if ac_fn_c_try_link "$LINENO"; then :
11697 ac_cv_lib_Xft_XftFontOpen=yes
11698 else
11699 ac_cv_lib_Xft_XftFontOpen=no
11701 rm -f core conftest.err conftest.$ac_objext \
11702 conftest$ac_exeext conftest.$ac_ext
11703 LIBS=$ac_check_lib_save_LIBS
11705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
11706 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
11707 if test "x$ac_cv_lib_Xft_XftFontOpen" = x""yes; then :
11708 HAVE_XFT=yes
11715 if test "${HAVE_XFT}" = "yes"; then
11717 $as_echo "#define HAVE_XFT 1" >>confdefs.h
11720 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
11721 else
11722 CPPFLAGS="$OLD_CPPFLAGS"
11723 CFLAGS="$OLD_CFLAGS"
11724 LIBS="$OLD_LIBS"
11725 fi # "${HAVE_XFT}" = "yes"
11726 fi # "$HAVE_XFT" != no
11727 fi # "x${with_xft}" != "xno"
11729 ## We used to allow building with FreeType and without Xft.
11730 ## However, the ftx font backend driver is not in good shape.
11731 if test "$HAVE_XFT" != "yes"; then
11732 HAVE_XFT=no
11733 HAVE_FREETYPE=no
11734 else
11736 succeeded=no
11738 if test "$PKG_CONFIG" = "no" ; then
11739 HAVE_FREETYPE=no
11740 else
11741 PKG_CONFIG_MIN_VERSION=0.9.0
11742 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype2" >&5
11744 $as_echo_n "checking for freetype2... " >&6; }
11746 if $PKG_CONFIG --exists "freetype2" 2>&5 &&
11747 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>&5` &&
11748 FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2" 2>&5`; then
11749 edit_cflags="
11750 s,///*,/,g
11751 s/^/ /
11752 s/ -I/ $isystem/g
11753 s/^ //
11755 FREETYPE_CFLAGS=`$as_echo "$FREETYPE_CFLAGS" | sed -e "$edit_cflags"`
11756 FREETYPE_LIBS=`$as_echo "$FREETYPE_LIBS" | sed -e 's,///*,/,g'`
11757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$FREETYPE_CFLAGS' LIBS='$FREETYPE_LIBS'" >&5
11758 $as_echo "yes CFLAGS='$FREETYPE_CFLAGS' LIBS='$FREETYPE_LIBS'" >&6; }
11759 succeeded=yes
11760 else
11761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11762 $as_echo "no" >&6; }
11763 FREETYPE_CFLAGS=""
11764 FREETYPE_LIBS=""
11765 ## If we have a custom action on failure, don't print errors, but
11766 ## do set a variable so people can do so.
11767 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
11773 else
11774 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11775 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11779 if test $succeeded = yes; then
11780 HAVE_FREETYPE=yes
11781 else
11782 HAVE_FREETYPE=no
11786 test "$HAVE_FREETYPE" = "no" && as_fn_error "libxft requires libfreetype" "$LINENO" 5
11789 HAVE_LIBOTF=no
11790 if test "${HAVE_FREETYPE}" = "yes"; then
11792 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
11794 if test "${with_libotf}" != "no"; then
11796 succeeded=no
11798 if test "$PKG_CONFIG" = "no" ; then
11799 HAVE_LIBOTF=no
11800 else
11801 PKG_CONFIG_MIN_VERSION=0.9.0
11802 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
11804 $as_echo_n "checking for libotf... " >&6; }
11806 if $PKG_CONFIG --exists "libotf" 2>&5 &&
11807 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf" 2>&5` &&
11808 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf" 2>&5`; then
11809 edit_cflags="
11810 s,///*,/,g
11811 s/^/ /
11812 s/ -I/ $isystem/g
11813 s/^ //
11815 LIBOTF_CFLAGS=`$as_echo "$LIBOTF_CFLAGS" | sed -e "$edit_cflags"`
11816 LIBOTF_LIBS=`$as_echo "$LIBOTF_LIBS" | sed -e 's,///*,/,g'`
11817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBOTF_CFLAGS' LIBS='$LIBOTF_LIBS'" >&5
11818 $as_echo "yes CFLAGS='$LIBOTF_CFLAGS' LIBS='$LIBOTF_LIBS'" >&6; }
11819 succeeded=yes
11820 else
11821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11822 $as_echo "no" >&6; }
11823 LIBOTF_CFLAGS=""
11824 LIBOTF_LIBS=""
11825 ## If we have a custom action on failure, don't print errors, but
11826 ## do set a variable so people can do so.
11827 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
11833 else
11834 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11835 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11839 if test $succeeded = yes; then
11840 HAVE_LIBOTF=yes
11841 else
11842 HAVE_LIBOTF=no
11845 if test "$HAVE_LIBOTF" = "yes"; then
11847 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
11849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
11850 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
11851 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then :
11852 $as_echo_n "(cached) " >&6
11853 else
11854 ac_check_lib_save_LIBS=$LIBS
11855 LIBS="-lotf $LIBS"
11856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11857 /* end confdefs.h. */
11859 /* Override any GCC internal prototype to avoid an error.
11860 Use char because int might match the return type of a GCC
11861 builtin and then its argument prototype would still apply. */
11862 #ifdef __cplusplus
11863 extern "C"
11864 #endif
11865 char OTF_get_variation_glyphs ();
11867 main ()
11869 return OTF_get_variation_glyphs ();
11871 return 0;
11873 _ACEOF
11874 if ac_fn_c_try_link "$LINENO"; then :
11875 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
11876 else
11877 ac_cv_lib_otf_OTF_get_variation_glyphs=no
11879 rm -f core conftest.err conftest.$ac_objext \
11880 conftest$ac_exeext conftest.$ac_ext
11881 LIBS=$ac_check_lib_save_LIBS
11883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
11884 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
11885 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x""yes; then :
11886 HAVE_OTF_GET_VARIATION_GLYPHS=yes
11887 else
11888 HAVE_OTF_GET_VARIATION_GLYPHS=no
11891 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
11893 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
11900 HAVE_M17N_FLT=no
11901 if test "${HAVE_LIBOTF}" = yes; then
11902 if test "${with_m17n_flt}" != "no"; then
11904 succeeded=no
11906 if test "$PKG_CONFIG" = "no" ; then
11907 HAVE_M17N_FLT=no
11908 else
11909 PKG_CONFIG_MIN_VERSION=0.9.0
11910 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
11912 $as_echo_n "checking for m17n-flt... " >&6; }
11914 if $PKG_CONFIG --exists "m17n-flt" 2>&5 &&
11915 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt" 2>&5` &&
11916 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt" 2>&5`; then
11917 edit_cflags="
11918 s,///*,/,g
11919 s/^/ /
11920 s/ -I/ $isystem/g
11921 s/^ //
11923 M17N_FLT_CFLAGS=`$as_echo "$M17N_FLT_CFLAGS" | sed -e "$edit_cflags"`
11924 M17N_FLT_LIBS=`$as_echo "$M17N_FLT_LIBS" | sed -e 's,///*,/,g'`
11925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$M17N_FLT_CFLAGS' LIBS='$M17N_FLT_LIBS'" >&5
11926 $as_echo "yes CFLAGS='$M17N_FLT_CFLAGS' LIBS='$M17N_FLT_LIBS'" >&6; }
11927 succeeded=yes
11928 else
11929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11930 $as_echo "no" >&6; }
11931 M17N_FLT_CFLAGS=""
11932 M17N_FLT_LIBS=""
11933 ## If we have a custom action on failure, don't print errors, but
11934 ## do set a variable so people can do so.
11935 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
11941 else
11942 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11943 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11947 if test $succeeded = yes; then
11948 HAVE_M17N_FLT=yes
11949 else
11950 HAVE_M17N_FLT=no
11953 if test "$HAVE_M17N_FLT" = "yes"; then
11955 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
11960 else
11961 HAVE_XFT=no
11962 HAVE_FREETYPE=no
11963 HAVE_LIBOTF=no
11964 HAVE_M17N_FLT=no
11967 ### End of font-backend (under X11) section.
11978 ### Use -lXpm if available, unless `--with-xpm=no'.
11979 HAVE_XPM=no
11980 LIBXPM=
11981 if test "${HAVE_X11}" = "yes"; then
11982 if test "${with_xpm}" != "no"; then
11983 ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
11984 if test "x$ac_cv_header_X11_xpm_h" = x""yes; then :
11985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
11986 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
11987 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then :
11988 $as_echo_n "(cached) " >&6
11989 else
11990 ac_check_lib_save_LIBS=$LIBS
11991 LIBS="-lXpm -lX11 $LIBS"
11992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11993 /* end confdefs.h. */
11995 /* Override any GCC internal prototype to avoid an error.
11996 Use char because int might match the return type of a GCC
11997 builtin and then its argument prototype would still apply. */
11998 #ifdef __cplusplus
11999 extern "C"
12000 #endif
12001 char XpmReadFileToPixmap ();
12003 main ()
12005 return XpmReadFileToPixmap ();
12007 return 0;
12009 _ACEOF
12010 if ac_fn_c_try_link "$LINENO"; then :
12011 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
12012 else
12013 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
12015 rm -f core conftest.err conftest.$ac_objext \
12016 conftest$ac_exeext conftest.$ac_ext
12017 LIBS=$ac_check_lib_save_LIBS
12019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
12020 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
12021 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x""yes; then :
12022 HAVE_XPM=yes
12028 if test "${HAVE_XPM}" = "yes"; then
12029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
12030 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
12031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12032 /* end confdefs.h. */
12033 #include "X11/xpm.h"
12034 #ifndef XpmReturnAllocPixels
12035 no_return_alloc_pixels
12036 #endif
12038 _ACEOF
12039 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12040 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then :
12041 HAVE_XPM=no
12042 else
12043 HAVE_XPM=yes
12045 rm -f conftest*
12048 if test "${HAVE_XPM}" = "yes"; then
12049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12050 $as_echo "yes" >&6; }
12051 else
12052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12053 $as_echo "no" >&6; }
12058 if test "${HAVE_XPM}" = "yes"; then
12060 $as_echo "#define HAVE_XPM 1" >>confdefs.h
12062 LIBXPM=-lXpm
12067 ### Use -ljpeg if available, unless `--with-jpeg=no'.
12068 HAVE_JPEG=no
12069 LIBJPEG=
12070 if test "${HAVE_X11}" = "yes"; then
12071 if test "${with_jpeg}" != "no"; then
12072 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
12073 if test "x$ac_cv_header_jerror_h" = x""yes; then :
12074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
12075 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
12076 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then :
12077 $as_echo_n "(cached) " >&6
12078 else
12079 ac_check_lib_save_LIBS=$LIBS
12080 LIBS="-ljpeg $LIBS"
12081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12082 /* end confdefs.h. */
12084 /* Override any GCC internal prototype to avoid an error.
12085 Use char because int might match the return type of a GCC
12086 builtin and then its argument prototype would still apply. */
12087 #ifdef __cplusplus
12088 extern "C"
12089 #endif
12090 char jpeg_destroy_compress ();
12092 main ()
12094 return jpeg_destroy_compress ();
12096 return 0;
12098 _ACEOF
12099 if ac_fn_c_try_link "$LINENO"; then :
12100 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
12101 else
12102 ac_cv_lib_jpeg_jpeg_destroy_compress=no
12104 rm -f core conftest.err conftest.$ac_objext \
12105 conftest$ac_exeext conftest.$ac_ext
12106 LIBS=$ac_check_lib_save_LIBS
12108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
12109 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
12110 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x""yes; then :
12111 HAVE_JPEG=yes
12119 if test "${HAVE_JPEG}" = "yes"; then
12120 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
12122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12123 /* end confdefs.h. */
12124 #include <jpeglib.h>
12125 version=JPEG_LIB_VERSION
12127 _ACEOF
12128 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12129 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then :
12130 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
12132 else
12133 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
12134 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
12135 HAVE_JPEG=no
12137 rm -f conftest*
12140 if test "${HAVE_JPEG}" = "yes"; then
12141 LIBJPEG=-ljpeg
12146 ### Use -lpng if available, unless `--with-png=no'.
12147 HAVE_PNG=no
12148 LIBPNG=
12149 if test "${HAVE_X11}" = "yes"; then
12150 if test "${with_png}" != "no"; then
12151 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
12152 # in /usr/include/libpng.
12153 for ac_header in png.h libpng/png.h
12154 do :
12155 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12156 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12157 eval as_val=\$$as_ac_Header
12158 if test "x$as_val" = x""yes; then :
12159 cat >>confdefs.h <<_ACEOF
12160 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12161 _ACEOF
12165 done
12167 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
12168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
12169 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
12170 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then :
12171 $as_echo_n "(cached) " >&6
12172 else
12173 ac_check_lib_save_LIBS=$LIBS
12174 LIBS="-lpng -lz -lm $LIBS"
12175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12176 /* end confdefs.h. */
12178 /* Override any GCC internal prototype to avoid an error.
12179 Use char because int might match the return type of a GCC
12180 builtin and then its argument prototype would still apply. */
12181 #ifdef __cplusplus
12182 extern "C"
12183 #endif
12184 char png_get_channels ();
12186 main ()
12188 return png_get_channels ();
12190 return 0;
12192 _ACEOF
12193 if ac_fn_c_try_link "$LINENO"; then :
12194 ac_cv_lib_png_png_get_channels=yes
12195 else
12196 ac_cv_lib_png_png_get_channels=no
12198 rm -f core conftest.err conftest.$ac_objext \
12199 conftest$ac_exeext conftest.$ac_ext
12200 LIBS=$ac_check_lib_save_LIBS
12202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
12203 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
12204 if test "x$ac_cv_lib_png_png_get_channels" = x""yes; then :
12205 HAVE_PNG=yes
12211 if test "${HAVE_PNG}" = "yes"; then
12213 $as_echo "#define HAVE_PNG 1" >>confdefs.h
12215 LIBPNG="-lpng -lz -lm"
12220 ### Use -ltiff if available, unless `--with-tiff=no'.
12221 HAVE_TIFF=no
12222 LIBTIFF=
12223 if test "${HAVE_X11}" = "yes"; then
12224 if test "${with_tiff}" != "no"; then
12225 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
12226 if test "x$ac_cv_header_tiffio_h" = x""yes; then :
12227 tifflibs="-lz -lm"
12228 # At least one tiff package requires the jpeg library.
12229 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
12230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
12231 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
12232 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then :
12233 $as_echo_n "(cached) " >&6
12234 else
12235 ac_check_lib_save_LIBS=$LIBS
12236 LIBS="-ltiff $tifflibs $LIBS"
12237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12238 /* end confdefs.h. */
12240 /* Override any GCC internal prototype to avoid an error.
12241 Use char because int might match the return type of a GCC
12242 builtin and then its argument prototype would still apply. */
12243 #ifdef __cplusplus
12244 extern "C"
12245 #endif
12246 char TIFFGetVersion ();
12248 main ()
12250 return TIFFGetVersion ();
12252 return 0;
12254 _ACEOF
12255 if ac_fn_c_try_link "$LINENO"; then :
12256 ac_cv_lib_tiff_TIFFGetVersion=yes
12257 else
12258 ac_cv_lib_tiff_TIFFGetVersion=no
12260 rm -f core conftest.err conftest.$ac_objext \
12261 conftest$ac_exeext conftest.$ac_ext
12262 LIBS=$ac_check_lib_save_LIBS
12264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
12265 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
12266 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x""yes; then :
12267 HAVE_TIFF=yes
12275 if test "${HAVE_TIFF}" = "yes"; then
12277 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
12279 LIBTIFF=-ltiff
12284 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
12285 HAVE_GIF=no
12286 LIBGIF=
12287 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
12288 ac_fn_c_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
12289 if test "x$ac_cv_header_gif_lib_h" = x""yes; then :
12290 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
12291 # Earlier versions can crash Emacs.
12292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
12293 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
12294 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then :
12295 $as_echo_n "(cached) " >&6
12296 else
12297 ac_check_lib_save_LIBS=$LIBS
12298 LIBS="-lgif $LIBS"
12299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12300 /* end confdefs.h. */
12302 /* Override any GCC internal prototype to avoid an error.
12303 Use char because int might match the return type of a GCC
12304 builtin and then its argument prototype would still apply. */
12305 #ifdef __cplusplus
12306 extern "C"
12307 #endif
12308 char EGifPutExtensionLast ();
12310 main ()
12312 return EGifPutExtensionLast ();
12314 return 0;
12316 _ACEOF
12317 if ac_fn_c_try_link "$LINENO"; then :
12318 ac_cv_lib_gif_EGifPutExtensionLast=yes
12319 else
12320 ac_cv_lib_gif_EGifPutExtensionLast=no
12322 rm -f core conftest.err conftest.$ac_objext \
12323 conftest$ac_exeext conftest.$ac_ext
12324 LIBS=$ac_check_lib_save_LIBS
12326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
12327 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
12328 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x""yes; then :
12329 HAVE_GIF=yes
12330 else
12331 HAVE_GIF=maybe
12338 if test "$HAVE_GIF" = yes; then
12339 LIBGIF=-lgif
12340 elif test "$HAVE_GIF" = maybe; then
12341 # If gif_lib.h but no libgif, try libungif.
12342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
12343 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
12344 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then :
12345 $as_echo_n "(cached) " >&6
12346 else
12347 ac_check_lib_save_LIBS=$LIBS
12348 LIBS="-lungif $LIBS"
12349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12350 /* end confdefs.h. */
12352 /* Override any GCC internal prototype to avoid an error.
12353 Use char because int might match the return type of a GCC
12354 builtin and then its argument prototype would still apply. */
12355 #ifdef __cplusplus
12356 extern "C"
12357 #endif
12358 char EGifPutExtensionLast ();
12360 main ()
12362 return EGifPutExtensionLast ();
12364 return 0;
12366 _ACEOF
12367 if ac_fn_c_try_link "$LINENO"; then :
12368 ac_cv_lib_ungif_EGifPutExtensionLast=yes
12369 else
12370 ac_cv_lib_ungif_EGifPutExtensionLast=no
12372 rm -f core conftest.err conftest.$ac_objext \
12373 conftest$ac_exeext conftest.$ac_ext
12374 LIBS=$ac_check_lib_save_LIBS
12376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
12377 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
12378 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x""yes; then :
12379 HAVE_GIF=yes
12380 else
12381 HAVE_GIF=no
12384 test "$HAVE_GIF" = yes && LIBGIF=-lungif
12387 if test "${HAVE_GIF}" = "yes"; then
12389 $as_echo "#define HAVE_GIF 1" >>confdefs.h
12395 if test "${HAVE_X11}" = "yes"; then
12396 MISSING=""
12397 WITH_NO=""
12398 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
12399 MISSING="libXpm" && WITH_NO="--with-xpm=no"
12400 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
12401 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
12402 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
12403 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
12404 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
12405 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
12406 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
12407 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
12409 if test "X${MISSING}" != X; then
12410 as_fn_error "The following required libraries were not found:
12411 $MISSING
12412 Maybe some development libraries/packages are missing?
12413 If you don't want to link with them give
12414 $WITH_NO
12415 as options to configure" "$LINENO" 5
12419 ### Use -lgpm if available, unless `--with-gpm=no'.
12420 HAVE_GPM=no
12421 LIBGPM=
12422 if test "${with_gpm}" != "no"; then
12423 ac_fn_c_check_header_mongrel "$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
12424 if test "x$ac_cv_header_gpm_h" = x""yes; then :
12425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
12426 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
12427 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then :
12428 $as_echo_n "(cached) " >&6
12429 else
12430 ac_check_lib_save_LIBS=$LIBS
12431 LIBS="-lgpm $LIBS"
12432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12433 /* end confdefs.h. */
12435 /* Override any GCC internal prototype to avoid an error.
12436 Use char because int might match the return type of a GCC
12437 builtin and then its argument prototype would still apply. */
12438 #ifdef __cplusplus
12439 extern "C"
12440 #endif
12441 char Gpm_Open ();
12443 main ()
12445 return Gpm_Open ();
12447 return 0;
12449 _ACEOF
12450 if ac_fn_c_try_link "$LINENO"; then :
12451 ac_cv_lib_gpm_Gpm_Open=yes
12452 else
12453 ac_cv_lib_gpm_Gpm_Open=no
12455 rm -f core conftest.err conftest.$ac_objext \
12456 conftest$ac_exeext conftest.$ac_ext
12457 LIBS=$ac_check_lib_save_LIBS
12459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
12460 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
12461 if test "x$ac_cv_lib_gpm_Gpm_Open" = x""yes; then :
12462 HAVE_GPM=yes
12469 if test "${HAVE_GPM}" = "yes"; then
12471 $as_echo "#define HAVE_GPM 1" >>confdefs.h
12473 LIBGPM=-lgpm
12482 GNUSTEP_CFLAGS=
12483 ### Use NeXTstep API to implement GUI.
12484 if test "${HAVE_NS}" = "yes"; then
12486 $as_echo "#define HAVE_NS 1" >>confdefs.h
12488 if test "${NS_IMPL_COCOA}" = "yes"; then
12490 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
12493 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
12495 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
12497 # See also .m.o rule in Makefile.in */
12498 # FIXME: are all these flags really needed? Document here why. */
12499 GNUSTEP_CFLAGS="-D_REENTRANT -fPIC -fno-strict-aliasing -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
12500 ## Extra CFLAGS applied to src/*.m files.
12501 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"
12503 # We also have mouse menus.
12504 HAVE_MENUS=yes
12505 OTHER_FILES=ns-app
12509 ### Use session management (-lSM -lICE) if available
12510 HAVE_X_SM=no
12511 LIBXSM=
12512 if test "${HAVE_X11}" = "yes"; then
12513 ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
12514 if test "x$ac_cv_header_X11_SM_SMlib_h" = x""yes; then :
12515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
12516 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
12517 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then :
12518 $as_echo_n "(cached) " >&6
12519 else
12520 ac_check_lib_save_LIBS=$LIBS
12521 LIBS="-lSM -lICE $LIBS"
12522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12523 /* end confdefs.h. */
12525 /* Override any GCC internal prototype to avoid an error.
12526 Use char because int might match the return type of a GCC
12527 builtin and then its argument prototype would still apply. */
12528 #ifdef __cplusplus
12529 extern "C"
12530 #endif
12531 char SmcOpenConnection ();
12533 main ()
12535 return SmcOpenConnection ();
12537 return 0;
12539 _ACEOF
12540 if ac_fn_c_try_link "$LINENO"; then :
12541 ac_cv_lib_SM_SmcOpenConnection=yes
12542 else
12543 ac_cv_lib_SM_SmcOpenConnection=no
12545 rm -f core conftest.err conftest.$ac_objext \
12546 conftest$ac_exeext conftest.$ac_ext
12547 LIBS=$ac_check_lib_save_LIBS
12549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
12550 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
12551 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x""yes; then :
12552 HAVE_X_SM=yes
12559 if test "${HAVE_X_SM}" = "yes"; then
12561 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
12563 LIBXSM="-lSM -lICE"
12564 case "$LIBS" in
12565 *-lSM*) ;;
12566 *) LIBS="$LIBXSM $LIBS" ;;
12567 esac
12572 ### Use libxml (-lxml2) if available
12573 HAVE_LIBXML2=no
12574 if test "${with_xml2}" != "no"; then
12575 ### I'm not sure what the version number should be, so I just guessed.
12577 succeeded=no
12579 if test "$PKG_CONFIG" = "no" ; then
12580 HAVE_LIBXML2=no
12581 else
12582 PKG_CONFIG_MIN_VERSION=0.9.0
12583 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.6.17" >&5
12585 $as_echo_n "checking for libxml-2.0 > 2.6.17... " >&6; }
12587 if $PKG_CONFIG --exists "libxml-2.0 > 2.6.17" 2>&5 &&
12588 LIBXML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 > 2.6.17" 2>&5` &&
12589 LIBXML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0 > 2.6.17" 2>&5`; then
12590 edit_cflags="
12591 s,///*,/,g
12592 s/^/ /
12593 s/ -I/ $isystem/g
12594 s/^ //
12596 LIBXML2_CFLAGS=`$as_echo "$LIBXML2_CFLAGS" | sed -e "$edit_cflags"`
12597 LIBXML2_LIBS=`$as_echo "$LIBXML2_LIBS" | sed -e 's,///*,/,g'`
12598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBXML2_CFLAGS' LIBS='$LIBXML2_LIBS'" >&5
12599 $as_echo "yes CFLAGS='$LIBXML2_CFLAGS' LIBS='$LIBXML2_LIBS'" >&6; }
12600 succeeded=yes
12601 else
12602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12603 $as_echo "no" >&6; }
12604 LIBXML2_CFLAGS=""
12605 LIBXML2_LIBS=""
12606 ## If we have a custom action on failure, don't print errors, but
12607 ## do set a variable so people can do so.
12608 LIBXML2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 > 2.6.17"`
12614 else
12615 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12616 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12620 if test $succeeded = yes; then
12621 HAVE_LIBXML2=yes
12622 else
12623 HAVE_LIBXML2=no
12626 if test "${HAVE_LIBXML2}" = "yes"; then
12627 LIBS="$LIBXML2_LIBS $LIBS"
12628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
12629 $as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
12630 if test "${ac_cv_lib_xml2_htmlReadMemory+set}" = set; then :
12631 $as_echo_n "(cached) " >&6
12632 else
12633 ac_check_lib_save_LIBS=$LIBS
12634 LIBS="-lxml2 $LIBS"
12635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12636 /* end confdefs.h. */
12638 /* Override any GCC internal prototype to avoid an error.
12639 Use char because int might match the return type of a GCC
12640 builtin and then its argument prototype would still apply. */
12641 #ifdef __cplusplus
12642 extern "C"
12643 #endif
12644 char htmlReadMemory ();
12646 main ()
12648 return htmlReadMemory ();
12650 return 0;
12652 _ACEOF
12653 if ac_fn_c_try_link "$LINENO"; then :
12654 ac_cv_lib_xml2_htmlReadMemory=yes
12655 else
12656 ac_cv_lib_xml2_htmlReadMemory=no
12658 rm -f core conftest.err conftest.$ac_objext \
12659 conftest$ac_exeext conftest.$ac_ext
12660 LIBS=$ac_check_lib_save_LIBS
12662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
12663 $as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
12664 if test "x$ac_cv_lib_xml2_htmlReadMemory" = x""yes; then :
12665 HAVE_LIBXML2=yes
12666 else
12667 HAVE_LIBXML2=no
12670 if test "${HAVE_LIBXML2}" = "yes"; then
12672 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
12674 else
12675 LIBXML2_LIBS=""
12676 LIBXML2_CFLAGS=""
12683 # If netdb.h doesn't declare h_errno, we must declare it by hand.
12684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
12685 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
12686 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then :
12687 $as_echo_n "(cached) " >&6
12688 else
12689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12690 /* end confdefs.h. */
12691 #include <netdb.h>
12693 main ()
12695 return h_errno;
12697 return 0;
12699 _ACEOF
12700 if ac_fn_c_try_link "$LINENO"; then :
12701 emacs_cv_netdb_declares_h_errno=yes
12702 else
12703 emacs_cv_netdb_declares_h_errno=no
12705 rm -f core conftest.err conftest.$ac_objext \
12706 conftest$ac_exeext conftest.$ac_ext
12708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
12709 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
12710 if test $emacs_cv_netdb_declares_h_errno = yes; then
12712 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
12716 # fmod, logb, and frexp are found in -lm on most systems.
12717 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
12718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
12719 $as_echo_n "checking for sqrt in -lm... " >&6; }
12720 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
12721 $as_echo_n "(cached) " >&6
12722 else
12723 ac_check_lib_save_LIBS=$LIBS
12724 LIBS="-lm $LIBS"
12725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12726 /* end confdefs.h. */
12728 /* Override any GCC internal prototype to avoid an error.
12729 Use char because int might match the return type of a GCC
12730 builtin and then its argument prototype would still apply. */
12731 #ifdef __cplusplus
12732 extern "C"
12733 #endif
12734 char sqrt ();
12736 main ()
12738 return sqrt ();
12740 return 0;
12742 _ACEOF
12743 if ac_fn_c_try_link "$LINENO"; then :
12744 ac_cv_lib_m_sqrt=yes
12745 else
12746 ac_cv_lib_m_sqrt=no
12748 rm -f core conftest.err conftest.$ac_objext \
12749 conftest$ac_exeext conftest.$ac_ext
12750 LIBS=$ac_check_lib_save_LIBS
12752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
12753 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
12754 if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
12755 cat >>confdefs.h <<_ACEOF
12756 #define HAVE_LIBM 1
12757 _ACEOF
12759 LIBS="-lm $LIBS"
12764 # Check for mail-locking functions in a "mail" library. Probably this should
12765 # have the same check as for liblockfile below.
12766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
12767 $as_echo_n "checking for maillock in -lmail... " >&6; }
12768 if test "${ac_cv_lib_mail_maillock+set}" = set; then :
12769 $as_echo_n "(cached) " >&6
12770 else
12771 ac_check_lib_save_LIBS=$LIBS
12772 LIBS="-lmail $LIBS"
12773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12774 /* end confdefs.h. */
12776 /* Override any GCC internal prototype to avoid an error.
12777 Use char because int might match the return type of a GCC
12778 builtin and then its argument prototype would still apply. */
12779 #ifdef __cplusplus
12780 extern "C"
12781 #endif
12782 char maillock ();
12784 main ()
12786 return maillock ();
12788 return 0;
12790 _ACEOF
12791 if ac_fn_c_try_link "$LINENO"; then :
12792 ac_cv_lib_mail_maillock=yes
12793 else
12794 ac_cv_lib_mail_maillock=no
12796 rm -f core conftest.err conftest.$ac_objext \
12797 conftest$ac_exeext conftest.$ac_ext
12798 LIBS=$ac_check_lib_save_LIBS
12800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
12801 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
12802 if test "x$ac_cv_lib_mail_maillock" = x""yes; then :
12803 have_mail=yes
12804 else
12805 have_mail=no
12808 if test $have_mail = yes; then
12809 LIBS_MAIL=-lmail
12810 LIBS="$LIBS_MAIL $LIBS"
12812 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
12814 else
12815 LIBS_MAIL=
12817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
12818 $as_echo_n "checking for maillock in -llockfile... " >&6; }
12819 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then :
12820 $as_echo_n "(cached) " >&6
12821 else
12822 ac_check_lib_save_LIBS=$LIBS
12823 LIBS="-llockfile $LIBS"
12824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12825 /* end confdefs.h. */
12827 /* Override any GCC internal prototype to avoid an error.
12828 Use char because int might match the return type of a GCC
12829 builtin and then its argument prototype would still apply. */
12830 #ifdef __cplusplus
12831 extern "C"
12832 #endif
12833 char maillock ();
12835 main ()
12837 return maillock ();
12839 return 0;
12841 _ACEOF
12842 if ac_fn_c_try_link "$LINENO"; then :
12843 ac_cv_lib_lockfile_maillock=yes
12844 else
12845 ac_cv_lib_lockfile_maillock=no
12847 rm -f core conftest.err conftest.$ac_objext \
12848 conftest$ac_exeext conftest.$ac_ext
12849 LIBS=$ac_check_lib_save_LIBS
12851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
12852 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
12853 if test "x$ac_cv_lib_lockfile_maillock" = x""yes; then :
12854 have_lockfile=yes
12855 else
12856 have_lockfile=no
12859 if test $have_lockfile = yes; then
12860 LIBS_MAIL=-llockfile
12861 LIBS="$LIBS_MAIL $LIBS"
12863 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
12865 else
12866 # If we have the shared liblockfile, assume we must use it for mail
12867 # locking (e.g. Debian). If we couldn't link against liblockfile
12868 # (no liblockfile.a installed), ensure that we don't need to.
12869 # Extract the first word of "liblockfile.so", so it can be a program name with args.
12870 set dummy liblockfile.so; ac_word=$2
12871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12872 $as_echo_n "checking for $ac_word... " >&6; }
12873 if test "${ac_cv_prog_liblockfile+set}" = set; then :
12874 $as_echo_n "(cached) " >&6
12875 else
12876 if test -n "$liblockfile"; then
12877 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
12878 else
12879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12880 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
12881 for as_dir in $as_dummy
12883 IFS=$as_save_IFS
12884 test -z "$as_dir" && as_dir=.
12885 for ac_exec_ext in '' $ac_executable_extensions; do
12886 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12887 ac_cv_prog_liblockfile="yes"
12888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12889 break 2
12891 done
12892 done
12893 IFS=$as_save_IFS
12895 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
12898 liblockfile=$ac_cv_prog_liblockfile
12899 if test -n "$liblockfile"; then
12900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
12901 $as_echo "$liblockfile" >&6; }
12902 else
12903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12904 $as_echo "no" >&6; }
12908 if test $ac_cv_prog_liblockfile = yes; then
12909 as_fn_error "Shared liblockfile found but can't link against it.
12910 This probably means that movemail could lose mail.
12911 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
12914 for ac_func in touchlock
12915 do :
12916 ac_fn_c_check_func "$LINENO" "touchlock" "ac_cv_func_touchlock"
12917 if test "x$ac_cv_func_touchlock" = x""yes; then :
12918 cat >>confdefs.h <<_ACEOF
12919 #define HAVE_TOUCHLOCK 1
12920 _ACEOF
12923 done
12930 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
12931 ## interlock access to the mail spool. The alternative is a lock file named
12932 ## /usr/spool/mail/$USER.lock.
12933 mail_lock=no
12934 case "$opsys" in
12935 aix4-2) mail_lock="lockf" ;;
12937 gnu|freebsd|netbsd|openbsd|darwin|irix6-5) mail_lock="flock" ;;
12939 ## On GNU/Linux systems, both methods are used by various mail programs.
12940 ## I assume most people are using newer mailers that have heard of flock.
12941 ## Change this if you need to.
12942 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
12943 ## configure gets the right answers, and that means *NOT* using flock.
12944 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
12945 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
12946 ## Debian maintainer hasn't provided a clean fix for Emacs.
12947 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
12948 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
12949 ## correct logic. -- fx
12950 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
12951 ## liblockfile is a Free Software replacement for libmail, used on
12952 ## Debian systems and elsewhere. -rfr.
12953 gnu-*)
12954 mail_lock="flock"
12955 if test $have_mail = yes || test $have_lockfile = yes; then
12956 test $ac_cv_header_maillock_h = yes && mail_lock=no
12959 esac
12961 BLESSMAIL_TARGET=
12962 case "$mail_lock" in
12963 flock)
12964 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
12967 lockf)
12968 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
12971 *) BLESSMAIL_TARGET="need-blessmail" ;;
12972 esac
12976 for ac_func in gethostname \
12977 rename closedir mkdir rmdir getrusage get_current_dir_name \
12978 random lrand48 logb frexp fmod rint cbrt setsid \
12979 strerror fpathconf select euidaccess getpagesize setlocale \
12980 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
12981 __fpending strsignal setitimer \
12982 sendto recvfrom getsockname getpeername \
12983 gai_strerror mkstemp getline getdelim fsync sync \
12984 difftime posix_memalign \
12985 getpwent endpwent getgrent endgrent \
12986 cfmakeraw cfsetspeed copysign __executable_start
12987 do :
12988 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12989 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12990 eval as_val=\$$as_ac_var
12991 if test "x$as_val" = x""yes; then :
12992 cat >>confdefs.h <<_ACEOF
12993 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12994 _ACEOF
12997 done
13000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unwind_init" >&5
13001 $as_echo_n "checking for __builtin_unwind_init... " >&6; }
13002 if test "${emacs_cv_func___builtin_unwind_init+set}" = set; then :
13003 $as_echo_n "(cached) " >&6
13004 else
13005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13006 /* end confdefs.h. */
13009 main ()
13011 __builtin_unwind_init ();
13013 return 0;
13015 _ACEOF
13016 if ac_fn_c_try_link "$LINENO"; then :
13017 emacs_cv_func___builtin_unwind_init=yes
13018 else
13019 emacs_cv_func___builtin_unwind_init=no
13021 rm -f core conftest.err conftest.$ac_objext \
13022 conftest$ac_exeext conftest.$ac_ext
13024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func___builtin_unwind_init" >&5
13025 $as_echo "$emacs_cv_func___builtin_unwind_init" >&6; }
13026 if test $emacs_cv_func___builtin_unwind_init = yes; then
13028 $as_echo "#define HAVE___BUILTIN_UNWIND_INIT 1" >>confdefs.h
13036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13037 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
13038 if test "${ac_cv_sys_largefile_source+set}" = set; then :
13039 $as_echo_n "(cached) " >&6
13040 else
13041 while :; do
13042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13043 /* end confdefs.h. */
13044 #include <sys/types.h> /* for off_t */
13045 #include <stdio.h>
13047 main ()
13049 int (*fp) (FILE *, off_t, int) = fseeko;
13050 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13052 return 0;
13054 _ACEOF
13055 if ac_fn_c_try_link "$LINENO"; then :
13056 ac_cv_sys_largefile_source=no; break
13058 rm -f core conftest.err conftest.$ac_objext \
13059 conftest$ac_exeext conftest.$ac_ext
13060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13061 /* end confdefs.h. */
13062 #define _LARGEFILE_SOURCE 1
13063 #include <sys/types.h> /* for off_t */
13064 #include <stdio.h>
13066 main ()
13068 int (*fp) (FILE *, off_t, int) = fseeko;
13069 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13071 return 0;
13073 _ACEOF
13074 if ac_fn_c_try_link "$LINENO"; then :
13075 ac_cv_sys_largefile_source=1; break
13077 rm -f core conftest.err conftest.$ac_objext \
13078 conftest$ac_exeext conftest.$ac_ext
13079 ac_cv_sys_largefile_source=unknown
13080 break
13081 done
13083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
13084 $as_echo "$ac_cv_sys_largefile_source" >&6; }
13085 case $ac_cv_sys_largefile_source in #(
13086 no | unknown) ;;
13088 cat >>confdefs.h <<_ACEOF
13089 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13090 _ACEOF
13092 esac
13093 rm -rf conftest*
13095 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13096 # in glibc 2.1.3, but that breaks too many other things.
13097 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13098 if test $ac_cv_sys_largefile_source != unknown; then
13100 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
13105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
13106 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
13107 if test "${ac_cv_func_getpgrp_void+set}" = set; then :
13108 $as_echo_n "(cached) " >&6
13109 else
13110 # Use it with a single arg.
13111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13112 /* end confdefs.h. */
13113 $ac_includes_default
13115 main ()
13117 getpgrp (0);
13119 return 0;
13121 _ACEOF
13122 if ac_fn_c_try_compile "$LINENO"; then :
13123 ac_cv_func_getpgrp_void=no
13124 else
13125 ac_cv_func_getpgrp_void=yes
13127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
13131 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
13132 if test $ac_cv_func_getpgrp_void = yes; then
13134 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
13139 # UNIX98 PTYs.
13140 for ac_func in grantpt
13141 do :
13142 ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt"
13143 if test "x$ac_cv_func_grantpt" = x""yes; then :
13144 cat >>confdefs.h <<_ACEOF
13145 #define HAVE_GRANTPT 1
13146 _ACEOF
13149 done
13152 # PTY-related GNU extensions.
13153 for ac_func in getpt
13154 do :
13155 ac_fn_c_check_func "$LINENO" "getpt" "ac_cv_func_getpt"
13156 if test "x$ac_cv_func_getpt" = x""yes; then :
13157 cat >>confdefs.h <<_ACEOF
13158 #define HAVE_GETPT 1
13159 _ACEOF
13162 done
13165 # Check this now, so that we will NOT find the above functions in ncurses.
13166 # That is because we have not set up to link ncurses in lib-src.
13167 # It's better to believe a function is not available
13168 # than to expect to find it in ncurses.
13169 # Also we need tputs and friends to be able to build at all.
13170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
13171 $as_echo_n "checking for library containing tputs... " >&6; }
13172 # Run a test program that contains a call to tputs, a call that is
13173 # never executed. This tests whether a pre-'main' dynamic linker
13174 # works with the library. It's too much trouble to actually call
13175 # tputs in the test program, due to portability hassles. When
13176 # cross-compiling, assume the test program will run if it links.
13178 # Maybe curses should be tried earlier?
13179 # See http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9736#35
13180 for tputs_library in '' tinfo ncurses terminfo termcap curses; do
13181 OLIBS=$LIBS
13182 if test -z "$tputs_library"; then
13183 LIBS_TERMCAP=
13184 msg='none required'
13185 else
13186 LIBS_TERMCAP=-l$tputs_library
13187 msg=$LIBS_TERMCAP
13188 LIBS="$LIBS_TERMCAP $LIBS"
13190 if test "$cross_compiling" = yes; then :
13191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13192 /* end confdefs.h. */
13194 extern void tputs (const char *, int, int (*)(int));
13195 int main (int argc, char **argv)
13197 if (argc == 10000)
13198 tputs (argv[0], 0, 0);
13199 return 0;
13202 _ACEOF
13203 if ac_fn_c_try_link "$LINENO"; then :
13205 else
13206 msg=no
13208 rm -f core conftest.err conftest.$ac_objext \
13209 conftest$ac_exeext conftest.$ac_ext
13210 else
13211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13212 /* end confdefs.h. */
13214 extern void tputs (const char *, int, int (*)(int));
13215 int main (int argc, char **argv)
13217 if (argc == 10000)
13218 tputs (argv[0], 0, 0);
13219 return 0;
13222 _ACEOF
13223 if ac_fn_c_try_run "$LINENO"; then :
13225 else
13226 msg=no
13228 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13229 conftest.$ac_objext conftest.beam conftest.$ac_ext
13232 LIBS=$OLIBS
13233 if test "X$msg" != Xno; then
13234 break
13236 done
13237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5
13238 $as_echo "$msg" >&6; }
13239 if test "X$msg" = Xno; then
13240 as_fn_error "The required function \`tputs' was not found in any library.
13241 The following libraries were tried (in order):
13242 libtinfo, libncurses, libterminfo, libtermcap, libcurses
13243 Please try installing whichever of these libraries is most appropriate
13244 for your system, together with its header files.
13245 For example, a libncurses-dev(el) or similar package." "$LINENO" 5
13248 ## Use termcap instead of terminfo?
13249 ## Only true for: freebsd < 40000, ms-w32, msdos, netbsd < 599002500.
13250 TERMINFO=yes
13251 ## FIXME? In the cases below where we unconditionally set
13252 ## LIBS_TERMCAP="-lncurses", this overrides LIBS_TERMCAP = -ltinfo,
13253 ## if that was found above to have tputs.
13254 ## Should we use the gnu* logic everywhere?
13255 case "$opsys" in
13256 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
13257 ## The ncurses library has been moved out of the System framework in
13258 ## Mac OS X 10.2. So if configure detects it, set the command-line
13259 ## option to use it.
13260 darwin) LIBS_TERMCAP="-lncurses" ;;
13262 gnu*) test -z "$LIBS_TERMCAP" && LIBS_TERMCAP="-lncurses" ;;
13264 freebsd)
13265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
13266 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
13267 if test "${emacs_cv_freebsd_terminfo+set}" = set; then :
13268 $as_echo_n "(cached) " >&6
13269 else
13270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13271 /* end confdefs.h. */
13272 #include <osreldate.h>
13274 main ()
13276 #if __FreeBSD_version < 400000
13277 fail;
13278 #endif
13281 return 0;
13283 _ACEOF
13284 if ac_fn_c_try_link "$LINENO"; then :
13285 emacs_cv_freebsd_terminfo=yes
13286 else
13287 emacs_cv_freebsd_terminfo=no
13289 rm -f core conftest.err conftest.$ac_objext \
13290 conftest$ac_exeext conftest.$ac_ext
13294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
13295 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
13297 if test $emacs_cv_freebsd_terminfo = yes; then
13298 LIBS_TERMCAP="-lncurses"
13299 else
13300 TERMINFO=no
13301 LIBS_TERMCAP="-ltermcap"
13305 netbsd)
13306 if test "x$LIBS_TERMCAP" != "x-lterminfo"; then
13307 TERMINFO=no
13308 LIBS_TERMCAP="-ltermcap"
13312 openbsd) LIBS_TERMCAP="-lncurses" ;;
13314 ## hpux: Make sure we get select from libc rather than from libcurses
13315 ## because libcurses on HPUX 10.10 has a broken version of select.
13316 ## We used to use -lc -lcurses, but this may be cleaner.
13317 ## FIXME? But TERMINFO = yes on hpux (it used to be explicitly
13318 # set that way, now it uses the default). Isn't this a contradiction?
13319 hpux*) LIBS_TERMCAP="-ltermcap" ;;
13321 esac
13323 TERMCAP_OBJ=tparam.o
13324 if test $TERMINFO = yes; then
13326 $as_echo "#define TERMINFO 1" >>confdefs.h
13328 TERMCAP_OBJ=terminfo.o
13334 # Do we have res_init, for detecting changes in /etc/resolv.conf?
13335 resolv=no
13336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13337 /* end confdefs.h. */
13338 #include <netinet/in.h>
13339 #include <arpa/nameser.h>
13340 #include <resolv.h>
13342 main ()
13344 return res_init();
13346 return 0;
13348 _ACEOF
13349 if ac_fn_c_try_link "$LINENO"; then :
13350 have_res_init=yes
13351 else
13352 have_res_init=no
13354 rm -f core conftest.err conftest.$ac_objext \
13355 conftest$ac_exeext conftest.$ac_ext
13356 if test "$have_res_init" = no; then
13357 OLIBS="$LIBS"
13358 LIBS="$LIBS -lresolv"
13359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
13360 $as_echo_n "checking for res_init with -lresolv... " >&6; }
13361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13362 /* end confdefs.h. */
13363 #include <netinet/in.h>
13364 #include <arpa/nameser.h>
13365 #include <resolv.h>
13367 main ()
13369 return res_init();
13371 return 0;
13373 _ACEOF
13374 if ac_fn_c_try_link "$LINENO"; then :
13375 have_res_init=yes
13376 else
13377 have_res_init=no
13379 rm -f core conftest.err conftest.$ac_objext \
13380 conftest$ac_exeext conftest.$ac_ext
13381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
13382 $as_echo "$have_res_init" >&6; }
13383 if test "$have_res_init" = yes ; then
13384 resolv=yes
13386 LIBS="$OLIBS"
13389 if test "$have_res_init" = yes; then
13391 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
13395 # Do we need the Hesiod library to provide the support routines?
13396 LIBHESIOD=
13397 if test "$with_hesiod" != no ; then
13398 # Don't set $LIBS here -- see comments above. FIXME which comments?
13399 ac_fn_c_check_func "$LINENO" "res_send" "ac_cv_func_res_send"
13400 if test "x$ac_cv_func_res_send" = x""yes; then :
13402 else
13403 ac_fn_c_check_func "$LINENO" "__res_send" "ac_cv_func___res_send"
13404 if test "x$ac_cv_func___res_send" = x""yes; then :
13406 else
13407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
13408 $as_echo_n "checking for res_send in -lresolv... " >&6; }
13409 if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
13410 $as_echo_n "(cached) " >&6
13411 else
13412 ac_check_lib_save_LIBS=$LIBS
13413 LIBS="-lresolv $LIBS"
13414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13415 /* end confdefs.h. */
13417 /* Override any GCC internal prototype to avoid an error.
13418 Use char because int might match the return type of a GCC
13419 builtin and then its argument prototype would still apply. */
13420 #ifdef __cplusplus
13421 extern "C"
13422 #endif
13423 char res_send ();
13425 main ()
13427 return res_send ();
13429 return 0;
13431 _ACEOF
13432 if ac_fn_c_try_link "$LINENO"; then :
13433 ac_cv_lib_resolv_res_send=yes
13434 else
13435 ac_cv_lib_resolv_res_send=no
13437 rm -f core conftest.err conftest.$ac_objext \
13438 conftest$ac_exeext conftest.$ac_ext
13439 LIBS=$ac_check_lib_save_LIBS
13441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
13442 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
13443 if test "x$ac_cv_lib_resolv_res_send" = x""yes; then :
13444 resolv=yes
13445 else
13446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
13447 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
13448 if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
13449 $as_echo_n "(cached) " >&6
13450 else
13451 ac_check_lib_save_LIBS=$LIBS
13452 LIBS="-lresolv $LIBS"
13453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13454 /* end confdefs.h. */
13456 /* Override any GCC internal prototype to avoid an error.
13457 Use char because int might match the return type of a GCC
13458 builtin and then its argument prototype would still apply. */
13459 #ifdef __cplusplus
13460 extern "C"
13461 #endif
13462 char __res_send ();
13464 main ()
13466 return __res_send ();
13468 return 0;
13470 _ACEOF
13471 if ac_fn_c_try_link "$LINENO"; then :
13472 ac_cv_lib_resolv___res_send=yes
13473 else
13474 ac_cv_lib_resolv___res_send=no
13476 rm -f core conftest.err conftest.$ac_objext \
13477 conftest$ac_exeext conftest.$ac_ext
13478 LIBS=$ac_check_lib_save_LIBS
13480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
13481 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
13482 if test "x$ac_cv_lib_resolv___res_send" = x""yes; then :
13483 resolv=yes
13492 if test "$resolv" = yes ; then
13493 RESOLVLIB=-lresolv
13494 else
13495 RESOLVLIB=
13497 ac_fn_c_check_func "$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
13498 if test "x$ac_cv_func_hes_getmailhost" = x""yes; then :
13500 else
13501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
13502 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
13503 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
13504 $as_echo_n "(cached) " >&6
13505 else
13506 ac_check_lib_save_LIBS=$LIBS
13507 LIBS="-lhesiod $RESOLVLIB $LIBS"
13508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13509 /* end confdefs.h. */
13511 /* Override any GCC internal prototype to avoid an error.
13512 Use char because int might match the return type of a GCC
13513 builtin and then its argument prototype would still apply. */
13514 #ifdef __cplusplus
13515 extern "C"
13516 #endif
13517 char hes_getmailhost ();
13519 main ()
13521 return hes_getmailhost ();
13523 return 0;
13525 _ACEOF
13526 if ac_fn_c_try_link "$LINENO"; then :
13527 ac_cv_lib_hesiod_hes_getmailhost=yes
13528 else
13529 ac_cv_lib_hesiod_hes_getmailhost=no
13531 rm -f core conftest.err conftest.$ac_objext \
13532 conftest$ac_exeext conftest.$ac_ext
13533 LIBS=$ac_check_lib_save_LIBS
13535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
13536 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
13537 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x""yes; then :
13538 hesiod=yes
13539 else
13546 if test x"$hesiod" = xyes; then
13548 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
13550 LIBHESIOD=-lhesiod
13555 # Do we need libresolv (due to res_init or Hesiod)?
13556 if test "$resolv" = yes ; then
13558 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
13560 LIBRESOLV=-lresolv
13561 else
13562 LIBRESOLV=
13566 # These tell us which Kerberos-related libraries to use.
13567 COM_ERRLIB=
13568 CRYPTOLIB=
13569 KRB5LIB=
13570 DESLIB=
13571 KRB4LIB=
13573 if test "${with_kerberos}" != no; then
13574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
13575 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
13576 if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
13577 $as_echo_n "(cached) " >&6
13578 else
13579 ac_check_lib_save_LIBS=$LIBS
13580 LIBS="-lcom_err $LIBS"
13581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13582 /* end confdefs.h. */
13584 /* Override any GCC internal prototype to avoid an error.
13585 Use char because int might match the return type of a GCC
13586 builtin and then its argument prototype would still apply. */
13587 #ifdef __cplusplus
13588 extern "C"
13589 #endif
13590 char com_err ();
13592 main ()
13594 return com_err ();
13596 return 0;
13598 _ACEOF
13599 if ac_fn_c_try_link "$LINENO"; then :
13600 ac_cv_lib_com_err_com_err=yes
13601 else
13602 ac_cv_lib_com_err_com_err=no
13604 rm -f core conftest.err conftest.$ac_objext \
13605 conftest$ac_exeext conftest.$ac_ext
13606 LIBS=$ac_check_lib_save_LIBS
13608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
13609 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
13610 if test "x$ac_cv_lib_com_err_com_err" = x""yes; then :
13611 have_com_err=yes
13612 else
13613 have_com_err=no
13616 if test $have_com_err = yes; then
13617 COM_ERRLIB=-lcom_err
13618 LIBS="$COM_ERRLIB $LIBS"
13620 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
13623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
13624 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
13625 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
13626 $as_echo_n "(cached) " >&6
13627 else
13628 ac_check_lib_save_LIBS=$LIBS
13629 LIBS="-lcrypto $LIBS"
13630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13631 /* end confdefs.h. */
13633 /* Override any GCC internal prototype to avoid an error.
13634 Use char because int might match the return type of a GCC
13635 builtin and then its argument prototype would still apply. */
13636 #ifdef __cplusplus
13637 extern "C"
13638 #endif
13639 char mit_des_cbc_encrypt ();
13641 main ()
13643 return mit_des_cbc_encrypt ();
13645 return 0;
13647 _ACEOF
13648 if ac_fn_c_try_link "$LINENO"; then :
13649 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
13650 else
13651 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
13653 rm -f core conftest.err conftest.$ac_objext \
13654 conftest$ac_exeext conftest.$ac_ext
13655 LIBS=$ac_check_lib_save_LIBS
13657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
13658 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
13659 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x""yes; then :
13660 have_crypto=yes
13661 else
13662 have_crypto=no
13665 if test $have_crypto = yes; then
13666 CRYPTOLIB=-lcrypto
13667 LIBS="$CRYPTOLIB $LIBS"
13669 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
13672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
13673 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
13674 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
13675 $as_echo_n "(cached) " >&6
13676 else
13677 ac_check_lib_save_LIBS=$LIBS
13678 LIBS="-lk5crypto $LIBS"
13679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13680 /* end confdefs.h. */
13682 /* Override any GCC internal prototype to avoid an error.
13683 Use char because int might match the return type of a GCC
13684 builtin and then its argument prototype would still apply. */
13685 #ifdef __cplusplus
13686 extern "C"
13687 #endif
13688 char mit_des_cbc_encrypt ();
13690 main ()
13692 return mit_des_cbc_encrypt ();
13694 return 0;
13696 _ACEOF
13697 if ac_fn_c_try_link "$LINENO"; then :
13698 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
13699 else
13700 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
13702 rm -f core conftest.err conftest.$ac_objext \
13703 conftest$ac_exeext conftest.$ac_ext
13704 LIBS=$ac_check_lib_save_LIBS
13706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
13707 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
13708 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x""yes; then :
13709 have_k5crypto=yes
13710 else
13711 have_k5crypto=no
13714 if test $have_k5crypto = yes; then
13715 CRYPTOLIB=-lk5crypto
13716 LIBS="$CRYPTOLIB $LIBS"
13718 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
13721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
13722 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
13723 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
13724 $as_echo_n "(cached) " >&6
13725 else
13726 ac_check_lib_save_LIBS=$LIBS
13727 LIBS="-lkrb5 $LIBS"
13728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13729 /* end confdefs.h. */
13731 /* Override any GCC internal prototype to avoid an error.
13732 Use char because int might match the return type of a GCC
13733 builtin and then its argument prototype would still apply. */
13734 #ifdef __cplusplus
13735 extern "C"
13736 #endif
13737 char krb5_init_context ();
13739 main ()
13741 return krb5_init_context ();
13743 return 0;
13745 _ACEOF
13746 if ac_fn_c_try_link "$LINENO"; then :
13747 ac_cv_lib_krb5_krb5_init_context=yes
13748 else
13749 ac_cv_lib_krb5_krb5_init_context=no
13751 rm -f core conftest.err conftest.$ac_objext \
13752 conftest$ac_exeext conftest.$ac_ext
13753 LIBS=$ac_check_lib_save_LIBS
13755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
13756 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
13757 if test "x$ac_cv_lib_krb5_krb5_init_context" = x""yes; then :
13758 have_krb5=yes
13759 else
13760 have_krb5=no
13763 if test $have_krb5=yes; then
13764 KRB5LIB=-lkrb5
13765 LIBS="$KRB5LIB $LIBS"
13767 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
13770 if test "${with_kerberos5}" = no; then
13771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
13772 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
13773 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
13774 $as_echo_n "(cached) " >&6
13775 else
13776 ac_check_lib_save_LIBS=$LIBS
13777 LIBS="-ldes425 $LIBS"
13778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13779 /* end confdefs.h. */
13781 /* Override any GCC internal prototype to avoid an error.
13782 Use char because int might match the return type of a GCC
13783 builtin and then its argument prototype would still apply. */
13784 #ifdef __cplusplus
13785 extern "C"
13786 #endif
13787 char des_cbc_encrypt ();
13789 main ()
13791 return des_cbc_encrypt ();
13793 return 0;
13795 _ACEOF
13796 if ac_fn_c_try_link "$LINENO"; then :
13797 ac_cv_lib_des425_des_cbc_encrypt=yes
13798 else
13799 ac_cv_lib_des425_des_cbc_encrypt=no
13801 rm -f core conftest.err conftest.$ac_objext \
13802 conftest$ac_exeext conftest.$ac_ext
13803 LIBS=$ac_check_lib_save_LIBS
13805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
13806 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
13807 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x""yes; then :
13808 have_des425=yes
13809 else
13810 have_des425=no
13813 if test $have_des425 = yes; then
13814 DESLIB=-ldes425
13815 LIBS="$DESLIB $LIBS"
13817 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
13819 else
13820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
13821 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
13822 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
13823 $as_echo_n "(cached) " >&6
13824 else
13825 ac_check_lib_save_LIBS=$LIBS
13826 LIBS="-ldes $LIBS"
13827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13828 /* end confdefs.h. */
13830 /* Override any GCC internal prototype to avoid an error.
13831 Use char because int might match the return type of a GCC
13832 builtin and then its argument prototype would still apply. */
13833 #ifdef __cplusplus
13834 extern "C"
13835 #endif
13836 char des_cbc_encrypt ();
13838 main ()
13840 return des_cbc_encrypt ();
13842 return 0;
13844 _ACEOF
13845 if ac_fn_c_try_link "$LINENO"; then :
13846 ac_cv_lib_des_des_cbc_encrypt=yes
13847 else
13848 ac_cv_lib_des_des_cbc_encrypt=no
13850 rm -f core conftest.err conftest.$ac_objext \
13851 conftest$ac_exeext conftest.$ac_ext
13852 LIBS=$ac_check_lib_save_LIBS
13854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
13855 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
13856 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x""yes; then :
13857 have_des=yes
13858 else
13859 have_des=no
13862 if test $have_des = yes; then
13863 DESLIB=-ldes
13864 LIBS="$DESLIB $LIBS"
13866 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
13870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
13871 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
13872 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
13873 $as_echo_n "(cached) " >&6
13874 else
13875 ac_check_lib_save_LIBS=$LIBS
13876 LIBS="-lkrb4 $LIBS"
13877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13878 /* end confdefs.h. */
13880 /* Override any GCC internal prototype to avoid an error.
13881 Use char because int might match the return type of a GCC
13882 builtin and then its argument prototype would still apply. */
13883 #ifdef __cplusplus
13884 extern "C"
13885 #endif
13886 char krb_get_cred ();
13888 main ()
13890 return krb_get_cred ();
13892 return 0;
13894 _ACEOF
13895 if ac_fn_c_try_link "$LINENO"; then :
13896 ac_cv_lib_krb4_krb_get_cred=yes
13897 else
13898 ac_cv_lib_krb4_krb_get_cred=no
13900 rm -f core conftest.err conftest.$ac_objext \
13901 conftest$ac_exeext conftest.$ac_ext
13902 LIBS=$ac_check_lib_save_LIBS
13904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
13905 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
13906 if test "x$ac_cv_lib_krb4_krb_get_cred" = x""yes; then :
13907 have_krb4=yes
13908 else
13909 have_krb4=no
13912 if test $have_krb4 = yes; then
13913 KRB4LIB=-lkrb4
13914 LIBS="$KRB4LIB $LIBS"
13916 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
13918 else
13919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
13920 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
13921 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
13922 $as_echo_n "(cached) " >&6
13923 else
13924 ac_check_lib_save_LIBS=$LIBS
13925 LIBS="-lkrb $LIBS"
13926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13927 /* end confdefs.h. */
13929 /* Override any GCC internal prototype to avoid an error.
13930 Use char because int might match the return type of a GCC
13931 builtin and then its argument prototype would still apply. */
13932 #ifdef __cplusplus
13933 extern "C"
13934 #endif
13935 char krb_get_cred ();
13937 main ()
13939 return krb_get_cred ();
13941 return 0;
13943 _ACEOF
13944 if ac_fn_c_try_link "$LINENO"; then :
13945 ac_cv_lib_krb_krb_get_cred=yes
13946 else
13947 ac_cv_lib_krb_krb_get_cred=no
13949 rm -f core conftest.err conftest.$ac_objext \
13950 conftest$ac_exeext conftest.$ac_ext
13951 LIBS=$ac_check_lib_save_LIBS
13953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
13954 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
13955 if test "x$ac_cv_lib_krb_krb_get_cred" = x""yes; then :
13956 have_krb=yes
13957 else
13958 have_krb=no
13961 if test $have_krb = yes; then
13962 KRB4LIB=-lkrb
13963 LIBS="$KRB4LIB $LIBS"
13965 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
13971 if test "${with_kerberos5}" != no; then
13972 for ac_header in krb5.h
13973 do :
13974 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
13975 if test "x$ac_cv_header_krb5_h" = x""yes; then :
13976 cat >>confdefs.h <<_ACEOF
13977 #define HAVE_KRB5_H 1
13978 _ACEOF
13979 ac_fn_c_check_member "$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
13981 if test "x$ac_cv_member_krb5_error_text" = x""yes; then :
13983 cat >>confdefs.h <<_ACEOF
13984 #define HAVE_KRB5_ERROR_TEXT 1
13985 _ACEOF
13989 ac_fn_c_check_member "$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
13991 if test "x$ac_cv_member_krb5_error_e_text" = x""yes; then :
13993 cat >>confdefs.h <<_ACEOF
13994 #define HAVE_KRB5_ERROR_E_TEXT 1
13995 _ACEOF
14002 done
14004 else
14005 for ac_header in des.h
14006 do :
14007 ac_fn_c_check_header_mongrel "$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
14008 if test "x$ac_cv_header_des_h" = x""yes; then :
14009 cat >>confdefs.h <<_ACEOF
14010 #define HAVE_DES_H 1
14011 _ACEOF
14013 else
14014 for ac_header in kerberosIV/des.h
14015 do :
14016 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
14017 if test "x$ac_cv_header_kerberosIV_des_h" = x""yes; then :
14018 cat >>confdefs.h <<_ACEOF
14019 #define HAVE_KERBEROSIV_DES_H 1
14020 _ACEOF
14022 else
14023 for ac_header in kerberos/des.h
14024 do :
14025 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
14026 if test "x$ac_cv_header_kerberos_des_h" = x""yes; then :
14027 cat >>confdefs.h <<_ACEOF
14028 #define HAVE_KERBEROS_DES_H 1
14029 _ACEOF
14033 done
14037 done
14041 done
14043 for ac_header in krb.h
14044 do :
14045 ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
14046 if test "x$ac_cv_header_krb_h" = x""yes; then :
14047 cat >>confdefs.h <<_ACEOF
14048 #define HAVE_KRB_H 1
14049 _ACEOF
14051 else
14052 for ac_header in kerberosIV/krb.h
14053 do :
14054 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
14055 if test "x$ac_cv_header_kerberosIV_krb_h" = x""yes; then :
14056 cat >>confdefs.h <<_ACEOF
14057 #define HAVE_KERBEROSIV_KRB_H 1
14058 _ACEOF
14060 else
14061 for ac_header in kerberos/krb.h
14062 do :
14063 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
14064 if test "x$ac_cv_header_kerberos_krb_h" = x""yes; then :
14065 cat >>confdefs.h <<_ACEOF
14066 #define HAVE_KERBEROS_KRB_H 1
14067 _ACEOF
14071 done
14075 done
14079 done
14082 for ac_header in com_err.h
14083 do :
14084 ac_fn_c_check_header_mongrel "$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
14085 if test "x$ac_cv_header_com_err_h" = x""yes; then :
14086 cat >>confdefs.h <<_ACEOF
14087 #define HAVE_COM_ERR_H 1
14088 _ACEOF
14092 done
14105 for ac_func in $ac_func_list
14106 do :
14107 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14108 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14109 eval as_val=\$$as_ac_var
14110 if test "x$as_val" = x""yes; then :
14111 cat >>confdefs.h <<_ACEOF
14112 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14113 _ACEOF
14116 done
14121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
14122 $as_echo_n "checking whether localtime caches TZ... " >&6; }
14123 if test "${emacs_cv_localtime_cache+set}" = set; then :
14124 $as_echo_n "(cached) " >&6
14125 else
14126 if test x$ac_cv_func_tzset = xyes; then
14127 if test "$cross_compiling" = yes; then :
14128 # If we have tzset, assume the worst when cross-compiling.
14129 emacs_cv_localtime_cache=yes
14130 else
14131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14132 /* end confdefs.h. */
14133 #include <time.h>
14134 char TZ_GMT0[] = "TZ=GMT0";
14135 char TZ_PST8[] = "TZ=PST8";
14136 main()
14138 time_t now = time ((time_t *) 0);
14139 int hour_GMT0, hour_unset;
14140 if (putenv (TZ_GMT0) != 0)
14141 exit (1);
14142 hour_GMT0 = localtime (&now)->tm_hour;
14143 unsetenv("TZ");
14144 hour_unset = localtime (&now)->tm_hour;
14145 if (putenv (TZ_PST8) != 0)
14146 exit (1);
14147 if (localtime (&now)->tm_hour == hour_GMT0)
14148 exit (1);
14149 unsetenv("TZ");
14150 if (localtime (&now)->tm_hour != hour_unset)
14151 exit (1);
14152 exit (0);
14154 _ACEOF
14155 if ac_fn_c_try_run "$LINENO"; then :
14156 emacs_cv_localtime_cache=no
14157 else
14158 emacs_cv_localtime_cache=yes
14160 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14161 conftest.$ac_objext conftest.beam conftest.$ac_ext
14164 else
14165 # If we lack tzset, report that localtime does not cache TZ,
14166 # since we can't invalidate the cache if we don't have tzset.
14167 emacs_cv_localtime_cache=no
14170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
14171 $as_echo "$emacs_cv_localtime_cache" >&6; }
14172 if test $emacs_cv_localtime_cache = yes; then
14174 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
14178 if test "x$HAVE_TIMEVAL" = xyes; then
14179 for ac_func in gettimeofday
14180 do :
14181 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
14182 if test "x$ac_cv_func_gettimeofday" = x""yes; then :
14183 cat >>confdefs.h <<_ACEOF
14184 #define HAVE_GETTIMEOFDAY 1
14185 _ACEOF
14188 done
14190 if test $ac_cv_func_gettimeofday = yes; then
14191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday can accept two arguments" >&5
14192 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
14193 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then :
14194 $as_echo_n "(cached) " >&6
14195 else
14196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14197 /* end confdefs.h. */
14199 #ifdef TIME_WITH_SYS_TIME
14200 #include <sys/time.h>
14201 #include <time.h>
14202 #else
14203 #ifdef HAVE_SYS_TIME_H
14204 #include <sys/time.h>
14205 #else
14206 #include <time.h>
14207 #endif
14208 #endif
14210 main ()
14212 struct timeval time;
14213 gettimeofday (&time, 0);
14215 return 0;
14217 _ACEOF
14218 if ac_fn_c_try_compile "$LINENO"; then :
14219 emacs_cv_gettimeofday_two_arguments=yes
14220 else
14221 emacs_cv_gettimeofday_two_arguments=no
14223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_gettimeofday_two_arguments" >&5
14226 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
14227 if test $emacs_cv_gettimeofday_two_arguments = no; then
14229 $as_echo "#define GETTIMEOFDAY_ONE_ARGUMENT 1" >>confdefs.h
14235 ok_so_far=yes
14236 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
14237 if test "x$ac_cv_func_socket" = x""yes; then :
14239 else
14240 ok_so_far=no
14243 if test $ok_so_far = yes; then
14244 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
14245 if test "x$ac_cv_header_netinet_in_h" = x""yes; then :
14247 else
14248 ok_so_far=no
14253 if test $ok_so_far = yes; then
14254 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
14255 if test "x$ac_cv_header_arpa_inet_h" = x""yes; then :
14257 else
14258 ok_so_far=no
14263 if test $ok_so_far = yes; then
14265 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
14269 if test -f /usr/lpp/X11/bin/smt.exp; then
14271 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
14275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
14276 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
14277 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
14278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14279 $as_echo "yes" >&6; }
14281 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
14283 else
14284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14285 $as_echo "no" >&6; }
14288 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
14289 if test "x$ac_cv_type_pid_t" = x""yes; then :
14291 else
14293 cat >>confdefs.h <<_ACEOF
14294 #define pid_t int
14295 _ACEOF
14299 for ac_header in vfork.h
14300 do :
14301 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
14302 if test "x$ac_cv_header_vfork_h" = x""yes; then :
14303 cat >>confdefs.h <<_ACEOF
14304 #define HAVE_VFORK_H 1
14305 _ACEOF
14309 done
14311 for ac_func in fork vfork
14312 do :
14313 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14314 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14315 eval as_val=\$$as_ac_var
14316 if test "x$as_val" = x""yes; then :
14317 cat >>confdefs.h <<_ACEOF
14318 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14319 _ACEOF
14322 done
14324 if test "x$ac_cv_func_fork" = xyes; then
14325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
14326 $as_echo_n "checking for working fork... " >&6; }
14327 if test "${ac_cv_func_fork_works+set}" = set; then :
14328 $as_echo_n "(cached) " >&6
14329 else
14330 if test "$cross_compiling" = yes; then :
14331 ac_cv_func_fork_works=cross
14332 else
14333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14334 /* end confdefs.h. */
14335 $ac_includes_default
14337 main ()
14340 /* By Ruediger Kuhlmann. */
14341 return fork () < 0;
14344 return 0;
14346 _ACEOF
14347 if ac_fn_c_try_run "$LINENO"; then :
14348 ac_cv_func_fork_works=yes
14349 else
14350 ac_cv_func_fork_works=no
14352 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14353 conftest.$ac_objext conftest.beam conftest.$ac_ext
14357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
14358 $as_echo "$ac_cv_func_fork_works" >&6; }
14360 else
14361 ac_cv_func_fork_works=$ac_cv_func_fork
14363 if test "x$ac_cv_func_fork_works" = xcross; then
14364 case $host in
14365 *-*-amigaos* | *-*-msdosdjgpp*)
14366 # Override, as these systems have only a dummy fork() stub
14367 ac_cv_func_fork_works=no
14370 ac_cv_func_fork_works=yes
14372 esac
14373 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
14374 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
14376 ac_cv_func_vfork_works=$ac_cv_func_vfork
14377 if test "x$ac_cv_func_vfork" = xyes; then
14378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
14379 $as_echo_n "checking for working vfork... " >&6; }
14380 if test "${ac_cv_func_vfork_works+set}" = set; then :
14381 $as_echo_n "(cached) " >&6
14382 else
14383 if test "$cross_compiling" = yes; then :
14384 ac_cv_func_vfork_works=cross
14385 else
14386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14387 /* end confdefs.h. */
14388 /* Thanks to Paul Eggert for this test. */
14389 $ac_includes_default
14390 #include <sys/wait.h>
14391 #ifdef HAVE_VFORK_H
14392 # include <vfork.h>
14393 #endif
14394 /* On some sparc systems, changes by the child to local and incoming
14395 argument registers are propagated back to the parent. The compiler
14396 is told about this with #include <vfork.h>, but some compilers
14397 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
14398 static variable whose address is put into a register that is
14399 clobbered by the vfork. */
14400 static void
14401 #ifdef __cplusplus
14402 sparc_address_test (int arg)
14403 # else
14404 sparc_address_test (arg) int arg;
14405 #endif
14407 static pid_t child;
14408 if (!child) {
14409 child = vfork ();
14410 if (child < 0) {
14411 perror ("vfork");
14412 _exit(2);
14414 if (!child) {
14415 arg = getpid();
14416 write(-1, "", 0);
14417 _exit (arg);
14423 main ()
14425 pid_t parent = getpid ();
14426 pid_t child;
14428 sparc_address_test (0);
14430 child = vfork ();
14432 if (child == 0) {
14433 /* Here is another test for sparc vfork register problems. This
14434 test uses lots of local variables, at least as many local
14435 variables as main has allocated so far including compiler
14436 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
14437 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
14438 reuse the register of parent for one of the local variables,
14439 since it will think that parent can't possibly be used any more
14440 in this routine. Assigning to the local variable will thus
14441 munge parent in the parent process. */
14442 pid_t
14443 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
14444 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
14445 /* Convince the compiler that p..p7 are live; otherwise, it might
14446 use the same hardware register for all 8 local variables. */
14447 if (p != p1 || p != p2 || p != p3 || p != p4
14448 || p != p5 || p != p6 || p != p7)
14449 _exit(1);
14451 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
14452 from child file descriptors. If the child closes a descriptor
14453 before it execs or exits, this munges the parent's descriptor
14454 as well. Test for this by closing stdout in the child. */
14455 _exit(close(fileno(stdout)) != 0);
14456 } else {
14457 int status;
14458 struct stat st;
14460 while (wait(&status) != child)
14462 return (
14463 /* Was there some problem with vforking? */
14464 child < 0
14466 /* Did the child fail? (This shouldn't happen.) */
14467 || status
14469 /* Did the vfork/compiler bug occur? */
14470 || parent != getpid()
14472 /* Did the file descriptor bug occur? */
14473 || fstat(fileno(stdout), &st) != 0
14477 _ACEOF
14478 if ac_fn_c_try_run "$LINENO"; then :
14479 ac_cv_func_vfork_works=yes
14480 else
14481 ac_cv_func_vfork_works=no
14483 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14484 conftest.$ac_objext conftest.beam conftest.$ac_ext
14488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
14489 $as_echo "$ac_cv_func_vfork_works" >&6; }
14492 if test "x$ac_cv_func_fork_works" = xcross; then
14493 ac_cv_func_vfork_works=$ac_cv_func_vfork
14494 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
14495 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
14498 if test "x$ac_cv_func_vfork_works" = xyes; then
14500 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
14502 else
14504 $as_echo "#define vfork fork" >>confdefs.h
14507 if test "x$ac_cv_func_fork_works" = xyes; then
14509 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
14514 for ac_func in snprintf
14515 do :
14516 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
14517 if test "x$ac_cv_func_snprintf" = x""yes; then :
14518 cat >>confdefs.h <<_ACEOF
14519 #define HAVE_SNPRINTF 1
14520 _ACEOF
14523 done
14526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
14527 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
14528 if test "${emacs_cv_langinfo_codeset+set}" = set; then :
14529 $as_echo_n "(cached) " >&6
14530 else
14531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14532 /* end confdefs.h. */
14533 #include <langinfo.h>
14535 main ()
14537 char* cs = nl_langinfo(CODESET);
14539 return 0;
14541 _ACEOF
14542 if ac_fn_c_try_link "$LINENO"; then :
14543 emacs_cv_langinfo_codeset=yes
14544 else
14545 emacs_cv_langinfo_codeset=no
14547 rm -f core conftest.err conftest.$ac_objext \
14548 conftest$ac_exeext conftest.$ac_ext
14551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
14552 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
14553 if test $emacs_cv_langinfo_codeset = yes; then
14555 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
14559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
14560 $as_echo_n "checking for mbstate_t... " >&6; }
14561 if test "${ac_cv_type_mbstate_t+set}" = set; then :
14562 $as_echo_n "(cached) " >&6
14563 else
14564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14565 /* end confdefs.h. */
14566 $ac_includes_default
14567 # include <wchar.h>
14569 main ()
14571 mbstate_t x; return sizeof x;
14573 return 0;
14575 _ACEOF
14576 if ac_fn_c_try_compile "$LINENO"; then :
14577 ac_cv_type_mbstate_t=yes
14578 else
14579 ac_cv_type_mbstate_t=no
14581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
14584 $as_echo "$ac_cv_type_mbstate_t" >&6; }
14585 if test $ac_cv_type_mbstate_t = yes; then
14587 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
14589 else
14591 $as_echo "#define mbstate_t int" >>confdefs.h
14595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
14596 $as_echo_n "checking for C restricted array declarations... " >&6; }
14597 if test "${emacs_cv_c_restrict_arr+set}" = set; then :
14598 $as_echo_n "(cached) " >&6
14599 else
14600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14601 /* end confdefs.h. */
14602 void fred (int x[__restrict]);
14604 main ()
14608 return 0;
14610 _ACEOF
14611 if ac_fn_c_try_compile "$LINENO"; then :
14612 emacs_cv_c_restrict_arr=yes
14613 else
14614 emacs_cv_c_restrict_arr=no
14616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
14619 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
14620 if test "$emacs_cv_c_restrict_arr" = yes; then
14622 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
14627 # Set up the CFLAGS for real compilation, so we can substitute it.
14628 CFLAGS="$REAL_CFLAGS"
14629 CPPFLAGS="$REAL_CPPFLAGS"
14631 ## Hack to detect a buggy GCC version.
14632 if test "x$GCC" = xyes \
14633 && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
14634 && test x"`echo $CFLAGS | grep '\-O[23]'`" != x \
14635 && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then
14636 as_fn_error "GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
14639 version=$PACKAGE_VERSION
14641 ### Specify what sort of things we'll be editing into Makefile and config.h.
14642 ### Use configuration here uncanonicalized to avoid exceeding size limits.
14645 ## Unused?
14667 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
14668 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
14669 ## end of LIBX_BASE, but nothing ever set it.
14674 ## Used in lwlib/Makefile.in.
14676 S_FILE="\$(srcdir)/${opsysfile}"
14686 cat >>confdefs.h <<_ACEOF
14687 #define EMACS_CONFIGURATION "${canonical}"
14688 _ACEOF
14691 cat >>confdefs.h <<_ACEOF
14692 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
14693 _ACEOF
14696 cat >>confdefs.h <<_ACEOF
14697 #define config_opsysfile "${opsysfile}"
14698 _ACEOF
14701 XMENU_OBJ=
14702 XOBJ=
14703 FONT_OBJ=
14704 if test "${HAVE_X_WINDOWS}" = "yes" ; then
14706 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
14708 XMENU_OBJ=xmenu.o
14709 XOBJ="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
14710 FONT_OBJ=xfont.o
14711 if test "$HAVE_XFT" = "yes"; then
14712 FONT_OBJ="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
14713 elif test "$HAVE_FREETYPE" = "yes"; then
14714 FONT_OBJ="$FONT_OBJ ftfont.o ftxfont.o"
14722 WIDGET_OBJ=
14723 MOTIF_LIBW=
14724 if test "${USE_X_TOOLKIT}" != "none" ; then
14725 WIDGET_OBJ=widget.o
14727 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
14729 if test "${USE_X_TOOLKIT}" = "LUCID"; then
14731 $as_echo "#define USE_LUCID 1" >>confdefs.h
14733 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
14735 $as_echo "#define USE_MOTIF 1" >>confdefs.h
14737 MOTIF_LIBW=-lXm
14738 case "$opsys" in
14739 gnu-linux)
14740 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
14741 MOTIF_LIBW="$MOTIF_LIBW -lXpm"
14744 unixware)
14745 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
14746 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
14747 MOTIF_LIBW="MOTIF_LIBW -lXimp"
14750 aix4-2)
14751 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
14752 MOTIF_LIBW="$MOTIF_LIBW -li18n"
14754 esac
14755 MOTIF_LIBW="$MOTIF_LIBW $LIBXP"
14760 TOOLKIT_LIBW=
14761 case "$USE_X_TOOLKIT" in
14762 MOTIF) TOOLKIT_LIBW="$MOTIF_LIBW" ;;
14763 LUCID) TOOLKIT_LIBW="$LUCID_LIBW" ;;
14764 none) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW="$GTK_LIBS" ;;
14765 esac
14768 if test "$USE_X_TOOLKIT" = "none"; then
14769 LIBXT_OTHER="\$(LIBXSM)"
14770 OLDXMENU_TARGET="really-oldXMenu"
14771 else
14772 LIBXT_OTHER="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
14773 OLDXMENU_TARGET="really-lwlib"
14777 ## The X Menu stuff is present in the X10 distribution, but missing
14778 ## from X11. If we have X10, just use the installed library;
14779 ## otherwise, use our own copy.
14780 if test "${HAVE_X11}" = "yes" ; then
14782 $as_echo "#define HAVE_X11 1" >>confdefs.h
14785 if test "$USE_X_TOOLKIT" = "none"; then
14786 OLDXMENU="\${oldXMenudir}/libXMenu11.a"
14787 else
14788 OLDXMENU="\${lwlibdir}/liblw.a"
14790 LIBXMENU="\$(OLDXMENU)"
14791 LIBX_OTHER="\$(LIBXT) \$(LIBX_EXTRA)"
14792 OLDXMENU_DEPS="\${OLDXMENU} ../src/\${OLDXMENU}"
14793 else
14794 ## For a syntactically valid Makefile; not actually used for anything.
14795 ## See comments in src/Makefile.in.
14796 OLDXMENU=nothing
14797 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
14798 if test "${HAVE_X_WINDOWS}" = "yes"; then
14799 LIBXMENU="-lXMenu"
14800 else
14801 LIBXMENU=
14803 LIBX_OTHER=
14804 OLDXMENU_DEPS=
14807 if test "$HAVE_GTK" = "yes" || test "$HAVE_MENUS" != "yes"; then
14808 OLDXMENU_TARGET=
14809 OLDXMENU=nothing
14810 LIBXMENU=
14811 OLDXMENU_DEPS=
14820 if test "${HAVE_MENUS}" = "yes" ; then
14822 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
14826 if test "${GNU_MALLOC}" = "yes" ; then
14828 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
14832 RALLOC_OBJ=
14833 if test "${REL_ALLOC}" = "yes" ; then
14835 $as_echo "#define REL_ALLOC 1" >>confdefs.h
14838 test "$system_malloc" != "yes" && RALLOC_OBJ=ralloc.o
14842 if test "$opsys" = "cygwin"; then
14843 CYGWIN_OBJ="sheap.o"
14844 ## Cygwin differs because of its unexec().
14845 PRE_ALLOC_OBJ=
14846 POST_ALLOC_OBJ=lastfile.o
14847 else
14848 CYGWIN_OBJ=
14849 PRE_ALLOC_OBJ=lastfile.o
14850 POST_ALLOC_OBJ=
14856 # Configure gnulib here, now that we know LIBS.
14868 LIBC_FATAL_STDERR_=1
14869 export LIBC_FATAL_STDERR_
14871 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
14872 # for constant arguments. Useless!
14873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
14874 $as_echo_n "checking for working alloca.h... " >&6; }
14875 if test "${ac_cv_working_alloca_h+set}" = set; then :
14876 $as_echo_n "(cached) " >&6
14877 else
14878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14879 /* end confdefs.h. */
14880 #include <alloca.h>
14882 main ()
14884 char *p = (char *) alloca (2 * sizeof (int));
14885 if (p) return 0;
14887 return 0;
14889 _ACEOF
14890 if ac_fn_c_try_link "$LINENO"; then :
14891 ac_cv_working_alloca_h=yes
14892 else
14893 ac_cv_working_alloca_h=no
14895 rm -f core conftest.err conftest.$ac_objext \
14896 conftest$ac_exeext conftest.$ac_ext
14898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
14899 $as_echo "$ac_cv_working_alloca_h" >&6; }
14900 if test $ac_cv_working_alloca_h = yes; then
14902 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
14906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
14907 $as_echo_n "checking for alloca... " >&6; }
14908 if test "${ac_cv_func_alloca_works+set}" = set; then :
14909 $as_echo_n "(cached) " >&6
14910 else
14911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14912 /* end confdefs.h. */
14913 #ifdef __GNUC__
14914 # define alloca __builtin_alloca
14915 #else
14916 # ifdef _MSC_VER
14917 # include <malloc.h>
14918 # define alloca _alloca
14919 # else
14920 # ifdef HAVE_ALLOCA_H
14921 # include <alloca.h>
14922 # else
14923 # ifdef _AIX
14924 #pragma alloca
14925 # else
14926 # ifndef alloca /* predefined by HP cc +Olibcalls */
14927 char *alloca ();
14928 # endif
14929 # endif
14930 # endif
14931 # endif
14932 #endif
14935 main ()
14937 char *p = (char *) alloca (1);
14938 if (p) return 0;
14940 return 0;
14942 _ACEOF
14943 if ac_fn_c_try_link "$LINENO"; then :
14944 ac_cv_func_alloca_works=yes
14945 else
14946 ac_cv_func_alloca_works=no
14948 rm -f core conftest.err conftest.$ac_objext \
14949 conftest$ac_exeext conftest.$ac_ext
14951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
14952 $as_echo "$ac_cv_func_alloca_works" >&6; }
14954 if test $ac_cv_func_alloca_works = yes; then
14956 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
14958 else
14959 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
14960 # that cause trouble. Some versions do not even contain alloca or
14961 # contain a buggy version. If you still want to use their alloca,
14962 # use ar to extract alloca.o from them instead of compiling alloca.c.
14968 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
14970 $as_echo "#define C_ALLOCA 1" >>confdefs.h
14973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 'alloca.c' needs Cray hooks" >&5
14974 $as_echo_n "checking whether 'alloca.c' needs Cray hooks... " >&6; }
14975 if test "${ac_cv_os_cray+set}" = set; then :
14976 $as_echo_n "(cached) " >&6
14977 else
14978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14979 /* end confdefs.h. */
14980 #if defined CRAY && ! defined CRAY2
14981 webecray
14982 #else
14983 wenotbecray
14984 #endif
14986 _ACEOF
14987 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14988 $EGREP "webecray" >/dev/null 2>&1; then :
14989 ac_cv_os_cray=yes
14990 else
14991 ac_cv_os_cray=no
14993 rm -f conftest*
14996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
14997 $as_echo "$ac_cv_os_cray" >&6; }
14998 if test $ac_cv_os_cray = yes; then
14999 for ac_func in _getb67 GETB67 getb67; do
15000 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15001 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15002 eval as_val=\$$as_ac_var
15003 if test "x$as_val" = x""yes; then :
15005 cat >>confdefs.h <<_ACEOF
15006 #define CRAY_STACKSEG_END $ac_func
15007 _ACEOF
15009 break
15012 done
15015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
15016 $as_echo_n "checking stack direction for C alloca... " >&6; }
15017 if test "${ac_cv_c_stack_direction+set}" = set; then :
15018 $as_echo_n "(cached) " >&6
15019 else
15020 if test "$cross_compiling" = yes; then :
15021 ac_cv_c_stack_direction=0
15022 else
15023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15024 /* end confdefs.h. */
15025 $ac_includes_default
15027 find_stack_direction (int *addr, int depth)
15029 int dir, dummy = 0;
15030 if (! addr)
15031 addr = &dummy;
15032 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
15033 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
15034 return dir + dummy;
15038 main (int argc, char **argv)
15040 return find_stack_direction (0, argc + !argv + 20) < 0;
15042 _ACEOF
15043 if ac_fn_c_try_run "$LINENO"; then :
15044 ac_cv_c_stack_direction=1
15045 else
15046 ac_cv_c_stack_direction=-1
15048 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15049 conftest.$ac_objext conftest.beam conftest.$ac_ext
15053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
15054 $as_echo "$ac_cv_c_stack_direction" >&6; }
15055 cat >>confdefs.h <<_ACEOF
15056 #define STACK_DIRECTION $ac_cv_c_stack_direction
15057 _ACEOF
15065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
15066 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
15067 if test "${ac_cv_c_bigendian+set}" = set; then :
15068 $as_echo_n "(cached) " >&6
15069 else
15070 ac_cv_c_bigendian=unknown
15071 # See if we're dealing with a universal compiler.
15072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15073 /* end confdefs.h. */
15074 #ifndef __APPLE_CC__
15075 not a universal capable compiler
15076 #endif
15077 typedef int dummy;
15079 _ACEOF
15080 if ac_fn_c_try_compile "$LINENO"; then :
15082 # Check for potential -arch flags. It is not universal unless
15083 # there are at least two -arch flags with different values.
15084 ac_arch=
15085 ac_prev=
15086 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
15087 if test -n "$ac_prev"; then
15088 case $ac_word in
15089 i?86 | x86_64 | ppc | ppc64)
15090 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
15091 ac_arch=$ac_word
15092 else
15093 ac_cv_c_bigendian=universal
15094 break
15097 esac
15098 ac_prev=
15099 elif test "x$ac_word" = "x-arch"; then
15100 ac_prev=arch
15102 done
15104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15105 if test $ac_cv_c_bigendian = unknown; then
15106 # See if sys/param.h defines the BYTE_ORDER macro.
15107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15108 /* end confdefs.h. */
15109 #include <sys/types.h>
15110 #include <sys/param.h>
15113 main ()
15115 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
15116 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
15117 && LITTLE_ENDIAN)
15118 bogus endian macros
15119 #endif
15122 return 0;
15124 _ACEOF
15125 if ac_fn_c_try_compile "$LINENO"; then :
15126 # It does; now see whether it defined to BIG_ENDIAN or not.
15127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15128 /* end confdefs.h. */
15129 #include <sys/types.h>
15130 #include <sys/param.h>
15133 main ()
15135 #if BYTE_ORDER != BIG_ENDIAN
15136 not big endian
15137 #endif
15140 return 0;
15142 _ACEOF
15143 if ac_fn_c_try_compile "$LINENO"; then :
15144 ac_cv_c_bigendian=yes
15145 else
15146 ac_cv_c_bigendian=no
15148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15152 if test $ac_cv_c_bigendian = unknown; then
15153 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
15154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15155 /* end confdefs.h. */
15156 #include <limits.h>
15159 main ()
15161 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
15162 bogus endian macros
15163 #endif
15166 return 0;
15168 _ACEOF
15169 if ac_fn_c_try_compile "$LINENO"; then :
15170 # It does; now see whether it defined to _BIG_ENDIAN or not.
15171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15172 /* end confdefs.h. */
15173 #include <limits.h>
15176 main ()
15178 #ifndef _BIG_ENDIAN
15179 not big endian
15180 #endif
15183 return 0;
15185 _ACEOF
15186 if ac_fn_c_try_compile "$LINENO"; then :
15187 ac_cv_c_bigendian=yes
15188 else
15189 ac_cv_c_bigendian=no
15191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15195 if test $ac_cv_c_bigendian = unknown; then
15196 # Compile a test program.
15197 if test "$cross_compiling" = yes; then :
15198 # Try to guess by grepping values from an object file.
15199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15200 /* end confdefs.h. */
15201 short int ascii_mm[] =
15202 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
15203 short int ascii_ii[] =
15204 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
15205 int use_ascii (int i) {
15206 return ascii_mm[i] + ascii_ii[i];
15208 short int ebcdic_ii[] =
15209 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
15210 short int ebcdic_mm[] =
15211 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
15212 int use_ebcdic (int i) {
15213 return ebcdic_mm[i] + ebcdic_ii[i];
15215 extern int foo;
15218 main ()
15220 return use_ascii (foo) == use_ebcdic (foo);
15222 return 0;
15224 _ACEOF
15225 if ac_fn_c_try_compile "$LINENO"; then :
15226 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
15227 ac_cv_c_bigendian=yes
15229 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
15230 if test "$ac_cv_c_bigendian" = unknown; then
15231 ac_cv_c_bigendian=no
15232 else
15233 # finding both strings is unlikely to happen, but who knows?
15234 ac_cv_c_bigendian=unknown
15238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15239 else
15240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15241 /* end confdefs.h. */
15242 $ac_includes_default
15244 main ()
15247 /* Are we little or big endian? From Harbison&Steele. */
15248 union
15250 long int l;
15251 char c[sizeof (long int)];
15252 } u;
15253 u.l = 1;
15254 return u.c[sizeof (long int) - 1] == 1;
15257 return 0;
15259 _ACEOF
15260 if ac_fn_c_try_run "$LINENO"; then :
15261 ac_cv_c_bigendian=no
15262 else
15263 ac_cv_c_bigendian=yes
15265 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15266 conftest.$ac_objext conftest.beam conftest.$ac_ext
15271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
15272 $as_echo "$ac_cv_c_bigendian" >&6; }
15273 case $ac_cv_c_bigendian in #(
15274 yes)
15275 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
15276 ;; #(
15278 ;; #(
15279 universal)
15281 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
15283 ;; #(
15285 as_fn_error "unknown endianness
15286 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
15287 esac
15290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
15291 $as_echo_n "checking for inline... " >&6; }
15292 if test "${ac_cv_c_inline+set}" = set; then :
15293 $as_echo_n "(cached) " >&6
15294 else
15295 ac_cv_c_inline=no
15296 for ac_kw in inline __inline__ __inline; do
15297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15298 /* end confdefs.h. */
15299 #ifndef __cplusplus
15300 typedef int foo_t;
15301 static $ac_kw foo_t static_foo () {return 0; }
15302 $ac_kw foo_t foo () {return 0; }
15303 #endif
15305 _ACEOF
15306 if ac_fn_c_try_compile "$LINENO"; then :
15307 ac_cv_c_inline=$ac_kw
15309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15310 test "$ac_cv_c_inline" != no && break
15311 done
15314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
15315 $as_echo "$ac_cv_c_inline" >&6; }
15317 case $ac_cv_c_inline in
15318 inline | yes) ;;
15320 case $ac_cv_c_inline in
15321 no) ac_val=;;
15322 *) ac_val=$ac_cv_c_inline;;
15323 esac
15324 cat >>confdefs.h <<_ACEOF
15325 #ifndef __cplusplus
15326 #define inline $ac_val
15327 #endif
15328 _ACEOF
15330 esac
15333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtold conforms to C99" >&5
15334 $as_echo_n "checking whether strtold conforms to C99... " >&6; }
15335 if test "${gl_cv_func_c99_strtold+set}" = set; then :
15336 $as_echo_n "(cached) " >&6
15337 else
15338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15339 /* end confdefs.h. */
15340 /* On HP-UX before 11.23, strtold returns a struct instead of
15341 long double. Reject implementations like that, by requiring
15342 compatibility with the C99 prototype. */
15343 #include <stdlib.h>
15344 static long double (*p) (char const *, char **) = strtold;
15345 static long double
15346 test (char const *nptr, char **endptr)
15348 long double r;
15349 r = strtold (nptr, endptr);
15350 return r;
15353 main ()
15355 return test ("1.0", NULL) != 1 || p ("1.0", NULL) != 1;
15357 return 0;
15359 _ACEOF
15360 if ac_fn_c_try_link "$LINENO"; then :
15361 gl_cv_func_c99_strtold=yes
15362 else
15363 gl_cv_func_c99_strtold=no
15365 rm -f core conftest.err conftest.$ac_objext \
15366 conftest$ac_exeext conftest.$ac_ext
15368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_c99_strtold" >&5
15369 $as_echo "$gl_cv_func_c99_strtold" >&6; }
15370 if test $gl_cv_func_c99_strtold = yes; then
15372 $as_echo "#define HAVE_C99_STRTOLD 1" >>confdefs.h
15377 GNULIB_CHDIR=0;
15378 GNULIB_CHOWN=0;
15379 GNULIB_CLOSE=0;
15380 GNULIB_DUP=0;
15381 GNULIB_DUP2=0;
15382 GNULIB_DUP3=0;
15383 GNULIB_ENVIRON=0;
15384 GNULIB_EUIDACCESS=0;
15385 GNULIB_FACCESSAT=0;
15386 GNULIB_FCHDIR=0;
15387 GNULIB_FCHOWNAT=0;
15388 GNULIB_FDATASYNC=0;
15389 GNULIB_FSYNC=0;
15390 GNULIB_FTRUNCATE=0;
15391 GNULIB_GETCWD=0;
15392 GNULIB_GETDOMAINNAME=0;
15393 GNULIB_GETDTABLESIZE=0;
15394 GNULIB_GETGROUPS=0;
15395 GNULIB_GETHOSTNAME=0;
15396 GNULIB_GETLOGIN=0;
15397 GNULIB_GETLOGIN_R=0;
15398 GNULIB_GETPAGESIZE=0;
15399 GNULIB_GETUSERSHELL=0;
15400 GNULIB_GROUP_MEMBER=0;
15401 GNULIB_ISATTY=0;
15402 GNULIB_LCHOWN=0;
15403 GNULIB_LINK=0;
15404 GNULIB_LINKAT=0;
15405 GNULIB_LSEEK=0;
15406 GNULIB_PIPE=0;
15407 GNULIB_PIPE2=0;
15408 GNULIB_PREAD=0;
15409 GNULIB_PWRITE=0;
15410 GNULIB_READ=0;
15411 GNULIB_READLINK=0;
15412 GNULIB_READLINKAT=0;
15413 GNULIB_RMDIR=0;
15414 GNULIB_SETHOSTNAME=0;
15415 GNULIB_SLEEP=0;
15416 GNULIB_SYMLINK=0;
15417 GNULIB_SYMLINKAT=0;
15418 GNULIB_TTYNAME_R=0;
15419 GNULIB_UNISTD_H_NONBLOCKING=0;
15420 GNULIB_UNISTD_H_SIGPIPE=0;
15421 GNULIB_UNLINK=0;
15422 GNULIB_UNLINKAT=0;
15423 GNULIB_USLEEP=0;
15424 GNULIB_WRITE=0;
15425 HAVE_CHOWN=1;
15426 HAVE_DUP2=1;
15427 HAVE_DUP3=1;
15428 HAVE_EUIDACCESS=1;
15429 HAVE_FACCESSAT=1;
15430 HAVE_FCHDIR=1;
15431 HAVE_FCHOWNAT=1;
15432 HAVE_FDATASYNC=1;
15433 HAVE_FSYNC=1;
15434 HAVE_FTRUNCATE=1;
15435 HAVE_GETDTABLESIZE=1;
15436 HAVE_GETGROUPS=1;
15437 HAVE_GETHOSTNAME=1;
15438 HAVE_GETLOGIN=1;
15439 HAVE_GETPAGESIZE=1;
15440 HAVE_GROUP_MEMBER=1;
15441 HAVE_LCHOWN=1;
15442 HAVE_LINK=1;
15443 HAVE_LINKAT=1;
15444 HAVE_PIPE=1;
15445 HAVE_PIPE2=1;
15446 HAVE_PREAD=1;
15447 HAVE_PWRITE=1;
15448 HAVE_READLINK=1;
15449 HAVE_READLINKAT=1;
15450 HAVE_SETHOSTNAME=1;
15451 HAVE_SLEEP=1;
15452 HAVE_SYMLINK=1;
15453 HAVE_SYMLINKAT=1;
15454 HAVE_UNLINKAT=1;
15455 HAVE_USLEEP=1;
15456 HAVE_DECL_ENVIRON=1;
15457 HAVE_DECL_FCHDIR=1;
15458 HAVE_DECL_FDATASYNC=1;
15459 HAVE_DECL_GETDOMAINNAME=1;
15460 HAVE_DECL_GETLOGIN_R=1;
15461 HAVE_DECL_GETPAGESIZE=1;
15462 HAVE_DECL_GETUSERSHELL=1;
15463 HAVE_DECL_SETHOSTNAME=1;
15464 HAVE_DECL_TTYNAME_R=1;
15465 HAVE_OS_H=0;
15466 HAVE_SYS_PARAM_H=0;
15467 REPLACE_CHOWN=0;
15468 REPLACE_CLOSE=0;
15469 REPLACE_DUP=0;
15470 REPLACE_DUP2=0;
15471 REPLACE_FCHOWNAT=0;
15472 REPLACE_FTRUNCATE=0;
15473 REPLACE_GETCWD=0;
15474 REPLACE_GETDOMAINNAME=0;
15475 REPLACE_GETLOGIN_R=0;
15476 REPLACE_GETGROUPS=0;
15477 REPLACE_GETPAGESIZE=0;
15478 REPLACE_ISATTY=0;
15479 REPLACE_LCHOWN=0;
15480 REPLACE_LINK=0;
15481 REPLACE_LINKAT=0;
15482 REPLACE_LSEEK=0;
15483 REPLACE_PREAD=0;
15484 REPLACE_PWRITE=0;
15485 REPLACE_READ=0;
15486 REPLACE_READLINK=0;
15487 REPLACE_RMDIR=0;
15488 REPLACE_SLEEP=0;
15489 REPLACE_SYMLINK=0;
15490 REPLACE_TTYNAME_R=0;
15491 REPLACE_UNLINK=0;
15492 REPLACE_UNLINKAT=0;
15493 REPLACE_USLEEP=0;
15494 REPLACE_WRITE=0;
15495 UNISTD_H_HAVE_WINSOCK2_H=0;
15496 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
15499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_dm_mode in struct stat" >&5
15500 $as_echo_n "checking for st_dm_mode in struct stat... " >&6; }
15501 if test "${ac_cv_struct_st_dm_mode+set}" = set; then :
15502 $as_echo_n "(cached) " >&6
15503 else
15504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15505 /* end confdefs.h. */
15507 #include <sys/types.h>
15508 #include <sys/stat.h>
15510 main ()
15512 struct stat s; s.st_dm_mode;
15514 return 0;
15516 _ACEOF
15517 if ac_fn_c_try_compile "$LINENO"; then :
15518 ac_cv_struct_st_dm_mode=yes
15519 else
15520 ac_cv_struct_st_dm_mode=no
15522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_st_dm_mode" >&5
15525 $as_echo "$ac_cv_struct_st_dm_mode" >&6; }
15527 if test $ac_cv_struct_st_dm_mode = yes; then
15529 $as_echo "#define HAVE_ST_DM_MODE 1" >>confdefs.h
15534 ac_fn_c_check_decl "$LINENO" "strmode" "ac_cv_have_decl_strmode" "$ac_includes_default"
15535 if test "x$ac_cv_have_decl_strmode" = x""yes; then :
15536 ac_have_decl=1
15537 else
15538 ac_have_decl=0
15541 cat >>confdefs.h <<_ACEOF
15542 #define HAVE_DECL_STRMODE $ac_have_decl
15543 _ACEOF
15546 GNULIB__EXIT=0;
15547 GNULIB_ATOLL=0;
15548 GNULIB_CALLOC_POSIX=0;
15549 GNULIB_CANONICALIZE_FILE_NAME=0;
15550 GNULIB_GETLOADAVG=0;
15551 GNULIB_GETSUBOPT=0;
15552 GNULIB_GRANTPT=0;
15553 GNULIB_MALLOC_POSIX=0;
15554 GNULIB_MBTOWC=0;
15555 GNULIB_MKDTEMP=0;
15556 GNULIB_MKOSTEMP=0;
15557 GNULIB_MKOSTEMPS=0;
15558 GNULIB_MKSTEMP=0;
15559 GNULIB_MKSTEMPS=0;
15560 GNULIB_POSIX_OPENPT=0;
15561 GNULIB_PTSNAME=0;
15562 GNULIB_PTSNAME_R=0;
15563 GNULIB_PUTENV=0;
15564 GNULIB_RANDOM=0;
15565 GNULIB_RANDOM_R=0;
15566 GNULIB_REALLOC_POSIX=0;
15567 GNULIB_REALPATH=0;
15568 GNULIB_RPMATCH=0;
15569 GNULIB_SETENV=0;
15570 GNULIB_STRTOD=0;
15571 GNULIB_STRTOLL=0;
15572 GNULIB_STRTOULL=0;
15573 GNULIB_SYSTEM_POSIX=0;
15574 GNULIB_UNLOCKPT=0;
15575 GNULIB_UNSETENV=0;
15576 GNULIB_WCTOMB=0;
15577 HAVE__EXIT=1;
15578 HAVE_ATOLL=1;
15579 HAVE_CANONICALIZE_FILE_NAME=1;
15580 HAVE_DECL_GETLOADAVG=1;
15581 HAVE_GETSUBOPT=1;
15582 HAVE_GRANTPT=1;
15583 HAVE_MKDTEMP=1;
15584 HAVE_MKOSTEMP=1;
15585 HAVE_MKOSTEMPS=1;
15586 HAVE_MKSTEMP=1;
15587 HAVE_MKSTEMPS=1;
15588 HAVE_POSIX_OPENPT=1;
15589 HAVE_PTSNAME=1;
15590 HAVE_PTSNAME_R=1;
15591 HAVE_RANDOM=1;
15592 HAVE_RANDOM_H=1;
15593 HAVE_RANDOM_R=1;
15594 HAVE_REALPATH=1;
15595 HAVE_RPMATCH=1;
15596 HAVE_SETENV=1;
15597 HAVE_DECL_SETENV=1;
15598 HAVE_STRTOD=1;
15599 HAVE_STRTOLL=1;
15600 HAVE_STRTOULL=1;
15601 HAVE_STRUCT_RANDOM_DATA=1;
15602 HAVE_SYS_LOADAVG_H=0;
15603 HAVE_UNLOCKPT=1;
15604 HAVE_DECL_UNSETENV=1;
15605 REPLACE_CALLOC=0;
15606 REPLACE_CANONICALIZE_FILE_NAME=0;
15607 REPLACE_MALLOC=0;
15608 REPLACE_MBTOWC=0;
15609 REPLACE_MKSTEMP=0;
15610 REPLACE_PTSNAME_R=0;
15611 REPLACE_PUTENV=0;
15612 REPLACE_RANDOM_R=0;
15613 REPLACE_REALLOC=0;
15614 REPLACE_REALPATH=0;
15615 REPLACE_SETENV=0;
15616 REPLACE_STRTOD=0;
15617 REPLACE_UNSETENV=0;
15618 REPLACE_WCTOMB=0;
15622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
15623 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
15624 if test "${gl_cv_have_include_next+set}" = set; then :
15625 $as_echo_n "(cached) " >&6
15626 else
15627 rm -rf conftestd1a conftestd1b conftestd2
15628 mkdir conftestd1a conftestd1b conftestd2
15629 cat <<EOF > conftestd1a/conftest.h
15630 #define DEFINED_IN_CONFTESTD1
15631 #include_next <conftest.h>
15632 #ifdef DEFINED_IN_CONFTESTD2
15633 int foo;
15634 #else
15635 #error "include_next doesn't work"
15636 #endif
15638 cat <<EOF > conftestd1b/conftest.h
15639 #define DEFINED_IN_CONFTESTD1
15640 #include <stdio.h>
15641 #include_next <conftest.h>
15642 #ifdef DEFINED_IN_CONFTESTD2
15643 int foo;
15644 #else
15645 #error "include_next doesn't work"
15646 #endif
15648 cat <<EOF > conftestd2/conftest.h
15649 #ifndef DEFINED_IN_CONFTESTD1
15650 #error "include_next test doesn't work"
15651 #endif
15652 #define DEFINED_IN_CONFTESTD2
15654 gl_save_CPPFLAGS="$CPPFLAGS"
15655 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
15656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15657 /* end confdefs.h. */
15658 #include <conftest.h>
15659 _ACEOF
15660 if ac_fn_c_try_compile "$LINENO"; then :
15661 gl_cv_have_include_next=yes
15662 else
15663 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
15664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15665 /* end confdefs.h. */
15666 #include <conftest.h>
15667 _ACEOF
15668 if ac_fn_c_try_compile "$LINENO"; then :
15669 gl_cv_have_include_next=buggy
15670 else
15671 gl_cv_have_include_next=no
15673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15677 CPPFLAGS="$gl_save_CPPFLAGS"
15678 rm -rf conftestd1a conftestd1b conftestd2
15681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
15682 $as_echo "$gl_cv_have_include_next" >&6; }
15683 PRAGMA_SYSTEM_HEADER=
15684 if test $gl_cv_have_include_next = yes; then
15685 INCLUDE_NEXT=include_next
15686 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
15687 if test -n "$GCC"; then
15688 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
15690 else
15691 if test $gl_cv_have_include_next = buggy; then
15692 INCLUDE_NEXT=include
15693 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
15694 else
15695 INCLUDE_NEXT=include
15696 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
15702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
15703 $as_echo_n "checking whether system header files limit the line length... " >&6; }
15704 if test "${gl_cv_pragma_columns+set}" = set; then :
15705 $as_echo_n "(cached) " >&6
15706 else
15707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15708 /* end confdefs.h. */
15710 #ifdef __TANDEM
15711 choke me
15712 #endif
15714 _ACEOF
15715 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15716 $EGREP "choke me" >/dev/null 2>&1; then :
15717 gl_cv_pragma_columns=yes
15718 else
15719 gl_cv_pragma_columns=no
15721 rm -f conftest*
15725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
15726 $as_echo "$gl_cv_pragma_columns" >&6; }
15727 if test $gl_cv_pragma_columns = yes; then
15728 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
15729 else
15730 PRAGMA_COLUMNS=
15749 if test $gl_cv_have_include_next = yes; then
15750 gl_cv_next_getopt_h='<'getopt.h'>'
15751 else
15752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
15753 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
15754 if test "${gl_cv_next_getopt_h+set}" = set; then :
15755 $as_echo_n "(cached) " >&6
15756 else
15758 if test $ac_cv_header_getopt_h = yes; then
15761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15762 /* end confdefs.h. */
15763 #include <getopt.h>
15765 _ACEOF
15766 case "$host_os" in
15767 aix*) gl_absname_cpp="$ac_cpp -C" ;;
15768 *) gl_absname_cpp="$ac_cpp" ;;
15769 esac
15771 case "$host_os" in
15772 mingw*)
15773 gl_dirsep_regex='[/\\]'
15776 gl_dirsep_regex='\/'
15778 esac
15779 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
15781 gl_header_literal_regex=`echo 'getopt.h' \
15782 | sed -e "$gl_make_literal_regex_sed"`
15783 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
15784 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
15785 s|^/[^/]|//&|
15789 gl_cv_next_getopt_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15790 sed -n "$gl_absolute_header_sed"`'"'
15791 else
15792 gl_cv_next_getopt_h='<'getopt.h'>'
15797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
15798 $as_echo "$gl_cv_next_getopt_h" >&6; }
15800 NEXT_GETOPT_H=$gl_cv_next_getopt_h
15802 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
15803 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15804 gl_next_as_first_directive='<'getopt.h'>'
15805 else
15806 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15807 gl_next_as_first_directive=$gl_cv_next_getopt_h
15809 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H=$gl_next_as_first_directive
15814 if test $ac_cv_header_getopt_h = yes; then
15815 HAVE_GETOPT_H=1
15816 else
15817 HAVE_GETOPT_H=0
15821 gl_replace_getopt=
15823 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
15824 for ac_header in getopt.h
15825 do :
15826 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
15827 if test "x$ac_cv_header_getopt_h" = x""yes; then :
15828 cat >>confdefs.h <<_ACEOF
15829 #define HAVE_GETOPT_H 1
15830 _ACEOF
15832 else
15833 gl_replace_getopt=yes
15836 done
15840 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
15841 for ac_func in getopt_long_only
15842 do :
15843 ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
15844 if test "x$ac_cv_func_getopt_long_only" = x""yes; then :
15845 cat >>confdefs.h <<_ACEOF
15846 #define HAVE_GETOPT_LONG_ONLY 1
15847 _ACEOF
15849 else
15850 gl_replace_getopt=yes
15852 done
15856 if test -z "$gl_replace_getopt"; then
15857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
15858 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
15859 if test "${gl_cv_func_getopt_posix+set}" = set; then :
15860 $as_echo_n "(cached) " >&6
15861 else
15863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15864 /* end confdefs.h. */
15865 #include <unistd.h>
15867 main ()
15869 int *p = &optreset; return optreset;
15871 return 0;
15873 _ACEOF
15874 if ac_fn_c_try_link "$LINENO"; then :
15875 gl_optind_min=1
15876 else
15877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15878 /* end confdefs.h. */
15879 #include <getopt.h>
15881 main ()
15883 return !getopt_clip;
15885 return 0;
15887 _ACEOF
15888 if ac_fn_c_try_compile "$LINENO"; then :
15889 gl_optind_min=1
15890 else
15891 gl_optind_min=0
15893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15895 rm -f core conftest.err conftest.$ac_objext \
15896 conftest$ac_exeext conftest.$ac_ext
15898 gl_save_CPPFLAGS=$CPPFLAGS
15899 CPPFLAGS="$CPPFLAGS -DOPTIND_MIN=$gl_optind_min"
15900 if test "$cross_compiling" = yes; then :
15901 case "$host_os" in
15902 mingw*) gl_cv_func_getopt_posix="guessing no";;
15903 darwin* | aix*) gl_cv_func_getopt_posix="guessing no";;
15904 *) gl_cv_func_getopt_posix="guessing yes";;
15905 esac
15907 else
15908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15909 /* end confdefs.h. */
15911 #include <unistd.h>
15912 #include <stdlib.h>
15913 #include <string.h>
15916 main ()
15919 static char program[] = "program";
15920 static char a[] = "-a";
15921 static char foo[] = "foo";
15922 static char bar[] = "bar";
15923 char *argv[] = { program, a, foo, bar, NULL };
15924 int c;
15926 optind = OPTIND_MIN;
15927 opterr = 0;
15929 c = getopt (4, argv, "ab");
15930 if (!(c == 'a'))
15931 return 1;
15932 c = getopt (4, argv, "ab");
15933 if (!(c == -1))
15934 return 2;
15935 if (!(optind == 2))
15936 return 3;
15938 /* Some internal state exists at this point. */
15940 static char program[] = "program";
15941 static char donald[] = "donald";
15942 static char p[] = "-p";
15943 static char billy[] = "billy";
15944 static char duck[] = "duck";
15945 static char a[] = "-a";
15946 static char bar[] = "bar";
15947 char *argv[] = { program, donald, p, billy, duck, a, bar, NULL };
15948 int c;
15950 optind = OPTIND_MIN;
15951 opterr = 0;
15953 c = getopt (7, argv, "+abp:q:");
15954 if (!(c == -1))
15955 return 4;
15956 if (!(strcmp (argv[0], "program") == 0))
15957 return 5;
15958 if (!(strcmp (argv[1], "donald") == 0))
15959 return 6;
15960 if (!(strcmp (argv[2], "-p") == 0))
15961 return 7;
15962 if (!(strcmp (argv[3], "billy") == 0))
15963 return 8;
15964 if (!(strcmp (argv[4], "duck") == 0))
15965 return 9;
15966 if (!(strcmp (argv[5], "-a") == 0))
15967 return 10;
15968 if (!(strcmp (argv[6], "bar") == 0))
15969 return 11;
15970 if (!(optind == 1))
15971 return 12;
15973 /* Detect MacOS 10.5, AIX 7.1 bug. */
15975 static char program[] = "program";
15976 static char ab[] = "-ab";
15977 char *argv[3] = { program, ab, NULL };
15978 optind = OPTIND_MIN;
15979 opterr = 0;
15980 if (getopt (2, argv, "ab:") != 'a')
15981 return 13;
15982 if (getopt (2, argv, "ab:") != '?')
15983 return 14;
15984 if (optopt != 'b')
15985 return 15;
15986 if (optind != 2)
15987 return 16;
15990 return 0;
15993 _ACEOF
15994 if ac_fn_c_try_run "$LINENO"; then :
15995 gl_cv_func_getopt_posix=yes
15996 else
15997 gl_cv_func_getopt_posix=no
15999 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16000 conftest.$ac_objext conftest.beam conftest.$ac_ext
16003 CPPFLAGS=$gl_save_CPPFLAGS
16006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
16007 $as_echo "$gl_cv_func_getopt_posix" >&6; }
16008 case "$gl_cv_func_getopt_posix" in
16009 *no) gl_replace_getopt=yes ;;
16010 esac
16013 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
16014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
16015 $as_echo_n "checking for working GNU getopt function... " >&6; }
16016 if test "${gl_cv_func_getopt_gnu+set}" = set; then :
16017 $as_echo_n "(cached) " >&6
16018 else
16019 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
16020 # optstring is necessary for programs like m4 that have POSIX-mandated
16021 # semantics for supporting options interspersed with files.
16022 # Also, since getopt_long is a GNU extension, we require optind=0.
16023 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
16024 # so take care to revert to the correct (non-)export state.
16025 gl_awk_probe='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
16026 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
16027 xx) gl_had_POSIXLY_CORRECT=exported ;;
16028 x) gl_had_POSIXLY_CORRECT=yes ;;
16029 *) gl_had_POSIXLY_CORRECT= ;;
16030 esac
16031 POSIXLY_CORRECT=1
16032 export POSIXLY_CORRECT
16033 if test "$cross_compiling" = yes; then :
16034 case $host_os:$ac_cv_have_decl_optreset in
16035 *-gnu*:* | mingw*:*) gl_cv_func_getopt_gnu=no;;
16036 *:yes) gl_cv_func_getopt_gnu=no;;
16037 *) gl_cv_func_getopt_gnu=yes;;
16038 esac
16040 else
16041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16042 /* end confdefs.h. */
16043 #include <getopt.h>
16044 #include <stddef.h>
16045 #include <string.h>
16047 #include <stdlib.h>
16048 #if defined __MACH__ && defined __APPLE__
16049 /* Avoid a crash on MacOS X. */
16050 #include <mach/mach.h>
16051 #include <mach/mach_error.h>
16052 #include <mach/thread_status.h>
16053 #include <mach/exception.h>
16054 #include <mach/task.h>
16055 #include <pthread.h>
16056 /* The exception port on which our thread listens. */
16057 static mach_port_t our_exception_port;
16058 /* The main function of the thread listening for exceptions of type
16059 EXC_BAD_ACCESS. */
16060 static void *
16061 mach_exception_thread (void *arg)
16063 /* Buffer for a message to be received. */
16064 struct {
16065 mach_msg_header_t head;
16066 mach_msg_body_t msgh_body;
16067 char data[1024];
16068 } msg;
16069 mach_msg_return_t retval;
16070 /* Wait for a message on the exception port. */
16071 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
16072 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
16073 if (retval != MACH_MSG_SUCCESS)
16074 abort ();
16075 exit (1);
16077 static void
16078 nocrash_init (void)
16080 mach_port_t self = mach_task_self ();
16081 /* Allocate a port on which the thread shall listen for exceptions. */
16082 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
16083 == KERN_SUCCESS) {
16084 /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
16085 if (mach_port_insert_right (self, our_exception_port, our_exception_port,
16086 MACH_MSG_TYPE_MAKE_SEND)
16087 == KERN_SUCCESS) {
16088 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
16089 for us. */
16090 exception_mask_t mask = EXC_MASK_BAD_ACCESS;
16091 /* Create the thread listening on the exception port. */
16092 pthread_attr_t attr;
16093 pthread_t thread;
16094 if (pthread_attr_init (&attr) == 0
16095 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
16096 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
16097 pthread_attr_destroy (&attr);
16098 /* Replace the exception port info for these exceptions with our own.
16099 Note that we replace the exception port for the entire task, not only
16100 for a particular thread. This has the effect that when our exception
16101 port gets the message, the thread specific exception port has already
16102 been asked, and we don't need to bother about it.
16103 See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
16104 task_set_exception_ports (self, mask, our_exception_port,
16105 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
16110 #elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
16111 /* Avoid a crash on native Windows. */
16112 #define WIN32_LEAN_AND_MEAN
16113 #include <windows.h>
16114 #include <winerror.h>
16115 static LONG WINAPI
16116 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
16118 switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
16120 case EXCEPTION_ACCESS_VIOLATION:
16121 case EXCEPTION_IN_PAGE_ERROR:
16122 case EXCEPTION_STACK_OVERFLOW:
16123 case EXCEPTION_GUARD_PAGE:
16124 case EXCEPTION_PRIV_INSTRUCTION:
16125 case EXCEPTION_ILLEGAL_INSTRUCTION:
16126 case EXCEPTION_DATATYPE_MISALIGNMENT:
16127 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
16128 case EXCEPTION_NONCONTINUABLE_EXCEPTION:
16129 exit (1);
16131 return EXCEPTION_CONTINUE_SEARCH;
16133 static void
16134 nocrash_init (void)
16136 SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
16138 #else
16139 /* Avoid a crash on POSIX systems. */
16140 #include <signal.h>
16141 /* A POSIX signal handler. */
16142 static void
16143 exception_handler (int sig)
16145 exit (1);
16147 static void
16148 nocrash_init (void)
16150 #ifdef SIGSEGV
16151 signal (SIGSEGV, exception_handler);
16152 #endif
16153 #ifdef SIGBUS
16154 signal (SIGBUS, exception_handler);
16155 #endif
16157 #endif
16161 main ()
16164 int result = 0;
16166 nocrash_init();
16168 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
16169 and fails on MacOS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
16170 OSF/1 5.1, Solaris 10. */
16172 static char conftest[] = "conftest";
16173 static char plus[] = "-+";
16174 char *argv[3] = { conftest, plus, NULL };
16175 opterr = 0;
16176 if (getopt (2, argv, "+a") != '?')
16177 result |= 1;
16179 /* This code succeeds on glibc 2.8, mingw,
16180 and fails on MacOS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
16181 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
16183 static char program[] = "program";
16184 static char p[] = "-p";
16185 static char foo[] = "foo";
16186 static char bar[] = "bar";
16187 char *argv[] = { program, p, foo, bar, NULL };
16189 optind = 1;
16190 if (getopt (4, argv, "p::") != 'p')
16191 result |= 2;
16192 else if (optarg != NULL)
16193 result |= 4;
16194 else if (getopt (4, argv, "p::") != -1)
16195 result |= 6;
16196 else if (optind != 2)
16197 result |= 8;
16199 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
16201 static char program[] = "program";
16202 static char foo[] = "foo";
16203 static char p[] = "-p";
16204 char *argv[] = { program, foo, p, NULL };
16205 optind = 0;
16206 if (getopt (3, argv, "-p") != 1)
16207 result |= 16;
16208 else if (getopt (3, argv, "-p") != 'p')
16209 result |= 32;
16211 /* This code fails on glibc 2.11. */
16213 static char program[] = "program";
16214 static char b[] = "-b";
16215 static char a[] = "-a";
16216 char *argv[] = { program, b, a, NULL };
16217 optind = opterr = 0;
16218 if (getopt (3, argv, "+:a:b") != 'b')
16219 result |= 64;
16220 else if (getopt (3, argv, "+:a:b") != ':')
16221 result |= 64;
16223 /* This code dumps core on glibc 2.14. */
16225 static char program[] = "program";
16226 static char w[] = "-W";
16227 static char dummy[] = "dummy";
16228 char *argv[] = { program, w, dummy, NULL };
16229 optind = opterr = 1;
16230 if (getopt (3, argv, "W;") != 'W')
16231 result |= 128;
16233 return result;
16236 return 0;
16238 _ACEOF
16239 if ac_fn_c_try_run "$LINENO"; then :
16240 gl_cv_func_getopt_gnu=yes
16241 else
16242 gl_cv_func_getopt_gnu=no
16244 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16245 conftest.$ac_objext conftest.beam conftest.$ac_ext
16248 case $gl_had_POSIXLY_CORRECT in
16249 exported) ;;
16250 yes) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;}; POSIXLY_CORRECT=1 ;;
16251 *) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;} ;;
16252 esac
16255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
16256 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
16257 if test "$gl_cv_func_getopt_gnu" = "no"; then
16258 gl_replace_getopt=yes
16266 REPLACE_GETOPT=0
16269 if test -n "$gl_replace_getopt"; then :
16271 REPLACE_GETOPT=1
16276 if test $REPLACE_GETOPT = 1; then
16278 GETOPT_H=getopt.h
16280 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
16286 ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
16287 if test "x$ac_cv_have_decl_getenv" = x""yes; then :
16288 ac_have_decl=1
16289 else
16290 ac_have_decl=0
16293 cat >>confdefs.h <<_ACEOF
16294 #define HAVE_DECL_GETENV $ac_have_decl
16295 _ACEOF
16298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
16299 $as_echo_n "checking for unsigned long long int... " >&6; }
16300 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
16301 $as_echo_n "(cached) " >&6
16302 else
16303 ac_cv_type_unsigned_long_long_int=yes
16304 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
16305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16306 /* end confdefs.h. */
16308 /* For now, do not test the preprocessor; as of 2007 there are too many
16309 implementations with broken preprocessors. Perhaps this can
16310 be revisited in 2012. In the meantime, code should not expect
16311 #if to work with literals wider than 32 bits. */
16312 /* Test literals. */
16313 long long int ll = 9223372036854775807ll;
16314 long long int nll = -9223372036854775807LL;
16315 unsigned long long int ull = 18446744073709551615ULL;
16316 /* Test constant expressions. */
16317 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
16318 ? 1 : -1)];
16319 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
16320 ? 1 : -1)];
16321 int i = 63;
16323 main ()
16325 /* Test availability of runtime routines for shift and division. */
16326 long long int llmax = 9223372036854775807ll;
16327 unsigned long long int ullmax = 18446744073709551615ull;
16328 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
16329 | (llmax / ll) | (llmax % ll)
16330 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
16331 | (ullmax / ull) | (ullmax % ull));
16333 return 0;
16336 _ACEOF
16337 if ac_fn_c_try_link "$LINENO"; then :
16339 else
16340 ac_cv_type_unsigned_long_long_int=no
16342 rm -f core conftest.err conftest.$ac_objext \
16343 conftest$ac_exeext conftest.$ac_ext
16346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
16347 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
16348 if test $ac_cv_type_unsigned_long_long_int = yes; then
16350 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
16356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
16357 $as_echo_n "checking for long long int... " >&6; }
16358 if test "${ac_cv_type_long_long_int+set}" = set; then :
16359 $as_echo_n "(cached) " >&6
16360 else
16361 ac_cv_type_long_long_int=yes
16362 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
16363 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
16364 if test $ac_cv_type_long_long_int = yes; then
16365 if test "$cross_compiling" = yes; then :
16367 else
16368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16369 /* end confdefs.h. */
16370 #include <limits.h>
16371 #ifndef LLONG_MAX
16372 # define HALF \
16373 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
16374 # define LLONG_MAX (HALF - 1 + HALF)
16375 #endif
16377 main ()
16379 long long int n = 1;
16380 int i;
16381 for (i = 0; ; i++)
16383 long long int m = n << i;
16384 if (m >> i != n)
16385 return 1;
16386 if (LLONG_MAX / 2 < m)
16387 break;
16389 return 0;
16391 return 0;
16393 _ACEOF
16394 if ac_fn_c_try_run "$LINENO"; then :
16396 else
16397 ac_cv_type_long_long_int=no
16399 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16400 conftest.$ac_objext conftest.beam conftest.$ac_ext
16406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
16407 $as_echo "$ac_cv_type_long_long_int" >&6; }
16408 if test $ac_cv_type_long_long_int = yes; then
16410 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
16419 gl_cv_c_multiarch=no
16420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16421 /* end confdefs.h. */
16422 #ifndef __APPLE_CC__
16423 not a universal capable compiler
16424 #endif
16425 typedef int dummy;
16427 _ACEOF
16428 if ac_fn_c_try_compile "$LINENO"; then :
16430 arch=
16431 prev=
16432 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
16433 if test -n "$prev"; then
16434 case $word in
16435 i?86 | x86_64 | ppc | ppc64)
16436 if test -z "$arch" || test "$arch" = "$word"; then
16437 arch="$word"
16438 else
16439 gl_cv_c_multiarch=yes
16442 esac
16443 prev=
16444 else
16445 if test "x$word" = "x-arch"; then
16446 prev=arch
16449 done
16452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16453 if test $gl_cv_c_multiarch = yes; then
16454 APPLE_UNIVERSAL_BUILD=1
16455 else
16456 APPLE_UNIVERSAL_BUILD=0
16463 if test $ac_cv_type_long_long_int = yes; then
16464 HAVE_LONG_LONG_INT=1
16465 else
16466 HAVE_LONG_LONG_INT=0
16470 if test $ac_cv_type_unsigned_long_long_int = yes; then
16471 HAVE_UNSIGNED_LONG_LONG_INT=1
16472 else
16473 HAVE_UNSIGNED_LONG_LONG_INT=0
16478 if test $ac_cv_header_wchar_h = yes; then
16479 HAVE_WCHAR_H=1
16480 else
16481 HAVE_WCHAR_H=0
16485 if test $ac_cv_header_inttypes_h = yes; then
16486 HAVE_INTTYPES_H=1
16487 else
16488 HAVE_INTTYPES_H=0
16492 if test $ac_cv_header_sys_types_h = yes; then
16493 HAVE_SYS_TYPES_H=1
16494 else
16495 HAVE_SYS_TYPES_H=0
16508 if test $gl_cv_have_include_next = yes; then
16509 gl_cv_next_stdint_h='<'stdint.h'>'
16510 else
16511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
16512 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
16513 if test "${gl_cv_next_stdint_h+set}" = set; then :
16514 $as_echo_n "(cached) " >&6
16515 else
16517 if test $ac_cv_header_stdint_h = yes; then
16520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16521 /* end confdefs.h. */
16522 #include <stdint.h>
16524 _ACEOF
16525 case "$host_os" in
16526 aix*) gl_absname_cpp="$ac_cpp -C" ;;
16527 *) gl_absname_cpp="$ac_cpp" ;;
16528 esac
16530 case "$host_os" in
16531 mingw*)
16532 gl_dirsep_regex='[/\\]'
16535 gl_dirsep_regex='\/'
16537 esac
16538 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
16540 gl_header_literal_regex=`echo 'stdint.h' \
16541 | sed -e "$gl_make_literal_regex_sed"`
16542 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
16543 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
16544 s|^/[^/]|//&|
16548 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16549 sed -n "$gl_absolute_header_sed"`'"'
16550 else
16551 gl_cv_next_stdint_h='<'stdint.h'>'
16556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
16557 $as_echo "$gl_cv_next_stdint_h" >&6; }
16559 NEXT_STDINT_H=$gl_cv_next_stdint_h
16561 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16562 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16563 gl_next_as_first_directive='<'stdint.h'>'
16564 else
16565 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16566 gl_next_as_first_directive=$gl_cv_next_stdint_h
16568 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
16573 if test $ac_cv_header_stdint_h = yes; then
16574 HAVE_STDINT_H=1
16575 else
16576 HAVE_STDINT_H=0
16580 if test $ac_cv_header_stdint_h = yes; then
16581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
16582 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
16583 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
16584 $as_echo_n "(cached) " >&6
16585 else
16586 gl_cv_header_working_stdint_h=no
16587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16588 /* end confdefs.h. */
16591 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
16592 #include <stdint.h>
16593 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
16594 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
16595 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
16596 #endif
16599 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16600 included before <wchar.h>. */
16601 #include <stddef.h>
16602 #include <signal.h>
16603 #if HAVE_WCHAR_H
16604 # include <stdio.h>
16605 # include <time.h>
16606 # include <wchar.h>
16607 #endif
16610 #ifdef INT8_MAX
16611 int8_t a1 = INT8_MAX;
16612 int8_t a1min = INT8_MIN;
16613 #endif
16614 #ifdef INT16_MAX
16615 int16_t a2 = INT16_MAX;
16616 int16_t a2min = INT16_MIN;
16617 #endif
16618 #ifdef INT32_MAX
16619 int32_t a3 = INT32_MAX;
16620 int32_t a3min = INT32_MIN;
16621 #endif
16622 #ifdef INT64_MAX
16623 int64_t a4 = INT64_MAX;
16624 int64_t a4min = INT64_MIN;
16625 #endif
16626 #ifdef UINT8_MAX
16627 uint8_t b1 = UINT8_MAX;
16628 #else
16629 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
16630 #endif
16631 #ifdef UINT16_MAX
16632 uint16_t b2 = UINT16_MAX;
16633 #endif
16634 #ifdef UINT32_MAX
16635 uint32_t b3 = UINT32_MAX;
16636 #endif
16637 #ifdef UINT64_MAX
16638 uint64_t b4 = UINT64_MAX;
16639 #endif
16640 int_least8_t c1 = INT8_C (0x7f);
16641 int_least8_t c1max = INT_LEAST8_MAX;
16642 int_least8_t c1min = INT_LEAST8_MIN;
16643 int_least16_t c2 = INT16_C (0x7fff);
16644 int_least16_t c2max = INT_LEAST16_MAX;
16645 int_least16_t c2min = INT_LEAST16_MIN;
16646 int_least32_t c3 = INT32_C (0x7fffffff);
16647 int_least32_t c3max = INT_LEAST32_MAX;
16648 int_least32_t c3min = INT_LEAST32_MIN;
16649 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
16650 int_least64_t c4max = INT_LEAST64_MAX;
16651 int_least64_t c4min = INT_LEAST64_MIN;
16652 uint_least8_t d1 = UINT8_C (0xff);
16653 uint_least8_t d1max = UINT_LEAST8_MAX;
16654 uint_least16_t d2 = UINT16_C (0xffff);
16655 uint_least16_t d2max = UINT_LEAST16_MAX;
16656 uint_least32_t d3 = UINT32_C (0xffffffff);
16657 uint_least32_t d3max = UINT_LEAST32_MAX;
16658 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
16659 uint_least64_t d4max = UINT_LEAST64_MAX;
16660 int_fast8_t e1 = INT_FAST8_MAX;
16661 int_fast8_t e1min = INT_FAST8_MIN;
16662 int_fast16_t e2 = INT_FAST16_MAX;
16663 int_fast16_t e2min = INT_FAST16_MIN;
16664 int_fast32_t e3 = INT_FAST32_MAX;
16665 int_fast32_t e3min = INT_FAST32_MIN;
16666 int_fast64_t e4 = INT_FAST64_MAX;
16667 int_fast64_t e4min = INT_FAST64_MIN;
16668 uint_fast8_t f1 = UINT_FAST8_MAX;
16669 uint_fast16_t f2 = UINT_FAST16_MAX;
16670 uint_fast32_t f3 = UINT_FAST32_MAX;
16671 uint_fast64_t f4 = UINT_FAST64_MAX;
16672 #ifdef INTPTR_MAX
16673 intptr_t g = INTPTR_MAX;
16674 intptr_t gmin = INTPTR_MIN;
16675 #endif
16676 #ifdef UINTPTR_MAX
16677 uintptr_t h = UINTPTR_MAX;
16678 #endif
16679 intmax_t i = INTMAX_MAX;
16680 uintmax_t j = UINTMAX_MAX;
16682 #include <limits.h> /* for CHAR_BIT */
16683 #define TYPE_MINIMUM(t) \
16684 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
16685 #define TYPE_MAXIMUM(t) \
16686 ((t) ((t) 0 < (t) -1 \
16687 ? (t) -1 \
16688 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
16689 struct s {
16690 int check_PTRDIFF:
16691 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
16692 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
16693 ? 1 : -1;
16694 /* Detect bug in FreeBSD 6.0 / ia64. */
16695 int check_SIG_ATOMIC:
16696 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
16697 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
16698 ? 1 : -1;
16699 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
16700 int check_WCHAR:
16701 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
16702 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
16703 ? 1 : -1;
16704 /* Detect bug in mingw. */
16705 int check_WINT:
16706 WINT_MIN == TYPE_MINIMUM (wint_t)
16707 && WINT_MAX == TYPE_MAXIMUM (wint_t)
16708 ? 1 : -1;
16710 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
16711 int check_UINT8_C:
16712 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
16713 int check_UINT16_C:
16714 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
16716 /* Detect bugs in OpenBSD 3.9 stdint.h. */
16717 #ifdef UINT8_MAX
16718 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
16719 #endif
16720 #ifdef UINT16_MAX
16721 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
16722 #endif
16723 #ifdef UINT32_MAX
16724 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
16725 #endif
16726 #ifdef UINT64_MAX
16727 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
16728 #endif
16729 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
16730 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
16731 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
16732 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
16733 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
16734 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
16735 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
16736 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
16737 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
16738 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
16739 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
16743 main ()
16747 return 0;
16749 _ACEOF
16750 if ac_fn_c_try_compile "$LINENO"; then :
16751 if test "$cross_compiling" = yes; then :
16752 gl_cv_header_working_stdint_h=yes
16754 else
16755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16756 /* end confdefs.h. */
16759 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
16760 #include <stdint.h>
16763 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16764 included before <wchar.h>. */
16765 #include <stddef.h>
16766 #include <signal.h>
16767 #if HAVE_WCHAR_H
16768 # include <stdio.h>
16769 # include <time.h>
16770 # include <wchar.h>
16771 #endif
16774 #include <stdio.h>
16775 #include <string.h>
16776 #define MVAL(macro) MVAL1(macro)
16777 #define MVAL1(expression) #expression
16778 static const char *macro_values[] =
16780 #ifdef INT8_MAX
16781 MVAL (INT8_MAX),
16782 #endif
16783 #ifdef INT16_MAX
16784 MVAL (INT16_MAX),
16785 #endif
16786 #ifdef INT32_MAX
16787 MVAL (INT32_MAX),
16788 #endif
16789 #ifdef INT64_MAX
16790 MVAL (INT64_MAX),
16791 #endif
16792 #ifdef UINT8_MAX
16793 MVAL (UINT8_MAX),
16794 #endif
16795 #ifdef UINT16_MAX
16796 MVAL (UINT16_MAX),
16797 #endif
16798 #ifdef UINT32_MAX
16799 MVAL (UINT32_MAX),
16800 #endif
16801 #ifdef UINT64_MAX
16802 MVAL (UINT64_MAX),
16803 #endif
16804 NULL
16808 main ()
16811 const char **mv;
16812 for (mv = macro_values; *mv != NULL; mv++)
16814 const char *value = *mv;
16815 /* Test whether it looks like a cast expression. */
16816 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
16817 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
16818 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
16819 || strncmp (value, "((int)"/*)*/, 6) == 0
16820 || strncmp (value, "((signed short)"/*)*/, 15) == 0
16821 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
16822 return mv - macro_values + 1;
16824 return 0;
16827 return 0;
16829 _ACEOF
16830 if ac_fn_c_try_run "$LINENO"; then :
16831 gl_cv_header_working_stdint_h=yes
16833 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16834 conftest.$ac_objext conftest.beam conftest.$ac_ext
16839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
16843 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
16845 if test "$gl_cv_header_working_stdint_h" = yes; then
16846 STDINT_H=
16847 else
16848 for ac_header in sys/inttypes.h sys/bitypes.h
16849 do :
16850 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16851 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16852 eval as_val=\$$as_ac_Header
16853 if test "x$as_val" = x""yes; then :
16854 cat >>confdefs.h <<_ACEOF
16855 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16856 _ACEOF
16860 done
16862 if test $ac_cv_header_sys_inttypes_h = yes; then
16863 HAVE_SYS_INTTYPES_H=1
16864 else
16865 HAVE_SYS_INTTYPES_H=0
16868 if test $ac_cv_header_sys_bitypes_h = yes; then
16869 HAVE_SYS_BITYPES_H=1
16870 else
16871 HAVE_SYS_BITYPES_H=0
16877 if test $APPLE_UNIVERSAL_BUILD = 0; then
16880 for gltype in ptrdiff_t size_t ; do
16881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
16882 $as_echo_n "checking for bit size of $gltype... " >&6; }
16883 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
16884 $as_echo_n "(cached) " >&6
16885 else
16886 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
16887 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16888 included before <wchar.h>. */
16889 #include <stddef.h>
16890 #include <signal.h>
16891 #if HAVE_WCHAR_H
16892 # include <stdio.h>
16893 # include <time.h>
16894 # include <wchar.h>
16895 #endif
16897 #include <limits.h>"; then :
16899 else
16900 result=unknown
16903 eval gl_cv_bitsizeof_${gltype}=\$result
16906 eval ac_res=\$gl_cv_bitsizeof_${gltype}
16907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16908 $as_echo "$ac_res" >&6; }
16909 eval result=\$gl_cv_bitsizeof_${gltype}
16910 if test $result = unknown; then
16911 result=0
16913 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
16914 cat >>confdefs.h <<_ACEOF
16915 #define BITSIZEOF_${GLTYPE} $result
16916 _ACEOF
16918 eval BITSIZEOF_${GLTYPE}=\$result
16919 done
16925 for gltype in sig_atomic_t wchar_t wint_t ; do
16926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
16927 $as_echo_n "checking for bit size of $gltype... " >&6; }
16928 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
16929 $as_echo_n "(cached) " >&6
16930 else
16931 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
16932 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16933 included before <wchar.h>. */
16934 #include <stddef.h>
16935 #include <signal.h>
16936 #if HAVE_WCHAR_H
16937 # include <stdio.h>
16938 # include <time.h>
16939 # include <wchar.h>
16940 #endif
16942 #include <limits.h>"; then :
16944 else
16945 result=unknown
16948 eval gl_cv_bitsizeof_${gltype}=\$result
16951 eval ac_res=\$gl_cv_bitsizeof_${gltype}
16952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16953 $as_echo "$ac_res" >&6; }
16954 eval result=\$gl_cv_bitsizeof_${gltype}
16955 if test $result = unknown; then
16956 result=0
16958 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
16959 cat >>confdefs.h <<_ACEOF
16960 #define BITSIZEOF_${GLTYPE} $result
16961 _ACEOF
16963 eval BITSIZEOF_${GLTYPE}=\$result
16964 done
16969 for gltype in sig_atomic_t wchar_t wint_t ; do
16970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
16971 $as_echo_n "checking whether $gltype is signed... " >&6; }
16972 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
16973 $as_echo_n "(cached) " >&6
16974 else
16975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16976 /* end confdefs.h. */
16978 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16979 included before <wchar.h>. */
16980 #include <stddef.h>
16981 #include <signal.h>
16982 #if HAVE_WCHAR_H
16983 # include <stdio.h>
16984 # include <time.h>
16985 # include <wchar.h>
16986 #endif
16988 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
16990 main ()
16994 return 0;
16996 _ACEOF
16997 if ac_fn_c_try_compile "$LINENO"; then :
16998 result=yes
16999 else
17000 result=no
17002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17003 eval gl_cv_type_${gltype}_signed=\$result
17006 eval ac_res=\$gl_cv_type_${gltype}_signed
17007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17008 $as_echo "$ac_res" >&6; }
17009 eval result=\$gl_cv_type_${gltype}_signed
17010 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17011 if test "$result" = yes; then
17012 cat >>confdefs.h <<_ACEOF
17013 #define HAVE_SIGNED_${GLTYPE} 1
17014 _ACEOF
17016 eval HAVE_SIGNED_${GLTYPE}=1
17017 else
17018 eval HAVE_SIGNED_${GLTYPE}=0
17020 done
17023 gl_cv_type_ptrdiff_t_signed=yes
17024 gl_cv_type_size_t_signed=no
17025 if test $APPLE_UNIVERSAL_BUILD = 0; then
17028 for gltype in ptrdiff_t size_t ; do
17029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
17030 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
17031 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
17032 $as_echo_n "(cached) " >&6
17033 else
17034 eval gl_cv_type_${gltype}_suffix=no
17035 eval result=\$gl_cv_type_${gltype}_signed
17036 if test "$result" = yes; then
17037 glsufu=
17038 else
17039 glsufu=u
17041 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
17042 case $glsuf in
17043 '') gltype1='int';;
17044 l) gltype1='long int';;
17045 ll) gltype1='long long int';;
17046 i64) gltype1='__int64';;
17047 u) gltype1='unsigned int';;
17048 ul) gltype1='unsigned long int';;
17049 ull) gltype1='unsigned long long int';;
17050 ui64)gltype1='unsigned __int64';;
17051 esac
17052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17053 /* end confdefs.h. */
17055 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17056 included before <wchar.h>. */
17057 #include <stddef.h>
17058 #include <signal.h>
17059 #if HAVE_WCHAR_H
17060 # include <stdio.h>
17061 # include <time.h>
17062 # include <wchar.h>
17063 #endif
17065 extern $gltype foo;
17066 extern $gltype1 foo;
17068 main ()
17072 return 0;
17074 _ACEOF
17075 if ac_fn_c_try_compile "$LINENO"; then :
17076 eval gl_cv_type_${gltype}_suffix=\$glsuf
17078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17079 eval result=\$gl_cv_type_${gltype}_suffix
17080 test "$result" != no && break
17081 done
17083 eval ac_res=\$gl_cv_type_${gltype}_suffix
17084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17085 $as_echo "$ac_res" >&6; }
17086 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17087 eval result=\$gl_cv_type_${gltype}_suffix
17088 test "$result" = no && result=
17089 eval ${GLTYPE}_SUFFIX=\$result
17090 cat >>confdefs.h <<_ACEOF
17091 #define ${GLTYPE}_SUFFIX $result
17092 _ACEOF
17094 done
17100 for gltype in sig_atomic_t wchar_t wint_t ; do
17101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
17102 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
17103 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
17104 $as_echo_n "(cached) " >&6
17105 else
17106 eval gl_cv_type_${gltype}_suffix=no
17107 eval result=\$gl_cv_type_${gltype}_signed
17108 if test "$result" = yes; then
17109 glsufu=
17110 else
17111 glsufu=u
17113 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
17114 case $glsuf in
17115 '') gltype1='int';;
17116 l) gltype1='long int';;
17117 ll) gltype1='long long int';;
17118 i64) gltype1='__int64';;
17119 u) gltype1='unsigned int';;
17120 ul) gltype1='unsigned long int';;
17121 ull) gltype1='unsigned long long int';;
17122 ui64)gltype1='unsigned __int64';;
17123 esac
17124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17125 /* end confdefs.h. */
17127 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17128 included before <wchar.h>. */
17129 #include <stddef.h>
17130 #include <signal.h>
17131 #if HAVE_WCHAR_H
17132 # include <stdio.h>
17133 # include <time.h>
17134 # include <wchar.h>
17135 #endif
17137 extern $gltype foo;
17138 extern $gltype1 foo;
17140 main ()
17144 return 0;
17146 _ACEOF
17147 if ac_fn_c_try_compile "$LINENO"; then :
17148 eval gl_cv_type_${gltype}_suffix=\$glsuf
17150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17151 eval result=\$gl_cv_type_${gltype}_suffix
17152 test "$result" != no && break
17153 done
17155 eval ac_res=\$gl_cv_type_${gltype}_suffix
17156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17157 $as_echo "$ac_res" >&6; }
17158 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17159 eval result=\$gl_cv_type_${gltype}_suffix
17160 test "$result" = no && result=
17161 eval ${GLTYPE}_SUFFIX=\$result
17162 cat >>confdefs.h <<_ACEOF
17163 #define ${GLTYPE}_SUFFIX $result
17164 _ACEOF
17166 done
17170 if test $BITSIZEOF_WINT_T -lt 32; then
17171 BITSIZEOF_WINT_T=32
17174 STDINT_H=stdint.h
17177 if test -n "$STDINT_H"; then
17178 GL_GENERATE_STDINT_H_TRUE=
17179 GL_GENERATE_STDINT_H_FALSE='#'
17180 else
17181 GL_GENERATE_STDINT_H_TRUE='#'
17182 GL_GENERATE_STDINT_H_FALSE=
17189 GNULIB_IMAXABS=0;
17190 GNULIB_IMAXDIV=0;
17191 GNULIB_STRTOIMAX=0;
17192 GNULIB_STRTOUMAX=0;
17193 HAVE_DECL_IMAXABS=1;
17194 HAVE_DECL_IMAXDIV=1;
17195 HAVE_DECL_STRTOIMAX=1;
17196 HAVE_DECL_STRTOUMAX=1;
17197 REPLACE_STRTOIMAX=0;
17198 INT32_MAX_LT_INTMAX_MAX=1;
17199 INT64_MAX_EQ_LONG_MAX='defined _LP64';
17200 PRI_MACROS_BROKEN=0;
17201 PRIPTR_PREFIX=__PRIPTR_PREFIX;
17202 UINT32_MAX_LT_UINTMAX_MAX=1;
17203 UINT64_MAX_EQ_ULONG_MAX='defined _LP64';
17219 if test $gl_cv_have_include_next = yes; then
17220 gl_cv_next_inttypes_h='<'inttypes.h'>'
17221 else
17222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
17223 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
17224 if test "${gl_cv_next_inttypes_h+set}" = set; then :
17225 $as_echo_n "(cached) " >&6
17226 else
17228 if test $ac_cv_header_inttypes_h = yes; then
17231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17232 /* end confdefs.h. */
17233 #include <inttypes.h>
17235 _ACEOF
17236 case "$host_os" in
17237 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17238 *) gl_absname_cpp="$ac_cpp" ;;
17239 esac
17241 case "$host_os" in
17242 mingw*)
17243 gl_dirsep_regex='[/\\]'
17246 gl_dirsep_regex='\/'
17248 esac
17249 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
17251 gl_header_literal_regex=`echo 'inttypes.h' \
17252 | sed -e "$gl_make_literal_regex_sed"`
17253 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17254 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17255 s|^/[^/]|//&|
17259 gl_cv_next_inttypes_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17260 sed -n "$gl_absolute_header_sed"`'"'
17261 else
17262 gl_cv_next_inttypes_h='<'inttypes.h'>'
17267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
17268 $as_echo "$gl_cv_next_inttypes_h" >&6; }
17270 NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
17272 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17273 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17274 gl_next_as_first_directive='<'inttypes.h'>'
17275 else
17276 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17277 gl_next_as_first_directive=$gl_cv_next_inttypes_h
17279 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive
17291 case "$host_os" in
17292 mingw*)
17293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5
17294 $as_echo_n "checking for 64-bit off_t... " >&6; }
17295 if test "${gl_cv_type_off_t_64+set}" = set; then :
17296 $as_echo_n "(cached) " >&6
17297 else
17298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17299 /* end confdefs.h. */
17300 #include <sys/types.h>
17301 int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1];
17304 main ()
17308 return 0;
17310 _ACEOF
17311 if ac_fn_c_try_compile "$LINENO"; then :
17312 gl_cv_type_off_t_64=yes
17313 else
17314 gl_cv_type_off_t_64=no
17316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5
17320 $as_echo "$gl_cv_type_off_t_64" >&6; }
17321 if test $gl_cv_type_off_t_64 = no; then
17322 WINDOWS_64_BIT_OFF_T=1
17323 else
17324 WINDOWS_64_BIT_OFF_T=0
17326 WINDOWS_64_BIT_ST_SIZE=1
17329 WINDOWS_64_BIT_OFF_T=0
17330 WINDOWS_64_BIT_ST_SIZE=0
17332 esac
17335 GNULIB_FCHMODAT=0;
17336 GNULIB_FSTAT=0;
17337 GNULIB_FSTATAT=0;
17338 GNULIB_FUTIMENS=0;
17339 GNULIB_LCHMOD=0;
17340 GNULIB_LSTAT=0;
17341 GNULIB_MKDIRAT=0;
17342 GNULIB_MKFIFO=0;
17343 GNULIB_MKFIFOAT=0;
17344 GNULIB_MKNOD=0;
17345 GNULIB_MKNODAT=0;
17346 GNULIB_STAT=0;
17347 GNULIB_UTIMENSAT=0;
17348 HAVE_FCHMODAT=1;
17349 HAVE_FSTATAT=1;
17350 HAVE_FUTIMENS=1;
17351 HAVE_LCHMOD=1;
17352 HAVE_LSTAT=1;
17353 HAVE_MKDIRAT=1;
17354 HAVE_MKFIFO=1;
17355 HAVE_MKFIFOAT=1;
17356 HAVE_MKNOD=1;
17357 HAVE_MKNODAT=1;
17358 HAVE_UTIMENSAT=1;
17359 REPLACE_FSTAT=0;
17360 REPLACE_FSTATAT=0;
17361 REPLACE_FUTIMENS=0;
17362 REPLACE_LSTAT=0;
17363 REPLACE_MKDIR=0;
17364 REPLACE_MKFIFO=0;
17365 REPLACE_MKNOD=0;
17366 REPLACE_STAT=0;
17367 REPLACE_UTIMENSAT=0;
17372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
17373 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
17374 if test "${gl_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
17375 $as_echo_n "(cached) " >&6
17376 else
17377 rm -f conftest.sym conftest.file
17378 echo >conftest.file
17379 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
17380 if test "$cross_compiling" = yes; then :
17381 case "$host_os" in
17382 # Guess yes on glibc systems.
17383 *-gnu*) gl_cv_func_lstat_dereferences_slashed_symlink="guessing yes" ;;
17384 # If we don't know, assume the worst.
17385 *) gl_cv_func_lstat_dereferences_slashed_symlink="guessing no" ;;
17386 esac
17388 else
17389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17390 /* end confdefs.h. */
17391 $ac_includes_default
17393 main ()
17395 struct stat sbuf;
17396 /* Linux will dereference the symlink and fail, as required by
17397 POSIX. That is better in the sense that it means we will not
17398 have to compile and use the lstat wrapper. */
17399 return lstat ("conftest.sym/", &sbuf) == 0;
17402 return 0;
17404 _ACEOF
17405 if ac_fn_c_try_run "$LINENO"; then :
17406 gl_cv_func_lstat_dereferences_slashed_symlink=yes
17407 else
17408 gl_cv_func_lstat_dereferences_slashed_symlink=no
17410 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17411 conftest.$ac_objext conftest.beam conftest.$ac_ext
17414 else
17415 # If the 'ln -s' command failed, then we probably don't even
17416 # have an lstat function.
17417 gl_cv_func_lstat_dereferences_slashed_symlink="guessing no"
17419 rm -f conftest.sym conftest.file
17422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
17423 $as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
17424 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
17425 *yes)
17427 cat >>confdefs.h <<_ACEOF
17428 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
17429 _ACEOF
17432 esac
17435 GNULIB_MKTIME=0;
17436 GNULIB_NANOSLEEP=0;
17437 GNULIB_STRPTIME=0;
17438 GNULIB_TIMEGM=0;
17439 GNULIB_TIME_R=0;
17440 HAVE_DECL_LOCALTIME_R=1;
17441 HAVE_NANOSLEEP=1;
17442 HAVE_STRPTIME=1;
17443 HAVE_TIMEGM=1;
17444 REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
17445 REPLACE_MKTIME=GNULIB_PORTCHECK;
17446 REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
17447 REPLACE_TIMEGM=GNULIB_PORTCHECK;
17452 GNULIB_PTHREAD_SIGMASK=0;
17453 GNULIB_RAISE=0;
17454 GNULIB_SIGNAL_H_SIGPIPE=0;
17455 GNULIB_SIGPROCMASK=0;
17456 GNULIB_SIGACTION=0;
17457 HAVE_POSIX_SIGNALBLOCKING=1;
17458 HAVE_PTHREAD_SIGMASK=1;
17459 HAVE_RAISE=1;
17460 HAVE_SIGSET_T=1;
17461 HAVE_SIGINFO_T=1;
17462 HAVE_SIGACTION=1;
17463 HAVE_STRUCT_SIGACTION_SA_SIGACTION=1;
17465 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=1;
17467 HAVE_SIGHANDLER_T=1;
17468 REPLACE_PTHREAD_SIGMASK=0;
17469 REPLACE_RAISE=0;
17476 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
17477 #include <signal.h>
17478 /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */
17479 #include <sys/types.h>
17482 if test "x$ac_cv_type_sigset_t" = x""yes; then :
17484 cat >>confdefs.h <<_ACEOF
17485 #define HAVE_SIGSET_T 1
17486 _ACEOF
17488 gl_cv_type_sigset_t=yes
17489 else
17490 gl_cv_type_sigset_t=no
17493 if test $gl_cv_type_sigset_t != yes; then
17494 HAVE_SIGSET_T=0
17499 if test $ac_cv_header_sys_socket_h = no; then
17500 for ac_header in ws2tcpip.h
17501 do :
17502 ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
17503 if test "x$ac_cv_header_ws2tcpip_h" = x""yes; then :
17504 cat >>confdefs.h <<_ACEOF
17505 #define HAVE_WS2TCPIP_H 1
17506 _ACEOF
17510 done
17514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
17515 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
17516 if test "${ac_cv_header_stdbool_h+set}" = set; then :
17517 $as_echo_n "(cached) " >&6
17518 else
17519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17520 /* end confdefs.h. */
17522 #include <stdbool.h>
17523 #ifndef bool
17524 "error: bool is not defined"
17525 #endif
17526 #ifndef false
17527 "error: false is not defined"
17528 #endif
17529 #if false
17530 "error: false is not 0"
17531 #endif
17532 #ifndef true
17533 "error: true is not defined"
17534 #endif
17535 #if true != 1
17536 "error: true is not 1"
17537 #endif
17538 #ifndef __bool_true_false_are_defined
17539 "error: __bool_true_false_are_defined is not defined"
17540 #endif
17542 struct s { _Bool s: 1; _Bool t; } s;
17544 char a[true == 1 ? 1 : -1];
17545 char b[false == 0 ? 1 : -1];
17546 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
17547 char d[(bool) 0.5 == true ? 1 : -1];
17548 /* See body of main program for 'e'. */
17549 char f[(_Bool) 0.0 == false ? 1 : -1];
17550 char g[true];
17551 char h[sizeof (_Bool)];
17552 char i[sizeof s.t];
17553 enum { j = false, k = true, l = false * true, m = true * 256 };
17554 /* The following fails for
17555 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
17556 _Bool n[m];
17557 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
17558 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
17559 /* Catch a bug in an HP-UX C compiler. See
17560 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
17561 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
17563 _Bool q = true;
17564 _Bool *pq = &q;
17567 main ()
17570 bool e = &s;
17571 *pq |= q;
17572 *pq |= ! q;
17573 /* Refer to every declared value, to avoid compiler optimizations. */
17574 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
17575 + !m + !n + !o + !p + !q + !pq);
17578 return 0;
17580 _ACEOF
17581 if ac_fn_c_try_compile "$LINENO"; then :
17582 ac_cv_header_stdbool_h=yes
17583 else
17584 ac_cv_header_stdbool_h=no
17586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
17589 $as_echo "$ac_cv_header_stdbool_h" >&6; }
17590 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
17591 if test "x$ac_cv_type__Bool" = x""yes; then :
17593 cat >>confdefs.h <<_ACEOF
17594 #define HAVE__BOOL 1
17595 _ACEOF
17602 REPLACE_NULL=0;
17603 HAVE_WCHAR_T=1;
17606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
17607 $as_echo_n "checking for wchar_t... " >&6; }
17608 if test "${gt_cv_c_wchar_t+set}" = set; then :
17609 $as_echo_n "(cached) " >&6
17610 else
17611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17612 /* end confdefs.h. */
17613 #include <stddef.h>
17614 wchar_t foo = (wchar_t)'\0';
17616 main ()
17620 return 0;
17622 _ACEOF
17623 if ac_fn_c_try_compile "$LINENO"; then :
17624 gt_cv_c_wchar_t=yes
17625 else
17626 gt_cv_c_wchar_t=no
17628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
17631 $as_echo "$gt_cv_c_wchar_t" >&6; }
17632 if test $gt_cv_c_wchar_t = yes; then
17634 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
17639 GNULIB_DPRINTF=0;
17640 GNULIB_FCLOSE=0;
17641 GNULIB_FDOPEN=0;
17642 GNULIB_FFLUSH=0;
17643 GNULIB_FGETC=0;
17644 GNULIB_FGETS=0;
17645 GNULIB_FOPEN=0;
17646 GNULIB_FPRINTF=0;
17647 GNULIB_FPRINTF_POSIX=0;
17648 GNULIB_FPURGE=0;
17649 GNULIB_FPUTC=0;
17650 GNULIB_FPUTS=0;
17651 GNULIB_FREAD=0;
17652 GNULIB_FREOPEN=0;
17653 GNULIB_FSCANF=0;
17654 GNULIB_FSEEK=0;
17655 GNULIB_FSEEKO=0;
17656 GNULIB_FTELL=0;
17657 GNULIB_FTELLO=0;
17658 GNULIB_FWRITE=0;
17659 GNULIB_GETC=0;
17660 GNULIB_GETCHAR=0;
17661 GNULIB_GETDELIM=0;
17662 GNULIB_GETLINE=0;
17663 GNULIB_OBSTACK_PRINTF=0;
17664 GNULIB_OBSTACK_PRINTF_POSIX=0;
17665 GNULIB_PCLOSE=0;
17666 GNULIB_PERROR=0;
17667 GNULIB_POPEN=0;
17668 GNULIB_PRINTF=0;
17669 GNULIB_PRINTF_POSIX=0;
17670 GNULIB_PUTC=0;
17671 GNULIB_PUTCHAR=0;
17672 GNULIB_PUTS=0;
17673 GNULIB_REMOVE=0;
17674 GNULIB_RENAME=0;
17675 GNULIB_RENAMEAT=0;
17676 GNULIB_SCANF=0;
17677 GNULIB_SNPRINTF=0;
17678 GNULIB_SPRINTF_POSIX=0;
17679 GNULIB_STDIO_H_NONBLOCKING=0;
17680 GNULIB_STDIO_H_SIGPIPE=0;
17681 GNULIB_TMPFILE=0;
17682 GNULIB_VASPRINTF=0;
17683 GNULIB_VFSCANF=0;
17684 GNULIB_VSCANF=0;
17685 GNULIB_VDPRINTF=0;
17686 GNULIB_VFPRINTF=0;
17687 GNULIB_VFPRINTF_POSIX=0;
17688 GNULIB_VPRINTF=0;
17689 GNULIB_VPRINTF_POSIX=0;
17690 GNULIB_VSNPRINTF=0;
17691 GNULIB_VSPRINTF_POSIX=0;
17692 HAVE_DECL_FPURGE=1;
17693 HAVE_DECL_FSEEKO=1;
17694 HAVE_DECL_FTELLO=1;
17695 HAVE_DECL_GETDELIM=1;
17696 HAVE_DECL_GETLINE=1;
17697 HAVE_DECL_OBSTACK_PRINTF=1;
17698 HAVE_DECL_SNPRINTF=1;
17699 HAVE_DECL_VSNPRINTF=1;
17700 HAVE_DPRINTF=1;
17701 HAVE_FSEEKO=1;
17702 HAVE_FTELLO=1;
17703 HAVE_PCLOSE=1;
17704 HAVE_POPEN=1;
17705 HAVE_RENAMEAT=1;
17706 HAVE_VASPRINTF=1;
17707 HAVE_VDPRINTF=1;
17708 REPLACE_DPRINTF=0;
17709 REPLACE_FCLOSE=0;
17710 REPLACE_FDOPEN=0;
17711 REPLACE_FFLUSH=0;
17712 REPLACE_FOPEN=0;
17713 REPLACE_FPRINTF=0;
17714 REPLACE_FPURGE=0;
17715 REPLACE_FREOPEN=0;
17716 REPLACE_FSEEK=0;
17717 REPLACE_FSEEKO=0;
17718 REPLACE_FTELL=0;
17719 REPLACE_FTELLO=0;
17720 REPLACE_GETDELIM=0;
17721 REPLACE_GETLINE=0;
17722 REPLACE_OBSTACK_PRINTF=0;
17723 REPLACE_PERROR=0;
17724 REPLACE_POPEN=0;
17725 REPLACE_PRINTF=0;
17726 REPLACE_REMOVE=0;
17727 REPLACE_RENAME=0;
17728 REPLACE_RENAMEAT=0;
17729 REPLACE_SNPRINTF=0;
17730 REPLACE_SPRINTF=0;
17731 REPLACE_STDIO_READ_FUNCS=0;
17732 REPLACE_STDIO_WRITE_FUNCS=0;
17733 REPLACE_TMPFILE=0;
17734 REPLACE_VASPRINTF=0;
17735 REPLACE_VDPRINTF=0;
17736 REPLACE_VFPRINTF=0;
17737 REPLACE_VPRINTF=0;
17738 REPLACE_VSNPRINTF=0;
17739 REPLACE_VSPRINTF=0;
17741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
17742 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
17743 if test "${ac_cv_struct_tm+set}" = set; then :
17744 $as_echo_n "(cached) " >&6
17745 else
17746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17747 /* end confdefs.h. */
17748 #include <sys/types.h>
17749 #include <time.h>
17752 main ()
17754 struct tm tm;
17755 int *p = &tm.tm_sec;
17756 return !p;
17758 return 0;
17760 _ACEOF
17761 if ac_fn_c_try_compile "$LINENO"; then :
17762 ac_cv_struct_tm=time.h
17763 else
17764 ac_cv_struct_tm=sys/time.h
17766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
17769 $as_echo "$ac_cv_struct_tm" >&6; }
17770 if test $ac_cv_struct_tm = sys/time.h; then
17772 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
17776 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
17777 #include <$ac_cv_struct_tm>
17780 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
17782 cat >>confdefs.h <<_ACEOF
17783 #define HAVE_STRUCT_TM_TM_ZONE 1
17784 _ACEOF
17789 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
17791 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
17793 else
17794 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
17796 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
17797 ac_have_decl=1
17798 else
17799 ac_have_decl=0
17802 cat >>confdefs.h <<_ACEOF
17803 #define HAVE_DECL_TZNAME $ac_have_decl
17804 _ACEOF
17806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
17807 $as_echo_n "checking for tzname... " >&6; }
17808 if test "${ac_cv_var_tzname+set}" = set; then :
17809 $as_echo_n "(cached) " >&6
17810 else
17811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17812 /* end confdefs.h. */
17813 #include <time.h>
17814 #if !HAVE_DECL_TZNAME
17815 extern char *tzname[];
17816 #endif
17819 main ()
17821 return tzname[0][0];
17823 return 0;
17825 _ACEOF
17826 if ac_fn_c_try_link "$LINENO"; then :
17827 ac_cv_var_tzname=yes
17828 else
17829 ac_cv_var_tzname=no
17831 rm -f core conftest.err conftest.$ac_objext \
17832 conftest$ac_exeext conftest.$ac_ext
17834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
17835 $as_echo "$ac_cv_var_tzname" >&6; }
17836 if test $ac_cv_var_tzname = yes; then
17838 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
17844 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
17846 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then :
17848 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
17855 ac_fn_c_check_decl "$LINENO" "strtoimax" "ac_cv_have_decl_strtoimax" "$ac_includes_default"
17856 if test "x$ac_cv_have_decl_strtoimax" = x""yes; then :
17857 ac_have_decl=1
17858 else
17859 ac_have_decl=0
17862 cat >>confdefs.h <<_ACEOF
17863 #define HAVE_DECL_STRTOIMAX $ac_have_decl
17864 _ACEOF
17868 ac_fn_c_check_decl "$LINENO" "strtoumax" "ac_cv_have_decl_strtoumax" "$ac_includes_default"
17869 if test "x$ac_cv_have_decl_strtoumax" = x""yes; then :
17870 ac_have_decl=1
17871 else
17872 ac_have_decl=0
17875 cat >>confdefs.h <<_ACEOF
17876 #define HAVE_DECL_STRTOUMAX $ac_have_decl
17877 _ACEOF
17881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
17882 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
17883 if test "${ac_cv_header_stat_broken+set}" = set; then :
17884 $as_echo_n "(cached) " >&6
17885 else
17886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17887 /* end confdefs.h. */
17888 #include <sys/types.h>
17889 #include <sys/stat.h>
17891 #if defined S_ISBLK && defined S_IFDIR
17892 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
17893 #endif
17895 #if defined S_ISBLK && defined S_IFCHR
17896 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
17897 #endif
17899 #if defined S_ISLNK && defined S_IFREG
17900 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
17901 #endif
17903 #if defined S_ISSOCK && defined S_IFREG
17904 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
17905 #endif
17907 _ACEOF
17908 if ac_fn_c_try_compile "$LINENO"; then :
17909 ac_cv_header_stat_broken=no
17910 else
17911 ac_cv_header_stat_broken=yes
17913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
17916 $as_echo "$ac_cv_header_stat_broken" >&6; }
17917 if test $ac_cv_header_stat_broken = yes; then
17919 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
17925 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
17926 if test "x$ac_cv_type_mode_t" = x""yes; then :
17928 else
17930 cat >>confdefs.h <<_ACEOF
17931 #define mode_t int
17932 _ACEOF
17944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
17945 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
17946 if test "${ac_cv_c_restrict+set}" = set; then :
17947 $as_echo_n "(cached) " >&6
17948 else
17949 ac_cv_c_restrict=no
17950 # The order here caters to the fact that C++ does not require restrict.
17951 for ac_kw in __restrict __restrict__ _Restrict restrict; do
17952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17953 /* end confdefs.h. */
17954 typedef int * int_ptr;
17955 int foo (int_ptr $ac_kw ip) {
17956 return ip[0];
17959 main ()
17961 int s[1];
17962 int * $ac_kw t = s;
17963 t[0] = 0;
17964 return foo(t)
17966 return 0;
17968 _ACEOF
17969 if ac_fn_c_try_compile "$LINENO"; then :
17970 ac_cv_c_restrict=$ac_kw
17972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17973 test "$ac_cv_c_restrict" != no && break
17974 done
17977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
17978 $as_echo "$ac_cv_c_restrict" >&6; }
17980 case $ac_cv_c_restrict in
17981 restrict) ;;
17982 no) $as_echo "#define restrict /**/" >>confdefs.h
17984 *) cat >>confdefs.h <<_ACEOF
17985 #define restrict $ac_cv_c_restrict
17986 _ACEOF
17988 esac
17992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
17993 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
17994 if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then :
17995 $as_echo_n "(cached) " >&6
17996 else
17997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17998 /* end confdefs.h. */
17999 #include <time.h>
18002 main ()
18004 static struct timespec x; x.tv_sec = x.tv_nsec;
18006 return 0;
18008 _ACEOF
18009 if ac_fn_c_try_compile "$LINENO"; then :
18010 gl_cv_sys_struct_timespec_in_time_h=yes
18011 else
18012 gl_cv_sys_struct_timespec_in_time_h=no
18014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
18017 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
18019 TIME_H_DEFINES_STRUCT_TIMESPEC=0
18020 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
18021 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
18022 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
18023 TIME_H_DEFINES_STRUCT_TIMESPEC=1
18024 else
18025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
18026 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
18027 if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then :
18028 $as_echo_n "(cached) " >&6
18029 else
18030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18031 /* end confdefs.h. */
18032 #include <sys/time.h>
18035 main ()
18037 static struct timespec x; x.tv_sec = x.tv_nsec;
18039 return 0;
18041 _ACEOF
18042 if ac_fn_c_try_compile "$LINENO"; then :
18043 gl_cv_sys_struct_timespec_in_sys_time_h=yes
18044 else
18045 gl_cv_sys_struct_timespec_in_sys_time_h=no
18047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
18050 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
18051 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
18052 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
18053 else
18054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
18055 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
18056 if test "${gl_cv_sys_struct_timespec_in_pthread_h+set}" = set; then :
18057 $as_echo_n "(cached) " >&6
18058 else
18059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18060 /* end confdefs.h. */
18061 #include <pthread.h>
18064 main ()
18066 static struct timespec x; x.tv_sec = x.tv_nsec;
18068 return 0;
18070 _ACEOF
18071 if ac_fn_c_try_compile "$LINENO"; then :
18072 gl_cv_sys_struct_timespec_in_pthread_h=yes
18073 else
18074 gl_cv_sys_struct_timespec_in_pthread_h=no
18076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
18079 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
18080 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
18081 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
18100 if test $gl_cv_have_include_next = yes; then
18101 gl_cv_next_time_h='<'time.h'>'
18102 else
18103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
18104 $as_echo_n "checking absolute name of <time.h>... " >&6; }
18105 if test "${gl_cv_next_time_h+set}" = set; then :
18106 $as_echo_n "(cached) " >&6
18107 else
18109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18110 /* end confdefs.h. */
18111 #include <time.h>
18113 _ACEOF
18114 case "$host_os" in
18115 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18116 *) gl_absname_cpp="$ac_cpp" ;;
18117 esac
18119 case "$host_os" in
18120 mingw*)
18121 gl_dirsep_regex='[/\\]'
18124 gl_dirsep_regex='\/'
18126 esac
18127 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
18129 gl_header_literal_regex=`echo 'time.h' \
18130 | sed -e "$gl_make_literal_regex_sed"`
18131 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18132 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18133 s|^/[^/]|//&|
18137 gl_cv_next_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18138 sed -n "$gl_absolute_header_sed"`'"'
18142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
18143 $as_echo "$gl_cv_next_time_h" >&6; }
18145 NEXT_TIME_H=$gl_cv_next_time_h
18147 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18148 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18149 gl_next_as_first_directive='<'time.h'>'
18150 else
18151 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18152 gl_next_as_first_directive=$gl_cv_next_time_h
18154 NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
18161 ac_fn_c_check_decl "$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "$ac_includes_default"
18162 if test "x$ac_cv_have_decl_localtime_r" = x""yes; then :
18163 ac_have_decl=1
18164 else
18165 ac_have_decl=0
18168 cat >>confdefs.h <<_ACEOF
18169 #define HAVE_DECL_LOCALTIME_R $ac_have_decl
18170 _ACEOF
18175 if false; then
18176 GL_COND_LIBTOOL_TRUE=
18177 GL_COND_LIBTOOL_FALSE='#'
18178 else
18179 GL_COND_LIBTOOL_TRUE='#'
18180 GL_COND_LIBTOOL_FALSE=
18183 gl_cond_libtool=false
18184 gl_libdeps=
18185 gl_ltlibdeps=
18186 gl_m4_base='m4'
18196 gl_source_base='lib'
18199 if test $ac_cv_func_alloca_works = no; then
18203 # Define an additional variable used in the Makefile substitution.
18204 if test $ac_cv_working_alloca_h = yes; then
18205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
18206 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
18207 if test "${gl_cv_rpl_alloca+set}" = set; then :
18208 $as_echo_n "(cached) " >&6
18209 else
18211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18212 /* end confdefs.h. */
18214 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
18215 Need own alloca
18216 #endif
18218 _ACEOF
18219 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18220 $EGREP "Need own alloca" >/dev/null 2>&1; then :
18221 gl_cv_rpl_alloca=yes
18222 else
18223 gl_cv_rpl_alloca=no
18225 rm -f conftest*
18229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
18230 $as_echo "$gl_cv_rpl_alloca" >&6; }
18231 if test $gl_cv_rpl_alloca = yes; then
18233 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
18235 ALLOCA_H=alloca.h
18236 else
18237 ALLOCA_H=
18239 else
18240 ALLOCA_H=alloca.h
18243 if test -n "$ALLOCA_H"; then
18244 GL_GENERATE_ALLOCA_H_TRUE=
18245 GL_GENERATE_ALLOCA_H_FALSE='#'
18246 else
18247 GL_GENERATE_ALLOCA_H_TRUE='#'
18248 GL_GENERATE_ALLOCA_H_FALSE=
18277 $as_echo "#define HAVE_DUP2 1" >>confdefs.h
18280 if test $HAVE_DUP2 = 1; then
18281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5
18282 $as_echo_n "checking whether dup2 works... " >&6; }
18283 if test "${gl_cv_func_dup2_works+set}" = set; then :
18284 $as_echo_n "(cached) " >&6
18285 else
18286 if test "$cross_compiling" = yes; then :
18287 case "$host_os" in
18288 mingw*) # on this platform, dup2 always returns 0 for success
18289 gl_cv_func_dup2_works="guessing no" ;;
18290 cygwin*) # on cygwin 1.5.x, dup2(1,1) returns 0
18291 gl_cv_func_dup2_works="guessing no" ;;
18292 linux*) # On linux between 2008-07-27 and 2009-05-11, dup2 of a
18293 # closed fd may yield -EBADF instead of -1 / errno=EBADF.
18294 gl_cv_func_dup2_works="guessing no" ;;
18295 freebsd*) # on FreeBSD 6.1, dup2(1,1000000) gives EMFILE, not EBADF.
18296 gl_cv_func_dup2_works="guessing no" ;;
18297 haiku*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC.
18298 gl_cv_func_dup2_works="guessing no" ;;
18299 *) gl_cv_func_dup2_works="guessing yes" ;;
18300 esac
18301 else
18302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18303 /* end confdefs.h. */
18305 #include <unistd.h>
18306 #include <fcntl.h>
18307 #include <errno.h>
18309 main ()
18311 int result = 0;
18312 #ifdef FD_CLOEXEC
18313 if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1)
18314 result |= 1;
18315 #endif
18316 if (dup2 (1, 1) == 0)
18317 result |= 2;
18318 #ifdef FD_CLOEXEC
18319 if (fcntl (1, F_GETFD) != FD_CLOEXEC)
18320 result |= 4;
18321 #endif
18322 close (0);
18323 if (dup2 (0, 0) != -1)
18324 result |= 8;
18325 /* Many gnulib modules require POSIX conformance of EBADF. */
18326 if (dup2 (2, 1000000) == -1 && errno != EBADF)
18327 result |= 16;
18328 return result;
18331 return 0;
18334 _ACEOF
18335 if ac_fn_c_try_run "$LINENO"; then :
18336 gl_cv_func_dup2_works=yes
18337 else
18338 gl_cv_func_dup2_works=no
18340 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18341 conftest.$ac_objext conftest.beam conftest.$ac_ext
18346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5
18347 $as_echo "$gl_cv_func_dup2_works" >&6; }
18348 case "$gl_cv_func_dup2_works" in
18349 *yes) ;;
18351 REPLACE_DUP2=1
18353 esac
18357 if test $HAVE_DUP2 = 0 || test $REPLACE_DUP2 = 1; then
18366 gl_LIBOBJS="$gl_LIBOBJS dup2.$ac_objext"
18375 GNULIB_DUP2=1
18387 # Persuade glibc <stdlib.h> to declare getloadavg().
18390 gl_save_LIBS=$LIBS
18392 # getloadvg is present in libc on glibc >= 2.2, MacOS X, FreeBSD >= 2.0,
18393 # NetBSD >= 0.9, OpenBSD >= 2.0, Solaris >= 7.
18394 HAVE_GETLOADAVG=1
18395 ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
18396 if test "x$ac_cv_func_getloadavg" = x""yes; then :
18398 else
18399 gl_func_getloadavg_done=no
18401 # Some systems with -lutil have (and need) -lkvm as well, some do not.
18402 # On Solaris, -lkvm requires nlist from -lelf, so check that first
18403 # to get the right answer into the cache.
18404 # For kstat on solaris, we need to test for libelf and libkvm to force the
18405 # definition of SVR4 below.
18406 if test $gl_func_getloadavg_done = no; then
18407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
18408 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
18409 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then :
18410 $as_echo_n "(cached) " >&6
18411 else
18412 ac_check_lib_save_LIBS=$LIBS
18413 LIBS="-lelf $LIBS"
18414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18415 /* end confdefs.h. */
18417 /* Override any GCC internal prototype to avoid an error.
18418 Use char because int might match the return type of a GCC
18419 builtin and then its argument prototype would still apply. */
18420 #ifdef __cplusplus
18421 extern "C"
18422 #endif
18423 char elf_begin ();
18425 main ()
18427 return elf_begin ();
18429 return 0;
18431 _ACEOF
18432 if ac_fn_c_try_link "$LINENO"; then :
18433 ac_cv_lib_elf_elf_begin=yes
18434 else
18435 ac_cv_lib_elf_elf_begin=no
18437 rm -f core conftest.err conftest.$ac_objext \
18438 conftest$ac_exeext conftest.$ac_ext
18439 LIBS=$ac_check_lib_save_LIBS
18441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
18442 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
18443 if test "x$ac_cv_lib_elf_elf_begin" = x""yes; then :
18444 LIBS="-lelf $LIBS"
18447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
18448 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
18449 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
18450 $as_echo_n "(cached) " >&6
18451 else
18452 ac_check_lib_save_LIBS=$LIBS
18453 LIBS="-lkvm $LIBS"
18454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18455 /* end confdefs.h. */
18457 /* Override any GCC internal prototype to avoid an error.
18458 Use char because int might match the return type of a GCC
18459 builtin and then its argument prototype would still apply. */
18460 #ifdef __cplusplus
18461 extern "C"
18462 #endif
18463 char kvm_open ();
18465 main ()
18467 return kvm_open ();
18469 return 0;
18471 _ACEOF
18472 if ac_fn_c_try_link "$LINENO"; then :
18473 ac_cv_lib_kvm_kvm_open=yes
18474 else
18475 ac_cv_lib_kvm_kvm_open=no
18477 rm -f core conftest.err conftest.$ac_objext \
18478 conftest$ac_exeext conftest.$ac_ext
18479 LIBS=$ac_check_lib_save_LIBS
18481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
18482 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
18483 if test "x$ac_cv_lib_kvm_kvm_open" = x""yes; then :
18484 LIBS="-lkvm $LIBS"
18487 # Check for the 4.4BSD definition of getloadavg.
18488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
18489 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
18490 if test "${ac_cv_lib_util_getloadavg+set}" = set; then :
18491 $as_echo_n "(cached) " >&6
18492 else
18493 ac_check_lib_save_LIBS=$LIBS
18494 LIBS="-lutil $LIBS"
18495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18496 /* end confdefs.h. */
18498 /* Override any GCC internal prototype to avoid an error.
18499 Use char because int might match the return type of a GCC
18500 builtin and then its argument prototype would still apply. */
18501 #ifdef __cplusplus
18502 extern "C"
18503 #endif
18504 char getloadavg ();
18506 main ()
18508 return getloadavg ();
18510 return 0;
18512 _ACEOF
18513 if ac_fn_c_try_link "$LINENO"; then :
18514 ac_cv_lib_util_getloadavg=yes
18515 else
18516 ac_cv_lib_util_getloadavg=no
18518 rm -f core conftest.err conftest.$ac_objext \
18519 conftest$ac_exeext conftest.$ac_ext
18520 LIBS=$ac_check_lib_save_LIBS
18522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
18523 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
18524 if test "x$ac_cv_lib_util_getloadavg" = x""yes; then :
18525 LIBS="-lutil $LIBS" gl_func_getloadavg_done=yes
18530 if test $gl_func_getloadavg_done = no; then
18531 # There is a commonly available library for RS/6000 AIX.
18532 # Since it is not a standard part of AIX, it might be installed locally.
18533 gl_getloadavg_LIBS=$LIBS
18534 LIBS="-L/usr/local/lib $LIBS"
18535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
18536 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
18537 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then :
18538 $as_echo_n "(cached) " >&6
18539 else
18540 ac_check_lib_save_LIBS=$LIBS
18541 LIBS="-lgetloadavg $LIBS"
18542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18543 /* end confdefs.h. */
18545 /* Override any GCC internal prototype to avoid an error.
18546 Use char because int might match the return type of a GCC
18547 builtin and then its argument prototype would still apply. */
18548 #ifdef __cplusplus
18549 extern "C"
18550 #endif
18551 char getloadavg ();
18553 main ()
18555 return getloadavg ();
18557 return 0;
18559 _ACEOF
18560 if ac_fn_c_try_link "$LINENO"; then :
18561 ac_cv_lib_getloadavg_getloadavg=yes
18562 else
18563 ac_cv_lib_getloadavg_getloadavg=no
18565 rm -f core conftest.err conftest.$ac_objext \
18566 conftest$ac_exeext conftest.$ac_ext
18567 LIBS=$ac_check_lib_save_LIBS
18569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
18570 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
18571 if test "x$ac_cv_lib_getloadavg_getloadavg" = x""yes; then :
18572 LIBS="-lgetloadavg $LIBS" gl_func_getloadavg_done=yes
18573 else
18574 LIBS=$gl_getloadavg_LIBS
18579 # Set up the replacement function if necessary.
18580 if test $gl_func_getloadavg_done = no; then
18581 HAVE_GETLOADAVG=0
18583 # Solaris has libkstat which does not require root.
18584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
18585 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
18586 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
18587 $as_echo_n "(cached) " >&6
18588 else
18589 ac_check_lib_save_LIBS=$LIBS
18590 LIBS="-lkstat $LIBS"
18591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18592 /* end confdefs.h. */
18594 /* Override any GCC internal prototype to avoid an error.
18595 Use char because int might match the return type of a GCC
18596 builtin and then its argument prototype would still apply. */
18597 #ifdef __cplusplus
18598 extern "C"
18599 #endif
18600 char kstat_open ();
18602 main ()
18604 return kstat_open ();
18606 return 0;
18608 _ACEOF
18609 if ac_fn_c_try_link "$LINENO"; then :
18610 ac_cv_lib_kstat_kstat_open=yes
18611 else
18612 ac_cv_lib_kstat_kstat_open=no
18614 rm -f core conftest.err conftest.$ac_objext \
18615 conftest$ac_exeext conftest.$ac_ext
18616 LIBS=$ac_check_lib_save_LIBS
18618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
18619 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
18620 if test "x$ac_cv_lib_kstat_kstat_open" = x""yes; then :
18621 cat >>confdefs.h <<_ACEOF
18622 #define HAVE_LIBKSTAT 1
18623 _ACEOF
18625 LIBS="-lkstat $LIBS"
18629 test $ac_cv_lib_kstat_kstat_open = yes && gl_func_getloadavg_done=yes
18631 # AIX has libperfstat which does not require root
18632 if test $gl_func_getloadavg_done = no; then
18633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perfstat_cpu_total in -lperfstat" >&5
18634 $as_echo_n "checking for perfstat_cpu_total in -lperfstat... " >&6; }
18635 if test "${ac_cv_lib_perfstat_perfstat_cpu_total+set}" = set; then :
18636 $as_echo_n "(cached) " >&6
18637 else
18638 ac_check_lib_save_LIBS=$LIBS
18639 LIBS="-lperfstat $LIBS"
18640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18641 /* end confdefs.h. */
18643 /* Override any GCC internal prototype to avoid an error.
18644 Use char because int might match the return type of a GCC
18645 builtin and then its argument prototype would still apply. */
18646 #ifdef __cplusplus
18647 extern "C"
18648 #endif
18649 char perfstat_cpu_total ();
18651 main ()
18653 return perfstat_cpu_total ();
18655 return 0;
18657 _ACEOF
18658 if ac_fn_c_try_link "$LINENO"; then :
18659 ac_cv_lib_perfstat_perfstat_cpu_total=yes
18660 else
18661 ac_cv_lib_perfstat_perfstat_cpu_total=no
18663 rm -f core conftest.err conftest.$ac_objext \
18664 conftest$ac_exeext conftest.$ac_ext
18665 LIBS=$ac_check_lib_save_LIBS
18667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_perfstat_perfstat_cpu_total" >&5
18668 $as_echo "$ac_cv_lib_perfstat_perfstat_cpu_total" >&6; }
18669 if test "x$ac_cv_lib_perfstat_perfstat_cpu_total" = x""yes; then :
18670 cat >>confdefs.h <<_ACEOF
18671 #define HAVE_LIBPERFSTAT 1
18672 _ACEOF
18674 LIBS="-lperfstat $LIBS"
18678 test $ac_cv_lib_perfstat_perfstat_cpu_total = yes && gl_func_getloadavg_done=yes
18681 if test $gl_func_getloadavg_done = no; then
18682 ac_fn_c_check_header_mongrel "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
18683 if test "x$ac_cv_header_sys_dg_sys_info_h" = x""yes; then :
18684 gl_func_getloadavg_done=yes
18686 $as_echo "#define DGUX 1" >>confdefs.h
18688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
18689 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
18690 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then :
18691 $as_echo_n "(cached) " >&6
18692 else
18693 ac_check_lib_save_LIBS=$LIBS
18694 LIBS="-ldgc $LIBS"
18695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18696 /* end confdefs.h. */
18698 /* Override any GCC internal prototype to avoid an error.
18699 Use char because int might match the return type of a GCC
18700 builtin and then its argument prototype would still apply. */
18701 #ifdef __cplusplus
18702 extern "C"
18703 #endif
18704 char dg_sys_info ();
18706 main ()
18708 return dg_sys_info ();
18710 return 0;
18712 _ACEOF
18713 if ac_fn_c_try_link "$LINENO"; then :
18714 ac_cv_lib_dgc_dg_sys_info=yes
18715 else
18716 ac_cv_lib_dgc_dg_sys_info=no
18718 rm -f core conftest.err conftest.$ac_objext \
18719 conftest$ac_exeext conftest.$ac_ext
18720 LIBS=$ac_check_lib_save_LIBS
18722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
18723 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
18724 if test "x$ac_cv_lib_dgc_dg_sys_info" = x""yes; then :
18725 cat >>confdefs.h <<_ACEOF
18726 #define HAVE_LIBDGC 1
18727 _ACEOF
18729 LIBS="-ldgc $LIBS"
18741 if test "x$gl_save_LIBS" = x; then
18742 GETLOADAVG_LIBS=$LIBS
18743 else
18744 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$gl_save_LIBS!!"`
18746 LIBS=$gl_save_LIBS
18749 # Test whether the system declares getloadavg. Solaris has the function
18750 # but declares it in <sys/loadavg.h>, not <stdlib.h>.
18751 for ac_header in sys/loadavg.h
18752 do :
18753 ac_fn_c_check_header_mongrel "$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default"
18754 if test "x$ac_cv_header_sys_loadavg_h" = x""yes; then :
18755 cat >>confdefs.h <<_ACEOF
18756 #define HAVE_SYS_LOADAVG_H 1
18757 _ACEOF
18761 done
18763 if test $ac_cv_header_sys_loadavg_h = yes; then
18764 HAVE_SYS_LOADAVG_H=1
18765 else
18766 HAVE_SYS_LOADAVG_H=0
18768 ac_fn_c_check_decl "$LINENO" "getloadavg" "ac_cv_have_decl_getloadavg" "#if HAVE_SYS_LOADAVG_H
18769 # include <sys/loadavg.h>
18770 #endif
18771 #include <stdlib.h>
18773 if test "x$ac_cv_have_decl_getloadavg" = x""yes; then :
18775 else
18776 HAVE_DECL_GETLOADAVG=0
18780 if test $HAVE_GETLOADAVG = 0; then
18789 gl_LIBOBJS="$gl_LIBOBJS getloadavg.$ac_objext"
18792 # Figure out what our getloadavg.c needs.
18794 # On HPUX9, an unprivileged user can get load averages this way.
18795 if test $gl_func_getloadavg_done = no; then
18796 for ac_func in pstat_getdynamic
18797 do :
18798 ac_fn_c_check_func "$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
18799 if test "x$ac_cv_func_pstat_getdynamic" = x""yes; then :
18800 cat >>confdefs.h <<_ACEOF
18801 #define HAVE_PSTAT_GETDYNAMIC 1
18802 _ACEOF
18803 gl_func_getloadavg_done=yes
18805 done
18809 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
18810 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
18811 # Irix 4.0.5F has the header but not the library.
18812 if test $gl_func_getloadavg_done = no && test "$ac_cv_lib_elf_elf_begin" = yes \
18813 && test "$ac_cv_lib_kvm_kvm_open" = yes; then
18814 gl_func_getloadavg_done=yes
18816 $as_echo "#define SVR4 1" >>confdefs.h
18820 if test $gl_func_getloadavg_done = no; then
18821 ac_fn_c_check_header_mongrel "$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
18822 if test "x$ac_cv_header_inq_stats_cpustats_h" = x""yes; then :
18823 gl_func_getloadavg_done=yes
18825 $as_echo "#define UMAX 1" >>confdefs.h
18828 $as_echo "#define UMAX4_3 1" >>confdefs.h
18835 if test $gl_func_getloadavg_done = no; then
18836 ac_fn_c_check_header_mongrel "$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
18837 if test "x$ac_cv_header_sys_cpustats_h" = x""yes; then :
18838 gl_func_getloadavg_done=yes; $as_echo "#define UMAX 1" >>confdefs.h
18845 if test $gl_func_getloadavg_done = no; then
18846 for ac_header in mach/mach.h
18847 do :
18848 ac_fn_c_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
18849 if test "x$ac_cv_header_mach_mach_h" = x""yes; then :
18850 cat >>confdefs.h <<_ACEOF
18851 #define HAVE_MACH_MACH_H 1
18852 _ACEOF
18856 done
18860 for ac_header in nlist.h
18861 do :
18862 ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
18863 if test "x$ac_cv_header_nlist_h" = x""yes; then :
18864 cat >>confdefs.h <<_ACEOF
18865 #define HAVE_NLIST_H 1
18866 _ACEOF
18867 ac_fn_c_check_member "$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
18869 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x""yes; then :
18871 cat >>confdefs.h <<_ACEOF
18872 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
18873 _ACEOF
18878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18879 /* end confdefs.h. */
18880 #include <nlist.h>
18882 main ()
18884 struct nlist x;
18885 #ifdef HAVE_STRUCT_NLIST_N_UN_N_NAME
18886 x.n_un.n_name = "";
18887 #else
18888 x.n_name = "";
18889 #endif
18891 return 0;
18893 _ACEOF
18894 if ac_fn_c_try_link "$LINENO"; then :
18896 $as_echo "#define N_NAME_POINTER 1" >>confdefs.h
18899 rm -f core conftest.err conftest.$ac_objext \
18900 conftest$ac_exeext conftest.$ac_ext
18904 done
18912 GNULIB_GETLOADAVG=1
18923 if test $REPLACE_GETOPT = 1; then
18932 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
18942 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
18947 GNULIB_GL_UNISTD_H_GETOPT=1
18955 REPLACE_GETOPT=0
18958 if test -n "$gl_replace_getopt"; then :
18960 REPLACE_GETOPT=1
18965 if test $REPLACE_GETOPT = 1; then
18967 GETOPT_H=getopt.h
18969 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
18975 if test $REPLACE_GETOPT = 1; then
18984 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
18994 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
18999 GNULIB_GL_UNISTD_H_GETOPT=1
19008 if test $ac_cv_func_lstat = yes; then
19010 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
19011 *no)
19012 REPLACE_LSTAT=1
19014 esac
19015 else
19016 HAVE_LSTAT=0
19019 if test $REPLACE_LSTAT = 1; then
19028 gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext"
19040 GNULIB_LSTAT=1
19052 if test $APPLE_UNIVERSAL_BUILD = 1; then
19053 # A universal build on Apple MacOS X platforms.
19054 # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode.
19055 # But we need a configuration result that is valid in both modes.
19056 gl_cv_func_working_mktime=no
19058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
19059 $as_echo_n "checking for working mktime... " >&6; }
19060 if test "${gl_cv_func_working_mktime+set}" = set; then :
19061 $as_echo_n "(cached) " >&6
19062 else
19063 if test "$cross_compiling" = yes; then :
19064 gl_cv_func_working_mktime=no
19065 else
19066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19067 /* end confdefs.h. */
19068 /* Test program from Paul Eggert and Tony Leneis. */
19069 #include <limits.h>
19070 #include <stdlib.h>
19071 #include <time.h>
19073 #ifdef HAVE_UNISTD_H
19074 # include <unistd.h>
19075 #endif
19077 #ifndef HAVE_ALARM
19078 # define alarm(X) /* empty */
19079 #endif
19081 /* Work around redefinition to rpl_putenv by other config tests. */
19082 #undef putenv
19084 static time_t time_t_max;
19085 static time_t time_t_min;
19087 /* Values we'll use to set the TZ environment variable. */
19088 static char *tz_strings[] = {
19089 (char *) 0, "TZ=GMT0", "TZ=JST-9",
19090 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
19092 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
19094 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
19095 Based on a problem report from Andreas Jaeger. */
19096 static int
19097 spring_forward_gap ()
19099 /* glibc (up to about 1998-10-07) failed this test. */
19100 struct tm tm;
19102 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
19103 instead of "TZ=America/Vancouver" in order to detect the bug even
19104 on systems that don't support the Olson extension, or don't have the
19105 full zoneinfo tables installed. */
19106 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
19108 tm.tm_year = 98;
19109 tm.tm_mon = 3;
19110 tm.tm_mday = 5;
19111 tm.tm_hour = 2;
19112 tm.tm_min = 0;
19113 tm.tm_sec = 0;
19114 tm.tm_isdst = -1;
19115 return mktime (&tm) != (time_t) -1;
19118 static int
19119 mktime_test1 (time_t now)
19121 struct tm *lt;
19122 return ! (lt = localtime (&now)) || mktime (lt) == now;
19125 static int
19126 mktime_test (time_t now)
19128 return (mktime_test1 (now)
19129 && mktime_test1 ((time_t) (time_t_max - now))
19130 && mktime_test1 ((time_t) (time_t_min + now)));
19133 static int
19134 irix_6_4_bug ()
19136 /* Based on code from Ariel Faigon. */
19137 struct tm tm;
19138 tm.tm_year = 96;
19139 tm.tm_mon = 3;
19140 tm.tm_mday = 0;
19141 tm.tm_hour = 0;
19142 tm.tm_min = 0;
19143 tm.tm_sec = 0;
19144 tm.tm_isdst = -1;
19145 mktime (&tm);
19146 return tm.tm_mon == 2 && tm.tm_mday == 31;
19149 static int
19150 bigtime_test (int j)
19152 struct tm tm;
19153 time_t now;
19154 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
19155 now = mktime (&tm);
19156 if (now != (time_t) -1)
19158 struct tm *lt = localtime (&now);
19159 if (! (lt
19160 && lt->tm_year == tm.tm_year
19161 && lt->tm_mon == tm.tm_mon
19162 && lt->tm_mday == tm.tm_mday
19163 && lt->tm_hour == tm.tm_hour
19164 && lt->tm_min == tm.tm_min
19165 && lt->tm_sec == tm.tm_sec
19166 && lt->tm_yday == tm.tm_yday
19167 && lt->tm_wday == tm.tm_wday
19168 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
19169 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
19170 return 0;
19172 return 1;
19175 static int
19176 year_2050_test ()
19178 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
19179 ignoring leap seconds. */
19180 unsigned long int answer = 2527315200UL;
19182 struct tm tm;
19183 time_t t;
19184 tm.tm_year = 2050 - 1900;
19185 tm.tm_mon = 2 - 1;
19186 tm.tm_mday = 1;
19187 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
19188 tm.tm_isdst = -1;
19190 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
19191 instead of "TZ=America/Vancouver" in order to detect the bug even
19192 on systems that don't support the Olson extension, or don't have the
19193 full zoneinfo tables installed. */
19194 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
19196 t = mktime (&tm);
19198 /* Check that the result is either a failure, or close enough
19199 to the correct answer that we can assume the discrepancy is
19200 due to leap seconds. */
19201 return (t == (time_t) -1
19202 || (0 < t && answer - 120 <= t && t <= answer + 120));
19206 main ()
19208 int result = 0;
19209 time_t t, delta;
19210 int i, j;
19211 int time_t_signed_magnitude = (time_t) ~ (time_t) 0 < (time_t) -1;
19212 int time_t_signed = ! ((time_t) 0 < (time_t) -1);
19214 /* This test makes some buggy mktime implementations loop.
19215 Give up after 60 seconds; a mktime slower than that
19216 isn't worth using anyway. */
19217 alarm (60);
19219 time_t_max = (! time_t_signed
19220 ? (time_t) -1
19221 : ((((time_t) 1 << (sizeof (time_t) * CHAR_BIT - 2)) - 1)
19222 * 2 + 1));
19223 time_t_min = (! time_t_signed
19224 ? (time_t) 0
19225 : time_t_signed_magnitude
19226 ? ~ (time_t) 0
19227 : ~ time_t_max);
19229 delta = time_t_max / 997; /* a suitable prime number */
19230 for (i = 0; i < N_STRINGS; i++)
19232 if (tz_strings[i])
19233 putenv (tz_strings[i]);
19235 for (t = 0; t <= time_t_max - delta; t += delta)
19236 if (! mktime_test (t))
19237 result |= 1;
19238 if (! (mktime_test ((time_t) 1)
19239 && mktime_test ((time_t) (60 * 60))
19240 && mktime_test ((time_t) (60 * 60 * 24))))
19241 result |= 2;
19243 for (j = 1; ; j <<= 1)
19244 if (! bigtime_test (j))
19245 result |= 4;
19246 else if (INT_MAX / 2 < j)
19247 break;
19248 if (! bigtime_test (INT_MAX))
19249 result |= 8;
19251 if (! irix_6_4_bug ())
19252 result |= 16;
19253 if (! spring_forward_gap ())
19254 result |= 32;
19255 if (! year_2050_test ())
19256 result |= 64;
19257 return result;
19259 _ACEOF
19260 if ac_fn_c_try_run "$LINENO"; then :
19261 gl_cv_func_working_mktime=yes
19262 else
19263 gl_cv_func_working_mktime=no
19265 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19266 conftest.$ac_objext conftest.beam conftest.$ac_ext
19271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_mktime" >&5
19272 $as_echo "$gl_cv_func_working_mktime" >&6; }
19274 if test $gl_cv_func_working_mktime = no; then
19275 REPLACE_MKTIME=1
19276 else
19277 REPLACE_MKTIME=0
19280 if test $REPLACE_MKTIME = 1; then
19289 gl_LIBOBJS="$gl_LIBOBJS mktime.$ac_objext"
19300 GNULIB_MKTIME=1
19311 LIB_PTHREAD_SIGMASK=
19314 if test $ac_cv_func_pthread_sigmask = yes; then
19316 else
19317 HAVE_PTHREAD_SIGMASK=0
19318 REPLACE_PTHREAD_SIGMASK=1
19324 if test $HAVE_PTHREAD_SIGMASK = 1; then
19327 if test -z "$LIB_PTHREAD_SIGMASK"; then
19328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask works without -lpthread" >&5
19329 $as_echo_n "checking whether pthread_sigmask works without -lpthread... " >&6; }
19330 if test "${gl_cv_func_pthread_sigmask_in_libc_works+set}" = set; then :
19331 $as_echo_n "(cached) " >&6
19332 else
19334 if test "$cross_compiling" = yes; then :
19336 case "$host_os" in
19337 freebsd* | hpux* | solaris | solaris2.[2-9]*)
19338 gl_cv_func_pthread_sigmask_in_libc_works="guessing no";;
19340 gl_cv_func_pthread_sigmask_in_libc_works="guessing yes";;
19341 esac
19343 else
19344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19345 /* end confdefs.h. */
19347 #include <pthread.h>
19348 #include <signal.h>
19349 #include <stddef.h>
19350 int main ()
19352 sigset_t set;
19353 sigemptyset (&set);
19354 return pthread_sigmask (1729, &set, NULL) != 0;
19356 _ACEOF
19357 if ac_fn_c_try_run "$LINENO"; then :
19358 gl_cv_func_pthread_sigmask_in_libc_works=no
19359 else
19360 gl_cv_func_pthread_sigmask_in_libc_works=yes
19362 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19363 conftest.$ac_objext conftest.beam conftest.$ac_ext
19368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_in_libc_works" >&5
19369 $as_echo "$gl_cv_func_pthread_sigmask_in_libc_works" >&6; }
19370 case "$gl_cv_func_pthread_sigmask_in_libc_works" in
19371 *no)
19372 REPLACE_PTHREAD_SIGMASK=1
19374 $as_echo "#define PTHREAD_SIGMASK_INEFFECTIVE 1" >>confdefs.h
19377 esac
19380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask returns error numbers" >&5
19381 $as_echo_n "checking whether pthread_sigmask returns error numbers... " >&6; }
19382 if test "${gl_cv_func_pthread_sigmask_return_works+set}" = set; then :
19383 $as_echo_n "(cached) " >&6
19384 else
19386 gl_save_LIBS="$LIBS"
19387 LIBS="$LIBS $LIB_PTHREAD_SIGMASK"
19388 if test "$cross_compiling" = yes; then :
19389 case "$host_os" in
19390 cygwin*)
19391 gl_cv_func_pthread_sigmask_return_works="guessing no";;
19393 gl_cv_func_pthread_sigmask_return_works="guessing yes";;
19394 esac
19396 else
19397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19398 /* end confdefs.h. */
19400 #include <pthread.h>
19401 #include <signal.h>
19402 #include <stddef.h>
19403 int main ()
19405 sigset_t set;
19406 sigemptyset (&set);
19407 if (pthread_sigmask (1729, &set, NULL) == -1)
19408 return 1;
19409 return 0;
19411 _ACEOF
19412 if ac_fn_c_try_run "$LINENO"; then :
19413 gl_cv_func_pthread_sigmask_return_works=yes
19414 else
19415 gl_cv_func_pthread_sigmask_return_works=no
19417 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19418 conftest.$ac_objext conftest.beam conftest.$ac_ext
19421 LIBS="$gl_save_LIBS"
19424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_return_works" >&5
19425 $as_echo "$gl_cv_func_pthread_sigmask_return_works" >&6; }
19426 case "$gl_cv_func_pthread_sigmask_return_works" in
19427 *no)
19428 REPLACE_PTHREAD_SIGMASK=1
19430 $as_echo "#define PTHREAD_SIGMASK_FAILS_WITH_ERRNO 1" >>confdefs.h
19433 esac
19435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask unblocks signals correctly" >&5
19436 $as_echo_n "checking whether pthread_sigmask unblocks signals correctly... " >&6; }
19437 if test "${gl_cv_func_pthread_sigmask_unblock_works+set}" = set; then :
19438 $as_echo_n "(cached) " >&6
19439 else
19441 case "$host_os" in
19442 irix*)
19443 gl_cv_func_pthread_sigmask_unblock_works="guessing no";;
19445 gl_cv_func_pthread_sigmask_unblock_works="guessing yes";;
19446 esac
19447 gl_save_LIBS="$LIBS"
19448 LIBS="$LIBS $LIBMULTITHREAD"
19449 if test "$cross_compiling" = yes; then :
19451 else
19452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19453 /* end confdefs.h. */
19455 #include <pthread.h>
19456 #include <signal.h>
19457 #include <stdio.h>
19458 #include <stdlib.h>
19459 #include <unistd.h>
19460 static volatile int sigint_occurred;
19461 static void
19462 sigint_handler (int sig)
19464 sigint_occurred++;
19466 int main ()
19468 sigset_t set;
19469 int pid = getpid ();
19470 char command[80];
19471 signal (SIGINT, sigint_handler);
19472 sigemptyset (&set);
19473 sigaddset (&set, SIGINT);
19474 if (!(pthread_sigmask (SIG_BLOCK, &set, NULL) == 0))
19475 return 1;
19476 sprintf (command, "sh -c 'sleep 1; kill -%d %d' &", SIGINT, pid);
19477 if (!(system (command) == 0))
19478 return 2;
19479 sleep (2);
19480 if (!(sigint_occurred == 0))
19481 return 3;
19482 if (!(pthread_sigmask (SIG_UNBLOCK, &set, NULL) == 0))
19483 return 4;
19484 if (!(sigint_occurred == 1)) /* This fails on IRIX. */
19485 return 5;
19486 return 0;
19488 _ACEOF
19489 if ac_fn_c_try_run "$LINENO"; then :
19491 else
19492 gl_cv_func_pthread_sigmask_unblock_works=no
19494 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19495 conftest.$ac_objext conftest.beam conftest.$ac_ext
19498 LIBS="$gl_save_LIBS"
19501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_unblock_works" >&5
19502 $as_echo "$gl_cv_func_pthread_sigmask_unblock_works" >&6; }
19503 case "$gl_cv_func_pthread_sigmask_unblock_works" in
19504 *no)
19505 REPLACE_PTHREAD_SIGMASK=1
19507 $as_echo "#define PTHREAD_SIGMASK_UNBLOCK_BUG 1" >>confdefs.h
19510 esac
19513 if test $HAVE_PTHREAD_SIGMASK = 0 || test $REPLACE_PTHREAD_SIGMASK = 1; then
19522 gl_LIBOBJS="$gl_LIBOBJS pthread_sigmask.$ac_objext"
19525 if test $HAVE_PTHREAD_SIGMASK = 1; then
19527 $as_echo "#define HAVE_PTHREAD_SIGMASK 1" >>confdefs.h
19537 GNULIB_PTHREAD_SIGMASK=1
19546 if test $ac_cv_func_readlink = no; then
19547 HAVE_READLINK=0
19548 else
19549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
19550 $as_echo_n "checking whether readlink signature is correct... " >&6; }
19551 if test "${gl_cv_decl_readlink_works+set}" = set; then :
19552 $as_echo_n "(cached) " >&6
19553 else
19554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19555 /* end confdefs.h. */
19556 #include <unistd.h>
19557 /* Cause compilation failure if original declaration has wrong type. */
19558 ssize_t readlink (const char *, char *, size_t);
19560 main ()
19564 return 0;
19566 _ACEOF
19567 if ac_fn_c_try_compile "$LINENO"; then :
19568 gl_cv_decl_readlink_works=yes
19569 else
19570 gl_cv_decl_readlink_works=no
19572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
19575 $as_echo "$gl_cv_decl_readlink_works" >&6; }
19576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
19577 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
19578 if test "${gl_cv_func_readlink_works+set}" = set; then :
19579 $as_echo_n "(cached) " >&6
19580 else
19581 # We have readlink, so assume ln -s works.
19582 ln -s conftest.no-such conftest.link
19583 ln -s conftest.link conftest.lnk2
19584 if test "$cross_compiling" = yes; then :
19585 case "$host_os" in
19586 # Guess yes on glibc systems.
19587 *-gnu*) gl_cv_func_readlink_works="guessing yes" ;;
19588 # If we don't know, assume the worst.
19589 *) gl_cv_func_readlink_works="guessing no" ;;
19590 esac
19592 else
19593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19594 /* end confdefs.h. */
19595 #include <unistd.h>
19598 main ()
19600 char buf[20];
19601 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
19603 return 0;
19605 _ACEOF
19606 if ac_fn_c_try_run "$LINENO"; then :
19607 gl_cv_func_readlink_works=yes
19608 else
19609 gl_cv_func_readlink_works=no
19611 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19612 conftest.$ac_objext conftest.beam conftest.$ac_ext
19615 rm -f conftest.link conftest.lnk2
19617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
19618 $as_echo "$gl_cv_func_readlink_works" >&6; }
19619 case "$gl_cv_func_readlink_works" in
19620 *yes)
19621 if test "$gl_cv_decl_readlink_works" != yes; then
19622 REPLACE_READLINK=1
19627 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
19629 REPLACE_READLINK=1
19631 esac
19634 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
19643 gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
19654 GNULIB_READLINK=1
19671 if test $gl_cv_have_include_next = yes; then
19672 gl_cv_next_signal_h='<'signal.h'>'
19673 else
19674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
19675 $as_echo_n "checking absolute name of <signal.h>... " >&6; }
19676 if test "${gl_cv_next_signal_h+set}" = set; then :
19677 $as_echo_n "(cached) " >&6
19678 else
19680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19681 /* end confdefs.h. */
19682 #include <signal.h>
19684 _ACEOF
19685 case "$host_os" in
19686 aix*) gl_absname_cpp="$ac_cpp -C" ;;
19687 *) gl_absname_cpp="$ac_cpp" ;;
19688 esac
19690 case "$host_os" in
19691 mingw*)
19692 gl_dirsep_regex='[/\\]'
19695 gl_dirsep_regex='\/'
19697 esac
19698 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
19700 gl_header_literal_regex=`echo 'signal.h' \
19701 | sed -e "$gl_make_literal_regex_sed"`
19702 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19703 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19704 s|^/[^/]|//&|
19708 gl_cv_next_signal_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19709 sed -n "$gl_absolute_header_sed"`'"'
19713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
19714 $as_echo "$gl_cv_next_signal_h" >&6; }
19716 NEXT_SIGNAL_H=$gl_cv_next_signal_h
19718 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
19719 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19720 gl_next_as_first_directive='<'signal.h'>'
19721 else
19722 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19723 gl_next_as_first_directive=$gl_cv_next_signal_h
19725 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H=$gl_next_as_first_directive
19731 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
19732 # then choke on 'volatile sig_atomic_t'. C99 requires that it compile.
19733 ac_fn_c_check_type "$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
19734 #include <signal.h>
19737 if test "x$ac_cv_type_volatile_sig_atomic_t" = x""yes; then :
19739 else
19740 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=0
19749 ac_fn_c_check_type "$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
19750 #include <signal.h>
19753 if test "x$ac_cv_type_sighandler_t" = x""yes; then :
19755 else
19756 HAVE_SIGHANDLER_T=0
19762 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
19763 /* <sys/types.h> is not needed according to POSIX, but the
19764 <sys/socket.h> in i386-unknown-freebsd4.10 and
19765 powerpc-apple-darwin5.5 required it. */
19766 #include <sys/types.h>
19767 #if HAVE_SYS_SOCKET_H
19768 # include <sys/socket.h>
19769 #elif HAVE_WS2TCPIP_H
19770 # include <ws2tcpip.h>
19771 #endif
19774 if test "x$ac_cv_type_socklen_t" = x""yes; then :
19776 else
19777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
19778 $as_echo_n "checking for socklen_t equivalent... " >&6; }
19779 if test "${gl_cv_socklen_t_equiv+set}" = set; then :
19780 $as_echo_n "(cached) " >&6
19781 else
19782 # Systems have either "struct sockaddr *" or
19783 # "void *" as the second argument to getpeername
19784 gl_cv_socklen_t_equiv=
19785 for arg2 in "struct sockaddr" void; do
19786 for t in int size_t "unsigned int" "long int" "unsigned long int"; do
19787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19788 /* end confdefs.h. */
19789 #include <sys/types.h>
19790 #include <sys/socket.h>
19792 int getpeername (int, $arg2 *, $t *);
19794 main ()
19796 $t len;
19797 getpeername (0, 0, &len);
19799 return 0;
19801 _ACEOF
19802 if ac_fn_c_try_compile "$LINENO"; then :
19803 gl_cv_socklen_t_equiv="$t"
19805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19806 test "$gl_cv_socklen_t_equiv" != "" && break
19807 done
19808 test "$gl_cv_socklen_t_equiv" != "" && break
19809 done
19813 if test "$gl_cv_socklen_t_equiv" = ""; then
19814 as_fn_error "Cannot find a type to use in place of socklen_t" "$LINENO" 5
19816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
19817 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
19819 cat >>confdefs.h <<_ACEOF
19820 #define socklen_t $gl_cv_socklen_t_equiv
19821 _ACEOF
19826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
19827 $as_echo_n "checking for ssize_t... " >&6; }
19828 if test "${gt_cv_ssize_t+set}" = set; then :
19829 $as_echo_n "(cached) " >&6
19830 else
19831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19832 /* end confdefs.h. */
19833 #include <sys/types.h>
19835 main ()
19837 int x = sizeof (ssize_t *) + sizeof (ssize_t);
19838 return !x;
19840 return 0;
19842 _ACEOF
19843 if ac_fn_c_try_compile "$LINENO"; then :
19844 gt_cv_ssize_t=yes
19845 else
19846 gt_cv_ssize_t=no
19848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
19851 $as_echo "$gt_cv_ssize_t" >&6; }
19852 if test $gt_cv_ssize_t = no; then
19854 $as_echo "#define ssize_t int" >>confdefs.h
19859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdalign.h" >&5
19860 $as_echo_n "checking for working stdalign.h... " >&6; }
19861 if test "${gl_cv_header_working_stdalign_h+set}" = set; then :
19862 $as_echo_n "(cached) " >&6
19863 else
19864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19865 /* end confdefs.h. */
19866 #include <stdalign.h>
19867 #include <stddef.h>
19869 /* Test that alignof yields a result consistent with offsetof.
19870 This catches GCC bug 52023
19871 <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023>. */
19872 #ifdef __cplusplus
19873 template <class t> struct alignof_helper { char a; t b; };
19874 # define ao(type) offsetof (alignof_helper<type>, b)
19875 #else
19876 # define ao(type) offsetof (struct { char a; type b; }, b)
19877 #endif
19878 char test_double[ao (double) % _Alignof (double) == 0 ? 1 : -1];
19879 char test_long[ao (long int) % _Alignof (long int) == 0 ? 1 : -1];
19880 char test_alignof[alignof (double) == _Alignof (double) ? 1 : -1];
19882 /* Test _Alignas only on platforms where gnulib can help. */
19883 #if \
19884 (__GNUC__ || __IBMC__ || __IBMCPP__ \
19885 || 0x5110 <= __SUNPRO_C || 1300 <= _MSC_VER)
19886 int alignas (8) alignas_int = 1;
19887 char test_alignas[_Alignof (alignas_int) == 8 ? 1 : -1];
19888 #endif
19891 main ()
19895 return 0;
19897 _ACEOF
19898 if ac_fn_c_try_compile "$LINENO"; then :
19899 gl_cv_header_working_stdalign_h=yes
19900 else
19901 gl_cv_header_working_stdalign_h=no
19903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdalign_h" >&5
19906 $as_echo "$gl_cv_header_working_stdalign_h" >&6; }
19908 if test $gl_cv_header_working_stdalign_h = yes; then
19909 STDALIGN_H=''
19910 else
19911 STDALIGN_H='stdalign.h'
19915 if test -n "$STDALIGN_H"; then
19916 GL_GENERATE_STDALIGN_H_TRUE=
19917 GL_GENERATE_STDALIGN_H_FALSE='#'
19918 else
19919 GL_GENERATE_STDALIGN_H_TRUE='#'
19920 GL_GENERATE_STDALIGN_H_FALSE=
19925 STDARG_H=''
19926 NEXT_STDARG_H='<stdarg.h>'
19927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
19928 $as_echo_n "checking for va_copy... " >&6; }
19929 if test "${gl_cv_func_va_copy+set}" = set; then :
19930 $as_echo_n "(cached) " >&6
19931 else
19933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19934 /* end confdefs.h. */
19935 #include <stdarg.h>
19937 main ()
19940 #ifndef va_copy
19941 void (*func) (va_list, va_list) = va_copy;
19942 #endif
19945 return 0;
19947 _ACEOF
19948 if ac_fn_c_try_compile "$LINENO"; then :
19949 gl_cv_func_va_copy=yes
19950 else
19951 gl_cv_func_va_copy=no
19953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_va_copy" >&5
19957 $as_echo "$gl_cv_func_va_copy" >&6; }
19958 if test $gl_cv_func_va_copy = no; then
19959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19960 /* end confdefs.h. */
19961 #if defined _AIX && !defined __GNUC__
19962 AIX vaccine
19963 #endif
19965 _ACEOF
19966 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19967 $EGREP "vaccine" >/dev/null 2>&1; then :
19968 gl_aixcc=yes
19969 else
19970 gl_aixcc=no
19972 rm -f conftest*
19974 if test $gl_aixcc = yes; then
19975 STDARG_H=stdarg.h
19984 if test $gl_cv_have_include_next = yes; then
19985 gl_cv_next_stdarg_h='<'stdarg.h'>'
19986 else
19987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdarg.h>" >&5
19988 $as_echo_n "checking absolute name of <stdarg.h>... " >&6; }
19989 if test "${gl_cv_next_stdarg_h+set}" = set; then :
19990 $as_echo_n "(cached) " >&6
19991 else
19993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19994 /* end confdefs.h. */
19995 #include <stdarg.h>
19997 _ACEOF
19998 case "$host_os" in
19999 aix*) gl_absname_cpp="$ac_cpp -C" ;;
20000 *) gl_absname_cpp="$ac_cpp" ;;
20001 esac
20003 case "$host_os" in
20004 mingw*)
20005 gl_dirsep_regex='[/\\]'
20008 gl_dirsep_regex='\/'
20010 esac
20011 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
20013 gl_header_literal_regex=`echo 'stdarg.h' \
20014 | sed -e "$gl_make_literal_regex_sed"`
20015 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20016 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20017 s|^/[^/]|//&|
20021 gl_cv_next_stdarg_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20022 sed -n "$gl_absolute_header_sed"`'"'
20026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdarg_h" >&5
20027 $as_echo "$gl_cv_next_stdarg_h" >&6; }
20029 NEXT_STDARG_H=$gl_cv_next_stdarg_h
20031 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20032 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20033 gl_next_as_first_directive='<'stdarg.h'>'
20034 else
20035 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20036 gl_next_as_first_directive=$gl_cv_next_stdarg_h
20038 NEXT_AS_FIRST_DIRECTIVE_STDARG_H=$gl_next_as_first_directive
20043 if test "$gl_cv_next_stdarg_h" = '""'; then
20044 gl_cv_next_stdarg_h='"///usr/include/stdarg.h"'
20045 NEXT_STDARG_H="$gl_cv_next_stdarg_h"
20047 else
20049 saved_as_echo_n="$as_echo_n"
20050 as_echo_n=':'
20051 if test "${gl_cv_func___va_copy+set}" = set; then :
20052 $as_echo_n "(cached) " >&6
20053 else
20055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20056 /* end confdefs.h. */
20057 #include <stdarg.h>
20059 main ()
20062 #ifndef __va_copy
20063 error, bail out
20064 #endif
20067 return 0;
20069 _ACEOF
20070 if ac_fn_c_try_compile "$LINENO"; then :
20071 gl_cv_func___va_copy=yes
20072 else
20073 gl_cv_func___va_copy=no
20075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20078 as_echo_n="$saved_as_echo_n"
20080 if test $gl_cv_func___va_copy = yes; then
20082 $as_echo "#define va_copy __va_copy" >>confdefs.h
20084 else
20087 $as_echo "#define va_copy gl_va_copy" >>confdefs.h
20093 if test -n "$STDARG_H"; then
20094 GL_GENERATE_STDARG_H_TRUE=
20095 GL_GENERATE_STDARG_H_FALSE='#'
20096 else
20097 GL_GENERATE_STDARG_H_TRUE='#'
20098 GL_GENERATE_STDARG_H_FALSE=
20106 # Define two additional variables used in the Makefile substitution.
20108 if test "$ac_cv_header_stdbool_h" = yes; then
20109 STDBOOL_H=''
20110 else
20111 STDBOOL_H='stdbool.h'
20114 if test -n "$STDBOOL_H"; then
20115 GL_GENERATE_STDBOOL_H_TRUE=
20116 GL_GENERATE_STDBOOL_H_FALSE='#'
20117 else
20118 GL_GENERATE_STDBOOL_H_TRUE='#'
20119 GL_GENERATE_STDBOOL_H_FALSE=
20123 if test "$ac_cv_type__Bool" = yes; then
20124 HAVE__BOOL=1
20125 else
20126 HAVE__BOOL=0
20133 STDDEF_H=
20134 if test $gt_cv_c_wchar_t = no; then
20135 HAVE_WCHAR_T=0
20136 STDDEF_H=stddef.h
20138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
20139 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
20140 if test "${gl_cv_decl_null_works+set}" = set; then :
20141 $as_echo_n "(cached) " >&6
20142 else
20143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20144 /* end confdefs.h. */
20145 #include <stddef.h>
20146 int test[2 * (sizeof NULL == sizeof (void *)) -1];
20149 main ()
20153 return 0;
20155 _ACEOF
20156 if ac_fn_c_try_compile "$LINENO"; then :
20157 gl_cv_decl_null_works=yes
20158 else
20159 gl_cv_decl_null_works=no
20161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
20164 $as_echo "$gl_cv_decl_null_works" >&6; }
20165 if test $gl_cv_decl_null_works = no; then
20166 REPLACE_NULL=1
20167 STDDEF_H=stddef.h
20170 if test -n "$STDDEF_H"; then
20171 GL_GENERATE_STDDEF_H_TRUE=
20172 GL_GENERATE_STDDEF_H_FALSE='#'
20173 else
20174 GL_GENERATE_STDDEF_H_TRUE='#'
20175 GL_GENERATE_STDDEF_H_FALSE=
20178 if test -n "$STDDEF_H"; then
20187 if test $gl_cv_have_include_next = yes; then
20188 gl_cv_next_stddef_h='<'stddef.h'>'
20189 else
20190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
20191 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
20192 if test "${gl_cv_next_stddef_h+set}" = set; then :
20193 $as_echo_n "(cached) " >&6
20194 else
20196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20197 /* end confdefs.h. */
20198 #include <stddef.h>
20200 _ACEOF
20201 case "$host_os" in
20202 aix*) gl_absname_cpp="$ac_cpp -C" ;;
20203 *) gl_absname_cpp="$ac_cpp" ;;
20204 esac
20206 case "$host_os" in
20207 mingw*)
20208 gl_dirsep_regex='[/\\]'
20211 gl_dirsep_regex='\/'
20213 esac
20214 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
20216 gl_header_literal_regex=`echo 'stddef.h' \
20217 | sed -e "$gl_make_literal_regex_sed"`
20218 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20219 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20220 s|^/[^/]|//&|
20224 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20225 sed -n "$gl_absolute_header_sed"`'"'
20229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
20230 $as_echo "$gl_cv_next_stddef_h" >&6; }
20232 NEXT_STDDEF_H=$gl_cv_next_stddef_h
20234 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20235 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20236 gl_next_as_first_directive='<'stddef.h'>'
20237 else
20238 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20239 gl_next_as_first_directive=$gl_cv_next_stddef_h
20241 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
20260 if test $gl_cv_have_include_next = yes; then
20261 gl_cv_next_stdio_h='<'stdio.h'>'
20262 else
20263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
20264 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
20265 if test "${gl_cv_next_stdio_h+set}" = set; then :
20266 $as_echo_n "(cached) " >&6
20267 else
20269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20270 /* end confdefs.h. */
20271 #include <stdio.h>
20273 _ACEOF
20274 case "$host_os" in
20275 aix*) gl_absname_cpp="$ac_cpp -C" ;;
20276 *) gl_absname_cpp="$ac_cpp" ;;
20277 esac
20279 case "$host_os" in
20280 mingw*)
20281 gl_dirsep_regex='[/\\]'
20284 gl_dirsep_regex='\/'
20286 esac
20287 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
20289 gl_header_literal_regex=`echo 'stdio.h' \
20290 | sed -e "$gl_make_literal_regex_sed"`
20291 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20292 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20293 s|^/[^/]|//&|
20297 gl_cv_next_stdio_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20298 sed -n "$gl_absolute_header_sed"`'"'
20302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
20303 $as_echo "$gl_cv_next_stdio_h" >&6; }
20305 NEXT_STDIO_H=$gl_cv_next_stdio_h
20307 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20308 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20309 gl_next_as_first_directive='<'stdio.h'>'
20310 else
20311 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20312 gl_next_as_first_directive=$gl_cv_next_stdio_h
20314 NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
20320 GNULIB_FSCANF=1
20321 GNULIB_SCANF=1
20322 GNULIB_FGETC=1
20323 GNULIB_GETC=1
20324 GNULIB_GETCHAR=1
20325 GNULIB_FGETS=1
20326 GNULIB_FREAD=1
20329 GNULIB_FPRINTF=1
20330 GNULIB_PRINTF=1
20331 GNULIB_VFPRINTF=1
20332 GNULIB_VPRINTF=1
20333 GNULIB_FPUTC=1
20334 GNULIB_PUTC=1
20335 GNULIB_PUTCHAR=1
20336 GNULIB_FPUTS=1
20337 GNULIB_PUTS=1
20338 GNULIB_FWRITE=1
20354 if test $gl_cv_have_include_next = yes; then
20355 gl_cv_next_stdlib_h='<'stdlib.h'>'
20356 else
20357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
20358 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
20359 if test "${gl_cv_next_stdlib_h+set}" = set; then :
20360 $as_echo_n "(cached) " >&6
20361 else
20363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20364 /* end confdefs.h. */
20365 #include <stdlib.h>
20367 _ACEOF
20368 case "$host_os" in
20369 aix*) gl_absname_cpp="$ac_cpp -C" ;;
20370 *) gl_absname_cpp="$ac_cpp" ;;
20371 esac
20373 case "$host_os" in
20374 mingw*)
20375 gl_dirsep_regex='[/\\]'
20378 gl_dirsep_regex='\/'
20380 esac
20381 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
20383 gl_header_literal_regex=`echo 'stdlib.h' \
20384 | sed -e "$gl_make_literal_regex_sed"`
20385 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20386 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20387 s|^/[^/]|//&|
20391 gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20392 sed -n "$gl_absolute_header_sed"`'"'
20396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
20397 $as_echo "$gl_cv_next_stdlib_h" >&6; }
20399 NEXT_STDLIB_H=$gl_cv_next_stdlib_h
20401 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20402 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20403 gl_next_as_first_directive='<'stdlib.h'>'
20404 else
20405 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20406 gl_next_as_first_directive=$gl_cv_next_stdlib_h
20408 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
20418 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
20426 $as_echo "#define my_strftime nstrftime" >>confdefs.h
20435 if test "$ac_cv_have_decl_strtoimax" != yes; then
20436 HAVE_DECL_STRTOIMAX=0
20439 if test $ac_cv_func_strtoimax = yes; then
20440 HAVE_STRTOIMAX=1
20441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtoimax works" >&5
20442 $as_echo_n "checking whether strtoimax works... " >&6; }
20443 if test "${gl_cv_func_strtoimax+set}" = set; then :
20444 $as_echo_n "(cached) " >&6
20445 else
20446 if test "$cross_compiling" = yes; then :
20447 case "$host_os" in
20448 # Guess no on AIX 5.
20449 aix5*) gl_cv_func_strtoimax="guessing no" ;;
20450 # Guess yes otherwise.
20451 *) gl_cv_func_strtoimax="guessing yes" ;;
20452 esac
20454 else
20455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20456 /* end confdefs.h. */
20458 #include <errno.h>
20459 #include <string.h>
20460 #include <inttypes.h>
20461 int main ()
20463 if (sizeof (intmax_t) > sizeof (int))
20465 const char *s = "4294967295";
20466 char *p;
20467 intmax_t res;
20468 errno = 0;
20469 res = strtoimax (s, &p, 10);
20470 if (p != s + strlen (s))
20471 return 1;
20472 if (errno != 0)
20473 return 2;
20474 if (res != (intmax_t) 65535 * (intmax_t) 65537)
20475 return 3;
20477 else
20479 const char *s = "2147483647";
20480 char *p;
20481 intmax_t res;
20482 errno = 0;
20483 res = strtoimax (s, &p, 10);
20484 if (p != s + strlen (s))
20485 return 1;
20486 if (errno != 0)
20487 return 2;
20488 if (res != 2147483647)
20489 return 3;
20491 return 0;
20494 _ACEOF
20495 if ac_fn_c_try_run "$LINENO"; then :
20496 gl_cv_func_strtoimax=yes
20497 else
20498 gl_cv_func_strtoimax=no
20500 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20501 conftest.$ac_objext conftest.beam conftest.$ac_ext
20506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strtoimax" >&5
20507 $as_echo "$gl_cv_func_strtoimax" >&6; }
20508 case "$gl_cv_func_strtoimax" in
20509 *no) REPLACE_STRTOIMAX=1 ;;
20510 esac
20511 else
20512 HAVE_STRTOIMAX=0
20515 if test $HAVE_STRTOIMAX = 0 || test $REPLACE_STRTOIMAX = 1; then
20524 gl_LIBOBJS="$gl_LIBOBJS strtoimax.$ac_objext"
20527 ac_fn_c_check_decl "$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
20528 if test "x$ac_cv_have_decl_strtoll" = x""yes; then :
20529 ac_have_decl=1
20530 else
20531 ac_have_decl=0
20534 cat >>confdefs.h <<_ACEOF
20535 #define HAVE_DECL_STRTOLL $ac_have_decl
20536 _ACEOF
20546 GNULIB_STRTOIMAX=1
20556 if test "$ac_cv_have_decl_strtoumax" != yes; then
20557 HAVE_DECL_STRTOUMAX=0
20560 if test $ac_cv_func_strtoumax = no; then
20569 gl_LIBOBJS="$gl_LIBOBJS strtoumax.$ac_objext"
20572 ac_fn_c_check_decl "$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
20573 if test "x$ac_cv_have_decl_strtoull" = x""yes; then :
20574 ac_have_decl=1
20575 else
20576 ac_have_decl=0
20579 cat >>confdefs.h <<_ACEOF
20580 #define HAVE_DECL_STRTOULL $ac_have_decl
20581 _ACEOF
20591 GNULIB_STRTOUMAX=1
20599 if test $ac_cv_func_symlink = no; then
20600 HAVE_SYMLINK=0
20601 else
20602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symlink handles trailing slash correctly" >&5
20603 $as_echo_n "checking whether symlink handles trailing slash correctly... " >&6; }
20604 if test "${gl_cv_func_symlink_works+set}" = set; then :
20605 $as_echo_n "(cached) " >&6
20606 else
20607 if test "$cross_compiling" = yes; then :
20608 case "$host_os" in
20609 # Guess yes on glibc systems.
20610 *-gnu*) gl_cv_func_symlink_works="guessing yes" ;;
20611 # If we don't know, assume the worst.
20612 *) gl_cv_func_symlink_works="guessing no" ;;
20613 esac
20615 else
20616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20617 /* end confdefs.h. */
20618 #include <unistd.h>
20621 main ()
20623 int result = 0;
20624 if (!symlink ("a", "conftest.link/"))
20625 result |= 1;
20626 if (symlink ("conftest.f", "conftest.lnk2"))
20627 result |= 2;
20628 else if (!symlink ("a", "conftest.lnk2/"))
20629 result |= 4;
20630 return result;
20633 return 0;
20635 _ACEOF
20636 if ac_fn_c_try_run "$LINENO"; then :
20637 gl_cv_func_symlink_works=yes
20638 else
20639 gl_cv_func_symlink_works=no
20641 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20642 conftest.$ac_objext conftest.beam conftest.$ac_ext
20645 rm -f conftest.f conftest.link conftest.lnk2
20647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_symlink_works" >&5
20648 $as_echo "$gl_cv_func_symlink_works" >&6; }
20649 case "$gl_cv_func_symlink_works" in
20650 *yes) ;;
20652 REPLACE_SYMLINK=1
20654 esac
20657 if test $HAVE_SYMLINK = 0 || test $REPLACE_SYMLINK = 1; then
20666 gl_LIBOBJS="$gl_LIBOBJS symlink.$ac_objext"
20674 GNULIB_SYMLINK=1
20696 if test $gl_cv_have_include_next = yes; then
20697 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
20698 else
20699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
20700 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
20701 if test "${gl_cv_next_sys_stat_h+set}" = set; then :
20702 $as_echo_n "(cached) " >&6
20703 else
20705 if test $ac_cv_header_sys_stat_h = yes; then
20708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20709 /* end confdefs.h. */
20710 #include <sys/stat.h>
20712 _ACEOF
20713 case "$host_os" in
20714 aix*) gl_absname_cpp="$ac_cpp -C" ;;
20715 *) gl_absname_cpp="$ac_cpp" ;;
20716 esac
20718 case "$host_os" in
20719 mingw*)
20720 gl_dirsep_regex='[/\\]'
20723 gl_dirsep_regex='\/'
20725 esac
20726 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
20728 gl_header_literal_regex=`echo 'sys/stat.h' \
20729 | sed -e "$gl_make_literal_regex_sed"`
20730 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20731 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20732 s|^/[^/]|//&|
20736 gl_cv_next_sys_stat_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20737 sed -n "$gl_absolute_header_sed"`'"'
20738 else
20739 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
20744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
20745 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
20747 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
20749 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20750 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20751 gl_next_as_first_directive='<'sys/stat.h'>'
20752 else
20753 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20754 gl_next_as_first_directive=$gl_cv_next_sys_stat_h
20756 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
20768 if test $WINDOWS_64_BIT_ST_SIZE = 1; then
20770 $as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
20774 ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
20775 #include <sys/stat.h>
20777 if test "x$ac_cv_type_nlink_t" = x""yes; then :
20779 else
20781 $as_echo "#define nlink_t int" >>confdefs.h
20799 if test $gl_cv_have_include_next = yes; then
20800 gl_cv_next_sys_types_h='<'sys/types.h'>'
20801 else
20802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/types.h>" >&5
20803 $as_echo_n "checking absolute name of <sys/types.h>... " >&6; }
20804 if test "${gl_cv_next_sys_types_h+set}" = set; then :
20805 $as_echo_n "(cached) " >&6
20806 else
20808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20809 /* end confdefs.h. */
20810 #include <sys/types.h>
20812 _ACEOF
20813 case "$host_os" in
20814 aix*) gl_absname_cpp="$ac_cpp -C" ;;
20815 *) gl_absname_cpp="$ac_cpp" ;;
20816 esac
20818 case "$host_os" in
20819 mingw*)
20820 gl_dirsep_regex='[/\\]'
20823 gl_dirsep_regex='\/'
20825 esac
20826 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
20828 gl_header_literal_regex=`echo 'sys/types.h' \
20829 | sed -e "$gl_make_literal_regex_sed"`
20830 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20831 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20832 s|^/[^/]|//&|
20836 gl_cv_next_sys_types_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20837 sed -n "$gl_absolute_header_sed"`'"'
20841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_types_h" >&5
20842 $as_echo "$gl_cv_next_sys_types_h" >&6; }
20844 NEXT_SYS_TYPES_H=$gl_cv_next_sys_types_h
20846 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20847 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20848 gl_next_as_first_directive='<'sys/types.h'>'
20849 else
20850 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20851 gl_next_as_first_directive=$gl_cv_next_sys_types_h
20853 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H=$gl_next_as_first_directive
20876 if test $ac_cv_have_decl_localtime_r = no; then
20877 HAVE_DECL_LOCALTIME_R=0
20881 if test $ac_cv_func_localtime_r = yes; then
20882 HAVE_LOCALTIME_R=1
20883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
20884 $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
20885 if test "${gl_cv_time_r_posix+set}" = set; then :
20886 $as_echo_n "(cached) " >&6
20887 else
20888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20889 /* end confdefs.h. */
20890 #include <time.h>
20892 main ()
20894 /* We don't need to append 'restrict's to the argument types,
20895 even though the POSIX signature has the 'restrict's,
20896 since C99 says they can't affect type compatibility. */
20897 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
20898 if (ptr) return 0;
20899 /* Check the return type is a pointer.
20900 On HP-UX 10 it is 'int'. */
20901 *localtime_r (0, 0);
20903 return 0;
20906 _ACEOF
20907 if ac_fn_c_try_compile "$LINENO"; then :
20908 gl_cv_time_r_posix=yes
20909 else
20910 gl_cv_time_r_posix=no
20912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
20916 $as_echo "$gl_cv_time_r_posix" >&6; }
20917 if test $gl_cv_time_r_posix = yes; then
20918 REPLACE_LOCALTIME_R=0
20919 else
20920 REPLACE_LOCALTIME_R=1
20922 else
20923 HAVE_LOCALTIME_R=0
20926 if test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1; then
20935 gl_LIBOBJS="$gl_LIBOBJS time_r.$ac_objext"
20946 GNULIB_TIME_R=1
20966 if test $gl_cv_have_include_next = yes; then
20967 gl_cv_next_unistd_h='<'unistd.h'>'
20968 else
20969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
20970 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
20971 if test "${gl_cv_next_unistd_h+set}" = set; then :
20972 $as_echo_n "(cached) " >&6
20973 else
20975 if test $ac_cv_header_unistd_h = yes; then
20978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20979 /* end confdefs.h. */
20980 #include <unistd.h>
20982 _ACEOF
20983 case "$host_os" in
20984 aix*) gl_absname_cpp="$ac_cpp -C" ;;
20985 *) gl_absname_cpp="$ac_cpp" ;;
20986 esac
20988 case "$host_os" in
20989 mingw*)
20990 gl_dirsep_regex='[/\\]'
20993 gl_dirsep_regex='\/'
20995 esac
20996 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
20998 gl_header_literal_regex=`echo 'unistd.h' \
20999 | sed -e "$gl_make_literal_regex_sed"`
21000 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21001 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21002 s|^/[^/]|//&|
21006 gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21007 sed -n "$gl_absolute_header_sed"`'"'
21008 else
21009 gl_cv_next_unistd_h='<'unistd.h'>'
21014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
21015 $as_echo "$gl_cv_next_unistd_h" >&6; }
21017 NEXT_UNISTD_H=$gl_cv_next_unistd_h
21019 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21020 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21021 gl_next_as_first_directive='<'unistd.h'>'
21022 else
21023 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21024 gl_next_as_first_directive=$gl_cv_next_unistd_h
21026 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
21031 if test $ac_cv_header_unistd_h = yes; then
21032 HAVE_UNISTD_H=1
21033 else
21034 HAVE_UNISTD_H=0
21044 gl_gnulib_enabled_dosname=false
21045 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36=false
21046 gl_gnulib_enabled_pathmax=false
21047 gl_gnulib_enabled_sigprocmask=false
21048 gl_gnulib_enabled_stat=false
21049 gl_gnulib_enabled_strtoll=false
21050 gl_gnulib_enabled_strtoull=false
21051 gl_gnulib_enabled_verify=false
21052 func_gl_gnulib_m4code_dosname ()
21054 if ! $gl_gnulib_enabled_dosname; then
21055 gl_gnulib_enabled_dosname=true
21058 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36 ()
21060 if ! $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
21063 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36=true
21066 func_gl_gnulib_m4code_pathmax ()
21068 if ! $gl_gnulib_enabled_pathmax; then
21072 gl_gnulib_enabled_pathmax=true
21075 func_gl_gnulib_m4code_sigprocmask ()
21077 if ! $gl_gnulib_enabled_sigprocmask; then
21081 if test $gl_cv_type_sigset_t = yes; then
21082 ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask"
21083 if test "x$ac_cv_func_sigprocmask" = x""yes; then :
21084 gl_cv_func_sigprocmask=1
21088 if test -z "$gl_cv_func_sigprocmask"; then
21089 HAVE_POSIX_SIGNALBLOCKING=0
21092 if test $HAVE_POSIX_SIGNALBLOCKING = 0; then
21101 gl_LIBOBJS="$gl_LIBOBJS sigprocmask.$ac_objext"
21112 GNULIB_SIGPROCMASK=1
21118 gl_gnulib_enabled_sigprocmask=true
21121 func_gl_gnulib_m4code_stat ()
21123 if ! $gl_gnulib_enabled_stat; then
21127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
21128 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
21129 if test "${gl_cv_func_stat_dir_slash+set}" = set; then :
21130 $as_echo_n "(cached) " >&6
21131 else
21132 if test "$cross_compiling" = yes; then :
21133 case $host_os in
21134 mingw*) gl_cv_func_stat_dir_slash="guessing no";;
21135 *) gl_cv_func_stat_dir_slash="guessing yes";;
21136 esac
21137 else
21138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21139 /* end confdefs.h. */
21140 #include <sys/stat.h>
21143 main ()
21145 struct stat st; return stat (".", &st) != stat ("./", &st);
21147 return 0;
21149 _ACEOF
21150 if ac_fn_c_try_run "$LINENO"; then :
21151 gl_cv_func_stat_dir_slash=yes
21152 else
21153 gl_cv_func_stat_dir_slash=no
21155 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21156 conftest.$ac_objext conftest.beam conftest.$ac_ext
21160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
21161 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
21162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
21163 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
21164 if test "${gl_cv_func_stat_file_slash+set}" = set; then :
21165 $as_echo_n "(cached) " >&6
21166 else
21167 touch conftest.tmp
21168 # Assume that if we have lstat, we can also check symlinks.
21169 if test $ac_cv_func_lstat = yes; then
21170 ln -s conftest.tmp conftest.lnk
21172 if test "$cross_compiling" = yes; then :
21173 case "$host_os" in
21174 # Guess yes on glibc systems.
21175 *-gnu*) gl_cv_func_stat_file_slash="guessing yes" ;;
21176 # If we don't know, assume the worst.
21177 *) gl_cv_func_stat_file_slash="guessing no" ;;
21178 esac
21180 else
21181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21182 /* end confdefs.h. */
21183 #include <sys/stat.h>
21186 main ()
21188 int result = 0;
21189 struct stat st;
21190 if (!stat ("conftest.tmp/", &st))
21191 result |= 1;
21192 #if HAVE_LSTAT
21193 if (!stat ("conftest.lnk/", &st))
21194 result |= 2;
21195 #endif
21196 return result;
21199 return 0;
21201 _ACEOF
21202 if ac_fn_c_try_run "$LINENO"; then :
21203 gl_cv_func_stat_file_slash=yes
21204 else
21205 gl_cv_func_stat_file_slash=no
21207 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21208 conftest.$ac_objext conftest.beam conftest.$ac_ext
21211 rm -f conftest.tmp conftest.lnk
21213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
21214 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
21215 case $gl_cv_func_stat_dir_slash in
21216 *no) REPLACE_STAT=1
21218 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
21220 esac
21221 case $gl_cv_func_stat_file_slash in
21222 *no) REPLACE_STAT=1
21224 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
21226 esac
21228 if test $REPLACE_STAT = 1; then
21237 gl_LIBOBJS="$gl_LIBOBJS stat.$ac_objext"
21249 GNULIB_STAT=1
21255 gl_gnulib_enabled_stat=true
21256 if test $REPLACE_STAT = 1; then
21257 func_gl_gnulib_m4code_dosname
21259 if test $REPLACE_STAT = 1; then
21260 func_gl_gnulib_m4code_pathmax
21262 if test $REPLACE_STAT = 1; then
21263 func_gl_gnulib_m4code_verify
21267 func_gl_gnulib_m4code_strtoll ()
21269 if ! $gl_gnulib_enabled_strtoll; then
21273 if test "$ac_cv_type_long_long_int" = yes; then
21274 for ac_func in strtoll
21275 do :
21276 ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
21277 if test "x$ac_cv_func_strtoll" = x""yes; then :
21278 cat >>confdefs.h <<_ACEOF
21279 #define HAVE_STRTOLL 1
21280 _ACEOF
21283 done
21285 if test $ac_cv_func_strtoll = no; then
21286 HAVE_STRTOLL=0
21290 if test $HAVE_STRTOLL = 0; then
21299 gl_LIBOBJS="$gl_LIBOBJS strtoll.$ac_objext"
21310 GNULIB_STRTOLL=1
21316 gl_gnulib_enabled_strtoll=true
21319 func_gl_gnulib_m4code_strtoull ()
21321 if ! $gl_gnulib_enabled_strtoull; then
21325 if test "$ac_cv_type_unsigned_long_long_int" = yes; then
21326 for ac_func in strtoull
21327 do :
21328 ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
21329 if test "x$ac_cv_func_strtoull" = x""yes; then :
21330 cat >>confdefs.h <<_ACEOF
21331 #define HAVE_STRTOULL 1
21332 _ACEOF
21335 done
21337 if test $ac_cv_func_strtoull = no; then
21338 HAVE_STRTOULL=0
21342 if test $HAVE_STRTOULL = 0; then
21351 gl_LIBOBJS="$gl_LIBOBJS strtoull.$ac_objext"
21362 GNULIB_STRTOULL=1
21368 gl_gnulib_enabled_strtoull=true
21371 func_gl_gnulib_m4code_verify ()
21373 if ! $gl_gnulib_enabled_verify; then
21374 gl_gnulib_enabled_verify=true
21377 if test $REPLACE_GETOPT = 1; then
21378 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36
21380 if test $REPLACE_LSTAT = 1; then
21381 func_gl_gnulib_m4code_dosname
21383 if test $REPLACE_LSTAT = 1; then
21384 func_gl_gnulib_m4code_stat
21386 if test $HAVE_PTHREAD_SIGMASK = 0 || test $REPLACE_PTHREAD_SIGMASK = 1; then
21387 func_gl_gnulib_m4code_sigprocmask
21389 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
21390 func_gl_gnulib_m4code_stat
21392 if { test $HAVE_STRTOIMAX = 0 || test $REPLACE_STRTOIMAX = 1; } && test $ac_cv_type_long_long_int = yes; then
21393 func_gl_gnulib_m4code_strtoll
21395 if test $HAVE_STRTOIMAX = 0 || test $REPLACE_STRTOIMAX = 1; then
21396 func_gl_gnulib_m4code_verify
21398 if test $ac_cv_func_strtoumax = no && test $ac_cv_type_unsigned_long_long_int = yes; then
21399 func_gl_gnulib_m4code_strtoull
21401 if test $ac_cv_func_strtoumax = no; then
21402 func_gl_gnulib_m4code_verify
21405 if $gl_gnulib_enabled_dosname; then
21406 gl_GNULIB_ENABLED_dosname_TRUE=
21407 gl_GNULIB_ENABLED_dosname_FALSE='#'
21408 else
21409 gl_GNULIB_ENABLED_dosname_TRUE='#'
21410 gl_GNULIB_ENABLED_dosname_FALSE=
21413 if $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
21414 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE=
21415 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE='#'
21416 else
21417 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE='#'
21418 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE=
21421 if $gl_gnulib_enabled_pathmax; then
21422 gl_GNULIB_ENABLED_pathmax_TRUE=
21423 gl_GNULIB_ENABLED_pathmax_FALSE='#'
21424 else
21425 gl_GNULIB_ENABLED_pathmax_TRUE='#'
21426 gl_GNULIB_ENABLED_pathmax_FALSE=
21429 if $gl_gnulib_enabled_sigprocmask; then
21430 gl_GNULIB_ENABLED_sigprocmask_TRUE=
21431 gl_GNULIB_ENABLED_sigprocmask_FALSE='#'
21432 else
21433 gl_GNULIB_ENABLED_sigprocmask_TRUE='#'
21434 gl_GNULIB_ENABLED_sigprocmask_FALSE=
21437 if $gl_gnulib_enabled_stat; then
21438 gl_GNULIB_ENABLED_stat_TRUE=
21439 gl_GNULIB_ENABLED_stat_FALSE='#'
21440 else
21441 gl_GNULIB_ENABLED_stat_TRUE='#'
21442 gl_GNULIB_ENABLED_stat_FALSE=
21445 if $gl_gnulib_enabled_strtoll; then
21446 gl_GNULIB_ENABLED_strtoll_TRUE=
21447 gl_GNULIB_ENABLED_strtoll_FALSE='#'
21448 else
21449 gl_GNULIB_ENABLED_strtoll_TRUE='#'
21450 gl_GNULIB_ENABLED_strtoll_FALSE=
21453 if $gl_gnulib_enabled_strtoull; then
21454 gl_GNULIB_ENABLED_strtoull_TRUE=
21455 gl_GNULIB_ENABLED_strtoull_FALSE='#'
21456 else
21457 gl_GNULIB_ENABLED_strtoull_TRUE='#'
21458 gl_GNULIB_ENABLED_strtoull_FALSE=
21461 if $gl_gnulib_enabled_verify; then
21462 gl_GNULIB_ENABLED_verify_TRUE=
21463 gl_GNULIB_ENABLED_verify_FALSE='#'
21464 else
21465 gl_GNULIB_ENABLED_verify_TRUE='#'
21466 gl_GNULIB_ENABLED_verify_FALSE=
21469 # End of code from modules
21479 gltests_libdeps=
21480 gltests_ltlibdeps=
21490 gl_source_base='tests'
21491 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
21493 gl_module_indicator_condition=$gltests_WITNESS
21504 LIBGNU_LIBDEPS="$gl_libdeps"
21506 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
21510 case "$opsys" in
21511 aix4-2) LD_SWITCH_SYSTEM_TEMACS="-Wl,-bnodelcsect" ;;
21513 darwin)
21514 ## The -headerpad option tells ld (see man page) to leave room at the
21515 ## end of the header for adding load commands. Needed for dumping.
21516 ## 0x690 is the total size of 30 segment load commands (at 56
21517 ## each); under Cocoa 31 commands are required.
21518 if test "$HAVE_NS" = "yes"; then
21519 libs_nsgui="-framework AppKit"
21520 headerpad_extra=6C8
21521 else
21522 libs_nsgui=
21523 headerpad_extra=690
21525 LD_SWITCH_SYSTEM_TEMACS="-fno-pie -prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
21527 ## This is here because src/Makefile.in did some extra fiddling around
21528 ## with LD_SWITCH_SYSTEM. The cpp logic was:
21529 ## #ifndef LD_SWITCH_SYSTEM
21530 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
21531 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
21532 ## not using gcc, darwin.
21533 ## Because this was done in src/Makefile.in, the resulting part of
21534 ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link).
21535 ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS,
21536 ## rather than LD_SWITCH_SYSTEM.
21537 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
21538 LD_SWITCH_SYSTEM_TEMACS="-X $LD_SWITCH_SYSTEM_TEMACS"
21541 ## LD_SWITCH_X_SITE_RPATH is a -rpath option saying where to
21542 ## find X at run-time.
21543 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at the
21544 ## point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_RPATH
21545 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
21546 ## had different values in configure (in ac_link) and src/Makefile.in.
21547 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
21548 gnu*) LD_SWITCH_SYSTEM_TEMACS="\$(LD_SWITCH_X_SITE_RPATH)" ;;
21550 *) LD_SWITCH_SYSTEM_TEMACS= ;;
21551 esac
21553 if test "$NS_IMPL_GNUSTEP" = "yes"; then
21554 LD_SWITCH_SYSTEM_TEMACS="${LD_SWITCH_SYSTEM_TEMACS} -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES} -lgnustep-gui -lgnustep-base -lobjc -lpthread"
21560 LD_FIRSTFLAG=
21561 ORDINARY_LINK=
21562 case "$opsys" in
21563 ## gnu: GNU needs its own crt0.
21564 aix4-2|cygwin|darwin|gnu|hpux*|irix6-5|sol2*|unixware) ORDINARY_LINK=yes ;;
21566 ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the
21567 ## library search parth, i.e. it won't search /usr/lib for libc and
21568 ## friends. Using -nostartfiles instead avoids this problem, and
21569 ## will also work on earlier NetBSD releases.
21570 netbsd|openbsd) LD_FIRSTFLAG="-nostartfiles" ;;
21572 ## powerpc*: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
21573 ## MkLinux/LinuxPPC needs this.
21574 ## s390x-* only supports opsys = gnu-linux so it can be added here.
21575 gnu-*)
21576 case "$canonical" in
21577 powerpc*|s390x-*) LD_FIRSTFLAG="-nostdlib" ;;
21578 esac
21580 esac
21583 if test "x$ORDINARY_LINK" = "xyes"; then
21585 LD_FIRSTFLAG=""
21587 $as_echo "#define ORDINARY_LINK 1" >>confdefs.h
21590 ## The system files defining neither ORDINARY_LINK nor LD_FIRSTFLAG are:
21591 ## freebsd, gnu-* not on powerpc*|s390x*.
21592 elif test "x$GCC" = "xyes" && test "x$LD_FIRSTFLAG" = "x"; then
21594 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
21595 ## places that are difficult to figure out at make time. Fortunately,
21596 ## these same versions allow you to pass arbitrary flags on to the
21597 ## linker, so there is no reason not to use it as a linker.
21599 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from
21600 ## searching for libraries in its internal directories, so we have to
21601 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below).
21602 LD_FIRSTFLAG="-nostdlib"
21605 ## FIXME? What setting of EDIT_LDFLAGS should this have?
21606 test "$NS_IMPL_GNUSTEP" = "yes" && LD_FIRSTFLAG="-rdynamic"
21611 ## FIXME? The logic here is not precisely the same as that above.
21612 ## There is no check here for a pre-defined LD_FIRSTFLAG.
21613 ## Should we only be setting LIB_GCC if LD ~ -nostdlib?
21614 LIB_GCC=
21615 if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
21617 case "$opsys" in
21618 freebsd|netbsd|openbsd) LIB_GCC= ;;
21620 gnu-*)
21621 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
21622 ## build on ARM EABI under GNU/Linux. (Bug#5518)
21623 case $host_cpu in
21624 arm*)
21625 LIB_GCC="-lgcc_s"
21628 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
21629 ## immediately undefine it again and redefine it to empty.
21630 ## Was the C_SWITCH_X_SITE part really necessary?
21631 ## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
21632 LIB_GCC=
21634 esac
21637 ## Ask GCC where to find libgcc.a.
21638 *) LIB_GCC=`$CC -print-libgcc-file-name 2> /dev/null` ;;
21639 esac
21643 ## If we're using X11/GNUstep, define some consequences.
21644 if test "$HAVE_X_WINDOWS" = "yes" || test "$HAVE_NS" = "yes"; then
21646 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
21649 $as_echo "#define HAVE_MOUSE 1" >>confdefs.h
21656 #### Report on what we decided to do.
21657 #### Report GTK as a toolkit, even if it doesn't use Xt.
21658 #### It makes printing result more understandable as using GTK sets
21659 #### toolkit_scroll_bars to yes by default.
21660 if test "${HAVE_GTK}" = "yes"; then
21661 USE_X_TOOLKIT=GTK
21664 echo "
21665 Configured for \`${canonical}'.
21667 Where should the build process find the source code? ${srcdir}
21668 What operating system file should Emacs use?
21669 \`${opsysfile}'
21670 What compiler should emacs be built with? ${CC} ${CFLAGS}
21671 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
21672 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
21673 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
21674 What window system should Emacs use? ${window_system}
21675 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
21677 if test -n "${x_includes}"; then
21678 echo " Where do we find X Windows header files? ${x_includes}"
21679 else
21680 echo " Where do we find X Windows header files? Standard dirs"
21682 if test -n "${x_libraries}"; then
21683 echo " Where do we find X Windows libraries? ${x_libraries}"
21684 else
21685 echo " Where do we find X Windows libraries? Standard dirs"
21688 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
21689 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
21690 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
21691 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
21692 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
21693 echo " Does Emacs use -lpng? ${HAVE_PNG}"
21694 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
21695 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
21697 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
21698 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
21699 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
21700 echo " Does Emacs use GSettings? ${HAVE_GSETTINGS}"
21701 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
21702 echo " Does Emacs use -lgnutls? ${HAVE_GNUTLS}"
21703 echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
21705 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
21706 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
21707 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
21708 echo " Does Emacs use -lxft? ${HAVE_XFT}"
21710 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
21711 echo
21713 if test -n "${EMACSDATA}"; then
21714 echo " Environment variable EMACSDATA set to: $EMACSDATA"
21716 if test -n "${EMACSDOC}"; then
21717 echo " Environment variable EMACSDOC set to: $EMACSDOC"
21720 if test $USE_XASSERTS = yes; then
21721 echo " Compiling with asserts turned on."
21722 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
21725 echo
21727 if test "$HAVE_NS" = "yes"; then
21728 echo
21729 echo "You must run \"${MAKE-make} install\" in order to test the built application.
21730 The installed application will go to nextstep/Emacs.app and can be
21731 run or moved from there."
21732 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
21733 echo "The application will be fully self-contained."
21734 else
21735 echo "The lisp resources for the application will be installed under ${prefix}.
21736 You may need to run \"${MAKE-make} install\" with sudo. The application will fail
21737 to run if these resources are not installed."
21739 echo
21742 if test "${opsys}" = "cygwin"; then
21743 case `uname -r` in
21744 1.5.*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: building Emacs on Cygwin 1.5 is not supported." >&5
21745 $as_echo "$as_me: WARNING: building Emacs on Cygwin 1.5 is not supported." >&2;}
21746 echo
21748 esac
21751 # Remove any trailing slashes in these variables.
21752 test "${prefix}" != NONE &&
21753 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
21754 test "${exec_prefix}" != NONE &&
21755 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
21757 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"
21759 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"
21762 opt_makefile=test/automated/Makefile
21764 if test -f $srcdir/${opt_makefile}.in; then
21765 SUBDIR_MAKEFILES="$SUBDIR_MAKEFILES $opt_makefile"
21766 ac_config_files="$ac_config_files test/automated/Makefile"
21771 opt_makefile=admin/unidata/Makefile
21773 if test -f $srcdir/${opt_makefile}.in; then
21774 SUBDIR_MAKEFILES="$SUBDIR_MAKEFILES $opt_makefile"
21775 ac_config_files="$ac_config_files admin/unidata/Makefile"
21780 SUBDIR_MAKEFILES_IN=`echo " ${SUBDIR_MAKEFILES}" | sed -e 's| | $(srcdir)/|g' -e 's|Makefile|Makefile.in|g'`
21784 ac_config_commands="$ac_config_commands mkdirs"
21787 ac_config_commands="$ac_config_commands epaths"
21790 ac_config_commands="$ac_config_commands gdbinit"
21793 cat >confcache <<\_ACEOF
21794 # This file is a shell script that caches the results of configure
21795 # tests run on this system so they can be shared between configure
21796 # scripts and configure runs, see configure's option --config-cache.
21797 # It is not useful on other systems. If it contains results you don't
21798 # want to keep, you may remove or edit it.
21800 # config.status only pays attention to the cache file if you give it
21801 # the --recheck option to rerun configure.
21803 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21804 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21805 # following values.
21807 _ACEOF
21809 # The following way of writing the cache mishandles newlines in values,
21810 # but we know of no workaround that is simple, portable, and efficient.
21811 # So, we kill variables containing newlines.
21812 # Ultrix sh set writes to stderr and can't be redirected directly,
21813 # and sets the high bit in the cache file unless we assign to the vars.
21815 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21816 eval ac_val=\$$ac_var
21817 case $ac_val in #(
21818 *${as_nl}*)
21819 case $ac_var in #(
21820 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
21821 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
21822 esac
21823 case $ac_var in #(
21824 _ | IFS | as_nl) ;; #(
21825 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
21826 *) { eval $ac_var=; unset $ac_var;} ;;
21827 esac ;;
21828 esac
21829 done
21831 (set) 2>&1 |
21832 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21833 *${as_nl}ac_space=\ *)
21834 # `set' does not quote correctly, so add quotes: double-quote
21835 # substitution turns \\\\ into \\, and sed turns \\ into \.
21836 sed -n \
21837 "s/'/'\\\\''/g;
21838 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21839 ;; #(
21841 # `set' quotes correctly as required by POSIX, so do not add quotes.
21842 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21844 esac |
21845 sort
21847 sed '
21848 /^ac_cv_env_/b end
21849 t clear
21850 :clear
21851 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21852 t end
21853 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21854 :end' >>confcache
21855 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21856 if test -w "$cache_file"; then
21857 test "x$cache_file" != "x/dev/null" &&
21858 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
21859 $as_echo "$as_me: updating cache $cache_file" >&6;}
21860 cat confcache >$cache_file
21861 else
21862 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
21863 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21866 rm -f confcache
21868 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21869 # Let make expand exec_prefix.
21870 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21872 DEFS=-DHAVE_CONFIG_H
21874 ac_libobjs=
21875 ac_ltlibobjs=
21876 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21877 # 1. Remove the extension, and $U if already installed.
21878 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21879 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
21880 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21881 # will be set to the directory where LIBOBJS objects are built.
21882 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21883 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
21884 done
21885 LIBOBJS=$ac_libobjs
21887 LTLIBOBJS=$ac_ltlibobjs
21890 if test -n "$EXEEXT"; then
21891 am__EXEEXT_TRUE=
21892 am__EXEEXT_FALSE='#'
21893 else
21894 am__EXEEXT_TRUE='#'
21895 am__EXEEXT_FALSE=
21898 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21899 as_fn_error "conditional \"AMDEP\" was never defined.
21900 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21902 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21903 as_fn_error "conditional \"am__fastdepCC\" was never defined.
21904 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21906 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
21907 as_fn_error "conditional \"GL_COND_LIBTOOL\" was never defined.
21908 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21910 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
21911 as_fn_error "conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
21912 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21915 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
21916 as_fn_error "conditional \"GL_GENERATE_STDINT_H\" was never defined.
21917 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21919 if test -z "${GL_GENERATE_STDALIGN_H_TRUE}" && test -z "${GL_GENERATE_STDALIGN_H_FALSE}"; then
21920 as_fn_error "conditional \"GL_GENERATE_STDALIGN_H\" was never defined.
21921 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21923 if test -z "${GL_GENERATE_STDARG_H_TRUE}" && test -z "${GL_GENERATE_STDARG_H_FALSE}"; then
21924 as_fn_error "conditional \"GL_GENERATE_STDARG_H\" was never defined.
21925 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21927 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
21928 as_fn_error "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
21929 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21931 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
21932 as_fn_error "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
21933 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21935 if test -z "${gl_GNULIB_ENABLED_dosname_TRUE}" && test -z "${gl_GNULIB_ENABLED_dosname_FALSE}"; then
21936 as_fn_error "conditional \"gl_GNULIB_ENABLED_dosname\" was never defined.
21937 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21939 if test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE}" && test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE}"; then
21940 as_fn_error "conditional \"gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36\" was never defined.
21941 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21943 if test -z "${gl_GNULIB_ENABLED_pathmax_TRUE}" && test -z "${gl_GNULIB_ENABLED_pathmax_FALSE}"; then
21944 as_fn_error "conditional \"gl_GNULIB_ENABLED_pathmax\" was never defined.
21945 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21947 if test -z "${gl_GNULIB_ENABLED_sigprocmask_TRUE}" && test -z "${gl_GNULIB_ENABLED_sigprocmask_FALSE}"; then
21948 as_fn_error "conditional \"gl_GNULIB_ENABLED_sigprocmask\" was never defined.
21949 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21951 if test -z "${gl_GNULIB_ENABLED_stat_TRUE}" && test -z "${gl_GNULIB_ENABLED_stat_FALSE}"; then
21952 as_fn_error "conditional \"gl_GNULIB_ENABLED_stat\" was never defined.
21953 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21955 if test -z "${gl_GNULIB_ENABLED_strtoll_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoll_FALSE}"; then
21956 as_fn_error "conditional \"gl_GNULIB_ENABLED_strtoll\" was never defined.
21957 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21959 if test -z "${gl_GNULIB_ENABLED_strtoull_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoull_FALSE}"; then
21960 as_fn_error "conditional \"gl_GNULIB_ENABLED_strtoull\" was never defined.
21961 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21963 if test -z "${gl_GNULIB_ENABLED_verify_TRUE}" && test -z "${gl_GNULIB_ENABLED_verify_FALSE}"; then
21964 as_fn_error "conditional \"gl_GNULIB_ENABLED_verify\" was never defined.
21965 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21968 gl_libobjs=
21969 gl_ltlibobjs=
21970 if test -n "$gl_LIBOBJS"; then
21971 # Remove the extension.
21972 sed_drop_objext='s/\.o$//;s/\.obj$//'
21973 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
21974 gl_libobjs="$gl_libobjs $i.$ac_objext"
21975 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
21976 done
21978 gl_LIBOBJS=$gl_libobjs
21980 gl_LTLIBOBJS=$gl_ltlibobjs
21984 gltests_libobjs=
21985 gltests_ltlibobjs=
21986 if test -n "$gltests_LIBOBJS"; then
21987 # Remove the extension.
21988 sed_drop_objext='s/\.o$//;s/\.obj$//'
21989 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
21990 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
21991 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
21992 done
21994 gltests_LIBOBJS=$gltests_libobjs
21996 gltests_LTLIBOBJS=$gltests_ltlibobjs
22000 : ${CONFIG_STATUS=./config.status}
22001 ac_write_fail=0
22002 ac_clean_files_save=$ac_clean_files
22003 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22004 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
22005 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
22006 as_write_fail=0
22007 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
22008 #! $SHELL
22009 # Generated by $as_me.
22010 # Run this file to recreate the current configuration.
22011 # Compiler output produced by configure, useful for debugging
22012 # configure, is in config.log if it exists.
22014 debug=false
22015 ac_cs_recheck=false
22016 ac_cs_silent=false
22018 SHELL=\${CONFIG_SHELL-$SHELL}
22019 export SHELL
22020 _ASEOF
22021 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
22022 ## -------------------- ##
22023 ## M4sh Initialization. ##
22024 ## -------------------- ##
22026 # Be more Bourne compatible
22027 DUALCASE=1; export DUALCASE # for MKS sh
22028 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22029 emulate sh
22030 NULLCMD=:
22031 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
22032 # is contrary to our usage. Disable this feature.
22033 alias -g '${1+"$@"}'='"$@"'
22034 setopt NO_GLOB_SUBST
22035 else
22036 case `(set -o) 2>/dev/null` in #(
22037 *posix*) :
22038 set -o posix ;; #(
22039 *) :
22041 esac
22045 as_nl='
22047 export as_nl
22048 # Printing a long string crashes Solaris 7 /usr/bin/printf.
22049 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
22050 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
22051 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
22052 # Prefer a ksh shell builtin over an external printf program on Solaris,
22053 # but without wasting forks for bash or zsh.
22054 if test -z "$BASH_VERSION$ZSH_VERSION" \
22055 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
22056 as_echo='print -r --'
22057 as_echo_n='print -rn --'
22058 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
22059 as_echo='printf %s\n'
22060 as_echo_n='printf %s'
22061 else
22062 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
22063 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
22064 as_echo_n='/usr/ucb/echo -n'
22065 else
22066 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
22067 as_echo_n_body='eval
22068 arg=$1;
22069 case $arg in #(
22070 *"$as_nl"*)
22071 expr "X$arg" : "X\\(.*\\)$as_nl";
22072 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
22073 esac;
22074 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
22076 export as_echo_n_body
22077 as_echo_n='sh -c $as_echo_n_body as_echo'
22079 export as_echo_body
22080 as_echo='sh -c $as_echo_body as_echo'
22083 # The user is always right.
22084 if test "${PATH_SEPARATOR+set}" != set; then
22085 PATH_SEPARATOR=:
22086 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
22087 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
22088 PATH_SEPARATOR=';'
22093 # IFS
22094 # We need space, tab and new line, in precisely that order. Quoting is
22095 # there to prevent editors from complaining about space-tab.
22096 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22097 # splitting by setting IFS to empty value.)
22098 IFS=" "" $as_nl"
22100 # Find who we are. Look in the path if we contain no directory separator.
22101 case $0 in #((
22102 *[\\/]* ) as_myself=$0 ;;
22103 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22104 for as_dir in $PATH
22106 IFS=$as_save_IFS
22107 test -z "$as_dir" && as_dir=.
22108 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22109 done
22110 IFS=$as_save_IFS
22113 esac
22114 # We did not find ourselves, most probably we were run as `sh COMMAND'
22115 # in which case we are not to be found in the path.
22116 if test "x$as_myself" = x; then
22117 as_myself=$0
22119 if test ! -f "$as_myself"; then
22120 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22121 exit 1
22124 # Unset variables that we do not need and which cause bugs (e.g. in
22125 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
22126 # suppresses any "Segmentation fault" message there. '((' could
22127 # trigger a bug in pdksh 5.2.14.
22128 for as_var in BASH_ENV ENV MAIL MAILPATH
22129 do eval test x\${$as_var+set} = xset \
22130 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
22131 done
22132 PS1='$ '
22133 PS2='> '
22134 PS4='+ '
22136 # NLS nuisances.
22137 LC_ALL=C
22138 export LC_ALL
22139 LANGUAGE=C
22140 export LANGUAGE
22142 # CDPATH.
22143 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22146 # as_fn_error ERROR [LINENO LOG_FD]
22147 # ---------------------------------
22148 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
22149 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22150 # script with status $?, using 1 if that was 0.
22151 as_fn_error ()
22153 as_status=$?; test $as_status -eq 0 && as_status=1
22154 if test "$3"; then
22155 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
22156 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
22158 $as_echo "$as_me: error: $1" >&2
22159 as_fn_exit $as_status
22160 } # as_fn_error
22163 # as_fn_set_status STATUS
22164 # -----------------------
22165 # Set $? to STATUS, without forking.
22166 as_fn_set_status ()
22168 return $1
22169 } # as_fn_set_status
22171 # as_fn_exit STATUS
22172 # -----------------
22173 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
22174 as_fn_exit ()
22176 set +e
22177 as_fn_set_status $1
22178 exit $1
22179 } # as_fn_exit
22181 # as_fn_unset VAR
22182 # ---------------
22183 # Portably unset VAR.
22184 as_fn_unset ()
22186 { eval $1=; unset $1;}
22188 as_unset=as_fn_unset
22189 # as_fn_append VAR VALUE
22190 # ----------------------
22191 # Append the text in VALUE to the end of the definition contained in VAR. Take
22192 # advantage of any shell optimizations that allow amortized linear growth over
22193 # repeated appends, instead of the typical quadratic growth present in naive
22194 # implementations.
22195 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
22196 eval 'as_fn_append ()
22198 eval $1+=\$2
22200 else
22201 as_fn_append ()
22203 eval $1=\$$1\$2
22205 fi # as_fn_append
22207 # as_fn_arith ARG...
22208 # ------------------
22209 # Perform arithmetic evaluation on the ARGs, and store the result in the
22210 # global $as_val. Take advantage of shells that can avoid forks. The arguments
22211 # must be portable across $(()) and expr.
22212 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
22213 eval 'as_fn_arith ()
22215 as_val=$(( $* ))
22217 else
22218 as_fn_arith ()
22220 as_val=`expr "$@" || test $? -eq 1`
22222 fi # as_fn_arith
22225 if expr a : '\(a\)' >/dev/null 2>&1 &&
22226 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22227 as_expr=expr
22228 else
22229 as_expr=false
22232 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22233 as_basename=basename
22234 else
22235 as_basename=false
22238 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22239 as_dirname=dirname
22240 else
22241 as_dirname=false
22244 as_me=`$as_basename -- "$0" ||
22245 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22246 X"$0" : 'X\(//\)$' \| \
22247 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22248 $as_echo X/"$0" |
22249 sed '/^.*\/\([^/][^/]*\)\/*$/{
22250 s//\1/
22253 /^X\/\(\/\/\)$/{
22254 s//\1/
22257 /^X\/\(\/\).*/{
22258 s//\1/
22261 s/.*/./; q'`
22263 # Avoid depending upon Character Ranges.
22264 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22265 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22266 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22267 as_cr_digits='0123456789'
22268 as_cr_alnum=$as_cr_Letters$as_cr_digits
22270 ECHO_C= ECHO_N= ECHO_T=
22271 case `echo -n x` in #(((((
22272 -n*)
22273 case `echo 'xy\c'` in
22274 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
22275 xy) ECHO_C='\c';;
22276 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
22277 ECHO_T=' ';;
22278 esac;;
22280 ECHO_N='-n';;
22281 esac
22283 rm -f conf$$ conf$$.exe conf$$.file
22284 if test -d conf$$.dir; then
22285 rm -f conf$$.dir/conf$$.file
22286 else
22287 rm -f conf$$.dir
22288 mkdir conf$$.dir 2>/dev/null
22290 if (echo >conf$$.file) 2>/dev/null; then
22291 if ln -s conf$$.file conf$$ 2>/dev/null; then
22292 as_ln_s='ln -s'
22293 # ... but there are two gotchas:
22294 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22295 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22296 # In both cases, we have to default to `cp -p'.
22297 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22298 as_ln_s='cp -p'
22299 elif ln conf$$.file conf$$ 2>/dev/null; then
22300 as_ln_s=ln
22301 else
22302 as_ln_s='cp -p'
22304 else
22305 as_ln_s='cp -p'
22307 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22308 rmdir conf$$.dir 2>/dev/null
22311 # as_fn_mkdir_p
22312 # -------------
22313 # Create "$as_dir" as a directory, including parents if necessary.
22314 as_fn_mkdir_p ()
22317 case $as_dir in #(
22318 -*) as_dir=./$as_dir;;
22319 esac
22320 test -d "$as_dir" || eval $as_mkdir_p || {
22321 as_dirs=
22322 while :; do
22323 case $as_dir in #(
22324 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
22325 *) as_qdir=$as_dir;;
22326 esac
22327 as_dirs="'$as_qdir' $as_dirs"
22328 as_dir=`$as_dirname -- "$as_dir" ||
22329 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22330 X"$as_dir" : 'X\(//\)[^/]' \| \
22331 X"$as_dir" : 'X\(//\)$' \| \
22332 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22333 $as_echo X"$as_dir" |
22334 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22335 s//\1/
22338 /^X\(\/\/\)[^/].*/{
22339 s//\1/
22342 /^X\(\/\/\)$/{
22343 s//\1/
22346 /^X\(\/\).*/{
22347 s//\1/
22350 s/.*/./; q'`
22351 test -d "$as_dir" && break
22352 done
22353 test -z "$as_dirs" || eval "mkdir $as_dirs"
22354 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
22357 } # as_fn_mkdir_p
22358 if mkdir -p . 2>/dev/null; then
22359 as_mkdir_p='mkdir -p "$as_dir"'
22360 else
22361 test -d ./-p && rmdir ./-p
22362 as_mkdir_p=false
22365 if test -x / >/dev/null 2>&1; then
22366 as_test_x='test -x'
22367 else
22368 if ls -dL / >/dev/null 2>&1; then
22369 as_ls_L_option=L
22370 else
22371 as_ls_L_option=
22373 as_test_x='
22374 eval sh -c '\''
22375 if test -d "$1"; then
22376 test -d "$1/.";
22377 else
22378 case $1 in #(
22379 -*)set "./$1";;
22380 esac;
22381 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
22382 ???[sx]*):;;*)false;;esac;fi
22383 '\'' sh
22386 as_executable_p=$as_test_x
22388 # Sed expression to map a string onto a valid CPP name.
22389 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22391 # Sed expression to map a string onto a valid variable name.
22392 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22395 exec 6>&1
22396 ## ----------------------------------- ##
22397 ## Main body of $CONFIG_STATUS script. ##
22398 ## ----------------------------------- ##
22399 _ASEOF
22400 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
22402 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22403 # Save the log message, to keep $0 and so on meaningful, and to
22404 # report actual input values of CONFIG_FILES etc. instead of their
22405 # values after options handling.
22406 ac_log="
22407 This file was extended by emacs $as_me 24.1.50, which was
22408 generated by GNU Autoconf 2.65. Invocation command line was
22410 CONFIG_FILES = $CONFIG_FILES
22411 CONFIG_HEADERS = $CONFIG_HEADERS
22412 CONFIG_LINKS = $CONFIG_LINKS
22413 CONFIG_COMMANDS = $CONFIG_COMMANDS
22414 $ $0 $@
22416 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22419 _ACEOF
22421 case $ac_config_files in *"
22422 "*) set x $ac_config_files; shift; ac_config_files=$*;;
22423 esac
22425 case $ac_config_headers in *"
22426 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
22427 esac
22430 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22431 # Files that config.status was made for.
22432 config_files="$ac_config_files"
22433 config_headers="$ac_config_headers"
22434 config_commands="$ac_config_commands"
22436 _ACEOF
22438 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22439 ac_cs_usage="\
22440 \`$as_me' instantiates files and other configuration actions
22441 from templates according to the current configuration. Unless the files
22442 and actions are specified as TAGs, all are instantiated by default.
22444 Usage: $0 [OPTION]... [TAG]...
22446 -h, --help print this help, then exit
22447 -V, --version print version number and configuration settings, then exit
22448 --config print configuration, then exit
22449 -q, --quiet, --silent
22450 do not print progress messages
22451 -d, --debug don't remove temporary files
22452 --recheck update $as_me by reconfiguring in the same conditions
22453 --file=FILE[:TEMPLATE]
22454 instantiate the configuration file FILE
22455 --header=FILE[:TEMPLATE]
22456 instantiate the configuration header FILE
22458 Configuration files:
22459 $config_files
22461 Configuration headers:
22462 $config_headers
22464 Configuration commands:
22465 $config_commands
22467 Report bugs to the package provider."
22469 _ACEOF
22470 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22471 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
22472 ac_cs_version="\\
22473 emacs config.status 24.1.50
22474 configured by $0, generated by GNU Autoconf 2.65,
22475 with options \\"\$ac_cs_config\\"
22477 Copyright (C) 2009 Free Software Foundation, Inc.
22478 This config.status script is free software; the Free Software Foundation
22479 gives unlimited permission to copy, distribute and modify it."
22481 ac_pwd='$ac_pwd'
22482 srcdir='$srcdir'
22483 INSTALL='$INSTALL'
22484 MKDIR_P='$MKDIR_P'
22485 AWK='$AWK'
22486 test -n "\$AWK" || AWK=awk
22487 _ACEOF
22489 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22490 # The default lists apply if the user does not specify any file.
22491 ac_need_defaults=:
22492 while test $# != 0
22494 case $1 in
22495 --*=*)
22496 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22497 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22498 ac_shift=:
22501 ac_option=$1
22502 ac_optarg=$2
22503 ac_shift=shift
22505 esac
22507 case $ac_option in
22508 # Handling of the options.
22509 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22510 ac_cs_recheck=: ;;
22511 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22512 $as_echo "$ac_cs_version"; exit ;;
22513 --config | --confi | --conf | --con | --co | --c )
22514 $as_echo "$ac_cs_config"; exit ;;
22515 --debug | --debu | --deb | --de | --d | -d )
22516 debug=: ;;
22517 --file | --fil | --fi | --f )
22518 $ac_shift
22519 case $ac_optarg in
22520 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22521 esac
22522 as_fn_append CONFIG_FILES " '$ac_optarg'"
22523 ac_need_defaults=false;;
22524 --header | --heade | --head | --hea )
22525 $ac_shift
22526 case $ac_optarg in
22527 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22528 esac
22529 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
22530 ac_need_defaults=false;;
22531 --he | --h)
22532 # Conflict between --help and --header
22533 as_fn_error "ambiguous option: \`$1'
22534 Try \`$0 --help' for more information.";;
22535 --help | --hel | -h )
22536 $as_echo "$ac_cs_usage"; exit ;;
22537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22538 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22539 ac_cs_silent=: ;;
22541 # This is an error.
22542 -*) as_fn_error "unrecognized option: \`$1'
22543 Try \`$0 --help' for more information." ;;
22545 *) as_fn_append ac_config_targets " $1"
22546 ac_need_defaults=false ;;
22548 esac
22549 shift
22550 done
22552 ac_configure_extra_args=
22554 if $ac_cs_silent; then
22555 exec 6>/dev/null
22556 ac_configure_extra_args="$ac_configure_extra_args --silent"
22559 _ACEOF
22560 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22561 if \$ac_cs_recheck; then
22562 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22563 shift
22564 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
22565 CONFIG_SHELL='$SHELL'
22566 export CONFIG_SHELL
22567 exec "\$@"
22570 _ACEOF
22571 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22572 exec 5>>config.log
22574 echo
22575 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22576 ## Running $as_me. ##
22577 _ASBOX
22578 $as_echo "$ac_log"
22579 } >&5
22581 _ACEOF
22582 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22584 # INIT-COMMANDS
22586 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22587 GCC="$GCC" CPPFLAGS="$CPPFLAGS"
22589 _ACEOF
22591 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22593 # Handling of arguments.
22594 for ac_config_target in $ac_config_targets
22596 case $ac_config_target in
22597 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
22598 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22599 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22600 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
22601 "lib-src/Makefile") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile" ;;
22602 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
22603 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
22604 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
22605 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
22606 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
22607 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
22608 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
22609 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
22610 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
22611 "test/automated/Makefile") CONFIG_FILES="$CONFIG_FILES test/automated/Makefile" ;;
22612 "admin/unidata/Makefile") CONFIG_FILES="$CONFIG_FILES admin/unidata/Makefile" ;;
22613 "mkdirs") CONFIG_COMMANDS="$CONFIG_COMMANDS mkdirs" ;;
22614 "epaths") CONFIG_COMMANDS="$CONFIG_COMMANDS epaths" ;;
22615 "gdbinit") CONFIG_COMMANDS="$CONFIG_COMMANDS gdbinit" ;;
22617 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
22618 esac
22619 done
22622 # If the user did not use the arguments to specify the items to instantiate,
22623 # then the envvar interface is used. Set only those that are not.
22624 # We use the long form for the default assignment because of an extremely
22625 # bizarre bug on SunOS 4.1.3.
22626 if $ac_need_defaults; then
22627 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22628 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22629 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22632 # Have a temporary directory for convenience. Make it in the build tree
22633 # simply because there is no reason against having it here, and in addition,
22634 # creating and moving files from /tmp can sometimes cause problems.
22635 # Hook for its removal unless debugging.
22636 # Note that there is a small window in which the directory will not be cleaned:
22637 # after its creation but before its name has been assigned to `$tmp'.
22638 $debug ||
22640 tmp=
22641 trap 'exit_status=$?
22642 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22644 trap 'as_fn_exit 1' 1 2 13 15
22646 # Create a (secure) tmp directory for tmp files.
22649 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22650 test -n "$tmp" && test -d "$tmp"
22651 } ||
22653 tmp=./conf$$-$RANDOM
22654 (umask 077 && mkdir "$tmp")
22655 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
22657 # Set up the scripts for CONFIG_FILES section.
22658 # No need to generate them if there are no CONFIG_FILES.
22659 # This happens for instance with `./config.status config.h'.
22660 if test -n "$CONFIG_FILES"; then
22662 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
22663 ac_cs_awk_getline=:
22664 ac_cs_awk_pipe_init=
22665 ac_cs_awk_read_file='
22666 while ((getline aline < (F[key])) > 0)
22667 print(aline)
22668 close(F[key])'
22669 ac_cs_awk_pipe_fini=
22670 else
22671 ac_cs_awk_getline=false
22672 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
22673 ac_cs_awk_read_file='
22674 print "|#_!!_#|"
22675 print "cat " F[key] " &&"
22676 '$ac_cs_awk_pipe_init
22677 # The final `:' finishes the AND list.
22678 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
22680 ac_cr=`echo X | tr X '\015'`
22681 # On cygwin, bash can eat \r inside `` if the user requested igncr.
22682 # But we know of no other shell where ac_cr would be empty at this
22683 # point, so we can use a bashism as a fallback.
22684 if test "x$ac_cr" = x; then
22685 eval ac_cr=\$\'\\r\'
22687 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
22688 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22689 ac_cs_awk_cr='\r'
22690 else
22691 ac_cs_awk_cr=$ac_cr
22694 echo 'BEGIN {' >"$tmp/subs1.awk" &&
22695 _ACEOF
22697 # Create commands to substitute file output variables.
22699 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
22700 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
22701 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
22702 echo "_ACAWK" &&
22703 echo "_ACEOF"
22704 } >conf$$files.sh &&
22705 . ./conf$$files.sh ||
22706 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
22707 rm -f conf$$files.sh
22710 echo "cat >conf$$subs.awk <<_ACEOF" &&
22711 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
22712 echo "_ACEOF"
22713 } >conf$$subs.sh ||
22714 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
22715 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
22716 ac_delim='%!_!# '
22717 for ac_last_try in false false false false false :; do
22718 . ./conf$$subs.sh ||
22719 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
22721 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
22722 if test $ac_delim_n = $ac_delim_num; then
22723 break
22724 elif $ac_last_try; then
22725 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
22726 else
22727 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22729 done
22730 rm -f conf$$subs.sh
22732 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22733 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
22734 _ACEOF
22735 sed -n '
22737 s/^/S["/; s/!.*/"]=/
22740 s/^[^!]*!//
22741 :repl
22742 t repl
22743 s/'"$ac_delim"'$//
22744 t delim
22747 s/\(.\{148\}\)..*/\1/
22748 t more1
22749 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
22752 b repl
22753 :more1
22754 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22757 s/.\{148\}//
22758 t nl
22759 :delim
22761 s/\(.\{148\}\)..*/\1/
22762 t more2
22763 s/["\\]/\\&/g; s/^/"/; s/$/"/
22766 :more2
22767 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22770 s/.\{148\}//
22771 t delim
22772 ' <conf$$subs.awk | sed '
22773 /^[^""]/{
22775 s/\n//
22777 ' >>$CONFIG_STATUS || ac_write_fail=1
22778 rm -f conf$$subs.awk
22779 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22780 _ACAWK
22781 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
22782 for (key in S) S_is_set[key] = 1
22783 FS = "\a"
22784 \$ac_cs_awk_pipe_init
22787 line = $ 0
22788 nfields = split(line, field, "@")
22789 substed = 0
22790 len = length(field[1])
22791 for (i = 2; i < nfields; i++) {
22792 key = field[i]
22793 keylen = length(key)
22794 if (S_is_set[key]) {
22795 value = S[key]
22796 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
22797 len += length(value) + length(field[++i])
22798 substed = 1
22799 } else
22800 len += 1 + keylen
22802 if (nfields == 3 && !substed) {
22803 key = field[2]
22804 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
22805 \$ac_cs_awk_read_file
22806 next
22809 print line
22811 \$ac_cs_awk_pipe_fini
22812 _ACAWK
22813 _ACEOF
22814 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22815 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
22816 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
22817 else
22819 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
22820 || as_fn_error "could not setup config files machinery" "$LINENO" 5
22821 _ACEOF
22823 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22824 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22825 # trailing colons and then remove the whole line if VPATH becomes empty
22826 # (actually we leave an empty line to preserve line numbers).
22827 if test "x$srcdir" = x.; then
22828 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22829 s/:*\$(srcdir):*/:/
22830 s/:*\${srcdir}:*/:/
22831 s/:*@srcdir@:*/:/
22832 s/^\([^=]*=[ ]*\):*/\1/
22833 s/:*$//
22834 s/^[^=]*=[ ]*$//
22838 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22839 fi # test -n "$CONFIG_FILES"
22841 # Set up the scripts for CONFIG_HEADERS section.
22842 # No need to generate them if there are no CONFIG_HEADERS.
22843 # This happens for instance with `./config.status Makefile'.
22844 if test -n "$CONFIG_HEADERS"; then
22845 cat >"$tmp/defines.awk" <<\_ACAWK ||
22846 BEGIN {
22847 _ACEOF
22849 # Transform confdefs.h into an awk script `defines.awk', embedded as
22850 # here-document in config.status, that substitutes the proper values into
22851 # config.h.in to produce config.h.
22853 # Create a delimiter string that does not exist in confdefs.h, to ease
22854 # handling of long lines.
22855 ac_delim='%!_!# '
22856 for ac_last_try in false false :; do
22857 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
22858 if test -z "$ac_t"; then
22859 break
22860 elif $ac_last_try; then
22861 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
22862 else
22863 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22865 done
22867 # For the awk script, D is an array of macro values keyed by name,
22868 # likewise P contains macro parameters if any. Preserve backslash
22869 # newline sequences.
22871 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22872 sed -n '
22873 s/.\{148\}/&'"$ac_delim"'/g
22874 t rset
22875 :rset
22876 s/^[ ]*#[ ]*define[ ][ ]*/ /
22877 t def
22879 :def
22880 s/\\$//
22881 t bsnl
22882 s/["\\]/\\&/g
22883 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22884 D["\1"]=" \3"/p
22885 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
22887 :bsnl
22888 s/["\\]/\\&/g
22889 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22890 D["\1"]=" \3\\\\\\n"\\/p
22891 t cont
22892 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
22893 t cont
22895 :cont
22897 s/.\{148\}/&'"$ac_delim"'/g
22898 t clear
22899 :clear
22900 s/\\$//
22901 t bsnlc
22902 s/["\\]/\\&/g; s/^/"/; s/$/"/p
22904 :bsnlc
22905 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
22906 b cont
22907 ' <confdefs.h | sed '
22908 s/'"$ac_delim"'/"\\\
22909 "/g' >>$CONFIG_STATUS || ac_write_fail=1
22911 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22912 for (key in D) D_is_set[key] = 1
22913 FS = "\a"
22915 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
22916 line = \$ 0
22917 split(line, arg, " ")
22918 if (arg[1] == "#") {
22919 defundef = arg[2]
22920 mac1 = arg[3]
22921 } else {
22922 defundef = substr(arg[1], 2)
22923 mac1 = arg[2]
22925 split(mac1, mac2, "(") #)
22926 macro = mac2[1]
22927 prefix = substr(line, 1, index(line, defundef) - 1)
22928 if (D_is_set[macro]) {
22929 # Preserve the white space surrounding the "#".
22930 print prefix "define", macro P[macro] D[macro]
22931 next
22932 } else {
22933 # Replace #undef with comments. This is necessary, for example,
22934 # in the case of _POSIX_SOURCE, which is predefined and required
22935 # on some systems where configure will not decide to define it.
22936 if (defundef == "undef") {
22937 print "/*", prefix defundef, macro, "*/"
22938 next
22942 { print }
22943 _ACAWK
22944 _ACEOF
22945 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22946 as_fn_error "could not setup config headers machinery" "$LINENO" 5
22947 fi # test -n "$CONFIG_HEADERS"
22950 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
22951 shift
22952 for ac_tag
22954 case $ac_tag in
22955 :[FHLC]) ac_mode=$ac_tag; continue;;
22956 esac
22957 case $ac_mode$ac_tag in
22958 :[FHL]*:*);;
22959 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
22960 :[FH]-) ac_tag=-:-;;
22961 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22962 esac
22963 ac_save_IFS=$IFS
22964 IFS=:
22965 set x $ac_tag
22966 IFS=$ac_save_IFS
22967 shift
22968 ac_file=$1
22969 shift
22971 case $ac_mode in
22972 :L) ac_source=$1;;
22973 :[FH])
22974 ac_file_inputs=
22975 for ac_f
22977 case $ac_f in
22978 -) ac_f="$tmp/stdin";;
22979 *) # Look for the file first in the build tree, then in the source tree
22980 # (if the path is not absolute). The absolute path cannot be DOS-style,
22981 # because $ac_f cannot contain `:'.
22982 test -f "$ac_f" ||
22983 case $ac_f in
22984 [\\/$]*) false;;
22985 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22986 esac ||
22987 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
22988 esac
22989 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22990 as_fn_append ac_file_inputs " '$ac_f'"
22991 done
22993 # Let's still pretend it is `configure' which instantiates (i.e., don't
22994 # use $as_me), people would be surprised to read:
22995 # /* config.h. Generated by config.status. */
22996 configure_input='Generated from '`
22997 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22998 `' by configure.'
22999 if test x"$ac_file" != x-; then
23000 configure_input="$ac_file. $configure_input"
23001 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
23002 $as_echo "$as_me: creating $ac_file" >&6;}
23004 # Neutralize special characters interpreted by sed in replacement strings.
23005 case $configure_input in #(
23006 *\&* | *\|* | *\\* )
23007 ac_sed_conf_input=`$as_echo "$configure_input" |
23008 sed 's/[\\\\&|]/\\\\&/g'`;; #(
23009 *) ac_sed_conf_input=$configure_input;;
23010 esac
23012 case $ac_tag in
23013 *:-:* | *:-) cat >"$tmp/stdin" \
23014 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
23015 esac
23017 esac
23019 ac_dir=`$as_dirname -- "$ac_file" ||
23020 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23021 X"$ac_file" : 'X\(//\)[^/]' \| \
23022 X"$ac_file" : 'X\(//\)$' \| \
23023 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23024 $as_echo X"$ac_file" |
23025 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23026 s//\1/
23029 /^X\(\/\/\)[^/].*/{
23030 s//\1/
23033 /^X\(\/\/\)$/{
23034 s//\1/
23037 /^X\(\/\).*/{
23038 s//\1/
23041 s/.*/./; q'`
23042 as_dir="$ac_dir"; as_fn_mkdir_p
23043 ac_builddir=.
23045 case "$ac_dir" in
23046 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23048 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
23049 # A ".." for each directory in $ac_dir_suffix.
23050 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
23051 case $ac_top_builddir_sub in
23052 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23053 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23054 esac ;;
23055 esac
23056 ac_abs_top_builddir=$ac_pwd
23057 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23058 # for backward compatibility:
23059 ac_top_builddir=$ac_top_build_prefix
23061 case $srcdir in
23062 .) # We are building in place.
23063 ac_srcdir=.
23064 ac_top_srcdir=$ac_top_builddir_sub
23065 ac_abs_top_srcdir=$ac_pwd ;;
23066 [\\/]* | ?:[\\/]* ) # Absolute name.
23067 ac_srcdir=$srcdir$ac_dir_suffix;
23068 ac_top_srcdir=$srcdir
23069 ac_abs_top_srcdir=$srcdir ;;
23070 *) # Relative name.
23071 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23072 ac_top_srcdir=$ac_top_build_prefix$srcdir
23073 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23074 esac
23075 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23078 case $ac_mode in
23081 # CONFIG_FILE
23084 case $INSTALL in
23085 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23086 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23087 esac
23088 ac_MKDIR_P=$MKDIR_P
23089 case $MKDIR_P in
23090 [\\/$]* | ?:[\\/]* ) ;;
23091 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
23092 esac
23093 _ACEOF
23095 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23096 # If the template does not know about datarootdir, expand it.
23097 # FIXME: This hack should be removed a few years after 2.60.
23098 ac_datarootdir_hack=; ac_datarootdir_seen=
23099 ac_sed_dataroot='
23100 /datarootdir/ {
23104 /@datadir@/p
23105 /@docdir@/p
23106 /@infodir@/p
23107 /@localedir@/p
23108 /@mandir@/p'
23109 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
23110 *datarootdir*) ac_datarootdir_seen=yes;;
23111 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23112 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23113 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23114 _ACEOF
23115 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23116 ac_datarootdir_hack='
23117 s&@datadir@&$datadir&g
23118 s&@docdir@&$docdir&g
23119 s&@infodir@&$infodir&g
23120 s&@localedir@&$localedir&g
23121 s&@mandir@&$mandir&g
23122 s&\\\${datarootdir}&$datarootdir&g' ;;
23123 esac
23124 _ACEOF
23126 # Neutralize VPATH when `$srcdir' = `.'.
23127 # Shell code in configure.ac might set extrasub.
23128 # FIXME: do we really want to maintain this feature?
23129 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23130 ac_sed_extra="$ac_vpsub
23131 $extrasub
23132 _ACEOF
23133 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23135 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23136 s|@configure_input@|$ac_sed_conf_input|;t t
23137 s&@top_builddir@&$ac_top_builddir_sub&;t t
23138 s&@top_build_prefix@&$ac_top_build_prefix&;t t
23139 s&@srcdir@&$ac_srcdir&;t t
23140 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23141 s&@top_srcdir@&$ac_top_srcdir&;t t
23142 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23143 s&@builddir@&$ac_builddir&;t t
23144 s&@abs_builddir@&$ac_abs_builddir&;t t
23145 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23146 s&@INSTALL@&$ac_INSTALL&;t t
23147 s&@MKDIR_P@&$ac_MKDIR_P&;t t
23148 $ac_datarootdir_hack
23150 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
23151 if $ac_cs_awk_getline; then
23152 $AWK -f "$tmp/subs.awk"
23153 else
23154 $AWK -f "$tmp/subs.awk" | $SHELL
23155 fi >$tmp/out \
23156 || as_fn_error "could not create $ac_file" "$LINENO" 5
23158 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23159 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23160 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23161 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23162 which seems to be undefined. Please make sure it is defined." >&5
23163 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23164 which seems to be undefined. Please make sure it is defined." >&2;}
23166 rm -f "$tmp/stdin"
23167 case $ac_file in
23168 -) cat "$tmp/out" && rm -f "$tmp/out";;
23169 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
23170 esac \
23171 || as_fn_error "could not create $ac_file" "$LINENO" 5
23175 # CONFIG_HEADER
23177 if test x"$ac_file" != x-; then
23179 $as_echo "/* $configure_input */" \
23180 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
23181 } >"$tmp/config.h" \
23182 || as_fn_error "could not create $ac_file" "$LINENO" 5
23183 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
23184 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
23185 $as_echo "$as_me: $ac_file is unchanged" >&6;}
23186 else
23187 rm -f "$ac_file"
23188 mv "$tmp/config.h" "$ac_file" \
23189 || as_fn_error "could not create $ac_file" "$LINENO" 5
23191 else
23192 $as_echo "/* $configure_input */" \
23193 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
23194 || as_fn_error "could not create -" "$LINENO" 5
23196 # Compute "$ac_file"'s index in $config_headers.
23197 _am_arg="$ac_file"
23198 _am_stamp_count=1
23199 for _am_header in $config_headers :; do
23200 case $_am_header in
23201 $_am_arg | $_am_arg:* )
23202 break ;;
23204 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23205 esac
23206 done
23207 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
23208 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23209 X"$_am_arg" : 'X\(//\)[^/]' \| \
23210 X"$_am_arg" : 'X\(//\)$' \| \
23211 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
23212 $as_echo X"$_am_arg" |
23213 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23214 s//\1/
23217 /^X\(\/\/\)[^/].*/{
23218 s//\1/
23221 /^X\(\/\/\)$/{
23222 s//\1/
23225 /^X\(\/\).*/{
23226 s//\1/
23229 s/.*/./; q'`/stamp-h$_am_stamp_count
23232 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
23233 $as_echo "$as_me: executing $ac_file commands" >&6;}
23235 esac
23238 case $ac_file$ac_mode in
23239 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
23240 # Autoconf 2.62 quotes --file arguments for eval, but not when files
23241 # are listed without --file. Let's play safe and only enable the eval
23242 # if we detect the quoting.
23243 case $CONFIG_FILES in
23244 *\'*) eval set x "$CONFIG_FILES" ;;
23245 *) set x $CONFIG_FILES ;;
23246 esac
23247 shift
23248 for mf
23250 # Strip MF so we end up with the name of the file.
23251 mf=`echo "$mf" | sed -e 's/:.*$//'`
23252 # Check whether this is an Automake generated Makefile or not.
23253 # We used to match only the files named `Makefile.in', but
23254 # some people rename them; so instead we look at the file content.
23255 # Grep'ing the first line is not enough: some people post-process
23256 # each Makefile.in and add a new line on top of each file to say so.
23257 # Grep'ing the whole file is not good either: AIX grep has a line
23258 # limit of 2048, but all sed's we know have understand at least 4000.
23259 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
23260 dirpart=`$as_dirname -- "$mf" ||
23261 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23262 X"$mf" : 'X\(//\)[^/]' \| \
23263 X"$mf" : 'X\(//\)$' \| \
23264 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
23265 $as_echo X"$mf" |
23266 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23267 s//\1/
23270 /^X\(\/\/\)[^/].*/{
23271 s//\1/
23274 /^X\(\/\/\)$/{
23275 s//\1/
23278 /^X\(\/\).*/{
23279 s//\1/
23282 s/.*/./; q'`
23283 else
23284 continue
23286 # Extract the definition of DEPDIR, am__include, and am__quote
23287 # from the Makefile without running `make'.
23288 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23289 test -z "$DEPDIR" && continue
23290 am__include=`sed -n 's/^am__include = //p' < "$mf"`
23291 test -z "am__include" && continue
23292 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23293 # When using ansi2knr, U may be empty or an underscore; expand it
23294 U=`sed -n 's/^U = //p' < "$mf"`
23295 # Find all dependency output files, they are included files with
23296 # $(DEPDIR) in their names. We invoke sed twice because it is the
23297 # simplest approach to changing $(DEPDIR) to its actual value in the
23298 # expansion.
23299 for file in `sed -n "
23300 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23301 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23302 # Make sure the directory exists.
23303 test -f "$dirpart/$file" && continue
23304 fdir=`$as_dirname -- "$file" ||
23305 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23306 X"$file" : 'X\(//\)[^/]' \| \
23307 X"$file" : 'X\(//\)$' \| \
23308 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
23309 $as_echo X"$file" |
23310 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23311 s//\1/
23314 /^X\(\/\/\)[^/].*/{
23315 s//\1/
23318 /^X\(\/\/\)$/{
23319 s//\1/
23322 /^X\(\/\).*/{
23323 s//\1/
23326 s/.*/./; q'`
23327 as_dir=$dirpart/$fdir; as_fn_mkdir_p
23328 # echo "creating $dirpart/$file"
23329 echo '# dummy' > "$dirpart/$file"
23330 done
23331 done
23334 "mkdirs":C)
23335 for dir in etc lisp ; do
23336 test -d ${dir} || mkdir ${dir}
23337 done
23339 "epaths":C)
23340 echo creating src/epaths.h
23341 ${MAKE-make} epaths-force
23343 "gdbinit":C)
23344 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
23345 echo creating src/.gdbinit
23346 echo source $srcdir/src/.gdbinit > src/.gdbinit
23350 esac
23351 done # for ac_tag
23354 as_fn_exit 0
23355 _ACEOF
23356 ac_clean_files=$ac_clean_files_save
23358 test $ac_write_fail = 0 ||
23359 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
23362 # configure is writing to config.log, and then calls config.status.
23363 # config.status does its own redirection, appending to config.log.
23364 # Unfortunately, on DOS this fails, as config.log is still kept open
23365 # by configure, so config.status won't be able to write to it; its
23366 # output is simply discarded. So we exec the FD to /dev/null,
23367 # effectively closing config.log, so it can be properly (re)opened and
23368 # appended to by config.status. When coming back to configure, we
23369 # need to make the FD available again.
23370 if test "$no_create" != yes; then
23371 ac_cs_success=:
23372 ac_config_status_args=
23373 test "$silent" = yes &&
23374 ac_config_status_args="$ac_config_status_args --quiet"
23375 exec 5>/dev/null
23376 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23377 exec 5>>config.log
23378 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23379 # would make configure fail if this is the last instruction.
23380 $ac_cs_success || as_fn_exit $?
23382 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
23383 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
23384 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}