Auto-commit of generated files.
[emacs.git] / autogen / configure
blob3d13968f14d5d05dfe4b6aef3dcef8043e16290b
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 PAXCTL
1211 GZIP_PROG
1212 INSTALL_INFO
1213 GNULIB_WARN_CFLAGS
1214 WARN_CFLAGS
1215 WERROR_CFLAGS
1216 RANLIB
1217 ARFLAGS
1219 EGREP
1220 GREP
1222 am__fastdepCC_FALSE
1223 am__fastdepCC_TRUE
1224 CCDEPMODE
1225 AMDEPBACKSLASH
1226 AMDEP_FALSE
1227 AMDEP_TRUE
1228 am__quote
1229 am__include
1230 DEPDIR
1231 OBJEXT
1232 EXEEXT
1233 ac_ct_CC
1234 CPPFLAGS
1235 LDFLAGS
1236 CFLAGS
1238 host_os
1239 host_vendor
1240 host_cpu
1241 host
1242 build_os
1243 build_vendor
1244 build_cpu
1245 build
1246 PROFILING_CFLAGS
1247 GZIP_INFO
1248 cache_file
1249 am__untar
1250 am__tar
1251 AMTAR
1252 am__leading_dot
1253 SET_MAKE
1255 mkdir_p
1256 MKDIR_P
1257 INSTALL_STRIP_PROGRAM
1258 STRIP
1259 install_sh
1260 MAKEINFO
1261 AUTOHEADER
1262 AUTOMAKE
1263 AUTOCONF
1264 ACLOCAL
1265 VERSION
1266 PACKAGE
1267 CYGPATH_W
1268 am__isrc
1269 INSTALL_DATA
1270 INSTALL_SCRIPT
1271 INSTALL_PROGRAM
1272 target_alias
1273 host_alias
1274 build_alias
1275 LIBS
1276 ECHO_T
1277 ECHO_N
1278 ECHO_C
1279 DEFS
1280 mandir
1281 localedir
1282 libdir
1283 psdir
1284 pdfdir
1285 dvidir
1286 htmldir
1287 infodir
1288 docdir
1289 oldincludedir
1290 includedir
1291 localstatedir
1292 sharedstatedir
1293 sysconfdir
1294 datadir
1295 datarootdir
1296 libexecdir
1297 sbindir
1298 bindir
1299 program_transform_name
1300 prefix
1301 exec_prefix
1302 PACKAGE_URL
1303 PACKAGE_BUGREPORT
1304 PACKAGE_STRING
1305 PACKAGE_VERSION
1306 PACKAGE_TARNAME
1307 PACKAGE_NAME
1308 PATH_SEPARATOR
1309 SHELL'
1310 ac_subst_files='deps_frag
1311 lisp_frag
1312 ns_frag'
1313 ac_user_opts='
1314 enable_option_checking
1315 with_pop
1316 with_kerberos
1317 with_kerberos5
1318 with_hesiod
1319 with_mmdf
1320 with_mail_unlink
1321 with_mailhost
1322 with_sound
1323 with_sync_input
1324 with_x_toolkit
1325 with_wide_int
1326 with_xpm
1327 with_jpeg
1328 with_tiff
1329 with_gif
1330 with_png
1331 with_rsvg
1332 with_xml2
1333 with_imagemagick
1334 with_xft
1335 with_libotf
1336 with_m17n_flt
1337 with_toolkit_scroll_bars
1338 with_xaw3d
1339 with_xim
1340 with_ns
1341 with_gpm
1342 with_dbus
1343 with_gconf
1344 with_gsettings
1345 with_selinux
1346 with_gnutls
1347 with_makeinfo
1348 with_compress_info
1349 with_pkg_config_prog
1350 with_crt_dir
1351 with_gameuser
1352 with_gnustep_conf
1353 enable_ns_self_contained
1354 enable_asserts
1355 enable_locallisppath
1356 enable_checking
1357 enable_use_lisp_union_type
1358 enable_profiling
1359 enable_autodepend
1360 enable_dependency_tracking
1361 enable_largefile
1362 enable_gcc_warnings
1363 with_x
1365 ac_precious_vars='build_alias
1366 host_alias
1367 target_alias
1369 CFLAGS
1370 LDFLAGS
1371 LIBS
1372 CPPFLAGS
1374 XMKMF'
1377 # Initialize some variables set by options.
1378 ac_init_help=
1379 ac_init_version=false
1380 ac_unrecognized_opts=
1381 ac_unrecognized_sep=
1382 # The variables have the same names as the options, with
1383 # dashes changed to underlines.
1384 cache_file=/dev/null
1385 exec_prefix=NONE
1386 no_create=
1387 no_recursion=
1388 prefix=NONE
1389 program_prefix=NONE
1390 program_suffix=NONE
1391 program_transform_name=s,x,x,
1392 silent=
1393 site=
1394 srcdir=
1395 verbose=
1396 x_includes=NONE
1397 x_libraries=NONE
1399 # Installation directory options.
1400 # These are left unexpanded so users can "make install exec_prefix=/foo"
1401 # and all the variables that are supposed to be based on exec_prefix
1402 # by default will actually change.
1403 # Use braces instead of parens because sh, perl, etc. also accept them.
1404 # (The list follows the same order as the GNU Coding Standards.)
1405 bindir='${exec_prefix}/bin'
1406 sbindir='${exec_prefix}/sbin'
1407 libexecdir='${exec_prefix}/libexec'
1408 datarootdir='${prefix}/share'
1409 datadir='${datarootdir}'
1410 sysconfdir='${prefix}/etc'
1411 sharedstatedir='${prefix}/com'
1412 localstatedir='${prefix}/var'
1413 includedir='${prefix}/include'
1414 oldincludedir='/usr/include'
1415 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1416 infodir='${datarootdir}/info'
1417 htmldir='${docdir}'
1418 dvidir='${docdir}'
1419 pdfdir='${docdir}'
1420 psdir='${docdir}'
1421 libdir='${exec_prefix}/lib'
1422 localedir='${datarootdir}/locale'
1423 mandir='${datarootdir}/man'
1425 ac_prev=
1426 ac_dashdash=
1427 for ac_option
1429 # If the previous option needs an argument, assign it.
1430 if test -n "$ac_prev"; then
1431 eval $ac_prev=\$ac_option
1432 ac_prev=
1433 continue
1436 case $ac_option in
1437 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1438 *) ac_optarg=yes ;;
1439 esac
1441 # Accept the important Cygnus configure options, so we can diagnose typos.
1443 case $ac_dashdash$ac_option in
1445 ac_dashdash=yes ;;
1447 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1448 ac_prev=bindir ;;
1449 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1450 bindir=$ac_optarg ;;
1452 -build | --build | --buil | --bui | --bu)
1453 ac_prev=build_alias ;;
1454 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1455 build_alias=$ac_optarg ;;
1457 -cache-file | --cache-file | --cache-fil | --cache-fi \
1458 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1459 ac_prev=cache_file ;;
1460 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1461 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1462 cache_file=$ac_optarg ;;
1464 --config-cache | -C)
1465 cache_file=config.cache ;;
1467 -datadir | --datadir | --datadi | --datad)
1468 ac_prev=datadir ;;
1469 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1470 datadir=$ac_optarg ;;
1472 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1473 | --dataroo | --dataro | --datar)
1474 ac_prev=datarootdir ;;
1475 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1476 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1477 datarootdir=$ac_optarg ;;
1479 -disable-* | --disable-*)
1480 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1481 # Reject names that are not valid shell variable names.
1482 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1483 as_fn_error "invalid feature name: $ac_useropt"
1484 ac_useropt_orig=$ac_useropt
1485 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1486 case $ac_user_opts in
1488 "enable_$ac_useropt"
1489 "*) ;;
1490 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1491 ac_unrecognized_sep=', ';;
1492 esac
1493 eval enable_$ac_useropt=no ;;
1495 -docdir | --docdir | --docdi | --doc | --do)
1496 ac_prev=docdir ;;
1497 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1498 docdir=$ac_optarg ;;
1500 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1501 ac_prev=dvidir ;;
1502 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1503 dvidir=$ac_optarg ;;
1505 -enable-* | --enable-*)
1506 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1507 # Reject names that are not valid shell variable names.
1508 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1509 as_fn_error "invalid feature name: $ac_useropt"
1510 ac_useropt_orig=$ac_useropt
1511 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1512 case $ac_user_opts in
1514 "enable_$ac_useropt"
1515 "*) ;;
1516 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1517 ac_unrecognized_sep=', ';;
1518 esac
1519 eval enable_$ac_useropt=\$ac_optarg ;;
1521 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1522 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1523 | --exec | --exe | --ex)
1524 ac_prev=exec_prefix ;;
1525 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1526 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1527 | --exec=* | --exe=* | --ex=*)
1528 exec_prefix=$ac_optarg ;;
1530 -gas | --gas | --ga | --g)
1531 # Obsolete; use --with-gas.
1532 with_gas=yes ;;
1534 -help | --help | --hel | --he | -h)
1535 ac_init_help=long ;;
1536 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1537 ac_init_help=recursive ;;
1538 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1539 ac_init_help=short ;;
1541 -host | --host | --hos | --ho)
1542 ac_prev=host_alias ;;
1543 -host=* | --host=* | --hos=* | --ho=*)
1544 host_alias=$ac_optarg ;;
1546 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1547 ac_prev=htmldir ;;
1548 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1549 | --ht=*)
1550 htmldir=$ac_optarg ;;
1552 -includedir | --includedir | --includedi | --included | --include \
1553 | --includ | --inclu | --incl | --inc)
1554 ac_prev=includedir ;;
1555 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1556 | --includ=* | --inclu=* | --incl=* | --inc=*)
1557 includedir=$ac_optarg ;;
1559 -infodir | --infodir | --infodi | --infod | --info | --inf)
1560 ac_prev=infodir ;;
1561 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1562 infodir=$ac_optarg ;;
1564 -libdir | --libdir | --libdi | --libd)
1565 ac_prev=libdir ;;
1566 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1567 libdir=$ac_optarg ;;
1569 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1570 | --libexe | --libex | --libe)
1571 ac_prev=libexecdir ;;
1572 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1573 | --libexe=* | --libex=* | --libe=*)
1574 libexecdir=$ac_optarg ;;
1576 -localedir | --localedir | --localedi | --localed | --locale)
1577 ac_prev=localedir ;;
1578 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1579 localedir=$ac_optarg ;;
1581 -localstatedir | --localstatedir | --localstatedi | --localstated \
1582 | --localstate | --localstat | --localsta | --localst | --locals)
1583 ac_prev=localstatedir ;;
1584 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1585 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1586 localstatedir=$ac_optarg ;;
1588 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1589 ac_prev=mandir ;;
1590 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1591 mandir=$ac_optarg ;;
1593 -nfp | --nfp | --nf)
1594 # Obsolete; use --without-fp.
1595 with_fp=no ;;
1597 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1598 | --no-cr | --no-c | -n)
1599 no_create=yes ;;
1601 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1602 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1603 no_recursion=yes ;;
1605 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1606 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1607 | --oldin | --oldi | --old | --ol | --o)
1608 ac_prev=oldincludedir ;;
1609 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1610 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1611 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1612 oldincludedir=$ac_optarg ;;
1614 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1615 ac_prev=prefix ;;
1616 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1617 prefix=$ac_optarg ;;
1619 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1620 | --program-pre | --program-pr | --program-p)
1621 ac_prev=program_prefix ;;
1622 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1623 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1624 program_prefix=$ac_optarg ;;
1626 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1627 | --program-suf | --program-su | --program-s)
1628 ac_prev=program_suffix ;;
1629 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1630 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1631 program_suffix=$ac_optarg ;;
1633 -program-transform-name | --program-transform-name \
1634 | --program-transform-nam | --program-transform-na \
1635 | --program-transform-n | --program-transform- \
1636 | --program-transform | --program-transfor \
1637 | --program-transfo | --program-transf \
1638 | --program-trans | --program-tran \
1639 | --progr-tra | --program-tr | --program-t)
1640 ac_prev=program_transform_name ;;
1641 -program-transform-name=* | --program-transform-name=* \
1642 | --program-transform-nam=* | --program-transform-na=* \
1643 | --program-transform-n=* | --program-transform-=* \
1644 | --program-transform=* | --program-transfor=* \
1645 | --program-transfo=* | --program-transf=* \
1646 | --program-trans=* | --program-tran=* \
1647 | --progr-tra=* | --program-tr=* | --program-t=*)
1648 program_transform_name=$ac_optarg ;;
1650 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1651 ac_prev=pdfdir ;;
1652 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1653 pdfdir=$ac_optarg ;;
1655 -psdir | --psdir | --psdi | --psd | --ps)
1656 ac_prev=psdir ;;
1657 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1658 psdir=$ac_optarg ;;
1660 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1661 | -silent | --silent | --silen | --sile | --sil)
1662 silent=yes ;;
1664 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1665 ac_prev=sbindir ;;
1666 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1667 | --sbi=* | --sb=*)
1668 sbindir=$ac_optarg ;;
1670 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1671 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1672 | --sharedst | --shareds | --shared | --share | --shar \
1673 | --sha | --sh)
1674 ac_prev=sharedstatedir ;;
1675 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1676 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1677 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1678 | --sha=* | --sh=*)
1679 sharedstatedir=$ac_optarg ;;
1681 -site | --site | --sit)
1682 ac_prev=site ;;
1683 -site=* | --site=* | --sit=*)
1684 site=$ac_optarg ;;
1686 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1687 ac_prev=srcdir ;;
1688 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1689 srcdir=$ac_optarg ;;
1691 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1692 | --syscon | --sysco | --sysc | --sys | --sy)
1693 ac_prev=sysconfdir ;;
1694 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1695 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1696 sysconfdir=$ac_optarg ;;
1698 -target | --target | --targe | --targ | --tar | --ta | --t)
1699 ac_prev=target_alias ;;
1700 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1701 target_alias=$ac_optarg ;;
1703 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1704 verbose=yes ;;
1706 -version | --version | --versio | --versi | --vers | -V)
1707 ac_init_version=: ;;
1709 -with-* | --with-*)
1710 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1711 # Reject names that are not valid shell variable names.
1712 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1713 as_fn_error "invalid package name: $ac_useropt"
1714 ac_useropt_orig=$ac_useropt
1715 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1716 case $ac_user_opts in
1718 "with_$ac_useropt"
1719 "*) ;;
1720 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1721 ac_unrecognized_sep=', ';;
1722 esac
1723 eval with_$ac_useropt=\$ac_optarg ;;
1725 -without-* | --without-*)
1726 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1727 # Reject names that are not valid shell variable names.
1728 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1729 as_fn_error "invalid package name: $ac_useropt"
1730 ac_useropt_orig=$ac_useropt
1731 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1732 case $ac_user_opts in
1734 "with_$ac_useropt"
1735 "*) ;;
1736 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1737 ac_unrecognized_sep=', ';;
1738 esac
1739 eval with_$ac_useropt=no ;;
1741 --x)
1742 # Obsolete; use --with-x.
1743 with_x=yes ;;
1745 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1746 | --x-incl | --x-inc | --x-in | --x-i)
1747 ac_prev=x_includes ;;
1748 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1749 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1750 x_includes=$ac_optarg ;;
1752 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1753 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1754 ac_prev=x_libraries ;;
1755 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1756 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1757 x_libraries=$ac_optarg ;;
1759 -*) as_fn_error "unrecognized option: \`$ac_option'
1760 Try \`$0 --help' for more information."
1763 *=*)
1764 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1765 # Reject names that are not valid shell variable names.
1766 case $ac_envvar in #(
1767 '' | [0-9]* | *[!_$as_cr_alnum]* )
1768 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1769 esac
1770 eval $ac_envvar=\$ac_optarg
1771 export $ac_envvar ;;
1774 # FIXME: should be removed in autoconf 3.0.
1775 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1776 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1777 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1778 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1781 esac
1782 done
1784 if test -n "$ac_prev"; then
1785 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1786 as_fn_error "missing argument to $ac_option"
1789 if test -n "$ac_unrecognized_opts"; then
1790 case $enable_option_checking in
1791 no) ;;
1792 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1793 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1794 esac
1797 # Check all directory arguments for consistency.
1798 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1799 datadir sysconfdir sharedstatedir localstatedir includedir \
1800 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1801 libdir localedir mandir
1803 eval ac_val=\$$ac_var
1804 # Remove trailing slashes.
1805 case $ac_val in
1806 */ )
1807 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1808 eval $ac_var=\$ac_val;;
1809 esac
1810 # Be sure to have absolute directory names.
1811 case $ac_val in
1812 [\\/$]* | ?:[\\/]* ) continue;;
1813 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1814 esac
1815 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1816 done
1818 # There might be people who depend on the old broken behavior: `$host'
1819 # used to hold the argument of --host etc.
1820 # FIXME: To remove some day.
1821 build=$build_alias
1822 host=$host_alias
1823 target=$target_alias
1825 # FIXME: To remove some day.
1826 if test "x$host_alias" != x; then
1827 if test "x$build_alias" = x; then
1828 cross_compiling=maybe
1829 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1830 If a cross compiler is detected then cross compile mode will be used." >&2
1831 elif test "x$build_alias" != "x$host_alias"; then
1832 cross_compiling=yes
1836 ac_tool_prefix=
1837 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1839 test "$silent" = yes && exec 6>/dev/null
1842 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1843 ac_ls_di=`ls -di .` &&
1844 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1845 as_fn_error "working directory cannot be determined"
1846 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1847 as_fn_error "pwd does not report name of working directory"
1850 # Find the source files, if location was not specified.
1851 if test -z "$srcdir"; then
1852 ac_srcdir_defaulted=yes
1853 # Try the directory containing this script, then the parent directory.
1854 ac_confdir=`$as_dirname -- "$as_myself" ||
1855 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1856 X"$as_myself" : 'X\(//\)[^/]' \| \
1857 X"$as_myself" : 'X\(//\)$' \| \
1858 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1859 $as_echo X"$as_myself" |
1860 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1861 s//\1/
1864 /^X\(\/\/\)[^/].*/{
1865 s//\1/
1868 /^X\(\/\/\)$/{
1869 s//\1/
1872 /^X\(\/\).*/{
1873 s//\1/
1876 s/.*/./; q'`
1877 srcdir=$ac_confdir
1878 if test ! -r "$srcdir/$ac_unique_file"; then
1879 srcdir=..
1881 else
1882 ac_srcdir_defaulted=no
1884 if test ! -r "$srcdir/$ac_unique_file"; then
1885 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1886 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1888 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1889 ac_abs_confdir=`(
1890 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1891 pwd)`
1892 # When building in place, set srcdir=.
1893 if test "$ac_abs_confdir" = "$ac_pwd"; then
1894 srcdir=.
1896 # Remove unnecessary trailing slashes from srcdir.
1897 # Double slashes in file names in object file debugging info
1898 # mess up M-x gdb in Emacs.
1899 case $srcdir in
1900 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1901 esac
1902 for ac_var in $ac_precious_vars; do
1903 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1904 eval ac_env_${ac_var}_value=\$${ac_var}
1905 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1906 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1907 done
1910 # Report the --help message.
1912 if test "$ac_init_help" = "long"; then
1913 # Omit some internal or obsolete options to make the list less imposing.
1914 # This message is too long to be a string in the A/UX 3.1 sh.
1915 cat <<_ACEOF
1916 \`configure' configures emacs 24.1.50 to adapt to many kinds of systems.
1918 Usage: $0 [OPTION]... [VAR=VALUE]...
1920 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1921 VAR=VALUE. See below for descriptions of some of the useful variables.
1923 Defaults for the options are specified in brackets.
1925 Configuration:
1926 -h, --help display this help and exit
1927 --help=short display options specific to this package
1928 --help=recursive display the short help of all the included packages
1929 -V, --version display version information and exit
1930 -q, --quiet, --silent do not print \`checking...' messages
1931 --cache-file=FILE cache test results in FILE [disabled]
1932 -C, --config-cache alias for \`--cache-file=config.cache'
1933 -n, --no-create do not create output files
1934 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1936 Installation directories:
1937 --prefix=PREFIX install architecture-independent files in PREFIX
1938 [$ac_default_prefix]
1939 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1940 [PREFIX]
1942 By default, \`make install' will install all the files in
1943 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1944 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1945 for instance \`--prefix=\$HOME'.
1947 For better control, use the options below.
1949 Fine tuning of the installation directories:
1950 --bindir=DIR user executables [EPREFIX/bin]
1951 --sbindir=DIR system admin executables [EPREFIX/sbin]
1952 --libexecdir=DIR program executables [EPREFIX/libexec]
1953 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1954 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1955 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1956 --libdir=DIR object code libraries [EPREFIX/lib]
1957 --includedir=DIR C header files [PREFIX/include]
1958 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1959 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1960 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1961 --infodir=DIR info documentation [DATAROOTDIR/info]
1962 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1963 --mandir=DIR man documentation [DATAROOTDIR/man]
1964 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1965 --htmldir=DIR html documentation [DOCDIR]
1966 --dvidir=DIR dvi documentation [DOCDIR]
1967 --pdfdir=DIR pdf documentation [DOCDIR]
1968 --psdir=DIR ps documentation [DOCDIR]
1969 _ACEOF
1971 cat <<\_ACEOF
1973 Program names:
1974 --program-prefix=PREFIX prepend PREFIX to installed program names
1975 --program-suffix=SUFFIX append SUFFIX to installed program names
1976 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1978 X features:
1979 --x-includes=DIR X include files are in DIR
1980 --x-libraries=DIR X library files are in DIR
1982 System types:
1983 --build=BUILD configure for building on BUILD [guessed]
1984 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1985 _ACEOF
1988 if test -n "$ac_init_help"; then
1989 case $ac_init_help in
1990 short | recursive ) echo "Configuration of emacs 24.1.50:";;
1991 esac
1992 cat <<\_ACEOF
1994 Optional Features:
1995 --disable-option-checking ignore unrecognized --enable/--with options
1996 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1997 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1998 --disable-ns-self-contained
1999 disable self contained build under NeXTstep
2000 --enable-asserts compile code with asserts enabled
2001 --enable-locallisppath=PATH
2002 directories Emacs should search for lisp files
2003 specific to this site
2004 --enable-checking[=LIST]
2005 enable expensive run-time checks. With LIST, enable
2006 only specific categories of checks. Categories are:
2007 all,yes,no. Flags are: stringbytes, stringoverrun,
2008 stringfreelist, xmallocoverrun, conslist
2009 --enable-use-lisp-union-type
2010 use a union for the Lisp_Object data type. This is
2011 only useful for development for catching certain
2012 types of bugs.
2013 --enable-profiling build emacs with profiling support. This might not
2014 work on all platforms
2015 --enable-autodepend automatically generate dependencies to .h-files.
2016 Requires GNU Make and Gcc. Enabled if GNU Make and
2017 Gcc is found
2018 --disable-dependency-tracking speeds up one-time build
2019 --enable-dependency-tracking do not reject slow dependency extractors
2020 --disable-largefile omit support for large files
2021 --enable-gcc-warnings turn on lots of GCC warnings (for developers)
2023 Optional Packages:
2024 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
2025 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
2026 --without-pop don't support POP mail retrieval with movemail
2027 --with-kerberos support Kerberos-authenticated POP
2028 --with-kerberos5 support Kerberos version 5 authenticated POP
2029 --with-hesiod support Hesiod to get the POP server host
2030 --with-mmdf support MMDF mailboxes
2031 --with-mail-unlink unlink, rather than empty, mail spool after reading
2032 --with-mailhost=HOSTNAME
2033 string giving default POP mail host
2034 --without-sound don't compile with sound support
2035 --without-sync-input process async input synchronously
2036 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes or gtk, gtk3,
2037 lucid or athena, motif, no)
2038 --with-wide-int prefer wide Emacs integers (typically 62-bit)
2039 --without-xpm don't compile with XPM image support
2040 --without-jpeg don't compile with JPEG image support
2041 --without-tiff don't compile with TIFF image support
2042 --without-gif don't compile with GIF image support
2043 --without-png don't compile with PNG image support
2044 --without-rsvg don't compile with SVG image support
2045 --without-xml2 don't compile with XML parsing support
2046 --without-imagemagick don't compile with ImageMagick image support
2047 --without-xft don't use XFT for anti aliased fonts
2048 --without-libotf don't use libotf for OpenType font support
2049 --without-m17n-flt don't use m17n-flt for text shaping
2050 --without-toolkit-scroll-bars
2051 don't use Motif or Xaw3d scroll bars
2052 --without-xaw3d don't use Xaw3d
2053 --without-xim don't use X11 XIM
2054 --with-ns use NeXTstep (Cocoa or GNUstep) windowing system
2055 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
2056 console
2057 --without-dbus don't compile with D-Bus support
2058 --without-gconf don't compile with GConf support
2059 --without-gsettings don't compile with GSettings support
2060 --without-selinux don't compile with SELinux support
2061 --without-gnutls don't use -lgnutls for SSL/TLS support
2062 --without-makeinfo don't require makeinfo for building manuals
2063 --without-compress-info don't compress the installed Info pages
2064 --with-pkg-config-prog=PATH
2065 path to pkg-config for finding GTK and librsvg
2066 --with-crt-dir=DIR directory containing crtn.o etc. The default is
2067 /usr/lib, or /usr/lib64 on some platforms.
2068 --with-gameuser=USER user for shared game score files
2069 --with-gnustep-conf=PATH
2070 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
2071 or /etc/GNUstep/GNUstep.conf
2072 --with-x use the X Window System
2074 Some influential environment variables:
2075 CC C compiler command
2076 CFLAGS C compiler flags
2077 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2078 nonstandard directory <lib dir>
2079 LIBS libraries to pass to the linker, e.g. -l<library>
2080 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2081 you have headers in a nonstandard directory <include dir>
2082 CPP C preprocessor
2083 XMKMF Path to xmkmf, Makefile generator for X Window System
2085 Use these variables to override the choices made by `configure' or to help
2086 it to find libraries and programs with nonstandard names/locations.
2088 Report bugs to the package provider.
2089 _ACEOF
2090 ac_status=$?
2093 if test "$ac_init_help" = "recursive"; then
2094 # If there are subdirs, report their specific --help.
2095 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2096 test -d "$ac_dir" ||
2097 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2098 continue
2099 ac_builddir=.
2101 case "$ac_dir" in
2102 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2104 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2105 # A ".." for each directory in $ac_dir_suffix.
2106 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2107 case $ac_top_builddir_sub in
2108 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2109 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2110 esac ;;
2111 esac
2112 ac_abs_top_builddir=$ac_pwd
2113 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2114 # for backward compatibility:
2115 ac_top_builddir=$ac_top_build_prefix
2117 case $srcdir in
2118 .) # We are building in place.
2119 ac_srcdir=.
2120 ac_top_srcdir=$ac_top_builddir_sub
2121 ac_abs_top_srcdir=$ac_pwd ;;
2122 [\\/]* | ?:[\\/]* ) # Absolute name.
2123 ac_srcdir=$srcdir$ac_dir_suffix;
2124 ac_top_srcdir=$srcdir
2125 ac_abs_top_srcdir=$srcdir ;;
2126 *) # Relative name.
2127 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2128 ac_top_srcdir=$ac_top_build_prefix$srcdir
2129 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2130 esac
2131 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2133 cd "$ac_dir" || { ac_status=$?; continue; }
2134 # Check for guested configure.
2135 if test -f "$ac_srcdir/configure.gnu"; then
2136 echo &&
2137 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2138 elif test -f "$ac_srcdir/configure"; then
2139 echo &&
2140 $SHELL "$ac_srcdir/configure" --help=recursive
2141 else
2142 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2143 fi || ac_status=$?
2144 cd "$ac_pwd" || { ac_status=$?; break; }
2145 done
2148 test -n "$ac_init_help" && exit $ac_status
2149 if $ac_init_version; then
2150 cat <<\_ACEOF
2151 emacs configure 24.1.50
2152 generated by GNU Autoconf 2.65
2154 Copyright (C) 2009 Free Software Foundation, Inc.
2155 This configure script is free software; the Free Software Foundation
2156 gives unlimited permission to copy, distribute and modify it.
2157 _ACEOF
2158 exit
2161 ## ------------------------ ##
2162 ## Autoconf initialization. ##
2163 ## ------------------------ ##
2165 # ac_fn_c_try_compile LINENO
2166 # --------------------------
2167 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2168 ac_fn_c_try_compile ()
2170 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2171 rm -f conftest.$ac_objext
2172 if { { ac_try="$ac_compile"
2173 case "(($ac_try" in
2174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2175 *) ac_try_echo=$ac_try;;
2176 esac
2177 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2178 $as_echo "$ac_try_echo"; } >&5
2179 (eval "$ac_compile") 2>conftest.err
2180 ac_status=$?
2181 if test -s conftest.err; then
2182 grep -v '^ *+' conftest.err >conftest.er1
2183 cat conftest.er1 >&5
2184 mv -f conftest.er1 conftest.err
2186 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2187 test $ac_status = 0; } && {
2188 test -z "$ac_c_werror_flag" ||
2189 test ! -s conftest.err
2190 } && test -s conftest.$ac_objext; then :
2191 ac_retval=0
2192 else
2193 $as_echo "$as_me: failed program was:" >&5
2194 sed 's/^/| /' conftest.$ac_ext >&5
2196 ac_retval=1
2198 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2199 as_fn_set_status $ac_retval
2201 } # ac_fn_c_try_compile
2203 # ac_fn_c_try_cpp LINENO
2204 # ----------------------
2205 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2206 ac_fn_c_try_cpp ()
2208 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2209 if { { ac_try="$ac_cpp conftest.$ac_ext"
2210 case "(($ac_try" in
2211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2212 *) ac_try_echo=$ac_try;;
2213 esac
2214 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2215 $as_echo "$ac_try_echo"; } >&5
2216 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2217 ac_status=$?
2218 if test -s conftest.err; then
2219 grep -v '^ *+' conftest.err >conftest.er1
2220 cat conftest.er1 >&5
2221 mv -f conftest.er1 conftest.err
2223 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2224 test $ac_status = 0; } >/dev/null && {
2225 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2226 test ! -s conftest.err
2227 }; then :
2228 ac_retval=0
2229 else
2230 $as_echo "$as_me: failed program was:" >&5
2231 sed 's/^/| /' conftest.$ac_ext >&5
2233 ac_retval=1
2235 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2236 as_fn_set_status $ac_retval
2238 } # ac_fn_c_try_cpp
2240 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2241 # -------------------------------------------------------
2242 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2243 # the include files in INCLUDES and setting the cache variable VAR
2244 # accordingly.
2245 ac_fn_c_check_header_mongrel ()
2247 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2248 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2250 $as_echo_n "checking for $2... " >&6; }
2251 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2252 $as_echo_n "(cached) " >&6
2254 eval ac_res=\$$3
2255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2256 $as_echo "$ac_res" >&6; }
2257 else
2258 # Is the header compilable?
2259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2260 $as_echo_n "checking $2 usability... " >&6; }
2261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2262 /* end confdefs.h. */
2264 #include <$2>
2265 _ACEOF
2266 if ac_fn_c_try_compile "$LINENO"; then :
2267 ac_header_compiler=yes
2268 else
2269 ac_header_compiler=no
2271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2273 $as_echo "$ac_header_compiler" >&6; }
2275 # Is the header present?
2276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2277 $as_echo_n "checking $2 presence... " >&6; }
2278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2279 /* end confdefs.h. */
2280 #include <$2>
2281 _ACEOF
2282 if ac_fn_c_try_cpp "$LINENO"; then :
2283 ac_header_preproc=yes
2284 else
2285 ac_header_preproc=no
2287 rm -f conftest.err conftest.$ac_ext
2288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2289 $as_echo "$ac_header_preproc" >&6; }
2291 # So? What about this header?
2292 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2293 yes:no: )
2294 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2295 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2296 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2297 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2299 no:yes:* )
2300 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2301 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2302 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2303 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2304 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2305 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2306 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2307 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2308 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2309 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2311 esac
2312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2313 $as_echo_n "checking for $2... " >&6; }
2314 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2315 $as_echo_n "(cached) " >&6
2316 else
2317 eval "$3=\$ac_header_compiler"
2319 eval ac_res=\$$3
2320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2321 $as_echo "$ac_res" >&6; }
2323 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2325 } # ac_fn_c_check_header_mongrel
2327 # ac_fn_c_try_run LINENO
2328 # ----------------------
2329 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2330 # that executables *can* be run.
2331 ac_fn_c_try_run ()
2333 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2334 if { { ac_try="$ac_link"
2335 case "(($ac_try" in
2336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2337 *) ac_try_echo=$ac_try;;
2338 esac
2339 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2340 $as_echo "$ac_try_echo"; } >&5
2341 (eval "$ac_link") 2>&5
2342 ac_status=$?
2343 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2344 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2345 { { case "(($ac_try" in
2346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2347 *) ac_try_echo=$ac_try;;
2348 esac
2349 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2350 $as_echo "$ac_try_echo"; } >&5
2351 (eval "$ac_try") 2>&5
2352 ac_status=$?
2353 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2354 test $ac_status = 0; }; }; then :
2355 ac_retval=0
2356 else
2357 $as_echo "$as_me: program exited with status $ac_status" >&5
2358 $as_echo "$as_me: failed program was:" >&5
2359 sed 's/^/| /' conftest.$ac_ext >&5
2361 ac_retval=$ac_status
2363 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2364 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2365 as_fn_set_status $ac_retval
2367 } # ac_fn_c_try_run
2369 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2370 # -------------------------------------------------------
2371 # Tests whether HEADER exists and can be compiled using the include files in
2372 # INCLUDES, setting the cache variable VAR accordingly.
2373 ac_fn_c_check_header_compile ()
2375 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2377 $as_echo_n "checking for $2... " >&6; }
2378 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2379 $as_echo_n "(cached) " >&6
2380 else
2381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2382 /* end confdefs.h. */
2384 #include <$2>
2385 _ACEOF
2386 if ac_fn_c_try_compile "$LINENO"; then :
2387 eval "$3=yes"
2388 else
2389 eval "$3=no"
2391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2393 eval ac_res=\$$3
2394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2395 $as_echo "$ac_res" >&6; }
2396 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2398 } # ac_fn_c_check_header_compile
2400 # ac_fn_c_try_link LINENO
2401 # -----------------------
2402 # Try to link conftest.$ac_ext, and return whether this succeeded.
2403 ac_fn_c_try_link ()
2405 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2406 rm -f conftest.$ac_objext conftest$ac_exeext
2407 if { { ac_try="$ac_link"
2408 case "(($ac_try" in
2409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2410 *) ac_try_echo=$ac_try;;
2411 esac
2412 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2413 $as_echo "$ac_try_echo"; } >&5
2414 (eval "$ac_link") 2>conftest.err
2415 ac_status=$?
2416 if test -s conftest.err; then
2417 grep -v '^ *+' conftest.err >conftest.er1
2418 cat conftest.er1 >&5
2419 mv -f conftest.er1 conftest.err
2421 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2422 test $ac_status = 0; } && {
2423 test -z "$ac_c_werror_flag" ||
2424 test ! -s conftest.err
2425 } && test -s conftest$ac_exeext && {
2426 test "$cross_compiling" = yes ||
2427 $as_test_x conftest$ac_exeext
2428 }; then :
2429 ac_retval=0
2430 else
2431 $as_echo "$as_me: failed program was:" >&5
2432 sed 's/^/| /' conftest.$ac_ext >&5
2434 ac_retval=1
2436 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2437 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2438 # interfere with the next link command; also delete a directory that is
2439 # left behind by Apple's compiler. We do this before executing the actions.
2440 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2441 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2442 as_fn_set_status $ac_retval
2444 } # ac_fn_c_try_link
2446 # ac_fn_c_check_decl LINENO SYMBOL VAR
2447 # ------------------------------------
2448 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2449 ac_fn_c_check_decl ()
2451 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2453 $as_echo_n "checking whether $2 is declared... " >&6; }
2454 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2455 $as_echo_n "(cached) " >&6
2456 else
2457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2458 /* end confdefs.h. */
2461 main ()
2463 #ifndef $2
2464 (void) $2;
2465 #endif
2468 return 0;
2470 _ACEOF
2471 if ac_fn_c_try_compile "$LINENO"; then :
2472 eval "$3=yes"
2473 else
2474 eval "$3=no"
2476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2478 eval ac_res=\$$3
2479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2480 $as_echo "$ac_res" >&6; }
2481 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2483 } # ac_fn_c_check_decl
2485 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2486 # ----------------------------------------------
2487 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2488 ac_fn_c_check_header_preproc ()
2490 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2492 $as_echo_n "checking for $2... " >&6; }
2493 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2494 $as_echo_n "(cached) " >&6
2495 else
2496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2497 /* end confdefs.h. */
2498 #include <$2>
2499 _ACEOF
2500 if ac_fn_c_try_cpp "$LINENO"; then :
2501 eval "$3=yes"
2502 else
2503 eval "$3=no"
2505 rm -f conftest.err conftest.$ac_ext
2507 eval ac_res=\$$3
2508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2509 $as_echo "$ac_res" >&6; }
2510 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2512 } # ac_fn_c_check_header_preproc
2514 # ac_fn_c_check_func LINENO FUNC VAR
2515 # ----------------------------------
2516 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2517 ac_fn_c_check_func ()
2519 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2521 $as_echo_n "checking for $2... " >&6; }
2522 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2523 $as_echo_n "(cached) " >&6
2524 else
2525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2526 /* end confdefs.h. */
2527 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2528 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2529 #define $2 innocuous_$2
2531 /* System header to define __stub macros and hopefully few prototypes,
2532 which can conflict with char $2 (); below.
2533 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2534 <limits.h> exists even on freestanding compilers. */
2536 #ifdef __STDC__
2537 # include <limits.h>
2538 #else
2539 # include <assert.h>
2540 #endif
2542 #undef $2
2544 /* Override any GCC internal prototype to avoid an error.
2545 Use char because int might match the return type of a GCC
2546 builtin and then its argument prototype would still apply. */
2547 #ifdef __cplusplus
2548 extern "C"
2549 #endif
2550 char $2 ();
2551 /* The GNU C library defines this for functions which it implements
2552 to always fail with ENOSYS. Some functions are actually named
2553 something starting with __ and the normal name is an alias. */
2554 #if defined __stub_$2 || defined __stub___$2
2555 choke me
2556 #endif
2559 main ()
2561 return $2 ();
2563 return 0;
2565 _ACEOF
2566 if ac_fn_c_try_link "$LINENO"; then :
2567 eval "$3=yes"
2568 else
2569 eval "$3=no"
2571 rm -f core conftest.err conftest.$ac_objext \
2572 conftest$ac_exeext conftest.$ac_ext
2574 eval ac_res=\$$3
2575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2576 $as_echo "$ac_res" >&6; }
2577 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2579 } # ac_fn_c_check_func
2581 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2582 # ----------------------------------------------------
2583 # Tries to find if the field MEMBER exists in type AGGR, after including
2584 # INCLUDES, setting cache variable VAR accordingly.
2585 ac_fn_c_check_member ()
2587 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2589 $as_echo_n "checking for $2.$3... " >&6; }
2590 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2591 $as_echo_n "(cached) " >&6
2592 else
2593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2594 /* end confdefs.h. */
2597 main ()
2599 static $2 ac_aggr;
2600 if (ac_aggr.$3)
2601 return 0;
2603 return 0;
2605 _ACEOF
2606 if ac_fn_c_try_compile "$LINENO"; then :
2607 eval "$4=yes"
2608 else
2609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2610 /* end confdefs.h. */
2613 main ()
2615 static $2 ac_aggr;
2616 if (sizeof ac_aggr.$3)
2617 return 0;
2619 return 0;
2621 _ACEOF
2622 if ac_fn_c_try_compile "$LINENO"; then :
2623 eval "$4=yes"
2624 else
2625 eval "$4=no"
2627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2631 eval ac_res=\$$4
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2633 $as_echo "$ac_res" >&6; }
2634 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2636 } # ac_fn_c_check_member
2638 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2639 # -------------------------------------------
2640 # Tests whether TYPE exists after having included INCLUDES, setting cache
2641 # variable VAR accordingly.
2642 ac_fn_c_check_type ()
2644 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2646 $as_echo_n "checking for $2... " >&6; }
2647 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2648 $as_echo_n "(cached) " >&6
2649 else
2650 eval "$3=no"
2651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2652 /* end confdefs.h. */
2655 main ()
2657 if (sizeof ($2))
2658 return 0;
2660 return 0;
2662 _ACEOF
2663 if ac_fn_c_try_compile "$LINENO"; then :
2664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2665 /* end confdefs.h. */
2668 main ()
2670 if (sizeof (($2)))
2671 return 0;
2673 return 0;
2675 _ACEOF
2676 if ac_fn_c_try_compile "$LINENO"; then :
2678 else
2679 eval "$3=yes"
2681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2685 eval ac_res=\$$3
2686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2687 $as_echo "$ac_res" >&6; }
2688 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2690 } # ac_fn_c_check_type
2692 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2693 # --------------------------------------------
2694 # Tries to find the compile-time value of EXPR in a program that includes
2695 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2696 # computed
2697 ac_fn_c_compute_int ()
2699 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2700 if test "$cross_compiling" = yes; then
2701 # Depending upon the size, compute the lo and hi bounds.
2702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2703 /* end confdefs.h. */
2706 main ()
2708 static int test_array [1 - 2 * !(($2) >= 0)];
2709 test_array [0] = 0
2712 return 0;
2714 _ACEOF
2715 if ac_fn_c_try_compile "$LINENO"; then :
2716 ac_lo=0 ac_mid=0
2717 while :; do
2718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2719 /* end confdefs.h. */
2722 main ()
2724 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2725 test_array [0] = 0
2728 return 0;
2730 _ACEOF
2731 if ac_fn_c_try_compile "$LINENO"; then :
2732 ac_hi=$ac_mid; break
2733 else
2734 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2735 if test $ac_lo -le $ac_mid; then
2736 ac_lo= ac_hi=
2737 break
2739 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2742 done
2743 else
2744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2745 /* end confdefs.h. */
2748 main ()
2750 static int test_array [1 - 2 * !(($2) < 0)];
2751 test_array [0] = 0
2754 return 0;
2756 _ACEOF
2757 if ac_fn_c_try_compile "$LINENO"; then :
2758 ac_hi=-1 ac_mid=-1
2759 while :; do
2760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2761 /* end confdefs.h. */
2764 main ()
2766 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2767 test_array [0] = 0
2770 return 0;
2772 _ACEOF
2773 if ac_fn_c_try_compile "$LINENO"; then :
2774 ac_lo=$ac_mid; break
2775 else
2776 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2777 if test $ac_mid -le $ac_hi; then
2778 ac_lo= ac_hi=
2779 break
2781 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2784 done
2785 else
2786 ac_lo= ac_hi=
2788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2791 # Binary search between lo and hi bounds.
2792 while test "x$ac_lo" != "x$ac_hi"; do
2793 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2795 /* end confdefs.h. */
2798 main ()
2800 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2801 test_array [0] = 0
2804 return 0;
2806 _ACEOF
2807 if ac_fn_c_try_compile "$LINENO"; then :
2808 ac_hi=$ac_mid
2809 else
2810 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2813 done
2814 case $ac_lo in #((
2815 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2816 '') ac_retval=1 ;;
2817 esac
2818 else
2819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2820 /* end confdefs.h. */
2822 static long int longval () { return $2; }
2823 static unsigned long int ulongval () { return $2; }
2824 #include <stdio.h>
2825 #include <stdlib.h>
2827 main ()
2830 FILE *f = fopen ("conftest.val", "w");
2831 if (! f)
2832 return 1;
2833 if (($2) < 0)
2835 long int i = longval ();
2836 if (i != ($2))
2837 return 1;
2838 fprintf (f, "%ld", i);
2840 else
2842 unsigned long int i = ulongval ();
2843 if (i != ($2))
2844 return 1;
2845 fprintf (f, "%lu", i);
2847 /* Do not output a trailing newline, as this causes \r\n confusion
2848 on some platforms. */
2849 return ferror (f) || fclose (f) != 0;
2852 return 0;
2854 _ACEOF
2855 if ac_fn_c_try_run "$LINENO"; then :
2856 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2857 else
2858 ac_retval=1
2860 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2861 conftest.$ac_objext conftest.beam conftest.$ac_ext
2862 rm -f conftest.val
2865 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2866 as_fn_set_status $ac_retval
2868 } # ac_fn_c_compute_int
2869 cat >config.log <<_ACEOF
2870 This file contains any messages produced by compilers while
2871 running configure, to aid debugging if configure makes a mistake.
2873 It was created by emacs $as_me 24.1.50, which was
2874 generated by GNU Autoconf 2.65. Invocation command line was
2876 $ $0 $@
2878 _ACEOF
2879 exec 5>>config.log
2881 cat <<_ASUNAME
2882 ## --------- ##
2883 ## Platform. ##
2884 ## --------- ##
2886 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2887 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2888 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2889 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2890 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2892 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2893 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2895 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2896 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2897 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2898 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2899 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2900 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2901 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2903 _ASUNAME
2905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2906 for as_dir in $PATH
2908 IFS=$as_save_IFS
2909 test -z "$as_dir" && as_dir=.
2910 $as_echo "PATH: $as_dir"
2911 done
2912 IFS=$as_save_IFS
2914 } >&5
2916 cat >&5 <<_ACEOF
2919 ## ----------- ##
2920 ## Core tests. ##
2921 ## ----------- ##
2923 _ACEOF
2926 # Keep a trace of the command line.
2927 # Strip out --no-create and --no-recursion so they do not pile up.
2928 # Strip out --silent because we don't want to record it for future runs.
2929 # Also quote any args containing shell meta-characters.
2930 # Make two passes to allow for proper duplicate-argument suppression.
2931 ac_configure_args=
2932 ac_configure_args0=
2933 ac_configure_args1=
2934 ac_must_keep_next=false
2935 for ac_pass in 1 2
2937 for ac_arg
2939 case $ac_arg in
2940 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2941 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2942 | -silent | --silent | --silen | --sile | --sil)
2943 continue ;;
2944 *\'*)
2945 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2946 esac
2947 case $ac_pass in
2948 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2950 as_fn_append ac_configure_args1 " '$ac_arg'"
2951 if test $ac_must_keep_next = true; then
2952 ac_must_keep_next=false # Got value, back to normal.
2953 else
2954 case $ac_arg in
2955 *=* | --config-cache | -C | -disable-* | --disable-* \
2956 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2957 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2958 | -with-* | --with-* | -without-* | --without-* | --x)
2959 case "$ac_configure_args0 " in
2960 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2961 esac
2963 -* ) ac_must_keep_next=true ;;
2964 esac
2966 as_fn_append ac_configure_args " '$ac_arg'"
2968 esac
2969 done
2970 done
2971 { ac_configure_args0=; unset ac_configure_args0;}
2972 { ac_configure_args1=; unset ac_configure_args1;}
2974 # When interrupted or exit'd, cleanup temporary files, and complete
2975 # config.log. We remove comments because anyway the quotes in there
2976 # would cause problems or look ugly.
2977 # WARNING: Use '\'' to represent an apostrophe within the trap.
2978 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2979 trap 'exit_status=$?
2980 # Save into config.log some information that might help in debugging.
2982 echo
2984 cat <<\_ASBOX
2985 ## ---------------- ##
2986 ## Cache variables. ##
2987 ## ---------------- ##
2988 _ASBOX
2989 echo
2990 # The following way of writing the cache mishandles newlines in values,
2992 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2993 eval ac_val=\$$ac_var
2994 case $ac_val in #(
2995 *${as_nl}*)
2996 case $ac_var in #(
2997 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2998 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2999 esac
3000 case $ac_var in #(
3001 _ | IFS | as_nl) ;; #(
3002 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3003 *) { eval $ac_var=; unset $ac_var;} ;;
3004 esac ;;
3005 esac
3006 done
3007 (set) 2>&1 |
3008 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3009 *${as_nl}ac_space=\ *)
3010 sed -n \
3011 "s/'\''/'\''\\\\'\'''\''/g;
3012 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3013 ;; #(
3015 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3017 esac |
3018 sort
3020 echo
3022 cat <<\_ASBOX
3023 ## ----------------- ##
3024 ## Output variables. ##
3025 ## ----------------- ##
3026 _ASBOX
3027 echo
3028 for ac_var in $ac_subst_vars
3030 eval ac_val=\$$ac_var
3031 case $ac_val in
3032 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3033 esac
3034 $as_echo "$ac_var='\''$ac_val'\''"
3035 done | sort
3036 echo
3038 if test -n "$ac_subst_files"; then
3039 cat <<\_ASBOX
3040 ## ------------------- ##
3041 ## File substitutions. ##
3042 ## ------------------- ##
3043 _ASBOX
3044 echo
3045 for ac_var in $ac_subst_files
3047 eval ac_val=\$$ac_var
3048 case $ac_val in
3049 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3050 esac
3051 $as_echo "$ac_var='\''$ac_val'\''"
3052 done | sort
3053 echo
3056 if test -s confdefs.h; then
3057 cat <<\_ASBOX
3058 ## ----------- ##
3059 ## confdefs.h. ##
3060 ## ----------- ##
3061 _ASBOX
3062 echo
3063 cat confdefs.h
3064 echo
3066 test "$ac_signal" != 0 &&
3067 $as_echo "$as_me: caught signal $ac_signal"
3068 $as_echo "$as_me: exit $exit_status"
3069 } >&5
3070 rm -f core *.core core.conftest.* &&
3071 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3072 exit $exit_status
3074 for ac_signal in 1 2 13 15; do
3075 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3076 done
3077 ac_signal=0
3079 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3080 rm -f -r conftest* confdefs.h
3082 $as_echo "/* confdefs.h */" > confdefs.h
3084 # Predefined preprocessor variables.
3086 cat >>confdefs.h <<_ACEOF
3087 #define PACKAGE_NAME "$PACKAGE_NAME"
3088 _ACEOF
3090 cat >>confdefs.h <<_ACEOF
3091 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3092 _ACEOF
3094 cat >>confdefs.h <<_ACEOF
3095 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3096 _ACEOF
3098 cat >>confdefs.h <<_ACEOF
3099 #define PACKAGE_STRING "$PACKAGE_STRING"
3100 _ACEOF
3102 cat >>confdefs.h <<_ACEOF
3103 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3104 _ACEOF
3106 cat >>confdefs.h <<_ACEOF
3107 #define PACKAGE_URL "$PACKAGE_URL"
3108 _ACEOF
3111 # Let the site file select an alternate cache file if it wants to.
3112 # Prefer an explicitly selected file to automatically selected ones.
3113 ac_site_file1=NONE
3114 ac_site_file2=NONE
3115 if test -n "$CONFIG_SITE"; then
3116 ac_site_file1=$CONFIG_SITE
3117 elif test "x$prefix" != xNONE; then
3118 ac_site_file1=$prefix/share/config.site
3119 ac_site_file2=$prefix/etc/config.site
3120 else
3121 ac_site_file1=$ac_default_prefix/share/config.site
3122 ac_site_file2=$ac_default_prefix/etc/config.site
3124 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3126 test "x$ac_site_file" = xNONE && continue
3127 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3128 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3129 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3130 sed 's/^/| /' "$ac_site_file" >&5
3131 . "$ac_site_file"
3133 done
3135 if test -r "$cache_file"; then
3136 # Some versions of bash will fail to source /dev/null (special files
3137 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3138 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3140 $as_echo "$as_me: loading cache $cache_file" >&6;}
3141 case $cache_file in
3142 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3143 *) . "./$cache_file";;
3144 esac
3146 else
3147 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3148 $as_echo "$as_me: creating cache $cache_file" >&6;}
3149 >$cache_file
3152 as_fn_append ac_header_list " sys/select.h"
3153 as_fn_append ac_header_list " sys/time.h"
3154 as_fn_append ac_header_list " utime.h"
3155 as_fn_append ac_header_list " linux/version.h"
3156 as_fn_append ac_header_list " sys/systeminfo.h"
3157 as_fn_append ac_header_list " stdio_ext.h"
3158 as_fn_append ac_header_list " fcntl.h"
3159 as_fn_append ac_header_list " coff.h"
3160 as_fn_append ac_header_list " pty.h"
3161 as_fn_append ac_header_list " sys/vlimit.h"
3162 as_fn_append ac_header_list " sys/resource.h"
3163 as_fn_append ac_header_list " sys/utsname.h"
3164 as_fn_append ac_header_list " pwd.h"
3165 as_fn_append ac_header_list " utmp.h"
3166 as_fn_append ac_header_list " dirent.h"
3167 as_fn_append ac_header_list " util.h"
3168 as_fn_append ac_header_list " sys/socket.h"
3169 as_fn_append ac_header_list " stdlib.h"
3170 as_fn_append ac_header_list " unistd.h"
3171 as_fn_append ac_header_list " sys/param.h"
3172 as_fn_append ac_header_list " pthread.h"
3173 as_fn_append ac_header_list " malloc/malloc.h"
3174 as_fn_append ac_header_list " maillock.h"
3175 as_fn_append ac_header_list " sys/un.h"
3176 as_fn_append ac_func_list " tzset"
3177 as_fn_append ac_func_list " readlinkat"
3178 gl_getopt_required=GNU
3179 as_fn_append ac_header_list " getopt.h"
3180 as_fn_append ac_header_list " wchar.h"
3181 as_fn_append ac_header_list " stdint.h"
3182 as_fn_append ac_header_list " inttypes.h"
3183 as_fn_append ac_func_list " lstat"
3184 as_fn_append ac_func_list " alarm"
3185 as_fn_append ac_func_list " pthread_sigmask"
3186 as_fn_append ac_func_list " readlink"
3187 as_fn_append ac_func_list " strtoimax"
3188 as_fn_append ac_func_list " strtoumax"
3189 as_fn_append ac_func_list " symlink"
3190 as_fn_append ac_header_list " sys/stat.h"
3191 as_fn_append ac_func_list " localtime_r"
3192 # Check that the precious variables saved in the cache have kept the same
3193 # value.
3194 ac_cache_corrupted=false
3195 for ac_var in $ac_precious_vars; do
3196 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3197 eval ac_new_set=\$ac_env_${ac_var}_set
3198 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3199 eval ac_new_val=\$ac_env_${ac_var}_value
3200 case $ac_old_set,$ac_new_set in
3201 set,)
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3203 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3204 ac_cache_corrupted=: ;;
3205 ,set)
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3207 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3208 ac_cache_corrupted=: ;;
3209 ,);;
3211 if test "x$ac_old_val" != "x$ac_new_val"; then
3212 # differences in whitespace do not lead to failure.
3213 ac_old_val_w=`echo x $ac_old_val`
3214 ac_new_val_w=`echo x $ac_new_val`
3215 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3217 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3218 ac_cache_corrupted=:
3219 else
3220 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3221 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3222 eval $ac_var=\$ac_old_val
3224 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3225 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3226 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3227 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3228 fi;;
3229 esac
3230 # Pass precious variables to config.status.
3231 if test "$ac_new_set" = set; then
3232 case $ac_new_val in
3233 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3234 *) ac_arg=$ac_var=$ac_new_val ;;
3235 esac
3236 case " $ac_configure_args " in
3237 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3238 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3239 esac
3241 done
3242 if $ac_cache_corrupted; then
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3244 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3246 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3247 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3249 ## -------------------- ##
3250 ## Main body of script. ##
3251 ## -------------------- ##
3253 ac_ext=c
3254 ac_cpp='$CPP $CPPFLAGS'
3255 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3256 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3257 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3260 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
3263 ac_aux_dir=
3264 for ac_dir in build-aux "$srcdir"/build-aux; do
3265 for ac_t in install-sh install.sh shtool; do
3266 if test -f "$ac_dir/$ac_t"; then
3267 ac_aux_dir=$ac_dir
3268 ac_install_sh="$ac_aux_dir/$ac_t -c"
3269 break 2
3271 done
3272 done
3273 if test -z "$ac_aux_dir"; then
3274 as_fn_error "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
3277 # These three variables are undocumented and unsupported,
3278 # and are intended to be withdrawn in a future Autoconf release.
3279 # They can cause serious problems if a builder's source tree is in a directory
3280 # whose full name contains unusual characters.
3281 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3282 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3283 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3286 am__api_version='1.11'
3288 # Find a good install program. We prefer a C program (faster),
3289 # so one script is as good as another. But avoid the broken or
3290 # incompatible versions:
3291 # SysV /etc/install, /usr/sbin/install
3292 # SunOS /usr/etc/install
3293 # IRIX /sbin/install
3294 # AIX /bin/install
3295 # AmigaOS /C/install, which installs bootblocks on floppy discs
3296 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3297 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3298 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3299 # OS/2's system install, which has a completely different semantic
3300 # ./install, which can be erroneously created by make from ./install.sh.
3301 # Reject install programs that cannot install multiple files.
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3303 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3304 if test -z "$INSTALL"; then
3305 if test "${ac_cv_path_install+set}" = set; then :
3306 $as_echo_n "(cached) " >&6
3307 else
3308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3309 for as_dir in $PATH
3311 IFS=$as_save_IFS
3312 test -z "$as_dir" && as_dir=.
3313 # Account for people who put trailing slashes in PATH elements.
3314 case $as_dir/ in #((
3315 ./ | .// | /[cC]/* | \
3316 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3317 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3318 /usr/ucb/* ) ;;
3320 # OSF1 and SCO ODT 3.0 have their own names for install.
3321 # Don't use installbsd from OSF since it installs stuff as root
3322 # by default.
3323 for ac_prog in ginstall scoinst install; do
3324 for ac_exec_ext in '' $ac_executable_extensions; do
3325 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3326 if test $ac_prog = install &&
3327 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3328 # AIX install. It has an incompatible calling convention.
3330 elif test $ac_prog = install &&
3331 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3332 # program-specific install script used by HP pwplus--don't use.
3334 else
3335 rm -rf conftest.one conftest.two conftest.dir
3336 echo one > conftest.one
3337 echo two > conftest.two
3338 mkdir conftest.dir
3339 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3340 test -s conftest.one && test -s conftest.two &&
3341 test -s conftest.dir/conftest.one &&
3342 test -s conftest.dir/conftest.two
3343 then
3344 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3345 break 3
3349 done
3350 done
3352 esac
3354 done
3355 IFS=$as_save_IFS
3357 rm -rf conftest.one conftest.two conftest.dir
3360 if test "${ac_cv_path_install+set}" = set; then
3361 INSTALL=$ac_cv_path_install
3362 else
3363 # As a last resort, use the slow shell script. Don't cache a
3364 # value for INSTALL within a source directory, because that will
3365 # break other packages using the cache if that directory is
3366 # removed, or if the value is a relative name.
3367 INSTALL=$ac_install_sh
3370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3371 $as_echo "$INSTALL" >&6; }
3373 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3374 # It thinks the first close brace ends the variable substitution.
3375 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3377 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3379 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3382 $as_echo_n "checking whether build environment is sane... " >&6; }
3383 # Just in case
3384 sleep 1
3385 echo timestamp > conftest.file
3386 # Reject unsafe characters in $srcdir or the absolute working directory
3387 # name. Accept space and tab only in the latter.
3388 am_lf='
3390 case `pwd` in
3391 *[\\\"\#\$\&\'\`$am_lf]*)
3392 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3393 esac
3394 case $srcdir in
3395 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3396 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3397 esac
3399 # Do `set' in a subshell so we don't clobber the current shell's
3400 # arguments. Must try -L first in case configure is actually a
3401 # symlink; some systems play weird games with the mod time of symlinks
3402 # (eg FreeBSD returns the mod time of the symlink's containing
3403 # directory).
3404 if (
3405 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3406 if test "$*" = "X"; then
3407 # -L didn't work.
3408 set X `ls -t "$srcdir/configure" conftest.file`
3410 rm -f conftest.file
3411 if test "$*" != "X $srcdir/configure conftest.file" \
3412 && test "$*" != "X conftest.file $srcdir/configure"; then
3414 # If neither matched, then we have a broken ls. This can happen
3415 # if, for instance, CONFIG_SHELL is bash and it inherits a
3416 # broken ls alias from the environment. This has actually
3417 # happened. Such a system could not be considered "sane".
3418 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3419 alias in your environment" "$LINENO" 5
3422 test "$2" = conftest.file
3424 then
3425 # Ok.
3427 else
3428 as_fn_error "newly created file is older than distributed files!
3429 Check your system clock" "$LINENO" 5
3431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3432 $as_echo "yes" >&6; }
3433 test "$program_prefix" != NONE &&
3434 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3435 # Use a double $ so make ignores it.
3436 test "$program_suffix" != NONE &&
3437 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3438 # Double any \ or $.
3439 # By default was `s,x,x', remove it if useless.
3440 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3441 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3443 # expand $ac_aux_dir to an absolute path
3444 am_aux_dir=`cd $ac_aux_dir && pwd`
3446 if test x"${MISSING+set}" != xset; then
3447 case $am_aux_dir in
3448 *\ * | *\ *)
3449 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3451 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3452 esac
3454 # Use eval to expand $SHELL
3455 if eval "$MISSING --run true"; then
3456 am_missing_run="$MISSING --run "
3457 else
3458 am_missing_run=
3459 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3460 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3463 if test x"${install_sh}" != xset; then
3464 case $am_aux_dir in
3465 *\ * | *\ *)
3466 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3468 install_sh="\${SHELL} $am_aux_dir/install-sh"
3469 esac
3472 # Installed binaries are usually stripped using `strip' when the user
3473 # run `make install-strip'. However `strip' might not be the right
3474 # tool to use in cross-compilation environments, therefore Automake
3475 # will honor the `STRIP' environment variable to overrule this program.
3476 if test "$cross_compiling" != no; then
3477 if test -n "$ac_tool_prefix"; then
3478 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3479 set dummy ${ac_tool_prefix}strip; ac_word=$2
3480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3481 $as_echo_n "checking for $ac_word... " >&6; }
3482 if test "${ac_cv_prog_STRIP+set}" = set; then :
3483 $as_echo_n "(cached) " >&6
3484 else
3485 if test -n "$STRIP"; then
3486 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3487 else
3488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3489 for as_dir in $PATH
3491 IFS=$as_save_IFS
3492 test -z "$as_dir" && as_dir=.
3493 for ac_exec_ext in '' $ac_executable_extensions; do
3494 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3495 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3497 break 2
3499 done
3500 done
3501 IFS=$as_save_IFS
3505 STRIP=$ac_cv_prog_STRIP
3506 if test -n "$STRIP"; then
3507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3508 $as_echo "$STRIP" >&6; }
3509 else
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3511 $as_echo "no" >&6; }
3516 if test -z "$ac_cv_prog_STRIP"; then
3517 ac_ct_STRIP=$STRIP
3518 # Extract the first word of "strip", so it can be a program name with args.
3519 set dummy strip; ac_word=$2
3520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3521 $as_echo_n "checking for $ac_word... " >&6; }
3522 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3523 $as_echo_n "(cached) " >&6
3524 else
3525 if test -n "$ac_ct_STRIP"; then
3526 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3527 else
3528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3529 for as_dir in $PATH
3531 IFS=$as_save_IFS
3532 test -z "$as_dir" && as_dir=.
3533 for ac_exec_ext in '' $ac_executable_extensions; do
3534 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3535 ac_cv_prog_ac_ct_STRIP="strip"
3536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3537 break 2
3539 done
3540 done
3541 IFS=$as_save_IFS
3545 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3546 if test -n "$ac_ct_STRIP"; then
3547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3548 $as_echo "$ac_ct_STRIP" >&6; }
3549 else
3550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3551 $as_echo "no" >&6; }
3554 if test "x$ac_ct_STRIP" = x; then
3555 STRIP=":"
3556 else
3557 case $cross_compiling:$ac_tool_warned in
3558 yes:)
3559 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3560 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3561 ac_tool_warned=yes ;;
3562 esac
3563 STRIP=$ac_ct_STRIP
3565 else
3566 STRIP="$ac_cv_prog_STRIP"
3570 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3573 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3574 if test -z "$MKDIR_P"; then
3575 if test "${ac_cv_path_mkdir+set}" = set; then :
3576 $as_echo_n "(cached) " >&6
3577 else
3578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3579 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3581 IFS=$as_save_IFS
3582 test -z "$as_dir" && as_dir=.
3583 for ac_prog in mkdir gmkdir; do
3584 for ac_exec_ext in '' $ac_executable_extensions; do
3585 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3586 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3587 'mkdir (GNU coreutils) '* | \
3588 'mkdir (coreutils) '* | \
3589 'mkdir (fileutils) '4.1*)
3590 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3591 break 3;;
3592 esac
3593 done
3594 done
3595 done
3596 IFS=$as_save_IFS
3600 test -d ./--version && rmdir ./--version
3601 if test "${ac_cv_path_mkdir+set}" = set; then
3602 MKDIR_P="$ac_cv_path_mkdir -p"
3603 else
3604 # As a last resort, use the slow shell script. Don't cache a
3605 # value for MKDIR_P within a source directory, because that will
3606 # break other packages using the cache if that directory is
3607 # removed, or if the value is a relative name.
3608 MKDIR_P="$ac_install_sh -d"
3611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3612 $as_echo "$MKDIR_P" >&6; }
3615 mkdir_p="$MKDIR_P"
3616 case $mkdir_p in
3617 [\\/$]* | ?:[\\/]*) ;;
3618 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3619 esac
3621 for ac_prog in gawk mawk nawk awk
3623 # Extract the first word of "$ac_prog", so it can be a program name with args.
3624 set dummy $ac_prog; ac_word=$2
3625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3626 $as_echo_n "checking for $ac_word... " >&6; }
3627 if test "${ac_cv_prog_AWK+set}" = set; then :
3628 $as_echo_n "(cached) " >&6
3629 else
3630 if test -n "$AWK"; then
3631 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3632 else
3633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3634 for as_dir in $PATH
3636 IFS=$as_save_IFS
3637 test -z "$as_dir" && as_dir=.
3638 for ac_exec_ext in '' $ac_executable_extensions; do
3639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3640 ac_cv_prog_AWK="$ac_prog"
3641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3642 break 2
3644 done
3645 done
3646 IFS=$as_save_IFS
3650 AWK=$ac_cv_prog_AWK
3651 if test -n "$AWK"; then
3652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3653 $as_echo "$AWK" >&6; }
3654 else
3655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3656 $as_echo "no" >&6; }
3660 test -n "$AWK" && break
3661 done
3663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3664 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3665 set x ${MAKE-make}
3666 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3667 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3668 $as_echo_n "(cached) " >&6
3669 else
3670 cat >conftest.make <<\_ACEOF
3671 SHELL = /bin/sh
3672 all:
3673 @echo '@@@%%%=$(MAKE)=@@@%%%'
3674 _ACEOF
3675 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3676 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3677 *@@@%%%=?*=@@@%%%*)
3678 eval ac_cv_prog_make_${ac_make}_set=yes;;
3680 eval ac_cv_prog_make_${ac_make}_set=no;;
3681 esac
3682 rm -f conftest.make
3684 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3686 $as_echo "yes" >&6; }
3687 SET_MAKE=
3688 else
3689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3690 $as_echo "no" >&6; }
3691 SET_MAKE="MAKE=${MAKE-make}"
3694 rm -rf .tst 2>/dev/null
3695 mkdir .tst 2>/dev/null
3696 if test -d .tst; then
3697 am__leading_dot=.
3698 else
3699 am__leading_dot=_
3701 rmdir .tst 2>/dev/null
3703 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3704 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3705 # is not polluted with repeated "-I."
3706 am__isrc=' -I$(srcdir)'
3707 # test to see if srcdir already configured
3708 if test -f $srcdir/config.status; then
3709 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3713 # test whether we have cygpath
3714 if test -z "$CYGPATH_W"; then
3715 if (cygpath --version) >/dev/null 2>/dev/null; then
3716 CYGPATH_W='cygpath -w'
3717 else
3718 CYGPATH_W=echo
3723 # Define the identity of the package.
3724 PACKAGE='emacs'
3725 VERSION='24.1.50'
3728 cat >>confdefs.h <<_ACEOF
3729 #define PACKAGE "$PACKAGE"
3730 _ACEOF
3733 cat >>confdefs.h <<_ACEOF
3734 #define VERSION "$VERSION"
3735 _ACEOF
3737 # Some tools Automake needs.
3739 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3742 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3745 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3748 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3751 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3753 # We need awk for the "check" target. The system "awk" is bad on
3754 # some platforms.
3755 # Always define AMTAR for backward compatibility.
3757 AMTAR=${AMTAR-"${am_missing_run}tar"}
3759 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3768 lispdir='${datadir}/emacs/${version}/lisp'
3769 leimdir='${datadir}/emacs/${version}/leim'
3770 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
3771 '${datadir}/emacs/site-lisp'
3772 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
3773 etcdir='${datadir}/emacs/${version}/etc'
3774 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
3775 docdir='${datadir}/emacs/${version}/etc'
3776 gamedir='${localstatedir}/games/emacs'
3781 # Check whether --with-pop was given.
3782 if test "${with_pop+set}" = set; then :
3783 withval=$with_pop;
3784 else
3785 with_pop=yes
3788 if test "$with_pop" = yes; then
3789 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
3794 # Check whether --with-kerberos was given.
3795 if test "${with_kerberos+set}" = set; then :
3796 withval=$with_kerberos;
3797 else
3798 with_kerberos=no
3801 if test "$with_kerberos" != no; then
3802 $as_echo "#define KERBEROS 1" >>confdefs.h
3807 # Check whether --with-kerberos5 was given.
3808 if test "${with_kerberos5+set}" = set; then :
3809 withval=$with_kerberos5;
3810 else
3811 with_kerberos5=no
3814 if test "${with_kerberos5}" != no; then
3815 if test "${with_kerberos}" = no; then
3816 with_kerberos=yes
3817 $as_echo "#define KERBEROS 1" >>confdefs.h
3821 $as_echo "#define KERBEROS5 1" >>confdefs.h
3826 # Check whether --with-hesiod was given.
3827 if test "${with_hesiod+set}" = set; then :
3828 withval=$with_hesiod;
3829 else
3830 with_hesiod=no
3833 if test "$with_hesiod" != no; then
3835 $as_echo "#define HESIOD 1" >>confdefs.h
3840 # Check whether --with-mmdf was given.
3841 if test "${with_mmdf+set}" = set; then :
3842 withval=$with_mmdf;
3843 else
3844 with_mmdf=no
3847 if test "$with_mmdf" != no; then
3849 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
3854 # Check whether --with-mail-unlink was given.
3855 if test "${with_mail_unlink+set}" = set; then :
3856 withval=$with_mail_unlink;
3857 else
3858 with_mail_unlink=no
3861 if test "$with_mail_unlink" != no; then
3863 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
3868 # Check whether --with-mailhost was given.
3869 if test "${with_mailhost+set}" = set; then :
3870 withval=$with_mailhost;
3871 cat >>confdefs.h <<_ACEOF
3872 #define MAILHOST "$withval"
3873 _ACEOF
3879 # Check whether --with-sound was given.
3880 if test "${with_sound+set}" = set; then :
3881 withval=$with_sound;
3882 else
3883 with_sound=yes
3888 # Check whether --with-sync-input was given.
3889 if test "${with_sync_input+set}" = set; then :
3890 withval=$with_sync_input;
3891 else
3892 with_sync_input=yes
3895 if test "$with_sync_input" = yes; then
3897 $as_echo "#define SYNC_INPUT 1" >>confdefs.h
3902 # Check whether --with-x-toolkit was given.
3903 if test "${with_x_toolkit+set}" = set; then :
3904 withval=$with_x_toolkit; case "${withval}" in
3905 y | ye | yes ) val=gtk ;;
3906 n | no ) val=no ;;
3907 l | lu | luc | luci | lucid ) val=lucid ;;
3908 a | at | ath | athe | athen | athena ) val=athena ;;
3909 m | mo | mot | moti | motif ) val=motif ;;
3910 g | gt | gtk ) val=gtk ;;
3911 gtk3 ) val=gtk3 ;;
3913 as_fn_error "\`--with-x-toolkit=$withval' is invalid;
3914 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk' or
3915 \`gtk3'. \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." "$LINENO" 5
3917 esac
3918 with_x_toolkit=$val
3924 # Check whether --with-wide-int was given.
3925 if test "${with_wide_int+set}" = set; then :
3926 withval=$with_wide_int;
3927 else
3928 with_wide_int=no
3931 if test "$with_wide_int" = yes; then
3933 $as_echo "#define WIDE_EMACS_INT 1" >>confdefs.h
3938 # Check whether --with-xpm was given.
3939 if test "${with_xpm+set}" = set; then :
3940 withval=$with_xpm;
3941 else
3942 with_xpm=yes
3946 # Check whether --with-jpeg was given.
3947 if test "${with_jpeg+set}" = set; then :
3948 withval=$with_jpeg;
3949 else
3950 with_jpeg=yes
3954 # Check whether --with-tiff was given.
3955 if test "${with_tiff+set}" = set; then :
3956 withval=$with_tiff;
3957 else
3958 with_tiff=yes
3962 # Check whether --with-gif was given.
3963 if test "${with_gif+set}" = set; then :
3964 withval=$with_gif;
3965 else
3966 with_gif=yes
3970 # Check whether --with-png was given.
3971 if test "${with_png+set}" = set; then :
3972 withval=$with_png;
3973 else
3974 with_png=yes
3978 # Check whether --with-rsvg was given.
3979 if test "${with_rsvg+set}" = set; then :
3980 withval=$with_rsvg;
3981 else
3982 with_rsvg=yes
3986 # Check whether --with-xml2 was given.
3987 if test "${with_xml2+set}" = set; then :
3988 withval=$with_xml2;
3989 else
3990 with_xml2=yes
3994 # Check whether --with-imagemagick was given.
3995 if test "${with_imagemagick+set}" = set; then :
3996 withval=$with_imagemagick;
3997 else
3998 with_imagemagick=yes
4003 # Check whether --with-xft was given.
4004 if test "${with_xft+set}" = set; then :
4005 withval=$with_xft;
4006 else
4007 with_xft=yes
4011 # Check whether --with-libotf was given.
4012 if test "${with_libotf+set}" = set; then :
4013 withval=$with_libotf;
4014 else
4015 with_libotf=yes
4019 # Check whether --with-m17n-flt was given.
4020 if test "${with_m17n_flt+set}" = set; then :
4021 withval=$with_m17n_flt;
4022 else
4023 with_m17n_flt=yes
4028 # Check whether --with-toolkit-scroll-bars was given.
4029 if test "${with_toolkit_scroll_bars+set}" = set; then :
4030 withval=$with_toolkit_scroll_bars;
4031 else
4032 with_toolkit_scroll_bars=yes
4036 # Check whether --with-xaw3d was given.
4037 if test "${with_xaw3d+set}" = set; then :
4038 withval=$with_xaw3d;
4039 else
4040 with_xaw3d=yes
4044 # Check whether --with-xim was given.
4045 if test "${with_xim+set}" = set; then :
4046 withval=$with_xim;
4047 else
4048 with_xim=yes
4052 # Check whether --with-ns was given.
4053 if test "${with_ns+set}" = set; then :
4054 withval=$with_ns;
4055 else
4056 with_ns=no
4061 # Check whether --with-gpm was given.
4062 if test "${with_gpm+set}" = set; then :
4063 withval=$with_gpm;
4064 else
4065 with_gpm=yes
4069 # Check whether --with-dbus was given.
4070 if test "${with_dbus+set}" = set; then :
4071 withval=$with_dbus;
4072 else
4073 with_dbus=yes
4077 # Check whether --with-gconf was given.
4078 if test "${with_gconf+set}" = set; then :
4079 withval=$with_gconf;
4080 else
4081 with_gconf=yes
4085 # Check whether --with-gsettings was given.
4086 if test "${with_gsettings+set}" = set; then :
4087 withval=$with_gsettings;
4088 else
4089 with_gsettings=yes
4093 # Check whether --with-selinux was given.
4094 if test "${with_selinux+set}" = set; then :
4095 withval=$with_selinux;
4096 else
4097 with_selinux=yes
4101 # Check whether --with-gnutls was given.
4102 if test "${with_gnutls+set}" = set; then :
4103 withval=$with_gnutls;
4104 else
4105 with_gnutls=yes
4109 ## For the times when you want to build Emacs but don't have
4110 ## a suitable makeinfo, and can live without the manuals.
4112 # Check whether --with-makeinfo was given.
4113 if test "${with_makeinfo+set}" = set; then :
4114 withval=$with_makeinfo;
4115 else
4116 with_makeinfo=yes
4120 ## Makefile.in needs the cache file name.
4123 ## This is an option because I do not know if all info/man support
4124 ## compressed files, nor how to test if they do so.
4126 # Check whether --with-compress-info was given.
4127 if test "${with_compress_info+set}" = set; then :
4128 withval=$with_compress_info;
4129 else
4130 with_compress_info=yes
4133 if test $with_compress_info = yes; then
4134 GZIP_INFO=yes
4135 else
4136 GZIP_INFO=
4141 # Check whether --with-pkg-config-prog was given.
4142 if test "${with_pkg_config_prog+set}" = set; then :
4143 withval=$with_pkg_config_prog;
4146 if test "X${with_pkg_config_prog}" != X; then
4147 if test "${with_pkg_config_prog}" != yes; then
4148 PKG_CONFIG="${with_pkg_config_prog}"
4152 CRT_DIR=
4154 # Check whether --with-crt-dir was given.
4155 if test "${with_crt_dir+set}" = set; then :
4156 withval=$with_crt_dir;
4159 CRT_DIR="${with_crt_dir}"
4162 # Check whether --with-gameuser was given.
4163 if test "${with_gameuser+set}" = set; then :
4164 withval=$with_gameuser;
4167 test "X${with_gameuser}" != X && test "${with_gameuser}" != yes \
4168 && gameuser="${with_gameuser}"
4169 test "X$gameuser" = X && gameuser=games
4172 # Check whether --with-gnustep-conf was given.
4173 if test "${with_gnustep_conf+set}" = set; then :
4174 withval=$with_gnustep_conf;
4177 test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
4178 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
4179 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
4180 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
4182 # Check whether --enable-ns-self-contained was given.
4183 if test "${enable_ns_self_contained+set}" = set; then :
4184 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
4185 else
4186 EN_NS_SELF_CONTAINED=yes
4190 # Check whether --enable-asserts was given.
4191 if test "${enable_asserts+set}" = set; then :
4192 enableval=$enable_asserts; USE_XASSERTS=$enableval
4193 else
4194 USE_XASSERTS=no
4198 # Check whether --enable-locallisppath was given.
4199 if test "${enable_locallisppath+set}" = set; then :
4200 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
4201 locallisppath=
4202 elif test "${enableval}" != "yes"; then
4203 locallisppath=${enableval}
4208 # Check whether --enable-checking was given.
4209 if test "${enable_checking+set}" = set; then :
4210 enableval=$enable_checking; ac_checking_flags="${enableval}"
4213 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
4214 for check in $ac_checking_flags
4216 case $check in
4217 # these set all the flags to specific states
4218 yes) ac_enable_checking=1 ;;
4219 no) ac_enable_checking= ;
4220 ac_gc_check_stringbytes= ;
4221 ac_gc_check_string_overrun= ;
4222 ac_gc_check_string_free_list= ;
4223 ac_xmalloc_overrun= ;
4224 ac_gc_check_cons_list= ;;
4225 all) ac_enable_checking=1 ;
4226 ac_gc_check_stringbytes=1 ;
4227 ac_gc_check_string_overrun=1 ;
4228 ac_gc_check_string_free_list=1 ;
4229 ac_xmalloc_overrun=1 ;
4230 ac_gc_check_cons_list=1 ;;
4231 # these enable particular checks
4232 stringbytes) ac_gc_check_stringbytes=1 ;;
4233 stringoverrun) ac_gc_check_string_overrun=1 ;;
4234 stringfreelist) ac_gc_check_string_free_list=1 ;;
4235 xmallocoverrun) ac_xmalloc_overrun=1 ;;
4236 conslist) ac_gc_check_cons_list=1 ;;
4237 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
4238 esac
4239 done
4240 IFS="$ac_save_IFS"
4242 if test x$ac_enable_checking != x ; then
4244 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
4247 if test x$ac_gc_check_stringbytes != x ; then
4249 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
4252 if test x$ac_gc_check_string_overrun != x ; then
4254 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
4257 if test x$ac_gc_check_string_free_list != x ; then
4259 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
4262 if test x$ac_xmalloc_overrun != x ; then
4264 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
4267 if test x$ac_gc_check_cons_list != x ; then
4269 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
4273 # Check whether --enable-use-lisp-union-type was given.
4274 if test "${enable_use_lisp_union_type+set}" = set; then :
4275 enableval=$enable_use_lisp_union_type; if test "${enableval}" != "no"; then
4277 $as_echo "#define USE_LISP_UNION_TYPE 1" >>confdefs.h
4284 # Check whether --enable-profiling was given.
4285 if test "${enable_profiling+set}" = set; then :
4286 enableval=$enable_profiling; ac_enable_profiling="${enableval}"
4289 if test x$ac_enable_profiling != x ; then
4290 PROFILING_CFLAGS="-DPROFILING=1 -pg"
4291 else
4292 PROFILING_CFLAGS=
4296 # Check whether --enable-autodepend was given.
4297 if test "${enable_autodepend+set}" = set; then :
4298 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}"
4299 else
4300 ac_enable_autodepend=yes
4304 #### Make srcdir absolute, if it isn't already. It's important to
4305 #### avoid running the path through pwd unnecessarily, since pwd can
4306 #### give you automounter prefixes, which can go away. We do all this
4307 #### so Emacs can find its files when run uninstalled.
4308 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
4309 unset CDPATH
4310 case "${srcdir}" in
4311 /* ) ;;
4313 ## We may be able to use the $PWD environment variable to make this
4314 ## absolute. But sometimes PWD is inaccurate.
4315 ## Note: we used to use ${PWD} at the end instead of `pwd`,
4316 ## but that tested only for a well-formed and valid PWD,
4317 ## it did not object when PWD was well-formed and valid but just wrong.
4318 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
4319 then
4320 srcdir="$PWD"
4321 else
4322 srcdir="`(cd ${srcdir}; pwd)`"
4325 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
4326 esac
4328 #### Given the configuration name, set opsysfile to the
4329 #### name of s/*.h file we should use.
4331 ### Canonicalize the configuration name.
4333 # Make sure we can run config.sub.
4334 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4335 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4338 $as_echo_n "checking build system type... " >&6; }
4339 if test "${ac_cv_build+set}" = set; then :
4340 $as_echo_n "(cached) " >&6
4341 else
4342 ac_build_alias=$build_alias
4343 test "x$ac_build_alias" = x &&
4344 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4345 test "x$ac_build_alias" = x &&
4346 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4347 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4348 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4352 $as_echo "$ac_cv_build" >&6; }
4353 case $ac_cv_build in
4354 *-*-*) ;;
4355 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4356 esac
4357 build=$ac_cv_build
4358 ac_save_IFS=$IFS; IFS='-'
4359 set x $ac_cv_build
4360 shift
4361 build_cpu=$1
4362 build_vendor=$2
4363 shift; shift
4364 # Remember, the first character of IFS is used to create $*,
4365 # except with old shells:
4366 build_os=$*
4367 IFS=$ac_save_IFS
4368 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4372 $as_echo_n "checking host system type... " >&6; }
4373 if test "${ac_cv_host+set}" = set; then :
4374 $as_echo_n "(cached) " >&6
4375 else
4376 if test "x$host_alias" = x; then
4377 ac_cv_host=$ac_cv_build
4378 else
4379 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4380 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4385 $as_echo "$ac_cv_host" >&6; }
4386 case $ac_cv_host in
4387 *-*-*) ;;
4388 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4389 esac
4390 host=$ac_cv_host
4391 ac_save_IFS=$IFS; IFS='-'
4392 set x $ac_cv_host
4393 shift
4394 host_cpu=$1
4395 host_vendor=$2
4396 shift; shift
4397 # Remember, the first character of IFS is used to create $*,
4398 # except with old shells:
4399 host_os=$*
4400 IFS=$ac_save_IFS
4401 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4404 canonical=$host
4405 configuration=${host_alias-${build_alias-$host}}
4409 ### If you add support for a new configuration, add code to this
4410 ### switch statement to recognize your configuration name and select
4411 ### the appropriate operating system file.
4413 ### You would hope that you could choose an s/*.h
4414 ### file based on the operating system portion. However, it turns out
4415 ### that each s/*.h file is pretty manufacturer-specific.
4416 ### So we basically have to have a special case for each
4417 ### configuration name.
4419 ### As far as handling version numbers on operating systems is
4420 ### concerned, make sure things will fail in a fixable way. If
4421 ### /etc/MACHINES doesn't say anything about version numbers, be
4422 ### prepared to handle anything reasonably. If version numbers
4423 ### matter, be sure /etc/MACHINES says something about it.
4425 opsys='' unported=no
4426 case "${canonical}" in
4428 ## GNU/Linux and similar ports
4429 *-*-linux* )
4430 opsys=gnu-linux
4433 ## FreeBSD ports
4434 *-*-freebsd* )
4435 opsys=freebsd
4438 ## FreeBSD kernel + glibc based userland
4439 *-*-kfreebsd*gnu* )
4440 opsys=gnu-kfreebsd
4443 ## NetBSD ports
4444 *-*-netbsd* )
4445 opsys=netbsd
4448 ## OpenBSD ports
4449 *-*-openbsd* )
4450 opsys=openbsd
4453 ## Apple Darwin / Mac OS X
4454 *-apple-darwin* )
4455 case "${canonical}" in
4456 i[3456]86-* ) ;;
4457 powerpc-* ) ;;
4458 x86_64-* ) ;;
4459 * ) unported=yes ;;
4460 esac
4461 opsys=darwin
4462 ## Use fink packages if available.
4463 ## FIXME find a better way to do this: http://debbugs.gnu.org/11507
4464 ## if test -d /sw/include && test -d /sw/lib; then
4465 ## GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
4466 ## NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
4467 ## fi
4470 ## HP 9000 series 700 and 800, running HP/UX
4471 hppa*-hp-hpux10.2* )
4472 opsys=hpux10-20
4474 hppa*-hp-hpux1[1-9]* )
4475 opsys=hpux11
4476 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
4479 ## IBM machines
4480 rs6000-ibm-aix4.[23]* )
4481 opsys=aix4-2
4483 powerpc-ibm-aix4.[23]* )
4484 opsys=aix4-2
4486 rs6000-ibm-aix[56]* )
4487 opsys=aix4-2
4489 powerpc-ibm-aix[56]* )
4490 opsys=aix4-2
4493 ## Silicon Graphics machines
4494 ## Iris 4D
4495 mips-sgi-irix6.5 )
4496 opsys=irix6-5
4497 # Without defining _LANGUAGE_C, things get masked out in the headers
4498 # so that, for instance, grepping for `free' in stdlib.h fails and
4499 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
4500 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
4503 ## Suns
4504 *-sun-solaris* \
4505 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* \
4506 | x86_64-*-solaris2* | x86_64-*-sunos5*)
4507 case "${canonical}" in
4508 i[3456]86-*-* ) ;;
4509 amd64-*-*|x86_64-*-*) ;;
4510 sparc* ) ;;
4511 * ) unported=yes ;;
4512 esac
4513 case "${canonical}" in
4514 *-sunos5.6* | *-solaris2.6* )
4515 opsys=sol2-6
4516 RANLIB="ar -ts"
4518 *-sunos5.[7-9]* | *-solaris2.[7-9]* )
4519 opsys=sol2-6
4520 emacs_check_sunpro_c=yes
4522 *-sunos5* | *-solaris* )
4523 opsys=sol2-10
4524 emacs_check_sunpro_c=yes
4526 esac
4527 ## Watch out for a compiler that we know will not work.
4528 case "${canonical}" in
4529 *-solaris* | *-sunos5* )
4530 if [ "x$CC" = x/usr/ucb/cc ]; then
4531 ## /usr/ucb/cc doesn't work;
4532 ## we should find some other compiler that does work.
4533 unset CC
4536 *) ;;
4537 esac
4540 ## Intel 386 machines where we don't care about the manufacturer.
4541 i[3456]86-*-* )
4542 case "${canonical}" in
4543 *-cygwin ) opsys=cygwin ;;
4544 *-darwin* ) opsys=darwin ;;
4545 *-sysv4.2uw* ) opsys=unixware ;;
4546 *-sysv5uw* ) opsys=unixware ;;
4547 *-sysv5OpenUNIX* ) opsys=unixware ;;
4548 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
4549 esac
4553 unported=yes
4555 esac
4557 ### If the code above didn't choose an operating system, just choose
4558 ### an operating system based on the configuration name. You really
4559 ### only want to use this when you have no idea what the right
4560 ### operating system is; if you know what operating systems a machine
4561 ### runs, it's cleaner to make it explicit in the case statement
4562 ### above.
4563 if test x"${opsys}" = x; then
4564 case "${canonical}" in
4565 *-gnu* ) opsys=gnu ;;
4567 unported=yes
4569 esac
4574 if test $unported = yes; then
4575 as_fn_error "Emacs hasn't been ported to \`${canonical}' systems.
4576 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
4579 opsysfile="s/${opsys}.h"
4582 #### Choose a compiler.
4584 ac_ext=c
4585 ac_cpp='$CPP $CPPFLAGS'
4586 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4587 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4588 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4589 if test -n "$ac_tool_prefix"; then
4590 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4591 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4593 $as_echo_n "checking for $ac_word... " >&6; }
4594 if test "${ac_cv_prog_CC+set}" = set; then :
4595 $as_echo_n "(cached) " >&6
4596 else
4597 if test -n "$CC"; then
4598 ac_cv_prog_CC="$CC" # Let the user override the test.
4599 else
4600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4601 for as_dir in $PATH
4603 IFS=$as_save_IFS
4604 test -z "$as_dir" && as_dir=.
4605 for ac_exec_ext in '' $ac_executable_extensions; do
4606 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4607 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4609 break 2
4611 done
4612 done
4613 IFS=$as_save_IFS
4617 CC=$ac_cv_prog_CC
4618 if test -n "$CC"; then
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4620 $as_echo "$CC" >&6; }
4621 else
4622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4623 $as_echo "no" >&6; }
4628 if test -z "$ac_cv_prog_CC"; then
4629 ac_ct_CC=$CC
4630 # Extract the first word of "gcc", so it can be a program name with args.
4631 set dummy gcc; ac_word=$2
4632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4633 $as_echo_n "checking for $ac_word... " >&6; }
4634 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4635 $as_echo_n "(cached) " >&6
4636 else
4637 if test -n "$ac_ct_CC"; then
4638 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4639 else
4640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4641 for as_dir in $PATH
4643 IFS=$as_save_IFS
4644 test -z "$as_dir" && as_dir=.
4645 for ac_exec_ext in '' $ac_executable_extensions; do
4646 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4647 ac_cv_prog_ac_ct_CC="gcc"
4648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4649 break 2
4651 done
4652 done
4653 IFS=$as_save_IFS
4657 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4658 if test -n "$ac_ct_CC"; then
4659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4660 $as_echo "$ac_ct_CC" >&6; }
4661 else
4662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4663 $as_echo "no" >&6; }
4666 if test "x$ac_ct_CC" = x; then
4667 CC=""
4668 else
4669 case $cross_compiling:$ac_tool_warned in
4670 yes:)
4671 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4672 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4673 ac_tool_warned=yes ;;
4674 esac
4675 CC=$ac_ct_CC
4677 else
4678 CC="$ac_cv_prog_CC"
4681 if test -z "$CC"; then
4682 if test -n "$ac_tool_prefix"; then
4683 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4684 set dummy ${ac_tool_prefix}cc; ac_word=$2
4685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4686 $as_echo_n "checking for $ac_word... " >&6; }
4687 if test "${ac_cv_prog_CC+set}" = set; then :
4688 $as_echo_n "(cached) " >&6
4689 else
4690 if test -n "$CC"; then
4691 ac_cv_prog_CC="$CC" # Let the user override the test.
4692 else
4693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4694 for as_dir in $PATH
4696 IFS=$as_save_IFS
4697 test -z "$as_dir" && as_dir=.
4698 for ac_exec_ext in '' $ac_executable_extensions; do
4699 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4700 ac_cv_prog_CC="${ac_tool_prefix}cc"
4701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4702 break 2
4704 done
4705 done
4706 IFS=$as_save_IFS
4710 CC=$ac_cv_prog_CC
4711 if test -n "$CC"; then
4712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4713 $as_echo "$CC" >&6; }
4714 else
4715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4716 $as_echo "no" >&6; }
4722 if test -z "$CC"; then
4723 # Extract the first word of "cc", so it can be a program name with args.
4724 set dummy cc; ac_word=$2
4725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4726 $as_echo_n "checking for $ac_word... " >&6; }
4727 if test "${ac_cv_prog_CC+set}" = set; then :
4728 $as_echo_n "(cached) " >&6
4729 else
4730 if test -n "$CC"; then
4731 ac_cv_prog_CC="$CC" # Let the user override the test.
4732 else
4733 ac_prog_rejected=no
4734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4735 for as_dir in $PATH
4737 IFS=$as_save_IFS
4738 test -z "$as_dir" && as_dir=.
4739 for ac_exec_ext in '' $ac_executable_extensions; do
4740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4741 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4742 ac_prog_rejected=yes
4743 continue
4745 ac_cv_prog_CC="cc"
4746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4747 break 2
4749 done
4750 done
4751 IFS=$as_save_IFS
4753 if test $ac_prog_rejected = yes; then
4754 # We found a bogon in the path, so make sure we never use it.
4755 set dummy $ac_cv_prog_CC
4756 shift
4757 if test $# != 0; then
4758 # We chose a different compiler from the bogus one.
4759 # However, it has the same basename, so the bogon will be chosen
4760 # first if we set CC to just the basename; use the full file name.
4761 shift
4762 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4767 CC=$ac_cv_prog_CC
4768 if test -n "$CC"; then
4769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4770 $as_echo "$CC" >&6; }
4771 else
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4773 $as_echo "no" >&6; }
4778 if test -z "$CC"; then
4779 if test -n "$ac_tool_prefix"; then
4780 for ac_prog in cl.exe
4782 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4783 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4785 $as_echo_n "checking for $ac_word... " >&6; }
4786 if test "${ac_cv_prog_CC+set}" = set; then :
4787 $as_echo_n "(cached) " >&6
4788 else
4789 if test -n "$CC"; then
4790 ac_cv_prog_CC="$CC" # Let the user override the test.
4791 else
4792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4793 for as_dir in $PATH
4795 IFS=$as_save_IFS
4796 test -z "$as_dir" && as_dir=.
4797 for ac_exec_ext in '' $ac_executable_extensions; do
4798 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4799 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4801 break 2
4803 done
4804 done
4805 IFS=$as_save_IFS
4809 CC=$ac_cv_prog_CC
4810 if test -n "$CC"; then
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4812 $as_echo "$CC" >&6; }
4813 else
4814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4815 $as_echo "no" >&6; }
4819 test -n "$CC" && break
4820 done
4822 if test -z "$CC"; then
4823 ac_ct_CC=$CC
4824 for ac_prog in cl.exe
4826 # Extract the first word of "$ac_prog", so it can be a program name with args.
4827 set dummy $ac_prog; ac_word=$2
4828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4829 $as_echo_n "checking for $ac_word... " >&6; }
4830 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4831 $as_echo_n "(cached) " >&6
4832 else
4833 if test -n "$ac_ct_CC"; then
4834 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4835 else
4836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4837 for as_dir in $PATH
4839 IFS=$as_save_IFS
4840 test -z "$as_dir" && as_dir=.
4841 for ac_exec_ext in '' $ac_executable_extensions; do
4842 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4843 ac_cv_prog_ac_ct_CC="$ac_prog"
4844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4845 break 2
4847 done
4848 done
4849 IFS=$as_save_IFS
4853 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4854 if test -n "$ac_ct_CC"; then
4855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4856 $as_echo "$ac_ct_CC" >&6; }
4857 else
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4859 $as_echo "no" >&6; }
4863 test -n "$ac_ct_CC" && break
4864 done
4866 if test "x$ac_ct_CC" = x; then
4867 CC=""
4868 else
4869 case $cross_compiling:$ac_tool_warned in
4870 yes:)
4871 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4872 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4873 ac_tool_warned=yes ;;
4874 esac
4875 CC=$ac_ct_CC
4882 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4883 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4884 as_fn_error "no acceptable C compiler found in \$PATH
4885 See \`config.log' for more details." "$LINENO" 5; }
4887 # Provide some information about the compiler.
4888 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4889 set X $ac_compile
4890 ac_compiler=$2
4891 for ac_option in --version -v -V -qversion; do
4892 { { ac_try="$ac_compiler $ac_option >&5"
4893 case "(($ac_try" in
4894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4895 *) ac_try_echo=$ac_try;;
4896 esac
4897 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4898 $as_echo "$ac_try_echo"; } >&5
4899 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4900 ac_status=$?
4901 if test -s conftest.err; then
4902 sed '10a\
4903 ... rest of stderr output deleted ...
4904 10q' conftest.err >conftest.er1
4905 cat conftest.er1 >&5
4907 rm -f conftest.er1 conftest.err
4908 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4909 test $ac_status = 0; }
4910 done
4912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4913 /* end confdefs.h. */
4916 main ()
4920 return 0;
4922 _ACEOF
4923 ac_clean_files_save=$ac_clean_files
4924 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4925 # Try to create an executable without -o first, disregard a.out.
4926 # It will help us diagnose broken compilers, and finding out an intuition
4927 # of exeext.
4928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4929 $as_echo_n "checking whether the C compiler works... " >&6; }
4930 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4932 # The possible output files:
4933 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4935 ac_rmfiles=
4936 for ac_file in $ac_files
4938 case $ac_file in
4939 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4940 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4941 esac
4942 done
4943 rm -f $ac_rmfiles
4945 if { { ac_try="$ac_link_default"
4946 case "(($ac_try" in
4947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4948 *) ac_try_echo=$ac_try;;
4949 esac
4950 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4951 $as_echo "$ac_try_echo"; } >&5
4952 (eval "$ac_link_default") 2>&5
4953 ac_status=$?
4954 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4955 test $ac_status = 0; }; then :
4956 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4957 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4958 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4959 # so that the user can short-circuit this test for compilers unknown to
4960 # Autoconf.
4961 for ac_file in $ac_files ''
4963 test -f "$ac_file" || continue
4964 case $ac_file in
4965 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4967 [ab].out )
4968 # We found the default executable, but exeext='' is most
4969 # certainly right.
4970 break;;
4971 *.* )
4972 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4973 then :; else
4974 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4976 # We set ac_cv_exeext here because the later test for it is not
4977 # safe: cross compilers may not add the suffix if given an `-o'
4978 # argument, so we may need to know it at that point already.
4979 # Even if this section looks crufty: it has the advantage of
4980 # actually working.
4981 break;;
4983 break;;
4984 esac
4985 done
4986 test "$ac_cv_exeext" = no && ac_cv_exeext=
4988 else
4989 ac_file=''
4991 if test -z "$ac_file"; then :
4992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4993 $as_echo "no" >&6; }
4994 $as_echo "$as_me: failed program was:" >&5
4995 sed 's/^/| /' conftest.$ac_ext >&5
4997 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4998 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4999 { as_fn_set_status 77
5000 as_fn_error "C compiler cannot create executables
5001 See \`config.log' for more details." "$LINENO" 5; }; }
5002 else
5003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5004 $as_echo "yes" >&6; }
5006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5007 $as_echo_n "checking for C compiler default output file name... " >&6; }
5008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5009 $as_echo "$ac_file" >&6; }
5010 ac_exeext=$ac_cv_exeext
5012 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
5013 ac_clean_files=$ac_clean_files_save
5014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5015 $as_echo_n "checking for suffix of executables... " >&6; }
5016 if { { ac_try="$ac_link"
5017 case "(($ac_try" in
5018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5019 *) ac_try_echo=$ac_try;;
5020 esac
5021 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5022 $as_echo "$ac_try_echo"; } >&5
5023 (eval "$ac_link") 2>&5
5024 ac_status=$?
5025 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5026 test $ac_status = 0; }; then :
5027 # If both `conftest.exe' and `conftest' are `present' (well, observable)
5028 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
5029 # work properly (i.e., refer to `conftest.exe'), while it won't with
5030 # `rm'.
5031 for ac_file in conftest.exe conftest conftest.*; do
5032 test -f "$ac_file" || continue
5033 case $ac_file in
5034 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5035 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5036 break;;
5037 * ) break;;
5038 esac
5039 done
5040 else
5041 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5042 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5043 as_fn_error "cannot compute suffix of executables: cannot compile and link
5044 See \`config.log' for more details." "$LINENO" 5; }
5046 rm -f conftest conftest$ac_cv_exeext
5047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5048 $as_echo "$ac_cv_exeext" >&6; }
5050 rm -f conftest.$ac_ext
5051 EXEEXT=$ac_cv_exeext
5052 ac_exeext=$EXEEXT
5053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5054 /* end confdefs.h. */
5055 #include <stdio.h>
5057 main ()
5059 FILE *f = fopen ("conftest.out", "w");
5060 return ferror (f) || fclose (f) != 0;
5063 return 0;
5065 _ACEOF
5066 ac_clean_files="$ac_clean_files conftest.out"
5067 # Check that the compiler produces executables we can run. If not, either
5068 # the compiler is broken, or we cross compile.
5069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5070 $as_echo_n "checking whether we are cross compiling... " >&6; }
5071 if test "$cross_compiling" != yes; then
5072 { { ac_try="$ac_link"
5073 case "(($ac_try" in
5074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5075 *) ac_try_echo=$ac_try;;
5076 esac
5077 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5078 $as_echo "$ac_try_echo"; } >&5
5079 (eval "$ac_link") 2>&5
5080 ac_status=$?
5081 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5082 test $ac_status = 0; }
5083 if { ac_try='./conftest$ac_cv_exeext'
5084 { { case "(($ac_try" in
5085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5086 *) ac_try_echo=$ac_try;;
5087 esac
5088 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5089 $as_echo "$ac_try_echo"; } >&5
5090 (eval "$ac_try") 2>&5
5091 ac_status=$?
5092 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5093 test $ac_status = 0; }; }; then
5094 cross_compiling=no
5095 else
5096 if test "$cross_compiling" = maybe; then
5097 cross_compiling=yes
5098 else
5099 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5100 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5101 as_fn_error "cannot run C compiled programs.
5102 If you meant to cross compile, use \`--host'.
5103 See \`config.log' for more details." "$LINENO" 5; }
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5108 $as_echo "$cross_compiling" >&6; }
5110 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5111 ac_clean_files=$ac_clean_files_save
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5113 $as_echo_n "checking for suffix of object files... " >&6; }
5114 if test "${ac_cv_objext+set}" = set; then :
5115 $as_echo_n "(cached) " >&6
5116 else
5117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5118 /* end confdefs.h. */
5121 main ()
5125 return 0;
5127 _ACEOF
5128 rm -f conftest.o conftest.obj
5129 if { { ac_try="$ac_compile"
5130 case "(($ac_try" in
5131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5132 *) ac_try_echo=$ac_try;;
5133 esac
5134 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5135 $as_echo "$ac_try_echo"; } >&5
5136 (eval "$ac_compile") 2>&5
5137 ac_status=$?
5138 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5139 test $ac_status = 0; }; then :
5140 for ac_file in conftest.o conftest.obj conftest.*; do
5141 test -f "$ac_file" || continue;
5142 case $ac_file in
5143 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5144 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5145 break;;
5146 esac
5147 done
5148 else
5149 $as_echo "$as_me: failed program was:" >&5
5150 sed 's/^/| /' conftest.$ac_ext >&5
5152 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5153 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5154 as_fn_error "cannot compute suffix of object files: cannot compile
5155 See \`config.log' for more details." "$LINENO" 5; }
5157 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5160 $as_echo "$ac_cv_objext" >&6; }
5161 OBJEXT=$ac_cv_objext
5162 ac_objext=$OBJEXT
5163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5164 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5165 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5166 $as_echo_n "(cached) " >&6
5167 else
5168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5169 /* end confdefs.h. */
5172 main ()
5174 #ifndef __GNUC__
5175 choke me
5176 #endif
5179 return 0;
5181 _ACEOF
5182 if ac_fn_c_try_compile "$LINENO"; then :
5183 ac_compiler_gnu=yes
5184 else
5185 ac_compiler_gnu=no
5187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5188 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5192 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5193 if test $ac_compiler_gnu = yes; then
5194 GCC=yes
5195 else
5196 GCC=
5198 ac_test_CFLAGS=${CFLAGS+set}
5199 ac_save_CFLAGS=$CFLAGS
5200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5201 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5202 if test "${ac_cv_prog_cc_g+set}" = set; then :
5203 $as_echo_n "(cached) " >&6
5204 else
5205 ac_save_c_werror_flag=$ac_c_werror_flag
5206 ac_c_werror_flag=yes
5207 ac_cv_prog_cc_g=no
5208 CFLAGS="-g"
5209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5210 /* end confdefs.h. */
5213 main ()
5217 return 0;
5219 _ACEOF
5220 if ac_fn_c_try_compile "$LINENO"; then :
5221 ac_cv_prog_cc_g=yes
5222 else
5223 CFLAGS=""
5224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5225 /* end confdefs.h. */
5228 main ()
5232 return 0;
5234 _ACEOF
5235 if ac_fn_c_try_compile "$LINENO"; then :
5237 else
5238 ac_c_werror_flag=$ac_save_c_werror_flag
5239 CFLAGS="-g"
5240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5241 /* end confdefs.h. */
5244 main ()
5248 return 0;
5250 _ACEOF
5251 if ac_fn_c_try_compile "$LINENO"; then :
5252 ac_cv_prog_cc_g=yes
5254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5259 ac_c_werror_flag=$ac_save_c_werror_flag
5261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5262 $as_echo "$ac_cv_prog_cc_g" >&6; }
5263 if test "$ac_test_CFLAGS" = set; then
5264 CFLAGS=$ac_save_CFLAGS
5265 elif test $ac_cv_prog_cc_g = yes; then
5266 if test "$GCC" = yes; then
5267 CFLAGS="-g -O2"
5268 else
5269 CFLAGS="-g"
5271 else
5272 if test "$GCC" = yes; then
5273 CFLAGS="-O2"
5274 else
5275 CFLAGS=
5278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5279 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5280 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5281 $as_echo_n "(cached) " >&6
5282 else
5283 ac_cv_prog_cc_c89=no
5284 ac_save_CC=$CC
5285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5286 /* end confdefs.h. */
5287 #include <stdarg.h>
5288 #include <stdio.h>
5289 #include <sys/types.h>
5290 #include <sys/stat.h>
5291 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5292 struct buf { int x; };
5293 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5294 static char *e (p, i)
5295 char **p;
5296 int i;
5298 return p[i];
5300 static char *f (char * (*g) (char **, int), char **p, ...)
5302 char *s;
5303 va_list v;
5304 va_start (v,p);
5305 s = g (p, va_arg (v,int));
5306 va_end (v);
5307 return s;
5310 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5311 function prototypes and stuff, but not '\xHH' hex character constants.
5312 These don't provoke an error unfortunately, instead are silently treated
5313 as 'x'. The following induces an error, until -std is added to get
5314 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5315 array size at least. It's necessary to write '\x00'==0 to get something
5316 that's true only with -std. */
5317 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5319 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5320 inside strings and character constants. */
5321 #define FOO(x) 'x'
5322 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5324 int test (int i, double x);
5325 struct s1 {int (*f) (int a);};
5326 struct s2 {int (*f) (double a);};
5327 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5328 int argc;
5329 char **argv;
5331 main ()
5333 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5335 return 0;
5337 _ACEOF
5338 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5339 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5341 CC="$ac_save_CC $ac_arg"
5342 if ac_fn_c_try_compile "$LINENO"; then :
5343 ac_cv_prog_cc_c89=$ac_arg
5345 rm -f core conftest.err conftest.$ac_objext
5346 test "x$ac_cv_prog_cc_c89" != "xno" && break
5347 done
5348 rm -f conftest.$ac_ext
5349 CC=$ac_save_CC
5352 # AC_CACHE_VAL
5353 case "x$ac_cv_prog_cc_c89" in
5355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5356 $as_echo "none needed" >&6; } ;;
5357 xno)
5358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5359 $as_echo "unsupported" >&6; } ;;
5361 CC="$CC $ac_cv_prog_cc_c89"
5362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5363 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5364 esac
5365 if test "x$ac_cv_prog_cc_c89" != xno; then :
5369 ac_ext=c
5370 ac_cpp='$CPP $CPPFLAGS'
5371 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5372 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5373 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5374 DEPDIR="${am__leading_dot}deps"
5376 ac_config_commands="$ac_config_commands depfiles"
5379 am_make=${MAKE-make}
5380 cat > confinc << 'END'
5381 am__doit:
5382 @echo this is the am__doit target
5383 .PHONY: am__doit
5385 # If we don't find an include directive, just comment out the code.
5386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5387 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5388 am__include="#"
5389 am__quote=
5390 _am_result=none
5391 # First try GNU make style include.
5392 echo "include confinc" > confmf
5393 # Ignore all kinds of additional output from `make'.
5394 case `$am_make -s -f confmf 2> /dev/null` in #(
5395 *the\ am__doit\ target*)
5396 am__include=include
5397 am__quote=
5398 _am_result=GNU
5400 esac
5401 # Now try BSD make style include.
5402 if test "$am__include" = "#"; then
5403 echo '.include "confinc"' > confmf
5404 case `$am_make -s -f confmf 2> /dev/null` in #(
5405 *the\ am__doit\ target*)
5406 am__include=.include
5407 am__quote="\""
5408 _am_result=BSD
5410 esac
5414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5415 $as_echo "$_am_result" >&6; }
5416 rm -f confinc confmf
5418 # Check whether --enable-dependency-tracking was given.
5419 if test "${enable_dependency_tracking+set}" = set; then :
5420 enableval=$enable_dependency_tracking;
5423 if test "x$enable_dependency_tracking" != xno; then
5424 am_depcomp="$ac_aux_dir/depcomp"
5425 AMDEPBACKSLASH='\'
5427 if test "x$enable_dependency_tracking" != xno; then
5428 AMDEP_TRUE=
5429 AMDEP_FALSE='#'
5430 else
5431 AMDEP_TRUE='#'
5432 AMDEP_FALSE=
5437 depcc="$CC" am_compiler_list=
5439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5440 $as_echo_n "checking dependency style of $depcc... " >&6; }
5441 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5442 $as_echo_n "(cached) " >&6
5443 else
5444 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5445 # We make a subdir and do the tests there. Otherwise we can end up
5446 # making bogus files that we don't know about and never remove. For
5447 # instance it was reported that on HP-UX the gcc test will end up
5448 # making a dummy file named `D' -- because `-MD' means `put the output
5449 # in D'.
5450 mkdir conftest.dir
5451 # Copy depcomp to subdir because otherwise we won't find it if we're
5452 # using a relative directory.
5453 cp "$am_depcomp" conftest.dir
5454 cd conftest.dir
5455 # We will build objects and dependencies in a subdirectory because
5456 # it helps to detect inapplicable dependency modes. For instance
5457 # both Tru64's cc and ICC support -MD to output dependencies as a
5458 # side effect of compilation, but ICC will put the dependencies in
5459 # the current directory while Tru64 will put them in the object
5460 # directory.
5461 mkdir sub
5463 am_cv_CC_dependencies_compiler_type=none
5464 if test "$am_compiler_list" = ""; then
5465 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5467 am__universal=false
5468 case " $depcc " in #(
5469 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5470 esac
5472 for depmode in $am_compiler_list; do
5473 # Setup a source with many dependencies, because some compilers
5474 # like to wrap large dependency lists on column 80 (with \), and
5475 # we should not choose a depcomp mode which is confused by this.
5477 # We need to recreate these files for each test, as the compiler may
5478 # overwrite some of them when testing with obscure command lines.
5479 # This happens at least with the AIX C compiler.
5480 : > sub/conftest.c
5481 for i in 1 2 3 4 5 6; do
5482 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5483 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5484 # Solaris 8's {/usr,}/bin/sh.
5485 touch sub/conftst$i.h
5486 done
5487 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5489 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5490 # mode. It turns out that the SunPro C++ compiler does not properly
5491 # handle `-M -o', and we need to detect this. Also, some Intel
5492 # versions had trouble with output in subdirs
5493 am__obj=sub/conftest.${OBJEXT-o}
5494 am__minus_obj="-o $am__obj"
5495 case $depmode in
5496 gcc)
5497 # This depmode causes a compiler race in universal mode.
5498 test "$am__universal" = false || continue
5500 nosideeffect)
5501 # after this tag, mechanisms are not by side-effect, so they'll
5502 # only be used when explicitly requested
5503 if test "x$enable_dependency_tracking" = xyes; then
5504 continue
5505 else
5506 break
5509 msvisualcpp | msvcmsys)
5510 # This compiler won't grok `-c -o', but also, the minuso test has
5511 # not run yet. These depmodes are late enough in the game, and
5512 # so weak that their functioning should not be impacted.
5513 am__obj=conftest.${OBJEXT-o}
5514 am__minus_obj=
5516 none) break ;;
5517 esac
5518 if depmode=$depmode \
5519 source=sub/conftest.c object=$am__obj \
5520 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5521 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5522 >/dev/null 2>conftest.err &&
5523 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5524 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5525 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5526 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5527 # icc doesn't choke on unknown options, it will just issue warnings
5528 # or remarks (even with -Werror). So we grep stderr for any message
5529 # that says an option was ignored or not supported.
5530 # When given -MP, icc 7.0 and 7.1 complain thusly:
5531 # icc: Command line warning: ignoring option '-M'; no argument required
5532 # The diagnosis changed in icc 8.0:
5533 # icc: Command line remark: option '-MP' not supported
5534 if (grep 'ignoring option' conftest.err ||
5535 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5536 am_cv_CC_dependencies_compiler_type=$depmode
5537 break
5540 done
5542 cd ..
5543 rm -rf conftest.dir
5544 else
5545 am_cv_CC_dependencies_compiler_type=none
5549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5550 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5551 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5554 test "x$enable_dependency_tracking" != xno \
5555 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5556 am__fastdepCC_TRUE=
5557 am__fastdepCC_FALSE='#'
5558 else
5559 am__fastdepCC_TRUE='#'
5560 am__fastdepCC_FALSE=
5564 if test "x$CC" != xcc; then
5565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5566 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5567 else
5568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5569 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5571 set dummy $CC; ac_cc=`$as_echo "$2" |
5572 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5573 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
5574 $as_echo_n "(cached) " >&6
5575 else
5576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5577 /* end confdefs.h. */
5580 main ()
5584 return 0;
5586 _ACEOF
5587 # Make sure it works both with $CC and with simple cc.
5588 # We do the test twice because some compilers refuse to overwrite an
5589 # existing .o file with -o, though they will create one.
5590 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5591 rm -f conftest2.*
5592 if { { case "(($ac_try" in
5593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5594 *) ac_try_echo=$ac_try;;
5595 esac
5596 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5597 $as_echo "$ac_try_echo"; } >&5
5598 (eval "$ac_try") 2>&5
5599 ac_status=$?
5600 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5601 test $ac_status = 0; } &&
5602 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5604 *) ac_try_echo=$ac_try;;
5605 esac
5606 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5607 $as_echo "$ac_try_echo"; } >&5
5608 (eval "$ac_try") 2>&5
5609 ac_status=$?
5610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5611 test $ac_status = 0; };
5612 then
5613 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5614 if test "x$CC" != xcc; then
5615 # Test first that cc exists at all.
5616 if { ac_try='cc -c conftest.$ac_ext >&5'
5617 { { case "(($ac_try" in
5618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5619 *) ac_try_echo=$ac_try;;
5620 esac
5621 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5622 $as_echo "$ac_try_echo"; } >&5
5623 (eval "$ac_try") 2>&5
5624 ac_status=$?
5625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5626 test $ac_status = 0; }; }; then
5627 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5628 rm -f conftest2.*
5629 if { { case "(($ac_try" in
5630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5631 *) ac_try_echo=$ac_try;;
5632 esac
5633 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5634 $as_echo "$ac_try_echo"; } >&5
5635 (eval "$ac_try") 2>&5
5636 ac_status=$?
5637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5638 test $ac_status = 0; } &&
5639 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5641 *) ac_try_echo=$ac_try;;
5642 esac
5643 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5644 $as_echo "$ac_try_echo"; } >&5
5645 (eval "$ac_try") 2>&5
5646 ac_status=$?
5647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5648 test $ac_status = 0; };
5649 then
5650 # cc works too.
5652 else
5653 # cc exists but doesn't like -o.
5654 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5658 else
5659 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5661 rm -f core conftest*
5664 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5666 $as_echo "yes" >&6; }
5667 else
5668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5669 $as_echo "no" >&6; }
5671 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5675 # FIXME: we rely on the cache variable name because
5676 # there is no other way.
5677 set dummy $CC
5678 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5679 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5680 if test "$am_t" != yes; then
5681 # Losing compiler, so override with the script.
5682 # FIXME: It is wrong to rewrite CC.
5683 # But if we don't then we get into trouble of one sort or another.
5684 # A longer-term fix would be to have automake use am__CC in this case,
5685 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5686 CC="$am_aux_dir/compile $CC"
5691 if test x$GCC = xyes; then
5692 test "x$GCC_TEST_OPTIONS" != x && CC="$CC $GCC_TEST_OPTIONS"
5693 else
5694 test "x$NON_GCC_TEST_OPTIONS" != x && CC="$CC $NON_GCC_TEST_OPTIONS"
5697 # Initialize gnulib right after choosing the compiler.
5699 ac_ext=c
5700 ac_cpp='$CPP $CPPFLAGS'
5701 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5702 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5703 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5705 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5706 # On Suns, sometimes $CPP names a directory.
5707 if test -n "$CPP" && test -d "$CPP"; then
5708 CPP=
5710 if test -z "$CPP"; then
5711 if test "${ac_cv_prog_CPP+set}" = set; then :
5712 $as_echo_n "(cached) " >&6
5713 else
5714 # Double quotes because CPP needs to be expanded
5715 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5717 ac_preproc_ok=false
5718 for ac_c_preproc_warn_flag in '' yes
5720 # Use a header file that comes with gcc, so configuring glibc
5721 # with a fresh cross-compiler works.
5722 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5723 # <limits.h> exists even on freestanding compilers.
5724 # On the NeXT, cc -E runs the code through the compiler's parser,
5725 # not just through cpp. "Syntax error" is here to catch this case.
5726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5727 /* end confdefs.h. */
5728 #ifdef __STDC__
5729 # include <limits.h>
5730 #else
5731 # include <assert.h>
5732 #endif
5733 Syntax error
5734 _ACEOF
5735 if ac_fn_c_try_cpp "$LINENO"; then :
5737 else
5738 # Broken: fails on valid input.
5739 continue
5741 rm -f conftest.err conftest.$ac_ext
5743 # OK, works on sane cases. Now check whether nonexistent headers
5744 # can be detected and how.
5745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5746 /* end confdefs.h. */
5747 #include <ac_nonexistent.h>
5748 _ACEOF
5749 if ac_fn_c_try_cpp "$LINENO"; then :
5750 # Broken: success on invalid input.
5751 continue
5752 else
5753 # Passes both tests.
5754 ac_preproc_ok=:
5755 break
5757 rm -f conftest.err conftest.$ac_ext
5759 done
5760 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5761 rm -f conftest.err conftest.$ac_ext
5762 if $ac_preproc_ok; then :
5763 break
5766 done
5767 ac_cv_prog_CPP=$CPP
5770 CPP=$ac_cv_prog_CPP
5771 else
5772 ac_cv_prog_CPP=$CPP
5774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5775 $as_echo "$CPP" >&6; }
5776 ac_preproc_ok=false
5777 for ac_c_preproc_warn_flag in '' yes
5779 # Use a header file that comes with gcc, so configuring glibc
5780 # with a fresh cross-compiler works.
5781 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5782 # <limits.h> exists even on freestanding compilers.
5783 # On the NeXT, cc -E runs the code through the compiler's parser,
5784 # not just through cpp. "Syntax error" is here to catch this case.
5785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5786 /* end confdefs.h. */
5787 #ifdef __STDC__
5788 # include <limits.h>
5789 #else
5790 # include <assert.h>
5791 #endif
5792 Syntax error
5793 _ACEOF
5794 if ac_fn_c_try_cpp "$LINENO"; then :
5796 else
5797 # Broken: fails on valid input.
5798 continue
5800 rm -f conftest.err conftest.$ac_ext
5802 # OK, works on sane cases. Now check whether nonexistent headers
5803 # can be detected and how.
5804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5805 /* end confdefs.h. */
5806 #include <ac_nonexistent.h>
5807 _ACEOF
5808 if ac_fn_c_try_cpp "$LINENO"; then :
5809 # Broken: success on invalid input.
5810 continue
5811 else
5812 # Passes both tests.
5813 ac_preproc_ok=:
5814 break
5816 rm -f conftest.err conftest.$ac_ext
5818 done
5819 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5820 rm -f conftest.err conftest.$ac_ext
5821 if $ac_preproc_ok; then :
5823 else
5824 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5825 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5826 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5827 See \`config.log' for more details." "$LINENO" 5; }
5830 ac_ext=c
5831 ac_cpp='$CPP $CPPFLAGS'
5832 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5833 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5834 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5838 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5839 if test "${ac_cv_path_GREP+set}" = set; then :
5840 $as_echo_n "(cached) " >&6
5841 else
5842 if test -z "$GREP"; then
5843 ac_path_GREP_found=false
5844 # Loop through the user's path and test for each of PROGNAME-LIST
5845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5846 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5848 IFS=$as_save_IFS
5849 test -z "$as_dir" && as_dir=.
5850 for ac_prog in grep ggrep; do
5851 for ac_exec_ext in '' $ac_executable_extensions; do
5852 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5853 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5854 # Check for GNU ac_path_GREP and select it if it is found.
5855 # Check for GNU $ac_path_GREP
5856 case `"$ac_path_GREP" --version 2>&1` in
5857 *GNU*)
5858 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5860 ac_count=0
5861 $as_echo_n 0123456789 >"conftest.in"
5862 while :
5864 cat "conftest.in" "conftest.in" >"conftest.tmp"
5865 mv "conftest.tmp" "conftest.in"
5866 cp "conftest.in" "conftest.nl"
5867 $as_echo 'GREP' >> "conftest.nl"
5868 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5869 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5870 as_fn_arith $ac_count + 1 && ac_count=$as_val
5871 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5872 # Best one so far, save it but keep looking for a better one
5873 ac_cv_path_GREP="$ac_path_GREP"
5874 ac_path_GREP_max=$ac_count
5876 # 10*(2^10) chars as input seems more than enough
5877 test $ac_count -gt 10 && break
5878 done
5879 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5880 esac
5882 $ac_path_GREP_found && break 3
5883 done
5884 done
5885 done
5886 IFS=$as_save_IFS
5887 if test -z "$ac_cv_path_GREP"; then
5888 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5890 else
5891 ac_cv_path_GREP=$GREP
5895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5896 $as_echo "$ac_cv_path_GREP" >&6; }
5897 GREP="$ac_cv_path_GREP"
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5901 $as_echo_n "checking for egrep... " >&6; }
5902 if test "${ac_cv_path_EGREP+set}" = set; then :
5903 $as_echo_n "(cached) " >&6
5904 else
5905 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5906 then ac_cv_path_EGREP="$GREP -E"
5907 else
5908 if test -z "$EGREP"; then
5909 ac_path_EGREP_found=false
5910 # Loop through the user's path and test for each of PROGNAME-LIST
5911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5912 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5914 IFS=$as_save_IFS
5915 test -z "$as_dir" && as_dir=.
5916 for ac_prog in egrep; do
5917 for ac_exec_ext in '' $ac_executable_extensions; do
5918 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5919 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5920 # Check for GNU ac_path_EGREP and select it if it is found.
5921 # Check for GNU $ac_path_EGREP
5922 case `"$ac_path_EGREP" --version 2>&1` in
5923 *GNU*)
5924 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5926 ac_count=0
5927 $as_echo_n 0123456789 >"conftest.in"
5928 while :
5930 cat "conftest.in" "conftest.in" >"conftest.tmp"
5931 mv "conftest.tmp" "conftest.in"
5932 cp "conftest.in" "conftest.nl"
5933 $as_echo 'EGREP' >> "conftest.nl"
5934 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5935 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5936 as_fn_arith $ac_count + 1 && ac_count=$as_val
5937 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5938 # Best one so far, save it but keep looking for a better one
5939 ac_cv_path_EGREP="$ac_path_EGREP"
5940 ac_path_EGREP_max=$ac_count
5942 # 10*(2^10) chars as input seems more than enough
5943 test $ac_count -gt 10 && break
5944 done
5945 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5946 esac
5948 $ac_path_EGREP_found && break 3
5949 done
5950 done
5951 done
5952 IFS=$as_save_IFS
5953 if test -z "$ac_cv_path_EGREP"; then
5954 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5956 else
5957 ac_cv_path_EGREP=$EGREP
5962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5963 $as_echo "$ac_cv_path_EGREP" >&6; }
5964 EGREP="$ac_cv_path_EGREP"
5969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
5970 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
5971 if test "${gl_cv_c_amsterdam_compiler+set}" = set; then :
5972 $as_echo_n "(cached) " >&6
5973 else
5975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5976 /* end confdefs.h. */
5978 #ifdef __ACK__
5979 Amsterdam
5980 #endif
5982 _ACEOF
5983 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5984 $EGREP "Amsterdam" >/dev/null 2>&1; then :
5985 gl_cv_c_amsterdam_compiler=yes
5986 else
5987 gl_cv_c_amsterdam_compiler=no
5989 rm -f conftest*
5993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
5994 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
5995 if test -z "$AR"; then
5996 if test $gl_cv_c_amsterdam_compiler = yes; then
5997 AR='cc -c.a'
5998 if test -z "$ARFLAGS"; then
5999 ARFLAGS='-o'
6001 else
6002 if test -n "$ac_tool_prefix"; then
6003 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6004 set dummy ${ac_tool_prefix}ar; ac_word=$2
6005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6006 $as_echo_n "checking for $ac_word... " >&6; }
6007 if test "${ac_cv_prog_AR+set}" = set; then :
6008 $as_echo_n "(cached) " >&6
6009 else
6010 if test -n "$AR"; then
6011 ac_cv_prog_AR="$AR" # Let the user override the test.
6012 else
6013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6014 for as_dir in $PATH
6016 IFS=$as_save_IFS
6017 test -z "$as_dir" && as_dir=.
6018 for ac_exec_ext in '' $ac_executable_extensions; do
6019 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6020 ac_cv_prog_AR="${ac_tool_prefix}ar"
6021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6022 break 2
6024 done
6025 done
6026 IFS=$as_save_IFS
6030 AR=$ac_cv_prog_AR
6031 if test -n "$AR"; then
6032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6033 $as_echo "$AR" >&6; }
6034 else
6035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6036 $as_echo "no" >&6; }
6041 if test -z "$ac_cv_prog_AR"; then
6042 ac_ct_AR=$AR
6043 # Extract the first word of "ar", so it can be a program name with args.
6044 set dummy ar; ac_word=$2
6045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6046 $as_echo_n "checking for $ac_word... " >&6; }
6047 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6048 $as_echo_n "(cached) " >&6
6049 else
6050 if test -n "$ac_ct_AR"; then
6051 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6052 else
6053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6054 for as_dir in $PATH
6056 IFS=$as_save_IFS
6057 test -z "$as_dir" && as_dir=.
6058 for ac_exec_ext in '' $ac_executable_extensions; do
6059 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6060 ac_cv_prog_ac_ct_AR="ar"
6061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6062 break 2
6064 done
6065 done
6066 IFS=$as_save_IFS
6070 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6071 if test -n "$ac_ct_AR"; then
6072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6073 $as_echo "$ac_ct_AR" >&6; }
6074 else
6075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6076 $as_echo "no" >&6; }
6079 if test "x$ac_ct_AR" = x; then
6080 AR="ar"
6081 else
6082 case $cross_compiling:$ac_tool_warned in
6083 yes:)
6084 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6085 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6086 ac_tool_warned=yes ;;
6087 esac
6088 AR=$ac_ct_AR
6090 else
6091 AR="$ac_cv_prog_AR"
6094 if test -z "$ARFLAGS"; then
6095 ARFLAGS='cru'
6098 else
6099 if test -z "$ARFLAGS"; then
6100 ARFLAGS='cru'
6105 if test -z "$RANLIB"; then
6106 if test $gl_cv_c_amsterdam_compiler = yes; then
6107 RANLIB=':'
6108 else
6109 if test -n "$ac_tool_prefix"; then
6110 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6111 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6113 $as_echo_n "checking for $ac_word... " >&6; }
6114 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6115 $as_echo_n "(cached) " >&6
6116 else
6117 if test -n "$RANLIB"; then
6118 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6119 else
6120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6121 for as_dir in $PATH
6123 IFS=$as_save_IFS
6124 test -z "$as_dir" && as_dir=.
6125 for ac_exec_ext in '' $ac_executable_extensions; do
6126 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6127 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6129 break 2
6131 done
6132 done
6133 IFS=$as_save_IFS
6137 RANLIB=$ac_cv_prog_RANLIB
6138 if test -n "$RANLIB"; then
6139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6140 $as_echo "$RANLIB" >&6; }
6141 else
6142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6143 $as_echo "no" >&6; }
6148 if test -z "$ac_cv_prog_RANLIB"; then
6149 ac_ct_RANLIB=$RANLIB
6150 # Extract the first word of "ranlib", so it can be a program name with args.
6151 set dummy ranlib; ac_word=$2
6152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6153 $as_echo_n "checking for $ac_word... " >&6; }
6154 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6155 $as_echo_n "(cached) " >&6
6156 else
6157 if test -n "$ac_ct_RANLIB"; then
6158 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6159 else
6160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6161 for as_dir in $PATH
6163 IFS=$as_save_IFS
6164 test -z "$as_dir" && as_dir=.
6165 for ac_exec_ext in '' $ac_executable_extensions; do
6166 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6167 ac_cv_prog_ac_ct_RANLIB="ranlib"
6168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6169 break 2
6171 done
6172 done
6173 IFS=$as_save_IFS
6177 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6178 if test -n "$ac_ct_RANLIB"; then
6179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6180 $as_echo "$ac_ct_RANLIB" >&6; }
6181 else
6182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6183 $as_echo "no" >&6; }
6186 if test "x$ac_ct_RANLIB" = x; then
6187 RANLIB=":"
6188 else
6189 case $cross_compiling:$ac_tool_warned in
6190 yes:)
6191 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6192 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6193 ac_tool_warned=yes ;;
6194 esac
6195 RANLIB=$ac_ct_RANLIB
6197 else
6198 RANLIB="$ac_cv_prog_RANLIB"
6205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6206 $as_echo_n "checking for ANSI C header files... " >&6; }
6207 if test "${ac_cv_header_stdc+set}" = set; then :
6208 $as_echo_n "(cached) " >&6
6209 else
6210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6211 /* end confdefs.h. */
6212 #include <stdlib.h>
6213 #include <stdarg.h>
6214 #include <string.h>
6215 #include <float.h>
6218 main ()
6222 return 0;
6224 _ACEOF
6225 if ac_fn_c_try_compile "$LINENO"; then :
6226 ac_cv_header_stdc=yes
6227 else
6228 ac_cv_header_stdc=no
6230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6232 if test $ac_cv_header_stdc = yes; then
6233 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6235 /* end confdefs.h. */
6236 #include <string.h>
6238 _ACEOF
6239 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6240 $EGREP "memchr" >/dev/null 2>&1; then :
6242 else
6243 ac_cv_header_stdc=no
6245 rm -f conftest*
6249 if test $ac_cv_header_stdc = yes; then
6250 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6252 /* end confdefs.h. */
6253 #include <stdlib.h>
6255 _ACEOF
6256 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6257 $EGREP "free" >/dev/null 2>&1; then :
6259 else
6260 ac_cv_header_stdc=no
6262 rm -f conftest*
6266 if test $ac_cv_header_stdc = yes; then
6267 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6268 if test "$cross_compiling" = yes; then :
6270 else
6271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6272 /* end confdefs.h. */
6273 #include <ctype.h>
6274 #include <stdlib.h>
6275 #if ((' ' & 0x0FF) == 0x020)
6276 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6277 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6278 #else
6279 # define ISLOWER(c) \
6280 (('a' <= (c) && (c) <= 'i') \
6281 || ('j' <= (c) && (c) <= 'r') \
6282 || ('s' <= (c) && (c) <= 'z'))
6283 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6284 #endif
6286 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6288 main ()
6290 int i;
6291 for (i = 0; i < 256; i++)
6292 if (XOR (islower (i), ISLOWER (i))
6293 || toupper (i) != TOUPPER (i))
6294 return 2;
6295 return 0;
6297 _ACEOF
6298 if ac_fn_c_try_run "$LINENO"; then :
6300 else
6301 ac_cv_header_stdc=no
6303 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6304 conftest.$ac_objext conftest.beam conftest.$ac_ext
6309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6310 $as_echo "$ac_cv_header_stdc" >&6; }
6311 if test $ac_cv_header_stdc = yes; then
6313 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6317 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6318 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6319 inttypes.h stdint.h unistd.h
6320 do :
6321 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6322 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6324 eval as_val=\$$as_ac_Header
6325 if test "x$as_val" = x""yes; then :
6326 cat >>confdefs.h <<_ACEOF
6327 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6328 _ACEOF
6332 done
6338 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6339 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
6340 MINIX=yes
6341 else
6342 MINIX=
6346 if test "$MINIX" = yes; then
6348 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6351 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6354 $as_echo "#define _MINIX 1" >>confdefs.h
6358 case "$host_os" in
6359 hpux*)
6361 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
6364 esac
6367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6368 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6369 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
6370 $as_echo_n "(cached) " >&6
6371 else
6372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6373 /* end confdefs.h. */
6375 # define __EXTENSIONS__ 1
6376 $ac_includes_default
6378 main ()
6382 return 0;
6384 _ACEOF
6385 if ac_fn_c_try_compile "$LINENO"; then :
6386 ac_cv_safe_to_define___extensions__=yes
6387 else
6388 ac_cv_safe_to_define___extensions__=no
6390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6393 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6394 test $ac_cv_safe_to_define___extensions__ = yes &&
6395 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6397 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6399 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
6401 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6403 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6405 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6414 # Check whether --enable-largefile was given.
6415 if test "${enable_largefile+set}" = set; then :
6416 enableval=$enable_largefile;
6419 if test "$enable_largefile" != no; then
6421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6422 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6423 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
6424 $as_echo_n "(cached) " >&6
6425 else
6426 ac_cv_sys_largefile_CC=no
6427 if test "$GCC" != yes; then
6428 ac_save_CC=$CC
6429 while :; do
6430 # IRIX 6.2 and later do not support large files by default,
6431 # so use the C compiler's -n32 option if that helps.
6432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6433 /* end confdefs.h. */
6434 #include <sys/types.h>
6435 /* Check that off_t can represent 2**63 - 1 correctly.
6436 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6437 since some C++ compilers masquerading as C compilers
6438 incorrectly reject 9223372036854775807. */
6439 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6440 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6441 && LARGE_OFF_T % 2147483647 == 1)
6442 ? 1 : -1];
6444 main ()
6448 return 0;
6450 _ACEOF
6451 if ac_fn_c_try_compile "$LINENO"; then :
6452 break
6454 rm -f core conftest.err conftest.$ac_objext
6455 CC="$CC -n32"
6456 if ac_fn_c_try_compile "$LINENO"; then :
6457 ac_cv_sys_largefile_CC=' -n32'; break
6459 rm -f core conftest.err conftest.$ac_objext
6460 break
6461 done
6462 CC=$ac_save_CC
6463 rm -f conftest.$ac_ext
6466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6467 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6468 if test "$ac_cv_sys_largefile_CC" != no; then
6469 CC=$CC$ac_cv_sys_largefile_CC
6472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6473 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6474 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
6475 $as_echo_n "(cached) " >&6
6476 else
6477 while :; do
6478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6479 /* end confdefs.h. */
6480 #include <sys/types.h>
6481 /* Check that off_t can represent 2**63 - 1 correctly.
6482 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6483 since some C++ compilers masquerading as C compilers
6484 incorrectly reject 9223372036854775807. */
6485 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6486 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6487 && LARGE_OFF_T % 2147483647 == 1)
6488 ? 1 : -1];
6490 main ()
6494 return 0;
6496 _ACEOF
6497 if ac_fn_c_try_compile "$LINENO"; then :
6498 ac_cv_sys_file_offset_bits=no; break
6500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6502 /* end confdefs.h. */
6503 #define _FILE_OFFSET_BITS 64
6504 #include <sys/types.h>
6505 /* Check that off_t can represent 2**63 - 1 correctly.
6506 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6507 since some C++ compilers masquerading as C compilers
6508 incorrectly reject 9223372036854775807. */
6509 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6510 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6511 && LARGE_OFF_T % 2147483647 == 1)
6512 ? 1 : -1];
6514 main ()
6518 return 0;
6520 _ACEOF
6521 if ac_fn_c_try_compile "$LINENO"; then :
6522 ac_cv_sys_file_offset_bits=64; break
6524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6525 ac_cv_sys_file_offset_bits=unknown
6526 break
6527 done
6529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6530 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6531 case $ac_cv_sys_file_offset_bits in #(
6532 no | unknown) ;;
6534 cat >>confdefs.h <<_ACEOF
6535 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6536 _ACEOF
6538 esac
6539 rm -rf conftest*
6540 if test $ac_cv_sys_file_offset_bits = unknown; then
6541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6542 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6543 if test "${ac_cv_sys_large_files+set}" = set; then :
6544 $as_echo_n "(cached) " >&6
6545 else
6546 while :; do
6547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6548 /* end confdefs.h. */
6549 #include <sys/types.h>
6550 /* Check that off_t can represent 2**63 - 1 correctly.
6551 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6552 since some C++ compilers masquerading as C compilers
6553 incorrectly reject 9223372036854775807. */
6554 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6555 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6556 && LARGE_OFF_T % 2147483647 == 1)
6557 ? 1 : -1];
6559 main ()
6563 return 0;
6565 _ACEOF
6566 if ac_fn_c_try_compile "$LINENO"; then :
6567 ac_cv_sys_large_files=no; break
6569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6571 /* end confdefs.h. */
6572 #define _LARGE_FILES 1
6573 #include <sys/types.h>
6574 /* Check that off_t can represent 2**63 - 1 correctly.
6575 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6576 since some C++ compilers masquerading as C compilers
6577 incorrectly reject 9223372036854775807. */
6578 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6579 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6580 && LARGE_OFF_T % 2147483647 == 1)
6581 ? 1 : -1];
6583 main ()
6587 return 0;
6589 _ACEOF
6590 if ac_fn_c_try_compile "$LINENO"; then :
6591 ac_cv_sys_large_files=1; break
6593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6594 ac_cv_sys_large_files=unknown
6595 break
6596 done
6598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6599 $as_echo "$ac_cv_sys_large_files" >&6; }
6600 case $ac_cv_sys_large_files in #(
6601 no | unknown) ;;
6603 cat >>confdefs.h <<_ACEOF
6604 #define _LARGE_FILES $ac_cv_sys_large_files
6605 _ACEOF
6607 esac
6608 rm -rf conftest*
6614 case $ac_cv_prog_cc_stdc in #(
6615 no) :
6616 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6617 *) :
6618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
6619 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
6620 if test "${ac_cv_prog_cc_c99+set}" = set; then :
6621 $as_echo_n "(cached) " >&6
6622 else
6623 ac_cv_prog_cc_c99=no
6624 ac_save_CC=$CC
6625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6626 /* end confdefs.h. */
6627 #include <stdarg.h>
6628 #include <stdbool.h>
6629 #include <stdlib.h>
6630 #include <wchar.h>
6631 #include <stdio.h>
6633 // Check varargs macros. These examples are taken from C99 6.10.3.5.
6634 #define debug(...) fprintf (stderr, __VA_ARGS__)
6635 #define showlist(...) puts (#__VA_ARGS__)
6636 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6637 static void
6638 test_varargs_macros (void)
6640 int x = 1234;
6641 int y = 5678;
6642 debug ("Flag");
6643 debug ("X = %d\n", x);
6644 showlist (The first, second, and third items.);
6645 report (x>y, "x is %d but y is %d", x, y);
6648 // Check long long types.
6649 #define BIG64 18446744073709551615ull
6650 #define BIG32 4294967295ul
6651 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6652 #if !BIG_OK
6653 your preprocessor is broken;
6654 #endif
6655 #if BIG_OK
6656 #else
6657 your preprocessor is broken;
6658 #endif
6659 static long long int bignum = -9223372036854775807LL;
6660 static unsigned long long int ubignum = BIG64;
6662 struct incomplete_array
6664 int datasize;
6665 double data[];
6668 struct named_init {
6669 int number;
6670 const wchar_t *name;
6671 double average;
6674 typedef const char *ccp;
6676 static inline int
6677 test_restrict (ccp restrict text)
6679 // See if C++-style comments work.
6680 // Iterate through items via the restricted pointer.
6681 // Also check for declarations in for loops.
6682 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6683 continue;
6684 return 0;
6687 // Check varargs and va_copy.
6688 static void
6689 test_varargs (const char *format, ...)
6691 va_list args;
6692 va_start (args, format);
6693 va_list args_copy;
6694 va_copy (args_copy, args);
6696 const char *str;
6697 int number;
6698 float fnumber;
6700 while (*format)
6702 switch (*format++)
6704 case 's': // string
6705 str = va_arg (args_copy, const char *);
6706 break;
6707 case 'd': // int
6708 number = va_arg (args_copy, int);
6709 break;
6710 case 'f': // float
6711 fnumber = va_arg (args_copy, double);
6712 break;
6713 default:
6714 break;
6717 va_end (args_copy);
6718 va_end (args);
6722 main ()
6725 // Check bool.
6726 _Bool success = false;
6728 // Check restrict.
6729 if (test_restrict ("String literal") == 0)
6730 success = true;
6731 char *restrict newvar = "Another string";
6733 // Check varargs.
6734 test_varargs ("s, d' f .", "string", 65, 34.234);
6735 test_varargs_macros ();
6737 // Check flexible array members.
6738 struct incomplete_array *ia =
6739 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6740 ia->datasize = 10;
6741 for (int i = 0; i < ia->datasize; ++i)
6742 ia->data[i] = i * 1.234;
6744 // Check named initializers.
6745 struct named_init ni = {
6746 .number = 34,
6747 .name = L"Test wide string",
6748 .average = 543.34343,
6751 ni.number = 58;
6753 int dynamic_array[ni.number];
6754 dynamic_array[ni.number - 1] = 543;
6756 // work around unused variable warnings
6757 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6758 || dynamic_array[ni.number - 1] != 543);
6761 return 0;
6763 _ACEOF
6764 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
6766 CC="$ac_save_CC $ac_arg"
6767 if ac_fn_c_try_compile "$LINENO"; then :
6768 ac_cv_prog_cc_c99=$ac_arg
6770 rm -f core conftest.err conftest.$ac_objext
6771 test "x$ac_cv_prog_cc_c99" != "xno" && break
6772 done
6773 rm -f conftest.$ac_ext
6774 CC=$ac_save_CC
6777 # AC_CACHE_VAL
6778 case "x$ac_cv_prog_cc_c99" in
6780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6781 $as_echo "none needed" >&6; } ;;
6782 xno)
6783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6784 $as_echo "unsupported" >&6; } ;;
6786 CC="$CC $ac_cv_prog_cc_c99"
6787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
6788 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6789 esac
6790 if test "x$ac_cv_prog_cc_c99" != xno; then :
6791 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
6792 else
6793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6794 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6795 if test "${ac_cv_prog_cc_c89+set}" = set; then :
6796 $as_echo_n "(cached) " >&6
6797 else
6798 ac_cv_prog_cc_c89=no
6799 ac_save_CC=$CC
6800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6801 /* end confdefs.h. */
6802 #include <stdarg.h>
6803 #include <stdio.h>
6804 #include <sys/types.h>
6805 #include <sys/stat.h>
6806 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6807 struct buf { int x; };
6808 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6809 static char *e (p, i)
6810 char **p;
6811 int i;
6813 return p[i];
6815 static char *f (char * (*g) (char **, int), char **p, ...)
6817 char *s;
6818 va_list v;
6819 va_start (v,p);
6820 s = g (p, va_arg (v,int));
6821 va_end (v);
6822 return s;
6825 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6826 function prototypes and stuff, but not '\xHH' hex character constants.
6827 These don't provoke an error unfortunately, instead are silently treated
6828 as 'x'. The following induces an error, until -std is added to get
6829 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6830 array size at least. It's necessary to write '\x00'==0 to get something
6831 that's true only with -std. */
6832 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6834 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6835 inside strings and character constants. */
6836 #define FOO(x) 'x'
6837 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6839 int test (int i, double x);
6840 struct s1 {int (*f) (int a);};
6841 struct s2 {int (*f) (double a);};
6842 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6843 int argc;
6844 char **argv;
6846 main ()
6848 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6850 return 0;
6852 _ACEOF
6853 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6854 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6856 CC="$ac_save_CC $ac_arg"
6857 if ac_fn_c_try_compile "$LINENO"; then :
6858 ac_cv_prog_cc_c89=$ac_arg
6860 rm -f core conftest.err conftest.$ac_objext
6861 test "x$ac_cv_prog_cc_c89" != "xno" && break
6862 done
6863 rm -f conftest.$ac_ext
6864 CC=$ac_save_CC
6867 # AC_CACHE_VAL
6868 case "x$ac_cv_prog_cc_c89" in
6870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6871 $as_echo "none needed" >&6; } ;;
6872 xno)
6873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6874 $as_echo "unsupported" >&6; } ;;
6876 CC="$CC $ac_cv_prog_cc_c89"
6877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6878 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6879 esac
6880 if test "x$ac_cv_prog_cc_c89" != xno; then :
6881 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
6882 else
6883 ac_cv_prog_cc_stdc=no
6888 esac
6889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
6890 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
6891 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
6892 $as_echo_n "(cached) " >&6
6895 case $ac_cv_prog_cc_stdc in #(
6896 no) :
6897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6898 $as_echo "unsupported" >&6; } ;; #(
6899 '') :
6900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6901 $as_echo "none needed" >&6; } ;; #(
6902 *) :
6903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
6904 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
6905 esac
6909 # Code from module alloca-opt:
6910 # Code from module allocator:
6911 # Code from module careadlinkat:
6912 # Code from module crypto/md5:
6913 # Code from module crypto/sha1:
6914 # Code from module crypto/sha256:
6915 # Code from module crypto/sha512:
6916 # Code from module dosname:
6917 # Code from module dtoastr:
6918 # Code from module dup2:
6919 # Code from module extensions:
6921 # Code from module filemode:
6922 # Code from module getloadavg:
6923 # Code from module getopt-gnu:
6924 # Code from module getopt-posix:
6925 # Code from module gettext-h:
6926 # Code from module ignore-value:
6927 # Code from module include_next:
6928 # Code from module intprops:
6929 # Code from module inttypes-incomplete:
6930 # Code from module largefile:
6932 # Code from module lstat:
6933 # Code from module manywarnings:
6934 # Code from module mktime:
6935 # Code from module multiarch:
6936 # Code from module nocrash:
6937 # Code from module pathmax:
6938 # Code from module pthread_sigmask:
6939 # Code from module readlink:
6940 # Code from module signal-h:
6941 # Code from module sigprocmask:
6942 # Code from module snippet/_Noreturn:
6943 # Code from module snippet/arg-nonnull:
6944 # Code from module snippet/c++defs:
6945 # Code from module snippet/warn-on-use:
6946 # Code from module socklen:
6947 # Code from module ssize_t:
6948 # Code from module stat:
6949 # Code from module stdalign:
6950 # Code from module stdarg:
6954 # Code from module stdbool:
6955 # Code from module stddef:
6956 # Code from module stdint:
6957 # Code from module stdio:
6958 # Code from module stdlib:
6959 # Code from module strftime:
6960 # Code from module strtoimax:
6961 # Code from module strtoll:
6962 # Code from module strtoull:
6963 # Code from module strtoumax:
6964 # Code from module symlink:
6965 # Code from module sys_stat:
6966 # Code from module sys_types:
6967 # Code from module time:
6968 # Code from module time_r:
6969 # Code from module u64:
6970 # Code from module unistd:
6971 # Code from module verify:
6972 # Code from module warnings:
6975 # Check whether --enable-gcc-warnings was given.
6976 if test "${enable_gcc_warnings+set}" = set; then :
6977 enableval=$enable_gcc_warnings; case $enableval in
6978 yes|no) ;;
6979 *) as_fn_error "bad value $enableval for gcc-warnings option" "$LINENO" 5 ;;
6980 esac
6981 gl_gcc_warnings=$enableval
6982 else
6983 gl_gcc_warnings=no
6988 # gl_GCC_VERSION_IFELSE([major], [minor], [run-if-found], [run-if-not-found])
6989 # ------------------------------------------------
6990 # If $CPP is gcc-MAJOR.MINOR or newer, then run RUN-IF-FOUND.
6991 # Otherwise, run RUN-IF-NOT-FOUND.
6994 # When compiling with GCC, prefer -isystem to -I when including system
6995 # include files, to avoid generating useless diagnostics for the files.
6996 if test "$gl_gcc_warnings" != yes; then
6997 isystem='-I'
6998 else
6999 isystem='-isystem '
7001 # This, $nw, is the list of warnings we disable.
7004 case $with_x_toolkit in
7005 lucid | athena | motif)
7006 # Old toolkits mishandle 'const'.
7007 nw="$nw -Wwrite-strings"
7010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Werror" >&5
7011 $as_echo_n "checking whether C compiler handles -Werror... " >&6; }
7012 if test "${gl_cv_warn_c__Werror+set}" = set; then :
7013 $as_echo_n "(cached) " >&6
7014 else
7016 gl_save_compiler_FLAGS="$CFLAGS"
7017 as_fn_append CFLAGS " -Werror"
7018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7019 /* end confdefs.h. */
7022 main ()
7026 return 0;
7028 _ACEOF
7029 if ac_fn_c_try_compile "$LINENO"; then :
7030 gl_cv_warn_c__Werror=yes
7031 else
7032 gl_cv_warn_c__Werror=no
7034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7035 CFLAGS="$gl_save_compiler_FLAGS"
7038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Werror" >&5
7039 $as_echo "$gl_cv_warn_c__Werror" >&6; }
7040 if test "x$gl_cv_warn_c__Werror" = x""yes; then :
7041 as_fn_append WERROR_CFLAGS " -Werror"
7046 esac
7049 nw="$nw -Waggregate-return" # anachronistic
7050 nw="$nw -Wlong-long" # C90 is anachronistic
7051 nw="$nw -Wc++-compat" # We don't care about C++ compilers
7052 nw="$nw -Wundef" # Warns on '#if GNULIB_FOO' etc in gnulib
7053 nw="$nw -Wtraditional" # Warns on #elif which we use often
7054 nw="$nw -Wcast-qual" # Too many warnings for now
7055 nw="$nw -Wconversion" # Too many warnings for now
7056 nw="$nw -Wsystem-headers" # Don't let system headers trigger warnings
7057 nw="$nw -Wsign-conversion" # Too many warnings for now
7058 nw="$nw -Woverlength-strings" # Not a problem these days
7059 nw="$nw -Wtraditional-conversion" # Too many warnings for now
7060 nw="$nw -Wpadded" # Our structs are not padded
7061 nw="$nw -Wredundant-decls" # We regularly (re)declare getenv etc.
7062 nw="$nw -Wlogical-op" # any use of fwrite provokes this
7063 nw="$nw -Wformat-nonliteral" # Emacs does this a lot
7064 nw="$nw -Wvla" # warnings in gettext.h
7065 nw="$nw -Wnested-externs" # use of XARGMATCH/verify_function__
7066 nw="$nw -Wswitch-enum" # Too many warnings for now
7067 nw="$nw -Wswitch-default" # Too many warnings for now
7068 nw="$nw -Wfloat-equal" # e.g., ftoastr.c
7069 nw="$nw -Winline" # e.g., dispnew.c's inlining of row_equal_p
7071 # Emacs doesn't care about shadowing; see
7072 # <http://lists.gnu.org/archive/html/emacs-diffs/2011-11/msg00265.html>.
7073 nw="$nw -Wshadow"
7075 # The following lines should be removable at some point.
7076 nw="$nw -Wstack-protector"
7077 nw="$nw -Wstrict-overflow"
7078 nw="$nw -Wsuggest-attribute=const"
7079 nw="$nw -Wsuggest-attribute=pure"
7083 if test -n "$GCC"; then
7085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is supported" >&5
7086 $as_echo_n "checking whether -Wno-missing-field-initializers is supported... " >&6; }
7087 if test "${gl_cv_cc_nomfi_supported+set}" = set; then :
7088 $as_echo_n "(cached) " >&6
7089 else
7091 gl_save_CFLAGS="$CFLAGS"
7092 CFLAGS="$CFLAGS -W -Werror -Wno-missing-field-initializers"
7093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7094 /* end confdefs.h. */
7097 main ()
7101 return 0;
7103 _ACEOF
7104 if ac_fn_c_try_compile "$LINENO"; then :
7105 gl_cv_cc_nomfi_supported=yes
7106 else
7107 gl_cv_cc_nomfi_supported=no
7109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7110 CFLAGS="$gl_save_CFLAGS"
7113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_supported" >&5
7114 $as_echo "$gl_cv_cc_nomfi_supported" >&6; }
7116 if test "$gl_cv_cc_nomfi_supported" = yes; then
7117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is needed" >&5
7118 $as_echo_n "checking whether -Wno-missing-field-initializers is needed... " >&6; }
7119 if test "${gl_cv_cc_nomfi_needed+set}" = set; then :
7120 $as_echo_n "(cached) " >&6
7121 else
7123 gl_save_CFLAGS="$CFLAGS"
7124 CFLAGS="$CFLAGS -W -Werror"
7125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7126 /* end confdefs.h. */
7127 void f (void)
7129 typedef struct { int a; int b; } s_t;
7130 s_t s1 = { 0, };
7134 main ()
7138 return 0;
7140 _ACEOF
7141 if ac_fn_c_try_compile "$LINENO"; then :
7142 gl_cv_cc_nomfi_needed=no
7143 else
7144 gl_cv_cc_nomfi_needed=yes
7146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7147 CFLAGS="$gl_save_CFLAGS"
7151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_needed" >&5
7152 $as_echo "$gl_cv_cc_nomfi_needed" >&6; }
7156 gl_manywarn_set=
7157 for gl_manywarn_item in \
7158 -Wall \
7159 -W \
7160 -Wformat-y2k \
7161 -Wformat-nonliteral \
7162 -Wformat-security \
7163 -Winit-self \
7164 -Wmissing-include-dirs \
7165 -Wswitch-default \
7166 -Wswitch-enum \
7167 -Wunused \
7168 -Wunknown-pragmas \
7169 -Wstrict-aliasing \
7170 -Wstrict-overflow \
7171 -Wsystem-headers \
7172 -Wfloat-equal \
7173 -Wtraditional \
7174 -Wtraditional-conversion \
7175 -Wdeclaration-after-statement \
7176 -Wundef \
7177 -Wshadow \
7178 -Wunsafe-loop-optimizations \
7179 -Wpointer-arith \
7180 -Wbad-function-cast \
7181 -Wc++-compat \
7182 -Wcast-qual \
7183 -Wcast-align \
7184 -Wwrite-strings \
7185 -Wconversion \
7186 -Wsign-conversion \
7187 -Wlogical-op \
7188 -Waggregate-return \
7189 -Wstrict-prototypes \
7190 -Wold-style-definition \
7191 -Wmissing-prototypes \
7192 -Wmissing-declarations \
7193 -Wmissing-noreturn \
7194 -Wmissing-format-attribute \
7195 -Wpacked \
7196 -Wpadded \
7197 -Wredundant-decls \
7198 -Wnested-externs \
7199 -Wunreachable-code \
7200 -Winline \
7201 -Winvalid-pch \
7202 -Wlong-long \
7203 -Wvla \
7204 -Wvolatile-register-var \
7205 -Wdisabled-optimization \
7206 -Wstack-protector \
7207 -Woverlength-strings \
7208 -Wbuiltin-macro-redefined \
7209 -Wmudflap \
7210 -Wpacked-bitfield-compat \
7211 -Wsync-nand \
7212 ; do
7213 gl_manywarn_set="$gl_manywarn_set $gl_manywarn_item"
7214 done
7215 # The following are not documented in the manual but are included in
7216 # output from gcc --help=warnings.
7217 for gl_manywarn_item in \
7218 -Wattributes \
7219 -Wcoverage-mismatch \
7220 -Wunused-macros \
7221 ; do
7222 gl_manywarn_set="$gl_manywarn_set $gl_manywarn_item"
7223 done
7224 # More warnings from gcc 4.6.2 --help=warnings.
7225 for gl_manywarn_item in \
7226 -Wabi \
7227 -Wcpp \
7228 -Wdeprecated \
7229 -Wdeprecated-declarations \
7230 -Wdiv-by-zero \
7231 -Wdouble-promotion \
7232 -Wendif-labels \
7233 -Wextra \
7234 -Wformat-contains-nul \
7235 -Wformat-extra-args \
7236 -Wformat-zero-length \
7237 -Wformat=2 \
7238 -Wmultichar \
7239 -Wnormalized=nfc \
7240 -Woverflow \
7241 -Wpointer-to-int-cast \
7242 -Wpragmas \
7243 -Wsuggest-attribute=const \
7244 -Wsuggest-attribute=noreturn \
7245 -Wsuggest-attribute=pure \
7246 -Wtrampolines \
7247 ; do
7248 gl_manywarn_set="$gl_manywarn_set $gl_manywarn_item"
7249 done
7251 # Disable the missing-field-initializers warning if needed
7252 if test "$gl_cv_cc_nomfi_needed" = yes; then
7253 gl_manywarn_set="$gl_manywarn_set -Wno-missing-field-initializers"
7256 ws=$gl_manywarn_set
7259 gl_warn_set=
7260 set x $ws; shift
7261 for gl_warn_item
7263 case " $nw " in
7264 *" $gl_warn_item "*)
7267 gl_warn_set="$gl_warn_set $gl_warn_item"
7269 esac
7270 done
7271 ws=$gl_warn_set
7273 for w in $ws; do
7274 as_gl_Warn=`$as_echo "gl_cv_warn_c_$w" | $as_tr_sh`
7275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles $w" >&5
7276 $as_echo_n "checking whether C compiler handles $w... " >&6; }
7277 if { as_var=$as_gl_Warn; eval "test \"\${$as_var+set}\" = set"; }; then :
7278 $as_echo_n "(cached) " >&6
7279 else
7281 gl_save_compiler_FLAGS="$CFLAGS"
7282 as_fn_append CFLAGS " $w"
7283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7284 /* end confdefs.h. */
7287 main ()
7291 return 0;
7293 _ACEOF
7294 if ac_fn_c_try_compile "$LINENO"; then :
7295 eval "$as_gl_Warn=yes"
7296 else
7297 eval "$as_gl_Warn=no"
7299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7300 CFLAGS="$gl_save_compiler_FLAGS"
7303 eval ac_res=\$$as_gl_Warn
7304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7305 $as_echo "$ac_res" >&6; }
7306 eval as_val=\$$as_gl_Warn
7307 if test "x$as_val" = x""yes; then :
7308 as_fn_append WARN_CFLAGS " $w"
7312 done
7313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-missing-field-initializers" >&5
7314 $as_echo_n "checking whether C compiler handles -Wno-missing-field-initializers... " >&6; }
7315 if test "${gl_cv_warn_c__Wno_missing_field_initializers+set}" = set; then :
7316 $as_echo_n "(cached) " >&6
7317 else
7319 gl_save_compiler_FLAGS="$CFLAGS"
7320 as_fn_append CFLAGS " -Wno-missing-field-initializers"
7321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7322 /* end confdefs.h. */
7325 main ()
7329 return 0;
7331 _ACEOF
7332 if ac_fn_c_try_compile "$LINENO"; then :
7333 gl_cv_warn_c__Wno_missing_field_initializers=yes
7334 else
7335 gl_cv_warn_c__Wno_missing_field_initializers=no
7337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7338 CFLAGS="$gl_save_compiler_FLAGS"
7341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_missing_field_initializers" >&5
7342 $as_echo "$gl_cv_warn_c__Wno_missing_field_initializers" >&6; }
7343 if test "x$gl_cv_warn_c__Wno_missing_field_initializers" = x""yes; then :
7344 as_fn_append WARN_CFLAGS " -Wno-missing-field-initializers"
7347 # We need this one
7348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-sign-compare" >&5
7349 $as_echo_n "checking whether C compiler handles -Wno-sign-compare... " >&6; }
7350 if test "${gl_cv_warn_c__Wno_sign_compare+set}" = set; then :
7351 $as_echo_n "(cached) " >&6
7352 else
7354 gl_save_compiler_FLAGS="$CFLAGS"
7355 as_fn_append CFLAGS " -Wno-sign-compare"
7356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357 /* end confdefs.h. */
7360 main ()
7364 return 0;
7366 _ACEOF
7367 if ac_fn_c_try_compile "$LINENO"; then :
7368 gl_cv_warn_c__Wno_sign_compare=yes
7369 else
7370 gl_cv_warn_c__Wno_sign_compare=no
7372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7373 CFLAGS="$gl_save_compiler_FLAGS"
7376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_sign_compare" >&5
7377 $as_echo "$gl_cv_warn_c__Wno_sign_compare" >&6; }
7378 if test "x$gl_cv_warn_c__Wno_sign_compare" = x""yes; then :
7379 as_fn_append WARN_CFLAGS " -Wno-sign-compare"
7382 # Too many warnings for now
7383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-type-limits" >&5
7384 $as_echo_n "checking whether C compiler handles -Wno-type-limits... " >&6; }
7385 if test "${gl_cv_warn_c__Wno_type_limits+set}" = set; then :
7386 $as_echo_n "(cached) " >&6
7387 else
7389 gl_save_compiler_FLAGS="$CFLAGS"
7390 as_fn_append CFLAGS " -Wno-type-limits"
7391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7392 /* end confdefs.h. */
7395 main ()
7399 return 0;
7401 _ACEOF
7402 if ac_fn_c_try_compile "$LINENO"; then :
7403 gl_cv_warn_c__Wno_type_limits=yes
7404 else
7405 gl_cv_warn_c__Wno_type_limits=no
7407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7408 CFLAGS="$gl_save_compiler_FLAGS"
7411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_type_limits" >&5
7412 $as_echo "$gl_cv_warn_c__Wno_type_limits" >&6; }
7413 if test "x$gl_cv_warn_c__Wno_type_limits" = x""yes; then :
7414 as_fn_append WARN_CFLAGS " -Wno-type-limits"
7417 # Too many warnings for now
7418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-switch" >&5
7419 $as_echo_n "checking whether C compiler handles -Wno-switch... " >&6; }
7420 if test "${gl_cv_warn_c__Wno_switch+set}" = set; then :
7421 $as_echo_n "(cached) " >&6
7422 else
7424 gl_save_compiler_FLAGS="$CFLAGS"
7425 as_fn_append CFLAGS " -Wno-switch"
7426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7427 /* end confdefs.h. */
7430 main ()
7434 return 0;
7436 _ACEOF
7437 if ac_fn_c_try_compile "$LINENO"; then :
7438 gl_cv_warn_c__Wno_switch=yes
7439 else
7440 gl_cv_warn_c__Wno_switch=no
7442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7443 CFLAGS="$gl_save_compiler_FLAGS"
7446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_switch" >&5
7447 $as_echo "$gl_cv_warn_c__Wno_switch" >&6; }
7448 if test "x$gl_cv_warn_c__Wno_switch" = x""yes; then :
7449 as_fn_append WARN_CFLAGS " -Wno-switch"
7452 # Too many warnings for now
7453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-unused-parameter" >&5
7454 $as_echo_n "checking whether C compiler handles -Wno-unused-parameter... " >&6; }
7455 if test "${gl_cv_warn_c__Wno_unused_parameter+set}" = set; then :
7456 $as_echo_n "(cached) " >&6
7457 else
7459 gl_save_compiler_FLAGS="$CFLAGS"
7460 as_fn_append CFLAGS " -Wno-unused-parameter"
7461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7462 /* end confdefs.h. */
7465 main ()
7469 return 0;
7471 _ACEOF
7472 if ac_fn_c_try_compile "$LINENO"; then :
7473 gl_cv_warn_c__Wno_unused_parameter=yes
7474 else
7475 gl_cv_warn_c__Wno_unused_parameter=no
7477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7478 CFLAGS="$gl_save_compiler_FLAGS"
7481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_unused_parameter" >&5
7482 $as_echo "$gl_cv_warn_c__Wno_unused_parameter" >&6; }
7483 if test "x$gl_cv_warn_c__Wno_unused_parameter" = x""yes; then :
7484 as_fn_append WARN_CFLAGS " -Wno-unused-parameter"
7487 # Too many warnings for now
7488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-format-nonliteral" >&5
7489 $as_echo_n "checking whether C compiler handles -Wno-format-nonliteral... " >&6; }
7490 if test "${gl_cv_warn_c__Wno_format_nonliteral+set}" = set; then :
7491 $as_echo_n "(cached) " >&6
7492 else
7494 gl_save_compiler_FLAGS="$CFLAGS"
7495 as_fn_append CFLAGS " -Wno-format-nonliteral"
7496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7497 /* end confdefs.h. */
7500 main ()
7504 return 0;
7506 _ACEOF
7507 if ac_fn_c_try_compile "$LINENO"; then :
7508 gl_cv_warn_c__Wno_format_nonliteral=yes
7509 else
7510 gl_cv_warn_c__Wno_format_nonliteral=no
7512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7513 CFLAGS="$gl_save_compiler_FLAGS"
7516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_format_nonliteral" >&5
7517 $as_echo "$gl_cv_warn_c__Wno_format_nonliteral" >&6; }
7518 if test "x$gl_cv_warn_c__Wno_format_nonliteral" = x""yes; then :
7519 as_fn_append WARN_CFLAGS " -Wno-format-nonliteral"
7524 # In spite of excluding -Wlogical-op above, it is enabled, as of
7525 # gcc 4.5.0 20090517.
7526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-logical-op" >&5
7527 $as_echo_n "checking whether C compiler handles -Wno-logical-op... " >&6; }
7528 if test "${gl_cv_warn_c__Wno_logical_op+set}" = set; then :
7529 $as_echo_n "(cached) " >&6
7530 else
7532 gl_save_compiler_FLAGS="$CFLAGS"
7533 as_fn_append CFLAGS " -Wno-logical-op"
7534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7535 /* end confdefs.h. */
7538 main ()
7542 return 0;
7544 _ACEOF
7545 if ac_fn_c_try_compile "$LINENO"; then :
7546 gl_cv_warn_c__Wno_logical_op=yes
7547 else
7548 gl_cv_warn_c__Wno_logical_op=no
7550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7551 CFLAGS="$gl_save_compiler_FLAGS"
7554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_logical_op" >&5
7555 $as_echo "$gl_cv_warn_c__Wno_logical_op" >&6; }
7556 if test "x$gl_cv_warn_c__Wno_logical_op" = x""yes; then :
7557 as_fn_append WARN_CFLAGS " -Wno-logical-op"
7562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -fdiagnostics-show-option" >&5
7563 $as_echo_n "checking whether C compiler handles -fdiagnostics-show-option... " >&6; }
7564 if test "${gl_cv_warn_c__fdiagnostics_show_option+set}" = set; then :
7565 $as_echo_n "(cached) " >&6
7566 else
7568 gl_save_compiler_FLAGS="$CFLAGS"
7569 as_fn_append CFLAGS " -fdiagnostics-show-option"
7570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7571 /* end confdefs.h. */
7574 main ()
7578 return 0;
7580 _ACEOF
7581 if ac_fn_c_try_compile "$LINENO"; then :
7582 gl_cv_warn_c__fdiagnostics_show_option=yes
7583 else
7584 gl_cv_warn_c__fdiagnostics_show_option=no
7586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7587 CFLAGS="$gl_save_compiler_FLAGS"
7590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__fdiagnostics_show_option" >&5
7591 $as_echo "$gl_cv_warn_c__fdiagnostics_show_option" >&6; }
7592 if test "x$gl_cv_warn_c__fdiagnostics_show_option" = x""yes; then :
7593 as_fn_append WARN_CFLAGS " -fdiagnostics-show-option"
7597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -funit-at-a-time" >&5
7598 $as_echo_n "checking whether C compiler handles -funit-at-a-time... " >&6; }
7599 if test "${gl_cv_warn_c__funit_at_a_time+set}" = set; then :
7600 $as_echo_n "(cached) " >&6
7601 else
7603 gl_save_compiler_FLAGS="$CFLAGS"
7604 as_fn_append CFLAGS " -funit-at-a-time"
7605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7606 /* end confdefs.h. */
7609 main ()
7613 return 0;
7615 _ACEOF
7616 if ac_fn_c_try_compile "$LINENO"; then :
7617 gl_cv_warn_c__funit_at_a_time=yes
7618 else
7619 gl_cv_warn_c__funit_at_a_time=no
7621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7622 CFLAGS="$gl_save_compiler_FLAGS"
7625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__funit_at_a_time" >&5
7626 $as_echo "$gl_cv_warn_c__funit_at_a_time" >&6; }
7627 if test "x$gl_cv_warn_c__funit_at_a_time" = x""yes; then :
7628 as_fn_append WARN_CFLAGS " -funit-at-a-time"
7634 $as_echo "#define lint 1" >>confdefs.h
7637 $as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
7640 $as_echo "#define GNULIB_PORTCHECK 1" >>confdefs.h
7643 # We use a slightly smaller set of warning options for lib/.
7644 # Remove the following and save the result in GNULIB_WARN_CFLAGS.
7646 nw="$nw -Wunused-macros"
7649 gl_warn_set=
7650 set x $WARN_CFLAGS; shift
7651 for gl_warn_item
7653 case " $nw " in
7654 *" $gl_warn_item "*)
7657 gl_warn_set="$gl_warn_set $gl_warn_item"
7659 esac
7660 done
7661 GNULIB_WARN_CFLAGS=$gl_warn_set
7669 # Extract the first word of "install-info", so it can be a program name with args.
7670 set dummy install-info; ac_word=$2
7671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7672 $as_echo_n "checking for $ac_word... " >&6; }
7673 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
7674 $as_echo_n "(cached) " >&6
7675 else
7676 case $INSTALL_INFO in
7677 [\\/]* | ?:[\\/]*)
7678 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
7681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7682 for as_dir in $PATH$PATH_SEPARATOR/usr/sbin$PATH_SEPARATOR/sbin
7684 IFS=$as_save_IFS
7685 test -z "$as_dir" && as_dir=.
7686 for ac_exec_ext in '' $ac_executable_extensions; do
7687 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7688 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
7689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7690 break 2
7692 done
7693 done
7694 IFS=$as_save_IFS
7696 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
7698 esac
7700 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
7701 if test -n "$INSTALL_INFO"; then
7702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
7703 $as_echo "$INSTALL_INFO" >&6; }
7704 else
7705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7706 $as_echo "no" >&6; }
7710 # Extract the first word of "gzip", so it can be a program name with args.
7711 set dummy gzip; ac_word=$2
7712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7713 $as_echo_n "checking for $ac_word... " >&6; }
7714 if test "${ac_cv_path_GZIP_PROG+set}" = set; then :
7715 $as_echo_n "(cached) " >&6
7716 else
7717 case $GZIP_PROG in
7718 [\\/]* | ?:[\\/]*)
7719 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
7722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7723 for as_dir in $PATH
7725 IFS=$as_save_IFS
7726 test -z "$as_dir" && as_dir=.
7727 for ac_exec_ext in '' $ac_executable_extensions; do
7728 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7729 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
7730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7731 break 2
7733 done
7734 done
7735 IFS=$as_save_IFS
7738 esac
7740 GZIP_PROG=$ac_cv_path_GZIP_PROG
7741 if test -n "$GZIP_PROG"; then
7742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
7743 $as_echo "$GZIP_PROG" >&6; }
7744 else
7745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7746 $as_echo "no" >&6; }
7750 # Extract the first word of "paxctl", so it can be a program name with args.
7751 set dummy paxctl; ac_word=$2
7752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7753 $as_echo_n "checking for $ac_word... " >&6; }
7754 if test "${ac_cv_path_PAXCTL+set}" = set; then :
7755 $as_echo_n "(cached) " >&6
7756 else
7757 case $PAXCTL in
7758 [\\/]* | ?:[\\/]*)
7759 ac_cv_path_PAXCTL="$PAXCTL" # Let the user override the test with a path.
7762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7763 for as_dir in $PATH$PATH_SEPARATOR/sbin$PATH_SEPARATOR/usr/sbin
7765 IFS=$as_save_IFS
7766 test -z "$as_dir" && as_dir=.
7767 for ac_exec_ext in '' $ac_executable_extensions; do
7768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7769 ac_cv_path_PAXCTL="$as_dir/$ac_word$ac_exec_ext"
7770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7771 break 2
7773 done
7774 done
7775 IFS=$as_save_IFS
7778 esac
7780 PAXCTL=$ac_cv_path_PAXCTL
7781 if test -n "$PAXCTL"; then
7782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PAXCTL" >&5
7783 $as_echo "$PAXCTL" >&6; }
7784 else
7785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7786 $as_echo "no" >&6; }
7792 ## Need makeinfo >= 4.7 (?) to build the manuals.
7793 # Extract the first word of "makeinfo", so it can be a program name with args.
7794 set dummy makeinfo; ac_word=$2
7795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7796 $as_echo_n "checking for $ac_word... " >&6; }
7797 if test "${ac_cv_path_MAKEINFO+set}" = set; then :
7798 $as_echo_n "(cached) " >&6
7799 else
7800 case $MAKEINFO in
7801 [\\/]* | ?:[\\/]*)
7802 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
7805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7806 for as_dir in $PATH
7808 IFS=$as_save_IFS
7809 test -z "$as_dir" && as_dir=.
7810 for ac_exec_ext in '' $ac_executable_extensions; do
7811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7812 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
7813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7814 break 2
7816 done
7817 done
7818 IFS=$as_save_IFS
7820 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
7822 esac
7824 MAKEINFO=$ac_cv_path_MAKEINFO
7825 if test -n "$MAKEINFO"; then
7826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7827 $as_echo "$MAKEINFO" >&6; }
7828 else
7829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7830 $as_echo "no" >&6; }
7834 if test "$MAKEINFO" != "no" && \
7835 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
7836 MAKEINFO=no
7839 ## Makeinfo is unusual. For a released Emacs, the manuals are
7840 ## pre-built, and not deleted by the normal clean rules. makeinfo is
7841 ## therefore in the category of "special tools" not normally required, which
7842 ## configure does not have to check for (eg autoconf itself).
7843 ## In a Bazaar checkout on the other hand, the manuals are not included.
7844 ## So makeinfo is a requirement to build from Bazaar, and configure
7845 ## should test for it as it does for any other build requirement.
7846 ## We use the presence of $srcdir/info/emacs to distinguish a release,
7847 ## with pre-built manuals, from a Bazaar checkout.
7848 HAVE_MAKEINFO=yes
7850 if test "$MAKEINFO" = "no"; then
7851 MAKEINFO=makeinfo
7852 if test "x${with_makeinfo}" = "xno"; then
7853 HAVE_MAKEINFO=no
7854 elif test ! -e $srcdir/info/emacs; then
7855 as_fn_error "You do not seem to have makeinfo >= 4.7, and your
7856 source tree does not seem to have pre-built manuals in the \`info' directory.
7857 Either install a suitable version of makeinfo, or re-run configure
7858 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
7863 INFO_EXT=.info
7864 INFO_OPTS=--no-split
7869 if test x$GCC = xyes; then
7870 test "x$GCC_LINK_TEST_OPTIONS" != x && \
7871 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
7872 else
7873 test "x$NON_GCC_LINK_TEST_OPTIONS" != x && \
7874 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
7878 late_LDFLAGS=$LDFLAGS
7879 if test x$GCC = xyes; then
7880 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
7881 else
7882 LDFLAGS="$LDFLAGS -znocombreloc"
7885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
7886 $as_echo_n "checking for -znocombreloc... " >&6; }
7887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7888 /* end confdefs.h. */
7891 main ()
7895 return 0;
7897 _ACEOF
7898 if ac_fn_c_try_link "$LINENO"; then :
7899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7900 $as_echo "yes" >&6; }
7901 else
7902 LDFLAGS=$late_LDFLAGS
7903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7904 $as_echo "no" >&6; }
7906 rm -f core conftest.err conftest.$ac_objext \
7907 conftest$ac_exeext conftest.$ac_ext
7910 test "x$CANNOT_DUMP" = "x" && CANNOT_DUMP=no
7911 case "$opsys" in
7912 your-opsys-here) CANNOT_DUMP=yes ;;
7913 esac
7915 test "$CANNOT_DUMP" = "yes" && \
7917 $as_echo "#define CANNOT_DUMP 1" >>confdefs.h
7923 UNEXEC_OBJ=unexelf.o
7924 case "$opsys" in
7925 # MSDOS uses unexcoff.o
7926 # MSWindows uses unexw32.o
7927 aix4-2)
7928 UNEXEC_OBJ=unexaix.o
7930 cygwin)
7931 UNEXEC_OBJ=unexcw.o
7933 darwin)
7934 UNEXEC_OBJ=unexmacosx.o
7936 hpux10-20 | hpux11)
7937 UNEXEC_OBJ=unexhp9k800.o
7939 sol2-10)
7940 # Use the Solaris dldump() function, called from unexsol.c, to dump
7941 # emacs, instead of the generic ELF dump code found in unexelf.c.
7942 # The resulting binary has a complete symbol table, and is better
7943 # for debugging and other observability tools (debuggers, pstack, etc).
7945 # If you encounter a problem using dldump(), please consider sending
7946 # a message to the OpenSolaris tools-linking mailing list:
7947 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
7949 # It is likely that dldump() works with older Solaris too, but this has
7950 # not been tested, so for now this change is for Solaris 10 or newer.
7951 UNEXEC_OBJ=unexsol.o
7953 esac
7955 LD_SWITCH_SYSTEM=
7956 case "$opsys" in
7957 freebsd)
7958 ## Let `ld' find image libs and similar things in /usr/local/lib.
7959 ## The system compiler, GCC, has apparently been modified to not
7960 ## look there, contrary to what a stock GCC would do.
7961 ### It's not our place to do this. See bug#10313#17.
7962 ### LD_SWITCH_SYSTEM=-L/usr/local/lib
7966 gnu-linux)
7967 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
7968 case $host_cpu in mips*) LD_SWITCH_SYSTEM="-G 0";; esac
7971 netbsd)
7972 ### It's not our place to do this. See bug#10313#17.
7973 ### LD_SWITCH_SYSTEM="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
7977 openbsd)
7978 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
7979 ## otherwise Emacs dumps core on elf systems.
7980 LD_SWITCH_SYSTEM="-Z"
7982 esac
7985 ac_link="$ac_link $LD_SWITCH_SYSTEM"
7987 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_RPATH,
7988 ## which has not been defined yet. When this was handled with cpp,
7989 ## it was expanded to null when configure sourced the s/*.h file.
7990 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
7991 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
7992 ## (or somesuch), but because it is supposed to go at the _front_
7993 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
7994 ## Compare with the gnu-linux case below, which added to the end
7995 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
7996 ## LD_SWITCH_SYSTEM_TEMACS.
7997 case "$opsys" in
7998 netbsd|openbsd)
7999 LD_SWITCH_SYSTEM="\$(LD_SWITCH_X_SITE_RPATH) $LD_SWITCH_SYSTEM" ;;
8000 esac
8003 C_SWITCH_MACHINE=
8004 case $canonical in
8005 alpha*)
8006 ac_fn_c_check_decl "$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
8007 if test "x$ac_cv_have_decl___ELF__" = x""yes; then :
8011 if test "$ac_cv_have_decl___ELF__" = "yes"; then
8012 ## With ELF, make sure that all common symbols get allocated to in the
8013 ## data section. Otherwise, the dump of temacs may miss variables in
8014 ## the shared library that have been initialized. For example, with
8015 ## GNU libc, __malloc_initialized would normally be resolved to the
8016 ## shared library's .bss section, which is fatal.
8017 if test "x$GCC" = "xyes"; then
8018 C_SWITCH_MACHINE="-fno-common"
8019 else
8020 as_fn_error "What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
8022 else
8023 UNEXEC_OBJ=unexalpha.o
8026 esac
8031 C_SWITCH_SYSTEM=
8032 ## Some programs in src produce warnings saying certain subprograms
8033 ## are too complex and need a MAXMEM value greater than 2000 for
8034 ## additional optimization. --nils@exp-math.uni-essen.de
8035 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
8036 C_SWITCH_SYSTEM="-ma -qmaxmem=4000"
8037 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
8038 ## It is redundant in glibc2, since we define _GNU_SOURCE.
8042 LIBS_SYSTEM=
8043 case "$opsys" in
8044 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
8045 aix4-2) LIBS_SYSTEM="-lrts -lIM -liconv" ;;
8047 freebsd) LIBS_SYSTEM="-lutil" ;;
8049 hpux*) LIBS_SYSTEM="-l:libdld.sl" ;;
8051 sol2*) LIBS_SYSTEM="-lsocket -lnsl" ;;
8053 ## Motif needs -lgen.
8054 unixware) LIBS_SYSTEM="-lsocket -lnsl -lelf -lgen" ;;
8055 esac
8059 ### Make sure subsequent tests use flags consistent with the build flags.
8061 if test x"${OVERRIDE_CPPFLAGS}" != x; then
8062 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
8063 else
8064 CPPFLAGS="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
8067 # Suppress obsolescent Autoconf test for size_t; Emacs assumes C89 or better.
8069 # Likewise for obsolescent test for uid_t, gid_t; Emacs assumes them.
8073 LIB_MATH=-lm
8074 LIB_STANDARD=
8075 START_FILES=
8076 SYSTEM_TYPE=`echo $opsys | sed -e 's/0-9.*//' -e 's|-|/|'`
8078 case $opsys in
8079 cygwin )
8080 LIB_MATH=
8081 START_FILES='pre-crt0.o'
8083 darwin )
8084 ## Adding -lm confuses the dynamic linker, so omit it.
8085 LIB_MATH=
8086 START_FILES='pre-crt0.o'
8088 freebsd )
8089 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
8090 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
8091 SYSTEM_TYPE=berkeley-unix
8093 gnu-linux | gnu-kfreebsd )
8094 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
8095 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
8097 hpux10-20 | hpux11 )
8098 LIB_STANDARD=-lc
8099 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o'
8101 netbsd | openbsd )
8102 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
8103 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
8104 SYSTEM_TYPE=berkeley-unix
8107 sol2* | unixware )
8108 SYSTEM_TYPE=usg-unix-v
8111 esac
8116 cat >>confdefs.h <<_ACEOF
8117 #define SYSTEM_TYPE "$SYSTEM_TYPE"
8118 _ACEOF
8121 crt_files=
8123 for file in x $LIB_STANDARD $START_FILES; do
8124 case "$file" in
8125 *CRT_DIR*) crt_files="$crt_files `echo $file | sed -e 's|.*/||'`" ;;
8126 esac
8127 done
8129 if test "x$crt_files" != x; then
8131 ## If user specified a crt-dir, use that unconditionally.
8132 crt_gcc=no
8134 if test "X$CRT_DIR" = "X"; then
8136 CRT_DIR=/usr/lib # default
8138 case "$canonical" in
8139 x86_64-*-linux-gnu* | s390x-*-linux-gnu*)
8140 ## On x86-64 and s390x GNU/Linux distributions, the standard library
8141 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
8142 ## For anything else (eg /usr/lib32), it is up the user to specify
8143 ## the location (bug#5655).
8144 ## Test for crtn.o, not just the directory, because sometimes the
8145 ## directory exists but does not have the relevant files (bug#1287).
8146 ## FIXME better to test for binary compatibility somehow.
8147 test -e /usr/lib64/crtn.o && CRT_DIR=/usr/lib64
8150 powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*) CRT_DIR=/usr/lib64 ;;
8151 esac
8153 case "$opsys" in
8154 hpux10-20) CRT_DIR=/lib ;;
8155 esac
8157 test "x${GCC}" = xyes && crt_gcc=yes
8159 fi # CRT_DIR = ""
8161 crt_missing=
8163 for file in $crt_files; do
8165 ## If we're using gcc, try to determine it automatically by asking
8166 ## gcc. [If this doesn't work, CRT_DIR will remain at the
8167 ## system-dependent default from above.]
8168 if test $crt_gcc = yes && test ! -e $CRT_DIR/$file; then
8170 crt_file=`$CC --print-file-name=$file 2>/dev/null`
8171 case "$crt_file" in
8172 */*)
8173 CRT_DIR=`$as_dirname -- "$crt_file" ||
8174 $as_expr X"$crt_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8175 X"$crt_file" : 'X\(//\)[^/]' \| \
8176 X"$crt_file" : 'X\(//\)$' \| \
8177 X"$crt_file" : 'X\(/\)' \| . 2>/dev/null ||
8178 $as_echo X"$crt_file" |
8179 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8180 s//\1/
8183 /^X\(\/\/\)[^/].*/{
8184 s//\1/
8187 /^X\(\/\/\)$/{
8188 s//\1/
8191 /^X\(\/\).*/{
8192 s//\1/
8195 s/.*/./; q'`
8197 esac
8200 crt_gcc=no
8202 test -e $CRT_DIR/$file || crt_missing="$crt_missing $file"
8203 done # $crt_files
8205 test "x$crt_missing" = x || \
8206 as_fn_error "Required file(s) not found:$crt_missing
8207 Try using the --with-crt-dir option." "$LINENO" 5
8209 fi # crt_files != ""
8213 case $opsys in
8214 netbsd | openbsd )
8215 if test -f $CRT_DIR/crti.o; then
8217 test -f $CRT_DIR/crtn.o || \
8218 as_fn_error "Required file not found: crtn.o" "$LINENO" 5
8220 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
8221 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
8224 esac
8227 # Extract the first word of "pkg-config", so it can be a program name with args.
8228 set dummy pkg-config; ac_word=$2
8229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8230 $as_echo_n "checking for $ac_word... " >&6; }
8231 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8232 $as_echo_n "(cached) " >&6
8233 else
8234 case $PKG_CONFIG in
8235 [\\/]* | ?:[\\/]*)
8236 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8240 for as_dir in $PATH
8242 IFS=$as_save_IFS
8243 test -z "$as_dir" && as_dir=.
8244 for ac_exec_ext in '' $ac_executable_extensions; do
8245 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8246 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8248 break 2
8250 done
8251 done
8252 IFS=$as_save_IFS
8254 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8256 esac
8258 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8259 if test -n "$PKG_CONFIG"; then
8260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8261 $as_echo "$PKG_CONFIG" >&6; }
8262 else
8263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8264 $as_echo "no" >&6; }
8272 if test "${with_sound}" != "no"; then
8273 # Sound support for GNU/Linux and the free BSDs.
8274 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
8275 do :
8276 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8277 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8278 eval as_val=\$$as_ac_Header
8279 if test "x$as_val" = x""yes; then :
8280 cat >>confdefs.h <<_ACEOF
8281 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8282 _ACEOF
8283 have_sound_header=yes
8286 done
8288 # Emulation library used on NetBSD.
8289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
8290 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
8291 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
8292 $as_echo_n "(cached) " >&6
8293 else
8294 ac_check_lib_save_LIBS=$LIBS
8295 LIBS="-lossaudio $LIBS"
8296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8297 /* end confdefs.h. */
8299 /* Override any GCC internal prototype to avoid an error.
8300 Use char because int might match the return type of a GCC
8301 builtin and then its argument prototype would still apply. */
8302 #ifdef __cplusplus
8303 extern "C"
8304 #endif
8305 char _oss_ioctl ();
8307 main ()
8309 return _oss_ioctl ();
8311 return 0;
8313 _ACEOF
8314 if ac_fn_c_try_link "$LINENO"; then :
8315 ac_cv_lib_ossaudio__oss_ioctl=yes
8316 else
8317 ac_cv_lib_ossaudio__oss_ioctl=no
8319 rm -f core conftest.err conftest.$ac_objext \
8320 conftest$ac_exeext conftest.$ac_ext
8321 LIBS=$ac_check_lib_save_LIBS
8323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
8324 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
8325 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x""yes; then :
8326 LIBSOUND=-lossaudio
8327 else
8328 LIBSOUND=
8333 ALSA_REQUIRED=1.0.0
8334 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
8336 succeeded=no
8338 if test "$PKG_CONFIG" = "no" ; then
8339 HAVE_ALSA=no
8340 else
8341 PKG_CONFIG_MIN_VERSION=0.9.0
8342 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
8344 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
8346 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5 &&
8347 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES" 2>&5` &&
8348 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES" 2>&5`; then
8349 edit_cflags="
8350 s,///*,/,g
8351 s/^/ /
8352 s/ -I/ $isystem/g
8353 s/^ //
8355 ALSA_CFLAGS=`$as_echo "$ALSA_CFLAGS" | sed -e "$edit_cflags"`
8356 ALSA_LIBS=`$as_echo "$ALSA_LIBS" | sed -e 's,///*,/,g'`
8357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$ALSA_CFLAGS' LIBS='$ALSA_LIBS'" >&5
8358 $as_echo "yes CFLAGS='$ALSA_CFLAGS' LIBS='$ALSA_LIBS'" >&6; }
8359 succeeded=yes
8360 else
8361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8362 $as_echo "no" >&6; }
8363 ALSA_CFLAGS=""
8364 ALSA_LIBS=""
8365 ## If we have a custom action on failure, don't print errors, but
8366 ## do set a variable so people can do so.
8367 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
8373 else
8374 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8375 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8379 if test $succeeded = yes; then
8380 HAVE_ALSA=yes
8381 else
8382 HAVE_ALSA=no
8385 if test $HAVE_ALSA = yes; then
8386 SAVE_CFLAGS="$CFLAGS"
8387 SAVE_LIBS="$LIBS"
8388 CFLAGS="$ALSA_CFLAGS $CFLAGS"
8389 LIBS="$ALSA_LIBS $LIBS"
8390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8391 /* end confdefs.h. */
8392 #include <asoundlib.h>
8394 main ()
8396 snd_lib_error_set_handler (0);
8398 return 0;
8400 _ACEOF
8401 if ac_fn_c_try_compile "$LINENO"; then :
8402 emacs_alsa_normal=yes
8403 else
8404 emacs_alsa_normal=no
8406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8407 if test "$emacs_alsa_normal" != yes; then
8408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8409 /* end confdefs.h. */
8410 #include <alsa/asoundlib.h>
8412 main ()
8414 snd_lib_error_set_handler (0);
8416 return 0;
8418 _ACEOF
8419 if ac_fn_c_try_compile "$LINENO"; then :
8420 emacs_alsa_subdir=yes
8421 else
8422 emacs_alsa_subdir=no
8424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8425 if test "$emacs_alsa_subdir" != yes; then
8426 as_fn_error "pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
8428 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
8431 CFLAGS="$SAVE_CFLAGS"
8432 LIBS="$SAVE_LIBS"
8433 LIBSOUND="$LIBSOUND $ALSA_LIBS"
8434 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
8436 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
8440 if test x$have_sound_header = xyes || test $HAVE_ALSA = yes; then
8441 case "$opsys" in
8442 gnu-linux|freebsd|netbsd)
8444 $as_echo "#define HAVE_SOUND 1" >>confdefs.h
8447 esac
8456 for ac_header in $ac_header_list
8457 do :
8458 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8459 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8461 eval as_val=\$$as_ac_Header
8462 if test "x$as_val" = x""yes; then :
8463 cat >>confdefs.h <<_ACEOF
8464 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8465 _ACEOF
8469 done
8505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
8506 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
8507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8508 /* end confdefs.h. */
8509 #include <sys/personality.h>
8511 main ()
8513 personality (PER_LINUX32)
8515 return 0;
8517 _ACEOF
8518 if ac_fn_c_try_compile "$LINENO"; then :
8519 emacs_cv_personality_linux32=yes
8520 else
8521 emacs_cv_personality_linux32=no
8523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
8525 $as_echo "$emacs_cv_personality_linux32" >&6; }
8527 if test $emacs_cv_personality_linux32 = yes; then
8529 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
8533 for ac_header in term.h
8534 do :
8535 ac_fn_c_check_header_preproc "$LINENO" "term.h" "ac_cv_header_term_h"
8536 if test "x$ac_cv_header_term_h" = x""yes; then :
8537 cat >>confdefs.h <<_ACEOF
8538 #define HAVE_TERM_H 1
8539 _ACEOF
8543 done
8545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8546 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8547 if test "${ac_cv_header_time+set}" = set; then :
8548 $as_echo_n "(cached) " >&6
8549 else
8550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8551 /* end confdefs.h. */
8552 #include <sys/types.h>
8553 #include <sys/time.h>
8554 #include <time.h>
8557 main ()
8559 if ((struct tm *) 0)
8560 return 0;
8562 return 0;
8564 _ACEOF
8565 if ac_fn_c_try_compile "$LINENO"; then :
8566 ac_cv_header_time=yes
8567 else
8568 ac_cv_header_time=no
8570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8573 $as_echo "$ac_cv_header_time" >&6; }
8574 if test $ac_cv_header_time = yes; then
8576 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8580 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default"
8581 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then :
8582 ac_have_decl=1
8583 else
8584 ac_have_decl=0
8587 cat >>confdefs.h <<_ACEOF
8588 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
8589 _ACEOF
8591 if test $ac_cv_have_decl_sys_siglist != yes; then
8592 # For Tru64, at least:
8593 ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default"
8594 if test "x$ac_cv_have_decl___sys_siglist" = x""yes; then :
8595 ac_have_decl=1
8596 else
8597 ac_have_decl=0
8600 cat >>confdefs.h <<_ACEOF
8601 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
8602 _ACEOF
8604 if test $ac_cv_have_decl___sys_siglist = yes; then
8606 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
8610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8611 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8612 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8613 $as_echo_n "(cached) " >&6
8614 else
8615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8616 /* end confdefs.h. */
8617 #include <sys/types.h>
8618 #include <sys/wait.h>
8619 #ifndef WEXITSTATUS
8620 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8621 #endif
8622 #ifndef WIFEXITED
8623 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8624 #endif
8627 main ()
8629 int s;
8630 wait (&s);
8631 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8633 return 0;
8635 _ACEOF
8636 if ac_fn_c_try_compile "$LINENO"; then :
8637 ac_cv_header_sys_wait_h=yes
8638 else
8639 ac_cv_header_sys_wait_h=no
8641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8644 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8645 if test $ac_cv_header_sys_wait_h = yes; then
8647 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
8653 $as_echo_n "checking for struct utimbuf... " >&6; }
8654 if test "${emacs_cv_struct_utimbuf+set}" = set; then :
8655 $as_echo_n "(cached) " >&6
8656 else
8657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8658 /* end confdefs.h. */
8659 #ifdef TIME_WITH_SYS_TIME
8660 #include <sys/time.h>
8661 #include <time.h>
8662 #else
8663 #ifdef HAVE_SYS_TIME_H
8664 #include <sys/time.h>
8665 #else
8666 #include <time.h>
8667 #endif
8668 #endif
8669 #ifdef HAVE_UTIME_H
8670 #include <utime.h>
8671 #endif
8673 main ()
8675 static struct utimbuf x; x.actime = x.modtime;
8677 return 0;
8679 _ACEOF
8680 if ac_fn_c_try_compile "$LINENO"; then :
8681 emacs_cv_struct_utimbuf=yes
8682 else
8683 emacs_cv_struct_utimbuf=no
8685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_utimbuf" >&5
8688 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
8689 if test $emacs_cv_struct_utimbuf = yes; then
8691 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
8695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
8696 $as_echo_n "checking for speed_t... " >&6; }
8697 if test "${emacs_cv_speed_t+set}" = set; then :
8698 $as_echo_n "(cached) " >&6
8699 else
8700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8701 /* end confdefs.h. */
8702 #include <termios.h>
8704 main ()
8706 speed_t x = 1;
8708 return 0;
8710 _ACEOF
8711 if ac_fn_c_try_compile "$LINENO"; then :
8712 emacs_cv_speed_t=yes
8713 else
8714 emacs_cv_speed_t=no
8716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
8719 $as_echo "$emacs_cv_speed_t" >&6; }
8720 if test $emacs_cv_speed_t = yes; then
8722 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
8726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
8727 $as_echo_n "checking for struct timeval... " >&6; }
8728 if test "${emacs_cv_struct_timeval+set}" = set; then :
8729 $as_echo_n "(cached) " >&6
8730 else
8731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8732 /* end confdefs.h. */
8733 #ifdef TIME_WITH_SYS_TIME
8734 #include <sys/time.h>
8735 #include <time.h>
8736 #else
8737 #ifdef HAVE_SYS_TIME_H
8738 #include <sys/time.h>
8739 #else
8740 #include <time.h>
8741 #endif
8742 #endif
8744 main ()
8746 static struct timeval x; x.tv_sec = x.tv_usec;
8748 return 0;
8750 _ACEOF
8751 if ac_fn_c_try_compile "$LINENO"; then :
8752 emacs_cv_struct_timeval=yes
8753 else
8754 emacs_cv_struct_timeval=no
8756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_timeval" >&5
8759 $as_echo "$emacs_cv_struct_timeval" >&6; }
8760 HAVE_TIMEVAL=$emacs_cv_struct_timeval
8761 if test $emacs_cv_struct_timeval = yes; then
8763 $as_echo "#define HAVE_TIMEVAL 1" >>confdefs.h
8767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct exception" >&5
8768 $as_echo_n "checking for struct exception... " >&6; }
8769 if test "${emacs_cv_struct_exception+set}" = set; then :
8770 $as_echo_n "(cached) " >&6
8771 else
8772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8773 /* end confdefs.h. */
8774 #include <math.h>
8776 main ()
8778 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
8780 return 0;
8782 _ACEOF
8783 if ac_fn_c_try_compile "$LINENO"; then :
8784 emacs_cv_struct_exception=yes
8785 else
8786 emacs_cv_struct_exception=no
8788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_exception" >&5
8791 $as_echo "$emacs_cv_struct_exception" >&6; }
8792 HAVE_EXCEPTION=$emacs_cv_struct_exception
8793 if test $emacs_cv_struct_exception != yes; then
8795 $as_echo "#define NO_MATHERR 1" >>confdefs.h
8802 for ac_header in net/if.h
8803 do :
8804 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
8805 #if HAVE_SYS_SOCKET_H
8806 #include <sys/socket.h>
8807 #endif
8809 if test "x$ac_cv_header_net_if_h" = x""yes; then :
8810 cat >>confdefs.h <<_ACEOF
8811 #define HAVE_NET_IF_H 1
8812 _ACEOF
8816 done
8818 for ac_header in ifaddrs.h
8819 do :
8820 ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default
8821 #if HAVE_SYS_SOCKET_H
8822 #include <sys/socket.h>
8823 #endif
8825 if test "x$ac_cv_header_ifaddrs_h" = x""yes; then :
8826 cat >>confdefs.h <<_ACEOF
8827 #define HAVE_IFADDRS_H 1
8828 _ACEOF
8832 done
8834 for ac_header in net/if_dl.h
8835 do :
8836 ac_fn_c_check_header_compile "$LINENO" "net/if_dl.h" "ac_cv_header_net_if_dl_h" "$ac_includes_default
8837 #if HAVE_SYS_SOCKET_H
8838 #include <sys/socket.h>
8839 #endif
8841 if test "x$ac_cv_header_net_if_dl_h" = x""yes; then :
8842 cat >>confdefs.h <<_ACEOF
8843 #define HAVE_NET_IF_DL_H 1
8844 _ACEOF
8848 done
8850 for ac_func in getifaddrs freeifaddrs
8851 do :
8852 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8853 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8854 eval as_val=\$$as_ac_var
8855 if test "x$as_val" = x""yes; then :
8856 cat >>confdefs.h <<_ACEOF
8857 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8858 _ACEOF
8861 done
8864 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
8865 #if HAVE_SYS_SOCKET_H
8866 #include <sys/socket.h>
8867 #endif
8868 #if HAVE_NET_IF_H
8869 #include <net/if.h>
8870 #endif
8872 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x""yes; then :
8874 cat >>confdefs.h <<_ACEOF
8875 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8876 _ACEOF
8880 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
8881 #if HAVE_SYS_SOCKET_H
8882 #include <sys/socket.h>
8883 #endif
8884 #if HAVE_NET_IF_H
8885 #include <net/if.h>
8886 #endif
8888 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x""yes; then :
8890 cat >>confdefs.h <<_ACEOF
8891 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8892 _ACEOF
8896 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
8897 #if HAVE_SYS_SOCKET_H
8898 #include <sys/socket.h>
8899 #endif
8900 #if HAVE_NET_IF_H
8901 #include <net/if.h>
8902 #endif
8904 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x""yes; then :
8906 cat >>confdefs.h <<_ACEOF
8907 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8908 _ACEOF
8912 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
8913 #if HAVE_SYS_SOCKET_H
8914 #include <sys/socket.h>
8915 #endif
8916 #if HAVE_NET_IF_H
8917 #include <net/if.h>
8918 #endif
8920 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x""yes; then :
8922 cat >>confdefs.h <<_ACEOF
8923 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8924 _ACEOF
8928 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
8929 #if HAVE_SYS_SOCKET_H
8930 #include <sys/socket.h>
8931 #endif
8932 #if HAVE_NET_IF_H
8933 #include <net/if.h>
8934 #endif
8936 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x""yes; then :
8938 cat >>confdefs.h <<_ACEOF
8939 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8940 _ACEOF
8944 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr.sa_len" "ac_cv_member_struct_ifreq_ifr_addr_sa_len" "$ac_includes_default
8945 #if HAVE_SYS_SOCKET_H
8946 #include <sys/socket.h>
8947 #endif
8948 #if HAVE_NET_IF_H
8949 #include <net/if.h>
8950 #endif
8952 if test "x$ac_cv_member_struct_ifreq_ifr_addr_sa_len" = x""yes; then :
8954 cat >>confdefs.h <<_ACEOF
8955 #define HAVE_STRUCT_IFREQ_IFR_ADDR_SA_LEN 1
8956 _ACEOF
8963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__ ((__aligned__ (expr)))" >&5
8964 $as_echo_n "checking for __attribute__ ((__aligned__ (expr)))... " >&6; }
8965 if test "${emacs_cv_attribute_aligned+set}" = set; then :
8966 $as_echo_n "(cached) " >&6
8967 else
8968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8969 /* end confdefs.h. */
8970 char __attribute__ ((__aligned__ (1 << 3))) c;
8972 main ()
8976 return 0;
8978 _ACEOF
8979 if ac_fn_c_try_compile "$LINENO"; then :
8980 emacs_cv_attribute_aligned=yes
8981 else
8982 emacs_cv_attribute_aligned=no
8984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_attribute_aligned" >&5
8987 $as_echo "$emacs_cv_attribute_aligned" >&6; }
8988 if test $emacs_cv_attribute_aligned = yes; then
8990 $as_echo "#define HAVE_ATTRIBUTE_ALIGNED 1" >>confdefs.h
8995 DEPFLAGS=
8996 MKDEPDIR=":"
8997 deps_frag=deps.mk
8998 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
8999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
9000 $as_echo_n "checking whether we are using GNU Make... " >&6; }
9001 HAVE_GNU_MAKE=no
9002 testval=`${MAKE-make} --version 2>/dev/null | grep 'GNU Make'`
9003 if test "x$testval" != x; then
9004 HAVE_GNU_MAKE=yes
9005 else
9006 ac_enable_autodepend=no
9008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
9009 $as_echo "$HAVE_GNU_MAKE" >&6; }
9010 if test $HAVE_GNU_MAKE = yes; then
9011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
9012 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
9013 SAVE_CFLAGS="$CFLAGS"
9014 CFLAGS="$CFLAGS -MMD -MF deps.d -MP"
9015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9016 /* end confdefs.h. */
9019 main ()
9023 return 0;
9025 _ACEOF
9026 if ac_fn_c_try_compile "$LINENO"; then :
9028 else
9029 ac_enable_autodepend=no
9031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9032 CFLAGS="$SAVE_CFLAGS"
9033 test -f deps.d || ac_enable_autodepend=no
9034 rm -rf deps.d
9035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
9036 $as_echo "$ac_enable_autodepend" >&6; }
9038 if test $ac_enable_autodepend = yes; then
9039 DEPFLAGS='-MMD -MF ${DEPDIR}/$*.d -MP'
9040 ## MKDIR_P is documented (see AC_PROG_MKDIR_P) to be parallel-safe.
9041 MKDEPDIR='${MKDIR_P} ${DEPDIR}'
9042 deps_frag=autodeps.mk
9045 deps_frag=$srcdir/src/$deps_frag
9051 lisp_frag=$srcdir/src/lisp.mk
9055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
9056 $as_echo_n "checking for long file names... " >&6; }
9057 if test "${ac_cv_sys_long_file_names+set}" = set; then :
9058 $as_echo_n "(cached) " >&6
9059 else
9060 ac_cv_sys_long_file_names=yes
9061 # Test for long file names in all the places we know might matter:
9062 # . the current directory, where building will happen
9063 # $prefix/lib where we will be installing things
9064 # $exec_prefix/lib likewise
9065 # $TMPDIR if set, where it might want to write temporary files
9066 # /tmp where it might want to write temporary files
9067 # /var/tmp likewise
9068 # /usr/tmp likewise
9069 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9070 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9071 # in the usual case where exec_prefix is '${prefix}'.
9072 case $ac_dir in #(
9073 . | /* | ?:[\\/]*) ;; #(
9074 *) continue;;
9075 esac
9076 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9077 ac_xdir=$ac_dir/cf$$
9078 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9079 ac_tf1=$ac_xdir/conftest9012345
9080 ac_tf2=$ac_xdir/conftest9012346
9081 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9082 ac_cv_sys_long_file_names=no
9083 rm -f -r "$ac_xdir" 2>/dev/null
9084 test $ac_cv_sys_long_file_names = no && break
9085 done
9087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
9088 $as_echo "$ac_cv_sys_long_file_names" >&6; }
9089 if test $ac_cv_sys_long_file_names = yes; then
9091 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
9096 #### Choose a window system.
9098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
9099 $as_echo_n "checking for X... " >&6; }
9102 # Check whether --with-x was given.
9103 if test "${with_x+set}" = set; then :
9104 withval=$with_x;
9107 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9108 if test "x$with_x" = xno; then
9109 # The user explicitly disabled X.
9110 have_x=disabled
9111 else
9112 case $x_includes,$x_libraries in #(
9113 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
9114 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
9115 $as_echo_n "(cached) " >&6
9116 else
9117 # One or both of the vars are not set, and there is no cached value.
9118 ac_x_includes=no ac_x_libraries=no
9119 rm -f -r conftest.dir
9120 if mkdir conftest.dir; then
9121 cd conftest.dir
9122 cat >Imakefile <<'_ACEOF'
9123 incroot:
9124 @echo incroot='${INCROOT}'
9125 usrlibdir:
9126 @echo usrlibdir='${USRLIBDIR}'
9127 libdir:
9128 @echo libdir='${LIBDIR}'
9129 _ACEOF
9130 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9131 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9132 for ac_var in incroot usrlibdir libdir; do
9133 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9134 done
9135 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9136 for ac_extension in a so sl dylib la dll; do
9137 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9138 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9139 ac_im_usrlibdir=$ac_im_libdir; break
9141 done
9142 # Screen out bogus values from the imake configuration. They are
9143 # bogus both because they are the default anyway, and because
9144 # using them would break gcc on systems where it needs fixed includes.
9145 case $ac_im_incroot in
9146 /usr/include) ac_x_includes= ;;
9147 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9148 esac
9149 case $ac_im_usrlibdir in
9150 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
9151 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9152 esac
9154 cd ..
9155 rm -f -r conftest.dir
9158 # Standard set of common directories for X headers.
9159 # Check X11 before X11Rn because it is often a symlink to the current release.
9160 ac_x_header_dirs='
9161 /usr/X11/include
9162 /usr/X11R7/include
9163 /usr/X11R6/include
9164 /usr/X11R5/include
9165 /usr/X11R4/include
9167 /usr/include/X11
9168 /usr/include/X11R7
9169 /usr/include/X11R6
9170 /usr/include/X11R5
9171 /usr/include/X11R4
9173 /usr/local/X11/include
9174 /usr/local/X11R7/include
9175 /usr/local/X11R6/include
9176 /usr/local/X11R5/include
9177 /usr/local/X11R4/include
9179 /usr/local/include/X11
9180 /usr/local/include/X11R7
9181 /usr/local/include/X11R6
9182 /usr/local/include/X11R5
9183 /usr/local/include/X11R4
9185 /usr/X386/include
9186 /usr/x386/include
9187 /usr/XFree86/include/X11
9189 /usr/include
9190 /usr/local/include
9191 /usr/unsupported/include
9192 /usr/athena/include
9193 /usr/local/x11r5/include
9194 /usr/lpp/Xamples/include
9196 /usr/openwin/include
9197 /usr/openwin/share/include'
9199 if test "$ac_x_includes" = no; then
9200 # Guess where to find include files, by looking for Xlib.h.
9201 # First, try using that file with no special directory specified.
9202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9203 /* end confdefs.h. */
9204 #include <X11/Xlib.h>
9205 _ACEOF
9206 if ac_fn_c_try_cpp "$LINENO"; then :
9207 # We can compile using X headers with no special include directory.
9208 ac_x_includes=
9209 else
9210 for ac_dir in $ac_x_header_dirs; do
9211 if test -r "$ac_dir/X11/Xlib.h"; then
9212 ac_x_includes=$ac_dir
9213 break
9215 done
9217 rm -f conftest.err conftest.$ac_ext
9218 fi # $ac_x_includes = no
9220 if test "$ac_x_libraries" = no; then
9221 # Check for the libraries.
9222 # See if we find them without any special options.
9223 # Don't add to $LIBS permanently.
9224 ac_save_LIBS=$LIBS
9225 LIBS="-lX11 $LIBS"
9226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9227 /* end confdefs.h. */
9228 #include <X11/Xlib.h>
9230 main ()
9232 XrmInitialize ()
9234 return 0;
9236 _ACEOF
9237 if ac_fn_c_try_link "$LINENO"; then :
9238 LIBS=$ac_save_LIBS
9239 # We can link X programs with no special library path.
9240 ac_x_libraries=
9241 else
9242 LIBS=$ac_save_LIBS
9243 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9245 # Don't even attempt the hair of trying to link an X program!
9246 for ac_extension in a so sl dylib la dll; do
9247 if test -r "$ac_dir/libX11.$ac_extension"; then
9248 ac_x_libraries=$ac_dir
9249 break 2
9251 done
9252 done
9254 rm -f core conftest.err conftest.$ac_objext \
9255 conftest$ac_exeext conftest.$ac_ext
9256 fi # $ac_x_libraries = no
9258 case $ac_x_includes,$ac_x_libraries in #(
9259 no,* | *,no | *\'*)
9260 # Didn't find X, or a directory has "'" in its name.
9261 ac_cv_have_x="have_x=no";; #(
9263 # Record where we found X for the cache.
9264 ac_cv_have_x="have_x=yes\
9265 ac_x_includes='$ac_x_includes'\
9266 ac_x_libraries='$ac_x_libraries'"
9267 esac
9269 ;; #(
9270 *) have_x=yes;;
9271 esac
9272 eval "$ac_cv_have_x"
9273 fi # $with_x != no
9275 if test "$have_x" != yes; then
9276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
9277 $as_echo "$have_x" >&6; }
9278 no_x=yes
9279 else
9280 # If each of the values was on the command line, it overrides each guess.
9281 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9282 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9283 # Update the cache value to reflect the command line values.
9284 ac_cv_have_x="have_x=yes\
9285 ac_x_includes='$x_includes'\
9286 ac_x_libraries='$x_libraries'"
9287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
9288 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
9291 if test "$no_x" = yes; then
9292 window_system=none
9293 else
9294 window_system=x11
9297 LD_SWITCH_X_SITE_RPATH=
9298 if test "${x_libraries}" != NONE; then
9299 if test -n "${x_libraries}"; then
9300 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9301 LD_SWITCH_X_SITE_RPATH=-Wl,-rpath,`echo ${x_libraries} | sed -e "s/:/ -Wl,-rpath,/g"`
9303 x_default_search_path=""
9304 x_search_path=${x_libraries}
9305 if test -z "${x_search_path}"; then
9306 x_search_path=/usr/lib
9308 for x_library in `echo ${x_search_path}: | \
9309 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9310 x_search_path="\
9311 ${x_library}/X11/%L/%T/%N%C%S:\
9312 ${x_library}/X11/%l/%T/%N%C%S:\
9313 ${x_library}/X11/%T/%N%C%S:\
9314 ${x_library}/X11/%L/%T/%N%S:\
9315 ${x_library}/X11/%l/%T/%N%S:\
9316 ${x_library}/X11/%T/%N%S"
9317 if test x"${x_default_search_path}" = x; then
9318 x_default_search_path=${x_search_path}
9319 else
9320 x_default_search_path="${x_search_path}:${x_default_search_path}"
9322 done
9326 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9327 C_SWITCH_X_SITE="$isystem"`echo ${x_includes} | sed -e "s/:/ $isystem/g"`
9330 if test x"${x_includes}" = x; then
9331 bitmapdir=/usr/include/X11/bitmaps
9332 else
9333 # accumulate include directories that have X11 bitmap subdirectories
9334 bmd_acc="dummyval"
9335 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9336 if test -d "${bmd}/X11/bitmaps"; then
9337 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9339 if test -d "${bmd}/bitmaps"; then
9340 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9342 done
9343 if test ${bmd_acc} != "dummyval"; then
9344 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9348 HAVE_NS=no
9349 NS_IMPL_COCOA=no
9350 NS_IMPL_GNUSTEP=no
9351 tmp_CPPFLAGS="$CPPFLAGS"
9352 tmp_CFLAGS="$CFLAGS"
9353 CPPFLAGS="$CPPFLAGS -x objective-c"
9354 CFLAGS="$CFLAGS -x objective-c"
9355 TEMACS_LDFLAGS2="\${LDFLAGS}"
9356 GNU_OBJC_CFLAGS=
9357 if test "${with_ns}" != no; then
9358 if test "${opsys}" = darwin; then
9359 NS_IMPL_COCOA=yes
9360 ns_appdir=`pwd`/nextstep/Emacs.app
9361 ns_appbindir=${ns_appdir}/Contents/MacOS
9362 ns_appresdir=${ns_appdir}/Contents/Resources
9363 ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base
9364 elif test -f $GNUSTEP_CONFIG_FILE; then
9365 NS_IMPL_GNUSTEP=yes
9366 ns_appdir=`pwd`/nextstep/Emacs.app
9367 ns_appbindir=${ns_appdir}
9368 ns_appresdir=${ns_appdir}/Resources
9369 ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base
9370 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9371 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9372 GNUSTEP_LOCAL_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
9373 GNUSTEP_LOCAL_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
9374 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
9375 GNUSTEP_LOCAL_HEADERS="-I${GNUSTEP_LOCAL_HEADERS}"
9376 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
9377 GNUSTEP_LOCAL_LIBRARIES="-L${GNUSTEP_LOCAL_LIBRARIES}"
9378 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9379 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9380 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
9381 LIB_STANDARD=
9382 START_FILES=
9383 TEMACS_LDFLAGS2=
9384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS" >&5
9385 $as_echo_n "checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS... " >&6; }
9386 if test "${emacs_cv_objc_exceptions+set}" = set; then :
9387 $as_echo_n "(cached) " >&6
9388 else
9389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9390 /* end confdefs.h. */
9391 #include <GNUstepBase/GSConfig.h>
9393 main ()
9395 #if defined BASE_NATIVE_OBJC_EXCEPTIONS && BASE_NATIVE_OBJC_EXCEPTIONS > 0
9397 #else
9398 fail;
9399 #endif
9401 return 0;
9403 _ACEOF
9404 if ac_fn_c_try_compile "$LINENO"; then :
9405 emacs_cv_objc_exceptions=yes
9406 else
9407 emacs_cv_objc_exceptions=no
9409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_objc_exceptions" >&5
9412 $as_echo "$emacs_cv_objc_exceptions" >&6; }
9413 if test $emacs_cv_objc_exceptions = yes; then
9415 $as_echo "#define _NATIVE_OBJC_EXCEPTIONS 1" >>confdefs.h
9417 GNU_OBJC_CFLAGS="-fobjc-exceptions"
9421 CFLAGS="$CFLAGS $GNU_OBJC_CFLAGS"
9423 ac_fn_c_check_header_mongrel "$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
9424 if test "x$ac_cv_header_AppKit_AppKit_h" = x""yes; then :
9425 HAVE_NS=yes
9426 else
9427 as_fn_error "\`--with-ns' was specified, but the include
9428 files are missing or cannot be compiled." "$LINENO" 5
9432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9433 /* end confdefs.h. */
9434 #include <Foundation/NSObjCRuntime.h>
9436 main ()
9438 NSInteger i;
9440 return 0;
9442 _ACEOF
9443 if ac_fn_c_try_compile "$LINENO"; then :
9444 ns_have_nsinteger=yes
9445 else
9446 ns_have_nsinteger=no
9448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9449 if test $ns_have_nsinteger = yes; then
9451 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
9457 INSTALL_ARCH_INDEP_EXTRA=install-etc
9458 ns_self_contained=no
9459 ns_frag=/dev/null
9460 NS_OBJ=
9461 NS_OBJC_OBJ=
9462 if test "${HAVE_NS}" = yes; then
9463 if test "$with_toolkit_scroll_bars" = "no"; then
9464 as_fn_error "Non-toolkit scroll bars are not implemented for Nextstep." "$LINENO" 5
9467 window_system=nextstep
9468 with_xft=no
9469 # set up packaging dirs
9470 if test "${EN_NS_SELF_CONTAINED}" = yes; then
9471 ns_self_contained=yes
9472 prefix=${ns_appresdir}
9473 exec_prefix=${ns_appbindir}
9474 libexecdir="\${ns_appbindir}/libexec"
9475 archlibdir="\${ns_appbindir}/libexec"
9476 docdir="\${ns_appresdir}/etc"
9477 etcdir="\${ns_appresdir}/etc"
9478 infodir="\${ns_appresdir}/info"
9479 mandir="\${ns_appresdir}/man"
9480 lispdir="\${ns_appresdir}/lisp"
9481 leimdir="\${ns_appresdir}/leim"
9482 INSTALL_ARCH_INDEP_EXTRA=
9484 ns_frag=$srcdir/src/ns.mk
9485 NS_OBJ="fontset.o fringe.o image.o"
9486 NS_OBJC_OBJ="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o"
9488 CFLAGS="$tmp_CFLAGS"
9489 CPPFLAGS="$tmp_CPPFLAGS"
9497 case "${window_system}" in
9498 x11 )
9499 HAVE_X_WINDOWS=yes
9500 HAVE_X11=yes
9501 case "${with_x_toolkit}" in
9502 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9503 motif ) USE_X_TOOLKIT=MOTIF ;;
9504 gtk ) with_gtk=yes
9505 USE_X_TOOLKIT=none ;;
9506 gtk3 ) with_gtk3=yes
9507 USE_X_TOOLKIT=none ;;
9508 no ) USE_X_TOOLKIT=none ;;
9509 * ) USE_X_TOOLKIT=maybe ;;
9510 esac
9512 nextstep | none )
9513 HAVE_X_WINDOWS=no
9514 HAVE_X11=no
9515 USE_X_TOOLKIT=none
9517 esac
9519 if test "$window_system" = none && test "X$with_x" != "Xno"; then
9520 # Extract the first word of "X", so it can be a program name with args.
9521 set dummy X; ac_word=$2
9522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9523 $as_echo_n "checking for $ac_word... " >&6; }
9524 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then :
9525 $as_echo_n "(cached) " >&6
9526 else
9527 if test -n "$HAVE_XSERVER"; then
9528 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9529 else
9530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9531 for as_dir in $PATH
9533 IFS=$as_save_IFS
9534 test -z "$as_dir" && as_dir=.
9535 for ac_exec_ext in '' $ac_executable_extensions; do
9536 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9537 ac_cv_prog_HAVE_XSERVER="true"
9538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9539 break 2
9541 done
9542 done
9543 IFS=$as_save_IFS
9545 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9548 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9549 if test -n "$HAVE_XSERVER"; then
9550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
9551 $as_echo "$HAVE_XSERVER" >&6; }
9552 else
9553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9554 $as_echo "no" >&6; }
9558 if test "$HAVE_XSERVER" = true ||
9559 test -n "$DISPLAY" ||
9560 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
9561 as_fn_error "You seem to be running X, but no X development libraries
9562 were found. You should install the relevant development files for X
9563 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9564 sure you have development files for image handling, i.e.
9565 tiff, gif, jpeg, png and xpm.
9566 If you are sure you want Emacs compiled without X window support, pass
9567 --without-x
9568 to configure." "$LINENO" 5
9572 ### If we're using X11, we should use the X menu package.
9573 HAVE_MENUS=no
9574 case ${HAVE_X11} in
9575 yes ) HAVE_MENUS=yes ;;
9576 esac
9578 # Does the opsystem file prohibit the use of the GNU malloc?
9579 # Assume not, until told otherwise.
9580 GNU_MALLOC=yes
9582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc is Doug Lea style" >&5
9583 $as_echo_n "checking whether malloc is Doug Lea style... " >&6; }
9584 if test "${emacs_cv_var_doug_lea_malloc+set}" = set; then :
9585 $as_echo_n "(cached) " >&6
9586 else
9587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9588 /* end confdefs.h. */
9589 #include <malloc.h>
9590 static void hook (void) {}
9592 main ()
9594 malloc_set_state (malloc_get_state ());
9595 __after_morecore_hook = hook;
9596 __malloc_initialize_hook = hook;
9598 return 0;
9600 _ACEOF
9601 if ac_fn_c_try_link "$LINENO"; then :
9602 emacs_cv_var_doug_lea_malloc=yes
9603 else
9604 emacs_cv_var_doug_lea_malloc=no
9606 rm -f core conftest.err conftest.$ac_objext \
9607 conftest$ac_exeext conftest.$ac_ext
9609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var_doug_lea_malloc" >&5
9610 $as_echo "$emacs_cv_var_doug_lea_malloc" >&6; }
9611 doug_lea_malloc=$emacs_cv_var_doug_lea_malloc
9614 system_malloc=no
9615 case "$opsys" in
9616 ## darwin ld insists on the use of malloc routines in the System framework.
9617 darwin|sol2-10) system_malloc=yes ;;
9618 esac
9620 if test "${system_malloc}" = "yes"; then
9622 $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
9624 GNU_MALLOC=no
9625 GNU_MALLOC_reason="
9626 (The GNU allocators don't work with this system configuration.)"
9627 GMALLOC_OBJ=
9628 VMLIMIT_OBJ=
9629 else
9630 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ=gmalloc.o
9631 VMLIMIT_OBJ=vm-limit.o
9636 if test "$doug_lea_malloc" = "yes" ; then
9637 if test "$GNU_MALLOC" = yes ; then
9638 GNU_MALLOC_reason="
9639 (Using Doug Lea's new malloc from the GNU C Library.)"
9642 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
9645 ## Use mmap directly for allocating larger buffers.
9646 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
9647 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
9648 ## Does the AC_FUNC_MMAP test below make this check unnecessary?
9649 case "$opsys" in
9650 gnu*) REL_ALLOC=no ;;
9651 esac
9654 if test x"${REL_ALLOC}" = x; then
9655 REL_ALLOC=${GNU_MALLOC}
9658 use_mmap_for_buffers=no
9659 case "$opsys" in
9660 cygwin|freebsd|irix6-5) use_mmap_for_buffers=yes ;;
9661 esac
9670 for ac_func in getpagesize
9671 do :
9672 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
9673 if test "x$ac_cv_func_getpagesize" = x""yes; then :
9674 cat >>confdefs.h <<_ACEOF
9675 #define HAVE_GETPAGESIZE 1
9676 _ACEOF
9679 done
9681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
9682 $as_echo_n "checking for working mmap... " >&6; }
9683 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
9684 $as_echo_n "(cached) " >&6
9685 else
9686 if test "$cross_compiling" = yes; then :
9687 ac_cv_func_mmap_fixed_mapped=no
9688 else
9689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9690 /* end confdefs.h. */
9691 $ac_includes_default
9692 /* malloc might have been renamed as rpl_malloc. */
9693 #undef malloc
9695 /* Thanks to Mike Haertel and Jim Avera for this test.
9696 Here is a matrix of mmap possibilities:
9697 mmap private not fixed
9698 mmap private fixed at somewhere currently unmapped
9699 mmap private fixed at somewhere already mapped
9700 mmap shared not fixed
9701 mmap shared fixed at somewhere currently unmapped
9702 mmap shared fixed at somewhere already mapped
9703 For private mappings, we should verify that changes cannot be read()
9704 back from the file, nor mmap's back from the file at a different
9705 address. (There have been systems where private was not correctly
9706 implemented like the infamous i386 svr4.0, and systems where the
9707 VM page cache was not coherent with the file system buffer cache
9708 like early versions of FreeBSD and possibly contemporary NetBSD.)
9709 For shared mappings, we should conversely verify that changes get
9710 propagated back to all the places they're supposed to be.
9712 Grep wants private fixed already mapped.
9713 The main things grep needs to know about mmap are:
9714 * does it exist and is it safe to write into the mmap'd area
9715 * how to use it (BSD variants) */
9717 #include <fcntl.h>
9718 #include <sys/mman.h>
9720 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
9721 char *malloc ();
9722 #endif
9724 /* This mess was copied from the GNU getpagesize.h. */
9725 #ifndef HAVE_GETPAGESIZE
9726 # ifdef _SC_PAGESIZE
9727 # define getpagesize() sysconf(_SC_PAGESIZE)
9728 # else /* no _SC_PAGESIZE */
9729 # ifdef HAVE_SYS_PARAM_H
9730 # include <sys/param.h>
9731 # ifdef EXEC_PAGESIZE
9732 # define getpagesize() EXEC_PAGESIZE
9733 # else /* no EXEC_PAGESIZE */
9734 # ifdef NBPG
9735 # define getpagesize() NBPG * CLSIZE
9736 # ifndef CLSIZE
9737 # define CLSIZE 1
9738 # endif /* no CLSIZE */
9739 # else /* no NBPG */
9740 # ifdef NBPC
9741 # define getpagesize() NBPC
9742 # else /* no NBPC */
9743 # ifdef PAGESIZE
9744 # define getpagesize() PAGESIZE
9745 # endif /* PAGESIZE */
9746 # endif /* no NBPC */
9747 # endif /* no NBPG */
9748 # endif /* no EXEC_PAGESIZE */
9749 # else /* no HAVE_SYS_PARAM_H */
9750 # define getpagesize() 8192 /* punt totally */
9751 # endif /* no HAVE_SYS_PARAM_H */
9752 # endif /* no _SC_PAGESIZE */
9754 #endif /* no HAVE_GETPAGESIZE */
9757 main ()
9759 char *data, *data2, *data3;
9760 const char *cdata2;
9761 int i, pagesize;
9762 int fd, fd2;
9764 pagesize = getpagesize ();
9766 /* First, make a file with some known garbage in it. */
9767 data = (char *) malloc (pagesize);
9768 if (!data)
9769 return 1;
9770 for (i = 0; i < pagesize; ++i)
9771 *(data + i) = rand ();
9772 umask (0);
9773 fd = creat ("conftest.mmap", 0600);
9774 if (fd < 0)
9775 return 2;
9776 if (write (fd, data, pagesize) != pagesize)
9777 return 3;
9778 close (fd);
9780 /* Next, check that the tail of a page is zero-filled. File must have
9781 non-zero length, otherwise we risk SIGBUS for entire page. */
9782 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
9783 if (fd2 < 0)
9784 return 4;
9785 cdata2 = "";
9786 if (write (fd2, cdata2, 1) != 1)
9787 return 5;
9788 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
9789 if (data2 == MAP_FAILED)
9790 return 6;
9791 for (i = 0; i < pagesize; ++i)
9792 if (*(data2 + i))
9793 return 7;
9794 close (fd2);
9795 if (munmap (data2, pagesize))
9796 return 8;
9798 /* Next, try to mmap the file at a fixed address which already has
9799 something else allocated at it. If we can, also make sure that
9800 we see the same garbage. */
9801 fd = open ("conftest.mmap", O_RDWR);
9802 if (fd < 0)
9803 return 9;
9804 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9805 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9806 return 10;
9807 for (i = 0; i < pagesize; ++i)
9808 if (*(data + i) != *(data2 + i))
9809 return 11;
9811 /* Finally, make sure that changes to the mapped area do not
9812 percolate back to the file as seen by read(). (This is a bug on
9813 some variants of i386 svr4.0.) */
9814 for (i = 0; i < pagesize; ++i)
9815 *(data2 + i) = *(data2 + i) + 1;
9816 data3 = (char *) malloc (pagesize);
9817 if (!data3)
9818 return 12;
9819 if (read (fd, data3, pagesize) != pagesize)
9820 return 13;
9821 for (i = 0; i < pagesize; ++i)
9822 if (*(data + i) != *(data3 + i))
9823 return 14;
9824 close (fd);
9825 return 0;
9827 _ACEOF
9828 if ac_fn_c_try_run "$LINENO"; then :
9829 ac_cv_func_mmap_fixed_mapped=yes
9830 else
9831 ac_cv_func_mmap_fixed_mapped=no
9833 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9834 conftest.$ac_objext conftest.beam conftest.$ac_ext
9838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
9839 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
9840 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9842 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
9845 rm -f conftest.mmap conftest.txt
9847 if test $use_mmap_for_buffers = yes; then
9849 $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
9851 REL_ALLOC=no
9854 LIBS="$LIBS_SYSTEM $LIBS"
9856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
9857 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
9858 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
9859 $as_echo_n "(cached) " >&6
9860 else
9861 ac_check_lib_save_LIBS=$LIBS
9862 LIBS="-ldnet $LIBS"
9863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9864 /* end confdefs.h. */
9866 /* Override any GCC internal prototype to avoid an error.
9867 Use char because int might match the return type of a GCC
9868 builtin and then its argument prototype would still apply. */
9869 #ifdef __cplusplus
9870 extern "C"
9871 #endif
9872 char dnet_ntoa ();
9874 main ()
9876 return dnet_ntoa ();
9878 return 0;
9880 _ACEOF
9881 if ac_fn_c_try_link "$LINENO"; then :
9882 ac_cv_lib_dnet_dnet_ntoa=yes
9883 else
9884 ac_cv_lib_dnet_dnet_ntoa=no
9886 rm -f core conftest.err conftest.$ac_objext \
9887 conftest$ac_exeext conftest.$ac_ext
9888 LIBS=$ac_check_lib_save_LIBS
9890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9891 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
9892 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
9893 cat >>confdefs.h <<_ACEOF
9894 #define HAVE_LIBDNET 1
9895 _ACEOF
9897 LIBS="-ldnet $LIBS"
9902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
9903 $as_echo_n "checking for main in -lXbsd... " >&6; }
9904 if test "${ac_cv_lib_Xbsd_main+set}" = set; then :
9905 $as_echo_n "(cached) " >&6
9906 else
9907 ac_check_lib_save_LIBS=$LIBS
9908 LIBS="-lXbsd $LIBS"
9909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9910 /* end confdefs.h. */
9914 main ()
9916 return main ();
9918 return 0;
9920 _ACEOF
9921 if ac_fn_c_try_link "$LINENO"; then :
9922 ac_cv_lib_Xbsd_main=yes
9923 else
9924 ac_cv_lib_Xbsd_main=no
9926 rm -f core conftest.err conftest.$ac_objext \
9927 conftest$ac_exeext conftest.$ac_ext
9928 LIBS=$ac_check_lib_save_LIBS
9930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
9931 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
9932 if test "x$ac_cv_lib_Xbsd_main" = x""yes; then :
9933 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
9937 LIB_PTHREAD=
9941 if test "$ac_cv_header_pthread_h"; then
9942 if test "$GMALLOC_OBJ" = gmalloc.o; then
9943 emacs_pthread_function=pthread_atfork
9944 else
9945 emacs_pthread_function=pthread_self
9947 as_ac_Lib=`$as_echo "ac_cv_lib_pthread_$emacs_pthread_function" | $as_tr_sh`
9948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $emacs_pthread_function in -lpthread" >&5
9949 $as_echo_n "checking for $emacs_pthread_function in -lpthread... " >&6; }
9950 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
9951 $as_echo_n "(cached) " >&6
9952 else
9953 ac_check_lib_save_LIBS=$LIBS
9954 LIBS="-lpthread $LIBS"
9955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9956 /* end confdefs.h. */
9958 /* Override any GCC internal prototype to avoid an error.
9959 Use char because int might match the return type of a GCC
9960 builtin and then its argument prototype would still apply. */
9961 #ifdef __cplusplus
9962 extern "C"
9963 #endif
9964 char $emacs_pthread_function ();
9966 main ()
9968 return $emacs_pthread_function ();
9970 return 0;
9972 _ACEOF
9973 if ac_fn_c_try_link "$LINENO"; then :
9974 eval "$as_ac_Lib=yes"
9975 else
9976 eval "$as_ac_Lib=no"
9978 rm -f core conftest.err conftest.$ac_objext \
9979 conftest$ac_exeext conftest.$ac_ext
9980 LIBS=$ac_check_lib_save_LIBS
9982 eval ac_res=\$$as_ac_Lib
9983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9984 $as_echo "$ac_res" >&6; }
9985 eval as_val=\$$as_ac_Lib
9986 if test "x$as_val" = x""yes; then :
9987 HAVE_PTHREAD=yes
9991 if test "$HAVE_PTHREAD" = yes; then
9992 case "${canonical}" in
9993 *-hpux*) ;;
9994 *) LIB_PTHREAD="-lpthread"
9995 LIBS="$LIB_PTHREAD $LIBS" ;;
9996 esac
9998 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
10003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
10004 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
10005 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then :
10006 $as_echo_n "(cached) " >&6
10007 else
10008 ac_check_lib_save_LIBS=$LIBS
10009 LIBS="-lpthreads $LIBS"
10010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10011 /* end confdefs.h. */
10013 /* Override any GCC internal prototype to avoid an error.
10014 Use char because int might match the return type of a GCC
10015 builtin and then its argument prototype would still apply. */
10016 #ifdef __cplusplus
10017 extern "C"
10018 #endif
10019 char cma_open ();
10021 main ()
10023 return cma_open ();
10025 return 0;
10027 _ACEOF
10028 if ac_fn_c_try_link "$LINENO"; then :
10029 ac_cv_lib_pthreads_cma_open=yes
10030 else
10031 ac_cv_lib_pthreads_cma_open=no
10033 rm -f core conftest.err conftest.$ac_objext \
10034 conftest$ac_exeext conftest.$ac_ext
10035 LIBS=$ac_check_lib_save_LIBS
10037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
10038 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
10039 if test "x$ac_cv_lib_pthreads_cma_open" = x""yes; then :
10040 cat >>confdefs.h <<_ACEOF
10041 #define HAVE_LIBPTHREADS 1
10042 _ACEOF
10044 LIBS="-lpthreads $LIBS"
10049 ## Note: when using cpp in s/aix4.2.h, this definition depended on
10050 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
10051 ## the system file was sourced. Hence the value of LIBS_SYSTEM
10052 ## added to LIBS in configure would never contain the pthreads part,
10053 ## but the value used in Makefiles might. FIXME?
10055 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
10056 ## be harmless on older versions of X where it happens to exist.
10057 test "$opsys" = "aix4-2" && \
10058 test $ac_cv_lib_pthreads_cma_open = yes && \
10059 LIBS_SYSTEM="$LIBS_SYSTEM -lpthreads"
10062 case ${host_os} in
10063 aix*)
10064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
10065 $as_echo_n "checking for -bbigtoc option... " >&6; }
10066 if test "${gdb_cv_bigtoc+set}" = set; then :
10067 $as_echo_n "(cached) " >&6
10068 else
10070 case $GCC in
10071 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
10072 *) gdb_cv_bigtoc=-bbigtoc ;;
10073 esac
10075 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10077 /* end confdefs.h. */
10080 main ()
10082 int i;
10084 return 0;
10086 _ACEOF
10087 if ac_fn_c_try_link "$LINENO"; then :
10089 else
10090 gdb_cv_bigtoc=
10092 rm -f core conftest.err conftest.$ac_objext \
10093 conftest$ac_exeext conftest.$ac_ext
10096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
10097 $as_echo "$gdb_cv_bigtoc" >&6; }
10099 esac
10101 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10102 # used for the tests that follow. We set them back to REAL_CFLAGS and
10103 # REAL_CPPFLAGS later on.
10105 REAL_CFLAGS="$CFLAGS"
10106 REAL_CPPFLAGS="$CPPFLAGS"
10108 if test "${HAVE_X11}" = "yes"; then
10109 DEFS="$C_SWITCH_X_SITE $DEFS"
10110 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10111 LIBS="-lX11 $LIBS"
10112 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10113 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10115 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10116 # This is handled by LD_SWITCH_X_SITE_RPATH during the real build,
10117 # but it's more convenient here to set LD_RUN_PATH since this
10118 # also works on hosts that don't understand LD_SWITCH_X_SITE_RPATH.
10119 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10120 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10121 export LD_RUN_PATH
10124 if test "${opsys}" = "gnu-linux"; then
10125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
10126 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
10127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10128 /* end confdefs.h. */
10131 main ()
10133 XOpenDisplay ("foo");
10135 return 0;
10137 _ACEOF
10138 if ac_fn_c_try_link "$LINENO"; then :
10139 xgnu_linux_first_failure=no
10140 else
10141 xgnu_linux_first_failure=yes
10143 rm -f core conftest.err conftest.$ac_objext \
10144 conftest$ac_exeext conftest.$ac_ext
10145 if test "${xgnu_linux_first_failure}" = "yes"; then
10146 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
10147 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
10148 OLD_CPPFLAGS="$CPPFLAGS"
10149 OLD_LIBS="$LIBS"
10150 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
10151 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
10152 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
10153 LIBS="$LIBS -b i486-linuxaout"
10154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10155 /* end confdefs.h. */
10158 main ()
10160 XOpenDisplay ("foo");
10162 return 0;
10164 _ACEOF
10165 if ac_fn_c_try_link "$LINENO"; then :
10166 xgnu_linux_second_failure=no
10167 else
10168 xgnu_linux_second_failure=yes
10170 rm -f core conftest.err conftest.$ac_objext \
10171 conftest$ac_exeext conftest.$ac_ext
10172 if test "${xgnu_linux_second_failure}" = "yes"; then
10173 # If we get the same failure with -b, there is no use adding -b.
10174 # So take it out. This plays safe.
10175 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10176 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10177 CPPFLAGS="$OLD_CPPFLAGS"
10178 LIBS="$OLD_LIBS"
10179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10180 $as_echo "no" >&6; }
10181 else
10182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10183 $as_echo "yes" >&6; }
10185 else
10186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10187 $as_echo "no" >&6; }
10191 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10192 # header files included from there.
10193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
10194 $as_echo_n "checking for Xkb... " >&6; }
10195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10196 /* end confdefs.h. */
10197 #include <X11/Xlib.h>
10198 #include <X11/XKBlib.h>
10200 main ()
10202 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10204 return 0;
10206 _ACEOF
10207 if ac_fn_c_try_link "$LINENO"; then :
10208 emacs_xkb=yes
10209 else
10210 emacs_xkb=no
10212 rm -f core conftest.err conftest.$ac_objext \
10213 conftest$ac_exeext conftest.$ac_ext
10214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
10215 $as_echo "$emacs_xkb" >&6; }
10216 if test $emacs_xkb = yes; then
10218 $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
10222 for ac_func in XrmSetDatabase XScreenResourceString \
10223 XScreenNumberOfScreen
10224 do :
10225 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10226 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10227 eval as_val=\$$as_ac_var
10228 if test "x$as_val" = x""yes; then :
10229 cat >>confdefs.h <<_ACEOF
10230 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10231 _ACEOF
10234 done
10238 if test "${window_system}" = "x11"; then
10239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
10240 $as_echo_n "checking X11 version 6... " >&6; }
10241 if test "${emacs_cv_x11_version_6+set}" = set; then :
10242 $as_echo_n "(cached) " >&6
10243 else
10244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10245 /* end confdefs.h. */
10246 #include <X11/Xlib.h>
10248 main ()
10250 #if XlibSpecificationRelease < 6
10251 fail;
10252 #endif
10255 return 0;
10257 _ACEOF
10258 if ac_fn_c_try_link "$LINENO"; then :
10259 emacs_cv_x11_version_6=yes
10260 else
10261 emacs_cv_x11_version_6=no
10263 rm -f core conftest.err conftest.$ac_objext \
10264 conftest$ac_exeext conftest.$ac_ext
10267 if test $emacs_cv_x11_version_6 = yes; then
10268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
10269 $as_echo "6 or newer" >&6; }
10271 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
10274 $as_echo "#define HAVE_X_I18N 1" >>confdefs.h
10276 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
10277 ## XIM support.
10278 case "$opsys" in
10279 sol2-*) : ;;
10281 $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
10284 esac
10285 else
10286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
10287 $as_echo "before 6" >&6; }
10292 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
10293 HAVE_RSVG=no
10294 if test "${HAVE_X11}" = "yes" || test "${HAVE_NS}" = "yes"; then
10295 if test "${with_rsvg}" != "no"; then
10296 RSVG_REQUIRED=2.11.0
10297 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
10300 succeeded=no
10302 if test "$PKG_CONFIG" = "no" ; then
10304 else
10305 PKG_CONFIG_MIN_VERSION=0.9.0
10306 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
10308 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
10310 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5 &&
10311 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE" 2>&5` &&
10312 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE" 2>&5`; then
10313 edit_cflags="
10314 s,///*,/,g
10315 s/^/ /
10316 s/ -I/ $isystem/g
10317 s/^ //
10319 RSVG_CFLAGS=`$as_echo "$RSVG_CFLAGS" | sed -e "$edit_cflags"`
10320 RSVG_LIBS=`$as_echo "$RSVG_LIBS" | sed -e 's,///*,/,g'`
10321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$RSVG_CFLAGS' LIBS='$RSVG_LIBS'" >&5
10322 $as_echo "yes CFLAGS='$RSVG_CFLAGS' LIBS='$RSVG_LIBS'" >&6; }
10323 succeeded=yes
10324 else
10325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10326 $as_echo "no" >&6; }
10327 RSVG_CFLAGS=""
10328 RSVG_LIBS=""
10329 ## If we have a custom action on failure, don't print errors, but
10330 ## do set a variable so people can do so.
10331 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
10337 else
10338 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10339 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10343 if test $succeeded = yes; then
10344 HAVE_RSVG=yes
10345 else
10352 if test $HAVE_RSVG = yes; then
10354 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
10356 CFLAGS="$CFLAGS $RSVG_CFLAGS"
10357 LIBS="$RSVG_LIBS $LIBS"
10362 HAVE_IMAGEMAGICK=no
10363 if test "${HAVE_X11}" = "yes"; then
10364 if test "${with_imagemagick}" != "no"; then
10365 ## 6.2.8 is the earliest version known to work, but earlier versions
10366 ## might work - let us know if you find one.
10367 ## 6.0.7 does not work. See bug#7955.
10368 IMAGEMAGICK_MODULE="Wand >= 6.2.8"
10370 succeeded=no
10372 if test "$PKG_CONFIG" = "no" ; then
10374 else
10375 PKG_CONFIG_MIN_VERSION=0.9.0
10376 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
10378 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
10380 if $PKG_CONFIG --exists "$IMAGEMAGICK_MODULE" 2>&5 &&
10381 IMAGEMAGICK_CFLAGS=`$PKG_CONFIG --cflags "$IMAGEMAGICK_MODULE" 2>&5` &&
10382 IMAGEMAGICK_LIBS=`$PKG_CONFIG --libs "$IMAGEMAGICK_MODULE" 2>&5`; then
10383 edit_cflags="
10384 s,///*,/,g
10385 s/^/ /
10386 s/ -I/ $isystem/g
10387 s/^ //
10389 IMAGEMAGICK_CFLAGS=`$as_echo "$IMAGEMAGICK_CFLAGS" | sed -e "$edit_cflags"`
10390 IMAGEMAGICK_LIBS=`$as_echo "$IMAGEMAGICK_LIBS" | sed -e 's,///*,/,g'`
10391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$IMAGEMAGICK_CFLAGS' LIBS='$IMAGEMAGICK_LIBS'" >&5
10392 $as_echo "yes CFLAGS='$IMAGEMAGICK_CFLAGS' LIBS='$IMAGEMAGICK_LIBS'" >&6; }
10393 succeeded=yes
10394 else
10395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10396 $as_echo "no" >&6; }
10397 IMAGEMAGICK_CFLAGS=""
10398 IMAGEMAGICK_LIBS=""
10399 ## If we have a custom action on failure, don't print errors, but
10400 ## do set a variable so people can do so.
10401 IMAGEMAGICK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$IMAGEMAGICK_MODULE"`
10407 else
10408 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10409 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10413 if test $succeeded = yes; then
10414 HAVE_IMAGEMAGICK=yes
10415 else
10422 if test $HAVE_IMAGEMAGICK = yes; then
10424 $as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
10426 CFLAGS="$CFLAGS $IMAGEMAGICK_CFLAGS"
10427 LIBS="$IMAGEMAGICK_LIBS $LIBS"
10428 for ac_func in MagickExportImagePixels
10429 do :
10430 ac_fn_c_check_func "$LINENO" "MagickExportImagePixels" "ac_cv_func_MagickExportImagePixels"
10431 if test "x$ac_cv_func_MagickExportImagePixels" = x""yes; then :
10432 cat >>confdefs.h <<_ACEOF
10433 #define HAVE_MAGICKEXPORTIMAGEPIXELS 1
10434 _ACEOF
10437 done
10439 for ac_func in MagickMergeImageLayers
10440 do :
10441 ac_fn_c_check_func "$LINENO" "MagickMergeImageLayers" "ac_cv_func_MagickMergeImageLayers"
10442 if test "x$ac_cv_func_MagickMergeImageLayers" = x""yes; then :
10443 cat >>confdefs.h <<_ACEOF
10444 #define HAVE_MAGICKMERGEIMAGELAYERS 1
10445 _ACEOF
10448 done
10455 HAVE_GTK=no
10456 GTK_OBJ=
10457 if test "${with_gtk3}" = "yes"; then
10458 GLIB_REQUIRED=2.28
10459 GTK_REQUIRED=3.0
10460 GTK_MODULES="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10463 succeeded=no
10465 if test "$PKG_CONFIG" = "no" ; then
10466 pkg_check_gtk=no
10467 else
10468 PKG_CONFIG_MIN_VERSION=0.9.0
10469 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
10471 $as_echo_n "checking for $GTK_MODULES... " >&6; }
10473 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5 &&
10474 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES" 2>&5` &&
10475 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES" 2>&5`; then
10476 edit_cflags="
10477 s,///*,/,g
10478 s/^/ /
10479 s/ -I/ $isystem/g
10480 s/^ //
10482 GTK_CFLAGS=`$as_echo "$GTK_CFLAGS" | sed -e "$edit_cflags"`
10483 GTK_LIBS=`$as_echo "$GTK_LIBS" | sed -e 's,///*,/,g'`
10484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&5
10485 $as_echo "yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&6; }
10486 succeeded=yes
10487 else
10488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10489 $as_echo "no" >&6; }
10490 GTK_CFLAGS=""
10491 GTK_LIBS=""
10492 ## If we have a custom action on failure, don't print errors, but
10493 ## do set a variable so people can do so.
10494 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10500 else
10501 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10502 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10506 if test $succeeded = yes; then
10507 pkg_check_gtk=yes
10508 else
10509 pkg_check_gtk=no
10512 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
10513 as_fn_error "$GTK_PKG_ERRORS" "$LINENO" 5
10516 $as_echo "#define HAVE_GTK3 1" >>confdefs.h
10518 GTK_OBJ=emacsgtkfixed.o
10521 if test "$pkg_check_gtk" != "yes"; then
10522 HAVE_GTK=no
10523 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
10524 GLIB_REQUIRED=2.10
10525 GTK_REQUIRED=2.10
10526 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10529 succeeded=no
10531 if test "$PKG_CONFIG" = "no" ; then
10532 pkg_check_gtk=no
10533 else
10534 PKG_CONFIG_MIN_VERSION=0.9.0
10535 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
10537 $as_echo_n "checking for $GTK_MODULES... " >&6; }
10539 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5 &&
10540 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES" 2>&5` &&
10541 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES" 2>&5`; then
10542 edit_cflags="
10543 s,///*,/,g
10544 s/^/ /
10545 s/ -I/ $isystem/g
10546 s/^ //
10548 GTK_CFLAGS=`$as_echo "$GTK_CFLAGS" | sed -e "$edit_cflags"`
10549 GTK_LIBS=`$as_echo "$GTK_LIBS" | sed -e 's,///*,/,g'`
10550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&5
10551 $as_echo "yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&6; }
10552 succeeded=yes
10553 else
10554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10555 $as_echo "no" >&6; }
10556 GTK_CFLAGS=""
10557 GTK_LIBS=""
10558 ## If we have a custom action on failure, don't print errors, but
10559 ## do set a variable so people can do so.
10560 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10566 else
10567 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10568 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10572 if test $succeeded = yes; then
10573 pkg_check_gtk=yes
10574 else
10575 pkg_check_gtk=no
10578 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
10579 as_fn_error "$GTK_PKG_ERRORS" "$LINENO" 5
10584 if test x"$pkg_check_gtk" = xyes; then
10588 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
10589 CFLAGS="$CFLAGS $GTK_CFLAGS"
10590 LIBS="$GTK_LIBS $LIBS"
10591 GTK_COMPILES=no
10592 for ac_func in gtk_main
10593 do :
10594 ac_fn_c_check_func "$LINENO" "gtk_main" "ac_cv_func_gtk_main"
10595 if test "x$ac_cv_func_gtk_main" = x""yes; then :
10596 cat >>confdefs.h <<_ACEOF
10597 #define HAVE_GTK_MAIN 1
10598 _ACEOF
10599 GTK_COMPILES=yes
10601 done
10603 if test "${GTK_COMPILES}" != "yes"; then
10604 if test "$USE_X_TOOLKIT" != "maybe"; then
10605 as_fn_error "Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
10607 else
10608 HAVE_GTK=yes
10610 $as_echo "#define USE_GTK 1" >>confdefs.h
10612 GTK_OBJ="gtkutil.o $GTK_OBJ"
10613 USE_X_TOOLKIT=none
10614 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
10616 else
10617 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
10618 closing open displays. This is no problem if you just use
10619 one display, but if you use more than one and close one of them
10620 Emacs may crash." >&5
10621 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
10622 closing open displays. This is no problem if you just use
10623 one display, but if you use more than one and close one of them
10624 Emacs may crash." >&2;}
10625 sleep 3
10633 if test "${HAVE_GTK}" = "yes"; then
10635 if test "$with_toolkit_scroll_bars" != no; then
10636 with_toolkit_scroll_bars=yes
10639 HAVE_GTK_FILE_SELECTION=no
10640 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
10641 #include <gtk/gtk.h>
10643 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x""yes; then :
10644 HAVE_GTK_FILE_SELECTION=yes
10645 else
10646 HAVE_GTK_FILE_SELECTION=no
10649 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
10650 for ac_func in gtk_file_selection_new
10651 do :
10652 ac_fn_c_check_func "$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
10653 if test "x$ac_cv_func_gtk_file_selection_new" = x""yes; then :
10654 cat >>confdefs.h <<_ACEOF
10655 #define HAVE_GTK_FILE_SELECTION_NEW 1
10656 _ACEOF
10659 done
10664 for ac_func in gtk_widget_get_window gtk_widget_set_has_window \
10665 gtk_dialog_get_action_area gtk_widget_get_sensitive \
10666 gtk_widget_get_mapped gtk_adjustment_get_page_size \
10667 gtk_orientable_set_orientation \
10668 gtk_window_set_has_resize_grip
10669 do :
10670 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10671 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10672 eval as_val=\$$as_ac_var
10673 if test "x$as_val" = x""yes; then :
10674 cat >>confdefs.h <<_ACEOF
10675 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10676 _ACEOF
10679 done
10683 HAVE_DBUS=no
10684 DBUS_OBJ=
10685 if test "${with_dbus}" = "yes"; then
10687 succeeded=no
10689 if test "$PKG_CONFIG" = "no" ; then
10690 HAVE_DBUS=no
10691 else
10692 PKG_CONFIG_MIN_VERSION=0.9.0
10693 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
10695 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
10697 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5 &&
10698 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0" 2>&5` &&
10699 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0" 2>&5`; then
10700 edit_cflags="
10701 s,///*,/,g
10702 s/^/ /
10703 s/ -I/ $isystem/g
10704 s/^ //
10706 DBUS_CFLAGS=`$as_echo "$DBUS_CFLAGS" | sed -e "$edit_cflags"`
10707 DBUS_LIBS=`$as_echo "$DBUS_LIBS" | sed -e 's,///*,/,g'`
10708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$DBUS_CFLAGS' LIBS='$DBUS_LIBS'" >&5
10709 $as_echo "yes CFLAGS='$DBUS_CFLAGS' LIBS='$DBUS_LIBS'" >&6; }
10710 succeeded=yes
10711 else
10712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10713 $as_echo "no" >&6; }
10714 DBUS_CFLAGS=""
10715 DBUS_LIBS=""
10716 ## If we have a custom action on failure, don't print errors, but
10717 ## do set a variable so people can do so.
10718 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
10724 else
10725 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10726 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10730 if test $succeeded = yes; then
10731 HAVE_DBUS=yes
10732 else
10733 HAVE_DBUS=no
10736 if test "$HAVE_DBUS" = yes; then
10737 LIBS="$LIBS $DBUS_LIBS"
10739 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
10741 for ac_func in dbus_watch_get_unix_fd \
10742 dbus_type_is_valid \
10743 dbus_validate_bus_name \
10744 dbus_validate_path \
10745 dbus_validate_interface \
10746 dbus_validate_member
10747 do :
10748 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10749 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10750 eval as_val=\$$as_ac_var
10751 if test "x$as_val" = x""yes; then :
10752 cat >>confdefs.h <<_ACEOF
10753 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10754 _ACEOF
10757 done
10759 DBUS_OBJ=dbusbind.o
10764 HAVE_GSETTINGS=no
10765 if test "${HAVE_X11}" = "yes" && test "${with_gsettings}" = "yes"; then
10767 succeeded=no
10769 if test "$PKG_CONFIG" = "no" ; then
10770 HAVE_GSETTINGS=no
10771 else
10772 PKG_CONFIG_MIN_VERSION=0.9.0
10773 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gio-2.0 >= 2.26" >&5
10775 $as_echo_n "checking for gio-2.0 >= 2.26... " >&6; }
10777 if $PKG_CONFIG --exists "gio-2.0 >= 2.26" 2>&5 &&
10778 GSETTINGS_CFLAGS=`$PKG_CONFIG --cflags "gio-2.0 >= 2.26" 2>&5` &&
10779 GSETTINGS_LIBS=`$PKG_CONFIG --libs "gio-2.0 >= 2.26" 2>&5`; then
10780 edit_cflags="
10781 s,///*,/,g
10782 s/^/ /
10783 s/ -I/ $isystem/g
10784 s/^ //
10786 GSETTINGS_CFLAGS=`$as_echo "$GSETTINGS_CFLAGS" | sed -e "$edit_cflags"`
10787 GSETTINGS_LIBS=`$as_echo "$GSETTINGS_LIBS" | sed -e 's,///*,/,g'`
10788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GSETTINGS_CFLAGS' LIBS='$GSETTINGS_LIBS'" >&5
10789 $as_echo "yes CFLAGS='$GSETTINGS_CFLAGS' LIBS='$GSETTINGS_LIBS'" >&6; }
10790 succeeded=yes
10791 else
10792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10793 $as_echo "no" >&6; }
10794 GSETTINGS_CFLAGS=""
10795 GSETTINGS_LIBS=""
10796 ## If we have a custom action on failure, don't print errors, but
10797 ## do set a variable so people can do so.
10798 GSETTINGS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gio-2.0 >= 2.26"`
10804 else
10805 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10806 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10810 if test $succeeded = yes; then
10811 HAVE_GSETTINGS=yes
10812 else
10813 HAVE_GSETTINGS=no
10816 if test "$HAVE_GSETTINGS" = "yes"; then
10818 $as_echo "#define HAVE_GSETTINGS 1" >>confdefs.h
10820 SETTINGS_CFLAGS="$GSETTINGS_CFLAGS"
10821 SETTINGS_LIBS="$GSETTINGS_LIBS"
10825 HAVE_GCONF=no
10826 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
10828 succeeded=no
10830 if test "$PKG_CONFIG" = "no" ; then
10831 HAVE_GCONF=no
10832 else
10833 PKG_CONFIG_MIN_VERSION=0.9.0
10834 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
10836 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
10838 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5 &&
10839 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13" 2>&5` &&
10840 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13" 2>&5`; then
10841 edit_cflags="
10842 s,///*,/,g
10843 s/^/ /
10844 s/ -I/ $isystem/g
10845 s/^ //
10847 GCONF_CFLAGS=`$as_echo "$GCONF_CFLAGS" | sed -e "$edit_cflags"`
10848 GCONF_LIBS=`$as_echo "$GCONF_LIBS" | sed -e 's,///*,/,g'`
10849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GCONF_CFLAGS' LIBS='$GCONF_LIBS'" >&5
10850 $as_echo "yes CFLAGS='$GCONF_CFLAGS' LIBS='$GCONF_LIBS'" >&6; }
10851 succeeded=yes
10852 else
10853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10854 $as_echo "no" >&6; }
10855 GCONF_CFLAGS=""
10856 GCONF_LIBS=""
10857 ## If we have a custom action on failure, don't print errors, but
10858 ## do set a variable so people can do so.
10859 GCONF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
10865 else
10866 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10867 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10871 if test $succeeded = yes; then
10872 HAVE_GCONF=yes
10873 else
10874 HAVE_GCONF=no
10877 if test "$HAVE_GCONF" = yes; then
10879 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
10881 SETTINGS_CFLAGS="$SETTINGS_CFLAGS $GCONF_CFLAGS"
10882 SETTINGS_LIBS="$SETTINGS_LIBS $GCONF_LIBS"
10886 if test "$HAVE_GSETTINGS" = "yes" || test "$HAVE_GCONF" = "yes"; then
10887 SAVE_CFLAGS="$CFLAGS"
10888 SAVE_LIBS="$LIBS"
10889 CFLAGS="$SETTINGS_CFLAGS $CFLAGS"
10890 LIBS="$SETTINGS_LIBS $LIBS"
10891 for ac_func in g_type_init
10892 do :
10893 ac_fn_c_check_func "$LINENO" "g_type_init" "ac_cv_func_g_type_init"
10894 if test "x$ac_cv_func_g_type_init" = x""yes; then :
10895 cat >>confdefs.h <<_ACEOF
10896 #define HAVE_G_TYPE_INIT 1
10897 _ACEOF
10900 done
10902 CFLAGS="$SAVE_CFLAGS"
10903 LIBS="$SAVE_LIBS"
10909 HAVE_LIBSELINUX=no
10910 LIBSELINUX_LIBS=
10911 if test "${with_selinux}" = "yes"; then
10912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
10913 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
10914 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then :
10915 $as_echo_n "(cached) " >&6
10916 else
10917 ac_check_lib_save_LIBS=$LIBS
10918 LIBS="-lselinux $LIBS"
10919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10920 /* end confdefs.h. */
10922 /* Override any GCC internal prototype to avoid an error.
10923 Use char because int might match the return type of a GCC
10924 builtin and then its argument prototype would still apply. */
10925 #ifdef __cplusplus
10926 extern "C"
10927 #endif
10928 char lgetfilecon ();
10930 main ()
10932 return lgetfilecon ();
10934 return 0;
10936 _ACEOF
10937 if ac_fn_c_try_link "$LINENO"; then :
10938 ac_cv_lib_selinux_lgetfilecon=yes
10939 else
10940 ac_cv_lib_selinux_lgetfilecon=no
10942 rm -f core conftest.err conftest.$ac_objext \
10943 conftest$ac_exeext conftest.$ac_ext
10944 LIBS=$ac_check_lib_save_LIBS
10946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
10947 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
10948 if test "x$ac_cv_lib_selinux_lgetfilecon" = x""yes; then :
10949 HAVE_LIBSELINUX=yes
10950 else
10951 HAVE_LIBSELINUX=no
10954 if test "$HAVE_LIBSELINUX" = yes; then
10956 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
10958 LIBSELINUX_LIBS=-lselinux
10963 HAVE_GNUTLS=no
10964 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY=no
10965 if test "${with_gnutls}" = "yes" ; then
10967 succeeded=no
10969 if test "$PKG_CONFIG" = "no" ; then
10970 HAVE_GNUTLS=no
10971 else
10972 PKG_CONFIG_MIN_VERSION=0.9.0
10973 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.6.6" >&5
10975 $as_echo_n "checking for gnutls >= 2.6.6... " >&6; }
10977 if $PKG_CONFIG --exists "gnutls >= 2.6.6" 2>&5 &&
10978 LIBGNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls >= 2.6.6" 2>&5` &&
10979 LIBGNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls >= 2.6.6" 2>&5`; then
10980 edit_cflags="
10981 s,///*,/,g
10982 s/^/ /
10983 s/ -I/ $isystem/g
10984 s/^ //
10986 LIBGNUTLS_CFLAGS=`$as_echo "$LIBGNUTLS_CFLAGS" | sed -e "$edit_cflags"`
10987 LIBGNUTLS_LIBS=`$as_echo "$LIBGNUTLS_LIBS" | sed -e 's,///*,/,g'`
10988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBGNUTLS_CFLAGS' LIBS='$LIBGNUTLS_LIBS'" >&5
10989 $as_echo "yes CFLAGS='$LIBGNUTLS_CFLAGS' LIBS='$LIBGNUTLS_LIBS'" >&6; }
10990 succeeded=yes
10991 else
10992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10993 $as_echo "no" >&6; }
10994 LIBGNUTLS_CFLAGS=""
10995 LIBGNUTLS_LIBS=""
10996 ## If we have a custom action on failure, don't print errors, but
10997 ## do set a variable so people can do so.
10998 LIBGNUTLS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnutls >= 2.6.6"`
11004 else
11005 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11006 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11010 if test $succeeded = yes; then
11011 HAVE_GNUTLS=yes
11012 else
11013 HAVE_GNUTLS=no
11016 if test "${HAVE_GNUTLS}" = "yes"; then
11018 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
11022 CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
11023 LIBS="$LIBGNUTLS_LIBS $LIBS"
11024 for ac_func in gnutls_certificate_set_verify_function
11025 do :
11026 ac_fn_c_check_func "$LINENO" "gnutls_certificate_set_verify_function" "ac_cv_func_gnutls_certificate_set_verify_function"
11027 if test "x$ac_cv_func_gnutls_certificate_set_verify_function" = x""yes; then :
11028 cat >>confdefs.h <<_ACEOF
11029 #define HAVE_GNUTLS_CERTIFICATE_SET_VERIFY_FUNCTION 1
11030 _ACEOF
11031 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY=yes
11033 done
11036 if test "${HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY}" = "yes"; then
11038 $as_echo "#define HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY 1" >>confdefs.h
11046 HAVE_XAW3D=no
11047 LUCID_LIBW=
11048 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
11049 if test "$with_xaw3d" != no; then
11050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
11051 $as_echo_n "checking for xaw3d... " >&6; }
11052 if test "${emacs_cv_xaw3d+set}" = set; then :
11053 $as_echo_n "(cached) " >&6
11054 else
11055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11056 /* end confdefs.h. */
11058 #include <X11/Intrinsic.h>
11059 #include <X11/Xaw3d/Simple.h>
11061 main ()
11065 return 0;
11067 _ACEOF
11068 if ac_fn_c_try_link "$LINENO"; then :
11069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XawScrollbarSetThumb in -lXaw3d" >&5
11070 $as_echo_n "checking for XawScrollbarSetThumb in -lXaw3d... " >&6; }
11071 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then :
11072 $as_echo_n "(cached) " >&6
11073 else
11074 ac_check_lib_save_LIBS=$LIBS
11075 LIBS="-lXaw3d $LIBS"
11076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11077 /* end confdefs.h. */
11079 /* Override any GCC internal prototype to avoid an error.
11080 Use char because int might match the return type of a GCC
11081 builtin and then its argument prototype would still apply. */
11082 #ifdef __cplusplus
11083 extern "C"
11084 #endif
11085 char XawScrollbarSetThumb ();
11087 main ()
11089 return XawScrollbarSetThumb ();
11091 return 0;
11093 _ACEOF
11094 if ac_fn_c_try_link "$LINENO"; then :
11095 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
11096 else
11097 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
11099 rm -f core conftest.err conftest.$ac_objext \
11100 conftest$ac_exeext conftest.$ac_ext
11101 LIBS=$ac_check_lib_save_LIBS
11103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
11104 $as_echo "$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
11105 if test "x$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" = x""yes; then :
11106 emacs_cv_xaw3d=yes
11107 else
11108 emacs_cv_xaw3d=no
11111 else
11112 emacs_cv_xaw3d=no
11114 rm -f core conftest.err conftest.$ac_objext \
11115 conftest$ac_exeext conftest.$ac_ext
11118 else
11119 emacs_cv_xaw3d=no
11121 if test $emacs_cv_xaw3d = yes; then
11122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
11123 $as_echo "yes; using Lucid toolkit" >&6; }
11124 USE_X_TOOLKIT=LUCID
11125 HAVE_XAW3D=yes
11126 LUCID_LIBW=-lXaw3d
11128 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
11130 else
11131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11132 $as_echo "no" >&6; }
11133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
11134 $as_echo_n "checking for libXaw... " >&6; }
11135 if test "${emacs_cv_xaw+set}" = set; then :
11136 $as_echo_n "(cached) " >&6
11137 else
11138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11139 /* end confdefs.h. */
11141 #include <X11/Intrinsic.h>
11142 #include <X11/Xaw/Simple.h>
11144 main ()
11148 return 0;
11150 _ACEOF
11151 if ac_fn_c_try_link "$LINENO"; then :
11152 emacs_cv_xaw=yes
11153 else
11154 emacs_cv_xaw=no
11156 rm -f core conftest.err conftest.$ac_objext \
11157 conftest$ac_exeext conftest.$ac_ext
11160 if test $emacs_cv_xaw = yes; then
11161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
11162 $as_echo "yes; using Lucid toolkit" >&6; }
11163 USE_X_TOOLKIT=LUCID
11164 LUCID_LIBW=-lXaw
11165 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
11166 as_fn_error "Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
11167 else
11168 as_fn_error "No X toolkit could be found.
11169 If you are sure you want Emacs compiled without an X toolkit, pass
11170 --with-x-toolkit=no
11171 to configure. Otherwise, install the development libraries for the toolkit
11172 that you want to use (e.g. Gtk+) and re-run configure." "$LINENO" 5
11177 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
11179 LIBXTR6=
11180 if test "${USE_X_TOOLKIT}" != "none"; then
11181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
11182 $as_echo_n "checking X11 toolkit version... " >&6; }
11183 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then :
11184 $as_echo_n "(cached) " >&6
11185 else
11186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11187 /* end confdefs.h. */
11188 #include <X11/Intrinsic.h>
11190 main ()
11192 #if XtSpecificationRelease < 6
11193 fail;
11194 #endif
11197 return 0;
11199 _ACEOF
11200 if ac_fn_c_try_link "$LINENO"; then :
11201 emacs_cv_x11_toolkit_version_6=yes
11202 else
11203 emacs_cv_x11_toolkit_version_6=no
11205 rm -f core conftest.err conftest.$ac_objext \
11206 conftest$ac_exeext conftest.$ac_ext
11209 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
11210 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
11212 $as_echo "6 or newer" >&6; }
11214 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
11216 LIBXTR6="-lSM -lICE"
11217 case "$opsys" in
11218 ## Use libw.a along with X11R6 Xt.
11219 unixware) LIBXTR6="$LIBXTR6 -lw" ;;
11220 esac
11221 else
11222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
11223 $as_echo "before 6" >&6; }
11226 OLDLIBS="$LIBS"
11227 if test x$HAVE_X11XTR6 = xyes; then
11228 LIBS="-lXt -lSM -lICE $LIBS"
11229 else
11230 LIBS="-lXt $LIBS"
11232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
11233 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
11234 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then :
11235 $as_echo_n "(cached) " >&6
11236 else
11237 ac_check_lib_save_LIBS=$LIBS
11238 LIBS="-lXmu $LIBS"
11239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11240 /* end confdefs.h. */
11242 /* Override any GCC internal prototype to avoid an error.
11243 Use char because int might match the return type of a GCC
11244 builtin and then its argument prototype would still apply. */
11245 #ifdef __cplusplus
11246 extern "C"
11247 #endif
11248 char XmuConvertStandardSelection ();
11250 main ()
11252 return XmuConvertStandardSelection ();
11254 return 0;
11256 _ACEOF
11257 if ac_fn_c_try_link "$LINENO"; then :
11258 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
11259 else
11260 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
11262 rm -f core conftest.err conftest.$ac_objext \
11263 conftest$ac_exeext conftest.$ac_ext
11264 LIBS=$ac_check_lib_save_LIBS
11266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
11267 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
11268 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x""yes; then :
11269 cat >>confdefs.h <<_ACEOF
11270 #define HAVE_LIBXMU 1
11271 _ACEOF
11273 LIBS="-lXmu $LIBS"
11277 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
11281 LIBXMU=-lXmu
11282 case $opsys in
11283 ## These systems don't supply Xmu.
11284 hpux* | aix4-2 )
11285 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU=
11287 esac
11290 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
11291 if test "${HAVE_X11}" = "yes"; then
11292 if test "${USE_X_TOOLKIT}" != "none"; then
11293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
11294 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
11295 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
11296 $as_echo_n "(cached) " >&6
11297 else
11298 ac_check_lib_save_LIBS=$LIBS
11299 LIBS="-lXext $LIBS"
11300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11301 /* end confdefs.h. */
11303 /* Override any GCC internal prototype to avoid an error.
11304 Use char because int might match the return type of a GCC
11305 builtin and then its argument prototype would still apply. */
11306 #ifdef __cplusplus
11307 extern "C"
11308 #endif
11309 char XShapeQueryExtension ();
11311 main ()
11313 return XShapeQueryExtension ();
11315 return 0;
11317 _ACEOF
11318 if ac_fn_c_try_link "$LINENO"; then :
11319 ac_cv_lib_Xext_XShapeQueryExtension=yes
11320 else
11321 ac_cv_lib_Xext_XShapeQueryExtension=no
11323 rm -f core conftest.err conftest.$ac_objext \
11324 conftest$ac_exeext conftest.$ac_ext
11325 LIBS=$ac_check_lib_save_LIBS
11327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
11328 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
11329 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then :
11330 cat >>confdefs.h <<_ACEOF
11331 #define HAVE_LIBXEXT 1
11332 _ACEOF
11334 LIBS="-lXext $LIBS"
11341 LIBXP=
11342 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif version 2.1" >&5
11344 $as_echo_n "checking for Motif version 2.1... " >&6; }
11345 if test "${emacs_cv_motif_version_2_1+set}" = set; then :
11346 $as_echo_n "(cached) " >&6
11347 else
11348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11349 /* end confdefs.h. */
11350 #include <Xm/Xm.h>
11352 main ()
11354 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
11355 int x = 5;
11356 #else
11357 Motif version prior to 2.1.
11358 #endif
11360 return 0;
11362 _ACEOF
11363 if ac_fn_c_try_compile "$LINENO"; then :
11364 emacs_cv_motif_version_2_1=yes
11365 else
11366 emacs_cv_motif_version_2_1=no
11368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
11371 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
11372 if test $emacs_cv_motif_version_2_1 = yes; then
11373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
11374 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
11375 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then :
11376 $as_echo_n "(cached) " >&6
11377 else
11378 ac_check_lib_save_LIBS=$LIBS
11379 LIBS="-lXp $LIBS"
11380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11381 /* end confdefs.h. */
11383 /* Override any GCC internal prototype to avoid an error.
11384 Use char because int might match the return type of a GCC
11385 builtin and then its argument prototype would still apply. */
11386 #ifdef __cplusplus
11387 extern "C"
11388 #endif
11389 char XpCreateContext ();
11391 main ()
11393 return XpCreateContext ();
11395 return 0;
11397 _ACEOF
11398 if ac_fn_c_try_link "$LINENO"; then :
11399 ac_cv_lib_Xp_XpCreateContext=yes
11400 else
11401 ac_cv_lib_Xp_XpCreateContext=no
11403 rm -f core conftest.err conftest.$ac_objext \
11404 conftest$ac_exeext conftest.$ac_ext
11405 LIBS=$ac_check_lib_save_LIBS
11407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
11408 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
11409 if test "x$ac_cv_lib_Xp_XpCreateContext" = x""yes; then :
11410 LIBXP=-lXp
11413 else
11414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
11415 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
11416 if test "${emacs_cv_lesstif+set}" = set; then :
11417 $as_echo_n "(cached) " >&6
11418 else
11419 # We put this in CFLAGS temporarily to precede other -I options
11420 # that might be in CFLAGS temporarily.
11421 # We put this in CPPFLAGS where it precedes the other -I options.
11422 OLD_CPPFLAGS=$CPPFLAGS
11423 OLD_CFLAGS=$CFLAGS
11424 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
11425 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
11426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11427 /* end confdefs.h. */
11428 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
11430 main ()
11432 int x = 5;
11434 return 0;
11436 _ACEOF
11437 if ac_fn_c_try_compile "$LINENO"; then :
11438 emacs_cv_lesstif=yes
11439 else
11440 emacs_cv_lesstif=no
11442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
11445 $as_echo "$emacs_cv_lesstif" >&6; }
11446 if test $emacs_cv_lesstif = yes; then
11447 # Make sure this -I option remains in CPPFLAGS after it is set
11448 # back to REAL_CPPFLAGS.
11449 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
11450 # have those other -I options anyway. Ultimately, having this
11451 # directory ultimately in CPPFLAGS will be enough.
11452 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
11453 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
11454 else
11455 CFLAGS=$OLD_CFLAGS
11456 CPPFLAGS=$OLD_CPPFLAGS
11459 ac_fn_c_check_header_mongrel "$LINENO" "Xm/BulletinB.h" "ac_cv_header_Xm_BulletinB_h" "$ac_includes_default"
11460 if test "x$ac_cv_header_Xm_BulletinB_h" = x""yes; then :
11462 else
11463 as_fn_error "Motif toolkit requested but requirements not found." "$LINENO" 5
11470 USE_TOOLKIT_SCROLL_BARS=no
11471 if test "${with_toolkit_scroll_bars}" != "no"; then
11472 if test "${USE_X_TOOLKIT}" != "none"; then
11473 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11474 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11476 HAVE_XAW3D=no
11477 USE_TOOLKIT_SCROLL_BARS=yes
11478 elif test "${HAVE_XAW3D}" = "yes" || test "${USE_X_TOOLKIT}" = "LUCID"; then
11479 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11481 USE_TOOLKIT_SCROLL_BARS=yes
11483 elif test "${HAVE_GTK}" = "yes"; then
11484 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11486 USE_TOOLKIT_SCROLL_BARS=yes
11487 elif test "${HAVE_NS}" = "yes"; then
11488 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11490 USE_TOOLKIT_SCROLL_BARS=yes
11494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11495 /* end confdefs.h. */
11497 #include <X11/Xlib.h>
11498 #include <X11/Xresource.h>
11500 main ()
11502 XIMProc callback;
11504 return 0;
11506 _ACEOF
11507 if ac_fn_c_try_compile "$LINENO"; then :
11508 HAVE_XIM=yes
11510 $as_echo "#define HAVE_XIM 1" >>confdefs.h
11512 else
11513 HAVE_XIM=no
11515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11518 if test "${with_xim}" != "no"; then
11520 $as_echo "#define USE_XIM 1" >>confdefs.h
11525 if test "${HAVE_XIM}" != "no"; then
11526 late_CFLAGS=$CFLAGS
11527 if test "$GCC" = yes; then
11528 CFLAGS="$CFLAGS --pedantic-errors"
11530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11531 /* end confdefs.h. */
11533 #include <X11/Xlib.h>
11534 #include <X11/Xresource.h>
11536 main ()
11538 Display *display;
11539 XrmDatabase db;
11540 char *res_name;
11541 char *res_class;
11542 XIMProc callback;
11543 XPointer *client_data;
11544 #ifndef __GNUC__
11545 /* If we're not using GCC, it's probably not XFree86, and this is
11546 probably right, but we can't use something like --pedantic-errors. */
11547 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
11548 char*, XIMProc, XPointer*);
11549 #endif
11550 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
11551 client_data);
11553 return 0;
11555 _ACEOF
11556 if ac_fn_c_try_compile "$LINENO"; then :
11557 emacs_cv_arg6_star=yes
11559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11560 if test "$emacs_cv_arg6_star" = yes; then
11561 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
11563 else
11564 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
11567 CFLAGS=$late_CFLAGS
11570 ### Start of font-backend (under any platform) section.
11571 # (nothing here yet -- this is a placeholder)
11572 ### End of font-backend (under any platform) section.
11574 ### Start of font-backend (under X11) section.
11575 if test "${HAVE_X11}" = "yes"; then
11577 succeeded=no
11579 if test "$PKG_CONFIG" = "no" ; then
11580 HAVE_FC=no
11581 else
11582 PKG_CONFIG_MIN_VERSION=0.9.0
11583 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
11585 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
11587 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5 &&
11588 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0" 2>&5` &&
11589 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0" 2>&5`; then
11590 edit_cflags="
11591 s,///*,/,g
11592 s/^/ /
11593 s/ -I/ $isystem/g
11594 s/^ //
11596 FONTCONFIG_CFLAGS=`$as_echo "$FONTCONFIG_CFLAGS" | sed -e "$edit_cflags"`
11597 FONTCONFIG_LIBS=`$as_echo "$FONTCONFIG_LIBS" | sed -e 's,///*,/,g'`
11598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$FONTCONFIG_CFLAGS' LIBS='$FONTCONFIG_LIBS'" >&5
11599 $as_echo "yes CFLAGS='$FONTCONFIG_CFLAGS' LIBS='$FONTCONFIG_LIBS'" >&6; }
11600 succeeded=yes
11601 else
11602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11603 $as_echo "no" >&6; }
11604 FONTCONFIG_CFLAGS=""
11605 FONTCONFIG_LIBS=""
11606 ## If we have a custom action on failure, don't print errors, but
11607 ## do set a variable so people can do so.
11608 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
11614 else
11615 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11616 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11620 if test $succeeded = yes; then
11621 HAVE_FC=yes
11622 else
11623 HAVE_FC=no
11627 ## Use -lXft if available, unless `--with-xft=no'.
11628 HAVE_XFT=maybe
11629 if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then
11630 with_xft="no";
11632 if test "x${with_xft}" != "xno"; then
11635 succeeded=no
11637 if test "$PKG_CONFIG" = "no" ; then
11638 HAVE_XFT=no
11639 else
11640 PKG_CONFIG_MIN_VERSION=0.9.0
11641 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
11643 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
11645 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5 &&
11646 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0" 2>&5` &&
11647 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0" 2>&5`; then
11648 edit_cflags="
11649 s,///*,/,g
11650 s/^/ /
11651 s/ -I/ $isystem/g
11652 s/^ //
11654 XFT_CFLAGS=`$as_echo "$XFT_CFLAGS" | sed -e "$edit_cflags"`
11655 XFT_LIBS=`$as_echo "$XFT_LIBS" | sed -e 's,///*,/,g'`
11656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$XFT_CFLAGS' LIBS='$XFT_LIBS'" >&5
11657 $as_echo "yes CFLAGS='$XFT_CFLAGS' LIBS='$XFT_LIBS'" >&6; }
11658 succeeded=yes
11659 else
11660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11661 $as_echo "no" >&6; }
11662 XFT_CFLAGS=""
11663 XFT_LIBS=""
11664 ## If we have a custom action on failure, don't print errors, but
11665 ## do set a variable so people can do so.
11666 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
11672 else
11673 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11674 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11678 if test $succeeded = yes; then
11680 else
11681 HAVE_XFT=no
11684 ## Because xftfont.c uses XRenderQueryExtension, we also
11685 ## need to link to -lXrender.
11686 HAVE_XRENDER=no
11687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
11688 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
11689 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
11690 $as_echo_n "(cached) " >&6
11691 else
11692 ac_check_lib_save_LIBS=$LIBS
11693 LIBS="-lXrender $LIBS"
11694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11695 /* end confdefs.h. */
11697 /* Override any GCC internal prototype to avoid an error.
11698 Use char because int might match the return type of a GCC
11699 builtin and then its argument prototype would still apply. */
11700 #ifdef __cplusplus
11701 extern "C"
11702 #endif
11703 char XRenderQueryExtension ();
11705 main ()
11707 return XRenderQueryExtension ();
11709 return 0;
11711 _ACEOF
11712 if ac_fn_c_try_link "$LINENO"; then :
11713 ac_cv_lib_Xrender_XRenderQueryExtension=yes
11714 else
11715 ac_cv_lib_Xrender_XRenderQueryExtension=no
11717 rm -f core conftest.err conftest.$ac_objext \
11718 conftest$ac_exeext conftest.$ac_ext
11719 LIBS=$ac_check_lib_save_LIBS
11721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
11722 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
11723 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x""yes; then :
11724 HAVE_XRENDER=yes
11727 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
11728 OLD_CPPFLAGS="$CPPFLAGS"
11729 OLD_CFLAGS="$CFLAGS"
11730 OLD_LIBS="$LIBS"
11731 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
11732 CFLAGS="$CFLAGS $XFT_CFLAGS"
11733 XFT_LIBS="-lXrender $XFT_LIBS"
11734 LIBS="$XFT_LIBS $LIBS"
11735 ac_fn_c_check_header_mongrel "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
11736 if test "x$ac_cv_header_X11_Xft_Xft_h" = x""yes; then :
11737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
11738 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
11739 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then :
11740 $as_echo_n "(cached) " >&6
11741 else
11742 ac_check_lib_save_LIBS=$LIBS
11743 LIBS="-lXft $XFT_LIBS $LIBS"
11744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11745 /* end confdefs.h. */
11747 /* Override any GCC internal prototype to avoid an error.
11748 Use char because int might match the return type of a GCC
11749 builtin and then its argument prototype would still apply. */
11750 #ifdef __cplusplus
11751 extern "C"
11752 #endif
11753 char XftFontOpen ();
11755 main ()
11757 return XftFontOpen ();
11759 return 0;
11761 _ACEOF
11762 if ac_fn_c_try_link "$LINENO"; then :
11763 ac_cv_lib_Xft_XftFontOpen=yes
11764 else
11765 ac_cv_lib_Xft_XftFontOpen=no
11767 rm -f core conftest.err conftest.$ac_objext \
11768 conftest$ac_exeext conftest.$ac_ext
11769 LIBS=$ac_check_lib_save_LIBS
11771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
11772 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
11773 if test "x$ac_cv_lib_Xft_XftFontOpen" = x""yes; then :
11774 HAVE_XFT=yes
11781 if test "${HAVE_XFT}" = "yes"; then
11783 $as_echo "#define HAVE_XFT 1" >>confdefs.h
11786 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
11787 else
11788 CPPFLAGS="$OLD_CPPFLAGS"
11789 CFLAGS="$OLD_CFLAGS"
11790 LIBS="$OLD_LIBS"
11791 fi # "${HAVE_XFT}" = "yes"
11792 fi # "$HAVE_XFT" != no
11793 fi # "x${with_xft}" != "xno"
11795 ## We used to allow building with FreeType and without Xft.
11796 ## However, the ftx font backend driver is not in good shape.
11797 if test "$HAVE_XFT" != "yes"; then
11798 HAVE_XFT=no
11799 HAVE_FREETYPE=no
11800 else
11802 succeeded=no
11804 if test "$PKG_CONFIG" = "no" ; then
11805 HAVE_FREETYPE=no
11806 else
11807 PKG_CONFIG_MIN_VERSION=0.9.0
11808 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype2" >&5
11810 $as_echo_n "checking for freetype2... " >&6; }
11812 if $PKG_CONFIG --exists "freetype2" 2>&5 &&
11813 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>&5` &&
11814 FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2" 2>&5`; then
11815 edit_cflags="
11816 s,///*,/,g
11817 s/^/ /
11818 s/ -I/ $isystem/g
11819 s/^ //
11821 FREETYPE_CFLAGS=`$as_echo "$FREETYPE_CFLAGS" | sed -e "$edit_cflags"`
11822 FREETYPE_LIBS=`$as_echo "$FREETYPE_LIBS" | sed -e 's,///*,/,g'`
11823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$FREETYPE_CFLAGS' LIBS='$FREETYPE_LIBS'" >&5
11824 $as_echo "yes CFLAGS='$FREETYPE_CFLAGS' LIBS='$FREETYPE_LIBS'" >&6; }
11825 succeeded=yes
11826 else
11827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11828 $as_echo "no" >&6; }
11829 FREETYPE_CFLAGS=""
11830 FREETYPE_LIBS=""
11831 ## If we have a custom action on failure, don't print errors, but
11832 ## do set a variable so people can do so.
11833 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
11839 else
11840 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11841 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11845 if test $succeeded = yes; then
11846 HAVE_FREETYPE=yes
11847 else
11848 HAVE_FREETYPE=no
11852 test "$HAVE_FREETYPE" = "no" && as_fn_error "libxft requires libfreetype" "$LINENO" 5
11855 HAVE_LIBOTF=no
11856 if test "${HAVE_FREETYPE}" = "yes"; then
11858 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
11860 if test "${with_libotf}" != "no"; then
11862 succeeded=no
11864 if test "$PKG_CONFIG" = "no" ; then
11865 HAVE_LIBOTF=no
11866 else
11867 PKG_CONFIG_MIN_VERSION=0.9.0
11868 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
11870 $as_echo_n "checking for libotf... " >&6; }
11872 if $PKG_CONFIG --exists "libotf" 2>&5 &&
11873 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf" 2>&5` &&
11874 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf" 2>&5`; then
11875 edit_cflags="
11876 s,///*,/,g
11877 s/^/ /
11878 s/ -I/ $isystem/g
11879 s/^ //
11881 LIBOTF_CFLAGS=`$as_echo "$LIBOTF_CFLAGS" | sed -e "$edit_cflags"`
11882 LIBOTF_LIBS=`$as_echo "$LIBOTF_LIBS" | sed -e 's,///*,/,g'`
11883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBOTF_CFLAGS' LIBS='$LIBOTF_LIBS'" >&5
11884 $as_echo "yes CFLAGS='$LIBOTF_CFLAGS' LIBS='$LIBOTF_LIBS'" >&6; }
11885 succeeded=yes
11886 else
11887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11888 $as_echo "no" >&6; }
11889 LIBOTF_CFLAGS=""
11890 LIBOTF_LIBS=""
11891 ## If we have a custom action on failure, don't print errors, but
11892 ## do set a variable so people can do so.
11893 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
11899 else
11900 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11901 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11905 if test $succeeded = yes; then
11906 HAVE_LIBOTF=yes
11907 else
11908 HAVE_LIBOTF=no
11911 if test "$HAVE_LIBOTF" = "yes"; then
11913 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
11915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
11916 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
11917 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then :
11918 $as_echo_n "(cached) " >&6
11919 else
11920 ac_check_lib_save_LIBS=$LIBS
11921 LIBS="-lotf $LIBS"
11922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11923 /* end confdefs.h. */
11925 /* Override any GCC internal prototype to avoid an error.
11926 Use char because int might match the return type of a GCC
11927 builtin and then its argument prototype would still apply. */
11928 #ifdef __cplusplus
11929 extern "C"
11930 #endif
11931 char OTF_get_variation_glyphs ();
11933 main ()
11935 return OTF_get_variation_glyphs ();
11937 return 0;
11939 _ACEOF
11940 if ac_fn_c_try_link "$LINENO"; then :
11941 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
11942 else
11943 ac_cv_lib_otf_OTF_get_variation_glyphs=no
11945 rm -f core conftest.err conftest.$ac_objext \
11946 conftest$ac_exeext conftest.$ac_ext
11947 LIBS=$ac_check_lib_save_LIBS
11949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
11950 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
11951 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x""yes; then :
11952 HAVE_OTF_GET_VARIATION_GLYPHS=yes
11953 else
11954 HAVE_OTF_GET_VARIATION_GLYPHS=no
11957 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
11959 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
11966 HAVE_M17N_FLT=no
11967 if test "${HAVE_LIBOTF}" = yes; then
11968 if test "${with_m17n_flt}" != "no"; then
11970 succeeded=no
11972 if test "$PKG_CONFIG" = "no" ; then
11973 HAVE_M17N_FLT=no
11974 else
11975 PKG_CONFIG_MIN_VERSION=0.9.0
11976 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
11978 $as_echo_n "checking for m17n-flt... " >&6; }
11980 if $PKG_CONFIG --exists "m17n-flt" 2>&5 &&
11981 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt" 2>&5` &&
11982 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt" 2>&5`; then
11983 edit_cflags="
11984 s,///*,/,g
11985 s/^/ /
11986 s/ -I/ $isystem/g
11987 s/^ //
11989 M17N_FLT_CFLAGS=`$as_echo "$M17N_FLT_CFLAGS" | sed -e "$edit_cflags"`
11990 M17N_FLT_LIBS=`$as_echo "$M17N_FLT_LIBS" | sed -e 's,///*,/,g'`
11991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$M17N_FLT_CFLAGS' LIBS='$M17N_FLT_LIBS'" >&5
11992 $as_echo "yes CFLAGS='$M17N_FLT_CFLAGS' LIBS='$M17N_FLT_LIBS'" >&6; }
11993 succeeded=yes
11994 else
11995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11996 $as_echo "no" >&6; }
11997 M17N_FLT_CFLAGS=""
11998 M17N_FLT_LIBS=""
11999 ## If we have a custom action on failure, don't print errors, but
12000 ## do set a variable so people can do so.
12001 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
12007 else
12008 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12009 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12013 if test $succeeded = yes; then
12014 HAVE_M17N_FLT=yes
12015 else
12016 HAVE_M17N_FLT=no
12019 if test "$HAVE_M17N_FLT" = "yes"; then
12021 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
12026 else
12027 HAVE_XFT=no
12028 HAVE_FREETYPE=no
12029 HAVE_LIBOTF=no
12030 HAVE_M17N_FLT=no
12033 ### End of font-backend (under X11) section.
12044 ### Use -lXpm if available, unless `--with-xpm=no'.
12045 HAVE_XPM=no
12046 LIBXPM=
12047 if test "${HAVE_X11}" = "yes"; then
12048 if test "${with_xpm}" != "no"; then
12049 ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
12050 if test "x$ac_cv_header_X11_xpm_h" = x""yes; then :
12051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
12052 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
12053 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then :
12054 $as_echo_n "(cached) " >&6
12055 else
12056 ac_check_lib_save_LIBS=$LIBS
12057 LIBS="-lXpm -lX11 $LIBS"
12058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12059 /* end confdefs.h. */
12061 /* Override any GCC internal prototype to avoid an error.
12062 Use char because int might match the return type of a GCC
12063 builtin and then its argument prototype would still apply. */
12064 #ifdef __cplusplus
12065 extern "C"
12066 #endif
12067 char XpmReadFileToPixmap ();
12069 main ()
12071 return XpmReadFileToPixmap ();
12073 return 0;
12075 _ACEOF
12076 if ac_fn_c_try_link "$LINENO"; then :
12077 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
12078 else
12079 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
12081 rm -f core conftest.err conftest.$ac_objext \
12082 conftest$ac_exeext conftest.$ac_ext
12083 LIBS=$ac_check_lib_save_LIBS
12085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
12086 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
12087 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x""yes; then :
12088 HAVE_XPM=yes
12094 if test "${HAVE_XPM}" = "yes"; then
12095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
12096 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
12097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12098 /* end confdefs.h. */
12099 #include "X11/xpm.h"
12100 #ifndef XpmReturnAllocPixels
12101 no_return_alloc_pixels
12102 #endif
12104 _ACEOF
12105 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12106 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then :
12107 HAVE_XPM=no
12108 else
12109 HAVE_XPM=yes
12111 rm -f conftest*
12114 if test "${HAVE_XPM}" = "yes"; then
12115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12116 $as_echo "yes" >&6; }
12117 else
12118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12119 $as_echo "no" >&6; }
12124 if test "${HAVE_XPM}" = "yes"; then
12126 $as_echo "#define HAVE_XPM 1" >>confdefs.h
12128 LIBXPM=-lXpm
12133 ### Use -ljpeg if available, unless `--with-jpeg=no'.
12134 HAVE_JPEG=no
12135 LIBJPEG=
12136 if test "${HAVE_X11}" = "yes"; then
12137 if test "${with_jpeg}" != "no"; then
12138 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
12139 if test "x$ac_cv_header_jerror_h" = x""yes; then :
12140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
12141 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
12142 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then :
12143 $as_echo_n "(cached) " >&6
12144 else
12145 ac_check_lib_save_LIBS=$LIBS
12146 LIBS="-ljpeg $LIBS"
12147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12148 /* end confdefs.h. */
12150 /* Override any GCC internal prototype to avoid an error.
12151 Use char because int might match the return type of a GCC
12152 builtin and then its argument prototype would still apply. */
12153 #ifdef __cplusplus
12154 extern "C"
12155 #endif
12156 char jpeg_destroy_compress ();
12158 main ()
12160 return jpeg_destroy_compress ();
12162 return 0;
12164 _ACEOF
12165 if ac_fn_c_try_link "$LINENO"; then :
12166 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
12167 else
12168 ac_cv_lib_jpeg_jpeg_destroy_compress=no
12170 rm -f core conftest.err conftest.$ac_objext \
12171 conftest$ac_exeext conftest.$ac_ext
12172 LIBS=$ac_check_lib_save_LIBS
12174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
12175 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
12176 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x""yes; then :
12177 HAVE_JPEG=yes
12185 if test "${HAVE_JPEG}" = "yes"; then
12186 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
12188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12189 /* end confdefs.h. */
12190 #include <jpeglib.h>
12191 version=JPEG_LIB_VERSION
12193 _ACEOF
12194 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12195 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then :
12196 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
12198 else
12199 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
12200 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
12201 HAVE_JPEG=no
12203 rm -f conftest*
12206 if test "${HAVE_JPEG}" = "yes"; then
12207 LIBJPEG=-ljpeg
12212 ### Use -lpng if available, unless `--with-png=no'.
12213 HAVE_PNG=no
12214 LIBPNG=
12215 if test "${HAVE_X11}" = "yes"; then
12216 if test "${with_png}" != "no"; then
12217 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
12218 # in /usr/include/libpng.
12219 for ac_header in png.h libpng/png.h
12220 do :
12221 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12222 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12223 eval as_val=\$$as_ac_Header
12224 if test "x$as_val" = x""yes; then :
12225 cat >>confdefs.h <<_ACEOF
12226 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12227 _ACEOF
12231 done
12233 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
12234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
12235 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
12236 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then :
12237 $as_echo_n "(cached) " >&6
12238 else
12239 ac_check_lib_save_LIBS=$LIBS
12240 LIBS="-lpng -lz -lm $LIBS"
12241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12242 /* end confdefs.h. */
12244 /* Override any GCC internal prototype to avoid an error.
12245 Use char because int might match the return type of a GCC
12246 builtin and then its argument prototype would still apply. */
12247 #ifdef __cplusplus
12248 extern "C"
12249 #endif
12250 char png_get_channels ();
12252 main ()
12254 return png_get_channels ();
12256 return 0;
12258 _ACEOF
12259 if ac_fn_c_try_link "$LINENO"; then :
12260 ac_cv_lib_png_png_get_channels=yes
12261 else
12262 ac_cv_lib_png_png_get_channels=no
12264 rm -f core conftest.err conftest.$ac_objext \
12265 conftest$ac_exeext conftest.$ac_ext
12266 LIBS=$ac_check_lib_save_LIBS
12268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
12269 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
12270 if test "x$ac_cv_lib_png_png_get_channels" = x""yes; then :
12271 HAVE_PNG=yes
12277 if test "${HAVE_PNG}" = "yes"; then
12279 $as_echo "#define HAVE_PNG 1" >>confdefs.h
12281 LIBPNG="-lpng -lz -lm"
12286 ### Use -ltiff if available, unless `--with-tiff=no'.
12287 HAVE_TIFF=no
12288 LIBTIFF=
12289 if test "${HAVE_X11}" = "yes"; then
12290 if test "${with_tiff}" != "no"; then
12291 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
12292 if test "x$ac_cv_header_tiffio_h" = x""yes; then :
12293 tifflibs="-lz -lm"
12294 # At least one tiff package requires the jpeg library.
12295 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
12296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
12297 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
12298 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then :
12299 $as_echo_n "(cached) " >&6
12300 else
12301 ac_check_lib_save_LIBS=$LIBS
12302 LIBS="-ltiff $tifflibs $LIBS"
12303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12304 /* end confdefs.h. */
12306 /* Override any GCC internal prototype to avoid an error.
12307 Use char because int might match the return type of a GCC
12308 builtin and then its argument prototype would still apply. */
12309 #ifdef __cplusplus
12310 extern "C"
12311 #endif
12312 char TIFFGetVersion ();
12314 main ()
12316 return TIFFGetVersion ();
12318 return 0;
12320 _ACEOF
12321 if ac_fn_c_try_link "$LINENO"; then :
12322 ac_cv_lib_tiff_TIFFGetVersion=yes
12323 else
12324 ac_cv_lib_tiff_TIFFGetVersion=no
12326 rm -f core conftest.err conftest.$ac_objext \
12327 conftest$ac_exeext conftest.$ac_ext
12328 LIBS=$ac_check_lib_save_LIBS
12330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
12331 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
12332 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x""yes; then :
12333 HAVE_TIFF=yes
12341 if test "${HAVE_TIFF}" = "yes"; then
12343 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
12345 LIBTIFF=-ltiff
12350 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
12351 HAVE_GIF=no
12352 LIBGIF=
12353 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
12354 ac_fn_c_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
12355 if test "x$ac_cv_header_gif_lib_h" = x""yes; then :
12356 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
12357 # Earlier versions can crash Emacs.
12358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
12359 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
12360 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then :
12361 $as_echo_n "(cached) " >&6
12362 else
12363 ac_check_lib_save_LIBS=$LIBS
12364 LIBS="-lgif $LIBS"
12365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12366 /* end confdefs.h. */
12368 /* Override any GCC internal prototype to avoid an error.
12369 Use char because int might match the return type of a GCC
12370 builtin and then its argument prototype would still apply. */
12371 #ifdef __cplusplus
12372 extern "C"
12373 #endif
12374 char EGifPutExtensionLast ();
12376 main ()
12378 return EGifPutExtensionLast ();
12380 return 0;
12382 _ACEOF
12383 if ac_fn_c_try_link "$LINENO"; then :
12384 ac_cv_lib_gif_EGifPutExtensionLast=yes
12385 else
12386 ac_cv_lib_gif_EGifPutExtensionLast=no
12388 rm -f core conftest.err conftest.$ac_objext \
12389 conftest$ac_exeext conftest.$ac_ext
12390 LIBS=$ac_check_lib_save_LIBS
12392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
12393 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
12394 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x""yes; then :
12395 HAVE_GIF=yes
12396 else
12397 HAVE_GIF=maybe
12404 if test "$HAVE_GIF" = yes; then
12405 LIBGIF=-lgif
12406 elif test "$HAVE_GIF" = maybe; then
12407 # If gif_lib.h but no libgif, try libungif.
12408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
12409 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
12410 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then :
12411 $as_echo_n "(cached) " >&6
12412 else
12413 ac_check_lib_save_LIBS=$LIBS
12414 LIBS="-lungif $LIBS"
12415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12416 /* end confdefs.h. */
12418 /* Override any GCC internal prototype to avoid an error.
12419 Use char because int might match the return type of a GCC
12420 builtin and then its argument prototype would still apply. */
12421 #ifdef __cplusplus
12422 extern "C"
12423 #endif
12424 char EGifPutExtensionLast ();
12426 main ()
12428 return EGifPutExtensionLast ();
12430 return 0;
12432 _ACEOF
12433 if ac_fn_c_try_link "$LINENO"; then :
12434 ac_cv_lib_ungif_EGifPutExtensionLast=yes
12435 else
12436 ac_cv_lib_ungif_EGifPutExtensionLast=no
12438 rm -f core conftest.err conftest.$ac_objext \
12439 conftest$ac_exeext conftest.$ac_ext
12440 LIBS=$ac_check_lib_save_LIBS
12442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
12443 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
12444 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x""yes; then :
12445 HAVE_GIF=yes
12446 else
12447 HAVE_GIF=no
12450 test "$HAVE_GIF" = yes && LIBGIF=-lungif
12453 if test "${HAVE_GIF}" = "yes"; then
12455 $as_echo "#define HAVE_GIF 1" >>confdefs.h
12461 if test "${HAVE_X11}" = "yes"; then
12462 MISSING=""
12463 WITH_NO=""
12464 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
12465 MISSING="libXpm" && WITH_NO="--with-xpm=no"
12466 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
12467 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
12468 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
12469 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
12470 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
12471 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
12472 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
12473 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
12475 if test "X${MISSING}" != X; then
12476 as_fn_error "The following required libraries were not found:
12477 $MISSING
12478 Maybe some development libraries/packages are missing?
12479 If you don't want to link with them give
12480 $WITH_NO
12481 as options to configure" "$LINENO" 5
12485 ### Use -lgpm if available, unless `--with-gpm=no'.
12486 HAVE_GPM=no
12487 LIBGPM=
12488 if test "${with_gpm}" != "no"; then
12489 ac_fn_c_check_header_mongrel "$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
12490 if test "x$ac_cv_header_gpm_h" = x""yes; then :
12491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
12492 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
12493 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then :
12494 $as_echo_n "(cached) " >&6
12495 else
12496 ac_check_lib_save_LIBS=$LIBS
12497 LIBS="-lgpm $LIBS"
12498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12499 /* end confdefs.h. */
12501 /* Override any GCC internal prototype to avoid an error.
12502 Use char because int might match the return type of a GCC
12503 builtin and then its argument prototype would still apply. */
12504 #ifdef __cplusplus
12505 extern "C"
12506 #endif
12507 char Gpm_Open ();
12509 main ()
12511 return Gpm_Open ();
12513 return 0;
12515 _ACEOF
12516 if ac_fn_c_try_link "$LINENO"; then :
12517 ac_cv_lib_gpm_Gpm_Open=yes
12518 else
12519 ac_cv_lib_gpm_Gpm_Open=no
12521 rm -f core conftest.err conftest.$ac_objext \
12522 conftest$ac_exeext conftest.$ac_ext
12523 LIBS=$ac_check_lib_save_LIBS
12525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
12526 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
12527 if test "x$ac_cv_lib_gpm_Gpm_Open" = x""yes; then :
12528 HAVE_GPM=yes
12535 if test "${HAVE_GPM}" = "yes"; then
12537 $as_echo "#define HAVE_GPM 1" >>confdefs.h
12539 LIBGPM=-lgpm
12548 GNUSTEP_CFLAGS=
12549 ### Use NeXTstep API to implement GUI.
12550 if test "${HAVE_NS}" = "yes"; then
12552 $as_echo "#define HAVE_NS 1" >>confdefs.h
12554 if test "${NS_IMPL_COCOA}" = "yes"; then
12556 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
12559 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
12561 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
12563 # See also .m.o rule in Makefile.in */
12564 # FIXME: are all these flags really needed? Document here why. */
12565 GNUSTEP_CFLAGS="-D_REENTRANT -fPIC -fno-strict-aliasing -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
12566 ## Extra CFLAGS applied to src/*.m files.
12567 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"
12569 # We also have mouse menus.
12570 HAVE_MENUS=yes
12571 OTHER_FILES=ns-app
12575 ### Use session management (-lSM -lICE) if available
12576 HAVE_X_SM=no
12577 LIBXSM=
12578 if test "${HAVE_X11}" = "yes"; then
12579 ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
12580 if test "x$ac_cv_header_X11_SM_SMlib_h" = x""yes; then :
12581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
12582 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
12583 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then :
12584 $as_echo_n "(cached) " >&6
12585 else
12586 ac_check_lib_save_LIBS=$LIBS
12587 LIBS="-lSM -lICE $LIBS"
12588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12589 /* end confdefs.h. */
12591 /* Override any GCC internal prototype to avoid an error.
12592 Use char because int might match the return type of a GCC
12593 builtin and then its argument prototype would still apply. */
12594 #ifdef __cplusplus
12595 extern "C"
12596 #endif
12597 char SmcOpenConnection ();
12599 main ()
12601 return SmcOpenConnection ();
12603 return 0;
12605 _ACEOF
12606 if ac_fn_c_try_link "$LINENO"; then :
12607 ac_cv_lib_SM_SmcOpenConnection=yes
12608 else
12609 ac_cv_lib_SM_SmcOpenConnection=no
12611 rm -f core conftest.err conftest.$ac_objext \
12612 conftest$ac_exeext conftest.$ac_ext
12613 LIBS=$ac_check_lib_save_LIBS
12615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
12616 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
12617 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x""yes; then :
12618 HAVE_X_SM=yes
12625 if test "${HAVE_X_SM}" = "yes"; then
12627 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
12629 LIBXSM="-lSM -lICE"
12630 case "$LIBS" in
12631 *-lSM*) ;;
12632 *) LIBS="$LIBXSM $LIBS" ;;
12633 esac
12638 ### Use libxml (-lxml2) if available
12639 HAVE_LIBXML2=no
12640 if test "${with_xml2}" != "no"; then
12641 ### I'm not sure what the version number should be, so I just guessed.
12643 succeeded=no
12645 if test "$PKG_CONFIG" = "no" ; then
12646 HAVE_LIBXML2=no
12647 else
12648 PKG_CONFIG_MIN_VERSION=0.9.0
12649 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.6.17" >&5
12651 $as_echo_n "checking for libxml-2.0 > 2.6.17... " >&6; }
12653 if $PKG_CONFIG --exists "libxml-2.0 > 2.6.17" 2>&5 &&
12654 LIBXML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 > 2.6.17" 2>&5` &&
12655 LIBXML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0 > 2.6.17" 2>&5`; then
12656 edit_cflags="
12657 s,///*,/,g
12658 s/^/ /
12659 s/ -I/ $isystem/g
12660 s/^ //
12662 LIBXML2_CFLAGS=`$as_echo "$LIBXML2_CFLAGS" | sed -e "$edit_cflags"`
12663 LIBXML2_LIBS=`$as_echo "$LIBXML2_LIBS" | sed -e 's,///*,/,g'`
12664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBXML2_CFLAGS' LIBS='$LIBXML2_LIBS'" >&5
12665 $as_echo "yes CFLAGS='$LIBXML2_CFLAGS' LIBS='$LIBXML2_LIBS'" >&6; }
12666 succeeded=yes
12667 else
12668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12669 $as_echo "no" >&6; }
12670 LIBXML2_CFLAGS=""
12671 LIBXML2_LIBS=""
12672 ## If we have a custom action on failure, don't print errors, but
12673 ## do set a variable so people can do so.
12674 LIBXML2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 > 2.6.17"`
12680 else
12681 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12682 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12686 if test $succeeded = yes; then
12687 HAVE_LIBXML2=yes
12688 else
12689 HAVE_LIBXML2=no
12692 if test "${HAVE_LIBXML2}" = "yes"; then
12693 LIBS="$LIBXML2_LIBS $LIBS"
12694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
12695 $as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
12696 if test "${ac_cv_lib_xml2_htmlReadMemory+set}" = set; then :
12697 $as_echo_n "(cached) " >&6
12698 else
12699 ac_check_lib_save_LIBS=$LIBS
12700 LIBS="-lxml2 $LIBS"
12701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12702 /* end confdefs.h. */
12704 /* Override any GCC internal prototype to avoid an error.
12705 Use char because int might match the return type of a GCC
12706 builtin and then its argument prototype would still apply. */
12707 #ifdef __cplusplus
12708 extern "C"
12709 #endif
12710 char htmlReadMemory ();
12712 main ()
12714 return htmlReadMemory ();
12716 return 0;
12718 _ACEOF
12719 if ac_fn_c_try_link "$LINENO"; then :
12720 ac_cv_lib_xml2_htmlReadMemory=yes
12721 else
12722 ac_cv_lib_xml2_htmlReadMemory=no
12724 rm -f core conftest.err conftest.$ac_objext \
12725 conftest$ac_exeext conftest.$ac_ext
12726 LIBS=$ac_check_lib_save_LIBS
12728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
12729 $as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
12730 if test "x$ac_cv_lib_xml2_htmlReadMemory" = x""yes; then :
12731 HAVE_LIBXML2=yes
12732 else
12733 HAVE_LIBXML2=no
12736 if test "${HAVE_LIBXML2}" = "yes"; then
12738 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
12740 else
12741 LIBXML2_LIBS=""
12742 LIBXML2_CFLAGS=""
12749 # If netdb.h doesn't declare h_errno, we must declare it by hand.
12750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
12751 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
12752 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then :
12753 $as_echo_n "(cached) " >&6
12754 else
12755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12756 /* end confdefs.h. */
12757 #include <netdb.h>
12759 main ()
12761 return h_errno;
12763 return 0;
12765 _ACEOF
12766 if ac_fn_c_try_link "$LINENO"; then :
12767 emacs_cv_netdb_declares_h_errno=yes
12768 else
12769 emacs_cv_netdb_declares_h_errno=no
12771 rm -f core conftest.err conftest.$ac_objext \
12772 conftest$ac_exeext conftest.$ac_ext
12774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
12775 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
12776 if test $emacs_cv_netdb_declares_h_errno = yes; then
12778 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
12782 # fmod, logb, and frexp are found in -lm on most systems.
12783 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
12784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
12785 $as_echo_n "checking for sqrt in -lm... " >&6; }
12786 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
12787 $as_echo_n "(cached) " >&6
12788 else
12789 ac_check_lib_save_LIBS=$LIBS
12790 LIBS="-lm $LIBS"
12791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12792 /* end confdefs.h. */
12794 /* Override any GCC internal prototype to avoid an error.
12795 Use char because int might match the return type of a GCC
12796 builtin and then its argument prototype would still apply. */
12797 #ifdef __cplusplus
12798 extern "C"
12799 #endif
12800 char sqrt ();
12802 main ()
12804 return sqrt ();
12806 return 0;
12808 _ACEOF
12809 if ac_fn_c_try_link "$LINENO"; then :
12810 ac_cv_lib_m_sqrt=yes
12811 else
12812 ac_cv_lib_m_sqrt=no
12814 rm -f core conftest.err conftest.$ac_objext \
12815 conftest$ac_exeext conftest.$ac_ext
12816 LIBS=$ac_check_lib_save_LIBS
12818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
12819 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
12820 if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
12821 cat >>confdefs.h <<_ACEOF
12822 #define HAVE_LIBM 1
12823 _ACEOF
12825 LIBS="-lm $LIBS"
12830 # Check for mail-locking functions in a "mail" library. Probably this should
12831 # have the same check as for liblockfile below.
12832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
12833 $as_echo_n "checking for maillock in -lmail... " >&6; }
12834 if test "${ac_cv_lib_mail_maillock+set}" = set; then :
12835 $as_echo_n "(cached) " >&6
12836 else
12837 ac_check_lib_save_LIBS=$LIBS
12838 LIBS="-lmail $LIBS"
12839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12840 /* end confdefs.h. */
12842 /* Override any GCC internal prototype to avoid an error.
12843 Use char because int might match the return type of a GCC
12844 builtin and then its argument prototype would still apply. */
12845 #ifdef __cplusplus
12846 extern "C"
12847 #endif
12848 char maillock ();
12850 main ()
12852 return maillock ();
12854 return 0;
12856 _ACEOF
12857 if ac_fn_c_try_link "$LINENO"; then :
12858 ac_cv_lib_mail_maillock=yes
12859 else
12860 ac_cv_lib_mail_maillock=no
12862 rm -f core conftest.err conftest.$ac_objext \
12863 conftest$ac_exeext conftest.$ac_ext
12864 LIBS=$ac_check_lib_save_LIBS
12866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
12867 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
12868 if test "x$ac_cv_lib_mail_maillock" = x""yes; then :
12869 have_mail=yes
12870 else
12871 have_mail=no
12874 if test $have_mail = yes; then
12875 LIBS_MAIL=-lmail
12876 LIBS="$LIBS_MAIL $LIBS"
12878 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
12880 else
12881 LIBS_MAIL=
12883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
12884 $as_echo_n "checking for maillock in -llockfile... " >&6; }
12885 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then :
12886 $as_echo_n "(cached) " >&6
12887 else
12888 ac_check_lib_save_LIBS=$LIBS
12889 LIBS="-llockfile $LIBS"
12890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12891 /* end confdefs.h. */
12893 /* Override any GCC internal prototype to avoid an error.
12894 Use char because int might match the return type of a GCC
12895 builtin and then its argument prototype would still apply. */
12896 #ifdef __cplusplus
12897 extern "C"
12898 #endif
12899 char maillock ();
12901 main ()
12903 return maillock ();
12905 return 0;
12907 _ACEOF
12908 if ac_fn_c_try_link "$LINENO"; then :
12909 ac_cv_lib_lockfile_maillock=yes
12910 else
12911 ac_cv_lib_lockfile_maillock=no
12913 rm -f core conftest.err conftest.$ac_objext \
12914 conftest$ac_exeext conftest.$ac_ext
12915 LIBS=$ac_check_lib_save_LIBS
12917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
12918 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
12919 if test "x$ac_cv_lib_lockfile_maillock" = x""yes; then :
12920 have_lockfile=yes
12921 else
12922 have_lockfile=no
12925 if test $have_lockfile = yes; then
12926 LIBS_MAIL=-llockfile
12927 LIBS="$LIBS_MAIL $LIBS"
12929 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
12931 else
12932 # If we have the shared liblockfile, assume we must use it for mail
12933 # locking (e.g. Debian). If we couldn't link against liblockfile
12934 # (no liblockfile.a installed), ensure that we don't need to.
12935 # Extract the first word of "liblockfile.so", so it can be a program name with args.
12936 set dummy liblockfile.so; ac_word=$2
12937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12938 $as_echo_n "checking for $ac_word... " >&6; }
12939 if test "${ac_cv_prog_liblockfile+set}" = set; then :
12940 $as_echo_n "(cached) " >&6
12941 else
12942 if test -n "$liblockfile"; then
12943 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
12944 else
12945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12946 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
12947 for as_dir in $as_dummy
12949 IFS=$as_save_IFS
12950 test -z "$as_dir" && as_dir=.
12951 for ac_exec_ext in '' $ac_executable_extensions; do
12952 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12953 ac_cv_prog_liblockfile="yes"
12954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12955 break 2
12957 done
12958 done
12959 IFS=$as_save_IFS
12961 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
12964 liblockfile=$ac_cv_prog_liblockfile
12965 if test -n "$liblockfile"; then
12966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
12967 $as_echo "$liblockfile" >&6; }
12968 else
12969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12970 $as_echo "no" >&6; }
12974 if test $ac_cv_prog_liblockfile = yes; then
12975 as_fn_error "Shared liblockfile found but can't link against it.
12976 This probably means that movemail could lose mail.
12977 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
12980 for ac_func in touchlock
12981 do :
12982 ac_fn_c_check_func "$LINENO" "touchlock" "ac_cv_func_touchlock"
12983 if test "x$ac_cv_func_touchlock" = x""yes; then :
12984 cat >>confdefs.h <<_ACEOF
12985 #define HAVE_TOUCHLOCK 1
12986 _ACEOF
12989 done
12996 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
12997 ## interlock access to the mail spool. The alternative is a lock file named
12998 ## /usr/spool/mail/$USER.lock.
12999 mail_lock=no
13000 case "$opsys" in
13001 aix4-2) mail_lock="lockf" ;;
13003 gnu|freebsd|netbsd|openbsd|darwin|irix6-5) mail_lock="flock" ;;
13005 ## On GNU/Linux systems, both methods are used by various mail programs.
13006 ## I assume most people are using newer mailers that have heard of flock.
13007 ## Change this if you need to.
13008 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
13009 ## configure gets the right answers, and that means *NOT* using flock.
13010 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
13011 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
13012 ## Debian maintainer hasn't provided a clean fix for Emacs.
13013 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
13014 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
13015 ## correct logic. -- fx
13016 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
13017 ## liblockfile is a Free Software replacement for libmail, used on
13018 ## Debian systems and elsewhere. -rfr.
13019 gnu-*)
13020 mail_lock="flock"
13021 if test $have_mail = yes || test $have_lockfile = yes; then
13022 test $ac_cv_header_maillock_h = yes && mail_lock=no
13025 esac
13027 BLESSMAIL_TARGET=
13028 case "$mail_lock" in
13029 flock)
13030 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
13033 lockf)
13034 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
13037 *) BLESSMAIL_TARGET="need-blessmail" ;;
13038 esac
13042 for ac_func in gethostname \
13043 rename closedir mkdir rmdir getrusage get_current_dir_name \
13044 random lrand48 logb frexp fmod rint cbrt setsid \
13045 strerror fpathconf select euidaccess getpagesize setlocale \
13046 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
13047 __fpending strsignal setitimer \
13048 sendto recvfrom getsockname getpeername \
13049 gai_strerror mkstemp getline getdelim fsync sync \
13050 difftime posix_memalign \
13051 getpwent endpwent getgrent endgrent \
13052 cfmakeraw cfsetspeed copysign __executable_start
13053 do :
13054 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13055 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13056 eval as_val=\$$as_ac_var
13057 if test "x$as_val" = x""yes; then :
13058 cat >>confdefs.h <<_ACEOF
13059 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13060 _ACEOF
13063 done
13066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unwind_init" >&5
13067 $as_echo_n "checking for __builtin_unwind_init... " >&6; }
13068 if test "${emacs_cv_func___builtin_unwind_init+set}" = set; then :
13069 $as_echo_n "(cached) " >&6
13070 else
13071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13072 /* end confdefs.h. */
13075 main ()
13077 __builtin_unwind_init ();
13079 return 0;
13081 _ACEOF
13082 if ac_fn_c_try_link "$LINENO"; then :
13083 emacs_cv_func___builtin_unwind_init=yes
13084 else
13085 emacs_cv_func___builtin_unwind_init=no
13087 rm -f core conftest.err conftest.$ac_objext \
13088 conftest$ac_exeext conftest.$ac_ext
13090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func___builtin_unwind_init" >&5
13091 $as_echo "$emacs_cv_func___builtin_unwind_init" >&6; }
13092 if test $emacs_cv_func___builtin_unwind_init = yes; then
13094 $as_echo "#define HAVE___BUILTIN_UNWIND_INIT 1" >>confdefs.h
13102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13103 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
13104 if test "${ac_cv_sys_largefile_source+set}" = set; then :
13105 $as_echo_n "(cached) " >&6
13106 else
13107 while :; do
13108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13109 /* end confdefs.h. */
13110 #include <sys/types.h> /* for off_t */
13111 #include <stdio.h>
13113 main ()
13115 int (*fp) (FILE *, off_t, int) = fseeko;
13116 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13118 return 0;
13120 _ACEOF
13121 if ac_fn_c_try_link "$LINENO"; then :
13122 ac_cv_sys_largefile_source=no; break
13124 rm -f core conftest.err conftest.$ac_objext \
13125 conftest$ac_exeext conftest.$ac_ext
13126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13127 /* end confdefs.h. */
13128 #define _LARGEFILE_SOURCE 1
13129 #include <sys/types.h> /* for off_t */
13130 #include <stdio.h>
13132 main ()
13134 int (*fp) (FILE *, off_t, int) = fseeko;
13135 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13137 return 0;
13139 _ACEOF
13140 if ac_fn_c_try_link "$LINENO"; then :
13141 ac_cv_sys_largefile_source=1; break
13143 rm -f core conftest.err conftest.$ac_objext \
13144 conftest$ac_exeext conftest.$ac_ext
13145 ac_cv_sys_largefile_source=unknown
13146 break
13147 done
13149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
13150 $as_echo "$ac_cv_sys_largefile_source" >&6; }
13151 case $ac_cv_sys_largefile_source in #(
13152 no | unknown) ;;
13154 cat >>confdefs.h <<_ACEOF
13155 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13156 _ACEOF
13158 esac
13159 rm -rf conftest*
13161 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13162 # in glibc 2.1.3, but that breaks too many other things.
13163 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13164 if test $ac_cv_sys_largefile_source != unknown; then
13166 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
13171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
13172 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
13173 if test "${ac_cv_func_getpgrp_void+set}" = set; then :
13174 $as_echo_n "(cached) " >&6
13175 else
13176 # Use it with a single arg.
13177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13178 /* end confdefs.h. */
13179 $ac_includes_default
13181 main ()
13183 getpgrp (0);
13185 return 0;
13187 _ACEOF
13188 if ac_fn_c_try_compile "$LINENO"; then :
13189 ac_cv_func_getpgrp_void=no
13190 else
13191 ac_cv_func_getpgrp_void=yes
13193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
13197 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
13198 if test $ac_cv_func_getpgrp_void = yes; then
13200 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
13205 # UNIX98 PTYs.
13206 for ac_func in grantpt
13207 do :
13208 ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt"
13209 if test "x$ac_cv_func_grantpt" = x""yes; then :
13210 cat >>confdefs.h <<_ACEOF
13211 #define HAVE_GRANTPT 1
13212 _ACEOF
13215 done
13218 # PTY-related GNU extensions.
13219 for ac_func in getpt
13220 do :
13221 ac_fn_c_check_func "$LINENO" "getpt" "ac_cv_func_getpt"
13222 if test "x$ac_cv_func_getpt" = x""yes; then :
13223 cat >>confdefs.h <<_ACEOF
13224 #define HAVE_GETPT 1
13225 _ACEOF
13228 done
13231 # Check this now, so that we will NOT find the above functions in ncurses.
13232 # That is because we have not set up to link ncurses in lib-src.
13233 # It's better to believe a function is not available
13234 # than to expect to find it in ncurses.
13235 # Also we need tputs and friends to be able to build at all.
13236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
13237 $as_echo_n "checking for library containing tputs... " >&6; }
13238 # Run a test program that contains a call to tputs, a call that is
13239 # never executed. This tests whether a pre-'main' dynamic linker
13240 # works with the library. It's too much trouble to actually call
13241 # tputs in the test program, due to portability hassles. When
13242 # cross-compiling, assume the test program will run if it links.
13244 # Maybe curses should be tried earlier?
13245 # See http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9736#35
13246 for tputs_library in '' tinfo ncurses terminfo termcap curses; do
13247 OLIBS=$LIBS
13248 if test -z "$tputs_library"; then
13249 LIBS_TERMCAP=
13250 msg='none required'
13251 else
13252 LIBS_TERMCAP=-l$tputs_library
13253 msg=$LIBS_TERMCAP
13254 LIBS="$LIBS_TERMCAP $LIBS"
13256 if test "$cross_compiling" = yes; then :
13257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13258 /* end confdefs.h. */
13260 extern void tputs (const char *, int, int (*)(int));
13261 int main (int argc, char **argv)
13263 if (argc == 10000)
13264 tputs (argv[0], 0, 0);
13265 return 0;
13268 _ACEOF
13269 if ac_fn_c_try_link "$LINENO"; then :
13271 else
13272 msg=no
13274 rm -f core conftest.err conftest.$ac_objext \
13275 conftest$ac_exeext conftest.$ac_ext
13276 else
13277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13278 /* end confdefs.h. */
13280 extern void tputs (const char *, int, int (*)(int));
13281 int main (int argc, char **argv)
13283 if (argc == 10000)
13284 tputs (argv[0], 0, 0);
13285 return 0;
13288 _ACEOF
13289 if ac_fn_c_try_run "$LINENO"; then :
13291 else
13292 msg=no
13294 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13295 conftest.$ac_objext conftest.beam conftest.$ac_ext
13298 LIBS=$OLIBS
13299 if test "X$msg" != Xno; then
13300 break
13302 done
13303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5
13304 $as_echo "$msg" >&6; }
13305 if test "X$msg" = Xno; then
13306 as_fn_error "The required function \`tputs' was not found in any library.
13307 The following libraries were tried (in order):
13308 libtinfo, libncurses, libterminfo, libtermcap, libcurses
13309 Please try installing whichever of these libraries is most appropriate
13310 for your system, together with its header files.
13311 For example, a libncurses-dev(el) or similar package." "$LINENO" 5
13314 ## Use termcap instead of terminfo?
13315 ## Only true for: freebsd < 40000, ms-w32, msdos, netbsd < 599002500.
13316 TERMINFO=yes
13317 ## FIXME? In the cases below where we unconditionally set
13318 ## LIBS_TERMCAP="-lncurses", this overrides LIBS_TERMCAP = -ltinfo,
13319 ## if that was found above to have tputs.
13320 ## Should we use the gnu* logic everywhere?
13321 case "$opsys" in
13322 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
13323 ## The ncurses library has been moved out of the System framework in
13324 ## Mac OS X 10.2. So if configure detects it, set the command-line
13325 ## option to use it.
13326 darwin) LIBS_TERMCAP="-lncurses" ;;
13328 gnu*) test -z "$LIBS_TERMCAP" && LIBS_TERMCAP="-lncurses" ;;
13330 freebsd)
13331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
13332 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
13333 if test "${emacs_cv_freebsd_terminfo+set}" = set; then :
13334 $as_echo_n "(cached) " >&6
13335 else
13336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13337 /* end confdefs.h. */
13338 #include <osreldate.h>
13340 main ()
13342 #if __FreeBSD_version < 400000
13343 fail;
13344 #endif
13347 return 0;
13349 _ACEOF
13350 if ac_fn_c_try_link "$LINENO"; then :
13351 emacs_cv_freebsd_terminfo=yes
13352 else
13353 emacs_cv_freebsd_terminfo=no
13355 rm -f core conftest.err conftest.$ac_objext \
13356 conftest$ac_exeext conftest.$ac_ext
13360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
13361 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
13363 if test $emacs_cv_freebsd_terminfo = yes; then
13364 LIBS_TERMCAP="-lncurses"
13365 else
13366 TERMINFO=no
13367 LIBS_TERMCAP="-ltermcap"
13371 netbsd)
13372 if test "x$LIBS_TERMCAP" != "x-lterminfo"; then
13373 TERMINFO=no
13374 LIBS_TERMCAP="-ltermcap"
13378 openbsd) LIBS_TERMCAP="-lncurses" ;;
13380 ## hpux: Make sure we get select from libc rather than from libcurses
13381 ## because libcurses on HPUX 10.10 has a broken version of select.
13382 ## We used to use -lc -lcurses, but this may be cleaner.
13383 ## FIXME? But TERMINFO = yes on hpux (it used to be explicitly
13384 # set that way, now it uses the default). Isn't this a contradiction?
13385 hpux*) LIBS_TERMCAP="-ltermcap" ;;
13387 esac
13389 TERMCAP_OBJ=tparam.o
13390 if test $TERMINFO = yes; then
13392 $as_echo "#define TERMINFO 1" >>confdefs.h
13394 TERMCAP_OBJ=terminfo.o
13400 # Do we have res_init, for detecting changes in /etc/resolv.conf?
13401 resolv=no
13402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13403 /* end confdefs.h. */
13404 #include <netinet/in.h>
13405 #include <arpa/nameser.h>
13406 #include <resolv.h>
13408 main ()
13410 return res_init();
13412 return 0;
13414 _ACEOF
13415 if ac_fn_c_try_link "$LINENO"; then :
13416 have_res_init=yes
13417 else
13418 have_res_init=no
13420 rm -f core conftest.err conftest.$ac_objext \
13421 conftest$ac_exeext conftest.$ac_ext
13422 if test "$have_res_init" = no; then
13423 OLIBS="$LIBS"
13424 LIBS="$LIBS -lresolv"
13425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
13426 $as_echo_n "checking for res_init with -lresolv... " >&6; }
13427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13428 /* end confdefs.h. */
13429 #include <netinet/in.h>
13430 #include <arpa/nameser.h>
13431 #include <resolv.h>
13433 main ()
13435 return res_init();
13437 return 0;
13439 _ACEOF
13440 if ac_fn_c_try_link "$LINENO"; then :
13441 have_res_init=yes
13442 else
13443 have_res_init=no
13445 rm -f core conftest.err conftest.$ac_objext \
13446 conftest$ac_exeext conftest.$ac_ext
13447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
13448 $as_echo "$have_res_init" >&6; }
13449 if test "$have_res_init" = yes ; then
13450 resolv=yes
13452 LIBS="$OLIBS"
13455 if test "$have_res_init" = yes; then
13457 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
13461 # Do we need the Hesiod library to provide the support routines?
13462 LIBHESIOD=
13463 if test "$with_hesiod" != no ; then
13464 # Don't set $LIBS here -- see comments above. FIXME which comments?
13465 ac_fn_c_check_func "$LINENO" "res_send" "ac_cv_func_res_send"
13466 if test "x$ac_cv_func_res_send" = x""yes; then :
13468 else
13469 ac_fn_c_check_func "$LINENO" "__res_send" "ac_cv_func___res_send"
13470 if test "x$ac_cv_func___res_send" = x""yes; then :
13472 else
13473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
13474 $as_echo_n "checking for res_send in -lresolv... " >&6; }
13475 if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
13476 $as_echo_n "(cached) " >&6
13477 else
13478 ac_check_lib_save_LIBS=$LIBS
13479 LIBS="-lresolv $LIBS"
13480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13481 /* end confdefs.h. */
13483 /* Override any GCC internal prototype to avoid an error.
13484 Use char because int might match the return type of a GCC
13485 builtin and then its argument prototype would still apply. */
13486 #ifdef __cplusplus
13487 extern "C"
13488 #endif
13489 char res_send ();
13491 main ()
13493 return res_send ();
13495 return 0;
13497 _ACEOF
13498 if ac_fn_c_try_link "$LINENO"; then :
13499 ac_cv_lib_resolv_res_send=yes
13500 else
13501 ac_cv_lib_resolv_res_send=no
13503 rm -f core conftest.err conftest.$ac_objext \
13504 conftest$ac_exeext conftest.$ac_ext
13505 LIBS=$ac_check_lib_save_LIBS
13507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
13508 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
13509 if test "x$ac_cv_lib_resolv_res_send" = x""yes; then :
13510 resolv=yes
13511 else
13512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
13513 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
13514 if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
13515 $as_echo_n "(cached) " >&6
13516 else
13517 ac_check_lib_save_LIBS=$LIBS
13518 LIBS="-lresolv $LIBS"
13519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13520 /* end confdefs.h. */
13522 /* Override any GCC internal prototype to avoid an error.
13523 Use char because int might match the return type of a GCC
13524 builtin and then its argument prototype would still apply. */
13525 #ifdef __cplusplus
13526 extern "C"
13527 #endif
13528 char __res_send ();
13530 main ()
13532 return __res_send ();
13534 return 0;
13536 _ACEOF
13537 if ac_fn_c_try_link "$LINENO"; then :
13538 ac_cv_lib_resolv___res_send=yes
13539 else
13540 ac_cv_lib_resolv___res_send=no
13542 rm -f core conftest.err conftest.$ac_objext \
13543 conftest$ac_exeext conftest.$ac_ext
13544 LIBS=$ac_check_lib_save_LIBS
13546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
13547 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
13548 if test "x$ac_cv_lib_resolv___res_send" = x""yes; then :
13549 resolv=yes
13558 if test "$resolv" = yes ; then
13559 RESOLVLIB=-lresolv
13560 else
13561 RESOLVLIB=
13563 ac_fn_c_check_func "$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
13564 if test "x$ac_cv_func_hes_getmailhost" = x""yes; then :
13566 else
13567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
13568 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
13569 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
13570 $as_echo_n "(cached) " >&6
13571 else
13572 ac_check_lib_save_LIBS=$LIBS
13573 LIBS="-lhesiod $RESOLVLIB $LIBS"
13574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13575 /* end confdefs.h. */
13577 /* Override any GCC internal prototype to avoid an error.
13578 Use char because int might match the return type of a GCC
13579 builtin and then its argument prototype would still apply. */
13580 #ifdef __cplusplus
13581 extern "C"
13582 #endif
13583 char hes_getmailhost ();
13585 main ()
13587 return hes_getmailhost ();
13589 return 0;
13591 _ACEOF
13592 if ac_fn_c_try_link "$LINENO"; then :
13593 ac_cv_lib_hesiod_hes_getmailhost=yes
13594 else
13595 ac_cv_lib_hesiod_hes_getmailhost=no
13597 rm -f core conftest.err conftest.$ac_objext \
13598 conftest$ac_exeext conftest.$ac_ext
13599 LIBS=$ac_check_lib_save_LIBS
13601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
13602 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
13603 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x""yes; then :
13604 hesiod=yes
13605 else
13612 if test x"$hesiod" = xyes; then
13614 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
13616 LIBHESIOD=-lhesiod
13621 # Do we need libresolv (due to res_init or Hesiod)?
13622 if test "$resolv" = yes ; then
13624 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
13626 LIBRESOLV=-lresolv
13627 else
13628 LIBRESOLV=
13632 # These tell us which Kerberos-related libraries to use.
13633 COM_ERRLIB=
13634 CRYPTOLIB=
13635 KRB5LIB=
13636 DESLIB=
13637 KRB4LIB=
13639 if test "${with_kerberos}" != no; then
13640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
13641 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
13642 if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
13643 $as_echo_n "(cached) " >&6
13644 else
13645 ac_check_lib_save_LIBS=$LIBS
13646 LIBS="-lcom_err $LIBS"
13647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13648 /* end confdefs.h. */
13650 /* Override any GCC internal prototype to avoid an error.
13651 Use char because int might match the return type of a GCC
13652 builtin and then its argument prototype would still apply. */
13653 #ifdef __cplusplus
13654 extern "C"
13655 #endif
13656 char com_err ();
13658 main ()
13660 return com_err ();
13662 return 0;
13664 _ACEOF
13665 if ac_fn_c_try_link "$LINENO"; then :
13666 ac_cv_lib_com_err_com_err=yes
13667 else
13668 ac_cv_lib_com_err_com_err=no
13670 rm -f core conftest.err conftest.$ac_objext \
13671 conftest$ac_exeext conftest.$ac_ext
13672 LIBS=$ac_check_lib_save_LIBS
13674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
13675 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
13676 if test "x$ac_cv_lib_com_err_com_err" = x""yes; then :
13677 have_com_err=yes
13678 else
13679 have_com_err=no
13682 if test $have_com_err = yes; then
13683 COM_ERRLIB=-lcom_err
13684 LIBS="$COM_ERRLIB $LIBS"
13686 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
13689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
13690 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
13691 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
13692 $as_echo_n "(cached) " >&6
13693 else
13694 ac_check_lib_save_LIBS=$LIBS
13695 LIBS="-lcrypto $LIBS"
13696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13697 /* end confdefs.h. */
13699 /* Override any GCC internal prototype to avoid an error.
13700 Use char because int might match the return type of a GCC
13701 builtin and then its argument prototype would still apply. */
13702 #ifdef __cplusplus
13703 extern "C"
13704 #endif
13705 char mit_des_cbc_encrypt ();
13707 main ()
13709 return mit_des_cbc_encrypt ();
13711 return 0;
13713 _ACEOF
13714 if ac_fn_c_try_link "$LINENO"; then :
13715 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
13716 else
13717 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
13719 rm -f core conftest.err conftest.$ac_objext \
13720 conftest$ac_exeext conftest.$ac_ext
13721 LIBS=$ac_check_lib_save_LIBS
13723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
13724 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
13725 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x""yes; then :
13726 have_crypto=yes
13727 else
13728 have_crypto=no
13731 if test $have_crypto = yes; then
13732 CRYPTOLIB=-lcrypto
13733 LIBS="$CRYPTOLIB $LIBS"
13735 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
13738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
13739 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
13740 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
13741 $as_echo_n "(cached) " >&6
13742 else
13743 ac_check_lib_save_LIBS=$LIBS
13744 LIBS="-lk5crypto $LIBS"
13745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13746 /* end confdefs.h. */
13748 /* Override any GCC internal prototype to avoid an error.
13749 Use char because int might match the return type of a GCC
13750 builtin and then its argument prototype would still apply. */
13751 #ifdef __cplusplus
13752 extern "C"
13753 #endif
13754 char mit_des_cbc_encrypt ();
13756 main ()
13758 return mit_des_cbc_encrypt ();
13760 return 0;
13762 _ACEOF
13763 if ac_fn_c_try_link "$LINENO"; then :
13764 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
13765 else
13766 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
13768 rm -f core conftest.err conftest.$ac_objext \
13769 conftest$ac_exeext conftest.$ac_ext
13770 LIBS=$ac_check_lib_save_LIBS
13772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
13773 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
13774 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x""yes; then :
13775 have_k5crypto=yes
13776 else
13777 have_k5crypto=no
13780 if test $have_k5crypto = yes; then
13781 CRYPTOLIB=-lk5crypto
13782 LIBS="$CRYPTOLIB $LIBS"
13784 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
13787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
13788 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
13789 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
13790 $as_echo_n "(cached) " >&6
13791 else
13792 ac_check_lib_save_LIBS=$LIBS
13793 LIBS="-lkrb5 $LIBS"
13794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13795 /* end confdefs.h. */
13797 /* Override any GCC internal prototype to avoid an error.
13798 Use char because int might match the return type of a GCC
13799 builtin and then its argument prototype would still apply. */
13800 #ifdef __cplusplus
13801 extern "C"
13802 #endif
13803 char krb5_init_context ();
13805 main ()
13807 return krb5_init_context ();
13809 return 0;
13811 _ACEOF
13812 if ac_fn_c_try_link "$LINENO"; then :
13813 ac_cv_lib_krb5_krb5_init_context=yes
13814 else
13815 ac_cv_lib_krb5_krb5_init_context=no
13817 rm -f core conftest.err conftest.$ac_objext \
13818 conftest$ac_exeext conftest.$ac_ext
13819 LIBS=$ac_check_lib_save_LIBS
13821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
13822 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
13823 if test "x$ac_cv_lib_krb5_krb5_init_context" = x""yes; then :
13824 have_krb5=yes
13825 else
13826 have_krb5=no
13829 if test $have_krb5=yes; then
13830 KRB5LIB=-lkrb5
13831 LIBS="$KRB5LIB $LIBS"
13833 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
13836 if test "${with_kerberos5}" = no; then
13837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
13838 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
13839 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
13840 $as_echo_n "(cached) " >&6
13841 else
13842 ac_check_lib_save_LIBS=$LIBS
13843 LIBS="-ldes425 $LIBS"
13844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13845 /* end confdefs.h. */
13847 /* Override any GCC internal prototype to avoid an error.
13848 Use char because int might match the return type of a GCC
13849 builtin and then its argument prototype would still apply. */
13850 #ifdef __cplusplus
13851 extern "C"
13852 #endif
13853 char des_cbc_encrypt ();
13855 main ()
13857 return des_cbc_encrypt ();
13859 return 0;
13861 _ACEOF
13862 if ac_fn_c_try_link "$LINENO"; then :
13863 ac_cv_lib_des425_des_cbc_encrypt=yes
13864 else
13865 ac_cv_lib_des425_des_cbc_encrypt=no
13867 rm -f core conftest.err conftest.$ac_objext \
13868 conftest$ac_exeext conftest.$ac_ext
13869 LIBS=$ac_check_lib_save_LIBS
13871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
13872 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
13873 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x""yes; then :
13874 have_des425=yes
13875 else
13876 have_des425=no
13879 if test $have_des425 = yes; then
13880 DESLIB=-ldes425
13881 LIBS="$DESLIB $LIBS"
13883 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
13885 else
13886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
13887 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
13888 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
13889 $as_echo_n "(cached) " >&6
13890 else
13891 ac_check_lib_save_LIBS=$LIBS
13892 LIBS="-ldes $LIBS"
13893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13894 /* end confdefs.h. */
13896 /* Override any GCC internal prototype to avoid an error.
13897 Use char because int might match the return type of a GCC
13898 builtin and then its argument prototype would still apply. */
13899 #ifdef __cplusplus
13900 extern "C"
13901 #endif
13902 char des_cbc_encrypt ();
13904 main ()
13906 return des_cbc_encrypt ();
13908 return 0;
13910 _ACEOF
13911 if ac_fn_c_try_link "$LINENO"; then :
13912 ac_cv_lib_des_des_cbc_encrypt=yes
13913 else
13914 ac_cv_lib_des_des_cbc_encrypt=no
13916 rm -f core conftest.err conftest.$ac_objext \
13917 conftest$ac_exeext conftest.$ac_ext
13918 LIBS=$ac_check_lib_save_LIBS
13920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
13921 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
13922 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x""yes; then :
13923 have_des=yes
13924 else
13925 have_des=no
13928 if test $have_des = yes; then
13929 DESLIB=-ldes
13930 LIBS="$DESLIB $LIBS"
13932 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
13936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
13937 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
13938 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
13939 $as_echo_n "(cached) " >&6
13940 else
13941 ac_check_lib_save_LIBS=$LIBS
13942 LIBS="-lkrb4 $LIBS"
13943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13944 /* end confdefs.h. */
13946 /* Override any GCC internal prototype to avoid an error.
13947 Use char because int might match the return type of a GCC
13948 builtin and then its argument prototype would still apply. */
13949 #ifdef __cplusplus
13950 extern "C"
13951 #endif
13952 char krb_get_cred ();
13954 main ()
13956 return krb_get_cred ();
13958 return 0;
13960 _ACEOF
13961 if ac_fn_c_try_link "$LINENO"; then :
13962 ac_cv_lib_krb4_krb_get_cred=yes
13963 else
13964 ac_cv_lib_krb4_krb_get_cred=no
13966 rm -f core conftest.err conftest.$ac_objext \
13967 conftest$ac_exeext conftest.$ac_ext
13968 LIBS=$ac_check_lib_save_LIBS
13970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
13971 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
13972 if test "x$ac_cv_lib_krb4_krb_get_cred" = x""yes; then :
13973 have_krb4=yes
13974 else
13975 have_krb4=no
13978 if test $have_krb4 = yes; then
13979 KRB4LIB=-lkrb4
13980 LIBS="$KRB4LIB $LIBS"
13982 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
13984 else
13985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
13986 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
13987 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
13988 $as_echo_n "(cached) " >&6
13989 else
13990 ac_check_lib_save_LIBS=$LIBS
13991 LIBS="-lkrb $LIBS"
13992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13993 /* end confdefs.h. */
13995 /* Override any GCC internal prototype to avoid an error.
13996 Use char because int might match the return type of a GCC
13997 builtin and then its argument prototype would still apply. */
13998 #ifdef __cplusplus
13999 extern "C"
14000 #endif
14001 char krb_get_cred ();
14003 main ()
14005 return krb_get_cred ();
14007 return 0;
14009 _ACEOF
14010 if ac_fn_c_try_link "$LINENO"; then :
14011 ac_cv_lib_krb_krb_get_cred=yes
14012 else
14013 ac_cv_lib_krb_krb_get_cred=no
14015 rm -f core conftest.err conftest.$ac_objext \
14016 conftest$ac_exeext conftest.$ac_ext
14017 LIBS=$ac_check_lib_save_LIBS
14019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
14020 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
14021 if test "x$ac_cv_lib_krb_krb_get_cred" = x""yes; then :
14022 have_krb=yes
14023 else
14024 have_krb=no
14027 if test $have_krb = yes; then
14028 KRB4LIB=-lkrb
14029 LIBS="$KRB4LIB $LIBS"
14031 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
14037 if test "${with_kerberos5}" != no; then
14038 for ac_header in krb5.h
14039 do :
14040 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
14041 if test "x$ac_cv_header_krb5_h" = x""yes; then :
14042 cat >>confdefs.h <<_ACEOF
14043 #define HAVE_KRB5_H 1
14044 _ACEOF
14045 ac_fn_c_check_member "$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
14047 if test "x$ac_cv_member_krb5_error_text" = x""yes; then :
14049 cat >>confdefs.h <<_ACEOF
14050 #define HAVE_KRB5_ERROR_TEXT 1
14051 _ACEOF
14055 ac_fn_c_check_member "$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
14057 if test "x$ac_cv_member_krb5_error_e_text" = x""yes; then :
14059 cat >>confdefs.h <<_ACEOF
14060 #define HAVE_KRB5_ERROR_E_TEXT 1
14061 _ACEOF
14068 done
14070 else
14071 for ac_header in des.h
14072 do :
14073 ac_fn_c_check_header_mongrel "$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
14074 if test "x$ac_cv_header_des_h" = x""yes; then :
14075 cat >>confdefs.h <<_ACEOF
14076 #define HAVE_DES_H 1
14077 _ACEOF
14079 else
14080 for ac_header in kerberosIV/des.h
14081 do :
14082 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
14083 if test "x$ac_cv_header_kerberosIV_des_h" = x""yes; then :
14084 cat >>confdefs.h <<_ACEOF
14085 #define HAVE_KERBEROSIV_DES_H 1
14086 _ACEOF
14088 else
14089 for ac_header in kerberos/des.h
14090 do :
14091 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
14092 if test "x$ac_cv_header_kerberos_des_h" = x""yes; then :
14093 cat >>confdefs.h <<_ACEOF
14094 #define HAVE_KERBEROS_DES_H 1
14095 _ACEOF
14099 done
14103 done
14107 done
14109 for ac_header in krb.h
14110 do :
14111 ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
14112 if test "x$ac_cv_header_krb_h" = x""yes; then :
14113 cat >>confdefs.h <<_ACEOF
14114 #define HAVE_KRB_H 1
14115 _ACEOF
14117 else
14118 for ac_header in kerberosIV/krb.h
14119 do :
14120 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
14121 if test "x$ac_cv_header_kerberosIV_krb_h" = x""yes; then :
14122 cat >>confdefs.h <<_ACEOF
14123 #define HAVE_KERBEROSIV_KRB_H 1
14124 _ACEOF
14126 else
14127 for ac_header in kerberos/krb.h
14128 do :
14129 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
14130 if test "x$ac_cv_header_kerberos_krb_h" = x""yes; then :
14131 cat >>confdefs.h <<_ACEOF
14132 #define HAVE_KERBEROS_KRB_H 1
14133 _ACEOF
14137 done
14141 done
14145 done
14148 for ac_header in com_err.h
14149 do :
14150 ac_fn_c_check_header_mongrel "$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
14151 if test "x$ac_cv_header_com_err_h" = x""yes; then :
14152 cat >>confdefs.h <<_ACEOF
14153 #define HAVE_COM_ERR_H 1
14154 _ACEOF
14158 done
14171 for ac_func in $ac_func_list
14172 do :
14173 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14174 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14175 eval as_val=\$$as_ac_var
14176 if test "x$as_val" = x""yes; then :
14177 cat >>confdefs.h <<_ACEOF
14178 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14179 _ACEOF
14182 done
14187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
14188 $as_echo_n "checking whether localtime caches TZ... " >&6; }
14189 if test "${emacs_cv_localtime_cache+set}" = set; then :
14190 $as_echo_n "(cached) " >&6
14191 else
14192 if test x$ac_cv_func_tzset = xyes; then
14193 if test "$cross_compiling" = yes; then :
14194 # If we have tzset, assume the worst when cross-compiling.
14195 emacs_cv_localtime_cache=yes
14196 else
14197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14198 /* end confdefs.h. */
14199 #include <time.h>
14200 char TZ_GMT0[] = "TZ=GMT0";
14201 char TZ_PST8[] = "TZ=PST8";
14202 main()
14204 time_t now = time ((time_t *) 0);
14205 int hour_GMT0, hour_unset;
14206 if (putenv (TZ_GMT0) != 0)
14207 exit (1);
14208 hour_GMT0 = localtime (&now)->tm_hour;
14209 unsetenv("TZ");
14210 hour_unset = localtime (&now)->tm_hour;
14211 if (putenv (TZ_PST8) != 0)
14212 exit (1);
14213 if (localtime (&now)->tm_hour == hour_GMT0)
14214 exit (1);
14215 unsetenv("TZ");
14216 if (localtime (&now)->tm_hour != hour_unset)
14217 exit (1);
14218 exit (0);
14220 _ACEOF
14221 if ac_fn_c_try_run "$LINENO"; then :
14222 emacs_cv_localtime_cache=no
14223 else
14224 emacs_cv_localtime_cache=yes
14226 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14227 conftest.$ac_objext conftest.beam conftest.$ac_ext
14230 else
14231 # If we lack tzset, report that localtime does not cache TZ,
14232 # since we can't invalidate the cache if we don't have tzset.
14233 emacs_cv_localtime_cache=no
14236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
14237 $as_echo "$emacs_cv_localtime_cache" >&6; }
14238 if test $emacs_cv_localtime_cache = yes; then
14240 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
14244 if test "x$HAVE_TIMEVAL" = xyes; then
14245 for ac_func in gettimeofday
14246 do :
14247 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
14248 if test "x$ac_cv_func_gettimeofday" = x""yes; then :
14249 cat >>confdefs.h <<_ACEOF
14250 #define HAVE_GETTIMEOFDAY 1
14251 _ACEOF
14254 done
14256 if test $ac_cv_func_gettimeofday = yes; then
14257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday can accept two arguments" >&5
14258 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
14259 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then :
14260 $as_echo_n "(cached) " >&6
14261 else
14262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14263 /* end confdefs.h. */
14265 #ifdef TIME_WITH_SYS_TIME
14266 #include <sys/time.h>
14267 #include <time.h>
14268 #else
14269 #ifdef HAVE_SYS_TIME_H
14270 #include <sys/time.h>
14271 #else
14272 #include <time.h>
14273 #endif
14274 #endif
14276 main ()
14278 struct timeval time;
14279 gettimeofday (&time, 0);
14281 return 0;
14283 _ACEOF
14284 if ac_fn_c_try_compile "$LINENO"; then :
14285 emacs_cv_gettimeofday_two_arguments=yes
14286 else
14287 emacs_cv_gettimeofday_two_arguments=no
14289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_gettimeofday_two_arguments" >&5
14292 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
14293 if test $emacs_cv_gettimeofday_two_arguments = no; then
14295 $as_echo "#define GETTIMEOFDAY_ONE_ARGUMENT 1" >>confdefs.h
14301 ok_so_far=yes
14302 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
14303 if test "x$ac_cv_func_socket" = x""yes; then :
14305 else
14306 ok_so_far=no
14309 if test $ok_so_far = yes; then
14310 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
14311 if test "x$ac_cv_header_netinet_in_h" = x""yes; then :
14313 else
14314 ok_so_far=no
14319 if test $ok_so_far = yes; then
14320 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
14321 if test "x$ac_cv_header_arpa_inet_h" = x""yes; then :
14323 else
14324 ok_so_far=no
14329 if test $ok_so_far = yes; then
14331 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
14335 if test -f /usr/lpp/X11/bin/smt.exp; then
14337 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
14341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
14342 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
14343 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
14344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14345 $as_echo "yes" >&6; }
14347 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
14349 else
14350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14351 $as_echo "no" >&6; }
14354 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
14355 if test "x$ac_cv_type_pid_t" = x""yes; then :
14357 else
14359 cat >>confdefs.h <<_ACEOF
14360 #define pid_t int
14361 _ACEOF
14365 for ac_header in vfork.h
14366 do :
14367 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
14368 if test "x$ac_cv_header_vfork_h" = x""yes; then :
14369 cat >>confdefs.h <<_ACEOF
14370 #define HAVE_VFORK_H 1
14371 _ACEOF
14375 done
14377 for ac_func in fork vfork
14378 do :
14379 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14380 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14381 eval as_val=\$$as_ac_var
14382 if test "x$as_val" = x""yes; then :
14383 cat >>confdefs.h <<_ACEOF
14384 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14385 _ACEOF
14388 done
14390 if test "x$ac_cv_func_fork" = xyes; then
14391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
14392 $as_echo_n "checking for working fork... " >&6; }
14393 if test "${ac_cv_func_fork_works+set}" = set; then :
14394 $as_echo_n "(cached) " >&6
14395 else
14396 if test "$cross_compiling" = yes; then :
14397 ac_cv_func_fork_works=cross
14398 else
14399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14400 /* end confdefs.h. */
14401 $ac_includes_default
14403 main ()
14406 /* By Ruediger Kuhlmann. */
14407 return fork () < 0;
14410 return 0;
14412 _ACEOF
14413 if ac_fn_c_try_run "$LINENO"; then :
14414 ac_cv_func_fork_works=yes
14415 else
14416 ac_cv_func_fork_works=no
14418 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14419 conftest.$ac_objext conftest.beam conftest.$ac_ext
14423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
14424 $as_echo "$ac_cv_func_fork_works" >&6; }
14426 else
14427 ac_cv_func_fork_works=$ac_cv_func_fork
14429 if test "x$ac_cv_func_fork_works" = xcross; then
14430 case $host in
14431 *-*-amigaos* | *-*-msdosdjgpp*)
14432 # Override, as these systems have only a dummy fork() stub
14433 ac_cv_func_fork_works=no
14436 ac_cv_func_fork_works=yes
14438 esac
14439 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
14440 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
14442 ac_cv_func_vfork_works=$ac_cv_func_vfork
14443 if test "x$ac_cv_func_vfork" = xyes; then
14444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
14445 $as_echo_n "checking for working vfork... " >&6; }
14446 if test "${ac_cv_func_vfork_works+set}" = set; then :
14447 $as_echo_n "(cached) " >&6
14448 else
14449 if test "$cross_compiling" = yes; then :
14450 ac_cv_func_vfork_works=cross
14451 else
14452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14453 /* end confdefs.h. */
14454 /* Thanks to Paul Eggert for this test. */
14455 $ac_includes_default
14456 #include <sys/wait.h>
14457 #ifdef HAVE_VFORK_H
14458 # include <vfork.h>
14459 #endif
14460 /* On some sparc systems, changes by the child to local and incoming
14461 argument registers are propagated back to the parent. The compiler
14462 is told about this with #include <vfork.h>, but some compilers
14463 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
14464 static variable whose address is put into a register that is
14465 clobbered by the vfork. */
14466 static void
14467 #ifdef __cplusplus
14468 sparc_address_test (int arg)
14469 # else
14470 sparc_address_test (arg) int arg;
14471 #endif
14473 static pid_t child;
14474 if (!child) {
14475 child = vfork ();
14476 if (child < 0) {
14477 perror ("vfork");
14478 _exit(2);
14480 if (!child) {
14481 arg = getpid();
14482 write(-1, "", 0);
14483 _exit (arg);
14489 main ()
14491 pid_t parent = getpid ();
14492 pid_t child;
14494 sparc_address_test (0);
14496 child = vfork ();
14498 if (child == 0) {
14499 /* Here is another test for sparc vfork register problems. This
14500 test uses lots of local variables, at least as many local
14501 variables as main has allocated so far including compiler
14502 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
14503 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
14504 reuse the register of parent for one of the local variables,
14505 since it will think that parent can't possibly be used any more
14506 in this routine. Assigning to the local variable will thus
14507 munge parent in the parent process. */
14508 pid_t
14509 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
14510 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
14511 /* Convince the compiler that p..p7 are live; otherwise, it might
14512 use the same hardware register for all 8 local variables. */
14513 if (p != p1 || p != p2 || p != p3 || p != p4
14514 || p != p5 || p != p6 || p != p7)
14515 _exit(1);
14517 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
14518 from child file descriptors. If the child closes a descriptor
14519 before it execs or exits, this munges the parent's descriptor
14520 as well. Test for this by closing stdout in the child. */
14521 _exit(close(fileno(stdout)) != 0);
14522 } else {
14523 int status;
14524 struct stat st;
14526 while (wait(&status) != child)
14528 return (
14529 /* Was there some problem with vforking? */
14530 child < 0
14532 /* Did the child fail? (This shouldn't happen.) */
14533 || status
14535 /* Did the vfork/compiler bug occur? */
14536 || parent != getpid()
14538 /* Did the file descriptor bug occur? */
14539 || fstat(fileno(stdout), &st) != 0
14543 _ACEOF
14544 if ac_fn_c_try_run "$LINENO"; then :
14545 ac_cv_func_vfork_works=yes
14546 else
14547 ac_cv_func_vfork_works=no
14549 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14550 conftest.$ac_objext conftest.beam conftest.$ac_ext
14554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
14555 $as_echo "$ac_cv_func_vfork_works" >&6; }
14558 if test "x$ac_cv_func_fork_works" = xcross; then
14559 ac_cv_func_vfork_works=$ac_cv_func_vfork
14560 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
14561 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
14564 if test "x$ac_cv_func_vfork_works" = xyes; then
14566 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
14568 else
14570 $as_echo "#define vfork fork" >>confdefs.h
14573 if test "x$ac_cv_func_fork_works" = xyes; then
14575 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
14580 for ac_func in snprintf
14581 do :
14582 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
14583 if test "x$ac_cv_func_snprintf" = x""yes; then :
14584 cat >>confdefs.h <<_ACEOF
14585 #define HAVE_SNPRINTF 1
14586 _ACEOF
14589 done
14592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
14593 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
14594 if test "${emacs_cv_langinfo_codeset+set}" = set; then :
14595 $as_echo_n "(cached) " >&6
14596 else
14597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14598 /* end confdefs.h. */
14599 #include <langinfo.h>
14601 main ()
14603 char* cs = nl_langinfo(CODESET);
14605 return 0;
14607 _ACEOF
14608 if ac_fn_c_try_link "$LINENO"; then :
14609 emacs_cv_langinfo_codeset=yes
14610 else
14611 emacs_cv_langinfo_codeset=no
14613 rm -f core conftest.err conftest.$ac_objext \
14614 conftest$ac_exeext conftest.$ac_ext
14617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
14618 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
14619 if test $emacs_cv_langinfo_codeset = yes; then
14621 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
14625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
14626 $as_echo_n "checking for mbstate_t... " >&6; }
14627 if test "${ac_cv_type_mbstate_t+set}" = set; then :
14628 $as_echo_n "(cached) " >&6
14629 else
14630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14631 /* end confdefs.h. */
14632 $ac_includes_default
14633 # include <wchar.h>
14635 main ()
14637 mbstate_t x; return sizeof x;
14639 return 0;
14641 _ACEOF
14642 if ac_fn_c_try_compile "$LINENO"; then :
14643 ac_cv_type_mbstate_t=yes
14644 else
14645 ac_cv_type_mbstate_t=no
14647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
14650 $as_echo "$ac_cv_type_mbstate_t" >&6; }
14651 if test $ac_cv_type_mbstate_t = yes; then
14653 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
14655 else
14657 $as_echo "#define mbstate_t int" >>confdefs.h
14661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
14662 $as_echo_n "checking for C restricted array declarations... " >&6; }
14663 if test "${emacs_cv_c_restrict_arr+set}" = set; then :
14664 $as_echo_n "(cached) " >&6
14665 else
14666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14667 /* end confdefs.h. */
14668 void fred (int x[__restrict]);
14670 main ()
14674 return 0;
14676 _ACEOF
14677 if ac_fn_c_try_compile "$LINENO"; then :
14678 emacs_cv_c_restrict_arr=yes
14679 else
14680 emacs_cv_c_restrict_arr=no
14682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
14685 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
14686 if test "$emacs_cv_c_restrict_arr" = yes; then
14688 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
14693 # Set up the CFLAGS for real compilation, so we can substitute it.
14694 CFLAGS="$REAL_CFLAGS"
14695 CPPFLAGS="$REAL_CPPFLAGS"
14697 ## Hack to detect a buggy GCC version.
14698 if test "x$GCC" = xyes \
14699 && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
14700 && test x"`echo $CFLAGS | grep '\-O[23]'`" != x \
14701 && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then
14702 as_fn_error "GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
14705 version=$PACKAGE_VERSION
14707 ### Specify what sort of things we'll be editing into Makefile and config.h.
14708 ### Use configuration here uncanonicalized to avoid exceeding size limits.
14711 ## Unused?
14733 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
14734 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
14735 ## end of LIBX_BASE, but nothing ever set it.
14740 ## Used in lwlib/Makefile.in.
14742 S_FILE="\$(srcdir)/${opsysfile}"
14752 cat >>confdefs.h <<_ACEOF
14753 #define EMACS_CONFIGURATION "${canonical}"
14754 _ACEOF
14757 cat >>confdefs.h <<_ACEOF
14758 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
14759 _ACEOF
14762 cat >>confdefs.h <<_ACEOF
14763 #define config_opsysfile "${opsysfile}"
14764 _ACEOF
14767 XMENU_OBJ=
14768 XOBJ=
14769 FONT_OBJ=
14770 if test "${HAVE_X_WINDOWS}" = "yes" ; then
14772 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
14774 XMENU_OBJ=xmenu.o
14775 XOBJ="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
14776 FONT_OBJ=xfont.o
14777 if test "$HAVE_XFT" = "yes"; then
14778 FONT_OBJ="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
14779 elif test "$HAVE_FREETYPE" = "yes"; then
14780 FONT_OBJ="$FONT_OBJ ftfont.o ftxfont.o"
14788 WIDGET_OBJ=
14789 MOTIF_LIBW=
14790 if test "${USE_X_TOOLKIT}" != "none" ; then
14791 WIDGET_OBJ=widget.o
14793 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
14795 if test "${USE_X_TOOLKIT}" = "LUCID"; then
14797 $as_echo "#define USE_LUCID 1" >>confdefs.h
14799 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
14801 $as_echo "#define USE_MOTIF 1" >>confdefs.h
14803 MOTIF_LIBW=-lXm
14804 case "$opsys" in
14805 gnu-linux)
14806 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
14807 MOTIF_LIBW="$MOTIF_LIBW -lXpm"
14810 unixware)
14811 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
14812 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
14813 MOTIF_LIBW="MOTIF_LIBW -lXimp"
14816 aix4-2)
14817 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
14818 MOTIF_LIBW="$MOTIF_LIBW -li18n"
14820 esac
14821 MOTIF_LIBW="$MOTIF_LIBW $LIBXP"
14826 TOOLKIT_LIBW=
14827 case "$USE_X_TOOLKIT" in
14828 MOTIF) TOOLKIT_LIBW="$MOTIF_LIBW" ;;
14829 LUCID) TOOLKIT_LIBW="$LUCID_LIBW" ;;
14830 none) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW="$GTK_LIBS" ;;
14831 esac
14834 if test "$USE_X_TOOLKIT" = "none"; then
14835 LIBXT_OTHER="\$(LIBXSM)"
14836 OLDXMENU_TARGET="really-oldXMenu"
14837 else
14838 LIBXT_OTHER="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
14839 OLDXMENU_TARGET="really-lwlib"
14843 ## The X Menu stuff is present in the X10 distribution, but missing
14844 ## from X11. If we have X10, just use the installed library;
14845 ## otherwise, use our own copy.
14846 if test "${HAVE_X11}" = "yes" ; then
14848 $as_echo "#define HAVE_X11 1" >>confdefs.h
14851 if test "$USE_X_TOOLKIT" = "none"; then
14852 OLDXMENU="\${oldXMenudir}/libXMenu11.a"
14853 else
14854 OLDXMENU="\${lwlibdir}/liblw.a"
14856 LIBXMENU="\$(OLDXMENU)"
14857 LIBX_OTHER="\$(LIBXT) \$(LIBX_EXTRA)"
14858 OLDXMENU_DEPS="\${OLDXMENU} ../src/\${OLDXMENU}"
14859 else
14860 ## For a syntactically valid Makefile; not actually used for anything.
14861 ## See comments in src/Makefile.in.
14862 OLDXMENU=nothing
14863 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
14864 if test "${HAVE_X_WINDOWS}" = "yes"; then
14865 LIBXMENU="-lXMenu"
14866 else
14867 LIBXMENU=
14869 LIBX_OTHER=
14870 OLDXMENU_DEPS=
14873 if test "$HAVE_GTK" = "yes" || test "$HAVE_MENUS" != "yes"; then
14874 OLDXMENU_TARGET=
14875 OLDXMENU=nothing
14876 LIBXMENU=
14877 OLDXMENU_DEPS=
14886 if test "${HAVE_MENUS}" = "yes" ; then
14888 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
14892 if test "${GNU_MALLOC}" = "yes" ; then
14894 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
14898 RALLOC_OBJ=
14899 if test "${REL_ALLOC}" = "yes" ; then
14901 $as_echo "#define REL_ALLOC 1" >>confdefs.h
14904 test "$system_malloc" != "yes" && RALLOC_OBJ=ralloc.o
14908 if test "$opsys" = "cygwin"; then
14909 CYGWIN_OBJ="sheap.o"
14910 ## Cygwin differs because of its unexec().
14911 PRE_ALLOC_OBJ=
14912 POST_ALLOC_OBJ=lastfile.o
14913 else
14914 CYGWIN_OBJ=
14915 PRE_ALLOC_OBJ=lastfile.o
14916 POST_ALLOC_OBJ=
14922 # Configure gnulib here, now that we know LIBS.
14934 LIBC_FATAL_STDERR_=1
14935 export LIBC_FATAL_STDERR_
14937 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
14938 # for constant arguments. Useless!
14939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
14940 $as_echo_n "checking for working alloca.h... " >&6; }
14941 if test "${ac_cv_working_alloca_h+set}" = set; then :
14942 $as_echo_n "(cached) " >&6
14943 else
14944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14945 /* end confdefs.h. */
14946 #include <alloca.h>
14948 main ()
14950 char *p = (char *) alloca (2 * sizeof (int));
14951 if (p) return 0;
14953 return 0;
14955 _ACEOF
14956 if ac_fn_c_try_link "$LINENO"; then :
14957 ac_cv_working_alloca_h=yes
14958 else
14959 ac_cv_working_alloca_h=no
14961 rm -f core conftest.err conftest.$ac_objext \
14962 conftest$ac_exeext conftest.$ac_ext
14964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
14965 $as_echo "$ac_cv_working_alloca_h" >&6; }
14966 if test $ac_cv_working_alloca_h = yes; then
14968 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
14972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
14973 $as_echo_n "checking for alloca... " >&6; }
14974 if test "${ac_cv_func_alloca_works+set}" = set; then :
14975 $as_echo_n "(cached) " >&6
14976 else
14977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14978 /* end confdefs.h. */
14979 #ifdef __GNUC__
14980 # define alloca __builtin_alloca
14981 #else
14982 # ifdef _MSC_VER
14983 # include <malloc.h>
14984 # define alloca _alloca
14985 # else
14986 # ifdef HAVE_ALLOCA_H
14987 # include <alloca.h>
14988 # else
14989 # ifdef _AIX
14990 #pragma alloca
14991 # else
14992 # ifndef alloca /* predefined by HP cc +Olibcalls */
14993 char *alloca ();
14994 # endif
14995 # endif
14996 # endif
14997 # endif
14998 #endif
15001 main ()
15003 char *p = (char *) alloca (1);
15004 if (p) return 0;
15006 return 0;
15008 _ACEOF
15009 if ac_fn_c_try_link "$LINENO"; then :
15010 ac_cv_func_alloca_works=yes
15011 else
15012 ac_cv_func_alloca_works=no
15014 rm -f core conftest.err conftest.$ac_objext \
15015 conftest$ac_exeext conftest.$ac_ext
15017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
15018 $as_echo "$ac_cv_func_alloca_works" >&6; }
15020 if test $ac_cv_func_alloca_works = yes; then
15022 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
15024 else
15025 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15026 # that cause trouble. Some versions do not even contain alloca or
15027 # contain a buggy version. If you still want to use their alloca,
15028 # use ar to extract alloca.o from them instead of compiling alloca.c.
15034 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
15036 $as_echo "#define C_ALLOCA 1" >>confdefs.h
15039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 'alloca.c' needs Cray hooks" >&5
15040 $as_echo_n "checking whether 'alloca.c' needs Cray hooks... " >&6; }
15041 if test "${ac_cv_os_cray+set}" = set; then :
15042 $as_echo_n "(cached) " >&6
15043 else
15044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15045 /* end confdefs.h. */
15046 #if defined CRAY && ! defined CRAY2
15047 webecray
15048 #else
15049 wenotbecray
15050 #endif
15052 _ACEOF
15053 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15054 $EGREP "webecray" >/dev/null 2>&1; then :
15055 ac_cv_os_cray=yes
15056 else
15057 ac_cv_os_cray=no
15059 rm -f conftest*
15062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
15063 $as_echo "$ac_cv_os_cray" >&6; }
15064 if test $ac_cv_os_cray = yes; then
15065 for ac_func in _getb67 GETB67 getb67; do
15066 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15067 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15068 eval as_val=\$$as_ac_var
15069 if test "x$as_val" = x""yes; then :
15071 cat >>confdefs.h <<_ACEOF
15072 #define CRAY_STACKSEG_END $ac_func
15073 _ACEOF
15075 break
15078 done
15081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
15082 $as_echo_n "checking stack direction for C alloca... " >&6; }
15083 if test "${ac_cv_c_stack_direction+set}" = set; then :
15084 $as_echo_n "(cached) " >&6
15085 else
15086 if test "$cross_compiling" = yes; then :
15087 ac_cv_c_stack_direction=0
15088 else
15089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15090 /* end confdefs.h. */
15091 $ac_includes_default
15093 find_stack_direction (int *addr, int depth)
15095 int dir, dummy = 0;
15096 if (! addr)
15097 addr = &dummy;
15098 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
15099 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
15100 return dir + dummy;
15104 main (int argc, char **argv)
15106 return find_stack_direction (0, argc + !argv + 20) < 0;
15108 _ACEOF
15109 if ac_fn_c_try_run "$LINENO"; then :
15110 ac_cv_c_stack_direction=1
15111 else
15112 ac_cv_c_stack_direction=-1
15114 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15115 conftest.$ac_objext conftest.beam conftest.$ac_ext
15119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
15120 $as_echo "$ac_cv_c_stack_direction" >&6; }
15121 cat >>confdefs.h <<_ACEOF
15122 #define STACK_DIRECTION $ac_cv_c_stack_direction
15123 _ACEOF
15131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
15132 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
15133 if test "${ac_cv_c_bigendian+set}" = set; then :
15134 $as_echo_n "(cached) " >&6
15135 else
15136 ac_cv_c_bigendian=unknown
15137 # See if we're dealing with a universal compiler.
15138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15139 /* end confdefs.h. */
15140 #ifndef __APPLE_CC__
15141 not a universal capable compiler
15142 #endif
15143 typedef int dummy;
15145 _ACEOF
15146 if ac_fn_c_try_compile "$LINENO"; then :
15148 # Check for potential -arch flags. It is not universal unless
15149 # there are at least two -arch flags with different values.
15150 ac_arch=
15151 ac_prev=
15152 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
15153 if test -n "$ac_prev"; then
15154 case $ac_word in
15155 i?86 | x86_64 | ppc | ppc64)
15156 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
15157 ac_arch=$ac_word
15158 else
15159 ac_cv_c_bigendian=universal
15160 break
15163 esac
15164 ac_prev=
15165 elif test "x$ac_word" = "x-arch"; then
15166 ac_prev=arch
15168 done
15170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15171 if test $ac_cv_c_bigendian = unknown; then
15172 # See if sys/param.h defines the BYTE_ORDER macro.
15173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15174 /* end confdefs.h. */
15175 #include <sys/types.h>
15176 #include <sys/param.h>
15179 main ()
15181 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
15182 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
15183 && LITTLE_ENDIAN)
15184 bogus endian macros
15185 #endif
15188 return 0;
15190 _ACEOF
15191 if ac_fn_c_try_compile "$LINENO"; then :
15192 # It does; now see whether it defined to BIG_ENDIAN or not.
15193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15194 /* end confdefs.h. */
15195 #include <sys/types.h>
15196 #include <sys/param.h>
15199 main ()
15201 #if BYTE_ORDER != BIG_ENDIAN
15202 not big endian
15203 #endif
15206 return 0;
15208 _ACEOF
15209 if ac_fn_c_try_compile "$LINENO"; then :
15210 ac_cv_c_bigendian=yes
15211 else
15212 ac_cv_c_bigendian=no
15214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15218 if test $ac_cv_c_bigendian = unknown; then
15219 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
15220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15221 /* end confdefs.h. */
15222 #include <limits.h>
15225 main ()
15227 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
15228 bogus endian macros
15229 #endif
15232 return 0;
15234 _ACEOF
15235 if ac_fn_c_try_compile "$LINENO"; then :
15236 # It does; now see whether it defined to _BIG_ENDIAN or not.
15237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15238 /* end confdefs.h. */
15239 #include <limits.h>
15242 main ()
15244 #ifndef _BIG_ENDIAN
15245 not big endian
15246 #endif
15249 return 0;
15251 _ACEOF
15252 if ac_fn_c_try_compile "$LINENO"; then :
15253 ac_cv_c_bigendian=yes
15254 else
15255 ac_cv_c_bigendian=no
15257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15261 if test $ac_cv_c_bigendian = unknown; then
15262 # Compile a test program.
15263 if test "$cross_compiling" = yes; then :
15264 # Try to guess by grepping values from an object file.
15265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15266 /* end confdefs.h. */
15267 short int ascii_mm[] =
15268 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
15269 short int ascii_ii[] =
15270 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
15271 int use_ascii (int i) {
15272 return ascii_mm[i] + ascii_ii[i];
15274 short int ebcdic_ii[] =
15275 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
15276 short int ebcdic_mm[] =
15277 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
15278 int use_ebcdic (int i) {
15279 return ebcdic_mm[i] + ebcdic_ii[i];
15281 extern int foo;
15284 main ()
15286 return use_ascii (foo) == use_ebcdic (foo);
15288 return 0;
15290 _ACEOF
15291 if ac_fn_c_try_compile "$LINENO"; then :
15292 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
15293 ac_cv_c_bigendian=yes
15295 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
15296 if test "$ac_cv_c_bigendian" = unknown; then
15297 ac_cv_c_bigendian=no
15298 else
15299 # finding both strings is unlikely to happen, but who knows?
15300 ac_cv_c_bigendian=unknown
15304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15305 else
15306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15307 /* end confdefs.h. */
15308 $ac_includes_default
15310 main ()
15313 /* Are we little or big endian? From Harbison&Steele. */
15314 union
15316 long int l;
15317 char c[sizeof (long int)];
15318 } u;
15319 u.l = 1;
15320 return u.c[sizeof (long int) - 1] == 1;
15323 return 0;
15325 _ACEOF
15326 if ac_fn_c_try_run "$LINENO"; then :
15327 ac_cv_c_bigendian=no
15328 else
15329 ac_cv_c_bigendian=yes
15331 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15332 conftest.$ac_objext conftest.beam conftest.$ac_ext
15337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
15338 $as_echo "$ac_cv_c_bigendian" >&6; }
15339 case $ac_cv_c_bigendian in #(
15340 yes)
15341 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
15342 ;; #(
15344 ;; #(
15345 universal)
15347 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
15349 ;; #(
15351 as_fn_error "unknown endianness
15352 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
15353 esac
15356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
15357 $as_echo_n "checking for inline... " >&6; }
15358 if test "${ac_cv_c_inline+set}" = set; then :
15359 $as_echo_n "(cached) " >&6
15360 else
15361 ac_cv_c_inline=no
15362 for ac_kw in inline __inline__ __inline; do
15363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15364 /* end confdefs.h. */
15365 #ifndef __cplusplus
15366 typedef int foo_t;
15367 static $ac_kw foo_t static_foo () {return 0; }
15368 $ac_kw foo_t foo () {return 0; }
15369 #endif
15371 _ACEOF
15372 if ac_fn_c_try_compile "$LINENO"; then :
15373 ac_cv_c_inline=$ac_kw
15375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15376 test "$ac_cv_c_inline" != no && break
15377 done
15380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
15381 $as_echo "$ac_cv_c_inline" >&6; }
15383 case $ac_cv_c_inline in
15384 inline | yes) ;;
15386 case $ac_cv_c_inline in
15387 no) ac_val=;;
15388 *) ac_val=$ac_cv_c_inline;;
15389 esac
15390 cat >>confdefs.h <<_ACEOF
15391 #ifndef __cplusplus
15392 #define inline $ac_val
15393 #endif
15394 _ACEOF
15396 esac
15399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtold conforms to C99" >&5
15400 $as_echo_n "checking whether strtold conforms to C99... " >&6; }
15401 if test "${gl_cv_func_c99_strtold+set}" = set; then :
15402 $as_echo_n "(cached) " >&6
15403 else
15404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15405 /* end confdefs.h. */
15406 /* On HP-UX before 11.23, strtold returns a struct instead of
15407 long double. Reject implementations like that, by requiring
15408 compatibility with the C99 prototype. */
15409 #include <stdlib.h>
15410 static long double (*p) (char const *, char **) = strtold;
15411 static long double
15412 test (char const *nptr, char **endptr)
15414 long double r;
15415 r = strtold (nptr, endptr);
15416 return r;
15419 main ()
15421 return test ("1.0", NULL) != 1 || p ("1.0", NULL) != 1;
15423 return 0;
15425 _ACEOF
15426 if ac_fn_c_try_link "$LINENO"; then :
15427 gl_cv_func_c99_strtold=yes
15428 else
15429 gl_cv_func_c99_strtold=no
15431 rm -f core conftest.err conftest.$ac_objext \
15432 conftest$ac_exeext conftest.$ac_ext
15434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_c99_strtold" >&5
15435 $as_echo "$gl_cv_func_c99_strtold" >&6; }
15436 if test $gl_cv_func_c99_strtold = yes; then
15438 $as_echo "#define HAVE_C99_STRTOLD 1" >>confdefs.h
15443 GNULIB_CHDIR=0;
15444 GNULIB_CHOWN=0;
15445 GNULIB_CLOSE=0;
15446 GNULIB_DUP=0;
15447 GNULIB_DUP2=0;
15448 GNULIB_DUP3=0;
15449 GNULIB_ENVIRON=0;
15450 GNULIB_EUIDACCESS=0;
15451 GNULIB_FACCESSAT=0;
15452 GNULIB_FCHDIR=0;
15453 GNULIB_FCHOWNAT=0;
15454 GNULIB_FDATASYNC=0;
15455 GNULIB_FSYNC=0;
15456 GNULIB_FTRUNCATE=0;
15457 GNULIB_GETCWD=0;
15458 GNULIB_GETDOMAINNAME=0;
15459 GNULIB_GETDTABLESIZE=0;
15460 GNULIB_GETGROUPS=0;
15461 GNULIB_GETHOSTNAME=0;
15462 GNULIB_GETLOGIN=0;
15463 GNULIB_GETLOGIN_R=0;
15464 GNULIB_GETPAGESIZE=0;
15465 GNULIB_GETUSERSHELL=0;
15466 GNULIB_GROUP_MEMBER=0;
15467 GNULIB_ISATTY=0;
15468 GNULIB_LCHOWN=0;
15469 GNULIB_LINK=0;
15470 GNULIB_LINKAT=0;
15471 GNULIB_LSEEK=0;
15472 GNULIB_PIPE=0;
15473 GNULIB_PIPE2=0;
15474 GNULIB_PREAD=0;
15475 GNULIB_PWRITE=0;
15476 GNULIB_READ=0;
15477 GNULIB_READLINK=0;
15478 GNULIB_READLINKAT=0;
15479 GNULIB_RMDIR=0;
15480 GNULIB_SETHOSTNAME=0;
15481 GNULIB_SLEEP=0;
15482 GNULIB_SYMLINK=0;
15483 GNULIB_SYMLINKAT=0;
15484 GNULIB_TTYNAME_R=0;
15485 GNULIB_UNISTD_H_NONBLOCKING=0;
15486 GNULIB_UNISTD_H_SIGPIPE=0;
15487 GNULIB_UNLINK=0;
15488 GNULIB_UNLINKAT=0;
15489 GNULIB_USLEEP=0;
15490 GNULIB_WRITE=0;
15491 HAVE_CHOWN=1;
15492 HAVE_DUP2=1;
15493 HAVE_DUP3=1;
15494 HAVE_EUIDACCESS=1;
15495 HAVE_FACCESSAT=1;
15496 HAVE_FCHDIR=1;
15497 HAVE_FCHOWNAT=1;
15498 HAVE_FDATASYNC=1;
15499 HAVE_FSYNC=1;
15500 HAVE_FTRUNCATE=1;
15501 HAVE_GETDTABLESIZE=1;
15502 HAVE_GETGROUPS=1;
15503 HAVE_GETHOSTNAME=1;
15504 HAVE_GETLOGIN=1;
15505 HAVE_GETPAGESIZE=1;
15506 HAVE_GROUP_MEMBER=1;
15507 HAVE_LCHOWN=1;
15508 HAVE_LINK=1;
15509 HAVE_LINKAT=1;
15510 HAVE_PIPE=1;
15511 HAVE_PIPE2=1;
15512 HAVE_PREAD=1;
15513 HAVE_PWRITE=1;
15514 HAVE_READLINK=1;
15515 HAVE_READLINKAT=1;
15516 HAVE_SETHOSTNAME=1;
15517 HAVE_SLEEP=1;
15518 HAVE_SYMLINK=1;
15519 HAVE_SYMLINKAT=1;
15520 HAVE_UNLINKAT=1;
15521 HAVE_USLEEP=1;
15522 HAVE_DECL_ENVIRON=1;
15523 HAVE_DECL_FCHDIR=1;
15524 HAVE_DECL_FDATASYNC=1;
15525 HAVE_DECL_GETDOMAINNAME=1;
15526 HAVE_DECL_GETLOGIN_R=1;
15527 HAVE_DECL_GETPAGESIZE=1;
15528 HAVE_DECL_GETUSERSHELL=1;
15529 HAVE_DECL_SETHOSTNAME=1;
15530 HAVE_DECL_TTYNAME_R=1;
15531 HAVE_OS_H=0;
15532 HAVE_SYS_PARAM_H=0;
15533 REPLACE_CHOWN=0;
15534 REPLACE_CLOSE=0;
15535 REPLACE_DUP=0;
15536 REPLACE_DUP2=0;
15537 REPLACE_FCHOWNAT=0;
15538 REPLACE_FTRUNCATE=0;
15539 REPLACE_GETCWD=0;
15540 REPLACE_GETDOMAINNAME=0;
15541 REPLACE_GETLOGIN_R=0;
15542 REPLACE_GETGROUPS=0;
15543 REPLACE_GETPAGESIZE=0;
15544 REPLACE_ISATTY=0;
15545 REPLACE_LCHOWN=0;
15546 REPLACE_LINK=0;
15547 REPLACE_LINKAT=0;
15548 REPLACE_LSEEK=0;
15549 REPLACE_PREAD=0;
15550 REPLACE_PWRITE=0;
15551 REPLACE_READ=0;
15552 REPLACE_READLINK=0;
15553 REPLACE_RMDIR=0;
15554 REPLACE_SLEEP=0;
15555 REPLACE_SYMLINK=0;
15556 REPLACE_TTYNAME_R=0;
15557 REPLACE_UNLINK=0;
15558 REPLACE_UNLINKAT=0;
15559 REPLACE_USLEEP=0;
15560 REPLACE_WRITE=0;
15561 UNISTD_H_HAVE_WINSOCK2_H=0;
15562 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
15565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_dm_mode in struct stat" >&5
15566 $as_echo_n "checking for st_dm_mode in struct stat... " >&6; }
15567 if test "${ac_cv_struct_st_dm_mode+set}" = set; then :
15568 $as_echo_n "(cached) " >&6
15569 else
15570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15571 /* end confdefs.h. */
15573 #include <sys/types.h>
15574 #include <sys/stat.h>
15576 main ()
15578 struct stat s; s.st_dm_mode;
15580 return 0;
15582 _ACEOF
15583 if ac_fn_c_try_compile "$LINENO"; then :
15584 ac_cv_struct_st_dm_mode=yes
15585 else
15586 ac_cv_struct_st_dm_mode=no
15588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_st_dm_mode" >&5
15591 $as_echo "$ac_cv_struct_st_dm_mode" >&6; }
15593 if test $ac_cv_struct_st_dm_mode = yes; then
15595 $as_echo "#define HAVE_ST_DM_MODE 1" >>confdefs.h
15600 ac_fn_c_check_decl "$LINENO" "strmode" "ac_cv_have_decl_strmode" "$ac_includes_default"
15601 if test "x$ac_cv_have_decl_strmode" = x""yes; then :
15602 ac_have_decl=1
15603 else
15604 ac_have_decl=0
15607 cat >>confdefs.h <<_ACEOF
15608 #define HAVE_DECL_STRMODE $ac_have_decl
15609 _ACEOF
15612 GNULIB__EXIT=0;
15613 GNULIB_ATOLL=0;
15614 GNULIB_CALLOC_POSIX=0;
15615 GNULIB_CANONICALIZE_FILE_NAME=0;
15616 GNULIB_GETLOADAVG=0;
15617 GNULIB_GETSUBOPT=0;
15618 GNULIB_GRANTPT=0;
15619 GNULIB_MALLOC_POSIX=0;
15620 GNULIB_MBTOWC=0;
15621 GNULIB_MKDTEMP=0;
15622 GNULIB_MKOSTEMP=0;
15623 GNULIB_MKOSTEMPS=0;
15624 GNULIB_MKSTEMP=0;
15625 GNULIB_MKSTEMPS=0;
15626 GNULIB_POSIX_OPENPT=0;
15627 GNULIB_PTSNAME=0;
15628 GNULIB_PTSNAME_R=0;
15629 GNULIB_PUTENV=0;
15630 GNULIB_RANDOM=0;
15631 GNULIB_RANDOM_R=0;
15632 GNULIB_REALLOC_POSIX=0;
15633 GNULIB_REALPATH=0;
15634 GNULIB_RPMATCH=0;
15635 GNULIB_SETENV=0;
15636 GNULIB_STRTOD=0;
15637 GNULIB_STRTOLL=0;
15638 GNULIB_STRTOULL=0;
15639 GNULIB_SYSTEM_POSIX=0;
15640 GNULIB_UNLOCKPT=0;
15641 GNULIB_UNSETENV=0;
15642 GNULIB_WCTOMB=0;
15643 HAVE__EXIT=1;
15644 HAVE_ATOLL=1;
15645 HAVE_CANONICALIZE_FILE_NAME=1;
15646 HAVE_DECL_GETLOADAVG=1;
15647 HAVE_GETSUBOPT=1;
15648 HAVE_GRANTPT=1;
15649 HAVE_MKDTEMP=1;
15650 HAVE_MKOSTEMP=1;
15651 HAVE_MKOSTEMPS=1;
15652 HAVE_MKSTEMP=1;
15653 HAVE_MKSTEMPS=1;
15654 HAVE_POSIX_OPENPT=1;
15655 HAVE_PTSNAME=1;
15656 HAVE_PTSNAME_R=1;
15657 HAVE_RANDOM=1;
15658 HAVE_RANDOM_H=1;
15659 HAVE_RANDOM_R=1;
15660 HAVE_REALPATH=1;
15661 HAVE_RPMATCH=1;
15662 HAVE_SETENV=1;
15663 HAVE_DECL_SETENV=1;
15664 HAVE_STRTOD=1;
15665 HAVE_STRTOLL=1;
15666 HAVE_STRTOULL=1;
15667 HAVE_STRUCT_RANDOM_DATA=1;
15668 HAVE_SYS_LOADAVG_H=0;
15669 HAVE_UNLOCKPT=1;
15670 HAVE_DECL_UNSETENV=1;
15671 REPLACE_CALLOC=0;
15672 REPLACE_CANONICALIZE_FILE_NAME=0;
15673 REPLACE_MALLOC=0;
15674 REPLACE_MBTOWC=0;
15675 REPLACE_MKSTEMP=0;
15676 REPLACE_PTSNAME_R=0;
15677 REPLACE_PUTENV=0;
15678 REPLACE_RANDOM_R=0;
15679 REPLACE_REALLOC=0;
15680 REPLACE_REALPATH=0;
15681 REPLACE_SETENV=0;
15682 REPLACE_STRTOD=0;
15683 REPLACE_UNSETENV=0;
15684 REPLACE_WCTOMB=0;
15688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
15689 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
15690 if test "${gl_cv_have_include_next+set}" = set; then :
15691 $as_echo_n "(cached) " >&6
15692 else
15693 rm -rf conftestd1a conftestd1b conftestd2
15694 mkdir conftestd1a conftestd1b conftestd2
15695 cat <<EOF > conftestd1a/conftest.h
15696 #define DEFINED_IN_CONFTESTD1
15697 #include_next <conftest.h>
15698 #ifdef DEFINED_IN_CONFTESTD2
15699 int foo;
15700 #else
15701 #error "include_next doesn't work"
15702 #endif
15704 cat <<EOF > conftestd1b/conftest.h
15705 #define DEFINED_IN_CONFTESTD1
15706 #include <stdio.h>
15707 #include_next <conftest.h>
15708 #ifdef DEFINED_IN_CONFTESTD2
15709 int foo;
15710 #else
15711 #error "include_next doesn't work"
15712 #endif
15714 cat <<EOF > conftestd2/conftest.h
15715 #ifndef DEFINED_IN_CONFTESTD1
15716 #error "include_next test doesn't work"
15717 #endif
15718 #define DEFINED_IN_CONFTESTD2
15720 gl_save_CPPFLAGS="$CPPFLAGS"
15721 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
15722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15723 /* end confdefs.h. */
15724 #include <conftest.h>
15725 _ACEOF
15726 if ac_fn_c_try_compile "$LINENO"; then :
15727 gl_cv_have_include_next=yes
15728 else
15729 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
15730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15731 /* end confdefs.h. */
15732 #include <conftest.h>
15733 _ACEOF
15734 if ac_fn_c_try_compile "$LINENO"; then :
15735 gl_cv_have_include_next=buggy
15736 else
15737 gl_cv_have_include_next=no
15739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15743 CPPFLAGS="$gl_save_CPPFLAGS"
15744 rm -rf conftestd1a conftestd1b conftestd2
15747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
15748 $as_echo "$gl_cv_have_include_next" >&6; }
15749 PRAGMA_SYSTEM_HEADER=
15750 if test $gl_cv_have_include_next = yes; then
15751 INCLUDE_NEXT=include_next
15752 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
15753 if test -n "$GCC"; then
15754 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
15756 else
15757 if test $gl_cv_have_include_next = buggy; then
15758 INCLUDE_NEXT=include
15759 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
15760 else
15761 INCLUDE_NEXT=include
15762 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
15768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
15769 $as_echo_n "checking whether system header files limit the line length... " >&6; }
15770 if test "${gl_cv_pragma_columns+set}" = set; then :
15771 $as_echo_n "(cached) " >&6
15772 else
15773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15774 /* end confdefs.h. */
15776 #ifdef __TANDEM
15777 choke me
15778 #endif
15780 _ACEOF
15781 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15782 $EGREP "choke me" >/dev/null 2>&1; then :
15783 gl_cv_pragma_columns=yes
15784 else
15785 gl_cv_pragma_columns=no
15787 rm -f conftest*
15791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
15792 $as_echo "$gl_cv_pragma_columns" >&6; }
15793 if test $gl_cv_pragma_columns = yes; then
15794 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
15795 else
15796 PRAGMA_COLUMNS=
15815 if test $gl_cv_have_include_next = yes; then
15816 gl_cv_next_getopt_h='<'getopt.h'>'
15817 else
15818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
15819 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
15820 if test "${gl_cv_next_getopt_h+set}" = set; then :
15821 $as_echo_n "(cached) " >&6
15822 else
15824 if test $ac_cv_header_getopt_h = yes; then
15827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15828 /* end confdefs.h. */
15829 #include <getopt.h>
15831 _ACEOF
15832 case "$host_os" in
15833 aix*) gl_absname_cpp="$ac_cpp -C" ;;
15834 *) gl_absname_cpp="$ac_cpp" ;;
15835 esac
15837 case "$host_os" in
15838 mingw*)
15839 gl_dirsep_regex='[/\\]'
15842 gl_dirsep_regex='\/'
15844 esac
15845 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
15847 gl_header_literal_regex=`echo 'getopt.h' \
15848 | sed -e "$gl_make_literal_regex_sed"`
15849 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
15850 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
15851 s|^/[^/]|//&|
15855 gl_cv_next_getopt_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15856 sed -n "$gl_absolute_header_sed"`'"'
15857 else
15858 gl_cv_next_getopt_h='<'getopt.h'>'
15863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
15864 $as_echo "$gl_cv_next_getopt_h" >&6; }
15866 NEXT_GETOPT_H=$gl_cv_next_getopt_h
15868 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
15869 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15870 gl_next_as_first_directive='<'getopt.h'>'
15871 else
15872 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15873 gl_next_as_first_directive=$gl_cv_next_getopt_h
15875 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H=$gl_next_as_first_directive
15880 if test $ac_cv_header_getopt_h = yes; then
15881 HAVE_GETOPT_H=1
15882 else
15883 HAVE_GETOPT_H=0
15887 gl_replace_getopt=
15889 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
15890 for ac_header in getopt.h
15891 do :
15892 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
15893 if test "x$ac_cv_header_getopt_h" = x""yes; then :
15894 cat >>confdefs.h <<_ACEOF
15895 #define HAVE_GETOPT_H 1
15896 _ACEOF
15898 else
15899 gl_replace_getopt=yes
15902 done
15906 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
15907 for ac_func in getopt_long_only
15908 do :
15909 ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
15910 if test "x$ac_cv_func_getopt_long_only" = x""yes; then :
15911 cat >>confdefs.h <<_ACEOF
15912 #define HAVE_GETOPT_LONG_ONLY 1
15913 _ACEOF
15915 else
15916 gl_replace_getopt=yes
15918 done
15922 if test -z "$gl_replace_getopt"; then
15923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
15924 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
15925 if test "${gl_cv_func_getopt_posix+set}" = set; then :
15926 $as_echo_n "(cached) " >&6
15927 else
15929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15930 /* end confdefs.h. */
15931 #include <unistd.h>
15933 main ()
15935 int *p = &optreset; return optreset;
15937 return 0;
15939 _ACEOF
15940 if ac_fn_c_try_link "$LINENO"; then :
15941 gl_optind_min=1
15942 else
15943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15944 /* end confdefs.h. */
15945 #include <getopt.h>
15947 main ()
15949 return !getopt_clip;
15951 return 0;
15953 _ACEOF
15954 if ac_fn_c_try_compile "$LINENO"; then :
15955 gl_optind_min=1
15956 else
15957 gl_optind_min=0
15959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15961 rm -f core conftest.err conftest.$ac_objext \
15962 conftest$ac_exeext conftest.$ac_ext
15964 gl_save_CPPFLAGS=$CPPFLAGS
15965 CPPFLAGS="$CPPFLAGS -DOPTIND_MIN=$gl_optind_min"
15966 if test "$cross_compiling" = yes; then :
15967 case "$host_os" in
15968 mingw*) gl_cv_func_getopt_posix="guessing no";;
15969 darwin* | aix*) gl_cv_func_getopt_posix="guessing no";;
15970 *) gl_cv_func_getopt_posix="guessing yes";;
15971 esac
15973 else
15974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15975 /* end confdefs.h. */
15977 #include <unistd.h>
15978 #include <stdlib.h>
15979 #include <string.h>
15982 main ()
15985 static char program[] = "program";
15986 static char a[] = "-a";
15987 static char foo[] = "foo";
15988 static char bar[] = "bar";
15989 char *argv[] = { program, a, foo, bar, NULL };
15990 int c;
15992 optind = OPTIND_MIN;
15993 opterr = 0;
15995 c = getopt (4, argv, "ab");
15996 if (!(c == 'a'))
15997 return 1;
15998 c = getopt (4, argv, "ab");
15999 if (!(c == -1))
16000 return 2;
16001 if (!(optind == 2))
16002 return 3;
16004 /* Some internal state exists at this point. */
16006 static char program[] = "program";
16007 static char donald[] = "donald";
16008 static char p[] = "-p";
16009 static char billy[] = "billy";
16010 static char duck[] = "duck";
16011 static char a[] = "-a";
16012 static char bar[] = "bar";
16013 char *argv[] = { program, donald, p, billy, duck, a, bar, NULL };
16014 int c;
16016 optind = OPTIND_MIN;
16017 opterr = 0;
16019 c = getopt (7, argv, "+abp:q:");
16020 if (!(c == -1))
16021 return 4;
16022 if (!(strcmp (argv[0], "program") == 0))
16023 return 5;
16024 if (!(strcmp (argv[1], "donald") == 0))
16025 return 6;
16026 if (!(strcmp (argv[2], "-p") == 0))
16027 return 7;
16028 if (!(strcmp (argv[3], "billy") == 0))
16029 return 8;
16030 if (!(strcmp (argv[4], "duck") == 0))
16031 return 9;
16032 if (!(strcmp (argv[5], "-a") == 0))
16033 return 10;
16034 if (!(strcmp (argv[6], "bar") == 0))
16035 return 11;
16036 if (!(optind == 1))
16037 return 12;
16039 /* Detect MacOS 10.5, AIX 7.1 bug. */
16041 static char program[] = "program";
16042 static char ab[] = "-ab";
16043 char *argv[3] = { program, ab, NULL };
16044 optind = OPTIND_MIN;
16045 opterr = 0;
16046 if (getopt (2, argv, "ab:") != 'a')
16047 return 13;
16048 if (getopt (2, argv, "ab:") != '?')
16049 return 14;
16050 if (optopt != 'b')
16051 return 15;
16052 if (optind != 2)
16053 return 16;
16056 return 0;
16059 _ACEOF
16060 if ac_fn_c_try_run "$LINENO"; then :
16061 gl_cv_func_getopt_posix=yes
16062 else
16063 gl_cv_func_getopt_posix=no
16065 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16066 conftest.$ac_objext conftest.beam conftest.$ac_ext
16069 CPPFLAGS=$gl_save_CPPFLAGS
16072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
16073 $as_echo "$gl_cv_func_getopt_posix" >&6; }
16074 case "$gl_cv_func_getopt_posix" in
16075 *no) gl_replace_getopt=yes ;;
16076 esac
16079 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
16080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
16081 $as_echo_n "checking for working GNU getopt function... " >&6; }
16082 if test "${gl_cv_func_getopt_gnu+set}" = set; then :
16083 $as_echo_n "(cached) " >&6
16084 else
16085 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
16086 # optstring is necessary for programs like m4 that have POSIX-mandated
16087 # semantics for supporting options interspersed with files.
16088 # Also, since getopt_long is a GNU extension, we require optind=0.
16089 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
16090 # so take care to revert to the correct (non-)export state.
16091 gl_awk_probe='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
16092 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
16093 xx) gl_had_POSIXLY_CORRECT=exported ;;
16094 x) gl_had_POSIXLY_CORRECT=yes ;;
16095 *) gl_had_POSIXLY_CORRECT= ;;
16096 esac
16097 POSIXLY_CORRECT=1
16098 export POSIXLY_CORRECT
16099 if test "$cross_compiling" = yes; then :
16100 case $host_os:$ac_cv_have_decl_optreset in
16101 *-gnu*:* | mingw*:*) gl_cv_func_getopt_gnu=no;;
16102 *:yes) gl_cv_func_getopt_gnu=no;;
16103 *) gl_cv_func_getopt_gnu=yes;;
16104 esac
16106 else
16107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16108 /* end confdefs.h. */
16109 #include <getopt.h>
16110 #include <stddef.h>
16111 #include <string.h>
16113 #include <stdlib.h>
16114 #if defined __MACH__ && defined __APPLE__
16115 /* Avoid a crash on MacOS X. */
16116 #include <mach/mach.h>
16117 #include <mach/mach_error.h>
16118 #include <mach/thread_status.h>
16119 #include <mach/exception.h>
16120 #include <mach/task.h>
16121 #include <pthread.h>
16122 /* The exception port on which our thread listens. */
16123 static mach_port_t our_exception_port;
16124 /* The main function of the thread listening for exceptions of type
16125 EXC_BAD_ACCESS. */
16126 static void *
16127 mach_exception_thread (void *arg)
16129 /* Buffer for a message to be received. */
16130 struct {
16131 mach_msg_header_t head;
16132 mach_msg_body_t msgh_body;
16133 char data[1024];
16134 } msg;
16135 mach_msg_return_t retval;
16136 /* Wait for a message on the exception port. */
16137 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
16138 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
16139 if (retval != MACH_MSG_SUCCESS)
16140 abort ();
16141 exit (1);
16143 static void
16144 nocrash_init (void)
16146 mach_port_t self = mach_task_self ();
16147 /* Allocate a port on which the thread shall listen for exceptions. */
16148 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
16149 == KERN_SUCCESS) {
16150 /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
16151 if (mach_port_insert_right (self, our_exception_port, our_exception_port,
16152 MACH_MSG_TYPE_MAKE_SEND)
16153 == KERN_SUCCESS) {
16154 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
16155 for us. */
16156 exception_mask_t mask = EXC_MASK_BAD_ACCESS;
16157 /* Create the thread listening on the exception port. */
16158 pthread_attr_t attr;
16159 pthread_t thread;
16160 if (pthread_attr_init (&attr) == 0
16161 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
16162 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
16163 pthread_attr_destroy (&attr);
16164 /* Replace the exception port info for these exceptions with our own.
16165 Note that we replace the exception port for the entire task, not only
16166 for a particular thread. This has the effect that when our exception
16167 port gets the message, the thread specific exception port has already
16168 been asked, and we don't need to bother about it.
16169 See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
16170 task_set_exception_ports (self, mask, our_exception_port,
16171 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
16176 #elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
16177 /* Avoid a crash on native Windows. */
16178 #define WIN32_LEAN_AND_MEAN
16179 #include <windows.h>
16180 #include <winerror.h>
16181 static LONG WINAPI
16182 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
16184 switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
16186 case EXCEPTION_ACCESS_VIOLATION:
16187 case EXCEPTION_IN_PAGE_ERROR:
16188 case EXCEPTION_STACK_OVERFLOW:
16189 case EXCEPTION_GUARD_PAGE:
16190 case EXCEPTION_PRIV_INSTRUCTION:
16191 case EXCEPTION_ILLEGAL_INSTRUCTION:
16192 case EXCEPTION_DATATYPE_MISALIGNMENT:
16193 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
16194 case EXCEPTION_NONCONTINUABLE_EXCEPTION:
16195 exit (1);
16197 return EXCEPTION_CONTINUE_SEARCH;
16199 static void
16200 nocrash_init (void)
16202 SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
16204 #else
16205 /* Avoid a crash on POSIX systems. */
16206 #include <signal.h>
16207 /* A POSIX signal handler. */
16208 static void
16209 exception_handler (int sig)
16211 exit (1);
16213 static void
16214 nocrash_init (void)
16216 #ifdef SIGSEGV
16217 signal (SIGSEGV, exception_handler);
16218 #endif
16219 #ifdef SIGBUS
16220 signal (SIGBUS, exception_handler);
16221 #endif
16223 #endif
16227 main ()
16230 int result = 0;
16232 nocrash_init();
16234 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
16235 and fails on MacOS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
16236 OSF/1 5.1, Solaris 10. */
16238 static char conftest[] = "conftest";
16239 static char plus[] = "-+";
16240 char *argv[3] = { conftest, plus, NULL };
16241 opterr = 0;
16242 if (getopt (2, argv, "+a") != '?')
16243 result |= 1;
16245 /* This code succeeds on glibc 2.8, mingw,
16246 and fails on MacOS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
16247 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
16249 static char program[] = "program";
16250 static char p[] = "-p";
16251 static char foo[] = "foo";
16252 static char bar[] = "bar";
16253 char *argv[] = { program, p, foo, bar, NULL };
16255 optind = 1;
16256 if (getopt (4, argv, "p::") != 'p')
16257 result |= 2;
16258 else if (optarg != NULL)
16259 result |= 4;
16260 else if (getopt (4, argv, "p::") != -1)
16261 result |= 6;
16262 else if (optind != 2)
16263 result |= 8;
16265 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
16267 static char program[] = "program";
16268 static char foo[] = "foo";
16269 static char p[] = "-p";
16270 char *argv[] = { program, foo, p, NULL };
16271 optind = 0;
16272 if (getopt (3, argv, "-p") != 1)
16273 result |= 16;
16274 else if (getopt (3, argv, "-p") != 'p')
16275 result |= 32;
16277 /* This code fails on glibc 2.11. */
16279 static char program[] = "program";
16280 static char b[] = "-b";
16281 static char a[] = "-a";
16282 char *argv[] = { program, b, a, NULL };
16283 optind = opterr = 0;
16284 if (getopt (3, argv, "+:a:b") != 'b')
16285 result |= 64;
16286 else if (getopt (3, argv, "+:a:b") != ':')
16287 result |= 64;
16289 /* This code dumps core on glibc 2.14. */
16291 static char program[] = "program";
16292 static char w[] = "-W";
16293 static char dummy[] = "dummy";
16294 char *argv[] = { program, w, dummy, NULL };
16295 optind = opterr = 1;
16296 if (getopt (3, argv, "W;") != 'W')
16297 result |= 128;
16299 return result;
16302 return 0;
16304 _ACEOF
16305 if ac_fn_c_try_run "$LINENO"; then :
16306 gl_cv_func_getopt_gnu=yes
16307 else
16308 gl_cv_func_getopt_gnu=no
16310 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16311 conftest.$ac_objext conftest.beam conftest.$ac_ext
16314 case $gl_had_POSIXLY_CORRECT in
16315 exported) ;;
16316 yes) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;}; POSIXLY_CORRECT=1 ;;
16317 *) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;} ;;
16318 esac
16321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
16322 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
16323 if test "$gl_cv_func_getopt_gnu" = "no"; then
16324 gl_replace_getopt=yes
16332 REPLACE_GETOPT=0
16335 if test -n "$gl_replace_getopt"; then :
16337 REPLACE_GETOPT=1
16342 if test $REPLACE_GETOPT = 1; then
16344 GETOPT_H=getopt.h
16346 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
16352 ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
16353 if test "x$ac_cv_have_decl_getenv" = x""yes; then :
16354 ac_have_decl=1
16355 else
16356 ac_have_decl=0
16359 cat >>confdefs.h <<_ACEOF
16360 #define HAVE_DECL_GETENV $ac_have_decl
16361 _ACEOF
16364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
16365 $as_echo_n "checking for unsigned long long int... " >&6; }
16366 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
16367 $as_echo_n "(cached) " >&6
16368 else
16369 ac_cv_type_unsigned_long_long_int=yes
16370 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
16371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16372 /* end confdefs.h. */
16374 /* For now, do not test the preprocessor; as of 2007 there are too many
16375 implementations with broken preprocessors. Perhaps this can
16376 be revisited in 2012. In the meantime, code should not expect
16377 #if to work with literals wider than 32 bits. */
16378 /* Test literals. */
16379 long long int ll = 9223372036854775807ll;
16380 long long int nll = -9223372036854775807LL;
16381 unsigned long long int ull = 18446744073709551615ULL;
16382 /* Test constant expressions. */
16383 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
16384 ? 1 : -1)];
16385 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
16386 ? 1 : -1)];
16387 int i = 63;
16389 main ()
16391 /* Test availability of runtime routines for shift and division. */
16392 long long int llmax = 9223372036854775807ll;
16393 unsigned long long int ullmax = 18446744073709551615ull;
16394 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
16395 | (llmax / ll) | (llmax % ll)
16396 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
16397 | (ullmax / ull) | (ullmax % ull));
16399 return 0;
16402 _ACEOF
16403 if ac_fn_c_try_link "$LINENO"; then :
16405 else
16406 ac_cv_type_unsigned_long_long_int=no
16408 rm -f core conftest.err conftest.$ac_objext \
16409 conftest$ac_exeext conftest.$ac_ext
16412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
16413 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
16414 if test $ac_cv_type_unsigned_long_long_int = yes; then
16416 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
16422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
16423 $as_echo_n "checking for long long int... " >&6; }
16424 if test "${ac_cv_type_long_long_int+set}" = set; then :
16425 $as_echo_n "(cached) " >&6
16426 else
16427 ac_cv_type_long_long_int=yes
16428 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
16429 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
16430 if test $ac_cv_type_long_long_int = yes; then
16431 if test "$cross_compiling" = yes; then :
16433 else
16434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16435 /* end confdefs.h. */
16436 #include <limits.h>
16437 #ifndef LLONG_MAX
16438 # define HALF \
16439 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
16440 # define LLONG_MAX (HALF - 1 + HALF)
16441 #endif
16443 main ()
16445 long long int n = 1;
16446 int i;
16447 for (i = 0; ; i++)
16449 long long int m = n << i;
16450 if (m >> i != n)
16451 return 1;
16452 if (LLONG_MAX / 2 < m)
16453 break;
16455 return 0;
16457 return 0;
16459 _ACEOF
16460 if ac_fn_c_try_run "$LINENO"; then :
16462 else
16463 ac_cv_type_long_long_int=no
16465 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16466 conftest.$ac_objext conftest.beam conftest.$ac_ext
16472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
16473 $as_echo "$ac_cv_type_long_long_int" >&6; }
16474 if test $ac_cv_type_long_long_int = yes; then
16476 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
16485 gl_cv_c_multiarch=no
16486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16487 /* end confdefs.h. */
16488 #ifndef __APPLE_CC__
16489 not a universal capable compiler
16490 #endif
16491 typedef int dummy;
16493 _ACEOF
16494 if ac_fn_c_try_compile "$LINENO"; then :
16496 arch=
16497 prev=
16498 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
16499 if test -n "$prev"; then
16500 case $word in
16501 i?86 | x86_64 | ppc | ppc64)
16502 if test -z "$arch" || test "$arch" = "$word"; then
16503 arch="$word"
16504 else
16505 gl_cv_c_multiarch=yes
16508 esac
16509 prev=
16510 else
16511 if test "x$word" = "x-arch"; then
16512 prev=arch
16515 done
16518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16519 if test $gl_cv_c_multiarch = yes; then
16520 APPLE_UNIVERSAL_BUILD=1
16521 else
16522 APPLE_UNIVERSAL_BUILD=0
16529 if test $ac_cv_type_long_long_int = yes; then
16530 HAVE_LONG_LONG_INT=1
16531 else
16532 HAVE_LONG_LONG_INT=0
16536 if test $ac_cv_type_unsigned_long_long_int = yes; then
16537 HAVE_UNSIGNED_LONG_LONG_INT=1
16538 else
16539 HAVE_UNSIGNED_LONG_LONG_INT=0
16544 if test $ac_cv_header_wchar_h = yes; then
16545 HAVE_WCHAR_H=1
16546 else
16547 HAVE_WCHAR_H=0
16551 if test $ac_cv_header_inttypes_h = yes; then
16552 HAVE_INTTYPES_H=1
16553 else
16554 HAVE_INTTYPES_H=0
16558 if test $ac_cv_header_sys_types_h = yes; then
16559 HAVE_SYS_TYPES_H=1
16560 else
16561 HAVE_SYS_TYPES_H=0
16574 if test $gl_cv_have_include_next = yes; then
16575 gl_cv_next_stdint_h='<'stdint.h'>'
16576 else
16577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
16578 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
16579 if test "${gl_cv_next_stdint_h+set}" = set; then :
16580 $as_echo_n "(cached) " >&6
16581 else
16583 if test $ac_cv_header_stdint_h = yes; then
16586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16587 /* end confdefs.h. */
16588 #include <stdint.h>
16590 _ACEOF
16591 case "$host_os" in
16592 aix*) gl_absname_cpp="$ac_cpp -C" ;;
16593 *) gl_absname_cpp="$ac_cpp" ;;
16594 esac
16596 case "$host_os" in
16597 mingw*)
16598 gl_dirsep_regex='[/\\]'
16601 gl_dirsep_regex='\/'
16603 esac
16604 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
16606 gl_header_literal_regex=`echo 'stdint.h' \
16607 | sed -e "$gl_make_literal_regex_sed"`
16608 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
16609 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
16610 s|^/[^/]|//&|
16614 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16615 sed -n "$gl_absolute_header_sed"`'"'
16616 else
16617 gl_cv_next_stdint_h='<'stdint.h'>'
16622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
16623 $as_echo "$gl_cv_next_stdint_h" >&6; }
16625 NEXT_STDINT_H=$gl_cv_next_stdint_h
16627 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16628 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16629 gl_next_as_first_directive='<'stdint.h'>'
16630 else
16631 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16632 gl_next_as_first_directive=$gl_cv_next_stdint_h
16634 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
16639 if test $ac_cv_header_stdint_h = yes; then
16640 HAVE_STDINT_H=1
16641 else
16642 HAVE_STDINT_H=0
16646 if test $ac_cv_header_stdint_h = yes; then
16647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
16648 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
16649 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
16650 $as_echo_n "(cached) " >&6
16651 else
16652 gl_cv_header_working_stdint_h=no
16653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16654 /* end confdefs.h. */
16657 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
16658 #include <stdint.h>
16659 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
16660 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
16661 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
16662 #endif
16665 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16666 included before <wchar.h>. */
16667 #include <stddef.h>
16668 #include <signal.h>
16669 #if HAVE_WCHAR_H
16670 # include <stdio.h>
16671 # include <time.h>
16672 # include <wchar.h>
16673 #endif
16676 #ifdef INT8_MAX
16677 int8_t a1 = INT8_MAX;
16678 int8_t a1min = INT8_MIN;
16679 #endif
16680 #ifdef INT16_MAX
16681 int16_t a2 = INT16_MAX;
16682 int16_t a2min = INT16_MIN;
16683 #endif
16684 #ifdef INT32_MAX
16685 int32_t a3 = INT32_MAX;
16686 int32_t a3min = INT32_MIN;
16687 #endif
16688 #ifdef INT64_MAX
16689 int64_t a4 = INT64_MAX;
16690 int64_t a4min = INT64_MIN;
16691 #endif
16692 #ifdef UINT8_MAX
16693 uint8_t b1 = UINT8_MAX;
16694 #else
16695 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
16696 #endif
16697 #ifdef UINT16_MAX
16698 uint16_t b2 = UINT16_MAX;
16699 #endif
16700 #ifdef UINT32_MAX
16701 uint32_t b3 = UINT32_MAX;
16702 #endif
16703 #ifdef UINT64_MAX
16704 uint64_t b4 = UINT64_MAX;
16705 #endif
16706 int_least8_t c1 = INT8_C (0x7f);
16707 int_least8_t c1max = INT_LEAST8_MAX;
16708 int_least8_t c1min = INT_LEAST8_MIN;
16709 int_least16_t c2 = INT16_C (0x7fff);
16710 int_least16_t c2max = INT_LEAST16_MAX;
16711 int_least16_t c2min = INT_LEAST16_MIN;
16712 int_least32_t c3 = INT32_C (0x7fffffff);
16713 int_least32_t c3max = INT_LEAST32_MAX;
16714 int_least32_t c3min = INT_LEAST32_MIN;
16715 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
16716 int_least64_t c4max = INT_LEAST64_MAX;
16717 int_least64_t c4min = INT_LEAST64_MIN;
16718 uint_least8_t d1 = UINT8_C (0xff);
16719 uint_least8_t d1max = UINT_LEAST8_MAX;
16720 uint_least16_t d2 = UINT16_C (0xffff);
16721 uint_least16_t d2max = UINT_LEAST16_MAX;
16722 uint_least32_t d3 = UINT32_C (0xffffffff);
16723 uint_least32_t d3max = UINT_LEAST32_MAX;
16724 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
16725 uint_least64_t d4max = UINT_LEAST64_MAX;
16726 int_fast8_t e1 = INT_FAST8_MAX;
16727 int_fast8_t e1min = INT_FAST8_MIN;
16728 int_fast16_t e2 = INT_FAST16_MAX;
16729 int_fast16_t e2min = INT_FAST16_MIN;
16730 int_fast32_t e3 = INT_FAST32_MAX;
16731 int_fast32_t e3min = INT_FAST32_MIN;
16732 int_fast64_t e4 = INT_FAST64_MAX;
16733 int_fast64_t e4min = INT_FAST64_MIN;
16734 uint_fast8_t f1 = UINT_FAST8_MAX;
16735 uint_fast16_t f2 = UINT_FAST16_MAX;
16736 uint_fast32_t f3 = UINT_FAST32_MAX;
16737 uint_fast64_t f4 = UINT_FAST64_MAX;
16738 #ifdef INTPTR_MAX
16739 intptr_t g = INTPTR_MAX;
16740 intptr_t gmin = INTPTR_MIN;
16741 #endif
16742 #ifdef UINTPTR_MAX
16743 uintptr_t h = UINTPTR_MAX;
16744 #endif
16745 intmax_t i = INTMAX_MAX;
16746 uintmax_t j = UINTMAX_MAX;
16748 #include <limits.h> /* for CHAR_BIT */
16749 #define TYPE_MINIMUM(t) \
16750 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
16751 #define TYPE_MAXIMUM(t) \
16752 ((t) ((t) 0 < (t) -1 \
16753 ? (t) -1 \
16754 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
16755 struct s {
16756 int check_PTRDIFF:
16757 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
16758 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
16759 ? 1 : -1;
16760 /* Detect bug in FreeBSD 6.0 / ia64. */
16761 int check_SIG_ATOMIC:
16762 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
16763 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
16764 ? 1 : -1;
16765 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
16766 int check_WCHAR:
16767 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
16768 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
16769 ? 1 : -1;
16770 /* Detect bug in mingw. */
16771 int check_WINT:
16772 WINT_MIN == TYPE_MINIMUM (wint_t)
16773 && WINT_MAX == TYPE_MAXIMUM (wint_t)
16774 ? 1 : -1;
16776 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
16777 int check_UINT8_C:
16778 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
16779 int check_UINT16_C:
16780 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
16782 /* Detect bugs in OpenBSD 3.9 stdint.h. */
16783 #ifdef UINT8_MAX
16784 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
16785 #endif
16786 #ifdef UINT16_MAX
16787 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
16788 #endif
16789 #ifdef UINT32_MAX
16790 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
16791 #endif
16792 #ifdef UINT64_MAX
16793 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
16794 #endif
16795 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
16796 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
16797 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
16798 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
16799 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
16800 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
16801 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
16802 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
16803 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
16804 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
16805 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
16809 main ()
16813 return 0;
16815 _ACEOF
16816 if ac_fn_c_try_compile "$LINENO"; then :
16817 if test "$cross_compiling" = yes; then :
16818 gl_cv_header_working_stdint_h=yes
16820 else
16821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16822 /* end confdefs.h. */
16825 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
16826 #include <stdint.h>
16829 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16830 included before <wchar.h>. */
16831 #include <stddef.h>
16832 #include <signal.h>
16833 #if HAVE_WCHAR_H
16834 # include <stdio.h>
16835 # include <time.h>
16836 # include <wchar.h>
16837 #endif
16840 #include <stdio.h>
16841 #include <string.h>
16842 #define MVAL(macro) MVAL1(macro)
16843 #define MVAL1(expression) #expression
16844 static const char *macro_values[] =
16846 #ifdef INT8_MAX
16847 MVAL (INT8_MAX),
16848 #endif
16849 #ifdef INT16_MAX
16850 MVAL (INT16_MAX),
16851 #endif
16852 #ifdef INT32_MAX
16853 MVAL (INT32_MAX),
16854 #endif
16855 #ifdef INT64_MAX
16856 MVAL (INT64_MAX),
16857 #endif
16858 #ifdef UINT8_MAX
16859 MVAL (UINT8_MAX),
16860 #endif
16861 #ifdef UINT16_MAX
16862 MVAL (UINT16_MAX),
16863 #endif
16864 #ifdef UINT32_MAX
16865 MVAL (UINT32_MAX),
16866 #endif
16867 #ifdef UINT64_MAX
16868 MVAL (UINT64_MAX),
16869 #endif
16870 NULL
16874 main ()
16877 const char **mv;
16878 for (mv = macro_values; *mv != NULL; mv++)
16880 const char *value = *mv;
16881 /* Test whether it looks like a cast expression. */
16882 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
16883 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
16884 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
16885 || strncmp (value, "((int)"/*)*/, 6) == 0
16886 || strncmp (value, "((signed short)"/*)*/, 15) == 0
16887 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
16888 return mv - macro_values + 1;
16890 return 0;
16893 return 0;
16895 _ACEOF
16896 if ac_fn_c_try_run "$LINENO"; then :
16897 gl_cv_header_working_stdint_h=yes
16899 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16900 conftest.$ac_objext conftest.beam conftest.$ac_ext
16905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
16909 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
16911 if test "$gl_cv_header_working_stdint_h" = yes; then
16912 STDINT_H=
16913 else
16914 for ac_header in sys/inttypes.h sys/bitypes.h
16915 do :
16916 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16917 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16918 eval as_val=\$$as_ac_Header
16919 if test "x$as_val" = x""yes; then :
16920 cat >>confdefs.h <<_ACEOF
16921 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16922 _ACEOF
16926 done
16928 if test $ac_cv_header_sys_inttypes_h = yes; then
16929 HAVE_SYS_INTTYPES_H=1
16930 else
16931 HAVE_SYS_INTTYPES_H=0
16934 if test $ac_cv_header_sys_bitypes_h = yes; then
16935 HAVE_SYS_BITYPES_H=1
16936 else
16937 HAVE_SYS_BITYPES_H=0
16943 if test $APPLE_UNIVERSAL_BUILD = 0; then
16946 for gltype in ptrdiff_t size_t ; do
16947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
16948 $as_echo_n "checking for bit size of $gltype... " >&6; }
16949 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
16950 $as_echo_n "(cached) " >&6
16951 else
16952 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
16953 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16954 included before <wchar.h>. */
16955 #include <stddef.h>
16956 #include <signal.h>
16957 #if HAVE_WCHAR_H
16958 # include <stdio.h>
16959 # include <time.h>
16960 # include <wchar.h>
16961 #endif
16963 #include <limits.h>"; then :
16965 else
16966 result=unknown
16969 eval gl_cv_bitsizeof_${gltype}=\$result
16972 eval ac_res=\$gl_cv_bitsizeof_${gltype}
16973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16974 $as_echo "$ac_res" >&6; }
16975 eval result=\$gl_cv_bitsizeof_${gltype}
16976 if test $result = unknown; then
16977 result=0
16979 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
16980 cat >>confdefs.h <<_ACEOF
16981 #define BITSIZEOF_${GLTYPE} $result
16982 _ACEOF
16984 eval BITSIZEOF_${GLTYPE}=\$result
16985 done
16991 for gltype in sig_atomic_t wchar_t wint_t ; do
16992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
16993 $as_echo_n "checking for bit size of $gltype... " >&6; }
16994 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
16995 $as_echo_n "(cached) " >&6
16996 else
16997 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
16998 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16999 included before <wchar.h>. */
17000 #include <stddef.h>
17001 #include <signal.h>
17002 #if HAVE_WCHAR_H
17003 # include <stdio.h>
17004 # include <time.h>
17005 # include <wchar.h>
17006 #endif
17008 #include <limits.h>"; then :
17010 else
17011 result=unknown
17014 eval gl_cv_bitsizeof_${gltype}=\$result
17017 eval ac_res=\$gl_cv_bitsizeof_${gltype}
17018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17019 $as_echo "$ac_res" >&6; }
17020 eval result=\$gl_cv_bitsizeof_${gltype}
17021 if test $result = unknown; then
17022 result=0
17024 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17025 cat >>confdefs.h <<_ACEOF
17026 #define BITSIZEOF_${GLTYPE} $result
17027 _ACEOF
17029 eval BITSIZEOF_${GLTYPE}=\$result
17030 done
17035 for gltype in sig_atomic_t wchar_t wint_t ; do
17036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
17037 $as_echo_n "checking whether $gltype is signed... " >&6; }
17038 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
17039 $as_echo_n "(cached) " >&6
17040 else
17041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17042 /* end confdefs.h. */
17044 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17045 included before <wchar.h>. */
17046 #include <stddef.h>
17047 #include <signal.h>
17048 #if HAVE_WCHAR_H
17049 # include <stdio.h>
17050 # include <time.h>
17051 # include <wchar.h>
17052 #endif
17054 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
17056 main ()
17060 return 0;
17062 _ACEOF
17063 if ac_fn_c_try_compile "$LINENO"; then :
17064 result=yes
17065 else
17066 result=no
17068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17069 eval gl_cv_type_${gltype}_signed=\$result
17072 eval ac_res=\$gl_cv_type_${gltype}_signed
17073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17074 $as_echo "$ac_res" >&6; }
17075 eval result=\$gl_cv_type_${gltype}_signed
17076 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17077 if test "$result" = yes; then
17078 cat >>confdefs.h <<_ACEOF
17079 #define HAVE_SIGNED_${GLTYPE} 1
17080 _ACEOF
17082 eval HAVE_SIGNED_${GLTYPE}=1
17083 else
17084 eval HAVE_SIGNED_${GLTYPE}=0
17086 done
17089 gl_cv_type_ptrdiff_t_signed=yes
17090 gl_cv_type_size_t_signed=no
17091 if test $APPLE_UNIVERSAL_BUILD = 0; then
17094 for gltype in ptrdiff_t size_t ; do
17095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
17096 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
17097 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
17098 $as_echo_n "(cached) " >&6
17099 else
17100 eval gl_cv_type_${gltype}_suffix=no
17101 eval result=\$gl_cv_type_${gltype}_signed
17102 if test "$result" = yes; then
17103 glsufu=
17104 else
17105 glsufu=u
17107 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
17108 case $glsuf in
17109 '') gltype1='int';;
17110 l) gltype1='long int';;
17111 ll) gltype1='long long int';;
17112 i64) gltype1='__int64';;
17113 u) gltype1='unsigned int';;
17114 ul) gltype1='unsigned long int';;
17115 ull) gltype1='unsigned long long int';;
17116 ui64)gltype1='unsigned __int64';;
17117 esac
17118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17119 /* end confdefs.h. */
17121 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17122 included before <wchar.h>. */
17123 #include <stddef.h>
17124 #include <signal.h>
17125 #if HAVE_WCHAR_H
17126 # include <stdio.h>
17127 # include <time.h>
17128 # include <wchar.h>
17129 #endif
17131 extern $gltype foo;
17132 extern $gltype1 foo;
17134 main ()
17138 return 0;
17140 _ACEOF
17141 if ac_fn_c_try_compile "$LINENO"; then :
17142 eval gl_cv_type_${gltype}_suffix=\$glsuf
17144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17145 eval result=\$gl_cv_type_${gltype}_suffix
17146 test "$result" != no && break
17147 done
17149 eval ac_res=\$gl_cv_type_${gltype}_suffix
17150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17151 $as_echo "$ac_res" >&6; }
17152 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17153 eval result=\$gl_cv_type_${gltype}_suffix
17154 test "$result" = no && result=
17155 eval ${GLTYPE}_SUFFIX=\$result
17156 cat >>confdefs.h <<_ACEOF
17157 #define ${GLTYPE}_SUFFIX $result
17158 _ACEOF
17160 done
17166 for gltype in sig_atomic_t wchar_t wint_t ; do
17167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
17168 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
17169 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
17170 $as_echo_n "(cached) " >&6
17171 else
17172 eval gl_cv_type_${gltype}_suffix=no
17173 eval result=\$gl_cv_type_${gltype}_signed
17174 if test "$result" = yes; then
17175 glsufu=
17176 else
17177 glsufu=u
17179 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
17180 case $glsuf in
17181 '') gltype1='int';;
17182 l) gltype1='long int';;
17183 ll) gltype1='long long int';;
17184 i64) gltype1='__int64';;
17185 u) gltype1='unsigned int';;
17186 ul) gltype1='unsigned long int';;
17187 ull) gltype1='unsigned long long int';;
17188 ui64)gltype1='unsigned __int64';;
17189 esac
17190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17191 /* end confdefs.h. */
17193 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17194 included before <wchar.h>. */
17195 #include <stddef.h>
17196 #include <signal.h>
17197 #if HAVE_WCHAR_H
17198 # include <stdio.h>
17199 # include <time.h>
17200 # include <wchar.h>
17201 #endif
17203 extern $gltype foo;
17204 extern $gltype1 foo;
17206 main ()
17210 return 0;
17212 _ACEOF
17213 if ac_fn_c_try_compile "$LINENO"; then :
17214 eval gl_cv_type_${gltype}_suffix=\$glsuf
17216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17217 eval result=\$gl_cv_type_${gltype}_suffix
17218 test "$result" != no && break
17219 done
17221 eval ac_res=\$gl_cv_type_${gltype}_suffix
17222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17223 $as_echo "$ac_res" >&6; }
17224 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17225 eval result=\$gl_cv_type_${gltype}_suffix
17226 test "$result" = no && result=
17227 eval ${GLTYPE}_SUFFIX=\$result
17228 cat >>confdefs.h <<_ACEOF
17229 #define ${GLTYPE}_SUFFIX $result
17230 _ACEOF
17232 done
17236 if test $BITSIZEOF_WINT_T -lt 32; then
17237 BITSIZEOF_WINT_T=32
17240 STDINT_H=stdint.h
17243 if test -n "$STDINT_H"; then
17244 GL_GENERATE_STDINT_H_TRUE=
17245 GL_GENERATE_STDINT_H_FALSE='#'
17246 else
17247 GL_GENERATE_STDINT_H_TRUE='#'
17248 GL_GENERATE_STDINT_H_FALSE=
17255 GNULIB_IMAXABS=0;
17256 GNULIB_IMAXDIV=0;
17257 GNULIB_STRTOIMAX=0;
17258 GNULIB_STRTOUMAX=0;
17259 HAVE_DECL_IMAXABS=1;
17260 HAVE_DECL_IMAXDIV=1;
17261 HAVE_DECL_STRTOIMAX=1;
17262 HAVE_DECL_STRTOUMAX=1;
17263 REPLACE_STRTOIMAX=0;
17264 INT32_MAX_LT_INTMAX_MAX=1;
17265 INT64_MAX_EQ_LONG_MAX='defined _LP64';
17266 PRI_MACROS_BROKEN=0;
17267 PRIPTR_PREFIX=__PRIPTR_PREFIX;
17268 UINT32_MAX_LT_UINTMAX_MAX=1;
17269 UINT64_MAX_EQ_ULONG_MAX='defined _LP64';
17285 if test $gl_cv_have_include_next = yes; then
17286 gl_cv_next_inttypes_h='<'inttypes.h'>'
17287 else
17288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
17289 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
17290 if test "${gl_cv_next_inttypes_h+set}" = set; then :
17291 $as_echo_n "(cached) " >&6
17292 else
17294 if test $ac_cv_header_inttypes_h = yes; then
17297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17298 /* end confdefs.h. */
17299 #include <inttypes.h>
17301 _ACEOF
17302 case "$host_os" in
17303 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17304 *) gl_absname_cpp="$ac_cpp" ;;
17305 esac
17307 case "$host_os" in
17308 mingw*)
17309 gl_dirsep_regex='[/\\]'
17312 gl_dirsep_regex='\/'
17314 esac
17315 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
17317 gl_header_literal_regex=`echo 'inttypes.h' \
17318 | sed -e "$gl_make_literal_regex_sed"`
17319 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17320 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17321 s|^/[^/]|//&|
17325 gl_cv_next_inttypes_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17326 sed -n "$gl_absolute_header_sed"`'"'
17327 else
17328 gl_cv_next_inttypes_h='<'inttypes.h'>'
17333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
17334 $as_echo "$gl_cv_next_inttypes_h" >&6; }
17336 NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
17338 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17339 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17340 gl_next_as_first_directive='<'inttypes.h'>'
17341 else
17342 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17343 gl_next_as_first_directive=$gl_cv_next_inttypes_h
17345 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive
17357 case "$host_os" in
17358 mingw*)
17359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5
17360 $as_echo_n "checking for 64-bit off_t... " >&6; }
17361 if test "${gl_cv_type_off_t_64+set}" = set; then :
17362 $as_echo_n "(cached) " >&6
17363 else
17364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17365 /* end confdefs.h. */
17366 #include <sys/types.h>
17367 int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1];
17370 main ()
17374 return 0;
17376 _ACEOF
17377 if ac_fn_c_try_compile "$LINENO"; then :
17378 gl_cv_type_off_t_64=yes
17379 else
17380 gl_cv_type_off_t_64=no
17382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5
17386 $as_echo "$gl_cv_type_off_t_64" >&6; }
17387 if test $gl_cv_type_off_t_64 = no; then
17388 WINDOWS_64_BIT_OFF_T=1
17389 else
17390 WINDOWS_64_BIT_OFF_T=0
17392 WINDOWS_64_BIT_ST_SIZE=1
17395 WINDOWS_64_BIT_OFF_T=0
17396 WINDOWS_64_BIT_ST_SIZE=0
17398 esac
17401 GNULIB_FCHMODAT=0;
17402 GNULIB_FSTAT=0;
17403 GNULIB_FSTATAT=0;
17404 GNULIB_FUTIMENS=0;
17405 GNULIB_LCHMOD=0;
17406 GNULIB_LSTAT=0;
17407 GNULIB_MKDIRAT=0;
17408 GNULIB_MKFIFO=0;
17409 GNULIB_MKFIFOAT=0;
17410 GNULIB_MKNOD=0;
17411 GNULIB_MKNODAT=0;
17412 GNULIB_STAT=0;
17413 GNULIB_UTIMENSAT=0;
17414 HAVE_FCHMODAT=1;
17415 HAVE_FSTATAT=1;
17416 HAVE_FUTIMENS=1;
17417 HAVE_LCHMOD=1;
17418 HAVE_LSTAT=1;
17419 HAVE_MKDIRAT=1;
17420 HAVE_MKFIFO=1;
17421 HAVE_MKFIFOAT=1;
17422 HAVE_MKNOD=1;
17423 HAVE_MKNODAT=1;
17424 HAVE_UTIMENSAT=1;
17425 REPLACE_FSTAT=0;
17426 REPLACE_FSTATAT=0;
17427 REPLACE_FUTIMENS=0;
17428 REPLACE_LSTAT=0;
17429 REPLACE_MKDIR=0;
17430 REPLACE_MKFIFO=0;
17431 REPLACE_MKNOD=0;
17432 REPLACE_STAT=0;
17433 REPLACE_UTIMENSAT=0;
17438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
17439 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
17440 if test "${gl_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
17441 $as_echo_n "(cached) " >&6
17442 else
17443 rm -f conftest.sym conftest.file
17444 echo >conftest.file
17445 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
17446 if test "$cross_compiling" = yes; then :
17447 case "$host_os" in
17448 # Guess yes on glibc systems.
17449 *-gnu*) gl_cv_func_lstat_dereferences_slashed_symlink="guessing yes" ;;
17450 # If we don't know, assume the worst.
17451 *) gl_cv_func_lstat_dereferences_slashed_symlink="guessing no" ;;
17452 esac
17454 else
17455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17456 /* end confdefs.h. */
17457 $ac_includes_default
17459 main ()
17461 struct stat sbuf;
17462 /* Linux will dereference the symlink and fail, as required by
17463 POSIX. That is better in the sense that it means we will not
17464 have to compile and use the lstat wrapper. */
17465 return lstat ("conftest.sym/", &sbuf) == 0;
17468 return 0;
17470 _ACEOF
17471 if ac_fn_c_try_run "$LINENO"; then :
17472 gl_cv_func_lstat_dereferences_slashed_symlink=yes
17473 else
17474 gl_cv_func_lstat_dereferences_slashed_symlink=no
17476 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17477 conftest.$ac_objext conftest.beam conftest.$ac_ext
17480 else
17481 # If the 'ln -s' command failed, then we probably don't even
17482 # have an lstat function.
17483 gl_cv_func_lstat_dereferences_slashed_symlink="guessing no"
17485 rm -f conftest.sym conftest.file
17488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
17489 $as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
17490 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
17491 *yes)
17493 cat >>confdefs.h <<_ACEOF
17494 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
17495 _ACEOF
17498 esac
17501 GNULIB_MKTIME=0;
17502 GNULIB_NANOSLEEP=0;
17503 GNULIB_STRPTIME=0;
17504 GNULIB_TIMEGM=0;
17505 GNULIB_TIME_R=0;
17506 HAVE_DECL_LOCALTIME_R=1;
17507 HAVE_NANOSLEEP=1;
17508 HAVE_STRPTIME=1;
17509 HAVE_TIMEGM=1;
17510 REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
17511 REPLACE_MKTIME=GNULIB_PORTCHECK;
17512 REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
17513 REPLACE_TIMEGM=GNULIB_PORTCHECK;
17518 GNULIB_PTHREAD_SIGMASK=0;
17519 GNULIB_RAISE=0;
17520 GNULIB_SIGNAL_H_SIGPIPE=0;
17521 GNULIB_SIGPROCMASK=0;
17522 GNULIB_SIGACTION=0;
17523 HAVE_POSIX_SIGNALBLOCKING=1;
17524 HAVE_PTHREAD_SIGMASK=1;
17525 HAVE_RAISE=1;
17526 HAVE_SIGSET_T=1;
17527 HAVE_SIGINFO_T=1;
17528 HAVE_SIGACTION=1;
17529 HAVE_STRUCT_SIGACTION_SA_SIGACTION=1;
17531 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=1;
17533 HAVE_SIGHANDLER_T=1;
17534 REPLACE_PTHREAD_SIGMASK=0;
17535 REPLACE_RAISE=0;
17542 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
17543 #include <signal.h>
17544 /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */
17545 #include <sys/types.h>
17548 if test "x$ac_cv_type_sigset_t" = x""yes; then :
17550 cat >>confdefs.h <<_ACEOF
17551 #define HAVE_SIGSET_T 1
17552 _ACEOF
17554 gl_cv_type_sigset_t=yes
17555 else
17556 gl_cv_type_sigset_t=no
17559 if test $gl_cv_type_sigset_t != yes; then
17560 HAVE_SIGSET_T=0
17565 if test $ac_cv_header_sys_socket_h = no; then
17566 for ac_header in ws2tcpip.h
17567 do :
17568 ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
17569 if test "x$ac_cv_header_ws2tcpip_h" = x""yes; then :
17570 cat >>confdefs.h <<_ACEOF
17571 #define HAVE_WS2TCPIP_H 1
17572 _ACEOF
17576 done
17580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
17581 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
17582 if test "${ac_cv_header_stdbool_h+set}" = set; then :
17583 $as_echo_n "(cached) " >&6
17584 else
17585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17586 /* end confdefs.h. */
17588 #include <stdbool.h>
17589 #ifndef bool
17590 "error: bool is not defined"
17591 #endif
17592 #ifndef false
17593 "error: false is not defined"
17594 #endif
17595 #if false
17596 "error: false is not 0"
17597 #endif
17598 #ifndef true
17599 "error: true is not defined"
17600 #endif
17601 #if true != 1
17602 "error: true is not 1"
17603 #endif
17604 #ifndef __bool_true_false_are_defined
17605 "error: __bool_true_false_are_defined is not defined"
17606 #endif
17608 struct s { _Bool s: 1; _Bool t; } s;
17610 char a[true == 1 ? 1 : -1];
17611 char b[false == 0 ? 1 : -1];
17612 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
17613 char d[(bool) 0.5 == true ? 1 : -1];
17614 /* See body of main program for 'e'. */
17615 char f[(_Bool) 0.0 == false ? 1 : -1];
17616 char g[true];
17617 char h[sizeof (_Bool)];
17618 char i[sizeof s.t];
17619 enum { j = false, k = true, l = false * true, m = true * 256 };
17620 /* The following fails for
17621 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
17622 _Bool n[m];
17623 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
17624 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
17625 /* Catch a bug in an HP-UX C compiler. See
17626 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
17627 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
17629 _Bool q = true;
17630 _Bool *pq = &q;
17633 main ()
17636 bool e = &s;
17637 *pq |= q;
17638 *pq |= ! q;
17639 /* Refer to every declared value, to avoid compiler optimizations. */
17640 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
17641 + !m + !n + !o + !p + !q + !pq);
17644 return 0;
17646 _ACEOF
17647 if ac_fn_c_try_compile "$LINENO"; then :
17648 ac_cv_header_stdbool_h=yes
17649 else
17650 ac_cv_header_stdbool_h=no
17652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
17655 $as_echo "$ac_cv_header_stdbool_h" >&6; }
17656 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
17657 if test "x$ac_cv_type__Bool" = x""yes; then :
17659 cat >>confdefs.h <<_ACEOF
17660 #define HAVE__BOOL 1
17661 _ACEOF
17668 REPLACE_NULL=0;
17669 HAVE_WCHAR_T=1;
17672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
17673 $as_echo_n "checking for wchar_t... " >&6; }
17674 if test "${gt_cv_c_wchar_t+set}" = set; then :
17675 $as_echo_n "(cached) " >&6
17676 else
17677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17678 /* end confdefs.h. */
17679 #include <stddef.h>
17680 wchar_t foo = (wchar_t)'\0';
17682 main ()
17686 return 0;
17688 _ACEOF
17689 if ac_fn_c_try_compile "$LINENO"; then :
17690 gt_cv_c_wchar_t=yes
17691 else
17692 gt_cv_c_wchar_t=no
17694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
17697 $as_echo "$gt_cv_c_wchar_t" >&6; }
17698 if test $gt_cv_c_wchar_t = yes; then
17700 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
17705 GNULIB_DPRINTF=0;
17706 GNULIB_FCLOSE=0;
17707 GNULIB_FDOPEN=0;
17708 GNULIB_FFLUSH=0;
17709 GNULIB_FGETC=0;
17710 GNULIB_FGETS=0;
17711 GNULIB_FOPEN=0;
17712 GNULIB_FPRINTF=0;
17713 GNULIB_FPRINTF_POSIX=0;
17714 GNULIB_FPURGE=0;
17715 GNULIB_FPUTC=0;
17716 GNULIB_FPUTS=0;
17717 GNULIB_FREAD=0;
17718 GNULIB_FREOPEN=0;
17719 GNULIB_FSCANF=0;
17720 GNULIB_FSEEK=0;
17721 GNULIB_FSEEKO=0;
17722 GNULIB_FTELL=0;
17723 GNULIB_FTELLO=0;
17724 GNULIB_FWRITE=0;
17725 GNULIB_GETC=0;
17726 GNULIB_GETCHAR=0;
17727 GNULIB_GETDELIM=0;
17728 GNULIB_GETLINE=0;
17729 GNULIB_OBSTACK_PRINTF=0;
17730 GNULIB_OBSTACK_PRINTF_POSIX=0;
17731 GNULIB_PCLOSE=0;
17732 GNULIB_PERROR=0;
17733 GNULIB_POPEN=0;
17734 GNULIB_PRINTF=0;
17735 GNULIB_PRINTF_POSIX=0;
17736 GNULIB_PUTC=0;
17737 GNULIB_PUTCHAR=0;
17738 GNULIB_PUTS=0;
17739 GNULIB_REMOVE=0;
17740 GNULIB_RENAME=0;
17741 GNULIB_RENAMEAT=0;
17742 GNULIB_SCANF=0;
17743 GNULIB_SNPRINTF=0;
17744 GNULIB_SPRINTF_POSIX=0;
17745 GNULIB_STDIO_H_NONBLOCKING=0;
17746 GNULIB_STDIO_H_SIGPIPE=0;
17747 GNULIB_TMPFILE=0;
17748 GNULIB_VASPRINTF=0;
17749 GNULIB_VFSCANF=0;
17750 GNULIB_VSCANF=0;
17751 GNULIB_VDPRINTF=0;
17752 GNULIB_VFPRINTF=0;
17753 GNULIB_VFPRINTF_POSIX=0;
17754 GNULIB_VPRINTF=0;
17755 GNULIB_VPRINTF_POSIX=0;
17756 GNULIB_VSNPRINTF=0;
17757 GNULIB_VSPRINTF_POSIX=0;
17758 HAVE_DECL_FPURGE=1;
17759 HAVE_DECL_FSEEKO=1;
17760 HAVE_DECL_FTELLO=1;
17761 HAVE_DECL_GETDELIM=1;
17762 HAVE_DECL_GETLINE=1;
17763 HAVE_DECL_OBSTACK_PRINTF=1;
17764 HAVE_DECL_SNPRINTF=1;
17765 HAVE_DECL_VSNPRINTF=1;
17766 HAVE_DPRINTF=1;
17767 HAVE_FSEEKO=1;
17768 HAVE_FTELLO=1;
17769 HAVE_PCLOSE=1;
17770 HAVE_POPEN=1;
17771 HAVE_RENAMEAT=1;
17772 HAVE_VASPRINTF=1;
17773 HAVE_VDPRINTF=1;
17774 REPLACE_DPRINTF=0;
17775 REPLACE_FCLOSE=0;
17776 REPLACE_FDOPEN=0;
17777 REPLACE_FFLUSH=0;
17778 REPLACE_FOPEN=0;
17779 REPLACE_FPRINTF=0;
17780 REPLACE_FPURGE=0;
17781 REPLACE_FREOPEN=0;
17782 REPLACE_FSEEK=0;
17783 REPLACE_FSEEKO=0;
17784 REPLACE_FTELL=0;
17785 REPLACE_FTELLO=0;
17786 REPLACE_GETDELIM=0;
17787 REPLACE_GETLINE=0;
17788 REPLACE_OBSTACK_PRINTF=0;
17789 REPLACE_PERROR=0;
17790 REPLACE_POPEN=0;
17791 REPLACE_PRINTF=0;
17792 REPLACE_REMOVE=0;
17793 REPLACE_RENAME=0;
17794 REPLACE_RENAMEAT=0;
17795 REPLACE_SNPRINTF=0;
17796 REPLACE_SPRINTF=0;
17797 REPLACE_STDIO_READ_FUNCS=0;
17798 REPLACE_STDIO_WRITE_FUNCS=0;
17799 REPLACE_TMPFILE=0;
17800 REPLACE_VASPRINTF=0;
17801 REPLACE_VDPRINTF=0;
17802 REPLACE_VFPRINTF=0;
17803 REPLACE_VPRINTF=0;
17804 REPLACE_VSNPRINTF=0;
17805 REPLACE_VSPRINTF=0;
17807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
17808 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
17809 if test "${ac_cv_struct_tm+set}" = set; then :
17810 $as_echo_n "(cached) " >&6
17811 else
17812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17813 /* end confdefs.h. */
17814 #include <sys/types.h>
17815 #include <time.h>
17818 main ()
17820 struct tm tm;
17821 int *p = &tm.tm_sec;
17822 return !p;
17824 return 0;
17826 _ACEOF
17827 if ac_fn_c_try_compile "$LINENO"; then :
17828 ac_cv_struct_tm=time.h
17829 else
17830 ac_cv_struct_tm=sys/time.h
17832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
17835 $as_echo "$ac_cv_struct_tm" >&6; }
17836 if test $ac_cv_struct_tm = sys/time.h; then
17838 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
17842 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
17843 #include <$ac_cv_struct_tm>
17846 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
17848 cat >>confdefs.h <<_ACEOF
17849 #define HAVE_STRUCT_TM_TM_ZONE 1
17850 _ACEOF
17855 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
17857 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
17859 else
17860 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
17862 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
17863 ac_have_decl=1
17864 else
17865 ac_have_decl=0
17868 cat >>confdefs.h <<_ACEOF
17869 #define HAVE_DECL_TZNAME $ac_have_decl
17870 _ACEOF
17872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
17873 $as_echo_n "checking for tzname... " >&6; }
17874 if test "${ac_cv_var_tzname+set}" = set; then :
17875 $as_echo_n "(cached) " >&6
17876 else
17877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17878 /* end confdefs.h. */
17879 #include <time.h>
17880 #if !HAVE_DECL_TZNAME
17881 extern char *tzname[];
17882 #endif
17885 main ()
17887 return tzname[0][0];
17889 return 0;
17891 _ACEOF
17892 if ac_fn_c_try_link "$LINENO"; then :
17893 ac_cv_var_tzname=yes
17894 else
17895 ac_cv_var_tzname=no
17897 rm -f core conftest.err conftest.$ac_objext \
17898 conftest$ac_exeext conftest.$ac_ext
17900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
17901 $as_echo "$ac_cv_var_tzname" >&6; }
17902 if test $ac_cv_var_tzname = yes; then
17904 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
17910 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
17912 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then :
17914 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
17921 ac_fn_c_check_decl "$LINENO" "strtoimax" "ac_cv_have_decl_strtoimax" "$ac_includes_default"
17922 if test "x$ac_cv_have_decl_strtoimax" = x""yes; then :
17923 ac_have_decl=1
17924 else
17925 ac_have_decl=0
17928 cat >>confdefs.h <<_ACEOF
17929 #define HAVE_DECL_STRTOIMAX $ac_have_decl
17930 _ACEOF
17934 ac_fn_c_check_decl "$LINENO" "strtoumax" "ac_cv_have_decl_strtoumax" "$ac_includes_default"
17935 if test "x$ac_cv_have_decl_strtoumax" = x""yes; then :
17936 ac_have_decl=1
17937 else
17938 ac_have_decl=0
17941 cat >>confdefs.h <<_ACEOF
17942 #define HAVE_DECL_STRTOUMAX $ac_have_decl
17943 _ACEOF
17947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
17948 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
17949 if test "${ac_cv_header_stat_broken+set}" = set; then :
17950 $as_echo_n "(cached) " >&6
17951 else
17952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17953 /* end confdefs.h. */
17954 #include <sys/types.h>
17955 #include <sys/stat.h>
17957 #if defined S_ISBLK && defined S_IFDIR
17958 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
17959 #endif
17961 #if defined S_ISBLK && defined S_IFCHR
17962 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
17963 #endif
17965 #if defined S_ISLNK && defined S_IFREG
17966 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
17967 #endif
17969 #if defined S_ISSOCK && defined S_IFREG
17970 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
17971 #endif
17973 _ACEOF
17974 if ac_fn_c_try_compile "$LINENO"; then :
17975 ac_cv_header_stat_broken=no
17976 else
17977 ac_cv_header_stat_broken=yes
17979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
17982 $as_echo "$ac_cv_header_stat_broken" >&6; }
17983 if test $ac_cv_header_stat_broken = yes; then
17985 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
17991 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
17992 if test "x$ac_cv_type_mode_t" = x""yes; then :
17994 else
17996 cat >>confdefs.h <<_ACEOF
17997 #define mode_t int
17998 _ACEOF
18010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
18011 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
18012 if test "${ac_cv_c_restrict+set}" = set; then :
18013 $as_echo_n "(cached) " >&6
18014 else
18015 ac_cv_c_restrict=no
18016 # The order here caters to the fact that C++ does not require restrict.
18017 for ac_kw in __restrict __restrict__ _Restrict restrict; do
18018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18019 /* end confdefs.h. */
18020 typedef int * int_ptr;
18021 int foo (int_ptr $ac_kw ip) {
18022 return ip[0];
18025 main ()
18027 int s[1];
18028 int * $ac_kw t = s;
18029 t[0] = 0;
18030 return foo(t)
18032 return 0;
18034 _ACEOF
18035 if ac_fn_c_try_compile "$LINENO"; then :
18036 ac_cv_c_restrict=$ac_kw
18038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18039 test "$ac_cv_c_restrict" != no && break
18040 done
18043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
18044 $as_echo "$ac_cv_c_restrict" >&6; }
18046 case $ac_cv_c_restrict in
18047 restrict) ;;
18048 no) $as_echo "#define restrict /**/" >>confdefs.h
18050 *) cat >>confdefs.h <<_ACEOF
18051 #define restrict $ac_cv_c_restrict
18052 _ACEOF
18054 esac
18058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
18059 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
18060 if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then :
18061 $as_echo_n "(cached) " >&6
18062 else
18063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18064 /* end confdefs.h. */
18065 #include <time.h>
18068 main ()
18070 static struct timespec x; x.tv_sec = x.tv_nsec;
18072 return 0;
18074 _ACEOF
18075 if ac_fn_c_try_compile "$LINENO"; then :
18076 gl_cv_sys_struct_timespec_in_time_h=yes
18077 else
18078 gl_cv_sys_struct_timespec_in_time_h=no
18080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
18083 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
18085 TIME_H_DEFINES_STRUCT_TIMESPEC=0
18086 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
18087 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
18088 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
18089 TIME_H_DEFINES_STRUCT_TIMESPEC=1
18090 else
18091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
18092 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
18093 if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then :
18094 $as_echo_n "(cached) " >&6
18095 else
18096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18097 /* end confdefs.h. */
18098 #include <sys/time.h>
18101 main ()
18103 static struct timespec x; x.tv_sec = x.tv_nsec;
18105 return 0;
18107 _ACEOF
18108 if ac_fn_c_try_compile "$LINENO"; then :
18109 gl_cv_sys_struct_timespec_in_sys_time_h=yes
18110 else
18111 gl_cv_sys_struct_timespec_in_sys_time_h=no
18113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
18116 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
18117 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
18118 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
18119 else
18120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
18121 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
18122 if test "${gl_cv_sys_struct_timespec_in_pthread_h+set}" = set; then :
18123 $as_echo_n "(cached) " >&6
18124 else
18125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18126 /* end confdefs.h. */
18127 #include <pthread.h>
18130 main ()
18132 static struct timespec x; x.tv_sec = x.tv_nsec;
18134 return 0;
18136 _ACEOF
18137 if ac_fn_c_try_compile "$LINENO"; then :
18138 gl_cv_sys_struct_timespec_in_pthread_h=yes
18139 else
18140 gl_cv_sys_struct_timespec_in_pthread_h=no
18142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
18145 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
18146 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
18147 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
18166 if test $gl_cv_have_include_next = yes; then
18167 gl_cv_next_time_h='<'time.h'>'
18168 else
18169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
18170 $as_echo_n "checking absolute name of <time.h>... " >&6; }
18171 if test "${gl_cv_next_time_h+set}" = set; then :
18172 $as_echo_n "(cached) " >&6
18173 else
18175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18176 /* end confdefs.h. */
18177 #include <time.h>
18179 _ACEOF
18180 case "$host_os" in
18181 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18182 *) gl_absname_cpp="$ac_cpp" ;;
18183 esac
18185 case "$host_os" in
18186 mingw*)
18187 gl_dirsep_regex='[/\\]'
18190 gl_dirsep_regex='\/'
18192 esac
18193 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
18195 gl_header_literal_regex=`echo 'time.h' \
18196 | sed -e "$gl_make_literal_regex_sed"`
18197 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18198 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18199 s|^/[^/]|//&|
18203 gl_cv_next_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18204 sed -n "$gl_absolute_header_sed"`'"'
18208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
18209 $as_echo "$gl_cv_next_time_h" >&6; }
18211 NEXT_TIME_H=$gl_cv_next_time_h
18213 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18214 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18215 gl_next_as_first_directive='<'time.h'>'
18216 else
18217 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18218 gl_next_as_first_directive=$gl_cv_next_time_h
18220 NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
18227 ac_fn_c_check_decl "$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "$ac_includes_default"
18228 if test "x$ac_cv_have_decl_localtime_r" = x""yes; then :
18229 ac_have_decl=1
18230 else
18231 ac_have_decl=0
18234 cat >>confdefs.h <<_ACEOF
18235 #define HAVE_DECL_LOCALTIME_R $ac_have_decl
18236 _ACEOF
18241 if false; then
18242 GL_COND_LIBTOOL_TRUE=
18243 GL_COND_LIBTOOL_FALSE='#'
18244 else
18245 GL_COND_LIBTOOL_TRUE='#'
18246 GL_COND_LIBTOOL_FALSE=
18249 gl_cond_libtool=false
18250 gl_libdeps=
18251 gl_ltlibdeps=
18252 gl_m4_base='m4'
18262 gl_source_base='lib'
18265 if test $ac_cv_func_alloca_works = no; then
18269 # Define an additional variable used in the Makefile substitution.
18270 if test $ac_cv_working_alloca_h = yes; then
18271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
18272 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
18273 if test "${gl_cv_rpl_alloca+set}" = set; then :
18274 $as_echo_n "(cached) " >&6
18275 else
18277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18278 /* end confdefs.h. */
18280 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
18281 Need own alloca
18282 #endif
18284 _ACEOF
18285 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18286 $EGREP "Need own alloca" >/dev/null 2>&1; then :
18287 gl_cv_rpl_alloca=yes
18288 else
18289 gl_cv_rpl_alloca=no
18291 rm -f conftest*
18295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
18296 $as_echo "$gl_cv_rpl_alloca" >&6; }
18297 if test $gl_cv_rpl_alloca = yes; then
18299 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
18301 ALLOCA_H=alloca.h
18302 else
18303 ALLOCA_H=
18305 else
18306 ALLOCA_H=alloca.h
18309 if test -n "$ALLOCA_H"; then
18310 GL_GENERATE_ALLOCA_H_TRUE=
18311 GL_GENERATE_ALLOCA_H_FALSE='#'
18312 else
18313 GL_GENERATE_ALLOCA_H_TRUE='#'
18314 GL_GENERATE_ALLOCA_H_FALSE=
18343 $as_echo "#define HAVE_DUP2 1" >>confdefs.h
18346 if test $HAVE_DUP2 = 1; then
18347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5
18348 $as_echo_n "checking whether dup2 works... " >&6; }
18349 if test "${gl_cv_func_dup2_works+set}" = set; then :
18350 $as_echo_n "(cached) " >&6
18351 else
18352 if test "$cross_compiling" = yes; then :
18353 case "$host_os" in
18354 mingw*) # on this platform, dup2 always returns 0 for success
18355 gl_cv_func_dup2_works="guessing no" ;;
18356 cygwin*) # on cygwin 1.5.x, dup2(1,1) returns 0
18357 gl_cv_func_dup2_works="guessing no" ;;
18358 linux*) # On linux between 2008-07-27 and 2009-05-11, dup2 of a
18359 # closed fd may yield -EBADF instead of -1 / errno=EBADF.
18360 gl_cv_func_dup2_works="guessing no" ;;
18361 freebsd*) # on FreeBSD 6.1, dup2(1,1000000) gives EMFILE, not EBADF.
18362 gl_cv_func_dup2_works="guessing no" ;;
18363 haiku*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC.
18364 gl_cv_func_dup2_works="guessing no" ;;
18365 *) gl_cv_func_dup2_works="guessing yes" ;;
18366 esac
18367 else
18368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18369 /* end confdefs.h. */
18371 #include <unistd.h>
18372 #include <fcntl.h>
18373 #include <errno.h>
18375 main ()
18377 int result = 0;
18378 #ifdef FD_CLOEXEC
18379 if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1)
18380 result |= 1;
18381 #endif
18382 if (dup2 (1, 1) == 0)
18383 result |= 2;
18384 #ifdef FD_CLOEXEC
18385 if (fcntl (1, F_GETFD) != FD_CLOEXEC)
18386 result |= 4;
18387 #endif
18388 close (0);
18389 if (dup2 (0, 0) != -1)
18390 result |= 8;
18391 /* Many gnulib modules require POSIX conformance of EBADF. */
18392 if (dup2 (2, 1000000) == -1 && errno != EBADF)
18393 result |= 16;
18394 return result;
18397 return 0;
18400 _ACEOF
18401 if ac_fn_c_try_run "$LINENO"; then :
18402 gl_cv_func_dup2_works=yes
18403 else
18404 gl_cv_func_dup2_works=no
18406 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18407 conftest.$ac_objext conftest.beam conftest.$ac_ext
18412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5
18413 $as_echo "$gl_cv_func_dup2_works" >&6; }
18414 case "$gl_cv_func_dup2_works" in
18415 *yes) ;;
18417 REPLACE_DUP2=1
18419 esac
18423 if test $HAVE_DUP2 = 0 || test $REPLACE_DUP2 = 1; then
18432 gl_LIBOBJS="$gl_LIBOBJS dup2.$ac_objext"
18441 GNULIB_DUP2=1
18453 # Persuade glibc <stdlib.h> to declare getloadavg().
18456 gl_save_LIBS=$LIBS
18458 # getloadvg is present in libc on glibc >= 2.2, MacOS X, FreeBSD >= 2.0,
18459 # NetBSD >= 0.9, OpenBSD >= 2.0, Solaris >= 7.
18460 HAVE_GETLOADAVG=1
18461 ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
18462 if test "x$ac_cv_func_getloadavg" = x""yes; then :
18464 else
18465 gl_func_getloadavg_done=no
18467 # Some systems with -lutil have (and need) -lkvm as well, some do not.
18468 # On Solaris, -lkvm requires nlist from -lelf, so check that first
18469 # to get the right answer into the cache.
18470 # For kstat on solaris, we need to test for libelf and libkvm to force the
18471 # definition of SVR4 below.
18472 if test $gl_func_getloadavg_done = no; then
18473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
18474 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
18475 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then :
18476 $as_echo_n "(cached) " >&6
18477 else
18478 ac_check_lib_save_LIBS=$LIBS
18479 LIBS="-lelf $LIBS"
18480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18481 /* end confdefs.h. */
18483 /* Override any GCC internal prototype to avoid an error.
18484 Use char because int might match the return type of a GCC
18485 builtin and then its argument prototype would still apply. */
18486 #ifdef __cplusplus
18487 extern "C"
18488 #endif
18489 char elf_begin ();
18491 main ()
18493 return elf_begin ();
18495 return 0;
18497 _ACEOF
18498 if ac_fn_c_try_link "$LINENO"; then :
18499 ac_cv_lib_elf_elf_begin=yes
18500 else
18501 ac_cv_lib_elf_elf_begin=no
18503 rm -f core conftest.err conftest.$ac_objext \
18504 conftest$ac_exeext conftest.$ac_ext
18505 LIBS=$ac_check_lib_save_LIBS
18507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
18508 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
18509 if test "x$ac_cv_lib_elf_elf_begin" = x""yes; then :
18510 LIBS="-lelf $LIBS"
18513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
18514 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
18515 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
18516 $as_echo_n "(cached) " >&6
18517 else
18518 ac_check_lib_save_LIBS=$LIBS
18519 LIBS="-lkvm $LIBS"
18520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18521 /* end confdefs.h. */
18523 /* Override any GCC internal prototype to avoid an error.
18524 Use char because int might match the return type of a GCC
18525 builtin and then its argument prototype would still apply. */
18526 #ifdef __cplusplus
18527 extern "C"
18528 #endif
18529 char kvm_open ();
18531 main ()
18533 return kvm_open ();
18535 return 0;
18537 _ACEOF
18538 if ac_fn_c_try_link "$LINENO"; then :
18539 ac_cv_lib_kvm_kvm_open=yes
18540 else
18541 ac_cv_lib_kvm_kvm_open=no
18543 rm -f core conftest.err conftest.$ac_objext \
18544 conftest$ac_exeext conftest.$ac_ext
18545 LIBS=$ac_check_lib_save_LIBS
18547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
18548 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
18549 if test "x$ac_cv_lib_kvm_kvm_open" = x""yes; then :
18550 LIBS="-lkvm $LIBS"
18553 # Check for the 4.4BSD definition of getloadavg.
18554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
18555 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
18556 if test "${ac_cv_lib_util_getloadavg+set}" = set; then :
18557 $as_echo_n "(cached) " >&6
18558 else
18559 ac_check_lib_save_LIBS=$LIBS
18560 LIBS="-lutil $LIBS"
18561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18562 /* end confdefs.h. */
18564 /* Override any GCC internal prototype to avoid an error.
18565 Use char because int might match the return type of a GCC
18566 builtin and then its argument prototype would still apply. */
18567 #ifdef __cplusplus
18568 extern "C"
18569 #endif
18570 char getloadavg ();
18572 main ()
18574 return getloadavg ();
18576 return 0;
18578 _ACEOF
18579 if ac_fn_c_try_link "$LINENO"; then :
18580 ac_cv_lib_util_getloadavg=yes
18581 else
18582 ac_cv_lib_util_getloadavg=no
18584 rm -f core conftest.err conftest.$ac_objext \
18585 conftest$ac_exeext conftest.$ac_ext
18586 LIBS=$ac_check_lib_save_LIBS
18588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
18589 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
18590 if test "x$ac_cv_lib_util_getloadavg" = x""yes; then :
18591 LIBS="-lutil $LIBS" gl_func_getloadavg_done=yes
18596 if test $gl_func_getloadavg_done = no; then
18597 # There is a commonly available library for RS/6000 AIX.
18598 # Since it is not a standard part of AIX, it might be installed locally.
18599 gl_getloadavg_LIBS=$LIBS
18600 LIBS="-L/usr/local/lib $LIBS"
18601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
18602 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
18603 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then :
18604 $as_echo_n "(cached) " >&6
18605 else
18606 ac_check_lib_save_LIBS=$LIBS
18607 LIBS="-lgetloadavg $LIBS"
18608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18609 /* end confdefs.h. */
18611 /* Override any GCC internal prototype to avoid an error.
18612 Use char because int might match the return type of a GCC
18613 builtin and then its argument prototype would still apply. */
18614 #ifdef __cplusplus
18615 extern "C"
18616 #endif
18617 char getloadavg ();
18619 main ()
18621 return getloadavg ();
18623 return 0;
18625 _ACEOF
18626 if ac_fn_c_try_link "$LINENO"; then :
18627 ac_cv_lib_getloadavg_getloadavg=yes
18628 else
18629 ac_cv_lib_getloadavg_getloadavg=no
18631 rm -f core conftest.err conftest.$ac_objext \
18632 conftest$ac_exeext conftest.$ac_ext
18633 LIBS=$ac_check_lib_save_LIBS
18635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
18636 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
18637 if test "x$ac_cv_lib_getloadavg_getloadavg" = x""yes; then :
18638 LIBS="-lgetloadavg $LIBS" gl_func_getloadavg_done=yes
18639 else
18640 LIBS=$gl_getloadavg_LIBS
18645 # Set up the replacement function if necessary.
18646 if test $gl_func_getloadavg_done = no; then
18647 HAVE_GETLOADAVG=0
18649 # Solaris has libkstat which does not require root.
18650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
18651 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
18652 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
18653 $as_echo_n "(cached) " >&6
18654 else
18655 ac_check_lib_save_LIBS=$LIBS
18656 LIBS="-lkstat $LIBS"
18657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18658 /* end confdefs.h. */
18660 /* Override any GCC internal prototype to avoid an error.
18661 Use char because int might match the return type of a GCC
18662 builtin and then its argument prototype would still apply. */
18663 #ifdef __cplusplus
18664 extern "C"
18665 #endif
18666 char kstat_open ();
18668 main ()
18670 return kstat_open ();
18672 return 0;
18674 _ACEOF
18675 if ac_fn_c_try_link "$LINENO"; then :
18676 ac_cv_lib_kstat_kstat_open=yes
18677 else
18678 ac_cv_lib_kstat_kstat_open=no
18680 rm -f core conftest.err conftest.$ac_objext \
18681 conftest$ac_exeext conftest.$ac_ext
18682 LIBS=$ac_check_lib_save_LIBS
18684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
18685 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
18686 if test "x$ac_cv_lib_kstat_kstat_open" = x""yes; then :
18687 cat >>confdefs.h <<_ACEOF
18688 #define HAVE_LIBKSTAT 1
18689 _ACEOF
18691 LIBS="-lkstat $LIBS"
18695 test $ac_cv_lib_kstat_kstat_open = yes && gl_func_getloadavg_done=yes
18697 # AIX has libperfstat which does not require root
18698 if test $gl_func_getloadavg_done = no; then
18699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perfstat_cpu_total in -lperfstat" >&5
18700 $as_echo_n "checking for perfstat_cpu_total in -lperfstat... " >&6; }
18701 if test "${ac_cv_lib_perfstat_perfstat_cpu_total+set}" = set; then :
18702 $as_echo_n "(cached) " >&6
18703 else
18704 ac_check_lib_save_LIBS=$LIBS
18705 LIBS="-lperfstat $LIBS"
18706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18707 /* end confdefs.h. */
18709 /* Override any GCC internal prototype to avoid an error.
18710 Use char because int might match the return type of a GCC
18711 builtin and then its argument prototype would still apply. */
18712 #ifdef __cplusplus
18713 extern "C"
18714 #endif
18715 char perfstat_cpu_total ();
18717 main ()
18719 return perfstat_cpu_total ();
18721 return 0;
18723 _ACEOF
18724 if ac_fn_c_try_link "$LINENO"; then :
18725 ac_cv_lib_perfstat_perfstat_cpu_total=yes
18726 else
18727 ac_cv_lib_perfstat_perfstat_cpu_total=no
18729 rm -f core conftest.err conftest.$ac_objext \
18730 conftest$ac_exeext conftest.$ac_ext
18731 LIBS=$ac_check_lib_save_LIBS
18733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_perfstat_perfstat_cpu_total" >&5
18734 $as_echo "$ac_cv_lib_perfstat_perfstat_cpu_total" >&6; }
18735 if test "x$ac_cv_lib_perfstat_perfstat_cpu_total" = x""yes; then :
18736 cat >>confdefs.h <<_ACEOF
18737 #define HAVE_LIBPERFSTAT 1
18738 _ACEOF
18740 LIBS="-lperfstat $LIBS"
18744 test $ac_cv_lib_perfstat_perfstat_cpu_total = yes && gl_func_getloadavg_done=yes
18747 if test $gl_func_getloadavg_done = no; then
18748 ac_fn_c_check_header_mongrel "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
18749 if test "x$ac_cv_header_sys_dg_sys_info_h" = x""yes; then :
18750 gl_func_getloadavg_done=yes
18752 $as_echo "#define DGUX 1" >>confdefs.h
18754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
18755 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
18756 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then :
18757 $as_echo_n "(cached) " >&6
18758 else
18759 ac_check_lib_save_LIBS=$LIBS
18760 LIBS="-ldgc $LIBS"
18761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18762 /* end confdefs.h. */
18764 /* Override any GCC internal prototype to avoid an error.
18765 Use char because int might match the return type of a GCC
18766 builtin and then its argument prototype would still apply. */
18767 #ifdef __cplusplus
18768 extern "C"
18769 #endif
18770 char dg_sys_info ();
18772 main ()
18774 return dg_sys_info ();
18776 return 0;
18778 _ACEOF
18779 if ac_fn_c_try_link "$LINENO"; then :
18780 ac_cv_lib_dgc_dg_sys_info=yes
18781 else
18782 ac_cv_lib_dgc_dg_sys_info=no
18784 rm -f core conftest.err conftest.$ac_objext \
18785 conftest$ac_exeext conftest.$ac_ext
18786 LIBS=$ac_check_lib_save_LIBS
18788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
18789 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
18790 if test "x$ac_cv_lib_dgc_dg_sys_info" = x""yes; then :
18791 cat >>confdefs.h <<_ACEOF
18792 #define HAVE_LIBDGC 1
18793 _ACEOF
18795 LIBS="-ldgc $LIBS"
18807 if test "x$gl_save_LIBS" = x; then
18808 GETLOADAVG_LIBS=$LIBS
18809 else
18810 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$gl_save_LIBS!!"`
18812 LIBS=$gl_save_LIBS
18815 # Test whether the system declares getloadavg. Solaris has the function
18816 # but declares it in <sys/loadavg.h>, not <stdlib.h>.
18817 for ac_header in sys/loadavg.h
18818 do :
18819 ac_fn_c_check_header_mongrel "$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default"
18820 if test "x$ac_cv_header_sys_loadavg_h" = x""yes; then :
18821 cat >>confdefs.h <<_ACEOF
18822 #define HAVE_SYS_LOADAVG_H 1
18823 _ACEOF
18827 done
18829 if test $ac_cv_header_sys_loadavg_h = yes; then
18830 HAVE_SYS_LOADAVG_H=1
18831 else
18832 HAVE_SYS_LOADAVG_H=0
18834 ac_fn_c_check_decl "$LINENO" "getloadavg" "ac_cv_have_decl_getloadavg" "#if HAVE_SYS_LOADAVG_H
18835 # include <sys/loadavg.h>
18836 #endif
18837 #include <stdlib.h>
18839 if test "x$ac_cv_have_decl_getloadavg" = x""yes; then :
18841 else
18842 HAVE_DECL_GETLOADAVG=0
18846 if test $HAVE_GETLOADAVG = 0; then
18855 gl_LIBOBJS="$gl_LIBOBJS getloadavg.$ac_objext"
18858 # Figure out what our getloadavg.c needs.
18860 # On HPUX9, an unprivileged user can get load averages this way.
18861 if test $gl_func_getloadavg_done = no; then
18862 for ac_func in pstat_getdynamic
18863 do :
18864 ac_fn_c_check_func "$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
18865 if test "x$ac_cv_func_pstat_getdynamic" = x""yes; then :
18866 cat >>confdefs.h <<_ACEOF
18867 #define HAVE_PSTAT_GETDYNAMIC 1
18868 _ACEOF
18869 gl_func_getloadavg_done=yes
18871 done
18875 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
18876 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
18877 # Irix 4.0.5F has the header but not the library.
18878 if test $gl_func_getloadavg_done = no && test "$ac_cv_lib_elf_elf_begin" = yes \
18879 && test "$ac_cv_lib_kvm_kvm_open" = yes; then
18880 gl_func_getloadavg_done=yes
18882 $as_echo "#define SVR4 1" >>confdefs.h
18886 if test $gl_func_getloadavg_done = no; then
18887 ac_fn_c_check_header_mongrel "$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
18888 if test "x$ac_cv_header_inq_stats_cpustats_h" = x""yes; then :
18889 gl_func_getloadavg_done=yes
18891 $as_echo "#define UMAX 1" >>confdefs.h
18894 $as_echo "#define UMAX4_3 1" >>confdefs.h
18901 if test $gl_func_getloadavg_done = no; then
18902 ac_fn_c_check_header_mongrel "$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
18903 if test "x$ac_cv_header_sys_cpustats_h" = x""yes; then :
18904 gl_func_getloadavg_done=yes; $as_echo "#define UMAX 1" >>confdefs.h
18911 if test $gl_func_getloadavg_done = no; then
18912 for ac_header in mach/mach.h
18913 do :
18914 ac_fn_c_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
18915 if test "x$ac_cv_header_mach_mach_h" = x""yes; then :
18916 cat >>confdefs.h <<_ACEOF
18917 #define HAVE_MACH_MACH_H 1
18918 _ACEOF
18922 done
18926 for ac_header in nlist.h
18927 do :
18928 ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
18929 if test "x$ac_cv_header_nlist_h" = x""yes; then :
18930 cat >>confdefs.h <<_ACEOF
18931 #define HAVE_NLIST_H 1
18932 _ACEOF
18933 ac_fn_c_check_member "$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
18935 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x""yes; then :
18937 cat >>confdefs.h <<_ACEOF
18938 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
18939 _ACEOF
18944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18945 /* end confdefs.h. */
18946 #include <nlist.h>
18948 main ()
18950 struct nlist x;
18951 #ifdef HAVE_STRUCT_NLIST_N_UN_N_NAME
18952 x.n_un.n_name = "";
18953 #else
18954 x.n_name = "";
18955 #endif
18957 return 0;
18959 _ACEOF
18960 if ac_fn_c_try_link "$LINENO"; then :
18962 $as_echo "#define N_NAME_POINTER 1" >>confdefs.h
18965 rm -f core conftest.err conftest.$ac_objext \
18966 conftest$ac_exeext conftest.$ac_ext
18970 done
18978 GNULIB_GETLOADAVG=1
18989 if test $REPLACE_GETOPT = 1; then
18998 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
19008 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
19013 GNULIB_GL_UNISTD_H_GETOPT=1
19021 REPLACE_GETOPT=0
19024 if test -n "$gl_replace_getopt"; then :
19026 REPLACE_GETOPT=1
19031 if test $REPLACE_GETOPT = 1; then
19033 GETOPT_H=getopt.h
19035 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
19041 if test $REPLACE_GETOPT = 1; then
19050 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
19060 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
19065 GNULIB_GL_UNISTD_H_GETOPT=1
19074 if test $ac_cv_func_lstat = yes; then
19076 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
19077 *no)
19078 REPLACE_LSTAT=1
19080 esac
19081 else
19082 HAVE_LSTAT=0
19085 if test $REPLACE_LSTAT = 1; then
19094 gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext"
19106 GNULIB_LSTAT=1
19118 if test $APPLE_UNIVERSAL_BUILD = 1; then
19119 # A universal build on Apple MacOS X platforms.
19120 # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode.
19121 # But we need a configuration result that is valid in both modes.
19122 gl_cv_func_working_mktime=no
19124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
19125 $as_echo_n "checking for working mktime... " >&6; }
19126 if test "${gl_cv_func_working_mktime+set}" = set; then :
19127 $as_echo_n "(cached) " >&6
19128 else
19129 if test "$cross_compiling" = yes; then :
19130 gl_cv_func_working_mktime=no
19131 else
19132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19133 /* end confdefs.h. */
19134 /* Test program from Paul Eggert and Tony Leneis. */
19135 #include <limits.h>
19136 #include <stdlib.h>
19137 #include <time.h>
19139 #ifdef HAVE_UNISTD_H
19140 # include <unistd.h>
19141 #endif
19143 #ifndef HAVE_ALARM
19144 # define alarm(X) /* empty */
19145 #endif
19147 /* Work around redefinition to rpl_putenv by other config tests. */
19148 #undef putenv
19150 static time_t time_t_max;
19151 static time_t time_t_min;
19153 /* Values we'll use to set the TZ environment variable. */
19154 static char *tz_strings[] = {
19155 (char *) 0, "TZ=GMT0", "TZ=JST-9",
19156 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
19158 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
19160 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
19161 Based on a problem report from Andreas Jaeger. */
19162 static int
19163 spring_forward_gap ()
19165 /* glibc (up to about 1998-10-07) failed this test. */
19166 struct tm tm;
19168 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
19169 instead of "TZ=America/Vancouver" in order to detect the bug even
19170 on systems that don't support the Olson extension, or don't have the
19171 full zoneinfo tables installed. */
19172 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
19174 tm.tm_year = 98;
19175 tm.tm_mon = 3;
19176 tm.tm_mday = 5;
19177 tm.tm_hour = 2;
19178 tm.tm_min = 0;
19179 tm.tm_sec = 0;
19180 tm.tm_isdst = -1;
19181 return mktime (&tm) != (time_t) -1;
19184 static int
19185 mktime_test1 (time_t now)
19187 struct tm *lt;
19188 return ! (lt = localtime (&now)) || mktime (lt) == now;
19191 static int
19192 mktime_test (time_t now)
19194 return (mktime_test1 (now)
19195 && mktime_test1 ((time_t) (time_t_max - now))
19196 && mktime_test1 ((time_t) (time_t_min + now)));
19199 static int
19200 irix_6_4_bug ()
19202 /* Based on code from Ariel Faigon. */
19203 struct tm tm;
19204 tm.tm_year = 96;
19205 tm.tm_mon = 3;
19206 tm.tm_mday = 0;
19207 tm.tm_hour = 0;
19208 tm.tm_min = 0;
19209 tm.tm_sec = 0;
19210 tm.tm_isdst = -1;
19211 mktime (&tm);
19212 return tm.tm_mon == 2 && tm.tm_mday == 31;
19215 static int
19216 bigtime_test (int j)
19218 struct tm tm;
19219 time_t now;
19220 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
19221 now = mktime (&tm);
19222 if (now != (time_t) -1)
19224 struct tm *lt = localtime (&now);
19225 if (! (lt
19226 && lt->tm_year == tm.tm_year
19227 && lt->tm_mon == tm.tm_mon
19228 && lt->tm_mday == tm.tm_mday
19229 && lt->tm_hour == tm.tm_hour
19230 && lt->tm_min == tm.tm_min
19231 && lt->tm_sec == tm.tm_sec
19232 && lt->tm_yday == tm.tm_yday
19233 && lt->tm_wday == tm.tm_wday
19234 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
19235 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
19236 return 0;
19238 return 1;
19241 static int
19242 year_2050_test ()
19244 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
19245 ignoring leap seconds. */
19246 unsigned long int answer = 2527315200UL;
19248 struct tm tm;
19249 time_t t;
19250 tm.tm_year = 2050 - 1900;
19251 tm.tm_mon = 2 - 1;
19252 tm.tm_mday = 1;
19253 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
19254 tm.tm_isdst = -1;
19256 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
19257 instead of "TZ=America/Vancouver" in order to detect the bug even
19258 on systems that don't support the Olson extension, or don't have the
19259 full zoneinfo tables installed. */
19260 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
19262 t = mktime (&tm);
19264 /* Check that the result is either a failure, or close enough
19265 to the correct answer that we can assume the discrepancy is
19266 due to leap seconds. */
19267 return (t == (time_t) -1
19268 || (0 < t && answer - 120 <= t && t <= answer + 120));
19272 main ()
19274 int result = 0;
19275 time_t t, delta;
19276 int i, j;
19277 int time_t_signed_magnitude = (time_t) ~ (time_t) 0 < (time_t) -1;
19278 int time_t_signed = ! ((time_t) 0 < (time_t) -1);
19280 /* This test makes some buggy mktime implementations loop.
19281 Give up after 60 seconds; a mktime slower than that
19282 isn't worth using anyway. */
19283 alarm (60);
19285 time_t_max = (! time_t_signed
19286 ? (time_t) -1
19287 : ((((time_t) 1 << (sizeof (time_t) * CHAR_BIT - 2)) - 1)
19288 * 2 + 1));
19289 time_t_min = (! time_t_signed
19290 ? (time_t) 0
19291 : time_t_signed_magnitude
19292 ? ~ (time_t) 0
19293 : ~ time_t_max);
19295 delta = time_t_max / 997; /* a suitable prime number */
19296 for (i = 0; i < N_STRINGS; i++)
19298 if (tz_strings[i])
19299 putenv (tz_strings[i]);
19301 for (t = 0; t <= time_t_max - delta; t += delta)
19302 if (! mktime_test (t))
19303 result |= 1;
19304 if (! (mktime_test ((time_t) 1)
19305 && mktime_test ((time_t) (60 * 60))
19306 && mktime_test ((time_t) (60 * 60 * 24))))
19307 result |= 2;
19309 for (j = 1; ; j <<= 1)
19310 if (! bigtime_test (j))
19311 result |= 4;
19312 else if (INT_MAX / 2 < j)
19313 break;
19314 if (! bigtime_test (INT_MAX))
19315 result |= 8;
19317 if (! irix_6_4_bug ())
19318 result |= 16;
19319 if (! spring_forward_gap ())
19320 result |= 32;
19321 if (! year_2050_test ())
19322 result |= 64;
19323 return result;
19325 _ACEOF
19326 if ac_fn_c_try_run "$LINENO"; then :
19327 gl_cv_func_working_mktime=yes
19328 else
19329 gl_cv_func_working_mktime=no
19331 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19332 conftest.$ac_objext conftest.beam conftest.$ac_ext
19337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_mktime" >&5
19338 $as_echo "$gl_cv_func_working_mktime" >&6; }
19340 if test $gl_cv_func_working_mktime = no; then
19341 REPLACE_MKTIME=1
19342 else
19343 REPLACE_MKTIME=0
19346 if test $REPLACE_MKTIME = 1; then
19355 gl_LIBOBJS="$gl_LIBOBJS mktime.$ac_objext"
19366 GNULIB_MKTIME=1
19377 LIB_PTHREAD_SIGMASK=
19380 if test $ac_cv_func_pthread_sigmask = yes; then
19382 else
19383 HAVE_PTHREAD_SIGMASK=0
19384 REPLACE_PTHREAD_SIGMASK=1
19390 if test $HAVE_PTHREAD_SIGMASK = 1; then
19393 if test -z "$LIB_PTHREAD_SIGMASK"; then
19394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask works without -lpthread" >&5
19395 $as_echo_n "checking whether pthread_sigmask works without -lpthread... " >&6; }
19396 if test "${gl_cv_func_pthread_sigmask_in_libc_works+set}" = set; then :
19397 $as_echo_n "(cached) " >&6
19398 else
19400 if test "$cross_compiling" = yes; then :
19402 case "$host_os" in
19403 freebsd* | hpux* | solaris | solaris2.[2-9]*)
19404 gl_cv_func_pthread_sigmask_in_libc_works="guessing no";;
19406 gl_cv_func_pthread_sigmask_in_libc_works="guessing yes";;
19407 esac
19409 else
19410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19411 /* end confdefs.h. */
19413 #include <pthread.h>
19414 #include <signal.h>
19415 #include <stddef.h>
19416 int main ()
19418 sigset_t set;
19419 sigemptyset (&set);
19420 return pthread_sigmask (1729, &set, NULL) != 0;
19422 _ACEOF
19423 if ac_fn_c_try_run "$LINENO"; then :
19424 gl_cv_func_pthread_sigmask_in_libc_works=no
19425 else
19426 gl_cv_func_pthread_sigmask_in_libc_works=yes
19428 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19429 conftest.$ac_objext conftest.beam conftest.$ac_ext
19434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_in_libc_works" >&5
19435 $as_echo "$gl_cv_func_pthread_sigmask_in_libc_works" >&6; }
19436 case "$gl_cv_func_pthread_sigmask_in_libc_works" in
19437 *no)
19438 REPLACE_PTHREAD_SIGMASK=1
19440 $as_echo "#define PTHREAD_SIGMASK_INEFFECTIVE 1" >>confdefs.h
19443 esac
19446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask returns error numbers" >&5
19447 $as_echo_n "checking whether pthread_sigmask returns error numbers... " >&6; }
19448 if test "${gl_cv_func_pthread_sigmask_return_works+set}" = set; then :
19449 $as_echo_n "(cached) " >&6
19450 else
19452 gl_save_LIBS="$LIBS"
19453 LIBS="$LIBS $LIB_PTHREAD_SIGMASK"
19454 if test "$cross_compiling" = yes; then :
19455 case "$host_os" in
19456 cygwin*)
19457 gl_cv_func_pthread_sigmask_return_works="guessing no";;
19459 gl_cv_func_pthread_sigmask_return_works="guessing yes";;
19460 esac
19462 else
19463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19464 /* end confdefs.h. */
19466 #include <pthread.h>
19467 #include <signal.h>
19468 #include <stddef.h>
19469 int main ()
19471 sigset_t set;
19472 sigemptyset (&set);
19473 if (pthread_sigmask (1729, &set, NULL) == -1)
19474 return 1;
19475 return 0;
19477 _ACEOF
19478 if ac_fn_c_try_run "$LINENO"; then :
19479 gl_cv_func_pthread_sigmask_return_works=yes
19480 else
19481 gl_cv_func_pthread_sigmask_return_works=no
19483 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19484 conftest.$ac_objext conftest.beam conftest.$ac_ext
19487 LIBS="$gl_save_LIBS"
19490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_return_works" >&5
19491 $as_echo "$gl_cv_func_pthread_sigmask_return_works" >&6; }
19492 case "$gl_cv_func_pthread_sigmask_return_works" in
19493 *no)
19494 REPLACE_PTHREAD_SIGMASK=1
19496 $as_echo "#define PTHREAD_SIGMASK_FAILS_WITH_ERRNO 1" >>confdefs.h
19499 esac
19501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask unblocks signals correctly" >&5
19502 $as_echo_n "checking whether pthread_sigmask unblocks signals correctly... " >&6; }
19503 if test "${gl_cv_func_pthread_sigmask_unblock_works+set}" = set; then :
19504 $as_echo_n "(cached) " >&6
19505 else
19507 case "$host_os" in
19508 irix*)
19509 gl_cv_func_pthread_sigmask_unblock_works="guessing no";;
19511 gl_cv_func_pthread_sigmask_unblock_works="guessing yes";;
19512 esac
19513 gl_save_LIBS="$LIBS"
19514 LIBS="$LIBS $LIBMULTITHREAD"
19515 if test "$cross_compiling" = yes; then :
19517 else
19518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19519 /* end confdefs.h. */
19521 #include <pthread.h>
19522 #include <signal.h>
19523 #include <stdio.h>
19524 #include <stdlib.h>
19525 #include <unistd.h>
19526 static volatile int sigint_occurred;
19527 static void
19528 sigint_handler (int sig)
19530 sigint_occurred++;
19532 int main ()
19534 sigset_t set;
19535 int pid = getpid ();
19536 char command[80];
19537 signal (SIGINT, sigint_handler);
19538 sigemptyset (&set);
19539 sigaddset (&set, SIGINT);
19540 if (!(pthread_sigmask (SIG_BLOCK, &set, NULL) == 0))
19541 return 1;
19542 sprintf (command, "sh -c 'sleep 1; kill -%d %d' &", SIGINT, pid);
19543 if (!(system (command) == 0))
19544 return 2;
19545 sleep (2);
19546 if (!(sigint_occurred == 0))
19547 return 3;
19548 if (!(pthread_sigmask (SIG_UNBLOCK, &set, NULL) == 0))
19549 return 4;
19550 if (!(sigint_occurred == 1)) /* This fails on IRIX. */
19551 return 5;
19552 return 0;
19554 _ACEOF
19555 if ac_fn_c_try_run "$LINENO"; then :
19557 else
19558 gl_cv_func_pthread_sigmask_unblock_works=no
19560 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19561 conftest.$ac_objext conftest.beam conftest.$ac_ext
19564 LIBS="$gl_save_LIBS"
19567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_unblock_works" >&5
19568 $as_echo "$gl_cv_func_pthread_sigmask_unblock_works" >&6; }
19569 case "$gl_cv_func_pthread_sigmask_unblock_works" in
19570 *no)
19571 REPLACE_PTHREAD_SIGMASK=1
19573 $as_echo "#define PTHREAD_SIGMASK_UNBLOCK_BUG 1" >>confdefs.h
19576 esac
19579 if test $HAVE_PTHREAD_SIGMASK = 0 || test $REPLACE_PTHREAD_SIGMASK = 1; then
19588 gl_LIBOBJS="$gl_LIBOBJS pthread_sigmask.$ac_objext"
19591 if test $HAVE_PTHREAD_SIGMASK = 1; then
19593 $as_echo "#define HAVE_PTHREAD_SIGMASK 1" >>confdefs.h
19603 GNULIB_PTHREAD_SIGMASK=1
19612 if test $ac_cv_func_readlink = no; then
19613 HAVE_READLINK=0
19614 else
19615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
19616 $as_echo_n "checking whether readlink signature is correct... " >&6; }
19617 if test "${gl_cv_decl_readlink_works+set}" = set; then :
19618 $as_echo_n "(cached) " >&6
19619 else
19620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19621 /* end confdefs.h. */
19622 #include <unistd.h>
19623 /* Cause compilation failure if original declaration has wrong type. */
19624 ssize_t readlink (const char *, char *, size_t);
19626 main ()
19630 return 0;
19632 _ACEOF
19633 if ac_fn_c_try_compile "$LINENO"; then :
19634 gl_cv_decl_readlink_works=yes
19635 else
19636 gl_cv_decl_readlink_works=no
19638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
19641 $as_echo "$gl_cv_decl_readlink_works" >&6; }
19642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
19643 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
19644 if test "${gl_cv_func_readlink_works+set}" = set; then :
19645 $as_echo_n "(cached) " >&6
19646 else
19647 # We have readlink, so assume ln -s works.
19648 ln -s conftest.no-such conftest.link
19649 ln -s conftest.link conftest.lnk2
19650 if test "$cross_compiling" = yes; then :
19651 case "$host_os" in
19652 # Guess yes on glibc systems.
19653 *-gnu*) gl_cv_func_readlink_works="guessing yes" ;;
19654 # If we don't know, assume the worst.
19655 *) gl_cv_func_readlink_works="guessing no" ;;
19656 esac
19658 else
19659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19660 /* end confdefs.h. */
19661 #include <unistd.h>
19664 main ()
19666 char buf[20];
19667 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
19669 return 0;
19671 _ACEOF
19672 if ac_fn_c_try_run "$LINENO"; then :
19673 gl_cv_func_readlink_works=yes
19674 else
19675 gl_cv_func_readlink_works=no
19677 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19678 conftest.$ac_objext conftest.beam conftest.$ac_ext
19681 rm -f conftest.link conftest.lnk2
19683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
19684 $as_echo "$gl_cv_func_readlink_works" >&6; }
19685 case "$gl_cv_func_readlink_works" in
19686 *yes)
19687 if test "$gl_cv_decl_readlink_works" != yes; then
19688 REPLACE_READLINK=1
19693 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
19695 REPLACE_READLINK=1
19697 esac
19700 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
19709 gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
19720 GNULIB_READLINK=1
19737 if test $gl_cv_have_include_next = yes; then
19738 gl_cv_next_signal_h='<'signal.h'>'
19739 else
19740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
19741 $as_echo_n "checking absolute name of <signal.h>... " >&6; }
19742 if test "${gl_cv_next_signal_h+set}" = set; then :
19743 $as_echo_n "(cached) " >&6
19744 else
19746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19747 /* end confdefs.h. */
19748 #include <signal.h>
19750 _ACEOF
19751 case "$host_os" in
19752 aix*) gl_absname_cpp="$ac_cpp -C" ;;
19753 *) gl_absname_cpp="$ac_cpp" ;;
19754 esac
19756 case "$host_os" in
19757 mingw*)
19758 gl_dirsep_regex='[/\\]'
19761 gl_dirsep_regex='\/'
19763 esac
19764 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
19766 gl_header_literal_regex=`echo 'signal.h' \
19767 | sed -e "$gl_make_literal_regex_sed"`
19768 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19769 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19770 s|^/[^/]|//&|
19774 gl_cv_next_signal_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19775 sed -n "$gl_absolute_header_sed"`'"'
19779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
19780 $as_echo "$gl_cv_next_signal_h" >&6; }
19782 NEXT_SIGNAL_H=$gl_cv_next_signal_h
19784 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
19785 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19786 gl_next_as_first_directive='<'signal.h'>'
19787 else
19788 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19789 gl_next_as_first_directive=$gl_cv_next_signal_h
19791 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H=$gl_next_as_first_directive
19797 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
19798 # then choke on 'volatile sig_atomic_t'. C99 requires that it compile.
19799 ac_fn_c_check_type "$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
19800 #include <signal.h>
19803 if test "x$ac_cv_type_volatile_sig_atomic_t" = x""yes; then :
19805 else
19806 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=0
19815 ac_fn_c_check_type "$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
19816 #include <signal.h>
19819 if test "x$ac_cv_type_sighandler_t" = x""yes; then :
19821 else
19822 HAVE_SIGHANDLER_T=0
19828 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
19829 /* <sys/types.h> is not needed according to POSIX, but the
19830 <sys/socket.h> in i386-unknown-freebsd4.10 and
19831 powerpc-apple-darwin5.5 required it. */
19832 #include <sys/types.h>
19833 #if HAVE_SYS_SOCKET_H
19834 # include <sys/socket.h>
19835 #elif HAVE_WS2TCPIP_H
19836 # include <ws2tcpip.h>
19837 #endif
19840 if test "x$ac_cv_type_socklen_t" = x""yes; then :
19842 else
19843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
19844 $as_echo_n "checking for socklen_t equivalent... " >&6; }
19845 if test "${gl_cv_socklen_t_equiv+set}" = set; then :
19846 $as_echo_n "(cached) " >&6
19847 else
19848 # Systems have either "struct sockaddr *" or
19849 # "void *" as the second argument to getpeername
19850 gl_cv_socklen_t_equiv=
19851 for arg2 in "struct sockaddr" void; do
19852 for t in int size_t "unsigned int" "long int" "unsigned long int"; do
19853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19854 /* end confdefs.h. */
19855 #include <sys/types.h>
19856 #include <sys/socket.h>
19858 int getpeername (int, $arg2 *, $t *);
19860 main ()
19862 $t len;
19863 getpeername (0, 0, &len);
19865 return 0;
19867 _ACEOF
19868 if ac_fn_c_try_compile "$LINENO"; then :
19869 gl_cv_socklen_t_equiv="$t"
19871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19872 test "$gl_cv_socklen_t_equiv" != "" && break
19873 done
19874 test "$gl_cv_socklen_t_equiv" != "" && break
19875 done
19879 if test "$gl_cv_socklen_t_equiv" = ""; then
19880 as_fn_error "Cannot find a type to use in place of socklen_t" "$LINENO" 5
19882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
19883 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
19885 cat >>confdefs.h <<_ACEOF
19886 #define socklen_t $gl_cv_socklen_t_equiv
19887 _ACEOF
19892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
19893 $as_echo_n "checking for ssize_t... " >&6; }
19894 if test "${gt_cv_ssize_t+set}" = set; then :
19895 $as_echo_n "(cached) " >&6
19896 else
19897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19898 /* end confdefs.h. */
19899 #include <sys/types.h>
19901 main ()
19903 int x = sizeof (ssize_t *) + sizeof (ssize_t);
19904 return !x;
19906 return 0;
19908 _ACEOF
19909 if ac_fn_c_try_compile "$LINENO"; then :
19910 gt_cv_ssize_t=yes
19911 else
19912 gt_cv_ssize_t=no
19914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
19917 $as_echo "$gt_cv_ssize_t" >&6; }
19918 if test $gt_cv_ssize_t = no; then
19920 $as_echo "#define ssize_t int" >>confdefs.h
19925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdalign.h" >&5
19926 $as_echo_n "checking for working stdalign.h... " >&6; }
19927 if test "${gl_cv_header_working_stdalign_h+set}" = set; then :
19928 $as_echo_n "(cached) " >&6
19929 else
19930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19931 /* end confdefs.h. */
19932 #include <stdalign.h>
19933 #include <stddef.h>
19935 /* Test that alignof yields a result consistent with offsetof.
19936 This catches GCC bug 52023
19937 <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023>. */
19938 #ifdef __cplusplus
19939 template <class t> struct alignof_helper { char a; t b; };
19940 # define ao(type) offsetof (alignof_helper<type>, b)
19941 #else
19942 # define ao(type) offsetof (struct { char a; type b; }, b)
19943 #endif
19944 char test_double[ao (double) % _Alignof (double) == 0 ? 1 : -1];
19945 char test_long[ao (long int) % _Alignof (long int) == 0 ? 1 : -1];
19946 char test_alignof[alignof (double) == _Alignof (double) ? 1 : -1];
19948 /* Test _Alignas only on platforms where gnulib can help. */
19949 #if \
19950 (__GNUC__ || __IBMC__ || __IBMCPP__ \
19951 || 0x5110 <= __SUNPRO_C || 1300 <= _MSC_VER)
19952 int alignas (8) alignas_int = 1;
19953 char test_alignas[_Alignof (alignas_int) == 8 ? 1 : -1];
19954 #endif
19957 main ()
19961 return 0;
19963 _ACEOF
19964 if ac_fn_c_try_compile "$LINENO"; then :
19965 gl_cv_header_working_stdalign_h=yes
19966 else
19967 gl_cv_header_working_stdalign_h=no
19969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdalign_h" >&5
19972 $as_echo "$gl_cv_header_working_stdalign_h" >&6; }
19974 if test $gl_cv_header_working_stdalign_h = yes; then
19975 STDALIGN_H=''
19976 else
19977 STDALIGN_H='stdalign.h'
19981 if test -n "$STDALIGN_H"; then
19982 GL_GENERATE_STDALIGN_H_TRUE=
19983 GL_GENERATE_STDALIGN_H_FALSE='#'
19984 else
19985 GL_GENERATE_STDALIGN_H_TRUE='#'
19986 GL_GENERATE_STDALIGN_H_FALSE=
19991 STDARG_H=''
19992 NEXT_STDARG_H='<stdarg.h>'
19993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
19994 $as_echo_n "checking for va_copy... " >&6; }
19995 if test "${gl_cv_func_va_copy+set}" = set; then :
19996 $as_echo_n "(cached) " >&6
19997 else
19999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20000 /* end confdefs.h. */
20001 #include <stdarg.h>
20003 main ()
20006 #ifndef va_copy
20007 void (*func) (va_list, va_list) = va_copy;
20008 #endif
20011 return 0;
20013 _ACEOF
20014 if ac_fn_c_try_compile "$LINENO"; then :
20015 gl_cv_func_va_copy=yes
20016 else
20017 gl_cv_func_va_copy=no
20019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_va_copy" >&5
20023 $as_echo "$gl_cv_func_va_copy" >&6; }
20024 if test $gl_cv_func_va_copy = no; then
20025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20026 /* end confdefs.h. */
20027 #if defined _AIX && !defined __GNUC__
20028 AIX vaccine
20029 #endif
20031 _ACEOF
20032 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20033 $EGREP "vaccine" >/dev/null 2>&1; then :
20034 gl_aixcc=yes
20035 else
20036 gl_aixcc=no
20038 rm -f conftest*
20040 if test $gl_aixcc = yes; then
20041 STDARG_H=stdarg.h
20050 if test $gl_cv_have_include_next = yes; then
20051 gl_cv_next_stdarg_h='<'stdarg.h'>'
20052 else
20053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdarg.h>" >&5
20054 $as_echo_n "checking absolute name of <stdarg.h>... " >&6; }
20055 if test "${gl_cv_next_stdarg_h+set}" = set; then :
20056 $as_echo_n "(cached) " >&6
20057 else
20059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20060 /* end confdefs.h. */
20061 #include <stdarg.h>
20063 _ACEOF
20064 case "$host_os" in
20065 aix*) gl_absname_cpp="$ac_cpp -C" ;;
20066 *) gl_absname_cpp="$ac_cpp" ;;
20067 esac
20069 case "$host_os" in
20070 mingw*)
20071 gl_dirsep_regex='[/\\]'
20074 gl_dirsep_regex='\/'
20076 esac
20077 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
20079 gl_header_literal_regex=`echo 'stdarg.h' \
20080 | sed -e "$gl_make_literal_regex_sed"`
20081 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20082 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20083 s|^/[^/]|//&|
20087 gl_cv_next_stdarg_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20088 sed -n "$gl_absolute_header_sed"`'"'
20092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdarg_h" >&5
20093 $as_echo "$gl_cv_next_stdarg_h" >&6; }
20095 NEXT_STDARG_H=$gl_cv_next_stdarg_h
20097 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20098 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20099 gl_next_as_first_directive='<'stdarg.h'>'
20100 else
20101 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20102 gl_next_as_first_directive=$gl_cv_next_stdarg_h
20104 NEXT_AS_FIRST_DIRECTIVE_STDARG_H=$gl_next_as_first_directive
20109 if test "$gl_cv_next_stdarg_h" = '""'; then
20110 gl_cv_next_stdarg_h='"///usr/include/stdarg.h"'
20111 NEXT_STDARG_H="$gl_cv_next_stdarg_h"
20113 else
20115 saved_as_echo_n="$as_echo_n"
20116 as_echo_n=':'
20117 if test "${gl_cv_func___va_copy+set}" = set; then :
20118 $as_echo_n "(cached) " >&6
20119 else
20121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20122 /* end confdefs.h. */
20123 #include <stdarg.h>
20125 main ()
20128 #ifndef __va_copy
20129 error, bail out
20130 #endif
20133 return 0;
20135 _ACEOF
20136 if ac_fn_c_try_compile "$LINENO"; then :
20137 gl_cv_func___va_copy=yes
20138 else
20139 gl_cv_func___va_copy=no
20141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20144 as_echo_n="$saved_as_echo_n"
20146 if test $gl_cv_func___va_copy = yes; then
20148 $as_echo "#define va_copy __va_copy" >>confdefs.h
20150 else
20153 $as_echo "#define va_copy gl_va_copy" >>confdefs.h
20159 if test -n "$STDARG_H"; then
20160 GL_GENERATE_STDARG_H_TRUE=
20161 GL_GENERATE_STDARG_H_FALSE='#'
20162 else
20163 GL_GENERATE_STDARG_H_TRUE='#'
20164 GL_GENERATE_STDARG_H_FALSE=
20172 # Define two additional variables used in the Makefile substitution.
20174 if test "$ac_cv_header_stdbool_h" = yes; then
20175 STDBOOL_H=''
20176 else
20177 STDBOOL_H='stdbool.h'
20180 if test -n "$STDBOOL_H"; then
20181 GL_GENERATE_STDBOOL_H_TRUE=
20182 GL_GENERATE_STDBOOL_H_FALSE='#'
20183 else
20184 GL_GENERATE_STDBOOL_H_TRUE='#'
20185 GL_GENERATE_STDBOOL_H_FALSE=
20189 if test "$ac_cv_type__Bool" = yes; then
20190 HAVE__BOOL=1
20191 else
20192 HAVE__BOOL=0
20199 STDDEF_H=
20200 if test $gt_cv_c_wchar_t = no; then
20201 HAVE_WCHAR_T=0
20202 STDDEF_H=stddef.h
20204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
20205 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
20206 if test "${gl_cv_decl_null_works+set}" = set; then :
20207 $as_echo_n "(cached) " >&6
20208 else
20209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20210 /* end confdefs.h. */
20211 #include <stddef.h>
20212 int test[2 * (sizeof NULL == sizeof (void *)) -1];
20215 main ()
20219 return 0;
20221 _ACEOF
20222 if ac_fn_c_try_compile "$LINENO"; then :
20223 gl_cv_decl_null_works=yes
20224 else
20225 gl_cv_decl_null_works=no
20227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
20230 $as_echo "$gl_cv_decl_null_works" >&6; }
20231 if test $gl_cv_decl_null_works = no; then
20232 REPLACE_NULL=1
20233 STDDEF_H=stddef.h
20236 if test -n "$STDDEF_H"; then
20237 GL_GENERATE_STDDEF_H_TRUE=
20238 GL_GENERATE_STDDEF_H_FALSE='#'
20239 else
20240 GL_GENERATE_STDDEF_H_TRUE='#'
20241 GL_GENERATE_STDDEF_H_FALSE=
20244 if test -n "$STDDEF_H"; then
20253 if test $gl_cv_have_include_next = yes; then
20254 gl_cv_next_stddef_h='<'stddef.h'>'
20255 else
20256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
20257 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
20258 if test "${gl_cv_next_stddef_h+set}" = set; then :
20259 $as_echo_n "(cached) " >&6
20260 else
20262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20263 /* end confdefs.h. */
20264 #include <stddef.h>
20266 _ACEOF
20267 case "$host_os" in
20268 aix*) gl_absname_cpp="$ac_cpp -C" ;;
20269 *) gl_absname_cpp="$ac_cpp" ;;
20270 esac
20272 case "$host_os" in
20273 mingw*)
20274 gl_dirsep_regex='[/\\]'
20277 gl_dirsep_regex='\/'
20279 esac
20280 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
20282 gl_header_literal_regex=`echo 'stddef.h' \
20283 | sed -e "$gl_make_literal_regex_sed"`
20284 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20285 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20286 s|^/[^/]|//&|
20290 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20291 sed -n "$gl_absolute_header_sed"`'"'
20295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
20296 $as_echo "$gl_cv_next_stddef_h" >&6; }
20298 NEXT_STDDEF_H=$gl_cv_next_stddef_h
20300 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20301 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20302 gl_next_as_first_directive='<'stddef.h'>'
20303 else
20304 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20305 gl_next_as_first_directive=$gl_cv_next_stddef_h
20307 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
20326 if test $gl_cv_have_include_next = yes; then
20327 gl_cv_next_stdio_h='<'stdio.h'>'
20328 else
20329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
20330 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
20331 if test "${gl_cv_next_stdio_h+set}" = set; then :
20332 $as_echo_n "(cached) " >&6
20333 else
20335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20336 /* end confdefs.h. */
20337 #include <stdio.h>
20339 _ACEOF
20340 case "$host_os" in
20341 aix*) gl_absname_cpp="$ac_cpp -C" ;;
20342 *) gl_absname_cpp="$ac_cpp" ;;
20343 esac
20345 case "$host_os" in
20346 mingw*)
20347 gl_dirsep_regex='[/\\]'
20350 gl_dirsep_regex='\/'
20352 esac
20353 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
20355 gl_header_literal_regex=`echo 'stdio.h' \
20356 | sed -e "$gl_make_literal_regex_sed"`
20357 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20358 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20359 s|^/[^/]|//&|
20363 gl_cv_next_stdio_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20364 sed -n "$gl_absolute_header_sed"`'"'
20368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
20369 $as_echo "$gl_cv_next_stdio_h" >&6; }
20371 NEXT_STDIO_H=$gl_cv_next_stdio_h
20373 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20374 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20375 gl_next_as_first_directive='<'stdio.h'>'
20376 else
20377 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20378 gl_next_as_first_directive=$gl_cv_next_stdio_h
20380 NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
20386 GNULIB_FSCANF=1
20387 GNULIB_SCANF=1
20388 GNULIB_FGETC=1
20389 GNULIB_GETC=1
20390 GNULIB_GETCHAR=1
20391 GNULIB_FGETS=1
20392 GNULIB_FREAD=1
20395 GNULIB_FPRINTF=1
20396 GNULIB_PRINTF=1
20397 GNULIB_VFPRINTF=1
20398 GNULIB_VPRINTF=1
20399 GNULIB_FPUTC=1
20400 GNULIB_PUTC=1
20401 GNULIB_PUTCHAR=1
20402 GNULIB_FPUTS=1
20403 GNULIB_PUTS=1
20404 GNULIB_FWRITE=1
20420 if test $gl_cv_have_include_next = yes; then
20421 gl_cv_next_stdlib_h='<'stdlib.h'>'
20422 else
20423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
20424 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
20425 if test "${gl_cv_next_stdlib_h+set}" = set; then :
20426 $as_echo_n "(cached) " >&6
20427 else
20429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20430 /* end confdefs.h. */
20431 #include <stdlib.h>
20433 _ACEOF
20434 case "$host_os" in
20435 aix*) gl_absname_cpp="$ac_cpp -C" ;;
20436 *) gl_absname_cpp="$ac_cpp" ;;
20437 esac
20439 case "$host_os" in
20440 mingw*)
20441 gl_dirsep_regex='[/\\]'
20444 gl_dirsep_regex='\/'
20446 esac
20447 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
20449 gl_header_literal_regex=`echo 'stdlib.h' \
20450 | sed -e "$gl_make_literal_regex_sed"`
20451 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20452 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20453 s|^/[^/]|//&|
20457 gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20458 sed -n "$gl_absolute_header_sed"`'"'
20462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
20463 $as_echo "$gl_cv_next_stdlib_h" >&6; }
20465 NEXT_STDLIB_H=$gl_cv_next_stdlib_h
20467 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20468 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20469 gl_next_as_first_directive='<'stdlib.h'>'
20470 else
20471 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20472 gl_next_as_first_directive=$gl_cv_next_stdlib_h
20474 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
20484 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
20492 $as_echo "#define my_strftime nstrftime" >>confdefs.h
20501 if test "$ac_cv_have_decl_strtoimax" != yes; then
20502 HAVE_DECL_STRTOIMAX=0
20505 if test $ac_cv_func_strtoimax = yes; then
20506 HAVE_STRTOIMAX=1
20507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtoimax works" >&5
20508 $as_echo_n "checking whether strtoimax works... " >&6; }
20509 if test "${gl_cv_func_strtoimax+set}" = set; then :
20510 $as_echo_n "(cached) " >&6
20511 else
20512 if test "$cross_compiling" = yes; then :
20513 case "$host_os" in
20514 # Guess no on AIX 5.
20515 aix5*) gl_cv_func_strtoimax="guessing no" ;;
20516 # Guess yes otherwise.
20517 *) gl_cv_func_strtoimax="guessing yes" ;;
20518 esac
20520 else
20521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20522 /* end confdefs.h. */
20524 #include <errno.h>
20525 #include <string.h>
20526 #include <inttypes.h>
20527 int main ()
20529 if (sizeof (intmax_t) > sizeof (int))
20531 const char *s = "4294967295";
20532 char *p;
20533 intmax_t res;
20534 errno = 0;
20535 res = strtoimax (s, &p, 10);
20536 if (p != s + strlen (s))
20537 return 1;
20538 if (errno != 0)
20539 return 2;
20540 if (res != (intmax_t) 65535 * (intmax_t) 65537)
20541 return 3;
20543 else
20545 const char *s = "2147483647";
20546 char *p;
20547 intmax_t res;
20548 errno = 0;
20549 res = strtoimax (s, &p, 10);
20550 if (p != s + strlen (s))
20551 return 1;
20552 if (errno != 0)
20553 return 2;
20554 if (res != 2147483647)
20555 return 3;
20557 return 0;
20560 _ACEOF
20561 if ac_fn_c_try_run "$LINENO"; then :
20562 gl_cv_func_strtoimax=yes
20563 else
20564 gl_cv_func_strtoimax=no
20566 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20567 conftest.$ac_objext conftest.beam conftest.$ac_ext
20572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strtoimax" >&5
20573 $as_echo "$gl_cv_func_strtoimax" >&6; }
20574 case "$gl_cv_func_strtoimax" in
20575 *no) REPLACE_STRTOIMAX=1 ;;
20576 esac
20577 else
20578 HAVE_STRTOIMAX=0
20581 if test $HAVE_STRTOIMAX = 0 || test $REPLACE_STRTOIMAX = 1; then
20590 gl_LIBOBJS="$gl_LIBOBJS strtoimax.$ac_objext"
20593 ac_fn_c_check_decl "$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
20594 if test "x$ac_cv_have_decl_strtoll" = x""yes; then :
20595 ac_have_decl=1
20596 else
20597 ac_have_decl=0
20600 cat >>confdefs.h <<_ACEOF
20601 #define HAVE_DECL_STRTOLL $ac_have_decl
20602 _ACEOF
20612 GNULIB_STRTOIMAX=1
20622 if test "$ac_cv_have_decl_strtoumax" != yes; then
20623 HAVE_DECL_STRTOUMAX=0
20626 if test $ac_cv_func_strtoumax = no; then
20635 gl_LIBOBJS="$gl_LIBOBJS strtoumax.$ac_objext"
20638 ac_fn_c_check_decl "$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
20639 if test "x$ac_cv_have_decl_strtoull" = x""yes; then :
20640 ac_have_decl=1
20641 else
20642 ac_have_decl=0
20645 cat >>confdefs.h <<_ACEOF
20646 #define HAVE_DECL_STRTOULL $ac_have_decl
20647 _ACEOF
20657 GNULIB_STRTOUMAX=1
20665 if test $ac_cv_func_symlink = no; then
20666 HAVE_SYMLINK=0
20667 else
20668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symlink handles trailing slash correctly" >&5
20669 $as_echo_n "checking whether symlink handles trailing slash correctly... " >&6; }
20670 if test "${gl_cv_func_symlink_works+set}" = set; then :
20671 $as_echo_n "(cached) " >&6
20672 else
20673 if test "$cross_compiling" = yes; then :
20674 case "$host_os" in
20675 # Guess yes on glibc systems.
20676 *-gnu*) gl_cv_func_symlink_works="guessing yes" ;;
20677 # If we don't know, assume the worst.
20678 *) gl_cv_func_symlink_works="guessing no" ;;
20679 esac
20681 else
20682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20683 /* end confdefs.h. */
20684 #include <unistd.h>
20687 main ()
20689 int result = 0;
20690 if (!symlink ("a", "conftest.link/"))
20691 result |= 1;
20692 if (symlink ("conftest.f", "conftest.lnk2"))
20693 result |= 2;
20694 else if (!symlink ("a", "conftest.lnk2/"))
20695 result |= 4;
20696 return result;
20699 return 0;
20701 _ACEOF
20702 if ac_fn_c_try_run "$LINENO"; then :
20703 gl_cv_func_symlink_works=yes
20704 else
20705 gl_cv_func_symlink_works=no
20707 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20708 conftest.$ac_objext conftest.beam conftest.$ac_ext
20711 rm -f conftest.f conftest.link conftest.lnk2
20713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_symlink_works" >&5
20714 $as_echo "$gl_cv_func_symlink_works" >&6; }
20715 case "$gl_cv_func_symlink_works" in
20716 *yes) ;;
20718 REPLACE_SYMLINK=1
20720 esac
20723 if test $HAVE_SYMLINK = 0 || test $REPLACE_SYMLINK = 1; then
20732 gl_LIBOBJS="$gl_LIBOBJS symlink.$ac_objext"
20740 GNULIB_SYMLINK=1
20762 if test $gl_cv_have_include_next = yes; then
20763 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
20764 else
20765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
20766 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
20767 if test "${gl_cv_next_sys_stat_h+set}" = set; then :
20768 $as_echo_n "(cached) " >&6
20769 else
20771 if test $ac_cv_header_sys_stat_h = yes; then
20774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20775 /* end confdefs.h. */
20776 #include <sys/stat.h>
20778 _ACEOF
20779 case "$host_os" in
20780 aix*) gl_absname_cpp="$ac_cpp -C" ;;
20781 *) gl_absname_cpp="$ac_cpp" ;;
20782 esac
20784 case "$host_os" in
20785 mingw*)
20786 gl_dirsep_regex='[/\\]'
20789 gl_dirsep_regex='\/'
20791 esac
20792 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
20794 gl_header_literal_regex=`echo 'sys/stat.h' \
20795 | sed -e "$gl_make_literal_regex_sed"`
20796 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20797 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20798 s|^/[^/]|//&|
20802 gl_cv_next_sys_stat_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20803 sed -n "$gl_absolute_header_sed"`'"'
20804 else
20805 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
20810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
20811 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
20813 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
20815 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20816 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20817 gl_next_as_first_directive='<'sys/stat.h'>'
20818 else
20819 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20820 gl_next_as_first_directive=$gl_cv_next_sys_stat_h
20822 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
20834 if test $WINDOWS_64_BIT_ST_SIZE = 1; then
20836 $as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
20840 ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
20841 #include <sys/stat.h>
20843 if test "x$ac_cv_type_nlink_t" = x""yes; then :
20845 else
20847 $as_echo "#define nlink_t int" >>confdefs.h
20865 if test $gl_cv_have_include_next = yes; then
20866 gl_cv_next_sys_types_h='<'sys/types.h'>'
20867 else
20868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/types.h>" >&5
20869 $as_echo_n "checking absolute name of <sys/types.h>... " >&6; }
20870 if test "${gl_cv_next_sys_types_h+set}" = set; then :
20871 $as_echo_n "(cached) " >&6
20872 else
20874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20875 /* end confdefs.h. */
20876 #include <sys/types.h>
20878 _ACEOF
20879 case "$host_os" in
20880 aix*) gl_absname_cpp="$ac_cpp -C" ;;
20881 *) gl_absname_cpp="$ac_cpp" ;;
20882 esac
20884 case "$host_os" in
20885 mingw*)
20886 gl_dirsep_regex='[/\\]'
20889 gl_dirsep_regex='\/'
20891 esac
20892 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
20894 gl_header_literal_regex=`echo 'sys/types.h' \
20895 | sed -e "$gl_make_literal_regex_sed"`
20896 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20897 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20898 s|^/[^/]|//&|
20902 gl_cv_next_sys_types_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20903 sed -n "$gl_absolute_header_sed"`'"'
20907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_types_h" >&5
20908 $as_echo "$gl_cv_next_sys_types_h" >&6; }
20910 NEXT_SYS_TYPES_H=$gl_cv_next_sys_types_h
20912 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20913 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20914 gl_next_as_first_directive='<'sys/types.h'>'
20915 else
20916 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20917 gl_next_as_first_directive=$gl_cv_next_sys_types_h
20919 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H=$gl_next_as_first_directive
20942 if test $ac_cv_have_decl_localtime_r = no; then
20943 HAVE_DECL_LOCALTIME_R=0
20947 if test $ac_cv_func_localtime_r = yes; then
20948 HAVE_LOCALTIME_R=1
20949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
20950 $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
20951 if test "${gl_cv_time_r_posix+set}" = set; then :
20952 $as_echo_n "(cached) " >&6
20953 else
20954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20955 /* end confdefs.h. */
20956 #include <time.h>
20958 main ()
20960 /* We don't need to append 'restrict's to the argument types,
20961 even though the POSIX signature has the 'restrict's,
20962 since C99 says they can't affect type compatibility. */
20963 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
20964 if (ptr) return 0;
20965 /* Check the return type is a pointer.
20966 On HP-UX 10 it is 'int'. */
20967 *localtime_r (0, 0);
20969 return 0;
20972 _ACEOF
20973 if ac_fn_c_try_compile "$LINENO"; then :
20974 gl_cv_time_r_posix=yes
20975 else
20976 gl_cv_time_r_posix=no
20978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
20982 $as_echo "$gl_cv_time_r_posix" >&6; }
20983 if test $gl_cv_time_r_posix = yes; then
20984 REPLACE_LOCALTIME_R=0
20985 else
20986 REPLACE_LOCALTIME_R=1
20988 else
20989 HAVE_LOCALTIME_R=0
20992 if test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1; then
21001 gl_LIBOBJS="$gl_LIBOBJS time_r.$ac_objext"
21012 GNULIB_TIME_R=1
21032 if test $gl_cv_have_include_next = yes; then
21033 gl_cv_next_unistd_h='<'unistd.h'>'
21034 else
21035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
21036 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
21037 if test "${gl_cv_next_unistd_h+set}" = set; then :
21038 $as_echo_n "(cached) " >&6
21039 else
21041 if test $ac_cv_header_unistd_h = yes; then
21044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21045 /* end confdefs.h. */
21046 #include <unistd.h>
21048 _ACEOF
21049 case "$host_os" in
21050 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21051 *) gl_absname_cpp="$ac_cpp" ;;
21052 esac
21054 case "$host_os" in
21055 mingw*)
21056 gl_dirsep_regex='[/\\]'
21059 gl_dirsep_regex='\/'
21061 esac
21062 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
21064 gl_header_literal_regex=`echo 'unistd.h' \
21065 | sed -e "$gl_make_literal_regex_sed"`
21066 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21067 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21068 s|^/[^/]|//&|
21072 gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21073 sed -n "$gl_absolute_header_sed"`'"'
21074 else
21075 gl_cv_next_unistd_h='<'unistd.h'>'
21080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
21081 $as_echo "$gl_cv_next_unistd_h" >&6; }
21083 NEXT_UNISTD_H=$gl_cv_next_unistd_h
21085 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21086 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21087 gl_next_as_first_directive='<'unistd.h'>'
21088 else
21089 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21090 gl_next_as_first_directive=$gl_cv_next_unistd_h
21092 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
21097 if test $ac_cv_header_unistd_h = yes; then
21098 HAVE_UNISTD_H=1
21099 else
21100 HAVE_UNISTD_H=0
21110 gl_gnulib_enabled_dosname=false
21111 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36=false
21112 gl_gnulib_enabled_pathmax=false
21113 gl_gnulib_enabled_sigprocmask=false
21114 gl_gnulib_enabled_stat=false
21115 gl_gnulib_enabled_strtoll=false
21116 gl_gnulib_enabled_strtoull=false
21117 gl_gnulib_enabled_verify=false
21118 func_gl_gnulib_m4code_dosname ()
21120 if ! $gl_gnulib_enabled_dosname; then
21121 gl_gnulib_enabled_dosname=true
21124 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36 ()
21126 if ! $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
21129 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36=true
21132 func_gl_gnulib_m4code_pathmax ()
21134 if ! $gl_gnulib_enabled_pathmax; then
21138 gl_gnulib_enabled_pathmax=true
21141 func_gl_gnulib_m4code_sigprocmask ()
21143 if ! $gl_gnulib_enabled_sigprocmask; then
21147 if test $gl_cv_type_sigset_t = yes; then
21148 ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask"
21149 if test "x$ac_cv_func_sigprocmask" = x""yes; then :
21150 gl_cv_func_sigprocmask=1
21154 if test -z "$gl_cv_func_sigprocmask"; then
21155 HAVE_POSIX_SIGNALBLOCKING=0
21158 if test $HAVE_POSIX_SIGNALBLOCKING = 0; then
21167 gl_LIBOBJS="$gl_LIBOBJS sigprocmask.$ac_objext"
21178 GNULIB_SIGPROCMASK=1
21184 gl_gnulib_enabled_sigprocmask=true
21187 func_gl_gnulib_m4code_stat ()
21189 if ! $gl_gnulib_enabled_stat; then
21193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
21194 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
21195 if test "${gl_cv_func_stat_dir_slash+set}" = set; then :
21196 $as_echo_n "(cached) " >&6
21197 else
21198 if test "$cross_compiling" = yes; then :
21199 case $host_os in
21200 mingw*) gl_cv_func_stat_dir_slash="guessing no";;
21201 *) gl_cv_func_stat_dir_slash="guessing yes";;
21202 esac
21203 else
21204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21205 /* end confdefs.h. */
21206 #include <sys/stat.h>
21209 main ()
21211 struct stat st; return stat (".", &st) != stat ("./", &st);
21213 return 0;
21215 _ACEOF
21216 if ac_fn_c_try_run "$LINENO"; then :
21217 gl_cv_func_stat_dir_slash=yes
21218 else
21219 gl_cv_func_stat_dir_slash=no
21221 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21222 conftest.$ac_objext conftest.beam conftest.$ac_ext
21226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
21227 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
21228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
21229 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
21230 if test "${gl_cv_func_stat_file_slash+set}" = set; then :
21231 $as_echo_n "(cached) " >&6
21232 else
21233 touch conftest.tmp
21234 # Assume that if we have lstat, we can also check symlinks.
21235 if test $ac_cv_func_lstat = yes; then
21236 ln -s conftest.tmp conftest.lnk
21238 if test "$cross_compiling" = yes; then :
21239 case "$host_os" in
21240 # Guess yes on glibc systems.
21241 *-gnu*) gl_cv_func_stat_file_slash="guessing yes" ;;
21242 # If we don't know, assume the worst.
21243 *) gl_cv_func_stat_file_slash="guessing no" ;;
21244 esac
21246 else
21247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21248 /* end confdefs.h. */
21249 #include <sys/stat.h>
21252 main ()
21254 int result = 0;
21255 struct stat st;
21256 if (!stat ("conftest.tmp/", &st))
21257 result |= 1;
21258 #if HAVE_LSTAT
21259 if (!stat ("conftest.lnk/", &st))
21260 result |= 2;
21261 #endif
21262 return result;
21265 return 0;
21267 _ACEOF
21268 if ac_fn_c_try_run "$LINENO"; then :
21269 gl_cv_func_stat_file_slash=yes
21270 else
21271 gl_cv_func_stat_file_slash=no
21273 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21274 conftest.$ac_objext conftest.beam conftest.$ac_ext
21277 rm -f conftest.tmp conftest.lnk
21279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
21280 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
21281 case $gl_cv_func_stat_dir_slash in
21282 *no) REPLACE_STAT=1
21284 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
21286 esac
21287 case $gl_cv_func_stat_file_slash in
21288 *no) REPLACE_STAT=1
21290 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
21292 esac
21294 if test $REPLACE_STAT = 1; then
21303 gl_LIBOBJS="$gl_LIBOBJS stat.$ac_objext"
21315 GNULIB_STAT=1
21321 gl_gnulib_enabled_stat=true
21322 if test $REPLACE_STAT = 1; then
21323 func_gl_gnulib_m4code_dosname
21325 if test $REPLACE_STAT = 1; then
21326 func_gl_gnulib_m4code_pathmax
21328 if test $REPLACE_STAT = 1; then
21329 func_gl_gnulib_m4code_verify
21333 func_gl_gnulib_m4code_strtoll ()
21335 if ! $gl_gnulib_enabled_strtoll; then
21339 if test "$ac_cv_type_long_long_int" = yes; then
21340 for ac_func in strtoll
21341 do :
21342 ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
21343 if test "x$ac_cv_func_strtoll" = x""yes; then :
21344 cat >>confdefs.h <<_ACEOF
21345 #define HAVE_STRTOLL 1
21346 _ACEOF
21349 done
21351 if test $ac_cv_func_strtoll = no; then
21352 HAVE_STRTOLL=0
21356 if test $HAVE_STRTOLL = 0; then
21365 gl_LIBOBJS="$gl_LIBOBJS strtoll.$ac_objext"
21376 GNULIB_STRTOLL=1
21382 gl_gnulib_enabled_strtoll=true
21385 func_gl_gnulib_m4code_strtoull ()
21387 if ! $gl_gnulib_enabled_strtoull; then
21391 if test "$ac_cv_type_unsigned_long_long_int" = yes; then
21392 for ac_func in strtoull
21393 do :
21394 ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
21395 if test "x$ac_cv_func_strtoull" = x""yes; then :
21396 cat >>confdefs.h <<_ACEOF
21397 #define HAVE_STRTOULL 1
21398 _ACEOF
21401 done
21403 if test $ac_cv_func_strtoull = no; then
21404 HAVE_STRTOULL=0
21408 if test $HAVE_STRTOULL = 0; then
21417 gl_LIBOBJS="$gl_LIBOBJS strtoull.$ac_objext"
21428 GNULIB_STRTOULL=1
21434 gl_gnulib_enabled_strtoull=true
21437 func_gl_gnulib_m4code_verify ()
21439 if ! $gl_gnulib_enabled_verify; then
21440 gl_gnulib_enabled_verify=true
21443 if test $REPLACE_GETOPT = 1; then
21444 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36
21446 if test $REPLACE_LSTAT = 1; then
21447 func_gl_gnulib_m4code_dosname
21449 if test $REPLACE_LSTAT = 1; then
21450 func_gl_gnulib_m4code_stat
21452 if test $HAVE_PTHREAD_SIGMASK = 0 || test $REPLACE_PTHREAD_SIGMASK = 1; then
21453 func_gl_gnulib_m4code_sigprocmask
21455 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
21456 func_gl_gnulib_m4code_stat
21458 if { test $HAVE_STRTOIMAX = 0 || test $REPLACE_STRTOIMAX = 1; } && test $ac_cv_type_long_long_int = yes; then
21459 func_gl_gnulib_m4code_strtoll
21461 if test $HAVE_STRTOIMAX = 0 || test $REPLACE_STRTOIMAX = 1; then
21462 func_gl_gnulib_m4code_verify
21464 if test $ac_cv_func_strtoumax = no && test $ac_cv_type_unsigned_long_long_int = yes; then
21465 func_gl_gnulib_m4code_strtoull
21467 if test $ac_cv_func_strtoumax = no; then
21468 func_gl_gnulib_m4code_verify
21471 if $gl_gnulib_enabled_dosname; then
21472 gl_GNULIB_ENABLED_dosname_TRUE=
21473 gl_GNULIB_ENABLED_dosname_FALSE='#'
21474 else
21475 gl_GNULIB_ENABLED_dosname_TRUE='#'
21476 gl_GNULIB_ENABLED_dosname_FALSE=
21479 if $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
21480 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE=
21481 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE='#'
21482 else
21483 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE='#'
21484 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE=
21487 if $gl_gnulib_enabled_pathmax; then
21488 gl_GNULIB_ENABLED_pathmax_TRUE=
21489 gl_GNULIB_ENABLED_pathmax_FALSE='#'
21490 else
21491 gl_GNULIB_ENABLED_pathmax_TRUE='#'
21492 gl_GNULIB_ENABLED_pathmax_FALSE=
21495 if $gl_gnulib_enabled_sigprocmask; then
21496 gl_GNULIB_ENABLED_sigprocmask_TRUE=
21497 gl_GNULIB_ENABLED_sigprocmask_FALSE='#'
21498 else
21499 gl_GNULIB_ENABLED_sigprocmask_TRUE='#'
21500 gl_GNULIB_ENABLED_sigprocmask_FALSE=
21503 if $gl_gnulib_enabled_stat; then
21504 gl_GNULIB_ENABLED_stat_TRUE=
21505 gl_GNULIB_ENABLED_stat_FALSE='#'
21506 else
21507 gl_GNULIB_ENABLED_stat_TRUE='#'
21508 gl_GNULIB_ENABLED_stat_FALSE=
21511 if $gl_gnulib_enabled_strtoll; then
21512 gl_GNULIB_ENABLED_strtoll_TRUE=
21513 gl_GNULIB_ENABLED_strtoll_FALSE='#'
21514 else
21515 gl_GNULIB_ENABLED_strtoll_TRUE='#'
21516 gl_GNULIB_ENABLED_strtoll_FALSE=
21519 if $gl_gnulib_enabled_strtoull; then
21520 gl_GNULIB_ENABLED_strtoull_TRUE=
21521 gl_GNULIB_ENABLED_strtoull_FALSE='#'
21522 else
21523 gl_GNULIB_ENABLED_strtoull_TRUE='#'
21524 gl_GNULIB_ENABLED_strtoull_FALSE=
21527 if $gl_gnulib_enabled_verify; then
21528 gl_GNULIB_ENABLED_verify_TRUE=
21529 gl_GNULIB_ENABLED_verify_FALSE='#'
21530 else
21531 gl_GNULIB_ENABLED_verify_TRUE='#'
21532 gl_GNULIB_ENABLED_verify_FALSE=
21535 # End of code from modules
21545 gltests_libdeps=
21546 gltests_ltlibdeps=
21556 gl_source_base='tests'
21557 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
21559 gl_module_indicator_condition=$gltests_WITNESS
21570 LIBGNU_LIBDEPS="$gl_libdeps"
21572 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
21576 case "$opsys" in
21577 aix4-2) LD_SWITCH_SYSTEM_TEMACS="-Wl,-bnodelcsect" ;;
21579 darwin)
21580 ## The -headerpad option tells ld (see man page) to leave room at the
21581 ## end of the header for adding load commands. Needed for dumping.
21582 ## 0x690 is the total size of 30 segment load commands (at 56
21583 ## each); under Cocoa 31 commands are required.
21584 if test "$HAVE_NS" = "yes"; then
21585 libs_nsgui="-framework AppKit"
21586 headerpad_extra=6C8
21587 else
21588 libs_nsgui=
21589 headerpad_extra=690
21591 LD_SWITCH_SYSTEM_TEMACS="-fno-pie -prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
21593 ## This is here because src/Makefile.in did some extra fiddling around
21594 ## with LD_SWITCH_SYSTEM. The cpp logic was:
21595 ## #ifndef LD_SWITCH_SYSTEM
21596 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
21597 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
21598 ## not using gcc, darwin.
21599 ## Because this was done in src/Makefile.in, the resulting part of
21600 ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link).
21601 ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS,
21602 ## rather than LD_SWITCH_SYSTEM.
21603 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
21604 LD_SWITCH_SYSTEM_TEMACS="-X $LD_SWITCH_SYSTEM_TEMACS"
21607 ## LD_SWITCH_X_SITE_RPATH is a -rpath option saying where to
21608 ## find X at run-time.
21609 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at the
21610 ## point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_RPATH
21611 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
21612 ## had different values in configure (in ac_link) and src/Makefile.in.
21613 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
21614 gnu*) LD_SWITCH_SYSTEM_TEMACS="\$(LD_SWITCH_X_SITE_RPATH)" ;;
21616 *) LD_SWITCH_SYSTEM_TEMACS= ;;
21617 esac
21619 if test "$NS_IMPL_GNUSTEP" = "yes"; then
21620 LD_SWITCH_SYSTEM_TEMACS="${LD_SWITCH_SYSTEM_TEMACS} -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES} -lgnustep-gui -lgnustep-base -lobjc -lpthread"
21626 LD_FIRSTFLAG=
21627 ORDINARY_LINK=
21628 case "$opsys" in
21629 ## gnu: GNU needs its own crt0.
21630 aix4-2|cygwin|darwin|gnu|hpux*|irix6-5|sol2*|unixware) ORDINARY_LINK=yes ;;
21632 ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the
21633 ## library search parth, i.e. it won't search /usr/lib for libc and
21634 ## friends. Using -nostartfiles instead avoids this problem, and
21635 ## will also work on earlier NetBSD releases.
21636 netbsd|openbsd) LD_FIRSTFLAG="-nostartfiles" ;;
21638 ## powerpc*: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
21639 ## MkLinux/LinuxPPC needs this.
21640 ## s390x-* only supports opsys = gnu-linux so it can be added here.
21641 gnu-*)
21642 case "$canonical" in
21643 powerpc*|s390x-*) LD_FIRSTFLAG="-nostdlib" ;;
21644 esac
21646 esac
21649 if test "x$ORDINARY_LINK" = "xyes"; then
21651 LD_FIRSTFLAG=""
21653 $as_echo "#define ORDINARY_LINK 1" >>confdefs.h
21656 ## The system files defining neither ORDINARY_LINK nor LD_FIRSTFLAG are:
21657 ## freebsd, gnu-* not on powerpc*|s390x*.
21658 elif test "x$GCC" = "xyes" && test "x$LD_FIRSTFLAG" = "x"; then
21660 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
21661 ## places that are difficult to figure out at make time. Fortunately,
21662 ## these same versions allow you to pass arbitrary flags on to the
21663 ## linker, so there is no reason not to use it as a linker.
21665 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from
21666 ## searching for libraries in its internal directories, so we have to
21667 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below).
21668 LD_FIRSTFLAG="-nostdlib"
21671 ## FIXME? What setting of EDIT_LDFLAGS should this have?
21672 test "$NS_IMPL_GNUSTEP" = "yes" && LD_FIRSTFLAG="-rdynamic"
21677 ## FIXME? The logic here is not precisely the same as that above.
21678 ## There is no check here for a pre-defined LD_FIRSTFLAG.
21679 ## Should we only be setting LIB_GCC if LD ~ -nostdlib?
21680 LIB_GCC=
21681 if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
21683 case "$opsys" in
21684 freebsd|netbsd|openbsd) LIB_GCC= ;;
21686 gnu-*)
21687 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
21688 ## build on ARM EABI under GNU/Linux. (Bug#5518)
21689 case $host_cpu in
21690 arm*)
21691 LIB_GCC="-lgcc_s"
21694 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
21695 ## immediately undefine it again and redefine it to empty.
21696 ## Was the C_SWITCH_X_SITE part really necessary?
21697 ## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
21698 LIB_GCC=
21700 esac
21703 ## Ask GCC where to find libgcc.a.
21704 *) LIB_GCC=`$CC -print-libgcc-file-name 2> /dev/null` ;;
21705 esac
21709 ## If we're using X11/GNUstep, define some consequences.
21710 if test "$HAVE_X_WINDOWS" = "yes" || test "$HAVE_NS" = "yes"; then
21712 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
21715 $as_echo "#define HAVE_MOUSE 1" >>confdefs.h
21722 #### Report on what we decided to do.
21723 #### Report GTK as a toolkit, even if it doesn't use Xt.
21724 #### It makes printing result more understandable as using GTK sets
21725 #### toolkit_scroll_bars to yes by default.
21726 if test "${HAVE_GTK}" = "yes"; then
21727 USE_X_TOOLKIT=GTK
21730 echo "
21731 Configured for \`${canonical}'.
21733 Where should the build process find the source code? ${srcdir}
21734 What operating system file should Emacs use?
21735 \`${opsysfile}'
21736 What compiler should emacs be built with? ${CC} ${CFLAGS}
21737 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
21738 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
21739 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
21740 What window system should Emacs use? ${window_system}
21741 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
21743 if test -n "${x_includes}"; then
21744 echo " Where do we find X Windows header files? ${x_includes}"
21745 else
21746 echo " Where do we find X Windows header files? Standard dirs"
21748 if test -n "${x_libraries}"; then
21749 echo " Where do we find X Windows libraries? ${x_libraries}"
21750 else
21751 echo " Where do we find X Windows libraries? Standard dirs"
21754 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
21755 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
21756 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
21757 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
21758 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
21759 echo " Does Emacs use -lpng? ${HAVE_PNG}"
21760 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
21761 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
21763 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
21764 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
21765 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
21766 echo " Does Emacs use GSettings? ${HAVE_GSETTINGS}"
21767 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
21768 echo " Does Emacs use -lgnutls? ${HAVE_GNUTLS}"
21769 echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
21771 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
21772 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
21773 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
21774 echo " Does Emacs use -lxft? ${HAVE_XFT}"
21776 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
21777 echo
21779 if test -n "${EMACSDATA}"; then
21780 echo " Environment variable EMACSDATA set to: $EMACSDATA"
21782 if test -n "${EMACSDOC}"; then
21783 echo " Environment variable EMACSDOC set to: $EMACSDOC"
21786 if test $USE_XASSERTS = yes; then
21787 echo " Compiling with asserts turned on."
21788 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
21791 echo
21793 if test "$HAVE_NS" = "yes"; then
21794 echo
21795 echo "You must run \"${MAKE-make} install\" in order to test the built application.
21796 The installed application will go to nextstep/Emacs.app and can be
21797 run or moved from there."
21798 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
21799 echo "The application will be fully self-contained."
21800 else
21801 echo "The lisp resources for the application will be installed under ${prefix}.
21802 You may need to run \"${MAKE-make} install\" with sudo. The application will fail
21803 to run if these resources are not installed."
21805 echo
21808 if test "${opsys}" = "cygwin"; then
21809 case `uname -r` in
21810 1.5.*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: building Emacs on Cygwin 1.5 is not supported." >&5
21811 $as_echo "$as_me: WARNING: building Emacs on Cygwin 1.5 is not supported." >&2;}
21812 echo
21814 esac
21817 # Remove any trailing slashes in these variables.
21818 test "${prefix}" != NONE &&
21819 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
21820 test "${exec_prefix}" != NONE &&
21821 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
21823 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"
21825 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"
21828 opt_makefile=test/automated/Makefile
21830 if test -f $srcdir/${opt_makefile}.in; then
21831 SUBDIR_MAKEFILES="$SUBDIR_MAKEFILES $opt_makefile"
21832 ac_config_files="$ac_config_files test/automated/Makefile"
21837 opt_makefile=admin/unidata/Makefile
21839 if test -f $srcdir/${opt_makefile}.in; then
21840 SUBDIR_MAKEFILES="$SUBDIR_MAKEFILES $opt_makefile"
21841 ac_config_files="$ac_config_files admin/unidata/Makefile"
21846 SUBDIR_MAKEFILES_IN=`echo " ${SUBDIR_MAKEFILES}" | sed -e 's| | $(srcdir)/|g' -e 's|Makefile|Makefile.in|g'`
21850 ac_config_commands="$ac_config_commands mkdirs"
21853 ac_config_commands="$ac_config_commands epaths"
21856 ac_config_commands="$ac_config_commands gdbinit"
21859 cat >confcache <<\_ACEOF
21860 # This file is a shell script that caches the results of configure
21861 # tests run on this system so they can be shared between configure
21862 # scripts and configure runs, see configure's option --config-cache.
21863 # It is not useful on other systems. If it contains results you don't
21864 # want to keep, you may remove or edit it.
21866 # config.status only pays attention to the cache file if you give it
21867 # the --recheck option to rerun configure.
21869 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21870 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21871 # following values.
21873 _ACEOF
21875 # The following way of writing the cache mishandles newlines in values,
21876 # but we know of no workaround that is simple, portable, and efficient.
21877 # So, we kill variables containing newlines.
21878 # Ultrix sh set writes to stderr and can't be redirected directly,
21879 # and sets the high bit in the cache file unless we assign to the vars.
21881 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21882 eval ac_val=\$$ac_var
21883 case $ac_val in #(
21884 *${as_nl}*)
21885 case $ac_var in #(
21886 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
21887 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
21888 esac
21889 case $ac_var in #(
21890 _ | IFS | as_nl) ;; #(
21891 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
21892 *) { eval $ac_var=; unset $ac_var;} ;;
21893 esac ;;
21894 esac
21895 done
21897 (set) 2>&1 |
21898 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21899 *${as_nl}ac_space=\ *)
21900 # `set' does not quote correctly, so add quotes: double-quote
21901 # substitution turns \\\\ into \\, and sed turns \\ into \.
21902 sed -n \
21903 "s/'/'\\\\''/g;
21904 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21905 ;; #(
21907 # `set' quotes correctly as required by POSIX, so do not add quotes.
21908 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21910 esac |
21911 sort
21913 sed '
21914 /^ac_cv_env_/b end
21915 t clear
21916 :clear
21917 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21918 t end
21919 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21920 :end' >>confcache
21921 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21922 if test -w "$cache_file"; then
21923 test "x$cache_file" != "x/dev/null" &&
21924 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
21925 $as_echo "$as_me: updating cache $cache_file" >&6;}
21926 cat confcache >$cache_file
21927 else
21928 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
21929 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21932 rm -f confcache
21934 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21935 # Let make expand exec_prefix.
21936 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21938 DEFS=-DHAVE_CONFIG_H
21940 ac_libobjs=
21941 ac_ltlibobjs=
21942 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21943 # 1. Remove the extension, and $U if already installed.
21944 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21945 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
21946 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21947 # will be set to the directory where LIBOBJS objects are built.
21948 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21949 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
21950 done
21951 LIBOBJS=$ac_libobjs
21953 LTLIBOBJS=$ac_ltlibobjs
21956 if test -n "$EXEEXT"; then
21957 am__EXEEXT_TRUE=
21958 am__EXEEXT_FALSE='#'
21959 else
21960 am__EXEEXT_TRUE='#'
21961 am__EXEEXT_FALSE=
21964 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21965 as_fn_error "conditional \"AMDEP\" was never defined.
21966 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21968 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21969 as_fn_error "conditional \"am__fastdepCC\" was never defined.
21970 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21972 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
21973 as_fn_error "conditional \"GL_COND_LIBTOOL\" was never defined.
21974 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21976 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
21977 as_fn_error "conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
21978 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21981 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
21982 as_fn_error "conditional \"GL_GENERATE_STDINT_H\" was never defined.
21983 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21985 if test -z "${GL_GENERATE_STDALIGN_H_TRUE}" && test -z "${GL_GENERATE_STDALIGN_H_FALSE}"; then
21986 as_fn_error "conditional \"GL_GENERATE_STDALIGN_H\" was never defined.
21987 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21989 if test -z "${GL_GENERATE_STDARG_H_TRUE}" && test -z "${GL_GENERATE_STDARG_H_FALSE}"; then
21990 as_fn_error "conditional \"GL_GENERATE_STDARG_H\" was never defined.
21991 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21993 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
21994 as_fn_error "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
21995 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21997 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
21998 as_fn_error "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
21999 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22001 if test -z "${gl_GNULIB_ENABLED_dosname_TRUE}" && test -z "${gl_GNULIB_ENABLED_dosname_FALSE}"; then
22002 as_fn_error "conditional \"gl_GNULIB_ENABLED_dosname\" was never defined.
22003 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22005 if test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE}" && test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE}"; then
22006 as_fn_error "conditional \"gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36\" was never defined.
22007 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22009 if test -z "${gl_GNULIB_ENABLED_pathmax_TRUE}" && test -z "${gl_GNULIB_ENABLED_pathmax_FALSE}"; then
22010 as_fn_error "conditional \"gl_GNULIB_ENABLED_pathmax\" was never defined.
22011 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22013 if test -z "${gl_GNULIB_ENABLED_sigprocmask_TRUE}" && test -z "${gl_GNULIB_ENABLED_sigprocmask_FALSE}"; then
22014 as_fn_error "conditional \"gl_GNULIB_ENABLED_sigprocmask\" was never defined.
22015 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22017 if test -z "${gl_GNULIB_ENABLED_stat_TRUE}" && test -z "${gl_GNULIB_ENABLED_stat_FALSE}"; then
22018 as_fn_error "conditional \"gl_GNULIB_ENABLED_stat\" was never defined.
22019 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22021 if test -z "${gl_GNULIB_ENABLED_strtoll_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoll_FALSE}"; then
22022 as_fn_error "conditional \"gl_GNULIB_ENABLED_strtoll\" was never defined.
22023 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22025 if test -z "${gl_GNULIB_ENABLED_strtoull_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoull_FALSE}"; then
22026 as_fn_error "conditional \"gl_GNULIB_ENABLED_strtoull\" was never defined.
22027 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22029 if test -z "${gl_GNULIB_ENABLED_verify_TRUE}" && test -z "${gl_GNULIB_ENABLED_verify_FALSE}"; then
22030 as_fn_error "conditional \"gl_GNULIB_ENABLED_verify\" was never defined.
22031 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22034 gl_libobjs=
22035 gl_ltlibobjs=
22036 if test -n "$gl_LIBOBJS"; then
22037 # Remove the extension.
22038 sed_drop_objext='s/\.o$//;s/\.obj$//'
22039 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
22040 gl_libobjs="$gl_libobjs $i.$ac_objext"
22041 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
22042 done
22044 gl_LIBOBJS=$gl_libobjs
22046 gl_LTLIBOBJS=$gl_ltlibobjs
22050 gltests_libobjs=
22051 gltests_ltlibobjs=
22052 if test -n "$gltests_LIBOBJS"; then
22053 # Remove the extension.
22054 sed_drop_objext='s/\.o$//;s/\.obj$//'
22055 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
22056 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
22057 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
22058 done
22060 gltests_LIBOBJS=$gltests_libobjs
22062 gltests_LTLIBOBJS=$gltests_ltlibobjs
22066 : ${CONFIG_STATUS=./config.status}
22067 ac_write_fail=0
22068 ac_clean_files_save=$ac_clean_files
22069 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22070 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
22071 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
22072 as_write_fail=0
22073 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
22074 #! $SHELL
22075 # Generated by $as_me.
22076 # Run this file to recreate the current configuration.
22077 # Compiler output produced by configure, useful for debugging
22078 # configure, is in config.log if it exists.
22080 debug=false
22081 ac_cs_recheck=false
22082 ac_cs_silent=false
22084 SHELL=\${CONFIG_SHELL-$SHELL}
22085 export SHELL
22086 _ASEOF
22087 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
22088 ## -------------------- ##
22089 ## M4sh Initialization. ##
22090 ## -------------------- ##
22092 # Be more Bourne compatible
22093 DUALCASE=1; export DUALCASE # for MKS sh
22094 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22095 emulate sh
22096 NULLCMD=:
22097 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
22098 # is contrary to our usage. Disable this feature.
22099 alias -g '${1+"$@"}'='"$@"'
22100 setopt NO_GLOB_SUBST
22101 else
22102 case `(set -o) 2>/dev/null` in #(
22103 *posix*) :
22104 set -o posix ;; #(
22105 *) :
22107 esac
22111 as_nl='
22113 export as_nl
22114 # Printing a long string crashes Solaris 7 /usr/bin/printf.
22115 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
22116 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
22117 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
22118 # Prefer a ksh shell builtin over an external printf program on Solaris,
22119 # but without wasting forks for bash or zsh.
22120 if test -z "$BASH_VERSION$ZSH_VERSION" \
22121 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
22122 as_echo='print -r --'
22123 as_echo_n='print -rn --'
22124 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
22125 as_echo='printf %s\n'
22126 as_echo_n='printf %s'
22127 else
22128 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
22129 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
22130 as_echo_n='/usr/ucb/echo -n'
22131 else
22132 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
22133 as_echo_n_body='eval
22134 arg=$1;
22135 case $arg in #(
22136 *"$as_nl"*)
22137 expr "X$arg" : "X\\(.*\\)$as_nl";
22138 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
22139 esac;
22140 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
22142 export as_echo_n_body
22143 as_echo_n='sh -c $as_echo_n_body as_echo'
22145 export as_echo_body
22146 as_echo='sh -c $as_echo_body as_echo'
22149 # The user is always right.
22150 if test "${PATH_SEPARATOR+set}" != set; then
22151 PATH_SEPARATOR=:
22152 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
22153 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
22154 PATH_SEPARATOR=';'
22159 # IFS
22160 # We need space, tab and new line, in precisely that order. Quoting is
22161 # there to prevent editors from complaining about space-tab.
22162 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22163 # splitting by setting IFS to empty value.)
22164 IFS=" "" $as_nl"
22166 # Find who we are. Look in the path if we contain no directory separator.
22167 case $0 in #((
22168 *[\\/]* ) as_myself=$0 ;;
22169 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22170 for as_dir in $PATH
22172 IFS=$as_save_IFS
22173 test -z "$as_dir" && as_dir=.
22174 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22175 done
22176 IFS=$as_save_IFS
22179 esac
22180 # We did not find ourselves, most probably we were run as `sh COMMAND'
22181 # in which case we are not to be found in the path.
22182 if test "x$as_myself" = x; then
22183 as_myself=$0
22185 if test ! -f "$as_myself"; then
22186 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22187 exit 1
22190 # Unset variables that we do not need and which cause bugs (e.g. in
22191 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
22192 # suppresses any "Segmentation fault" message there. '((' could
22193 # trigger a bug in pdksh 5.2.14.
22194 for as_var in BASH_ENV ENV MAIL MAILPATH
22195 do eval test x\${$as_var+set} = xset \
22196 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
22197 done
22198 PS1='$ '
22199 PS2='> '
22200 PS4='+ '
22202 # NLS nuisances.
22203 LC_ALL=C
22204 export LC_ALL
22205 LANGUAGE=C
22206 export LANGUAGE
22208 # CDPATH.
22209 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22212 # as_fn_error ERROR [LINENO LOG_FD]
22213 # ---------------------------------
22214 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
22215 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22216 # script with status $?, using 1 if that was 0.
22217 as_fn_error ()
22219 as_status=$?; test $as_status -eq 0 && as_status=1
22220 if test "$3"; then
22221 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
22222 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
22224 $as_echo "$as_me: error: $1" >&2
22225 as_fn_exit $as_status
22226 } # as_fn_error
22229 # as_fn_set_status STATUS
22230 # -----------------------
22231 # Set $? to STATUS, without forking.
22232 as_fn_set_status ()
22234 return $1
22235 } # as_fn_set_status
22237 # as_fn_exit STATUS
22238 # -----------------
22239 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
22240 as_fn_exit ()
22242 set +e
22243 as_fn_set_status $1
22244 exit $1
22245 } # as_fn_exit
22247 # as_fn_unset VAR
22248 # ---------------
22249 # Portably unset VAR.
22250 as_fn_unset ()
22252 { eval $1=; unset $1;}
22254 as_unset=as_fn_unset
22255 # as_fn_append VAR VALUE
22256 # ----------------------
22257 # Append the text in VALUE to the end of the definition contained in VAR. Take
22258 # advantage of any shell optimizations that allow amortized linear growth over
22259 # repeated appends, instead of the typical quadratic growth present in naive
22260 # implementations.
22261 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
22262 eval 'as_fn_append ()
22264 eval $1+=\$2
22266 else
22267 as_fn_append ()
22269 eval $1=\$$1\$2
22271 fi # as_fn_append
22273 # as_fn_arith ARG...
22274 # ------------------
22275 # Perform arithmetic evaluation on the ARGs, and store the result in the
22276 # global $as_val. Take advantage of shells that can avoid forks. The arguments
22277 # must be portable across $(()) and expr.
22278 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
22279 eval 'as_fn_arith ()
22281 as_val=$(( $* ))
22283 else
22284 as_fn_arith ()
22286 as_val=`expr "$@" || test $? -eq 1`
22288 fi # as_fn_arith
22291 if expr a : '\(a\)' >/dev/null 2>&1 &&
22292 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22293 as_expr=expr
22294 else
22295 as_expr=false
22298 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22299 as_basename=basename
22300 else
22301 as_basename=false
22304 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22305 as_dirname=dirname
22306 else
22307 as_dirname=false
22310 as_me=`$as_basename -- "$0" ||
22311 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22312 X"$0" : 'X\(//\)$' \| \
22313 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22314 $as_echo X/"$0" |
22315 sed '/^.*\/\([^/][^/]*\)\/*$/{
22316 s//\1/
22319 /^X\/\(\/\/\)$/{
22320 s//\1/
22323 /^X\/\(\/\).*/{
22324 s//\1/
22327 s/.*/./; q'`
22329 # Avoid depending upon Character Ranges.
22330 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22331 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22332 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22333 as_cr_digits='0123456789'
22334 as_cr_alnum=$as_cr_Letters$as_cr_digits
22336 ECHO_C= ECHO_N= ECHO_T=
22337 case `echo -n x` in #(((((
22338 -n*)
22339 case `echo 'xy\c'` in
22340 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
22341 xy) ECHO_C='\c';;
22342 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
22343 ECHO_T=' ';;
22344 esac;;
22346 ECHO_N='-n';;
22347 esac
22349 rm -f conf$$ conf$$.exe conf$$.file
22350 if test -d conf$$.dir; then
22351 rm -f conf$$.dir/conf$$.file
22352 else
22353 rm -f conf$$.dir
22354 mkdir conf$$.dir 2>/dev/null
22356 if (echo >conf$$.file) 2>/dev/null; then
22357 if ln -s conf$$.file conf$$ 2>/dev/null; then
22358 as_ln_s='ln -s'
22359 # ... but there are two gotchas:
22360 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22361 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22362 # In both cases, we have to default to `cp -p'.
22363 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22364 as_ln_s='cp -p'
22365 elif ln conf$$.file conf$$ 2>/dev/null; then
22366 as_ln_s=ln
22367 else
22368 as_ln_s='cp -p'
22370 else
22371 as_ln_s='cp -p'
22373 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22374 rmdir conf$$.dir 2>/dev/null
22377 # as_fn_mkdir_p
22378 # -------------
22379 # Create "$as_dir" as a directory, including parents if necessary.
22380 as_fn_mkdir_p ()
22383 case $as_dir in #(
22384 -*) as_dir=./$as_dir;;
22385 esac
22386 test -d "$as_dir" || eval $as_mkdir_p || {
22387 as_dirs=
22388 while :; do
22389 case $as_dir in #(
22390 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
22391 *) as_qdir=$as_dir;;
22392 esac
22393 as_dirs="'$as_qdir' $as_dirs"
22394 as_dir=`$as_dirname -- "$as_dir" ||
22395 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22396 X"$as_dir" : 'X\(//\)[^/]' \| \
22397 X"$as_dir" : 'X\(//\)$' \| \
22398 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22399 $as_echo X"$as_dir" |
22400 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22401 s//\1/
22404 /^X\(\/\/\)[^/].*/{
22405 s//\1/
22408 /^X\(\/\/\)$/{
22409 s//\1/
22412 /^X\(\/\).*/{
22413 s//\1/
22416 s/.*/./; q'`
22417 test -d "$as_dir" && break
22418 done
22419 test -z "$as_dirs" || eval "mkdir $as_dirs"
22420 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
22423 } # as_fn_mkdir_p
22424 if mkdir -p . 2>/dev/null; then
22425 as_mkdir_p='mkdir -p "$as_dir"'
22426 else
22427 test -d ./-p && rmdir ./-p
22428 as_mkdir_p=false
22431 if test -x / >/dev/null 2>&1; then
22432 as_test_x='test -x'
22433 else
22434 if ls -dL / >/dev/null 2>&1; then
22435 as_ls_L_option=L
22436 else
22437 as_ls_L_option=
22439 as_test_x='
22440 eval sh -c '\''
22441 if test -d "$1"; then
22442 test -d "$1/.";
22443 else
22444 case $1 in #(
22445 -*)set "./$1";;
22446 esac;
22447 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
22448 ???[sx]*):;;*)false;;esac;fi
22449 '\'' sh
22452 as_executable_p=$as_test_x
22454 # Sed expression to map a string onto a valid CPP name.
22455 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22457 # Sed expression to map a string onto a valid variable name.
22458 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22461 exec 6>&1
22462 ## ----------------------------------- ##
22463 ## Main body of $CONFIG_STATUS script. ##
22464 ## ----------------------------------- ##
22465 _ASEOF
22466 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
22468 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22469 # Save the log message, to keep $0 and so on meaningful, and to
22470 # report actual input values of CONFIG_FILES etc. instead of their
22471 # values after options handling.
22472 ac_log="
22473 This file was extended by emacs $as_me 24.1.50, which was
22474 generated by GNU Autoconf 2.65. Invocation command line was
22476 CONFIG_FILES = $CONFIG_FILES
22477 CONFIG_HEADERS = $CONFIG_HEADERS
22478 CONFIG_LINKS = $CONFIG_LINKS
22479 CONFIG_COMMANDS = $CONFIG_COMMANDS
22480 $ $0 $@
22482 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22485 _ACEOF
22487 case $ac_config_files in *"
22488 "*) set x $ac_config_files; shift; ac_config_files=$*;;
22489 esac
22491 case $ac_config_headers in *"
22492 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
22493 esac
22496 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22497 # Files that config.status was made for.
22498 config_files="$ac_config_files"
22499 config_headers="$ac_config_headers"
22500 config_commands="$ac_config_commands"
22502 _ACEOF
22504 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22505 ac_cs_usage="\
22506 \`$as_me' instantiates files and other configuration actions
22507 from templates according to the current configuration. Unless the files
22508 and actions are specified as TAGs, all are instantiated by default.
22510 Usage: $0 [OPTION]... [TAG]...
22512 -h, --help print this help, then exit
22513 -V, --version print version number and configuration settings, then exit
22514 --config print configuration, then exit
22515 -q, --quiet, --silent
22516 do not print progress messages
22517 -d, --debug don't remove temporary files
22518 --recheck update $as_me by reconfiguring in the same conditions
22519 --file=FILE[:TEMPLATE]
22520 instantiate the configuration file FILE
22521 --header=FILE[:TEMPLATE]
22522 instantiate the configuration header FILE
22524 Configuration files:
22525 $config_files
22527 Configuration headers:
22528 $config_headers
22530 Configuration commands:
22531 $config_commands
22533 Report bugs to the package provider."
22535 _ACEOF
22536 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22537 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
22538 ac_cs_version="\\
22539 emacs config.status 24.1.50
22540 configured by $0, generated by GNU Autoconf 2.65,
22541 with options \\"\$ac_cs_config\\"
22543 Copyright (C) 2009 Free Software Foundation, Inc.
22544 This config.status script is free software; the Free Software Foundation
22545 gives unlimited permission to copy, distribute and modify it."
22547 ac_pwd='$ac_pwd'
22548 srcdir='$srcdir'
22549 INSTALL='$INSTALL'
22550 MKDIR_P='$MKDIR_P'
22551 AWK='$AWK'
22552 test -n "\$AWK" || AWK=awk
22553 _ACEOF
22555 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22556 # The default lists apply if the user does not specify any file.
22557 ac_need_defaults=:
22558 while test $# != 0
22560 case $1 in
22561 --*=*)
22562 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22563 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22564 ac_shift=:
22567 ac_option=$1
22568 ac_optarg=$2
22569 ac_shift=shift
22571 esac
22573 case $ac_option in
22574 # Handling of the options.
22575 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22576 ac_cs_recheck=: ;;
22577 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22578 $as_echo "$ac_cs_version"; exit ;;
22579 --config | --confi | --conf | --con | --co | --c )
22580 $as_echo "$ac_cs_config"; exit ;;
22581 --debug | --debu | --deb | --de | --d | -d )
22582 debug=: ;;
22583 --file | --fil | --fi | --f )
22584 $ac_shift
22585 case $ac_optarg in
22586 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22587 esac
22588 as_fn_append CONFIG_FILES " '$ac_optarg'"
22589 ac_need_defaults=false;;
22590 --header | --heade | --head | --hea )
22591 $ac_shift
22592 case $ac_optarg in
22593 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22594 esac
22595 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
22596 ac_need_defaults=false;;
22597 --he | --h)
22598 # Conflict between --help and --header
22599 as_fn_error "ambiguous option: \`$1'
22600 Try \`$0 --help' for more information.";;
22601 --help | --hel | -h )
22602 $as_echo "$ac_cs_usage"; exit ;;
22603 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22604 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22605 ac_cs_silent=: ;;
22607 # This is an error.
22608 -*) as_fn_error "unrecognized option: \`$1'
22609 Try \`$0 --help' for more information." ;;
22611 *) as_fn_append ac_config_targets " $1"
22612 ac_need_defaults=false ;;
22614 esac
22615 shift
22616 done
22618 ac_configure_extra_args=
22620 if $ac_cs_silent; then
22621 exec 6>/dev/null
22622 ac_configure_extra_args="$ac_configure_extra_args --silent"
22625 _ACEOF
22626 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22627 if \$ac_cs_recheck; then
22628 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22629 shift
22630 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
22631 CONFIG_SHELL='$SHELL'
22632 export CONFIG_SHELL
22633 exec "\$@"
22636 _ACEOF
22637 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22638 exec 5>>config.log
22640 echo
22641 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22642 ## Running $as_me. ##
22643 _ASBOX
22644 $as_echo "$ac_log"
22645 } >&5
22647 _ACEOF
22648 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22650 # INIT-COMMANDS
22652 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22653 GCC="$GCC" CPPFLAGS="$CPPFLAGS"
22655 _ACEOF
22657 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22659 # Handling of arguments.
22660 for ac_config_target in $ac_config_targets
22662 case $ac_config_target in
22663 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
22664 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22665 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22666 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
22667 "lib-src/Makefile") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile" ;;
22668 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
22669 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
22670 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
22671 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
22672 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
22673 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
22674 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
22675 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
22676 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
22677 "test/automated/Makefile") CONFIG_FILES="$CONFIG_FILES test/automated/Makefile" ;;
22678 "admin/unidata/Makefile") CONFIG_FILES="$CONFIG_FILES admin/unidata/Makefile" ;;
22679 "mkdirs") CONFIG_COMMANDS="$CONFIG_COMMANDS mkdirs" ;;
22680 "epaths") CONFIG_COMMANDS="$CONFIG_COMMANDS epaths" ;;
22681 "gdbinit") CONFIG_COMMANDS="$CONFIG_COMMANDS gdbinit" ;;
22683 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
22684 esac
22685 done
22688 # If the user did not use the arguments to specify the items to instantiate,
22689 # then the envvar interface is used. Set only those that are not.
22690 # We use the long form for the default assignment because of an extremely
22691 # bizarre bug on SunOS 4.1.3.
22692 if $ac_need_defaults; then
22693 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22694 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22695 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22698 # Have a temporary directory for convenience. Make it in the build tree
22699 # simply because there is no reason against having it here, and in addition,
22700 # creating and moving files from /tmp can sometimes cause problems.
22701 # Hook for its removal unless debugging.
22702 # Note that there is a small window in which the directory will not be cleaned:
22703 # after its creation but before its name has been assigned to `$tmp'.
22704 $debug ||
22706 tmp=
22707 trap 'exit_status=$?
22708 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22710 trap 'as_fn_exit 1' 1 2 13 15
22712 # Create a (secure) tmp directory for tmp files.
22715 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22716 test -n "$tmp" && test -d "$tmp"
22717 } ||
22719 tmp=./conf$$-$RANDOM
22720 (umask 077 && mkdir "$tmp")
22721 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
22723 # Set up the scripts for CONFIG_FILES section.
22724 # No need to generate them if there are no CONFIG_FILES.
22725 # This happens for instance with `./config.status config.h'.
22726 if test -n "$CONFIG_FILES"; then
22728 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
22729 ac_cs_awk_getline=:
22730 ac_cs_awk_pipe_init=
22731 ac_cs_awk_read_file='
22732 while ((getline aline < (F[key])) > 0)
22733 print(aline)
22734 close(F[key])'
22735 ac_cs_awk_pipe_fini=
22736 else
22737 ac_cs_awk_getline=false
22738 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
22739 ac_cs_awk_read_file='
22740 print "|#_!!_#|"
22741 print "cat " F[key] " &&"
22742 '$ac_cs_awk_pipe_init
22743 # The final `:' finishes the AND list.
22744 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
22746 ac_cr=`echo X | tr X '\015'`
22747 # On cygwin, bash can eat \r inside `` if the user requested igncr.
22748 # But we know of no other shell where ac_cr would be empty at this
22749 # point, so we can use a bashism as a fallback.
22750 if test "x$ac_cr" = x; then
22751 eval ac_cr=\$\'\\r\'
22753 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
22754 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22755 ac_cs_awk_cr='\r'
22756 else
22757 ac_cs_awk_cr=$ac_cr
22760 echo 'BEGIN {' >"$tmp/subs1.awk" &&
22761 _ACEOF
22763 # Create commands to substitute file output variables.
22765 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
22766 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
22767 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
22768 echo "_ACAWK" &&
22769 echo "_ACEOF"
22770 } >conf$$files.sh &&
22771 . ./conf$$files.sh ||
22772 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
22773 rm -f conf$$files.sh
22776 echo "cat >conf$$subs.awk <<_ACEOF" &&
22777 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
22778 echo "_ACEOF"
22779 } >conf$$subs.sh ||
22780 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
22781 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
22782 ac_delim='%!_!# '
22783 for ac_last_try in false false false false false :; do
22784 . ./conf$$subs.sh ||
22785 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
22787 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
22788 if test $ac_delim_n = $ac_delim_num; then
22789 break
22790 elif $ac_last_try; then
22791 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
22792 else
22793 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22795 done
22796 rm -f conf$$subs.sh
22798 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22799 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
22800 _ACEOF
22801 sed -n '
22803 s/^/S["/; s/!.*/"]=/
22806 s/^[^!]*!//
22807 :repl
22808 t repl
22809 s/'"$ac_delim"'$//
22810 t delim
22813 s/\(.\{148\}\)..*/\1/
22814 t more1
22815 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
22818 b repl
22819 :more1
22820 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22823 s/.\{148\}//
22824 t nl
22825 :delim
22827 s/\(.\{148\}\)..*/\1/
22828 t more2
22829 s/["\\]/\\&/g; s/^/"/; s/$/"/
22832 :more2
22833 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22836 s/.\{148\}//
22837 t delim
22838 ' <conf$$subs.awk | sed '
22839 /^[^""]/{
22841 s/\n//
22843 ' >>$CONFIG_STATUS || ac_write_fail=1
22844 rm -f conf$$subs.awk
22845 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22846 _ACAWK
22847 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
22848 for (key in S) S_is_set[key] = 1
22849 FS = "\a"
22850 \$ac_cs_awk_pipe_init
22853 line = $ 0
22854 nfields = split(line, field, "@")
22855 substed = 0
22856 len = length(field[1])
22857 for (i = 2; i < nfields; i++) {
22858 key = field[i]
22859 keylen = length(key)
22860 if (S_is_set[key]) {
22861 value = S[key]
22862 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
22863 len += length(value) + length(field[++i])
22864 substed = 1
22865 } else
22866 len += 1 + keylen
22868 if (nfields == 3 && !substed) {
22869 key = field[2]
22870 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
22871 \$ac_cs_awk_read_file
22872 next
22875 print line
22877 \$ac_cs_awk_pipe_fini
22878 _ACAWK
22879 _ACEOF
22880 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22881 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
22882 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
22883 else
22885 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
22886 || as_fn_error "could not setup config files machinery" "$LINENO" 5
22887 _ACEOF
22889 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22890 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22891 # trailing colons and then remove the whole line if VPATH becomes empty
22892 # (actually we leave an empty line to preserve line numbers).
22893 if test "x$srcdir" = x.; then
22894 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22895 s/:*\$(srcdir):*/:/
22896 s/:*\${srcdir}:*/:/
22897 s/:*@srcdir@:*/:/
22898 s/^\([^=]*=[ ]*\):*/\1/
22899 s/:*$//
22900 s/^[^=]*=[ ]*$//
22904 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22905 fi # test -n "$CONFIG_FILES"
22907 # Set up the scripts for CONFIG_HEADERS section.
22908 # No need to generate them if there are no CONFIG_HEADERS.
22909 # This happens for instance with `./config.status Makefile'.
22910 if test -n "$CONFIG_HEADERS"; then
22911 cat >"$tmp/defines.awk" <<\_ACAWK ||
22912 BEGIN {
22913 _ACEOF
22915 # Transform confdefs.h into an awk script `defines.awk', embedded as
22916 # here-document in config.status, that substitutes the proper values into
22917 # config.h.in to produce config.h.
22919 # Create a delimiter string that does not exist in confdefs.h, to ease
22920 # handling of long lines.
22921 ac_delim='%!_!# '
22922 for ac_last_try in false false :; do
22923 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
22924 if test -z "$ac_t"; then
22925 break
22926 elif $ac_last_try; then
22927 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
22928 else
22929 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22931 done
22933 # For the awk script, D is an array of macro values keyed by name,
22934 # likewise P contains macro parameters if any. Preserve backslash
22935 # newline sequences.
22937 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22938 sed -n '
22939 s/.\{148\}/&'"$ac_delim"'/g
22940 t rset
22941 :rset
22942 s/^[ ]*#[ ]*define[ ][ ]*/ /
22943 t def
22945 :def
22946 s/\\$//
22947 t bsnl
22948 s/["\\]/\\&/g
22949 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22950 D["\1"]=" \3"/p
22951 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
22953 :bsnl
22954 s/["\\]/\\&/g
22955 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22956 D["\1"]=" \3\\\\\\n"\\/p
22957 t cont
22958 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
22959 t cont
22961 :cont
22963 s/.\{148\}/&'"$ac_delim"'/g
22964 t clear
22965 :clear
22966 s/\\$//
22967 t bsnlc
22968 s/["\\]/\\&/g; s/^/"/; s/$/"/p
22970 :bsnlc
22971 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
22972 b cont
22973 ' <confdefs.h | sed '
22974 s/'"$ac_delim"'/"\\\
22975 "/g' >>$CONFIG_STATUS || ac_write_fail=1
22977 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22978 for (key in D) D_is_set[key] = 1
22979 FS = "\a"
22981 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
22982 line = \$ 0
22983 split(line, arg, " ")
22984 if (arg[1] == "#") {
22985 defundef = arg[2]
22986 mac1 = arg[3]
22987 } else {
22988 defundef = substr(arg[1], 2)
22989 mac1 = arg[2]
22991 split(mac1, mac2, "(") #)
22992 macro = mac2[1]
22993 prefix = substr(line, 1, index(line, defundef) - 1)
22994 if (D_is_set[macro]) {
22995 # Preserve the white space surrounding the "#".
22996 print prefix "define", macro P[macro] D[macro]
22997 next
22998 } else {
22999 # Replace #undef with comments. This is necessary, for example,
23000 # in the case of _POSIX_SOURCE, which is predefined and required
23001 # on some systems where configure will not decide to define it.
23002 if (defundef == "undef") {
23003 print "/*", prefix defundef, macro, "*/"
23004 next
23008 { print }
23009 _ACAWK
23010 _ACEOF
23011 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23012 as_fn_error "could not setup config headers machinery" "$LINENO" 5
23013 fi # test -n "$CONFIG_HEADERS"
23016 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
23017 shift
23018 for ac_tag
23020 case $ac_tag in
23021 :[FHLC]) ac_mode=$ac_tag; continue;;
23022 esac
23023 case $ac_mode$ac_tag in
23024 :[FHL]*:*);;
23025 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
23026 :[FH]-) ac_tag=-:-;;
23027 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23028 esac
23029 ac_save_IFS=$IFS
23030 IFS=:
23031 set x $ac_tag
23032 IFS=$ac_save_IFS
23033 shift
23034 ac_file=$1
23035 shift
23037 case $ac_mode in
23038 :L) ac_source=$1;;
23039 :[FH])
23040 ac_file_inputs=
23041 for ac_f
23043 case $ac_f in
23044 -) ac_f="$tmp/stdin";;
23045 *) # Look for the file first in the build tree, then in the source tree
23046 # (if the path is not absolute). The absolute path cannot be DOS-style,
23047 # because $ac_f cannot contain `:'.
23048 test -f "$ac_f" ||
23049 case $ac_f in
23050 [\\/$]*) false;;
23051 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23052 esac ||
23053 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
23054 esac
23055 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
23056 as_fn_append ac_file_inputs " '$ac_f'"
23057 done
23059 # Let's still pretend it is `configure' which instantiates (i.e., don't
23060 # use $as_me), people would be surprised to read:
23061 # /* config.h. Generated by config.status. */
23062 configure_input='Generated from '`
23063 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
23064 `' by configure.'
23065 if test x"$ac_file" != x-; then
23066 configure_input="$ac_file. $configure_input"
23067 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
23068 $as_echo "$as_me: creating $ac_file" >&6;}
23070 # Neutralize special characters interpreted by sed in replacement strings.
23071 case $configure_input in #(
23072 *\&* | *\|* | *\\* )
23073 ac_sed_conf_input=`$as_echo "$configure_input" |
23074 sed 's/[\\\\&|]/\\\\&/g'`;; #(
23075 *) ac_sed_conf_input=$configure_input;;
23076 esac
23078 case $ac_tag in
23079 *:-:* | *:-) cat >"$tmp/stdin" \
23080 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
23081 esac
23083 esac
23085 ac_dir=`$as_dirname -- "$ac_file" ||
23086 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23087 X"$ac_file" : 'X\(//\)[^/]' \| \
23088 X"$ac_file" : 'X\(//\)$' \| \
23089 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23090 $as_echo X"$ac_file" |
23091 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23092 s//\1/
23095 /^X\(\/\/\)[^/].*/{
23096 s//\1/
23099 /^X\(\/\/\)$/{
23100 s//\1/
23103 /^X\(\/\).*/{
23104 s//\1/
23107 s/.*/./; q'`
23108 as_dir="$ac_dir"; as_fn_mkdir_p
23109 ac_builddir=.
23111 case "$ac_dir" in
23112 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23114 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
23115 # A ".." for each directory in $ac_dir_suffix.
23116 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
23117 case $ac_top_builddir_sub in
23118 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23119 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23120 esac ;;
23121 esac
23122 ac_abs_top_builddir=$ac_pwd
23123 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23124 # for backward compatibility:
23125 ac_top_builddir=$ac_top_build_prefix
23127 case $srcdir in
23128 .) # We are building in place.
23129 ac_srcdir=.
23130 ac_top_srcdir=$ac_top_builddir_sub
23131 ac_abs_top_srcdir=$ac_pwd ;;
23132 [\\/]* | ?:[\\/]* ) # Absolute name.
23133 ac_srcdir=$srcdir$ac_dir_suffix;
23134 ac_top_srcdir=$srcdir
23135 ac_abs_top_srcdir=$srcdir ;;
23136 *) # Relative name.
23137 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23138 ac_top_srcdir=$ac_top_build_prefix$srcdir
23139 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23140 esac
23141 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23144 case $ac_mode in
23147 # CONFIG_FILE
23150 case $INSTALL in
23151 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23152 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23153 esac
23154 ac_MKDIR_P=$MKDIR_P
23155 case $MKDIR_P in
23156 [\\/$]* | ?:[\\/]* ) ;;
23157 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
23158 esac
23159 _ACEOF
23161 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23162 # If the template does not know about datarootdir, expand it.
23163 # FIXME: This hack should be removed a few years after 2.60.
23164 ac_datarootdir_hack=; ac_datarootdir_seen=
23165 ac_sed_dataroot='
23166 /datarootdir/ {
23170 /@datadir@/p
23171 /@docdir@/p
23172 /@infodir@/p
23173 /@localedir@/p
23174 /@mandir@/p'
23175 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
23176 *datarootdir*) ac_datarootdir_seen=yes;;
23177 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23178 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23179 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23180 _ACEOF
23181 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23182 ac_datarootdir_hack='
23183 s&@datadir@&$datadir&g
23184 s&@docdir@&$docdir&g
23185 s&@infodir@&$infodir&g
23186 s&@localedir@&$localedir&g
23187 s&@mandir@&$mandir&g
23188 s&\\\${datarootdir}&$datarootdir&g' ;;
23189 esac
23190 _ACEOF
23192 # Neutralize VPATH when `$srcdir' = `.'.
23193 # Shell code in configure.ac might set extrasub.
23194 # FIXME: do we really want to maintain this feature?
23195 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23196 ac_sed_extra="$ac_vpsub
23197 $extrasub
23198 _ACEOF
23199 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23201 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23202 s|@configure_input@|$ac_sed_conf_input|;t t
23203 s&@top_builddir@&$ac_top_builddir_sub&;t t
23204 s&@top_build_prefix@&$ac_top_build_prefix&;t t
23205 s&@srcdir@&$ac_srcdir&;t t
23206 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23207 s&@top_srcdir@&$ac_top_srcdir&;t t
23208 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23209 s&@builddir@&$ac_builddir&;t t
23210 s&@abs_builddir@&$ac_abs_builddir&;t t
23211 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23212 s&@INSTALL@&$ac_INSTALL&;t t
23213 s&@MKDIR_P@&$ac_MKDIR_P&;t t
23214 $ac_datarootdir_hack
23216 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
23217 if $ac_cs_awk_getline; then
23218 $AWK -f "$tmp/subs.awk"
23219 else
23220 $AWK -f "$tmp/subs.awk" | $SHELL
23221 fi >$tmp/out \
23222 || as_fn_error "could not create $ac_file" "$LINENO" 5
23224 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23225 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23226 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23227 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23228 which seems to be undefined. Please make sure it is defined." >&5
23229 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23230 which seems to be undefined. Please make sure it is defined." >&2;}
23232 rm -f "$tmp/stdin"
23233 case $ac_file in
23234 -) cat "$tmp/out" && rm -f "$tmp/out";;
23235 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
23236 esac \
23237 || as_fn_error "could not create $ac_file" "$LINENO" 5
23241 # CONFIG_HEADER
23243 if test x"$ac_file" != x-; then
23245 $as_echo "/* $configure_input */" \
23246 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
23247 } >"$tmp/config.h" \
23248 || as_fn_error "could not create $ac_file" "$LINENO" 5
23249 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
23250 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
23251 $as_echo "$as_me: $ac_file is unchanged" >&6;}
23252 else
23253 rm -f "$ac_file"
23254 mv "$tmp/config.h" "$ac_file" \
23255 || as_fn_error "could not create $ac_file" "$LINENO" 5
23257 else
23258 $as_echo "/* $configure_input */" \
23259 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
23260 || as_fn_error "could not create -" "$LINENO" 5
23262 # Compute "$ac_file"'s index in $config_headers.
23263 _am_arg="$ac_file"
23264 _am_stamp_count=1
23265 for _am_header in $config_headers :; do
23266 case $_am_header in
23267 $_am_arg | $_am_arg:* )
23268 break ;;
23270 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23271 esac
23272 done
23273 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
23274 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23275 X"$_am_arg" : 'X\(//\)[^/]' \| \
23276 X"$_am_arg" : 'X\(//\)$' \| \
23277 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
23278 $as_echo X"$_am_arg" |
23279 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23280 s//\1/
23283 /^X\(\/\/\)[^/].*/{
23284 s//\1/
23287 /^X\(\/\/\)$/{
23288 s//\1/
23291 /^X\(\/\).*/{
23292 s//\1/
23295 s/.*/./; q'`/stamp-h$_am_stamp_count
23298 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
23299 $as_echo "$as_me: executing $ac_file commands" >&6;}
23301 esac
23304 case $ac_file$ac_mode in
23305 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
23306 # Autoconf 2.62 quotes --file arguments for eval, but not when files
23307 # are listed without --file. Let's play safe and only enable the eval
23308 # if we detect the quoting.
23309 case $CONFIG_FILES in
23310 *\'*) eval set x "$CONFIG_FILES" ;;
23311 *) set x $CONFIG_FILES ;;
23312 esac
23313 shift
23314 for mf
23316 # Strip MF so we end up with the name of the file.
23317 mf=`echo "$mf" | sed -e 's/:.*$//'`
23318 # Check whether this is an Automake generated Makefile or not.
23319 # We used to match only the files named `Makefile.in', but
23320 # some people rename them; so instead we look at the file content.
23321 # Grep'ing the first line is not enough: some people post-process
23322 # each Makefile.in and add a new line on top of each file to say so.
23323 # Grep'ing the whole file is not good either: AIX grep has a line
23324 # limit of 2048, but all sed's we know have understand at least 4000.
23325 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
23326 dirpart=`$as_dirname -- "$mf" ||
23327 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23328 X"$mf" : 'X\(//\)[^/]' \| \
23329 X"$mf" : 'X\(//\)$' \| \
23330 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
23331 $as_echo X"$mf" |
23332 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23333 s//\1/
23336 /^X\(\/\/\)[^/].*/{
23337 s//\1/
23340 /^X\(\/\/\)$/{
23341 s//\1/
23344 /^X\(\/\).*/{
23345 s//\1/
23348 s/.*/./; q'`
23349 else
23350 continue
23352 # Extract the definition of DEPDIR, am__include, and am__quote
23353 # from the Makefile without running `make'.
23354 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23355 test -z "$DEPDIR" && continue
23356 am__include=`sed -n 's/^am__include = //p' < "$mf"`
23357 test -z "am__include" && continue
23358 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23359 # When using ansi2knr, U may be empty or an underscore; expand it
23360 U=`sed -n 's/^U = //p' < "$mf"`
23361 # Find all dependency output files, they are included files with
23362 # $(DEPDIR) in their names. We invoke sed twice because it is the
23363 # simplest approach to changing $(DEPDIR) to its actual value in the
23364 # expansion.
23365 for file in `sed -n "
23366 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23367 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23368 # Make sure the directory exists.
23369 test -f "$dirpart/$file" && continue
23370 fdir=`$as_dirname -- "$file" ||
23371 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23372 X"$file" : 'X\(//\)[^/]' \| \
23373 X"$file" : 'X\(//\)$' \| \
23374 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
23375 $as_echo X"$file" |
23376 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23377 s//\1/
23380 /^X\(\/\/\)[^/].*/{
23381 s//\1/
23384 /^X\(\/\/\)$/{
23385 s//\1/
23388 /^X\(\/\).*/{
23389 s//\1/
23392 s/.*/./; q'`
23393 as_dir=$dirpart/$fdir; as_fn_mkdir_p
23394 # echo "creating $dirpart/$file"
23395 echo '# dummy' > "$dirpart/$file"
23396 done
23397 done
23400 "mkdirs":C)
23401 for dir in etc lisp ; do
23402 test -d ${dir} || mkdir ${dir}
23403 done
23405 "epaths":C)
23406 echo creating src/epaths.h
23407 ${MAKE-make} epaths-force
23409 "gdbinit":C)
23410 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
23411 echo creating src/.gdbinit
23412 echo source $srcdir/src/.gdbinit > src/.gdbinit
23416 esac
23417 done # for ac_tag
23420 as_fn_exit 0
23421 _ACEOF
23422 ac_clean_files=$ac_clean_files_save
23424 test $ac_write_fail = 0 ||
23425 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
23428 # configure is writing to config.log, and then calls config.status.
23429 # config.status does its own redirection, appending to config.log.
23430 # Unfortunately, on DOS this fails, as config.log is still kept open
23431 # by configure, so config.status won't be able to write to it; its
23432 # output is simply discarded. So we exec the FD to /dev/null,
23433 # effectively closing config.log, so it can be properly (re)opened and
23434 # appended to by config.status. When coming back to configure, we
23435 # need to make the FD available again.
23436 if test "$no_create" != yes; then
23437 ac_cs_success=:
23438 ac_config_status_args=
23439 test "$silent" = yes &&
23440 ac_config_status_args="$ac_config_status_args --quiet"
23441 exec 5>/dev/null
23442 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23443 exec 5>>config.log
23444 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23445 # would make configure fail if this is the last instruction.
23446 $ac_cs_success || as_fn_exit $?
23448 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
23449 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
23450 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}