Auto-commit of generated files.
[emacs.git] / autogen / configure
blobe4e1cbfd641092bed360bb7861eb2ac4be12a41e
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_member LINENO AGGR MEMBER VAR INCLUDES
2515 # ----------------------------------------------------
2516 # Tries to find if the field MEMBER exists in type AGGR, after including
2517 # INCLUDES, setting cache variable VAR accordingly.
2518 ac_fn_c_check_member ()
2520 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2522 $as_echo_n "checking for $2.$3... " >&6; }
2523 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2524 $as_echo_n "(cached) " >&6
2525 else
2526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2527 /* end confdefs.h. */
2530 main ()
2532 static $2 ac_aggr;
2533 if (ac_aggr.$3)
2534 return 0;
2536 return 0;
2538 _ACEOF
2539 if ac_fn_c_try_compile "$LINENO"; then :
2540 eval "$4=yes"
2541 else
2542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2543 /* end confdefs.h. */
2546 main ()
2548 static $2 ac_aggr;
2549 if (sizeof ac_aggr.$3)
2550 return 0;
2552 return 0;
2554 _ACEOF
2555 if ac_fn_c_try_compile "$LINENO"; then :
2556 eval "$4=yes"
2557 else
2558 eval "$4=no"
2560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2564 eval ac_res=\$$4
2565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2566 $as_echo "$ac_res" >&6; }
2567 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2569 } # ac_fn_c_check_member
2571 # ac_fn_c_check_func LINENO FUNC VAR
2572 # ----------------------------------
2573 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2574 ac_fn_c_check_func ()
2576 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2578 $as_echo_n "checking for $2... " >&6; }
2579 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2580 $as_echo_n "(cached) " >&6
2581 else
2582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2583 /* end confdefs.h. */
2584 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2585 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2586 #define $2 innocuous_$2
2588 /* System header to define __stub macros and hopefully few prototypes,
2589 which can conflict with char $2 (); below.
2590 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2591 <limits.h> exists even on freestanding compilers. */
2593 #ifdef __STDC__
2594 # include <limits.h>
2595 #else
2596 # include <assert.h>
2597 #endif
2599 #undef $2
2601 /* Override any GCC internal prototype to avoid an error.
2602 Use char because int might match the return type of a GCC
2603 builtin and then its argument prototype would still apply. */
2604 #ifdef __cplusplus
2605 extern "C"
2606 #endif
2607 char $2 ();
2608 /* The GNU C library defines this for functions which it implements
2609 to always fail with ENOSYS. Some functions are actually named
2610 something starting with __ and the normal name is an alias. */
2611 #if defined __stub_$2 || defined __stub___$2
2612 choke me
2613 #endif
2616 main ()
2618 return $2 ();
2620 return 0;
2622 _ACEOF
2623 if ac_fn_c_try_link "$LINENO"; then :
2624 eval "$3=yes"
2625 else
2626 eval "$3=no"
2628 rm -f core conftest.err conftest.$ac_objext \
2629 conftest$ac_exeext conftest.$ac_ext
2631 eval ac_res=\$$3
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_func
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_func_list " gethostname"
3176 as_fn_append ac_func_list " rename"
3177 as_fn_append ac_func_list " closedir"
3178 as_fn_append ac_func_list " mkdir"
3179 as_fn_append ac_func_list " rmdir"
3180 as_fn_append ac_func_list " getrusage"
3181 as_fn_append ac_func_list " get_current_dir_name"
3182 as_fn_append ac_func_list " random"
3183 as_fn_append ac_func_list " lrand48"
3184 as_fn_append ac_func_list " logb"
3185 as_fn_append ac_func_list " frexp"
3186 as_fn_append ac_func_list " fmod"
3187 as_fn_append ac_func_list " rint"
3188 as_fn_append ac_func_list " cbrt"
3189 as_fn_append ac_func_list " setsid"
3190 as_fn_append ac_func_list " strerror"
3191 as_fn_append ac_func_list " fpathconf"
3192 as_fn_append ac_func_list " select"
3193 as_fn_append ac_func_list " euidaccess"
3194 as_fn_append ac_func_list " getpagesize"
3195 as_fn_append ac_func_list " setlocale"
3196 as_fn_append ac_func_list " utimes"
3197 as_fn_append ac_func_list " getrlimit"
3198 as_fn_append ac_func_list " setrlimit"
3199 as_fn_append ac_func_list " setpgid"
3200 as_fn_append ac_func_list " getcwd"
3201 as_fn_append ac_func_list " getwd"
3202 as_fn_append ac_func_list " shutdown"
3203 as_fn_append ac_func_list " getaddrinfo"
3204 as_fn_append ac_func_list " __fpending"
3205 as_fn_append ac_func_list " strsignal"
3206 as_fn_append ac_func_list " setitimer"
3207 as_fn_append ac_func_list " sendto"
3208 as_fn_append ac_func_list " recvfrom"
3209 as_fn_append ac_func_list " getsockname"
3210 as_fn_append ac_func_list " getpeername"
3211 as_fn_append ac_func_list " getifaddrs"
3212 as_fn_append ac_func_list " freeifaddrs"
3213 as_fn_append ac_func_list " gai_strerror"
3214 as_fn_append ac_func_list " mkstemp"
3215 as_fn_append ac_func_list " getline"
3216 as_fn_append ac_func_list " getdelim"
3217 as_fn_append ac_func_list " fsync"
3218 as_fn_append ac_func_list " sync"
3219 as_fn_append ac_func_list " difftime"
3220 as_fn_append ac_func_list " posix_memalign"
3221 as_fn_append ac_func_list " getpwent"
3222 as_fn_append ac_func_list " endpwent"
3223 as_fn_append ac_func_list " getgrent"
3224 as_fn_append ac_func_list " endgrent"
3225 as_fn_append ac_func_list " touchlock"
3226 as_fn_append ac_func_list " cfmakeraw"
3227 as_fn_append ac_func_list " cfsetspeed"
3228 as_fn_append ac_func_list " copysign"
3229 as_fn_append ac_func_list " __executable_start"
3230 as_fn_append ac_header_list " sys/un.h"
3231 as_fn_append ac_func_list " grantpt"
3232 as_fn_append ac_func_list " getpt"
3233 as_fn_append ac_func_list " tzset"
3234 as_fn_append ac_func_list " snprintf"
3235 as_fn_append ac_func_list " readlinkat"
3236 gl_getopt_required=GNU
3237 as_fn_append ac_header_list " getopt.h"
3238 as_fn_append ac_header_list " wchar.h"
3239 as_fn_append ac_header_list " stdint.h"
3240 as_fn_append ac_header_list " inttypes.h"
3241 as_fn_append ac_func_list " lstat"
3242 as_fn_append ac_func_list " alarm"
3243 as_fn_append ac_func_list " pthread_sigmask"
3244 as_fn_append ac_func_list " readlink"
3245 as_fn_append ac_func_list " strtoimax"
3246 as_fn_append ac_func_list " strtoumax"
3247 as_fn_append ac_func_list " symlink"
3248 as_fn_append ac_header_list " sys/stat.h"
3249 as_fn_append ac_func_list " localtime_r"
3250 # Check that the precious variables saved in the cache have kept the same
3251 # value.
3252 ac_cache_corrupted=false
3253 for ac_var in $ac_precious_vars; do
3254 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3255 eval ac_new_set=\$ac_env_${ac_var}_set
3256 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3257 eval ac_new_val=\$ac_env_${ac_var}_value
3258 case $ac_old_set,$ac_new_set in
3259 set,)
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3261 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3262 ac_cache_corrupted=: ;;
3263 ,set)
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3265 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3266 ac_cache_corrupted=: ;;
3267 ,);;
3269 if test "x$ac_old_val" != "x$ac_new_val"; then
3270 # differences in whitespace do not lead to failure.
3271 ac_old_val_w=`echo x $ac_old_val`
3272 ac_new_val_w=`echo x $ac_new_val`
3273 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3274 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3275 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3276 ac_cache_corrupted=:
3277 else
3278 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3279 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3280 eval $ac_var=\$ac_old_val
3282 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3283 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3284 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3285 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3286 fi;;
3287 esac
3288 # Pass precious variables to config.status.
3289 if test "$ac_new_set" = set; then
3290 case $ac_new_val in
3291 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3292 *) ac_arg=$ac_var=$ac_new_val ;;
3293 esac
3294 case " $ac_configure_args " in
3295 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3296 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3297 esac
3299 done
3300 if $ac_cache_corrupted; then
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3302 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3304 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3305 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3307 ## -------------------- ##
3308 ## Main body of script. ##
3309 ## -------------------- ##
3311 ac_ext=c
3312 ac_cpp='$CPP $CPPFLAGS'
3313 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3314 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3315 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3318 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
3321 ac_aux_dir=
3322 for ac_dir in build-aux "$srcdir"/build-aux; do
3323 for ac_t in install-sh install.sh shtool; do
3324 if test -f "$ac_dir/$ac_t"; then
3325 ac_aux_dir=$ac_dir
3326 ac_install_sh="$ac_aux_dir/$ac_t -c"
3327 break 2
3329 done
3330 done
3331 if test -z "$ac_aux_dir"; then
3332 as_fn_error "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
3335 # These three variables are undocumented and unsupported,
3336 # and are intended to be withdrawn in a future Autoconf release.
3337 # They can cause serious problems if a builder's source tree is in a directory
3338 # whose full name contains unusual characters.
3339 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3340 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3341 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3344 am__api_version='1.11'
3346 # Find a good install program. We prefer a C program (faster),
3347 # so one script is as good as another. But avoid the broken or
3348 # incompatible versions:
3349 # SysV /etc/install, /usr/sbin/install
3350 # SunOS /usr/etc/install
3351 # IRIX /sbin/install
3352 # AIX /bin/install
3353 # AmigaOS /C/install, which installs bootblocks on floppy discs
3354 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3355 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3356 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3357 # OS/2's system install, which has a completely different semantic
3358 # ./install, which can be erroneously created by make from ./install.sh.
3359 # Reject install programs that cannot install multiple files.
3360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3361 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3362 if test -z "$INSTALL"; then
3363 if test "${ac_cv_path_install+set}" = set; then :
3364 $as_echo_n "(cached) " >&6
3365 else
3366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3367 for as_dir in $PATH
3369 IFS=$as_save_IFS
3370 test -z "$as_dir" && as_dir=.
3371 # Account for people who put trailing slashes in PATH elements.
3372 case $as_dir/ in #((
3373 ./ | .// | /[cC]/* | \
3374 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3375 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3376 /usr/ucb/* ) ;;
3378 # OSF1 and SCO ODT 3.0 have their own names for install.
3379 # Don't use installbsd from OSF since it installs stuff as root
3380 # by default.
3381 for ac_prog in ginstall scoinst install; do
3382 for ac_exec_ext in '' $ac_executable_extensions; do
3383 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3384 if test $ac_prog = install &&
3385 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3386 # AIX install. It has an incompatible calling convention.
3388 elif test $ac_prog = install &&
3389 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3390 # program-specific install script used by HP pwplus--don't use.
3392 else
3393 rm -rf conftest.one conftest.two conftest.dir
3394 echo one > conftest.one
3395 echo two > conftest.two
3396 mkdir conftest.dir
3397 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3398 test -s conftest.one && test -s conftest.two &&
3399 test -s conftest.dir/conftest.one &&
3400 test -s conftest.dir/conftest.two
3401 then
3402 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3403 break 3
3407 done
3408 done
3410 esac
3412 done
3413 IFS=$as_save_IFS
3415 rm -rf conftest.one conftest.two conftest.dir
3418 if test "${ac_cv_path_install+set}" = set; then
3419 INSTALL=$ac_cv_path_install
3420 else
3421 # As a last resort, use the slow shell script. Don't cache a
3422 # value for INSTALL within a source directory, because that will
3423 # break other packages using the cache if that directory is
3424 # removed, or if the value is a relative name.
3425 INSTALL=$ac_install_sh
3428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3429 $as_echo "$INSTALL" >&6; }
3431 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3432 # It thinks the first close brace ends the variable substitution.
3433 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3435 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3437 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3440 $as_echo_n "checking whether build environment is sane... " >&6; }
3441 # Just in case
3442 sleep 1
3443 echo timestamp > conftest.file
3444 # Reject unsafe characters in $srcdir or the absolute working directory
3445 # name. Accept space and tab only in the latter.
3446 am_lf='
3448 case `pwd` in
3449 *[\\\"\#\$\&\'\`$am_lf]*)
3450 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3451 esac
3452 case $srcdir in
3453 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3454 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3455 esac
3457 # Do `set' in a subshell so we don't clobber the current shell's
3458 # arguments. Must try -L first in case configure is actually a
3459 # symlink; some systems play weird games with the mod time of symlinks
3460 # (eg FreeBSD returns the mod time of the symlink's containing
3461 # directory).
3462 if (
3463 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3464 if test "$*" = "X"; then
3465 # -L didn't work.
3466 set X `ls -t "$srcdir/configure" conftest.file`
3468 rm -f conftest.file
3469 if test "$*" != "X $srcdir/configure conftest.file" \
3470 && test "$*" != "X conftest.file $srcdir/configure"; then
3472 # If neither matched, then we have a broken ls. This can happen
3473 # if, for instance, CONFIG_SHELL is bash and it inherits a
3474 # broken ls alias from the environment. This has actually
3475 # happened. Such a system could not be considered "sane".
3476 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3477 alias in your environment" "$LINENO" 5
3480 test "$2" = conftest.file
3482 then
3483 # Ok.
3485 else
3486 as_fn_error "newly created file is older than distributed files!
3487 Check your system clock" "$LINENO" 5
3489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3490 $as_echo "yes" >&6; }
3491 test "$program_prefix" != NONE &&
3492 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3493 # Use a double $ so make ignores it.
3494 test "$program_suffix" != NONE &&
3495 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3496 # Double any \ or $.
3497 # By default was `s,x,x', remove it if useless.
3498 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3499 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3501 # expand $ac_aux_dir to an absolute path
3502 am_aux_dir=`cd $ac_aux_dir && pwd`
3504 if test x"${MISSING+set}" != xset; then
3505 case $am_aux_dir in
3506 *\ * | *\ *)
3507 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3509 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3510 esac
3512 # Use eval to expand $SHELL
3513 if eval "$MISSING --run true"; then
3514 am_missing_run="$MISSING --run "
3515 else
3516 am_missing_run=
3517 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3518 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3521 if test x"${install_sh}" != xset; then
3522 case $am_aux_dir in
3523 *\ * | *\ *)
3524 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3526 install_sh="\${SHELL} $am_aux_dir/install-sh"
3527 esac
3530 # Installed binaries are usually stripped using `strip' when the user
3531 # run `make install-strip'. However `strip' might not be the right
3532 # tool to use in cross-compilation environments, therefore Automake
3533 # will honor the `STRIP' environment variable to overrule this program.
3534 if test "$cross_compiling" != no; then
3535 if test -n "$ac_tool_prefix"; then
3536 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3537 set dummy ${ac_tool_prefix}strip; ac_word=$2
3538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3539 $as_echo_n "checking for $ac_word... " >&6; }
3540 if test "${ac_cv_prog_STRIP+set}" = set; then :
3541 $as_echo_n "(cached) " >&6
3542 else
3543 if test -n "$STRIP"; then
3544 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3545 else
3546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3547 for as_dir in $PATH
3549 IFS=$as_save_IFS
3550 test -z "$as_dir" && as_dir=.
3551 for ac_exec_ext in '' $ac_executable_extensions; do
3552 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3553 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3555 break 2
3557 done
3558 done
3559 IFS=$as_save_IFS
3563 STRIP=$ac_cv_prog_STRIP
3564 if test -n "$STRIP"; then
3565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3566 $as_echo "$STRIP" >&6; }
3567 else
3568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3569 $as_echo "no" >&6; }
3574 if test -z "$ac_cv_prog_STRIP"; then
3575 ac_ct_STRIP=$STRIP
3576 # Extract the first word of "strip", so it can be a program name with args.
3577 set dummy strip; ac_word=$2
3578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3579 $as_echo_n "checking for $ac_word... " >&6; }
3580 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3581 $as_echo_n "(cached) " >&6
3582 else
3583 if test -n "$ac_ct_STRIP"; then
3584 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3585 else
3586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3587 for as_dir in $PATH
3589 IFS=$as_save_IFS
3590 test -z "$as_dir" && as_dir=.
3591 for ac_exec_ext in '' $ac_executable_extensions; do
3592 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3593 ac_cv_prog_ac_ct_STRIP="strip"
3594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3595 break 2
3597 done
3598 done
3599 IFS=$as_save_IFS
3603 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3604 if test -n "$ac_ct_STRIP"; then
3605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3606 $as_echo "$ac_ct_STRIP" >&6; }
3607 else
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3609 $as_echo "no" >&6; }
3612 if test "x$ac_ct_STRIP" = x; then
3613 STRIP=":"
3614 else
3615 case $cross_compiling:$ac_tool_warned in
3616 yes:)
3617 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3618 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3619 ac_tool_warned=yes ;;
3620 esac
3621 STRIP=$ac_ct_STRIP
3623 else
3624 STRIP="$ac_cv_prog_STRIP"
3628 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3631 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3632 if test -z "$MKDIR_P"; then
3633 if test "${ac_cv_path_mkdir+set}" = set; then :
3634 $as_echo_n "(cached) " >&6
3635 else
3636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3637 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3639 IFS=$as_save_IFS
3640 test -z "$as_dir" && as_dir=.
3641 for ac_prog in mkdir gmkdir; do
3642 for ac_exec_ext in '' $ac_executable_extensions; do
3643 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3644 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3645 'mkdir (GNU coreutils) '* | \
3646 'mkdir (coreutils) '* | \
3647 'mkdir (fileutils) '4.1*)
3648 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3649 break 3;;
3650 esac
3651 done
3652 done
3653 done
3654 IFS=$as_save_IFS
3658 test -d ./--version && rmdir ./--version
3659 if test "${ac_cv_path_mkdir+set}" = set; then
3660 MKDIR_P="$ac_cv_path_mkdir -p"
3661 else
3662 # As a last resort, use the slow shell script. Don't cache a
3663 # value for MKDIR_P within a source directory, because that will
3664 # break other packages using the cache if that directory is
3665 # removed, or if the value is a relative name.
3666 MKDIR_P="$ac_install_sh -d"
3669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3670 $as_echo "$MKDIR_P" >&6; }
3673 mkdir_p="$MKDIR_P"
3674 case $mkdir_p in
3675 [\\/$]* | ?:[\\/]*) ;;
3676 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3677 esac
3679 for ac_prog in gawk mawk nawk awk
3681 # Extract the first word of "$ac_prog", so it can be a program name with args.
3682 set dummy $ac_prog; ac_word=$2
3683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3684 $as_echo_n "checking for $ac_word... " >&6; }
3685 if test "${ac_cv_prog_AWK+set}" = set; then :
3686 $as_echo_n "(cached) " >&6
3687 else
3688 if test -n "$AWK"; then
3689 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3690 else
3691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3692 for as_dir in $PATH
3694 IFS=$as_save_IFS
3695 test -z "$as_dir" && as_dir=.
3696 for ac_exec_ext in '' $ac_executable_extensions; do
3697 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3698 ac_cv_prog_AWK="$ac_prog"
3699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3700 break 2
3702 done
3703 done
3704 IFS=$as_save_IFS
3708 AWK=$ac_cv_prog_AWK
3709 if test -n "$AWK"; then
3710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3711 $as_echo "$AWK" >&6; }
3712 else
3713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3714 $as_echo "no" >&6; }
3718 test -n "$AWK" && break
3719 done
3721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3722 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3723 set x ${MAKE-make}
3724 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3725 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3726 $as_echo_n "(cached) " >&6
3727 else
3728 cat >conftest.make <<\_ACEOF
3729 SHELL = /bin/sh
3730 all:
3731 @echo '@@@%%%=$(MAKE)=@@@%%%'
3732 _ACEOF
3733 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3734 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3735 *@@@%%%=?*=@@@%%%*)
3736 eval ac_cv_prog_make_${ac_make}_set=yes;;
3738 eval ac_cv_prog_make_${ac_make}_set=no;;
3739 esac
3740 rm -f conftest.make
3742 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3744 $as_echo "yes" >&6; }
3745 SET_MAKE=
3746 else
3747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3748 $as_echo "no" >&6; }
3749 SET_MAKE="MAKE=${MAKE-make}"
3752 rm -rf .tst 2>/dev/null
3753 mkdir .tst 2>/dev/null
3754 if test -d .tst; then
3755 am__leading_dot=.
3756 else
3757 am__leading_dot=_
3759 rmdir .tst 2>/dev/null
3761 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3762 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3763 # is not polluted with repeated "-I."
3764 am__isrc=' -I$(srcdir)'
3765 # test to see if srcdir already configured
3766 if test -f $srcdir/config.status; then
3767 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3771 # test whether we have cygpath
3772 if test -z "$CYGPATH_W"; then
3773 if (cygpath --version) >/dev/null 2>/dev/null; then
3774 CYGPATH_W='cygpath -w'
3775 else
3776 CYGPATH_W=echo
3781 # Define the identity of the package.
3782 PACKAGE='emacs'
3783 VERSION='24.1.50'
3786 cat >>confdefs.h <<_ACEOF
3787 #define PACKAGE "$PACKAGE"
3788 _ACEOF
3791 cat >>confdefs.h <<_ACEOF
3792 #define VERSION "$VERSION"
3793 _ACEOF
3795 # Some tools Automake needs.
3797 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3800 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3803 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3806 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3809 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3811 # We need awk for the "check" target. The system "awk" is bad on
3812 # some platforms.
3813 # Always define AMTAR for backward compatibility.
3815 AMTAR=${AMTAR-"${am_missing_run}tar"}
3817 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3826 lispdir='${datadir}/emacs/${version}/lisp'
3827 leimdir='${datadir}/emacs/${version}/leim'
3828 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
3829 '${datadir}/emacs/site-lisp'
3830 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
3831 etcdir='${datadir}/emacs/${version}/etc'
3832 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
3833 docdir='${datadir}/emacs/${version}/etc'
3834 gamedir='${localstatedir}/games/emacs'
3839 # Check whether --with-pop was given.
3840 if test "${with_pop+set}" = set; then :
3841 withval=$with_pop;
3842 else
3843 with_pop=yes
3846 if test "$with_pop" = yes; then
3847 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
3852 # Check whether --with-kerberos was given.
3853 if test "${with_kerberos+set}" = set; then :
3854 withval=$with_kerberos;
3855 else
3856 with_kerberos=no
3859 if test "$with_kerberos" != no; then
3860 $as_echo "#define KERBEROS 1" >>confdefs.h
3865 # Check whether --with-kerberos5 was given.
3866 if test "${with_kerberos5+set}" = set; then :
3867 withval=$with_kerberos5;
3868 else
3869 with_kerberos5=no
3872 if test "${with_kerberos5}" != no; then
3873 if test "${with_kerberos}" = no; then
3874 with_kerberos=yes
3875 $as_echo "#define KERBEROS 1" >>confdefs.h
3879 $as_echo "#define KERBEROS5 1" >>confdefs.h
3884 # Check whether --with-hesiod was given.
3885 if test "${with_hesiod+set}" = set; then :
3886 withval=$with_hesiod;
3887 else
3888 with_hesiod=no
3891 if test "$with_hesiod" != no; then
3893 $as_echo "#define HESIOD 1" >>confdefs.h
3898 # Check whether --with-mmdf was given.
3899 if test "${with_mmdf+set}" = set; then :
3900 withval=$with_mmdf;
3901 else
3902 with_mmdf=no
3905 if test "$with_mmdf" != no; then
3907 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
3912 # Check whether --with-mail-unlink was given.
3913 if test "${with_mail_unlink+set}" = set; then :
3914 withval=$with_mail_unlink;
3915 else
3916 with_mail_unlink=no
3919 if test "$with_mail_unlink" != no; then
3921 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
3926 # Check whether --with-mailhost was given.
3927 if test "${with_mailhost+set}" = set; then :
3928 withval=$with_mailhost;
3929 cat >>confdefs.h <<_ACEOF
3930 #define MAILHOST "$withval"
3931 _ACEOF
3937 # Check whether --with-sound was given.
3938 if test "${with_sound+set}" = set; then :
3939 withval=$with_sound;
3940 else
3941 with_sound=yes
3946 # Check whether --with-sync-input was given.
3947 if test "${with_sync_input+set}" = set; then :
3948 withval=$with_sync_input;
3949 else
3950 with_sync_input=yes
3953 if test "$with_sync_input" = yes; then
3955 $as_echo "#define SYNC_INPUT 1" >>confdefs.h
3960 # Check whether --with-x-toolkit was given.
3961 if test "${with_x_toolkit+set}" = set; then :
3962 withval=$with_x_toolkit; case "${withval}" in
3963 y | ye | yes ) val=gtk ;;
3964 n | no ) val=no ;;
3965 l | lu | luc | luci | lucid ) val=lucid ;;
3966 a | at | ath | athe | athen | athena ) val=athena ;;
3967 m | mo | mot | moti | motif ) val=motif ;;
3968 g | gt | gtk ) val=gtk ;;
3969 gtk3 ) val=gtk3 ;;
3971 as_fn_error "\`--with-x-toolkit=$withval' is invalid;
3972 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk' or
3973 \`gtk3'. \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." "$LINENO" 5
3975 esac
3976 with_x_toolkit=$val
3982 # Check whether --with-wide-int was given.
3983 if test "${with_wide_int+set}" = set; then :
3984 withval=$with_wide_int;
3985 else
3986 with_wide_int=no
3989 if test "$with_wide_int" = yes; then
3991 $as_echo "#define WIDE_EMACS_INT 1" >>confdefs.h
3996 # Check whether --with-xpm was given.
3997 if test "${with_xpm+set}" = set; then :
3998 withval=$with_xpm;
3999 else
4000 with_xpm=yes
4004 # Check whether --with-jpeg was given.
4005 if test "${with_jpeg+set}" = set; then :
4006 withval=$with_jpeg;
4007 else
4008 with_jpeg=yes
4012 # Check whether --with-tiff was given.
4013 if test "${with_tiff+set}" = set; then :
4014 withval=$with_tiff;
4015 else
4016 with_tiff=yes
4020 # Check whether --with-gif was given.
4021 if test "${with_gif+set}" = set; then :
4022 withval=$with_gif;
4023 else
4024 with_gif=yes
4028 # Check whether --with-png was given.
4029 if test "${with_png+set}" = set; then :
4030 withval=$with_png;
4031 else
4032 with_png=yes
4036 # Check whether --with-rsvg was given.
4037 if test "${with_rsvg+set}" = set; then :
4038 withval=$with_rsvg;
4039 else
4040 with_rsvg=yes
4044 # Check whether --with-xml2 was given.
4045 if test "${with_xml2+set}" = set; then :
4046 withval=$with_xml2;
4047 else
4048 with_xml2=yes
4052 # Check whether --with-imagemagick was given.
4053 if test "${with_imagemagick+set}" = set; then :
4054 withval=$with_imagemagick;
4055 else
4056 with_imagemagick=yes
4061 # Check whether --with-xft was given.
4062 if test "${with_xft+set}" = set; then :
4063 withval=$with_xft;
4064 else
4065 with_xft=yes
4069 # Check whether --with-libotf was given.
4070 if test "${with_libotf+set}" = set; then :
4071 withval=$with_libotf;
4072 else
4073 with_libotf=yes
4077 # Check whether --with-m17n-flt was given.
4078 if test "${with_m17n_flt+set}" = set; then :
4079 withval=$with_m17n_flt;
4080 else
4081 with_m17n_flt=yes
4086 # Check whether --with-toolkit-scroll-bars was given.
4087 if test "${with_toolkit_scroll_bars+set}" = set; then :
4088 withval=$with_toolkit_scroll_bars;
4089 else
4090 with_toolkit_scroll_bars=yes
4094 # Check whether --with-xaw3d was given.
4095 if test "${with_xaw3d+set}" = set; then :
4096 withval=$with_xaw3d;
4097 else
4098 with_xaw3d=yes
4102 # Check whether --with-xim was given.
4103 if test "${with_xim+set}" = set; then :
4104 withval=$with_xim;
4105 else
4106 with_xim=yes
4110 # Check whether --with-ns was given.
4111 if test "${with_ns+set}" = set; then :
4112 withval=$with_ns;
4113 else
4114 with_ns=no
4119 # Check whether --with-gpm was given.
4120 if test "${with_gpm+set}" = set; then :
4121 withval=$with_gpm;
4122 else
4123 with_gpm=yes
4127 # Check whether --with-dbus was given.
4128 if test "${with_dbus+set}" = set; then :
4129 withval=$with_dbus;
4130 else
4131 with_dbus=yes
4135 # Check whether --with-gconf was given.
4136 if test "${with_gconf+set}" = set; then :
4137 withval=$with_gconf;
4138 else
4139 with_gconf=yes
4143 # Check whether --with-gsettings was given.
4144 if test "${with_gsettings+set}" = set; then :
4145 withval=$with_gsettings;
4146 else
4147 with_gsettings=yes
4151 # Check whether --with-selinux was given.
4152 if test "${with_selinux+set}" = set; then :
4153 withval=$with_selinux;
4154 else
4155 with_selinux=yes
4159 # Check whether --with-gnutls was given.
4160 if test "${with_gnutls+set}" = set; then :
4161 withval=$with_gnutls;
4162 else
4163 with_gnutls=yes
4167 ## For the times when you want to build Emacs but don't have
4168 ## a suitable makeinfo, and can live without the manuals.
4170 # Check whether --with-makeinfo was given.
4171 if test "${with_makeinfo+set}" = set; then :
4172 withval=$with_makeinfo;
4173 else
4174 with_makeinfo=yes
4178 ## Makefile.in needs the cache file name.
4181 ## This is an option because I do not know if all info/man support
4182 ## compressed files, nor how to test if they do so.
4184 # Check whether --with-compress-info was given.
4185 if test "${with_compress_info+set}" = set; then :
4186 withval=$with_compress_info;
4187 else
4188 with_compress_info=yes
4191 if test $with_compress_info = yes; then
4192 GZIP_INFO=yes
4193 else
4194 GZIP_INFO=
4199 # Check whether --with-pkg-config-prog was given.
4200 if test "${with_pkg_config_prog+set}" = set; then :
4201 withval=$with_pkg_config_prog;
4204 if test "X${with_pkg_config_prog}" != X; then
4205 if test "${with_pkg_config_prog}" != yes; then
4206 PKG_CONFIG="${with_pkg_config_prog}"
4210 CRT_DIR=
4212 # Check whether --with-crt-dir was given.
4213 if test "${with_crt_dir+set}" = set; then :
4214 withval=$with_crt_dir;
4217 CRT_DIR="${with_crt_dir}"
4220 # Check whether --with-gameuser was given.
4221 if test "${with_gameuser+set}" = set; then :
4222 withval=$with_gameuser;
4225 test "X${with_gameuser}" != X && test "${with_gameuser}" != yes \
4226 && gameuser="${with_gameuser}"
4227 test "X$gameuser" = X && gameuser=games
4230 # Check whether --with-gnustep-conf was given.
4231 if test "${with_gnustep_conf+set}" = set; then :
4232 withval=$with_gnustep_conf;
4235 test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
4236 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
4237 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
4238 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
4240 # Check whether --enable-ns-self-contained was given.
4241 if test "${enable_ns_self_contained+set}" = set; then :
4242 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
4243 else
4244 EN_NS_SELF_CONTAINED=yes
4248 # Check whether --enable-asserts was given.
4249 if test "${enable_asserts+set}" = set; then :
4250 enableval=$enable_asserts; USE_XASSERTS=$enableval
4251 else
4252 USE_XASSERTS=no
4256 # Check whether --enable-locallisppath was given.
4257 if test "${enable_locallisppath+set}" = set; then :
4258 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
4259 locallisppath=
4260 elif test "${enableval}" != "yes"; then
4261 locallisppath=${enableval}
4266 # Check whether --enable-checking was given.
4267 if test "${enable_checking+set}" = set; then :
4268 enableval=$enable_checking; ac_checking_flags="${enableval}"
4271 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
4272 for check in $ac_checking_flags
4274 case $check in
4275 # these set all the flags to specific states
4276 yes) ac_enable_checking=1 ;;
4277 no) ac_enable_checking= ;
4278 ac_gc_check_stringbytes= ;
4279 ac_gc_check_string_overrun= ;
4280 ac_gc_check_string_free_list= ;
4281 ac_xmalloc_overrun= ;
4282 ac_gc_check_cons_list= ;;
4283 all) ac_enable_checking=1 ;
4284 ac_gc_check_stringbytes=1 ;
4285 ac_gc_check_string_overrun=1 ;
4286 ac_gc_check_string_free_list=1 ;
4287 ac_xmalloc_overrun=1 ;
4288 ac_gc_check_cons_list=1 ;;
4289 # these enable particular checks
4290 stringbytes) ac_gc_check_stringbytes=1 ;;
4291 stringoverrun) ac_gc_check_string_overrun=1 ;;
4292 stringfreelist) ac_gc_check_string_free_list=1 ;;
4293 xmallocoverrun) ac_xmalloc_overrun=1 ;;
4294 conslist) ac_gc_check_cons_list=1 ;;
4295 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
4296 esac
4297 done
4298 IFS="$ac_save_IFS"
4300 if test x$ac_enable_checking != x ; then
4302 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
4305 if test x$ac_gc_check_stringbytes != x ; then
4307 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
4310 if test x$ac_gc_check_string_overrun != x ; then
4312 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
4315 if test x$ac_gc_check_string_free_list != x ; then
4317 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
4320 if test x$ac_xmalloc_overrun != x ; then
4322 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
4325 if test x$ac_gc_check_cons_list != x ; then
4327 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
4331 # Check whether --enable-use-lisp-union-type was given.
4332 if test "${enable_use_lisp_union_type+set}" = set; then :
4333 enableval=$enable_use_lisp_union_type; if test "${enableval}" != "no"; then
4335 $as_echo "#define USE_LISP_UNION_TYPE 1" >>confdefs.h
4342 # Check whether --enable-profiling was given.
4343 if test "${enable_profiling+set}" = set; then :
4344 enableval=$enable_profiling; ac_enable_profiling="${enableval}"
4347 if test x$ac_enable_profiling != x ; then
4348 PROFILING_CFLAGS="-DPROFILING=1 -pg"
4349 else
4350 PROFILING_CFLAGS=
4354 # Check whether --enable-autodepend was given.
4355 if test "${enable_autodepend+set}" = set; then :
4356 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}"
4357 else
4358 ac_enable_autodepend=yes
4362 #### Make srcdir absolute, if it isn't already. It's important to
4363 #### avoid running the path through pwd unnecessarily, since pwd can
4364 #### give you automounter prefixes, which can go away. We do all this
4365 #### so Emacs can find its files when run uninstalled.
4366 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
4367 unset CDPATH
4368 case "${srcdir}" in
4369 /* ) ;;
4371 ## We may be able to use the $PWD environment variable to make this
4372 ## absolute. But sometimes PWD is inaccurate.
4373 ## Note: we used to use ${PWD} at the end instead of `pwd`,
4374 ## but that tested only for a well-formed and valid PWD,
4375 ## it did not object when PWD was well-formed and valid but just wrong.
4376 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
4377 then
4378 srcdir="$PWD"
4379 else
4380 srcdir="`(cd ${srcdir}; pwd)`"
4383 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
4384 esac
4386 #### Given the configuration name, set opsysfile to the
4387 #### name of s/*.h file we should use.
4389 ### Canonicalize the configuration name.
4391 # Make sure we can run config.sub.
4392 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4393 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4396 $as_echo_n "checking build system type... " >&6; }
4397 if test "${ac_cv_build+set}" = set; then :
4398 $as_echo_n "(cached) " >&6
4399 else
4400 ac_build_alias=$build_alias
4401 test "x$ac_build_alias" = x &&
4402 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4403 test "x$ac_build_alias" = x &&
4404 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4405 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4406 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4410 $as_echo "$ac_cv_build" >&6; }
4411 case $ac_cv_build in
4412 *-*-*) ;;
4413 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4414 esac
4415 build=$ac_cv_build
4416 ac_save_IFS=$IFS; IFS='-'
4417 set x $ac_cv_build
4418 shift
4419 build_cpu=$1
4420 build_vendor=$2
4421 shift; shift
4422 # Remember, the first character of IFS is used to create $*,
4423 # except with old shells:
4424 build_os=$*
4425 IFS=$ac_save_IFS
4426 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4430 $as_echo_n "checking host system type... " >&6; }
4431 if test "${ac_cv_host+set}" = set; then :
4432 $as_echo_n "(cached) " >&6
4433 else
4434 if test "x$host_alias" = x; then
4435 ac_cv_host=$ac_cv_build
4436 else
4437 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4438 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4443 $as_echo "$ac_cv_host" >&6; }
4444 case $ac_cv_host in
4445 *-*-*) ;;
4446 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4447 esac
4448 host=$ac_cv_host
4449 ac_save_IFS=$IFS; IFS='-'
4450 set x $ac_cv_host
4451 shift
4452 host_cpu=$1
4453 host_vendor=$2
4454 shift; shift
4455 # Remember, the first character of IFS is used to create $*,
4456 # except with old shells:
4457 host_os=$*
4458 IFS=$ac_save_IFS
4459 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4462 canonical=$host
4463 configuration=${host_alias-${build_alias-$host}}
4467 ### If you add support for a new configuration, add code to this
4468 ### switch statement to recognize your configuration name and select
4469 ### the appropriate operating system file.
4471 ### You would hope that you could choose an s/*.h
4472 ### file based on the operating system portion. However, it turns out
4473 ### that each s/*.h file is pretty manufacturer-specific.
4474 ### So we basically have to have a special case for each
4475 ### configuration name.
4477 ### As far as handling version numbers on operating systems is
4478 ### concerned, make sure things will fail in a fixable way. If
4479 ### /etc/MACHINES doesn't say anything about version numbers, be
4480 ### prepared to handle anything reasonably. If version numbers
4481 ### matter, be sure /etc/MACHINES says something about it.
4483 opsys='' unported=no
4484 case "${canonical}" in
4486 ## GNU/Linux and similar ports
4487 *-*-linux* )
4488 opsys=gnu-linux
4491 ## FreeBSD ports
4492 *-*-freebsd* )
4493 opsys=freebsd
4496 ## FreeBSD kernel + glibc based userland
4497 *-*-kfreebsd*gnu* )
4498 opsys=gnu-kfreebsd
4501 ## NetBSD ports
4502 *-*-netbsd* )
4503 opsys=netbsd
4506 ## OpenBSD ports
4507 *-*-openbsd* )
4508 opsys=openbsd
4511 ## Apple Darwin / Mac OS X
4512 *-apple-darwin* )
4513 case "${canonical}" in
4514 i[3456]86-* ) ;;
4515 powerpc-* ) ;;
4516 x86_64-* ) ;;
4517 * ) unported=yes ;;
4518 esac
4519 opsys=darwin
4520 ## Use fink packages if available.
4521 ## FIXME find a better way to do this: http://debbugs.gnu.org/11507
4522 ## if test -d /sw/include && test -d /sw/lib; then
4523 ## GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
4524 ## NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
4525 ## fi
4528 ## HP 9000 series 700 and 800, running HP/UX
4529 hppa*-hp-hpux10.2* )
4530 opsys=hpux10-20
4532 hppa*-hp-hpux1[1-9]* )
4533 opsys=hpux11
4534 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
4537 ## IBM machines
4538 rs6000-ibm-aix4.[23]* )
4539 opsys=aix4-2
4541 powerpc-ibm-aix4.[23]* )
4542 opsys=aix4-2
4544 rs6000-ibm-aix[56]* )
4545 opsys=aix4-2
4547 powerpc-ibm-aix[56]* )
4548 opsys=aix4-2
4551 ## Silicon Graphics machines
4552 ## Iris 4D
4553 mips-sgi-irix6.5 )
4554 opsys=irix6-5
4555 # Without defining _LANGUAGE_C, things get masked out in the headers
4556 # so that, for instance, grepping for `free' in stdlib.h fails and
4557 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
4558 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
4561 ## Suns
4562 *-sun-solaris* \
4563 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* \
4564 | x86_64-*-solaris2* | x86_64-*-sunos5*)
4565 case "${canonical}" in
4566 i[3456]86-*-* ) ;;
4567 amd64-*-*|x86_64-*-*) ;;
4568 sparc* ) ;;
4569 * ) unported=yes ;;
4570 esac
4571 case "${canonical}" in
4572 *-sunos5.6* | *-solaris2.6* )
4573 opsys=sol2-6
4574 RANLIB="ar -ts"
4576 *-sunos5.[7-9]* | *-solaris2.[7-9]* )
4577 opsys=sol2-6
4578 emacs_check_sunpro_c=yes
4580 *-sunos5* | *-solaris* )
4581 opsys=sol2-10
4582 emacs_check_sunpro_c=yes
4584 esac
4585 ## Watch out for a compiler that we know will not work.
4586 case "${canonical}" in
4587 *-solaris* | *-sunos5* )
4588 if [ "x$CC" = x/usr/ucb/cc ]; then
4589 ## /usr/ucb/cc doesn't work;
4590 ## we should find some other compiler that does work.
4591 unset CC
4594 *) ;;
4595 esac
4598 ## Intel 386 machines where we don't care about the manufacturer.
4599 i[3456]86-*-* )
4600 case "${canonical}" in
4601 *-cygwin ) opsys=cygwin ;;
4602 *-darwin* ) opsys=darwin ;;
4603 *-sysv4.2uw* ) opsys=unixware ;;
4604 *-sysv5uw* ) opsys=unixware ;;
4605 *-sysv5OpenUNIX* ) opsys=unixware ;;
4606 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
4607 esac
4611 unported=yes
4613 esac
4615 ### If the code above didn't choose an operating system, just choose
4616 ### an operating system based on the configuration name. You really
4617 ### only want to use this when you have no idea what the right
4618 ### operating system is; if you know what operating systems a machine
4619 ### runs, it's cleaner to make it explicit in the case statement
4620 ### above.
4621 if test x"${opsys}" = x; then
4622 case "${canonical}" in
4623 *-gnu* ) opsys=gnu ;;
4625 unported=yes
4627 esac
4632 if test $unported = yes; then
4633 as_fn_error "Emacs hasn't been ported to \`${canonical}' systems.
4634 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
4637 opsysfile="s/${opsys}.h"
4640 #### Choose a compiler.
4642 ac_ext=c
4643 ac_cpp='$CPP $CPPFLAGS'
4644 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4645 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4646 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4647 if test -n "$ac_tool_prefix"; then
4648 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4649 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4651 $as_echo_n "checking for $ac_word... " >&6; }
4652 if test "${ac_cv_prog_CC+set}" = set; then :
4653 $as_echo_n "(cached) " >&6
4654 else
4655 if test -n "$CC"; then
4656 ac_cv_prog_CC="$CC" # Let the user override the test.
4657 else
4658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4659 for as_dir in $PATH
4661 IFS=$as_save_IFS
4662 test -z "$as_dir" && as_dir=.
4663 for ac_exec_ext in '' $ac_executable_extensions; do
4664 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4665 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4667 break 2
4669 done
4670 done
4671 IFS=$as_save_IFS
4675 CC=$ac_cv_prog_CC
4676 if test -n "$CC"; then
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4678 $as_echo "$CC" >&6; }
4679 else
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4681 $as_echo "no" >&6; }
4686 if test -z "$ac_cv_prog_CC"; then
4687 ac_ct_CC=$CC
4688 # Extract the first word of "gcc", so it can be a program name with args.
4689 set dummy gcc; ac_word=$2
4690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4691 $as_echo_n "checking for $ac_word... " >&6; }
4692 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4693 $as_echo_n "(cached) " >&6
4694 else
4695 if test -n "$ac_ct_CC"; then
4696 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4697 else
4698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4699 for as_dir in $PATH
4701 IFS=$as_save_IFS
4702 test -z "$as_dir" && as_dir=.
4703 for ac_exec_ext in '' $ac_executable_extensions; do
4704 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4705 ac_cv_prog_ac_ct_CC="gcc"
4706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4707 break 2
4709 done
4710 done
4711 IFS=$as_save_IFS
4715 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4716 if test -n "$ac_ct_CC"; then
4717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4718 $as_echo "$ac_ct_CC" >&6; }
4719 else
4720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4721 $as_echo "no" >&6; }
4724 if test "x$ac_ct_CC" = x; then
4725 CC=""
4726 else
4727 case $cross_compiling:$ac_tool_warned in
4728 yes:)
4729 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4730 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4731 ac_tool_warned=yes ;;
4732 esac
4733 CC=$ac_ct_CC
4735 else
4736 CC="$ac_cv_prog_CC"
4739 if test -z "$CC"; then
4740 if test -n "$ac_tool_prefix"; then
4741 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4742 set dummy ${ac_tool_prefix}cc; ac_word=$2
4743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4744 $as_echo_n "checking for $ac_word... " >&6; }
4745 if test "${ac_cv_prog_CC+set}" = set; then :
4746 $as_echo_n "(cached) " >&6
4747 else
4748 if test -n "$CC"; then
4749 ac_cv_prog_CC="$CC" # Let the user override the test.
4750 else
4751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4752 for as_dir in $PATH
4754 IFS=$as_save_IFS
4755 test -z "$as_dir" && as_dir=.
4756 for ac_exec_ext in '' $ac_executable_extensions; do
4757 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4758 ac_cv_prog_CC="${ac_tool_prefix}cc"
4759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4760 break 2
4762 done
4763 done
4764 IFS=$as_save_IFS
4768 CC=$ac_cv_prog_CC
4769 if test -n "$CC"; then
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4771 $as_echo "$CC" >&6; }
4772 else
4773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4774 $as_echo "no" >&6; }
4780 if test -z "$CC"; then
4781 # Extract the first word of "cc", so it can be a program name with args.
4782 set dummy cc; ac_word=$2
4783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4784 $as_echo_n "checking for $ac_word... " >&6; }
4785 if test "${ac_cv_prog_CC+set}" = set; then :
4786 $as_echo_n "(cached) " >&6
4787 else
4788 if test -n "$CC"; then
4789 ac_cv_prog_CC="$CC" # Let the user override the test.
4790 else
4791 ac_prog_rejected=no
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 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4800 ac_prog_rejected=yes
4801 continue
4803 ac_cv_prog_CC="cc"
4804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4805 break 2
4807 done
4808 done
4809 IFS=$as_save_IFS
4811 if test $ac_prog_rejected = yes; then
4812 # We found a bogon in the path, so make sure we never use it.
4813 set dummy $ac_cv_prog_CC
4814 shift
4815 if test $# != 0; then
4816 # We chose a different compiler from the bogus one.
4817 # However, it has the same basename, so the bogon will be chosen
4818 # first if we set CC to just the basename; use the full file name.
4819 shift
4820 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4825 CC=$ac_cv_prog_CC
4826 if test -n "$CC"; then
4827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4828 $as_echo "$CC" >&6; }
4829 else
4830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4831 $as_echo "no" >&6; }
4836 if test -z "$CC"; then
4837 if test -n "$ac_tool_prefix"; then
4838 for ac_prog in cl.exe
4840 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4841 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4843 $as_echo_n "checking for $ac_word... " >&6; }
4844 if test "${ac_cv_prog_CC+set}" = set; then :
4845 $as_echo_n "(cached) " >&6
4846 else
4847 if test -n "$CC"; then
4848 ac_cv_prog_CC="$CC" # Let the user override the test.
4849 else
4850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4851 for as_dir in $PATH
4853 IFS=$as_save_IFS
4854 test -z "$as_dir" && as_dir=.
4855 for ac_exec_ext in '' $ac_executable_extensions; do
4856 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4857 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4859 break 2
4861 done
4862 done
4863 IFS=$as_save_IFS
4867 CC=$ac_cv_prog_CC
4868 if test -n "$CC"; then
4869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4870 $as_echo "$CC" >&6; }
4871 else
4872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4873 $as_echo "no" >&6; }
4877 test -n "$CC" && break
4878 done
4880 if test -z "$CC"; then
4881 ac_ct_CC=$CC
4882 for ac_prog in cl.exe
4884 # Extract the first word of "$ac_prog", so it can be a program name with args.
4885 set dummy $ac_prog; ac_word=$2
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4887 $as_echo_n "checking for $ac_word... " >&6; }
4888 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4889 $as_echo_n "(cached) " >&6
4890 else
4891 if test -n "$ac_ct_CC"; then
4892 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4893 else
4894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4895 for as_dir in $PATH
4897 IFS=$as_save_IFS
4898 test -z "$as_dir" && as_dir=.
4899 for ac_exec_ext in '' $ac_executable_extensions; do
4900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4901 ac_cv_prog_ac_ct_CC="$ac_prog"
4902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4903 break 2
4905 done
4906 done
4907 IFS=$as_save_IFS
4911 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4912 if test -n "$ac_ct_CC"; then
4913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4914 $as_echo "$ac_ct_CC" >&6; }
4915 else
4916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4917 $as_echo "no" >&6; }
4921 test -n "$ac_ct_CC" && break
4922 done
4924 if test "x$ac_ct_CC" = x; then
4925 CC=""
4926 else
4927 case $cross_compiling:$ac_tool_warned in
4928 yes:)
4929 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4930 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4931 ac_tool_warned=yes ;;
4932 esac
4933 CC=$ac_ct_CC
4940 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4941 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4942 as_fn_error "no acceptable C compiler found in \$PATH
4943 See \`config.log' for more details." "$LINENO" 5; }
4945 # Provide some information about the compiler.
4946 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4947 set X $ac_compile
4948 ac_compiler=$2
4949 for ac_option in --version -v -V -qversion; do
4950 { { ac_try="$ac_compiler $ac_option >&5"
4951 case "(($ac_try" in
4952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4953 *) ac_try_echo=$ac_try;;
4954 esac
4955 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4956 $as_echo "$ac_try_echo"; } >&5
4957 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4958 ac_status=$?
4959 if test -s conftest.err; then
4960 sed '10a\
4961 ... rest of stderr output deleted ...
4962 10q' conftest.err >conftest.er1
4963 cat conftest.er1 >&5
4965 rm -f conftest.er1 conftest.err
4966 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4967 test $ac_status = 0; }
4968 done
4970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4971 /* end confdefs.h. */
4974 main ()
4978 return 0;
4980 _ACEOF
4981 ac_clean_files_save=$ac_clean_files
4982 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4983 # Try to create an executable without -o first, disregard a.out.
4984 # It will help us diagnose broken compilers, and finding out an intuition
4985 # of exeext.
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4987 $as_echo_n "checking whether the C compiler works... " >&6; }
4988 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4990 # The possible output files:
4991 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4993 ac_rmfiles=
4994 for ac_file in $ac_files
4996 case $ac_file in
4997 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4998 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4999 esac
5000 done
5001 rm -f $ac_rmfiles
5003 if { { ac_try="$ac_link_default"
5004 case "(($ac_try" in
5005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5006 *) ac_try_echo=$ac_try;;
5007 esac
5008 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5009 $as_echo "$ac_try_echo"; } >&5
5010 (eval "$ac_link_default") 2>&5
5011 ac_status=$?
5012 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5013 test $ac_status = 0; }; then :
5014 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
5015 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
5016 # in a Makefile. We should not override ac_cv_exeext if it was cached,
5017 # so that the user can short-circuit this test for compilers unknown to
5018 # Autoconf.
5019 for ac_file in $ac_files ''
5021 test -f "$ac_file" || continue
5022 case $ac_file in
5023 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
5025 [ab].out )
5026 # We found the default executable, but exeext='' is most
5027 # certainly right.
5028 break;;
5029 *.* )
5030 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
5031 then :; else
5032 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5034 # We set ac_cv_exeext here because the later test for it is not
5035 # safe: cross compilers may not add the suffix if given an `-o'
5036 # argument, so we may need to know it at that point already.
5037 # Even if this section looks crufty: it has the advantage of
5038 # actually working.
5039 break;;
5041 break;;
5042 esac
5043 done
5044 test "$ac_cv_exeext" = no && ac_cv_exeext=
5046 else
5047 ac_file=''
5049 if test -z "$ac_file"; then :
5050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5051 $as_echo "no" >&6; }
5052 $as_echo "$as_me: failed program was:" >&5
5053 sed 's/^/| /' conftest.$ac_ext >&5
5055 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5056 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5057 { as_fn_set_status 77
5058 as_fn_error "C compiler cannot create executables
5059 See \`config.log' for more details." "$LINENO" 5; }; }
5060 else
5061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5062 $as_echo "yes" >&6; }
5064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5065 $as_echo_n "checking for C compiler default output file name... " >&6; }
5066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5067 $as_echo "$ac_file" >&6; }
5068 ac_exeext=$ac_cv_exeext
5070 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
5071 ac_clean_files=$ac_clean_files_save
5072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5073 $as_echo_n "checking for suffix of executables... " >&6; }
5074 if { { ac_try="$ac_link"
5075 case "(($ac_try" in
5076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5077 *) ac_try_echo=$ac_try;;
5078 esac
5079 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5080 $as_echo "$ac_try_echo"; } >&5
5081 (eval "$ac_link") 2>&5
5082 ac_status=$?
5083 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5084 test $ac_status = 0; }; then :
5085 # If both `conftest.exe' and `conftest' are `present' (well, observable)
5086 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
5087 # work properly (i.e., refer to `conftest.exe'), while it won't with
5088 # `rm'.
5089 for ac_file in conftest.exe conftest conftest.*; do
5090 test -f "$ac_file" || continue
5091 case $ac_file in
5092 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5093 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5094 break;;
5095 * ) break;;
5096 esac
5097 done
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 compute suffix of executables: cannot compile and link
5102 See \`config.log' for more details." "$LINENO" 5; }
5104 rm -f conftest conftest$ac_cv_exeext
5105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5106 $as_echo "$ac_cv_exeext" >&6; }
5108 rm -f conftest.$ac_ext
5109 EXEEXT=$ac_cv_exeext
5110 ac_exeext=$EXEEXT
5111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5112 /* end confdefs.h. */
5113 #include <stdio.h>
5115 main ()
5117 FILE *f = fopen ("conftest.out", "w");
5118 return ferror (f) || fclose (f) != 0;
5121 return 0;
5123 _ACEOF
5124 ac_clean_files="$ac_clean_files conftest.out"
5125 # Check that the compiler produces executables we can run. If not, either
5126 # the compiler is broken, or we cross compile.
5127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5128 $as_echo_n "checking whether we are cross compiling... " >&6; }
5129 if test "$cross_compiling" != yes; then
5130 { { ac_try="$ac_link"
5131 case "(($ac_try" in
5132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5133 *) ac_try_echo=$ac_try;;
5134 esac
5135 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5136 $as_echo "$ac_try_echo"; } >&5
5137 (eval "$ac_link") 2>&5
5138 ac_status=$?
5139 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5140 test $ac_status = 0; }
5141 if { ac_try='./conftest$ac_cv_exeext'
5142 { { case "(($ac_try" in
5143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5144 *) ac_try_echo=$ac_try;;
5145 esac
5146 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5147 $as_echo "$ac_try_echo"; } >&5
5148 (eval "$ac_try") 2>&5
5149 ac_status=$?
5150 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5151 test $ac_status = 0; }; }; then
5152 cross_compiling=no
5153 else
5154 if test "$cross_compiling" = maybe; then
5155 cross_compiling=yes
5156 else
5157 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5158 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5159 as_fn_error "cannot run C compiled programs.
5160 If you meant to cross compile, use \`--host'.
5161 See \`config.log' for more details." "$LINENO" 5; }
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5166 $as_echo "$cross_compiling" >&6; }
5168 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5169 ac_clean_files=$ac_clean_files_save
5170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5171 $as_echo_n "checking for suffix of object files... " >&6; }
5172 if test "${ac_cv_objext+set}" = set; then :
5173 $as_echo_n "(cached) " >&6
5174 else
5175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5176 /* end confdefs.h. */
5179 main ()
5183 return 0;
5185 _ACEOF
5186 rm -f conftest.o conftest.obj
5187 if { { ac_try="$ac_compile"
5188 case "(($ac_try" in
5189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5190 *) ac_try_echo=$ac_try;;
5191 esac
5192 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5193 $as_echo "$ac_try_echo"; } >&5
5194 (eval "$ac_compile") 2>&5
5195 ac_status=$?
5196 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5197 test $ac_status = 0; }; then :
5198 for ac_file in conftest.o conftest.obj conftest.*; do
5199 test -f "$ac_file" || continue;
5200 case $ac_file in
5201 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5202 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5203 break;;
5204 esac
5205 done
5206 else
5207 $as_echo "$as_me: failed program was:" >&5
5208 sed 's/^/| /' conftest.$ac_ext >&5
5210 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5211 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5212 as_fn_error "cannot compute suffix of object files: cannot compile
5213 See \`config.log' for more details." "$LINENO" 5; }
5215 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5218 $as_echo "$ac_cv_objext" >&6; }
5219 OBJEXT=$ac_cv_objext
5220 ac_objext=$OBJEXT
5221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5222 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5223 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5224 $as_echo_n "(cached) " >&6
5225 else
5226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5227 /* end confdefs.h. */
5230 main ()
5232 #ifndef __GNUC__
5233 choke me
5234 #endif
5237 return 0;
5239 _ACEOF
5240 if ac_fn_c_try_compile "$LINENO"; then :
5241 ac_compiler_gnu=yes
5242 else
5243 ac_compiler_gnu=no
5245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5246 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5250 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5251 if test $ac_compiler_gnu = yes; then
5252 GCC=yes
5253 else
5254 GCC=
5256 ac_test_CFLAGS=${CFLAGS+set}
5257 ac_save_CFLAGS=$CFLAGS
5258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5259 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5260 if test "${ac_cv_prog_cc_g+set}" = set; then :
5261 $as_echo_n "(cached) " >&6
5262 else
5263 ac_save_c_werror_flag=$ac_c_werror_flag
5264 ac_c_werror_flag=yes
5265 ac_cv_prog_cc_g=no
5266 CFLAGS="-g"
5267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5268 /* end confdefs.h. */
5271 main ()
5275 return 0;
5277 _ACEOF
5278 if ac_fn_c_try_compile "$LINENO"; then :
5279 ac_cv_prog_cc_g=yes
5280 else
5281 CFLAGS=""
5282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5283 /* end confdefs.h. */
5286 main ()
5290 return 0;
5292 _ACEOF
5293 if ac_fn_c_try_compile "$LINENO"; then :
5295 else
5296 ac_c_werror_flag=$ac_save_c_werror_flag
5297 CFLAGS="-g"
5298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5299 /* end confdefs.h. */
5302 main ()
5306 return 0;
5308 _ACEOF
5309 if ac_fn_c_try_compile "$LINENO"; then :
5310 ac_cv_prog_cc_g=yes
5312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5317 ac_c_werror_flag=$ac_save_c_werror_flag
5319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5320 $as_echo "$ac_cv_prog_cc_g" >&6; }
5321 if test "$ac_test_CFLAGS" = set; then
5322 CFLAGS=$ac_save_CFLAGS
5323 elif test $ac_cv_prog_cc_g = yes; then
5324 if test "$GCC" = yes; then
5325 CFLAGS="-g -O2"
5326 else
5327 CFLAGS="-g"
5329 else
5330 if test "$GCC" = yes; then
5331 CFLAGS="-O2"
5332 else
5333 CFLAGS=
5336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5337 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5338 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5339 $as_echo_n "(cached) " >&6
5340 else
5341 ac_cv_prog_cc_c89=no
5342 ac_save_CC=$CC
5343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5344 /* end confdefs.h. */
5345 #include <stdarg.h>
5346 #include <stdio.h>
5347 #include <sys/types.h>
5348 #include <sys/stat.h>
5349 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5350 struct buf { int x; };
5351 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5352 static char *e (p, i)
5353 char **p;
5354 int i;
5356 return p[i];
5358 static char *f (char * (*g) (char **, int), char **p, ...)
5360 char *s;
5361 va_list v;
5362 va_start (v,p);
5363 s = g (p, va_arg (v,int));
5364 va_end (v);
5365 return s;
5368 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5369 function prototypes and stuff, but not '\xHH' hex character constants.
5370 These don't provoke an error unfortunately, instead are silently treated
5371 as 'x'. The following induces an error, until -std is added to get
5372 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5373 array size at least. It's necessary to write '\x00'==0 to get something
5374 that's true only with -std. */
5375 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5377 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5378 inside strings and character constants. */
5379 #define FOO(x) 'x'
5380 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5382 int test (int i, double x);
5383 struct s1 {int (*f) (int a);};
5384 struct s2 {int (*f) (double a);};
5385 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5386 int argc;
5387 char **argv;
5389 main ()
5391 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5393 return 0;
5395 _ACEOF
5396 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5397 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5399 CC="$ac_save_CC $ac_arg"
5400 if ac_fn_c_try_compile "$LINENO"; then :
5401 ac_cv_prog_cc_c89=$ac_arg
5403 rm -f core conftest.err conftest.$ac_objext
5404 test "x$ac_cv_prog_cc_c89" != "xno" && break
5405 done
5406 rm -f conftest.$ac_ext
5407 CC=$ac_save_CC
5410 # AC_CACHE_VAL
5411 case "x$ac_cv_prog_cc_c89" in
5413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5414 $as_echo "none needed" >&6; } ;;
5415 xno)
5416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5417 $as_echo "unsupported" >&6; } ;;
5419 CC="$CC $ac_cv_prog_cc_c89"
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5421 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5422 esac
5423 if test "x$ac_cv_prog_cc_c89" != xno; then :
5427 ac_ext=c
5428 ac_cpp='$CPP $CPPFLAGS'
5429 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5430 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5431 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5432 DEPDIR="${am__leading_dot}deps"
5434 ac_config_commands="$ac_config_commands depfiles"
5437 am_make=${MAKE-make}
5438 cat > confinc << 'END'
5439 am__doit:
5440 @echo this is the am__doit target
5441 .PHONY: am__doit
5443 # If we don't find an include directive, just comment out the code.
5444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5445 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5446 am__include="#"
5447 am__quote=
5448 _am_result=none
5449 # First try GNU make style include.
5450 echo "include confinc" > confmf
5451 # Ignore all kinds of additional output from `make'.
5452 case `$am_make -s -f confmf 2> /dev/null` in #(
5453 *the\ am__doit\ target*)
5454 am__include=include
5455 am__quote=
5456 _am_result=GNU
5458 esac
5459 # Now try BSD make style include.
5460 if test "$am__include" = "#"; then
5461 echo '.include "confinc"' > confmf
5462 case `$am_make -s -f confmf 2> /dev/null` in #(
5463 *the\ am__doit\ target*)
5464 am__include=.include
5465 am__quote="\""
5466 _am_result=BSD
5468 esac
5472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5473 $as_echo "$_am_result" >&6; }
5474 rm -f confinc confmf
5476 # Check whether --enable-dependency-tracking was given.
5477 if test "${enable_dependency_tracking+set}" = set; then :
5478 enableval=$enable_dependency_tracking;
5481 if test "x$enable_dependency_tracking" != xno; then
5482 am_depcomp="$ac_aux_dir/depcomp"
5483 AMDEPBACKSLASH='\'
5485 if test "x$enable_dependency_tracking" != xno; then
5486 AMDEP_TRUE=
5487 AMDEP_FALSE='#'
5488 else
5489 AMDEP_TRUE='#'
5490 AMDEP_FALSE=
5495 depcc="$CC" am_compiler_list=
5497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5498 $as_echo_n "checking dependency style of $depcc... " >&6; }
5499 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5500 $as_echo_n "(cached) " >&6
5501 else
5502 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5503 # We make a subdir and do the tests there. Otherwise we can end up
5504 # making bogus files that we don't know about and never remove. For
5505 # instance it was reported that on HP-UX the gcc test will end up
5506 # making a dummy file named `D' -- because `-MD' means `put the output
5507 # in D'.
5508 mkdir conftest.dir
5509 # Copy depcomp to subdir because otherwise we won't find it if we're
5510 # using a relative directory.
5511 cp "$am_depcomp" conftest.dir
5512 cd conftest.dir
5513 # We will build objects and dependencies in a subdirectory because
5514 # it helps to detect inapplicable dependency modes. For instance
5515 # both Tru64's cc and ICC support -MD to output dependencies as a
5516 # side effect of compilation, but ICC will put the dependencies in
5517 # the current directory while Tru64 will put them in the object
5518 # directory.
5519 mkdir sub
5521 am_cv_CC_dependencies_compiler_type=none
5522 if test "$am_compiler_list" = ""; then
5523 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5525 am__universal=false
5526 case " $depcc " in #(
5527 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5528 esac
5530 for depmode in $am_compiler_list; do
5531 # Setup a source with many dependencies, because some compilers
5532 # like to wrap large dependency lists on column 80 (with \), and
5533 # we should not choose a depcomp mode which is confused by this.
5535 # We need to recreate these files for each test, as the compiler may
5536 # overwrite some of them when testing with obscure command lines.
5537 # This happens at least with the AIX C compiler.
5538 : > sub/conftest.c
5539 for i in 1 2 3 4 5 6; do
5540 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5541 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5542 # Solaris 8's {/usr,}/bin/sh.
5543 touch sub/conftst$i.h
5544 done
5545 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5547 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5548 # mode. It turns out that the SunPro C++ compiler does not properly
5549 # handle `-M -o', and we need to detect this. Also, some Intel
5550 # versions had trouble with output in subdirs
5551 am__obj=sub/conftest.${OBJEXT-o}
5552 am__minus_obj="-o $am__obj"
5553 case $depmode in
5554 gcc)
5555 # This depmode causes a compiler race in universal mode.
5556 test "$am__universal" = false || continue
5558 nosideeffect)
5559 # after this tag, mechanisms are not by side-effect, so they'll
5560 # only be used when explicitly requested
5561 if test "x$enable_dependency_tracking" = xyes; then
5562 continue
5563 else
5564 break
5567 msvisualcpp | msvcmsys)
5568 # This compiler won't grok `-c -o', but also, the minuso test has
5569 # not run yet. These depmodes are late enough in the game, and
5570 # so weak that their functioning should not be impacted.
5571 am__obj=conftest.${OBJEXT-o}
5572 am__minus_obj=
5574 none) break ;;
5575 esac
5576 if depmode=$depmode \
5577 source=sub/conftest.c object=$am__obj \
5578 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5579 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5580 >/dev/null 2>conftest.err &&
5581 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5582 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5583 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5584 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5585 # icc doesn't choke on unknown options, it will just issue warnings
5586 # or remarks (even with -Werror). So we grep stderr for any message
5587 # that says an option was ignored or not supported.
5588 # When given -MP, icc 7.0 and 7.1 complain thusly:
5589 # icc: Command line warning: ignoring option '-M'; no argument required
5590 # The diagnosis changed in icc 8.0:
5591 # icc: Command line remark: option '-MP' not supported
5592 if (grep 'ignoring option' conftest.err ||
5593 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5594 am_cv_CC_dependencies_compiler_type=$depmode
5595 break
5598 done
5600 cd ..
5601 rm -rf conftest.dir
5602 else
5603 am_cv_CC_dependencies_compiler_type=none
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5608 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5609 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5612 test "x$enable_dependency_tracking" != xno \
5613 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5614 am__fastdepCC_TRUE=
5615 am__fastdepCC_FALSE='#'
5616 else
5617 am__fastdepCC_TRUE='#'
5618 am__fastdepCC_FALSE=
5622 if test "x$CC" != xcc; then
5623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5624 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5625 else
5626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5627 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5629 set dummy $CC; ac_cc=`$as_echo "$2" |
5630 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5631 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
5632 $as_echo_n "(cached) " >&6
5633 else
5634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5635 /* end confdefs.h. */
5638 main ()
5642 return 0;
5644 _ACEOF
5645 # Make sure it works both with $CC and with simple cc.
5646 # We do the test twice because some compilers refuse to overwrite an
5647 # existing .o file with -o, though they will create one.
5648 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5649 rm -f conftest2.*
5650 if { { case "(($ac_try" in
5651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5652 *) ac_try_echo=$ac_try;;
5653 esac
5654 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5655 $as_echo "$ac_try_echo"; } >&5
5656 (eval "$ac_try") 2>&5
5657 ac_status=$?
5658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5659 test $ac_status = 0; } &&
5660 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5662 *) ac_try_echo=$ac_try;;
5663 esac
5664 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5665 $as_echo "$ac_try_echo"; } >&5
5666 (eval "$ac_try") 2>&5
5667 ac_status=$?
5668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5669 test $ac_status = 0; };
5670 then
5671 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5672 if test "x$CC" != xcc; then
5673 # Test first that cc exists at all.
5674 if { ac_try='cc -c conftest.$ac_ext >&5'
5675 { { case "(($ac_try" in
5676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5677 *) ac_try_echo=$ac_try;;
5678 esac
5679 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5680 $as_echo "$ac_try_echo"; } >&5
5681 (eval "$ac_try") 2>&5
5682 ac_status=$?
5683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5684 test $ac_status = 0; }; }; then
5685 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5686 rm -f conftest2.*
5687 if { { case "(($ac_try" in
5688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5689 *) ac_try_echo=$ac_try;;
5690 esac
5691 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5692 $as_echo "$ac_try_echo"; } >&5
5693 (eval "$ac_try") 2>&5
5694 ac_status=$?
5695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5696 test $ac_status = 0; } &&
5697 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5699 *) ac_try_echo=$ac_try;;
5700 esac
5701 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5702 $as_echo "$ac_try_echo"; } >&5
5703 (eval "$ac_try") 2>&5
5704 ac_status=$?
5705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5706 test $ac_status = 0; };
5707 then
5708 # cc works too.
5710 else
5711 # cc exists but doesn't like -o.
5712 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5716 else
5717 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5719 rm -f core conftest*
5722 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5724 $as_echo "yes" >&6; }
5725 else
5726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5727 $as_echo "no" >&6; }
5729 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5733 # FIXME: we rely on the cache variable name because
5734 # there is no other way.
5735 set dummy $CC
5736 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5737 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5738 if test "$am_t" != yes; then
5739 # Losing compiler, so override with the script.
5740 # FIXME: It is wrong to rewrite CC.
5741 # But if we don't then we get into trouble of one sort or another.
5742 # A longer-term fix would be to have automake use am__CC in this case,
5743 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5744 CC="$am_aux_dir/compile $CC"
5749 if test x$GCC = xyes; then
5750 test "x$GCC_TEST_OPTIONS" != x && CC="$CC $GCC_TEST_OPTIONS"
5751 else
5752 test "x$NON_GCC_TEST_OPTIONS" != x && CC="$CC $NON_GCC_TEST_OPTIONS"
5755 # Initialize gnulib right after choosing the compiler.
5757 ac_ext=c
5758 ac_cpp='$CPP $CPPFLAGS'
5759 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5760 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5761 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5763 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5764 # On Suns, sometimes $CPP names a directory.
5765 if test -n "$CPP" && test -d "$CPP"; then
5766 CPP=
5768 if test -z "$CPP"; then
5769 if test "${ac_cv_prog_CPP+set}" = set; then :
5770 $as_echo_n "(cached) " >&6
5771 else
5772 # Double quotes because CPP needs to be expanded
5773 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5775 ac_preproc_ok=false
5776 for ac_c_preproc_warn_flag in '' yes
5778 # Use a header file that comes with gcc, so configuring glibc
5779 # with a fresh cross-compiler works.
5780 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5781 # <limits.h> exists even on freestanding compilers.
5782 # On the NeXT, cc -E runs the code through the compiler's parser,
5783 # not just through cpp. "Syntax error" is here to catch this case.
5784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5785 /* end confdefs.h. */
5786 #ifdef __STDC__
5787 # include <limits.h>
5788 #else
5789 # include <assert.h>
5790 #endif
5791 Syntax error
5792 _ACEOF
5793 if ac_fn_c_try_cpp "$LINENO"; then :
5795 else
5796 # Broken: fails on valid input.
5797 continue
5799 rm -f conftest.err conftest.$ac_ext
5801 # OK, works on sane cases. Now check whether nonexistent headers
5802 # can be detected and how.
5803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5804 /* end confdefs.h. */
5805 #include <ac_nonexistent.h>
5806 _ACEOF
5807 if ac_fn_c_try_cpp "$LINENO"; then :
5808 # Broken: success on invalid input.
5809 continue
5810 else
5811 # Passes both tests.
5812 ac_preproc_ok=:
5813 break
5815 rm -f conftest.err conftest.$ac_ext
5817 done
5818 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5819 rm -f conftest.err conftest.$ac_ext
5820 if $ac_preproc_ok; then :
5821 break
5824 done
5825 ac_cv_prog_CPP=$CPP
5828 CPP=$ac_cv_prog_CPP
5829 else
5830 ac_cv_prog_CPP=$CPP
5832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5833 $as_echo "$CPP" >&6; }
5834 ac_preproc_ok=false
5835 for ac_c_preproc_warn_flag in '' yes
5837 # Use a header file that comes with gcc, so configuring glibc
5838 # with a fresh cross-compiler works.
5839 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5840 # <limits.h> exists even on freestanding compilers.
5841 # On the NeXT, cc -E runs the code through the compiler's parser,
5842 # not just through cpp. "Syntax error" is here to catch this case.
5843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5844 /* end confdefs.h. */
5845 #ifdef __STDC__
5846 # include <limits.h>
5847 #else
5848 # include <assert.h>
5849 #endif
5850 Syntax error
5851 _ACEOF
5852 if ac_fn_c_try_cpp "$LINENO"; then :
5854 else
5855 # Broken: fails on valid input.
5856 continue
5858 rm -f conftest.err conftest.$ac_ext
5860 # OK, works on sane cases. Now check whether nonexistent headers
5861 # can be detected and how.
5862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5863 /* end confdefs.h. */
5864 #include <ac_nonexistent.h>
5865 _ACEOF
5866 if ac_fn_c_try_cpp "$LINENO"; then :
5867 # Broken: success on invalid input.
5868 continue
5869 else
5870 # Passes both tests.
5871 ac_preproc_ok=:
5872 break
5874 rm -f conftest.err conftest.$ac_ext
5876 done
5877 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5878 rm -f conftest.err conftest.$ac_ext
5879 if $ac_preproc_ok; then :
5881 else
5882 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5883 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5884 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5885 See \`config.log' for more details." "$LINENO" 5; }
5888 ac_ext=c
5889 ac_cpp='$CPP $CPPFLAGS'
5890 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5891 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5892 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5896 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5897 if test "${ac_cv_path_GREP+set}" = set; then :
5898 $as_echo_n "(cached) " >&6
5899 else
5900 if test -z "$GREP"; then
5901 ac_path_GREP_found=false
5902 # Loop through the user's path and test for each of PROGNAME-LIST
5903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5904 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5906 IFS=$as_save_IFS
5907 test -z "$as_dir" && as_dir=.
5908 for ac_prog in grep ggrep; do
5909 for ac_exec_ext in '' $ac_executable_extensions; do
5910 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5911 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5912 # Check for GNU ac_path_GREP and select it if it is found.
5913 # Check for GNU $ac_path_GREP
5914 case `"$ac_path_GREP" --version 2>&1` in
5915 *GNU*)
5916 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5918 ac_count=0
5919 $as_echo_n 0123456789 >"conftest.in"
5920 while :
5922 cat "conftest.in" "conftest.in" >"conftest.tmp"
5923 mv "conftest.tmp" "conftest.in"
5924 cp "conftest.in" "conftest.nl"
5925 $as_echo 'GREP' >> "conftest.nl"
5926 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5927 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5928 as_fn_arith $ac_count + 1 && ac_count=$as_val
5929 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5930 # Best one so far, save it but keep looking for a better one
5931 ac_cv_path_GREP="$ac_path_GREP"
5932 ac_path_GREP_max=$ac_count
5934 # 10*(2^10) chars as input seems more than enough
5935 test $ac_count -gt 10 && break
5936 done
5937 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5938 esac
5940 $ac_path_GREP_found && break 3
5941 done
5942 done
5943 done
5944 IFS=$as_save_IFS
5945 if test -z "$ac_cv_path_GREP"; then
5946 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5948 else
5949 ac_cv_path_GREP=$GREP
5953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5954 $as_echo "$ac_cv_path_GREP" >&6; }
5955 GREP="$ac_cv_path_GREP"
5958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5959 $as_echo_n "checking for egrep... " >&6; }
5960 if test "${ac_cv_path_EGREP+set}" = set; then :
5961 $as_echo_n "(cached) " >&6
5962 else
5963 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5964 then ac_cv_path_EGREP="$GREP -E"
5965 else
5966 if test -z "$EGREP"; then
5967 ac_path_EGREP_found=false
5968 # Loop through the user's path and test for each of PROGNAME-LIST
5969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5970 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5972 IFS=$as_save_IFS
5973 test -z "$as_dir" && as_dir=.
5974 for ac_prog in egrep; do
5975 for ac_exec_ext in '' $ac_executable_extensions; do
5976 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5977 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5978 # Check for GNU ac_path_EGREP and select it if it is found.
5979 # Check for GNU $ac_path_EGREP
5980 case `"$ac_path_EGREP" --version 2>&1` in
5981 *GNU*)
5982 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5984 ac_count=0
5985 $as_echo_n 0123456789 >"conftest.in"
5986 while :
5988 cat "conftest.in" "conftest.in" >"conftest.tmp"
5989 mv "conftest.tmp" "conftest.in"
5990 cp "conftest.in" "conftest.nl"
5991 $as_echo 'EGREP' >> "conftest.nl"
5992 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5993 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5994 as_fn_arith $ac_count + 1 && ac_count=$as_val
5995 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5996 # Best one so far, save it but keep looking for a better one
5997 ac_cv_path_EGREP="$ac_path_EGREP"
5998 ac_path_EGREP_max=$ac_count
6000 # 10*(2^10) chars as input seems more than enough
6001 test $ac_count -gt 10 && break
6002 done
6003 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6004 esac
6006 $ac_path_EGREP_found && break 3
6007 done
6008 done
6009 done
6010 IFS=$as_save_IFS
6011 if test -z "$ac_cv_path_EGREP"; then
6012 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6014 else
6015 ac_cv_path_EGREP=$EGREP
6020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6021 $as_echo "$ac_cv_path_EGREP" >&6; }
6022 EGREP="$ac_cv_path_EGREP"
6027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
6028 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
6029 if test "${gl_cv_c_amsterdam_compiler+set}" = set; then :
6030 $as_echo_n "(cached) " >&6
6031 else
6033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6034 /* end confdefs.h. */
6036 #ifdef __ACK__
6037 Amsterdam
6038 #endif
6040 _ACEOF
6041 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6042 $EGREP "Amsterdam" >/dev/null 2>&1; then :
6043 gl_cv_c_amsterdam_compiler=yes
6044 else
6045 gl_cv_c_amsterdam_compiler=no
6047 rm -f conftest*
6051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
6052 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
6053 if test -z "$AR"; then
6054 if test $gl_cv_c_amsterdam_compiler = yes; then
6055 AR='cc -c.a'
6056 if test -z "$ARFLAGS"; then
6057 ARFLAGS='-o'
6059 else
6060 if test -n "$ac_tool_prefix"; then
6061 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6062 set dummy ${ac_tool_prefix}ar; ac_word=$2
6063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6064 $as_echo_n "checking for $ac_word... " >&6; }
6065 if test "${ac_cv_prog_AR+set}" = set; then :
6066 $as_echo_n "(cached) " >&6
6067 else
6068 if test -n "$AR"; then
6069 ac_cv_prog_AR="$AR" # Let the user override the test.
6070 else
6071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6072 for as_dir in $PATH
6074 IFS=$as_save_IFS
6075 test -z "$as_dir" && as_dir=.
6076 for ac_exec_ext in '' $ac_executable_extensions; do
6077 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6078 ac_cv_prog_AR="${ac_tool_prefix}ar"
6079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6080 break 2
6082 done
6083 done
6084 IFS=$as_save_IFS
6088 AR=$ac_cv_prog_AR
6089 if test -n "$AR"; then
6090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6091 $as_echo "$AR" >&6; }
6092 else
6093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6094 $as_echo "no" >&6; }
6099 if test -z "$ac_cv_prog_AR"; then
6100 ac_ct_AR=$AR
6101 # Extract the first word of "ar", so it can be a program name with args.
6102 set dummy ar; ac_word=$2
6103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6104 $as_echo_n "checking for $ac_word... " >&6; }
6105 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6106 $as_echo_n "(cached) " >&6
6107 else
6108 if test -n "$ac_ct_AR"; then
6109 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6110 else
6111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6112 for as_dir in $PATH
6114 IFS=$as_save_IFS
6115 test -z "$as_dir" && as_dir=.
6116 for ac_exec_ext in '' $ac_executable_extensions; do
6117 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6118 ac_cv_prog_ac_ct_AR="ar"
6119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6120 break 2
6122 done
6123 done
6124 IFS=$as_save_IFS
6128 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6129 if test -n "$ac_ct_AR"; then
6130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6131 $as_echo "$ac_ct_AR" >&6; }
6132 else
6133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6134 $as_echo "no" >&6; }
6137 if test "x$ac_ct_AR" = x; then
6138 AR="ar"
6139 else
6140 case $cross_compiling:$ac_tool_warned in
6141 yes:)
6142 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6143 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6144 ac_tool_warned=yes ;;
6145 esac
6146 AR=$ac_ct_AR
6148 else
6149 AR="$ac_cv_prog_AR"
6152 if test -z "$ARFLAGS"; then
6153 ARFLAGS='cru'
6156 else
6157 if test -z "$ARFLAGS"; then
6158 ARFLAGS='cru'
6163 if test -z "$RANLIB"; then
6164 if test $gl_cv_c_amsterdam_compiler = yes; then
6165 RANLIB=':'
6166 else
6167 if test -n "$ac_tool_prefix"; then
6168 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6169 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6171 $as_echo_n "checking for $ac_word... " >&6; }
6172 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6173 $as_echo_n "(cached) " >&6
6174 else
6175 if test -n "$RANLIB"; then
6176 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6177 else
6178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6179 for as_dir in $PATH
6181 IFS=$as_save_IFS
6182 test -z "$as_dir" && as_dir=.
6183 for ac_exec_ext in '' $ac_executable_extensions; do
6184 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6185 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6187 break 2
6189 done
6190 done
6191 IFS=$as_save_IFS
6195 RANLIB=$ac_cv_prog_RANLIB
6196 if test -n "$RANLIB"; then
6197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6198 $as_echo "$RANLIB" >&6; }
6199 else
6200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6201 $as_echo "no" >&6; }
6206 if test -z "$ac_cv_prog_RANLIB"; then
6207 ac_ct_RANLIB=$RANLIB
6208 # Extract the first word of "ranlib", so it can be a program name with args.
6209 set dummy ranlib; ac_word=$2
6210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6211 $as_echo_n "checking for $ac_word... " >&6; }
6212 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6213 $as_echo_n "(cached) " >&6
6214 else
6215 if test -n "$ac_ct_RANLIB"; then
6216 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6217 else
6218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6219 for as_dir in $PATH
6221 IFS=$as_save_IFS
6222 test -z "$as_dir" && as_dir=.
6223 for ac_exec_ext in '' $ac_executable_extensions; do
6224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6225 ac_cv_prog_ac_ct_RANLIB="ranlib"
6226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6227 break 2
6229 done
6230 done
6231 IFS=$as_save_IFS
6235 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6236 if test -n "$ac_ct_RANLIB"; then
6237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6238 $as_echo "$ac_ct_RANLIB" >&6; }
6239 else
6240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6241 $as_echo "no" >&6; }
6244 if test "x$ac_ct_RANLIB" = x; then
6245 RANLIB=":"
6246 else
6247 case $cross_compiling:$ac_tool_warned in
6248 yes:)
6249 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6250 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6251 ac_tool_warned=yes ;;
6252 esac
6253 RANLIB=$ac_ct_RANLIB
6255 else
6256 RANLIB="$ac_cv_prog_RANLIB"
6263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6264 $as_echo_n "checking for ANSI C header files... " >&6; }
6265 if test "${ac_cv_header_stdc+set}" = set; then :
6266 $as_echo_n "(cached) " >&6
6267 else
6268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6269 /* end confdefs.h. */
6270 #include <stdlib.h>
6271 #include <stdarg.h>
6272 #include <string.h>
6273 #include <float.h>
6276 main ()
6280 return 0;
6282 _ACEOF
6283 if ac_fn_c_try_compile "$LINENO"; then :
6284 ac_cv_header_stdc=yes
6285 else
6286 ac_cv_header_stdc=no
6288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6290 if test $ac_cv_header_stdc = yes; then
6291 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6293 /* end confdefs.h. */
6294 #include <string.h>
6296 _ACEOF
6297 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6298 $EGREP "memchr" >/dev/null 2>&1; then :
6300 else
6301 ac_cv_header_stdc=no
6303 rm -f conftest*
6307 if test $ac_cv_header_stdc = yes; then
6308 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6310 /* end confdefs.h. */
6311 #include <stdlib.h>
6313 _ACEOF
6314 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6315 $EGREP "free" >/dev/null 2>&1; then :
6317 else
6318 ac_cv_header_stdc=no
6320 rm -f conftest*
6324 if test $ac_cv_header_stdc = yes; then
6325 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6326 if test "$cross_compiling" = yes; then :
6328 else
6329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6330 /* end confdefs.h. */
6331 #include <ctype.h>
6332 #include <stdlib.h>
6333 #if ((' ' & 0x0FF) == 0x020)
6334 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6335 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6336 #else
6337 # define ISLOWER(c) \
6338 (('a' <= (c) && (c) <= 'i') \
6339 || ('j' <= (c) && (c) <= 'r') \
6340 || ('s' <= (c) && (c) <= 'z'))
6341 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6342 #endif
6344 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6346 main ()
6348 int i;
6349 for (i = 0; i < 256; i++)
6350 if (XOR (islower (i), ISLOWER (i))
6351 || toupper (i) != TOUPPER (i))
6352 return 2;
6353 return 0;
6355 _ACEOF
6356 if ac_fn_c_try_run "$LINENO"; then :
6358 else
6359 ac_cv_header_stdc=no
6361 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6362 conftest.$ac_objext conftest.beam conftest.$ac_ext
6367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6368 $as_echo "$ac_cv_header_stdc" >&6; }
6369 if test $ac_cv_header_stdc = yes; then
6371 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6375 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6376 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6377 inttypes.h stdint.h unistd.h
6378 do :
6379 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6380 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6382 eval as_val=\$$as_ac_Header
6383 if test "x$as_val" = x""yes; then :
6384 cat >>confdefs.h <<_ACEOF
6385 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6386 _ACEOF
6390 done
6396 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6397 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
6398 MINIX=yes
6399 else
6400 MINIX=
6404 if test "$MINIX" = yes; then
6406 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6409 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6412 $as_echo "#define _MINIX 1" >>confdefs.h
6416 case "$host_os" in
6417 hpux*)
6419 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
6422 esac
6425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6426 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6427 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
6428 $as_echo_n "(cached) " >&6
6429 else
6430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6431 /* end confdefs.h. */
6433 # define __EXTENSIONS__ 1
6434 $ac_includes_default
6436 main ()
6440 return 0;
6442 _ACEOF
6443 if ac_fn_c_try_compile "$LINENO"; then :
6444 ac_cv_safe_to_define___extensions__=yes
6445 else
6446 ac_cv_safe_to_define___extensions__=no
6448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6451 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6452 test $ac_cv_safe_to_define___extensions__ = yes &&
6453 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6455 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6457 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
6459 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6461 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6463 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6472 # Check whether --enable-largefile was given.
6473 if test "${enable_largefile+set}" = set; then :
6474 enableval=$enable_largefile;
6477 if test "$enable_largefile" != no; then
6479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6480 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6481 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
6482 $as_echo_n "(cached) " >&6
6483 else
6484 ac_cv_sys_largefile_CC=no
6485 if test "$GCC" != yes; then
6486 ac_save_CC=$CC
6487 while :; do
6488 # IRIX 6.2 and later do not support large files by default,
6489 # so use the C compiler's -n32 option if that helps.
6490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6491 /* end confdefs.h. */
6492 #include <sys/types.h>
6493 /* Check that off_t can represent 2**63 - 1 correctly.
6494 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6495 since some C++ compilers masquerading as C compilers
6496 incorrectly reject 9223372036854775807. */
6497 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6498 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6499 && LARGE_OFF_T % 2147483647 == 1)
6500 ? 1 : -1];
6502 main ()
6506 return 0;
6508 _ACEOF
6509 if ac_fn_c_try_compile "$LINENO"; then :
6510 break
6512 rm -f core conftest.err conftest.$ac_objext
6513 CC="$CC -n32"
6514 if ac_fn_c_try_compile "$LINENO"; then :
6515 ac_cv_sys_largefile_CC=' -n32'; break
6517 rm -f core conftest.err conftest.$ac_objext
6518 break
6519 done
6520 CC=$ac_save_CC
6521 rm -f conftest.$ac_ext
6524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6525 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6526 if test "$ac_cv_sys_largefile_CC" != no; then
6527 CC=$CC$ac_cv_sys_largefile_CC
6530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6531 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6532 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
6533 $as_echo_n "(cached) " >&6
6534 else
6535 while :; do
6536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6537 /* end confdefs.h. */
6538 #include <sys/types.h>
6539 /* Check that off_t can represent 2**63 - 1 correctly.
6540 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6541 since some C++ compilers masquerading as C compilers
6542 incorrectly reject 9223372036854775807. */
6543 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6544 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6545 && LARGE_OFF_T % 2147483647 == 1)
6546 ? 1 : -1];
6548 main ()
6552 return 0;
6554 _ACEOF
6555 if ac_fn_c_try_compile "$LINENO"; then :
6556 ac_cv_sys_file_offset_bits=no; break
6558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6560 /* end confdefs.h. */
6561 #define _FILE_OFFSET_BITS 64
6562 #include <sys/types.h>
6563 /* Check that off_t can represent 2**63 - 1 correctly.
6564 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6565 since some C++ compilers masquerading as C compilers
6566 incorrectly reject 9223372036854775807. */
6567 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6568 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6569 && LARGE_OFF_T % 2147483647 == 1)
6570 ? 1 : -1];
6572 main ()
6576 return 0;
6578 _ACEOF
6579 if ac_fn_c_try_compile "$LINENO"; then :
6580 ac_cv_sys_file_offset_bits=64; break
6582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6583 ac_cv_sys_file_offset_bits=unknown
6584 break
6585 done
6587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6588 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6589 case $ac_cv_sys_file_offset_bits in #(
6590 no | unknown) ;;
6592 cat >>confdefs.h <<_ACEOF
6593 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6594 _ACEOF
6596 esac
6597 rm -rf conftest*
6598 if test $ac_cv_sys_file_offset_bits = unknown; then
6599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6600 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6601 if test "${ac_cv_sys_large_files+set}" = set; then :
6602 $as_echo_n "(cached) " >&6
6603 else
6604 while :; do
6605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6606 /* end confdefs.h. */
6607 #include <sys/types.h>
6608 /* Check that off_t can represent 2**63 - 1 correctly.
6609 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6610 since some C++ compilers masquerading as C compilers
6611 incorrectly reject 9223372036854775807. */
6612 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6613 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6614 && LARGE_OFF_T % 2147483647 == 1)
6615 ? 1 : -1];
6617 main ()
6621 return 0;
6623 _ACEOF
6624 if ac_fn_c_try_compile "$LINENO"; then :
6625 ac_cv_sys_large_files=no; break
6627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6629 /* end confdefs.h. */
6630 #define _LARGE_FILES 1
6631 #include <sys/types.h>
6632 /* Check that off_t can represent 2**63 - 1 correctly.
6633 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6634 since some C++ compilers masquerading as C compilers
6635 incorrectly reject 9223372036854775807. */
6636 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6637 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6638 && LARGE_OFF_T % 2147483647 == 1)
6639 ? 1 : -1];
6641 main ()
6645 return 0;
6647 _ACEOF
6648 if ac_fn_c_try_compile "$LINENO"; then :
6649 ac_cv_sys_large_files=1; break
6651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6652 ac_cv_sys_large_files=unknown
6653 break
6654 done
6656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6657 $as_echo "$ac_cv_sys_large_files" >&6; }
6658 case $ac_cv_sys_large_files in #(
6659 no | unknown) ;;
6661 cat >>confdefs.h <<_ACEOF
6662 #define _LARGE_FILES $ac_cv_sys_large_files
6663 _ACEOF
6665 esac
6666 rm -rf conftest*
6672 case $ac_cv_prog_cc_stdc in #(
6673 no) :
6674 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6675 *) :
6676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
6677 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
6678 if test "${ac_cv_prog_cc_c99+set}" = set; then :
6679 $as_echo_n "(cached) " >&6
6680 else
6681 ac_cv_prog_cc_c99=no
6682 ac_save_CC=$CC
6683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6684 /* end confdefs.h. */
6685 #include <stdarg.h>
6686 #include <stdbool.h>
6687 #include <stdlib.h>
6688 #include <wchar.h>
6689 #include <stdio.h>
6691 // Check varargs macros. These examples are taken from C99 6.10.3.5.
6692 #define debug(...) fprintf (stderr, __VA_ARGS__)
6693 #define showlist(...) puts (#__VA_ARGS__)
6694 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6695 static void
6696 test_varargs_macros (void)
6698 int x = 1234;
6699 int y = 5678;
6700 debug ("Flag");
6701 debug ("X = %d\n", x);
6702 showlist (The first, second, and third items.);
6703 report (x>y, "x is %d but y is %d", x, y);
6706 // Check long long types.
6707 #define BIG64 18446744073709551615ull
6708 #define BIG32 4294967295ul
6709 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6710 #if !BIG_OK
6711 your preprocessor is broken;
6712 #endif
6713 #if BIG_OK
6714 #else
6715 your preprocessor is broken;
6716 #endif
6717 static long long int bignum = -9223372036854775807LL;
6718 static unsigned long long int ubignum = BIG64;
6720 struct incomplete_array
6722 int datasize;
6723 double data[];
6726 struct named_init {
6727 int number;
6728 const wchar_t *name;
6729 double average;
6732 typedef const char *ccp;
6734 static inline int
6735 test_restrict (ccp restrict text)
6737 // See if C++-style comments work.
6738 // Iterate through items via the restricted pointer.
6739 // Also check for declarations in for loops.
6740 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6741 continue;
6742 return 0;
6745 // Check varargs and va_copy.
6746 static void
6747 test_varargs (const char *format, ...)
6749 va_list args;
6750 va_start (args, format);
6751 va_list args_copy;
6752 va_copy (args_copy, args);
6754 const char *str;
6755 int number;
6756 float fnumber;
6758 while (*format)
6760 switch (*format++)
6762 case 's': // string
6763 str = va_arg (args_copy, const char *);
6764 break;
6765 case 'd': // int
6766 number = va_arg (args_copy, int);
6767 break;
6768 case 'f': // float
6769 fnumber = va_arg (args_copy, double);
6770 break;
6771 default:
6772 break;
6775 va_end (args_copy);
6776 va_end (args);
6780 main ()
6783 // Check bool.
6784 _Bool success = false;
6786 // Check restrict.
6787 if (test_restrict ("String literal") == 0)
6788 success = true;
6789 char *restrict newvar = "Another string";
6791 // Check varargs.
6792 test_varargs ("s, d' f .", "string", 65, 34.234);
6793 test_varargs_macros ();
6795 // Check flexible array members.
6796 struct incomplete_array *ia =
6797 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6798 ia->datasize = 10;
6799 for (int i = 0; i < ia->datasize; ++i)
6800 ia->data[i] = i * 1.234;
6802 // Check named initializers.
6803 struct named_init ni = {
6804 .number = 34,
6805 .name = L"Test wide string",
6806 .average = 543.34343,
6809 ni.number = 58;
6811 int dynamic_array[ni.number];
6812 dynamic_array[ni.number - 1] = 543;
6814 // work around unused variable warnings
6815 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6816 || dynamic_array[ni.number - 1] != 543);
6819 return 0;
6821 _ACEOF
6822 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
6824 CC="$ac_save_CC $ac_arg"
6825 if ac_fn_c_try_compile "$LINENO"; then :
6826 ac_cv_prog_cc_c99=$ac_arg
6828 rm -f core conftest.err conftest.$ac_objext
6829 test "x$ac_cv_prog_cc_c99" != "xno" && break
6830 done
6831 rm -f conftest.$ac_ext
6832 CC=$ac_save_CC
6835 # AC_CACHE_VAL
6836 case "x$ac_cv_prog_cc_c99" in
6838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6839 $as_echo "none needed" >&6; } ;;
6840 xno)
6841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6842 $as_echo "unsupported" >&6; } ;;
6844 CC="$CC $ac_cv_prog_cc_c99"
6845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
6846 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6847 esac
6848 if test "x$ac_cv_prog_cc_c99" != xno; then :
6849 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
6850 else
6851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6852 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6853 if test "${ac_cv_prog_cc_c89+set}" = set; then :
6854 $as_echo_n "(cached) " >&6
6855 else
6856 ac_cv_prog_cc_c89=no
6857 ac_save_CC=$CC
6858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6859 /* end confdefs.h. */
6860 #include <stdarg.h>
6861 #include <stdio.h>
6862 #include <sys/types.h>
6863 #include <sys/stat.h>
6864 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6865 struct buf { int x; };
6866 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6867 static char *e (p, i)
6868 char **p;
6869 int i;
6871 return p[i];
6873 static char *f (char * (*g) (char **, int), char **p, ...)
6875 char *s;
6876 va_list v;
6877 va_start (v,p);
6878 s = g (p, va_arg (v,int));
6879 va_end (v);
6880 return s;
6883 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6884 function prototypes and stuff, but not '\xHH' hex character constants.
6885 These don't provoke an error unfortunately, instead are silently treated
6886 as 'x'. The following induces an error, until -std is added to get
6887 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6888 array size at least. It's necessary to write '\x00'==0 to get something
6889 that's true only with -std. */
6890 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6892 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6893 inside strings and character constants. */
6894 #define FOO(x) 'x'
6895 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6897 int test (int i, double x);
6898 struct s1 {int (*f) (int a);};
6899 struct s2 {int (*f) (double a);};
6900 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6901 int argc;
6902 char **argv;
6904 main ()
6906 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6908 return 0;
6910 _ACEOF
6911 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6912 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6914 CC="$ac_save_CC $ac_arg"
6915 if ac_fn_c_try_compile "$LINENO"; then :
6916 ac_cv_prog_cc_c89=$ac_arg
6918 rm -f core conftest.err conftest.$ac_objext
6919 test "x$ac_cv_prog_cc_c89" != "xno" && break
6920 done
6921 rm -f conftest.$ac_ext
6922 CC=$ac_save_CC
6925 # AC_CACHE_VAL
6926 case "x$ac_cv_prog_cc_c89" in
6928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6929 $as_echo "none needed" >&6; } ;;
6930 xno)
6931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6932 $as_echo "unsupported" >&6; } ;;
6934 CC="$CC $ac_cv_prog_cc_c89"
6935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6936 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6937 esac
6938 if test "x$ac_cv_prog_cc_c89" != xno; then :
6939 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
6940 else
6941 ac_cv_prog_cc_stdc=no
6946 esac
6947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
6948 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
6949 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
6950 $as_echo_n "(cached) " >&6
6953 case $ac_cv_prog_cc_stdc in #(
6954 no) :
6955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6956 $as_echo "unsupported" >&6; } ;; #(
6957 '') :
6958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6959 $as_echo "none needed" >&6; } ;; #(
6960 *) :
6961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
6962 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
6963 esac
6967 # Code from module alloca-opt:
6968 # Code from module allocator:
6969 # Code from module careadlinkat:
6970 # Code from module crypto/md5:
6971 # Code from module crypto/sha1:
6972 # Code from module crypto/sha256:
6973 # Code from module crypto/sha512:
6974 # Code from module dosname:
6975 # Code from module dtoastr:
6976 # Code from module dup2:
6977 # Code from module extensions:
6979 # Code from module filemode:
6980 # Code from module getloadavg:
6981 # Code from module getopt-gnu:
6982 # Code from module getopt-posix:
6983 # Code from module gettext-h:
6984 # Code from module ignore-value:
6985 # Code from module include_next:
6986 # Code from module intprops:
6987 # Code from module inttypes-incomplete:
6988 # Code from module largefile:
6990 # Code from module lstat:
6991 # Code from module manywarnings:
6992 # Code from module mktime:
6993 # Code from module multiarch:
6994 # Code from module nocrash:
6995 # Code from module pathmax:
6996 # Code from module pthread_sigmask:
6997 # Code from module readlink:
6998 # Code from module signal-h:
6999 # Code from module sigprocmask:
7000 # Code from module snippet/_Noreturn:
7001 # Code from module snippet/arg-nonnull:
7002 # Code from module snippet/c++defs:
7003 # Code from module snippet/warn-on-use:
7004 # Code from module socklen:
7005 # Code from module ssize_t:
7006 # Code from module stat:
7007 # Code from module stdalign:
7008 # Code from module stdarg:
7012 # Code from module stdbool:
7013 # Code from module stddef:
7014 # Code from module stdint:
7015 # Code from module stdio:
7016 # Code from module stdlib:
7017 # Code from module strftime:
7018 # Code from module strtoimax:
7019 # Code from module strtoll:
7020 # Code from module strtoull:
7021 # Code from module strtoumax:
7022 # Code from module symlink:
7023 # Code from module sys_stat:
7024 # Code from module sys_types:
7025 # Code from module time:
7026 # Code from module time_r:
7027 # Code from module u64:
7028 # Code from module unistd:
7029 # Code from module verify:
7030 # Code from module warnings:
7033 # Check whether --enable-gcc-warnings was given.
7034 if test "${enable_gcc_warnings+set}" = set; then :
7035 enableval=$enable_gcc_warnings; case $enableval in
7036 yes|no) ;;
7037 *) as_fn_error "bad value $enableval for gcc-warnings option" "$LINENO" 5 ;;
7038 esac
7039 gl_gcc_warnings=$enableval
7040 else
7041 gl_gcc_warnings=no
7046 # gl_GCC_VERSION_IFELSE([major], [minor], [run-if-found], [run-if-not-found])
7047 # ------------------------------------------------
7048 # If $CPP is gcc-MAJOR.MINOR or newer, then run RUN-IF-FOUND.
7049 # Otherwise, run RUN-IF-NOT-FOUND.
7052 # When compiling with GCC, prefer -isystem to -I when including system
7053 # include files, to avoid generating useless diagnostics for the files.
7054 if test "$gl_gcc_warnings" != yes; then
7055 isystem='-I'
7056 else
7057 isystem='-isystem '
7059 # This, $nw, is the list of warnings we disable.
7062 case $with_x_toolkit in
7063 lucid | athena | motif)
7064 # Old toolkits mishandle 'const'.
7065 nw="$nw -Wwrite-strings"
7068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Werror" >&5
7069 $as_echo_n "checking whether C compiler handles -Werror... " >&6; }
7070 if test "${gl_cv_warn_c__Werror+set}" = set; then :
7071 $as_echo_n "(cached) " >&6
7072 else
7074 gl_save_compiler_FLAGS="$CFLAGS"
7075 as_fn_append CFLAGS " -Werror"
7076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7077 /* end confdefs.h. */
7080 main ()
7084 return 0;
7086 _ACEOF
7087 if ac_fn_c_try_compile "$LINENO"; then :
7088 gl_cv_warn_c__Werror=yes
7089 else
7090 gl_cv_warn_c__Werror=no
7092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7093 CFLAGS="$gl_save_compiler_FLAGS"
7096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Werror" >&5
7097 $as_echo "$gl_cv_warn_c__Werror" >&6; }
7098 if test "x$gl_cv_warn_c__Werror" = x""yes; then :
7099 as_fn_append WERROR_CFLAGS " -Werror"
7104 esac
7107 nw="$nw -Waggregate-return" # anachronistic
7108 nw="$nw -Wlong-long" # C90 is anachronistic
7109 nw="$nw -Wc++-compat" # We don't care about C++ compilers
7110 nw="$nw -Wundef" # Warns on '#if GNULIB_FOO' etc in gnulib
7111 nw="$nw -Wtraditional" # Warns on #elif which we use often
7112 nw="$nw -Wcast-qual" # Too many warnings for now
7113 nw="$nw -Wconversion" # Too many warnings for now
7114 nw="$nw -Wsystem-headers" # Don't let system headers trigger warnings
7115 nw="$nw -Wsign-conversion" # Too many warnings for now
7116 nw="$nw -Woverlength-strings" # Not a problem these days
7117 nw="$nw -Wtraditional-conversion" # Too many warnings for now
7118 nw="$nw -Wpadded" # Our structs are not padded
7119 nw="$nw -Wredundant-decls" # We regularly (re)declare getenv etc.
7120 nw="$nw -Wlogical-op" # any use of fwrite provokes this
7121 nw="$nw -Wformat-nonliteral" # Emacs does this a lot
7122 nw="$nw -Wvla" # warnings in gettext.h
7123 nw="$nw -Wnested-externs" # use of XARGMATCH/verify_function__
7124 nw="$nw -Wswitch-enum" # Too many warnings for now
7125 nw="$nw -Wswitch-default" # Too many warnings for now
7126 nw="$nw -Wfloat-equal" # e.g., ftoastr.c
7127 nw="$nw -Winline" # e.g., dispnew.c's inlining of row_equal_p
7129 # Emacs doesn't care about shadowing; see
7130 # <http://lists.gnu.org/archive/html/emacs-diffs/2011-11/msg00265.html>.
7131 nw="$nw -Wshadow"
7133 # The following lines should be removable at some point.
7134 nw="$nw -Wstack-protector"
7135 nw="$nw -Wstrict-overflow"
7136 nw="$nw -Wsuggest-attribute=const"
7137 nw="$nw -Wsuggest-attribute=pure"
7141 if test -n "$GCC"; then
7143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is supported" >&5
7144 $as_echo_n "checking whether -Wno-missing-field-initializers is supported... " >&6; }
7145 if test "${gl_cv_cc_nomfi_supported+set}" = set; then :
7146 $as_echo_n "(cached) " >&6
7147 else
7149 gl_save_CFLAGS="$CFLAGS"
7150 CFLAGS="$CFLAGS -W -Werror -Wno-missing-field-initializers"
7151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7152 /* end confdefs.h. */
7155 main ()
7159 return 0;
7161 _ACEOF
7162 if ac_fn_c_try_compile "$LINENO"; then :
7163 gl_cv_cc_nomfi_supported=yes
7164 else
7165 gl_cv_cc_nomfi_supported=no
7167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7168 CFLAGS="$gl_save_CFLAGS"
7171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_supported" >&5
7172 $as_echo "$gl_cv_cc_nomfi_supported" >&6; }
7174 if test "$gl_cv_cc_nomfi_supported" = yes; then
7175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is needed" >&5
7176 $as_echo_n "checking whether -Wno-missing-field-initializers is needed... " >&6; }
7177 if test "${gl_cv_cc_nomfi_needed+set}" = set; then :
7178 $as_echo_n "(cached) " >&6
7179 else
7181 gl_save_CFLAGS="$CFLAGS"
7182 CFLAGS="$CFLAGS -W -Werror"
7183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7184 /* end confdefs.h. */
7185 void f (void)
7187 typedef struct { int a; int b; } s_t;
7188 s_t s1 = { 0, };
7192 main ()
7196 return 0;
7198 _ACEOF
7199 if ac_fn_c_try_compile "$LINENO"; then :
7200 gl_cv_cc_nomfi_needed=no
7201 else
7202 gl_cv_cc_nomfi_needed=yes
7204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7205 CFLAGS="$gl_save_CFLAGS"
7209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_needed" >&5
7210 $as_echo "$gl_cv_cc_nomfi_needed" >&6; }
7214 gl_manywarn_set=
7215 for gl_manywarn_item in \
7216 -Wall \
7217 -W \
7218 -Wformat-y2k \
7219 -Wformat-nonliteral \
7220 -Wformat-security \
7221 -Winit-self \
7222 -Wmissing-include-dirs \
7223 -Wswitch-default \
7224 -Wswitch-enum \
7225 -Wunused \
7226 -Wunknown-pragmas \
7227 -Wstrict-aliasing \
7228 -Wstrict-overflow \
7229 -Wsystem-headers \
7230 -Wfloat-equal \
7231 -Wtraditional \
7232 -Wtraditional-conversion \
7233 -Wdeclaration-after-statement \
7234 -Wundef \
7235 -Wshadow \
7236 -Wunsafe-loop-optimizations \
7237 -Wpointer-arith \
7238 -Wbad-function-cast \
7239 -Wc++-compat \
7240 -Wcast-qual \
7241 -Wcast-align \
7242 -Wwrite-strings \
7243 -Wconversion \
7244 -Wsign-conversion \
7245 -Wlogical-op \
7246 -Waggregate-return \
7247 -Wstrict-prototypes \
7248 -Wold-style-definition \
7249 -Wmissing-prototypes \
7250 -Wmissing-declarations \
7251 -Wmissing-noreturn \
7252 -Wmissing-format-attribute \
7253 -Wpacked \
7254 -Wpadded \
7255 -Wredundant-decls \
7256 -Wnested-externs \
7257 -Wunreachable-code \
7258 -Winline \
7259 -Winvalid-pch \
7260 -Wlong-long \
7261 -Wvla \
7262 -Wvolatile-register-var \
7263 -Wdisabled-optimization \
7264 -Wstack-protector \
7265 -Woverlength-strings \
7266 -Wbuiltin-macro-redefined \
7267 -Wmudflap \
7268 -Wpacked-bitfield-compat \
7269 -Wsync-nand \
7270 ; do
7271 gl_manywarn_set="$gl_manywarn_set $gl_manywarn_item"
7272 done
7273 # The following are not documented in the manual but are included in
7274 # output from gcc --help=warnings.
7275 for gl_manywarn_item in \
7276 -Wattributes \
7277 -Wcoverage-mismatch \
7278 -Wunused-macros \
7279 ; do
7280 gl_manywarn_set="$gl_manywarn_set $gl_manywarn_item"
7281 done
7282 # More warnings from gcc 4.6.2 --help=warnings.
7283 for gl_manywarn_item in \
7284 -Wabi \
7285 -Wcpp \
7286 -Wdeprecated \
7287 -Wdeprecated-declarations \
7288 -Wdiv-by-zero \
7289 -Wdouble-promotion \
7290 -Wendif-labels \
7291 -Wextra \
7292 -Wformat-contains-nul \
7293 -Wformat-extra-args \
7294 -Wformat-zero-length \
7295 -Wformat=2 \
7296 -Wmultichar \
7297 -Wnormalized=nfc \
7298 -Woverflow \
7299 -Wpointer-to-int-cast \
7300 -Wpragmas \
7301 -Wsuggest-attribute=const \
7302 -Wsuggest-attribute=noreturn \
7303 -Wsuggest-attribute=pure \
7304 -Wtrampolines \
7305 ; do
7306 gl_manywarn_set="$gl_manywarn_set $gl_manywarn_item"
7307 done
7309 # Disable the missing-field-initializers warning if needed
7310 if test "$gl_cv_cc_nomfi_needed" = yes; then
7311 gl_manywarn_set="$gl_manywarn_set -Wno-missing-field-initializers"
7314 ws=$gl_manywarn_set
7317 gl_warn_set=
7318 set x $ws; shift
7319 for gl_warn_item
7321 case " $nw " in
7322 *" $gl_warn_item "*)
7325 gl_warn_set="$gl_warn_set $gl_warn_item"
7327 esac
7328 done
7329 ws=$gl_warn_set
7331 for w in $ws; do
7332 as_gl_Warn=`$as_echo "gl_cv_warn_c_$w" | $as_tr_sh`
7333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles $w" >&5
7334 $as_echo_n "checking whether C compiler handles $w... " >&6; }
7335 if { as_var=$as_gl_Warn; eval "test \"\${$as_var+set}\" = set"; }; then :
7336 $as_echo_n "(cached) " >&6
7337 else
7339 gl_save_compiler_FLAGS="$CFLAGS"
7340 as_fn_append CFLAGS " $w"
7341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7342 /* end confdefs.h. */
7345 main ()
7349 return 0;
7351 _ACEOF
7352 if ac_fn_c_try_compile "$LINENO"; then :
7353 eval "$as_gl_Warn=yes"
7354 else
7355 eval "$as_gl_Warn=no"
7357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7358 CFLAGS="$gl_save_compiler_FLAGS"
7361 eval ac_res=\$$as_gl_Warn
7362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7363 $as_echo "$ac_res" >&6; }
7364 eval as_val=\$$as_gl_Warn
7365 if test "x$as_val" = x""yes; then :
7366 as_fn_append WARN_CFLAGS " $w"
7370 done
7371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-missing-field-initializers" >&5
7372 $as_echo_n "checking whether C compiler handles -Wno-missing-field-initializers... " >&6; }
7373 if test "${gl_cv_warn_c__Wno_missing_field_initializers+set}" = set; then :
7374 $as_echo_n "(cached) " >&6
7375 else
7377 gl_save_compiler_FLAGS="$CFLAGS"
7378 as_fn_append CFLAGS " -Wno-missing-field-initializers"
7379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7380 /* end confdefs.h. */
7383 main ()
7387 return 0;
7389 _ACEOF
7390 if ac_fn_c_try_compile "$LINENO"; then :
7391 gl_cv_warn_c__Wno_missing_field_initializers=yes
7392 else
7393 gl_cv_warn_c__Wno_missing_field_initializers=no
7395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7396 CFLAGS="$gl_save_compiler_FLAGS"
7399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_missing_field_initializers" >&5
7400 $as_echo "$gl_cv_warn_c__Wno_missing_field_initializers" >&6; }
7401 if test "x$gl_cv_warn_c__Wno_missing_field_initializers" = x""yes; then :
7402 as_fn_append WARN_CFLAGS " -Wno-missing-field-initializers"
7405 # We need this one
7406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-sign-compare" >&5
7407 $as_echo_n "checking whether C compiler handles -Wno-sign-compare... " >&6; }
7408 if test "${gl_cv_warn_c__Wno_sign_compare+set}" = set; then :
7409 $as_echo_n "(cached) " >&6
7410 else
7412 gl_save_compiler_FLAGS="$CFLAGS"
7413 as_fn_append CFLAGS " -Wno-sign-compare"
7414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7415 /* end confdefs.h. */
7418 main ()
7422 return 0;
7424 _ACEOF
7425 if ac_fn_c_try_compile "$LINENO"; then :
7426 gl_cv_warn_c__Wno_sign_compare=yes
7427 else
7428 gl_cv_warn_c__Wno_sign_compare=no
7430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7431 CFLAGS="$gl_save_compiler_FLAGS"
7434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_sign_compare" >&5
7435 $as_echo "$gl_cv_warn_c__Wno_sign_compare" >&6; }
7436 if test "x$gl_cv_warn_c__Wno_sign_compare" = x""yes; then :
7437 as_fn_append WARN_CFLAGS " -Wno-sign-compare"
7440 # Too many warnings for now
7441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-type-limits" >&5
7442 $as_echo_n "checking whether C compiler handles -Wno-type-limits... " >&6; }
7443 if test "${gl_cv_warn_c__Wno_type_limits+set}" = set; then :
7444 $as_echo_n "(cached) " >&6
7445 else
7447 gl_save_compiler_FLAGS="$CFLAGS"
7448 as_fn_append CFLAGS " -Wno-type-limits"
7449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7450 /* end confdefs.h. */
7453 main ()
7457 return 0;
7459 _ACEOF
7460 if ac_fn_c_try_compile "$LINENO"; then :
7461 gl_cv_warn_c__Wno_type_limits=yes
7462 else
7463 gl_cv_warn_c__Wno_type_limits=no
7465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7466 CFLAGS="$gl_save_compiler_FLAGS"
7469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_type_limits" >&5
7470 $as_echo "$gl_cv_warn_c__Wno_type_limits" >&6; }
7471 if test "x$gl_cv_warn_c__Wno_type_limits" = x""yes; then :
7472 as_fn_append WARN_CFLAGS " -Wno-type-limits"
7475 # Too many warnings for now
7476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-switch" >&5
7477 $as_echo_n "checking whether C compiler handles -Wno-switch... " >&6; }
7478 if test "${gl_cv_warn_c__Wno_switch+set}" = set; then :
7479 $as_echo_n "(cached) " >&6
7480 else
7482 gl_save_compiler_FLAGS="$CFLAGS"
7483 as_fn_append CFLAGS " -Wno-switch"
7484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7485 /* end confdefs.h. */
7488 main ()
7492 return 0;
7494 _ACEOF
7495 if ac_fn_c_try_compile "$LINENO"; then :
7496 gl_cv_warn_c__Wno_switch=yes
7497 else
7498 gl_cv_warn_c__Wno_switch=no
7500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7501 CFLAGS="$gl_save_compiler_FLAGS"
7504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_switch" >&5
7505 $as_echo "$gl_cv_warn_c__Wno_switch" >&6; }
7506 if test "x$gl_cv_warn_c__Wno_switch" = x""yes; then :
7507 as_fn_append WARN_CFLAGS " -Wno-switch"
7510 # Too many warnings for now
7511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-unused-parameter" >&5
7512 $as_echo_n "checking whether C compiler handles -Wno-unused-parameter... " >&6; }
7513 if test "${gl_cv_warn_c__Wno_unused_parameter+set}" = set; then :
7514 $as_echo_n "(cached) " >&6
7515 else
7517 gl_save_compiler_FLAGS="$CFLAGS"
7518 as_fn_append CFLAGS " -Wno-unused-parameter"
7519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7520 /* end confdefs.h. */
7523 main ()
7527 return 0;
7529 _ACEOF
7530 if ac_fn_c_try_compile "$LINENO"; then :
7531 gl_cv_warn_c__Wno_unused_parameter=yes
7532 else
7533 gl_cv_warn_c__Wno_unused_parameter=no
7535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7536 CFLAGS="$gl_save_compiler_FLAGS"
7539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_unused_parameter" >&5
7540 $as_echo "$gl_cv_warn_c__Wno_unused_parameter" >&6; }
7541 if test "x$gl_cv_warn_c__Wno_unused_parameter" = x""yes; then :
7542 as_fn_append WARN_CFLAGS " -Wno-unused-parameter"
7545 # Too many warnings for now
7546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-format-nonliteral" >&5
7547 $as_echo_n "checking whether C compiler handles -Wno-format-nonliteral... " >&6; }
7548 if test "${gl_cv_warn_c__Wno_format_nonliteral+set}" = set; then :
7549 $as_echo_n "(cached) " >&6
7550 else
7552 gl_save_compiler_FLAGS="$CFLAGS"
7553 as_fn_append CFLAGS " -Wno-format-nonliteral"
7554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7555 /* end confdefs.h. */
7558 main ()
7562 return 0;
7564 _ACEOF
7565 if ac_fn_c_try_compile "$LINENO"; then :
7566 gl_cv_warn_c__Wno_format_nonliteral=yes
7567 else
7568 gl_cv_warn_c__Wno_format_nonliteral=no
7570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7571 CFLAGS="$gl_save_compiler_FLAGS"
7574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_format_nonliteral" >&5
7575 $as_echo "$gl_cv_warn_c__Wno_format_nonliteral" >&6; }
7576 if test "x$gl_cv_warn_c__Wno_format_nonliteral" = x""yes; then :
7577 as_fn_append WARN_CFLAGS " -Wno-format-nonliteral"
7582 # In spite of excluding -Wlogical-op above, it is enabled, as of
7583 # gcc 4.5.0 20090517.
7584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-logical-op" >&5
7585 $as_echo_n "checking whether C compiler handles -Wno-logical-op... " >&6; }
7586 if test "${gl_cv_warn_c__Wno_logical_op+set}" = set; then :
7587 $as_echo_n "(cached) " >&6
7588 else
7590 gl_save_compiler_FLAGS="$CFLAGS"
7591 as_fn_append CFLAGS " -Wno-logical-op"
7592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7593 /* end confdefs.h. */
7596 main ()
7600 return 0;
7602 _ACEOF
7603 if ac_fn_c_try_compile "$LINENO"; then :
7604 gl_cv_warn_c__Wno_logical_op=yes
7605 else
7606 gl_cv_warn_c__Wno_logical_op=no
7608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7609 CFLAGS="$gl_save_compiler_FLAGS"
7612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_logical_op" >&5
7613 $as_echo "$gl_cv_warn_c__Wno_logical_op" >&6; }
7614 if test "x$gl_cv_warn_c__Wno_logical_op" = x""yes; then :
7615 as_fn_append WARN_CFLAGS " -Wno-logical-op"
7620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -fdiagnostics-show-option" >&5
7621 $as_echo_n "checking whether C compiler handles -fdiagnostics-show-option... " >&6; }
7622 if test "${gl_cv_warn_c__fdiagnostics_show_option+set}" = set; then :
7623 $as_echo_n "(cached) " >&6
7624 else
7626 gl_save_compiler_FLAGS="$CFLAGS"
7627 as_fn_append CFLAGS " -fdiagnostics-show-option"
7628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7629 /* end confdefs.h. */
7632 main ()
7636 return 0;
7638 _ACEOF
7639 if ac_fn_c_try_compile "$LINENO"; then :
7640 gl_cv_warn_c__fdiagnostics_show_option=yes
7641 else
7642 gl_cv_warn_c__fdiagnostics_show_option=no
7644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7645 CFLAGS="$gl_save_compiler_FLAGS"
7648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__fdiagnostics_show_option" >&5
7649 $as_echo "$gl_cv_warn_c__fdiagnostics_show_option" >&6; }
7650 if test "x$gl_cv_warn_c__fdiagnostics_show_option" = x""yes; then :
7651 as_fn_append WARN_CFLAGS " -fdiagnostics-show-option"
7655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -funit-at-a-time" >&5
7656 $as_echo_n "checking whether C compiler handles -funit-at-a-time... " >&6; }
7657 if test "${gl_cv_warn_c__funit_at_a_time+set}" = set; then :
7658 $as_echo_n "(cached) " >&6
7659 else
7661 gl_save_compiler_FLAGS="$CFLAGS"
7662 as_fn_append CFLAGS " -funit-at-a-time"
7663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7664 /* end confdefs.h. */
7667 main ()
7671 return 0;
7673 _ACEOF
7674 if ac_fn_c_try_compile "$LINENO"; then :
7675 gl_cv_warn_c__funit_at_a_time=yes
7676 else
7677 gl_cv_warn_c__funit_at_a_time=no
7679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7680 CFLAGS="$gl_save_compiler_FLAGS"
7683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__funit_at_a_time" >&5
7684 $as_echo "$gl_cv_warn_c__funit_at_a_time" >&6; }
7685 if test "x$gl_cv_warn_c__funit_at_a_time" = x""yes; then :
7686 as_fn_append WARN_CFLAGS " -funit-at-a-time"
7692 $as_echo "#define lint 1" >>confdefs.h
7695 $as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
7698 $as_echo "#define GNULIB_PORTCHECK 1" >>confdefs.h
7701 # We use a slightly smaller set of warning options for lib/.
7702 # Remove the following and save the result in GNULIB_WARN_CFLAGS.
7704 nw="$nw -Wunused-macros"
7707 gl_warn_set=
7708 set x $WARN_CFLAGS; shift
7709 for gl_warn_item
7711 case " $nw " in
7712 *" $gl_warn_item "*)
7715 gl_warn_set="$gl_warn_set $gl_warn_item"
7717 esac
7718 done
7719 GNULIB_WARN_CFLAGS=$gl_warn_set
7727 # Extract the first word of "install-info", so it can be a program name with args.
7728 set dummy install-info; ac_word=$2
7729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7730 $as_echo_n "checking for $ac_word... " >&6; }
7731 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
7732 $as_echo_n "(cached) " >&6
7733 else
7734 case $INSTALL_INFO in
7735 [\\/]* | ?:[\\/]*)
7736 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
7739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7740 for as_dir in $PATH$PATH_SEPARATOR/usr/sbin$PATH_SEPARATOR/sbin
7742 IFS=$as_save_IFS
7743 test -z "$as_dir" && as_dir=.
7744 for ac_exec_ext in '' $ac_executable_extensions; do
7745 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7746 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
7747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7748 break 2
7750 done
7751 done
7752 IFS=$as_save_IFS
7754 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
7756 esac
7758 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
7759 if test -n "$INSTALL_INFO"; then
7760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
7761 $as_echo "$INSTALL_INFO" >&6; }
7762 else
7763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7764 $as_echo "no" >&6; }
7768 # Extract the first word of "gzip", so it can be a program name with args.
7769 set dummy gzip; ac_word=$2
7770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7771 $as_echo_n "checking for $ac_word... " >&6; }
7772 if test "${ac_cv_path_GZIP_PROG+set}" = set; then :
7773 $as_echo_n "(cached) " >&6
7774 else
7775 case $GZIP_PROG in
7776 [\\/]* | ?:[\\/]*)
7777 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
7780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7781 for as_dir in $PATH
7783 IFS=$as_save_IFS
7784 test -z "$as_dir" && as_dir=.
7785 for ac_exec_ext in '' $ac_executable_extensions; do
7786 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7787 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
7788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7789 break 2
7791 done
7792 done
7793 IFS=$as_save_IFS
7796 esac
7798 GZIP_PROG=$ac_cv_path_GZIP_PROG
7799 if test -n "$GZIP_PROG"; then
7800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
7801 $as_echo "$GZIP_PROG" >&6; }
7802 else
7803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7804 $as_echo "no" >&6; }
7808 # Extract the first word of "paxctl", so it can be a program name with args.
7809 set dummy paxctl; ac_word=$2
7810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7811 $as_echo_n "checking for $ac_word... " >&6; }
7812 if test "${ac_cv_path_PAXCTL+set}" = set; then :
7813 $as_echo_n "(cached) " >&6
7814 else
7815 case $PAXCTL in
7816 [\\/]* | ?:[\\/]*)
7817 ac_cv_path_PAXCTL="$PAXCTL" # Let the user override the test with a path.
7820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7821 for as_dir in $PATH$PATH_SEPARATOR/sbin$PATH_SEPARATOR/usr/sbin
7823 IFS=$as_save_IFS
7824 test -z "$as_dir" && as_dir=.
7825 for ac_exec_ext in '' $ac_executable_extensions; do
7826 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7827 ac_cv_path_PAXCTL="$as_dir/$ac_word$ac_exec_ext"
7828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7829 break 2
7831 done
7832 done
7833 IFS=$as_save_IFS
7836 esac
7838 PAXCTL=$ac_cv_path_PAXCTL
7839 if test -n "$PAXCTL"; then
7840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PAXCTL" >&5
7841 $as_echo "$PAXCTL" >&6; }
7842 else
7843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7844 $as_echo "no" >&6; }
7850 ## Need makeinfo >= 4.7 (?) to build the manuals.
7851 # Extract the first word of "makeinfo", so it can be a program name with args.
7852 set dummy makeinfo; ac_word=$2
7853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7854 $as_echo_n "checking for $ac_word... " >&6; }
7855 if test "${ac_cv_path_MAKEINFO+set}" = set; then :
7856 $as_echo_n "(cached) " >&6
7857 else
7858 case $MAKEINFO in
7859 [\\/]* | ?:[\\/]*)
7860 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
7863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7864 for as_dir in $PATH
7866 IFS=$as_save_IFS
7867 test -z "$as_dir" && as_dir=.
7868 for ac_exec_ext in '' $ac_executable_extensions; do
7869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7870 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
7871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7872 break 2
7874 done
7875 done
7876 IFS=$as_save_IFS
7878 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
7880 esac
7882 MAKEINFO=$ac_cv_path_MAKEINFO
7883 if test -n "$MAKEINFO"; then
7884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7885 $as_echo "$MAKEINFO" >&6; }
7886 else
7887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7888 $as_echo "no" >&6; }
7892 if test "$MAKEINFO" != "no" && \
7893 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
7894 MAKEINFO=no
7897 ## Makeinfo is unusual. For a released Emacs, the manuals are
7898 ## pre-built, and not deleted by the normal clean rules. makeinfo is
7899 ## therefore in the category of "special tools" not normally required, which
7900 ## configure does not have to check for (eg autoconf itself).
7901 ## In a Bazaar checkout on the other hand, the manuals are not included.
7902 ## So makeinfo is a requirement to build from Bazaar, and configure
7903 ## should test for it as it does for any other build requirement.
7904 ## We use the presence of $srcdir/info/emacs to distinguish a release,
7905 ## with pre-built manuals, from a Bazaar checkout.
7906 HAVE_MAKEINFO=yes
7908 if test "$MAKEINFO" = "no"; then
7909 MAKEINFO=makeinfo
7910 if test "x${with_makeinfo}" = "xno"; then
7911 HAVE_MAKEINFO=no
7912 elif test ! -e $srcdir/info/emacs; then
7913 as_fn_error "You do not seem to have makeinfo >= 4.7, and your
7914 source tree does not seem to have pre-built manuals in the \`info' directory.
7915 Either install a suitable version of makeinfo, or re-run configure
7916 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
7921 INFO_EXT=.info
7922 INFO_OPTS=--no-split
7927 if test x$GCC = xyes; then
7928 test "x$GCC_LINK_TEST_OPTIONS" != x && \
7929 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
7930 else
7931 test "x$NON_GCC_LINK_TEST_OPTIONS" != x && \
7932 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
7936 late_LDFLAGS=$LDFLAGS
7937 if test x$GCC = xyes; then
7938 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
7939 else
7940 LDFLAGS="$LDFLAGS -znocombreloc"
7943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
7944 $as_echo_n "checking for -znocombreloc... " >&6; }
7945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7946 /* end confdefs.h. */
7949 main ()
7953 return 0;
7955 _ACEOF
7956 if ac_fn_c_try_link "$LINENO"; then :
7957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7958 $as_echo "yes" >&6; }
7959 else
7960 LDFLAGS=$late_LDFLAGS
7961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7962 $as_echo "no" >&6; }
7964 rm -f core conftest.err conftest.$ac_objext \
7965 conftest$ac_exeext conftest.$ac_ext
7968 test "x$CANNOT_DUMP" = "x" && CANNOT_DUMP=no
7969 case "$opsys" in
7970 your-opsys-here) CANNOT_DUMP=yes ;;
7971 esac
7973 test "$CANNOT_DUMP" = "yes" && \
7975 $as_echo "#define CANNOT_DUMP 1" >>confdefs.h
7981 UNEXEC_OBJ=unexelf.o
7982 case "$opsys" in
7983 # MSDOS uses unexcoff.o
7984 # MSWindows uses unexw32.o
7985 aix4-2)
7986 UNEXEC_OBJ=unexaix.o
7988 cygwin)
7989 UNEXEC_OBJ=unexcw.o
7991 darwin)
7992 UNEXEC_OBJ=unexmacosx.o
7994 hpux10-20 | hpux11)
7995 UNEXEC_OBJ=unexhp9k800.o
7997 sol2-10)
7998 # Use the Solaris dldump() function, called from unexsol.c, to dump
7999 # emacs, instead of the generic ELF dump code found in unexelf.c.
8000 # The resulting binary has a complete symbol table, and is better
8001 # for debugging and other observability tools (debuggers, pstack, etc).
8003 # If you encounter a problem using dldump(), please consider sending
8004 # a message to the OpenSolaris tools-linking mailing list:
8005 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
8007 # It is likely that dldump() works with older Solaris too, but this has
8008 # not been tested, so for now this change is for Solaris 10 or newer.
8009 UNEXEC_OBJ=unexsol.o
8011 esac
8013 LD_SWITCH_SYSTEM=
8014 case "$opsys" in
8015 freebsd)
8016 ## Let `ld' find image libs and similar things in /usr/local/lib.
8017 ## The system compiler, GCC, has apparently been modified to not
8018 ## look there, contrary to what a stock GCC would do.
8019 ### It's not our place to do this. See bug#10313#17.
8020 ### LD_SWITCH_SYSTEM=-L/usr/local/lib
8024 gnu-linux)
8025 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
8026 case $host_cpu in mips*) LD_SWITCH_SYSTEM="-G 0";; esac
8029 netbsd)
8030 ### It's not our place to do this. See bug#10313#17.
8031 ### LD_SWITCH_SYSTEM="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
8035 openbsd)
8036 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
8037 ## otherwise Emacs dumps core on elf systems.
8038 LD_SWITCH_SYSTEM="-Z"
8040 esac
8043 ac_link="$ac_link $LD_SWITCH_SYSTEM"
8045 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_RPATH,
8046 ## which has not been defined yet. When this was handled with cpp,
8047 ## it was expanded to null when configure sourced the s/*.h file.
8048 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
8049 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
8050 ## (or somesuch), but because it is supposed to go at the _front_
8051 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
8052 ## Compare with the gnu-linux case below, which added to the end
8053 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
8054 ## LD_SWITCH_SYSTEM_TEMACS.
8055 case "$opsys" in
8056 netbsd|openbsd)
8057 LD_SWITCH_SYSTEM="\$(LD_SWITCH_X_SITE_RPATH) $LD_SWITCH_SYSTEM" ;;
8058 esac
8061 C_SWITCH_MACHINE=
8062 case $canonical in
8063 alpha*)
8064 ac_fn_c_check_decl "$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
8065 if test "x$ac_cv_have_decl___ELF__" = x""yes; then :
8069 if test "$ac_cv_have_decl___ELF__" = "yes"; then
8070 ## With ELF, make sure that all common symbols get allocated to in the
8071 ## data section. Otherwise, the dump of temacs may miss variables in
8072 ## the shared library that have been initialized. For example, with
8073 ## GNU libc, __malloc_initialized would normally be resolved to the
8074 ## shared library's .bss section, which is fatal.
8075 if test "x$GCC" = "xyes"; then
8076 C_SWITCH_MACHINE="-fno-common"
8077 else
8078 as_fn_error "What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
8080 else
8081 UNEXEC_OBJ=unexalpha.o
8084 esac
8089 C_SWITCH_SYSTEM=
8090 ## Some programs in src produce warnings saying certain subprograms
8091 ## are too complex and need a MAXMEM value greater than 2000 for
8092 ## additional optimization. --nils@exp-math.uni-essen.de
8093 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
8094 C_SWITCH_SYSTEM="-ma -qmaxmem=4000"
8095 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
8096 ## It is redundant in glibc2, since we define _GNU_SOURCE.
8100 LIBS_SYSTEM=
8101 case "$opsys" in
8102 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
8103 aix4-2) LIBS_SYSTEM="-lrts -lIM -liconv" ;;
8105 freebsd) LIBS_SYSTEM="-lutil" ;;
8107 hpux*) LIBS_SYSTEM="-l:libdld.sl" ;;
8109 sol2*) LIBS_SYSTEM="-lsocket -lnsl" ;;
8111 ## Motif needs -lgen.
8112 unixware) LIBS_SYSTEM="-lsocket -lnsl -lelf -lgen" ;;
8113 esac
8117 ### Make sure subsequent tests use flags consistent with the build flags.
8119 if test x"${OVERRIDE_CPPFLAGS}" != x; then
8120 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
8121 else
8122 CPPFLAGS="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
8125 # Suppress obsolescent Autoconf test for size_t; Emacs assumes C89 or better.
8127 # Likewise for obsolescent test for uid_t, gid_t; Emacs assumes them.
8131 LIB_MATH=-lm
8132 LIB_STANDARD=
8133 START_FILES=
8134 SYSTEM_TYPE=`echo $opsys | sed -e 's/[0-9].*//' -e 's|-|/|'`
8136 case $opsys in
8137 cygwin )
8138 LIB_MATH=
8139 START_FILES='pre-crt0.o'
8141 darwin )
8142 ## Adding -lm confuses the dynamic linker, so omit it.
8143 LIB_MATH=
8144 START_FILES='pre-crt0.o'
8146 freebsd )
8147 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
8148 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
8149 SYSTEM_TYPE=berkeley-unix
8151 gnu-linux | gnu-kfreebsd )
8152 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
8153 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
8155 hpux10-20 | hpux11 )
8156 LIB_STANDARD=-lc
8157 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o'
8159 netbsd | openbsd )
8160 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
8161 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
8162 SYSTEM_TYPE=berkeley-unix
8165 sol2* | unixware )
8166 SYSTEM_TYPE=usg-unix-v
8169 esac
8174 cat >>confdefs.h <<_ACEOF
8175 #define SYSTEM_TYPE "$SYSTEM_TYPE"
8176 _ACEOF
8179 crt_files=
8181 for file in x $LIB_STANDARD $START_FILES; do
8182 case "$file" in
8183 *CRT_DIR*) crt_files="$crt_files `echo $file | sed -e 's|.*/||'`" ;;
8184 esac
8185 done
8187 if test "x$crt_files" != x; then
8189 ## If user specified a crt-dir, use that unconditionally.
8190 crt_gcc=no
8192 if test "X$CRT_DIR" = "X"; then
8194 CRT_DIR=/usr/lib # default
8196 case "$canonical" in
8197 x86_64-*-linux-gnu* | s390x-*-linux-gnu*)
8198 ## On x86-64 and s390x GNU/Linux distributions, the standard library
8199 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
8200 ## For anything else (eg /usr/lib32), it is up the user to specify
8201 ## the location (bug#5655).
8202 ## Test for crtn.o, not just the directory, because sometimes the
8203 ## directory exists but does not have the relevant files (bug#1287).
8204 ## FIXME better to test for binary compatibility somehow.
8205 test -e /usr/lib64/crtn.o && CRT_DIR=/usr/lib64
8208 powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*) CRT_DIR=/usr/lib64 ;;
8209 esac
8211 case "$opsys" in
8212 hpux10-20) CRT_DIR=/lib ;;
8213 esac
8215 test "x${GCC}" = xyes && crt_gcc=yes
8217 fi # CRT_DIR = ""
8219 crt_missing=
8221 for file in $crt_files; do
8223 ## If we're using gcc, try to determine it automatically by asking
8224 ## gcc. [If this doesn't work, CRT_DIR will remain at the
8225 ## system-dependent default from above.]
8226 if test $crt_gcc = yes && test ! -e $CRT_DIR/$file; then
8228 crt_file=`$CC --print-file-name=$file 2>/dev/null`
8229 case "$crt_file" in
8230 */*)
8231 CRT_DIR=`$as_dirname -- "$crt_file" ||
8232 $as_expr X"$crt_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8233 X"$crt_file" : 'X\(//\)[^/]' \| \
8234 X"$crt_file" : 'X\(//\)$' \| \
8235 X"$crt_file" : 'X\(/\)' \| . 2>/dev/null ||
8236 $as_echo X"$crt_file" |
8237 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8238 s//\1/
8241 /^X\(\/\/\)[^/].*/{
8242 s//\1/
8245 /^X\(\/\/\)$/{
8246 s//\1/
8249 /^X\(\/\).*/{
8250 s//\1/
8253 s/.*/./; q'`
8255 esac
8258 crt_gcc=no
8260 test -e $CRT_DIR/$file || crt_missing="$crt_missing $file"
8261 done # $crt_files
8263 test "x$crt_missing" = x || \
8264 as_fn_error "Required file(s) not found:$crt_missing
8265 Try using the --with-crt-dir option." "$LINENO" 5
8267 fi # crt_files != ""
8271 case $opsys in
8272 netbsd | openbsd )
8273 if test -f $CRT_DIR/crti.o; then
8275 test -f $CRT_DIR/crtn.o || \
8276 as_fn_error "Required file not found: crtn.o" "$LINENO" 5
8278 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
8279 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
8282 esac
8285 # Extract the first word of "pkg-config", so it can be a program name with args.
8286 set dummy pkg-config; ac_word=$2
8287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8288 $as_echo_n "checking for $ac_word... " >&6; }
8289 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8290 $as_echo_n "(cached) " >&6
8291 else
8292 case $PKG_CONFIG in
8293 [\\/]* | ?:[\\/]*)
8294 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8298 for as_dir in $PATH
8300 IFS=$as_save_IFS
8301 test -z "$as_dir" && as_dir=.
8302 for ac_exec_ext in '' $ac_executable_extensions; do
8303 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8304 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8306 break 2
8308 done
8309 done
8310 IFS=$as_save_IFS
8312 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8314 esac
8316 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8317 if test -n "$PKG_CONFIG"; then
8318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8319 $as_echo "$PKG_CONFIG" >&6; }
8320 else
8321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8322 $as_echo "no" >&6; }
8330 if test "${with_sound}" != "no"; then
8331 # Sound support for GNU/Linux and the free BSDs.
8332 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
8333 do :
8334 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8335 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8336 eval as_val=\$$as_ac_Header
8337 if test "x$as_val" = x""yes; then :
8338 cat >>confdefs.h <<_ACEOF
8339 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8340 _ACEOF
8341 have_sound_header=yes
8344 done
8346 # Emulation library used on NetBSD.
8347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
8348 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
8349 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
8350 $as_echo_n "(cached) " >&6
8351 else
8352 ac_check_lib_save_LIBS=$LIBS
8353 LIBS="-lossaudio $LIBS"
8354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8355 /* end confdefs.h. */
8357 /* Override any GCC internal prototype to avoid an error.
8358 Use char because int might match the return type of a GCC
8359 builtin and then its argument prototype would still apply. */
8360 #ifdef __cplusplus
8361 extern "C"
8362 #endif
8363 char _oss_ioctl ();
8365 main ()
8367 return _oss_ioctl ();
8369 return 0;
8371 _ACEOF
8372 if ac_fn_c_try_link "$LINENO"; then :
8373 ac_cv_lib_ossaudio__oss_ioctl=yes
8374 else
8375 ac_cv_lib_ossaudio__oss_ioctl=no
8377 rm -f core conftest.err conftest.$ac_objext \
8378 conftest$ac_exeext conftest.$ac_ext
8379 LIBS=$ac_check_lib_save_LIBS
8381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
8382 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
8383 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x""yes; then :
8384 LIBSOUND=-lossaudio
8385 else
8386 LIBSOUND=
8391 ALSA_REQUIRED=1.0.0
8392 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
8394 succeeded=no
8396 if test "$PKG_CONFIG" = "no" ; then
8397 HAVE_ALSA=no
8398 else
8399 PKG_CONFIG_MIN_VERSION=0.9.0
8400 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
8402 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
8404 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5 &&
8405 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES" 2>&5` &&
8406 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES" 2>&5`; then
8407 edit_cflags="
8408 s,///*,/,g
8409 s/^/ /
8410 s/ -I/ $isystem/g
8411 s/^ //
8413 ALSA_CFLAGS=`$as_echo "$ALSA_CFLAGS" | sed -e "$edit_cflags"`
8414 ALSA_LIBS=`$as_echo "$ALSA_LIBS" | sed -e 's,///*,/,g'`
8415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$ALSA_CFLAGS' LIBS='$ALSA_LIBS'" >&5
8416 $as_echo "yes CFLAGS='$ALSA_CFLAGS' LIBS='$ALSA_LIBS'" >&6; }
8417 succeeded=yes
8418 else
8419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8420 $as_echo "no" >&6; }
8421 ALSA_CFLAGS=""
8422 ALSA_LIBS=""
8423 ## If we have a custom action on failure, don't print errors, but
8424 ## do set a variable so people can do so.
8425 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
8431 else
8432 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8433 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8437 if test $succeeded = yes; then
8438 HAVE_ALSA=yes
8439 else
8440 HAVE_ALSA=no
8443 if test $HAVE_ALSA = yes; then
8444 SAVE_CFLAGS="$CFLAGS"
8445 SAVE_LIBS="$LIBS"
8446 CFLAGS="$ALSA_CFLAGS $CFLAGS"
8447 LIBS="$ALSA_LIBS $LIBS"
8448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8449 /* end confdefs.h. */
8450 #include <asoundlib.h>
8452 main ()
8454 snd_lib_error_set_handler (0);
8456 return 0;
8458 _ACEOF
8459 if ac_fn_c_try_compile "$LINENO"; then :
8460 emacs_alsa_normal=yes
8461 else
8462 emacs_alsa_normal=no
8464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8465 if test "$emacs_alsa_normal" != yes; then
8466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8467 /* end confdefs.h. */
8468 #include <alsa/asoundlib.h>
8470 main ()
8472 snd_lib_error_set_handler (0);
8474 return 0;
8476 _ACEOF
8477 if ac_fn_c_try_compile "$LINENO"; then :
8478 emacs_alsa_subdir=yes
8479 else
8480 emacs_alsa_subdir=no
8482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8483 if test "$emacs_alsa_subdir" != yes; then
8484 as_fn_error "pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
8486 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
8489 CFLAGS="$SAVE_CFLAGS"
8490 LIBS="$SAVE_LIBS"
8491 LIBSOUND="$LIBSOUND $ALSA_LIBS"
8492 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
8494 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
8498 if test x$have_sound_header = xyes || test $HAVE_ALSA = yes; then
8499 case "$opsys" in
8500 gnu-linux|freebsd|netbsd)
8502 $as_echo "#define HAVE_SOUND 1" >>confdefs.h
8505 esac
8514 for ac_header in $ac_header_list
8515 do :
8516 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8517 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8519 eval as_val=\$$as_ac_Header
8520 if test "x$as_val" = x""yes; then :
8521 cat >>confdefs.h <<_ACEOF
8522 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8523 _ACEOF
8527 done
8563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
8564 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
8565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8566 /* end confdefs.h. */
8567 #include <sys/personality.h>
8569 main ()
8571 personality (PER_LINUX32)
8573 return 0;
8575 _ACEOF
8576 if ac_fn_c_try_compile "$LINENO"; then :
8577 emacs_cv_personality_linux32=yes
8578 else
8579 emacs_cv_personality_linux32=no
8581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
8583 $as_echo "$emacs_cv_personality_linux32" >&6; }
8585 if test $emacs_cv_personality_linux32 = yes; then
8587 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
8591 for ac_header in term.h
8592 do :
8593 ac_fn_c_check_header_preproc "$LINENO" "term.h" "ac_cv_header_term_h"
8594 if test "x$ac_cv_header_term_h" = x""yes; then :
8595 cat >>confdefs.h <<_ACEOF
8596 #define HAVE_TERM_H 1
8597 _ACEOF
8601 done
8603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8604 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8605 if test "${ac_cv_header_time+set}" = set; then :
8606 $as_echo_n "(cached) " >&6
8607 else
8608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8609 /* end confdefs.h. */
8610 #include <sys/types.h>
8611 #include <sys/time.h>
8612 #include <time.h>
8615 main ()
8617 if ((struct tm *) 0)
8618 return 0;
8620 return 0;
8622 _ACEOF
8623 if ac_fn_c_try_compile "$LINENO"; then :
8624 ac_cv_header_time=yes
8625 else
8626 ac_cv_header_time=no
8628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8631 $as_echo "$ac_cv_header_time" >&6; }
8632 if test $ac_cv_header_time = yes; then
8634 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8638 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default"
8639 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then :
8640 ac_have_decl=1
8641 else
8642 ac_have_decl=0
8645 cat >>confdefs.h <<_ACEOF
8646 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
8647 _ACEOF
8649 if test $ac_cv_have_decl_sys_siglist != yes; then
8650 # For Tru64, at least:
8651 ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default"
8652 if test "x$ac_cv_have_decl___sys_siglist" = x""yes; then :
8653 ac_have_decl=1
8654 else
8655 ac_have_decl=0
8658 cat >>confdefs.h <<_ACEOF
8659 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
8660 _ACEOF
8662 if test $ac_cv_have_decl___sys_siglist = yes; then
8664 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
8668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8669 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8670 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8671 $as_echo_n "(cached) " >&6
8672 else
8673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8674 /* end confdefs.h. */
8675 #include <sys/types.h>
8676 #include <sys/wait.h>
8677 #ifndef WEXITSTATUS
8678 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8679 #endif
8680 #ifndef WIFEXITED
8681 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8682 #endif
8685 main ()
8687 int s;
8688 wait (&s);
8689 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8691 return 0;
8693 _ACEOF
8694 if ac_fn_c_try_compile "$LINENO"; then :
8695 ac_cv_header_sys_wait_h=yes
8696 else
8697 ac_cv_header_sys_wait_h=no
8699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8702 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8703 if test $ac_cv_header_sys_wait_h = yes; then
8705 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
8711 $as_echo_n "checking for struct utimbuf... " >&6; }
8712 if test "${emacs_cv_struct_utimbuf+set}" = set; then :
8713 $as_echo_n "(cached) " >&6
8714 else
8715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8716 /* end confdefs.h. */
8717 #ifdef TIME_WITH_SYS_TIME
8718 #include <sys/time.h>
8719 #include <time.h>
8720 #else
8721 #ifdef HAVE_SYS_TIME_H
8722 #include <sys/time.h>
8723 #else
8724 #include <time.h>
8725 #endif
8726 #endif
8727 #ifdef HAVE_UTIME_H
8728 #include <utime.h>
8729 #endif
8731 main ()
8733 static struct utimbuf x; x.actime = x.modtime;
8735 return 0;
8737 _ACEOF
8738 if ac_fn_c_try_compile "$LINENO"; then :
8739 emacs_cv_struct_utimbuf=yes
8740 else
8741 emacs_cv_struct_utimbuf=no
8743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_utimbuf" >&5
8746 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
8747 if test $emacs_cv_struct_utimbuf = yes; then
8749 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
8753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
8754 $as_echo_n "checking for speed_t... " >&6; }
8755 if test "${emacs_cv_speed_t+set}" = set; then :
8756 $as_echo_n "(cached) " >&6
8757 else
8758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8759 /* end confdefs.h. */
8760 #include <termios.h>
8762 main ()
8764 speed_t x = 1;
8766 return 0;
8768 _ACEOF
8769 if ac_fn_c_try_compile "$LINENO"; then :
8770 emacs_cv_speed_t=yes
8771 else
8772 emacs_cv_speed_t=no
8774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
8777 $as_echo "$emacs_cv_speed_t" >&6; }
8778 if test $emacs_cv_speed_t = yes; then
8780 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
8784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
8785 $as_echo_n "checking for struct timeval... " >&6; }
8786 if test "${emacs_cv_struct_timeval+set}" = set; then :
8787 $as_echo_n "(cached) " >&6
8788 else
8789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8790 /* end confdefs.h. */
8791 #ifdef TIME_WITH_SYS_TIME
8792 #include <sys/time.h>
8793 #include <time.h>
8794 #else
8795 #ifdef HAVE_SYS_TIME_H
8796 #include <sys/time.h>
8797 #else
8798 #include <time.h>
8799 #endif
8800 #endif
8802 main ()
8804 static struct timeval x; x.tv_sec = x.tv_usec;
8806 return 0;
8808 _ACEOF
8809 if ac_fn_c_try_compile "$LINENO"; then :
8810 emacs_cv_struct_timeval=yes
8811 else
8812 emacs_cv_struct_timeval=no
8814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_timeval" >&5
8817 $as_echo "$emacs_cv_struct_timeval" >&6; }
8818 HAVE_TIMEVAL=$emacs_cv_struct_timeval
8819 if test $emacs_cv_struct_timeval = yes; then
8821 $as_echo "#define HAVE_TIMEVAL 1" >>confdefs.h
8825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct exception" >&5
8826 $as_echo_n "checking for struct exception... " >&6; }
8827 if test "${emacs_cv_struct_exception+set}" = set; then :
8828 $as_echo_n "(cached) " >&6
8829 else
8830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8831 /* end confdefs.h. */
8832 #include <math.h>
8834 main ()
8836 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
8838 return 0;
8840 _ACEOF
8841 if ac_fn_c_try_compile "$LINENO"; then :
8842 emacs_cv_struct_exception=yes
8843 else
8844 emacs_cv_struct_exception=no
8846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_exception" >&5
8849 $as_echo "$emacs_cv_struct_exception" >&6; }
8850 HAVE_EXCEPTION=$emacs_cv_struct_exception
8851 if test $emacs_cv_struct_exception != yes; then
8853 $as_echo "#define NO_MATHERR 1" >>confdefs.h
8860 for ac_header in net/if.h
8861 do :
8862 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
8863 #if HAVE_SYS_SOCKET_H
8864 #include <sys/socket.h>
8865 #endif
8867 if test "x$ac_cv_header_net_if_h" = x""yes; then :
8868 cat >>confdefs.h <<_ACEOF
8869 #define HAVE_NET_IF_H 1
8870 _ACEOF
8874 done
8876 for ac_header in ifaddrs.h
8877 do :
8878 ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default
8879 #if HAVE_SYS_SOCKET_H
8880 #include <sys/socket.h>
8881 #endif
8883 if test "x$ac_cv_header_ifaddrs_h" = x""yes; then :
8884 cat >>confdefs.h <<_ACEOF
8885 #define HAVE_IFADDRS_H 1
8886 _ACEOF
8890 done
8892 for ac_header in net/if_dl.h
8893 do :
8894 ac_fn_c_check_header_compile "$LINENO" "net/if_dl.h" "ac_cv_header_net_if_dl_h" "$ac_includes_default
8895 #if HAVE_SYS_SOCKET_H
8896 #include <sys/socket.h>
8897 #endif
8899 if test "x$ac_cv_header_net_if_dl_h" = x""yes; then :
8900 cat >>confdefs.h <<_ACEOF
8901 #define HAVE_NET_IF_DL_H 1
8902 _ACEOF
8906 done
8909 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
8910 #if HAVE_SYS_SOCKET_H
8911 #include <sys/socket.h>
8912 #endif
8913 #if HAVE_NET_IF_H
8914 #include <net/if.h>
8915 #endif
8917 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x""yes; then :
8919 cat >>confdefs.h <<_ACEOF
8920 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8921 _ACEOF
8925 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
8926 #if HAVE_SYS_SOCKET_H
8927 #include <sys/socket.h>
8928 #endif
8929 #if HAVE_NET_IF_H
8930 #include <net/if.h>
8931 #endif
8933 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x""yes; then :
8935 cat >>confdefs.h <<_ACEOF
8936 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8937 _ACEOF
8941 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
8942 #if HAVE_SYS_SOCKET_H
8943 #include <sys/socket.h>
8944 #endif
8945 #if HAVE_NET_IF_H
8946 #include <net/if.h>
8947 #endif
8949 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x""yes; then :
8951 cat >>confdefs.h <<_ACEOF
8952 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8953 _ACEOF
8957 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
8958 #if HAVE_SYS_SOCKET_H
8959 #include <sys/socket.h>
8960 #endif
8961 #if HAVE_NET_IF_H
8962 #include <net/if.h>
8963 #endif
8965 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x""yes; then :
8967 cat >>confdefs.h <<_ACEOF
8968 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8969 _ACEOF
8973 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
8974 #if HAVE_SYS_SOCKET_H
8975 #include <sys/socket.h>
8976 #endif
8977 #if HAVE_NET_IF_H
8978 #include <net/if.h>
8979 #endif
8981 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x""yes; then :
8983 cat >>confdefs.h <<_ACEOF
8984 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8985 _ACEOF
8989 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr.sa_len" "ac_cv_member_struct_ifreq_ifr_addr_sa_len" "$ac_includes_default
8990 #if HAVE_SYS_SOCKET_H
8991 #include <sys/socket.h>
8992 #endif
8993 #if HAVE_NET_IF_H
8994 #include <net/if.h>
8995 #endif
8997 if test "x$ac_cv_member_struct_ifreq_ifr_addr_sa_len" = x""yes; then :
8999 cat >>confdefs.h <<_ACEOF
9000 #define HAVE_STRUCT_IFREQ_IFR_ADDR_SA_LEN 1
9001 _ACEOF
9008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__ ((__aligned__ (expr)))" >&5
9009 $as_echo_n "checking for __attribute__ ((__aligned__ (expr)))... " >&6; }
9010 if test "${emacs_cv_attribute_aligned+set}" = set; then :
9011 $as_echo_n "(cached) " >&6
9012 else
9013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9014 /* end confdefs.h. */
9015 char __attribute__ ((__aligned__ (1 << 3))) c;
9017 main ()
9021 return 0;
9023 _ACEOF
9024 if ac_fn_c_try_compile "$LINENO"; then :
9025 emacs_cv_attribute_aligned=yes
9026 else
9027 emacs_cv_attribute_aligned=no
9029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_attribute_aligned" >&5
9032 $as_echo "$emacs_cv_attribute_aligned" >&6; }
9033 if test $emacs_cv_attribute_aligned = yes; then
9035 $as_echo "#define HAVE_ATTRIBUTE_ALIGNED 1" >>confdefs.h
9040 DEPFLAGS=
9041 MKDEPDIR=":"
9042 deps_frag=deps.mk
9043 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
9044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
9045 $as_echo_n "checking whether we are using GNU Make... " >&6; }
9046 HAVE_GNU_MAKE=no
9047 testval=`${MAKE-make} --version 2>/dev/null | grep 'GNU Make'`
9048 if test "x$testval" != x; then
9049 HAVE_GNU_MAKE=yes
9050 else
9051 ac_enable_autodepend=no
9053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
9054 $as_echo "$HAVE_GNU_MAKE" >&6; }
9055 if test $HAVE_GNU_MAKE = yes; then
9056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
9057 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
9058 SAVE_CFLAGS="$CFLAGS"
9059 CFLAGS="$CFLAGS -MMD -MF deps.d -MP"
9060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9061 /* end confdefs.h. */
9064 main ()
9068 return 0;
9070 _ACEOF
9071 if ac_fn_c_try_compile "$LINENO"; then :
9073 else
9074 ac_enable_autodepend=no
9076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9077 CFLAGS="$SAVE_CFLAGS"
9078 test -f deps.d || ac_enable_autodepend=no
9079 rm -rf deps.d
9080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
9081 $as_echo "$ac_enable_autodepend" >&6; }
9083 if test $ac_enable_autodepend = yes; then
9084 DEPFLAGS='-MMD -MF ${DEPDIR}/$*.d -MP'
9085 ## MKDIR_P is documented (see AC_PROG_MKDIR_P) to be parallel-safe.
9086 MKDEPDIR='${MKDIR_P} ${DEPDIR}'
9087 deps_frag=autodeps.mk
9090 deps_frag=$srcdir/src/$deps_frag
9096 lisp_frag=$srcdir/src/lisp.mk
9100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
9101 $as_echo_n "checking for long file names... " >&6; }
9102 if test "${ac_cv_sys_long_file_names+set}" = set; then :
9103 $as_echo_n "(cached) " >&6
9104 else
9105 ac_cv_sys_long_file_names=yes
9106 # Test for long file names in all the places we know might matter:
9107 # . the current directory, where building will happen
9108 # $prefix/lib where we will be installing things
9109 # $exec_prefix/lib likewise
9110 # $TMPDIR if set, where it might want to write temporary files
9111 # /tmp where it might want to write temporary files
9112 # /var/tmp likewise
9113 # /usr/tmp likewise
9114 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9115 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9116 # in the usual case where exec_prefix is '${prefix}'.
9117 case $ac_dir in #(
9118 . | /* | ?:[\\/]*) ;; #(
9119 *) continue;;
9120 esac
9121 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9122 ac_xdir=$ac_dir/cf$$
9123 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9124 ac_tf1=$ac_xdir/conftest9012345
9125 ac_tf2=$ac_xdir/conftest9012346
9126 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9127 ac_cv_sys_long_file_names=no
9128 rm -f -r "$ac_xdir" 2>/dev/null
9129 test $ac_cv_sys_long_file_names = no && break
9130 done
9132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
9133 $as_echo "$ac_cv_sys_long_file_names" >&6; }
9134 if test $ac_cv_sys_long_file_names = yes; then
9136 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
9141 #### Choose a window system.
9143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
9144 $as_echo_n "checking for X... " >&6; }
9147 # Check whether --with-x was given.
9148 if test "${with_x+set}" = set; then :
9149 withval=$with_x;
9152 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9153 if test "x$with_x" = xno; then
9154 # The user explicitly disabled X.
9155 have_x=disabled
9156 else
9157 case $x_includes,$x_libraries in #(
9158 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
9159 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
9160 $as_echo_n "(cached) " >&6
9161 else
9162 # One or both of the vars are not set, and there is no cached value.
9163 ac_x_includes=no ac_x_libraries=no
9164 rm -f -r conftest.dir
9165 if mkdir conftest.dir; then
9166 cd conftest.dir
9167 cat >Imakefile <<'_ACEOF'
9168 incroot:
9169 @echo incroot='${INCROOT}'
9170 usrlibdir:
9171 @echo usrlibdir='${USRLIBDIR}'
9172 libdir:
9173 @echo libdir='${LIBDIR}'
9174 _ACEOF
9175 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9176 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9177 for ac_var in incroot usrlibdir libdir; do
9178 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9179 done
9180 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9181 for ac_extension in a so sl dylib la dll; do
9182 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9183 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9184 ac_im_usrlibdir=$ac_im_libdir; break
9186 done
9187 # Screen out bogus values from the imake configuration. They are
9188 # bogus both because they are the default anyway, and because
9189 # using them would break gcc on systems where it needs fixed includes.
9190 case $ac_im_incroot in
9191 /usr/include) ac_x_includes= ;;
9192 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9193 esac
9194 case $ac_im_usrlibdir in
9195 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
9196 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9197 esac
9199 cd ..
9200 rm -f -r conftest.dir
9203 # Standard set of common directories for X headers.
9204 # Check X11 before X11Rn because it is often a symlink to the current release.
9205 ac_x_header_dirs='
9206 /usr/X11/include
9207 /usr/X11R7/include
9208 /usr/X11R6/include
9209 /usr/X11R5/include
9210 /usr/X11R4/include
9212 /usr/include/X11
9213 /usr/include/X11R7
9214 /usr/include/X11R6
9215 /usr/include/X11R5
9216 /usr/include/X11R4
9218 /usr/local/X11/include
9219 /usr/local/X11R7/include
9220 /usr/local/X11R6/include
9221 /usr/local/X11R5/include
9222 /usr/local/X11R4/include
9224 /usr/local/include/X11
9225 /usr/local/include/X11R7
9226 /usr/local/include/X11R6
9227 /usr/local/include/X11R5
9228 /usr/local/include/X11R4
9230 /usr/X386/include
9231 /usr/x386/include
9232 /usr/XFree86/include/X11
9234 /usr/include
9235 /usr/local/include
9236 /usr/unsupported/include
9237 /usr/athena/include
9238 /usr/local/x11r5/include
9239 /usr/lpp/Xamples/include
9241 /usr/openwin/include
9242 /usr/openwin/share/include'
9244 if test "$ac_x_includes" = no; then
9245 # Guess where to find include files, by looking for Xlib.h.
9246 # First, try using that file with no special directory specified.
9247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9248 /* end confdefs.h. */
9249 #include <X11/Xlib.h>
9250 _ACEOF
9251 if ac_fn_c_try_cpp "$LINENO"; then :
9252 # We can compile using X headers with no special include directory.
9253 ac_x_includes=
9254 else
9255 for ac_dir in $ac_x_header_dirs; do
9256 if test -r "$ac_dir/X11/Xlib.h"; then
9257 ac_x_includes=$ac_dir
9258 break
9260 done
9262 rm -f conftest.err conftest.$ac_ext
9263 fi # $ac_x_includes = no
9265 if test "$ac_x_libraries" = no; then
9266 # Check for the libraries.
9267 # See if we find them without any special options.
9268 # Don't add to $LIBS permanently.
9269 ac_save_LIBS=$LIBS
9270 LIBS="-lX11 $LIBS"
9271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9272 /* end confdefs.h. */
9273 #include <X11/Xlib.h>
9275 main ()
9277 XrmInitialize ()
9279 return 0;
9281 _ACEOF
9282 if ac_fn_c_try_link "$LINENO"; then :
9283 LIBS=$ac_save_LIBS
9284 # We can link X programs with no special library path.
9285 ac_x_libraries=
9286 else
9287 LIBS=$ac_save_LIBS
9288 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9290 # Don't even attempt the hair of trying to link an X program!
9291 for ac_extension in a so sl dylib la dll; do
9292 if test -r "$ac_dir/libX11.$ac_extension"; then
9293 ac_x_libraries=$ac_dir
9294 break 2
9296 done
9297 done
9299 rm -f core conftest.err conftest.$ac_objext \
9300 conftest$ac_exeext conftest.$ac_ext
9301 fi # $ac_x_libraries = no
9303 case $ac_x_includes,$ac_x_libraries in #(
9304 no,* | *,no | *\'*)
9305 # Didn't find X, or a directory has "'" in its name.
9306 ac_cv_have_x="have_x=no";; #(
9308 # Record where we found X for the cache.
9309 ac_cv_have_x="have_x=yes\
9310 ac_x_includes='$ac_x_includes'\
9311 ac_x_libraries='$ac_x_libraries'"
9312 esac
9314 ;; #(
9315 *) have_x=yes;;
9316 esac
9317 eval "$ac_cv_have_x"
9318 fi # $with_x != no
9320 if test "$have_x" != yes; then
9321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
9322 $as_echo "$have_x" >&6; }
9323 no_x=yes
9324 else
9325 # If each of the values was on the command line, it overrides each guess.
9326 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9327 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9328 # Update the cache value to reflect the command line values.
9329 ac_cv_have_x="have_x=yes\
9330 ac_x_includes='$x_includes'\
9331 ac_x_libraries='$x_libraries'"
9332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
9333 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
9336 if test "$no_x" = yes; then
9337 window_system=none
9338 else
9339 window_system=x11
9342 LD_SWITCH_X_SITE_RPATH=
9343 if test "${x_libraries}" != NONE; then
9344 if test -n "${x_libraries}"; then
9345 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9346 LD_SWITCH_X_SITE_RPATH=-Wl,-rpath,`echo ${x_libraries} | sed -e "s/:/ -Wl,-rpath,/g"`
9348 x_default_search_path=""
9349 x_search_path=${x_libraries}
9350 if test -z "${x_search_path}"; then
9351 x_search_path=/usr/lib
9353 for x_library in `echo ${x_search_path}: | \
9354 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9355 x_search_path="\
9356 ${x_library}/X11/%L/%T/%N%C%S:\
9357 ${x_library}/X11/%l/%T/%N%C%S:\
9358 ${x_library}/X11/%T/%N%C%S:\
9359 ${x_library}/X11/%L/%T/%N%S:\
9360 ${x_library}/X11/%l/%T/%N%S:\
9361 ${x_library}/X11/%T/%N%S"
9362 if test x"${x_default_search_path}" = x; then
9363 x_default_search_path=${x_search_path}
9364 else
9365 x_default_search_path="${x_search_path}:${x_default_search_path}"
9367 done
9371 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9372 C_SWITCH_X_SITE="$isystem"`echo ${x_includes} | sed -e "s/:/ $isystem/g"`
9375 if test x"${x_includes}" = x; then
9376 bitmapdir=/usr/include/X11/bitmaps
9377 else
9378 # accumulate include directories that have X11 bitmap subdirectories
9379 bmd_acc="dummyval"
9380 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9381 if test -d "${bmd}/X11/bitmaps"; then
9382 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9384 if test -d "${bmd}/bitmaps"; then
9385 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9387 done
9388 if test ${bmd_acc} != "dummyval"; then
9389 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9393 HAVE_NS=no
9394 NS_IMPL_COCOA=no
9395 NS_IMPL_GNUSTEP=no
9396 tmp_CPPFLAGS="$CPPFLAGS"
9397 tmp_CFLAGS="$CFLAGS"
9398 CPPFLAGS="$CPPFLAGS -x objective-c"
9399 CFLAGS="$CFLAGS -x objective-c"
9400 TEMACS_LDFLAGS2="\${LDFLAGS}"
9401 GNU_OBJC_CFLAGS=
9402 if test "${with_ns}" != no; then
9403 if test "${opsys}" = darwin; then
9404 NS_IMPL_COCOA=yes
9405 ns_appdir=`pwd`/nextstep/Emacs.app
9406 ns_appbindir=${ns_appdir}/Contents/MacOS
9407 ns_appresdir=${ns_appdir}/Contents/Resources
9408 ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base
9409 elif test -f $GNUSTEP_CONFIG_FILE; then
9410 NS_IMPL_GNUSTEP=yes
9411 ns_appdir=`pwd`/nextstep/Emacs.app
9412 ns_appbindir=${ns_appdir}
9413 ns_appresdir=${ns_appdir}/Resources
9414 ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base
9415 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9416 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9417 GNUSTEP_LOCAL_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
9418 GNUSTEP_LOCAL_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
9419 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
9420 GNUSTEP_LOCAL_HEADERS="-I${GNUSTEP_LOCAL_HEADERS}"
9421 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
9422 GNUSTEP_LOCAL_LIBRARIES="-L${GNUSTEP_LOCAL_LIBRARIES}"
9423 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9424 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9425 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
9426 LIB_STANDARD=
9427 START_FILES=
9428 TEMACS_LDFLAGS2=
9429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS" >&5
9430 $as_echo_n "checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS... " >&6; }
9431 if test "${emacs_cv_objc_exceptions+set}" = set; then :
9432 $as_echo_n "(cached) " >&6
9433 else
9434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9435 /* end confdefs.h. */
9436 #include <GNUstepBase/GSConfig.h>
9438 main ()
9440 #if defined BASE_NATIVE_OBJC_EXCEPTIONS && BASE_NATIVE_OBJC_EXCEPTIONS > 0
9442 #else
9443 fail;
9444 #endif
9446 return 0;
9448 _ACEOF
9449 if ac_fn_c_try_compile "$LINENO"; then :
9450 emacs_cv_objc_exceptions=yes
9451 else
9452 emacs_cv_objc_exceptions=no
9454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_objc_exceptions" >&5
9457 $as_echo "$emacs_cv_objc_exceptions" >&6; }
9458 if test $emacs_cv_objc_exceptions = yes; then
9460 $as_echo "#define _NATIVE_OBJC_EXCEPTIONS 1" >>confdefs.h
9462 GNU_OBJC_CFLAGS="-fobjc-exceptions"
9466 CFLAGS="$CFLAGS $GNU_OBJC_CFLAGS"
9468 ac_fn_c_check_header_mongrel "$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
9469 if test "x$ac_cv_header_AppKit_AppKit_h" = x""yes; then :
9470 HAVE_NS=yes
9471 else
9472 as_fn_error "\`--with-ns' was specified, but the include
9473 files are missing or cannot be compiled." "$LINENO" 5
9477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9478 /* end confdefs.h. */
9479 #include <Foundation/NSObjCRuntime.h>
9481 main ()
9483 NSInteger i;
9485 return 0;
9487 _ACEOF
9488 if ac_fn_c_try_compile "$LINENO"; then :
9489 ns_have_nsinteger=yes
9490 else
9491 ns_have_nsinteger=no
9493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9494 if test $ns_have_nsinteger = yes; then
9496 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
9502 INSTALL_ARCH_INDEP_EXTRA=install-etc
9503 ns_self_contained=no
9504 ns_frag=/dev/null
9505 NS_OBJ=
9506 NS_OBJC_OBJ=
9507 if test "${HAVE_NS}" = yes; then
9508 if test "$with_toolkit_scroll_bars" = "no"; then
9509 as_fn_error "Non-toolkit scroll bars are not implemented for Nextstep." "$LINENO" 5
9512 window_system=nextstep
9513 with_xft=no
9514 # set up packaging dirs
9515 if test "${EN_NS_SELF_CONTAINED}" = yes; then
9516 ns_self_contained=yes
9517 prefix=${ns_appresdir}
9518 exec_prefix=${ns_appbindir}
9519 libexecdir="\${ns_appbindir}/libexec"
9520 archlibdir="\${ns_appbindir}/libexec"
9521 docdir="\${ns_appresdir}/etc"
9522 etcdir="\${ns_appresdir}/etc"
9523 infodir="\${ns_appresdir}/info"
9524 mandir="\${ns_appresdir}/man"
9525 lispdir="\${ns_appresdir}/lisp"
9526 leimdir="\${ns_appresdir}/leim"
9527 INSTALL_ARCH_INDEP_EXTRA=
9529 ns_frag=$srcdir/src/ns.mk
9530 NS_OBJ="fontset.o fringe.o image.o"
9531 NS_OBJC_OBJ="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o"
9533 CFLAGS="$tmp_CFLAGS"
9534 CPPFLAGS="$tmp_CPPFLAGS"
9542 case "${window_system}" in
9543 x11 )
9544 HAVE_X_WINDOWS=yes
9545 HAVE_X11=yes
9546 case "${with_x_toolkit}" in
9547 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9548 motif ) USE_X_TOOLKIT=MOTIF ;;
9549 gtk ) with_gtk=yes
9550 USE_X_TOOLKIT=none ;;
9551 gtk3 ) with_gtk3=yes
9552 USE_X_TOOLKIT=none ;;
9553 no ) USE_X_TOOLKIT=none ;;
9554 * ) USE_X_TOOLKIT=maybe ;;
9555 esac
9557 nextstep | none )
9558 HAVE_X_WINDOWS=no
9559 HAVE_X11=no
9560 USE_X_TOOLKIT=none
9562 esac
9564 if test "$window_system" = none && test "X$with_x" != "Xno"; then
9565 # Extract the first word of "X", so it can be a program name with args.
9566 set dummy X; ac_word=$2
9567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9568 $as_echo_n "checking for $ac_word... " >&6; }
9569 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then :
9570 $as_echo_n "(cached) " >&6
9571 else
9572 if test -n "$HAVE_XSERVER"; then
9573 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9574 else
9575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9576 for as_dir in $PATH
9578 IFS=$as_save_IFS
9579 test -z "$as_dir" && as_dir=.
9580 for ac_exec_ext in '' $ac_executable_extensions; do
9581 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9582 ac_cv_prog_HAVE_XSERVER="true"
9583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9584 break 2
9586 done
9587 done
9588 IFS=$as_save_IFS
9590 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9593 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9594 if test -n "$HAVE_XSERVER"; then
9595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
9596 $as_echo "$HAVE_XSERVER" >&6; }
9597 else
9598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9599 $as_echo "no" >&6; }
9603 if test "$HAVE_XSERVER" = true ||
9604 test -n "$DISPLAY" ||
9605 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
9606 as_fn_error "You seem to be running X, but no X development libraries
9607 were found. You should install the relevant development files for X
9608 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9609 sure you have development files for image handling, i.e.
9610 tiff, gif, jpeg, png and xpm.
9611 If you are sure you want Emacs compiled without X window support, pass
9612 --without-x
9613 to configure." "$LINENO" 5
9617 ### If we're using X11, we should use the X menu package.
9618 HAVE_MENUS=no
9619 case ${HAVE_X11} in
9620 yes ) HAVE_MENUS=yes ;;
9621 esac
9623 # Does the opsystem file prohibit the use of the GNU malloc?
9624 # Assume not, until told otherwise.
9625 GNU_MALLOC=yes
9627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc is Doug Lea style" >&5
9628 $as_echo_n "checking whether malloc is Doug Lea style... " >&6; }
9629 if test "${emacs_cv_var_doug_lea_malloc+set}" = set; then :
9630 $as_echo_n "(cached) " >&6
9631 else
9632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9633 /* end confdefs.h. */
9634 #include <malloc.h>
9635 static void hook (void) {}
9637 main ()
9639 malloc_set_state (malloc_get_state ());
9640 __after_morecore_hook = hook;
9641 __malloc_initialize_hook = hook;
9643 return 0;
9645 _ACEOF
9646 if ac_fn_c_try_link "$LINENO"; then :
9647 emacs_cv_var_doug_lea_malloc=yes
9648 else
9649 emacs_cv_var_doug_lea_malloc=no
9651 rm -f core conftest.err conftest.$ac_objext \
9652 conftest$ac_exeext conftest.$ac_ext
9654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var_doug_lea_malloc" >&5
9655 $as_echo "$emacs_cv_var_doug_lea_malloc" >&6; }
9656 doug_lea_malloc=$emacs_cv_var_doug_lea_malloc
9659 system_malloc=no
9660 case "$opsys" in
9661 ## darwin ld insists on the use of malloc routines in the System framework.
9662 darwin|sol2-10) system_malloc=yes ;;
9663 esac
9665 if test "${system_malloc}" = "yes"; then
9667 $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
9669 GNU_MALLOC=no
9670 GNU_MALLOC_reason="
9671 (The GNU allocators don't work with this system configuration.)"
9672 GMALLOC_OBJ=
9673 VMLIMIT_OBJ=
9674 else
9675 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ=gmalloc.o
9676 VMLIMIT_OBJ=vm-limit.o
9681 if test "$doug_lea_malloc" = "yes" ; then
9682 if test "$GNU_MALLOC" = yes ; then
9683 GNU_MALLOC_reason="
9684 (Using Doug Lea's new malloc from the GNU C Library.)"
9687 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
9690 ## Use mmap directly for allocating larger buffers.
9691 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
9692 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
9693 ## Does the AC_FUNC_MMAP test below make this check unnecessary?
9694 case "$opsys" in
9695 gnu*) REL_ALLOC=no ;;
9696 esac
9699 if test x"${REL_ALLOC}" = x; then
9700 REL_ALLOC=${GNU_MALLOC}
9703 use_mmap_for_buffers=no
9704 case "$opsys" in
9705 cygwin|freebsd|irix6-5) use_mmap_for_buffers=yes ;;
9706 esac
9715 for ac_func in getpagesize
9716 do :
9717 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
9718 if test "x$ac_cv_func_getpagesize" = x""yes; then :
9719 cat >>confdefs.h <<_ACEOF
9720 #define HAVE_GETPAGESIZE 1
9721 _ACEOF
9724 done
9726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
9727 $as_echo_n "checking for working mmap... " >&6; }
9728 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
9729 $as_echo_n "(cached) " >&6
9730 else
9731 if test "$cross_compiling" = yes; then :
9732 ac_cv_func_mmap_fixed_mapped=no
9733 else
9734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9735 /* end confdefs.h. */
9736 $ac_includes_default
9737 /* malloc might have been renamed as rpl_malloc. */
9738 #undef malloc
9740 /* Thanks to Mike Haertel and Jim Avera for this test.
9741 Here is a matrix of mmap possibilities:
9742 mmap private not fixed
9743 mmap private fixed at somewhere currently unmapped
9744 mmap private fixed at somewhere already mapped
9745 mmap shared not fixed
9746 mmap shared fixed at somewhere currently unmapped
9747 mmap shared fixed at somewhere already mapped
9748 For private mappings, we should verify that changes cannot be read()
9749 back from the file, nor mmap's back from the file at a different
9750 address. (There have been systems where private was not correctly
9751 implemented like the infamous i386 svr4.0, and systems where the
9752 VM page cache was not coherent with the file system buffer cache
9753 like early versions of FreeBSD and possibly contemporary NetBSD.)
9754 For shared mappings, we should conversely verify that changes get
9755 propagated back to all the places they're supposed to be.
9757 Grep wants private fixed already mapped.
9758 The main things grep needs to know about mmap are:
9759 * does it exist and is it safe to write into the mmap'd area
9760 * how to use it (BSD variants) */
9762 #include <fcntl.h>
9763 #include <sys/mman.h>
9765 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
9766 char *malloc ();
9767 #endif
9769 /* This mess was copied from the GNU getpagesize.h. */
9770 #ifndef HAVE_GETPAGESIZE
9771 # ifdef _SC_PAGESIZE
9772 # define getpagesize() sysconf(_SC_PAGESIZE)
9773 # else /* no _SC_PAGESIZE */
9774 # ifdef HAVE_SYS_PARAM_H
9775 # include <sys/param.h>
9776 # ifdef EXEC_PAGESIZE
9777 # define getpagesize() EXEC_PAGESIZE
9778 # else /* no EXEC_PAGESIZE */
9779 # ifdef NBPG
9780 # define getpagesize() NBPG * CLSIZE
9781 # ifndef CLSIZE
9782 # define CLSIZE 1
9783 # endif /* no CLSIZE */
9784 # else /* no NBPG */
9785 # ifdef NBPC
9786 # define getpagesize() NBPC
9787 # else /* no NBPC */
9788 # ifdef PAGESIZE
9789 # define getpagesize() PAGESIZE
9790 # endif /* PAGESIZE */
9791 # endif /* no NBPC */
9792 # endif /* no NBPG */
9793 # endif /* no EXEC_PAGESIZE */
9794 # else /* no HAVE_SYS_PARAM_H */
9795 # define getpagesize() 8192 /* punt totally */
9796 # endif /* no HAVE_SYS_PARAM_H */
9797 # endif /* no _SC_PAGESIZE */
9799 #endif /* no HAVE_GETPAGESIZE */
9802 main ()
9804 char *data, *data2, *data3;
9805 const char *cdata2;
9806 int i, pagesize;
9807 int fd, fd2;
9809 pagesize = getpagesize ();
9811 /* First, make a file with some known garbage in it. */
9812 data = (char *) malloc (pagesize);
9813 if (!data)
9814 return 1;
9815 for (i = 0; i < pagesize; ++i)
9816 *(data + i) = rand ();
9817 umask (0);
9818 fd = creat ("conftest.mmap", 0600);
9819 if (fd < 0)
9820 return 2;
9821 if (write (fd, data, pagesize) != pagesize)
9822 return 3;
9823 close (fd);
9825 /* Next, check that the tail of a page is zero-filled. File must have
9826 non-zero length, otherwise we risk SIGBUS for entire page. */
9827 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
9828 if (fd2 < 0)
9829 return 4;
9830 cdata2 = "";
9831 if (write (fd2, cdata2, 1) != 1)
9832 return 5;
9833 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
9834 if (data2 == MAP_FAILED)
9835 return 6;
9836 for (i = 0; i < pagesize; ++i)
9837 if (*(data2 + i))
9838 return 7;
9839 close (fd2);
9840 if (munmap (data2, pagesize))
9841 return 8;
9843 /* Next, try to mmap the file at a fixed address which already has
9844 something else allocated at it. If we can, also make sure that
9845 we see the same garbage. */
9846 fd = open ("conftest.mmap", O_RDWR);
9847 if (fd < 0)
9848 return 9;
9849 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9850 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9851 return 10;
9852 for (i = 0; i < pagesize; ++i)
9853 if (*(data + i) != *(data2 + i))
9854 return 11;
9856 /* Finally, make sure that changes to the mapped area do not
9857 percolate back to the file as seen by read(). (This is a bug on
9858 some variants of i386 svr4.0.) */
9859 for (i = 0; i < pagesize; ++i)
9860 *(data2 + i) = *(data2 + i) + 1;
9861 data3 = (char *) malloc (pagesize);
9862 if (!data3)
9863 return 12;
9864 if (read (fd, data3, pagesize) != pagesize)
9865 return 13;
9866 for (i = 0; i < pagesize; ++i)
9867 if (*(data + i) != *(data3 + i))
9868 return 14;
9869 close (fd);
9870 return 0;
9872 _ACEOF
9873 if ac_fn_c_try_run "$LINENO"; then :
9874 ac_cv_func_mmap_fixed_mapped=yes
9875 else
9876 ac_cv_func_mmap_fixed_mapped=no
9878 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9879 conftest.$ac_objext conftest.beam conftest.$ac_ext
9883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
9884 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
9885 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9887 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
9890 rm -f conftest.mmap conftest.txt
9892 if test $use_mmap_for_buffers = yes; then
9894 $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
9896 REL_ALLOC=no
9899 LIBS="$LIBS_SYSTEM $LIBS"
9901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
9902 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
9903 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
9904 $as_echo_n "(cached) " >&6
9905 else
9906 ac_check_lib_save_LIBS=$LIBS
9907 LIBS="-ldnet $LIBS"
9908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9909 /* end confdefs.h. */
9911 /* Override any GCC internal prototype to avoid an error.
9912 Use char because int might match the return type of a GCC
9913 builtin and then its argument prototype would still apply. */
9914 #ifdef __cplusplus
9915 extern "C"
9916 #endif
9917 char dnet_ntoa ();
9919 main ()
9921 return dnet_ntoa ();
9923 return 0;
9925 _ACEOF
9926 if ac_fn_c_try_link "$LINENO"; then :
9927 ac_cv_lib_dnet_dnet_ntoa=yes
9928 else
9929 ac_cv_lib_dnet_dnet_ntoa=no
9931 rm -f core conftest.err conftest.$ac_objext \
9932 conftest$ac_exeext conftest.$ac_ext
9933 LIBS=$ac_check_lib_save_LIBS
9935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9936 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
9937 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
9938 cat >>confdefs.h <<_ACEOF
9939 #define HAVE_LIBDNET 1
9940 _ACEOF
9942 LIBS="-ldnet $LIBS"
9947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
9948 $as_echo_n "checking for main in -lXbsd... " >&6; }
9949 if test "${ac_cv_lib_Xbsd_main+set}" = set; then :
9950 $as_echo_n "(cached) " >&6
9951 else
9952 ac_check_lib_save_LIBS=$LIBS
9953 LIBS="-lXbsd $LIBS"
9954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9955 /* end confdefs.h. */
9959 main ()
9961 return main ();
9963 return 0;
9965 _ACEOF
9966 if ac_fn_c_try_link "$LINENO"; then :
9967 ac_cv_lib_Xbsd_main=yes
9968 else
9969 ac_cv_lib_Xbsd_main=no
9971 rm -f core conftest.err conftest.$ac_objext \
9972 conftest$ac_exeext conftest.$ac_ext
9973 LIBS=$ac_check_lib_save_LIBS
9975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
9976 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
9977 if test "x$ac_cv_lib_Xbsd_main" = x""yes; then :
9978 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
9982 LIB_PTHREAD=
9986 if test "$ac_cv_header_pthread_h"; then
9987 if test "$GMALLOC_OBJ" = gmalloc.o; then
9988 emacs_pthread_function=pthread_atfork
9989 else
9990 emacs_pthread_function=pthread_self
9992 as_ac_Lib=`$as_echo "ac_cv_lib_pthread_$emacs_pthread_function" | $as_tr_sh`
9993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $emacs_pthread_function in -lpthread" >&5
9994 $as_echo_n "checking for $emacs_pthread_function in -lpthread... " >&6; }
9995 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
9996 $as_echo_n "(cached) " >&6
9997 else
9998 ac_check_lib_save_LIBS=$LIBS
9999 LIBS="-lpthread $LIBS"
10000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10001 /* end confdefs.h. */
10003 /* Override any GCC internal prototype to avoid an error.
10004 Use char because int might match the return type of a GCC
10005 builtin and then its argument prototype would still apply. */
10006 #ifdef __cplusplus
10007 extern "C"
10008 #endif
10009 char $emacs_pthread_function ();
10011 main ()
10013 return $emacs_pthread_function ();
10015 return 0;
10017 _ACEOF
10018 if ac_fn_c_try_link "$LINENO"; then :
10019 eval "$as_ac_Lib=yes"
10020 else
10021 eval "$as_ac_Lib=no"
10023 rm -f core conftest.err conftest.$ac_objext \
10024 conftest$ac_exeext conftest.$ac_ext
10025 LIBS=$ac_check_lib_save_LIBS
10027 eval ac_res=\$$as_ac_Lib
10028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10029 $as_echo "$ac_res" >&6; }
10030 eval as_val=\$$as_ac_Lib
10031 if test "x$as_val" = x""yes; then :
10032 HAVE_PTHREAD=yes
10036 if test "$HAVE_PTHREAD" = yes; then
10037 case "${canonical}" in
10038 *-hpux*) ;;
10039 *) LIB_PTHREAD="-lpthread"
10040 LIBS="$LIB_PTHREAD $LIBS" ;;
10041 esac
10043 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
10048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
10049 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
10050 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then :
10051 $as_echo_n "(cached) " >&6
10052 else
10053 ac_check_lib_save_LIBS=$LIBS
10054 LIBS="-lpthreads $LIBS"
10055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10056 /* end confdefs.h. */
10058 /* Override any GCC internal prototype to avoid an error.
10059 Use char because int might match the return type of a GCC
10060 builtin and then its argument prototype would still apply. */
10061 #ifdef __cplusplus
10062 extern "C"
10063 #endif
10064 char cma_open ();
10066 main ()
10068 return cma_open ();
10070 return 0;
10072 _ACEOF
10073 if ac_fn_c_try_link "$LINENO"; then :
10074 ac_cv_lib_pthreads_cma_open=yes
10075 else
10076 ac_cv_lib_pthreads_cma_open=no
10078 rm -f core conftest.err conftest.$ac_objext \
10079 conftest$ac_exeext conftest.$ac_ext
10080 LIBS=$ac_check_lib_save_LIBS
10082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
10083 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
10084 if test "x$ac_cv_lib_pthreads_cma_open" = x""yes; then :
10085 cat >>confdefs.h <<_ACEOF
10086 #define HAVE_LIBPTHREADS 1
10087 _ACEOF
10089 LIBS="-lpthreads $LIBS"
10094 ## Note: when using cpp in s/aix4.2.h, this definition depended on
10095 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
10096 ## the system file was sourced. Hence the value of LIBS_SYSTEM
10097 ## added to LIBS in configure would never contain the pthreads part,
10098 ## but the value used in Makefiles might. FIXME?
10100 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
10101 ## be harmless on older versions of X where it happens to exist.
10102 test "$opsys" = "aix4-2" && \
10103 test $ac_cv_lib_pthreads_cma_open = yes && \
10104 LIBS_SYSTEM="$LIBS_SYSTEM -lpthreads"
10107 case ${host_os} in
10108 aix*)
10109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
10110 $as_echo_n "checking for -bbigtoc option... " >&6; }
10111 if test "${gdb_cv_bigtoc+set}" = set; then :
10112 $as_echo_n "(cached) " >&6
10113 else
10115 case $GCC in
10116 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
10117 *) gdb_cv_bigtoc=-bbigtoc ;;
10118 esac
10120 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10122 /* end confdefs.h. */
10125 main ()
10127 int i;
10129 return 0;
10131 _ACEOF
10132 if ac_fn_c_try_link "$LINENO"; then :
10134 else
10135 gdb_cv_bigtoc=
10137 rm -f core conftest.err conftest.$ac_objext \
10138 conftest$ac_exeext conftest.$ac_ext
10141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
10142 $as_echo "$gdb_cv_bigtoc" >&6; }
10144 esac
10146 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10147 # used for the tests that follow. We set them back to REAL_CFLAGS and
10148 # REAL_CPPFLAGS later on.
10150 REAL_CFLAGS="$CFLAGS"
10151 REAL_CPPFLAGS="$CPPFLAGS"
10153 if test "${HAVE_X11}" = "yes"; then
10154 DEFS="$C_SWITCH_X_SITE $DEFS"
10155 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10156 LIBS="-lX11 $LIBS"
10157 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10158 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10160 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10161 # This is handled by LD_SWITCH_X_SITE_RPATH during the real build,
10162 # but it's more convenient here to set LD_RUN_PATH since this
10163 # also works on hosts that don't understand LD_SWITCH_X_SITE_RPATH.
10164 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10165 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10166 export LD_RUN_PATH
10169 if test "${opsys}" = "gnu-linux"; then
10170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
10171 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
10172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10173 /* end confdefs.h. */
10176 main ()
10178 XOpenDisplay ("foo");
10180 return 0;
10182 _ACEOF
10183 if ac_fn_c_try_link "$LINENO"; then :
10184 xgnu_linux_first_failure=no
10185 else
10186 xgnu_linux_first_failure=yes
10188 rm -f core conftest.err conftest.$ac_objext \
10189 conftest$ac_exeext conftest.$ac_ext
10190 if test "${xgnu_linux_first_failure}" = "yes"; then
10191 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
10192 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
10193 OLD_CPPFLAGS="$CPPFLAGS"
10194 OLD_LIBS="$LIBS"
10195 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
10196 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
10197 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
10198 LIBS="$LIBS -b i486-linuxaout"
10199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10200 /* end confdefs.h. */
10203 main ()
10205 XOpenDisplay ("foo");
10207 return 0;
10209 _ACEOF
10210 if ac_fn_c_try_link "$LINENO"; then :
10211 xgnu_linux_second_failure=no
10212 else
10213 xgnu_linux_second_failure=yes
10215 rm -f core conftest.err conftest.$ac_objext \
10216 conftest$ac_exeext conftest.$ac_ext
10217 if test "${xgnu_linux_second_failure}" = "yes"; then
10218 # If we get the same failure with -b, there is no use adding -b.
10219 # So take it out. This plays safe.
10220 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10221 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10222 CPPFLAGS="$OLD_CPPFLAGS"
10223 LIBS="$OLD_LIBS"
10224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10225 $as_echo "no" >&6; }
10226 else
10227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10228 $as_echo "yes" >&6; }
10230 else
10231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10232 $as_echo "no" >&6; }
10236 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10237 # header files included from there.
10238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
10239 $as_echo_n "checking for Xkb... " >&6; }
10240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10241 /* end confdefs.h. */
10242 #include <X11/Xlib.h>
10243 #include <X11/XKBlib.h>
10245 main ()
10247 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10249 return 0;
10251 _ACEOF
10252 if ac_fn_c_try_link "$LINENO"; then :
10253 emacs_xkb=yes
10254 else
10255 emacs_xkb=no
10257 rm -f core conftest.err conftest.$ac_objext \
10258 conftest$ac_exeext conftest.$ac_ext
10259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
10260 $as_echo "$emacs_xkb" >&6; }
10261 if test $emacs_xkb = yes; then
10263 $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
10267 for ac_func in XrmSetDatabase XScreenResourceString \
10268 XScreenNumberOfScreen
10269 do :
10270 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10271 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10272 eval as_val=\$$as_ac_var
10273 if test "x$as_val" = x""yes; then :
10274 cat >>confdefs.h <<_ACEOF
10275 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10276 _ACEOF
10279 done
10283 if test "${window_system}" = "x11"; then
10284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
10285 $as_echo_n "checking X11 version 6... " >&6; }
10286 if test "${emacs_cv_x11_version_6+set}" = set; then :
10287 $as_echo_n "(cached) " >&6
10288 else
10289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10290 /* end confdefs.h. */
10291 #include <X11/Xlib.h>
10293 main ()
10295 #if XlibSpecificationRelease < 6
10296 fail;
10297 #endif
10300 return 0;
10302 _ACEOF
10303 if ac_fn_c_try_link "$LINENO"; then :
10304 emacs_cv_x11_version_6=yes
10305 else
10306 emacs_cv_x11_version_6=no
10308 rm -f core conftest.err conftest.$ac_objext \
10309 conftest$ac_exeext conftest.$ac_ext
10312 if test $emacs_cv_x11_version_6 = yes; then
10313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
10314 $as_echo "6 or newer" >&6; }
10316 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
10319 $as_echo "#define HAVE_X_I18N 1" >>confdefs.h
10321 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
10322 ## XIM support.
10323 case "$opsys" in
10324 sol2-*) : ;;
10326 $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
10329 esac
10330 else
10331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
10332 $as_echo "before 6" >&6; }
10337 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
10338 HAVE_RSVG=no
10339 if test "${HAVE_X11}" = "yes" || test "${HAVE_NS}" = "yes"; then
10340 if test "${with_rsvg}" != "no"; then
10341 RSVG_REQUIRED=2.11.0
10342 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
10345 succeeded=no
10347 if test "$PKG_CONFIG" = "no" ; then
10349 else
10350 PKG_CONFIG_MIN_VERSION=0.9.0
10351 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
10353 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
10355 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5 &&
10356 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE" 2>&5` &&
10357 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE" 2>&5`; then
10358 edit_cflags="
10359 s,///*,/,g
10360 s/^/ /
10361 s/ -I/ $isystem/g
10362 s/^ //
10364 RSVG_CFLAGS=`$as_echo "$RSVG_CFLAGS" | sed -e "$edit_cflags"`
10365 RSVG_LIBS=`$as_echo "$RSVG_LIBS" | sed -e 's,///*,/,g'`
10366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$RSVG_CFLAGS' LIBS='$RSVG_LIBS'" >&5
10367 $as_echo "yes CFLAGS='$RSVG_CFLAGS' LIBS='$RSVG_LIBS'" >&6; }
10368 succeeded=yes
10369 else
10370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10371 $as_echo "no" >&6; }
10372 RSVG_CFLAGS=""
10373 RSVG_LIBS=""
10374 ## If we have a custom action on failure, don't print errors, but
10375 ## do set a variable so people can do so.
10376 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
10382 else
10383 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10384 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10388 if test $succeeded = yes; then
10389 HAVE_RSVG=yes
10390 else
10397 if test $HAVE_RSVG = yes; then
10399 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
10401 CFLAGS="$CFLAGS $RSVG_CFLAGS"
10402 LIBS="$RSVG_LIBS $LIBS"
10407 HAVE_IMAGEMAGICK=no
10408 if test "${HAVE_X11}" = "yes"; then
10409 if test "${with_imagemagick}" != "no"; then
10410 ## 6.2.8 is the earliest version known to work, but earlier versions
10411 ## might work - let us know if you find one.
10412 ## 6.0.7 does not work. See bug#7955.
10413 IMAGEMAGICK_MODULE="Wand >= 6.2.8"
10415 succeeded=no
10417 if test "$PKG_CONFIG" = "no" ; then
10419 else
10420 PKG_CONFIG_MIN_VERSION=0.9.0
10421 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
10423 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
10425 if $PKG_CONFIG --exists "$IMAGEMAGICK_MODULE" 2>&5 &&
10426 IMAGEMAGICK_CFLAGS=`$PKG_CONFIG --cflags "$IMAGEMAGICK_MODULE" 2>&5` &&
10427 IMAGEMAGICK_LIBS=`$PKG_CONFIG --libs "$IMAGEMAGICK_MODULE" 2>&5`; then
10428 edit_cflags="
10429 s,///*,/,g
10430 s/^/ /
10431 s/ -I/ $isystem/g
10432 s/^ //
10434 IMAGEMAGICK_CFLAGS=`$as_echo "$IMAGEMAGICK_CFLAGS" | sed -e "$edit_cflags"`
10435 IMAGEMAGICK_LIBS=`$as_echo "$IMAGEMAGICK_LIBS" | sed -e 's,///*,/,g'`
10436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$IMAGEMAGICK_CFLAGS' LIBS='$IMAGEMAGICK_LIBS'" >&5
10437 $as_echo "yes CFLAGS='$IMAGEMAGICK_CFLAGS' LIBS='$IMAGEMAGICK_LIBS'" >&6; }
10438 succeeded=yes
10439 else
10440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10441 $as_echo "no" >&6; }
10442 IMAGEMAGICK_CFLAGS=""
10443 IMAGEMAGICK_LIBS=""
10444 ## If we have a custom action on failure, don't print errors, but
10445 ## do set a variable so people can do so.
10446 IMAGEMAGICK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$IMAGEMAGICK_MODULE"`
10452 else
10453 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10454 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10458 if test $succeeded = yes; then
10459 HAVE_IMAGEMAGICK=yes
10460 else
10467 if test $HAVE_IMAGEMAGICK = yes; then
10469 $as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
10471 CFLAGS="$CFLAGS $IMAGEMAGICK_CFLAGS"
10472 LIBS="$IMAGEMAGICK_LIBS $LIBS"
10473 for ac_func in MagickExportImagePixels MagickMergeImageLayers
10474 do :
10475 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10476 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10477 eval as_val=\$$as_ac_var
10478 if test "x$as_val" = x""yes; then :
10479 cat >>confdefs.h <<_ACEOF
10480 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10481 _ACEOF
10484 done
10491 HAVE_GTK=no
10492 GTK_OBJ=
10493 if test "${with_gtk3}" = "yes"; then
10494 GLIB_REQUIRED=2.28
10495 GTK_REQUIRED=3.0
10496 GTK_MODULES="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10499 succeeded=no
10501 if test "$PKG_CONFIG" = "no" ; then
10502 pkg_check_gtk=no
10503 else
10504 PKG_CONFIG_MIN_VERSION=0.9.0
10505 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
10507 $as_echo_n "checking for $GTK_MODULES... " >&6; }
10509 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5 &&
10510 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES" 2>&5` &&
10511 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES" 2>&5`; then
10512 edit_cflags="
10513 s,///*,/,g
10514 s/^/ /
10515 s/ -I/ $isystem/g
10516 s/^ //
10518 GTK_CFLAGS=`$as_echo "$GTK_CFLAGS" | sed -e "$edit_cflags"`
10519 GTK_LIBS=`$as_echo "$GTK_LIBS" | sed -e 's,///*,/,g'`
10520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&5
10521 $as_echo "yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&6; }
10522 succeeded=yes
10523 else
10524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10525 $as_echo "no" >&6; }
10526 GTK_CFLAGS=""
10527 GTK_LIBS=""
10528 ## If we have a custom action on failure, don't print errors, but
10529 ## do set a variable so people can do so.
10530 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10536 else
10537 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10538 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10542 if test $succeeded = yes; then
10543 pkg_check_gtk=yes
10544 else
10545 pkg_check_gtk=no
10548 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
10549 as_fn_error "$GTK_PKG_ERRORS" "$LINENO" 5
10552 $as_echo "#define HAVE_GTK3 1" >>confdefs.h
10554 GTK_OBJ=emacsgtkfixed.o
10557 if test "$pkg_check_gtk" != "yes"; then
10558 HAVE_GTK=no
10559 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
10560 GLIB_REQUIRED=2.10
10561 GTK_REQUIRED=2.10
10562 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10565 succeeded=no
10567 if test "$PKG_CONFIG" = "no" ; then
10568 pkg_check_gtk=no
10569 else
10570 PKG_CONFIG_MIN_VERSION=0.9.0
10571 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
10573 $as_echo_n "checking for $GTK_MODULES... " >&6; }
10575 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5 &&
10576 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES" 2>&5` &&
10577 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES" 2>&5`; then
10578 edit_cflags="
10579 s,///*,/,g
10580 s/^/ /
10581 s/ -I/ $isystem/g
10582 s/^ //
10584 GTK_CFLAGS=`$as_echo "$GTK_CFLAGS" | sed -e "$edit_cflags"`
10585 GTK_LIBS=`$as_echo "$GTK_LIBS" | sed -e 's,///*,/,g'`
10586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&5
10587 $as_echo "yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&6; }
10588 succeeded=yes
10589 else
10590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10591 $as_echo "no" >&6; }
10592 GTK_CFLAGS=""
10593 GTK_LIBS=""
10594 ## If we have a custom action on failure, don't print errors, but
10595 ## do set a variable so people can do so.
10596 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10602 else
10603 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10604 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10608 if test $succeeded = yes; then
10609 pkg_check_gtk=yes
10610 else
10611 pkg_check_gtk=no
10614 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
10615 as_fn_error "$GTK_PKG_ERRORS" "$LINENO" 5
10620 if test x"$pkg_check_gtk" = xyes; then
10624 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
10625 CFLAGS="$CFLAGS $GTK_CFLAGS"
10626 LIBS="$GTK_LIBS $LIBS"
10627 GTK_COMPILES=no
10628 for ac_func in gtk_main
10629 do :
10630 ac_fn_c_check_func "$LINENO" "gtk_main" "ac_cv_func_gtk_main"
10631 if test "x$ac_cv_func_gtk_main" = x""yes; then :
10632 cat >>confdefs.h <<_ACEOF
10633 #define HAVE_GTK_MAIN 1
10634 _ACEOF
10635 GTK_COMPILES=yes
10637 done
10639 if test "${GTK_COMPILES}" != "yes"; then
10640 if test "$USE_X_TOOLKIT" != "maybe"; then
10641 as_fn_error "Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
10643 else
10644 HAVE_GTK=yes
10646 $as_echo "#define USE_GTK 1" >>confdefs.h
10648 GTK_OBJ="gtkutil.o $GTK_OBJ"
10649 USE_X_TOOLKIT=none
10650 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
10652 else
10653 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
10654 closing open displays. This is no problem if you just use
10655 one display, but if you use more than one and close one of them
10656 Emacs may crash." >&5
10657 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
10658 closing open displays. This is no problem if you just use
10659 one display, but if you use more than one and close one of them
10660 Emacs may crash." >&2;}
10661 sleep 3
10669 if test "${HAVE_GTK}" = "yes"; then
10671 if test "$with_toolkit_scroll_bars" != no; then
10672 with_toolkit_scroll_bars=yes
10675 HAVE_GTK_FILE_SELECTION=no
10676 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
10677 #include <gtk/gtk.h>
10679 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x""yes; then :
10680 HAVE_GTK_FILE_SELECTION=yes
10681 else
10682 HAVE_GTK_FILE_SELECTION=no
10685 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
10686 for ac_func in gtk_file_selection_new
10687 do :
10688 ac_fn_c_check_func "$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
10689 if test "x$ac_cv_func_gtk_file_selection_new" = x""yes; then :
10690 cat >>confdefs.h <<_ACEOF
10691 #define HAVE_GTK_FILE_SELECTION_NEW 1
10692 _ACEOF
10695 done
10700 for ac_func in gtk_widget_get_window gtk_widget_set_has_window \
10701 gtk_dialog_get_action_area gtk_widget_get_sensitive \
10702 gtk_widget_get_mapped gtk_adjustment_get_page_size \
10703 gtk_orientable_set_orientation \
10704 gtk_window_set_has_resize_grip
10705 do :
10706 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10707 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10708 eval as_val=\$$as_ac_var
10709 if test "x$as_val" = x""yes; then :
10710 cat >>confdefs.h <<_ACEOF
10711 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10712 _ACEOF
10715 done
10719 HAVE_DBUS=no
10720 DBUS_OBJ=
10721 if test "${with_dbus}" = "yes"; then
10723 succeeded=no
10725 if test "$PKG_CONFIG" = "no" ; then
10726 HAVE_DBUS=no
10727 else
10728 PKG_CONFIG_MIN_VERSION=0.9.0
10729 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
10731 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
10733 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5 &&
10734 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0" 2>&5` &&
10735 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0" 2>&5`; then
10736 edit_cflags="
10737 s,///*,/,g
10738 s/^/ /
10739 s/ -I/ $isystem/g
10740 s/^ //
10742 DBUS_CFLAGS=`$as_echo "$DBUS_CFLAGS" | sed -e "$edit_cflags"`
10743 DBUS_LIBS=`$as_echo "$DBUS_LIBS" | sed -e 's,///*,/,g'`
10744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$DBUS_CFLAGS' LIBS='$DBUS_LIBS'" >&5
10745 $as_echo "yes CFLAGS='$DBUS_CFLAGS' LIBS='$DBUS_LIBS'" >&6; }
10746 succeeded=yes
10747 else
10748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10749 $as_echo "no" >&6; }
10750 DBUS_CFLAGS=""
10751 DBUS_LIBS=""
10752 ## If we have a custom action on failure, don't print errors, but
10753 ## do set a variable so people can do so.
10754 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
10760 else
10761 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10762 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10766 if test $succeeded = yes; then
10767 HAVE_DBUS=yes
10768 else
10769 HAVE_DBUS=no
10772 if test "$HAVE_DBUS" = yes; then
10773 LIBS="$LIBS $DBUS_LIBS"
10775 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
10777 for ac_func in dbus_watch_get_unix_fd \
10778 dbus_type_is_valid \
10779 dbus_validate_bus_name \
10780 dbus_validate_path \
10781 dbus_validate_interface \
10782 dbus_validate_member
10783 do :
10784 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10785 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10786 eval as_val=\$$as_ac_var
10787 if test "x$as_val" = x""yes; then :
10788 cat >>confdefs.h <<_ACEOF
10789 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10790 _ACEOF
10793 done
10795 DBUS_OBJ=dbusbind.o
10800 HAVE_GSETTINGS=no
10801 if test "${HAVE_X11}" = "yes" && test "${with_gsettings}" = "yes"; then
10803 succeeded=no
10805 if test "$PKG_CONFIG" = "no" ; then
10806 HAVE_GSETTINGS=no
10807 else
10808 PKG_CONFIG_MIN_VERSION=0.9.0
10809 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gio-2.0 >= 2.26" >&5
10811 $as_echo_n "checking for gio-2.0 >= 2.26... " >&6; }
10813 if $PKG_CONFIG --exists "gio-2.0 >= 2.26" 2>&5 &&
10814 GSETTINGS_CFLAGS=`$PKG_CONFIG --cflags "gio-2.0 >= 2.26" 2>&5` &&
10815 GSETTINGS_LIBS=`$PKG_CONFIG --libs "gio-2.0 >= 2.26" 2>&5`; then
10816 edit_cflags="
10817 s,///*,/,g
10818 s/^/ /
10819 s/ -I/ $isystem/g
10820 s/^ //
10822 GSETTINGS_CFLAGS=`$as_echo "$GSETTINGS_CFLAGS" | sed -e "$edit_cflags"`
10823 GSETTINGS_LIBS=`$as_echo "$GSETTINGS_LIBS" | sed -e 's,///*,/,g'`
10824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GSETTINGS_CFLAGS' LIBS='$GSETTINGS_LIBS'" >&5
10825 $as_echo "yes CFLAGS='$GSETTINGS_CFLAGS' LIBS='$GSETTINGS_LIBS'" >&6; }
10826 succeeded=yes
10827 else
10828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10829 $as_echo "no" >&6; }
10830 GSETTINGS_CFLAGS=""
10831 GSETTINGS_LIBS=""
10832 ## If we have a custom action on failure, don't print errors, but
10833 ## do set a variable so people can do so.
10834 GSETTINGS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gio-2.0 >= 2.26"`
10840 else
10841 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10842 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10846 if test $succeeded = yes; then
10847 HAVE_GSETTINGS=yes
10848 else
10849 HAVE_GSETTINGS=no
10852 if test "$HAVE_GSETTINGS" = "yes"; then
10854 $as_echo "#define HAVE_GSETTINGS 1" >>confdefs.h
10856 SETTINGS_CFLAGS="$GSETTINGS_CFLAGS"
10857 SETTINGS_LIBS="$GSETTINGS_LIBS"
10861 HAVE_GCONF=no
10862 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
10864 succeeded=no
10866 if test "$PKG_CONFIG" = "no" ; then
10867 HAVE_GCONF=no
10868 else
10869 PKG_CONFIG_MIN_VERSION=0.9.0
10870 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
10872 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
10874 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5 &&
10875 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13" 2>&5` &&
10876 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13" 2>&5`; then
10877 edit_cflags="
10878 s,///*,/,g
10879 s/^/ /
10880 s/ -I/ $isystem/g
10881 s/^ //
10883 GCONF_CFLAGS=`$as_echo "$GCONF_CFLAGS" | sed -e "$edit_cflags"`
10884 GCONF_LIBS=`$as_echo "$GCONF_LIBS" | sed -e 's,///*,/,g'`
10885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GCONF_CFLAGS' LIBS='$GCONF_LIBS'" >&5
10886 $as_echo "yes CFLAGS='$GCONF_CFLAGS' LIBS='$GCONF_LIBS'" >&6; }
10887 succeeded=yes
10888 else
10889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10890 $as_echo "no" >&6; }
10891 GCONF_CFLAGS=""
10892 GCONF_LIBS=""
10893 ## If we have a custom action on failure, don't print errors, but
10894 ## do set a variable so people can do so.
10895 GCONF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
10901 else
10902 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10903 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10907 if test $succeeded = yes; then
10908 HAVE_GCONF=yes
10909 else
10910 HAVE_GCONF=no
10913 if test "$HAVE_GCONF" = yes; then
10915 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
10917 SETTINGS_CFLAGS="$SETTINGS_CFLAGS $GCONF_CFLAGS"
10918 SETTINGS_LIBS="$SETTINGS_LIBS $GCONF_LIBS"
10922 if test "$HAVE_GSETTINGS" = "yes" || test "$HAVE_GCONF" = "yes"; then
10923 SAVE_CFLAGS="$CFLAGS"
10924 SAVE_LIBS="$LIBS"
10925 CFLAGS="$SETTINGS_CFLAGS $CFLAGS"
10926 LIBS="$SETTINGS_LIBS $LIBS"
10927 for ac_func in g_type_init
10928 do :
10929 ac_fn_c_check_func "$LINENO" "g_type_init" "ac_cv_func_g_type_init"
10930 if test "x$ac_cv_func_g_type_init" = x""yes; then :
10931 cat >>confdefs.h <<_ACEOF
10932 #define HAVE_G_TYPE_INIT 1
10933 _ACEOF
10936 done
10938 CFLAGS="$SAVE_CFLAGS"
10939 LIBS="$SAVE_LIBS"
10945 HAVE_LIBSELINUX=no
10946 LIBSELINUX_LIBS=
10947 if test "${with_selinux}" = "yes"; then
10948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
10949 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
10950 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then :
10951 $as_echo_n "(cached) " >&6
10952 else
10953 ac_check_lib_save_LIBS=$LIBS
10954 LIBS="-lselinux $LIBS"
10955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10956 /* end confdefs.h. */
10958 /* Override any GCC internal prototype to avoid an error.
10959 Use char because int might match the return type of a GCC
10960 builtin and then its argument prototype would still apply. */
10961 #ifdef __cplusplus
10962 extern "C"
10963 #endif
10964 char lgetfilecon ();
10966 main ()
10968 return lgetfilecon ();
10970 return 0;
10972 _ACEOF
10973 if ac_fn_c_try_link "$LINENO"; then :
10974 ac_cv_lib_selinux_lgetfilecon=yes
10975 else
10976 ac_cv_lib_selinux_lgetfilecon=no
10978 rm -f core conftest.err conftest.$ac_objext \
10979 conftest$ac_exeext conftest.$ac_ext
10980 LIBS=$ac_check_lib_save_LIBS
10982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
10983 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
10984 if test "x$ac_cv_lib_selinux_lgetfilecon" = x""yes; then :
10985 HAVE_LIBSELINUX=yes
10986 else
10987 HAVE_LIBSELINUX=no
10990 if test "$HAVE_LIBSELINUX" = yes; then
10992 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
10994 LIBSELINUX_LIBS=-lselinux
10999 HAVE_GNUTLS=no
11000 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY=no
11001 if test "${with_gnutls}" = "yes" ; then
11003 succeeded=no
11005 if test "$PKG_CONFIG" = "no" ; then
11006 HAVE_GNUTLS=no
11007 else
11008 PKG_CONFIG_MIN_VERSION=0.9.0
11009 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.6.6" >&5
11011 $as_echo_n "checking for gnutls >= 2.6.6... " >&6; }
11013 if $PKG_CONFIG --exists "gnutls >= 2.6.6" 2>&5 &&
11014 LIBGNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls >= 2.6.6" 2>&5` &&
11015 LIBGNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls >= 2.6.6" 2>&5`; then
11016 edit_cflags="
11017 s,///*,/,g
11018 s/^/ /
11019 s/ -I/ $isystem/g
11020 s/^ //
11022 LIBGNUTLS_CFLAGS=`$as_echo "$LIBGNUTLS_CFLAGS" | sed -e "$edit_cflags"`
11023 LIBGNUTLS_LIBS=`$as_echo "$LIBGNUTLS_LIBS" | sed -e 's,///*,/,g'`
11024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBGNUTLS_CFLAGS' LIBS='$LIBGNUTLS_LIBS'" >&5
11025 $as_echo "yes CFLAGS='$LIBGNUTLS_CFLAGS' LIBS='$LIBGNUTLS_LIBS'" >&6; }
11026 succeeded=yes
11027 else
11028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11029 $as_echo "no" >&6; }
11030 LIBGNUTLS_CFLAGS=""
11031 LIBGNUTLS_LIBS=""
11032 ## If we have a custom action on failure, don't print errors, but
11033 ## do set a variable so people can do so.
11034 LIBGNUTLS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnutls >= 2.6.6"`
11040 else
11041 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11042 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11046 if test $succeeded = yes; then
11047 HAVE_GNUTLS=yes
11048 else
11049 HAVE_GNUTLS=no
11052 if test "${HAVE_GNUTLS}" = "yes"; then
11054 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
11058 CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
11059 LIBS="$LIBGNUTLS_LIBS $LIBS"
11060 for ac_func in gnutls_certificate_set_verify_function
11061 do :
11062 ac_fn_c_check_func "$LINENO" "gnutls_certificate_set_verify_function" "ac_cv_func_gnutls_certificate_set_verify_function"
11063 if test "x$ac_cv_func_gnutls_certificate_set_verify_function" = x""yes; then :
11064 cat >>confdefs.h <<_ACEOF
11065 #define HAVE_GNUTLS_CERTIFICATE_SET_VERIFY_FUNCTION 1
11066 _ACEOF
11067 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY=yes
11069 done
11072 if test "${HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY}" = "yes"; then
11074 $as_echo "#define HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY 1" >>confdefs.h
11082 HAVE_XAW3D=no
11083 LUCID_LIBW=
11084 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
11085 if test "$with_xaw3d" != no; then
11086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
11087 $as_echo_n "checking for xaw3d... " >&6; }
11088 if test "${emacs_cv_xaw3d+set}" = set; then :
11089 $as_echo_n "(cached) " >&6
11090 else
11091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11092 /* end confdefs.h. */
11094 #include <X11/Intrinsic.h>
11095 #include <X11/Xaw3d/Simple.h>
11097 main ()
11101 return 0;
11103 _ACEOF
11104 if ac_fn_c_try_link "$LINENO"; then :
11105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XawScrollbarSetThumb in -lXaw3d" >&5
11106 $as_echo_n "checking for XawScrollbarSetThumb in -lXaw3d... " >&6; }
11107 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then :
11108 $as_echo_n "(cached) " >&6
11109 else
11110 ac_check_lib_save_LIBS=$LIBS
11111 LIBS="-lXaw3d $LIBS"
11112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11113 /* end confdefs.h. */
11115 /* Override any GCC internal prototype to avoid an error.
11116 Use char because int might match the return type of a GCC
11117 builtin and then its argument prototype would still apply. */
11118 #ifdef __cplusplus
11119 extern "C"
11120 #endif
11121 char XawScrollbarSetThumb ();
11123 main ()
11125 return XawScrollbarSetThumb ();
11127 return 0;
11129 _ACEOF
11130 if ac_fn_c_try_link "$LINENO"; then :
11131 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
11132 else
11133 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
11135 rm -f core conftest.err conftest.$ac_objext \
11136 conftest$ac_exeext conftest.$ac_ext
11137 LIBS=$ac_check_lib_save_LIBS
11139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
11140 $as_echo "$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
11141 if test "x$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" = x""yes; then :
11142 emacs_cv_xaw3d=yes
11143 else
11144 emacs_cv_xaw3d=no
11147 else
11148 emacs_cv_xaw3d=no
11150 rm -f core conftest.err conftest.$ac_objext \
11151 conftest$ac_exeext conftest.$ac_ext
11154 else
11155 emacs_cv_xaw3d=no
11157 if test $emacs_cv_xaw3d = yes; then
11158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
11159 $as_echo "yes; using Lucid toolkit" >&6; }
11160 USE_X_TOOLKIT=LUCID
11161 HAVE_XAW3D=yes
11162 LUCID_LIBW=-lXaw3d
11164 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
11166 else
11167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11168 $as_echo "no" >&6; }
11169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
11170 $as_echo_n "checking for libXaw... " >&6; }
11171 if test "${emacs_cv_xaw+set}" = set; then :
11172 $as_echo_n "(cached) " >&6
11173 else
11174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11175 /* end confdefs.h. */
11177 #include <X11/Intrinsic.h>
11178 #include <X11/Xaw/Simple.h>
11180 main ()
11184 return 0;
11186 _ACEOF
11187 if ac_fn_c_try_link "$LINENO"; then :
11188 emacs_cv_xaw=yes
11189 else
11190 emacs_cv_xaw=no
11192 rm -f core conftest.err conftest.$ac_objext \
11193 conftest$ac_exeext conftest.$ac_ext
11196 if test $emacs_cv_xaw = yes; then
11197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
11198 $as_echo "yes; using Lucid toolkit" >&6; }
11199 USE_X_TOOLKIT=LUCID
11200 LUCID_LIBW=-lXaw
11201 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
11202 as_fn_error "Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
11203 else
11204 as_fn_error "No X toolkit could be found.
11205 If you are sure you want Emacs compiled without an X toolkit, pass
11206 --with-x-toolkit=no
11207 to configure. Otherwise, install the development libraries for the toolkit
11208 that you want to use (e.g. Gtk+) and re-run configure." "$LINENO" 5
11213 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
11215 LIBXTR6=
11216 if test "${USE_X_TOOLKIT}" != "none"; then
11217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
11218 $as_echo_n "checking X11 toolkit version... " >&6; }
11219 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then :
11220 $as_echo_n "(cached) " >&6
11221 else
11222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11223 /* end confdefs.h. */
11224 #include <X11/Intrinsic.h>
11226 main ()
11228 #if XtSpecificationRelease < 6
11229 fail;
11230 #endif
11233 return 0;
11235 _ACEOF
11236 if ac_fn_c_try_link "$LINENO"; then :
11237 emacs_cv_x11_toolkit_version_6=yes
11238 else
11239 emacs_cv_x11_toolkit_version_6=no
11241 rm -f core conftest.err conftest.$ac_objext \
11242 conftest$ac_exeext conftest.$ac_ext
11245 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
11246 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
11248 $as_echo "6 or newer" >&6; }
11250 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
11252 LIBXTR6="-lSM -lICE"
11253 case "$opsys" in
11254 ## Use libw.a along with X11R6 Xt.
11255 unixware) LIBXTR6="$LIBXTR6 -lw" ;;
11256 esac
11257 else
11258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
11259 $as_echo "before 6" >&6; }
11262 OLDLIBS="$LIBS"
11263 if test x$HAVE_X11XTR6 = xyes; then
11264 LIBS="-lXt -lSM -lICE $LIBS"
11265 else
11266 LIBS="-lXt $LIBS"
11268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
11269 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
11270 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then :
11271 $as_echo_n "(cached) " >&6
11272 else
11273 ac_check_lib_save_LIBS=$LIBS
11274 LIBS="-lXmu $LIBS"
11275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11276 /* end confdefs.h. */
11278 /* Override any GCC internal prototype to avoid an error.
11279 Use char because int might match the return type of a GCC
11280 builtin and then its argument prototype would still apply. */
11281 #ifdef __cplusplus
11282 extern "C"
11283 #endif
11284 char XmuConvertStandardSelection ();
11286 main ()
11288 return XmuConvertStandardSelection ();
11290 return 0;
11292 _ACEOF
11293 if ac_fn_c_try_link "$LINENO"; then :
11294 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
11295 else
11296 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
11298 rm -f core conftest.err conftest.$ac_objext \
11299 conftest$ac_exeext conftest.$ac_ext
11300 LIBS=$ac_check_lib_save_LIBS
11302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
11303 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
11304 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x""yes; then :
11305 cat >>confdefs.h <<_ACEOF
11306 #define HAVE_LIBXMU 1
11307 _ACEOF
11309 LIBS="-lXmu $LIBS"
11313 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
11317 LIBXMU=-lXmu
11318 case $opsys in
11319 ## These systems don't supply Xmu.
11320 hpux* | aix4-2 )
11321 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU=
11323 esac
11326 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
11327 if test "${HAVE_X11}" = "yes"; then
11328 if test "${USE_X_TOOLKIT}" != "none"; then
11329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
11330 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
11331 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
11332 $as_echo_n "(cached) " >&6
11333 else
11334 ac_check_lib_save_LIBS=$LIBS
11335 LIBS="-lXext $LIBS"
11336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11337 /* end confdefs.h. */
11339 /* Override any GCC internal prototype to avoid an error.
11340 Use char because int might match the return type of a GCC
11341 builtin and then its argument prototype would still apply. */
11342 #ifdef __cplusplus
11343 extern "C"
11344 #endif
11345 char XShapeQueryExtension ();
11347 main ()
11349 return XShapeQueryExtension ();
11351 return 0;
11353 _ACEOF
11354 if ac_fn_c_try_link "$LINENO"; then :
11355 ac_cv_lib_Xext_XShapeQueryExtension=yes
11356 else
11357 ac_cv_lib_Xext_XShapeQueryExtension=no
11359 rm -f core conftest.err conftest.$ac_objext \
11360 conftest$ac_exeext conftest.$ac_ext
11361 LIBS=$ac_check_lib_save_LIBS
11363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
11364 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
11365 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then :
11366 cat >>confdefs.h <<_ACEOF
11367 #define HAVE_LIBXEXT 1
11368 _ACEOF
11370 LIBS="-lXext $LIBS"
11377 LIBXP=
11378 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif version 2.1" >&5
11380 $as_echo_n "checking for Motif version 2.1... " >&6; }
11381 if test "${emacs_cv_motif_version_2_1+set}" = set; then :
11382 $as_echo_n "(cached) " >&6
11383 else
11384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11385 /* end confdefs.h. */
11386 #include <Xm/Xm.h>
11388 main ()
11390 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
11391 int x = 5;
11392 #else
11393 Motif version prior to 2.1.
11394 #endif
11396 return 0;
11398 _ACEOF
11399 if ac_fn_c_try_compile "$LINENO"; then :
11400 emacs_cv_motif_version_2_1=yes
11401 else
11402 emacs_cv_motif_version_2_1=no
11404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
11407 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
11408 if test $emacs_cv_motif_version_2_1 = yes; then
11409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
11410 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
11411 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then :
11412 $as_echo_n "(cached) " >&6
11413 else
11414 ac_check_lib_save_LIBS=$LIBS
11415 LIBS="-lXp $LIBS"
11416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11417 /* end confdefs.h. */
11419 /* Override any GCC internal prototype to avoid an error.
11420 Use char because int might match the return type of a GCC
11421 builtin and then its argument prototype would still apply. */
11422 #ifdef __cplusplus
11423 extern "C"
11424 #endif
11425 char XpCreateContext ();
11427 main ()
11429 return XpCreateContext ();
11431 return 0;
11433 _ACEOF
11434 if ac_fn_c_try_link "$LINENO"; then :
11435 ac_cv_lib_Xp_XpCreateContext=yes
11436 else
11437 ac_cv_lib_Xp_XpCreateContext=no
11439 rm -f core conftest.err conftest.$ac_objext \
11440 conftest$ac_exeext conftest.$ac_ext
11441 LIBS=$ac_check_lib_save_LIBS
11443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
11444 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
11445 if test "x$ac_cv_lib_Xp_XpCreateContext" = x""yes; then :
11446 LIBXP=-lXp
11449 else
11450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
11451 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
11452 if test "${emacs_cv_lesstif+set}" = set; then :
11453 $as_echo_n "(cached) " >&6
11454 else
11455 # We put this in CFLAGS temporarily to precede other -I options
11456 # that might be in CFLAGS temporarily.
11457 # We put this in CPPFLAGS where it precedes the other -I options.
11458 OLD_CPPFLAGS=$CPPFLAGS
11459 OLD_CFLAGS=$CFLAGS
11460 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
11461 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
11462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11463 /* end confdefs.h. */
11464 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
11466 main ()
11468 int x = 5;
11470 return 0;
11472 _ACEOF
11473 if ac_fn_c_try_compile "$LINENO"; then :
11474 emacs_cv_lesstif=yes
11475 else
11476 emacs_cv_lesstif=no
11478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
11481 $as_echo "$emacs_cv_lesstif" >&6; }
11482 if test $emacs_cv_lesstif = yes; then
11483 # Make sure this -I option remains in CPPFLAGS after it is set
11484 # back to REAL_CPPFLAGS.
11485 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
11486 # have those other -I options anyway. Ultimately, having this
11487 # directory ultimately in CPPFLAGS will be enough.
11488 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
11489 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
11490 else
11491 CFLAGS=$OLD_CFLAGS
11492 CPPFLAGS=$OLD_CPPFLAGS
11495 ac_fn_c_check_header_mongrel "$LINENO" "Xm/BulletinB.h" "ac_cv_header_Xm_BulletinB_h" "$ac_includes_default"
11496 if test "x$ac_cv_header_Xm_BulletinB_h" = x""yes; then :
11498 else
11499 as_fn_error "Motif toolkit requested but requirements not found." "$LINENO" 5
11506 USE_TOOLKIT_SCROLL_BARS=no
11507 if test "${with_toolkit_scroll_bars}" != "no"; then
11508 if test "${USE_X_TOOLKIT}" != "none"; then
11509 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11510 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11512 HAVE_XAW3D=no
11513 USE_TOOLKIT_SCROLL_BARS=yes
11514 elif test "${HAVE_XAW3D}" = "yes" || test "${USE_X_TOOLKIT}" = "LUCID"; then
11515 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11517 USE_TOOLKIT_SCROLL_BARS=yes
11519 elif test "${HAVE_GTK}" = "yes"; then
11520 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11522 USE_TOOLKIT_SCROLL_BARS=yes
11523 elif test "${HAVE_NS}" = "yes"; then
11524 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11526 USE_TOOLKIT_SCROLL_BARS=yes
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 XIMProc callback;
11540 return 0;
11542 _ACEOF
11543 if ac_fn_c_try_compile "$LINENO"; then :
11544 HAVE_XIM=yes
11546 $as_echo "#define HAVE_XIM 1" >>confdefs.h
11548 else
11549 HAVE_XIM=no
11551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11554 if test "${with_xim}" != "no"; then
11556 $as_echo "#define USE_XIM 1" >>confdefs.h
11561 if test "${HAVE_XIM}" != "no"; then
11562 late_CFLAGS=$CFLAGS
11563 if test "$GCC" = yes; then
11564 CFLAGS="$CFLAGS --pedantic-errors"
11566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11567 /* end confdefs.h. */
11569 #include <X11/Xlib.h>
11570 #include <X11/Xresource.h>
11572 main ()
11574 Display *display;
11575 XrmDatabase db;
11576 char *res_name;
11577 char *res_class;
11578 XIMProc callback;
11579 XPointer *client_data;
11580 #ifndef __GNUC__
11581 /* If we're not using GCC, it's probably not XFree86, and this is
11582 probably right, but we can't use something like --pedantic-errors. */
11583 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
11584 char*, XIMProc, XPointer*);
11585 #endif
11586 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
11587 client_data);
11589 return 0;
11591 _ACEOF
11592 if ac_fn_c_try_compile "$LINENO"; then :
11593 emacs_cv_arg6_star=yes
11595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11596 if test "$emacs_cv_arg6_star" = yes; then
11597 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
11599 else
11600 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
11603 CFLAGS=$late_CFLAGS
11606 ### Start of font-backend (under any platform) section.
11607 # (nothing here yet -- this is a placeholder)
11608 ### End of font-backend (under any platform) section.
11610 ### Start of font-backend (under X11) section.
11611 if test "${HAVE_X11}" = "yes"; then
11613 succeeded=no
11615 if test "$PKG_CONFIG" = "no" ; then
11616 HAVE_FC=no
11617 else
11618 PKG_CONFIG_MIN_VERSION=0.9.0
11619 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
11621 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
11623 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5 &&
11624 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0" 2>&5` &&
11625 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0" 2>&5`; then
11626 edit_cflags="
11627 s,///*,/,g
11628 s/^/ /
11629 s/ -I/ $isystem/g
11630 s/^ //
11632 FONTCONFIG_CFLAGS=`$as_echo "$FONTCONFIG_CFLAGS" | sed -e "$edit_cflags"`
11633 FONTCONFIG_LIBS=`$as_echo "$FONTCONFIG_LIBS" | sed -e 's,///*,/,g'`
11634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$FONTCONFIG_CFLAGS' LIBS='$FONTCONFIG_LIBS'" >&5
11635 $as_echo "yes CFLAGS='$FONTCONFIG_CFLAGS' LIBS='$FONTCONFIG_LIBS'" >&6; }
11636 succeeded=yes
11637 else
11638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11639 $as_echo "no" >&6; }
11640 FONTCONFIG_CFLAGS=""
11641 FONTCONFIG_LIBS=""
11642 ## If we have a custom action on failure, don't print errors, but
11643 ## do set a variable so people can do so.
11644 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
11650 else
11651 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11652 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11656 if test $succeeded = yes; then
11657 HAVE_FC=yes
11658 else
11659 HAVE_FC=no
11663 ## Use -lXft if available, unless `--with-xft=no'.
11664 HAVE_XFT=maybe
11665 if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then
11666 with_xft="no";
11668 if test "x${with_xft}" != "xno"; then
11671 succeeded=no
11673 if test "$PKG_CONFIG" = "no" ; then
11674 HAVE_XFT=no
11675 else
11676 PKG_CONFIG_MIN_VERSION=0.9.0
11677 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
11679 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
11681 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5 &&
11682 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0" 2>&5` &&
11683 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0" 2>&5`; then
11684 edit_cflags="
11685 s,///*,/,g
11686 s/^/ /
11687 s/ -I/ $isystem/g
11688 s/^ //
11690 XFT_CFLAGS=`$as_echo "$XFT_CFLAGS" | sed -e "$edit_cflags"`
11691 XFT_LIBS=`$as_echo "$XFT_LIBS" | sed -e 's,///*,/,g'`
11692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$XFT_CFLAGS' LIBS='$XFT_LIBS'" >&5
11693 $as_echo "yes CFLAGS='$XFT_CFLAGS' LIBS='$XFT_LIBS'" >&6; }
11694 succeeded=yes
11695 else
11696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11697 $as_echo "no" >&6; }
11698 XFT_CFLAGS=""
11699 XFT_LIBS=""
11700 ## If we have a custom action on failure, don't print errors, but
11701 ## do set a variable so people can do so.
11702 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
11708 else
11709 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11710 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11714 if test $succeeded = yes; then
11716 else
11717 HAVE_XFT=no
11720 ## Because xftfont.c uses XRenderQueryExtension, we also
11721 ## need to link to -lXrender.
11722 HAVE_XRENDER=no
11723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
11724 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
11725 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
11726 $as_echo_n "(cached) " >&6
11727 else
11728 ac_check_lib_save_LIBS=$LIBS
11729 LIBS="-lXrender $LIBS"
11730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11731 /* end confdefs.h. */
11733 /* Override any GCC internal prototype to avoid an error.
11734 Use char because int might match the return type of a GCC
11735 builtin and then its argument prototype would still apply. */
11736 #ifdef __cplusplus
11737 extern "C"
11738 #endif
11739 char XRenderQueryExtension ();
11741 main ()
11743 return XRenderQueryExtension ();
11745 return 0;
11747 _ACEOF
11748 if ac_fn_c_try_link "$LINENO"; then :
11749 ac_cv_lib_Xrender_XRenderQueryExtension=yes
11750 else
11751 ac_cv_lib_Xrender_XRenderQueryExtension=no
11753 rm -f core conftest.err conftest.$ac_objext \
11754 conftest$ac_exeext conftest.$ac_ext
11755 LIBS=$ac_check_lib_save_LIBS
11757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
11758 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
11759 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x""yes; then :
11760 HAVE_XRENDER=yes
11763 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
11764 OLD_CPPFLAGS="$CPPFLAGS"
11765 OLD_CFLAGS="$CFLAGS"
11766 OLD_LIBS="$LIBS"
11767 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
11768 CFLAGS="$CFLAGS $XFT_CFLAGS"
11769 XFT_LIBS="-lXrender $XFT_LIBS"
11770 LIBS="$XFT_LIBS $LIBS"
11771 ac_fn_c_check_header_mongrel "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
11772 if test "x$ac_cv_header_X11_Xft_Xft_h" = x""yes; then :
11773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
11774 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
11775 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then :
11776 $as_echo_n "(cached) " >&6
11777 else
11778 ac_check_lib_save_LIBS=$LIBS
11779 LIBS="-lXft $XFT_LIBS $LIBS"
11780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11781 /* end confdefs.h. */
11783 /* Override any GCC internal prototype to avoid an error.
11784 Use char because int might match the return type of a GCC
11785 builtin and then its argument prototype would still apply. */
11786 #ifdef __cplusplus
11787 extern "C"
11788 #endif
11789 char XftFontOpen ();
11791 main ()
11793 return XftFontOpen ();
11795 return 0;
11797 _ACEOF
11798 if ac_fn_c_try_link "$LINENO"; then :
11799 ac_cv_lib_Xft_XftFontOpen=yes
11800 else
11801 ac_cv_lib_Xft_XftFontOpen=no
11803 rm -f core conftest.err conftest.$ac_objext \
11804 conftest$ac_exeext conftest.$ac_ext
11805 LIBS=$ac_check_lib_save_LIBS
11807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
11808 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
11809 if test "x$ac_cv_lib_Xft_XftFontOpen" = x""yes; then :
11810 HAVE_XFT=yes
11817 if test "${HAVE_XFT}" = "yes"; then
11819 $as_echo "#define HAVE_XFT 1" >>confdefs.h
11822 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
11823 else
11824 CPPFLAGS="$OLD_CPPFLAGS"
11825 CFLAGS="$OLD_CFLAGS"
11826 LIBS="$OLD_LIBS"
11827 fi # "${HAVE_XFT}" = "yes"
11828 fi # "$HAVE_XFT" != no
11829 fi # "x${with_xft}" != "xno"
11831 ## We used to allow building with FreeType and without Xft.
11832 ## However, the ftx font backend driver is not in good shape.
11833 if test "$HAVE_XFT" != "yes"; then
11834 HAVE_XFT=no
11835 HAVE_FREETYPE=no
11836 else
11838 succeeded=no
11840 if test "$PKG_CONFIG" = "no" ; then
11841 HAVE_FREETYPE=no
11842 else
11843 PKG_CONFIG_MIN_VERSION=0.9.0
11844 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype2" >&5
11846 $as_echo_n "checking for freetype2... " >&6; }
11848 if $PKG_CONFIG --exists "freetype2" 2>&5 &&
11849 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>&5` &&
11850 FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2" 2>&5`; then
11851 edit_cflags="
11852 s,///*,/,g
11853 s/^/ /
11854 s/ -I/ $isystem/g
11855 s/^ //
11857 FREETYPE_CFLAGS=`$as_echo "$FREETYPE_CFLAGS" | sed -e "$edit_cflags"`
11858 FREETYPE_LIBS=`$as_echo "$FREETYPE_LIBS" | sed -e 's,///*,/,g'`
11859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$FREETYPE_CFLAGS' LIBS='$FREETYPE_LIBS'" >&5
11860 $as_echo "yes CFLAGS='$FREETYPE_CFLAGS' LIBS='$FREETYPE_LIBS'" >&6; }
11861 succeeded=yes
11862 else
11863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11864 $as_echo "no" >&6; }
11865 FREETYPE_CFLAGS=""
11866 FREETYPE_LIBS=""
11867 ## If we have a custom action on failure, don't print errors, but
11868 ## do set a variable so people can do so.
11869 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
11875 else
11876 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11877 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11881 if test $succeeded = yes; then
11882 HAVE_FREETYPE=yes
11883 else
11884 HAVE_FREETYPE=no
11888 test "$HAVE_FREETYPE" = "no" && as_fn_error "libxft requires libfreetype" "$LINENO" 5
11891 HAVE_LIBOTF=no
11892 if test "${HAVE_FREETYPE}" = "yes"; then
11894 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
11896 if test "${with_libotf}" != "no"; then
11898 succeeded=no
11900 if test "$PKG_CONFIG" = "no" ; then
11901 HAVE_LIBOTF=no
11902 else
11903 PKG_CONFIG_MIN_VERSION=0.9.0
11904 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
11906 $as_echo_n "checking for libotf... " >&6; }
11908 if $PKG_CONFIG --exists "libotf" 2>&5 &&
11909 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf" 2>&5` &&
11910 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf" 2>&5`; then
11911 edit_cflags="
11912 s,///*,/,g
11913 s/^/ /
11914 s/ -I/ $isystem/g
11915 s/^ //
11917 LIBOTF_CFLAGS=`$as_echo "$LIBOTF_CFLAGS" | sed -e "$edit_cflags"`
11918 LIBOTF_LIBS=`$as_echo "$LIBOTF_LIBS" | sed -e 's,///*,/,g'`
11919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBOTF_CFLAGS' LIBS='$LIBOTF_LIBS'" >&5
11920 $as_echo "yes CFLAGS='$LIBOTF_CFLAGS' LIBS='$LIBOTF_LIBS'" >&6; }
11921 succeeded=yes
11922 else
11923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11924 $as_echo "no" >&6; }
11925 LIBOTF_CFLAGS=""
11926 LIBOTF_LIBS=""
11927 ## If we have a custom action on failure, don't print errors, but
11928 ## do set a variable so people can do so.
11929 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
11935 else
11936 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11937 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11941 if test $succeeded = yes; then
11942 HAVE_LIBOTF=yes
11943 else
11944 HAVE_LIBOTF=no
11947 if test "$HAVE_LIBOTF" = "yes"; then
11949 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
11951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
11952 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
11953 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then :
11954 $as_echo_n "(cached) " >&6
11955 else
11956 ac_check_lib_save_LIBS=$LIBS
11957 LIBS="-lotf $LIBS"
11958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11959 /* end confdefs.h. */
11961 /* Override any GCC internal prototype to avoid an error.
11962 Use char because int might match the return type of a GCC
11963 builtin and then its argument prototype would still apply. */
11964 #ifdef __cplusplus
11965 extern "C"
11966 #endif
11967 char OTF_get_variation_glyphs ();
11969 main ()
11971 return OTF_get_variation_glyphs ();
11973 return 0;
11975 _ACEOF
11976 if ac_fn_c_try_link "$LINENO"; then :
11977 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
11978 else
11979 ac_cv_lib_otf_OTF_get_variation_glyphs=no
11981 rm -f core conftest.err conftest.$ac_objext \
11982 conftest$ac_exeext conftest.$ac_ext
11983 LIBS=$ac_check_lib_save_LIBS
11985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
11986 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
11987 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x""yes; then :
11988 HAVE_OTF_GET_VARIATION_GLYPHS=yes
11989 else
11990 HAVE_OTF_GET_VARIATION_GLYPHS=no
11993 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
11995 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
12002 HAVE_M17N_FLT=no
12003 if test "${HAVE_LIBOTF}" = yes; then
12004 if test "${with_m17n_flt}" != "no"; then
12006 succeeded=no
12008 if test "$PKG_CONFIG" = "no" ; then
12009 HAVE_M17N_FLT=no
12010 else
12011 PKG_CONFIG_MIN_VERSION=0.9.0
12012 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
12014 $as_echo_n "checking for m17n-flt... " >&6; }
12016 if $PKG_CONFIG --exists "m17n-flt" 2>&5 &&
12017 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt" 2>&5` &&
12018 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt" 2>&5`; then
12019 edit_cflags="
12020 s,///*,/,g
12021 s/^/ /
12022 s/ -I/ $isystem/g
12023 s/^ //
12025 M17N_FLT_CFLAGS=`$as_echo "$M17N_FLT_CFLAGS" | sed -e "$edit_cflags"`
12026 M17N_FLT_LIBS=`$as_echo "$M17N_FLT_LIBS" | sed -e 's,///*,/,g'`
12027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$M17N_FLT_CFLAGS' LIBS='$M17N_FLT_LIBS'" >&5
12028 $as_echo "yes CFLAGS='$M17N_FLT_CFLAGS' LIBS='$M17N_FLT_LIBS'" >&6; }
12029 succeeded=yes
12030 else
12031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12032 $as_echo "no" >&6; }
12033 M17N_FLT_CFLAGS=""
12034 M17N_FLT_LIBS=""
12035 ## If we have a custom action on failure, don't print errors, but
12036 ## do set a variable so people can do so.
12037 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
12043 else
12044 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12045 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12049 if test $succeeded = yes; then
12050 HAVE_M17N_FLT=yes
12051 else
12052 HAVE_M17N_FLT=no
12055 if test "$HAVE_M17N_FLT" = "yes"; then
12057 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
12062 else
12063 HAVE_XFT=no
12064 HAVE_FREETYPE=no
12065 HAVE_LIBOTF=no
12066 HAVE_M17N_FLT=no
12069 ### End of font-backend (under X11) section.
12080 ### Use -lXpm if available, unless `--with-xpm=no'.
12081 HAVE_XPM=no
12082 LIBXPM=
12083 if test "${HAVE_X11}" = "yes"; then
12084 if test "${with_xpm}" != "no"; then
12085 ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
12086 if test "x$ac_cv_header_X11_xpm_h" = x""yes; then :
12087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
12088 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
12089 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then :
12090 $as_echo_n "(cached) " >&6
12091 else
12092 ac_check_lib_save_LIBS=$LIBS
12093 LIBS="-lXpm -lX11 $LIBS"
12094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12095 /* end confdefs.h. */
12097 /* Override any GCC internal prototype to avoid an error.
12098 Use char because int might match the return type of a GCC
12099 builtin and then its argument prototype would still apply. */
12100 #ifdef __cplusplus
12101 extern "C"
12102 #endif
12103 char XpmReadFileToPixmap ();
12105 main ()
12107 return XpmReadFileToPixmap ();
12109 return 0;
12111 _ACEOF
12112 if ac_fn_c_try_link "$LINENO"; then :
12113 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
12114 else
12115 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
12117 rm -f core conftest.err conftest.$ac_objext \
12118 conftest$ac_exeext conftest.$ac_ext
12119 LIBS=$ac_check_lib_save_LIBS
12121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
12122 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
12123 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x""yes; then :
12124 HAVE_XPM=yes
12130 if test "${HAVE_XPM}" = "yes"; then
12131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
12132 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
12133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12134 /* end confdefs.h. */
12135 #include "X11/xpm.h"
12136 #ifndef XpmReturnAllocPixels
12137 no_return_alloc_pixels
12138 #endif
12140 _ACEOF
12141 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12142 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then :
12143 HAVE_XPM=no
12144 else
12145 HAVE_XPM=yes
12147 rm -f conftest*
12150 if test "${HAVE_XPM}" = "yes"; then
12151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12152 $as_echo "yes" >&6; }
12153 else
12154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12155 $as_echo "no" >&6; }
12160 if test "${HAVE_XPM}" = "yes"; then
12162 $as_echo "#define HAVE_XPM 1" >>confdefs.h
12164 LIBXPM=-lXpm
12169 ### Use -ljpeg if available, unless `--with-jpeg=no'.
12170 HAVE_JPEG=no
12171 LIBJPEG=
12172 if test "${HAVE_X11}" = "yes"; then
12173 if test "${with_jpeg}" != "no"; then
12174 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
12175 if test "x$ac_cv_header_jerror_h" = x""yes; then :
12176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
12177 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
12178 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then :
12179 $as_echo_n "(cached) " >&6
12180 else
12181 ac_check_lib_save_LIBS=$LIBS
12182 LIBS="-ljpeg $LIBS"
12183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12184 /* end confdefs.h. */
12186 /* Override any GCC internal prototype to avoid an error.
12187 Use char because int might match the return type of a GCC
12188 builtin and then its argument prototype would still apply. */
12189 #ifdef __cplusplus
12190 extern "C"
12191 #endif
12192 char jpeg_destroy_compress ();
12194 main ()
12196 return jpeg_destroy_compress ();
12198 return 0;
12200 _ACEOF
12201 if ac_fn_c_try_link "$LINENO"; then :
12202 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
12203 else
12204 ac_cv_lib_jpeg_jpeg_destroy_compress=no
12206 rm -f core conftest.err conftest.$ac_objext \
12207 conftest$ac_exeext conftest.$ac_ext
12208 LIBS=$ac_check_lib_save_LIBS
12210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
12211 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
12212 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x""yes; then :
12213 HAVE_JPEG=yes
12221 if test "${HAVE_JPEG}" = "yes"; then
12222 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
12224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12225 /* end confdefs.h. */
12226 #include <jpeglib.h>
12227 version=JPEG_LIB_VERSION
12229 _ACEOF
12230 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12231 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then :
12232 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
12234 else
12235 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
12236 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
12237 HAVE_JPEG=no
12239 rm -f conftest*
12242 if test "${HAVE_JPEG}" = "yes"; then
12243 LIBJPEG=-ljpeg
12248 ### Use -lpng if available, unless `--with-png=no'.
12249 HAVE_PNG=no
12250 LIBPNG=
12251 if test "${HAVE_X11}" = "yes"; then
12252 if test "${with_png}" != "no"; then
12253 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
12254 # in /usr/include/libpng.
12255 for ac_header in png.h libpng/png.h
12256 do :
12257 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12258 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12259 eval as_val=\$$as_ac_Header
12260 if test "x$as_val" = x""yes; then :
12261 cat >>confdefs.h <<_ACEOF
12262 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12263 _ACEOF
12267 done
12269 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
12270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
12271 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
12272 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then :
12273 $as_echo_n "(cached) " >&6
12274 else
12275 ac_check_lib_save_LIBS=$LIBS
12276 LIBS="-lpng -lz -lm $LIBS"
12277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12278 /* end confdefs.h. */
12280 /* Override any GCC internal prototype to avoid an error.
12281 Use char because int might match the return type of a GCC
12282 builtin and then its argument prototype would still apply. */
12283 #ifdef __cplusplus
12284 extern "C"
12285 #endif
12286 char png_get_channels ();
12288 main ()
12290 return png_get_channels ();
12292 return 0;
12294 _ACEOF
12295 if ac_fn_c_try_link "$LINENO"; then :
12296 ac_cv_lib_png_png_get_channels=yes
12297 else
12298 ac_cv_lib_png_png_get_channels=no
12300 rm -f core conftest.err conftest.$ac_objext \
12301 conftest$ac_exeext conftest.$ac_ext
12302 LIBS=$ac_check_lib_save_LIBS
12304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
12305 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
12306 if test "x$ac_cv_lib_png_png_get_channels" = x""yes; then :
12307 HAVE_PNG=yes
12313 if test "${HAVE_PNG}" = "yes"; then
12315 $as_echo "#define HAVE_PNG 1" >>confdefs.h
12317 LIBPNG="-lpng -lz -lm"
12322 ### Use -ltiff if available, unless `--with-tiff=no'.
12323 HAVE_TIFF=no
12324 LIBTIFF=
12325 if test "${HAVE_X11}" = "yes"; then
12326 if test "${with_tiff}" != "no"; then
12327 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
12328 if test "x$ac_cv_header_tiffio_h" = x""yes; then :
12329 tifflibs="-lz -lm"
12330 # At least one tiff package requires the jpeg library.
12331 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
12332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
12333 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
12334 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then :
12335 $as_echo_n "(cached) " >&6
12336 else
12337 ac_check_lib_save_LIBS=$LIBS
12338 LIBS="-ltiff $tifflibs $LIBS"
12339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12340 /* end confdefs.h. */
12342 /* Override any GCC internal prototype to avoid an error.
12343 Use char because int might match the return type of a GCC
12344 builtin and then its argument prototype would still apply. */
12345 #ifdef __cplusplus
12346 extern "C"
12347 #endif
12348 char TIFFGetVersion ();
12350 main ()
12352 return TIFFGetVersion ();
12354 return 0;
12356 _ACEOF
12357 if ac_fn_c_try_link "$LINENO"; then :
12358 ac_cv_lib_tiff_TIFFGetVersion=yes
12359 else
12360 ac_cv_lib_tiff_TIFFGetVersion=no
12362 rm -f core conftest.err conftest.$ac_objext \
12363 conftest$ac_exeext conftest.$ac_ext
12364 LIBS=$ac_check_lib_save_LIBS
12366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
12367 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
12368 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x""yes; then :
12369 HAVE_TIFF=yes
12377 if test "${HAVE_TIFF}" = "yes"; then
12379 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
12381 LIBTIFF=-ltiff
12386 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
12387 HAVE_GIF=no
12388 LIBGIF=
12389 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
12390 ac_fn_c_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
12391 if test "x$ac_cv_header_gif_lib_h" = x""yes; then :
12392 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
12393 # Earlier versions can crash Emacs.
12394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
12395 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
12396 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then :
12397 $as_echo_n "(cached) " >&6
12398 else
12399 ac_check_lib_save_LIBS=$LIBS
12400 LIBS="-lgif $LIBS"
12401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12402 /* end confdefs.h. */
12404 /* Override any GCC internal prototype to avoid an error.
12405 Use char because int might match the return type of a GCC
12406 builtin and then its argument prototype would still apply. */
12407 #ifdef __cplusplus
12408 extern "C"
12409 #endif
12410 char EGifPutExtensionLast ();
12412 main ()
12414 return EGifPutExtensionLast ();
12416 return 0;
12418 _ACEOF
12419 if ac_fn_c_try_link "$LINENO"; then :
12420 ac_cv_lib_gif_EGifPutExtensionLast=yes
12421 else
12422 ac_cv_lib_gif_EGifPutExtensionLast=no
12424 rm -f core conftest.err conftest.$ac_objext \
12425 conftest$ac_exeext conftest.$ac_ext
12426 LIBS=$ac_check_lib_save_LIBS
12428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
12429 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
12430 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x""yes; then :
12431 HAVE_GIF=yes
12432 else
12433 HAVE_GIF=maybe
12440 if test "$HAVE_GIF" = yes; then
12441 LIBGIF=-lgif
12442 elif test "$HAVE_GIF" = maybe; then
12443 # If gif_lib.h but no libgif, try libungif.
12444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
12445 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
12446 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then :
12447 $as_echo_n "(cached) " >&6
12448 else
12449 ac_check_lib_save_LIBS=$LIBS
12450 LIBS="-lungif $LIBS"
12451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12452 /* end confdefs.h. */
12454 /* Override any GCC internal prototype to avoid an error.
12455 Use char because int might match the return type of a GCC
12456 builtin and then its argument prototype would still apply. */
12457 #ifdef __cplusplus
12458 extern "C"
12459 #endif
12460 char EGifPutExtensionLast ();
12462 main ()
12464 return EGifPutExtensionLast ();
12466 return 0;
12468 _ACEOF
12469 if ac_fn_c_try_link "$LINENO"; then :
12470 ac_cv_lib_ungif_EGifPutExtensionLast=yes
12471 else
12472 ac_cv_lib_ungif_EGifPutExtensionLast=no
12474 rm -f core conftest.err conftest.$ac_objext \
12475 conftest$ac_exeext conftest.$ac_ext
12476 LIBS=$ac_check_lib_save_LIBS
12478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
12479 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
12480 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x""yes; then :
12481 HAVE_GIF=yes
12482 else
12483 HAVE_GIF=no
12486 test "$HAVE_GIF" = yes && LIBGIF=-lungif
12489 if test "${HAVE_GIF}" = "yes"; then
12491 $as_echo "#define HAVE_GIF 1" >>confdefs.h
12497 if test "${HAVE_X11}" = "yes"; then
12498 MISSING=""
12499 WITH_NO=""
12500 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
12501 MISSING="libXpm" && WITH_NO="--with-xpm=no"
12502 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
12503 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
12504 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
12505 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
12506 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
12507 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
12508 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
12509 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
12511 if test "X${MISSING}" != X; then
12512 as_fn_error "The following required libraries were not found:
12513 $MISSING
12514 Maybe some development libraries/packages are missing?
12515 If you don't want to link with them give
12516 $WITH_NO
12517 as options to configure" "$LINENO" 5
12521 ### Use -lgpm if available, unless `--with-gpm=no'.
12522 HAVE_GPM=no
12523 LIBGPM=
12524 if test "${with_gpm}" != "no"; then
12525 ac_fn_c_check_header_mongrel "$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
12526 if test "x$ac_cv_header_gpm_h" = x""yes; then :
12527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
12528 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
12529 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then :
12530 $as_echo_n "(cached) " >&6
12531 else
12532 ac_check_lib_save_LIBS=$LIBS
12533 LIBS="-lgpm $LIBS"
12534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12535 /* end confdefs.h. */
12537 /* Override any GCC internal prototype to avoid an error.
12538 Use char because int might match the return type of a GCC
12539 builtin and then its argument prototype would still apply. */
12540 #ifdef __cplusplus
12541 extern "C"
12542 #endif
12543 char Gpm_Open ();
12545 main ()
12547 return Gpm_Open ();
12549 return 0;
12551 _ACEOF
12552 if ac_fn_c_try_link "$LINENO"; then :
12553 ac_cv_lib_gpm_Gpm_Open=yes
12554 else
12555 ac_cv_lib_gpm_Gpm_Open=no
12557 rm -f core conftest.err conftest.$ac_objext \
12558 conftest$ac_exeext conftest.$ac_ext
12559 LIBS=$ac_check_lib_save_LIBS
12561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
12562 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
12563 if test "x$ac_cv_lib_gpm_Gpm_Open" = x""yes; then :
12564 HAVE_GPM=yes
12571 if test "${HAVE_GPM}" = "yes"; then
12573 $as_echo "#define HAVE_GPM 1" >>confdefs.h
12575 LIBGPM=-lgpm
12584 GNUSTEP_CFLAGS=
12585 ### Use NeXTstep API to implement GUI.
12586 if test "${HAVE_NS}" = "yes"; then
12588 $as_echo "#define HAVE_NS 1" >>confdefs.h
12590 if test "${NS_IMPL_COCOA}" = "yes"; then
12592 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
12595 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
12597 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
12599 # See also .m.o rule in Makefile.in */
12600 # FIXME: are all these flags really needed? Document here why. */
12601 GNUSTEP_CFLAGS="-D_REENTRANT -fPIC -fno-strict-aliasing -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
12602 ## Extra CFLAGS applied to src/*.m files.
12603 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"
12605 # We also have mouse menus.
12606 HAVE_MENUS=yes
12607 OTHER_FILES=ns-app
12611 ### Use session management (-lSM -lICE) if available
12612 HAVE_X_SM=no
12613 LIBXSM=
12614 if test "${HAVE_X11}" = "yes"; then
12615 ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
12616 if test "x$ac_cv_header_X11_SM_SMlib_h" = x""yes; then :
12617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
12618 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
12619 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then :
12620 $as_echo_n "(cached) " >&6
12621 else
12622 ac_check_lib_save_LIBS=$LIBS
12623 LIBS="-lSM -lICE $LIBS"
12624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12625 /* end confdefs.h. */
12627 /* Override any GCC internal prototype to avoid an error.
12628 Use char because int might match the return type of a GCC
12629 builtin and then its argument prototype would still apply. */
12630 #ifdef __cplusplus
12631 extern "C"
12632 #endif
12633 char SmcOpenConnection ();
12635 main ()
12637 return SmcOpenConnection ();
12639 return 0;
12641 _ACEOF
12642 if ac_fn_c_try_link "$LINENO"; then :
12643 ac_cv_lib_SM_SmcOpenConnection=yes
12644 else
12645 ac_cv_lib_SM_SmcOpenConnection=no
12647 rm -f core conftest.err conftest.$ac_objext \
12648 conftest$ac_exeext conftest.$ac_ext
12649 LIBS=$ac_check_lib_save_LIBS
12651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
12652 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
12653 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x""yes; then :
12654 HAVE_X_SM=yes
12661 if test "${HAVE_X_SM}" = "yes"; then
12663 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
12665 LIBXSM="-lSM -lICE"
12666 case "$LIBS" in
12667 *-lSM*) ;;
12668 *) LIBS="$LIBXSM $LIBS" ;;
12669 esac
12674 ### Use libxml (-lxml2) if available
12675 HAVE_LIBXML2=no
12676 if test "${with_xml2}" != "no"; then
12677 ### I'm not sure what the version number should be, so I just guessed.
12679 succeeded=no
12681 if test "$PKG_CONFIG" = "no" ; then
12682 HAVE_LIBXML2=no
12683 else
12684 PKG_CONFIG_MIN_VERSION=0.9.0
12685 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.6.17" >&5
12687 $as_echo_n "checking for libxml-2.0 > 2.6.17... " >&6; }
12689 if $PKG_CONFIG --exists "libxml-2.0 > 2.6.17" 2>&5 &&
12690 LIBXML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 > 2.6.17" 2>&5` &&
12691 LIBXML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0 > 2.6.17" 2>&5`; then
12692 edit_cflags="
12693 s,///*,/,g
12694 s/^/ /
12695 s/ -I/ $isystem/g
12696 s/^ //
12698 LIBXML2_CFLAGS=`$as_echo "$LIBXML2_CFLAGS" | sed -e "$edit_cflags"`
12699 LIBXML2_LIBS=`$as_echo "$LIBXML2_LIBS" | sed -e 's,///*,/,g'`
12700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBXML2_CFLAGS' LIBS='$LIBXML2_LIBS'" >&5
12701 $as_echo "yes CFLAGS='$LIBXML2_CFLAGS' LIBS='$LIBXML2_LIBS'" >&6; }
12702 succeeded=yes
12703 else
12704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12705 $as_echo "no" >&6; }
12706 LIBXML2_CFLAGS=""
12707 LIBXML2_LIBS=""
12708 ## If we have a custom action on failure, don't print errors, but
12709 ## do set a variable so people can do so.
12710 LIBXML2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 > 2.6.17"`
12716 else
12717 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12718 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12722 if test $succeeded = yes; then
12723 HAVE_LIBXML2=yes
12724 else
12725 HAVE_LIBXML2=no
12728 if test "${HAVE_LIBXML2}" = "yes"; then
12729 LIBS="$LIBXML2_LIBS $LIBS"
12730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
12731 $as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
12732 if test "${ac_cv_lib_xml2_htmlReadMemory+set}" = set; then :
12733 $as_echo_n "(cached) " >&6
12734 else
12735 ac_check_lib_save_LIBS=$LIBS
12736 LIBS="-lxml2 $LIBS"
12737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12738 /* end confdefs.h. */
12740 /* Override any GCC internal prototype to avoid an error.
12741 Use char because int might match the return type of a GCC
12742 builtin and then its argument prototype would still apply. */
12743 #ifdef __cplusplus
12744 extern "C"
12745 #endif
12746 char htmlReadMemory ();
12748 main ()
12750 return htmlReadMemory ();
12752 return 0;
12754 _ACEOF
12755 if ac_fn_c_try_link "$LINENO"; then :
12756 ac_cv_lib_xml2_htmlReadMemory=yes
12757 else
12758 ac_cv_lib_xml2_htmlReadMemory=no
12760 rm -f core conftest.err conftest.$ac_objext \
12761 conftest$ac_exeext conftest.$ac_ext
12762 LIBS=$ac_check_lib_save_LIBS
12764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
12765 $as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
12766 if test "x$ac_cv_lib_xml2_htmlReadMemory" = x""yes; then :
12767 HAVE_LIBXML2=yes
12768 else
12769 HAVE_LIBXML2=no
12772 if test "${HAVE_LIBXML2}" = "yes"; then
12774 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
12776 else
12777 LIBXML2_LIBS=""
12778 LIBXML2_CFLAGS=""
12785 # If netdb.h doesn't declare h_errno, we must declare it by hand.
12786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
12787 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
12788 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then :
12789 $as_echo_n "(cached) " >&6
12790 else
12791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12792 /* end confdefs.h. */
12793 #include <netdb.h>
12795 main ()
12797 return h_errno;
12799 return 0;
12801 _ACEOF
12802 if ac_fn_c_try_link "$LINENO"; then :
12803 emacs_cv_netdb_declares_h_errno=yes
12804 else
12805 emacs_cv_netdb_declares_h_errno=no
12807 rm -f core conftest.err conftest.$ac_objext \
12808 conftest$ac_exeext conftest.$ac_ext
12810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
12811 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
12812 if test $emacs_cv_netdb_declares_h_errno = yes; then
12814 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
12818 # fmod, logb, and frexp are found in -lm on most systems.
12819 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
12820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
12821 $as_echo_n "checking for sqrt in -lm... " >&6; }
12822 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
12823 $as_echo_n "(cached) " >&6
12824 else
12825 ac_check_lib_save_LIBS=$LIBS
12826 LIBS="-lm $LIBS"
12827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12828 /* end confdefs.h. */
12830 /* Override any GCC internal prototype to avoid an error.
12831 Use char because int might match the return type of a GCC
12832 builtin and then its argument prototype would still apply. */
12833 #ifdef __cplusplus
12834 extern "C"
12835 #endif
12836 char sqrt ();
12838 main ()
12840 return sqrt ();
12842 return 0;
12844 _ACEOF
12845 if ac_fn_c_try_link "$LINENO"; then :
12846 ac_cv_lib_m_sqrt=yes
12847 else
12848 ac_cv_lib_m_sqrt=no
12850 rm -f core conftest.err conftest.$ac_objext \
12851 conftest$ac_exeext conftest.$ac_ext
12852 LIBS=$ac_check_lib_save_LIBS
12854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
12855 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
12856 if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
12857 cat >>confdefs.h <<_ACEOF
12858 #define HAVE_LIBM 1
12859 _ACEOF
12861 LIBS="-lm $LIBS"
12866 # Check for mail-locking functions in a "mail" library. Probably this should
12867 # have the same check as for liblockfile below.
12868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
12869 $as_echo_n "checking for maillock in -lmail... " >&6; }
12870 if test "${ac_cv_lib_mail_maillock+set}" = set; then :
12871 $as_echo_n "(cached) " >&6
12872 else
12873 ac_check_lib_save_LIBS=$LIBS
12874 LIBS="-lmail $LIBS"
12875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12876 /* end confdefs.h. */
12878 /* Override any GCC internal prototype to avoid an error.
12879 Use char because int might match the return type of a GCC
12880 builtin and then its argument prototype would still apply. */
12881 #ifdef __cplusplus
12882 extern "C"
12883 #endif
12884 char maillock ();
12886 main ()
12888 return maillock ();
12890 return 0;
12892 _ACEOF
12893 if ac_fn_c_try_link "$LINENO"; then :
12894 ac_cv_lib_mail_maillock=yes
12895 else
12896 ac_cv_lib_mail_maillock=no
12898 rm -f core conftest.err conftest.$ac_objext \
12899 conftest$ac_exeext conftest.$ac_ext
12900 LIBS=$ac_check_lib_save_LIBS
12902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
12903 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
12904 if test "x$ac_cv_lib_mail_maillock" = x""yes; then :
12905 have_mail=yes
12906 else
12907 have_mail=no
12910 if test $have_mail = yes; then
12911 LIBS_MAIL=-lmail
12912 LIBS="$LIBS_MAIL $LIBS"
12914 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
12916 else
12917 LIBS_MAIL=
12919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
12920 $as_echo_n "checking for maillock in -llockfile... " >&6; }
12921 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then :
12922 $as_echo_n "(cached) " >&6
12923 else
12924 ac_check_lib_save_LIBS=$LIBS
12925 LIBS="-llockfile $LIBS"
12926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12927 /* end confdefs.h. */
12929 /* Override any GCC internal prototype to avoid an error.
12930 Use char because int might match the return type of a GCC
12931 builtin and then its argument prototype would still apply. */
12932 #ifdef __cplusplus
12933 extern "C"
12934 #endif
12935 char maillock ();
12937 main ()
12939 return maillock ();
12941 return 0;
12943 _ACEOF
12944 if ac_fn_c_try_link "$LINENO"; then :
12945 ac_cv_lib_lockfile_maillock=yes
12946 else
12947 ac_cv_lib_lockfile_maillock=no
12949 rm -f core conftest.err conftest.$ac_objext \
12950 conftest$ac_exeext conftest.$ac_ext
12951 LIBS=$ac_check_lib_save_LIBS
12953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
12954 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
12955 if test "x$ac_cv_lib_lockfile_maillock" = x""yes; then :
12956 have_lockfile=yes
12957 else
12958 have_lockfile=no
12961 if test $have_lockfile = yes; then
12962 LIBS_MAIL=-llockfile
12963 LIBS="$LIBS_MAIL $LIBS"
12965 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
12967 else
12968 # If we have the shared liblockfile, assume we must use it for mail
12969 # locking (e.g. Debian). If we couldn't link against liblockfile
12970 # (no liblockfile.a installed), ensure that we don't need to.
12971 # Extract the first word of "liblockfile.so", so it can be a program name with args.
12972 set dummy liblockfile.so; ac_word=$2
12973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12974 $as_echo_n "checking for $ac_word... " >&6; }
12975 if test "${ac_cv_prog_liblockfile+set}" = set; then :
12976 $as_echo_n "(cached) " >&6
12977 else
12978 if test -n "$liblockfile"; then
12979 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
12980 else
12981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12982 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
12983 for as_dir in $as_dummy
12985 IFS=$as_save_IFS
12986 test -z "$as_dir" && as_dir=.
12987 for ac_exec_ext in '' $ac_executable_extensions; do
12988 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12989 ac_cv_prog_liblockfile="yes"
12990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12991 break 2
12993 done
12994 done
12995 IFS=$as_save_IFS
12997 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
13000 liblockfile=$ac_cv_prog_liblockfile
13001 if test -n "$liblockfile"; then
13002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
13003 $as_echo "$liblockfile" >&6; }
13004 else
13005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13006 $as_echo "no" >&6; }
13010 if test $ac_cv_prog_liblockfile = yes; then
13011 as_fn_error "Shared liblockfile found but can't link against it.
13012 This probably means that movemail could lose mail.
13013 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
13021 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
13022 ## interlock access to the mail spool. The alternative is a lock file named
13023 ## /usr/spool/mail/$USER.lock.
13024 mail_lock=no
13025 case "$opsys" in
13026 aix4-2) mail_lock="lockf" ;;
13028 gnu|freebsd|netbsd|openbsd|darwin|irix6-5) mail_lock="flock" ;;
13030 ## On GNU/Linux systems, both methods are used by various mail programs.
13031 ## I assume most people are using newer mailers that have heard of flock.
13032 ## Change this if you need to.
13033 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
13034 ## configure gets the right answers, and that means *NOT* using flock.
13035 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
13036 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
13037 ## Debian maintainer hasn't provided a clean fix for Emacs.
13038 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
13039 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
13040 ## correct logic. -- fx
13041 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
13042 ## liblockfile is a Free Software replacement for libmail, used on
13043 ## Debian systems and elsewhere. -rfr.
13044 gnu-*)
13045 mail_lock="flock"
13046 if test $have_mail = yes || test $have_lockfile = yes; then
13047 test $ac_cv_header_maillock_h = yes && mail_lock=no
13050 esac
13052 BLESSMAIL_TARGET=
13053 case "$mail_lock" in
13054 flock)
13055 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
13058 lockf)
13059 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
13062 *) BLESSMAIL_TARGET="need-blessmail" ;;
13063 esac
13070 for ac_func in $ac_func_list
13071 do :
13072 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13073 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13074 eval as_val=\$$as_ac_var
13075 if test "x$as_val" = x""yes; then :
13076 cat >>confdefs.h <<_ACEOF
13077 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13078 _ACEOF
13081 done
13195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unwind_init" >&5
13196 $as_echo_n "checking for __builtin_unwind_init... " >&6; }
13197 if test "${emacs_cv_func___builtin_unwind_init+set}" = set; then :
13198 $as_echo_n "(cached) " >&6
13199 else
13200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13201 /* end confdefs.h. */
13204 main ()
13206 __builtin_unwind_init ();
13208 return 0;
13210 _ACEOF
13211 if ac_fn_c_try_link "$LINENO"; then :
13212 emacs_cv_func___builtin_unwind_init=yes
13213 else
13214 emacs_cv_func___builtin_unwind_init=no
13216 rm -f core conftest.err conftest.$ac_objext \
13217 conftest$ac_exeext conftest.$ac_ext
13219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func___builtin_unwind_init" >&5
13220 $as_echo "$emacs_cv_func___builtin_unwind_init" >&6; }
13221 if test $emacs_cv_func___builtin_unwind_init = yes; then
13223 $as_echo "#define HAVE___BUILTIN_UNWIND_INIT 1" >>confdefs.h
13231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13232 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
13233 if test "${ac_cv_sys_largefile_source+set}" = set; then :
13234 $as_echo_n "(cached) " >&6
13235 else
13236 while :; do
13237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13238 /* end confdefs.h. */
13239 #include <sys/types.h> /* for off_t */
13240 #include <stdio.h>
13242 main ()
13244 int (*fp) (FILE *, off_t, int) = fseeko;
13245 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13247 return 0;
13249 _ACEOF
13250 if ac_fn_c_try_link "$LINENO"; then :
13251 ac_cv_sys_largefile_source=no; break
13253 rm -f core conftest.err conftest.$ac_objext \
13254 conftest$ac_exeext conftest.$ac_ext
13255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13256 /* end confdefs.h. */
13257 #define _LARGEFILE_SOURCE 1
13258 #include <sys/types.h> /* for off_t */
13259 #include <stdio.h>
13261 main ()
13263 int (*fp) (FILE *, off_t, int) = fseeko;
13264 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13266 return 0;
13268 _ACEOF
13269 if ac_fn_c_try_link "$LINENO"; then :
13270 ac_cv_sys_largefile_source=1; break
13272 rm -f core conftest.err conftest.$ac_objext \
13273 conftest$ac_exeext conftest.$ac_ext
13274 ac_cv_sys_largefile_source=unknown
13275 break
13276 done
13278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
13279 $as_echo "$ac_cv_sys_largefile_source" >&6; }
13280 case $ac_cv_sys_largefile_source in #(
13281 no | unknown) ;;
13283 cat >>confdefs.h <<_ACEOF
13284 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13285 _ACEOF
13287 esac
13288 rm -rf conftest*
13290 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13291 # in glibc 2.1.3, but that breaks too many other things.
13292 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13293 if test $ac_cv_sys_largefile_source != unknown; then
13295 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
13300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
13301 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
13302 if test "${ac_cv_func_getpgrp_void+set}" = set; then :
13303 $as_echo_n "(cached) " >&6
13304 else
13305 # Use it with a single arg.
13306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13307 /* end confdefs.h. */
13308 $ac_includes_default
13310 main ()
13312 getpgrp (0);
13314 return 0;
13316 _ACEOF
13317 if ac_fn_c_try_compile "$LINENO"; then :
13318 ac_cv_func_getpgrp_void=no
13319 else
13320 ac_cv_func_getpgrp_void=yes
13322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
13326 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
13327 if test $ac_cv_func_getpgrp_void = yes; then
13329 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
13334 # UNIX98 PTYs.
13339 # PTY-related GNU extensions.
13344 # Check this now, so that we will NOT find the above functions in ncurses.
13345 # That is because we have not set up to link ncurses in lib-src.
13346 # It's better to believe a function is not available
13347 # than to expect to find it in ncurses.
13348 # Also we need tputs and friends to be able to build at all.
13349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
13350 $as_echo_n "checking for library containing tputs... " >&6; }
13351 # Run a test program that contains a call to tputs, a call that is
13352 # never executed. This tests whether a pre-'main' dynamic linker
13353 # works with the library. It's too much trouble to actually call
13354 # tputs in the test program, due to portability hassles. When
13355 # cross-compiling, assume the test program will run if it links.
13357 # Maybe curses should be tried earlier?
13358 # See http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9736#35
13359 for tputs_library in '' tinfo ncurses terminfo termcap curses; do
13360 OLIBS=$LIBS
13361 if test -z "$tputs_library"; then
13362 LIBS_TERMCAP=
13363 msg='none required'
13364 else
13365 LIBS_TERMCAP=-l$tputs_library
13366 msg=$LIBS_TERMCAP
13367 LIBS="$LIBS_TERMCAP $LIBS"
13369 if test "$cross_compiling" = yes; then :
13370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13371 /* end confdefs.h. */
13373 extern void tputs (const char *, int, int (*)(int));
13374 int main (int argc, char **argv)
13376 if (argc == 10000)
13377 tputs (argv[0], 0, 0);
13378 return 0;
13381 _ACEOF
13382 if ac_fn_c_try_link "$LINENO"; then :
13384 else
13385 msg=no
13387 rm -f core conftest.err conftest.$ac_objext \
13388 conftest$ac_exeext conftest.$ac_ext
13389 else
13390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13391 /* end confdefs.h. */
13393 extern void tputs (const char *, int, int (*)(int));
13394 int main (int argc, char **argv)
13396 if (argc == 10000)
13397 tputs (argv[0], 0, 0);
13398 return 0;
13401 _ACEOF
13402 if ac_fn_c_try_run "$LINENO"; then :
13404 else
13405 msg=no
13407 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13408 conftest.$ac_objext conftest.beam conftest.$ac_ext
13411 LIBS=$OLIBS
13412 if test "X$msg" != Xno; then
13413 break
13415 done
13416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5
13417 $as_echo "$msg" >&6; }
13418 if test "X$msg" = Xno; then
13419 as_fn_error "The required function \`tputs' was not found in any library.
13420 The following libraries were tried (in order):
13421 libtinfo, libncurses, libterminfo, libtermcap, libcurses
13422 Please try installing whichever of these libraries is most appropriate
13423 for your system, together with its header files.
13424 For example, a libncurses-dev(el) or similar package." "$LINENO" 5
13427 ## Use termcap instead of terminfo?
13428 ## Only true for: freebsd < 40000, ms-w32, msdos, netbsd < 599002500.
13429 TERMINFO=yes
13430 ## FIXME? In the cases below where we unconditionally set
13431 ## LIBS_TERMCAP="-lncurses", this overrides LIBS_TERMCAP = -ltinfo,
13432 ## if that was found above to have tputs.
13433 ## Should we use the gnu* logic everywhere?
13434 case "$opsys" in
13435 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
13436 ## The ncurses library has been moved out of the System framework in
13437 ## Mac OS X 10.2. So if configure detects it, set the command-line
13438 ## option to use it.
13439 darwin) LIBS_TERMCAP="-lncurses" ;;
13441 gnu*) test -z "$LIBS_TERMCAP" && LIBS_TERMCAP="-lncurses" ;;
13443 freebsd)
13444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
13445 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
13446 if test "${emacs_cv_freebsd_terminfo+set}" = set; then :
13447 $as_echo_n "(cached) " >&6
13448 else
13449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13450 /* end confdefs.h. */
13451 #include <osreldate.h>
13453 main ()
13455 #if __FreeBSD_version < 400000
13456 fail;
13457 #endif
13460 return 0;
13462 _ACEOF
13463 if ac_fn_c_try_link "$LINENO"; then :
13464 emacs_cv_freebsd_terminfo=yes
13465 else
13466 emacs_cv_freebsd_terminfo=no
13468 rm -f core conftest.err conftest.$ac_objext \
13469 conftest$ac_exeext conftest.$ac_ext
13473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
13474 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
13476 if test $emacs_cv_freebsd_terminfo = yes; then
13477 LIBS_TERMCAP="-lncurses"
13478 else
13479 TERMINFO=no
13480 LIBS_TERMCAP="-ltermcap"
13484 netbsd)
13485 if test "x$LIBS_TERMCAP" != "x-lterminfo"; then
13486 TERMINFO=no
13487 LIBS_TERMCAP="-ltermcap"
13491 openbsd) LIBS_TERMCAP="-lncurses" ;;
13493 ## hpux: Make sure we get select from libc rather than from libcurses
13494 ## because libcurses on HPUX 10.10 has a broken version of select.
13495 ## We used to use -lc -lcurses, but this may be cleaner.
13496 ## FIXME? But TERMINFO = yes on hpux (it used to be explicitly
13497 # set that way, now it uses the default). Isn't this a contradiction?
13498 hpux*) LIBS_TERMCAP="-ltermcap" ;;
13500 esac
13502 TERMCAP_OBJ=tparam.o
13503 if test $TERMINFO = yes; then
13505 $as_echo "#define TERMINFO 1" >>confdefs.h
13507 TERMCAP_OBJ=terminfo.o
13513 # Do we have res_init, for detecting changes in /etc/resolv.conf?
13514 resolv=no
13515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13516 /* end confdefs.h. */
13517 #include <netinet/in.h>
13518 #include <arpa/nameser.h>
13519 #include <resolv.h>
13521 main ()
13523 return res_init();
13525 return 0;
13527 _ACEOF
13528 if ac_fn_c_try_link "$LINENO"; then :
13529 have_res_init=yes
13530 else
13531 have_res_init=no
13533 rm -f core conftest.err conftest.$ac_objext \
13534 conftest$ac_exeext conftest.$ac_ext
13535 if test "$have_res_init" = no; then
13536 OLIBS="$LIBS"
13537 LIBS="$LIBS -lresolv"
13538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
13539 $as_echo_n "checking for res_init with -lresolv... " >&6; }
13540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13541 /* end confdefs.h. */
13542 #include <netinet/in.h>
13543 #include <arpa/nameser.h>
13544 #include <resolv.h>
13546 main ()
13548 return res_init();
13550 return 0;
13552 _ACEOF
13553 if ac_fn_c_try_link "$LINENO"; then :
13554 have_res_init=yes
13555 else
13556 have_res_init=no
13558 rm -f core conftest.err conftest.$ac_objext \
13559 conftest$ac_exeext conftest.$ac_ext
13560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
13561 $as_echo "$have_res_init" >&6; }
13562 if test "$have_res_init" = yes ; then
13563 resolv=yes
13565 LIBS="$OLIBS"
13568 if test "$have_res_init" = yes; then
13570 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
13574 # Do we need the Hesiod library to provide the support routines?
13575 LIBHESIOD=
13576 if test "$with_hesiod" != no ; then
13577 # Don't set $LIBS here -- see comments above. FIXME which comments?
13578 ac_fn_c_check_func "$LINENO" "res_send" "ac_cv_func_res_send"
13579 if test "x$ac_cv_func_res_send" = x""yes; then :
13581 else
13582 ac_fn_c_check_func "$LINENO" "__res_send" "ac_cv_func___res_send"
13583 if test "x$ac_cv_func___res_send" = x""yes; then :
13585 else
13586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
13587 $as_echo_n "checking for res_send in -lresolv... " >&6; }
13588 if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
13589 $as_echo_n "(cached) " >&6
13590 else
13591 ac_check_lib_save_LIBS=$LIBS
13592 LIBS="-lresolv $LIBS"
13593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13594 /* end confdefs.h. */
13596 /* Override any GCC internal prototype to avoid an error.
13597 Use char because int might match the return type of a GCC
13598 builtin and then its argument prototype would still apply. */
13599 #ifdef __cplusplus
13600 extern "C"
13601 #endif
13602 char res_send ();
13604 main ()
13606 return res_send ();
13608 return 0;
13610 _ACEOF
13611 if ac_fn_c_try_link "$LINENO"; then :
13612 ac_cv_lib_resolv_res_send=yes
13613 else
13614 ac_cv_lib_resolv_res_send=no
13616 rm -f core conftest.err conftest.$ac_objext \
13617 conftest$ac_exeext conftest.$ac_ext
13618 LIBS=$ac_check_lib_save_LIBS
13620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
13621 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
13622 if test "x$ac_cv_lib_resolv_res_send" = x""yes; then :
13623 resolv=yes
13624 else
13625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
13626 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
13627 if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
13628 $as_echo_n "(cached) " >&6
13629 else
13630 ac_check_lib_save_LIBS=$LIBS
13631 LIBS="-lresolv $LIBS"
13632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13633 /* end confdefs.h. */
13635 /* Override any GCC internal prototype to avoid an error.
13636 Use char because int might match the return type of a GCC
13637 builtin and then its argument prototype would still apply. */
13638 #ifdef __cplusplus
13639 extern "C"
13640 #endif
13641 char __res_send ();
13643 main ()
13645 return __res_send ();
13647 return 0;
13649 _ACEOF
13650 if ac_fn_c_try_link "$LINENO"; then :
13651 ac_cv_lib_resolv___res_send=yes
13652 else
13653 ac_cv_lib_resolv___res_send=no
13655 rm -f core conftest.err conftest.$ac_objext \
13656 conftest$ac_exeext conftest.$ac_ext
13657 LIBS=$ac_check_lib_save_LIBS
13659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
13660 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
13661 if test "x$ac_cv_lib_resolv___res_send" = x""yes; then :
13662 resolv=yes
13671 if test "$resolv" = yes ; then
13672 RESOLVLIB=-lresolv
13673 else
13674 RESOLVLIB=
13676 ac_fn_c_check_func "$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
13677 if test "x$ac_cv_func_hes_getmailhost" = x""yes; then :
13679 else
13680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
13681 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
13682 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
13683 $as_echo_n "(cached) " >&6
13684 else
13685 ac_check_lib_save_LIBS=$LIBS
13686 LIBS="-lhesiod $RESOLVLIB $LIBS"
13687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13688 /* end confdefs.h. */
13690 /* Override any GCC internal prototype to avoid an error.
13691 Use char because int might match the return type of a GCC
13692 builtin and then its argument prototype would still apply. */
13693 #ifdef __cplusplus
13694 extern "C"
13695 #endif
13696 char hes_getmailhost ();
13698 main ()
13700 return hes_getmailhost ();
13702 return 0;
13704 _ACEOF
13705 if ac_fn_c_try_link "$LINENO"; then :
13706 ac_cv_lib_hesiod_hes_getmailhost=yes
13707 else
13708 ac_cv_lib_hesiod_hes_getmailhost=no
13710 rm -f core conftest.err conftest.$ac_objext \
13711 conftest$ac_exeext conftest.$ac_ext
13712 LIBS=$ac_check_lib_save_LIBS
13714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
13715 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
13716 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x""yes; then :
13717 hesiod=yes
13718 else
13725 if test x"$hesiod" = xyes; then
13727 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
13729 LIBHESIOD=-lhesiod
13734 # Do we need libresolv (due to res_init or Hesiod)?
13735 if test "$resolv" = yes ; then
13737 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
13739 LIBRESOLV=-lresolv
13740 else
13741 LIBRESOLV=
13745 # These tell us which Kerberos-related libraries to use.
13746 COM_ERRLIB=
13747 CRYPTOLIB=
13748 KRB5LIB=
13749 DESLIB=
13750 KRB4LIB=
13752 if test "${with_kerberos}" != no; then
13753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
13754 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
13755 if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
13756 $as_echo_n "(cached) " >&6
13757 else
13758 ac_check_lib_save_LIBS=$LIBS
13759 LIBS="-lcom_err $LIBS"
13760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13761 /* end confdefs.h. */
13763 /* Override any GCC internal prototype to avoid an error.
13764 Use char because int might match the return type of a GCC
13765 builtin and then its argument prototype would still apply. */
13766 #ifdef __cplusplus
13767 extern "C"
13768 #endif
13769 char com_err ();
13771 main ()
13773 return com_err ();
13775 return 0;
13777 _ACEOF
13778 if ac_fn_c_try_link "$LINENO"; then :
13779 ac_cv_lib_com_err_com_err=yes
13780 else
13781 ac_cv_lib_com_err_com_err=no
13783 rm -f core conftest.err conftest.$ac_objext \
13784 conftest$ac_exeext conftest.$ac_ext
13785 LIBS=$ac_check_lib_save_LIBS
13787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
13788 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
13789 if test "x$ac_cv_lib_com_err_com_err" = x""yes; then :
13790 have_com_err=yes
13791 else
13792 have_com_err=no
13795 if test $have_com_err = yes; then
13796 COM_ERRLIB=-lcom_err
13797 LIBS="$COM_ERRLIB $LIBS"
13799 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
13802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
13803 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
13804 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
13805 $as_echo_n "(cached) " >&6
13806 else
13807 ac_check_lib_save_LIBS=$LIBS
13808 LIBS="-lcrypto $LIBS"
13809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13810 /* end confdefs.h. */
13812 /* Override any GCC internal prototype to avoid an error.
13813 Use char because int might match the return type of a GCC
13814 builtin and then its argument prototype would still apply. */
13815 #ifdef __cplusplus
13816 extern "C"
13817 #endif
13818 char mit_des_cbc_encrypt ();
13820 main ()
13822 return mit_des_cbc_encrypt ();
13824 return 0;
13826 _ACEOF
13827 if ac_fn_c_try_link "$LINENO"; then :
13828 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
13829 else
13830 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
13832 rm -f core conftest.err conftest.$ac_objext \
13833 conftest$ac_exeext conftest.$ac_ext
13834 LIBS=$ac_check_lib_save_LIBS
13836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
13837 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
13838 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x""yes; then :
13839 have_crypto=yes
13840 else
13841 have_crypto=no
13844 if test $have_crypto = yes; then
13845 CRYPTOLIB=-lcrypto
13846 LIBS="$CRYPTOLIB $LIBS"
13848 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
13851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
13852 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
13853 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
13854 $as_echo_n "(cached) " >&6
13855 else
13856 ac_check_lib_save_LIBS=$LIBS
13857 LIBS="-lk5crypto $LIBS"
13858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13859 /* end confdefs.h. */
13861 /* Override any GCC internal prototype to avoid an error.
13862 Use char because int might match the return type of a GCC
13863 builtin and then its argument prototype would still apply. */
13864 #ifdef __cplusplus
13865 extern "C"
13866 #endif
13867 char mit_des_cbc_encrypt ();
13869 main ()
13871 return mit_des_cbc_encrypt ();
13873 return 0;
13875 _ACEOF
13876 if ac_fn_c_try_link "$LINENO"; then :
13877 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
13878 else
13879 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
13881 rm -f core conftest.err conftest.$ac_objext \
13882 conftest$ac_exeext conftest.$ac_ext
13883 LIBS=$ac_check_lib_save_LIBS
13885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
13886 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
13887 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x""yes; then :
13888 have_k5crypto=yes
13889 else
13890 have_k5crypto=no
13893 if test $have_k5crypto = yes; then
13894 CRYPTOLIB=-lk5crypto
13895 LIBS="$CRYPTOLIB $LIBS"
13897 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
13900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
13901 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
13902 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
13903 $as_echo_n "(cached) " >&6
13904 else
13905 ac_check_lib_save_LIBS=$LIBS
13906 LIBS="-lkrb5 $LIBS"
13907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13908 /* end confdefs.h. */
13910 /* Override any GCC internal prototype to avoid an error.
13911 Use char because int might match the return type of a GCC
13912 builtin and then its argument prototype would still apply. */
13913 #ifdef __cplusplus
13914 extern "C"
13915 #endif
13916 char krb5_init_context ();
13918 main ()
13920 return krb5_init_context ();
13922 return 0;
13924 _ACEOF
13925 if ac_fn_c_try_link "$LINENO"; then :
13926 ac_cv_lib_krb5_krb5_init_context=yes
13927 else
13928 ac_cv_lib_krb5_krb5_init_context=no
13930 rm -f core conftest.err conftest.$ac_objext \
13931 conftest$ac_exeext conftest.$ac_ext
13932 LIBS=$ac_check_lib_save_LIBS
13934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
13935 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
13936 if test "x$ac_cv_lib_krb5_krb5_init_context" = x""yes; then :
13937 have_krb5=yes
13938 else
13939 have_krb5=no
13942 if test $have_krb5=yes; then
13943 KRB5LIB=-lkrb5
13944 LIBS="$KRB5LIB $LIBS"
13946 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
13949 if test "${with_kerberos5}" = no; then
13950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
13951 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
13952 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
13953 $as_echo_n "(cached) " >&6
13954 else
13955 ac_check_lib_save_LIBS=$LIBS
13956 LIBS="-ldes425 $LIBS"
13957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13958 /* end confdefs.h. */
13960 /* Override any GCC internal prototype to avoid an error.
13961 Use char because int might match the return type of a GCC
13962 builtin and then its argument prototype would still apply. */
13963 #ifdef __cplusplus
13964 extern "C"
13965 #endif
13966 char des_cbc_encrypt ();
13968 main ()
13970 return des_cbc_encrypt ();
13972 return 0;
13974 _ACEOF
13975 if ac_fn_c_try_link "$LINENO"; then :
13976 ac_cv_lib_des425_des_cbc_encrypt=yes
13977 else
13978 ac_cv_lib_des425_des_cbc_encrypt=no
13980 rm -f core conftest.err conftest.$ac_objext \
13981 conftest$ac_exeext conftest.$ac_ext
13982 LIBS=$ac_check_lib_save_LIBS
13984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
13985 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
13986 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x""yes; then :
13987 have_des425=yes
13988 else
13989 have_des425=no
13992 if test $have_des425 = yes; then
13993 DESLIB=-ldes425
13994 LIBS="$DESLIB $LIBS"
13996 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
13998 else
13999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
14000 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
14001 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
14002 $as_echo_n "(cached) " >&6
14003 else
14004 ac_check_lib_save_LIBS=$LIBS
14005 LIBS="-ldes $LIBS"
14006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14007 /* end confdefs.h. */
14009 /* Override any GCC internal prototype to avoid an error.
14010 Use char because int might match the return type of a GCC
14011 builtin and then its argument prototype would still apply. */
14012 #ifdef __cplusplus
14013 extern "C"
14014 #endif
14015 char des_cbc_encrypt ();
14017 main ()
14019 return des_cbc_encrypt ();
14021 return 0;
14023 _ACEOF
14024 if ac_fn_c_try_link "$LINENO"; then :
14025 ac_cv_lib_des_des_cbc_encrypt=yes
14026 else
14027 ac_cv_lib_des_des_cbc_encrypt=no
14029 rm -f core conftest.err conftest.$ac_objext \
14030 conftest$ac_exeext conftest.$ac_ext
14031 LIBS=$ac_check_lib_save_LIBS
14033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
14034 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
14035 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x""yes; then :
14036 have_des=yes
14037 else
14038 have_des=no
14041 if test $have_des = yes; then
14042 DESLIB=-ldes
14043 LIBS="$DESLIB $LIBS"
14045 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
14049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
14050 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
14051 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
14052 $as_echo_n "(cached) " >&6
14053 else
14054 ac_check_lib_save_LIBS=$LIBS
14055 LIBS="-lkrb4 $LIBS"
14056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14057 /* end confdefs.h. */
14059 /* Override any GCC internal prototype to avoid an error.
14060 Use char because int might match the return type of a GCC
14061 builtin and then its argument prototype would still apply. */
14062 #ifdef __cplusplus
14063 extern "C"
14064 #endif
14065 char krb_get_cred ();
14067 main ()
14069 return krb_get_cred ();
14071 return 0;
14073 _ACEOF
14074 if ac_fn_c_try_link "$LINENO"; then :
14075 ac_cv_lib_krb4_krb_get_cred=yes
14076 else
14077 ac_cv_lib_krb4_krb_get_cred=no
14079 rm -f core conftest.err conftest.$ac_objext \
14080 conftest$ac_exeext conftest.$ac_ext
14081 LIBS=$ac_check_lib_save_LIBS
14083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
14084 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
14085 if test "x$ac_cv_lib_krb4_krb_get_cred" = x""yes; then :
14086 have_krb4=yes
14087 else
14088 have_krb4=no
14091 if test $have_krb4 = yes; then
14092 KRB4LIB=-lkrb4
14093 LIBS="$KRB4LIB $LIBS"
14095 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
14097 else
14098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
14099 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
14100 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
14101 $as_echo_n "(cached) " >&6
14102 else
14103 ac_check_lib_save_LIBS=$LIBS
14104 LIBS="-lkrb $LIBS"
14105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14106 /* end confdefs.h. */
14108 /* Override any GCC internal prototype to avoid an error.
14109 Use char because int might match the return type of a GCC
14110 builtin and then its argument prototype would still apply. */
14111 #ifdef __cplusplus
14112 extern "C"
14113 #endif
14114 char krb_get_cred ();
14116 main ()
14118 return krb_get_cred ();
14120 return 0;
14122 _ACEOF
14123 if ac_fn_c_try_link "$LINENO"; then :
14124 ac_cv_lib_krb_krb_get_cred=yes
14125 else
14126 ac_cv_lib_krb_krb_get_cred=no
14128 rm -f core conftest.err conftest.$ac_objext \
14129 conftest$ac_exeext conftest.$ac_ext
14130 LIBS=$ac_check_lib_save_LIBS
14132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
14133 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
14134 if test "x$ac_cv_lib_krb_krb_get_cred" = x""yes; then :
14135 have_krb=yes
14136 else
14137 have_krb=no
14140 if test $have_krb = yes; then
14141 KRB4LIB=-lkrb
14142 LIBS="$KRB4LIB $LIBS"
14144 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
14150 if test "${with_kerberos5}" != no; then
14151 for ac_header in krb5.h
14152 do :
14153 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
14154 if test "x$ac_cv_header_krb5_h" = x""yes; then :
14155 cat >>confdefs.h <<_ACEOF
14156 #define HAVE_KRB5_H 1
14157 _ACEOF
14158 ac_fn_c_check_member "$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
14160 if test "x$ac_cv_member_krb5_error_text" = x""yes; then :
14162 cat >>confdefs.h <<_ACEOF
14163 #define HAVE_KRB5_ERROR_TEXT 1
14164 _ACEOF
14168 ac_fn_c_check_member "$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
14170 if test "x$ac_cv_member_krb5_error_e_text" = x""yes; then :
14172 cat >>confdefs.h <<_ACEOF
14173 #define HAVE_KRB5_ERROR_E_TEXT 1
14174 _ACEOF
14181 done
14183 else
14184 for ac_header in des.h
14185 do :
14186 ac_fn_c_check_header_mongrel "$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
14187 if test "x$ac_cv_header_des_h" = x""yes; then :
14188 cat >>confdefs.h <<_ACEOF
14189 #define HAVE_DES_H 1
14190 _ACEOF
14192 else
14193 for ac_header in kerberosIV/des.h
14194 do :
14195 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
14196 if test "x$ac_cv_header_kerberosIV_des_h" = x""yes; then :
14197 cat >>confdefs.h <<_ACEOF
14198 #define HAVE_KERBEROSIV_DES_H 1
14199 _ACEOF
14201 else
14202 for ac_header in kerberos/des.h
14203 do :
14204 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
14205 if test "x$ac_cv_header_kerberos_des_h" = x""yes; then :
14206 cat >>confdefs.h <<_ACEOF
14207 #define HAVE_KERBEROS_DES_H 1
14208 _ACEOF
14212 done
14216 done
14220 done
14222 for ac_header in krb.h
14223 do :
14224 ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
14225 if test "x$ac_cv_header_krb_h" = x""yes; then :
14226 cat >>confdefs.h <<_ACEOF
14227 #define HAVE_KRB_H 1
14228 _ACEOF
14230 else
14231 for ac_header in kerberosIV/krb.h
14232 do :
14233 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
14234 if test "x$ac_cv_header_kerberosIV_krb_h" = x""yes; then :
14235 cat >>confdefs.h <<_ACEOF
14236 #define HAVE_KERBEROSIV_KRB_H 1
14237 _ACEOF
14239 else
14240 for ac_header in kerberos/krb.h
14241 do :
14242 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
14243 if test "x$ac_cv_header_kerberos_krb_h" = x""yes; then :
14244 cat >>confdefs.h <<_ACEOF
14245 #define HAVE_KERBEROS_KRB_H 1
14246 _ACEOF
14250 done
14254 done
14258 done
14261 for ac_header in com_err.h
14262 do :
14263 ac_fn_c_check_header_mongrel "$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
14264 if test "x$ac_cv_header_com_err_h" = x""yes; then :
14265 cat >>confdefs.h <<_ACEOF
14266 #define HAVE_COM_ERR_H 1
14267 _ACEOF
14271 done
14284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
14285 $as_echo_n "checking whether localtime caches TZ... " >&6; }
14286 if test "${emacs_cv_localtime_cache+set}" = set; then :
14287 $as_echo_n "(cached) " >&6
14288 else
14289 if test x$ac_cv_func_tzset = xyes; then
14290 if test "$cross_compiling" = yes; then :
14291 # If we have tzset, assume the worst when cross-compiling.
14292 emacs_cv_localtime_cache=yes
14293 else
14294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14295 /* end confdefs.h. */
14296 #include <time.h>
14297 char TZ_GMT0[] = "TZ=GMT0";
14298 char TZ_PST8[] = "TZ=PST8";
14299 main()
14301 time_t now = time ((time_t *) 0);
14302 int hour_GMT0, hour_unset;
14303 if (putenv (TZ_GMT0) != 0)
14304 exit (1);
14305 hour_GMT0 = localtime (&now)->tm_hour;
14306 unsetenv("TZ");
14307 hour_unset = localtime (&now)->tm_hour;
14308 if (putenv (TZ_PST8) != 0)
14309 exit (1);
14310 if (localtime (&now)->tm_hour == hour_GMT0)
14311 exit (1);
14312 unsetenv("TZ");
14313 if (localtime (&now)->tm_hour != hour_unset)
14314 exit (1);
14315 exit (0);
14317 _ACEOF
14318 if ac_fn_c_try_run "$LINENO"; then :
14319 emacs_cv_localtime_cache=no
14320 else
14321 emacs_cv_localtime_cache=yes
14323 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14324 conftest.$ac_objext conftest.beam conftest.$ac_ext
14327 else
14328 # If we lack tzset, report that localtime does not cache TZ,
14329 # since we can't invalidate the cache if we don't have tzset.
14330 emacs_cv_localtime_cache=no
14333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
14334 $as_echo "$emacs_cv_localtime_cache" >&6; }
14335 if test $emacs_cv_localtime_cache = yes; then
14337 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
14341 if test "x$HAVE_TIMEVAL" = xyes; then
14342 for ac_func in gettimeofday
14343 do :
14344 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
14345 if test "x$ac_cv_func_gettimeofday" = x""yes; then :
14346 cat >>confdefs.h <<_ACEOF
14347 #define HAVE_GETTIMEOFDAY 1
14348 _ACEOF
14351 done
14353 if test $ac_cv_func_gettimeofday = yes; then
14354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday can accept two arguments" >&5
14355 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
14356 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then :
14357 $as_echo_n "(cached) " >&6
14358 else
14359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14360 /* end confdefs.h. */
14362 #ifdef TIME_WITH_SYS_TIME
14363 #include <sys/time.h>
14364 #include <time.h>
14365 #else
14366 #ifdef HAVE_SYS_TIME_H
14367 #include <sys/time.h>
14368 #else
14369 #include <time.h>
14370 #endif
14371 #endif
14373 main ()
14375 struct timeval time;
14376 gettimeofday (&time, 0);
14378 return 0;
14380 _ACEOF
14381 if ac_fn_c_try_compile "$LINENO"; then :
14382 emacs_cv_gettimeofday_two_arguments=yes
14383 else
14384 emacs_cv_gettimeofday_two_arguments=no
14386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_gettimeofday_two_arguments" >&5
14389 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
14390 if test $emacs_cv_gettimeofday_two_arguments = no; then
14392 $as_echo "#define GETTIMEOFDAY_ONE_ARGUMENT 1" >>confdefs.h
14398 ok_so_far=yes
14399 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
14400 if test "x$ac_cv_func_socket" = x""yes; then :
14402 else
14403 ok_so_far=no
14406 if test $ok_so_far = yes; then
14407 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
14408 if test "x$ac_cv_header_netinet_in_h" = x""yes; then :
14410 else
14411 ok_so_far=no
14416 if test $ok_so_far = yes; then
14417 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
14418 if test "x$ac_cv_header_arpa_inet_h" = x""yes; then :
14420 else
14421 ok_so_far=no
14426 if test $ok_so_far = yes; then
14428 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
14432 if test -f /usr/lpp/X11/bin/smt.exp; then
14434 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
14438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
14439 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
14440 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
14441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14442 $as_echo "yes" >&6; }
14444 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
14446 else
14447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14448 $as_echo "no" >&6; }
14451 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
14452 if test "x$ac_cv_type_pid_t" = x""yes; then :
14454 else
14456 cat >>confdefs.h <<_ACEOF
14457 #define pid_t int
14458 _ACEOF
14462 for ac_header in vfork.h
14463 do :
14464 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
14465 if test "x$ac_cv_header_vfork_h" = x""yes; then :
14466 cat >>confdefs.h <<_ACEOF
14467 #define HAVE_VFORK_H 1
14468 _ACEOF
14472 done
14474 for ac_func in fork vfork
14475 do :
14476 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14477 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14478 eval as_val=\$$as_ac_var
14479 if test "x$as_val" = x""yes; then :
14480 cat >>confdefs.h <<_ACEOF
14481 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14482 _ACEOF
14485 done
14487 if test "x$ac_cv_func_fork" = xyes; then
14488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
14489 $as_echo_n "checking for working fork... " >&6; }
14490 if test "${ac_cv_func_fork_works+set}" = set; then :
14491 $as_echo_n "(cached) " >&6
14492 else
14493 if test "$cross_compiling" = yes; then :
14494 ac_cv_func_fork_works=cross
14495 else
14496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14497 /* end confdefs.h. */
14498 $ac_includes_default
14500 main ()
14503 /* By Ruediger Kuhlmann. */
14504 return fork () < 0;
14507 return 0;
14509 _ACEOF
14510 if ac_fn_c_try_run "$LINENO"; then :
14511 ac_cv_func_fork_works=yes
14512 else
14513 ac_cv_func_fork_works=no
14515 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14516 conftest.$ac_objext conftest.beam conftest.$ac_ext
14520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
14521 $as_echo "$ac_cv_func_fork_works" >&6; }
14523 else
14524 ac_cv_func_fork_works=$ac_cv_func_fork
14526 if test "x$ac_cv_func_fork_works" = xcross; then
14527 case $host in
14528 *-*-amigaos* | *-*-msdosdjgpp*)
14529 # Override, as these systems have only a dummy fork() stub
14530 ac_cv_func_fork_works=no
14533 ac_cv_func_fork_works=yes
14535 esac
14536 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
14537 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
14539 ac_cv_func_vfork_works=$ac_cv_func_vfork
14540 if test "x$ac_cv_func_vfork" = xyes; then
14541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
14542 $as_echo_n "checking for working vfork... " >&6; }
14543 if test "${ac_cv_func_vfork_works+set}" = set; then :
14544 $as_echo_n "(cached) " >&6
14545 else
14546 if test "$cross_compiling" = yes; then :
14547 ac_cv_func_vfork_works=cross
14548 else
14549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14550 /* end confdefs.h. */
14551 /* Thanks to Paul Eggert for this test. */
14552 $ac_includes_default
14553 #include <sys/wait.h>
14554 #ifdef HAVE_VFORK_H
14555 # include <vfork.h>
14556 #endif
14557 /* On some sparc systems, changes by the child to local and incoming
14558 argument registers are propagated back to the parent. The compiler
14559 is told about this with #include <vfork.h>, but some compilers
14560 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
14561 static variable whose address is put into a register that is
14562 clobbered by the vfork. */
14563 static void
14564 #ifdef __cplusplus
14565 sparc_address_test (int arg)
14566 # else
14567 sparc_address_test (arg) int arg;
14568 #endif
14570 static pid_t child;
14571 if (!child) {
14572 child = vfork ();
14573 if (child < 0) {
14574 perror ("vfork");
14575 _exit(2);
14577 if (!child) {
14578 arg = getpid();
14579 write(-1, "", 0);
14580 _exit (arg);
14586 main ()
14588 pid_t parent = getpid ();
14589 pid_t child;
14591 sparc_address_test (0);
14593 child = vfork ();
14595 if (child == 0) {
14596 /* Here is another test for sparc vfork register problems. This
14597 test uses lots of local variables, at least as many local
14598 variables as main has allocated so far including compiler
14599 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
14600 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
14601 reuse the register of parent for one of the local variables,
14602 since it will think that parent can't possibly be used any more
14603 in this routine. Assigning to the local variable will thus
14604 munge parent in the parent process. */
14605 pid_t
14606 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
14607 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
14608 /* Convince the compiler that p..p7 are live; otherwise, it might
14609 use the same hardware register for all 8 local variables. */
14610 if (p != p1 || p != p2 || p != p3 || p != p4
14611 || p != p5 || p != p6 || p != p7)
14612 _exit(1);
14614 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
14615 from child file descriptors. If the child closes a descriptor
14616 before it execs or exits, this munges the parent's descriptor
14617 as well. Test for this by closing stdout in the child. */
14618 _exit(close(fileno(stdout)) != 0);
14619 } else {
14620 int status;
14621 struct stat st;
14623 while (wait(&status) != child)
14625 return (
14626 /* Was there some problem with vforking? */
14627 child < 0
14629 /* Did the child fail? (This shouldn't happen.) */
14630 || status
14632 /* Did the vfork/compiler bug occur? */
14633 || parent != getpid()
14635 /* Did the file descriptor bug occur? */
14636 || fstat(fileno(stdout), &st) != 0
14640 _ACEOF
14641 if ac_fn_c_try_run "$LINENO"; then :
14642 ac_cv_func_vfork_works=yes
14643 else
14644 ac_cv_func_vfork_works=no
14646 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14647 conftest.$ac_objext conftest.beam conftest.$ac_ext
14651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
14652 $as_echo "$ac_cv_func_vfork_works" >&6; }
14655 if test "x$ac_cv_func_fork_works" = xcross; then
14656 ac_cv_func_vfork_works=$ac_cv_func_vfork
14657 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
14658 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
14661 if test "x$ac_cv_func_vfork_works" = xyes; then
14663 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
14665 else
14667 $as_echo "#define vfork fork" >>confdefs.h
14670 if test "x$ac_cv_func_fork_works" = xyes; then
14672 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
14681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
14682 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
14683 if test "${emacs_cv_langinfo_codeset+set}" = set; then :
14684 $as_echo_n "(cached) " >&6
14685 else
14686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14687 /* end confdefs.h. */
14688 #include <langinfo.h>
14690 main ()
14692 char* cs = nl_langinfo(CODESET);
14694 return 0;
14696 _ACEOF
14697 if ac_fn_c_try_link "$LINENO"; then :
14698 emacs_cv_langinfo_codeset=yes
14699 else
14700 emacs_cv_langinfo_codeset=no
14702 rm -f core conftest.err conftest.$ac_objext \
14703 conftest$ac_exeext conftest.$ac_ext
14706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
14707 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
14708 if test $emacs_cv_langinfo_codeset = yes; then
14710 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
14714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
14715 $as_echo_n "checking for mbstate_t... " >&6; }
14716 if test "${ac_cv_type_mbstate_t+set}" = set; then :
14717 $as_echo_n "(cached) " >&6
14718 else
14719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14720 /* end confdefs.h. */
14721 $ac_includes_default
14722 # include <wchar.h>
14724 main ()
14726 mbstate_t x; return sizeof x;
14728 return 0;
14730 _ACEOF
14731 if ac_fn_c_try_compile "$LINENO"; then :
14732 ac_cv_type_mbstate_t=yes
14733 else
14734 ac_cv_type_mbstate_t=no
14736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
14739 $as_echo "$ac_cv_type_mbstate_t" >&6; }
14740 if test $ac_cv_type_mbstate_t = yes; then
14742 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
14744 else
14746 $as_echo "#define mbstate_t int" >>confdefs.h
14750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
14751 $as_echo_n "checking for C restricted array declarations... " >&6; }
14752 if test "${emacs_cv_c_restrict_arr+set}" = set; then :
14753 $as_echo_n "(cached) " >&6
14754 else
14755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14756 /* end confdefs.h. */
14757 void fred (int x[__restrict]);
14759 main ()
14763 return 0;
14765 _ACEOF
14766 if ac_fn_c_try_compile "$LINENO"; then :
14767 emacs_cv_c_restrict_arr=yes
14768 else
14769 emacs_cv_c_restrict_arr=no
14771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
14774 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
14775 if test "$emacs_cv_c_restrict_arr" = yes; then
14777 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
14782 case $opsys in
14783 darwin | gnu | hpux* | *bsd )
14785 $as_echo "#define NO_TERMIO 1" >>confdefs.h
14788 esac
14790 case $opsys in
14791 hpux* | irix6-5 | openbsd | sol2* | unixware )
14793 $as_echo "#define BROKEN_SIGIO 1" >>confdefs.h
14796 esac
14798 case $opsys in
14799 gnu-* | sol2-10 )
14801 $as_echo "#define HAVE_PROCFS 1" >>confdefs.h
14804 esac
14806 case $opsys in
14807 gnu-kfreebsd) opsysfile="s/gnu-linux.h" ;;
14809 hpux11)
14811 $as_echo "#define BROKEN_SA_RESTART 1" >>confdefs.h
14814 $as_echo "#define USG_SUBTTY_WORKS 1" >>confdefs.h
14817 opsysfile="s/hpux10-20.h"
14820 openbsd) opsysfile="s/netbsd.h" ;;
14822 sol2-10)
14824 $as_echo "#define _STRUCTURED_PROC 1" >>confdefs.h
14826 opsysfile="s/sol2-6.h"
14828 esac
14830 # Set up the CFLAGS for real compilation, so we can substitute it.
14831 CFLAGS="$REAL_CFLAGS"
14832 CPPFLAGS="$REAL_CPPFLAGS"
14834 ## Hack to detect a buggy GCC version.
14835 if test "x$GCC" = xyes \
14836 && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
14837 && test x"`echo $CFLAGS | grep '\-O[23]'`" != x \
14838 && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then
14839 as_fn_error "GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
14842 version=$PACKAGE_VERSION
14844 ### Specify what sort of things we'll be editing into Makefile and config.h.
14845 ### Use configuration here uncanonicalized to avoid exceeding size limits.
14848 ## Unused?
14870 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
14871 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
14872 ## end of LIBX_BASE, but nothing ever set it.
14877 ## Used in lwlib/Makefile.in.
14879 if test -n "${opsysfile}"; then
14880 S_FILE="\$(srcdir)/${opsysfile}"
14881 else
14882 S_FILE=
14893 cat >>confdefs.h <<_ACEOF
14894 #define EMACS_CONFIGURATION "${canonical}"
14895 _ACEOF
14898 cat >>confdefs.h <<_ACEOF
14899 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
14900 _ACEOF
14902 if test -n "$opsysfile"; then
14904 cat >>confdefs.h <<_ACEOF
14905 #define config_opsysfile "${opsysfile}"
14906 _ACEOF
14910 XMENU_OBJ=
14911 XOBJ=
14912 FONT_OBJ=
14913 if test "${HAVE_X_WINDOWS}" = "yes" ; then
14915 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
14917 XMENU_OBJ=xmenu.o
14918 XOBJ="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
14919 FONT_OBJ=xfont.o
14920 if test "$HAVE_XFT" = "yes"; then
14921 FONT_OBJ="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
14922 elif test "$HAVE_FREETYPE" = "yes"; then
14923 FONT_OBJ="$FONT_OBJ ftfont.o ftxfont.o"
14931 WIDGET_OBJ=
14932 MOTIF_LIBW=
14933 if test "${USE_X_TOOLKIT}" != "none" ; then
14934 WIDGET_OBJ=widget.o
14936 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
14938 if test "${USE_X_TOOLKIT}" = "LUCID"; then
14940 $as_echo "#define USE_LUCID 1" >>confdefs.h
14942 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
14944 $as_echo "#define USE_MOTIF 1" >>confdefs.h
14946 MOTIF_LIBW=-lXm
14947 case "$opsys" in
14948 gnu-linux)
14949 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
14950 MOTIF_LIBW="$MOTIF_LIBW -lXpm"
14953 unixware)
14954 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
14955 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
14956 MOTIF_LIBW="MOTIF_LIBW -lXimp"
14959 aix4-2)
14960 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
14961 MOTIF_LIBW="$MOTIF_LIBW -li18n"
14963 esac
14964 MOTIF_LIBW="$MOTIF_LIBW $LIBXP"
14969 TOOLKIT_LIBW=
14970 case "$USE_X_TOOLKIT" in
14971 MOTIF) TOOLKIT_LIBW="$MOTIF_LIBW" ;;
14972 LUCID) TOOLKIT_LIBW="$LUCID_LIBW" ;;
14973 none) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW="$GTK_LIBS" ;;
14974 esac
14977 if test "$USE_X_TOOLKIT" = "none"; then
14978 LIBXT_OTHER="\$(LIBXSM)"
14979 OLDXMENU_TARGET="really-oldXMenu"
14980 else
14981 LIBXT_OTHER="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
14982 OLDXMENU_TARGET="really-lwlib"
14986 ## The X Menu stuff is present in the X10 distribution, but missing
14987 ## from X11. If we have X10, just use the installed library;
14988 ## otherwise, use our own copy.
14989 if test "${HAVE_X11}" = "yes" ; then
14991 $as_echo "#define HAVE_X11 1" >>confdefs.h
14994 if test "$USE_X_TOOLKIT" = "none"; then
14995 OLDXMENU="\${oldXMenudir}/libXMenu11.a"
14996 else
14997 OLDXMENU="\${lwlibdir}/liblw.a"
14999 LIBXMENU="\$(OLDXMENU)"
15000 LIBX_OTHER="\$(LIBXT) \$(LIBX_EXTRA)"
15001 OLDXMENU_DEPS="\${OLDXMENU} ../src/\${OLDXMENU}"
15002 else
15003 ## For a syntactically valid Makefile; not actually used for anything.
15004 ## See comments in src/Makefile.in.
15005 OLDXMENU=nothing
15006 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
15007 if test "${HAVE_X_WINDOWS}" = "yes"; then
15008 LIBXMENU="-lXMenu"
15009 else
15010 LIBXMENU=
15012 LIBX_OTHER=
15013 OLDXMENU_DEPS=
15016 if test "$HAVE_GTK" = "yes" || test "$HAVE_MENUS" != "yes"; then
15017 OLDXMENU_TARGET=
15018 OLDXMENU=nothing
15019 LIBXMENU=
15020 OLDXMENU_DEPS=
15029 if test "${HAVE_MENUS}" = "yes" ; then
15031 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
15035 if test "${GNU_MALLOC}" = "yes" ; then
15037 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
15041 RALLOC_OBJ=
15042 if test "${REL_ALLOC}" = "yes" ; then
15044 $as_echo "#define REL_ALLOC 1" >>confdefs.h
15047 test "$system_malloc" != "yes" && RALLOC_OBJ=ralloc.o
15051 if test "$opsys" = "cygwin"; then
15052 CYGWIN_OBJ="sheap.o"
15053 ## Cygwin differs because of its unexec().
15054 PRE_ALLOC_OBJ=
15055 POST_ALLOC_OBJ=lastfile.o
15056 else
15057 CYGWIN_OBJ=
15058 PRE_ALLOC_OBJ=lastfile.o
15059 POST_ALLOC_OBJ=
15065 # Configure gnulib here, now that we know LIBS.
15077 LIBC_FATAL_STDERR_=1
15078 export LIBC_FATAL_STDERR_
15080 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15081 # for constant arguments. Useless!
15082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
15083 $as_echo_n "checking for working alloca.h... " >&6; }
15084 if test "${ac_cv_working_alloca_h+set}" = set; then :
15085 $as_echo_n "(cached) " >&6
15086 else
15087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15088 /* end confdefs.h. */
15089 #include <alloca.h>
15091 main ()
15093 char *p = (char *) alloca (2 * sizeof (int));
15094 if (p) return 0;
15096 return 0;
15098 _ACEOF
15099 if ac_fn_c_try_link "$LINENO"; then :
15100 ac_cv_working_alloca_h=yes
15101 else
15102 ac_cv_working_alloca_h=no
15104 rm -f core conftest.err conftest.$ac_objext \
15105 conftest$ac_exeext conftest.$ac_ext
15107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
15108 $as_echo "$ac_cv_working_alloca_h" >&6; }
15109 if test $ac_cv_working_alloca_h = yes; then
15111 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
15115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
15116 $as_echo_n "checking for alloca... " >&6; }
15117 if test "${ac_cv_func_alloca_works+set}" = set; then :
15118 $as_echo_n "(cached) " >&6
15119 else
15120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15121 /* end confdefs.h. */
15122 #ifdef __GNUC__
15123 # define alloca __builtin_alloca
15124 #else
15125 # ifdef _MSC_VER
15126 # include <malloc.h>
15127 # define alloca _alloca
15128 # else
15129 # ifdef HAVE_ALLOCA_H
15130 # include <alloca.h>
15131 # else
15132 # ifdef _AIX
15133 #pragma alloca
15134 # else
15135 # ifndef alloca /* predefined by HP cc +Olibcalls */
15136 char *alloca ();
15137 # endif
15138 # endif
15139 # endif
15140 # endif
15141 #endif
15144 main ()
15146 char *p = (char *) alloca (1);
15147 if (p) return 0;
15149 return 0;
15151 _ACEOF
15152 if ac_fn_c_try_link "$LINENO"; then :
15153 ac_cv_func_alloca_works=yes
15154 else
15155 ac_cv_func_alloca_works=no
15157 rm -f core conftest.err conftest.$ac_objext \
15158 conftest$ac_exeext conftest.$ac_ext
15160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
15161 $as_echo "$ac_cv_func_alloca_works" >&6; }
15163 if test $ac_cv_func_alloca_works = yes; then
15165 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
15167 else
15168 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15169 # that cause trouble. Some versions do not even contain alloca or
15170 # contain a buggy version. If you still want to use their alloca,
15171 # use ar to extract alloca.o from them instead of compiling alloca.c.
15177 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
15179 $as_echo "#define C_ALLOCA 1" >>confdefs.h
15182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 'alloca.c' needs Cray hooks" >&5
15183 $as_echo_n "checking whether 'alloca.c' needs Cray hooks... " >&6; }
15184 if test "${ac_cv_os_cray+set}" = set; then :
15185 $as_echo_n "(cached) " >&6
15186 else
15187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15188 /* end confdefs.h. */
15189 #if defined CRAY && ! defined CRAY2
15190 webecray
15191 #else
15192 wenotbecray
15193 #endif
15195 _ACEOF
15196 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15197 $EGREP "webecray" >/dev/null 2>&1; then :
15198 ac_cv_os_cray=yes
15199 else
15200 ac_cv_os_cray=no
15202 rm -f conftest*
15205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
15206 $as_echo "$ac_cv_os_cray" >&6; }
15207 if test $ac_cv_os_cray = yes; then
15208 for ac_func in _getb67 GETB67 getb67; do
15209 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15210 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15211 eval as_val=\$$as_ac_var
15212 if test "x$as_val" = x""yes; then :
15214 cat >>confdefs.h <<_ACEOF
15215 #define CRAY_STACKSEG_END $ac_func
15216 _ACEOF
15218 break
15221 done
15224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
15225 $as_echo_n "checking stack direction for C alloca... " >&6; }
15226 if test "${ac_cv_c_stack_direction+set}" = set; then :
15227 $as_echo_n "(cached) " >&6
15228 else
15229 if test "$cross_compiling" = yes; then :
15230 ac_cv_c_stack_direction=0
15231 else
15232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15233 /* end confdefs.h. */
15234 $ac_includes_default
15236 find_stack_direction (int *addr, int depth)
15238 int dir, dummy = 0;
15239 if (! addr)
15240 addr = &dummy;
15241 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
15242 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
15243 return dir + dummy;
15247 main (int argc, char **argv)
15249 return find_stack_direction (0, argc + !argv + 20) < 0;
15251 _ACEOF
15252 if ac_fn_c_try_run "$LINENO"; then :
15253 ac_cv_c_stack_direction=1
15254 else
15255 ac_cv_c_stack_direction=-1
15257 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15258 conftest.$ac_objext conftest.beam conftest.$ac_ext
15262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
15263 $as_echo "$ac_cv_c_stack_direction" >&6; }
15264 cat >>confdefs.h <<_ACEOF
15265 #define STACK_DIRECTION $ac_cv_c_stack_direction
15266 _ACEOF
15274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
15275 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
15276 if test "${ac_cv_c_bigendian+set}" = set; then :
15277 $as_echo_n "(cached) " >&6
15278 else
15279 ac_cv_c_bigendian=unknown
15280 # See if we're dealing with a universal compiler.
15281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15282 /* end confdefs.h. */
15283 #ifndef __APPLE_CC__
15284 not a universal capable compiler
15285 #endif
15286 typedef int dummy;
15288 _ACEOF
15289 if ac_fn_c_try_compile "$LINENO"; then :
15291 # Check for potential -arch flags. It is not universal unless
15292 # there are at least two -arch flags with different values.
15293 ac_arch=
15294 ac_prev=
15295 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
15296 if test -n "$ac_prev"; then
15297 case $ac_word in
15298 i?86 | x86_64 | ppc | ppc64)
15299 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
15300 ac_arch=$ac_word
15301 else
15302 ac_cv_c_bigendian=universal
15303 break
15306 esac
15307 ac_prev=
15308 elif test "x$ac_word" = "x-arch"; then
15309 ac_prev=arch
15311 done
15313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15314 if test $ac_cv_c_bigendian = unknown; then
15315 # See if sys/param.h defines the BYTE_ORDER macro.
15316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15317 /* end confdefs.h. */
15318 #include <sys/types.h>
15319 #include <sys/param.h>
15322 main ()
15324 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
15325 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
15326 && LITTLE_ENDIAN)
15327 bogus endian macros
15328 #endif
15331 return 0;
15333 _ACEOF
15334 if ac_fn_c_try_compile "$LINENO"; then :
15335 # It does; now see whether it defined to BIG_ENDIAN or not.
15336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15337 /* end confdefs.h. */
15338 #include <sys/types.h>
15339 #include <sys/param.h>
15342 main ()
15344 #if BYTE_ORDER != BIG_ENDIAN
15345 not big endian
15346 #endif
15349 return 0;
15351 _ACEOF
15352 if ac_fn_c_try_compile "$LINENO"; then :
15353 ac_cv_c_bigendian=yes
15354 else
15355 ac_cv_c_bigendian=no
15357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15361 if test $ac_cv_c_bigendian = unknown; then
15362 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
15363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15364 /* end confdefs.h. */
15365 #include <limits.h>
15368 main ()
15370 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
15371 bogus endian macros
15372 #endif
15375 return 0;
15377 _ACEOF
15378 if ac_fn_c_try_compile "$LINENO"; then :
15379 # It does; now see whether it defined to _BIG_ENDIAN or not.
15380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15381 /* end confdefs.h. */
15382 #include <limits.h>
15385 main ()
15387 #ifndef _BIG_ENDIAN
15388 not big endian
15389 #endif
15392 return 0;
15394 _ACEOF
15395 if ac_fn_c_try_compile "$LINENO"; then :
15396 ac_cv_c_bigendian=yes
15397 else
15398 ac_cv_c_bigendian=no
15400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15404 if test $ac_cv_c_bigendian = unknown; then
15405 # Compile a test program.
15406 if test "$cross_compiling" = yes; then :
15407 # Try to guess by grepping values from an object file.
15408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15409 /* end confdefs.h. */
15410 short int ascii_mm[] =
15411 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
15412 short int ascii_ii[] =
15413 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
15414 int use_ascii (int i) {
15415 return ascii_mm[i] + ascii_ii[i];
15417 short int ebcdic_ii[] =
15418 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
15419 short int ebcdic_mm[] =
15420 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
15421 int use_ebcdic (int i) {
15422 return ebcdic_mm[i] + ebcdic_ii[i];
15424 extern int foo;
15427 main ()
15429 return use_ascii (foo) == use_ebcdic (foo);
15431 return 0;
15433 _ACEOF
15434 if ac_fn_c_try_compile "$LINENO"; then :
15435 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
15436 ac_cv_c_bigendian=yes
15438 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
15439 if test "$ac_cv_c_bigendian" = unknown; then
15440 ac_cv_c_bigendian=no
15441 else
15442 # finding both strings is unlikely to happen, but who knows?
15443 ac_cv_c_bigendian=unknown
15447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15448 else
15449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15450 /* end confdefs.h. */
15451 $ac_includes_default
15453 main ()
15456 /* Are we little or big endian? From Harbison&Steele. */
15457 union
15459 long int l;
15460 char c[sizeof (long int)];
15461 } u;
15462 u.l = 1;
15463 return u.c[sizeof (long int) - 1] == 1;
15466 return 0;
15468 _ACEOF
15469 if ac_fn_c_try_run "$LINENO"; then :
15470 ac_cv_c_bigendian=no
15471 else
15472 ac_cv_c_bigendian=yes
15474 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15475 conftest.$ac_objext conftest.beam conftest.$ac_ext
15480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
15481 $as_echo "$ac_cv_c_bigendian" >&6; }
15482 case $ac_cv_c_bigendian in #(
15483 yes)
15484 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
15485 ;; #(
15487 ;; #(
15488 universal)
15490 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
15492 ;; #(
15494 as_fn_error "unknown endianness
15495 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
15496 esac
15499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
15500 $as_echo_n "checking for inline... " >&6; }
15501 if test "${ac_cv_c_inline+set}" = set; then :
15502 $as_echo_n "(cached) " >&6
15503 else
15504 ac_cv_c_inline=no
15505 for ac_kw in inline __inline__ __inline; do
15506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15507 /* end confdefs.h. */
15508 #ifndef __cplusplus
15509 typedef int foo_t;
15510 static $ac_kw foo_t static_foo () {return 0; }
15511 $ac_kw foo_t foo () {return 0; }
15512 #endif
15514 _ACEOF
15515 if ac_fn_c_try_compile "$LINENO"; then :
15516 ac_cv_c_inline=$ac_kw
15518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15519 test "$ac_cv_c_inline" != no && break
15520 done
15523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
15524 $as_echo "$ac_cv_c_inline" >&6; }
15526 case $ac_cv_c_inline in
15527 inline | yes) ;;
15529 case $ac_cv_c_inline in
15530 no) ac_val=;;
15531 *) ac_val=$ac_cv_c_inline;;
15532 esac
15533 cat >>confdefs.h <<_ACEOF
15534 #ifndef __cplusplus
15535 #define inline $ac_val
15536 #endif
15537 _ACEOF
15539 esac
15542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtold conforms to C99" >&5
15543 $as_echo_n "checking whether strtold conforms to C99... " >&6; }
15544 if test "${gl_cv_func_c99_strtold+set}" = set; then :
15545 $as_echo_n "(cached) " >&6
15546 else
15547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15548 /* end confdefs.h. */
15549 /* On HP-UX before 11.23, strtold returns a struct instead of
15550 long double. Reject implementations like that, by requiring
15551 compatibility with the C99 prototype. */
15552 #include <stdlib.h>
15553 static long double (*p) (char const *, char **) = strtold;
15554 static long double
15555 test (char const *nptr, char **endptr)
15557 long double r;
15558 r = strtold (nptr, endptr);
15559 return r;
15562 main ()
15564 return test ("1.0", NULL) != 1 || p ("1.0", NULL) != 1;
15566 return 0;
15568 _ACEOF
15569 if ac_fn_c_try_link "$LINENO"; then :
15570 gl_cv_func_c99_strtold=yes
15571 else
15572 gl_cv_func_c99_strtold=no
15574 rm -f core conftest.err conftest.$ac_objext \
15575 conftest$ac_exeext conftest.$ac_ext
15577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_c99_strtold" >&5
15578 $as_echo "$gl_cv_func_c99_strtold" >&6; }
15579 if test $gl_cv_func_c99_strtold = yes; then
15581 $as_echo "#define HAVE_C99_STRTOLD 1" >>confdefs.h
15586 GNULIB_CHDIR=0;
15587 GNULIB_CHOWN=0;
15588 GNULIB_CLOSE=0;
15589 GNULIB_DUP=0;
15590 GNULIB_DUP2=0;
15591 GNULIB_DUP3=0;
15592 GNULIB_ENVIRON=0;
15593 GNULIB_EUIDACCESS=0;
15594 GNULIB_FACCESSAT=0;
15595 GNULIB_FCHDIR=0;
15596 GNULIB_FCHOWNAT=0;
15597 GNULIB_FDATASYNC=0;
15598 GNULIB_FSYNC=0;
15599 GNULIB_FTRUNCATE=0;
15600 GNULIB_GETCWD=0;
15601 GNULIB_GETDOMAINNAME=0;
15602 GNULIB_GETDTABLESIZE=0;
15603 GNULIB_GETGROUPS=0;
15604 GNULIB_GETHOSTNAME=0;
15605 GNULIB_GETLOGIN=0;
15606 GNULIB_GETLOGIN_R=0;
15607 GNULIB_GETPAGESIZE=0;
15608 GNULIB_GETUSERSHELL=0;
15609 GNULIB_GROUP_MEMBER=0;
15610 GNULIB_ISATTY=0;
15611 GNULIB_LCHOWN=0;
15612 GNULIB_LINK=0;
15613 GNULIB_LINKAT=0;
15614 GNULIB_LSEEK=0;
15615 GNULIB_PIPE=0;
15616 GNULIB_PIPE2=0;
15617 GNULIB_PREAD=0;
15618 GNULIB_PWRITE=0;
15619 GNULIB_READ=0;
15620 GNULIB_READLINK=0;
15621 GNULIB_READLINKAT=0;
15622 GNULIB_RMDIR=0;
15623 GNULIB_SETHOSTNAME=0;
15624 GNULIB_SLEEP=0;
15625 GNULIB_SYMLINK=0;
15626 GNULIB_SYMLINKAT=0;
15627 GNULIB_TTYNAME_R=0;
15628 GNULIB_UNISTD_H_NONBLOCKING=0;
15629 GNULIB_UNISTD_H_SIGPIPE=0;
15630 GNULIB_UNLINK=0;
15631 GNULIB_UNLINKAT=0;
15632 GNULIB_USLEEP=0;
15633 GNULIB_WRITE=0;
15634 HAVE_CHOWN=1;
15635 HAVE_DUP2=1;
15636 HAVE_DUP3=1;
15637 HAVE_EUIDACCESS=1;
15638 HAVE_FACCESSAT=1;
15639 HAVE_FCHDIR=1;
15640 HAVE_FCHOWNAT=1;
15641 HAVE_FDATASYNC=1;
15642 HAVE_FSYNC=1;
15643 HAVE_FTRUNCATE=1;
15644 HAVE_GETDTABLESIZE=1;
15645 HAVE_GETGROUPS=1;
15646 HAVE_GETHOSTNAME=1;
15647 HAVE_GETLOGIN=1;
15648 HAVE_GETPAGESIZE=1;
15649 HAVE_GROUP_MEMBER=1;
15650 HAVE_LCHOWN=1;
15651 HAVE_LINK=1;
15652 HAVE_LINKAT=1;
15653 HAVE_PIPE=1;
15654 HAVE_PIPE2=1;
15655 HAVE_PREAD=1;
15656 HAVE_PWRITE=1;
15657 HAVE_READLINK=1;
15658 HAVE_READLINKAT=1;
15659 HAVE_SETHOSTNAME=1;
15660 HAVE_SLEEP=1;
15661 HAVE_SYMLINK=1;
15662 HAVE_SYMLINKAT=1;
15663 HAVE_UNLINKAT=1;
15664 HAVE_USLEEP=1;
15665 HAVE_DECL_ENVIRON=1;
15666 HAVE_DECL_FCHDIR=1;
15667 HAVE_DECL_FDATASYNC=1;
15668 HAVE_DECL_GETDOMAINNAME=1;
15669 HAVE_DECL_GETLOGIN_R=1;
15670 HAVE_DECL_GETPAGESIZE=1;
15671 HAVE_DECL_GETUSERSHELL=1;
15672 HAVE_DECL_SETHOSTNAME=1;
15673 HAVE_DECL_TTYNAME_R=1;
15674 HAVE_OS_H=0;
15675 HAVE_SYS_PARAM_H=0;
15676 REPLACE_CHOWN=0;
15677 REPLACE_CLOSE=0;
15678 REPLACE_DUP=0;
15679 REPLACE_DUP2=0;
15680 REPLACE_FCHOWNAT=0;
15681 REPLACE_FTRUNCATE=0;
15682 REPLACE_GETCWD=0;
15683 REPLACE_GETDOMAINNAME=0;
15684 REPLACE_GETLOGIN_R=0;
15685 REPLACE_GETGROUPS=0;
15686 REPLACE_GETPAGESIZE=0;
15687 REPLACE_ISATTY=0;
15688 REPLACE_LCHOWN=0;
15689 REPLACE_LINK=0;
15690 REPLACE_LINKAT=0;
15691 REPLACE_LSEEK=0;
15692 REPLACE_PREAD=0;
15693 REPLACE_PWRITE=0;
15694 REPLACE_READ=0;
15695 REPLACE_READLINK=0;
15696 REPLACE_RMDIR=0;
15697 REPLACE_SLEEP=0;
15698 REPLACE_SYMLINK=0;
15699 REPLACE_TTYNAME_R=0;
15700 REPLACE_UNLINK=0;
15701 REPLACE_UNLINKAT=0;
15702 REPLACE_USLEEP=0;
15703 REPLACE_WRITE=0;
15704 UNISTD_H_HAVE_WINSOCK2_H=0;
15705 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
15708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_dm_mode in struct stat" >&5
15709 $as_echo_n "checking for st_dm_mode in struct stat... " >&6; }
15710 if test "${ac_cv_struct_st_dm_mode+set}" = set; then :
15711 $as_echo_n "(cached) " >&6
15712 else
15713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15714 /* end confdefs.h. */
15716 #include <sys/types.h>
15717 #include <sys/stat.h>
15719 main ()
15721 struct stat s; s.st_dm_mode;
15723 return 0;
15725 _ACEOF
15726 if ac_fn_c_try_compile "$LINENO"; then :
15727 ac_cv_struct_st_dm_mode=yes
15728 else
15729 ac_cv_struct_st_dm_mode=no
15731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_st_dm_mode" >&5
15734 $as_echo "$ac_cv_struct_st_dm_mode" >&6; }
15736 if test $ac_cv_struct_st_dm_mode = yes; then
15738 $as_echo "#define HAVE_ST_DM_MODE 1" >>confdefs.h
15743 ac_fn_c_check_decl "$LINENO" "strmode" "ac_cv_have_decl_strmode" "$ac_includes_default"
15744 if test "x$ac_cv_have_decl_strmode" = x""yes; then :
15745 ac_have_decl=1
15746 else
15747 ac_have_decl=0
15750 cat >>confdefs.h <<_ACEOF
15751 #define HAVE_DECL_STRMODE $ac_have_decl
15752 _ACEOF
15755 GNULIB__EXIT=0;
15756 GNULIB_ATOLL=0;
15757 GNULIB_CALLOC_POSIX=0;
15758 GNULIB_CANONICALIZE_FILE_NAME=0;
15759 GNULIB_GETLOADAVG=0;
15760 GNULIB_GETSUBOPT=0;
15761 GNULIB_GRANTPT=0;
15762 GNULIB_MALLOC_POSIX=0;
15763 GNULIB_MBTOWC=0;
15764 GNULIB_MKDTEMP=0;
15765 GNULIB_MKOSTEMP=0;
15766 GNULIB_MKOSTEMPS=0;
15767 GNULIB_MKSTEMP=0;
15768 GNULIB_MKSTEMPS=0;
15769 GNULIB_POSIX_OPENPT=0;
15770 GNULIB_PTSNAME=0;
15771 GNULIB_PTSNAME_R=0;
15772 GNULIB_PUTENV=0;
15773 GNULIB_RANDOM=0;
15774 GNULIB_RANDOM_R=0;
15775 GNULIB_REALLOC_POSIX=0;
15776 GNULIB_REALPATH=0;
15777 GNULIB_RPMATCH=0;
15778 GNULIB_SETENV=0;
15779 GNULIB_STRTOD=0;
15780 GNULIB_STRTOLL=0;
15781 GNULIB_STRTOULL=0;
15782 GNULIB_SYSTEM_POSIX=0;
15783 GNULIB_UNLOCKPT=0;
15784 GNULIB_UNSETENV=0;
15785 GNULIB_WCTOMB=0;
15786 HAVE__EXIT=1;
15787 HAVE_ATOLL=1;
15788 HAVE_CANONICALIZE_FILE_NAME=1;
15789 HAVE_DECL_GETLOADAVG=1;
15790 HAVE_GETSUBOPT=1;
15791 HAVE_GRANTPT=1;
15792 HAVE_MKDTEMP=1;
15793 HAVE_MKOSTEMP=1;
15794 HAVE_MKOSTEMPS=1;
15795 HAVE_MKSTEMP=1;
15796 HAVE_MKSTEMPS=1;
15797 HAVE_POSIX_OPENPT=1;
15798 HAVE_PTSNAME=1;
15799 HAVE_PTSNAME_R=1;
15800 HAVE_RANDOM=1;
15801 HAVE_RANDOM_H=1;
15802 HAVE_RANDOM_R=1;
15803 HAVE_REALPATH=1;
15804 HAVE_RPMATCH=1;
15805 HAVE_SETENV=1;
15806 HAVE_DECL_SETENV=1;
15807 HAVE_STRTOD=1;
15808 HAVE_STRTOLL=1;
15809 HAVE_STRTOULL=1;
15810 HAVE_STRUCT_RANDOM_DATA=1;
15811 HAVE_SYS_LOADAVG_H=0;
15812 HAVE_UNLOCKPT=1;
15813 HAVE_DECL_UNSETENV=1;
15814 REPLACE_CALLOC=0;
15815 REPLACE_CANONICALIZE_FILE_NAME=0;
15816 REPLACE_MALLOC=0;
15817 REPLACE_MBTOWC=0;
15818 REPLACE_MKSTEMP=0;
15819 REPLACE_PTSNAME_R=0;
15820 REPLACE_PUTENV=0;
15821 REPLACE_RANDOM_R=0;
15822 REPLACE_REALLOC=0;
15823 REPLACE_REALPATH=0;
15824 REPLACE_SETENV=0;
15825 REPLACE_STRTOD=0;
15826 REPLACE_UNSETENV=0;
15827 REPLACE_WCTOMB=0;
15831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
15832 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
15833 if test "${gl_cv_have_include_next+set}" = set; then :
15834 $as_echo_n "(cached) " >&6
15835 else
15836 rm -rf conftestd1a conftestd1b conftestd2
15837 mkdir conftestd1a conftestd1b conftestd2
15838 cat <<EOF > conftestd1a/conftest.h
15839 #define DEFINED_IN_CONFTESTD1
15840 #include_next <conftest.h>
15841 #ifdef DEFINED_IN_CONFTESTD2
15842 int foo;
15843 #else
15844 #error "include_next doesn't work"
15845 #endif
15847 cat <<EOF > conftestd1b/conftest.h
15848 #define DEFINED_IN_CONFTESTD1
15849 #include <stdio.h>
15850 #include_next <conftest.h>
15851 #ifdef DEFINED_IN_CONFTESTD2
15852 int foo;
15853 #else
15854 #error "include_next doesn't work"
15855 #endif
15857 cat <<EOF > conftestd2/conftest.h
15858 #ifndef DEFINED_IN_CONFTESTD1
15859 #error "include_next test doesn't work"
15860 #endif
15861 #define DEFINED_IN_CONFTESTD2
15863 gl_save_CPPFLAGS="$CPPFLAGS"
15864 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
15865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15866 /* end confdefs.h. */
15867 #include <conftest.h>
15868 _ACEOF
15869 if ac_fn_c_try_compile "$LINENO"; then :
15870 gl_cv_have_include_next=yes
15871 else
15872 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
15873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15874 /* end confdefs.h. */
15875 #include <conftest.h>
15876 _ACEOF
15877 if ac_fn_c_try_compile "$LINENO"; then :
15878 gl_cv_have_include_next=buggy
15879 else
15880 gl_cv_have_include_next=no
15882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15886 CPPFLAGS="$gl_save_CPPFLAGS"
15887 rm -rf conftestd1a conftestd1b conftestd2
15890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
15891 $as_echo "$gl_cv_have_include_next" >&6; }
15892 PRAGMA_SYSTEM_HEADER=
15893 if test $gl_cv_have_include_next = yes; then
15894 INCLUDE_NEXT=include_next
15895 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
15896 if test -n "$GCC"; then
15897 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
15899 else
15900 if test $gl_cv_have_include_next = buggy; then
15901 INCLUDE_NEXT=include
15902 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
15903 else
15904 INCLUDE_NEXT=include
15905 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
15911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
15912 $as_echo_n "checking whether system header files limit the line length... " >&6; }
15913 if test "${gl_cv_pragma_columns+set}" = set; then :
15914 $as_echo_n "(cached) " >&6
15915 else
15916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15917 /* end confdefs.h. */
15919 #ifdef __TANDEM
15920 choke me
15921 #endif
15923 _ACEOF
15924 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15925 $EGREP "choke me" >/dev/null 2>&1; then :
15926 gl_cv_pragma_columns=yes
15927 else
15928 gl_cv_pragma_columns=no
15930 rm -f conftest*
15934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
15935 $as_echo "$gl_cv_pragma_columns" >&6; }
15936 if test $gl_cv_pragma_columns = yes; then
15937 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
15938 else
15939 PRAGMA_COLUMNS=
15958 if test $gl_cv_have_include_next = yes; then
15959 gl_cv_next_getopt_h='<'getopt.h'>'
15960 else
15961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
15962 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
15963 if test "${gl_cv_next_getopt_h+set}" = set; then :
15964 $as_echo_n "(cached) " >&6
15965 else
15967 if test $ac_cv_header_getopt_h = yes; then
15970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15971 /* end confdefs.h. */
15972 #include <getopt.h>
15974 _ACEOF
15975 case "$host_os" in
15976 aix*) gl_absname_cpp="$ac_cpp -C" ;;
15977 *) gl_absname_cpp="$ac_cpp" ;;
15978 esac
15980 case "$host_os" in
15981 mingw*)
15982 gl_dirsep_regex='[/\\]'
15985 gl_dirsep_regex='\/'
15987 esac
15988 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
15990 gl_header_literal_regex=`echo 'getopt.h' \
15991 | sed -e "$gl_make_literal_regex_sed"`
15992 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
15993 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
15994 s|^/[^/]|//&|
15998 gl_cv_next_getopt_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15999 sed -n "$gl_absolute_header_sed"`'"'
16000 else
16001 gl_cv_next_getopt_h='<'getopt.h'>'
16006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
16007 $as_echo "$gl_cv_next_getopt_h" >&6; }
16009 NEXT_GETOPT_H=$gl_cv_next_getopt_h
16011 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16012 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16013 gl_next_as_first_directive='<'getopt.h'>'
16014 else
16015 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16016 gl_next_as_first_directive=$gl_cv_next_getopt_h
16018 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H=$gl_next_as_first_directive
16023 if test $ac_cv_header_getopt_h = yes; then
16024 HAVE_GETOPT_H=1
16025 else
16026 HAVE_GETOPT_H=0
16030 gl_replace_getopt=
16032 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
16033 for ac_header in getopt.h
16034 do :
16035 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
16036 if test "x$ac_cv_header_getopt_h" = x""yes; then :
16037 cat >>confdefs.h <<_ACEOF
16038 #define HAVE_GETOPT_H 1
16039 _ACEOF
16041 else
16042 gl_replace_getopt=yes
16045 done
16049 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
16050 for ac_func in getopt_long_only
16051 do :
16052 ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
16053 if test "x$ac_cv_func_getopt_long_only" = x""yes; then :
16054 cat >>confdefs.h <<_ACEOF
16055 #define HAVE_GETOPT_LONG_ONLY 1
16056 _ACEOF
16058 else
16059 gl_replace_getopt=yes
16061 done
16065 if test -z "$gl_replace_getopt"; then
16066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
16067 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
16068 if test "${gl_cv_func_getopt_posix+set}" = set; then :
16069 $as_echo_n "(cached) " >&6
16070 else
16072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16073 /* end confdefs.h. */
16074 #include <unistd.h>
16076 main ()
16078 int *p = &optreset; return optreset;
16080 return 0;
16082 _ACEOF
16083 if ac_fn_c_try_link "$LINENO"; then :
16084 gl_optind_min=1
16085 else
16086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16087 /* end confdefs.h. */
16088 #include <getopt.h>
16090 main ()
16092 return !getopt_clip;
16094 return 0;
16096 _ACEOF
16097 if ac_fn_c_try_compile "$LINENO"; then :
16098 gl_optind_min=1
16099 else
16100 gl_optind_min=0
16102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16104 rm -f core conftest.err conftest.$ac_objext \
16105 conftest$ac_exeext conftest.$ac_ext
16107 gl_save_CPPFLAGS=$CPPFLAGS
16108 CPPFLAGS="$CPPFLAGS -DOPTIND_MIN=$gl_optind_min"
16109 if test "$cross_compiling" = yes; then :
16110 case "$host_os" in
16111 mingw*) gl_cv_func_getopt_posix="guessing no";;
16112 darwin* | aix*) gl_cv_func_getopt_posix="guessing no";;
16113 *) gl_cv_func_getopt_posix="guessing yes";;
16114 esac
16116 else
16117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16118 /* end confdefs.h. */
16120 #include <unistd.h>
16121 #include <stdlib.h>
16122 #include <string.h>
16125 main ()
16128 static char program[] = "program";
16129 static char a[] = "-a";
16130 static char foo[] = "foo";
16131 static char bar[] = "bar";
16132 char *argv[] = { program, a, foo, bar, NULL };
16133 int c;
16135 optind = OPTIND_MIN;
16136 opterr = 0;
16138 c = getopt (4, argv, "ab");
16139 if (!(c == 'a'))
16140 return 1;
16141 c = getopt (4, argv, "ab");
16142 if (!(c == -1))
16143 return 2;
16144 if (!(optind == 2))
16145 return 3;
16147 /* Some internal state exists at this point. */
16149 static char program[] = "program";
16150 static char donald[] = "donald";
16151 static char p[] = "-p";
16152 static char billy[] = "billy";
16153 static char duck[] = "duck";
16154 static char a[] = "-a";
16155 static char bar[] = "bar";
16156 char *argv[] = { program, donald, p, billy, duck, a, bar, NULL };
16157 int c;
16159 optind = OPTIND_MIN;
16160 opterr = 0;
16162 c = getopt (7, argv, "+abp:q:");
16163 if (!(c == -1))
16164 return 4;
16165 if (!(strcmp (argv[0], "program") == 0))
16166 return 5;
16167 if (!(strcmp (argv[1], "donald") == 0))
16168 return 6;
16169 if (!(strcmp (argv[2], "-p") == 0))
16170 return 7;
16171 if (!(strcmp (argv[3], "billy") == 0))
16172 return 8;
16173 if (!(strcmp (argv[4], "duck") == 0))
16174 return 9;
16175 if (!(strcmp (argv[5], "-a") == 0))
16176 return 10;
16177 if (!(strcmp (argv[6], "bar") == 0))
16178 return 11;
16179 if (!(optind == 1))
16180 return 12;
16182 /* Detect MacOS 10.5, AIX 7.1 bug. */
16184 static char program[] = "program";
16185 static char ab[] = "-ab";
16186 char *argv[3] = { program, ab, NULL };
16187 optind = OPTIND_MIN;
16188 opterr = 0;
16189 if (getopt (2, argv, "ab:") != 'a')
16190 return 13;
16191 if (getopt (2, argv, "ab:") != '?')
16192 return 14;
16193 if (optopt != 'b')
16194 return 15;
16195 if (optind != 2)
16196 return 16;
16199 return 0;
16202 _ACEOF
16203 if ac_fn_c_try_run "$LINENO"; then :
16204 gl_cv_func_getopt_posix=yes
16205 else
16206 gl_cv_func_getopt_posix=no
16208 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16209 conftest.$ac_objext conftest.beam conftest.$ac_ext
16212 CPPFLAGS=$gl_save_CPPFLAGS
16215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
16216 $as_echo "$gl_cv_func_getopt_posix" >&6; }
16217 case "$gl_cv_func_getopt_posix" in
16218 *no) gl_replace_getopt=yes ;;
16219 esac
16222 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
16223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
16224 $as_echo_n "checking for working GNU getopt function... " >&6; }
16225 if test "${gl_cv_func_getopt_gnu+set}" = set; then :
16226 $as_echo_n "(cached) " >&6
16227 else
16228 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
16229 # optstring is necessary for programs like m4 that have POSIX-mandated
16230 # semantics for supporting options interspersed with files.
16231 # Also, since getopt_long is a GNU extension, we require optind=0.
16232 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
16233 # so take care to revert to the correct (non-)export state.
16234 gl_awk_probe='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
16235 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
16236 xx) gl_had_POSIXLY_CORRECT=exported ;;
16237 x) gl_had_POSIXLY_CORRECT=yes ;;
16238 *) gl_had_POSIXLY_CORRECT= ;;
16239 esac
16240 POSIXLY_CORRECT=1
16241 export POSIXLY_CORRECT
16242 if test "$cross_compiling" = yes; then :
16243 case $host_os:$ac_cv_have_decl_optreset in
16244 *-gnu*:* | mingw*:*) gl_cv_func_getopt_gnu=no;;
16245 *:yes) gl_cv_func_getopt_gnu=no;;
16246 *) gl_cv_func_getopt_gnu=yes;;
16247 esac
16249 else
16250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16251 /* end confdefs.h. */
16252 #include <getopt.h>
16253 #include <stddef.h>
16254 #include <string.h>
16256 #include <stdlib.h>
16257 #if defined __MACH__ && defined __APPLE__
16258 /* Avoid a crash on MacOS X. */
16259 #include <mach/mach.h>
16260 #include <mach/mach_error.h>
16261 #include <mach/thread_status.h>
16262 #include <mach/exception.h>
16263 #include <mach/task.h>
16264 #include <pthread.h>
16265 /* The exception port on which our thread listens. */
16266 static mach_port_t our_exception_port;
16267 /* The main function of the thread listening for exceptions of type
16268 EXC_BAD_ACCESS. */
16269 static void *
16270 mach_exception_thread (void *arg)
16272 /* Buffer for a message to be received. */
16273 struct {
16274 mach_msg_header_t head;
16275 mach_msg_body_t msgh_body;
16276 char data[1024];
16277 } msg;
16278 mach_msg_return_t retval;
16279 /* Wait for a message on the exception port. */
16280 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
16281 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
16282 if (retval != MACH_MSG_SUCCESS)
16283 abort ();
16284 exit (1);
16286 static void
16287 nocrash_init (void)
16289 mach_port_t self = mach_task_self ();
16290 /* Allocate a port on which the thread shall listen for exceptions. */
16291 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
16292 == KERN_SUCCESS) {
16293 /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
16294 if (mach_port_insert_right (self, our_exception_port, our_exception_port,
16295 MACH_MSG_TYPE_MAKE_SEND)
16296 == KERN_SUCCESS) {
16297 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
16298 for us. */
16299 exception_mask_t mask = EXC_MASK_BAD_ACCESS;
16300 /* Create the thread listening on the exception port. */
16301 pthread_attr_t attr;
16302 pthread_t thread;
16303 if (pthread_attr_init (&attr) == 0
16304 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
16305 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
16306 pthread_attr_destroy (&attr);
16307 /* Replace the exception port info for these exceptions with our own.
16308 Note that we replace the exception port for the entire task, not only
16309 for a particular thread. This has the effect that when our exception
16310 port gets the message, the thread specific exception port has already
16311 been asked, and we don't need to bother about it.
16312 See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
16313 task_set_exception_ports (self, mask, our_exception_port,
16314 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
16319 #elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
16320 /* Avoid a crash on native Windows. */
16321 #define WIN32_LEAN_AND_MEAN
16322 #include <windows.h>
16323 #include <winerror.h>
16324 static LONG WINAPI
16325 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
16327 switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
16329 case EXCEPTION_ACCESS_VIOLATION:
16330 case EXCEPTION_IN_PAGE_ERROR:
16331 case EXCEPTION_STACK_OVERFLOW:
16332 case EXCEPTION_GUARD_PAGE:
16333 case EXCEPTION_PRIV_INSTRUCTION:
16334 case EXCEPTION_ILLEGAL_INSTRUCTION:
16335 case EXCEPTION_DATATYPE_MISALIGNMENT:
16336 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
16337 case EXCEPTION_NONCONTINUABLE_EXCEPTION:
16338 exit (1);
16340 return EXCEPTION_CONTINUE_SEARCH;
16342 static void
16343 nocrash_init (void)
16345 SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
16347 #else
16348 /* Avoid a crash on POSIX systems. */
16349 #include <signal.h>
16350 /* A POSIX signal handler. */
16351 static void
16352 exception_handler (int sig)
16354 exit (1);
16356 static void
16357 nocrash_init (void)
16359 #ifdef SIGSEGV
16360 signal (SIGSEGV, exception_handler);
16361 #endif
16362 #ifdef SIGBUS
16363 signal (SIGBUS, exception_handler);
16364 #endif
16366 #endif
16370 main ()
16373 int result = 0;
16375 nocrash_init();
16377 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
16378 and fails on MacOS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
16379 OSF/1 5.1, Solaris 10. */
16381 static char conftest[] = "conftest";
16382 static char plus[] = "-+";
16383 char *argv[3] = { conftest, plus, NULL };
16384 opterr = 0;
16385 if (getopt (2, argv, "+a") != '?')
16386 result |= 1;
16388 /* This code succeeds on glibc 2.8, mingw,
16389 and fails on MacOS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
16390 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
16392 static char program[] = "program";
16393 static char p[] = "-p";
16394 static char foo[] = "foo";
16395 static char bar[] = "bar";
16396 char *argv[] = { program, p, foo, bar, NULL };
16398 optind = 1;
16399 if (getopt (4, argv, "p::") != 'p')
16400 result |= 2;
16401 else if (optarg != NULL)
16402 result |= 4;
16403 else if (getopt (4, argv, "p::") != -1)
16404 result |= 6;
16405 else if (optind != 2)
16406 result |= 8;
16408 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
16410 static char program[] = "program";
16411 static char foo[] = "foo";
16412 static char p[] = "-p";
16413 char *argv[] = { program, foo, p, NULL };
16414 optind = 0;
16415 if (getopt (3, argv, "-p") != 1)
16416 result |= 16;
16417 else if (getopt (3, argv, "-p") != 'p')
16418 result |= 32;
16420 /* This code fails on glibc 2.11. */
16422 static char program[] = "program";
16423 static char b[] = "-b";
16424 static char a[] = "-a";
16425 char *argv[] = { program, b, a, NULL };
16426 optind = opterr = 0;
16427 if (getopt (3, argv, "+:a:b") != 'b')
16428 result |= 64;
16429 else if (getopt (3, argv, "+:a:b") != ':')
16430 result |= 64;
16432 /* This code dumps core on glibc 2.14. */
16434 static char program[] = "program";
16435 static char w[] = "-W";
16436 static char dummy[] = "dummy";
16437 char *argv[] = { program, w, dummy, NULL };
16438 optind = opterr = 1;
16439 if (getopt (3, argv, "W;") != 'W')
16440 result |= 128;
16442 return result;
16445 return 0;
16447 _ACEOF
16448 if ac_fn_c_try_run "$LINENO"; then :
16449 gl_cv_func_getopt_gnu=yes
16450 else
16451 gl_cv_func_getopt_gnu=no
16453 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16454 conftest.$ac_objext conftest.beam conftest.$ac_ext
16457 case $gl_had_POSIXLY_CORRECT in
16458 exported) ;;
16459 yes) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;}; POSIXLY_CORRECT=1 ;;
16460 *) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;} ;;
16461 esac
16464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
16465 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
16466 if test "$gl_cv_func_getopt_gnu" = "no"; then
16467 gl_replace_getopt=yes
16475 REPLACE_GETOPT=0
16478 if test -n "$gl_replace_getopt"; then :
16480 REPLACE_GETOPT=1
16485 if test $REPLACE_GETOPT = 1; then
16487 GETOPT_H=getopt.h
16489 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
16495 ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
16496 if test "x$ac_cv_have_decl_getenv" = x""yes; then :
16497 ac_have_decl=1
16498 else
16499 ac_have_decl=0
16502 cat >>confdefs.h <<_ACEOF
16503 #define HAVE_DECL_GETENV $ac_have_decl
16504 _ACEOF
16507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
16508 $as_echo_n "checking for unsigned long long int... " >&6; }
16509 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
16510 $as_echo_n "(cached) " >&6
16511 else
16512 ac_cv_type_unsigned_long_long_int=yes
16513 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
16514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16515 /* end confdefs.h. */
16517 /* For now, do not test the preprocessor; as of 2007 there are too many
16518 implementations with broken preprocessors. Perhaps this can
16519 be revisited in 2012. In the meantime, code should not expect
16520 #if to work with literals wider than 32 bits. */
16521 /* Test literals. */
16522 long long int ll = 9223372036854775807ll;
16523 long long int nll = -9223372036854775807LL;
16524 unsigned long long int ull = 18446744073709551615ULL;
16525 /* Test constant expressions. */
16526 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
16527 ? 1 : -1)];
16528 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
16529 ? 1 : -1)];
16530 int i = 63;
16532 main ()
16534 /* Test availability of runtime routines for shift and division. */
16535 long long int llmax = 9223372036854775807ll;
16536 unsigned long long int ullmax = 18446744073709551615ull;
16537 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
16538 | (llmax / ll) | (llmax % ll)
16539 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
16540 | (ullmax / ull) | (ullmax % ull));
16542 return 0;
16545 _ACEOF
16546 if ac_fn_c_try_link "$LINENO"; then :
16548 else
16549 ac_cv_type_unsigned_long_long_int=no
16551 rm -f core conftest.err conftest.$ac_objext \
16552 conftest$ac_exeext conftest.$ac_ext
16555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
16556 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
16557 if test $ac_cv_type_unsigned_long_long_int = yes; then
16559 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
16565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
16566 $as_echo_n "checking for long long int... " >&6; }
16567 if test "${ac_cv_type_long_long_int+set}" = set; then :
16568 $as_echo_n "(cached) " >&6
16569 else
16570 ac_cv_type_long_long_int=yes
16571 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
16572 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
16573 if test $ac_cv_type_long_long_int = yes; then
16574 if test "$cross_compiling" = yes; then :
16576 else
16577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16578 /* end confdefs.h. */
16579 #include <limits.h>
16580 #ifndef LLONG_MAX
16581 # define HALF \
16582 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
16583 # define LLONG_MAX (HALF - 1 + HALF)
16584 #endif
16586 main ()
16588 long long int n = 1;
16589 int i;
16590 for (i = 0; ; i++)
16592 long long int m = n << i;
16593 if (m >> i != n)
16594 return 1;
16595 if (LLONG_MAX / 2 < m)
16596 break;
16598 return 0;
16600 return 0;
16602 _ACEOF
16603 if ac_fn_c_try_run "$LINENO"; then :
16605 else
16606 ac_cv_type_long_long_int=no
16608 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16609 conftest.$ac_objext conftest.beam conftest.$ac_ext
16615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
16616 $as_echo "$ac_cv_type_long_long_int" >&6; }
16617 if test $ac_cv_type_long_long_int = yes; then
16619 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
16628 gl_cv_c_multiarch=no
16629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16630 /* end confdefs.h. */
16631 #ifndef __APPLE_CC__
16632 not a universal capable compiler
16633 #endif
16634 typedef int dummy;
16636 _ACEOF
16637 if ac_fn_c_try_compile "$LINENO"; then :
16639 arch=
16640 prev=
16641 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
16642 if test -n "$prev"; then
16643 case $word in
16644 i?86 | x86_64 | ppc | ppc64)
16645 if test -z "$arch" || test "$arch" = "$word"; then
16646 arch="$word"
16647 else
16648 gl_cv_c_multiarch=yes
16651 esac
16652 prev=
16653 else
16654 if test "x$word" = "x-arch"; then
16655 prev=arch
16658 done
16661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16662 if test $gl_cv_c_multiarch = yes; then
16663 APPLE_UNIVERSAL_BUILD=1
16664 else
16665 APPLE_UNIVERSAL_BUILD=0
16672 if test $ac_cv_type_long_long_int = yes; then
16673 HAVE_LONG_LONG_INT=1
16674 else
16675 HAVE_LONG_LONG_INT=0
16679 if test $ac_cv_type_unsigned_long_long_int = yes; then
16680 HAVE_UNSIGNED_LONG_LONG_INT=1
16681 else
16682 HAVE_UNSIGNED_LONG_LONG_INT=0
16687 if test $ac_cv_header_wchar_h = yes; then
16688 HAVE_WCHAR_H=1
16689 else
16690 HAVE_WCHAR_H=0
16694 if test $ac_cv_header_inttypes_h = yes; then
16695 HAVE_INTTYPES_H=1
16696 else
16697 HAVE_INTTYPES_H=0
16701 if test $ac_cv_header_sys_types_h = yes; then
16702 HAVE_SYS_TYPES_H=1
16703 else
16704 HAVE_SYS_TYPES_H=0
16717 if test $gl_cv_have_include_next = yes; then
16718 gl_cv_next_stdint_h='<'stdint.h'>'
16719 else
16720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
16721 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
16722 if test "${gl_cv_next_stdint_h+set}" = set; then :
16723 $as_echo_n "(cached) " >&6
16724 else
16726 if test $ac_cv_header_stdint_h = yes; then
16729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16730 /* end confdefs.h. */
16731 #include <stdint.h>
16733 _ACEOF
16734 case "$host_os" in
16735 aix*) gl_absname_cpp="$ac_cpp -C" ;;
16736 *) gl_absname_cpp="$ac_cpp" ;;
16737 esac
16739 case "$host_os" in
16740 mingw*)
16741 gl_dirsep_regex='[/\\]'
16744 gl_dirsep_regex='\/'
16746 esac
16747 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
16749 gl_header_literal_regex=`echo 'stdint.h' \
16750 | sed -e "$gl_make_literal_regex_sed"`
16751 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
16752 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
16753 s|^/[^/]|//&|
16757 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16758 sed -n "$gl_absolute_header_sed"`'"'
16759 else
16760 gl_cv_next_stdint_h='<'stdint.h'>'
16765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
16766 $as_echo "$gl_cv_next_stdint_h" >&6; }
16768 NEXT_STDINT_H=$gl_cv_next_stdint_h
16770 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16771 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16772 gl_next_as_first_directive='<'stdint.h'>'
16773 else
16774 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16775 gl_next_as_first_directive=$gl_cv_next_stdint_h
16777 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
16782 if test $ac_cv_header_stdint_h = yes; then
16783 HAVE_STDINT_H=1
16784 else
16785 HAVE_STDINT_H=0
16789 if test $ac_cv_header_stdint_h = yes; then
16790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
16791 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
16792 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
16793 $as_echo_n "(cached) " >&6
16794 else
16795 gl_cv_header_working_stdint_h=no
16796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16797 /* end confdefs.h. */
16800 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
16801 #include <stdint.h>
16802 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
16803 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
16804 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
16805 #endif
16808 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16809 included before <wchar.h>. */
16810 #include <stddef.h>
16811 #include <signal.h>
16812 #if HAVE_WCHAR_H
16813 # include <stdio.h>
16814 # include <time.h>
16815 # include <wchar.h>
16816 #endif
16819 #ifdef INT8_MAX
16820 int8_t a1 = INT8_MAX;
16821 int8_t a1min = INT8_MIN;
16822 #endif
16823 #ifdef INT16_MAX
16824 int16_t a2 = INT16_MAX;
16825 int16_t a2min = INT16_MIN;
16826 #endif
16827 #ifdef INT32_MAX
16828 int32_t a3 = INT32_MAX;
16829 int32_t a3min = INT32_MIN;
16830 #endif
16831 #ifdef INT64_MAX
16832 int64_t a4 = INT64_MAX;
16833 int64_t a4min = INT64_MIN;
16834 #endif
16835 #ifdef UINT8_MAX
16836 uint8_t b1 = UINT8_MAX;
16837 #else
16838 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
16839 #endif
16840 #ifdef UINT16_MAX
16841 uint16_t b2 = UINT16_MAX;
16842 #endif
16843 #ifdef UINT32_MAX
16844 uint32_t b3 = UINT32_MAX;
16845 #endif
16846 #ifdef UINT64_MAX
16847 uint64_t b4 = UINT64_MAX;
16848 #endif
16849 int_least8_t c1 = INT8_C (0x7f);
16850 int_least8_t c1max = INT_LEAST8_MAX;
16851 int_least8_t c1min = INT_LEAST8_MIN;
16852 int_least16_t c2 = INT16_C (0x7fff);
16853 int_least16_t c2max = INT_LEAST16_MAX;
16854 int_least16_t c2min = INT_LEAST16_MIN;
16855 int_least32_t c3 = INT32_C (0x7fffffff);
16856 int_least32_t c3max = INT_LEAST32_MAX;
16857 int_least32_t c3min = INT_LEAST32_MIN;
16858 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
16859 int_least64_t c4max = INT_LEAST64_MAX;
16860 int_least64_t c4min = INT_LEAST64_MIN;
16861 uint_least8_t d1 = UINT8_C (0xff);
16862 uint_least8_t d1max = UINT_LEAST8_MAX;
16863 uint_least16_t d2 = UINT16_C (0xffff);
16864 uint_least16_t d2max = UINT_LEAST16_MAX;
16865 uint_least32_t d3 = UINT32_C (0xffffffff);
16866 uint_least32_t d3max = UINT_LEAST32_MAX;
16867 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
16868 uint_least64_t d4max = UINT_LEAST64_MAX;
16869 int_fast8_t e1 = INT_FAST8_MAX;
16870 int_fast8_t e1min = INT_FAST8_MIN;
16871 int_fast16_t e2 = INT_FAST16_MAX;
16872 int_fast16_t e2min = INT_FAST16_MIN;
16873 int_fast32_t e3 = INT_FAST32_MAX;
16874 int_fast32_t e3min = INT_FAST32_MIN;
16875 int_fast64_t e4 = INT_FAST64_MAX;
16876 int_fast64_t e4min = INT_FAST64_MIN;
16877 uint_fast8_t f1 = UINT_FAST8_MAX;
16878 uint_fast16_t f2 = UINT_FAST16_MAX;
16879 uint_fast32_t f3 = UINT_FAST32_MAX;
16880 uint_fast64_t f4 = UINT_FAST64_MAX;
16881 #ifdef INTPTR_MAX
16882 intptr_t g = INTPTR_MAX;
16883 intptr_t gmin = INTPTR_MIN;
16884 #endif
16885 #ifdef UINTPTR_MAX
16886 uintptr_t h = UINTPTR_MAX;
16887 #endif
16888 intmax_t i = INTMAX_MAX;
16889 uintmax_t j = UINTMAX_MAX;
16891 #include <limits.h> /* for CHAR_BIT */
16892 #define TYPE_MINIMUM(t) \
16893 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
16894 #define TYPE_MAXIMUM(t) \
16895 ((t) ((t) 0 < (t) -1 \
16896 ? (t) -1 \
16897 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
16898 struct s {
16899 int check_PTRDIFF:
16900 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
16901 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
16902 ? 1 : -1;
16903 /* Detect bug in FreeBSD 6.0 / ia64. */
16904 int check_SIG_ATOMIC:
16905 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
16906 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
16907 ? 1 : -1;
16908 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
16909 int check_WCHAR:
16910 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
16911 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
16912 ? 1 : -1;
16913 /* Detect bug in mingw. */
16914 int check_WINT:
16915 WINT_MIN == TYPE_MINIMUM (wint_t)
16916 && WINT_MAX == TYPE_MAXIMUM (wint_t)
16917 ? 1 : -1;
16919 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
16920 int check_UINT8_C:
16921 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
16922 int check_UINT16_C:
16923 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
16925 /* Detect bugs in OpenBSD 3.9 stdint.h. */
16926 #ifdef UINT8_MAX
16927 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
16928 #endif
16929 #ifdef UINT16_MAX
16930 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
16931 #endif
16932 #ifdef UINT32_MAX
16933 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
16934 #endif
16935 #ifdef UINT64_MAX
16936 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
16937 #endif
16938 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
16939 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
16940 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
16941 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
16942 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
16943 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
16944 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
16945 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
16946 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
16947 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
16948 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
16952 main ()
16956 return 0;
16958 _ACEOF
16959 if ac_fn_c_try_compile "$LINENO"; then :
16960 if test "$cross_compiling" = yes; then :
16961 gl_cv_header_working_stdint_h=yes
16963 else
16964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16965 /* end confdefs.h. */
16968 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
16969 #include <stdint.h>
16972 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16973 included before <wchar.h>. */
16974 #include <stddef.h>
16975 #include <signal.h>
16976 #if HAVE_WCHAR_H
16977 # include <stdio.h>
16978 # include <time.h>
16979 # include <wchar.h>
16980 #endif
16983 #include <stdio.h>
16984 #include <string.h>
16985 #define MVAL(macro) MVAL1(macro)
16986 #define MVAL1(expression) #expression
16987 static const char *macro_values[] =
16989 #ifdef INT8_MAX
16990 MVAL (INT8_MAX),
16991 #endif
16992 #ifdef INT16_MAX
16993 MVAL (INT16_MAX),
16994 #endif
16995 #ifdef INT32_MAX
16996 MVAL (INT32_MAX),
16997 #endif
16998 #ifdef INT64_MAX
16999 MVAL (INT64_MAX),
17000 #endif
17001 #ifdef UINT8_MAX
17002 MVAL (UINT8_MAX),
17003 #endif
17004 #ifdef UINT16_MAX
17005 MVAL (UINT16_MAX),
17006 #endif
17007 #ifdef UINT32_MAX
17008 MVAL (UINT32_MAX),
17009 #endif
17010 #ifdef UINT64_MAX
17011 MVAL (UINT64_MAX),
17012 #endif
17013 NULL
17017 main ()
17020 const char **mv;
17021 for (mv = macro_values; *mv != NULL; mv++)
17023 const char *value = *mv;
17024 /* Test whether it looks like a cast expression. */
17025 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
17026 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
17027 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
17028 || strncmp (value, "((int)"/*)*/, 6) == 0
17029 || strncmp (value, "((signed short)"/*)*/, 15) == 0
17030 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
17031 return mv - macro_values + 1;
17033 return 0;
17036 return 0;
17038 _ACEOF
17039 if ac_fn_c_try_run "$LINENO"; then :
17040 gl_cv_header_working_stdint_h=yes
17042 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17043 conftest.$ac_objext conftest.beam conftest.$ac_ext
17048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
17052 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
17054 if test "$gl_cv_header_working_stdint_h" = yes; then
17055 STDINT_H=
17056 else
17057 for ac_header in sys/inttypes.h sys/bitypes.h
17058 do :
17059 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17060 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17061 eval as_val=\$$as_ac_Header
17062 if test "x$as_val" = x""yes; then :
17063 cat >>confdefs.h <<_ACEOF
17064 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17065 _ACEOF
17069 done
17071 if test $ac_cv_header_sys_inttypes_h = yes; then
17072 HAVE_SYS_INTTYPES_H=1
17073 else
17074 HAVE_SYS_INTTYPES_H=0
17077 if test $ac_cv_header_sys_bitypes_h = yes; then
17078 HAVE_SYS_BITYPES_H=1
17079 else
17080 HAVE_SYS_BITYPES_H=0
17086 if test $APPLE_UNIVERSAL_BUILD = 0; then
17089 for gltype in ptrdiff_t size_t ; do
17090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
17091 $as_echo_n "checking for bit size of $gltype... " >&6; }
17092 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
17093 $as_echo_n "(cached) " >&6
17094 else
17095 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
17096 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17097 included before <wchar.h>. */
17098 #include <stddef.h>
17099 #include <signal.h>
17100 #if HAVE_WCHAR_H
17101 # include <stdio.h>
17102 # include <time.h>
17103 # include <wchar.h>
17104 #endif
17106 #include <limits.h>"; then :
17108 else
17109 result=unknown
17112 eval gl_cv_bitsizeof_${gltype}=\$result
17115 eval ac_res=\$gl_cv_bitsizeof_${gltype}
17116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17117 $as_echo "$ac_res" >&6; }
17118 eval result=\$gl_cv_bitsizeof_${gltype}
17119 if test $result = unknown; then
17120 result=0
17122 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17123 cat >>confdefs.h <<_ACEOF
17124 #define BITSIZEOF_${GLTYPE} $result
17125 _ACEOF
17127 eval BITSIZEOF_${GLTYPE}=\$result
17128 done
17134 for gltype in sig_atomic_t wchar_t wint_t ; do
17135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
17136 $as_echo_n "checking for bit size of $gltype... " >&6; }
17137 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
17138 $as_echo_n "(cached) " >&6
17139 else
17140 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
17141 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17142 included before <wchar.h>. */
17143 #include <stddef.h>
17144 #include <signal.h>
17145 #if HAVE_WCHAR_H
17146 # include <stdio.h>
17147 # include <time.h>
17148 # include <wchar.h>
17149 #endif
17151 #include <limits.h>"; then :
17153 else
17154 result=unknown
17157 eval gl_cv_bitsizeof_${gltype}=\$result
17160 eval ac_res=\$gl_cv_bitsizeof_${gltype}
17161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17162 $as_echo "$ac_res" >&6; }
17163 eval result=\$gl_cv_bitsizeof_${gltype}
17164 if test $result = unknown; then
17165 result=0
17167 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17168 cat >>confdefs.h <<_ACEOF
17169 #define BITSIZEOF_${GLTYPE} $result
17170 _ACEOF
17172 eval BITSIZEOF_${GLTYPE}=\$result
17173 done
17178 for gltype in sig_atomic_t wchar_t wint_t ; do
17179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
17180 $as_echo_n "checking whether $gltype is signed... " >&6; }
17181 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
17182 $as_echo_n "(cached) " >&6
17183 else
17184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17185 /* end confdefs.h. */
17187 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17188 included before <wchar.h>. */
17189 #include <stddef.h>
17190 #include <signal.h>
17191 #if HAVE_WCHAR_H
17192 # include <stdio.h>
17193 # include <time.h>
17194 # include <wchar.h>
17195 #endif
17197 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
17199 main ()
17203 return 0;
17205 _ACEOF
17206 if ac_fn_c_try_compile "$LINENO"; then :
17207 result=yes
17208 else
17209 result=no
17211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17212 eval gl_cv_type_${gltype}_signed=\$result
17215 eval ac_res=\$gl_cv_type_${gltype}_signed
17216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17217 $as_echo "$ac_res" >&6; }
17218 eval result=\$gl_cv_type_${gltype}_signed
17219 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17220 if test "$result" = yes; then
17221 cat >>confdefs.h <<_ACEOF
17222 #define HAVE_SIGNED_${GLTYPE} 1
17223 _ACEOF
17225 eval HAVE_SIGNED_${GLTYPE}=1
17226 else
17227 eval HAVE_SIGNED_${GLTYPE}=0
17229 done
17232 gl_cv_type_ptrdiff_t_signed=yes
17233 gl_cv_type_size_t_signed=no
17234 if test $APPLE_UNIVERSAL_BUILD = 0; then
17237 for gltype in ptrdiff_t size_t ; do
17238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
17239 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
17240 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
17241 $as_echo_n "(cached) " >&6
17242 else
17243 eval gl_cv_type_${gltype}_suffix=no
17244 eval result=\$gl_cv_type_${gltype}_signed
17245 if test "$result" = yes; then
17246 glsufu=
17247 else
17248 glsufu=u
17250 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
17251 case $glsuf in
17252 '') gltype1='int';;
17253 l) gltype1='long int';;
17254 ll) gltype1='long long int';;
17255 i64) gltype1='__int64';;
17256 u) gltype1='unsigned int';;
17257 ul) gltype1='unsigned long int';;
17258 ull) gltype1='unsigned long long int';;
17259 ui64)gltype1='unsigned __int64';;
17260 esac
17261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17262 /* end confdefs.h. */
17264 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17265 included before <wchar.h>. */
17266 #include <stddef.h>
17267 #include <signal.h>
17268 #if HAVE_WCHAR_H
17269 # include <stdio.h>
17270 # include <time.h>
17271 # include <wchar.h>
17272 #endif
17274 extern $gltype foo;
17275 extern $gltype1 foo;
17277 main ()
17281 return 0;
17283 _ACEOF
17284 if ac_fn_c_try_compile "$LINENO"; then :
17285 eval gl_cv_type_${gltype}_suffix=\$glsuf
17287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17288 eval result=\$gl_cv_type_${gltype}_suffix
17289 test "$result" != no && break
17290 done
17292 eval ac_res=\$gl_cv_type_${gltype}_suffix
17293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17294 $as_echo "$ac_res" >&6; }
17295 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17296 eval result=\$gl_cv_type_${gltype}_suffix
17297 test "$result" = no && result=
17298 eval ${GLTYPE}_SUFFIX=\$result
17299 cat >>confdefs.h <<_ACEOF
17300 #define ${GLTYPE}_SUFFIX $result
17301 _ACEOF
17303 done
17309 for gltype in sig_atomic_t wchar_t wint_t ; do
17310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
17311 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
17312 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
17313 $as_echo_n "(cached) " >&6
17314 else
17315 eval gl_cv_type_${gltype}_suffix=no
17316 eval result=\$gl_cv_type_${gltype}_signed
17317 if test "$result" = yes; then
17318 glsufu=
17319 else
17320 glsufu=u
17322 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
17323 case $glsuf in
17324 '') gltype1='int';;
17325 l) gltype1='long int';;
17326 ll) gltype1='long long int';;
17327 i64) gltype1='__int64';;
17328 u) gltype1='unsigned int';;
17329 ul) gltype1='unsigned long int';;
17330 ull) gltype1='unsigned long long int';;
17331 ui64)gltype1='unsigned __int64';;
17332 esac
17333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17334 /* end confdefs.h. */
17336 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17337 included before <wchar.h>. */
17338 #include <stddef.h>
17339 #include <signal.h>
17340 #if HAVE_WCHAR_H
17341 # include <stdio.h>
17342 # include <time.h>
17343 # include <wchar.h>
17344 #endif
17346 extern $gltype foo;
17347 extern $gltype1 foo;
17349 main ()
17353 return 0;
17355 _ACEOF
17356 if ac_fn_c_try_compile "$LINENO"; then :
17357 eval gl_cv_type_${gltype}_suffix=\$glsuf
17359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17360 eval result=\$gl_cv_type_${gltype}_suffix
17361 test "$result" != no && break
17362 done
17364 eval ac_res=\$gl_cv_type_${gltype}_suffix
17365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17366 $as_echo "$ac_res" >&6; }
17367 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17368 eval result=\$gl_cv_type_${gltype}_suffix
17369 test "$result" = no && result=
17370 eval ${GLTYPE}_SUFFIX=\$result
17371 cat >>confdefs.h <<_ACEOF
17372 #define ${GLTYPE}_SUFFIX $result
17373 _ACEOF
17375 done
17379 if test $BITSIZEOF_WINT_T -lt 32; then
17380 BITSIZEOF_WINT_T=32
17383 STDINT_H=stdint.h
17386 if test -n "$STDINT_H"; then
17387 GL_GENERATE_STDINT_H_TRUE=
17388 GL_GENERATE_STDINT_H_FALSE='#'
17389 else
17390 GL_GENERATE_STDINT_H_TRUE='#'
17391 GL_GENERATE_STDINT_H_FALSE=
17398 GNULIB_IMAXABS=0;
17399 GNULIB_IMAXDIV=0;
17400 GNULIB_STRTOIMAX=0;
17401 GNULIB_STRTOUMAX=0;
17402 HAVE_DECL_IMAXABS=1;
17403 HAVE_DECL_IMAXDIV=1;
17404 HAVE_DECL_STRTOIMAX=1;
17405 HAVE_DECL_STRTOUMAX=1;
17406 REPLACE_STRTOIMAX=0;
17407 INT32_MAX_LT_INTMAX_MAX=1;
17408 INT64_MAX_EQ_LONG_MAX='defined _LP64';
17409 PRI_MACROS_BROKEN=0;
17410 PRIPTR_PREFIX=__PRIPTR_PREFIX;
17411 UINT32_MAX_LT_UINTMAX_MAX=1;
17412 UINT64_MAX_EQ_ULONG_MAX='defined _LP64';
17428 if test $gl_cv_have_include_next = yes; then
17429 gl_cv_next_inttypes_h='<'inttypes.h'>'
17430 else
17431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
17432 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
17433 if test "${gl_cv_next_inttypes_h+set}" = set; then :
17434 $as_echo_n "(cached) " >&6
17435 else
17437 if test $ac_cv_header_inttypes_h = yes; then
17440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17441 /* end confdefs.h. */
17442 #include <inttypes.h>
17444 _ACEOF
17445 case "$host_os" in
17446 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17447 *) gl_absname_cpp="$ac_cpp" ;;
17448 esac
17450 case "$host_os" in
17451 mingw*)
17452 gl_dirsep_regex='[/\\]'
17455 gl_dirsep_regex='\/'
17457 esac
17458 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
17460 gl_header_literal_regex=`echo 'inttypes.h' \
17461 | sed -e "$gl_make_literal_regex_sed"`
17462 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17463 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17464 s|^/[^/]|//&|
17468 gl_cv_next_inttypes_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17469 sed -n "$gl_absolute_header_sed"`'"'
17470 else
17471 gl_cv_next_inttypes_h='<'inttypes.h'>'
17476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
17477 $as_echo "$gl_cv_next_inttypes_h" >&6; }
17479 NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
17481 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17482 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17483 gl_next_as_first_directive='<'inttypes.h'>'
17484 else
17485 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17486 gl_next_as_first_directive=$gl_cv_next_inttypes_h
17488 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive
17500 case "$host_os" in
17501 mingw*)
17502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5
17503 $as_echo_n "checking for 64-bit off_t... " >&6; }
17504 if test "${gl_cv_type_off_t_64+set}" = set; then :
17505 $as_echo_n "(cached) " >&6
17506 else
17507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17508 /* end confdefs.h. */
17509 #include <sys/types.h>
17510 int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1];
17513 main ()
17517 return 0;
17519 _ACEOF
17520 if ac_fn_c_try_compile "$LINENO"; then :
17521 gl_cv_type_off_t_64=yes
17522 else
17523 gl_cv_type_off_t_64=no
17525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5
17529 $as_echo "$gl_cv_type_off_t_64" >&6; }
17530 if test $gl_cv_type_off_t_64 = no; then
17531 WINDOWS_64_BIT_OFF_T=1
17532 else
17533 WINDOWS_64_BIT_OFF_T=0
17535 WINDOWS_64_BIT_ST_SIZE=1
17538 WINDOWS_64_BIT_OFF_T=0
17539 WINDOWS_64_BIT_ST_SIZE=0
17541 esac
17544 GNULIB_FCHMODAT=0;
17545 GNULIB_FSTAT=0;
17546 GNULIB_FSTATAT=0;
17547 GNULIB_FUTIMENS=0;
17548 GNULIB_LCHMOD=0;
17549 GNULIB_LSTAT=0;
17550 GNULIB_MKDIRAT=0;
17551 GNULIB_MKFIFO=0;
17552 GNULIB_MKFIFOAT=0;
17553 GNULIB_MKNOD=0;
17554 GNULIB_MKNODAT=0;
17555 GNULIB_STAT=0;
17556 GNULIB_UTIMENSAT=0;
17557 HAVE_FCHMODAT=1;
17558 HAVE_FSTATAT=1;
17559 HAVE_FUTIMENS=1;
17560 HAVE_LCHMOD=1;
17561 HAVE_LSTAT=1;
17562 HAVE_MKDIRAT=1;
17563 HAVE_MKFIFO=1;
17564 HAVE_MKFIFOAT=1;
17565 HAVE_MKNOD=1;
17566 HAVE_MKNODAT=1;
17567 HAVE_UTIMENSAT=1;
17568 REPLACE_FSTAT=0;
17569 REPLACE_FSTATAT=0;
17570 REPLACE_FUTIMENS=0;
17571 REPLACE_LSTAT=0;
17572 REPLACE_MKDIR=0;
17573 REPLACE_MKFIFO=0;
17574 REPLACE_MKNOD=0;
17575 REPLACE_STAT=0;
17576 REPLACE_UTIMENSAT=0;
17581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
17582 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
17583 if test "${gl_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
17584 $as_echo_n "(cached) " >&6
17585 else
17586 rm -f conftest.sym conftest.file
17587 echo >conftest.file
17588 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
17589 if test "$cross_compiling" = yes; then :
17590 case "$host_os" in
17591 # Guess yes on glibc systems.
17592 *-gnu*) gl_cv_func_lstat_dereferences_slashed_symlink="guessing yes" ;;
17593 # If we don't know, assume the worst.
17594 *) gl_cv_func_lstat_dereferences_slashed_symlink="guessing no" ;;
17595 esac
17597 else
17598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17599 /* end confdefs.h. */
17600 $ac_includes_default
17602 main ()
17604 struct stat sbuf;
17605 /* Linux will dereference the symlink and fail, as required by
17606 POSIX. That is better in the sense that it means we will not
17607 have to compile and use the lstat wrapper. */
17608 return lstat ("conftest.sym/", &sbuf) == 0;
17611 return 0;
17613 _ACEOF
17614 if ac_fn_c_try_run "$LINENO"; then :
17615 gl_cv_func_lstat_dereferences_slashed_symlink=yes
17616 else
17617 gl_cv_func_lstat_dereferences_slashed_symlink=no
17619 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17620 conftest.$ac_objext conftest.beam conftest.$ac_ext
17623 else
17624 # If the 'ln -s' command failed, then we probably don't even
17625 # have an lstat function.
17626 gl_cv_func_lstat_dereferences_slashed_symlink="guessing no"
17628 rm -f conftest.sym conftest.file
17631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
17632 $as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
17633 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
17634 *yes)
17636 cat >>confdefs.h <<_ACEOF
17637 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
17638 _ACEOF
17641 esac
17644 GNULIB_MKTIME=0;
17645 GNULIB_NANOSLEEP=0;
17646 GNULIB_STRPTIME=0;
17647 GNULIB_TIMEGM=0;
17648 GNULIB_TIME_R=0;
17649 HAVE_DECL_LOCALTIME_R=1;
17650 HAVE_NANOSLEEP=1;
17651 HAVE_STRPTIME=1;
17652 HAVE_TIMEGM=1;
17653 REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
17654 REPLACE_MKTIME=GNULIB_PORTCHECK;
17655 REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
17656 REPLACE_TIMEGM=GNULIB_PORTCHECK;
17661 GNULIB_PTHREAD_SIGMASK=0;
17662 GNULIB_RAISE=0;
17663 GNULIB_SIGNAL_H_SIGPIPE=0;
17664 GNULIB_SIGPROCMASK=0;
17665 GNULIB_SIGACTION=0;
17666 HAVE_POSIX_SIGNALBLOCKING=1;
17667 HAVE_PTHREAD_SIGMASK=1;
17668 HAVE_RAISE=1;
17669 HAVE_SIGSET_T=1;
17670 HAVE_SIGINFO_T=1;
17671 HAVE_SIGACTION=1;
17672 HAVE_STRUCT_SIGACTION_SA_SIGACTION=1;
17674 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=1;
17676 HAVE_SIGHANDLER_T=1;
17677 REPLACE_PTHREAD_SIGMASK=0;
17678 REPLACE_RAISE=0;
17685 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
17686 #include <signal.h>
17687 /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */
17688 #include <sys/types.h>
17691 if test "x$ac_cv_type_sigset_t" = x""yes; then :
17693 cat >>confdefs.h <<_ACEOF
17694 #define HAVE_SIGSET_T 1
17695 _ACEOF
17697 gl_cv_type_sigset_t=yes
17698 else
17699 gl_cv_type_sigset_t=no
17702 if test $gl_cv_type_sigset_t != yes; then
17703 HAVE_SIGSET_T=0
17708 if test $ac_cv_header_sys_socket_h = no; then
17709 for ac_header in ws2tcpip.h
17710 do :
17711 ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
17712 if test "x$ac_cv_header_ws2tcpip_h" = x""yes; then :
17713 cat >>confdefs.h <<_ACEOF
17714 #define HAVE_WS2TCPIP_H 1
17715 _ACEOF
17719 done
17723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
17724 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
17725 if test "${ac_cv_header_stdbool_h+set}" = set; then :
17726 $as_echo_n "(cached) " >&6
17727 else
17728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17729 /* end confdefs.h. */
17731 #include <stdbool.h>
17732 #ifndef bool
17733 "error: bool is not defined"
17734 #endif
17735 #ifndef false
17736 "error: false is not defined"
17737 #endif
17738 #if false
17739 "error: false is not 0"
17740 #endif
17741 #ifndef true
17742 "error: true is not defined"
17743 #endif
17744 #if true != 1
17745 "error: true is not 1"
17746 #endif
17747 #ifndef __bool_true_false_are_defined
17748 "error: __bool_true_false_are_defined is not defined"
17749 #endif
17751 struct s { _Bool s: 1; _Bool t; } s;
17753 char a[true == 1 ? 1 : -1];
17754 char b[false == 0 ? 1 : -1];
17755 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
17756 char d[(bool) 0.5 == true ? 1 : -1];
17757 /* See body of main program for 'e'. */
17758 char f[(_Bool) 0.0 == false ? 1 : -1];
17759 char g[true];
17760 char h[sizeof (_Bool)];
17761 char i[sizeof s.t];
17762 enum { j = false, k = true, l = false * true, m = true * 256 };
17763 /* The following fails for
17764 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
17765 _Bool n[m];
17766 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
17767 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
17768 /* Catch a bug in an HP-UX C compiler. See
17769 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
17770 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
17772 _Bool q = true;
17773 _Bool *pq = &q;
17776 main ()
17779 bool e = &s;
17780 *pq |= q;
17781 *pq |= ! q;
17782 /* Refer to every declared value, to avoid compiler optimizations. */
17783 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
17784 + !m + !n + !o + !p + !q + !pq);
17787 return 0;
17789 _ACEOF
17790 if ac_fn_c_try_compile "$LINENO"; then :
17791 ac_cv_header_stdbool_h=yes
17792 else
17793 ac_cv_header_stdbool_h=no
17795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
17798 $as_echo "$ac_cv_header_stdbool_h" >&6; }
17799 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
17800 if test "x$ac_cv_type__Bool" = x""yes; then :
17802 cat >>confdefs.h <<_ACEOF
17803 #define HAVE__BOOL 1
17804 _ACEOF
17811 REPLACE_NULL=0;
17812 HAVE_WCHAR_T=1;
17815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
17816 $as_echo_n "checking for wchar_t... " >&6; }
17817 if test "${gt_cv_c_wchar_t+set}" = set; then :
17818 $as_echo_n "(cached) " >&6
17819 else
17820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17821 /* end confdefs.h. */
17822 #include <stddef.h>
17823 wchar_t foo = (wchar_t)'\0';
17825 main ()
17829 return 0;
17831 _ACEOF
17832 if ac_fn_c_try_compile "$LINENO"; then :
17833 gt_cv_c_wchar_t=yes
17834 else
17835 gt_cv_c_wchar_t=no
17837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
17840 $as_echo "$gt_cv_c_wchar_t" >&6; }
17841 if test $gt_cv_c_wchar_t = yes; then
17843 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
17848 GNULIB_DPRINTF=0;
17849 GNULIB_FCLOSE=0;
17850 GNULIB_FDOPEN=0;
17851 GNULIB_FFLUSH=0;
17852 GNULIB_FGETC=0;
17853 GNULIB_FGETS=0;
17854 GNULIB_FOPEN=0;
17855 GNULIB_FPRINTF=0;
17856 GNULIB_FPRINTF_POSIX=0;
17857 GNULIB_FPURGE=0;
17858 GNULIB_FPUTC=0;
17859 GNULIB_FPUTS=0;
17860 GNULIB_FREAD=0;
17861 GNULIB_FREOPEN=0;
17862 GNULIB_FSCANF=0;
17863 GNULIB_FSEEK=0;
17864 GNULIB_FSEEKO=0;
17865 GNULIB_FTELL=0;
17866 GNULIB_FTELLO=0;
17867 GNULIB_FWRITE=0;
17868 GNULIB_GETC=0;
17869 GNULIB_GETCHAR=0;
17870 GNULIB_GETDELIM=0;
17871 GNULIB_GETLINE=0;
17872 GNULIB_OBSTACK_PRINTF=0;
17873 GNULIB_OBSTACK_PRINTF_POSIX=0;
17874 GNULIB_PCLOSE=0;
17875 GNULIB_PERROR=0;
17876 GNULIB_POPEN=0;
17877 GNULIB_PRINTF=0;
17878 GNULIB_PRINTF_POSIX=0;
17879 GNULIB_PUTC=0;
17880 GNULIB_PUTCHAR=0;
17881 GNULIB_PUTS=0;
17882 GNULIB_REMOVE=0;
17883 GNULIB_RENAME=0;
17884 GNULIB_RENAMEAT=0;
17885 GNULIB_SCANF=0;
17886 GNULIB_SNPRINTF=0;
17887 GNULIB_SPRINTF_POSIX=0;
17888 GNULIB_STDIO_H_NONBLOCKING=0;
17889 GNULIB_STDIO_H_SIGPIPE=0;
17890 GNULIB_TMPFILE=0;
17891 GNULIB_VASPRINTF=0;
17892 GNULIB_VFSCANF=0;
17893 GNULIB_VSCANF=0;
17894 GNULIB_VDPRINTF=0;
17895 GNULIB_VFPRINTF=0;
17896 GNULIB_VFPRINTF_POSIX=0;
17897 GNULIB_VPRINTF=0;
17898 GNULIB_VPRINTF_POSIX=0;
17899 GNULIB_VSNPRINTF=0;
17900 GNULIB_VSPRINTF_POSIX=0;
17901 HAVE_DECL_FPURGE=1;
17902 HAVE_DECL_FSEEKO=1;
17903 HAVE_DECL_FTELLO=1;
17904 HAVE_DECL_GETDELIM=1;
17905 HAVE_DECL_GETLINE=1;
17906 HAVE_DECL_OBSTACK_PRINTF=1;
17907 HAVE_DECL_SNPRINTF=1;
17908 HAVE_DECL_VSNPRINTF=1;
17909 HAVE_DPRINTF=1;
17910 HAVE_FSEEKO=1;
17911 HAVE_FTELLO=1;
17912 HAVE_PCLOSE=1;
17913 HAVE_POPEN=1;
17914 HAVE_RENAMEAT=1;
17915 HAVE_VASPRINTF=1;
17916 HAVE_VDPRINTF=1;
17917 REPLACE_DPRINTF=0;
17918 REPLACE_FCLOSE=0;
17919 REPLACE_FDOPEN=0;
17920 REPLACE_FFLUSH=0;
17921 REPLACE_FOPEN=0;
17922 REPLACE_FPRINTF=0;
17923 REPLACE_FPURGE=0;
17924 REPLACE_FREOPEN=0;
17925 REPLACE_FSEEK=0;
17926 REPLACE_FSEEKO=0;
17927 REPLACE_FTELL=0;
17928 REPLACE_FTELLO=0;
17929 REPLACE_GETDELIM=0;
17930 REPLACE_GETLINE=0;
17931 REPLACE_OBSTACK_PRINTF=0;
17932 REPLACE_PERROR=0;
17933 REPLACE_POPEN=0;
17934 REPLACE_PRINTF=0;
17935 REPLACE_REMOVE=0;
17936 REPLACE_RENAME=0;
17937 REPLACE_RENAMEAT=0;
17938 REPLACE_SNPRINTF=0;
17939 REPLACE_SPRINTF=0;
17940 REPLACE_STDIO_READ_FUNCS=0;
17941 REPLACE_STDIO_WRITE_FUNCS=0;
17942 REPLACE_TMPFILE=0;
17943 REPLACE_VASPRINTF=0;
17944 REPLACE_VDPRINTF=0;
17945 REPLACE_VFPRINTF=0;
17946 REPLACE_VPRINTF=0;
17947 REPLACE_VSNPRINTF=0;
17948 REPLACE_VSPRINTF=0;
17950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
17951 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
17952 if test "${ac_cv_struct_tm+set}" = set; then :
17953 $as_echo_n "(cached) " >&6
17954 else
17955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17956 /* end confdefs.h. */
17957 #include <sys/types.h>
17958 #include <time.h>
17961 main ()
17963 struct tm tm;
17964 int *p = &tm.tm_sec;
17965 return !p;
17967 return 0;
17969 _ACEOF
17970 if ac_fn_c_try_compile "$LINENO"; then :
17971 ac_cv_struct_tm=time.h
17972 else
17973 ac_cv_struct_tm=sys/time.h
17975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
17978 $as_echo "$ac_cv_struct_tm" >&6; }
17979 if test $ac_cv_struct_tm = sys/time.h; then
17981 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
17985 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
17986 #include <$ac_cv_struct_tm>
17989 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
17991 cat >>confdefs.h <<_ACEOF
17992 #define HAVE_STRUCT_TM_TM_ZONE 1
17993 _ACEOF
17998 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
18000 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
18002 else
18003 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
18005 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
18006 ac_have_decl=1
18007 else
18008 ac_have_decl=0
18011 cat >>confdefs.h <<_ACEOF
18012 #define HAVE_DECL_TZNAME $ac_have_decl
18013 _ACEOF
18015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
18016 $as_echo_n "checking for tzname... " >&6; }
18017 if test "${ac_cv_var_tzname+set}" = set; then :
18018 $as_echo_n "(cached) " >&6
18019 else
18020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18021 /* end confdefs.h. */
18022 #include <time.h>
18023 #if !HAVE_DECL_TZNAME
18024 extern char *tzname[];
18025 #endif
18028 main ()
18030 return tzname[0][0];
18032 return 0;
18034 _ACEOF
18035 if ac_fn_c_try_link "$LINENO"; then :
18036 ac_cv_var_tzname=yes
18037 else
18038 ac_cv_var_tzname=no
18040 rm -f core conftest.err conftest.$ac_objext \
18041 conftest$ac_exeext conftest.$ac_ext
18043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
18044 $as_echo "$ac_cv_var_tzname" >&6; }
18045 if test $ac_cv_var_tzname = yes; then
18047 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
18053 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
18055 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then :
18057 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
18064 ac_fn_c_check_decl "$LINENO" "strtoimax" "ac_cv_have_decl_strtoimax" "$ac_includes_default"
18065 if test "x$ac_cv_have_decl_strtoimax" = x""yes; then :
18066 ac_have_decl=1
18067 else
18068 ac_have_decl=0
18071 cat >>confdefs.h <<_ACEOF
18072 #define HAVE_DECL_STRTOIMAX $ac_have_decl
18073 _ACEOF
18077 ac_fn_c_check_decl "$LINENO" "strtoumax" "ac_cv_have_decl_strtoumax" "$ac_includes_default"
18078 if test "x$ac_cv_have_decl_strtoumax" = x""yes; then :
18079 ac_have_decl=1
18080 else
18081 ac_have_decl=0
18084 cat >>confdefs.h <<_ACEOF
18085 #define HAVE_DECL_STRTOUMAX $ac_have_decl
18086 _ACEOF
18090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
18091 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
18092 if test "${ac_cv_header_stat_broken+set}" = set; then :
18093 $as_echo_n "(cached) " >&6
18094 else
18095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18096 /* end confdefs.h. */
18097 #include <sys/types.h>
18098 #include <sys/stat.h>
18100 #if defined S_ISBLK && defined S_IFDIR
18101 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
18102 #endif
18104 #if defined S_ISBLK && defined S_IFCHR
18105 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
18106 #endif
18108 #if defined S_ISLNK && defined S_IFREG
18109 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
18110 #endif
18112 #if defined S_ISSOCK && defined S_IFREG
18113 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
18114 #endif
18116 _ACEOF
18117 if ac_fn_c_try_compile "$LINENO"; then :
18118 ac_cv_header_stat_broken=no
18119 else
18120 ac_cv_header_stat_broken=yes
18122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
18125 $as_echo "$ac_cv_header_stat_broken" >&6; }
18126 if test $ac_cv_header_stat_broken = yes; then
18128 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
18134 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
18135 if test "x$ac_cv_type_mode_t" = x""yes; then :
18137 else
18139 cat >>confdefs.h <<_ACEOF
18140 #define mode_t int
18141 _ACEOF
18153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
18154 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
18155 if test "${ac_cv_c_restrict+set}" = set; then :
18156 $as_echo_n "(cached) " >&6
18157 else
18158 ac_cv_c_restrict=no
18159 # The order here caters to the fact that C++ does not require restrict.
18160 for ac_kw in __restrict __restrict__ _Restrict restrict; do
18161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18162 /* end confdefs.h. */
18163 typedef int * int_ptr;
18164 int foo (int_ptr $ac_kw ip) {
18165 return ip[0];
18168 main ()
18170 int s[1];
18171 int * $ac_kw t = s;
18172 t[0] = 0;
18173 return foo(t)
18175 return 0;
18177 _ACEOF
18178 if ac_fn_c_try_compile "$LINENO"; then :
18179 ac_cv_c_restrict=$ac_kw
18181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18182 test "$ac_cv_c_restrict" != no && break
18183 done
18186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
18187 $as_echo "$ac_cv_c_restrict" >&6; }
18189 case $ac_cv_c_restrict in
18190 restrict) ;;
18191 no) $as_echo "#define restrict /**/" >>confdefs.h
18193 *) cat >>confdefs.h <<_ACEOF
18194 #define restrict $ac_cv_c_restrict
18195 _ACEOF
18197 esac
18201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
18202 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
18203 if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then :
18204 $as_echo_n "(cached) " >&6
18205 else
18206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18207 /* end confdefs.h. */
18208 #include <time.h>
18211 main ()
18213 static struct timespec x; x.tv_sec = x.tv_nsec;
18215 return 0;
18217 _ACEOF
18218 if ac_fn_c_try_compile "$LINENO"; then :
18219 gl_cv_sys_struct_timespec_in_time_h=yes
18220 else
18221 gl_cv_sys_struct_timespec_in_time_h=no
18223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
18226 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
18228 TIME_H_DEFINES_STRUCT_TIMESPEC=0
18229 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
18230 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
18231 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
18232 TIME_H_DEFINES_STRUCT_TIMESPEC=1
18233 else
18234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
18235 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
18236 if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then :
18237 $as_echo_n "(cached) " >&6
18238 else
18239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18240 /* end confdefs.h. */
18241 #include <sys/time.h>
18244 main ()
18246 static struct timespec x; x.tv_sec = x.tv_nsec;
18248 return 0;
18250 _ACEOF
18251 if ac_fn_c_try_compile "$LINENO"; then :
18252 gl_cv_sys_struct_timespec_in_sys_time_h=yes
18253 else
18254 gl_cv_sys_struct_timespec_in_sys_time_h=no
18256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
18259 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
18260 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
18261 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
18262 else
18263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
18264 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
18265 if test "${gl_cv_sys_struct_timespec_in_pthread_h+set}" = set; then :
18266 $as_echo_n "(cached) " >&6
18267 else
18268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18269 /* end confdefs.h. */
18270 #include <pthread.h>
18273 main ()
18275 static struct timespec x; x.tv_sec = x.tv_nsec;
18277 return 0;
18279 _ACEOF
18280 if ac_fn_c_try_compile "$LINENO"; then :
18281 gl_cv_sys_struct_timespec_in_pthread_h=yes
18282 else
18283 gl_cv_sys_struct_timespec_in_pthread_h=no
18285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
18288 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
18289 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
18290 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
18309 if test $gl_cv_have_include_next = yes; then
18310 gl_cv_next_time_h='<'time.h'>'
18311 else
18312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
18313 $as_echo_n "checking absolute name of <time.h>... " >&6; }
18314 if test "${gl_cv_next_time_h+set}" = set; then :
18315 $as_echo_n "(cached) " >&6
18316 else
18318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18319 /* end confdefs.h. */
18320 #include <time.h>
18322 _ACEOF
18323 case "$host_os" in
18324 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18325 *) gl_absname_cpp="$ac_cpp" ;;
18326 esac
18328 case "$host_os" in
18329 mingw*)
18330 gl_dirsep_regex='[/\\]'
18333 gl_dirsep_regex='\/'
18335 esac
18336 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
18338 gl_header_literal_regex=`echo 'time.h' \
18339 | sed -e "$gl_make_literal_regex_sed"`
18340 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18341 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18342 s|^/[^/]|//&|
18346 gl_cv_next_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18347 sed -n "$gl_absolute_header_sed"`'"'
18351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
18352 $as_echo "$gl_cv_next_time_h" >&6; }
18354 NEXT_TIME_H=$gl_cv_next_time_h
18356 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18357 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18358 gl_next_as_first_directive='<'time.h'>'
18359 else
18360 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18361 gl_next_as_first_directive=$gl_cv_next_time_h
18363 NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
18370 ac_fn_c_check_decl "$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "$ac_includes_default"
18371 if test "x$ac_cv_have_decl_localtime_r" = x""yes; then :
18372 ac_have_decl=1
18373 else
18374 ac_have_decl=0
18377 cat >>confdefs.h <<_ACEOF
18378 #define HAVE_DECL_LOCALTIME_R $ac_have_decl
18379 _ACEOF
18384 if false; then
18385 GL_COND_LIBTOOL_TRUE=
18386 GL_COND_LIBTOOL_FALSE='#'
18387 else
18388 GL_COND_LIBTOOL_TRUE='#'
18389 GL_COND_LIBTOOL_FALSE=
18392 gl_cond_libtool=false
18393 gl_libdeps=
18394 gl_ltlibdeps=
18395 gl_m4_base='m4'
18405 gl_source_base='lib'
18408 if test $ac_cv_func_alloca_works = no; then
18412 # Define an additional variable used in the Makefile substitution.
18413 if test $ac_cv_working_alloca_h = yes; then
18414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
18415 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
18416 if test "${gl_cv_rpl_alloca+set}" = set; then :
18417 $as_echo_n "(cached) " >&6
18418 else
18420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18421 /* end confdefs.h. */
18423 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
18424 Need own alloca
18425 #endif
18427 _ACEOF
18428 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18429 $EGREP "Need own alloca" >/dev/null 2>&1; then :
18430 gl_cv_rpl_alloca=yes
18431 else
18432 gl_cv_rpl_alloca=no
18434 rm -f conftest*
18438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
18439 $as_echo "$gl_cv_rpl_alloca" >&6; }
18440 if test $gl_cv_rpl_alloca = yes; then
18442 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
18444 ALLOCA_H=alloca.h
18445 else
18446 ALLOCA_H=
18448 else
18449 ALLOCA_H=alloca.h
18452 if test -n "$ALLOCA_H"; then
18453 GL_GENERATE_ALLOCA_H_TRUE=
18454 GL_GENERATE_ALLOCA_H_FALSE='#'
18455 else
18456 GL_GENERATE_ALLOCA_H_TRUE='#'
18457 GL_GENERATE_ALLOCA_H_FALSE=
18486 $as_echo "#define HAVE_DUP2 1" >>confdefs.h
18489 if test $HAVE_DUP2 = 1; then
18490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5
18491 $as_echo_n "checking whether dup2 works... " >&6; }
18492 if test "${gl_cv_func_dup2_works+set}" = set; then :
18493 $as_echo_n "(cached) " >&6
18494 else
18495 if test "$cross_compiling" = yes; then :
18496 case "$host_os" in
18497 mingw*) # on this platform, dup2 always returns 0 for success
18498 gl_cv_func_dup2_works="guessing no" ;;
18499 cygwin*) # on cygwin 1.5.x, dup2(1,1) returns 0
18500 gl_cv_func_dup2_works="guessing no" ;;
18501 linux*) # On linux between 2008-07-27 and 2009-05-11, dup2 of a
18502 # closed fd may yield -EBADF instead of -1 / errno=EBADF.
18503 gl_cv_func_dup2_works="guessing no" ;;
18504 freebsd*) # on FreeBSD 6.1, dup2(1,1000000) gives EMFILE, not EBADF.
18505 gl_cv_func_dup2_works="guessing no" ;;
18506 haiku*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC.
18507 gl_cv_func_dup2_works="guessing no" ;;
18508 *) gl_cv_func_dup2_works="guessing yes" ;;
18509 esac
18510 else
18511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18512 /* end confdefs.h. */
18514 #include <unistd.h>
18515 #include <fcntl.h>
18516 #include <errno.h>
18518 main ()
18520 int result = 0;
18521 #ifdef FD_CLOEXEC
18522 if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1)
18523 result |= 1;
18524 #endif
18525 if (dup2 (1, 1) == 0)
18526 result |= 2;
18527 #ifdef FD_CLOEXEC
18528 if (fcntl (1, F_GETFD) != FD_CLOEXEC)
18529 result |= 4;
18530 #endif
18531 close (0);
18532 if (dup2 (0, 0) != -1)
18533 result |= 8;
18534 /* Many gnulib modules require POSIX conformance of EBADF. */
18535 if (dup2 (2, 1000000) == -1 && errno != EBADF)
18536 result |= 16;
18537 return result;
18540 return 0;
18543 _ACEOF
18544 if ac_fn_c_try_run "$LINENO"; then :
18545 gl_cv_func_dup2_works=yes
18546 else
18547 gl_cv_func_dup2_works=no
18549 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18550 conftest.$ac_objext conftest.beam conftest.$ac_ext
18555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5
18556 $as_echo "$gl_cv_func_dup2_works" >&6; }
18557 case "$gl_cv_func_dup2_works" in
18558 *yes) ;;
18560 REPLACE_DUP2=1
18562 esac
18566 if test $HAVE_DUP2 = 0 || test $REPLACE_DUP2 = 1; then
18575 gl_LIBOBJS="$gl_LIBOBJS dup2.$ac_objext"
18584 GNULIB_DUP2=1
18596 # Persuade glibc <stdlib.h> to declare getloadavg().
18599 gl_save_LIBS=$LIBS
18601 # getloadvg is present in libc on glibc >= 2.2, MacOS X, FreeBSD >= 2.0,
18602 # NetBSD >= 0.9, OpenBSD >= 2.0, Solaris >= 7.
18603 HAVE_GETLOADAVG=1
18604 ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
18605 if test "x$ac_cv_func_getloadavg" = x""yes; then :
18607 else
18608 gl_func_getloadavg_done=no
18610 # Some systems with -lutil have (and need) -lkvm as well, some do not.
18611 # On Solaris, -lkvm requires nlist from -lelf, so check that first
18612 # to get the right answer into the cache.
18613 # For kstat on solaris, we need to test for libelf and libkvm to force the
18614 # definition of SVR4 below.
18615 if test $gl_func_getloadavg_done = no; then
18616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
18617 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
18618 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then :
18619 $as_echo_n "(cached) " >&6
18620 else
18621 ac_check_lib_save_LIBS=$LIBS
18622 LIBS="-lelf $LIBS"
18623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18624 /* end confdefs.h. */
18626 /* Override any GCC internal prototype to avoid an error.
18627 Use char because int might match the return type of a GCC
18628 builtin and then its argument prototype would still apply. */
18629 #ifdef __cplusplus
18630 extern "C"
18631 #endif
18632 char elf_begin ();
18634 main ()
18636 return elf_begin ();
18638 return 0;
18640 _ACEOF
18641 if ac_fn_c_try_link "$LINENO"; then :
18642 ac_cv_lib_elf_elf_begin=yes
18643 else
18644 ac_cv_lib_elf_elf_begin=no
18646 rm -f core conftest.err conftest.$ac_objext \
18647 conftest$ac_exeext conftest.$ac_ext
18648 LIBS=$ac_check_lib_save_LIBS
18650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
18651 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
18652 if test "x$ac_cv_lib_elf_elf_begin" = x""yes; then :
18653 LIBS="-lelf $LIBS"
18656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
18657 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
18658 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
18659 $as_echo_n "(cached) " >&6
18660 else
18661 ac_check_lib_save_LIBS=$LIBS
18662 LIBS="-lkvm $LIBS"
18663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18664 /* end confdefs.h. */
18666 /* Override any GCC internal prototype to avoid an error.
18667 Use char because int might match the return type of a GCC
18668 builtin and then its argument prototype would still apply. */
18669 #ifdef __cplusplus
18670 extern "C"
18671 #endif
18672 char kvm_open ();
18674 main ()
18676 return kvm_open ();
18678 return 0;
18680 _ACEOF
18681 if ac_fn_c_try_link "$LINENO"; then :
18682 ac_cv_lib_kvm_kvm_open=yes
18683 else
18684 ac_cv_lib_kvm_kvm_open=no
18686 rm -f core conftest.err conftest.$ac_objext \
18687 conftest$ac_exeext conftest.$ac_ext
18688 LIBS=$ac_check_lib_save_LIBS
18690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
18691 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
18692 if test "x$ac_cv_lib_kvm_kvm_open" = x""yes; then :
18693 LIBS="-lkvm $LIBS"
18696 # Check for the 4.4BSD definition of getloadavg.
18697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
18698 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
18699 if test "${ac_cv_lib_util_getloadavg+set}" = set; then :
18700 $as_echo_n "(cached) " >&6
18701 else
18702 ac_check_lib_save_LIBS=$LIBS
18703 LIBS="-lutil $LIBS"
18704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18705 /* end confdefs.h. */
18707 /* Override any GCC internal prototype to avoid an error.
18708 Use char because int might match the return type of a GCC
18709 builtin and then its argument prototype would still apply. */
18710 #ifdef __cplusplus
18711 extern "C"
18712 #endif
18713 char getloadavg ();
18715 main ()
18717 return getloadavg ();
18719 return 0;
18721 _ACEOF
18722 if ac_fn_c_try_link "$LINENO"; then :
18723 ac_cv_lib_util_getloadavg=yes
18724 else
18725 ac_cv_lib_util_getloadavg=no
18727 rm -f core conftest.err conftest.$ac_objext \
18728 conftest$ac_exeext conftest.$ac_ext
18729 LIBS=$ac_check_lib_save_LIBS
18731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
18732 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
18733 if test "x$ac_cv_lib_util_getloadavg" = x""yes; then :
18734 LIBS="-lutil $LIBS" gl_func_getloadavg_done=yes
18739 if test $gl_func_getloadavg_done = no; then
18740 # There is a commonly available library for RS/6000 AIX.
18741 # Since it is not a standard part of AIX, it might be installed locally.
18742 gl_getloadavg_LIBS=$LIBS
18743 LIBS="-L/usr/local/lib $LIBS"
18744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
18745 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
18746 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then :
18747 $as_echo_n "(cached) " >&6
18748 else
18749 ac_check_lib_save_LIBS=$LIBS
18750 LIBS="-lgetloadavg $LIBS"
18751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18752 /* end confdefs.h. */
18754 /* Override any GCC internal prototype to avoid an error.
18755 Use char because int might match the return type of a GCC
18756 builtin and then its argument prototype would still apply. */
18757 #ifdef __cplusplus
18758 extern "C"
18759 #endif
18760 char getloadavg ();
18762 main ()
18764 return getloadavg ();
18766 return 0;
18768 _ACEOF
18769 if ac_fn_c_try_link "$LINENO"; then :
18770 ac_cv_lib_getloadavg_getloadavg=yes
18771 else
18772 ac_cv_lib_getloadavg_getloadavg=no
18774 rm -f core conftest.err conftest.$ac_objext \
18775 conftest$ac_exeext conftest.$ac_ext
18776 LIBS=$ac_check_lib_save_LIBS
18778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
18779 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
18780 if test "x$ac_cv_lib_getloadavg_getloadavg" = x""yes; then :
18781 LIBS="-lgetloadavg $LIBS" gl_func_getloadavg_done=yes
18782 else
18783 LIBS=$gl_getloadavg_LIBS
18788 # Set up the replacement function if necessary.
18789 if test $gl_func_getloadavg_done = no; then
18790 HAVE_GETLOADAVG=0
18792 # Solaris has libkstat which does not require root.
18793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
18794 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
18795 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
18796 $as_echo_n "(cached) " >&6
18797 else
18798 ac_check_lib_save_LIBS=$LIBS
18799 LIBS="-lkstat $LIBS"
18800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18801 /* end confdefs.h. */
18803 /* Override any GCC internal prototype to avoid an error.
18804 Use char because int might match the return type of a GCC
18805 builtin and then its argument prototype would still apply. */
18806 #ifdef __cplusplus
18807 extern "C"
18808 #endif
18809 char kstat_open ();
18811 main ()
18813 return kstat_open ();
18815 return 0;
18817 _ACEOF
18818 if ac_fn_c_try_link "$LINENO"; then :
18819 ac_cv_lib_kstat_kstat_open=yes
18820 else
18821 ac_cv_lib_kstat_kstat_open=no
18823 rm -f core conftest.err conftest.$ac_objext \
18824 conftest$ac_exeext conftest.$ac_ext
18825 LIBS=$ac_check_lib_save_LIBS
18827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
18828 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
18829 if test "x$ac_cv_lib_kstat_kstat_open" = x""yes; then :
18830 cat >>confdefs.h <<_ACEOF
18831 #define HAVE_LIBKSTAT 1
18832 _ACEOF
18834 LIBS="-lkstat $LIBS"
18838 test $ac_cv_lib_kstat_kstat_open = yes && gl_func_getloadavg_done=yes
18840 # AIX has libperfstat which does not require root
18841 if test $gl_func_getloadavg_done = no; then
18842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perfstat_cpu_total in -lperfstat" >&5
18843 $as_echo_n "checking for perfstat_cpu_total in -lperfstat... " >&6; }
18844 if test "${ac_cv_lib_perfstat_perfstat_cpu_total+set}" = set; then :
18845 $as_echo_n "(cached) " >&6
18846 else
18847 ac_check_lib_save_LIBS=$LIBS
18848 LIBS="-lperfstat $LIBS"
18849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18850 /* end confdefs.h. */
18852 /* Override any GCC internal prototype to avoid an error.
18853 Use char because int might match the return type of a GCC
18854 builtin and then its argument prototype would still apply. */
18855 #ifdef __cplusplus
18856 extern "C"
18857 #endif
18858 char perfstat_cpu_total ();
18860 main ()
18862 return perfstat_cpu_total ();
18864 return 0;
18866 _ACEOF
18867 if ac_fn_c_try_link "$LINENO"; then :
18868 ac_cv_lib_perfstat_perfstat_cpu_total=yes
18869 else
18870 ac_cv_lib_perfstat_perfstat_cpu_total=no
18872 rm -f core conftest.err conftest.$ac_objext \
18873 conftest$ac_exeext conftest.$ac_ext
18874 LIBS=$ac_check_lib_save_LIBS
18876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_perfstat_perfstat_cpu_total" >&5
18877 $as_echo "$ac_cv_lib_perfstat_perfstat_cpu_total" >&6; }
18878 if test "x$ac_cv_lib_perfstat_perfstat_cpu_total" = x""yes; then :
18879 cat >>confdefs.h <<_ACEOF
18880 #define HAVE_LIBPERFSTAT 1
18881 _ACEOF
18883 LIBS="-lperfstat $LIBS"
18887 test $ac_cv_lib_perfstat_perfstat_cpu_total = yes && gl_func_getloadavg_done=yes
18890 if test $gl_func_getloadavg_done = no; then
18891 ac_fn_c_check_header_mongrel "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
18892 if test "x$ac_cv_header_sys_dg_sys_info_h" = x""yes; then :
18893 gl_func_getloadavg_done=yes
18895 $as_echo "#define DGUX 1" >>confdefs.h
18897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
18898 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
18899 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then :
18900 $as_echo_n "(cached) " >&6
18901 else
18902 ac_check_lib_save_LIBS=$LIBS
18903 LIBS="-ldgc $LIBS"
18904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18905 /* end confdefs.h. */
18907 /* Override any GCC internal prototype to avoid an error.
18908 Use char because int might match the return type of a GCC
18909 builtin and then its argument prototype would still apply. */
18910 #ifdef __cplusplus
18911 extern "C"
18912 #endif
18913 char dg_sys_info ();
18915 main ()
18917 return dg_sys_info ();
18919 return 0;
18921 _ACEOF
18922 if ac_fn_c_try_link "$LINENO"; then :
18923 ac_cv_lib_dgc_dg_sys_info=yes
18924 else
18925 ac_cv_lib_dgc_dg_sys_info=no
18927 rm -f core conftest.err conftest.$ac_objext \
18928 conftest$ac_exeext conftest.$ac_ext
18929 LIBS=$ac_check_lib_save_LIBS
18931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
18932 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
18933 if test "x$ac_cv_lib_dgc_dg_sys_info" = x""yes; then :
18934 cat >>confdefs.h <<_ACEOF
18935 #define HAVE_LIBDGC 1
18936 _ACEOF
18938 LIBS="-ldgc $LIBS"
18950 if test "x$gl_save_LIBS" = x; then
18951 GETLOADAVG_LIBS=$LIBS
18952 else
18953 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$gl_save_LIBS!!"`
18955 LIBS=$gl_save_LIBS
18958 # Test whether the system declares getloadavg. Solaris has the function
18959 # but declares it in <sys/loadavg.h>, not <stdlib.h>.
18960 for ac_header in sys/loadavg.h
18961 do :
18962 ac_fn_c_check_header_mongrel "$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default"
18963 if test "x$ac_cv_header_sys_loadavg_h" = x""yes; then :
18964 cat >>confdefs.h <<_ACEOF
18965 #define HAVE_SYS_LOADAVG_H 1
18966 _ACEOF
18970 done
18972 if test $ac_cv_header_sys_loadavg_h = yes; then
18973 HAVE_SYS_LOADAVG_H=1
18974 else
18975 HAVE_SYS_LOADAVG_H=0
18977 ac_fn_c_check_decl "$LINENO" "getloadavg" "ac_cv_have_decl_getloadavg" "#if HAVE_SYS_LOADAVG_H
18978 # include <sys/loadavg.h>
18979 #endif
18980 #include <stdlib.h>
18982 if test "x$ac_cv_have_decl_getloadavg" = x""yes; then :
18984 else
18985 HAVE_DECL_GETLOADAVG=0
18989 if test $HAVE_GETLOADAVG = 0; then
18998 gl_LIBOBJS="$gl_LIBOBJS getloadavg.$ac_objext"
19001 # Figure out what our getloadavg.c needs.
19003 # On HPUX9, an unprivileged user can get load averages this way.
19004 if test $gl_func_getloadavg_done = no; then
19005 for ac_func in pstat_getdynamic
19006 do :
19007 ac_fn_c_check_func "$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
19008 if test "x$ac_cv_func_pstat_getdynamic" = x""yes; then :
19009 cat >>confdefs.h <<_ACEOF
19010 #define HAVE_PSTAT_GETDYNAMIC 1
19011 _ACEOF
19012 gl_func_getloadavg_done=yes
19014 done
19018 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
19019 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
19020 # Irix 4.0.5F has the header but not the library.
19021 if test $gl_func_getloadavg_done = no && test "$ac_cv_lib_elf_elf_begin" = yes \
19022 && test "$ac_cv_lib_kvm_kvm_open" = yes; then
19023 gl_func_getloadavg_done=yes
19025 $as_echo "#define SVR4 1" >>confdefs.h
19029 if test $gl_func_getloadavg_done = no; then
19030 ac_fn_c_check_header_mongrel "$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
19031 if test "x$ac_cv_header_inq_stats_cpustats_h" = x""yes; then :
19032 gl_func_getloadavg_done=yes
19034 $as_echo "#define UMAX 1" >>confdefs.h
19037 $as_echo "#define UMAX4_3 1" >>confdefs.h
19044 if test $gl_func_getloadavg_done = no; then
19045 ac_fn_c_check_header_mongrel "$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
19046 if test "x$ac_cv_header_sys_cpustats_h" = x""yes; then :
19047 gl_func_getloadavg_done=yes; $as_echo "#define UMAX 1" >>confdefs.h
19054 if test $gl_func_getloadavg_done = no; then
19055 for ac_header in mach/mach.h
19056 do :
19057 ac_fn_c_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
19058 if test "x$ac_cv_header_mach_mach_h" = x""yes; then :
19059 cat >>confdefs.h <<_ACEOF
19060 #define HAVE_MACH_MACH_H 1
19061 _ACEOF
19065 done
19069 for ac_header in nlist.h
19070 do :
19071 ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
19072 if test "x$ac_cv_header_nlist_h" = x""yes; then :
19073 cat >>confdefs.h <<_ACEOF
19074 #define HAVE_NLIST_H 1
19075 _ACEOF
19076 ac_fn_c_check_member "$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
19078 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x""yes; then :
19080 cat >>confdefs.h <<_ACEOF
19081 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
19082 _ACEOF
19087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19088 /* end confdefs.h. */
19089 #include <nlist.h>
19091 main ()
19093 struct nlist x;
19094 #ifdef HAVE_STRUCT_NLIST_N_UN_N_NAME
19095 x.n_un.n_name = "";
19096 #else
19097 x.n_name = "";
19098 #endif
19100 return 0;
19102 _ACEOF
19103 if ac_fn_c_try_link "$LINENO"; then :
19105 $as_echo "#define N_NAME_POINTER 1" >>confdefs.h
19108 rm -f core conftest.err conftest.$ac_objext \
19109 conftest$ac_exeext conftest.$ac_ext
19113 done
19121 GNULIB_GETLOADAVG=1
19132 if test $REPLACE_GETOPT = 1; then
19141 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
19151 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
19156 GNULIB_GL_UNISTD_H_GETOPT=1
19164 REPLACE_GETOPT=0
19167 if test -n "$gl_replace_getopt"; then :
19169 REPLACE_GETOPT=1
19174 if test $REPLACE_GETOPT = 1; then
19176 GETOPT_H=getopt.h
19178 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
19184 if test $REPLACE_GETOPT = 1; then
19193 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
19203 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
19208 GNULIB_GL_UNISTD_H_GETOPT=1
19217 if test $ac_cv_func_lstat = yes; then
19219 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
19220 *no)
19221 REPLACE_LSTAT=1
19223 esac
19224 else
19225 HAVE_LSTAT=0
19228 if test $REPLACE_LSTAT = 1; then
19237 gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext"
19249 GNULIB_LSTAT=1
19261 if test $APPLE_UNIVERSAL_BUILD = 1; then
19262 # A universal build on Apple MacOS X platforms.
19263 # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode.
19264 # But we need a configuration result that is valid in both modes.
19265 gl_cv_func_working_mktime=no
19267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
19268 $as_echo_n "checking for working mktime... " >&6; }
19269 if test "${gl_cv_func_working_mktime+set}" = set; then :
19270 $as_echo_n "(cached) " >&6
19271 else
19272 if test "$cross_compiling" = yes; then :
19273 gl_cv_func_working_mktime=no
19274 else
19275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19276 /* end confdefs.h. */
19277 /* Test program from Paul Eggert and Tony Leneis. */
19278 #include <limits.h>
19279 #include <stdlib.h>
19280 #include <time.h>
19282 #ifdef HAVE_UNISTD_H
19283 # include <unistd.h>
19284 #endif
19286 #ifndef HAVE_ALARM
19287 # define alarm(X) /* empty */
19288 #endif
19290 /* Work around redefinition to rpl_putenv by other config tests. */
19291 #undef putenv
19293 static time_t time_t_max;
19294 static time_t time_t_min;
19296 /* Values we'll use to set the TZ environment variable. */
19297 static char *tz_strings[] = {
19298 (char *) 0, "TZ=GMT0", "TZ=JST-9",
19299 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
19301 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
19303 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
19304 Based on a problem report from Andreas Jaeger. */
19305 static int
19306 spring_forward_gap ()
19308 /* glibc (up to about 1998-10-07) failed this test. */
19309 struct tm tm;
19311 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
19312 instead of "TZ=America/Vancouver" in order to detect the bug even
19313 on systems that don't support the Olson extension, or don't have the
19314 full zoneinfo tables installed. */
19315 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
19317 tm.tm_year = 98;
19318 tm.tm_mon = 3;
19319 tm.tm_mday = 5;
19320 tm.tm_hour = 2;
19321 tm.tm_min = 0;
19322 tm.tm_sec = 0;
19323 tm.tm_isdst = -1;
19324 return mktime (&tm) != (time_t) -1;
19327 static int
19328 mktime_test1 (time_t now)
19330 struct tm *lt;
19331 return ! (lt = localtime (&now)) || mktime (lt) == now;
19334 static int
19335 mktime_test (time_t now)
19337 return (mktime_test1 (now)
19338 && mktime_test1 ((time_t) (time_t_max - now))
19339 && mktime_test1 ((time_t) (time_t_min + now)));
19342 static int
19343 irix_6_4_bug ()
19345 /* Based on code from Ariel Faigon. */
19346 struct tm tm;
19347 tm.tm_year = 96;
19348 tm.tm_mon = 3;
19349 tm.tm_mday = 0;
19350 tm.tm_hour = 0;
19351 tm.tm_min = 0;
19352 tm.tm_sec = 0;
19353 tm.tm_isdst = -1;
19354 mktime (&tm);
19355 return tm.tm_mon == 2 && tm.tm_mday == 31;
19358 static int
19359 bigtime_test (int j)
19361 struct tm tm;
19362 time_t now;
19363 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
19364 now = mktime (&tm);
19365 if (now != (time_t) -1)
19367 struct tm *lt = localtime (&now);
19368 if (! (lt
19369 && lt->tm_year == tm.tm_year
19370 && lt->tm_mon == tm.tm_mon
19371 && lt->tm_mday == tm.tm_mday
19372 && lt->tm_hour == tm.tm_hour
19373 && lt->tm_min == tm.tm_min
19374 && lt->tm_sec == tm.tm_sec
19375 && lt->tm_yday == tm.tm_yday
19376 && lt->tm_wday == tm.tm_wday
19377 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
19378 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
19379 return 0;
19381 return 1;
19384 static int
19385 year_2050_test ()
19387 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
19388 ignoring leap seconds. */
19389 unsigned long int answer = 2527315200UL;
19391 struct tm tm;
19392 time_t t;
19393 tm.tm_year = 2050 - 1900;
19394 tm.tm_mon = 2 - 1;
19395 tm.tm_mday = 1;
19396 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
19397 tm.tm_isdst = -1;
19399 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
19400 instead of "TZ=America/Vancouver" in order to detect the bug even
19401 on systems that don't support the Olson extension, or don't have the
19402 full zoneinfo tables installed. */
19403 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
19405 t = mktime (&tm);
19407 /* Check that the result is either a failure, or close enough
19408 to the correct answer that we can assume the discrepancy is
19409 due to leap seconds. */
19410 return (t == (time_t) -1
19411 || (0 < t && answer - 120 <= t && t <= answer + 120));
19415 main ()
19417 int result = 0;
19418 time_t t, delta;
19419 int i, j;
19420 int time_t_signed_magnitude = (time_t) ~ (time_t) 0 < (time_t) -1;
19421 int time_t_signed = ! ((time_t) 0 < (time_t) -1);
19423 /* This test makes some buggy mktime implementations loop.
19424 Give up after 60 seconds; a mktime slower than that
19425 isn't worth using anyway. */
19426 alarm (60);
19428 time_t_max = (! time_t_signed
19429 ? (time_t) -1
19430 : ((((time_t) 1 << (sizeof (time_t) * CHAR_BIT - 2)) - 1)
19431 * 2 + 1));
19432 time_t_min = (! time_t_signed
19433 ? (time_t) 0
19434 : time_t_signed_magnitude
19435 ? ~ (time_t) 0
19436 : ~ time_t_max);
19438 delta = time_t_max / 997; /* a suitable prime number */
19439 for (i = 0; i < N_STRINGS; i++)
19441 if (tz_strings[i])
19442 putenv (tz_strings[i]);
19444 for (t = 0; t <= time_t_max - delta; t += delta)
19445 if (! mktime_test (t))
19446 result |= 1;
19447 if (! (mktime_test ((time_t) 1)
19448 && mktime_test ((time_t) (60 * 60))
19449 && mktime_test ((time_t) (60 * 60 * 24))))
19450 result |= 2;
19452 for (j = 1; ; j <<= 1)
19453 if (! bigtime_test (j))
19454 result |= 4;
19455 else if (INT_MAX / 2 < j)
19456 break;
19457 if (! bigtime_test (INT_MAX))
19458 result |= 8;
19460 if (! irix_6_4_bug ())
19461 result |= 16;
19462 if (! spring_forward_gap ())
19463 result |= 32;
19464 if (! year_2050_test ())
19465 result |= 64;
19466 return result;
19468 _ACEOF
19469 if ac_fn_c_try_run "$LINENO"; then :
19470 gl_cv_func_working_mktime=yes
19471 else
19472 gl_cv_func_working_mktime=no
19474 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19475 conftest.$ac_objext conftest.beam conftest.$ac_ext
19480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_mktime" >&5
19481 $as_echo "$gl_cv_func_working_mktime" >&6; }
19483 if test $gl_cv_func_working_mktime = no; then
19484 REPLACE_MKTIME=1
19485 else
19486 REPLACE_MKTIME=0
19489 if test $REPLACE_MKTIME = 1; then
19498 gl_LIBOBJS="$gl_LIBOBJS mktime.$ac_objext"
19509 GNULIB_MKTIME=1
19520 LIB_PTHREAD_SIGMASK=
19523 if test $ac_cv_func_pthread_sigmask = yes; then
19525 else
19526 HAVE_PTHREAD_SIGMASK=0
19527 REPLACE_PTHREAD_SIGMASK=1
19533 if test $HAVE_PTHREAD_SIGMASK = 1; then
19536 if test -z "$LIB_PTHREAD_SIGMASK"; then
19537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask works without -lpthread" >&5
19538 $as_echo_n "checking whether pthread_sigmask works without -lpthread... " >&6; }
19539 if test "${gl_cv_func_pthread_sigmask_in_libc_works+set}" = set; then :
19540 $as_echo_n "(cached) " >&6
19541 else
19543 if test "$cross_compiling" = yes; then :
19545 case "$host_os" in
19546 freebsd* | hpux* | solaris | solaris2.[2-9]*)
19547 gl_cv_func_pthread_sigmask_in_libc_works="guessing no";;
19549 gl_cv_func_pthread_sigmask_in_libc_works="guessing yes";;
19550 esac
19552 else
19553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19554 /* end confdefs.h. */
19556 #include <pthread.h>
19557 #include <signal.h>
19558 #include <stddef.h>
19559 int main ()
19561 sigset_t set;
19562 sigemptyset (&set);
19563 return pthread_sigmask (1729, &set, NULL) != 0;
19565 _ACEOF
19566 if ac_fn_c_try_run "$LINENO"; then :
19567 gl_cv_func_pthread_sigmask_in_libc_works=no
19568 else
19569 gl_cv_func_pthread_sigmask_in_libc_works=yes
19571 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19572 conftest.$ac_objext conftest.beam conftest.$ac_ext
19577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_in_libc_works" >&5
19578 $as_echo "$gl_cv_func_pthread_sigmask_in_libc_works" >&6; }
19579 case "$gl_cv_func_pthread_sigmask_in_libc_works" in
19580 *no)
19581 REPLACE_PTHREAD_SIGMASK=1
19583 $as_echo "#define PTHREAD_SIGMASK_INEFFECTIVE 1" >>confdefs.h
19586 esac
19589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask returns error numbers" >&5
19590 $as_echo_n "checking whether pthread_sigmask returns error numbers... " >&6; }
19591 if test "${gl_cv_func_pthread_sigmask_return_works+set}" = set; then :
19592 $as_echo_n "(cached) " >&6
19593 else
19595 gl_save_LIBS="$LIBS"
19596 LIBS="$LIBS $LIB_PTHREAD_SIGMASK"
19597 if test "$cross_compiling" = yes; then :
19598 case "$host_os" in
19599 cygwin*)
19600 gl_cv_func_pthread_sigmask_return_works="guessing no";;
19602 gl_cv_func_pthread_sigmask_return_works="guessing yes";;
19603 esac
19605 else
19606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19607 /* end confdefs.h. */
19609 #include <pthread.h>
19610 #include <signal.h>
19611 #include <stddef.h>
19612 int main ()
19614 sigset_t set;
19615 sigemptyset (&set);
19616 if (pthread_sigmask (1729, &set, NULL) == -1)
19617 return 1;
19618 return 0;
19620 _ACEOF
19621 if ac_fn_c_try_run "$LINENO"; then :
19622 gl_cv_func_pthread_sigmask_return_works=yes
19623 else
19624 gl_cv_func_pthread_sigmask_return_works=no
19626 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19627 conftest.$ac_objext conftest.beam conftest.$ac_ext
19630 LIBS="$gl_save_LIBS"
19633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_return_works" >&5
19634 $as_echo "$gl_cv_func_pthread_sigmask_return_works" >&6; }
19635 case "$gl_cv_func_pthread_sigmask_return_works" in
19636 *no)
19637 REPLACE_PTHREAD_SIGMASK=1
19639 $as_echo "#define PTHREAD_SIGMASK_FAILS_WITH_ERRNO 1" >>confdefs.h
19642 esac
19644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask unblocks signals correctly" >&5
19645 $as_echo_n "checking whether pthread_sigmask unblocks signals correctly... " >&6; }
19646 if test "${gl_cv_func_pthread_sigmask_unblock_works+set}" = set; then :
19647 $as_echo_n "(cached) " >&6
19648 else
19650 case "$host_os" in
19651 irix*)
19652 gl_cv_func_pthread_sigmask_unblock_works="guessing no";;
19654 gl_cv_func_pthread_sigmask_unblock_works="guessing yes";;
19655 esac
19656 gl_save_LIBS="$LIBS"
19657 LIBS="$LIBS $LIBMULTITHREAD"
19658 if test "$cross_compiling" = yes; then :
19660 else
19661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19662 /* end confdefs.h. */
19664 #include <pthread.h>
19665 #include <signal.h>
19666 #include <stdio.h>
19667 #include <stdlib.h>
19668 #include <unistd.h>
19669 static volatile int sigint_occurred;
19670 static void
19671 sigint_handler (int sig)
19673 sigint_occurred++;
19675 int main ()
19677 sigset_t set;
19678 int pid = getpid ();
19679 char command[80];
19680 signal (SIGINT, sigint_handler);
19681 sigemptyset (&set);
19682 sigaddset (&set, SIGINT);
19683 if (!(pthread_sigmask (SIG_BLOCK, &set, NULL) == 0))
19684 return 1;
19685 sprintf (command, "sh -c 'sleep 1; kill -%d %d' &", SIGINT, pid);
19686 if (!(system (command) == 0))
19687 return 2;
19688 sleep (2);
19689 if (!(sigint_occurred == 0))
19690 return 3;
19691 if (!(pthread_sigmask (SIG_UNBLOCK, &set, NULL) == 0))
19692 return 4;
19693 if (!(sigint_occurred == 1)) /* This fails on IRIX. */
19694 return 5;
19695 return 0;
19697 _ACEOF
19698 if ac_fn_c_try_run "$LINENO"; then :
19700 else
19701 gl_cv_func_pthread_sigmask_unblock_works=no
19703 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19704 conftest.$ac_objext conftest.beam conftest.$ac_ext
19707 LIBS="$gl_save_LIBS"
19710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_unblock_works" >&5
19711 $as_echo "$gl_cv_func_pthread_sigmask_unblock_works" >&6; }
19712 case "$gl_cv_func_pthread_sigmask_unblock_works" in
19713 *no)
19714 REPLACE_PTHREAD_SIGMASK=1
19716 $as_echo "#define PTHREAD_SIGMASK_UNBLOCK_BUG 1" >>confdefs.h
19719 esac
19722 if test $HAVE_PTHREAD_SIGMASK = 0 || test $REPLACE_PTHREAD_SIGMASK = 1; then
19731 gl_LIBOBJS="$gl_LIBOBJS pthread_sigmask.$ac_objext"
19734 if test $HAVE_PTHREAD_SIGMASK = 1; then
19736 $as_echo "#define HAVE_PTHREAD_SIGMASK 1" >>confdefs.h
19746 GNULIB_PTHREAD_SIGMASK=1
19755 if test $ac_cv_func_readlink = no; then
19756 HAVE_READLINK=0
19757 else
19758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
19759 $as_echo_n "checking whether readlink signature is correct... " >&6; }
19760 if test "${gl_cv_decl_readlink_works+set}" = set; then :
19761 $as_echo_n "(cached) " >&6
19762 else
19763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19764 /* end confdefs.h. */
19765 #include <unistd.h>
19766 /* Cause compilation failure if original declaration has wrong type. */
19767 ssize_t readlink (const char *, char *, size_t);
19769 main ()
19773 return 0;
19775 _ACEOF
19776 if ac_fn_c_try_compile "$LINENO"; then :
19777 gl_cv_decl_readlink_works=yes
19778 else
19779 gl_cv_decl_readlink_works=no
19781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
19784 $as_echo "$gl_cv_decl_readlink_works" >&6; }
19785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
19786 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
19787 if test "${gl_cv_func_readlink_works+set}" = set; then :
19788 $as_echo_n "(cached) " >&6
19789 else
19790 # We have readlink, so assume ln -s works.
19791 ln -s conftest.no-such conftest.link
19792 ln -s conftest.link conftest.lnk2
19793 if test "$cross_compiling" = yes; then :
19794 case "$host_os" in
19795 # Guess yes on glibc systems.
19796 *-gnu*) gl_cv_func_readlink_works="guessing yes" ;;
19797 # If we don't know, assume the worst.
19798 *) gl_cv_func_readlink_works="guessing no" ;;
19799 esac
19801 else
19802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19803 /* end confdefs.h. */
19804 #include <unistd.h>
19807 main ()
19809 char buf[20];
19810 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
19812 return 0;
19814 _ACEOF
19815 if ac_fn_c_try_run "$LINENO"; then :
19816 gl_cv_func_readlink_works=yes
19817 else
19818 gl_cv_func_readlink_works=no
19820 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19821 conftest.$ac_objext conftest.beam conftest.$ac_ext
19824 rm -f conftest.link conftest.lnk2
19826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
19827 $as_echo "$gl_cv_func_readlink_works" >&6; }
19828 case "$gl_cv_func_readlink_works" in
19829 *yes)
19830 if test "$gl_cv_decl_readlink_works" != yes; then
19831 REPLACE_READLINK=1
19836 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
19838 REPLACE_READLINK=1
19840 esac
19843 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
19852 gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
19863 GNULIB_READLINK=1
19880 if test $gl_cv_have_include_next = yes; then
19881 gl_cv_next_signal_h='<'signal.h'>'
19882 else
19883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
19884 $as_echo_n "checking absolute name of <signal.h>... " >&6; }
19885 if test "${gl_cv_next_signal_h+set}" = set; then :
19886 $as_echo_n "(cached) " >&6
19887 else
19889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19890 /* end confdefs.h. */
19891 #include <signal.h>
19893 _ACEOF
19894 case "$host_os" in
19895 aix*) gl_absname_cpp="$ac_cpp -C" ;;
19896 *) gl_absname_cpp="$ac_cpp" ;;
19897 esac
19899 case "$host_os" in
19900 mingw*)
19901 gl_dirsep_regex='[/\\]'
19904 gl_dirsep_regex='\/'
19906 esac
19907 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
19909 gl_header_literal_regex=`echo 'signal.h' \
19910 | sed -e "$gl_make_literal_regex_sed"`
19911 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19912 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19913 s|^/[^/]|//&|
19917 gl_cv_next_signal_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19918 sed -n "$gl_absolute_header_sed"`'"'
19922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
19923 $as_echo "$gl_cv_next_signal_h" >&6; }
19925 NEXT_SIGNAL_H=$gl_cv_next_signal_h
19927 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
19928 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19929 gl_next_as_first_directive='<'signal.h'>'
19930 else
19931 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19932 gl_next_as_first_directive=$gl_cv_next_signal_h
19934 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H=$gl_next_as_first_directive
19940 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
19941 # then choke on 'volatile sig_atomic_t'. C99 requires that it compile.
19942 ac_fn_c_check_type "$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
19943 #include <signal.h>
19946 if test "x$ac_cv_type_volatile_sig_atomic_t" = x""yes; then :
19948 else
19949 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=0
19958 ac_fn_c_check_type "$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
19959 #include <signal.h>
19962 if test "x$ac_cv_type_sighandler_t" = x""yes; then :
19964 else
19965 HAVE_SIGHANDLER_T=0
19971 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
19972 /* <sys/types.h> is not needed according to POSIX, but the
19973 <sys/socket.h> in i386-unknown-freebsd4.10 and
19974 powerpc-apple-darwin5.5 required it. */
19975 #include <sys/types.h>
19976 #if HAVE_SYS_SOCKET_H
19977 # include <sys/socket.h>
19978 #elif HAVE_WS2TCPIP_H
19979 # include <ws2tcpip.h>
19980 #endif
19983 if test "x$ac_cv_type_socklen_t" = x""yes; then :
19985 else
19986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
19987 $as_echo_n "checking for socklen_t equivalent... " >&6; }
19988 if test "${gl_cv_socklen_t_equiv+set}" = set; then :
19989 $as_echo_n "(cached) " >&6
19990 else
19991 # Systems have either "struct sockaddr *" or
19992 # "void *" as the second argument to getpeername
19993 gl_cv_socklen_t_equiv=
19994 for arg2 in "struct sockaddr" void; do
19995 for t in int size_t "unsigned int" "long int" "unsigned long int"; do
19996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19997 /* end confdefs.h. */
19998 #include <sys/types.h>
19999 #include <sys/socket.h>
20001 int getpeername (int, $arg2 *, $t *);
20003 main ()
20005 $t len;
20006 getpeername (0, 0, &len);
20008 return 0;
20010 _ACEOF
20011 if ac_fn_c_try_compile "$LINENO"; then :
20012 gl_cv_socklen_t_equiv="$t"
20014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20015 test "$gl_cv_socklen_t_equiv" != "" && break
20016 done
20017 test "$gl_cv_socklen_t_equiv" != "" && break
20018 done
20022 if test "$gl_cv_socklen_t_equiv" = ""; then
20023 as_fn_error "Cannot find a type to use in place of socklen_t" "$LINENO" 5
20025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
20026 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
20028 cat >>confdefs.h <<_ACEOF
20029 #define socklen_t $gl_cv_socklen_t_equiv
20030 _ACEOF
20035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
20036 $as_echo_n "checking for ssize_t... " >&6; }
20037 if test "${gt_cv_ssize_t+set}" = set; then :
20038 $as_echo_n "(cached) " >&6
20039 else
20040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20041 /* end confdefs.h. */
20042 #include <sys/types.h>
20044 main ()
20046 int x = sizeof (ssize_t *) + sizeof (ssize_t);
20047 return !x;
20049 return 0;
20051 _ACEOF
20052 if ac_fn_c_try_compile "$LINENO"; then :
20053 gt_cv_ssize_t=yes
20054 else
20055 gt_cv_ssize_t=no
20057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
20060 $as_echo "$gt_cv_ssize_t" >&6; }
20061 if test $gt_cv_ssize_t = no; then
20063 $as_echo "#define ssize_t int" >>confdefs.h
20068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdalign.h" >&5
20069 $as_echo_n "checking for working stdalign.h... " >&6; }
20070 if test "${gl_cv_header_working_stdalign_h+set}" = set; then :
20071 $as_echo_n "(cached) " >&6
20072 else
20073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20074 /* end confdefs.h. */
20075 #include <stdalign.h>
20076 #include <stddef.h>
20078 /* Test that alignof yields a result consistent with offsetof.
20079 This catches GCC bug 52023
20080 <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023>. */
20081 #ifdef __cplusplus
20082 template <class t> struct alignof_helper { char a; t b; };
20083 # define ao(type) offsetof (alignof_helper<type>, b)
20084 #else
20085 # define ao(type) offsetof (struct { char a; type b; }, b)
20086 #endif
20087 char test_double[ao (double) % _Alignof (double) == 0 ? 1 : -1];
20088 char test_long[ao (long int) % _Alignof (long int) == 0 ? 1 : -1];
20089 char test_alignof[alignof (double) == _Alignof (double) ? 1 : -1];
20091 /* Test _Alignas only on platforms where gnulib can help. */
20092 #if \
20093 (__GNUC__ || __IBMC__ || __IBMCPP__ \
20094 || 0x5110 <= __SUNPRO_C || 1300 <= _MSC_VER)
20095 int alignas (8) alignas_int = 1;
20096 char test_alignas[_Alignof (alignas_int) == 8 ? 1 : -1];
20097 #endif
20100 main ()
20104 return 0;
20106 _ACEOF
20107 if ac_fn_c_try_compile "$LINENO"; then :
20108 gl_cv_header_working_stdalign_h=yes
20109 else
20110 gl_cv_header_working_stdalign_h=no
20112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdalign_h" >&5
20115 $as_echo "$gl_cv_header_working_stdalign_h" >&6; }
20117 if test $gl_cv_header_working_stdalign_h = yes; then
20118 STDALIGN_H=''
20119 else
20120 STDALIGN_H='stdalign.h'
20124 if test -n "$STDALIGN_H"; then
20125 GL_GENERATE_STDALIGN_H_TRUE=
20126 GL_GENERATE_STDALIGN_H_FALSE='#'
20127 else
20128 GL_GENERATE_STDALIGN_H_TRUE='#'
20129 GL_GENERATE_STDALIGN_H_FALSE=
20134 STDARG_H=''
20135 NEXT_STDARG_H='<stdarg.h>'
20136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
20137 $as_echo_n "checking for va_copy... " >&6; }
20138 if test "${gl_cv_func_va_copy+set}" = set; then :
20139 $as_echo_n "(cached) " >&6
20140 else
20142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20143 /* end confdefs.h. */
20144 #include <stdarg.h>
20146 main ()
20149 #ifndef va_copy
20150 void (*func) (va_list, va_list) = va_copy;
20151 #endif
20154 return 0;
20156 _ACEOF
20157 if ac_fn_c_try_compile "$LINENO"; then :
20158 gl_cv_func_va_copy=yes
20159 else
20160 gl_cv_func_va_copy=no
20162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_va_copy" >&5
20166 $as_echo "$gl_cv_func_va_copy" >&6; }
20167 if test $gl_cv_func_va_copy = no; then
20168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20169 /* end confdefs.h. */
20170 #if defined _AIX && !defined __GNUC__
20171 AIX vaccine
20172 #endif
20174 _ACEOF
20175 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20176 $EGREP "vaccine" >/dev/null 2>&1; then :
20177 gl_aixcc=yes
20178 else
20179 gl_aixcc=no
20181 rm -f conftest*
20183 if test $gl_aixcc = yes; then
20184 STDARG_H=stdarg.h
20193 if test $gl_cv_have_include_next = yes; then
20194 gl_cv_next_stdarg_h='<'stdarg.h'>'
20195 else
20196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdarg.h>" >&5
20197 $as_echo_n "checking absolute name of <stdarg.h>... " >&6; }
20198 if test "${gl_cv_next_stdarg_h+set}" = set; then :
20199 $as_echo_n "(cached) " >&6
20200 else
20202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20203 /* end confdefs.h. */
20204 #include <stdarg.h>
20206 _ACEOF
20207 case "$host_os" in
20208 aix*) gl_absname_cpp="$ac_cpp -C" ;;
20209 *) gl_absname_cpp="$ac_cpp" ;;
20210 esac
20212 case "$host_os" in
20213 mingw*)
20214 gl_dirsep_regex='[/\\]'
20217 gl_dirsep_regex='\/'
20219 esac
20220 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
20222 gl_header_literal_regex=`echo 'stdarg.h' \
20223 | sed -e "$gl_make_literal_regex_sed"`
20224 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20225 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20226 s|^/[^/]|//&|
20230 gl_cv_next_stdarg_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20231 sed -n "$gl_absolute_header_sed"`'"'
20235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdarg_h" >&5
20236 $as_echo "$gl_cv_next_stdarg_h" >&6; }
20238 NEXT_STDARG_H=$gl_cv_next_stdarg_h
20240 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20241 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20242 gl_next_as_first_directive='<'stdarg.h'>'
20243 else
20244 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20245 gl_next_as_first_directive=$gl_cv_next_stdarg_h
20247 NEXT_AS_FIRST_DIRECTIVE_STDARG_H=$gl_next_as_first_directive
20252 if test "$gl_cv_next_stdarg_h" = '""'; then
20253 gl_cv_next_stdarg_h='"///usr/include/stdarg.h"'
20254 NEXT_STDARG_H="$gl_cv_next_stdarg_h"
20256 else
20258 saved_as_echo_n="$as_echo_n"
20259 as_echo_n=':'
20260 if test "${gl_cv_func___va_copy+set}" = set; then :
20261 $as_echo_n "(cached) " >&6
20262 else
20264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20265 /* end confdefs.h. */
20266 #include <stdarg.h>
20268 main ()
20271 #ifndef __va_copy
20272 error, bail out
20273 #endif
20276 return 0;
20278 _ACEOF
20279 if ac_fn_c_try_compile "$LINENO"; then :
20280 gl_cv_func___va_copy=yes
20281 else
20282 gl_cv_func___va_copy=no
20284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20287 as_echo_n="$saved_as_echo_n"
20289 if test $gl_cv_func___va_copy = yes; then
20291 $as_echo "#define va_copy __va_copy" >>confdefs.h
20293 else
20296 $as_echo "#define va_copy gl_va_copy" >>confdefs.h
20302 if test -n "$STDARG_H"; then
20303 GL_GENERATE_STDARG_H_TRUE=
20304 GL_GENERATE_STDARG_H_FALSE='#'
20305 else
20306 GL_GENERATE_STDARG_H_TRUE='#'
20307 GL_GENERATE_STDARG_H_FALSE=
20315 # Define two additional variables used in the Makefile substitution.
20317 if test "$ac_cv_header_stdbool_h" = yes; then
20318 STDBOOL_H=''
20319 else
20320 STDBOOL_H='stdbool.h'
20323 if test -n "$STDBOOL_H"; then
20324 GL_GENERATE_STDBOOL_H_TRUE=
20325 GL_GENERATE_STDBOOL_H_FALSE='#'
20326 else
20327 GL_GENERATE_STDBOOL_H_TRUE='#'
20328 GL_GENERATE_STDBOOL_H_FALSE=
20332 if test "$ac_cv_type__Bool" = yes; then
20333 HAVE__BOOL=1
20334 else
20335 HAVE__BOOL=0
20342 STDDEF_H=
20343 if test $gt_cv_c_wchar_t = no; then
20344 HAVE_WCHAR_T=0
20345 STDDEF_H=stddef.h
20347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
20348 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
20349 if test "${gl_cv_decl_null_works+set}" = set; then :
20350 $as_echo_n "(cached) " >&6
20351 else
20352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20353 /* end confdefs.h. */
20354 #include <stddef.h>
20355 int test[2 * (sizeof NULL == sizeof (void *)) -1];
20358 main ()
20362 return 0;
20364 _ACEOF
20365 if ac_fn_c_try_compile "$LINENO"; then :
20366 gl_cv_decl_null_works=yes
20367 else
20368 gl_cv_decl_null_works=no
20370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
20373 $as_echo "$gl_cv_decl_null_works" >&6; }
20374 if test $gl_cv_decl_null_works = no; then
20375 REPLACE_NULL=1
20376 STDDEF_H=stddef.h
20379 if test -n "$STDDEF_H"; then
20380 GL_GENERATE_STDDEF_H_TRUE=
20381 GL_GENERATE_STDDEF_H_FALSE='#'
20382 else
20383 GL_GENERATE_STDDEF_H_TRUE='#'
20384 GL_GENERATE_STDDEF_H_FALSE=
20387 if test -n "$STDDEF_H"; then
20396 if test $gl_cv_have_include_next = yes; then
20397 gl_cv_next_stddef_h='<'stddef.h'>'
20398 else
20399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
20400 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
20401 if test "${gl_cv_next_stddef_h+set}" = set; then :
20402 $as_echo_n "(cached) " >&6
20403 else
20405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20406 /* end confdefs.h. */
20407 #include <stddef.h>
20409 _ACEOF
20410 case "$host_os" in
20411 aix*) gl_absname_cpp="$ac_cpp -C" ;;
20412 *) gl_absname_cpp="$ac_cpp" ;;
20413 esac
20415 case "$host_os" in
20416 mingw*)
20417 gl_dirsep_regex='[/\\]'
20420 gl_dirsep_regex='\/'
20422 esac
20423 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
20425 gl_header_literal_regex=`echo 'stddef.h' \
20426 | sed -e "$gl_make_literal_regex_sed"`
20427 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20428 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20429 s|^/[^/]|//&|
20433 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20434 sed -n "$gl_absolute_header_sed"`'"'
20438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
20439 $as_echo "$gl_cv_next_stddef_h" >&6; }
20441 NEXT_STDDEF_H=$gl_cv_next_stddef_h
20443 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20444 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20445 gl_next_as_first_directive='<'stddef.h'>'
20446 else
20447 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20448 gl_next_as_first_directive=$gl_cv_next_stddef_h
20450 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
20469 if test $gl_cv_have_include_next = yes; then
20470 gl_cv_next_stdio_h='<'stdio.h'>'
20471 else
20472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
20473 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
20474 if test "${gl_cv_next_stdio_h+set}" = set; then :
20475 $as_echo_n "(cached) " >&6
20476 else
20478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20479 /* end confdefs.h. */
20480 #include <stdio.h>
20482 _ACEOF
20483 case "$host_os" in
20484 aix*) gl_absname_cpp="$ac_cpp -C" ;;
20485 *) gl_absname_cpp="$ac_cpp" ;;
20486 esac
20488 case "$host_os" in
20489 mingw*)
20490 gl_dirsep_regex='[/\\]'
20493 gl_dirsep_regex='\/'
20495 esac
20496 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
20498 gl_header_literal_regex=`echo 'stdio.h' \
20499 | sed -e "$gl_make_literal_regex_sed"`
20500 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20501 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20502 s|^/[^/]|//&|
20506 gl_cv_next_stdio_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20507 sed -n "$gl_absolute_header_sed"`'"'
20511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
20512 $as_echo "$gl_cv_next_stdio_h" >&6; }
20514 NEXT_STDIO_H=$gl_cv_next_stdio_h
20516 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20517 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20518 gl_next_as_first_directive='<'stdio.h'>'
20519 else
20520 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20521 gl_next_as_first_directive=$gl_cv_next_stdio_h
20523 NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
20529 GNULIB_FSCANF=1
20530 GNULIB_SCANF=1
20531 GNULIB_FGETC=1
20532 GNULIB_GETC=1
20533 GNULIB_GETCHAR=1
20534 GNULIB_FGETS=1
20535 GNULIB_FREAD=1
20538 GNULIB_FPRINTF=1
20539 GNULIB_PRINTF=1
20540 GNULIB_VFPRINTF=1
20541 GNULIB_VPRINTF=1
20542 GNULIB_FPUTC=1
20543 GNULIB_PUTC=1
20544 GNULIB_PUTCHAR=1
20545 GNULIB_FPUTS=1
20546 GNULIB_PUTS=1
20547 GNULIB_FWRITE=1
20563 if test $gl_cv_have_include_next = yes; then
20564 gl_cv_next_stdlib_h='<'stdlib.h'>'
20565 else
20566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
20567 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
20568 if test "${gl_cv_next_stdlib_h+set}" = set; then :
20569 $as_echo_n "(cached) " >&6
20570 else
20572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20573 /* end confdefs.h. */
20574 #include <stdlib.h>
20576 _ACEOF
20577 case "$host_os" in
20578 aix*) gl_absname_cpp="$ac_cpp -C" ;;
20579 *) gl_absname_cpp="$ac_cpp" ;;
20580 esac
20582 case "$host_os" in
20583 mingw*)
20584 gl_dirsep_regex='[/\\]'
20587 gl_dirsep_regex='\/'
20589 esac
20590 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
20592 gl_header_literal_regex=`echo 'stdlib.h' \
20593 | sed -e "$gl_make_literal_regex_sed"`
20594 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20595 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20596 s|^/[^/]|//&|
20600 gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20601 sed -n "$gl_absolute_header_sed"`'"'
20605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
20606 $as_echo "$gl_cv_next_stdlib_h" >&6; }
20608 NEXT_STDLIB_H=$gl_cv_next_stdlib_h
20610 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20611 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20612 gl_next_as_first_directive='<'stdlib.h'>'
20613 else
20614 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20615 gl_next_as_first_directive=$gl_cv_next_stdlib_h
20617 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
20627 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
20635 $as_echo "#define my_strftime nstrftime" >>confdefs.h
20644 if test "$ac_cv_have_decl_strtoimax" != yes; then
20645 HAVE_DECL_STRTOIMAX=0
20648 if test $ac_cv_func_strtoimax = yes; then
20649 HAVE_STRTOIMAX=1
20650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtoimax works" >&5
20651 $as_echo_n "checking whether strtoimax works... " >&6; }
20652 if test "${gl_cv_func_strtoimax+set}" = set; then :
20653 $as_echo_n "(cached) " >&6
20654 else
20655 if test "$cross_compiling" = yes; then :
20656 case "$host_os" in
20657 # Guess no on AIX 5.
20658 aix5*) gl_cv_func_strtoimax="guessing no" ;;
20659 # Guess yes otherwise.
20660 *) gl_cv_func_strtoimax="guessing yes" ;;
20661 esac
20663 else
20664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20665 /* end confdefs.h. */
20667 #include <errno.h>
20668 #include <string.h>
20669 #include <inttypes.h>
20670 int main ()
20672 if (sizeof (intmax_t) > sizeof (int))
20674 const char *s = "4294967295";
20675 char *p;
20676 intmax_t res;
20677 errno = 0;
20678 res = strtoimax (s, &p, 10);
20679 if (p != s + strlen (s))
20680 return 1;
20681 if (errno != 0)
20682 return 2;
20683 if (res != (intmax_t) 65535 * (intmax_t) 65537)
20684 return 3;
20686 else
20688 const char *s = "2147483647";
20689 char *p;
20690 intmax_t res;
20691 errno = 0;
20692 res = strtoimax (s, &p, 10);
20693 if (p != s + strlen (s))
20694 return 1;
20695 if (errno != 0)
20696 return 2;
20697 if (res != 2147483647)
20698 return 3;
20700 return 0;
20703 _ACEOF
20704 if ac_fn_c_try_run "$LINENO"; then :
20705 gl_cv_func_strtoimax=yes
20706 else
20707 gl_cv_func_strtoimax=no
20709 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20710 conftest.$ac_objext conftest.beam conftest.$ac_ext
20715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strtoimax" >&5
20716 $as_echo "$gl_cv_func_strtoimax" >&6; }
20717 case "$gl_cv_func_strtoimax" in
20718 *no) REPLACE_STRTOIMAX=1 ;;
20719 esac
20720 else
20721 HAVE_STRTOIMAX=0
20724 if test $HAVE_STRTOIMAX = 0 || test $REPLACE_STRTOIMAX = 1; then
20733 gl_LIBOBJS="$gl_LIBOBJS strtoimax.$ac_objext"
20736 ac_fn_c_check_decl "$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
20737 if test "x$ac_cv_have_decl_strtoll" = x""yes; then :
20738 ac_have_decl=1
20739 else
20740 ac_have_decl=0
20743 cat >>confdefs.h <<_ACEOF
20744 #define HAVE_DECL_STRTOLL $ac_have_decl
20745 _ACEOF
20755 GNULIB_STRTOIMAX=1
20765 if test "$ac_cv_have_decl_strtoumax" != yes; then
20766 HAVE_DECL_STRTOUMAX=0
20769 if test $ac_cv_func_strtoumax = no; then
20778 gl_LIBOBJS="$gl_LIBOBJS strtoumax.$ac_objext"
20781 ac_fn_c_check_decl "$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
20782 if test "x$ac_cv_have_decl_strtoull" = x""yes; then :
20783 ac_have_decl=1
20784 else
20785 ac_have_decl=0
20788 cat >>confdefs.h <<_ACEOF
20789 #define HAVE_DECL_STRTOULL $ac_have_decl
20790 _ACEOF
20800 GNULIB_STRTOUMAX=1
20808 if test $ac_cv_func_symlink = no; then
20809 HAVE_SYMLINK=0
20810 else
20811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symlink handles trailing slash correctly" >&5
20812 $as_echo_n "checking whether symlink handles trailing slash correctly... " >&6; }
20813 if test "${gl_cv_func_symlink_works+set}" = set; then :
20814 $as_echo_n "(cached) " >&6
20815 else
20816 if test "$cross_compiling" = yes; then :
20817 case "$host_os" in
20818 # Guess yes on glibc systems.
20819 *-gnu*) gl_cv_func_symlink_works="guessing yes" ;;
20820 # If we don't know, assume the worst.
20821 *) gl_cv_func_symlink_works="guessing no" ;;
20822 esac
20824 else
20825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20826 /* end confdefs.h. */
20827 #include <unistd.h>
20830 main ()
20832 int result = 0;
20833 if (!symlink ("a", "conftest.link/"))
20834 result |= 1;
20835 if (symlink ("conftest.f", "conftest.lnk2"))
20836 result |= 2;
20837 else if (!symlink ("a", "conftest.lnk2/"))
20838 result |= 4;
20839 return result;
20842 return 0;
20844 _ACEOF
20845 if ac_fn_c_try_run "$LINENO"; then :
20846 gl_cv_func_symlink_works=yes
20847 else
20848 gl_cv_func_symlink_works=no
20850 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20851 conftest.$ac_objext conftest.beam conftest.$ac_ext
20854 rm -f conftest.f conftest.link conftest.lnk2
20856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_symlink_works" >&5
20857 $as_echo "$gl_cv_func_symlink_works" >&6; }
20858 case "$gl_cv_func_symlink_works" in
20859 *yes) ;;
20861 REPLACE_SYMLINK=1
20863 esac
20866 if test $HAVE_SYMLINK = 0 || test $REPLACE_SYMLINK = 1; then
20875 gl_LIBOBJS="$gl_LIBOBJS symlink.$ac_objext"
20883 GNULIB_SYMLINK=1
20905 if test $gl_cv_have_include_next = yes; then
20906 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
20907 else
20908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
20909 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
20910 if test "${gl_cv_next_sys_stat_h+set}" = set; then :
20911 $as_echo_n "(cached) " >&6
20912 else
20914 if test $ac_cv_header_sys_stat_h = yes; then
20917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20918 /* end confdefs.h. */
20919 #include <sys/stat.h>
20921 _ACEOF
20922 case "$host_os" in
20923 aix*) gl_absname_cpp="$ac_cpp -C" ;;
20924 *) gl_absname_cpp="$ac_cpp" ;;
20925 esac
20927 case "$host_os" in
20928 mingw*)
20929 gl_dirsep_regex='[/\\]'
20932 gl_dirsep_regex='\/'
20934 esac
20935 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
20937 gl_header_literal_regex=`echo 'sys/stat.h' \
20938 | sed -e "$gl_make_literal_regex_sed"`
20939 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20940 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20941 s|^/[^/]|//&|
20945 gl_cv_next_sys_stat_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20946 sed -n "$gl_absolute_header_sed"`'"'
20947 else
20948 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
20953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
20954 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
20956 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
20958 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20959 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20960 gl_next_as_first_directive='<'sys/stat.h'>'
20961 else
20962 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20963 gl_next_as_first_directive=$gl_cv_next_sys_stat_h
20965 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
20977 if test $WINDOWS_64_BIT_ST_SIZE = 1; then
20979 $as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
20983 ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
20984 #include <sys/stat.h>
20986 if test "x$ac_cv_type_nlink_t" = x""yes; then :
20988 else
20990 $as_echo "#define nlink_t int" >>confdefs.h
21008 if test $gl_cv_have_include_next = yes; then
21009 gl_cv_next_sys_types_h='<'sys/types.h'>'
21010 else
21011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/types.h>" >&5
21012 $as_echo_n "checking absolute name of <sys/types.h>... " >&6; }
21013 if test "${gl_cv_next_sys_types_h+set}" = set; then :
21014 $as_echo_n "(cached) " >&6
21015 else
21017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21018 /* end confdefs.h. */
21019 #include <sys/types.h>
21021 _ACEOF
21022 case "$host_os" in
21023 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21024 *) gl_absname_cpp="$ac_cpp" ;;
21025 esac
21027 case "$host_os" in
21028 mingw*)
21029 gl_dirsep_regex='[/\\]'
21032 gl_dirsep_regex='\/'
21034 esac
21035 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
21037 gl_header_literal_regex=`echo 'sys/types.h' \
21038 | sed -e "$gl_make_literal_regex_sed"`
21039 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21040 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21041 s|^/[^/]|//&|
21045 gl_cv_next_sys_types_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21046 sed -n "$gl_absolute_header_sed"`'"'
21050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_types_h" >&5
21051 $as_echo "$gl_cv_next_sys_types_h" >&6; }
21053 NEXT_SYS_TYPES_H=$gl_cv_next_sys_types_h
21055 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21056 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21057 gl_next_as_first_directive='<'sys/types.h'>'
21058 else
21059 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21060 gl_next_as_first_directive=$gl_cv_next_sys_types_h
21062 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H=$gl_next_as_first_directive
21085 if test $ac_cv_have_decl_localtime_r = no; then
21086 HAVE_DECL_LOCALTIME_R=0
21090 if test $ac_cv_func_localtime_r = yes; then
21091 HAVE_LOCALTIME_R=1
21092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
21093 $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
21094 if test "${gl_cv_time_r_posix+set}" = set; then :
21095 $as_echo_n "(cached) " >&6
21096 else
21097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21098 /* end confdefs.h. */
21099 #include <time.h>
21101 main ()
21103 /* We don't need to append 'restrict's to the argument types,
21104 even though the POSIX signature has the 'restrict's,
21105 since C99 says they can't affect type compatibility. */
21106 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
21107 if (ptr) return 0;
21108 /* Check the return type is a pointer.
21109 On HP-UX 10 it is 'int'. */
21110 *localtime_r (0, 0);
21112 return 0;
21115 _ACEOF
21116 if ac_fn_c_try_compile "$LINENO"; then :
21117 gl_cv_time_r_posix=yes
21118 else
21119 gl_cv_time_r_posix=no
21121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
21125 $as_echo "$gl_cv_time_r_posix" >&6; }
21126 if test $gl_cv_time_r_posix = yes; then
21127 REPLACE_LOCALTIME_R=0
21128 else
21129 REPLACE_LOCALTIME_R=1
21131 else
21132 HAVE_LOCALTIME_R=0
21135 if test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1; then
21144 gl_LIBOBJS="$gl_LIBOBJS time_r.$ac_objext"
21155 GNULIB_TIME_R=1
21175 if test $gl_cv_have_include_next = yes; then
21176 gl_cv_next_unistd_h='<'unistd.h'>'
21177 else
21178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
21179 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
21180 if test "${gl_cv_next_unistd_h+set}" = set; then :
21181 $as_echo_n "(cached) " >&6
21182 else
21184 if test $ac_cv_header_unistd_h = yes; then
21187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21188 /* end confdefs.h. */
21189 #include <unistd.h>
21191 _ACEOF
21192 case "$host_os" in
21193 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21194 *) gl_absname_cpp="$ac_cpp" ;;
21195 esac
21197 case "$host_os" in
21198 mingw*)
21199 gl_dirsep_regex='[/\\]'
21202 gl_dirsep_regex='\/'
21204 esac
21205 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
21207 gl_header_literal_regex=`echo 'unistd.h' \
21208 | sed -e "$gl_make_literal_regex_sed"`
21209 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21210 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21211 s|^/[^/]|//&|
21215 gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21216 sed -n "$gl_absolute_header_sed"`'"'
21217 else
21218 gl_cv_next_unistd_h='<'unistd.h'>'
21223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
21224 $as_echo "$gl_cv_next_unistd_h" >&6; }
21226 NEXT_UNISTD_H=$gl_cv_next_unistd_h
21228 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21229 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21230 gl_next_as_first_directive='<'unistd.h'>'
21231 else
21232 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21233 gl_next_as_first_directive=$gl_cv_next_unistd_h
21235 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
21240 if test $ac_cv_header_unistd_h = yes; then
21241 HAVE_UNISTD_H=1
21242 else
21243 HAVE_UNISTD_H=0
21253 gl_gnulib_enabled_dosname=false
21254 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36=false
21255 gl_gnulib_enabled_pathmax=false
21256 gl_gnulib_enabled_sigprocmask=false
21257 gl_gnulib_enabled_stat=false
21258 gl_gnulib_enabled_strtoll=false
21259 gl_gnulib_enabled_strtoull=false
21260 gl_gnulib_enabled_verify=false
21261 func_gl_gnulib_m4code_dosname ()
21263 if ! $gl_gnulib_enabled_dosname; then
21264 gl_gnulib_enabled_dosname=true
21267 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36 ()
21269 if ! $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
21272 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36=true
21275 func_gl_gnulib_m4code_pathmax ()
21277 if ! $gl_gnulib_enabled_pathmax; then
21281 gl_gnulib_enabled_pathmax=true
21284 func_gl_gnulib_m4code_sigprocmask ()
21286 if ! $gl_gnulib_enabled_sigprocmask; then
21290 if test $gl_cv_type_sigset_t = yes; then
21291 ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask"
21292 if test "x$ac_cv_func_sigprocmask" = x""yes; then :
21293 gl_cv_func_sigprocmask=1
21297 if test -z "$gl_cv_func_sigprocmask"; then
21298 HAVE_POSIX_SIGNALBLOCKING=0
21301 if test $HAVE_POSIX_SIGNALBLOCKING = 0; then
21310 gl_LIBOBJS="$gl_LIBOBJS sigprocmask.$ac_objext"
21321 GNULIB_SIGPROCMASK=1
21327 gl_gnulib_enabled_sigprocmask=true
21330 func_gl_gnulib_m4code_stat ()
21332 if ! $gl_gnulib_enabled_stat; then
21336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
21337 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
21338 if test "${gl_cv_func_stat_dir_slash+set}" = set; then :
21339 $as_echo_n "(cached) " >&6
21340 else
21341 if test "$cross_compiling" = yes; then :
21342 case $host_os in
21343 mingw*) gl_cv_func_stat_dir_slash="guessing no";;
21344 *) gl_cv_func_stat_dir_slash="guessing yes";;
21345 esac
21346 else
21347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21348 /* end confdefs.h. */
21349 #include <sys/stat.h>
21352 main ()
21354 struct stat st; return stat (".", &st) != stat ("./", &st);
21356 return 0;
21358 _ACEOF
21359 if ac_fn_c_try_run "$LINENO"; then :
21360 gl_cv_func_stat_dir_slash=yes
21361 else
21362 gl_cv_func_stat_dir_slash=no
21364 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21365 conftest.$ac_objext conftest.beam conftest.$ac_ext
21369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
21370 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
21371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
21372 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
21373 if test "${gl_cv_func_stat_file_slash+set}" = set; then :
21374 $as_echo_n "(cached) " >&6
21375 else
21376 touch conftest.tmp
21377 # Assume that if we have lstat, we can also check symlinks.
21378 if test $ac_cv_func_lstat = yes; then
21379 ln -s conftest.tmp conftest.lnk
21381 if test "$cross_compiling" = yes; then :
21382 case "$host_os" in
21383 # Guess yes on glibc systems.
21384 *-gnu*) gl_cv_func_stat_file_slash="guessing yes" ;;
21385 # If we don't know, assume the worst.
21386 *) gl_cv_func_stat_file_slash="guessing no" ;;
21387 esac
21389 else
21390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21391 /* end confdefs.h. */
21392 #include <sys/stat.h>
21395 main ()
21397 int result = 0;
21398 struct stat st;
21399 if (!stat ("conftest.tmp/", &st))
21400 result |= 1;
21401 #if HAVE_LSTAT
21402 if (!stat ("conftest.lnk/", &st))
21403 result |= 2;
21404 #endif
21405 return result;
21408 return 0;
21410 _ACEOF
21411 if ac_fn_c_try_run "$LINENO"; then :
21412 gl_cv_func_stat_file_slash=yes
21413 else
21414 gl_cv_func_stat_file_slash=no
21416 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21417 conftest.$ac_objext conftest.beam conftest.$ac_ext
21420 rm -f conftest.tmp conftest.lnk
21422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
21423 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
21424 case $gl_cv_func_stat_dir_slash in
21425 *no) REPLACE_STAT=1
21427 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
21429 esac
21430 case $gl_cv_func_stat_file_slash in
21431 *no) REPLACE_STAT=1
21433 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
21435 esac
21437 if test $REPLACE_STAT = 1; then
21446 gl_LIBOBJS="$gl_LIBOBJS stat.$ac_objext"
21458 GNULIB_STAT=1
21464 gl_gnulib_enabled_stat=true
21465 if test $REPLACE_STAT = 1; then
21466 func_gl_gnulib_m4code_dosname
21468 if test $REPLACE_STAT = 1; then
21469 func_gl_gnulib_m4code_pathmax
21471 if test $REPLACE_STAT = 1; then
21472 func_gl_gnulib_m4code_verify
21476 func_gl_gnulib_m4code_strtoll ()
21478 if ! $gl_gnulib_enabled_strtoll; then
21482 if test "$ac_cv_type_long_long_int" = yes; then
21483 for ac_func in strtoll
21484 do :
21485 ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
21486 if test "x$ac_cv_func_strtoll" = x""yes; then :
21487 cat >>confdefs.h <<_ACEOF
21488 #define HAVE_STRTOLL 1
21489 _ACEOF
21492 done
21494 if test $ac_cv_func_strtoll = no; then
21495 HAVE_STRTOLL=0
21499 if test $HAVE_STRTOLL = 0; then
21508 gl_LIBOBJS="$gl_LIBOBJS strtoll.$ac_objext"
21519 GNULIB_STRTOLL=1
21525 gl_gnulib_enabled_strtoll=true
21528 func_gl_gnulib_m4code_strtoull ()
21530 if ! $gl_gnulib_enabled_strtoull; then
21534 if test "$ac_cv_type_unsigned_long_long_int" = yes; then
21535 for ac_func in strtoull
21536 do :
21537 ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
21538 if test "x$ac_cv_func_strtoull" = x""yes; then :
21539 cat >>confdefs.h <<_ACEOF
21540 #define HAVE_STRTOULL 1
21541 _ACEOF
21544 done
21546 if test $ac_cv_func_strtoull = no; then
21547 HAVE_STRTOULL=0
21551 if test $HAVE_STRTOULL = 0; then
21560 gl_LIBOBJS="$gl_LIBOBJS strtoull.$ac_objext"
21571 GNULIB_STRTOULL=1
21577 gl_gnulib_enabled_strtoull=true
21580 func_gl_gnulib_m4code_verify ()
21582 if ! $gl_gnulib_enabled_verify; then
21583 gl_gnulib_enabled_verify=true
21586 if test $REPLACE_GETOPT = 1; then
21587 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36
21589 if test $REPLACE_LSTAT = 1; then
21590 func_gl_gnulib_m4code_dosname
21592 if test $REPLACE_LSTAT = 1; then
21593 func_gl_gnulib_m4code_stat
21595 if test $HAVE_PTHREAD_SIGMASK = 0 || test $REPLACE_PTHREAD_SIGMASK = 1; then
21596 func_gl_gnulib_m4code_sigprocmask
21598 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
21599 func_gl_gnulib_m4code_stat
21601 if { test $HAVE_STRTOIMAX = 0 || test $REPLACE_STRTOIMAX = 1; } && test $ac_cv_type_long_long_int = yes; then
21602 func_gl_gnulib_m4code_strtoll
21604 if test $HAVE_STRTOIMAX = 0 || test $REPLACE_STRTOIMAX = 1; then
21605 func_gl_gnulib_m4code_verify
21607 if test $ac_cv_func_strtoumax = no && test $ac_cv_type_unsigned_long_long_int = yes; then
21608 func_gl_gnulib_m4code_strtoull
21610 if test $ac_cv_func_strtoumax = no; then
21611 func_gl_gnulib_m4code_verify
21614 if $gl_gnulib_enabled_dosname; then
21615 gl_GNULIB_ENABLED_dosname_TRUE=
21616 gl_GNULIB_ENABLED_dosname_FALSE='#'
21617 else
21618 gl_GNULIB_ENABLED_dosname_TRUE='#'
21619 gl_GNULIB_ENABLED_dosname_FALSE=
21622 if $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
21623 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE=
21624 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE='#'
21625 else
21626 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE='#'
21627 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE=
21630 if $gl_gnulib_enabled_pathmax; then
21631 gl_GNULIB_ENABLED_pathmax_TRUE=
21632 gl_GNULIB_ENABLED_pathmax_FALSE='#'
21633 else
21634 gl_GNULIB_ENABLED_pathmax_TRUE='#'
21635 gl_GNULIB_ENABLED_pathmax_FALSE=
21638 if $gl_gnulib_enabled_sigprocmask; then
21639 gl_GNULIB_ENABLED_sigprocmask_TRUE=
21640 gl_GNULIB_ENABLED_sigprocmask_FALSE='#'
21641 else
21642 gl_GNULIB_ENABLED_sigprocmask_TRUE='#'
21643 gl_GNULIB_ENABLED_sigprocmask_FALSE=
21646 if $gl_gnulib_enabled_stat; then
21647 gl_GNULIB_ENABLED_stat_TRUE=
21648 gl_GNULIB_ENABLED_stat_FALSE='#'
21649 else
21650 gl_GNULIB_ENABLED_stat_TRUE='#'
21651 gl_GNULIB_ENABLED_stat_FALSE=
21654 if $gl_gnulib_enabled_strtoll; then
21655 gl_GNULIB_ENABLED_strtoll_TRUE=
21656 gl_GNULIB_ENABLED_strtoll_FALSE='#'
21657 else
21658 gl_GNULIB_ENABLED_strtoll_TRUE='#'
21659 gl_GNULIB_ENABLED_strtoll_FALSE=
21662 if $gl_gnulib_enabled_strtoull; then
21663 gl_GNULIB_ENABLED_strtoull_TRUE=
21664 gl_GNULIB_ENABLED_strtoull_FALSE='#'
21665 else
21666 gl_GNULIB_ENABLED_strtoull_TRUE='#'
21667 gl_GNULIB_ENABLED_strtoull_FALSE=
21670 if $gl_gnulib_enabled_verify; then
21671 gl_GNULIB_ENABLED_verify_TRUE=
21672 gl_GNULIB_ENABLED_verify_FALSE='#'
21673 else
21674 gl_GNULIB_ENABLED_verify_TRUE='#'
21675 gl_GNULIB_ENABLED_verify_FALSE=
21678 # End of code from modules
21688 gltests_libdeps=
21689 gltests_ltlibdeps=
21699 gl_source_base='tests'
21700 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
21702 gl_module_indicator_condition=$gltests_WITNESS
21713 LIBGNU_LIBDEPS="$gl_libdeps"
21715 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
21719 case "$opsys" in
21720 aix4-2) LD_SWITCH_SYSTEM_TEMACS="-Wl,-bnodelcsect" ;;
21722 darwin)
21723 ## The -headerpad option tells ld (see man page) to leave room at the
21724 ## end of the header for adding load commands. Needed for dumping.
21725 ## 0x690 is the total size of 30 segment load commands (at 56
21726 ## each); under Cocoa 31 commands are required.
21727 if test "$HAVE_NS" = "yes"; then
21728 libs_nsgui="-framework AppKit"
21729 headerpad_extra=6C8
21730 else
21731 libs_nsgui=
21732 headerpad_extra=690
21734 LD_SWITCH_SYSTEM_TEMACS="-fno-pie -prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
21736 ## This is here because src/Makefile.in did some extra fiddling around
21737 ## with LD_SWITCH_SYSTEM. The cpp logic was:
21738 ## #ifndef LD_SWITCH_SYSTEM
21739 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
21740 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
21741 ## not using gcc, darwin.
21742 ## Because this was done in src/Makefile.in, the resulting part of
21743 ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link).
21744 ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS,
21745 ## rather than LD_SWITCH_SYSTEM.
21746 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
21747 LD_SWITCH_SYSTEM_TEMACS="-X $LD_SWITCH_SYSTEM_TEMACS"
21750 ## LD_SWITCH_X_SITE_RPATH is a -rpath option saying where to
21751 ## find X at run-time.
21752 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at the
21753 ## point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_RPATH
21754 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
21755 ## had different values in configure (in ac_link) and src/Makefile.in.
21756 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
21757 gnu*) LD_SWITCH_SYSTEM_TEMACS="\$(LD_SWITCH_X_SITE_RPATH)" ;;
21759 *) LD_SWITCH_SYSTEM_TEMACS= ;;
21760 esac
21762 if test "$NS_IMPL_GNUSTEP" = "yes"; then
21763 LD_SWITCH_SYSTEM_TEMACS="${LD_SWITCH_SYSTEM_TEMACS} -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES} -lgnustep-gui -lgnustep-base -lobjc -lpthread"
21769 LD_FIRSTFLAG=
21770 ORDINARY_LINK=
21771 case "$opsys" in
21772 ## gnu: GNU needs its own crt0.
21773 aix4-2|cygwin|darwin|gnu|hpux*|irix6-5|sol2*|unixware) ORDINARY_LINK=yes ;;
21775 ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the
21776 ## library search parth, i.e. it won't search /usr/lib for libc and
21777 ## friends. Using -nostartfiles instead avoids this problem, and
21778 ## will also work on earlier NetBSD releases.
21779 netbsd|openbsd) LD_FIRSTFLAG="-nostartfiles" ;;
21781 ## powerpc*: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
21782 ## MkLinux/LinuxPPC needs this.
21783 ## s390x-* only supports opsys = gnu-linux so it can be added here.
21784 gnu-*)
21785 case "$canonical" in
21786 powerpc*|s390x-*) LD_FIRSTFLAG="-nostdlib" ;;
21787 esac
21789 esac
21792 if test "x$ORDINARY_LINK" = "xyes"; then
21794 LD_FIRSTFLAG=""
21796 $as_echo "#define ORDINARY_LINK 1" >>confdefs.h
21799 ## The system files defining neither ORDINARY_LINK nor LD_FIRSTFLAG are:
21800 ## freebsd, gnu-* not on powerpc*|s390x*.
21801 elif test "x$GCC" = "xyes" && test "x$LD_FIRSTFLAG" = "x"; then
21803 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
21804 ## places that are difficult to figure out at make time. Fortunately,
21805 ## these same versions allow you to pass arbitrary flags on to the
21806 ## linker, so there is no reason not to use it as a linker.
21808 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from
21809 ## searching for libraries in its internal directories, so we have to
21810 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below).
21811 LD_FIRSTFLAG="-nostdlib"
21814 ## FIXME? What setting of EDIT_LDFLAGS should this have?
21815 test "$NS_IMPL_GNUSTEP" = "yes" && LD_FIRSTFLAG="-rdynamic"
21820 ## FIXME? The logic here is not precisely the same as that above.
21821 ## There is no check here for a pre-defined LD_FIRSTFLAG.
21822 ## Should we only be setting LIB_GCC if LD ~ -nostdlib?
21823 LIB_GCC=
21824 if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
21826 case "$opsys" in
21827 freebsd|netbsd|openbsd) LIB_GCC= ;;
21829 gnu-*)
21830 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
21831 ## build on ARM EABI under GNU/Linux. (Bug#5518)
21832 case $host_cpu in
21833 arm*)
21834 LIB_GCC="-lgcc_s"
21837 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
21838 ## immediately undefine it again and redefine it to empty.
21839 ## Was the C_SWITCH_X_SITE part really necessary?
21840 ## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
21841 LIB_GCC=
21843 esac
21846 ## Ask GCC where to find libgcc.a.
21847 *) LIB_GCC=`$CC -print-libgcc-file-name 2> /dev/null` ;;
21848 esac
21852 ## If we're using X11/GNUstep, define some consequences.
21853 if test "$HAVE_X_WINDOWS" = "yes" || test "$HAVE_NS" = "yes"; then
21855 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
21858 $as_echo "#define HAVE_MOUSE 1" >>confdefs.h
21865 #### Report on what we decided to do.
21866 #### Report GTK as a toolkit, even if it doesn't use Xt.
21867 #### It makes printing result more understandable as using GTK sets
21868 #### toolkit_scroll_bars to yes by default.
21869 if test "${HAVE_GTK}" = "yes"; then
21870 USE_X_TOOLKIT=GTK
21873 echo "
21874 Configured for \`${canonical}'.
21876 Where should the build process find the source code? ${srcdir}
21877 What operating system file should Emacs use? ${opsysfile-none}
21878 What compiler should emacs be built with? ${CC} ${CFLAGS}
21879 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
21880 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
21881 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
21882 What window system should Emacs use? ${window_system}
21883 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
21885 if test -n "${x_includes}"; then
21886 echo " Where do we find X Windows header files? ${x_includes}"
21887 else
21888 echo " Where do we find X Windows header files? Standard dirs"
21890 if test -n "${x_libraries}"; then
21891 echo " Where do we find X Windows libraries? ${x_libraries}"
21892 else
21893 echo " Where do we find X Windows libraries? Standard dirs"
21896 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
21897 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
21898 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
21899 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
21900 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
21901 echo " Does Emacs use -lpng? ${HAVE_PNG}"
21902 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
21903 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
21905 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
21906 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
21907 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
21908 echo " Does Emacs use GSettings? ${HAVE_GSETTINGS}"
21909 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
21910 echo " Does Emacs use -lgnutls? ${HAVE_GNUTLS}"
21911 echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
21913 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
21914 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
21915 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
21916 echo " Does Emacs use -lxft? ${HAVE_XFT}"
21918 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
21919 echo
21921 if test -n "${EMACSDATA}"; then
21922 echo " Environment variable EMACSDATA set to: $EMACSDATA"
21924 if test -n "${EMACSDOC}"; then
21925 echo " Environment variable EMACSDOC set to: $EMACSDOC"
21928 if test $USE_XASSERTS = yes; then
21929 echo " Compiling with asserts turned on."
21930 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
21933 echo
21935 if test "$HAVE_NS" = "yes"; then
21936 echo
21937 echo "You must run \"${MAKE-make} install\" in order to test the built application.
21938 The installed application will go to nextstep/Emacs.app and can be
21939 run or moved from there."
21940 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
21941 echo "The application will be fully self-contained."
21942 else
21943 echo "The lisp resources for the application will be installed under ${prefix}.
21944 You may need to run \"${MAKE-make} install\" with sudo. The application will fail
21945 to run if these resources are not installed."
21947 echo
21950 if test "${opsys}" = "cygwin"; then
21951 case `uname -r` in
21952 1.5.*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: building Emacs on Cygwin 1.5 is not supported." >&5
21953 $as_echo "$as_me: WARNING: building Emacs on Cygwin 1.5 is not supported." >&2;}
21954 echo
21956 esac
21959 # Remove any trailing slashes in these variables.
21960 test "${prefix}" != NONE &&
21961 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
21962 test "${exec_prefix}" != NONE &&
21963 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
21965 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"
21967 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"
21970 opt_makefile=test/automated/Makefile
21972 if test -f $srcdir/${opt_makefile}.in; then
21973 SUBDIR_MAKEFILES="$SUBDIR_MAKEFILES $opt_makefile"
21974 ac_config_files="$ac_config_files test/automated/Makefile"
21979 opt_makefile=admin/unidata/Makefile
21981 if test -f $srcdir/${opt_makefile}.in; then
21982 SUBDIR_MAKEFILES="$SUBDIR_MAKEFILES $opt_makefile"
21983 ac_config_files="$ac_config_files admin/unidata/Makefile"
21988 SUBDIR_MAKEFILES_IN=`echo " ${SUBDIR_MAKEFILES}" | sed -e 's| | $(srcdir)/|g' -e 's|Makefile|Makefile.in|g'`
21992 ac_config_commands="$ac_config_commands mkdirs"
21995 ac_config_commands="$ac_config_commands epaths"
21998 ac_config_commands="$ac_config_commands gdbinit"
22001 cat >confcache <<\_ACEOF
22002 # This file is a shell script that caches the results of configure
22003 # tests run on this system so they can be shared between configure
22004 # scripts and configure runs, see configure's option --config-cache.
22005 # It is not useful on other systems. If it contains results you don't
22006 # want to keep, you may remove or edit it.
22008 # config.status only pays attention to the cache file if you give it
22009 # the --recheck option to rerun configure.
22011 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22012 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22013 # following values.
22015 _ACEOF
22017 # The following way of writing the cache mishandles newlines in values,
22018 # but we know of no workaround that is simple, portable, and efficient.
22019 # So, we kill variables containing newlines.
22020 # Ultrix sh set writes to stderr and can't be redirected directly,
22021 # and sets the high bit in the cache file unless we assign to the vars.
22023 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22024 eval ac_val=\$$ac_var
22025 case $ac_val in #(
22026 *${as_nl}*)
22027 case $ac_var in #(
22028 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
22029 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
22030 esac
22031 case $ac_var in #(
22032 _ | IFS | as_nl) ;; #(
22033 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
22034 *) { eval $ac_var=; unset $ac_var;} ;;
22035 esac ;;
22036 esac
22037 done
22039 (set) 2>&1 |
22040 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22041 *${as_nl}ac_space=\ *)
22042 # `set' does not quote correctly, so add quotes: double-quote
22043 # substitution turns \\\\ into \\, and sed turns \\ into \.
22044 sed -n \
22045 "s/'/'\\\\''/g;
22046 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22047 ;; #(
22049 # `set' quotes correctly as required by POSIX, so do not add quotes.
22050 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22052 esac |
22053 sort
22055 sed '
22056 /^ac_cv_env_/b end
22057 t clear
22058 :clear
22059 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22060 t end
22061 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22062 :end' >>confcache
22063 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22064 if test -w "$cache_file"; then
22065 test "x$cache_file" != "x/dev/null" &&
22066 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
22067 $as_echo "$as_me: updating cache $cache_file" >&6;}
22068 cat confcache >$cache_file
22069 else
22070 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
22071 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22074 rm -f confcache
22076 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22077 # Let make expand exec_prefix.
22078 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22080 DEFS=-DHAVE_CONFIG_H
22082 ac_libobjs=
22083 ac_ltlibobjs=
22084 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22085 # 1. Remove the extension, and $U if already installed.
22086 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22087 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
22088 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22089 # will be set to the directory where LIBOBJS objects are built.
22090 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22091 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
22092 done
22093 LIBOBJS=$ac_libobjs
22095 LTLIBOBJS=$ac_ltlibobjs
22098 if test -n "$EXEEXT"; then
22099 am__EXEEXT_TRUE=
22100 am__EXEEXT_FALSE='#'
22101 else
22102 am__EXEEXT_TRUE='#'
22103 am__EXEEXT_FALSE=
22106 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22107 as_fn_error "conditional \"AMDEP\" was never defined.
22108 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22110 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22111 as_fn_error "conditional \"am__fastdepCC\" was never defined.
22112 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22114 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
22115 as_fn_error "conditional \"GL_COND_LIBTOOL\" was never defined.
22116 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22118 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
22119 as_fn_error "conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
22120 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22123 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
22124 as_fn_error "conditional \"GL_GENERATE_STDINT_H\" was never defined.
22125 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22127 if test -z "${GL_GENERATE_STDALIGN_H_TRUE}" && test -z "${GL_GENERATE_STDALIGN_H_FALSE}"; then
22128 as_fn_error "conditional \"GL_GENERATE_STDALIGN_H\" was never defined.
22129 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22131 if test -z "${GL_GENERATE_STDARG_H_TRUE}" && test -z "${GL_GENERATE_STDARG_H_FALSE}"; then
22132 as_fn_error "conditional \"GL_GENERATE_STDARG_H\" was never defined.
22133 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22135 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
22136 as_fn_error "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
22137 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22139 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
22140 as_fn_error "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
22141 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22143 if test -z "${gl_GNULIB_ENABLED_dosname_TRUE}" && test -z "${gl_GNULIB_ENABLED_dosname_FALSE}"; then
22144 as_fn_error "conditional \"gl_GNULIB_ENABLED_dosname\" was never defined.
22145 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22147 if test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE}" && test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE}"; then
22148 as_fn_error "conditional \"gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36\" was never defined.
22149 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22151 if test -z "${gl_GNULIB_ENABLED_pathmax_TRUE}" && test -z "${gl_GNULIB_ENABLED_pathmax_FALSE}"; then
22152 as_fn_error "conditional \"gl_GNULIB_ENABLED_pathmax\" was never defined.
22153 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22155 if test -z "${gl_GNULIB_ENABLED_sigprocmask_TRUE}" && test -z "${gl_GNULIB_ENABLED_sigprocmask_FALSE}"; then
22156 as_fn_error "conditional \"gl_GNULIB_ENABLED_sigprocmask\" was never defined.
22157 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22159 if test -z "${gl_GNULIB_ENABLED_stat_TRUE}" && test -z "${gl_GNULIB_ENABLED_stat_FALSE}"; then
22160 as_fn_error "conditional \"gl_GNULIB_ENABLED_stat\" was never defined.
22161 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22163 if test -z "${gl_GNULIB_ENABLED_strtoll_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoll_FALSE}"; then
22164 as_fn_error "conditional \"gl_GNULIB_ENABLED_strtoll\" was never defined.
22165 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22167 if test -z "${gl_GNULIB_ENABLED_strtoull_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoull_FALSE}"; then
22168 as_fn_error "conditional \"gl_GNULIB_ENABLED_strtoull\" was never defined.
22169 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22171 if test -z "${gl_GNULIB_ENABLED_verify_TRUE}" && test -z "${gl_GNULIB_ENABLED_verify_FALSE}"; then
22172 as_fn_error "conditional \"gl_GNULIB_ENABLED_verify\" was never defined.
22173 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22176 gl_libobjs=
22177 gl_ltlibobjs=
22178 if test -n "$gl_LIBOBJS"; then
22179 # Remove the extension.
22180 sed_drop_objext='s/\.o$//;s/\.obj$//'
22181 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
22182 gl_libobjs="$gl_libobjs $i.$ac_objext"
22183 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
22184 done
22186 gl_LIBOBJS=$gl_libobjs
22188 gl_LTLIBOBJS=$gl_ltlibobjs
22192 gltests_libobjs=
22193 gltests_ltlibobjs=
22194 if test -n "$gltests_LIBOBJS"; then
22195 # Remove the extension.
22196 sed_drop_objext='s/\.o$//;s/\.obj$//'
22197 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
22198 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
22199 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
22200 done
22202 gltests_LIBOBJS=$gltests_libobjs
22204 gltests_LTLIBOBJS=$gltests_ltlibobjs
22208 : ${CONFIG_STATUS=./config.status}
22209 ac_write_fail=0
22210 ac_clean_files_save=$ac_clean_files
22211 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22212 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
22213 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
22214 as_write_fail=0
22215 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
22216 #! $SHELL
22217 # Generated by $as_me.
22218 # Run this file to recreate the current configuration.
22219 # Compiler output produced by configure, useful for debugging
22220 # configure, is in config.log if it exists.
22222 debug=false
22223 ac_cs_recheck=false
22224 ac_cs_silent=false
22226 SHELL=\${CONFIG_SHELL-$SHELL}
22227 export SHELL
22228 _ASEOF
22229 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
22230 ## -------------------- ##
22231 ## M4sh Initialization. ##
22232 ## -------------------- ##
22234 # Be more Bourne compatible
22235 DUALCASE=1; export DUALCASE # for MKS sh
22236 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22237 emulate sh
22238 NULLCMD=:
22239 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
22240 # is contrary to our usage. Disable this feature.
22241 alias -g '${1+"$@"}'='"$@"'
22242 setopt NO_GLOB_SUBST
22243 else
22244 case `(set -o) 2>/dev/null` in #(
22245 *posix*) :
22246 set -o posix ;; #(
22247 *) :
22249 esac
22253 as_nl='
22255 export as_nl
22256 # Printing a long string crashes Solaris 7 /usr/bin/printf.
22257 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
22258 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
22259 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
22260 # Prefer a ksh shell builtin over an external printf program on Solaris,
22261 # but without wasting forks for bash or zsh.
22262 if test -z "$BASH_VERSION$ZSH_VERSION" \
22263 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
22264 as_echo='print -r --'
22265 as_echo_n='print -rn --'
22266 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
22267 as_echo='printf %s\n'
22268 as_echo_n='printf %s'
22269 else
22270 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
22271 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
22272 as_echo_n='/usr/ucb/echo -n'
22273 else
22274 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
22275 as_echo_n_body='eval
22276 arg=$1;
22277 case $arg in #(
22278 *"$as_nl"*)
22279 expr "X$arg" : "X\\(.*\\)$as_nl";
22280 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
22281 esac;
22282 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
22284 export as_echo_n_body
22285 as_echo_n='sh -c $as_echo_n_body as_echo'
22287 export as_echo_body
22288 as_echo='sh -c $as_echo_body as_echo'
22291 # The user is always right.
22292 if test "${PATH_SEPARATOR+set}" != set; then
22293 PATH_SEPARATOR=:
22294 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
22295 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
22296 PATH_SEPARATOR=';'
22301 # IFS
22302 # We need space, tab and new line, in precisely that order. Quoting is
22303 # there to prevent editors from complaining about space-tab.
22304 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22305 # splitting by setting IFS to empty value.)
22306 IFS=" "" $as_nl"
22308 # Find who we are. Look in the path if we contain no directory separator.
22309 case $0 in #((
22310 *[\\/]* ) as_myself=$0 ;;
22311 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22312 for as_dir in $PATH
22314 IFS=$as_save_IFS
22315 test -z "$as_dir" && as_dir=.
22316 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22317 done
22318 IFS=$as_save_IFS
22321 esac
22322 # We did not find ourselves, most probably we were run as `sh COMMAND'
22323 # in which case we are not to be found in the path.
22324 if test "x$as_myself" = x; then
22325 as_myself=$0
22327 if test ! -f "$as_myself"; then
22328 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22329 exit 1
22332 # Unset variables that we do not need and which cause bugs (e.g. in
22333 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
22334 # suppresses any "Segmentation fault" message there. '((' could
22335 # trigger a bug in pdksh 5.2.14.
22336 for as_var in BASH_ENV ENV MAIL MAILPATH
22337 do eval test x\${$as_var+set} = xset \
22338 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
22339 done
22340 PS1='$ '
22341 PS2='> '
22342 PS4='+ '
22344 # NLS nuisances.
22345 LC_ALL=C
22346 export LC_ALL
22347 LANGUAGE=C
22348 export LANGUAGE
22350 # CDPATH.
22351 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22354 # as_fn_error ERROR [LINENO LOG_FD]
22355 # ---------------------------------
22356 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
22357 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22358 # script with status $?, using 1 if that was 0.
22359 as_fn_error ()
22361 as_status=$?; test $as_status -eq 0 && as_status=1
22362 if test "$3"; then
22363 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
22364 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
22366 $as_echo "$as_me: error: $1" >&2
22367 as_fn_exit $as_status
22368 } # as_fn_error
22371 # as_fn_set_status STATUS
22372 # -----------------------
22373 # Set $? to STATUS, without forking.
22374 as_fn_set_status ()
22376 return $1
22377 } # as_fn_set_status
22379 # as_fn_exit STATUS
22380 # -----------------
22381 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
22382 as_fn_exit ()
22384 set +e
22385 as_fn_set_status $1
22386 exit $1
22387 } # as_fn_exit
22389 # as_fn_unset VAR
22390 # ---------------
22391 # Portably unset VAR.
22392 as_fn_unset ()
22394 { eval $1=; unset $1;}
22396 as_unset=as_fn_unset
22397 # as_fn_append VAR VALUE
22398 # ----------------------
22399 # Append the text in VALUE to the end of the definition contained in VAR. Take
22400 # advantage of any shell optimizations that allow amortized linear growth over
22401 # repeated appends, instead of the typical quadratic growth present in naive
22402 # implementations.
22403 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
22404 eval 'as_fn_append ()
22406 eval $1+=\$2
22408 else
22409 as_fn_append ()
22411 eval $1=\$$1\$2
22413 fi # as_fn_append
22415 # as_fn_arith ARG...
22416 # ------------------
22417 # Perform arithmetic evaluation on the ARGs, and store the result in the
22418 # global $as_val. Take advantage of shells that can avoid forks. The arguments
22419 # must be portable across $(()) and expr.
22420 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
22421 eval 'as_fn_arith ()
22423 as_val=$(( $* ))
22425 else
22426 as_fn_arith ()
22428 as_val=`expr "$@" || test $? -eq 1`
22430 fi # as_fn_arith
22433 if expr a : '\(a\)' >/dev/null 2>&1 &&
22434 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22435 as_expr=expr
22436 else
22437 as_expr=false
22440 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22441 as_basename=basename
22442 else
22443 as_basename=false
22446 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22447 as_dirname=dirname
22448 else
22449 as_dirname=false
22452 as_me=`$as_basename -- "$0" ||
22453 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22454 X"$0" : 'X\(//\)$' \| \
22455 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22456 $as_echo X/"$0" |
22457 sed '/^.*\/\([^/][^/]*\)\/*$/{
22458 s//\1/
22461 /^X\/\(\/\/\)$/{
22462 s//\1/
22465 /^X\/\(\/\).*/{
22466 s//\1/
22469 s/.*/./; q'`
22471 # Avoid depending upon Character Ranges.
22472 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22473 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22474 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22475 as_cr_digits='0123456789'
22476 as_cr_alnum=$as_cr_Letters$as_cr_digits
22478 ECHO_C= ECHO_N= ECHO_T=
22479 case `echo -n x` in #(((((
22480 -n*)
22481 case `echo 'xy\c'` in
22482 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
22483 xy) ECHO_C='\c';;
22484 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
22485 ECHO_T=' ';;
22486 esac;;
22488 ECHO_N='-n';;
22489 esac
22491 rm -f conf$$ conf$$.exe conf$$.file
22492 if test -d conf$$.dir; then
22493 rm -f conf$$.dir/conf$$.file
22494 else
22495 rm -f conf$$.dir
22496 mkdir conf$$.dir 2>/dev/null
22498 if (echo >conf$$.file) 2>/dev/null; then
22499 if ln -s conf$$.file conf$$ 2>/dev/null; then
22500 as_ln_s='ln -s'
22501 # ... but there are two gotchas:
22502 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22503 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22504 # In both cases, we have to default to `cp -p'.
22505 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22506 as_ln_s='cp -p'
22507 elif ln conf$$.file conf$$ 2>/dev/null; then
22508 as_ln_s=ln
22509 else
22510 as_ln_s='cp -p'
22512 else
22513 as_ln_s='cp -p'
22515 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22516 rmdir conf$$.dir 2>/dev/null
22519 # as_fn_mkdir_p
22520 # -------------
22521 # Create "$as_dir" as a directory, including parents if necessary.
22522 as_fn_mkdir_p ()
22525 case $as_dir in #(
22526 -*) as_dir=./$as_dir;;
22527 esac
22528 test -d "$as_dir" || eval $as_mkdir_p || {
22529 as_dirs=
22530 while :; do
22531 case $as_dir in #(
22532 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
22533 *) as_qdir=$as_dir;;
22534 esac
22535 as_dirs="'$as_qdir' $as_dirs"
22536 as_dir=`$as_dirname -- "$as_dir" ||
22537 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22538 X"$as_dir" : 'X\(//\)[^/]' \| \
22539 X"$as_dir" : 'X\(//\)$' \| \
22540 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22541 $as_echo X"$as_dir" |
22542 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22543 s//\1/
22546 /^X\(\/\/\)[^/].*/{
22547 s//\1/
22550 /^X\(\/\/\)$/{
22551 s//\1/
22554 /^X\(\/\).*/{
22555 s//\1/
22558 s/.*/./; q'`
22559 test -d "$as_dir" && break
22560 done
22561 test -z "$as_dirs" || eval "mkdir $as_dirs"
22562 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
22565 } # as_fn_mkdir_p
22566 if mkdir -p . 2>/dev/null; then
22567 as_mkdir_p='mkdir -p "$as_dir"'
22568 else
22569 test -d ./-p && rmdir ./-p
22570 as_mkdir_p=false
22573 if test -x / >/dev/null 2>&1; then
22574 as_test_x='test -x'
22575 else
22576 if ls -dL / >/dev/null 2>&1; then
22577 as_ls_L_option=L
22578 else
22579 as_ls_L_option=
22581 as_test_x='
22582 eval sh -c '\''
22583 if test -d "$1"; then
22584 test -d "$1/.";
22585 else
22586 case $1 in #(
22587 -*)set "./$1";;
22588 esac;
22589 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
22590 ???[sx]*):;;*)false;;esac;fi
22591 '\'' sh
22594 as_executable_p=$as_test_x
22596 # Sed expression to map a string onto a valid CPP name.
22597 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22599 # Sed expression to map a string onto a valid variable name.
22600 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22603 exec 6>&1
22604 ## ----------------------------------- ##
22605 ## Main body of $CONFIG_STATUS script. ##
22606 ## ----------------------------------- ##
22607 _ASEOF
22608 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
22610 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22611 # Save the log message, to keep $0 and so on meaningful, and to
22612 # report actual input values of CONFIG_FILES etc. instead of their
22613 # values after options handling.
22614 ac_log="
22615 This file was extended by emacs $as_me 24.1.50, which was
22616 generated by GNU Autoconf 2.65. Invocation command line was
22618 CONFIG_FILES = $CONFIG_FILES
22619 CONFIG_HEADERS = $CONFIG_HEADERS
22620 CONFIG_LINKS = $CONFIG_LINKS
22621 CONFIG_COMMANDS = $CONFIG_COMMANDS
22622 $ $0 $@
22624 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22627 _ACEOF
22629 case $ac_config_files in *"
22630 "*) set x $ac_config_files; shift; ac_config_files=$*;;
22631 esac
22633 case $ac_config_headers in *"
22634 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
22635 esac
22638 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22639 # Files that config.status was made for.
22640 config_files="$ac_config_files"
22641 config_headers="$ac_config_headers"
22642 config_commands="$ac_config_commands"
22644 _ACEOF
22646 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22647 ac_cs_usage="\
22648 \`$as_me' instantiates files and other configuration actions
22649 from templates according to the current configuration. Unless the files
22650 and actions are specified as TAGs, all are instantiated by default.
22652 Usage: $0 [OPTION]... [TAG]...
22654 -h, --help print this help, then exit
22655 -V, --version print version number and configuration settings, then exit
22656 --config print configuration, then exit
22657 -q, --quiet, --silent
22658 do not print progress messages
22659 -d, --debug don't remove temporary files
22660 --recheck update $as_me by reconfiguring in the same conditions
22661 --file=FILE[:TEMPLATE]
22662 instantiate the configuration file FILE
22663 --header=FILE[:TEMPLATE]
22664 instantiate the configuration header FILE
22666 Configuration files:
22667 $config_files
22669 Configuration headers:
22670 $config_headers
22672 Configuration commands:
22673 $config_commands
22675 Report bugs to the package provider."
22677 _ACEOF
22678 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22679 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
22680 ac_cs_version="\\
22681 emacs config.status 24.1.50
22682 configured by $0, generated by GNU Autoconf 2.65,
22683 with options \\"\$ac_cs_config\\"
22685 Copyright (C) 2009 Free Software Foundation, Inc.
22686 This config.status script is free software; the Free Software Foundation
22687 gives unlimited permission to copy, distribute and modify it."
22689 ac_pwd='$ac_pwd'
22690 srcdir='$srcdir'
22691 INSTALL='$INSTALL'
22692 MKDIR_P='$MKDIR_P'
22693 AWK='$AWK'
22694 test -n "\$AWK" || AWK=awk
22695 _ACEOF
22697 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22698 # The default lists apply if the user does not specify any file.
22699 ac_need_defaults=:
22700 while test $# != 0
22702 case $1 in
22703 --*=*)
22704 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22705 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22706 ac_shift=:
22709 ac_option=$1
22710 ac_optarg=$2
22711 ac_shift=shift
22713 esac
22715 case $ac_option in
22716 # Handling of the options.
22717 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22718 ac_cs_recheck=: ;;
22719 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22720 $as_echo "$ac_cs_version"; exit ;;
22721 --config | --confi | --conf | --con | --co | --c )
22722 $as_echo "$ac_cs_config"; exit ;;
22723 --debug | --debu | --deb | --de | --d | -d )
22724 debug=: ;;
22725 --file | --fil | --fi | --f )
22726 $ac_shift
22727 case $ac_optarg in
22728 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22729 esac
22730 as_fn_append CONFIG_FILES " '$ac_optarg'"
22731 ac_need_defaults=false;;
22732 --header | --heade | --head | --hea )
22733 $ac_shift
22734 case $ac_optarg in
22735 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22736 esac
22737 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
22738 ac_need_defaults=false;;
22739 --he | --h)
22740 # Conflict between --help and --header
22741 as_fn_error "ambiguous option: \`$1'
22742 Try \`$0 --help' for more information.";;
22743 --help | --hel | -h )
22744 $as_echo "$ac_cs_usage"; exit ;;
22745 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22746 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22747 ac_cs_silent=: ;;
22749 # This is an error.
22750 -*) as_fn_error "unrecognized option: \`$1'
22751 Try \`$0 --help' for more information." ;;
22753 *) as_fn_append ac_config_targets " $1"
22754 ac_need_defaults=false ;;
22756 esac
22757 shift
22758 done
22760 ac_configure_extra_args=
22762 if $ac_cs_silent; then
22763 exec 6>/dev/null
22764 ac_configure_extra_args="$ac_configure_extra_args --silent"
22767 _ACEOF
22768 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22769 if \$ac_cs_recheck; then
22770 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22771 shift
22772 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
22773 CONFIG_SHELL='$SHELL'
22774 export CONFIG_SHELL
22775 exec "\$@"
22778 _ACEOF
22779 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22780 exec 5>>config.log
22782 echo
22783 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22784 ## Running $as_me. ##
22785 _ASBOX
22786 $as_echo "$ac_log"
22787 } >&5
22789 _ACEOF
22790 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22792 # INIT-COMMANDS
22794 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22795 GCC="$GCC" CPPFLAGS="$CPPFLAGS"
22797 _ACEOF
22799 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22801 # Handling of arguments.
22802 for ac_config_target in $ac_config_targets
22804 case $ac_config_target in
22805 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
22806 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22807 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22808 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
22809 "lib-src/Makefile") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile" ;;
22810 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
22811 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
22812 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
22813 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
22814 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
22815 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
22816 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
22817 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
22818 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
22819 "test/automated/Makefile") CONFIG_FILES="$CONFIG_FILES test/automated/Makefile" ;;
22820 "admin/unidata/Makefile") CONFIG_FILES="$CONFIG_FILES admin/unidata/Makefile" ;;
22821 "mkdirs") CONFIG_COMMANDS="$CONFIG_COMMANDS mkdirs" ;;
22822 "epaths") CONFIG_COMMANDS="$CONFIG_COMMANDS epaths" ;;
22823 "gdbinit") CONFIG_COMMANDS="$CONFIG_COMMANDS gdbinit" ;;
22825 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
22826 esac
22827 done
22830 # If the user did not use the arguments to specify the items to instantiate,
22831 # then the envvar interface is used. Set only those that are not.
22832 # We use the long form for the default assignment because of an extremely
22833 # bizarre bug on SunOS 4.1.3.
22834 if $ac_need_defaults; then
22835 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22836 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22837 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22840 # Have a temporary directory for convenience. Make it in the build tree
22841 # simply because there is no reason against having it here, and in addition,
22842 # creating and moving files from /tmp can sometimes cause problems.
22843 # Hook for its removal unless debugging.
22844 # Note that there is a small window in which the directory will not be cleaned:
22845 # after its creation but before its name has been assigned to `$tmp'.
22846 $debug ||
22848 tmp=
22849 trap 'exit_status=$?
22850 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22852 trap 'as_fn_exit 1' 1 2 13 15
22854 # Create a (secure) tmp directory for tmp files.
22857 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22858 test -n "$tmp" && test -d "$tmp"
22859 } ||
22861 tmp=./conf$$-$RANDOM
22862 (umask 077 && mkdir "$tmp")
22863 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
22865 # Set up the scripts for CONFIG_FILES section.
22866 # No need to generate them if there are no CONFIG_FILES.
22867 # This happens for instance with `./config.status config.h'.
22868 if test -n "$CONFIG_FILES"; then
22870 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
22871 ac_cs_awk_getline=:
22872 ac_cs_awk_pipe_init=
22873 ac_cs_awk_read_file='
22874 while ((getline aline < (F[key])) > 0)
22875 print(aline)
22876 close(F[key])'
22877 ac_cs_awk_pipe_fini=
22878 else
22879 ac_cs_awk_getline=false
22880 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
22881 ac_cs_awk_read_file='
22882 print "|#_!!_#|"
22883 print "cat " F[key] " &&"
22884 '$ac_cs_awk_pipe_init
22885 # The final `:' finishes the AND list.
22886 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
22888 ac_cr=`echo X | tr X '\015'`
22889 # On cygwin, bash can eat \r inside `` if the user requested igncr.
22890 # But we know of no other shell where ac_cr would be empty at this
22891 # point, so we can use a bashism as a fallback.
22892 if test "x$ac_cr" = x; then
22893 eval ac_cr=\$\'\\r\'
22895 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
22896 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22897 ac_cs_awk_cr='\r'
22898 else
22899 ac_cs_awk_cr=$ac_cr
22902 echo 'BEGIN {' >"$tmp/subs1.awk" &&
22903 _ACEOF
22905 # Create commands to substitute file output variables.
22907 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
22908 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
22909 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
22910 echo "_ACAWK" &&
22911 echo "_ACEOF"
22912 } >conf$$files.sh &&
22913 . ./conf$$files.sh ||
22914 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
22915 rm -f conf$$files.sh
22918 echo "cat >conf$$subs.awk <<_ACEOF" &&
22919 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
22920 echo "_ACEOF"
22921 } >conf$$subs.sh ||
22922 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
22923 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
22924 ac_delim='%!_!# '
22925 for ac_last_try in false false false false false :; do
22926 . ./conf$$subs.sh ||
22927 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
22929 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
22930 if test $ac_delim_n = $ac_delim_num; then
22931 break
22932 elif $ac_last_try; then
22933 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
22934 else
22935 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22937 done
22938 rm -f conf$$subs.sh
22940 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22941 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
22942 _ACEOF
22943 sed -n '
22945 s/^/S["/; s/!.*/"]=/
22948 s/^[^!]*!//
22949 :repl
22950 t repl
22951 s/'"$ac_delim"'$//
22952 t delim
22955 s/\(.\{148\}\)..*/\1/
22956 t more1
22957 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
22960 b repl
22961 :more1
22962 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22965 s/.\{148\}//
22966 t nl
22967 :delim
22969 s/\(.\{148\}\)..*/\1/
22970 t more2
22971 s/["\\]/\\&/g; s/^/"/; s/$/"/
22974 :more2
22975 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22978 s/.\{148\}//
22979 t delim
22980 ' <conf$$subs.awk | sed '
22981 /^[^""]/{
22983 s/\n//
22985 ' >>$CONFIG_STATUS || ac_write_fail=1
22986 rm -f conf$$subs.awk
22987 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22988 _ACAWK
22989 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
22990 for (key in S) S_is_set[key] = 1
22991 FS = "\a"
22992 \$ac_cs_awk_pipe_init
22995 line = $ 0
22996 nfields = split(line, field, "@")
22997 substed = 0
22998 len = length(field[1])
22999 for (i = 2; i < nfields; i++) {
23000 key = field[i]
23001 keylen = length(key)
23002 if (S_is_set[key]) {
23003 value = S[key]
23004 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
23005 len += length(value) + length(field[++i])
23006 substed = 1
23007 } else
23008 len += 1 + keylen
23010 if (nfields == 3 && !substed) {
23011 key = field[2]
23012 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
23013 \$ac_cs_awk_read_file
23014 next
23017 print line
23019 \$ac_cs_awk_pipe_fini
23020 _ACAWK
23021 _ACEOF
23022 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23023 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
23024 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
23025 else
23027 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
23028 || as_fn_error "could not setup config files machinery" "$LINENO" 5
23029 _ACEOF
23031 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23032 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23033 # trailing colons and then remove the whole line if VPATH becomes empty
23034 # (actually we leave an empty line to preserve line numbers).
23035 if test "x$srcdir" = x.; then
23036 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23037 s/:*\$(srcdir):*/:/
23038 s/:*\${srcdir}:*/:/
23039 s/:*@srcdir@:*/:/
23040 s/^\([^=]*=[ ]*\):*/\1/
23041 s/:*$//
23042 s/^[^=]*=[ ]*$//
23046 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23047 fi # test -n "$CONFIG_FILES"
23049 # Set up the scripts for CONFIG_HEADERS section.
23050 # No need to generate them if there are no CONFIG_HEADERS.
23051 # This happens for instance with `./config.status Makefile'.
23052 if test -n "$CONFIG_HEADERS"; then
23053 cat >"$tmp/defines.awk" <<\_ACAWK ||
23054 BEGIN {
23055 _ACEOF
23057 # Transform confdefs.h into an awk script `defines.awk', embedded as
23058 # here-document in config.status, that substitutes the proper values into
23059 # config.h.in to produce config.h.
23061 # Create a delimiter string that does not exist in confdefs.h, to ease
23062 # handling of long lines.
23063 ac_delim='%!_!# '
23064 for ac_last_try in false false :; do
23065 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
23066 if test -z "$ac_t"; then
23067 break
23068 elif $ac_last_try; then
23069 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
23070 else
23071 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23073 done
23075 # For the awk script, D is an array of macro values keyed by name,
23076 # likewise P contains macro parameters if any. Preserve backslash
23077 # newline sequences.
23079 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23080 sed -n '
23081 s/.\{148\}/&'"$ac_delim"'/g
23082 t rset
23083 :rset
23084 s/^[ ]*#[ ]*define[ ][ ]*/ /
23085 t def
23087 :def
23088 s/\\$//
23089 t bsnl
23090 s/["\\]/\\&/g
23091 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
23092 D["\1"]=" \3"/p
23093 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
23095 :bsnl
23096 s/["\\]/\\&/g
23097 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
23098 D["\1"]=" \3\\\\\\n"\\/p
23099 t cont
23100 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
23101 t cont
23103 :cont
23105 s/.\{148\}/&'"$ac_delim"'/g
23106 t clear
23107 :clear
23108 s/\\$//
23109 t bsnlc
23110 s/["\\]/\\&/g; s/^/"/; s/$/"/p
23112 :bsnlc
23113 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
23114 b cont
23115 ' <confdefs.h | sed '
23116 s/'"$ac_delim"'/"\\\
23117 "/g' >>$CONFIG_STATUS || ac_write_fail=1
23119 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23120 for (key in D) D_is_set[key] = 1
23121 FS = "\a"
23123 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
23124 line = \$ 0
23125 split(line, arg, " ")
23126 if (arg[1] == "#") {
23127 defundef = arg[2]
23128 mac1 = arg[3]
23129 } else {
23130 defundef = substr(arg[1], 2)
23131 mac1 = arg[2]
23133 split(mac1, mac2, "(") #)
23134 macro = mac2[1]
23135 prefix = substr(line, 1, index(line, defundef) - 1)
23136 if (D_is_set[macro]) {
23137 # Preserve the white space surrounding the "#".
23138 print prefix "define", macro P[macro] D[macro]
23139 next
23140 } else {
23141 # Replace #undef with comments. This is necessary, for example,
23142 # in the case of _POSIX_SOURCE, which is predefined and required
23143 # on some systems where configure will not decide to define it.
23144 if (defundef == "undef") {
23145 print "/*", prefix defundef, macro, "*/"
23146 next
23150 { print }
23151 _ACAWK
23152 _ACEOF
23153 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23154 as_fn_error "could not setup config headers machinery" "$LINENO" 5
23155 fi # test -n "$CONFIG_HEADERS"
23158 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
23159 shift
23160 for ac_tag
23162 case $ac_tag in
23163 :[FHLC]) ac_mode=$ac_tag; continue;;
23164 esac
23165 case $ac_mode$ac_tag in
23166 :[FHL]*:*);;
23167 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
23168 :[FH]-) ac_tag=-:-;;
23169 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23170 esac
23171 ac_save_IFS=$IFS
23172 IFS=:
23173 set x $ac_tag
23174 IFS=$ac_save_IFS
23175 shift
23176 ac_file=$1
23177 shift
23179 case $ac_mode in
23180 :L) ac_source=$1;;
23181 :[FH])
23182 ac_file_inputs=
23183 for ac_f
23185 case $ac_f in
23186 -) ac_f="$tmp/stdin";;
23187 *) # Look for the file first in the build tree, then in the source tree
23188 # (if the path is not absolute). The absolute path cannot be DOS-style,
23189 # because $ac_f cannot contain `:'.
23190 test -f "$ac_f" ||
23191 case $ac_f in
23192 [\\/$]*) false;;
23193 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23194 esac ||
23195 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
23196 esac
23197 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
23198 as_fn_append ac_file_inputs " '$ac_f'"
23199 done
23201 # Let's still pretend it is `configure' which instantiates (i.e., don't
23202 # use $as_me), people would be surprised to read:
23203 # /* config.h. Generated by config.status. */
23204 configure_input='Generated from '`
23205 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
23206 `' by configure.'
23207 if test x"$ac_file" != x-; then
23208 configure_input="$ac_file. $configure_input"
23209 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
23210 $as_echo "$as_me: creating $ac_file" >&6;}
23212 # Neutralize special characters interpreted by sed in replacement strings.
23213 case $configure_input in #(
23214 *\&* | *\|* | *\\* )
23215 ac_sed_conf_input=`$as_echo "$configure_input" |
23216 sed 's/[\\\\&|]/\\\\&/g'`;; #(
23217 *) ac_sed_conf_input=$configure_input;;
23218 esac
23220 case $ac_tag in
23221 *:-:* | *:-) cat >"$tmp/stdin" \
23222 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
23223 esac
23225 esac
23227 ac_dir=`$as_dirname -- "$ac_file" ||
23228 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23229 X"$ac_file" : 'X\(//\)[^/]' \| \
23230 X"$ac_file" : 'X\(//\)$' \| \
23231 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23232 $as_echo X"$ac_file" |
23233 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23234 s//\1/
23237 /^X\(\/\/\)[^/].*/{
23238 s//\1/
23241 /^X\(\/\/\)$/{
23242 s//\1/
23245 /^X\(\/\).*/{
23246 s//\1/
23249 s/.*/./; q'`
23250 as_dir="$ac_dir"; as_fn_mkdir_p
23251 ac_builddir=.
23253 case "$ac_dir" in
23254 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23256 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
23257 # A ".." for each directory in $ac_dir_suffix.
23258 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
23259 case $ac_top_builddir_sub in
23260 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23261 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23262 esac ;;
23263 esac
23264 ac_abs_top_builddir=$ac_pwd
23265 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23266 # for backward compatibility:
23267 ac_top_builddir=$ac_top_build_prefix
23269 case $srcdir in
23270 .) # We are building in place.
23271 ac_srcdir=.
23272 ac_top_srcdir=$ac_top_builddir_sub
23273 ac_abs_top_srcdir=$ac_pwd ;;
23274 [\\/]* | ?:[\\/]* ) # Absolute name.
23275 ac_srcdir=$srcdir$ac_dir_suffix;
23276 ac_top_srcdir=$srcdir
23277 ac_abs_top_srcdir=$srcdir ;;
23278 *) # Relative name.
23279 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23280 ac_top_srcdir=$ac_top_build_prefix$srcdir
23281 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23282 esac
23283 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23286 case $ac_mode in
23289 # CONFIG_FILE
23292 case $INSTALL in
23293 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23294 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23295 esac
23296 ac_MKDIR_P=$MKDIR_P
23297 case $MKDIR_P in
23298 [\\/$]* | ?:[\\/]* ) ;;
23299 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
23300 esac
23301 _ACEOF
23303 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23304 # If the template does not know about datarootdir, expand it.
23305 # FIXME: This hack should be removed a few years after 2.60.
23306 ac_datarootdir_hack=; ac_datarootdir_seen=
23307 ac_sed_dataroot='
23308 /datarootdir/ {
23312 /@datadir@/p
23313 /@docdir@/p
23314 /@infodir@/p
23315 /@localedir@/p
23316 /@mandir@/p'
23317 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
23318 *datarootdir*) ac_datarootdir_seen=yes;;
23319 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23320 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23321 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23322 _ACEOF
23323 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23324 ac_datarootdir_hack='
23325 s&@datadir@&$datadir&g
23326 s&@docdir@&$docdir&g
23327 s&@infodir@&$infodir&g
23328 s&@localedir@&$localedir&g
23329 s&@mandir@&$mandir&g
23330 s&\\\${datarootdir}&$datarootdir&g' ;;
23331 esac
23332 _ACEOF
23334 # Neutralize VPATH when `$srcdir' = `.'.
23335 # Shell code in configure.ac might set extrasub.
23336 # FIXME: do we really want to maintain this feature?
23337 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23338 ac_sed_extra="$ac_vpsub
23339 $extrasub
23340 _ACEOF
23341 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23343 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23344 s|@configure_input@|$ac_sed_conf_input|;t t
23345 s&@top_builddir@&$ac_top_builddir_sub&;t t
23346 s&@top_build_prefix@&$ac_top_build_prefix&;t t
23347 s&@srcdir@&$ac_srcdir&;t t
23348 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23349 s&@top_srcdir@&$ac_top_srcdir&;t t
23350 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23351 s&@builddir@&$ac_builddir&;t t
23352 s&@abs_builddir@&$ac_abs_builddir&;t t
23353 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23354 s&@INSTALL@&$ac_INSTALL&;t t
23355 s&@MKDIR_P@&$ac_MKDIR_P&;t t
23356 $ac_datarootdir_hack
23358 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
23359 if $ac_cs_awk_getline; then
23360 $AWK -f "$tmp/subs.awk"
23361 else
23362 $AWK -f "$tmp/subs.awk" | $SHELL
23363 fi >$tmp/out \
23364 || as_fn_error "could not create $ac_file" "$LINENO" 5
23366 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23367 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23368 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23369 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23370 which seems to be undefined. Please make sure it is defined." >&5
23371 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23372 which seems to be undefined. Please make sure it is defined." >&2;}
23374 rm -f "$tmp/stdin"
23375 case $ac_file in
23376 -) cat "$tmp/out" && rm -f "$tmp/out";;
23377 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
23378 esac \
23379 || as_fn_error "could not create $ac_file" "$LINENO" 5
23383 # CONFIG_HEADER
23385 if test x"$ac_file" != x-; then
23387 $as_echo "/* $configure_input */" \
23388 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
23389 } >"$tmp/config.h" \
23390 || as_fn_error "could not create $ac_file" "$LINENO" 5
23391 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
23392 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
23393 $as_echo "$as_me: $ac_file is unchanged" >&6;}
23394 else
23395 rm -f "$ac_file"
23396 mv "$tmp/config.h" "$ac_file" \
23397 || as_fn_error "could not create $ac_file" "$LINENO" 5
23399 else
23400 $as_echo "/* $configure_input */" \
23401 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
23402 || as_fn_error "could not create -" "$LINENO" 5
23404 # Compute "$ac_file"'s index in $config_headers.
23405 _am_arg="$ac_file"
23406 _am_stamp_count=1
23407 for _am_header in $config_headers :; do
23408 case $_am_header in
23409 $_am_arg | $_am_arg:* )
23410 break ;;
23412 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23413 esac
23414 done
23415 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
23416 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23417 X"$_am_arg" : 'X\(//\)[^/]' \| \
23418 X"$_am_arg" : 'X\(//\)$' \| \
23419 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
23420 $as_echo X"$_am_arg" |
23421 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23422 s//\1/
23425 /^X\(\/\/\)[^/].*/{
23426 s//\1/
23429 /^X\(\/\/\)$/{
23430 s//\1/
23433 /^X\(\/\).*/{
23434 s//\1/
23437 s/.*/./; q'`/stamp-h$_am_stamp_count
23440 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
23441 $as_echo "$as_me: executing $ac_file commands" >&6;}
23443 esac
23446 case $ac_file$ac_mode in
23447 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
23448 # Autoconf 2.62 quotes --file arguments for eval, but not when files
23449 # are listed without --file. Let's play safe and only enable the eval
23450 # if we detect the quoting.
23451 case $CONFIG_FILES in
23452 *\'*) eval set x "$CONFIG_FILES" ;;
23453 *) set x $CONFIG_FILES ;;
23454 esac
23455 shift
23456 for mf
23458 # Strip MF so we end up with the name of the file.
23459 mf=`echo "$mf" | sed -e 's/:.*$//'`
23460 # Check whether this is an Automake generated Makefile or not.
23461 # We used to match only the files named `Makefile.in', but
23462 # some people rename them; so instead we look at the file content.
23463 # Grep'ing the first line is not enough: some people post-process
23464 # each Makefile.in and add a new line on top of each file to say so.
23465 # Grep'ing the whole file is not good either: AIX grep has a line
23466 # limit of 2048, but all sed's we know have understand at least 4000.
23467 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
23468 dirpart=`$as_dirname -- "$mf" ||
23469 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23470 X"$mf" : 'X\(//\)[^/]' \| \
23471 X"$mf" : 'X\(//\)$' \| \
23472 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
23473 $as_echo X"$mf" |
23474 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23475 s//\1/
23478 /^X\(\/\/\)[^/].*/{
23479 s//\1/
23482 /^X\(\/\/\)$/{
23483 s//\1/
23486 /^X\(\/\).*/{
23487 s//\1/
23490 s/.*/./; q'`
23491 else
23492 continue
23494 # Extract the definition of DEPDIR, am__include, and am__quote
23495 # from the Makefile without running `make'.
23496 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23497 test -z "$DEPDIR" && continue
23498 am__include=`sed -n 's/^am__include = //p' < "$mf"`
23499 test -z "am__include" && continue
23500 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23501 # When using ansi2knr, U may be empty or an underscore; expand it
23502 U=`sed -n 's/^U = //p' < "$mf"`
23503 # Find all dependency output files, they are included files with
23504 # $(DEPDIR) in their names. We invoke sed twice because it is the
23505 # simplest approach to changing $(DEPDIR) to its actual value in the
23506 # expansion.
23507 for file in `sed -n "
23508 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23509 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23510 # Make sure the directory exists.
23511 test -f "$dirpart/$file" && continue
23512 fdir=`$as_dirname -- "$file" ||
23513 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23514 X"$file" : 'X\(//\)[^/]' \| \
23515 X"$file" : 'X\(//\)$' \| \
23516 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
23517 $as_echo X"$file" |
23518 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23519 s//\1/
23522 /^X\(\/\/\)[^/].*/{
23523 s//\1/
23526 /^X\(\/\/\)$/{
23527 s//\1/
23530 /^X\(\/\).*/{
23531 s//\1/
23534 s/.*/./; q'`
23535 as_dir=$dirpart/$fdir; as_fn_mkdir_p
23536 # echo "creating $dirpart/$file"
23537 echo '# dummy' > "$dirpart/$file"
23538 done
23539 done
23542 "mkdirs":C)
23543 for dir in etc lisp ; do
23544 test -d ${dir} || mkdir ${dir}
23545 done
23547 "epaths":C)
23548 echo creating src/epaths.h
23549 ${MAKE-make} epaths-force
23551 "gdbinit":C)
23552 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
23553 echo creating src/.gdbinit
23554 echo source $srcdir/src/.gdbinit > src/.gdbinit
23558 esac
23559 done # for ac_tag
23562 as_fn_exit 0
23563 _ACEOF
23564 ac_clean_files=$ac_clean_files_save
23566 test $ac_write_fail = 0 ||
23567 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
23570 # configure is writing to config.log, and then calls config.status.
23571 # config.status does its own redirection, appending to config.log.
23572 # Unfortunately, on DOS this fails, as config.log is still kept open
23573 # by configure, so config.status won't be able to write to it; its
23574 # output is simply discarded. So we exec the FD to /dev/null,
23575 # effectively closing config.log, so it can be properly (re)opened and
23576 # appended to by config.status. When coming back to configure, we
23577 # need to make the FD available again.
23578 if test "$no_create" != yes; then
23579 ac_cs_success=:
23580 ac_config_status_args=
23581 test "$silent" = yes &&
23582 ac_config_status_args="$ac_config_status_args --quiet"
23583 exec 5>/dev/null
23584 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23585 exec 5>>config.log
23586 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23587 # would make configure fail if this is the last instruction.
23588 $ac_cs_success || as_fn_exit $?
23590 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
23591 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
23592 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}