* whitespace.el (whitespace-cleanup): Fix whitespace-empty-at-bob-regexp usage.
[emacs.git] / autogen / configure
blob67619001e32fef91451d7239ae5297d960afda43
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for emacs 24.1.50.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
8 # Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
32 esac
36 as_nl='
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
91 # Find who we are. Look in the path if we contain no directory separator.
92 case $0 in #((
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
97 IFS=$as_save_IFS
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100 done
101 IFS=$as_save_IFS
104 esac
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
108 as_myself=$0
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112 exit 1
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136 if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 emulate sh
139 NULLCMD=:
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 setopt NO_GLOB_SUBST
144 else
145 case \`(set -o) 2>/dev/null\` in #(
146 *posix*) :
147 set -o posix ;; #(
148 *) :
150 esac
153 as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
159 exitcode=0
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
166 else
167 exitcode=1; echo positional parameters were not saved.
169 test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev/null; then :
176 as_have_required=yes
177 else
178 as_have_required=no
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
182 else
183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184 as_found=false
185 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
187 IFS=$as_save_IFS
188 test -z "$as_dir" && as_dir=.
189 as_found=:
190 case $as_dir in #(
192 for as_base in sh bash ksh sh5; do
193 # Try only shells that exist, to save several forks.
194 as_shell=$as_dir/$as_base
195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 CONFIG_SHELL=$as_shell as_have_required=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 break 2
202 done;;
203 esac
204 as_found=false
205 done
206 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208 CONFIG_SHELL=$SHELL as_have_required=yes
209 fi; }
210 IFS=$as_save_IFS
213 if test "x$CONFIG_SHELL" != x; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
217 BASH_ENV=/dev/null
218 ENV=/dev/null
219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220 export CONFIG_SHELL
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224 if test x$as_have_required = xno; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x${ZSH_VERSION+set} = xset ; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230 else
231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232 $0: including any error possibly output before this
233 $0: message. Then install a modern shell, or manually run
234 $0: the script under such a shell if you do have one."
236 exit 1
240 SHELL=${CONFIG_SHELL-/bin/sh}
241 export SHELL
242 # Unset more variables known to interfere with behavior of common tools.
243 CLICOLOR_FORCE= GREP_OPTIONS=
244 unset CLICOLOR_FORCE GREP_OPTIONS
246 ## --------------------- ##
247 ## M4sh Shell Functions. ##
248 ## --------------------- ##
249 # as_fn_unset VAR
250 # ---------------
251 # Portably unset VAR.
252 as_fn_unset ()
254 { eval $1=; unset $1;}
256 as_unset=as_fn_unset
258 # as_fn_set_status STATUS
259 # -----------------------
260 # Set $? to STATUS, without forking.
261 as_fn_set_status ()
263 return $1
264 } # as_fn_set_status
266 # as_fn_exit STATUS
267 # -----------------
268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
269 as_fn_exit ()
271 set +e
272 as_fn_set_status $1
273 exit $1
274 } # as_fn_exit
276 # as_fn_mkdir_p
277 # -------------
278 # Create "$as_dir" as a directory, including parents if necessary.
279 as_fn_mkdir_p ()
282 case $as_dir in #(
283 -*) as_dir=./$as_dir;;
284 esac
285 test -d "$as_dir" || eval $as_mkdir_p || {
286 as_dirs=
287 while :; do
288 case $as_dir in #(
289 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290 *) as_qdir=$as_dir;;
291 esac
292 as_dirs="'$as_qdir' $as_dirs"
293 as_dir=`$as_dirname -- "$as_dir" ||
294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295 X"$as_dir" : 'X\(//\)[^/]' \| \
296 X"$as_dir" : 'X\(//\)$' \| \
297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298 $as_echo X"$as_dir" |
299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
300 s//\1/
303 /^X\(\/\/\)[^/].*/{
304 s//\1/
307 /^X\(\/\/\)$/{
308 s//\1/
311 /^X\(\/\).*/{
312 s//\1/
315 s/.*/./; q'`
316 test -d "$as_dir" && break
317 done
318 test -z "$as_dirs" || eval "mkdir $as_dirs"
319 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
322 } # as_fn_mkdir_p
323 # as_fn_append VAR VALUE
324 # ----------------------
325 # Append the text in VALUE to the end of the definition contained in VAR. Take
326 # advantage of any shell optimizations that allow amortized linear growth over
327 # repeated appends, instead of the typical quadratic growth present in naive
328 # implementations.
329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330 eval 'as_fn_append ()
332 eval $1+=\$2
334 else
335 as_fn_append ()
337 eval $1=\$$1\$2
339 fi # as_fn_append
341 # as_fn_arith ARG...
342 # ------------------
343 # Perform arithmetic evaluation on the ARGs, and store the result in the
344 # global $as_val. Take advantage of shells that can avoid forks. The arguments
345 # must be portable across $(()) and expr.
346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
347 eval 'as_fn_arith ()
349 as_val=$(( $* ))
351 else
352 as_fn_arith ()
354 as_val=`expr "$@" || test $? -eq 1`
356 fi # as_fn_arith
359 # as_fn_error ERROR [LINENO LOG_FD]
360 # ---------------------------------
361 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363 # script with status $?, using 1 if that was 0.
364 as_fn_error ()
366 as_status=$?; test $as_status -eq 0 && as_status=1
367 if test "$3"; then
368 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
371 $as_echo "$as_me: error: $1" >&2
372 as_fn_exit $as_status
373 } # as_fn_error
375 if expr a : '\(a\)' >/dev/null 2>&1 &&
376 test "X`expr 00001 : '.*\(...\)'`" = X001; then
377 as_expr=expr
378 else
379 as_expr=false
382 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
383 as_basename=basename
384 else
385 as_basename=false
388 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
389 as_dirname=dirname
390 else
391 as_dirname=false
394 as_me=`$as_basename -- "$0" ||
395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396 X"$0" : 'X\(//\)$' \| \
397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
398 $as_echo X/"$0" |
399 sed '/^.*\/\([^/][^/]*\)\/*$/{
400 s//\1/
403 /^X\/\(\/\/\)$/{
404 s//\1/
407 /^X\/\(\/\).*/{
408 s//\1/
411 s/.*/./; q'`
413 # Avoid depending upon Character Ranges.
414 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417 as_cr_digits='0123456789'
418 as_cr_alnum=$as_cr_Letters$as_cr_digits
421 as_lineno_1=$LINENO as_lineno_1a=$LINENO
422 as_lineno_2=$LINENO as_lineno_2a=$LINENO
423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
426 sed -n '
428 /[$]LINENO/=
429 ' <$as_myself |
430 sed '
431 s/[$]LINENO.*/&-/
432 t lineno
434 :lineno
436 :loop
437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
438 t loop
439 s/-\n.*//
440 ' >$as_me.lineno &&
441 chmod +x "$as_me.lineno" ||
442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
444 # Don't try to exec as it changes $[0], causing all sort of problems
445 # (the dirname of $[0] is not the place where we might find the
446 # original and so on. Autoconf is especially sensitive to this).
447 . "./$as_me.lineno"
448 # Exit status is that of the last command.
449 exit
452 ECHO_C= ECHO_N= ECHO_T=
453 case `echo -n x` in #(((((
454 -n*)
455 case `echo 'xy\c'` in
456 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
457 xy) ECHO_C='\c';;
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
459 ECHO_T=' ';;
460 esac;;
462 ECHO_N='-n';;
463 esac
465 rm -f conf$$ conf$$.exe conf$$.file
466 if test -d conf$$.dir; then
467 rm -f conf$$.dir/conf$$.file
468 else
469 rm -f conf$$.dir
470 mkdir conf$$.dir 2>/dev/null
472 if (echo >conf$$.file) 2>/dev/null; then
473 if ln -s conf$$.file conf$$ 2>/dev/null; then
474 as_ln_s='ln -s'
475 # ... but there are two gotchas:
476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478 # In both cases, we have to default to `cp -p'.
479 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
480 as_ln_s='cp -p'
481 elif ln conf$$.file conf$$ 2>/dev/null; then
482 as_ln_s=ln
483 else
484 as_ln_s='cp -p'
486 else
487 as_ln_s='cp -p'
489 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490 rmdir conf$$.dir 2>/dev/null
492 if mkdir -p . 2>/dev/null; then
493 as_mkdir_p='mkdir -p "$as_dir"'
494 else
495 test -d ./-p && rmdir ./-p
496 as_mkdir_p=false
499 if test -x / >/dev/null 2>&1; then
500 as_test_x='test -x'
501 else
502 if ls -dL / >/dev/null 2>&1; then
503 as_ls_L_option=L
504 else
505 as_ls_L_option=
507 as_test_x='
508 eval sh -c '\''
509 if test -d "$1"; then
510 test -d "$1/.";
511 else
512 case $1 in #(
513 -*)set "./$1";;
514 esac;
515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516 ???[sx]*):;;*)false;;esac;fi
517 '\'' sh
520 as_executable_p=$as_test_x
522 # Sed expression to map a string onto a valid CPP name.
523 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
525 # Sed expression to map a string onto a valid variable name.
526 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
529 test -n "$DJDIR" || exec 7<&0 </dev/null
530 exec 6>&1
532 # Name of the host.
533 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
534 # so uname gets run too.
535 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
538 # Initializations.
540 ac_default_prefix=/usr/local
541 ac_clean_files=
542 ac_config_libobj_dir=.
543 LIBOBJS=
544 cross_compiling=no
545 subdirs=
546 MFLAGS=
547 MAKEFLAGS=
549 # Identity of this package.
550 PACKAGE_NAME='emacs'
551 PACKAGE_TARNAME='emacs'
552 PACKAGE_VERSION='24.1.50'
553 PACKAGE_STRING='emacs 24.1.50'
554 PACKAGE_BUGREPORT=''
555 PACKAGE_URL=''
557 ac_unique_file="src/lisp.h"
558 # Factoring default headers for most tests.
559 ac_includes_default="\
560 #include <stdio.h>
561 #ifdef HAVE_SYS_TYPES_H
562 # include <sys/types.h>
563 #endif
564 #ifdef HAVE_SYS_STAT_H
565 # include <sys/stat.h>
566 #endif
567 #ifdef STDC_HEADERS
568 # include <stdlib.h>
569 # include <stddef.h>
570 #else
571 # ifdef HAVE_STDLIB_H
572 # include <stdlib.h>
573 # endif
574 #endif
575 #ifdef HAVE_STRING_H
576 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
577 # include <memory.h>
578 # endif
579 # include <string.h>
580 #endif
581 #ifdef HAVE_STRINGS_H
582 # include <strings.h>
583 #endif
584 #ifdef HAVE_INTTYPES_H
585 # include <inttypes.h>
586 #endif
587 #ifdef HAVE_STDINT_H
588 # include <stdint.h>
589 #endif
590 #ifdef HAVE_UNISTD_H
591 # include <unistd.h>
592 #endif"
594 ac_header_list=
595 ac_func_list=
596 gl_getopt_required=POSIX
597 gl_getopt_required=POSIX
598 ac_subst_vars='gltests_LTLIBOBJS
599 gltests_LIBOBJS
600 gl_LTLIBOBJS
601 gl_LIBOBJS
602 am__EXEEXT_FALSE
603 am__EXEEXT_TRUE
604 LTLIBOBJS
605 LIBOBJS
606 SUBDIR_MAKEFILES_IN
607 LIB_GCC
608 LD_FIRSTFLAG
609 LD_SWITCH_SYSTEM_TEMACS
610 LIBGNU_LTLIBDEPS
611 LIBGNU_LIBDEPS
612 gltests_WITNESS
613 gl_GNULIB_ENABLED_verify_FALSE
614 gl_GNULIB_ENABLED_verify_TRUE
615 gl_GNULIB_ENABLED_strtoull_FALSE
616 gl_GNULIB_ENABLED_strtoull_TRUE
617 gl_GNULIB_ENABLED_strtoll_FALSE
618 gl_GNULIB_ENABLED_strtoll_TRUE
619 gl_GNULIB_ENABLED_stat_FALSE
620 gl_GNULIB_ENABLED_stat_TRUE
621 gl_GNULIB_ENABLED_sigprocmask_FALSE
622 gl_GNULIB_ENABLED_sigprocmask_TRUE
623 gl_GNULIB_ENABLED_pathmax_FALSE
624 gl_GNULIB_ENABLED_pathmax_TRUE
625 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE
626 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE
627 gl_GNULIB_ENABLED_dosname_FALSE
628 gl_GNULIB_ENABLED_dosname_TRUE
629 LTLIBINTL
630 LIBINTL
631 HAVE_UNISTD_H
632 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
633 NEXT_UNISTD_H
634 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
635 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
636 TIME_H_DEFINES_STRUCT_TIMESPEC
637 NEXT_AS_FIRST_DIRECTIVE_TIME_H
638 NEXT_TIME_H
639 WINDOWS_64_BIT_OFF_T
640 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H
641 NEXT_SYS_TYPES_H
642 WINDOWS_64_BIT_ST_SIZE
643 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
644 NEXT_SYS_STAT_H
645 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
646 NEXT_STDLIB_H
647 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
648 NEXT_STDIO_H
649 REPLACE_VSPRINTF
650 REPLACE_VSNPRINTF
651 REPLACE_VPRINTF
652 REPLACE_VFPRINTF
653 REPLACE_VDPRINTF
654 REPLACE_VASPRINTF
655 REPLACE_TMPFILE
656 REPLACE_STDIO_WRITE_FUNCS
657 REPLACE_STDIO_READ_FUNCS
658 REPLACE_SPRINTF
659 REPLACE_SNPRINTF
660 REPLACE_RENAMEAT
661 REPLACE_RENAME
662 REPLACE_REMOVE
663 REPLACE_PRINTF
664 REPLACE_POPEN
665 REPLACE_PERROR
666 REPLACE_OBSTACK_PRINTF
667 REPLACE_GETLINE
668 REPLACE_GETDELIM
669 REPLACE_FTELLO
670 REPLACE_FTELL
671 REPLACE_FSEEKO
672 REPLACE_FSEEK
673 REPLACE_FREOPEN
674 REPLACE_FPURGE
675 REPLACE_FPRINTF
676 REPLACE_FOPEN
677 REPLACE_FFLUSH
678 REPLACE_FDOPEN
679 REPLACE_FCLOSE
680 REPLACE_DPRINTF
681 HAVE_VDPRINTF
682 HAVE_VASPRINTF
683 HAVE_RENAMEAT
684 HAVE_POPEN
685 HAVE_PCLOSE
686 HAVE_FTELLO
687 HAVE_FSEEKO
688 HAVE_DPRINTF
689 HAVE_DECL_VSNPRINTF
690 HAVE_DECL_SNPRINTF
691 HAVE_DECL_OBSTACK_PRINTF
692 HAVE_DECL_GETLINE
693 HAVE_DECL_GETDELIM
694 HAVE_DECL_FTELLO
695 HAVE_DECL_FSEEKO
696 HAVE_DECL_FPURGE
697 GNULIB_VSPRINTF_POSIX
698 GNULIB_VSNPRINTF
699 GNULIB_VPRINTF_POSIX
700 GNULIB_VPRINTF
701 GNULIB_VFPRINTF_POSIX
702 GNULIB_VFPRINTF
703 GNULIB_VDPRINTF
704 GNULIB_VSCANF
705 GNULIB_VFSCANF
706 GNULIB_VASPRINTF
707 GNULIB_TMPFILE
708 GNULIB_STDIO_H_SIGPIPE
709 GNULIB_STDIO_H_NONBLOCKING
710 GNULIB_SPRINTF_POSIX
711 GNULIB_SNPRINTF
712 GNULIB_SCANF
713 GNULIB_RENAMEAT
714 GNULIB_RENAME
715 GNULIB_REMOVE
716 GNULIB_PUTS
717 GNULIB_PUTCHAR
718 GNULIB_PUTC
719 GNULIB_PRINTF_POSIX
720 GNULIB_PRINTF
721 GNULIB_POPEN
722 GNULIB_PERROR
723 GNULIB_PCLOSE
724 GNULIB_OBSTACK_PRINTF_POSIX
725 GNULIB_OBSTACK_PRINTF
726 GNULIB_GETLINE
727 GNULIB_GETDELIM
728 GNULIB_GETCHAR
729 GNULIB_GETC
730 GNULIB_FWRITE
731 GNULIB_FTELLO
732 GNULIB_FTELL
733 GNULIB_FSEEKO
734 GNULIB_FSEEK
735 GNULIB_FSCANF
736 GNULIB_FREOPEN
737 GNULIB_FREAD
738 GNULIB_FPUTS
739 GNULIB_FPUTC
740 GNULIB_FPURGE
741 GNULIB_FPRINTF_POSIX
742 GNULIB_FPRINTF
743 GNULIB_FOPEN
744 GNULIB_FGETS
745 GNULIB_FGETC
746 GNULIB_FFLUSH
747 GNULIB_FDOPEN
748 GNULIB_FCLOSE
749 GNULIB_DPRINTF
750 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
751 NEXT_STDDEF_H
752 GL_GENERATE_STDDEF_H_FALSE
753 GL_GENERATE_STDDEF_H_TRUE
754 STDDEF_H
755 HAVE_WCHAR_T
756 REPLACE_NULL
757 HAVE__BOOL
758 GL_GENERATE_STDBOOL_H_FALSE
759 GL_GENERATE_STDBOOL_H_TRUE
760 STDBOOL_H
761 GL_GENERATE_STDARG_H_FALSE
762 GL_GENERATE_STDARG_H_TRUE
763 STDARG_H
764 NEXT_AS_FIRST_DIRECTIVE_STDARG_H
765 NEXT_STDARG_H
766 GL_GENERATE_STDALIGN_H_FALSE
767 GL_GENERATE_STDALIGN_H_TRUE
768 STDALIGN_H
769 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
770 NEXT_SIGNAL_H
771 LIB_PTHREAD_SIGMASK
772 REPLACE_RAISE
773 REPLACE_PTHREAD_SIGMASK
774 HAVE_SIGHANDLER_T
775 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
776 HAVE_STRUCT_SIGACTION_SA_SIGACTION
777 HAVE_SIGACTION
778 HAVE_SIGINFO_T
779 HAVE_SIGSET_T
780 HAVE_RAISE
781 HAVE_PTHREAD_SIGMASK
782 HAVE_POSIX_SIGNALBLOCKING
783 GNULIB_SIGACTION
784 GNULIB_SIGPROCMASK
785 GNULIB_SIGNAL_H_SIGPIPE
786 GNULIB_RAISE
787 GNULIB_PTHREAD_SIGMASK
788 REPLACE_TIMEGM
789 REPLACE_NANOSLEEP
790 REPLACE_MKTIME
791 REPLACE_LOCALTIME_R
792 HAVE_TIMEGM
793 HAVE_STRPTIME
794 HAVE_NANOSLEEP
795 HAVE_DECL_LOCALTIME_R
796 GNULIB_TIME_R
797 GNULIB_TIMEGM
798 GNULIB_STRPTIME
799 GNULIB_NANOSLEEP
800 GNULIB_MKTIME
801 REPLACE_UTIMENSAT
802 REPLACE_STAT
803 REPLACE_MKNOD
804 REPLACE_MKFIFO
805 REPLACE_MKDIR
806 REPLACE_LSTAT
807 REPLACE_FUTIMENS
808 REPLACE_FSTATAT
809 REPLACE_FSTAT
810 HAVE_UTIMENSAT
811 HAVE_MKNODAT
812 HAVE_MKNOD
813 HAVE_MKFIFOAT
814 HAVE_MKFIFO
815 HAVE_MKDIRAT
816 HAVE_LSTAT
817 HAVE_LCHMOD
818 HAVE_FUTIMENS
819 HAVE_FSTATAT
820 HAVE_FCHMODAT
821 GNULIB_UTIMENSAT
822 GNULIB_STAT
823 GNULIB_MKNODAT
824 GNULIB_MKNOD
825 GNULIB_MKFIFOAT
826 GNULIB_MKFIFO
827 GNULIB_MKDIRAT
828 GNULIB_LSTAT
829 GNULIB_LCHMOD
830 GNULIB_FUTIMENS
831 GNULIB_FSTATAT
832 GNULIB_FSTAT
833 GNULIB_FCHMODAT
834 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
835 NEXT_INTTYPES_H
836 UINT64_MAX_EQ_ULONG_MAX
837 UINT32_MAX_LT_UINTMAX_MAX
838 PRIPTR_PREFIX
839 PRI_MACROS_BROKEN
840 INT64_MAX_EQ_LONG_MAX
841 INT32_MAX_LT_INTMAX_MAX
842 REPLACE_STRTOIMAX
843 HAVE_DECL_STRTOUMAX
844 HAVE_DECL_STRTOIMAX
845 HAVE_DECL_IMAXDIV
846 HAVE_DECL_IMAXABS
847 GNULIB_STRTOUMAX
848 GNULIB_STRTOIMAX
849 GNULIB_IMAXDIV
850 GNULIB_IMAXABS
851 GL_GENERATE_STDINT_H_FALSE
852 GL_GENERATE_STDINT_H_TRUE
853 STDINT_H
854 WINT_T_SUFFIX
855 WCHAR_T_SUFFIX
856 SIG_ATOMIC_T_SUFFIX
857 SIZE_T_SUFFIX
858 PTRDIFF_T_SUFFIX
859 HAVE_SIGNED_WINT_T
860 HAVE_SIGNED_WCHAR_T
861 HAVE_SIGNED_SIG_ATOMIC_T
862 BITSIZEOF_WINT_T
863 BITSIZEOF_WCHAR_T
864 BITSIZEOF_SIG_ATOMIC_T
865 BITSIZEOF_SIZE_T
866 BITSIZEOF_PTRDIFF_T
867 APPLE_UNIVERSAL_BUILD
868 HAVE_SYS_BITYPES_H
869 HAVE_SYS_INTTYPES_H
870 HAVE_STDINT_H
871 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
872 NEXT_STDINT_H
873 HAVE_SYS_TYPES_H
874 HAVE_INTTYPES_H
875 HAVE_WCHAR_H
876 HAVE_UNSIGNED_LONG_LONG_INT
877 HAVE_LONG_LONG_INT
878 GNULIB_GL_UNISTD_H_GETOPT
879 GETOPT_H
880 HAVE_GETOPT_H
881 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
882 NEXT_GETOPT_H
883 PRAGMA_COLUMNS
884 PRAGMA_SYSTEM_HEADER
885 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
886 INCLUDE_NEXT
887 GETLOADAVG_LIBS
888 REPLACE_WCTOMB
889 REPLACE_UNSETENV
890 REPLACE_STRTOD
891 REPLACE_SETENV
892 REPLACE_REALPATH
893 REPLACE_REALLOC
894 REPLACE_RANDOM_R
895 REPLACE_PUTENV
896 REPLACE_PTSNAME_R
897 REPLACE_MKSTEMP
898 REPLACE_MBTOWC
899 REPLACE_MALLOC
900 REPLACE_CANONICALIZE_FILE_NAME
901 REPLACE_CALLOC
902 HAVE_DECL_UNSETENV
903 HAVE_UNLOCKPT
904 HAVE_SYS_LOADAVG_H
905 HAVE_STRUCT_RANDOM_DATA
906 HAVE_STRTOULL
907 HAVE_STRTOLL
908 HAVE_STRTOD
909 HAVE_DECL_SETENV
910 HAVE_SETENV
911 HAVE_RPMATCH
912 HAVE_REALPATH
913 HAVE_RANDOM_R
914 HAVE_RANDOM_H
915 HAVE_RANDOM
916 HAVE_PTSNAME_R
917 HAVE_PTSNAME
918 HAVE_POSIX_OPENPT
919 HAVE_MKSTEMPS
920 HAVE_MKSTEMP
921 HAVE_MKOSTEMPS
922 HAVE_MKOSTEMP
923 HAVE_MKDTEMP
924 HAVE_GRANTPT
925 HAVE_GETSUBOPT
926 HAVE_DECL_GETLOADAVG
927 HAVE_CANONICALIZE_FILE_NAME
928 HAVE_ATOLL
929 HAVE__EXIT
930 GNULIB_WCTOMB
931 GNULIB_UNSETENV
932 GNULIB_UNLOCKPT
933 GNULIB_SYSTEM_POSIX
934 GNULIB_STRTOULL
935 GNULIB_STRTOLL
936 GNULIB_STRTOD
937 GNULIB_SETENV
938 GNULIB_RPMATCH
939 GNULIB_REALPATH
940 GNULIB_REALLOC_POSIX
941 GNULIB_RANDOM_R
942 GNULIB_RANDOM
943 GNULIB_PUTENV
944 GNULIB_PTSNAME_R
945 GNULIB_PTSNAME
946 GNULIB_POSIX_OPENPT
947 GNULIB_MKSTEMPS
948 GNULIB_MKSTEMP
949 GNULIB_MKOSTEMPS
950 GNULIB_MKOSTEMP
951 GNULIB_MKDTEMP
952 GNULIB_MBTOWC
953 GNULIB_MALLOC_POSIX
954 GNULIB_GRANTPT
955 GNULIB_GETSUBOPT
956 GNULIB_GETLOADAVG
957 GNULIB_CANONICALIZE_FILE_NAME
958 GNULIB_CALLOC_POSIX
959 GNULIB_ATOLL
960 GNULIB__EXIT
961 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
962 UNISTD_H_HAVE_WINSOCK2_H
963 REPLACE_WRITE
964 REPLACE_USLEEP
965 REPLACE_UNLINKAT
966 REPLACE_UNLINK
967 REPLACE_TTYNAME_R
968 REPLACE_SYMLINK
969 REPLACE_SLEEP
970 REPLACE_RMDIR
971 REPLACE_READLINK
972 REPLACE_READ
973 REPLACE_PWRITE
974 REPLACE_PREAD
975 REPLACE_LSEEK
976 REPLACE_LINKAT
977 REPLACE_LINK
978 REPLACE_LCHOWN
979 REPLACE_ISATTY
980 REPLACE_GETPAGESIZE
981 REPLACE_GETGROUPS
982 REPLACE_GETLOGIN_R
983 REPLACE_GETDOMAINNAME
984 REPLACE_GETCWD
985 REPLACE_FTRUNCATE
986 REPLACE_FCHOWNAT
987 REPLACE_DUP2
988 REPLACE_DUP
989 REPLACE_CLOSE
990 REPLACE_CHOWN
991 HAVE_SYS_PARAM_H
992 HAVE_OS_H
993 HAVE_DECL_TTYNAME_R
994 HAVE_DECL_SETHOSTNAME
995 HAVE_DECL_GETUSERSHELL
996 HAVE_DECL_GETPAGESIZE
997 HAVE_DECL_GETLOGIN_R
998 HAVE_DECL_GETDOMAINNAME
999 HAVE_DECL_FDATASYNC
1000 HAVE_DECL_FCHDIR
1001 HAVE_DECL_ENVIRON
1002 HAVE_USLEEP
1003 HAVE_UNLINKAT
1004 HAVE_SYMLINKAT
1005 HAVE_SYMLINK
1006 HAVE_SLEEP
1007 HAVE_SETHOSTNAME
1008 HAVE_READLINKAT
1009 HAVE_READLINK
1010 HAVE_PWRITE
1011 HAVE_PREAD
1012 HAVE_PIPE2
1013 HAVE_PIPE
1014 HAVE_LINKAT
1015 HAVE_LINK
1016 HAVE_LCHOWN
1017 HAVE_GROUP_MEMBER
1018 HAVE_GETPAGESIZE
1019 HAVE_GETLOGIN
1020 HAVE_GETHOSTNAME
1021 HAVE_GETGROUPS
1022 HAVE_GETDTABLESIZE
1023 HAVE_FTRUNCATE
1024 HAVE_FSYNC
1025 HAVE_FDATASYNC
1026 HAVE_FCHOWNAT
1027 HAVE_FCHDIR
1028 HAVE_FACCESSAT
1029 HAVE_EUIDACCESS
1030 HAVE_DUP3
1031 HAVE_DUP2
1032 HAVE_CHOWN
1033 GNULIB_WRITE
1034 GNULIB_USLEEP
1035 GNULIB_UNLINKAT
1036 GNULIB_UNLINK
1037 GNULIB_UNISTD_H_SIGPIPE
1038 GNULIB_UNISTD_H_NONBLOCKING
1039 GNULIB_TTYNAME_R
1040 GNULIB_SYMLINKAT
1041 GNULIB_SYMLINK
1042 GNULIB_SLEEP
1043 GNULIB_SETHOSTNAME
1044 GNULIB_RMDIR
1045 GNULIB_READLINKAT
1046 GNULIB_READLINK
1047 GNULIB_READ
1048 GNULIB_PWRITE
1049 GNULIB_PREAD
1050 GNULIB_PIPE2
1051 GNULIB_PIPE
1052 GNULIB_LSEEK
1053 GNULIB_LINKAT
1054 GNULIB_LINK
1055 GNULIB_LCHOWN
1056 GNULIB_ISATTY
1057 GNULIB_GROUP_MEMBER
1058 GNULIB_GETUSERSHELL
1059 GNULIB_GETPAGESIZE
1060 GNULIB_GETLOGIN_R
1061 GNULIB_GETLOGIN
1062 GNULIB_GETHOSTNAME
1063 GNULIB_GETGROUPS
1064 GNULIB_GETDTABLESIZE
1065 GNULIB_GETDOMAINNAME
1066 GNULIB_GETCWD
1067 GNULIB_FTRUNCATE
1068 GNULIB_FSYNC
1069 GNULIB_FDATASYNC
1070 GNULIB_FCHOWNAT
1071 GNULIB_FCHDIR
1072 GNULIB_FACCESSAT
1073 GNULIB_EUIDACCESS
1074 GNULIB_ENVIRON
1075 GNULIB_DUP3
1076 GNULIB_DUP2
1077 GNULIB_DUP
1078 GNULIB_CLOSE
1079 GNULIB_CHOWN
1080 GNULIB_CHDIR
1081 GL_GENERATE_ALLOCA_H_FALSE
1082 GL_GENERATE_ALLOCA_H_TRUE
1083 ALLOCA_H
1084 ALLOCA
1085 GL_COND_LIBTOOL_FALSE
1086 GL_COND_LIBTOOL_TRUE
1087 POST_ALLOC_OBJ
1088 PRE_ALLOC_OBJ
1089 CYGWIN_OBJ
1090 RALLOC_OBJ
1091 OLDXMENU_DEPS
1092 LIBX_OTHER
1093 LIBXMENU
1094 OLDXMENU
1095 OLDXMENU_TARGET
1096 LIBXT_OTHER
1097 TOOLKIT_LIBW
1098 WIDGET_OBJ
1099 XOBJ
1100 XMENU_OBJ
1101 FONT_OBJ
1102 OTHER_FILES
1103 GNU_OBJC_CFLAGS
1104 ns_appsrc
1105 ns_appresdir
1106 ns_appbindir
1107 ns_appdir
1108 S_FILE
1109 X_TOOLKIT_TYPE
1110 GNUSTEP_CFLAGS
1111 C_SWITCH_X_SITE
1112 LD_SWITCH_X_SITE
1113 gameuser
1114 gamedir
1115 bitmapdir
1116 archlibdir
1117 etcdir
1118 x_default_search_path
1119 lisppath
1120 locallisppath
1121 leimdir
1122 lispdir
1123 srcdir
1124 canonical
1125 configuration
1126 version
1127 KRB4LIB
1128 DESLIB
1129 KRB5LIB
1130 CRYPTOLIB
1131 COM_ERRLIB
1132 LIBRESOLV
1133 LIBHESIOD
1134 TERMCAP_OBJ
1135 LIBS_TERMCAP
1136 BLESSMAIL_TARGET
1137 LIBS_MAIL
1138 liblockfile
1139 LIBXML2_LIBS
1140 LIBXML2_CFLAGS
1141 LIBXSM
1142 LIBGPM
1143 LIBGIF
1144 LIBTIFF
1145 LIBPNG
1146 LIBJPEG
1147 LIBXPM
1148 M17N_FLT_LIBS
1149 M17N_FLT_CFLAGS
1150 LIBOTF_LIBS
1151 LIBOTF_CFLAGS
1152 FREETYPE_LIBS
1153 FREETYPE_CFLAGS
1154 XFT_LIBS
1155 XFT_CFLAGS
1156 FONTCONFIG_LIBS
1157 FONTCONFIG_CFLAGS
1158 LIBXMU
1159 LIBXTR6
1160 LIBGNUTLS_LIBS
1161 LIBGNUTLS_CFLAGS
1162 LIBSELINUX_LIBS
1163 SETTINGS_LIBS
1164 SETTINGS_CFLAGS
1165 GCONF_LIBS
1166 GCONF_CFLAGS
1167 GSETTINGS_LIBS
1168 GSETTINGS_CFLAGS
1169 DBUS_OBJ
1170 DBUS_LIBS
1171 DBUS_CFLAGS
1172 GTK_OBJ
1173 GTK_LIBS
1174 GTK_CFLAGS
1175 IMAGEMAGICK_LIBS
1176 IMAGEMAGICK_CFLAGS
1177 RSVG_LIBS
1178 RSVG_CFLAGS
1179 LIB_PTHREAD
1180 VMLIMIT_OBJ
1181 GMALLOC_OBJ
1182 HAVE_XSERVER
1183 LIB_STANDARD
1184 NS_OBJC_OBJ
1185 NS_OBJ
1186 ns_self_contained
1187 INSTALL_ARCH_INDEP_EXTRA
1188 TEMACS_LDFLAGS2
1189 LD_SWITCH_X_SITE_RPATH
1190 XMKMF
1191 DEPFLAGS
1192 MKDEPDIR
1193 CFLAGS_SOUND
1194 ALSA_LIBS
1195 ALSA_CFLAGS
1196 LIBSOUND
1197 PKG_CONFIG
1198 CRT_DIR
1199 START_FILES
1200 LIB_MATH
1201 LIBS_SYSTEM
1202 C_SWITCH_SYSTEM
1203 UNEXEC_OBJ
1204 C_SWITCH_MACHINE
1205 LD_SWITCH_SYSTEM
1206 CANNOT_DUMP
1207 INFO_OPTS
1208 INFO_EXT
1209 HAVE_MAKEINFO
1210 GZIP_PROG
1211 INSTALL_INFO
1212 GNULIB_WARN_CFLAGS
1213 WARN_CFLAGS
1214 WERROR_CFLAGS
1215 RANLIB
1216 ARFLAGS
1218 EGREP
1219 GREP
1221 am__fastdepCC_FALSE
1222 am__fastdepCC_TRUE
1223 CCDEPMODE
1224 AMDEPBACKSLASH
1225 AMDEP_FALSE
1226 AMDEP_TRUE
1227 am__quote
1228 am__include
1229 DEPDIR
1230 OBJEXT
1231 EXEEXT
1232 ac_ct_CC
1233 CPPFLAGS
1234 LDFLAGS
1235 CFLAGS
1237 host_os
1238 host_vendor
1239 host_cpu
1240 host
1241 build_os
1242 build_vendor
1243 build_cpu
1244 build
1245 PROFILING_CFLAGS
1246 MAINT
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_maintainer_mode
1356 enable_locallisppath
1357 enable_checking
1358 enable_use_lisp_union_type
1359 enable_profiling
1360 enable_autodepend
1361 enable_dependency_tracking
1362 enable_largefile
1363 enable_gcc_warnings
1364 with_x
1366 ac_precious_vars='build_alias
1367 host_alias
1368 target_alias
1370 CFLAGS
1371 LDFLAGS
1372 LIBS
1373 CPPFLAGS
1375 XMKMF'
1378 # Initialize some variables set by options.
1379 ac_init_help=
1380 ac_init_version=false
1381 ac_unrecognized_opts=
1382 ac_unrecognized_sep=
1383 # The variables have the same names as the options, with
1384 # dashes changed to underlines.
1385 cache_file=/dev/null
1386 exec_prefix=NONE
1387 no_create=
1388 no_recursion=
1389 prefix=NONE
1390 program_prefix=NONE
1391 program_suffix=NONE
1392 program_transform_name=s,x,x,
1393 silent=
1394 site=
1395 srcdir=
1396 verbose=
1397 x_includes=NONE
1398 x_libraries=NONE
1400 # Installation directory options.
1401 # These are left unexpanded so users can "make install exec_prefix=/foo"
1402 # and all the variables that are supposed to be based on exec_prefix
1403 # by default will actually change.
1404 # Use braces instead of parens because sh, perl, etc. also accept them.
1405 # (The list follows the same order as the GNU Coding Standards.)
1406 bindir='${exec_prefix}/bin'
1407 sbindir='${exec_prefix}/sbin'
1408 libexecdir='${exec_prefix}/libexec'
1409 datarootdir='${prefix}/share'
1410 datadir='${datarootdir}'
1411 sysconfdir='${prefix}/etc'
1412 sharedstatedir='${prefix}/com'
1413 localstatedir='${prefix}/var'
1414 includedir='${prefix}/include'
1415 oldincludedir='/usr/include'
1416 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1417 infodir='${datarootdir}/info'
1418 htmldir='${docdir}'
1419 dvidir='${docdir}'
1420 pdfdir='${docdir}'
1421 psdir='${docdir}'
1422 libdir='${exec_prefix}/lib'
1423 localedir='${datarootdir}/locale'
1424 mandir='${datarootdir}/man'
1426 ac_prev=
1427 ac_dashdash=
1428 for ac_option
1430 # If the previous option needs an argument, assign it.
1431 if test -n "$ac_prev"; then
1432 eval $ac_prev=\$ac_option
1433 ac_prev=
1434 continue
1437 case $ac_option in
1438 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1439 *) ac_optarg=yes ;;
1440 esac
1442 # Accept the important Cygnus configure options, so we can diagnose typos.
1444 case $ac_dashdash$ac_option in
1446 ac_dashdash=yes ;;
1448 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1449 ac_prev=bindir ;;
1450 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1451 bindir=$ac_optarg ;;
1453 -build | --build | --buil | --bui | --bu)
1454 ac_prev=build_alias ;;
1455 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1456 build_alias=$ac_optarg ;;
1458 -cache-file | --cache-file | --cache-fil | --cache-fi \
1459 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1460 ac_prev=cache_file ;;
1461 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1462 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1463 cache_file=$ac_optarg ;;
1465 --config-cache | -C)
1466 cache_file=config.cache ;;
1468 -datadir | --datadir | --datadi | --datad)
1469 ac_prev=datadir ;;
1470 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1471 datadir=$ac_optarg ;;
1473 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1474 | --dataroo | --dataro | --datar)
1475 ac_prev=datarootdir ;;
1476 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1477 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1478 datarootdir=$ac_optarg ;;
1480 -disable-* | --disable-*)
1481 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1482 # Reject names that are not valid shell variable names.
1483 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1484 as_fn_error "invalid feature name: $ac_useropt"
1485 ac_useropt_orig=$ac_useropt
1486 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1487 case $ac_user_opts in
1489 "enable_$ac_useropt"
1490 "*) ;;
1491 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1492 ac_unrecognized_sep=', ';;
1493 esac
1494 eval enable_$ac_useropt=no ;;
1496 -docdir | --docdir | --docdi | --doc | --do)
1497 ac_prev=docdir ;;
1498 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1499 docdir=$ac_optarg ;;
1501 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1502 ac_prev=dvidir ;;
1503 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1504 dvidir=$ac_optarg ;;
1506 -enable-* | --enable-*)
1507 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1508 # Reject names that are not valid shell variable names.
1509 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1510 as_fn_error "invalid feature name: $ac_useropt"
1511 ac_useropt_orig=$ac_useropt
1512 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1513 case $ac_user_opts in
1515 "enable_$ac_useropt"
1516 "*) ;;
1517 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1518 ac_unrecognized_sep=', ';;
1519 esac
1520 eval enable_$ac_useropt=\$ac_optarg ;;
1522 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1523 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1524 | --exec | --exe | --ex)
1525 ac_prev=exec_prefix ;;
1526 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1527 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1528 | --exec=* | --exe=* | --ex=*)
1529 exec_prefix=$ac_optarg ;;
1531 -gas | --gas | --ga | --g)
1532 # Obsolete; use --with-gas.
1533 with_gas=yes ;;
1535 -help | --help | --hel | --he | -h)
1536 ac_init_help=long ;;
1537 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1538 ac_init_help=recursive ;;
1539 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1540 ac_init_help=short ;;
1542 -host | --host | --hos | --ho)
1543 ac_prev=host_alias ;;
1544 -host=* | --host=* | --hos=* | --ho=*)
1545 host_alias=$ac_optarg ;;
1547 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1548 ac_prev=htmldir ;;
1549 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1550 | --ht=*)
1551 htmldir=$ac_optarg ;;
1553 -includedir | --includedir | --includedi | --included | --include \
1554 | --includ | --inclu | --incl | --inc)
1555 ac_prev=includedir ;;
1556 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1557 | --includ=* | --inclu=* | --incl=* | --inc=*)
1558 includedir=$ac_optarg ;;
1560 -infodir | --infodir | --infodi | --infod | --info | --inf)
1561 ac_prev=infodir ;;
1562 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1563 infodir=$ac_optarg ;;
1565 -libdir | --libdir | --libdi | --libd)
1566 ac_prev=libdir ;;
1567 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1568 libdir=$ac_optarg ;;
1570 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1571 | --libexe | --libex | --libe)
1572 ac_prev=libexecdir ;;
1573 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1574 | --libexe=* | --libex=* | --libe=*)
1575 libexecdir=$ac_optarg ;;
1577 -localedir | --localedir | --localedi | --localed | --locale)
1578 ac_prev=localedir ;;
1579 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1580 localedir=$ac_optarg ;;
1582 -localstatedir | --localstatedir | --localstatedi | --localstated \
1583 | --localstate | --localstat | --localsta | --localst | --locals)
1584 ac_prev=localstatedir ;;
1585 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1586 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1587 localstatedir=$ac_optarg ;;
1589 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1590 ac_prev=mandir ;;
1591 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1592 mandir=$ac_optarg ;;
1594 -nfp | --nfp | --nf)
1595 # Obsolete; use --without-fp.
1596 with_fp=no ;;
1598 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1599 | --no-cr | --no-c | -n)
1600 no_create=yes ;;
1602 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1603 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1604 no_recursion=yes ;;
1606 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1607 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1608 | --oldin | --oldi | --old | --ol | --o)
1609 ac_prev=oldincludedir ;;
1610 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1611 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1612 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1613 oldincludedir=$ac_optarg ;;
1615 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1616 ac_prev=prefix ;;
1617 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1618 prefix=$ac_optarg ;;
1620 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1621 | --program-pre | --program-pr | --program-p)
1622 ac_prev=program_prefix ;;
1623 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1624 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1625 program_prefix=$ac_optarg ;;
1627 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1628 | --program-suf | --program-su | --program-s)
1629 ac_prev=program_suffix ;;
1630 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1631 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1632 program_suffix=$ac_optarg ;;
1634 -program-transform-name | --program-transform-name \
1635 | --program-transform-nam | --program-transform-na \
1636 | --program-transform-n | --program-transform- \
1637 | --program-transform | --program-transfor \
1638 | --program-transfo | --program-transf \
1639 | --program-trans | --program-tran \
1640 | --progr-tra | --program-tr | --program-t)
1641 ac_prev=program_transform_name ;;
1642 -program-transform-name=* | --program-transform-name=* \
1643 | --program-transform-nam=* | --program-transform-na=* \
1644 | --program-transform-n=* | --program-transform-=* \
1645 | --program-transform=* | --program-transfor=* \
1646 | --program-transfo=* | --program-transf=* \
1647 | --program-trans=* | --program-tran=* \
1648 | --progr-tra=* | --program-tr=* | --program-t=*)
1649 program_transform_name=$ac_optarg ;;
1651 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1652 ac_prev=pdfdir ;;
1653 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1654 pdfdir=$ac_optarg ;;
1656 -psdir | --psdir | --psdi | --psd | --ps)
1657 ac_prev=psdir ;;
1658 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1659 psdir=$ac_optarg ;;
1661 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1662 | -silent | --silent | --silen | --sile | --sil)
1663 silent=yes ;;
1665 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1666 ac_prev=sbindir ;;
1667 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1668 | --sbi=* | --sb=*)
1669 sbindir=$ac_optarg ;;
1671 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1672 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1673 | --sharedst | --shareds | --shared | --share | --shar \
1674 | --sha | --sh)
1675 ac_prev=sharedstatedir ;;
1676 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1677 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1678 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1679 | --sha=* | --sh=*)
1680 sharedstatedir=$ac_optarg ;;
1682 -site | --site | --sit)
1683 ac_prev=site ;;
1684 -site=* | --site=* | --sit=*)
1685 site=$ac_optarg ;;
1687 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1688 ac_prev=srcdir ;;
1689 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1690 srcdir=$ac_optarg ;;
1692 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1693 | --syscon | --sysco | --sysc | --sys | --sy)
1694 ac_prev=sysconfdir ;;
1695 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1696 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1697 sysconfdir=$ac_optarg ;;
1699 -target | --target | --targe | --targ | --tar | --ta | --t)
1700 ac_prev=target_alias ;;
1701 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1702 target_alias=$ac_optarg ;;
1704 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1705 verbose=yes ;;
1707 -version | --version | --versio | --versi | --vers | -V)
1708 ac_init_version=: ;;
1710 -with-* | --with-*)
1711 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1712 # Reject names that are not valid shell variable names.
1713 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1714 as_fn_error "invalid package name: $ac_useropt"
1715 ac_useropt_orig=$ac_useropt
1716 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1717 case $ac_user_opts in
1719 "with_$ac_useropt"
1720 "*) ;;
1721 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1722 ac_unrecognized_sep=', ';;
1723 esac
1724 eval with_$ac_useropt=\$ac_optarg ;;
1726 -without-* | --without-*)
1727 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1728 # Reject names that are not valid shell variable names.
1729 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1730 as_fn_error "invalid package name: $ac_useropt"
1731 ac_useropt_orig=$ac_useropt
1732 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1733 case $ac_user_opts in
1735 "with_$ac_useropt"
1736 "*) ;;
1737 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1738 ac_unrecognized_sep=', ';;
1739 esac
1740 eval with_$ac_useropt=no ;;
1742 --x)
1743 # Obsolete; use --with-x.
1744 with_x=yes ;;
1746 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1747 | --x-incl | --x-inc | --x-in | --x-i)
1748 ac_prev=x_includes ;;
1749 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1750 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1751 x_includes=$ac_optarg ;;
1753 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1754 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1755 ac_prev=x_libraries ;;
1756 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1757 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1758 x_libraries=$ac_optarg ;;
1760 -*) as_fn_error "unrecognized option: \`$ac_option'
1761 Try \`$0 --help' for more information."
1764 *=*)
1765 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1766 # Reject names that are not valid shell variable names.
1767 case $ac_envvar in #(
1768 '' | [0-9]* | *[!_$as_cr_alnum]* )
1769 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1770 esac
1771 eval $ac_envvar=\$ac_optarg
1772 export $ac_envvar ;;
1775 # FIXME: should be removed in autoconf 3.0.
1776 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1777 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1778 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1779 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1782 esac
1783 done
1785 if test -n "$ac_prev"; then
1786 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1787 as_fn_error "missing argument to $ac_option"
1790 if test -n "$ac_unrecognized_opts"; then
1791 case $enable_option_checking in
1792 no) ;;
1793 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1794 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1795 esac
1798 # Check all directory arguments for consistency.
1799 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1800 datadir sysconfdir sharedstatedir localstatedir includedir \
1801 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1802 libdir localedir mandir
1804 eval ac_val=\$$ac_var
1805 # Remove trailing slashes.
1806 case $ac_val in
1807 */ )
1808 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1809 eval $ac_var=\$ac_val;;
1810 esac
1811 # Be sure to have absolute directory names.
1812 case $ac_val in
1813 [\\/$]* | ?:[\\/]* ) continue;;
1814 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1815 esac
1816 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1817 done
1819 # There might be people who depend on the old broken behavior: `$host'
1820 # used to hold the argument of --host etc.
1821 # FIXME: To remove some day.
1822 build=$build_alias
1823 host=$host_alias
1824 target=$target_alias
1826 # FIXME: To remove some day.
1827 if test "x$host_alias" != x; then
1828 if test "x$build_alias" = x; then
1829 cross_compiling=maybe
1830 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1831 If a cross compiler is detected then cross compile mode will be used." >&2
1832 elif test "x$build_alias" != "x$host_alias"; then
1833 cross_compiling=yes
1837 ac_tool_prefix=
1838 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1840 test "$silent" = yes && exec 6>/dev/null
1843 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1844 ac_ls_di=`ls -di .` &&
1845 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1846 as_fn_error "working directory cannot be determined"
1847 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1848 as_fn_error "pwd does not report name of working directory"
1851 # Find the source files, if location was not specified.
1852 if test -z "$srcdir"; then
1853 ac_srcdir_defaulted=yes
1854 # Try the directory containing this script, then the parent directory.
1855 ac_confdir=`$as_dirname -- "$as_myself" ||
1856 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1857 X"$as_myself" : 'X\(//\)[^/]' \| \
1858 X"$as_myself" : 'X\(//\)$' \| \
1859 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1860 $as_echo X"$as_myself" |
1861 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1862 s//\1/
1865 /^X\(\/\/\)[^/].*/{
1866 s//\1/
1869 /^X\(\/\/\)$/{
1870 s//\1/
1873 /^X\(\/\).*/{
1874 s//\1/
1877 s/.*/./; q'`
1878 srcdir=$ac_confdir
1879 if test ! -r "$srcdir/$ac_unique_file"; then
1880 srcdir=..
1882 else
1883 ac_srcdir_defaulted=no
1885 if test ! -r "$srcdir/$ac_unique_file"; then
1886 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1887 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1889 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1890 ac_abs_confdir=`(
1891 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1892 pwd)`
1893 # When building in place, set srcdir=.
1894 if test "$ac_abs_confdir" = "$ac_pwd"; then
1895 srcdir=.
1897 # Remove unnecessary trailing slashes from srcdir.
1898 # Double slashes in file names in object file debugging info
1899 # mess up M-x gdb in Emacs.
1900 case $srcdir in
1901 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1902 esac
1903 for ac_var in $ac_precious_vars; do
1904 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1905 eval ac_env_${ac_var}_value=\$${ac_var}
1906 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1907 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1908 done
1911 # Report the --help message.
1913 if test "$ac_init_help" = "long"; then
1914 # Omit some internal or obsolete options to make the list less imposing.
1915 # This message is too long to be a string in the A/UX 3.1 sh.
1916 cat <<_ACEOF
1917 \`configure' configures emacs 24.1.50 to adapt to many kinds of systems.
1919 Usage: $0 [OPTION]... [VAR=VALUE]...
1921 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1922 VAR=VALUE. See below for descriptions of some of the useful variables.
1924 Defaults for the options are specified in brackets.
1926 Configuration:
1927 -h, --help display this help and exit
1928 --help=short display options specific to this package
1929 --help=recursive display the short help of all the included packages
1930 -V, --version display version information and exit
1931 -q, --quiet, --silent do not print \`checking...' messages
1932 --cache-file=FILE cache test results in FILE [disabled]
1933 -C, --config-cache alias for \`--cache-file=config.cache'
1934 -n, --no-create do not create output files
1935 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1937 Installation directories:
1938 --prefix=PREFIX install architecture-independent files in PREFIX
1939 [$ac_default_prefix]
1940 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1941 [PREFIX]
1943 By default, \`make install' will install all the files in
1944 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1945 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1946 for instance \`--prefix=\$HOME'.
1948 For better control, use the options below.
1950 Fine tuning of the installation directories:
1951 --bindir=DIR user executables [EPREFIX/bin]
1952 --sbindir=DIR system admin executables [EPREFIX/sbin]
1953 --libexecdir=DIR program executables [EPREFIX/libexec]
1954 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1955 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1956 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1957 --libdir=DIR object code libraries [EPREFIX/lib]
1958 --includedir=DIR C header files [PREFIX/include]
1959 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1960 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1961 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1962 --infodir=DIR info documentation [DATAROOTDIR/info]
1963 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1964 --mandir=DIR man documentation [DATAROOTDIR/man]
1965 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1966 --htmldir=DIR html documentation [DOCDIR]
1967 --dvidir=DIR dvi documentation [DOCDIR]
1968 --pdfdir=DIR pdf documentation [DOCDIR]
1969 --psdir=DIR ps documentation [DOCDIR]
1970 _ACEOF
1972 cat <<\_ACEOF
1974 Program names:
1975 --program-prefix=PREFIX prepend PREFIX to installed program names
1976 --program-suffix=SUFFIX append SUFFIX to installed program names
1977 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1979 X features:
1980 --x-includes=DIR X include files are in DIR
1981 --x-libraries=DIR X library files are in DIR
1983 System types:
1984 --build=BUILD configure for building on BUILD [guessed]
1985 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1986 _ACEOF
1989 if test -n "$ac_init_help"; then
1990 case $ac_init_help in
1991 short | recursive ) echo "Configuration of emacs 24.1.50:";;
1992 esac
1993 cat <<\_ACEOF
1995 Optional Features:
1996 --disable-option-checking ignore unrecognized --enable/--with options
1997 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1998 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1999 --disable-ns-self-contained
2000 disable self contained build under NeXTstep
2001 --enable-asserts compile code with asserts enabled
2002 --disable-maintainer-mode
2003 disable make rules and dependencies not useful (and
2004 sometimes confusing) to the casual installer
2005 --enable-locallisppath=PATH
2006 directories Emacs should search for lisp files
2007 specific to this site
2008 --enable-checking[=LIST]
2009 enable expensive run-time checks. With LIST, enable
2010 only specific categories of checks. Categories are:
2011 all,yes,no. Flags are: stringbytes, stringoverrun,
2012 stringfreelist, xmallocoverrun, conslist
2013 --enable-use-lisp-union-type
2014 use a union for the Lisp_Object data type. This is
2015 only useful for development for catching certain
2016 types of bugs.
2017 --enable-profiling build emacs with profiling support. This might not
2018 work on all platforms
2019 --enable-autodepend automatically generate dependencies to .h-files.
2020 Requires GNU Make and Gcc. Enabled if GNU Make and
2021 Gcc is found
2022 --disable-dependency-tracking speeds up one-time build
2023 --enable-dependency-tracking do not reject slow dependency extractors
2024 --disable-largefile omit support for large files
2025 --enable-gcc-warnings turn on lots of GCC warnings (for developers)
2027 Optional Packages:
2028 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
2029 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
2030 --without-pop don't support POP mail retrieval with movemail
2031 --with-kerberos support Kerberos-authenticated POP
2032 --with-kerberos5 support Kerberos version 5 authenticated POP
2033 --with-hesiod support Hesiod to get the POP server host
2034 --with-mmdf support MMDF mailboxes
2035 --with-mail-unlink unlink, rather than empty, mail spool after reading
2036 --with-mailhost=HOSTNAME
2037 string giving default POP mail host
2038 --without-sound don't compile with sound support
2039 --without-sync-input process async input synchronously
2040 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes or gtk, gtk3,
2041 lucid or athena, motif, no)
2042 --with-wide-int prefer wide Emacs integers (typically 62-bit)
2043 --without-xpm don't compile with XPM image support
2044 --without-jpeg don't compile with JPEG image support
2045 --without-tiff don't compile with TIFF image support
2046 --without-gif don't compile with GIF image support
2047 --without-png don't compile with PNG image support
2048 --without-rsvg don't compile with SVG image support
2049 --without-xml2 don't compile with XML parsing support
2050 --without-imagemagick don't compile with ImageMagick image support
2051 --without-xft don't use XFT for anti aliased fonts
2052 --without-libotf don't use libotf for OpenType font support
2053 --without-m17n-flt don't use m17n-flt for text shaping
2054 --without-toolkit-scroll-bars
2055 don't use Motif or Xaw3d scroll bars
2056 --without-xaw3d don't use Xaw3d
2057 --without-xim don't use X11 XIM
2058 --with-ns use NeXTstep (Cocoa or GNUstep) windowing system
2059 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
2060 console
2061 --without-dbus don't compile with D-Bus support
2062 --without-gconf don't compile with GConf support
2063 --without-gsettings don't compile with GSettings support
2064 --without-selinux don't compile with SELinux support
2065 --without-gnutls don't use -lgnutls for SSL/TLS support
2066 --without-makeinfo don't require makeinfo for building manuals
2067 --without-compress-info don't compress the installed Info pages
2068 --with-pkg-config-prog=PATH
2069 path to pkg-config for finding GTK and librsvg
2070 --with-crt-dir=DIR directory containing crtn.o etc. The default is
2071 /usr/lib, or /usr/lib64 on some platforms.
2072 --with-gameuser=USER user for shared game score files
2073 --with-gnustep-conf=PATH
2074 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
2075 or /etc/GNUstep/GNUstep.conf
2076 --with-x use the X Window System
2078 Some influential environment variables:
2079 CC C compiler command
2080 CFLAGS C compiler flags
2081 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2082 nonstandard directory <lib dir>
2083 LIBS libraries to pass to the linker, e.g. -l<library>
2084 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2085 you have headers in a nonstandard directory <include dir>
2086 CPP C preprocessor
2087 XMKMF Path to xmkmf, Makefile generator for X Window System
2089 Use these variables to override the choices made by `configure' or to help
2090 it to find libraries and programs with nonstandard names/locations.
2092 Report bugs to the package provider.
2093 _ACEOF
2094 ac_status=$?
2097 if test "$ac_init_help" = "recursive"; then
2098 # If there are subdirs, report their specific --help.
2099 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2100 test -d "$ac_dir" ||
2101 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2102 continue
2103 ac_builddir=.
2105 case "$ac_dir" in
2106 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2108 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2109 # A ".." for each directory in $ac_dir_suffix.
2110 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2111 case $ac_top_builddir_sub in
2112 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2113 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2114 esac ;;
2115 esac
2116 ac_abs_top_builddir=$ac_pwd
2117 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2118 # for backward compatibility:
2119 ac_top_builddir=$ac_top_build_prefix
2121 case $srcdir in
2122 .) # We are building in place.
2123 ac_srcdir=.
2124 ac_top_srcdir=$ac_top_builddir_sub
2125 ac_abs_top_srcdir=$ac_pwd ;;
2126 [\\/]* | ?:[\\/]* ) # Absolute name.
2127 ac_srcdir=$srcdir$ac_dir_suffix;
2128 ac_top_srcdir=$srcdir
2129 ac_abs_top_srcdir=$srcdir ;;
2130 *) # Relative name.
2131 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2132 ac_top_srcdir=$ac_top_build_prefix$srcdir
2133 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2134 esac
2135 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2137 cd "$ac_dir" || { ac_status=$?; continue; }
2138 # Check for guested configure.
2139 if test -f "$ac_srcdir/configure.gnu"; then
2140 echo &&
2141 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2142 elif test -f "$ac_srcdir/configure"; then
2143 echo &&
2144 $SHELL "$ac_srcdir/configure" --help=recursive
2145 else
2146 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2147 fi || ac_status=$?
2148 cd "$ac_pwd" || { ac_status=$?; break; }
2149 done
2152 test -n "$ac_init_help" && exit $ac_status
2153 if $ac_init_version; then
2154 cat <<\_ACEOF
2155 emacs configure 24.1.50
2156 generated by GNU Autoconf 2.65
2158 Copyright (C) 2009 Free Software Foundation, Inc.
2159 This configure script is free software; the Free Software Foundation
2160 gives unlimited permission to copy, distribute and modify it.
2161 _ACEOF
2162 exit
2165 ## ------------------------ ##
2166 ## Autoconf initialization. ##
2167 ## ------------------------ ##
2169 # ac_fn_c_try_compile LINENO
2170 # --------------------------
2171 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2172 ac_fn_c_try_compile ()
2174 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2175 rm -f conftest.$ac_objext
2176 if { { ac_try="$ac_compile"
2177 case "(($ac_try" in
2178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2179 *) ac_try_echo=$ac_try;;
2180 esac
2181 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2182 $as_echo "$ac_try_echo"; } >&5
2183 (eval "$ac_compile") 2>conftest.err
2184 ac_status=$?
2185 if test -s conftest.err; then
2186 grep -v '^ *+' conftest.err >conftest.er1
2187 cat conftest.er1 >&5
2188 mv -f conftest.er1 conftest.err
2190 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2191 test $ac_status = 0; } && {
2192 test -z "$ac_c_werror_flag" ||
2193 test ! -s conftest.err
2194 } && test -s conftest.$ac_objext; then :
2195 ac_retval=0
2196 else
2197 $as_echo "$as_me: failed program was:" >&5
2198 sed 's/^/| /' conftest.$ac_ext >&5
2200 ac_retval=1
2202 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2203 as_fn_set_status $ac_retval
2205 } # ac_fn_c_try_compile
2207 # ac_fn_c_try_cpp LINENO
2208 # ----------------------
2209 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2210 ac_fn_c_try_cpp ()
2212 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2213 if { { ac_try="$ac_cpp conftest.$ac_ext"
2214 case "(($ac_try" in
2215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2216 *) ac_try_echo=$ac_try;;
2217 esac
2218 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2219 $as_echo "$ac_try_echo"; } >&5
2220 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2221 ac_status=$?
2222 if test -s conftest.err; then
2223 grep -v '^ *+' conftest.err >conftest.er1
2224 cat conftest.er1 >&5
2225 mv -f conftest.er1 conftest.err
2227 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2228 test $ac_status = 0; } >/dev/null && {
2229 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2230 test ! -s conftest.err
2231 }; then :
2232 ac_retval=0
2233 else
2234 $as_echo "$as_me: failed program was:" >&5
2235 sed 's/^/| /' conftest.$ac_ext >&5
2237 ac_retval=1
2239 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2240 as_fn_set_status $ac_retval
2242 } # ac_fn_c_try_cpp
2244 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2245 # -------------------------------------------------------
2246 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2247 # the include files in INCLUDES and setting the cache variable VAR
2248 # accordingly.
2249 ac_fn_c_check_header_mongrel ()
2251 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2252 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2254 $as_echo_n "checking for $2... " >&6; }
2255 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2256 $as_echo_n "(cached) " >&6
2258 eval ac_res=\$$3
2259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2260 $as_echo "$ac_res" >&6; }
2261 else
2262 # Is the header compilable?
2263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2264 $as_echo_n "checking $2 usability... " >&6; }
2265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2266 /* end confdefs.h. */
2268 #include <$2>
2269 _ACEOF
2270 if ac_fn_c_try_compile "$LINENO"; then :
2271 ac_header_compiler=yes
2272 else
2273 ac_header_compiler=no
2275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2277 $as_echo "$ac_header_compiler" >&6; }
2279 # Is the header present?
2280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2281 $as_echo_n "checking $2 presence... " >&6; }
2282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2283 /* end confdefs.h. */
2284 #include <$2>
2285 _ACEOF
2286 if ac_fn_c_try_cpp "$LINENO"; then :
2287 ac_header_preproc=yes
2288 else
2289 ac_header_preproc=no
2291 rm -f conftest.err conftest.$ac_ext
2292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2293 $as_echo "$ac_header_preproc" >&6; }
2295 # So? What about this header?
2296 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2297 yes:no: )
2298 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2299 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2300 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2301 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2303 no:yes:* )
2304 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2305 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2306 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2307 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2308 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2309 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2310 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2311 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2312 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2313 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2315 esac
2316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2317 $as_echo_n "checking for $2... " >&6; }
2318 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2319 $as_echo_n "(cached) " >&6
2320 else
2321 eval "$3=\$ac_header_compiler"
2323 eval ac_res=\$$3
2324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2325 $as_echo "$ac_res" >&6; }
2327 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2329 } # ac_fn_c_check_header_mongrel
2331 # ac_fn_c_try_run LINENO
2332 # ----------------------
2333 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2334 # that executables *can* be run.
2335 ac_fn_c_try_run ()
2337 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2338 if { { ac_try="$ac_link"
2339 case "(($ac_try" in
2340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2341 *) ac_try_echo=$ac_try;;
2342 esac
2343 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2344 $as_echo "$ac_try_echo"; } >&5
2345 (eval "$ac_link") 2>&5
2346 ac_status=$?
2347 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2348 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2349 { { case "(($ac_try" in
2350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2351 *) ac_try_echo=$ac_try;;
2352 esac
2353 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2354 $as_echo "$ac_try_echo"; } >&5
2355 (eval "$ac_try") 2>&5
2356 ac_status=$?
2357 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2358 test $ac_status = 0; }; }; then :
2359 ac_retval=0
2360 else
2361 $as_echo "$as_me: program exited with status $ac_status" >&5
2362 $as_echo "$as_me: failed program was:" >&5
2363 sed 's/^/| /' conftest.$ac_ext >&5
2365 ac_retval=$ac_status
2367 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2368 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2369 as_fn_set_status $ac_retval
2371 } # ac_fn_c_try_run
2373 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2374 # -------------------------------------------------------
2375 # Tests whether HEADER exists and can be compiled using the include files in
2376 # INCLUDES, setting the cache variable VAR accordingly.
2377 ac_fn_c_check_header_compile ()
2379 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2381 $as_echo_n "checking for $2... " >&6; }
2382 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2383 $as_echo_n "(cached) " >&6
2384 else
2385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2386 /* end confdefs.h. */
2388 #include <$2>
2389 _ACEOF
2390 if ac_fn_c_try_compile "$LINENO"; then :
2391 eval "$3=yes"
2392 else
2393 eval "$3=no"
2395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2397 eval ac_res=\$$3
2398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2399 $as_echo "$ac_res" >&6; }
2400 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2402 } # ac_fn_c_check_header_compile
2404 # ac_fn_c_try_link LINENO
2405 # -----------------------
2406 # Try to link conftest.$ac_ext, and return whether this succeeded.
2407 ac_fn_c_try_link ()
2409 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2410 rm -f conftest.$ac_objext conftest$ac_exeext
2411 if { { ac_try="$ac_link"
2412 case "(($ac_try" in
2413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2414 *) ac_try_echo=$ac_try;;
2415 esac
2416 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2417 $as_echo "$ac_try_echo"; } >&5
2418 (eval "$ac_link") 2>conftest.err
2419 ac_status=$?
2420 if test -s conftest.err; then
2421 grep -v '^ *+' conftest.err >conftest.er1
2422 cat conftest.er1 >&5
2423 mv -f conftest.er1 conftest.err
2425 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2426 test $ac_status = 0; } && {
2427 test -z "$ac_c_werror_flag" ||
2428 test ! -s conftest.err
2429 } && test -s conftest$ac_exeext && {
2430 test "$cross_compiling" = yes ||
2431 $as_test_x conftest$ac_exeext
2432 }; then :
2433 ac_retval=0
2434 else
2435 $as_echo "$as_me: failed program was:" >&5
2436 sed 's/^/| /' conftest.$ac_ext >&5
2438 ac_retval=1
2440 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2441 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2442 # interfere with the next link command; also delete a directory that is
2443 # left behind by Apple's compiler. We do this before executing the actions.
2444 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2445 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2446 as_fn_set_status $ac_retval
2448 } # ac_fn_c_try_link
2450 # ac_fn_c_check_decl LINENO SYMBOL VAR
2451 # ------------------------------------
2452 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2453 ac_fn_c_check_decl ()
2455 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2457 $as_echo_n "checking whether $2 is declared... " >&6; }
2458 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2459 $as_echo_n "(cached) " >&6
2460 else
2461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2462 /* end confdefs.h. */
2465 main ()
2467 #ifndef $2
2468 (void) $2;
2469 #endif
2472 return 0;
2474 _ACEOF
2475 if ac_fn_c_try_compile "$LINENO"; then :
2476 eval "$3=yes"
2477 else
2478 eval "$3=no"
2480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2482 eval ac_res=\$$3
2483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2484 $as_echo "$ac_res" >&6; }
2485 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2487 } # ac_fn_c_check_decl
2489 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2490 # ----------------------------------------------
2491 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2492 ac_fn_c_check_header_preproc ()
2494 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2496 $as_echo_n "checking for $2... " >&6; }
2497 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2498 $as_echo_n "(cached) " >&6
2499 else
2500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2501 /* end confdefs.h. */
2502 #include <$2>
2503 _ACEOF
2504 if ac_fn_c_try_cpp "$LINENO"; then :
2505 eval "$3=yes"
2506 else
2507 eval "$3=no"
2509 rm -f conftest.err conftest.$ac_ext
2511 eval ac_res=\$$3
2512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2513 $as_echo "$ac_res" >&6; }
2514 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2516 } # ac_fn_c_check_header_preproc
2518 # ac_fn_c_check_func LINENO FUNC VAR
2519 # ----------------------------------
2520 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2521 ac_fn_c_check_func ()
2523 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2525 $as_echo_n "checking for $2... " >&6; }
2526 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2527 $as_echo_n "(cached) " >&6
2528 else
2529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2530 /* end confdefs.h. */
2531 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2532 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2533 #define $2 innocuous_$2
2535 /* System header to define __stub macros and hopefully few prototypes,
2536 which can conflict with char $2 (); below.
2537 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2538 <limits.h> exists even on freestanding compilers. */
2540 #ifdef __STDC__
2541 # include <limits.h>
2542 #else
2543 # include <assert.h>
2544 #endif
2546 #undef $2
2548 /* Override any GCC internal prototype to avoid an error.
2549 Use char because int might match the return type of a GCC
2550 builtin and then its argument prototype would still apply. */
2551 #ifdef __cplusplus
2552 extern "C"
2553 #endif
2554 char $2 ();
2555 /* The GNU C library defines this for functions which it implements
2556 to always fail with ENOSYS. Some functions are actually named
2557 something starting with __ and the normal name is an alias. */
2558 #if defined __stub_$2 || defined __stub___$2
2559 choke me
2560 #endif
2563 main ()
2565 return $2 ();
2567 return 0;
2569 _ACEOF
2570 if ac_fn_c_try_link "$LINENO"; then :
2571 eval "$3=yes"
2572 else
2573 eval "$3=no"
2575 rm -f core conftest.err conftest.$ac_objext \
2576 conftest$ac_exeext conftest.$ac_ext
2578 eval ac_res=\$$3
2579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2580 $as_echo "$ac_res" >&6; }
2581 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2583 } # ac_fn_c_check_func
2585 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2586 # ----------------------------------------------------
2587 # Tries to find if the field MEMBER exists in type AGGR, after including
2588 # INCLUDES, setting cache variable VAR accordingly.
2589 ac_fn_c_check_member ()
2591 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2593 $as_echo_n "checking for $2.$3... " >&6; }
2594 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2595 $as_echo_n "(cached) " >&6
2596 else
2597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2598 /* end confdefs.h. */
2601 main ()
2603 static $2 ac_aggr;
2604 if (ac_aggr.$3)
2605 return 0;
2607 return 0;
2609 _ACEOF
2610 if ac_fn_c_try_compile "$LINENO"; then :
2611 eval "$4=yes"
2612 else
2613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2614 /* end confdefs.h. */
2617 main ()
2619 static $2 ac_aggr;
2620 if (sizeof ac_aggr.$3)
2621 return 0;
2623 return 0;
2625 _ACEOF
2626 if ac_fn_c_try_compile "$LINENO"; then :
2627 eval "$4=yes"
2628 else
2629 eval "$4=no"
2631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2635 eval ac_res=\$$4
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2637 $as_echo "$ac_res" >&6; }
2638 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2640 } # ac_fn_c_check_member
2642 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2643 # -------------------------------------------
2644 # Tests whether TYPE exists after having included INCLUDES, setting cache
2645 # variable VAR accordingly.
2646 ac_fn_c_check_type ()
2648 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2650 $as_echo_n "checking for $2... " >&6; }
2651 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2652 $as_echo_n "(cached) " >&6
2653 else
2654 eval "$3=no"
2655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2656 /* end confdefs.h. */
2659 main ()
2661 if (sizeof ($2))
2662 return 0;
2664 return 0;
2666 _ACEOF
2667 if ac_fn_c_try_compile "$LINENO"; then :
2668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2669 /* end confdefs.h. */
2672 main ()
2674 if (sizeof (($2)))
2675 return 0;
2677 return 0;
2679 _ACEOF
2680 if ac_fn_c_try_compile "$LINENO"; then :
2682 else
2683 eval "$3=yes"
2685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2689 eval ac_res=\$$3
2690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2691 $as_echo "$ac_res" >&6; }
2692 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2694 } # ac_fn_c_check_type
2696 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2697 # --------------------------------------------
2698 # Tries to find the compile-time value of EXPR in a program that includes
2699 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2700 # computed
2701 ac_fn_c_compute_int ()
2703 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2704 if test "$cross_compiling" = yes; then
2705 # Depending upon the size, compute the lo and hi bounds.
2706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2707 /* end confdefs.h. */
2710 main ()
2712 static int test_array [1 - 2 * !(($2) >= 0)];
2713 test_array [0] = 0
2716 return 0;
2718 _ACEOF
2719 if ac_fn_c_try_compile "$LINENO"; then :
2720 ac_lo=0 ac_mid=0
2721 while :; do
2722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2723 /* end confdefs.h. */
2726 main ()
2728 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2729 test_array [0] = 0
2732 return 0;
2734 _ACEOF
2735 if ac_fn_c_try_compile "$LINENO"; then :
2736 ac_hi=$ac_mid; break
2737 else
2738 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2739 if test $ac_lo -le $ac_mid; then
2740 ac_lo= ac_hi=
2741 break
2743 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2746 done
2747 else
2748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2749 /* end confdefs.h. */
2752 main ()
2754 static int test_array [1 - 2 * !(($2) < 0)];
2755 test_array [0] = 0
2758 return 0;
2760 _ACEOF
2761 if ac_fn_c_try_compile "$LINENO"; then :
2762 ac_hi=-1 ac_mid=-1
2763 while :; do
2764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2765 /* end confdefs.h. */
2768 main ()
2770 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2771 test_array [0] = 0
2774 return 0;
2776 _ACEOF
2777 if ac_fn_c_try_compile "$LINENO"; then :
2778 ac_lo=$ac_mid; break
2779 else
2780 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2781 if test $ac_mid -le $ac_hi; then
2782 ac_lo= ac_hi=
2783 break
2785 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2788 done
2789 else
2790 ac_lo= ac_hi=
2792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2795 # Binary search between lo and hi bounds.
2796 while test "x$ac_lo" != "x$ac_hi"; do
2797 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2799 /* end confdefs.h. */
2802 main ()
2804 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2805 test_array [0] = 0
2808 return 0;
2810 _ACEOF
2811 if ac_fn_c_try_compile "$LINENO"; then :
2812 ac_hi=$ac_mid
2813 else
2814 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2817 done
2818 case $ac_lo in #((
2819 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2820 '') ac_retval=1 ;;
2821 esac
2822 else
2823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2824 /* end confdefs.h. */
2826 static long int longval () { return $2; }
2827 static unsigned long int ulongval () { return $2; }
2828 #include <stdio.h>
2829 #include <stdlib.h>
2831 main ()
2834 FILE *f = fopen ("conftest.val", "w");
2835 if (! f)
2836 return 1;
2837 if (($2) < 0)
2839 long int i = longval ();
2840 if (i != ($2))
2841 return 1;
2842 fprintf (f, "%ld", i);
2844 else
2846 unsigned long int i = ulongval ();
2847 if (i != ($2))
2848 return 1;
2849 fprintf (f, "%lu", i);
2851 /* Do not output a trailing newline, as this causes \r\n confusion
2852 on some platforms. */
2853 return ferror (f) || fclose (f) != 0;
2856 return 0;
2858 _ACEOF
2859 if ac_fn_c_try_run "$LINENO"; then :
2860 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2861 else
2862 ac_retval=1
2864 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2865 conftest.$ac_objext conftest.beam conftest.$ac_ext
2866 rm -f conftest.val
2869 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2870 as_fn_set_status $ac_retval
2872 } # ac_fn_c_compute_int
2873 cat >config.log <<_ACEOF
2874 This file contains any messages produced by compilers while
2875 running configure, to aid debugging if configure makes a mistake.
2877 It was created by emacs $as_me 24.1.50, which was
2878 generated by GNU Autoconf 2.65. Invocation command line was
2880 $ $0 $@
2882 _ACEOF
2883 exec 5>>config.log
2885 cat <<_ASUNAME
2886 ## --------- ##
2887 ## Platform. ##
2888 ## --------- ##
2890 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2891 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2892 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2893 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2894 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2896 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2897 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2899 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2900 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2901 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2902 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2903 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2904 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2905 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2907 _ASUNAME
2909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2910 for as_dir in $PATH
2912 IFS=$as_save_IFS
2913 test -z "$as_dir" && as_dir=.
2914 $as_echo "PATH: $as_dir"
2915 done
2916 IFS=$as_save_IFS
2918 } >&5
2920 cat >&5 <<_ACEOF
2923 ## ----------- ##
2924 ## Core tests. ##
2925 ## ----------- ##
2927 _ACEOF
2930 # Keep a trace of the command line.
2931 # Strip out --no-create and --no-recursion so they do not pile up.
2932 # Strip out --silent because we don't want to record it for future runs.
2933 # Also quote any args containing shell meta-characters.
2934 # Make two passes to allow for proper duplicate-argument suppression.
2935 ac_configure_args=
2936 ac_configure_args0=
2937 ac_configure_args1=
2938 ac_must_keep_next=false
2939 for ac_pass in 1 2
2941 for ac_arg
2943 case $ac_arg in
2944 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2945 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2946 | -silent | --silent | --silen | --sile | --sil)
2947 continue ;;
2948 *\'*)
2949 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2950 esac
2951 case $ac_pass in
2952 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2954 as_fn_append ac_configure_args1 " '$ac_arg'"
2955 if test $ac_must_keep_next = true; then
2956 ac_must_keep_next=false # Got value, back to normal.
2957 else
2958 case $ac_arg in
2959 *=* | --config-cache | -C | -disable-* | --disable-* \
2960 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2961 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2962 | -with-* | --with-* | -without-* | --without-* | --x)
2963 case "$ac_configure_args0 " in
2964 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2965 esac
2967 -* ) ac_must_keep_next=true ;;
2968 esac
2970 as_fn_append ac_configure_args " '$ac_arg'"
2972 esac
2973 done
2974 done
2975 { ac_configure_args0=; unset ac_configure_args0;}
2976 { ac_configure_args1=; unset ac_configure_args1;}
2978 # When interrupted or exit'd, cleanup temporary files, and complete
2979 # config.log. We remove comments because anyway the quotes in there
2980 # would cause problems or look ugly.
2981 # WARNING: Use '\'' to represent an apostrophe within the trap.
2982 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2983 trap 'exit_status=$?
2984 # Save into config.log some information that might help in debugging.
2986 echo
2988 cat <<\_ASBOX
2989 ## ---------------- ##
2990 ## Cache variables. ##
2991 ## ---------------- ##
2992 _ASBOX
2993 echo
2994 # The following way of writing the cache mishandles newlines in values,
2996 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2997 eval ac_val=\$$ac_var
2998 case $ac_val in #(
2999 *${as_nl}*)
3000 case $ac_var in #(
3001 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3002 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3003 esac
3004 case $ac_var in #(
3005 _ | IFS | as_nl) ;; #(
3006 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3007 *) { eval $ac_var=; unset $ac_var;} ;;
3008 esac ;;
3009 esac
3010 done
3011 (set) 2>&1 |
3012 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3013 *${as_nl}ac_space=\ *)
3014 sed -n \
3015 "s/'\''/'\''\\\\'\'''\''/g;
3016 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3017 ;; #(
3019 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3021 esac |
3022 sort
3024 echo
3026 cat <<\_ASBOX
3027 ## ----------------- ##
3028 ## Output variables. ##
3029 ## ----------------- ##
3030 _ASBOX
3031 echo
3032 for ac_var in $ac_subst_vars
3034 eval ac_val=\$$ac_var
3035 case $ac_val in
3036 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3037 esac
3038 $as_echo "$ac_var='\''$ac_val'\''"
3039 done | sort
3040 echo
3042 if test -n "$ac_subst_files"; then
3043 cat <<\_ASBOX
3044 ## ------------------- ##
3045 ## File substitutions. ##
3046 ## ------------------- ##
3047 _ASBOX
3048 echo
3049 for ac_var in $ac_subst_files
3051 eval ac_val=\$$ac_var
3052 case $ac_val in
3053 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3054 esac
3055 $as_echo "$ac_var='\''$ac_val'\''"
3056 done | sort
3057 echo
3060 if test -s confdefs.h; then
3061 cat <<\_ASBOX
3062 ## ----------- ##
3063 ## confdefs.h. ##
3064 ## ----------- ##
3065 _ASBOX
3066 echo
3067 cat confdefs.h
3068 echo
3070 test "$ac_signal" != 0 &&
3071 $as_echo "$as_me: caught signal $ac_signal"
3072 $as_echo "$as_me: exit $exit_status"
3073 } >&5
3074 rm -f core *.core core.conftest.* &&
3075 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3076 exit $exit_status
3078 for ac_signal in 1 2 13 15; do
3079 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3080 done
3081 ac_signal=0
3083 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3084 rm -f -r conftest* confdefs.h
3086 $as_echo "/* confdefs.h */" > confdefs.h
3088 # Predefined preprocessor variables.
3090 cat >>confdefs.h <<_ACEOF
3091 #define PACKAGE_NAME "$PACKAGE_NAME"
3092 _ACEOF
3094 cat >>confdefs.h <<_ACEOF
3095 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3096 _ACEOF
3098 cat >>confdefs.h <<_ACEOF
3099 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3100 _ACEOF
3102 cat >>confdefs.h <<_ACEOF
3103 #define PACKAGE_STRING "$PACKAGE_STRING"
3104 _ACEOF
3106 cat >>confdefs.h <<_ACEOF
3107 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3108 _ACEOF
3110 cat >>confdefs.h <<_ACEOF
3111 #define PACKAGE_URL "$PACKAGE_URL"
3112 _ACEOF
3115 # Let the site file select an alternate cache file if it wants to.
3116 # Prefer an explicitly selected file to automatically selected ones.
3117 ac_site_file1=NONE
3118 ac_site_file2=NONE
3119 if test -n "$CONFIG_SITE"; then
3120 ac_site_file1=$CONFIG_SITE
3121 elif test "x$prefix" != xNONE; then
3122 ac_site_file1=$prefix/share/config.site
3123 ac_site_file2=$prefix/etc/config.site
3124 else
3125 ac_site_file1=$ac_default_prefix/share/config.site
3126 ac_site_file2=$ac_default_prefix/etc/config.site
3128 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3130 test "x$ac_site_file" = xNONE && continue
3131 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3132 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3133 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3134 sed 's/^/| /' "$ac_site_file" >&5
3135 . "$ac_site_file"
3137 done
3139 if test -r "$cache_file"; then
3140 # Some versions of bash will fail to source /dev/null (special files
3141 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3142 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3144 $as_echo "$as_me: loading cache $cache_file" >&6;}
3145 case $cache_file in
3146 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3147 *) . "./$cache_file";;
3148 esac
3150 else
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3152 $as_echo "$as_me: creating cache $cache_file" >&6;}
3153 >$cache_file
3156 as_fn_append ac_header_list " sys/select.h"
3157 as_fn_append ac_header_list " sys/time.h"
3158 as_fn_append ac_header_list " utime.h"
3159 as_fn_append ac_header_list " linux/version.h"
3160 as_fn_append ac_header_list " sys/systeminfo.h"
3161 as_fn_append ac_header_list " stdio_ext.h"
3162 as_fn_append ac_header_list " fcntl.h"
3163 as_fn_append ac_header_list " coff.h"
3164 as_fn_append ac_header_list " pty.h"
3165 as_fn_append ac_header_list " sys/vlimit.h"
3166 as_fn_append ac_header_list " sys/resource.h"
3167 as_fn_append ac_header_list " sys/utsname.h"
3168 as_fn_append ac_header_list " pwd.h"
3169 as_fn_append ac_header_list " utmp.h"
3170 as_fn_append ac_header_list " dirent.h"
3171 as_fn_append ac_header_list " util.h"
3172 as_fn_append ac_header_list " sys/socket.h"
3173 as_fn_append ac_header_list " stdlib.h"
3174 as_fn_append ac_header_list " unistd.h"
3175 as_fn_append ac_header_list " sys/param.h"
3176 as_fn_append ac_header_list " pthread.h"
3177 as_fn_append ac_header_list " malloc/malloc.h"
3178 as_fn_append ac_header_list " maillock.h"
3179 as_fn_append ac_header_list " sys/un.h"
3180 as_fn_append ac_func_list " tzset"
3181 as_fn_append ac_func_list " readlinkat"
3182 gl_getopt_required=GNU
3183 as_fn_append ac_header_list " getopt.h"
3184 as_fn_append ac_header_list " wchar.h"
3185 as_fn_append ac_header_list " stdint.h"
3186 as_fn_append ac_header_list " inttypes.h"
3187 as_fn_append ac_func_list " lstat"
3188 as_fn_append ac_func_list " alarm"
3189 as_fn_append ac_func_list " pthread_sigmask"
3190 as_fn_append ac_func_list " readlink"
3191 as_fn_append ac_func_list " strtoimax"
3192 as_fn_append ac_func_list " strtoumax"
3193 as_fn_append ac_func_list " symlink"
3194 as_fn_append ac_header_list " sys/stat.h"
3195 as_fn_append ac_func_list " localtime_r"
3196 # Check that the precious variables saved in the cache have kept the same
3197 # value.
3198 ac_cache_corrupted=false
3199 for ac_var in $ac_precious_vars; do
3200 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3201 eval ac_new_set=\$ac_env_${ac_var}_set
3202 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3203 eval ac_new_val=\$ac_env_${ac_var}_value
3204 case $ac_old_set,$ac_new_set in
3205 set,)
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3207 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3208 ac_cache_corrupted=: ;;
3209 ,set)
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3211 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3212 ac_cache_corrupted=: ;;
3213 ,);;
3215 if test "x$ac_old_val" != "x$ac_new_val"; then
3216 # differences in whitespace do not lead to failure.
3217 ac_old_val_w=`echo x $ac_old_val`
3218 ac_new_val_w=`echo x $ac_new_val`
3219 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3220 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3221 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3222 ac_cache_corrupted=:
3223 else
3224 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3225 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3226 eval $ac_var=\$ac_old_val
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3229 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3231 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3232 fi;;
3233 esac
3234 # Pass precious variables to config.status.
3235 if test "$ac_new_set" = set; then
3236 case $ac_new_val in
3237 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3238 *) ac_arg=$ac_var=$ac_new_val ;;
3239 esac
3240 case " $ac_configure_args " in
3241 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3242 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3243 esac
3245 done
3246 if $ac_cache_corrupted; then
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3248 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3250 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3251 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3253 ## -------------------- ##
3254 ## Main body of script. ##
3255 ## -------------------- ##
3257 ac_ext=c
3258 ac_cpp='$CPP $CPPFLAGS'
3259 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3260 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3261 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3264 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
3267 ac_aux_dir=
3268 for ac_dir in build-aux "$srcdir"/build-aux; do
3269 for ac_t in install-sh install.sh shtool; do
3270 if test -f "$ac_dir/$ac_t"; then
3271 ac_aux_dir=$ac_dir
3272 ac_install_sh="$ac_aux_dir/$ac_t -c"
3273 break 2
3275 done
3276 done
3277 if test -z "$ac_aux_dir"; then
3278 as_fn_error "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
3281 # These three variables are undocumented and unsupported,
3282 # and are intended to be withdrawn in a future Autoconf release.
3283 # They can cause serious problems if a builder's source tree is in a directory
3284 # whose full name contains unusual characters.
3285 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3286 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3287 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3290 am__api_version='1.11'
3292 # Find a good install program. We prefer a C program (faster),
3293 # so one script is as good as another. But avoid the broken or
3294 # incompatible versions:
3295 # SysV /etc/install, /usr/sbin/install
3296 # SunOS /usr/etc/install
3297 # IRIX /sbin/install
3298 # AIX /bin/install
3299 # AmigaOS /C/install, which installs bootblocks on floppy discs
3300 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3301 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3302 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3303 # OS/2's system install, which has a completely different semantic
3304 # ./install, which can be erroneously created by make from ./install.sh.
3305 # Reject install programs that cannot install multiple files.
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3307 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3308 if test -z "$INSTALL"; then
3309 if test "${ac_cv_path_install+set}" = set; then :
3310 $as_echo_n "(cached) " >&6
3311 else
3312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3313 for as_dir in $PATH
3315 IFS=$as_save_IFS
3316 test -z "$as_dir" && as_dir=.
3317 # Account for people who put trailing slashes in PATH elements.
3318 case $as_dir/ in #((
3319 ./ | .// | /[cC]/* | \
3320 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3321 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3322 /usr/ucb/* ) ;;
3324 # OSF1 and SCO ODT 3.0 have their own names for install.
3325 # Don't use installbsd from OSF since it installs stuff as root
3326 # by default.
3327 for ac_prog in ginstall scoinst install; do
3328 for ac_exec_ext in '' $ac_executable_extensions; do
3329 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3330 if test $ac_prog = install &&
3331 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3332 # AIX install. It has an incompatible calling convention.
3334 elif test $ac_prog = install &&
3335 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3336 # program-specific install script used by HP pwplus--don't use.
3338 else
3339 rm -rf conftest.one conftest.two conftest.dir
3340 echo one > conftest.one
3341 echo two > conftest.two
3342 mkdir conftest.dir
3343 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3344 test -s conftest.one && test -s conftest.two &&
3345 test -s conftest.dir/conftest.one &&
3346 test -s conftest.dir/conftest.two
3347 then
3348 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3349 break 3
3353 done
3354 done
3356 esac
3358 done
3359 IFS=$as_save_IFS
3361 rm -rf conftest.one conftest.two conftest.dir
3364 if test "${ac_cv_path_install+set}" = set; then
3365 INSTALL=$ac_cv_path_install
3366 else
3367 # As a last resort, use the slow shell script. Don't cache a
3368 # value for INSTALL within a source directory, because that will
3369 # break other packages using the cache if that directory is
3370 # removed, or if the value is a relative name.
3371 INSTALL=$ac_install_sh
3374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3375 $as_echo "$INSTALL" >&6; }
3377 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3378 # It thinks the first close brace ends the variable substitution.
3379 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3381 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3383 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3386 $as_echo_n "checking whether build environment is sane... " >&6; }
3387 # Just in case
3388 sleep 1
3389 echo timestamp > conftest.file
3390 # Reject unsafe characters in $srcdir or the absolute working directory
3391 # name. Accept space and tab only in the latter.
3392 am_lf='
3394 case `pwd` in
3395 *[\\\"\#\$\&\'\`$am_lf]*)
3396 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3397 esac
3398 case $srcdir in
3399 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3400 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3401 esac
3403 # Do `set' in a subshell so we don't clobber the current shell's
3404 # arguments. Must try -L first in case configure is actually a
3405 # symlink; some systems play weird games with the mod time of symlinks
3406 # (eg FreeBSD returns the mod time of the symlink's containing
3407 # directory).
3408 if (
3409 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3410 if test "$*" = "X"; then
3411 # -L didn't work.
3412 set X `ls -t "$srcdir/configure" conftest.file`
3414 rm -f conftest.file
3415 if test "$*" != "X $srcdir/configure conftest.file" \
3416 && test "$*" != "X conftest.file $srcdir/configure"; then
3418 # If neither matched, then we have a broken ls. This can happen
3419 # if, for instance, CONFIG_SHELL is bash and it inherits a
3420 # broken ls alias from the environment. This has actually
3421 # happened. Such a system could not be considered "sane".
3422 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3423 alias in your environment" "$LINENO" 5
3426 test "$2" = conftest.file
3428 then
3429 # Ok.
3431 else
3432 as_fn_error "newly created file is older than distributed files!
3433 Check your system clock" "$LINENO" 5
3435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3436 $as_echo "yes" >&6; }
3437 test "$program_prefix" != NONE &&
3438 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3439 # Use a double $ so make ignores it.
3440 test "$program_suffix" != NONE &&
3441 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3442 # Double any \ or $.
3443 # By default was `s,x,x', remove it if useless.
3444 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3445 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3447 # expand $ac_aux_dir to an absolute path
3448 am_aux_dir=`cd $ac_aux_dir && pwd`
3450 if test x"${MISSING+set}" != xset; then
3451 case $am_aux_dir in
3452 *\ * | *\ *)
3453 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3455 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3456 esac
3458 # Use eval to expand $SHELL
3459 if eval "$MISSING --run true"; then
3460 am_missing_run="$MISSING --run "
3461 else
3462 am_missing_run=
3463 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3464 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3467 if test x"${install_sh}" != xset; then
3468 case $am_aux_dir in
3469 *\ * | *\ *)
3470 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3472 install_sh="\${SHELL} $am_aux_dir/install-sh"
3473 esac
3476 # Installed binaries are usually stripped using `strip' when the user
3477 # run `make install-strip'. However `strip' might not be the right
3478 # tool to use in cross-compilation environments, therefore Automake
3479 # will honor the `STRIP' environment variable to overrule this program.
3480 if test "$cross_compiling" != no; then
3481 if test -n "$ac_tool_prefix"; then
3482 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3483 set dummy ${ac_tool_prefix}strip; ac_word=$2
3484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3485 $as_echo_n "checking for $ac_word... " >&6; }
3486 if test "${ac_cv_prog_STRIP+set}" = set; then :
3487 $as_echo_n "(cached) " >&6
3488 else
3489 if test -n "$STRIP"; then
3490 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3491 else
3492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3493 for as_dir in $PATH
3495 IFS=$as_save_IFS
3496 test -z "$as_dir" && as_dir=.
3497 for ac_exec_ext in '' $ac_executable_extensions; do
3498 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3499 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3501 break 2
3503 done
3504 done
3505 IFS=$as_save_IFS
3509 STRIP=$ac_cv_prog_STRIP
3510 if test -n "$STRIP"; then
3511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3512 $as_echo "$STRIP" >&6; }
3513 else
3514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3515 $as_echo "no" >&6; }
3520 if test -z "$ac_cv_prog_STRIP"; then
3521 ac_ct_STRIP=$STRIP
3522 # Extract the first word of "strip", so it can be a program name with args.
3523 set dummy strip; ac_word=$2
3524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3525 $as_echo_n "checking for $ac_word... " >&6; }
3526 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3527 $as_echo_n "(cached) " >&6
3528 else
3529 if test -n "$ac_ct_STRIP"; then
3530 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3531 else
3532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3533 for as_dir in $PATH
3535 IFS=$as_save_IFS
3536 test -z "$as_dir" && as_dir=.
3537 for ac_exec_ext in '' $ac_executable_extensions; do
3538 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3539 ac_cv_prog_ac_ct_STRIP="strip"
3540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3541 break 2
3543 done
3544 done
3545 IFS=$as_save_IFS
3549 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3550 if test -n "$ac_ct_STRIP"; then
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3552 $as_echo "$ac_ct_STRIP" >&6; }
3553 else
3554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3555 $as_echo "no" >&6; }
3558 if test "x$ac_ct_STRIP" = x; then
3559 STRIP=":"
3560 else
3561 case $cross_compiling:$ac_tool_warned in
3562 yes:)
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3564 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3565 ac_tool_warned=yes ;;
3566 esac
3567 STRIP=$ac_ct_STRIP
3569 else
3570 STRIP="$ac_cv_prog_STRIP"
3574 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3577 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3578 if test -z "$MKDIR_P"; then
3579 if test "${ac_cv_path_mkdir+set}" = set; then :
3580 $as_echo_n "(cached) " >&6
3581 else
3582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3583 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3585 IFS=$as_save_IFS
3586 test -z "$as_dir" && as_dir=.
3587 for ac_prog in mkdir gmkdir; do
3588 for ac_exec_ext in '' $ac_executable_extensions; do
3589 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3590 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3591 'mkdir (GNU coreutils) '* | \
3592 'mkdir (coreutils) '* | \
3593 'mkdir (fileutils) '4.1*)
3594 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3595 break 3;;
3596 esac
3597 done
3598 done
3599 done
3600 IFS=$as_save_IFS
3604 test -d ./--version && rmdir ./--version
3605 if test "${ac_cv_path_mkdir+set}" = set; then
3606 MKDIR_P="$ac_cv_path_mkdir -p"
3607 else
3608 # As a last resort, use the slow shell script. Don't cache a
3609 # value for MKDIR_P within a source directory, because that will
3610 # break other packages using the cache if that directory is
3611 # removed, or if the value is a relative name.
3612 MKDIR_P="$ac_install_sh -d"
3615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3616 $as_echo "$MKDIR_P" >&6; }
3619 mkdir_p="$MKDIR_P"
3620 case $mkdir_p in
3621 [\\/$]* | ?:[\\/]*) ;;
3622 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3623 esac
3625 for ac_prog in gawk mawk nawk awk
3627 # Extract the first word of "$ac_prog", so it can be a program name with args.
3628 set dummy $ac_prog; ac_word=$2
3629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3630 $as_echo_n "checking for $ac_word... " >&6; }
3631 if test "${ac_cv_prog_AWK+set}" = set; then :
3632 $as_echo_n "(cached) " >&6
3633 else
3634 if test -n "$AWK"; then
3635 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3636 else
3637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3638 for as_dir in $PATH
3640 IFS=$as_save_IFS
3641 test -z "$as_dir" && as_dir=.
3642 for ac_exec_ext in '' $ac_executable_extensions; do
3643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3644 ac_cv_prog_AWK="$ac_prog"
3645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3646 break 2
3648 done
3649 done
3650 IFS=$as_save_IFS
3654 AWK=$ac_cv_prog_AWK
3655 if test -n "$AWK"; then
3656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3657 $as_echo "$AWK" >&6; }
3658 else
3659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3660 $as_echo "no" >&6; }
3664 test -n "$AWK" && break
3665 done
3667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3668 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3669 set x ${MAKE-make}
3670 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3671 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3672 $as_echo_n "(cached) " >&6
3673 else
3674 cat >conftest.make <<\_ACEOF
3675 SHELL = /bin/sh
3676 all:
3677 @echo '@@@%%%=$(MAKE)=@@@%%%'
3678 _ACEOF
3679 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3680 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3681 *@@@%%%=?*=@@@%%%*)
3682 eval ac_cv_prog_make_${ac_make}_set=yes;;
3684 eval ac_cv_prog_make_${ac_make}_set=no;;
3685 esac
3686 rm -f conftest.make
3688 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3690 $as_echo "yes" >&6; }
3691 SET_MAKE=
3692 else
3693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3694 $as_echo "no" >&6; }
3695 SET_MAKE="MAKE=${MAKE-make}"
3698 rm -rf .tst 2>/dev/null
3699 mkdir .tst 2>/dev/null
3700 if test -d .tst; then
3701 am__leading_dot=.
3702 else
3703 am__leading_dot=_
3705 rmdir .tst 2>/dev/null
3707 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3708 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3709 # is not polluted with repeated "-I."
3710 am__isrc=' -I$(srcdir)'
3711 # test to see if srcdir already configured
3712 if test -f $srcdir/config.status; then
3713 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3717 # test whether we have cygpath
3718 if test -z "$CYGPATH_W"; then
3719 if (cygpath --version) >/dev/null 2>/dev/null; then
3720 CYGPATH_W='cygpath -w'
3721 else
3722 CYGPATH_W=echo
3727 # Define the identity of the package.
3728 PACKAGE='emacs'
3729 VERSION='24.1.50'
3732 cat >>confdefs.h <<_ACEOF
3733 #define PACKAGE "$PACKAGE"
3734 _ACEOF
3737 cat >>confdefs.h <<_ACEOF
3738 #define VERSION "$VERSION"
3739 _ACEOF
3741 # Some tools Automake needs.
3743 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3746 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3749 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3752 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3755 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3757 # We need awk for the "check" target. The system "awk" is bad on
3758 # some platforms.
3759 # Always define AMTAR for backward compatibility.
3761 AMTAR=${AMTAR-"${am_missing_run}tar"}
3763 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3772 lispdir='${datadir}/emacs/${version}/lisp'
3773 leimdir='${datadir}/emacs/${version}/leim'
3774 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
3775 '${datadir}/emacs/site-lisp'
3776 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
3777 etcdir='${datadir}/emacs/${version}/etc'
3778 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
3779 docdir='${datadir}/emacs/${version}/etc'
3780 gamedir='${localstatedir}/games/emacs'
3785 # Check whether --with-pop was given.
3786 if test "${with_pop+set}" = set; then :
3787 withval=$with_pop;
3788 else
3789 with_pop=yes
3792 if test "$with_pop" = yes; then
3793 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
3798 # Check whether --with-kerberos was given.
3799 if test "${with_kerberos+set}" = set; then :
3800 withval=$with_kerberos;
3801 else
3802 with_kerberos=no
3805 if test "$with_kerberos" != no; then
3806 $as_echo "#define KERBEROS 1" >>confdefs.h
3811 # Check whether --with-kerberos5 was given.
3812 if test "${with_kerberos5+set}" = set; then :
3813 withval=$with_kerberos5;
3814 else
3815 with_kerberos5=no
3818 if test "${with_kerberos5}" != no; then
3819 if test "${with_kerberos}" = no; then
3820 with_kerberos=yes
3821 $as_echo "#define KERBEROS 1" >>confdefs.h
3825 $as_echo "#define KERBEROS5 1" >>confdefs.h
3830 # Check whether --with-hesiod was given.
3831 if test "${with_hesiod+set}" = set; then :
3832 withval=$with_hesiod;
3833 else
3834 with_hesiod=no
3837 if test "$with_hesiod" != no; then
3839 $as_echo "#define HESIOD 1" >>confdefs.h
3844 # Check whether --with-mmdf was given.
3845 if test "${with_mmdf+set}" = set; then :
3846 withval=$with_mmdf;
3847 else
3848 with_mmdf=no
3851 if test "$with_mmdf" != no; then
3853 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
3858 # Check whether --with-mail-unlink was given.
3859 if test "${with_mail_unlink+set}" = set; then :
3860 withval=$with_mail_unlink;
3861 else
3862 with_mail_unlink=no
3865 if test "$with_mail_unlink" != no; then
3867 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
3872 # Check whether --with-mailhost was given.
3873 if test "${with_mailhost+set}" = set; then :
3874 withval=$with_mailhost;
3875 cat >>confdefs.h <<_ACEOF
3876 #define MAILHOST "$withval"
3877 _ACEOF
3883 # Check whether --with-sound was given.
3884 if test "${with_sound+set}" = set; then :
3885 withval=$with_sound;
3886 else
3887 with_sound=yes
3892 # Check whether --with-sync-input was given.
3893 if test "${with_sync_input+set}" = set; then :
3894 withval=$with_sync_input;
3895 else
3896 with_sync_input=yes
3899 if test "$with_sync_input" = yes; then
3901 $as_echo "#define SYNC_INPUT 1" >>confdefs.h
3906 # Check whether --with-x-toolkit was given.
3907 if test "${with_x_toolkit+set}" = set; then :
3908 withval=$with_x_toolkit; case "${withval}" in
3909 y | ye | yes ) val=gtk ;;
3910 n | no ) val=no ;;
3911 l | lu | luc | luci | lucid ) val=lucid ;;
3912 a | at | ath | athe | athen | athena ) val=athena ;;
3913 m | mo | mot | moti | motif ) val=motif ;;
3914 g | gt | gtk ) val=gtk ;;
3915 gtk3 ) val=gtk3 ;;
3917 as_fn_error "\`--with-x-toolkit=$withval' is invalid;
3918 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk' or
3919 \`gtk3'. \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." "$LINENO" 5
3921 esac
3922 with_x_toolkit=$val
3928 # Check whether --with-wide-int was given.
3929 if test "${with_wide_int+set}" = set; then :
3930 withval=$with_wide_int;
3931 else
3932 with_wide_int=no
3935 if test "$with_wide_int" = yes; then
3937 $as_echo "#define WIDE_EMACS_INT 1" >>confdefs.h
3942 # Check whether --with-xpm was given.
3943 if test "${with_xpm+set}" = set; then :
3944 withval=$with_xpm;
3945 else
3946 with_xpm=yes
3950 # Check whether --with-jpeg was given.
3951 if test "${with_jpeg+set}" = set; then :
3952 withval=$with_jpeg;
3953 else
3954 with_jpeg=yes
3958 # Check whether --with-tiff was given.
3959 if test "${with_tiff+set}" = set; then :
3960 withval=$with_tiff;
3961 else
3962 with_tiff=yes
3966 # Check whether --with-gif was given.
3967 if test "${with_gif+set}" = set; then :
3968 withval=$with_gif;
3969 else
3970 with_gif=yes
3974 # Check whether --with-png was given.
3975 if test "${with_png+set}" = set; then :
3976 withval=$with_png;
3977 else
3978 with_png=yes
3982 # Check whether --with-rsvg was given.
3983 if test "${with_rsvg+set}" = set; then :
3984 withval=$with_rsvg;
3985 else
3986 with_rsvg=yes
3990 # Check whether --with-xml2 was given.
3991 if test "${with_xml2+set}" = set; then :
3992 withval=$with_xml2;
3993 else
3994 with_xml2=yes
3998 # Check whether --with-imagemagick was given.
3999 if test "${with_imagemagick+set}" = set; then :
4000 withval=$with_imagemagick;
4001 else
4002 with_imagemagick=yes
4007 # Check whether --with-xft was given.
4008 if test "${with_xft+set}" = set; then :
4009 withval=$with_xft;
4010 else
4011 with_xft=yes
4015 # Check whether --with-libotf was given.
4016 if test "${with_libotf+set}" = set; then :
4017 withval=$with_libotf;
4018 else
4019 with_libotf=yes
4023 # Check whether --with-m17n-flt was given.
4024 if test "${with_m17n_flt+set}" = set; then :
4025 withval=$with_m17n_flt;
4026 else
4027 with_m17n_flt=yes
4032 # Check whether --with-toolkit-scroll-bars was given.
4033 if test "${with_toolkit_scroll_bars+set}" = set; then :
4034 withval=$with_toolkit_scroll_bars;
4035 else
4036 with_toolkit_scroll_bars=yes
4040 # Check whether --with-xaw3d was given.
4041 if test "${with_xaw3d+set}" = set; then :
4042 withval=$with_xaw3d;
4043 else
4044 with_xaw3d=yes
4048 # Check whether --with-xim was given.
4049 if test "${with_xim+set}" = set; then :
4050 withval=$with_xim;
4051 else
4052 with_xim=yes
4056 # Check whether --with-ns was given.
4057 if test "${with_ns+set}" = set; then :
4058 withval=$with_ns;
4059 else
4060 with_ns=no
4065 # Check whether --with-gpm was given.
4066 if test "${with_gpm+set}" = set; then :
4067 withval=$with_gpm;
4068 else
4069 with_gpm=yes
4073 # Check whether --with-dbus was given.
4074 if test "${with_dbus+set}" = set; then :
4075 withval=$with_dbus;
4076 else
4077 with_dbus=yes
4081 # Check whether --with-gconf was given.
4082 if test "${with_gconf+set}" = set; then :
4083 withval=$with_gconf;
4084 else
4085 with_gconf=yes
4089 # Check whether --with-gsettings was given.
4090 if test "${with_gsettings+set}" = set; then :
4091 withval=$with_gsettings;
4092 else
4093 with_gsettings=yes
4097 # Check whether --with-selinux was given.
4098 if test "${with_selinux+set}" = set; then :
4099 withval=$with_selinux;
4100 else
4101 with_selinux=yes
4105 # Check whether --with-gnutls was given.
4106 if test "${with_gnutls+set}" = set; then :
4107 withval=$with_gnutls;
4108 else
4109 with_gnutls=yes
4113 ## For the times when you want to build Emacs but don't have
4114 ## a suitable makeinfo, and can live without the manuals.
4116 # Check whether --with-makeinfo was given.
4117 if test "${with_makeinfo+set}" = set; then :
4118 withval=$with_makeinfo;
4119 else
4120 with_makeinfo=yes
4124 ## Makefile.in needs the cache file name.
4127 ## This is an option because I do not know if all info/man support
4128 ## compressed files, nor how to test if they do so.
4130 # Check whether --with-compress-info was given.
4131 if test "${with_compress_info+set}" = set; then :
4132 withval=$with_compress_info;
4133 else
4134 with_compress_info=yes
4137 if test $with_compress_info = yes; then
4138 GZIP_INFO=yes
4139 else
4140 GZIP_INFO=
4145 # Check whether --with-pkg-config-prog was given.
4146 if test "${with_pkg_config_prog+set}" = set; then :
4147 withval=$with_pkg_config_prog;
4150 if test "X${with_pkg_config_prog}" != X; then
4151 if test "${with_pkg_config_prog}" != yes; then
4152 PKG_CONFIG="${with_pkg_config_prog}"
4156 CRT_DIR=
4158 # Check whether --with-crt-dir was given.
4159 if test "${with_crt_dir+set}" = set; then :
4160 withval=$with_crt_dir;
4163 CRT_DIR="${with_crt_dir}"
4166 # Check whether --with-gameuser was given.
4167 if test "${with_gameuser+set}" = set; then :
4168 withval=$with_gameuser;
4171 test "X${with_gameuser}" != X && test "${with_gameuser}" != yes \
4172 && gameuser="${with_gameuser}"
4173 test "X$gameuser" = X && gameuser=games
4176 # Check whether --with-gnustep-conf was given.
4177 if test "${with_gnustep_conf+set}" = set; then :
4178 withval=$with_gnustep_conf;
4181 test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
4182 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
4183 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
4184 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
4186 # Check whether --enable-ns-self-contained was given.
4187 if test "${enable_ns_self_contained+set}" = set; then :
4188 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
4189 else
4190 EN_NS_SELF_CONTAINED=yes
4194 # Check whether --enable-asserts was given.
4195 if test "${enable_asserts+set}" = set; then :
4196 enableval=$enable_asserts; USE_XASSERTS=$enableval
4197 else
4198 USE_XASSERTS=no
4202 # Check whether --enable-maintainer-mode was given.
4203 if test "${enable_maintainer_mode+set}" = set; then :
4204 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4205 else
4206 USE_MAINTAINER_MODE=yes
4209 if test $USE_MAINTAINER_MODE = yes; then
4210 MAINT=
4211 else
4212 MAINT=#
4216 # Check whether --enable-locallisppath was given.
4217 if test "${enable_locallisppath+set}" = set; then :
4218 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
4219 locallisppath=
4220 elif test "${enableval}" != "yes"; then
4221 locallisppath=${enableval}
4226 # Check whether --enable-checking was given.
4227 if test "${enable_checking+set}" = set; then :
4228 enableval=$enable_checking; ac_checking_flags="${enableval}"
4231 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
4232 for check in $ac_checking_flags
4234 case $check in
4235 # these set all the flags to specific states
4236 yes) ac_enable_checking=1 ;;
4237 no) ac_enable_checking= ;
4238 ac_gc_check_stringbytes= ;
4239 ac_gc_check_string_overrun= ;
4240 ac_gc_check_string_free_list= ;
4241 ac_xmalloc_overrun= ;
4242 ac_gc_check_cons_list= ;;
4243 all) ac_enable_checking=1 ;
4244 ac_gc_check_stringbytes=1 ;
4245 ac_gc_check_string_overrun=1 ;
4246 ac_gc_check_string_free_list=1 ;
4247 ac_xmalloc_overrun=1 ;
4248 ac_gc_check_cons_list=1 ;;
4249 # these enable particular checks
4250 stringbytes) ac_gc_check_stringbytes=1 ;;
4251 stringoverrun) ac_gc_check_string_overrun=1 ;;
4252 stringfreelist) ac_gc_check_string_free_list=1 ;;
4253 xmallocoverrun) ac_xmalloc_overrun=1 ;;
4254 conslist) ac_gc_check_cons_list=1 ;;
4255 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
4256 esac
4257 done
4258 IFS="$ac_save_IFS"
4260 if test x$ac_enable_checking != x ; then
4262 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
4265 if test x$ac_gc_check_stringbytes != x ; then
4267 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
4270 if test x$ac_gc_check_string_overrun != x ; then
4272 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
4275 if test x$ac_gc_check_string_free_list != x ; then
4277 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
4280 if test x$ac_xmalloc_overrun != x ; then
4282 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
4285 if test x$ac_gc_check_cons_list != x ; then
4287 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
4291 # Check whether --enable-use-lisp-union-type was given.
4292 if test "${enable_use_lisp_union_type+set}" = set; then :
4293 enableval=$enable_use_lisp_union_type; if test "${enableval}" != "no"; then
4295 $as_echo "#define USE_LISP_UNION_TYPE 1" >>confdefs.h
4302 # Check whether --enable-profiling was given.
4303 if test "${enable_profiling+set}" = set; then :
4304 enableval=$enable_profiling; ac_enable_profiling="${enableval}"
4307 if test x$ac_enable_profiling != x ; then
4308 PROFILING_CFLAGS="-DPROFILING=1 -pg"
4309 else
4310 PROFILING_CFLAGS=
4314 # Check whether --enable-autodepend was given.
4315 if test "${enable_autodepend+set}" = set; then :
4316 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}"
4317 else
4318 ac_enable_autodepend=yes
4322 #### Make srcdir absolute, if it isn't already. It's important to
4323 #### avoid running the path through pwd unnecessarily, since pwd can
4324 #### give you automounter prefixes, which can go away. We do all this
4325 #### so Emacs can find its files when run uninstalled.
4326 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
4327 unset CDPATH
4328 case "${srcdir}" in
4329 /* ) ;;
4331 ## We may be able to use the $PWD environment variable to make this
4332 ## absolute. But sometimes PWD is inaccurate.
4333 ## Note: we used to use ${PWD} at the end instead of `pwd`,
4334 ## but that tested only for a well-formed and valid PWD,
4335 ## it did not object when PWD was well-formed and valid but just wrong.
4336 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
4337 then
4338 srcdir="$PWD"
4339 else
4340 srcdir="`(cd ${srcdir}; pwd)`"
4343 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
4344 esac
4346 #### Given the configuration name, set opsysfile to the
4347 #### name of s/*.h file we should use.
4349 ### Canonicalize the configuration name.
4351 # Make sure we can run config.sub.
4352 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4353 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4356 $as_echo_n "checking build system type... " >&6; }
4357 if test "${ac_cv_build+set}" = set; then :
4358 $as_echo_n "(cached) " >&6
4359 else
4360 ac_build_alias=$build_alias
4361 test "x$ac_build_alias" = x &&
4362 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4363 test "x$ac_build_alias" = x &&
4364 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4365 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4366 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4370 $as_echo "$ac_cv_build" >&6; }
4371 case $ac_cv_build in
4372 *-*-*) ;;
4373 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4374 esac
4375 build=$ac_cv_build
4376 ac_save_IFS=$IFS; IFS='-'
4377 set x $ac_cv_build
4378 shift
4379 build_cpu=$1
4380 build_vendor=$2
4381 shift; shift
4382 # Remember, the first character of IFS is used to create $*,
4383 # except with old shells:
4384 build_os=$*
4385 IFS=$ac_save_IFS
4386 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4390 $as_echo_n "checking host system type... " >&6; }
4391 if test "${ac_cv_host+set}" = set; then :
4392 $as_echo_n "(cached) " >&6
4393 else
4394 if test "x$host_alias" = x; then
4395 ac_cv_host=$ac_cv_build
4396 else
4397 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4398 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4403 $as_echo "$ac_cv_host" >&6; }
4404 case $ac_cv_host in
4405 *-*-*) ;;
4406 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4407 esac
4408 host=$ac_cv_host
4409 ac_save_IFS=$IFS; IFS='-'
4410 set x $ac_cv_host
4411 shift
4412 host_cpu=$1
4413 host_vendor=$2
4414 shift; shift
4415 # Remember, the first character of IFS is used to create $*,
4416 # except with old shells:
4417 host_os=$*
4418 IFS=$ac_save_IFS
4419 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4422 canonical=$host
4423 configuration=${host_alias-${build_alias-$host}}
4427 ### If you add support for a new configuration, add code to this
4428 ### switch statement to recognize your configuration name and select
4429 ### the appropriate operating system file.
4431 ### You would hope that you could choose an s/*.h
4432 ### file based on the operating system portion. However, it turns out
4433 ### that each s/*.h file is pretty manufacturer-specific.
4434 ### So we basically have to have a special case for each
4435 ### configuration name.
4437 ### As far as handling version numbers on operating systems is
4438 ### concerned, make sure things will fail in a fixable way. If
4439 ### /etc/MACHINES doesn't say anything about version numbers, be
4440 ### prepared to handle anything reasonably. If version numbers
4441 ### matter, be sure /etc/MACHINES says something about it.
4443 opsys='' unported=no
4444 case "${canonical}" in
4446 ## GNU/Linux and similar ports
4447 *-*-linux* )
4448 opsys=gnu-linux
4451 ## FreeBSD ports
4452 *-*-freebsd* )
4453 opsys=freebsd
4456 ## FreeBSD kernel + glibc based userland
4457 *-*-kfreebsd*gnu* )
4458 opsys=gnu-kfreebsd
4461 ## NetBSD ports
4462 *-*-netbsd* )
4463 opsys=netbsd
4466 ## OpenBSD ports
4467 *-*-openbsd* )
4468 opsys=openbsd
4471 ## Apple Darwin / Mac OS X
4472 *-apple-darwin* )
4473 case "${canonical}" in
4474 i[3456]86-* ) ;;
4475 powerpc-* ) ;;
4476 x86_64-* ) ;;
4477 * ) unported=yes ;;
4478 esac
4479 opsys=darwin
4480 ## Use fink packages if available.
4481 ## FIXME find a better way to do this: http://debbugs.gnu.org/11507
4482 ## if test -d /sw/include && test -d /sw/lib; then
4483 ## GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
4484 ## NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
4485 ## fi
4488 ## HP 9000 series 700 and 800, running HP/UX
4489 hppa*-hp-hpux10.2* )
4490 opsys=hpux10-20
4492 hppa*-hp-hpux1[1-9]* )
4493 opsys=hpux11
4494 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
4497 ## IBM machines
4498 rs6000-ibm-aix4.[23]* )
4499 opsys=aix4-2
4501 powerpc-ibm-aix4.[23]* )
4502 opsys=aix4-2
4504 rs6000-ibm-aix[56]* )
4505 opsys=aix4-2
4507 powerpc-ibm-aix[56]* )
4508 opsys=aix4-2
4511 ## Silicon Graphics machines
4512 ## Iris 4D
4513 mips-sgi-irix6.5 )
4514 opsys=irix6-5
4515 # Without defining _LANGUAGE_C, things get masked out in the headers
4516 # so that, for instance, grepping for `free' in stdlib.h fails and
4517 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
4518 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
4521 ## Suns
4522 *-sun-solaris* \
4523 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* \
4524 | x86_64-*-solaris2* | x86_64-*-sunos5*)
4525 case "${canonical}" in
4526 i[3456]86-*-* ) ;;
4527 amd64-*-*|x86_64-*-*) ;;
4528 sparc* ) ;;
4529 * ) unported=yes ;;
4530 esac
4531 case "${canonical}" in
4532 *-sunos5.6* | *-solaris2.6* )
4533 opsys=sol2-6
4534 RANLIB="ar -ts"
4536 *-sunos5.[7-9]* | *-solaris2.[7-9]* )
4537 opsys=sol2-6
4538 emacs_check_sunpro_c=yes
4540 *-sunos5* | *-solaris* )
4541 opsys=sol2-10
4542 emacs_check_sunpro_c=yes
4544 esac
4545 ## Watch out for a compiler that we know will not work.
4546 case "${canonical}" in
4547 *-solaris* | *-sunos5* )
4548 if [ "x$CC" = x/usr/ucb/cc ]; then
4549 ## /usr/ucb/cc doesn't work;
4550 ## we should find some other compiler that does work.
4551 unset CC
4554 *) ;;
4555 esac
4558 ## Intel 386 machines where we don't care about the manufacturer.
4559 i[3456]86-*-* )
4560 case "${canonical}" in
4561 *-cygwin ) opsys=cygwin ;;
4562 *-darwin* ) opsys=darwin ;;
4563 *-sysv4.2uw* ) opsys=unixware ;;
4564 *-sysv5uw* ) opsys=unixware ;;
4565 *-sysv5OpenUNIX* ) opsys=unixware ;;
4566 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
4567 esac
4571 unported=yes
4573 esac
4575 ### If the code above didn't choose an operating system, just choose
4576 ### an operating system based on the configuration name. You really
4577 ### only want to use this when you have no idea what the right
4578 ### operating system is; if you know what operating systems a machine
4579 ### runs, it's cleaner to make it explicit in the case statement
4580 ### above.
4581 if test x"${opsys}" = x; then
4582 case "${canonical}" in
4583 *-gnu* ) opsys=gnu ;;
4585 unported=yes
4587 esac
4592 if test $unported = yes; then
4593 as_fn_error "Emacs hasn't been ported to \`${canonical}' systems.
4594 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
4597 opsysfile="s/${opsys}.h"
4600 #### Choose a compiler.
4602 ac_ext=c
4603 ac_cpp='$CPP $CPPFLAGS'
4604 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4605 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4606 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4607 if test -n "$ac_tool_prefix"; then
4608 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4609 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4611 $as_echo_n "checking for $ac_word... " >&6; }
4612 if test "${ac_cv_prog_CC+set}" = set; then :
4613 $as_echo_n "(cached) " >&6
4614 else
4615 if test -n "$CC"; then
4616 ac_cv_prog_CC="$CC" # Let the user override the test.
4617 else
4618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4619 for as_dir in $PATH
4621 IFS=$as_save_IFS
4622 test -z "$as_dir" && as_dir=.
4623 for ac_exec_ext in '' $ac_executable_extensions; do
4624 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4625 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4627 break 2
4629 done
4630 done
4631 IFS=$as_save_IFS
4635 CC=$ac_cv_prog_CC
4636 if test -n "$CC"; then
4637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4638 $as_echo "$CC" >&6; }
4639 else
4640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4641 $as_echo "no" >&6; }
4646 if test -z "$ac_cv_prog_CC"; then
4647 ac_ct_CC=$CC
4648 # Extract the first word of "gcc", so it can be a program name with args.
4649 set dummy 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_ac_ct_CC+set}" = set; then :
4653 $as_echo_n "(cached) " >&6
4654 else
4655 if test -n "$ac_ct_CC"; then
4656 ac_cv_prog_ac_ct_CC="$ac_ct_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_ac_ct_CC="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 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4676 if test -n "$ac_ct_CC"; then
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4678 $as_echo "$ac_ct_CC" >&6; }
4679 else
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4681 $as_echo "no" >&6; }
4684 if test "x$ac_ct_CC" = x; then
4685 CC=""
4686 else
4687 case $cross_compiling:$ac_tool_warned in
4688 yes:)
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4690 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4691 ac_tool_warned=yes ;;
4692 esac
4693 CC=$ac_ct_CC
4695 else
4696 CC="$ac_cv_prog_CC"
4699 if test -z "$CC"; then
4700 if test -n "$ac_tool_prefix"; then
4701 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4702 set dummy ${ac_tool_prefix}cc; ac_word=$2
4703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4704 $as_echo_n "checking for $ac_word... " >&6; }
4705 if test "${ac_cv_prog_CC+set}" = set; then :
4706 $as_echo_n "(cached) " >&6
4707 else
4708 if test -n "$CC"; then
4709 ac_cv_prog_CC="$CC" # Let the user override the test.
4710 else
4711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4712 for as_dir in $PATH
4714 IFS=$as_save_IFS
4715 test -z "$as_dir" && as_dir=.
4716 for ac_exec_ext in '' $ac_executable_extensions; do
4717 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4718 ac_cv_prog_CC="${ac_tool_prefix}cc"
4719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4720 break 2
4722 done
4723 done
4724 IFS=$as_save_IFS
4728 CC=$ac_cv_prog_CC
4729 if test -n "$CC"; then
4730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4731 $as_echo "$CC" >&6; }
4732 else
4733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4734 $as_echo "no" >&6; }
4740 if test -z "$CC"; then
4741 # Extract the first word of "cc", so it can be a program name with args.
4742 set dummy 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 ac_prog_rejected=no
4752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4753 for as_dir in $PATH
4755 IFS=$as_save_IFS
4756 test -z "$as_dir" && as_dir=.
4757 for ac_exec_ext in '' $ac_executable_extensions; do
4758 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4759 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4760 ac_prog_rejected=yes
4761 continue
4763 ac_cv_prog_CC="cc"
4764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4765 break 2
4767 done
4768 done
4769 IFS=$as_save_IFS
4771 if test $ac_prog_rejected = yes; then
4772 # We found a bogon in the path, so make sure we never use it.
4773 set dummy $ac_cv_prog_CC
4774 shift
4775 if test $# != 0; then
4776 # We chose a different compiler from the bogus one.
4777 # However, it has the same basename, so the bogon will be chosen
4778 # first if we set CC to just the basename; use the full file name.
4779 shift
4780 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4785 CC=$ac_cv_prog_CC
4786 if test -n "$CC"; then
4787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4788 $as_echo "$CC" >&6; }
4789 else
4790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4791 $as_echo "no" >&6; }
4796 if test -z "$CC"; then
4797 if test -n "$ac_tool_prefix"; then
4798 for ac_prog in cl.exe
4800 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4801 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4803 $as_echo_n "checking for $ac_word... " >&6; }
4804 if test "${ac_cv_prog_CC+set}" = set; then :
4805 $as_echo_n "(cached) " >&6
4806 else
4807 if test -n "$CC"; then
4808 ac_cv_prog_CC="$CC" # Let the user override the test.
4809 else
4810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4811 for as_dir in $PATH
4813 IFS=$as_save_IFS
4814 test -z "$as_dir" && as_dir=.
4815 for ac_exec_ext in '' $ac_executable_extensions; do
4816 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4817 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4819 break 2
4821 done
4822 done
4823 IFS=$as_save_IFS
4827 CC=$ac_cv_prog_CC
4828 if test -n "$CC"; then
4829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4830 $as_echo "$CC" >&6; }
4831 else
4832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4833 $as_echo "no" >&6; }
4837 test -n "$CC" && break
4838 done
4840 if test -z "$CC"; then
4841 ac_ct_CC=$CC
4842 for ac_prog in cl.exe
4844 # Extract the first word of "$ac_prog", so it can be a program name with args.
4845 set dummy $ac_prog; ac_word=$2
4846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4847 $as_echo_n "checking for $ac_word... " >&6; }
4848 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4849 $as_echo_n "(cached) " >&6
4850 else
4851 if test -n "$ac_ct_CC"; then
4852 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4853 else
4854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4855 for as_dir in $PATH
4857 IFS=$as_save_IFS
4858 test -z "$as_dir" && as_dir=.
4859 for ac_exec_ext in '' $ac_executable_extensions; do
4860 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4861 ac_cv_prog_ac_ct_CC="$ac_prog"
4862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4863 break 2
4865 done
4866 done
4867 IFS=$as_save_IFS
4871 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4872 if test -n "$ac_ct_CC"; then
4873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4874 $as_echo "$ac_ct_CC" >&6; }
4875 else
4876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4877 $as_echo "no" >&6; }
4881 test -n "$ac_ct_CC" && break
4882 done
4884 if test "x$ac_ct_CC" = x; then
4885 CC=""
4886 else
4887 case $cross_compiling:$ac_tool_warned in
4888 yes:)
4889 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4890 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4891 ac_tool_warned=yes ;;
4892 esac
4893 CC=$ac_ct_CC
4900 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4901 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4902 as_fn_error "no acceptable C compiler found in \$PATH
4903 See \`config.log' for more details." "$LINENO" 5; }
4905 # Provide some information about the compiler.
4906 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4907 set X $ac_compile
4908 ac_compiler=$2
4909 for ac_option in --version -v -V -qversion; do
4910 { { ac_try="$ac_compiler $ac_option >&5"
4911 case "(($ac_try" in
4912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4913 *) ac_try_echo=$ac_try;;
4914 esac
4915 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4916 $as_echo "$ac_try_echo"; } >&5
4917 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4918 ac_status=$?
4919 if test -s conftest.err; then
4920 sed '10a\
4921 ... rest of stderr output deleted ...
4922 10q' conftest.err >conftest.er1
4923 cat conftest.er1 >&5
4925 rm -f conftest.er1 conftest.err
4926 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4927 test $ac_status = 0; }
4928 done
4930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4931 /* end confdefs.h. */
4934 main ()
4938 return 0;
4940 _ACEOF
4941 ac_clean_files_save=$ac_clean_files
4942 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4943 # Try to create an executable without -o first, disregard a.out.
4944 # It will help us diagnose broken compilers, and finding out an intuition
4945 # of exeext.
4946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4947 $as_echo_n "checking whether the C compiler works... " >&6; }
4948 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4950 # The possible output files:
4951 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4953 ac_rmfiles=
4954 for ac_file in $ac_files
4956 case $ac_file in
4957 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4958 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4959 esac
4960 done
4961 rm -f $ac_rmfiles
4963 if { { ac_try="$ac_link_default"
4964 case "(($ac_try" in
4965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4966 *) ac_try_echo=$ac_try;;
4967 esac
4968 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4969 $as_echo "$ac_try_echo"; } >&5
4970 (eval "$ac_link_default") 2>&5
4971 ac_status=$?
4972 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4973 test $ac_status = 0; }; then :
4974 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4975 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4976 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4977 # so that the user can short-circuit this test for compilers unknown to
4978 # Autoconf.
4979 for ac_file in $ac_files ''
4981 test -f "$ac_file" || continue
4982 case $ac_file in
4983 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4985 [ab].out )
4986 # We found the default executable, but exeext='' is most
4987 # certainly right.
4988 break;;
4989 *.* )
4990 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4991 then :; else
4992 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4994 # We set ac_cv_exeext here because the later test for it is not
4995 # safe: cross compilers may not add the suffix if given an `-o'
4996 # argument, so we may need to know it at that point already.
4997 # Even if this section looks crufty: it has the advantage of
4998 # actually working.
4999 break;;
5001 break;;
5002 esac
5003 done
5004 test "$ac_cv_exeext" = no && ac_cv_exeext=
5006 else
5007 ac_file=''
5009 if test -z "$ac_file"; then :
5010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5011 $as_echo "no" >&6; }
5012 $as_echo "$as_me: failed program was:" >&5
5013 sed 's/^/| /' conftest.$ac_ext >&5
5015 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5016 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5017 { as_fn_set_status 77
5018 as_fn_error "C compiler cannot create executables
5019 See \`config.log' for more details." "$LINENO" 5; }; }
5020 else
5021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5022 $as_echo "yes" >&6; }
5024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5025 $as_echo_n "checking for C compiler default output file name... " >&6; }
5026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5027 $as_echo "$ac_file" >&6; }
5028 ac_exeext=$ac_cv_exeext
5030 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
5031 ac_clean_files=$ac_clean_files_save
5032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5033 $as_echo_n "checking for suffix of executables... " >&6; }
5034 if { { ac_try="$ac_link"
5035 case "(($ac_try" in
5036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5037 *) ac_try_echo=$ac_try;;
5038 esac
5039 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5040 $as_echo "$ac_try_echo"; } >&5
5041 (eval "$ac_link") 2>&5
5042 ac_status=$?
5043 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5044 test $ac_status = 0; }; then :
5045 # If both `conftest.exe' and `conftest' are `present' (well, observable)
5046 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
5047 # work properly (i.e., refer to `conftest.exe'), while it won't with
5048 # `rm'.
5049 for ac_file in conftest.exe conftest conftest.*; do
5050 test -f "$ac_file" || continue
5051 case $ac_file in
5052 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5053 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5054 break;;
5055 * ) break;;
5056 esac
5057 done
5058 else
5059 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5060 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5061 as_fn_error "cannot compute suffix of executables: cannot compile and link
5062 See \`config.log' for more details." "$LINENO" 5; }
5064 rm -f conftest conftest$ac_cv_exeext
5065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5066 $as_echo "$ac_cv_exeext" >&6; }
5068 rm -f conftest.$ac_ext
5069 EXEEXT=$ac_cv_exeext
5070 ac_exeext=$EXEEXT
5071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5072 /* end confdefs.h. */
5073 #include <stdio.h>
5075 main ()
5077 FILE *f = fopen ("conftest.out", "w");
5078 return ferror (f) || fclose (f) != 0;
5081 return 0;
5083 _ACEOF
5084 ac_clean_files="$ac_clean_files conftest.out"
5085 # Check that the compiler produces executables we can run. If not, either
5086 # the compiler is broken, or we cross compile.
5087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5088 $as_echo_n "checking whether we are cross compiling... " >&6; }
5089 if test "$cross_compiling" != yes; then
5090 { { ac_try="$ac_link"
5091 case "(($ac_try" in
5092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5093 *) ac_try_echo=$ac_try;;
5094 esac
5095 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5096 $as_echo "$ac_try_echo"; } >&5
5097 (eval "$ac_link") 2>&5
5098 ac_status=$?
5099 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5100 test $ac_status = 0; }
5101 if { ac_try='./conftest$ac_cv_exeext'
5102 { { case "(($ac_try" in
5103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5104 *) ac_try_echo=$ac_try;;
5105 esac
5106 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5107 $as_echo "$ac_try_echo"; } >&5
5108 (eval "$ac_try") 2>&5
5109 ac_status=$?
5110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5111 test $ac_status = 0; }; }; then
5112 cross_compiling=no
5113 else
5114 if test "$cross_compiling" = maybe; then
5115 cross_compiling=yes
5116 else
5117 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5118 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5119 as_fn_error "cannot run C compiled programs.
5120 If you meant to cross compile, use \`--host'.
5121 See \`config.log' for more details." "$LINENO" 5; }
5125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5126 $as_echo "$cross_compiling" >&6; }
5128 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5129 ac_clean_files=$ac_clean_files_save
5130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5131 $as_echo_n "checking for suffix of object files... " >&6; }
5132 if test "${ac_cv_objext+set}" = set; then :
5133 $as_echo_n "(cached) " >&6
5134 else
5135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5136 /* end confdefs.h. */
5139 main ()
5143 return 0;
5145 _ACEOF
5146 rm -f conftest.o conftest.obj
5147 if { { ac_try="$ac_compile"
5148 case "(($ac_try" in
5149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5150 *) ac_try_echo=$ac_try;;
5151 esac
5152 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5153 $as_echo "$ac_try_echo"; } >&5
5154 (eval "$ac_compile") 2>&5
5155 ac_status=$?
5156 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5157 test $ac_status = 0; }; then :
5158 for ac_file in conftest.o conftest.obj conftest.*; do
5159 test -f "$ac_file" || continue;
5160 case $ac_file in
5161 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5162 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5163 break;;
5164 esac
5165 done
5166 else
5167 $as_echo "$as_me: failed program was:" >&5
5168 sed 's/^/| /' conftest.$ac_ext >&5
5170 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5171 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5172 as_fn_error "cannot compute suffix of object files: cannot compile
5173 See \`config.log' for more details." "$LINENO" 5; }
5175 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5178 $as_echo "$ac_cv_objext" >&6; }
5179 OBJEXT=$ac_cv_objext
5180 ac_objext=$OBJEXT
5181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5182 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5183 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5184 $as_echo_n "(cached) " >&6
5185 else
5186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5187 /* end confdefs.h. */
5190 main ()
5192 #ifndef __GNUC__
5193 choke me
5194 #endif
5197 return 0;
5199 _ACEOF
5200 if ac_fn_c_try_compile "$LINENO"; then :
5201 ac_compiler_gnu=yes
5202 else
5203 ac_compiler_gnu=no
5205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5206 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5210 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5211 if test $ac_compiler_gnu = yes; then
5212 GCC=yes
5213 else
5214 GCC=
5216 ac_test_CFLAGS=${CFLAGS+set}
5217 ac_save_CFLAGS=$CFLAGS
5218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5219 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5220 if test "${ac_cv_prog_cc_g+set}" = set; then :
5221 $as_echo_n "(cached) " >&6
5222 else
5223 ac_save_c_werror_flag=$ac_c_werror_flag
5224 ac_c_werror_flag=yes
5225 ac_cv_prog_cc_g=no
5226 CFLAGS="-g"
5227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5228 /* end confdefs.h. */
5231 main ()
5235 return 0;
5237 _ACEOF
5238 if ac_fn_c_try_compile "$LINENO"; then :
5239 ac_cv_prog_cc_g=yes
5240 else
5241 CFLAGS=""
5242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5243 /* end confdefs.h. */
5246 main ()
5250 return 0;
5252 _ACEOF
5253 if ac_fn_c_try_compile "$LINENO"; then :
5255 else
5256 ac_c_werror_flag=$ac_save_c_werror_flag
5257 CFLAGS="-g"
5258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5259 /* end confdefs.h. */
5262 main ()
5266 return 0;
5268 _ACEOF
5269 if ac_fn_c_try_compile "$LINENO"; then :
5270 ac_cv_prog_cc_g=yes
5272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5277 ac_c_werror_flag=$ac_save_c_werror_flag
5279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5280 $as_echo "$ac_cv_prog_cc_g" >&6; }
5281 if test "$ac_test_CFLAGS" = set; then
5282 CFLAGS=$ac_save_CFLAGS
5283 elif test $ac_cv_prog_cc_g = yes; then
5284 if test "$GCC" = yes; then
5285 CFLAGS="-g -O2"
5286 else
5287 CFLAGS="-g"
5289 else
5290 if test "$GCC" = yes; then
5291 CFLAGS="-O2"
5292 else
5293 CFLAGS=
5296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5297 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5298 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5299 $as_echo_n "(cached) " >&6
5300 else
5301 ac_cv_prog_cc_c89=no
5302 ac_save_CC=$CC
5303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5304 /* end confdefs.h. */
5305 #include <stdarg.h>
5306 #include <stdio.h>
5307 #include <sys/types.h>
5308 #include <sys/stat.h>
5309 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5310 struct buf { int x; };
5311 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5312 static char *e (p, i)
5313 char **p;
5314 int i;
5316 return p[i];
5318 static char *f (char * (*g) (char **, int), char **p, ...)
5320 char *s;
5321 va_list v;
5322 va_start (v,p);
5323 s = g (p, va_arg (v,int));
5324 va_end (v);
5325 return s;
5328 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5329 function prototypes and stuff, but not '\xHH' hex character constants.
5330 These don't provoke an error unfortunately, instead are silently treated
5331 as 'x'. The following induces an error, until -std is added to get
5332 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5333 array size at least. It's necessary to write '\x00'==0 to get something
5334 that's true only with -std. */
5335 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5337 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5338 inside strings and character constants. */
5339 #define FOO(x) 'x'
5340 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5342 int test (int i, double x);
5343 struct s1 {int (*f) (int a);};
5344 struct s2 {int (*f) (double a);};
5345 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5346 int argc;
5347 char **argv;
5349 main ()
5351 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5353 return 0;
5355 _ACEOF
5356 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5357 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5359 CC="$ac_save_CC $ac_arg"
5360 if ac_fn_c_try_compile "$LINENO"; then :
5361 ac_cv_prog_cc_c89=$ac_arg
5363 rm -f core conftest.err conftest.$ac_objext
5364 test "x$ac_cv_prog_cc_c89" != "xno" && break
5365 done
5366 rm -f conftest.$ac_ext
5367 CC=$ac_save_CC
5370 # AC_CACHE_VAL
5371 case "x$ac_cv_prog_cc_c89" in
5373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5374 $as_echo "none needed" >&6; } ;;
5375 xno)
5376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5377 $as_echo "unsupported" >&6; } ;;
5379 CC="$CC $ac_cv_prog_cc_c89"
5380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5381 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5382 esac
5383 if test "x$ac_cv_prog_cc_c89" != xno; then :
5387 ac_ext=c
5388 ac_cpp='$CPP $CPPFLAGS'
5389 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5390 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5391 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5392 DEPDIR="${am__leading_dot}deps"
5394 ac_config_commands="$ac_config_commands depfiles"
5397 am_make=${MAKE-make}
5398 cat > confinc << 'END'
5399 am__doit:
5400 @echo this is the am__doit target
5401 .PHONY: am__doit
5403 # If we don't find an include directive, just comment out the code.
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5405 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5406 am__include="#"
5407 am__quote=
5408 _am_result=none
5409 # First try GNU make style include.
5410 echo "include confinc" > confmf
5411 # Ignore all kinds of additional output from `make'.
5412 case `$am_make -s -f confmf 2> /dev/null` in #(
5413 *the\ am__doit\ target*)
5414 am__include=include
5415 am__quote=
5416 _am_result=GNU
5418 esac
5419 # Now try BSD make style include.
5420 if test "$am__include" = "#"; then
5421 echo '.include "confinc"' > confmf
5422 case `$am_make -s -f confmf 2> /dev/null` in #(
5423 *the\ am__doit\ target*)
5424 am__include=.include
5425 am__quote="\""
5426 _am_result=BSD
5428 esac
5432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5433 $as_echo "$_am_result" >&6; }
5434 rm -f confinc confmf
5436 # Check whether --enable-dependency-tracking was given.
5437 if test "${enable_dependency_tracking+set}" = set; then :
5438 enableval=$enable_dependency_tracking;
5441 if test "x$enable_dependency_tracking" != xno; then
5442 am_depcomp="$ac_aux_dir/depcomp"
5443 AMDEPBACKSLASH='\'
5445 if test "x$enable_dependency_tracking" != xno; then
5446 AMDEP_TRUE=
5447 AMDEP_FALSE='#'
5448 else
5449 AMDEP_TRUE='#'
5450 AMDEP_FALSE=
5455 depcc="$CC" am_compiler_list=
5457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5458 $as_echo_n "checking dependency style of $depcc... " >&6; }
5459 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5460 $as_echo_n "(cached) " >&6
5461 else
5462 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5463 # We make a subdir and do the tests there. Otherwise we can end up
5464 # making bogus files that we don't know about and never remove. For
5465 # instance it was reported that on HP-UX the gcc test will end up
5466 # making a dummy file named `D' -- because `-MD' means `put the output
5467 # in D'.
5468 mkdir conftest.dir
5469 # Copy depcomp to subdir because otherwise we won't find it if we're
5470 # using a relative directory.
5471 cp "$am_depcomp" conftest.dir
5472 cd conftest.dir
5473 # We will build objects and dependencies in a subdirectory because
5474 # it helps to detect inapplicable dependency modes. For instance
5475 # both Tru64's cc and ICC support -MD to output dependencies as a
5476 # side effect of compilation, but ICC will put the dependencies in
5477 # the current directory while Tru64 will put them in the object
5478 # directory.
5479 mkdir sub
5481 am_cv_CC_dependencies_compiler_type=none
5482 if test "$am_compiler_list" = ""; then
5483 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5485 am__universal=false
5486 case " $depcc " in #(
5487 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5488 esac
5490 for depmode in $am_compiler_list; do
5491 # Setup a source with many dependencies, because some compilers
5492 # like to wrap large dependency lists on column 80 (with \), and
5493 # we should not choose a depcomp mode which is confused by this.
5495 # We need to recreate these files for each test, as the compiler may
5496 # overwrite some of them when testing with obscure command lines.
5497 # This happens at least with the AIX C compiler.
5498 : > sub/conftest.c
5499 for i in 1 2 3 4 5 6; do
5500 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5501 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5502 # Solaris 8's {/usr,}/bin/sh.
5503 touch sub/conftst$i.h
5504 done
5505 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5507 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5508 # mode. It turns out that the SunPro C++ compiler does not properly
5509 # handle `-M -o', and we need to detect this. Also, some Intel
5510 # versions had trouble with output in subdirs
5511 am__obj=sub/conftest.${OBJEXT-o}
5512 am__minus_obj="-o $am__obj"
5513 case $depmode in
5514 gcc)
5515 # This depmode causes a compiler race in universal mode.
5516 test "$am__universal" = false || continue
5518 nosideeffect)
5519 # after this tag, mechanisms are not by side-effect, so they'll
5520 # only be used when explicitly requested
5521 if test "x$enable_dependency_tracking" = xyes; then
5522 continue
5523 else
5524 break
5527 msvisualcpp | msvcmsys)
5528 # This compiler won't grok `-c -o', but also, the minuso test has
5529 # not run yet. These depmodes are late enough in the game, and
5530 # so weak that their functioning should not be impacted.
5531 am__obj=conftest.${OBJEXT-o}
5532 am__minus_obj=
5534 none) break ;;
5535 esac
5536 if depmode=$depmode \
5537 source=sub/conftest.c object=$am__obj \
5538 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5539 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5540 >/dev/null 2>conftest.err &&
5541 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5542 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5543 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5544 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5545 # icc doesn't choke on unknown options, it will just issue warnings
5546 # or remarks (even with -Werror). So we grep stderr for any message
5547 # that says an option was ignored or not supported.
5548 # When given -MP, icc 7.0 and 7.1 complain thusly:
5549 # icc: Command line warning: ignoring option '-M'; no argument required
5550 # The diagnosis changed in icc 8.0:
5551 # icc: Command line remark: option '-MP' not supported
5552 if (grep 'ignoring option' conftest.err ||
5553 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5554 am_cv_CC_dependencies_compiler_type=$depmode
5555 break
5558 done
5560 cd ..
5561 rm -rf conftest.dir
5562 else
5563 am_cv_CC_dependencies_compiler_type=none
5567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5568 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5569 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5572 test "x$enable_dependency_tracking" != xno \
5573 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5574 am__fastdepCC_TRUE=
5575 am__fastdepCC_FALSE='#'
5576 else
5577 am__fastdepCC_TRUE='#'
5578 am__fastdepCC_FALSE=
5582 if test "x$CC" != xcc; then
5583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5584 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5585 else
5586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5587 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5589 set dummy $CC; ac_cc=`$as_echo "$2" |
5590 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5591 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
5592 $as_echo_n "(cached) " >&6
5593 else
5594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5595 /* end confdefs.h. */
5598 main ()
5602 return 0;
5604 _ACEOF
5605 # Make sure it works both with $CC and with simple cc.
5606 # We do the test twice because some compilers refuse to overwrite an
5607 # existing .o file with -o, though they will create one.
5608 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5609 rm -f conftest2.*
5610 if { { case "(($ac_try" in
5611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5612 *) ac_try_echo=$ac_try;;
5613 esac
5614 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5615 $as_echo "$ac_try_echo"; } >&5
5616 (eval "$ac_try") 2>&5
5617 ac_status=$?
5618 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5619 test $ac_status = 0; } &&
5620 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5622 *) ac_try_echo=$ac_try;;
5623 esac
5624 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5625 $as_echo "$ac_try_echo"; } >&5
5626 (eval "$ac_try") 2>&5
5627 ac_status=$?
5628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5629 test $ac_status = 0; };
5630 then
5631 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5632 if test "x$CC" != xcc; then
5633 # Test first that cc exists at all.
5634 if { ac_try='cc -c conftest.$ac_ext >&5'
5635 { { case "(($ac_try" in
5636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5637 *) ac_try_echo=$ac_try;;
5638 esac
5639 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5640 $as_echo "$ac_try_echo"; } >&5
5641 (eval "$ac_try") 2>&5
5642 ac_status=$?
5643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5644 test $ac_status = 0; }; }; then
5645 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5646 rm -f conftest2.*
5647 if { { case "(($ac_try" in
5648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5649 *) ac_try_echo=$ac_try;;
5650 esac
5651 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5652 $as_echo "$ac_try_echo"; } >&5
5653 (eval "$ac_try") 2>&5
5654 ac_status=$?
5655 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5656 test $ac_status = 0; } &&
5657 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5659 *) ac_try_echo=$ac_try;;
5660 esac
5661 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5662 $as_echo "$ac_try_echo"; } >&5
5663 (eval "$ac_try") 2>&5
5664 ac_status=$?
5665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5666 test $ac_status = 0; };
5667 then
5668 # cc works too.
5670 else
5671 # cc exists but doesn't like -o.
5672 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5676 else
5677 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5679 rm -f core conftest*
5682 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5684 $as_echo "yes" >&6; }
5685 else
5686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5687 $as_echo "no" >&6; }
5689 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5693 # FIXME: we rely on the cache variable name because
5694 # there is no other way.
5695 set dummy $CC
5696 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5697 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5698 if test "$am_t" != yes; then
5699 # Losing compiler, so override with the script.
5700 # FIXME: It is wrong to rewrite CC.
5701 # But if we don't then we get into trouble of one sort or another.
5702 # A longer-term fix would be to have automake use am__CC in this case,
5703 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5704 CC="$am_aux_dir/compile $CC"
5709 if test x$GCC = xyes; then
5710 test "x$GCC_TEST_OPTIONS" != x && CC="$CC $GCC_TEST_OPTIONS"
5711 else
5712 test "x$NON_GCC_TEST_OPTIONS" != x && CC="$CC $NON_GCC_TEST_OPTIONS"
5715 # Initialize gnulib right after choosing the compiler.
5717 ac_ext=c
5718 ac_cpp='$CPP $CPPFLAGS'
5719 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5720 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5721 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5723 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5724 # On Suns, sometimes $CPP names a directory.
5725 if test -n "$CPP" && test -d "$CPP"; then
5726 CPP=
5728 if test -z "$CPP"; then
5729 if test "${ac_cv_prog_CPP+set}" = set; then :
5730 $as_echo_n "(cached) " >&6
5731 else
5732 # Double quotes because CPP needs to be expanded
5733 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5735 ac_preproc_ok=false
5736 for ac_c_preproc_warn_flag in '' yes
5738 # Use a header file that comes with gcc, so configuring glibc
5739 # with a fresh cross-compiler works.
5740 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5741 # <limits.h> exists even on freestanding compilers.
5742 # On the NeXT, cc -E runs the code through the compiler's parser,
5743 # not just through cpp. "Syntax error" is here to catch this case.
5744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5745 /* end confdefs.h. */
5746 #ifdef __STDC__
5747 # include <limits.h>
5748 #else
5749 # include <assert.h>
5750 #endif
5751 Syntax error
5752 _ACEOF
5753 if ac_fn_c_try_cpp "$LINENO"; then :
5755 else
5756 # Broken: fails on valid input.
5757 continue
5759 rm -f conftest.err conftest.$ac_ext
5761 # OK, works on sane cases. Now check whether nonexistent headers
5762 # can be detected and how.
5763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5764 /* end confdefs.h. */
5765 #include <ac_nonexistent.h>
5766 _ACEOF
5767 if ac_fn_c_try_cpp "$LINENO"; then :
5768 # Broken: success on invalid input.
5769 continue
5770 else
5771 # Passes both tests.
5772 ac_preproc_ok=:
5773 break
5775 rm -f conftest.err conftest.$ac_ext
5777 done
5778 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5779 rm -f conftest.err conftest.$ac_ext
5780 if $ac_preproc_ok; then :
5781 break
5784 done
5785 ac_cv_prog_CPP=$CPP
5788 CPP=$ac_cv_prog_CPP
5789 else
5790 ac_cv_prog_CPP=$CPP
5792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5793 $as_echo "$CPP" >&6; }
5794 ac_preproc_ok=false
5795 for ac_c_preproc_warn_flag in '' yes
5797 # Use a header file that comes with gcc, so configuring glibc
5798 # with a fresh cross-compiler works.
5799 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5800 # <limits.h> exists even on freestanding compilers.
5801 # On the NeXT, cc -E runs the code through the compiler's parser,
5802 # not just through cpp. "Syntax error" is here to catch this case.
5803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5804 /* end confdefs.h. */
5805 #ifdef __STDC__
5806 # include <limits.h>
5807 #else
5808 # include <assert.h>
5809 #endif
5810 Syntax error
5811 _ACEOF
5812 if ac_fn_c_try_cpp "$LINENO"; then :
5814 else
5815 # Broken: fails on valid input.
5816 continue
5818 rm -f conftest.err conftest.$ac_ext
5820 # OK, works on sane cases. Now check whether nonexistent headers
5821 # can be detected and how.
5822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5823 /* end confdefs.h. */
5824 #include <ac_nonexistent.h>
5825 _ACEOF
5826 if ac_fn_c_try_cpp "$LINENO"; then :
5827 # Broken: success on invalid input.
5828 continue
5829 else
5830 # Passes both tests.
5831 ac_preproc_ok=:
5832 break
5834 rm -f conftest.err conftest.$ac_ext
5836 done
5837 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5838 rm -f conftest.err conftest.$ac_ext
5839 if $ac_preproc_ok; then :
5841 else
5842 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5843 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5844 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5845 See \`config.log' for more details." "$LINENO" 5; }
5848 ac_ext=c
5849 ac_cpp='$CPP $CPPFLAGS'
5850 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5851 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5852 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5856 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5857 if test "${ac_cv_path_GREP+set}" = set; then :
5858 $as_echo_n "(cached) " >&6
5859 else
5860 if test -z "$GREP"; then
5861 ac_path_GREP_found=false
5862 # Loop through the user's path and test for each of PROGNAME-LIST
5863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5864 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5866 IFS=$as_save_IFS
5867 test -z "$as_dir" && as_dir=.
5868 for ac_prog in grep ggrep; do
5869 for ac_exec_ext in '' $ac_executable_extensions; do
5870 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5871 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5872 # Check for GNU ac_path_GREP and select it if it is found.
5873 # Check for GNU $ac_path_GREP
5874 case `"$ac_path_GREP" --version 2>&1` in
5875 *GNU*)
5876 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5878 ac_count=0
5879 $as_echo_n 0123456789 >"conftest.in"
5880 while :
5882 cat "conftest.in" "conftest.in" >"conftest.tmp"
5883 mv "conftest.tmp" "conftest.in"
5884 cp "conftest.in" "conftest.nl"
5885 $as_echo 'GREP' >> "conftest.nl"
5886 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5887 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5888 as_fn_arith $ac_count + 1 && ac_count=$as_val
5889 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5890 # Best one so far, save it but keep looking for a better one
5891 ac_cv_path_GREP="$ac_path_GREP"
5892 ac_path_GREP_max=$ac_count
5894 # 10*(2^10) chars as input seems more than enough
5895 test $ac_count -gt 10 && break
5896 done
5897 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5898 esac
5900 $ac_path_GREP_found && break 3
5901 done
5902 done
5903 done
5904 IFS=$as_save_IFS
5905 if test -z "$ac_cv_path_GREP"; then
5906 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5908 else
5909 ac_cv_path_GREP=$GREP
5913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5914 $as_echo "$ac_cv_path_GREP" >&6; }
5915 GREP="$ac_cv_path_GREP"
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5919 $as_echo_n "checking for egrep... " >&6; }
5920 if test "${ac_cv_path_EGREP+set}" = set; then :
5921 $as_echo_n "(cached) " >&6
5922 else
5923 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5924 then ac_cv_path_EGREP="$GREP -E"
5925 else
5926 if test -z "$EGREP"; then
5927 ac_path_EGREP_found=false
5928 # Loop through the user's path and test for each of PROGNAME-LIST
5929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5930 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5932 IFS=$as_save_IFS
5933 test -z "$as_dir" && as_dir=.
5934 for ac_prog in egrep; do
5935 for ac_exec_ext in '' $ac_executable_extensions; do
5936 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5937 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5938 # Check for GNU ac_path_EGREP and select it if it is found.
5939 # Check for GNU $ac_path_EGREP
5940 case `"$ac_path_EGREP" --version 2>&1` in
5941 *GNU*)
5942 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5944 ac_count=0
5945 $as_echo_n 0123456789 >"conftest.in"
5946 while :
5948 cat "conftest.in" "conftest.in" >"conftest.tmp"
5949 mv "conftest.tmp" "conftest.in"
5950 cp "conftest.in" "conftest.nl"
5951 $as_echo 'EGREP' >> "conftest.nl"
5952 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5953 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5954 as_fn_arith $ac_count + 1 && ac_count=$as_val
5955 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5956 # Best one so far, save it but keep looking for a better one
5957 ac_cv_path_EGREP="$ac_path_EGREP"
5958 ac_path_EGREP_max=$ac_count
5960 # 10*(2^10) chars as input seems more than enough
5961 test $ac_count -gt 10 && break
5962 done
5963 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5964 esac
5966 $ac_path_EGREP_found && break 3
5967 done
5968 done
5969 done
5970 IFS=$as_save_IFS
5971 if test -z "$ac_cv_path_EGREP"; then
5972 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5974 else
5975 ac_cv_path_EGREP=$EGREP
5980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5981 $as_echo "$ac_cv_path_EGREP" >&6; }
5982 EGREP="$ac_cv_path_EGREP"
5987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
5988 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
5989 if test "${gl_cv_c_amsterdam_compiler+set}" = set; then :
5990 $as_echo_n "(cached) " >&6
5991 else
5993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5994 /* end confdefs.h. */
5996 #ifdef __ACK__
5997 Amsterdam
5998 #endif
6000 _ACEOF
6001 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6002 $EGREP "Amsterdam" >/dev/null 2>&1; then :
6003 gl_cv_c_amsterdam_compiler=yes
6004 else
6005 gl_cv_c_amsterdam_compiler=no
6007 rm -f conftest*
6011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
6012 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
6013 if test -z "$AR"; then
6014 if test $gl_cv_c_amsterdam_compiler = yes; then
6015 AR='cc -c.a'
6016 if test -z "$ARFLAGS"; then
6017 ARFLAGS='-o'
6019 else
6020 if test -n "$ac_tool_prefix"; then
6021 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6022 set dummy ${ac_tool_prefix}ar; ac_word=$2
6023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6024 $as_echo_n "checking for $ac_word... " >&6; }
6025 if test "${ac_cv_prog_AR+set}" = set; then :
6026 $as_echo_n "(cached) " >&6
6027 else
6028 if test -n "$AR"; then
6029 ac_cv_prog_AR="$AR" # Let the user override the test.
6030 else
6031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6032 for as_dir in $PATH
6034 IFS=$as_save_IFS
6035 test -z "$as_dir" && as_dir=.
6036 for ac_exec_ext in '' $ac_executable_extensions; do
6037 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6038 ac_cv_prog_AR="${ac_tool_prefix}ar"
6039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6040 break 2
6042 done
6043 done
6044 IFS=$as_save_IFS
6048 AR=$ac_cv_prog_AR
6049 if test -n "$AR"; then
6050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6051 $as_echo "$AR" >&6; }
6052 else
6053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6054 $as_echo "no" >&6; }
6059 if test -z "$ac_cv_prog_AR"; then
6060 ac_ct_AR=$AR
6061 # Extract the first word of "ar", so it can be a program name with args.
6062 set dummy 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_ac_ct_AR+set}" = set; then :
6066 $as_echo_n "(cached) " >&6
6067 else
6068 if test -n "$ac_ct_AR"; then
6069 ac_cv_prog_ac_ct_AR="$ac_ct_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_ac_ct_AR="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 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6089 if test -n "$ac_ct_AR"; then
6090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6091 $as_echo "$ac_ct_AR" >&6; }
6092 else
6093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6094 $as_echo "no" >&6; }
6097 if test "x$ac_ct_AR" = x; then
6098 AR="ar"
6099 else
6100 case $cross_compiling:$ac_tool_warned in
6101 yes:)
6102 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6103 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6104 ac_tool_warned=yes ;;
6105 esac
6106 AR=$ac_ct_AR
6108 else
6109 AR="$ac_cv_prog_AR"
6112 if test -z "$ARFLAGS"; then
6113 ARFLAGS='cru'
6116 else
6117 if test -z "$ARFLAGS"; then
6118 ARFLAGS='cru'
6123 if test -z "$RANLIB"; then
6124 if test $gl_cv_c_amsterdam_compiler = yes; then
6125 RANLIB=':'
6126 else
6127 if test -n "$ac_tool_prefix"; then
6128 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6129 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6131 $as_echo_n "checking for $ac_word... " >&6; }
6132 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6133 $as_echo_n "(cached) " >&6
6134 else
6135 if test -n "$RANLIB"; then
6136 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6137 else
6138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6139 for as_dir in $PATH
6141 IFS=$as_save_IFS
6142 test -z "$as_dir" && as_dir=.
6143 for ac_exec_ext in '' $ac_executable_extensions; do
6144 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6145 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6147 break 2
6149 done
6150 done
6151 IFS=$as_save_IFS
6155 RANLIB=$ac_cv_prog_RANLIB
6156 if test -n "$RANLIB"; then
6157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6158 $as_echo "$RANLIB" >&6; }
6159 else
6160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6161 $as_echo "no" >&6; }
6166 if test -z "$ac_cv_prog_RANLIB"; then
6167 ac_ct_RANLIB=$RANLIB
6168 # Extract the first word of "ranlib", so it can be a program name with args.
6169 set dummy 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_ac_ct_RANLIB+set}" = set; then :
6173 $as_echo_n "(cached) " >&6
6174 else
6175 if test -n "$ac_ct_RANLIB"; then
6176 ac_cv_prog_ac_ct_RANLIB="$ac_ct_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_ac_ct_RANLIB="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 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6196 if test -n "$ac_ct_RANLIB"; then
6197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6198 $as_echo "$ac_ct_RANLIB" >&6; }
6199 else
6200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6201 $as_echo "no" >&6; }
6204 if test "x$ac_ct_RANLIB" = x; then
6205 RANLIB=":"
6206 else
6207 case $cross_compiling:$ac_tool_warned in
6208 yes:)
6209 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6210 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6211 ac_tool_warned=yes ;;
6212 esac
6213 RANLIB=$ac_ct_RANLIB
6215 else
6216 RANLIB="$ac_cv_prog_RANLIB"
6223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6224 $as_echo_n "checking for ANSI C header files... " >&6; }
6225 if test "${ac_cv_header_stdc+set}" = set; then :
6226 $as_echo_n "(cached) " >&6
6227 else
6228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6229 /* end confdefs.h. */
6230 #include <stdlib.h>
6231 #include <stdarg.h>
6232 #include <string.h>
6233 #include <float.h>
6236 main ()
6240 return 0;
6242 _ACEOF
6243 if ac_fn_c_try_compile "$LINENO"; then :
6244 ac_cv_header_stdc=yes
6245 else
6246 ac_cv_header_stdc=no
6248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6250 if test $ac_cv_header_stdc = yes; then
6251 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6253 /* end confdefs.h. */
6254 #include <string.h>
6256 _ACEOF
6257 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6258 $EGREP "memchr" >/dev/null 2>&1; then :
6260 else
6261 ac_cv_header_stdc=no
6263 rm -f conftest*
6267 if test $ac_cv_header_stdc = yes; then
6268 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6270 /* end confdefs.h. */
6271 #include <stdlib.h>
6273 _ACEOF
6274 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6275 $EGREP "free" >/dev/null 2>&1; then :
6277 else
6278 ac_cv_header_stdc=no
6280 rm -f conftest*
6284 if test $ac_cv_header_stdc = yes; then
6285 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6286 if test "$cross_compiling" = yes; then :
6288 else
6289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6290 /* end confdefs.h. */
6291 #include <ctype.h>
6292 #include <stdlib.h>
6293 #if ((' ' & 0x0FF) == 0x020)
6294 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6295 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6296 #else
6297 # define ISLOWER(c) \
6298 (('a' <= (c) && (c) <= 'i') \
6299 || ('j' <= (c) && (c) <= 'r') \
6300 || ('s' <= (c) && (c) <= 'z'))
6301 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6302 #endif
6304 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6306 main ()
6308 int i;
6309 for (i = 0; i < 256; i++)
6310 if (XOR (islower (i), ISLOWER (i))
6311 || toupper (i) != TOUPPER (i))
6312 return 2;
6313 return 0;
6315 _ACEOF
6316 if ac_fn_c_try_run "$LINENO"; then :
6318 else
6319 ac_cv_header_stdc=no
6321 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6322 conftest.$ac_objext conftest.beam conftest.$ac_ext
6327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6328 $as_echo "$ac_cv_header_stdc" >&6; }
6329 if test $ac_cv_header_stdc = yes; then
6331 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6335 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6336 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6337 inttypes.h stdint.h unistd.h
6338 do :
6339 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6340 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6342 eval as_val=\$$as_ac_Header
6343 if test "x$as_val" = x""yes; then :
6344 cat >>confdefs.h <<_ACEOF
6345 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6346 _ACEOF
6350 done
6356 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6357 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
6358 MINIX=yes
6359 else
6360 MINIX=
6364 if test "$MINIX" = yes; then
6366 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6369 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6372 $as_echo "#define _MINIX 1" >>confdefs.h
6376 case "$host_os" in
6377 hpux*)
6379 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
6382 esac
6385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6386 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6387 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
6388 $as_echo_n "(cached) " >&6
6389 else
6390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6391 /* end confdefs.h. */
6393 # define __EXTENSIONS__ 1
6394 $ac_includes_default
6396 main ()
6400 return 0;
6402 _ACEOF
6403 if ac_fn_c_try_compile "$LINENO"; then :
6404 ac_cv_safe_to_define___extensions__=yes
6405 else
6406 ac_cv_safe_to_define___extensions__=no
6408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6411 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6412 test $ac_cv_safe_to_define___extensions__ = yes &&
6413 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6415 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6417 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
6419 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6421 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6423 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6432 # Check whether --enable-largefile was given.
6433 if test "${enable_largefile+set}" = set; then :
6434 enableval=$enable_largefile;
6437 if test "$enable_largefile" != no; then
6439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6440 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6441 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
6442 $as_echo_n "(cached) " >&6
6443 else
6444 ac_cv_sys_largefile_CC=no
6445 if test "$GCC" != yes; then
6446 ac_save_CC=$CC
6447 while :; do
6448 # IRIX 6.2 and later do not support large files by default,
6449 # so use the C compiler's -n32 option if that helps.
6450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6451 /* end confdefs.h. */
6452 #include <sys/types.h>
6453 /* Check that off_t can represent 2**63 - 1 correctly.
6454 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6455 since some C++ compilers masquerading as C compilers
6456 incorrectly reject 9223372036854775807. */
6457 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6458 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6459 && LARGE_OFF_T % 2147483647 == 1)
6460 ? 1 : -1];
6462 main ()
6466 return 0;
6468 _ACEOF
6469 if ac_fn_c_try_compile "$LINENO"; then :
6470 break
6472 rm -f core conftest.err conftest.$ac_objext
6473 CC="$CC -n32"
6474 if ac_fn_c_try_compile "$LINENO"; then :
6475 ac_cv_sys_largefile_CC=' -n32'; break
6477 rm -f core conftest.err conftest.$ac_objext
6478 break
6479 done
6480 CC=$ac_save_CC
6481 rm -f conftest.$ac_ext
6484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6485 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6486 if test "$ac_cv_sys_largefile_CC" != no; then
6487 CC=$CC$ac_cv_sys_largefile_CC
6490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6491 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6492 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
6493 $as_echo_n "(cached) " >&6
6494 else
6495 while :; do
6496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6497 /* end confdefs.h. */
6498 #include <sys/types.h>
6499 /* Check that off_t can represent 2**63 - 1 correctly.
6500 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6501 since some C++ compilers masquerading as C compilers
6502 incorrectly reject 9223372036854775807. */
6503 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6504 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6505 && LARGE_OFF_T % 2147483647 == 1)
6506 ? 1 : -1];
6508 main ()
6512 return 0;
6514 _ACEOF
6515 if ac_fn_c_try_compile "$LINENO"; then :
6516 ac_cv_sys_file_offset_bits=no; break
6518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6520 /* end confdefs.h. */
6521 #define _FILE_OFFSET_BITS 64
6522 #include <sys/types.h>
6523 /* Check that off_t can represent 2**63 - 1 correctly.
6524 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6525 since some C++ compilers masquerading as C compilers
6526 incorrectly reject 9223372036854775807. */
6527 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6528 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6529 && LARGE_OFF_T % 2147483647 == 1)
6530 ? 1 : -1];
6532 main ()
6536 return 0;
6538 _ACEOF
6539 if ac_fn_c_try_compile "$LINENO"; then :
6540 ac_cv_sys_file_offset_bits=64; break
6542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6543 ac_cv_sys_file_offset_bits=unknown
6544 break
6545 done
6547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6548 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6549 case $ac_cv_sys_file_offset_bits in #(
6550 no | unknown) ;;
6552 cat >>confdefs.h <<_ACEOF
6553 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6554 _ACEOF
6556 esac
6557 rm -rf conftest*
6558 if test $ac_cv_sys_file_offset_bits = unknown; then
6559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6560 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6561 if test "${ac_cv_sys_large_files+set}" = set; then :
6562 $as_echo_n "(cached) " >&6
6563 else
6564 while :; do
6565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6566 /* end confdefs.h. */
6567 #include <sys/types.h>
6568 /* Check that off_t can represent 2**63 - 1 correctly.
6569 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6570 since some C++ compilers masquerading as C compilers
6571 incorrectly reject 9223372036854775807. */
6572 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6573 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6574 && LARGE_OFF_T % 2147483647 == 1)
6575 ? 1 : -1];
6577 main ()
6581 return 0;
6583 _ACEOF
6584 if ac_fn_c_try_compile "$LINENO"; then :
6585 ac_cv_sys_large_files=no; break
6587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6589 /* end confdefs.h. */
6590 #define _LARGE_FILES 1
6591 #include <sys/types.h>
6592 /* Check that off_t can represent 2**63 - 1 correctly.
6593 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6594 since some C++ compilers masquerading as C compilers
6595 incorrectly reject 9223372036854775807. */
6596 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6597 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6598 && LARGE_OFF_T % 2147483647 == 1)
6599 ? 1 : -1];
6601 main ()
6605 return 0;
6607 _ACEOF
6608 if ac_fn_c_try_compile "$LINENO"; then :
6609 ac_cv_sys_large_files=1; break
6611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6612 ac_cv_sys_large_files=unknown
6613 break
6614 done
6616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6617 $as_echo "$ac_cv_sys_large_files" >&6; }
6618 case $ac_cv_sys_large_files in #(
6619 no | unknown) ;;
6621 cat >>confdefs.h <<_ACEOF
6622 #define _LARGE_FILES $ac_cv_sys_large_files
6623 _ACEOF
6625 esac
6626 rm -rf conftest*
6632 case $ac_cv_prog_cc_stdc in #(
6633 no) :
6634 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6635 *) :
6636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
6637 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
6638 if test "${ac_cv_prog_cc_c99+set}" = set; then :
6639 $as_echo_n "(cached) " >&6
6640 else
6641 ac_cv_prog_cc_c99=no
6642 ac_save_CC=$CC
6643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6644 /* end confdefs.h. */
6645 #include <stdarg.h>
6646 #include <stdbool.h>
6647 #include <stdlib.h>
6648 #include <wchar.h>
6649 #include <stdio.h>
6651 // Check varargs macros. These examples are taken from C99 6.10.3.5.
6652 #define debug(...) fprintf (stderr, __VA_ARGS__)
6653 #define showlist(...) puts (#__VA_ARGS__)
6654 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6655 static void
6656 test_varargs_macros (void)
6658 int x = 1234;
6659 int y = 5678;
6660 debug ("Flag");
6661 debug ("X = %d\n", x);
6662 showlist (The first, second, and third items.);
6663 report (x>y, "x is %d but y is %d", x, y);
6666 // Check long long types.
6667 #define BIG64 18446744073709551615ull
6668 #define BIG32 4294967295ul
6669 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6670 #if !BIG_OK
6671 your preprocessor is broken;
6672 #endif
6673 #if BIG_OK
6674 #else
6675 your preprocessor is broken;
6676 #endif
6677 static long long int bignum = -9223372036854775807LL;
6678 static unsigned long long int ubignum = BIG64;
6680 struct incomplete_array
6682 int datasize;
6683 double data[];
6686 struct named_init {
6687 int number;
6688 const wchar_t *name;
6689 double average;
6692 typedef const char *ccp;
6694 static inline int
6695 test_restrict (ccp restrict text)
6697 // See if C++-style comments work.
6698 // Iterate through items via the restricted pointer.
6699 // Also check for declarations in for loops.
6700 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6701 continue;
6702 return 0;
6705 // Check varargs and va_copy.
6706 static void
6707 test_varargs (const char *format, ...)
6709 va_list args;
6710 va_start (args, format);
6711 va_list args_copy;
6712 va_copy (args_copy, args);
6714 const char *str;
6715 int number;
6716 float fnumber;
6718 while (*format)
6720 switch (*format++)
6722 case 's': // string
6723 str = va_arg (args_copy, const char *);
6724 break;
6725 case 'd': // int
6726 number = va_arg (args_copy, int);
6727 break;
6728 case 'f': // float
6729 fnumber = va_arg (args_copy, double);
6730 break;
6731 default:
6732 break;
6735 va_end (args_copy);
6736 va_end (args);
6740 main ()
6743 // Check bool.
6744 _Bool success = false;
6746 // Check restrict.
6747 if (test_restrict ("String literal") == 0)
6748 success = true;
6749 char *restrict newvar = "Another string";
6751 // Check varargs.
6752 test_varargs ("s, d' f .", "string", 65, 34.234);
6753 test_varargs_macros ();
6755 // Check flexible array members.
6756 struct incomplete_array *ia =
6757 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6758 ia->datasize = 10;
6759 for (int i = 0; i < ia->datasize; ++i)
6760 ia->data[i] = i * 1.234;
6762 // Check named initializers.
6763 struct named_init ni = {
6764 .number = 34,
6765 .name = L"Test wide string",
6766 .average = 543.34343,
6769 ni.number = 58;
6771 int dynamic_array[ni.number];
6772 dynamic_array[ni.number - 1] = 543;
6774 // work around unused variable warnings
6775 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6776 || dynamic_array[ni.number - 1] != 543);
6779 return 0;
6781 _ACEOF
6782 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
6784 CC="$ac_save_CC $ac_arg"
6785 if ac_fn_c_try_compile "$LINENO"; then :
6786 ac_cv_prog_cc_c99=$ac_arg
6788 rm -f core conftest.err conftest.$ac_objext
6789 test "x$ac_cv_prog_cc_c99" != "xno" && break
6790 done
6791 rm -f conftest.$ac_ext
6792 CC=$ac_save_CC
6795 # AC_CACHE_VAL
6796 case "x$ac_cv_prog_cc_c99" in
6798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6799 $as_echo "none needed" >&6; } ;;
6800 xno)
6801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6802 $as_echo "unsupported" >&6; } ;;
6804 CC="$CC $ac_cv_prog_cc_c99"
6805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
6806 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6807 esac
6808 if test "x$ac_cv_prog_cc_c99" != xno; then :
6809 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
6810 else
6811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6812 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6813 if test "${ac_cv_prog_cc_c89+set}" = set; then :
6814 $as_echo_n "(cached) " >&6
6815 else
6816 ac_cv_prog_cc_c89=no
6817 ac_save_CC=$CC
6818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6819 /* end confdefs.h. */
6820 #include <stdarg.h>
6821 #include <stdio.h>
6822 #include <sys/types.h>
6823 #include <sys/stat.h>
6824 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6825 struct buf { int x; };
6826 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6827 static char *e (p, i)
6828 char **p;
6829 int i;
6831 return p[i];
6833 static char *f (char * (*g) (char **, int), char **p, ...)
6835 char *s;
6836 va_list v;
6837 va_start (v,p);
6838 s = g (p, va_arg (v,int));
6839 va_end (v);
6840 return s;
6843 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6844 function prototypes and stuff, but not '\xHH' hex character constants.
6845 These don't provoke an error unfortunately, instead are silently treated
6846 as 'x'. The following induces an error, until -std is added to get
6847 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6848 array size at least. It's necessary to write '\x00'==0 to get something
6849 that's true only with -std. */
6850 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6852 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6853 inside strings and character constants. */
6854 #define FOO(x) 'x'
6855 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6857 int test (int i, double x);
6858 struct s1 {int (*f) (int a);};
6859 struct s2 {int (*f) (double a);};
6860 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6861 int argc;
6862 char **argv;
6864 main ()
6866 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6868 return 0;
6870 _ACEOF
6871 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6872 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6874 CC="$ac_save_CC $ac_arg"
6875 if ac_fn_c_try_compile "$LINENO"; then :
6876 ac_cv_prog_cc_c89=$ac_arg
6878 rm -f core conftest.err conftest.$ac_objext
6879 test "x$ac_cv_prog_cc_c89" != "xno" && break
6880 done
6881 rm -f conftest.$ac_ext
6882 CC=$ac_save_CC
6885 # AC_CACHE_VAL
6886 case "x$ac_cv_prog_cc_c89" in
6888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6889 $as_echo "none needed" >&6; } ;;
6890 xno)
6891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6892 $as_echo "unsupported" >&6; } ;;
6894 CC="$CC $ac_cv_prog_cc_c89"
6895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6896 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6897 esac
6898 if test "x$ac_cv_prog_cc_c89" != xno; then :
6899 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
6900 else
6901 ac_cv_prog_cc_stdc=no
6906 esac
6907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
6908 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
6909 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
6910 $as_echo_n "(cached) " >&6
6913 case $ac_cv_prog_cc_stdc in #(
6914 no) :
6915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6916 $as_echo "unsupported" >&6; } ;; #(
6917 '') :
6918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6919 $as_echo "none needed" >&6; } ;; #(
6920 *) :
6921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
6922 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
6923 esac
6927 # Code from module alloca-opt:
6928 # Code from module allocator:
6929 # Code from module careadlinkat:
6930 # Code from module crypto/md5:
6931 # Code from module crypto/sha1:
6932 # Code from module crypto/sha256:
6933 # Code from module crypto/sha512:
6934 # Code from module dosname:
6935 # Code from module dtoastr:
6936 # Code from module dup2:
6937 # Code from module extensions:
6939 # Code from module filemode:
6940 # Code from module getloadavg:
6941 # Code from module getopt-gnu:
6942 # Code from module getopt-posix:
6943 # Code from module gettext-h:
6944 # Code from module ignore-value:
6945 # Code from module include_next:
6946 # Code from module intprops:
6947 # Code from module inttypes-incomplete:
6948 # Code from module largefile:
6950 # Code from module lstat:
6951 # Code from module manywarnings:
6952 # Code from module mktime:
6953 # Code from module multiarch:
6954 # Code from module nocrash:
6955 # Code from module pathmax:
6956 # Code from module pthread_sigmask:
6957 # Code from module readlink:
6958 # Code from module signal-h:
6959 # Code from module sigprocmask:
6960 # Code from module snippet/_Noreturn:
6961 # Code from module snippet/arg-nonnull:
6962 # Code from module snippet/c++defs:
6963 # Code from module snippet/warn-on-use:
6964 # Code from module socklen:
6965 # Code from module ssize_t:
6966 # Code from module stat:
6967 # Code from module stdalign:
6968 # Code from module stdarg:
6972 # Code from module stdbool:
6973 # Code from module stddef:
6974 # Code from module stdint:
6975 # Code from module stdio:
6976 # Code from module stdlib:
6977 # Code from module strftime:
6978 # Code from module strtoimax:
6979 # Code from module strtoll:
6980 # Code from module strtoull:
6981 # Code from module strtoumax:
6982 # Code from module symlink:
6983 # Code from module sys_stat:
6984 # Code from module sys_types:
6985 # Code from module time:
6986 # Code from module time_r:
6987 # Code from module u64:
6988 # Code from module unistd:
6989 # Code from module verify:
6990 # Code from module warnings:
6993 # Check whether --enable-gcc-warnings was given.
6994 if test "${enable_gcc_warnings+set}" = set; then :
6995 enableval=$enable_gcc_warnings; case $enableval in
6996 yes|no) ;;
6997 *) as_fn_error "bad value $enableval for gcc-warnings option" "$LINENO" 5 ;;
6998 esac
6999 gl_gcc_warnings=$enableval
7000 else
7001 gl_gcc_warnings=no
7006 # gl_GCC_VERSION_IFELSE([major], [minor], [run-if-found], [run-if-not-found])
7007 # ------------------------------------------------
7008 # If $CPP is gcc-MAJOR.MINOR or newer, then run RUN-IF-FOUND.
7009 # Otherwise, run RUN-IF-NOT-FOUND.
7012 # When compiling with GCC, prefer -isystem to -I when including system
7013 # include files, to avoid generating useless diagnostics for the files.
7014 if test "$gl_gcc_warnings" != yes; then
7015 isystem='-I'
7016 else
7017 isystem='-isystem '
7019 # This, $nw, is the list of warnings we disable.
7022 case $with_x_toolkit in
7023 lucid | athena | motif)
7024 # Old toolkits mishandle 'const'.
7025 nw="$nw -Wwrite-strings"
7028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Werror" >&5
7029 $as_echo_n "checking whether C compiler handles -Werror... " >&6; }
7030 if test "${gl_cv_warn_c__Werror+set}" = set; then :
7031 $as_echo_n "(cached) " >&6
7032 else
7034 gl_save_compiler_FLAGS="$CFLAGS"
7035 as_fn_append CFLAGS " -Werror"
7036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7037 /* end confdefs.h. */
7040 main ()
7044 return 0;
7046 _ACEOF
7047 if ac_fn_c_try_compile "$LINENO"; then :
7048 gl_cv_warn_c__Werror=yes
7049 else
7050 gl_cv_warn_c__Werror=no
7052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7053 CFLAGS="$gl_save_compiler_FLAGS"
7056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Werror" >&5
7057 $as_echo "$gl_cv_warn_c__Werror" >&6; }
7058 if test "x$gl_cv_warn_c__Werror" = x""yes; then :
7059 as_fn_append WERROR_CFLAGS " -Werror"
7064 esac
7067 nw="$nw -Waggregate-return" # anachronistic
7068 nw="$nw -Wlong-long" # C90 is anachronistic
7069 nw="$nw -Wc++-compat" # We don't care about C++ compilers
7070 nw="$nw -Wundef" # Warns on '#if GNULIB_FOO' etc in gnulib
7071 nw="$nw -Wtraditional" # Warns on #elif which we use often
7072 nw="$nw -Wcast-qual" # Too many warnings for now
7073 nw="$nw -Wconversion" # Too many warnings for now
7074 nw="$nw -Wsystem-headers" # Don't let system headers trigger warnings
7075 nw="$nw -Wsign-conversion" # Too many warnings for now
7076 nw="$nw -Woverlength-strings" # Not a problem these days
7077 nw="$nw -Wtraditional-conversion" # Too many warnings for now
7078 nw="$nw -Wpadded" # Our structs are not padded
7079 nw="$nw -Wredundant-decls" # We regularly (re)declare getenv etc.
7080 nw="$nw -Wlogical-op" # any use of fwrite provokes this
7081 nw="$nw -Wformat-nonliteral" # Emacs does this a lot
7082 nw="$nw -Wvla" # warnings in gettext.h
7083 nw="$nw -Wnested-externs" # use of XARGMATCH/verify_function__
7084 nw="$nw -Wswitch-enum" # Too many warnings for now
7085 nw="$nw -Wswitch-default" # Too many warnings for now
7086 nw="$nw -Wfloat-equal" # e.g., ftoastr.c
7087 nw="$nw -Winline" # e.g., dispnew.c's inlining of row_equal_p
7089 # Emacs doesn't care about shadowing; see
7090 # <http://lists.gnu.org/archive/html/emacs-diffs/2011-11/msg00265.html>.
7091 nw="$nw -Wshadow"
7093 # The following lines should be removable at some point.
7094 nw="$nw -Wstack-protector"
7095 nw="$nw -Wstrict-overflow"
7096 nw="$nw -Wsuggest-attribute=const"
7097 nw="$nw -Wsuggest-attribute=pure"
7101 if test -n "$GCC"; then
7103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is supported" >&5
7104 $as_echo_n "checking whether -Wno-missing-field-initializers is supported... " >&6; }
7105 if test "${gl_cv_cc_nomfi_supported+set}" = set; then :
7106 $as_echo_n "(cached) " >&6
7107 else
7109 gl_save_CFLAGS="$CFLAGS"
7110 CFLAGS="$CFLAGS -W -Werror -Wno-missing-field-initializers"
7111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7112 /* end confdefs.h. */
7115 main ()
7119 return 0;
7121 _ACEOF
7122 if ac_fn_c_try_compile "$LINENO"; then :
7123 gl_cv_cc_nomfi_supported=yes
7124 else
7125 gl_cv_cc_nomfi_supported=no
7127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7128 CFLAGS="$gl_save_CFLAGS"
7131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_supported" >&5
7132 $as_echo "$gl_cv_cc_nomfi_supported" >&6; }
7134 if test "$gl_cv_cc_nomfi_supported" = yes; then
7135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is needed" >&5
7136 $as_echo_n "checking whether -Wno-missing-field-initializers is needed... " >&6; }
7137 if test "${gl_cv_cc_nomfi_needed+set}" = set; then :
7138 $as_echo_n "(cached) " >&6
7139 else
7141 gl_save_CFLAGS="$CFLAGS"
7142 CFLAGS="$CFLAGS -W -Werror"
7143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7144 /* end confdefs.h. */
7145 void f (void)
7147 typedef struct { int a; int b; } s_t;
7148 s_t s1 = { 0, };
7152 main ()
7156 return 0;
7158 _ACEOF
7159 if ac_fn_c_try_compile "$LINENO"; then :
7160 gl_cv_cc_nomfi_needed=no
7161 else
7162 gl_cv_cc_nomfi_needed=yes
7164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7165 CFLAGS="$gl_save_CFLAGS"
7169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_needed" >&5
7170 $as_echo "$gl_cv_cc_nomfi_needed" >&6; }
7174 gl_manywarn_set=
7175 for gl_manywarn_item in \
7176 -Wall \
7177 -W \
7178 -Wformat-y2k \
7179 -Wformat-nonliteral \
7180 -Wformat-security \
7181 -Winit-self \
7182 -Wmissing-include-dirs \
7183 -Wswitch-default \
7184 -Wswitch-enum \
7185 -Wunused \
7186 -Wunknown-pragmas \
7187 -Wstrict-aliasing \
7188 -Wstrict-overflow \
7189 -Wsystem-headers \
7190 -Wfloat-equal \
7191 -Wtraditional \
7192 -Wtraditional-conversion \
7193 -Wdeclaration-after-statement \
7194 -Wundef \
7195 -Wshadow \
7196 -Wunsafe-loop-optimizations \
7197 -Wpointer-arith \
7198 -Wbad-function-cast \
7199 -Wc++-compat \
7200 -Wcast-qual \
7201 -Wcast-align \
7202 -Wwrite-strings \
7203 -Wconversion \
7204 -Wsign-conversion \
7205 -Wlogical-op \
7206 -Waggregate-return \
7207 -Wstrict-prototypes \
7208 -Wold-style-definition \
7209 -Wmissing-prototypes \
7210 -Wmissing-declarations \
7211 -Wmissing-noreturn \
7212 -Wmissing-format-attribute \
7213 -Wpacked \
7214 -Wpadded \
7215 -Wredundant-decls \
7216 -Wnested-externs \
7217 -Wunreachable-code \
7218 -Winline \
7219 -Winvalid-pch \
7220 -Wlong-long \
7221 -Wvla \
7222 -Wvolatile-register-var \
7223 -Wdisabled-optimization \
7224 -Wstack-protector \
7225 -Woverlength-strings \
7226 -Wbuiltin-macro-redefined \
7227 -Wmudflap \
7228 -Wpacked-bitfield-compat \
7229 -Wsync-nand \
7230 ; do
7231 gl_manywarn_set="$gl_manywarn_set $gl_manywarn_item"
7232 done
7233 # The following are not documented in the manual but are included in
7234 # output from gcc --help=warnings.
7235 for gl_manywarn_item in \
7236 -Wattributes \
7237 -Wcoverage-mismatch \
7238 -Wunused-macros \
7239 ; do
7240 gl_manywarn_set="$gl_manywarn_set $gl_manywarn_item"
7241 done
7242 # More warnings from gcc 4.6.2 --help=warnings.
7243 for gl_manywarn_item in \
7244 -Wabi \
7245 -Wcpp \
7246 -Wdeprecated \
7247 -Wdeprecated-declarations \
7248 -Wdiv-by-zero \
7249 -Wdouble-promotion \
7250 -Wendif-labels \
7251 -Wextra \
7252 -Wformat-contains-nul \
7253 -Wformat-extra-args \
7254 -Wformat-zero-length \
7255 -Wformat=2 \
7256 -Wmultichar \
7257 -Wnormalized=nfc \
7258 -Woverflow \
7259 -Wpointer-to-int-cast \
7260 -Wpragmas \
7261 -Wsuggest-attribute=const \
7262 -Wsuggest-attribute=noreturn \
7263 -Wsuggest-attribute=pure \
7264 -Wtrampolines \
7265 ; do
7266 gl_manywarn_set="$gl_manywarn_set $gl_manywarn_item"
7267 done
7269 # Disable the missing-field-initializers warning if needed
7270 if test "$gl_cv_cc_nomfi_needed" = yes; then
7271 gl_manywarn_set="$gl_manywarn_set -Wno-missing-field-initializers"
7274 ws=$gl_manywarn_set
7277 gl_warn_set=
7278 set x $ws; shift
7279 for gl_warn_item
7281 case " $nw " in
7282 *" $gl_warn_item "*)
7285 gl_warn_set="$gl_warn_set $gl_warn_item"
7287 esac
7288 done
7289 ws=$gl_warn_set
7291 for w in $ws; do
7292 as_gl_Warn=`$as_echo "gl_cv_warn_c_$w" | $as_tr_sh`
7293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles $w" >&5
7294 $as_echo_n "checking whether C compiler handles $w... " >&6; }
7295 if { as_var=$as_gl_Warn; eval "test \"\${$as_var+set}\" = set"; }; then :
7296 $as_echo_n "(cached) " >&6
7297 else
7299 gl_save_compiler_FLAGS="$CFLAGS"
7300 as_fn_append CFLAGS " $w"
7301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7302 /* end confdefs.h. */
7305 main ()
7309 return 0;
7311 _ACEOF
7312 if ac_fn_c_try_compile "$LINENO"; then :
7313 eval "$as_gl_Warn=yes"
7314 else
7315 eval "$as_gl_Warn=no"
7317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7318 CFLAGS="$gl_save_compiler_FLAGS"
7321 eval ac_res=\$$as_gl_Warn
7322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7323 $as_echo "$ac_res" >&6; }
7324 eval as_val=\$$as_gl_Warn
7325 if test "x$as_val" = x""yes; then :
7326 as_fn_append WARN_CFLAGS " $w"
7330 done
7331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-missing-field-initializers" >&5
7332 $as_echo_n "checking whether C compiler handles -Wno-missing-field-initializers... " >&6; }
7333 if test "${gl_cv_warn_c__Wno_missing_field_initializers+set}" = set; then :
7334 $as_echo_n "(cached) " >&6
7335 else
7337 gl_save_compiler_FLAGS="$CFLAGS"
7338 as_fn_append CFLAGS " -Wno-missing-field-initializers"
7339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7340 /* end confdefs.h. */
7343 main ()
7347 return 0;
7349 _ACEOF
7350 if ac_fn_c_try_compile "$LINENO"; then :
7351 gl_cv_warn_c__Wno_missing_field_initializers=yes
7352 else
7353 gl_cv_warn_c__Wno_missing_field_initializers=no
7355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7356 CFLAGS="$gl_save_compiler_FLAGS"
7359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_missing_field_initializers" >&5
7360 $as_echo "$gl_cv_warn_c__Wno_missing_field_initializers" >&6; }
7361 if test "x$gl_cv_warn_c__Wno_missing_field_initializers" = x""yes; then :
7362 as_fn_append WARN_CFLAGS " -Wno-missing-field-initializers"
7365 # We need this one
7366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-sign-compare" >&5
7367 $as_echo_n "checking whether C compiler handles -Wno-sign-compare... " >&6; }
7368 if test "${gl_cv_warn_c__Wno_sign_compare+set}" = set; then :
7369 $as_echo_n "(cached) " >&6
7370 else
7372 gl_save_compiler_FLAGS="$CFLAGS"
7373 as_fn_append CFLAGS " -Wno-sign-compare"
7374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7375 /* end confdefs.h. */
7378 main ()
7382 return 0;
7384 _ACEOF
7385 if ac_fn_c_try_compile "$LINENO"; then :
7386 gl_cv_warn_c__Wno_sign_compare=yes
7387 else
7388 gl_cv_warn_c__Wno_sign_compare=no
7390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7391 CFLAGS="$gl_save_compiler_FLAGS"
7394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_sign_compare" >&5
7395 $as_echo "$gl_cv_warn_c__Wno_sign_compare" >&6; }
7396 if test "x$gl_cv_warn_c__Wno_sign_compare" = x""yes; then :
7397 as_fn_append WARN_CFLAGS " -Wno-sign-compare"
7400 # Too many warnings for now
7401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-type-limits" >&5
7402 $as_echo_n "checking whether C compiler handles -Wno-type-limits... " >&6; }
7403 if test "${gl_cv_warn_c__Wno_type_limits+set}" = set; then :
7404 $as_echo_n "(cached) " >&6
7405 else
7407 gl_save_compiler_FLAGS="$CFLAGS"
7408 as_fn_append CFLAGS " -Wno-type-limits"
7409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7410 /* end confdefs.h. */
7413 main ()
7417 return 0;
7419 _ACEOF
7420 if ac_fn_c_try_compile "$LINENO"; then :
7421 gl_cv_warn_c__Wno_type_limits=yes
7422 else
7423 gl_cv_warn_c__Wno_type_limits=no
7425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7426 CFLAGS="$gl_save_compiler_FLAGS"
7429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_type_limits" >&5
7430 $as_echo "$gl_cv_warn_c__Wno_type_limits" >&6; }
7431 if test "x$gl_cv_warn_c__Wno_type_limits" = x""yes; then :
7432 as_fn_append WARN_CFLAGS " -Wno-type-limits"
7435 # Too many warnings for now
7436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-switch" >&5
7437 $as_echo_n "checking whether C compiler handles -Wno-switch... " >&6; }
7438 if test "${gl_cv_warn_c__Wno_switch+set}" = set; then :
7439 $as_echo_n "(cached) " >&6
7440 else
7442 gl_save_compiler_FLAGS="$CFLAGS"
7443 as_fn_append CFLAGS " -Wno-switch"
7444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7445 /* end confdefs.h. */
7448 main ()
7452 return 0;
7454 _ACEOF
7455 if ac_fn_c_try_compile "$LINENO"; then :
7456 gl_cv_warn_c__Wno_switch=yes
7457 else
7458 gl_cv_warn_c__Wno_switch=no
7460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7461 CFLAGS="$gl_save_compiler_FLAGS"
7464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_switch" >&5
7465 $as_echo "$gl_cv_warn_c__Wno_switch" >&6; }
7466 if test "x$gl_cv_warn_c__Wno_switch" = x""yes; then :
7467 as_fn_append WARN_CFLAGS " -Wno-switch"
7470 # Too many warnings for now
7471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-unused-parameter" >&5
7472 $as_echo_n "checking whether C compiler handles -Wno-unused-parameter... " >&6; }
7473 if test "${gl_cv_warn_c__Wno_unused_parameter+set}" = set; then :
7474 $as_echo_n "(cached) " >&6
7475 else
7477 gl_save_compiler_FLAGS="$CFLAGS"
7478 as_fn_append CFLAGS " -Wno-unused-parameter"
7479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7480 /* end confdefs.h. */
7483 main ()
7487 return 0;
7489 _ACEOF
7490 if ac_fn_c_try_compile "$LINENO"; then :
7491 gl_cv_warn_c__Wno_unused_parameter=yes
7492 else
7493 gl_cv_warn_c__Wno_unused_parameter=no
7495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7496 CFLAGS="$gl_save_compiler_FLAGS"
7499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_unused_parameter" >&5
7500 $as_echo "$gl_cv_warn_c__Wno_unused_parameter" >&6; }
7501 if test "x$gl_cv_warn_c__Wno_unused_parameter" = x""yes; then :
7502 as_fn_append WARN_CFLAGS " -Wno-unused-parameter"
7505 # Too many warnings for now
7506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-format-nonliteral" >&5
7507 $as_echo_n "checking whether C compiler handles -Wno-format-nonliteral... " >&6; }
7508 if test "${gl_cv_warn_c__Wno_format_nonliteral+set}" = set; then :
7509 $as_echo_n "(cached) " >&6
7510 else
7512 gl_save_compiler_FLAGS="$CFLAGS"
7513 as_fn_append CFLAGS " -Wno-format-nonliteral"
7514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7515 /* end confdefs.h. */
7518 main ()
7522 return 0;
7524 _ACEOF
7525 if ac_fn_c_try_compile "$LINENO"; then :
7526 gl_cv_warn_c__Wno_format_nonliteral=yes
7527 else
7528 gl_cv_warn_c__Wno_format_nonliteral=no
7530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7531 CFLAGS="$gl_save_compiler_FLAGS"
7534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_format_nonliteral" >&5
7535 $as_echo "$gl_cv_warn_c__Wno_format_nonliteral" >&6; }
7536 if test "x$gl_cv_warn_c__Wno_format_nonliteral" = x""yes; then :
7537 as_fn_append WARN_CFLAGS " -Wno-format-nonliteral"
7542 # In spite of excluding -Wlogical-op above, it is enabled, as of
7543 # gcc 4.5.0 20090517.
7544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-logical-op" >&5
7545 $as_echo_n "checking whether C compiler handles -Wno-logical-op... " >&6; }
7546 if test "${gl_cv_warn_c__Wno_logical_op+set}" = set; then :
7547 $as_echo_n "(cached) " >&6
7548 else
7550 gl_save_compiler_FLAGS="$CFLAGS"
7551 as_fn_append CFLAGS " -Wno-logical-op"
7552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7553 /* end confdefs.h. */
7556 main ()
7560 return 0;
7562 _ACEOF
7563 if ac_fn_c_try_compile "$LINENO"; then :
7564 gl_cv_warn_c__Wno_logical_op=yes
7565 else
7566 gl_cv_warn_c__Wno_logical_op=no
7568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7569 CFLAGS="$gl_save_compiler_FLAGS"
7572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_logical_op" >&5
7573 $as_echo "$gl_cv_warn_c__Wno_logical_op" >&6; }
7574 if test "x$gl_cv_warn_c__Wno_logical_op" = x""yes; then :
7575 as_fn_append WARN_CFLAGS " -Wno-logical-op"
7580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -fdiagnostics-show-option" >&5
7581 $as_echo_n "checking whether C compiler handles -fdiagnostics-show-option... " >&6; }
7582 if test "${gl_cv_warn_c__fdiagnostics_show_option+set}" = set; then :
7583 $as_echo_n "(cached) " >&6
7584 else
7586 gl_save_compiler_FLAGS="$CFLAGS"
7587 as_fn_append CFLAGS " -fdiagnostics-show-option"
7588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7589 /* end confdefs.h. */
7592 main ()
7596 return 0;
7598 _ACEOF
7599 if ac_fn_c_try_compile "$LINENO"; then :
7600 gl_cv_warn_c__fdiagnostics_show_option=yes
7601 else
7602 gl_cv_warn_c__fdiagnostics_show_option=no
7604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7605 CFLAGS="$gl_save_compiler_FLAGS"
7608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__fdiagnostics_show_option" >&5
7609 $as_echo "$gl_cv_warn_c__fdiagnostics_show_option" >&6; }
7610 if test "x$gl_cv_warn_c__fdiagnostics_show_option" = x""yes; then :
7611 as_fn_append WARN_CFLAGS " -fdiagnostics-show-option"
7615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -funit-at-a-time" >&5
7616 $as_echo_n "checking whether C compiler handles -funit-at-a-time... " >&6; }
7617 if test "${gl_cv_warn_c__funit_at_a_time+set}" = set; then :
7618 $as_echo_n "(cached) " >&6
7619 else
7621 gl_save_compiler_FLAGS="$CFLAGS"
7622 as_fn_append CFLAGS " -funit-at-a-time"
7623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7624 /* end confdefs.h. */
7627 main ()
7631 return 0;
7633 _ACEOF
7634 if ac_fn_c_try_compile "$LINENO"; then :
7635 gl_cv_warn_c__funit_at_a_time=yes
7636 else
7637 gl_cv_warn_c__funit_at_a_time=no
7639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7640 CFLAGS="$gl_save_compiler_FLAGS"
7643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__funit_at_a_time" >&5
7644 $as_echo "$gl_cv_warn_c__funit_at_a_time" >&6; }
7645 if test "x$gl_cv_warn_c__funit_at_a_time" = x""yes; then :
7646 as_fn_append WARN_CFLAGS " -funit-at-a-time"
7652 $as_echo "#define lint 1" >>confdefs.h
7655 $as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
7658 $as_echo "#define GNULIB_PORTCHECK 1" >>confdefs.h
7661 # We use a slightly smaller set of warning options for lib/.
7662 # Remove the following and save the result in GNULIB_WARN_CFLAGS.
7664 nw="$nw -Wunused-macros"
7667 gl_warn_set=
7668 set x $WARN_CFLAGS; shift
7669 for gl_warn_item
7671 case " $nw " in
7672 *" $gl_warn_item "*)
7675 gl_warn_set="$gl_warn_set $gl_warn_item"
7677 esac
7678 done
7679 GNULIB_WARN_CFLAGS=$gl_warn_set
7687 # Extract the first word of "install-info", so it can be a program name with args.
7688 set dummy install-info; ac_word=$2
7689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7690 $as_echo_n "checking for $ac_word... " >&6; }
7691 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
7692 $as_echo_n "(cached) " >&6
7693 else
7694 case $INSTALL_INFO in
7695 [\\/]* | ?:[\\/]*)
7696 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
7699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7700 for as_dir in $PATH$PATH_SEPARATOR/usr/sbin$PATH_SEPARATOR/sbin
7702 IFS=$as_save_IFS
7703 test -z "$as_dir" && as_dir=.
7704 for ac_exec_ext in '' $ac_executable_extensions; do
7705 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7706 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
7707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7708 break 2
7710 done
7711 done
7712 IFS=$as_save_IFS
7714 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
7716 esac
7718 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
7719 if test -n "$INSTALL_INFO"; then
7720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
7721 $as_echo "$INSTALL_INFO" >&6; }
7722 else
7723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7724 $as_echo "no" >&6; }
7728 # Extract the first word of "gzip", so it can be a program name with args.
7729 set dummy gzip; ac_word=$2
7730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7731 $as_echo_n "checking for $ac_word... " >&6; }
7732 if test "${ac_cv_path_GZIP_PROG+set}" = set; then :
7733 $as_echo_n "(cached) " >&6
7734 else
7735 case $GZIP_PROG in
7736 [\\/]* | ?:[\\/]*)
7737 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
7740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7741 for as_dir in $PATH
7743 IFS=$as_save_IFS
7744 test -z "$as_dir" && as_dir=.
7745 for ac_exec_ext in '' $ac_executable_extensions; do
7746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7747 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
7748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7749 break 2
7751 done
7752 done
7753 IFS=$as_save_IFS
7756 esac
7758 GZIP_PROG=$ac_cv_path_GZIP_PROG
7759 if test -n "$GZIP_PROG"; then
7760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
7761 $as_echo "$GZIP_PROG" >&6; }
7762 else
7763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7764 $as_echo "no" >&6; }
7770 ## Need makeinfo >= 4.7 (?) to build the manuals.
7771 # Extract the first word of "makeinfo", so it can be a program name with args.
7772 set dummy makeinfo; ac_word=$2
7773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7774 $as_echo_n "checking for $ac_word... " >&6; }
7775 if test "${ac_cv_path_MAKEINFO+set}" = set; then :
7776 $as_echo_n "(cached) " >&6
7777 else
7778 case $MAKEINFO in
7779 [\\/]* | ?:[\\/]*)
7780 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
7783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7784 for as_dir in $PATH
7786 IFS=$as_save_IFS
7787 test -z "$as_dir" && as_dir=.
7788 for ac_exec_ext in '' $ac_executable_extensions; do
7789 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7790 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
7791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7792 break 2
7794 done
7795 done
7796 IFS=$as_save_IFS
7798 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
7800 esac
7802 MAKEINFO=$ac_cv_path_MAKEINFO
7803 if test -n "$MAKEINFO"; then
7804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7805 $as_echo "$MAKEINFO" >&6; }
7806 else
7807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7808 $as_echo "no" >&6; }
7812 if test "$MAKEINFO" != "no" && \
7813 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
7814 MAKEINFO=no
7817 ## Makeinfo is unusual. For a released Emacs, the manuals are
7818 ## pre-built, and not deleted by the normal clean rules. makeinfo is
7819 ## therefore in the category of "special tools" not normally required, which
7820 ## configure does not have to check for (eg autoconf itself).
7821 ## In a Bazaar checkout on the other hand, the manuals are not included.
7822 ## So makeinfo is a requirement to build from Bazaar, and configure
7823 ## should test for it as it does for any other build requirement.
7824 ## We use the presence of $srcdir/info/emacs to distinguish a release,
7825 ## with pre-built manuals, from a Bazaar checkout.
7826 HAVE_MAKEINFO=yes
7828 if test "$MAKEINFO" = "no"; then
7829 MAKEINFO=makeinfo
7830 if test "x${with_makeinfo}" = "xno"; then
7831 HAVE_MAKEINFO=no
7832 elif test ! -e $srcdir/info/emacs; then
7833 as_fn_error "You do not seem to have makeinfo >= 4.7, and your
7834 source tree does not seem to have pre-built manuals in the \`info' directory.
7835 Either install a suitable version of makeinfo, or re-run configure
7836 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
7841 INFO_EXT=.info
7842 INFO_OPTS=--no-split
7847 if test x$GCC = xyes; then
7848 test "x$GCC_LINK_TEST_OPTIONS" != x && \
7849 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
7850 else
7851 test "x$NON_GCC_LINK_TEST_OPTIONS" != x && \
7852 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
7856 late_LDFLAGS=$LDFLAGS
7857 if test x$GCC = xyes; then
7858 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
7859 else
7860 LDFLAGS="$LDFLAGS -znocombreloc"
7863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
7864 $as_echo_n "checking for -znocombreloc... " >&6; }
7865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7866 /* end confdefs.h. */
7869 main ()
7873 return 0;
7875 _ACEOF
7876 if ac_fn_c_try_link "$LINENO"; then :
7877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7878 $as_echo "yes" >&6; }
7879 else
7880 LDFLAGS=$late_LDFLAGS
7881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7882 $as_echo "no" >&6; }
7884 rm -f core conftest.err conftest.$ac_objext \
7885 conftest$ac_exeext conftest.$ac_ext
7888 test "x$CANNOT_DUMP" = "x" && CANNOT_DUMP=no
7889 case "$opsys" in
7890 your-opsys-here) CANNOT_DUMP=yes ;;
7891 esac
7893 test "$CANNOT_DUMP" = "yes" && \
7895 $as_echo "#define CANNOT_DUMP 1" >>confdefs.h
7901 UNEXEC_OBJ=unexelf.o
7902 case "$opsys" in
7903 # MSDOS uses unexcoff.o
7904 # MSWindows uses unexw32.o
7905 aix4-2)
7906 UNEXEC_OBJ=unexaix.o
7908 cygwin)
7909 UNEXEC_OBJ=unexcw.o
7911 darwin)
7912 UNEXEC_OBJ=unexmacosx.o
7914 hpux10-20 | hpux11)
7915 UNEXEC_OBJ=unexhp9k800.o
7917 sol2-10)
7918 # Use the Solaris dldump() function, called from unexsol.c, to dump
7919 # emacs, instead of the generic ELF dump code found in unexelf.c.
7920 # The resulting binary has a complete symbol table, and is better
7921 # for debugging and other observability tools (debuggers, pstack, etc).
7923 # If you encounter a problem using dldump(), please consider sending
7924 # a message to the OpenSolaris tools-linking mailing list:
7925 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
7927 # It is likely that dldump() works with older Solaris too, but this has
7928 # not been tested, so for now this change is for Solaris 10 or newer.
7929 UNEXEC_OBJ=unexsol.o
7931 esac
7933 LD_SWITCH_SYSTEM=
7934 case "$opsys" in
7935 freebsd)
7936 ## Let `ld' find image libs and similar things in /usr/local/lib.
7937 ## The system compiler, GCC, has apparently been modified to not
7938 ## look there, contrary to what a stock GCC would do.
7939 ### It's not our place to do this. See bug#10313#17.
7940 ### LD_SWITCH_SYSTEM=-L/usr/local/lib
7944 gnu-linux)
7945 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
7946 case $host_cpu in mips*) LD_SWITCH_SYSTEM="-G 0";; esac
7949 netbsd)
7950 ### It's not our place to do this. See bug#10313#17.
7951 ### LD_SWITCH_SYSTEM="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
7955 openbsd)
7956 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
7957 ## otherwise Emacs dumps core on elf systems.
7958 LD_SWITCH_SYSTEM="-Z"
7960 esac
7963 ac_link="$ac_link $LD_SWITCH_SYSTEM"
7965 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_RPATH,
7966 ## which has not been defined yet. When this was handled with cpp,
7967 ## it was expanded to null when configure sourced the s/*.h file.
7968 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
7969 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
7970 ## (or somesuch), but because it is supposed to go at the _front_
7971 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
7972 ## Compare with the gnu-linux case below, which added to the end
7973 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
7974 ## LD_SWITCH_SYSTEM_TEMACS.
7975 case "$opsys" in
7976 netbsd|openbsd)
7977 LD_SWITCH_SYSTEM="\$(LD_SWITCH_X_SITE_RPATH) $LD_SWITCH_SYSTEM" ;;
7978 esac
7981 C_SWITCH_MACHINE=
7982 case $canonical in
7983 alpha*)
7984 ac_fn_c_check_decl "$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
7985 if test "x$ac_cv_have_decl___ELF__" = x""yes; then :
7989 if test "$ac_cv_have_decl___ELF__" = "yes"; then
7990 ## With ELF, make sure that all common symbols get allocated to in the
7991 ## data section. Otherwise, the dump of temacs may miss variables in
7992 ## the shared library that have been initialized. For example, with
7993 ## GNU libc, __malloc_initialized would normally be resolved to the
7994 ## shared library's .bss section, which is fatal.
7995 if test "x$GCC" = "xyes"; then
7996 C_SWITCH_MACHINE="-fno-common"
7997 else
7998 as_fn_error "What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
8000 else
8001 UNEXEC_OBJ=unexalpha.o
8004 esac
8009 C_SWITCH_SYSTEM=
8010 ## Some programs in src produce warnings saying certain subprograms
8011 ## are too complex and need a MAXMEM value greater than 2000 for
8012 ## additional optimization. --nils@exp-math.uni-essen.de
8013 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
8014 C_SWITCH_SYSTEM="-ma -qmaxmem=4000"
8015 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
8016 ## It is redundant in glibc2, since we define _GNU_SOURCE.
8020 LIBS_SYSTEM=
8021 case "$opsys" in
8022 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
8023 aix4-2) LIBS_SYSTEM="-lrts -lIM -liconv" ;;
8025 freebsd) LIBS_SYSTEM="-lutil" ;;
8027 hpux*) LIBS_SYSTEM="-l:libdld.sl" ;;
8029 sol2*) LIBS_SYSTEM="-lsocket -lnsl" ;;
8031 ## Motif needs -lgen.
8032 unixware) LIBS_SYSTEM="-lsocket -lnsl -lelf -lgen" ;;
8033 esac
8037 ### Make sure subsequent tests use flags consistent with the build flags.
8039 if test x"${OVERRIDE_CPPFLAGS}" != x; then
8040 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
8041 else
8042 CPPFLAGS="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
8045 # Suppress obsolescent Autoconf test for size_t; Emacs assumes C89 or better.
8047 # Likewise for obsolescent test for uid_t, gid_t; Emacs assumes them.
8051 LIB_MATH=-lm
8052 LIB_STANDARD=
8053 START_FILES=
8055 case $opsys in
8056 cygwin )
8057 LIB_MATH=
8058 START_FILES='pre-crt0.o'
8060 darwin )
8061 ## Adding -lm confuses the dynamic linker, so omit it.
8062 LIB_MATH=
8063 START_FILES='pre-crt0.o'
8065 freebsd )
8066 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
8067 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
8069 gnu-linux | gnu-kfreebsd )
8070 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
8071 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
8073 hpux10-20 | hpux11 )
8074 LIB_STANDARD=-lc
8075 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o'
8077 netbsd | openbsd )
8078 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
8079 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
8081 esac
8086 crt_files=
8088 for file in x $LIB_STANDARD $START_FILES; do
8089 case "$file" in
8090 *CRT_DIR*) crt_files="$crt_files `echo $file | sed -e 's|.*/||'`" ;;
8091 esac
8092 done
8094 if test "x$crt_files" != x; then
8096 ## If user specified a crt-dir, use that unconditionally.
8097 crt_gcc=no
8099 if test "X$CRT_DIR" = "X"; then
8101 CRT_DIR=/usr/lib # default
8103 case "$canonical" in
8104 x86_64-*-linux-gnu* | s390x-*-linux-gnu*)
8105 ## On x86-64 and s390x GNU/Linux distributions, the standard library
8106 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
8107 ## For anything else (eg /usr/lib32), it is up the user to specify
8108 ## the location (bug#5655).
8109 ## Test for crtn.o, not just the directory, because sometimes the
8110 ## directory exists but does not have the relevant files (bug#1287).
8111 ## FIXME better to test for binary compatibility somehow.
8112 test -e /usr/lib64/crtn.o && CRT_DIR=/usr/lib64
8115 powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*) CRT_DIR=/usr/lib64 ;;
8116 esac
8118 case "$opsys" in
8119 hpux10-20) CRT_DIR=/lib ;;
8120 esac
8122 test "x${GCC}" = xyes && crt_gcc=yes
8124 fi # CRT_DIR = ""
8126 crt_missing=
8128 for file in $crt_files; do
8130 ## If we're using gcc, try to determine it automatically by asking
8131 ## gcc. [If this doesn't work, CRT_DIR will remain at the
8132 ## system-dependent default from above.]
8133 if test $crt_gcc = yes && test ! -e $CRT_DIR/$file; then
8135 crt_file=`$CC --print-file-name=$file 2>/dev/null`
8136 case "$crt_file" in
8137 */*)
8138 CRT_DIR=`$as_dirname -- "$crt_file" ||
8139 $as_expr X"$crt_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8140 X"$crt_file" : 'X\(//\)[^/]' \| \
8141 X"$crt_file" : 'X\(//\)$' \| \
8142 X"$crt_file" : 'X\(/\)' \| . 2>/dev/null ||
8143 $as_echo X"$crt_file" |
8144 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8145 s//\1/
8148 /^X\(\/\/\)[^/].*/{
8149 s//\1/
8152 /^X\(\/\/\)$/{
8153 s//\1/
8156 /^X\(\/\).*/{
8157 s//\1/
8160 s/.*/./; q'`
8162 esac
8165 crt_gcc=no
8167 test -e $CRT_DIR/$file || crt_missing="$crt_missing $file"
8168 done # $crt_files
8170 test "x$crt_missing" = x || \
8171 as_fn_error "Required file(s) not found:$crt_missing
8172 Try using the --with-crt-dir option." "$LINENO" 5
8174 fi # crt_files != ""
8178 case $opsys in
8179 netbsd | openbsd )
8180 if test -f $CRT_DIR/crti.o; then
8182 test -f $CRT_DIR/crtn.o || \
8183 as_fn_error "Required file not found: crtn.o" "$LINENO" 5
8185 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
8186 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
8189 esac
8192 # Extract the first word of "pkg-config", so it can be a program name with args.
8193 set dummy pkg-config; ac_word=$2
8194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8195 $as_echo_n "checking for $ac_word... " >&6; }
8196 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8197 $as_echo_n "(cached) " >&6
8198 else
8199 case $PKG_CONFIG in
8200 [\\/]* | ?:[\\/]*)
8201 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8205 for as_dir in $PATH
8207 IFS=$as_save_IFS
8208 test -z "$as_dir" && as_dir=.
8209 for ac_exec_ext in '' $ac_executable_extensions; do
8210 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8211 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8213 break 2
8215 done
8216 done
8217 IFS=$as_save_IFS
8219 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8221 esac
8223 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8224 if test -n "$PKG_CONFIG"; then
8225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8226 $as_echo "$PKG_CONFIG" >&6; }
8227 else
8228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8229 $as_echo "no" >&6; }
8237 if test "${with_sound}" != "no"; then
8238 # Sound support for GNU/Linux and the free BSDs.
8239 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
8240 do :
8241 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8242 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8243 eval as_val=\$$as_ac_Header
8244 if test "x$as_val" = x""yes; then :
8245 cat >>confdefs.h <<_ACEOF
8246 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8247 _ACEOF
8248 have_sound_header=yes
8251 done
8253 # Emulation library used on NetBSD.
8254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
8255 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
8256 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
8257 $as_echo_n "(cached) " >&6
8258 else
8259 ac_check_lib_save_LIBS=$LIBS
8260 LIBS="-lossaudio $LIBS"
8261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8262 /* end confdefs.h. */
8264 /* Override any GCC internal prototype to avoid an error.
8265 Use char because int might match the return type of a GCC
8266 builtin and then its argument prototype would still apply. */
8267 #ifdef __cplusplus
8268 extern "C"
8269 #endif
8270 char _oss_ioctl ();
8272 main ()
8274 return _oss_ioctl ();
8276 return 0;
8278 _ACEOF
8279 if ac_fn_c_try_link "$LINENO"; then :
8280 ac_cv_lib_ossaudio__oss_ioctl=yes
8281 else
8282 ac_cv_lib_ossaudio__oss_ioctl=no
8284 rm -f core conftest.err conftest.$ac_objext \
8285 conftest$ac_exeext conftest.$ac_ext
8286 LIBS=$ac_check_lib_save_LIBS
8288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
8289 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
8290 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x""yes; then :
8291 LIBSOUND=-lossaudio
8292 else
8293 LIBSOUND=
8298 ALSA_REQUIRED=1.0.0
8299 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
8301 succeeded=no
8303 if test "$PKG_CONFIG" = "no" ; then
8304 HAVE_ALSA=no
8305 else
8306 PKG_CONFIG_MIN_VERSION=0.9.0
8307 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
8309 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
8311 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5 &&
8312 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES" 2>&5` &&
8313 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES" 2>&5`; then
8314 edit_cflags="
8315 s,///*,/,g
8316 s/^/ /
8317 s/ -I/ $isystem/g
8318 s/^ //
8320 ALSA_CFLAGS=`$as_echo "$ALSA_CFLAGS" | sed -e "$edit_cflags"`
8321 ALSA_LIBS=`$as_echo "$ALSA_LIBS" | sed -e 's,///*,/,g'`
8322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$ALSA_CFLAGS' LIBS='$ALSA_LIBS'" >&5
8323 $as_echo "yes CFLAGS='$ALSA_CFLAGS' LIBS='$ALSA_LIBS'" >&6; }
8324 succeeded=yes
8325 else
8326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8327 $as_echo "no" >&6; }
8328 ALSA_CFLAGS=""
8329 ALSA_LIBS=""
8330 ## If we have a custom action on failure, don't print errors, but
8331 ## do set a variable so people can do so.
8332 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
8338 else
8339 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8340 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8344 if test $succeeded = yes; then
8345 HAVE_ALSA=yes
8346 else
8347 HAVE_ALSA=no
8350 if test $HAVE_ALSA = yes; then
8351 SAVE_CFLAGS="$CFLAGS"
8352 SAVE_LIBS="$LIBS"
8353 CFLAGS="$ALSA_CFLAGS $CFLAGS"
8354 LIBS="$ALSA_LIBS $LIBS"
8355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8356 /* end confdefs.h. */
8357 #include <asoundlib.h>
8359 main ()
8361 snd_lib_error_set_handler (0);
8363 return 0;
8365 _ACEOF
8366 if ac_fn_c_try_compile "$LINENO"; then :
8367 emacs_alsa_normal=yes
8368 else
8369 emacs_alsa_normal=no
8371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8372 if test "$emacs_alsa_normal" != yes; then
8373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8374 /* end confdefs.h. */
8375 #include <alsa/asoundlib.h>
8377 main ()
8379 snd_lib_error_set_handler (0);
8381 return 0;
8383 _ACEOF
8384 if ac_fn_c_try_compile "$LINENO"; then :
8385 emacs_alsa_subdir=yes
8386 else
8387 emacs_alsa_subdir=no
8389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8390 if test "$emacs_alsa_subdir" != yes; then
8391 as_fn_error "pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
8393 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
8396 CFLAGS="$SAVE_CFLAGS"
8397 LIBS="$SAVE_LIBS"
8398 LIBSOUND="$LIBSOUND $ALSA_LIBS"
8399 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
8401 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
8405 if test x$have_sound_header = xyes || test $HAVE_ALSA = yes; then
8406 case "$opsys" in
8407 gnu-linux|freebsd|netbsd)
8409 $as_echo "#define HAVE_SOUND 1" >>confdefs.h
8412 esac
8421 for ac_header in $ac_header_list
8422 do :
8423 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8424 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8426 eval as_val=\$$as_ac_Header
8427 if test "x$as_val" = x""yes; then :
8428 cat >>confdefs.h <<_ACEOF
8429 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8430 _ACEOF
8434 done
8470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
8471 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
8472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8473 /* end confdefs.h. */
8474 #include <sys/personality.h>
8476 main ()
8478 personality (PER_LINUX32)
8480 return 0;
8482 _ACEOF
8483 if ac_fn_c_try_compile "$LINENO"; then :
8484 emacs_cv_personality_linux32=yes
8485 else
8486 emacs_cv_personality_linux32=no
8488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
8490 $as_echo "$emacs_cv_personality_linux32" >&6; }
8492 if test $emacs_cv_personality_linux32 = yes; then
8494 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
8498 for ac_header in term.h
8499 do :
8500 ac_fn_c_check_header_preproc "$LINENO" "term.h" "ac_cv_header_term_h"
8501 if test "x$ac_cv_header_term_h" = x""yes; then :
8502 cat >>confdefs.h <<_ACEOF
8503 #define HAVE_TERM_H 1
8504 _ACEOF
8508 done
8510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8511 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8512 if test "${ac_cv_header_time+set}" = set; then :
8513 $as_echo_n "(cached) " >&6
8514 else
8515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8516 /* end confdefs.h. */
8517 #include <sys/types.h>
8518 #include <sys/time.h>
8519 #include <time.h>
8522 main ()
8524 if ((struct tm *) 0)
8525 return 0;
8527 return 0;
8529 _ACEOF
8530 if ac_fn_c_try_compile "$LINENO"; then :
8531 ac_cv_header_time=yes
8532 else
8533 ac_cv_header_time=no
8535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8538 $as_echo "$ac_cv_header_time" >&6; }
8539 if test $ac_cv_header_time = yes; then
8541 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8545 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default"
8546 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then :
8547 ac_have_decl=1
8548 else
8549 ac_have_decl=0
8552 cat >>confdefs.h <<_ACEOF
8553 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
8554 _ACEOF
8556 if test $ac_cv_have_decl_sys_siglist != yes; then
8557 # For Tru64, at least:
8558 ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default"
8559 if test "x$ac_cv_have_decl___sys_siglist" = x""yes; then :
8560 ac_have_decl=1
8561 else
8562 ac_have_decl=0
8565 cat >>confdefs.h <<_ACEOF
8566 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
8567 _ACEOF
8569 if test $ac_cv_have_decl___sys_siglist = yes; then
8571 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
8575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8576 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8577 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8578 $as_echo_n "(cached) " >&6
8579 else
8580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8581 /* end confdefs.h. */
8582 #include <sys/types.h>
8583 #include <sys/wait.h>
8584 #ifndef WEXITSTATUS
8585 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8586 #endif
8587 #ifndef WIFEXITED
8588 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8589 #endif
8592 main ()
8594 int s;
8595 wait (&s);
8596 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8598 return 0;
8600 _ACEOF
8601 if ac_fn_c_try_compile "$LINENO"; then :
8602 ac_cv_header_sys_wait_h=yes
8603 else
8604 ac_cv_header_sys_wait_h=no
8606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8609 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8610 if test $ac_cv_header_sys_wait_h = yes; then
8612 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
8618 $as_echo_n "checking for struct utimbuf... " >&6; }
8619 if test "${emacs_cv_struct_utimbuf+set}" = set; then :
8620 $as_echo_n "(cached) " >&6
8621 else
8622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8623 /* end confdefs.h. */
8624 #ifdef TIME_WITH_SYS_TIME
8625 #include <sys/time.h>
8626 #include <time.h>
8627 #else
8628 #ifdef HAVE_SYS_TIME_H
8629 #include <sys/time.h>
8630 #else
8631 #include <time.h>
8632 #endif
8633 #endif
8634 #ifdef HAVE_UTIME_H
8635 #include <utime.h>
8636 #endif
8638 main ()
8640 static struct utimbuf x; x.actime = x.modtime;
8642 return 0;
8644 _ACEOF
8645 if ac_fn_c_try_compile "$LINENO"; then :
8646 emacs_cv_struct_utimbuf=yes
8647 else
8648 emacs_cv_struct_utimbuf=no
8650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_utimbuf" >&5
8653 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
8654 if test $emacs_cv_struct_utimbuf = yes; then
8656 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
8660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
8661 $as_echo_n "checking for speed_t... " >&6; }
8662 if test "${emacs_cv_speed_t+set}" = set; then :
8663 $as_echo_n "(cached) " >&6
8664 else
8665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8666 /* end confdefs.h. */
8667 #include <termios.h>
8669 main ()
8671 speed_t x = 1;
8673 return 0;
8675 _ACEOF
8676 if ac_fn_c_try_compile "$LINENO"; then :
8677 emacs_cv_speed_t=yes
8678 else
8679 emacs_cv_speed_t=no
8681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
8684 $as_echo "$emacs_cv_speed_t" >&6; }
8685 if test $emacs_cv_speed_t = yes; then
8687 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
8691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
8692 $as_echo_n "checking for struct timeval... " >&6; }
8693 if test "${emacs_cv_struct_timeval+set}" = set; then :
8694 $as_echo_n "(cached) " >&6
8695 else
8696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8697 /* end confdefs.h. */
8698 #ifdef TIME_WITH_SYS_TIME
8699 #include <sys/time.h>
8700 #include <time.h>
8701 #else
8702 #ifdef HAVE_SYS_TIME_H
8703 #include <sys/time.h>
8704 #else
8705 #include <time.h>
8706 #endif
8707 #endif
8709 main ()
8711 static struct timeval x; x.tv_sec = x.tv_usec;
8713 return 0;
8715 _ACEOF
8716 if ac_fn_c_try_compile "$LINENO"; then :
8717 emacs_cv_struct_timeval=yes
8718 else
8719 emacs_cv_struct_timeval=no
8721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_timeval" >&5
8724 $as_echo "$emacs_cv_struct_timeval" >&6; }
8725 HAVE_TIMEVAL=$emacs_cv_struct_timeval
8726 if test $emacs_cv_struct_timeval = yes; then
8728 $as_echo "#define HAVE_TIMEVAL 1" >>confdefs.h
8732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct exception" >&5
8733 $as_echo_n "checking for struct exception... " >&6; }
8734 if test "${emacs_cv_struct_exception+set}" = set; then :
8735 $as_echo_n "(cached) " >&6
8736 else
8737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8738 /* end confdefs.h. */
8739 #include <math.h>
8741 main ()
8743 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
8745 return 0;
8747 _ACEOF
8748 if ac_fn_c_try_compile "$LINENO"; then :
8749 emacs_cv_struct_exception=yes
8750 else
8751 emacs_cv_struct_exception=no
8753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_exception" >&5
8756 $as_echo "$emacs_cv_struct_exception" >&6; }
8757 HAVE_EXCEPTION=$emacs_cv_struct_exception
8758 if test $emacs_cv_struct_exception != yes; then
8760 $as_echo "#define NO_MATHERR 1" >>confdefs.h
8767 for ac_header in net/if.h
8768 do :
8769 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
8770 #if HAVE_SYS_SOCKET_H
8771 #include <sys/socket.h>
8772 #endif
8774 if test "x$ac_cv_header_net_if_h" = x""yes; then :
8775 cat >>confdefs.h <<_ACEOF
8776 #define HAVE_NET_IF_H 1
8777 _ACEOF
8781 done
8783 for ac_header in ifaddrs.h
8784 do :
8785 ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default
8786 #if HAVE_SYS_SOCKET_H
8787 #include <sys/socket.h>
8788 #endif
8790 if test "x$ac_cv_header_ifaddrs_h" = x""yes; then :
8791 cat >>confdefs.h <<_ACEOF
8792 #define HAVE_IFADDRS_H 1
8793 _ACEOF
8797 done
8799 for ac_header in net/if_dl.h
8800 do :
8801 ac_fn_c_check_header_compile "$LINENO" "net/if_dl.h" "ac_cv_header_net_if_dl_h" "$ac_includes_default
8802 #if HAVE_SYS_SOCKET_H
8803 #include <sys/socket.h>
8804 #endif
8806 if test "x$ac_cv_header_net_if_dl_h" = x""yes; then :
8807 cat >>confdefs.h <<_ACEOF
8808 #define HAVE_NET_IF_DL_H 1
8809 _ACEOF
8813 done
8815 for ac_func in getifaddrs freeifaddrs
8816 do :
8817 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8818 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8819 eval as_val=\$$as_ac_var
8820 if test "x$as_val" = x""yes; then :
8821 cat >>confdefs.h <<_ACEOF
8822 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8823 _ACEOF
8826 done
8829 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
8830 #if HAVE_SYS_SOCKET_H
8831 #include <sys/socket.h>
8832 #endif
8833 #if HAVE_NET_IF_H
8834 #include <net/if.h>
8835 #endif
8837 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x""yes; then :
8839 cat >>confdefs.h <<_ACEOF
8840 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8841 _ACEOF
8845 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
8846 #if HAVE_SYS_SOCKET_H
8847 #include <sys/socket.h>
8848 #endif
8849 #if HAVE_NET_IF_H
8850 #include <net/if.h>
8851 #endif
8853 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x""yes; then :
8855 cat >>confdefs.h <<_ACEOF
8856 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8857 _ACEOF
8861 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
8862 #if HAVE_SYS_SOCKET_H
8863 #include <sys/socket.h>
8864 #endif
8865 #if HAVE_NET_IF_H
8866 #include <net/if.h>
8867 #endif
8869 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x""yes; then :
8871 cat >>confdefs.h <<_ACEOF
8872 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8873 _ACEOF
8877 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
8878 #if HAVE_SYS_SOCKET_H
8879 #include <sys/socket.h>
8880 #endif
8881 #if HAVE_NET_IF_H
8882 #include <net/if.h>
8883 #endif
8885 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x""yes; then :
8887 cat >>confdefs.h <<_ACEOF
8888 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8889 _ACEOF
8893 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
8894 #if HAVE_SYS_SOCKET_H
8895 #include <sys/socket.h>
8896 #endif
8897 #if HAVE_NET_IF_H
8898 #include <net/if.h>
8899 #endif
8901 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x""yes; then :
8903 cat >>confdefs.h <<_ACEOF
8904 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8905 _ACEOF
8909 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr.sa_len" "ac_cv_member_struct_ifreq_ifr_addr_sa_len" "$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_addr_sa_len" = x""yes; then :
8919 cat >>confdefs.h <<_ACEOF
8920 #define HAVE_STRUCT_IFREQ_IFR_ADDR_SA_LEN 1
8921 _ACEOF
8928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__ ((__aligned__ (expr)))" >&5
8929 $as_echo_n "checking for __attribute__ ((__aligned__ (expr)))... " >&6; }
8930 if test "${emacs_cv_attribute_aligned+set}" = set; then :
8931 $as_echo_n "(cached) " >&6
8932 else
8933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8934 /* end confdefs.h. */
8935 char __attribute__ ((__aligned__ (1 << 3))) c;
8937 main ()
8941 return 0;
8943 _ACEOF
8944 if ac_fn_c_try_compile "$LINENO"; then :
8945 emacs_cv_attribute_aligned=yes
8946 else
8947 emacs_cv_attribute_aligned=no
8949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_attribute_aligned" >&5
8952 $as_echo "$emacs_cv_attribute_aligned" >&6; }
8953 if test $emacs_cv_attribute_aligned = yes; then
8955 $as_echo "#define HAVE_ATTRIBUTE_ALIGNED 1" >>confdefs.h
8960 DEPFLAGS=
8961 MKDEPDIR=":"
8962 deps_frag=deps.mk
8963 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
8964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
8965 $as_echo_n "checking whether we are using GNU Make... " >&6; }
8966 HAVE_GNU_MAKE=no
8967 testval=`${MAKE-make} --version 2>/dev/null | grep 'GNU Make'`
8968 if test "x$testval" != x; then
8969 HAVE_GNU_MAKE=yes
8970 else
8971 ac_enable_autodepend=no
8973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
8974 $as_echo "$HAVE_GNU_MAKE" >&6; }
8975 if test $HAVE_GNU_MAKE = yes; then
8976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
8977 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
8978 SAVE_CFLAGS="$CFLAGS"
8979 CFLAGS="$CFLAGS -MMD -MF deps.d -MP"
8980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8981 /* end confdefs.h. */
8984 main ()
8988 return 0;
8990 _ACEOF
8991 if ac_fn_c_try_compile "$LINENO"; then :
8993 else
8994 ac_enable_autodepend=no
8996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8997 CFLAGS="$SAVE_CFLAGS"
8998 test -f deps.d || ac_enable_autodepend=no
8999 rm -rf deps.d
9000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
9001 $as_echo "$ac_enable_autodepend" >&6; }
9003 if test $ac_enable_autodepend = yes; then
9004 DEPFLAGS='-MMD -MF ${DEPDIR}/$*.d -MP'
9005 ## MKDIR_P is documented (see AC_PROG_MKDIR_P) to be parallel-safe.
9006 MKDEPDIR='${MKDIR_P} ${DEPDIR}'
9007 deps_frag=autodeps.mk
9010 deps_frag=$srcdir/src/$deps_frag
9016 lisp_frag=$srcdir/src/lisp.mk
9020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
9021 $as_echo_n "checking for long file names... " >&6; }
9022 if test "${ac_cv_sys_long_file_names+set}" = set; then :
9023 $as_echo_n "(cached) " >&6
9024 else
9025 ac_cv_sys_long_file_names=yes
9026 # Test for long file names in all the places we know might matter:
9027 # . the current directory, where building will happen
9028 # $prefix/lib where we will be installing things
9029 # $exec_prefix/lib likewise
9030 # $TMPDIR if set, where it might want to write temporary files
9031 # /tmp where it might want to write temporary files
9032 # /var/tmp likewise
9033 # /usr/tmp likewise
9034 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9035 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9036 # in the usual case where exec_prefix is '${prefix}'.
9037 case $ac_dir in #(
9038 . | /* | ?:[\\/]*) ;; #(
9039 *) continue;;
9040 esac
9041 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9042 ac_xdir=$ac_dir/cf$$
9043 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9044 ac_tf1=$ac_xdir/conftest9012345
9045 ac_tf2=$ac_xdir/conftest9012346
9046 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9047 ac_cv_sys_long_file_names=no
9048 rm -f -r "$ac_xdir" 2>/dev/null
9049 test $ac_cv_sys_long_file_names = no && break
9050 done
9052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
9053 $as_echo "$ac_cv_sys_long_file_names" >&6; }
9054 if test $ac_cv_sys_long_file_names = yes; then
9056 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
9061 #### Choose a window system.
9063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
9064 $as_echo_n "checking for X... " >&6; }
9067 # Check whether --with-x was given.
9068 if test "${with_x+set}" = set; then :
9069 withval=$with_x;
9072 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9073 if test "x$with_x" = xno; then
9074 # The user explicitly disabled X.
9075 have_x=disabled
9076 else
9077 case $x_includes,$x_libraries in #(
9078 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
9079 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
9080 $as_echo_n "(cached) " >&6
9081 else
9082 # One or both of the vars are not set, and there is no cached value.
9083 ac_x_includes=no ac_x_libraries=no
9084 rm -f -r conftest.dir
9085 if mkdir conftest.dir; then
9086 cd conftest.dir
9087 cat >Imakefile <<'_ACEOF'
9088 incroot:
9089 @echo incroot='${INCROOT}'
9090 usrlibdir:
9091 @echo usrlibdir='${USRLIBDIR}'
9092 libdir:
9093 @echo libdir='${LIBDIR}'
9094 _ACEOF
9095 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9096 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9097 for ac_var in incroot usrlibdir libdir; do
9098 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9099 done
9100 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9101 for ac_extension in a so sl dylib la dll; do
9102 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9103 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9104 ac_im_usrlibdir=$ac_im_libdir; break
9106 done
9107 # Screen out bogus values from the imake configuration. They are
9108 # bogus both because they are the default anyway, and because
9109 # using them would break gcc on systems where it needs fixed includes.
9110 case $ac_im_incroot in
9111 /usr/include) ac_x_includes= ;;
9112 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9113 esac
9114 case $ac_im_usrlibdir in
9115 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
9116 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9117 esac
9119 cd ..
9120 rm -f -r conftest.dir
9123 # Standard set of common directories for X headers.
9124 # Check X11 before X11Rn because it is often a symlink to the current release.
9125 ac_x_header_dirs='
9126 /usr/X11/include
9127 /usr/X11R7/include
9128 /usr/X11R6/include
9129 /usr/X11R5/include
9130 /usr/X11R4/include
9132 /usr/include/X11
9133 /usr/include/X11R7
9134 /usr/include/X11R6
9135 /usr/include/X11R5
9136 /usr/include/X11R4
9138 /usr/local/X11/include
9139 /usr/local/X11R7/include
9140 /usr/local/X11R6/include
9141 /usr/local/X11R5/include
9142 /usr/local/X11R4/include
9144 /usr/local/include/X11
9145 /usr/local/include/X11R7
9146 /usr/local/include/X11R6
9147 /usr/local/include/X11R5
9148 /usr/local/include/X11R4
9150 /usr/X386/include
9151 /usr/x386/include
9152 /usr/XFree86/include/X11
9154 /usr/include
9155 /usr/local/include
9156 /usr/unsupported/include
9157 /usr/athena/include
9158 /usr/local/x11r5/include
9159 /usr/lpp/Xamples/include
9161 /usr/openwin/include
9162 /usr/openwin/share/include'
9164 if test "$ac_x_includes" = no; then
9165 # Guess where to find include files, by looking for Xlib.h.
9166 # First, try using that file with no special directory specified.
9167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9168 /* end confdefs.h. */
9169 #include <X11/Xlib.h>
9170 _ACEOF
9171 if ac_fn_c_try_cpp "$LINENO"; then :
9172 # We can compile using X headers with no special include directory.
9173 ac_x_includes=
9174 else
9175 for ac_dir in $ac_x_header_dirs; do
9176 if test -r "$ac_dir/X11/Xlib.h"; then
9177 ac_x_includes=$ac_dir
9178 break
9180 done
9182 rm -f conftest.err conftest.$ac_ext
9183 fi # $ac_x_includes = no
9185 if test "$ac_x_libraries" = no; then
9186 # Check for the libraries.
9187 # See if we find them without any special options.
9188 # Don't add to $LIBS permanently.
9189 ac_save_LIBS=$LIBS
9190 LIBS="-lX11 $LIBS"
9191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9192 /* end confdefs.h. */
9193 #include <X11/Xlib.h>
9195 main ()
9197 XrmInitialize ()
9199 return 0;
9201 _ACEOF
9202 if ac_fn_c_try_link "$LINENO"; then :
9203 LIBS=$ac_save_LIBS
9204 # We can link X programs with no special library path.
9205 ac_x_libraries=
9206 else
9207 LIBS=$ac_save_LIBS
9208 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9210 # Don't even attempt the hair of trying to link an X program!
9211 for ac_extension in a so sl dylib la dll; do
9212 if test -r "$ac_dir/libX11.$ac_extension"; then
9213 ac_x_libraries=$ac_dir
9214 break 2
9216 done
9217 done
9219 rm -f core conftest.err conftest.$ac_objext \
9220 conftest$ac_exeext conftest.$ac_ext
9221 fi # $ac_x_libraries = no
9223 case $ac_x_includes,$ac_x_libraries in #(
9224 no,* | *,no | *\'*)
9225 # Didn't find X, or a directory has "'" in its name.
9226 ac_cv_have_x="have_x=no";; #(
9228 # Record where we found X for the cache.
9229 ac_cv_have_x="have_x=yes\
9230 ac_x_includes='$ac_x_includes'\
9231 ac_x_libraries='$ac_x_libraries'"
9232 esac
9234 ;; #(
9235 *) have_x=yes;;
9236 esac
9237 eval "$ac_cv_have_x"
9238 fi # $with_x != no
9240 if test "$have_x" != yes; then
9241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
9242 $as_echo "$have_x" >&6; }
9243 no_x=yes
9244 else
9245 # If each of the values was on the command line, it overrides each guess.
9246 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9247 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9248 # Update the cache value to reflect the command line values.
9249 ac_cv_have_x="have_x=yes\
9250 ac_x_includes='$x_includes'\
9251 ac_x_libraries='$x_libraries'"
9252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
9253 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
9256 if test "$no_x" = yes; then
9257 window_system=none
9258 else
9259 window_system=x11
9262 LD_SWITCH_X_SITE_RPATH=
9263 if test "${x_libraries}" != NONE; then
9264 if test -n "${x_libraries}"; then
9265 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9266 LD_SWITCH_X_SITE_RPATH=-Wl,-rpath,`echo ${x_libraries} | sed -e "s/:/ -Wl,-rpath,/g"`
9268 x_default_search_path=""
9269 x_search_path=${x_libraries}
9270 if test -z "${x_search_path}"; then
9271 x_search_path=/usr/lib
9273 for x_library in `echo ${x_search_path}: | \
9274 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9275 x_search_path="\
9276 ${x_library}/X11/%L/%T/%N%C%S:\
9277 ${x_library}/X11/%l/%T/%N%C%S:\
9278 ${x_library}/X11/%T/%N%C%S:\
9279 ${x_library}/X11/%L/%T/%N%S:\
9280 ${x_library}/X11/%l/%T/%N%S:\
9281 ${x_library}/X11/%T/%N%S"
9282 if test x"${x_default_search_path}" = x; then
9283 x_default_search_path=${x_search_path}
9284 else
9285 x_default_search_path="${x_search_path}:${x_default_search_path}"
9287 done
9291 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9292 C_SWITCH_X_SITE="$isystem"`echo ${x_includes} | sed -e "s/:/ $isystem/g"`
9295 if test x"${x_includes}" = x; then
9296 bitmapdir=/usr/include/X11/bitmaps
9297 else
9298 # accumulate include directories that have X11 bitmap subdirectories
9299 bmd_acc="dummyval"
9300 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9301 if test -d "${bmd}/X11/bitmaps"; then
9302 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9304 if test -d "${bmd}/bitmaps"; then
9305 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9307 done
9308 if test ${bmd_acc} != "dummyval"; then
9309 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9313 HAVE_NS=no
9314 NS_IMPL_COCOA=no
9315 NS_IMPL_GNUSTEP=no
9316 tmp_CPPFLAGS="$CPPFLAGS"
9317 tmp_CFLAGS="$CFLAGS"
9318 CPPFLAGS="$CPPFLAGS -x objective-c"
9319 CFLAGS="$CFLAGS -x objective-c"
9320 TEMACS_LDFLAGS2="\${LDFLAGS}"
9321 GNU_OBJC_CFLAGS=
9322 if test "${with_ns}" != no; then
9323 if test "${opsys}" = darwin; then
9324 NS_IMPL_COCOA=yes
9325 ns_appdir=`pwd`/nextstep/Emacs.app
9326 ns_appbindir=${ns_appdir}/Contents/MacOS
9327 ns_appresdir=${ns_appdir}/Contents/Resources
9328 ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base
9329 elif test -f $GNUSTEP_CONFIG_FILE; then
9330 NS_IMPL_GNUSTEP=yes
9331 ns_appdir=`pwd`/nextstep/Emacs.app
9332 ns_appbindir=${ns_appdir}
9333 ns_appresdir=${ns_appdir}/Resources
9334 ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base
9335 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9336 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9337 GNUSTEP_LOCAL_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
9338 GNUSTEP_LOCAL_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
9339 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
9340 GNUSTEP_LOCAL_HEADERS="-I${GNUSTEP_LOCAL_HEADERS}"
9341 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
9342 GNUSTEP_LOCAL_LIBRARIES="-L${GNUSTEP_LOCAL_LIBRARIES}"
9343 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9344 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9345 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
9346 LIB_STANDARD=
9347 START_FILES=
9348 TEMACS_LDFLAGS2=
9349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS" >&5
9350 $as_echo_n "checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS... " >&6; }
9351 if test "${emacs_cv_objc_exceptions+set}" = set; then :
9352 $as_echo_n "(cached) " >&6
9353 else
9354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9355 /* end confdefs.h. */
9356 #include <GNUstepBase/GSConfig.h>
9358 main ()
9360 #if defined BASE_NATIVE_OBJC_EXCEPTIONS && BASE_NATIVE_OBJC_EXCEPTIONS > 0
9362 #else
9363 fail;
9364 #endif
9366 return 0;
9368 _ACEOF
9369 if ac_fn_c_try_compile "$LINENO"; then :
9370 emacs_cv_objc_exceptions=yes
9371 else
9372 emacs_cv_objc_exceptions=no
9374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_objc_exceptions" >&5
9377 $as_echo "$emacs_cv_objc_exceptions" >&6; }
9378 if test $emacs_cv_objc_exceptions = yes; then
9380 $as_echo "#define _NATIVE_OBJC_EXCEPTIONS 1" >>confdefs.h
9382 GNU_OBJC_CFLAGS="-fobjc-exceptions"
9386 CFLAGS="$CFLAGS $GNU_OBJC_CFLAGS"
9388 ac_fn_c_check_header_mongrel "$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
9389 if test "x$ac_cv_header_AppKit_AppKit_h" = x""yes; then :
9390 HAVE_NS=yes
9391 else
9392 as_fn_error "\`--with-ns' was specified, but the include
9393 files are missing or cannot be compiled." "$LINENO" 5
9397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9398 /* end confdefs.h. */
9399 #include <Foundation/NSObjCRuntime.h>
9401 main ()
9403 NSInteger i;
9405 return 0;
9407 _ACEOF
9408 if ac_fn_c_try_compile "$LINENO"; then :
9409 ns_have_nsinteger=yes
9410 else
9411 ns_have_nsinteger=no
9413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9414 if test $ns_have_nsinteger = yes; then
9416 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
9422 INSTALL_ARCH_INDEP_EXTRA=install-etc
9423 ns_self_contained=no
9424 ns_frag=/dev/null
9425 NS_OBJ=
9426 NS_OBJC_OBJ=
9427 if test "${HAVE_NS}" = yes; then
9428 if test "$with_toolkit_scroll_bars" = "no"; then
9429 as_fn_error "Non-toolkit scroll bars are not implemented for Nextstep." "$LINENO" 5
9432 window_system=nextstep
9433 with_xft=no
9434 # set up packaging dirs
9435 if test "${EN_NS_SELF_CONTAINED}" = yes; then
9436 ns_self_contained=yes
9437 prefix=${ns_appresdir}
9438 exec_prefix=${ns_appbindir}
9439 libexecdir="\${ns_appbindir}/libexec"
9440 archlibdir="\${ns_appbindir}/libexec"
9441 docdir="\${ns_appresdir}/etc"
9442 etcdir="\${ns_appresdir}/etc"
9443 infodir="\${ns_appresdir}/info"
9444 mandir="\${ns_appresdir}/man"
9445 lispdir="\${ns_appresdir}/lisp"
9446 leimdir="\${ns_appresdir}/leim"
9447 INSTALL_ARCH_INDEP_EXTRA=
9449 ns_frag=$srcdir/src/ns.mk
9450 NS_OBJ="fontset.o fringe.o image.o"
9451 NS_OBJC_OBJ="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o"
9453 CFLAGS="$tmp_CFLAGS"
9454 CPPFLAGS="$tmp_CPPFLAGS"
9462 case "${window_system}" in
9463 x11 )
9464 HAVE_X_WINDOWS=yes
9465 HAVE_X11=yes
9466 case "${with_x_toolkit}" in
9467 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9468 motif ) USE_X_TOOLKIT=MOTIF ;;
9469 gtk ) with_gtk=yes
9470 USE_X_TOOLKIT=none ;;
9471 gtk3 ) with_gtk3=yes
9472 USE_X_TOOLKIT=none ;;
9473 no ) USE_X_TOOLKIT=none ;;
9474 * ) USE_X_TOOLKIT=maybe ;;
9475 esac
9477 nextstep | none )
9478 HAVE_X_WINDOWS=no
9479 HAVE_X11=no
9480 USE_X_TOOLKIT=none
9482 esac
9484 if test "$window_system" = none && test "X$with_x" != "Xno"; then
9485 # Extract the first word of "X", so it can be a program name with args.
9486 set dummy X; ac_word=$2
9487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9488 $as_echo_n "checking for $ac_word... " >&6; }
9489 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then :
9490 $as_echo_n "(cached) " >&6
9491 else
9492 if test -n "$HAVE_XSERVER"; then
9493 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9494 else
9495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9496 for as_dir in $PATH
9498 IFS=$as_save_IFS
9499 test -z "$as_dir" && as_dir=.
9500 for ac_exec_ext in '' $ac_executable_extensions; do
9501 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9502 ac_cv_prog_HAVE_XSERVER="true"
9503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9504 break 2
9506 done
9507 done
9508 IFS=$as_save_IFS
9510 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9513 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9514 if test -n "$HAVE_XSERVER"; then
9515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
9516 $as_echo "$HAVE_XSERVER" >&6; }
9517 else
9518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9519 $as_echo "no" >&6; }
9523 if test "$HAVE_XSERVER" = true ||
9524 test -n "$DISPLAY" ||
9525 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
9526 as_fn_error "You seem to be running X, but no X development libraries
9527 were found. You should install the relevant development files for X
9528 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9529 sure you have development files for image handling, i.e.
9530 tiff, gif, jpeg, png and xpm.
9531 If you are sure you want Emacs compiled without X window support, pass
9532 --without-x
9533 to configure." "$LINENO" 5
9537 ### If we're using X11, we should use the X menu package.
9538 HAVE_MENUS=no
9539 case ${HAVE_X11} in
9540 yes ) HAVE_MENUS=yes ;;
9541 esac
9543 # Does the opsystem file prohibit the use of the GNU malloc?
9544 # Assume not, until told otherwise.
9545 GNU_MALLOC=yes
9547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc is Doug Lea style" >&5
9548 $as_echo_n "checking whether malloc is Doug Lea style... " >&6; }
9549 if test "${emacs_cv_var_doug_lea_malloc+set}" = set; then :
9550 $as_echo_n "(cached) " >&6
9551 else
9552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9553 /* end confdefs.h. */
9554 #include <malloc.h>
9555 static void hook (void) {}
9557 main ()
9559 malloc_set_state (malloc_get_state ());
9560 __after_morecore_hook = hook;
9561 __malloc_initialize_hook = hook;
9563 return 0;
9565 _ACEOF
9566 if ac_fn_c_try_link "$LINENO"; then :
9567 emacs_cv_var_doug_lea_malloc=yes
9568 else
9569 emacs_cv_var_doug_lea_malloc=no
9571 rm -f core conftest.err conftest.$ac_objext \
9572 conftest$ac_exeext conftest.$ac_ext
9574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var_doug_lea_malloc" >&5
9575 $as_echo "$emacs_cv_var_doug_lea_malloc" >&6; }
9576 doug_lea_malloc=$emacs_cv_var_doug_lea_malloc
9579 system_malloc=no
9580 case "$opsys" in
9581 ## darwin ld insists on the use of malloc routines in the System framework.
9582 darwin|sol2-10) system_malloc=yes ;;
9583 esac
9585 if test "${system_malloc}" = "yes"; then
9587 $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
9589 GNU_MALLOC=no
9590 GNU_MALLOC_reason="
9591 (The GNU allocators don't work with this system configuration.)"
9592 GMALLOC_OBJ=
9593 VMLIMIT_OBJ=
9594 else
9595 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ=gmalloc.o
9596 VMLIMIT_OBJ=vm-limit.o
9601 if test "$doug_lea_malloc" = "yes" ; then
9602 if test "$GNU_MALLOC" = yes ; then
9603 GNU_MALLOC_reason="
9604 (Using Doug Lea's new malloc from the GNU C Library.)"
9607 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
9610 ## Use mmap directly for allocating larger buffers.
9611 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
9612 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
9613 ## Does the AC_FUNC_MMAP test below make this check unnecessary?
9614 case "$opsys" in
9615 gnu*) REL_ALLOC=no ;;
9616 esac
9619 if test x"${REL_ALLOC}" = x; then
9620 REL_ALLOC=${GNU_MALLOC}
9623 use_mmap_for_buffers=no
9624 case "$opsys" in
9625 cygwin|freebsd|irix6-5) use_mmap_for_buffers=yes ;;
9626 esac
9635 for ac_func in getpagesize
9636 do :
9637 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
9638 if test "x$ac_cv_func_getpagesize" = x""yes; then :
9639 cat >>confdefs.h <<_ACEOF
9640 #define HAVE_GETPAGESIZE 1
9641 _ACEOF
9644 done
9646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
9647 $as_echo_n "checking for working mmap... " >&6; }
9648 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
9649 $as_echo_n "(cached) " >&6
9650 else
9651 if test "$cross_compiling" = yes; then :
9652 ac_cv_func_mmap_fixed_mapped=no
9653 else
9654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9655 /* end confdefs.h. */
9656 $ac_includes_default
9657 /* malloc might have been renamed as rpl_malloc. */
9658 #undef malloc
9660 /* Thanks to Mike Haertel and Jim Avera for this test.
9661 Here is a matrix of mmap possibilities:
9662 mmap private not fixed
9663 mmap private fixed at somewhere currently unmapped
9664 mmap private fixed at somewhere already mapped
9665 mmap shared not fixed
9666 mmap shared fixed at somewhere currently unmapped
9667 mmap shared fixed at somewhere already mapped
9668 For private mappings, we should verify that changes cannot be read()
9669 back from the file, nor mmap's back from the file at a different
9670 address. (There have been systems where private was not correctly
9671 implemented like the infamous i386 svr4.0, and systems where the
9672 VM page cache was not coherent with the file system buffer cache
9673 like early versions of FreeBSD and possibly contemporary NetBSD.)
9674 For shared mappings, we should conversely verify that changes get
9675 propagated back to all the places they're supposed to be.
9677 Grep wants private fixed already mapped.
9678 The main things grep needs to know about mmap are:
9679 * does it exist and is it safe to write into the mmap'd area
9680 * how to use it (BSD variants) */
9682 #include <fcntl.h>
9683 #include <sys/mman.h>
9685 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
9686 char *malloc ();
9687 #endif
9689 /* This mess was copied from the GNU getpagesize.h. */
9690 #ifndef HAVE_GETPAGESIZE
9691 # ifdef _SC_PAGESIZE
9692 # define getpagesize() sysconf(_SC_PAGESIZE)
9693 # else /* no _SC_PAGESIZE */
9694 # ifdef HAVE_SYS_PARAM_H
9695 # include <sys/param.h>
9696 # ifdef EXEC_PAGESIZE
9697 # define getpagesize() EXEC_PAGESIZE
9698 # else /* no EXEC_PAGESIZE */
9699 # ifdef NBPG
9700 # define getpagesize() NBPG * CLSIZE
9701 # ifndef CLSIZE
9702 # define CLSIZE 1
9703 # endif /* no CLSIZE */
9704 # else /* no NBPG */
9705 # ifdef NBPC
9706 # define getpagesize() NBPC
9707 # else /* no NBPC */
9708 # ifdef PAGESIZE
9709 # define getpagesize() PAGESIZE
9710 # endif /* PAGESIZE */
9711 # endif /* no NBPC */
9712 # endif /* no NBPG */
9713 # endif /* no EXEC_PAGESIZE */
9714 # else /* no HAVE_SYS_PARAM_H */
9715 # define getpagesize() 8192 /* punt totally */
9716 # endif /* no HAVE_SYS_PARAM_H */
9717 # endif /* no _SC_PAGESIZE */
9719 #endif /* no HAVE_GETPAGESIZE */
9722 main ()
9724 char *data, *data2, *data3;
9725 const char *cdata2;
9726 int i, pagesize;
9727 int fd, fd2;
9729 pagesize = getpagesize ();
9731 /* First, make a file with some known garbage in it. */
9732 data = (char *) malloc (pagesize);
9733 if (!data)
9734 return 1;
9735 for (i = 0; i < pagesize; ++i)
9736 *(data + i) = rand ();
9737 umask (0);
9738 fd = creat ("conftest.mmap", 0600);
9739 if (fd < 0)
9740 return 2;
9741 if (write (fd, data, pagesize) != pagesize)
9742 return 3;
9743 close (fd);
9745 /* Next, check that the tail of a page is zero-filled. File must have
9746 non-zero length, otherwise we risk SIGBUS for entire page. */
9747 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
9748 if (fd2 < 0)
9749 return 4;
9750 cdata2 = "";
9751 if (write (fd2, cdata2, 1) != 1)
9752 return 5;
9753 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
9754 if (data2 == MAP_FAILED)
9755 return 6;
9756 for (i = 0; i < pagesize; ++i)
9757 if (*(data2 + i))
9758 return 7;
9759 close (fd2);
9760 if (munmap (data2, pagesize))
9761 return 8;
9763 /* Next, try to mmap the file at a fixed address which already has
9764 something else allocated at it. If we can, also make sure that
9765 we see the same garbage. */
9766 fd = open ("conftest.mmap", O_RDWR);
9767 if (fd < 0)
9768 return 9;
9769 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9770 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9771 return 10;
9772 for (i = 0; i < pagesize; ++i)
9773 if (*(data + i) != *(data2 + i))
9774 return 11;
9776 /* Finally, make sure that changes to the mapped area do not
9777 percolate back to the file as seen by read(). (This is a bug on
9778 some variants of i386 svr4.0.) */
9779 for (i = 0; i < pagesize; ++i)
9780 *(data2 + i) = *(data2 + i) + 1;
9781 data3 = (char *) malloc (pagesize);
9782 if (!data3)
9783 return 12;
9784 if (read (fd, data3, pagesize) != pagesize)
9785 return 13;
9786 for (i = 0; i < pagesize; ++i)
9787 if (*(data + i) != *(data3 + i))
9788 return 14;
9789 close (fd);
9790 return 0;
9792 _ACEOF
9793 if ac_fn_c_try_run "$LINENO"; then :
9794 ac_cv_func_mmap_fixed_mapped=yes
9795 else
9796 ac_cv_func_mmap_fixed_mapped=no
9798 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9799 conftest.$ac_objext conftest.beam conftest.$ac_ext
9803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
9804 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
9805 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9807 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
9810 rm -f conftest.mmap conftest.txt
9812 if test $use_mmap_for_buffers = yes; then
9814 $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
9816 REL_ALLOC=no
9819 LIBS="$LIBS_SYSTEM $LIBS"
9821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
9822 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
9823 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
9824 $as_echo_n "(cached) " >&6
9825 else
9826 ac_check_lib_save_LIBS=$LIBS
9827 LIBS="-ldnet $LIBS"
9828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9829 /* end confdefs.h. */
9831 /* Override any GCC internal prototype to avoid an error.
9832 Use char because int might match the return type of a GCC
9833 builtin and then its argument prototype would still apply. */
9834 #ifdef __cplusplus
9835 extern "C"
9836 #endif
9837 char dnet_ntoa ();
9839 main ()
9841 return dnet_ntoa ();
9843 return 0;
9845 _ACEOF
9846 if ac_fn_c_try_link "$LINENO"; then :
9847 ac_cv_lib_dnet_dnet_ntoa=yes
9848 else
9849 ac_cv_lib_dnet_dnet_ntoa=no
9851 rm -f core conftest.err conftest.$ac_objext \
9852 conftest$ac_exeext conftest.$ac_ext
9853 LIBS=$ac_check_lib_save_LIBS
9855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9856 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
9857 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
9858 cat >>confdefs.h <<_ACEOF
9859 #define HAVE_LIBDNET 1
9860 _ACEOF
9862 LIBS="-ldnet $LIBS"
9867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
9868 $as_echo_n "checking for main in -lXbsd... " >&6; }
9869 if test "${ac_cv_lib_Xbsd_main+set}" = set; then :
9870 $as_echo_n "(cached) " >&6
9871 else
9872 ac_check_lib_save_LIBS=$LIBS
9873 LIBS="-lXbsd $LIBS"
9874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9875 /* end confdefs.h. */
9879 main ()
9881 return main ();
9883 return 0;
9885 _ACEOF
9886 if ac_fn_c_try_link "$LINENO"; then :
9887 ac_cv_lib_Xbsd_main=yes
9888 else
9889 ac_cv_lib_Xbsd_main=no
9891 rm -f core conftest.err conftest.$ac_objext \
9892 conftest$ac_exeext conftest.$ac_ext
9893 LIBS=$ac_check_lib_save_LIBS
9895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
9896 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
9897 if test "x$ac_cv_lib_Xbsd_main" = x""yes; then :
9898 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
9902 LIB_PTHREAD=
9906 if test "$ac_cv_header_pthread_h"; then
9907 if test "$GMALLOC_OBJ" = gmalloc.o; then
9908 emacs_pthread_function=pthread_atfork
9909 else
9910 emacs_pthread_function=pthread_self
9912 as_ac_Lib=`$as_echo "ac_cv_lib_pthread_$emacs_pthread_function" | $as_tr_sh`
9913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $emacs_pthread_function in -lpthread" >&5
9914 $as_echo_n "checking for $emacs_pthread_function in -lpthread... " >&6; }
9915 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
9916 $as_echo_n "(cached) " >&6
9917 else
9918 ac_check_lib_save_LIBS=$LIBS
9919 LIBS="-lpthread $LIBS"
9920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9921 /* end confdefs.h. */
9923 /* Override any GCC internal prototype to avoid an error.
9924 Use char because int might match the return type of a GCC
9925 builtin and then its argument prototype would still apply. */
9926 #ifdef __cplusplus
9927 extern "C"
9928 #endif
9929 char $emacs_pthread_function ();
9931 main ()
9933 return $emacs_pthread_function ();
9935 return 0;
9937 _ACEOF
9938 if ac_fn_c_try_link "$LINENO"; then :
9939 eval "$as_ac_Lib=yes"
9940 else
9941 eval "$as_ac_Lib=no"
9943 rm -f core conftest.err conftest.$ac_objext \
9944 conftest$ac_exeext conftest.$ac_ext
9945 LIBS=$ac_check_lib_save_LIBS
9947 eval ac_res=\$$as_ac_Lib
9948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9949 $as_echo "$ac_res" >&6; }
9950 eval as_val=\$$as_ac_Lib
9951 if test "x$as_val" = x""yes; then :
9952 HAVE_PTHREAD=yes
9956 if test "$HAVE_PTHREAD" = yes; then
9957 case "${canonical}" in
9958 *-hpux*) ;;
9959 *) LIB_PTHREAD="-lpthread"
9960 LIBS="$LIB_PTHREAD $LIBS" ;;
9961 esac
9963 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
9968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
9969 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
9970 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then :
9971 $as_echo_n "(cached) " >&6
9972 else
9973 ac_check_lib_save_LIBS=$LIBS
9974 LIBS="-lpthreads $LIBS"
9975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9976 /* end confdefs.h. */
9978 /* Override any GCC internal prototype to avoid an error.
9979 Use char because int might match the return type of a GCC
9980 builtin and then its argument prototype would still apply. */
9981 #ifdef __cplusplus
9982 extern "C"
9983 #endif
9984 char cma_open ();
9986 main ()
9988 return cma_open ();
9990 return 0;
9992 _ACEOF
9993 if ac_fn_c_try_link "$LINENO"; then :
9994 ac_cv_lib_pthreads_cma_open=yes
9995 else
9996 ac_cv_lib_pthreads_cma_open=no
9998 rm -f core conftest.err conftest.$ac_objext \
9999 conftest$ac_exeext conftest.$ac_ext
10000 LIBS=$ac_check_lib_save_LIBS
10002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
10003 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
10004 if test "x$ac_cv_lib_pthreads_cma_open" = x""yes; then :
10005 cat >>confdefs.h <<_ACEOF
10006 #define HAVE_LIBPTHREADS 1
10007 _ACEOF
10009 LIBS="-lpthreads $LIBS"
10014 ## Note: when using cpp in s/aix4.2.h, this definition depended on
10015 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
10016 ## the system file was sourced. Hence the value of LIBS_SYSTEM
10017 ## added to LIBS in configure would never contain the pthreads part,
10018 ## but the value used in Makefiles might. FIXME?
10020 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
10021 ## be harmless on older versions of X where it happens to exist.
10022 test "$opsys" = "aix4-2" && \
10023 test $ac_cv_lib_pthreads_cma_open = yes && \
10024 LIBS_SYSTEM="$LIBS_SYSTEM -lpthreads"
10027 case ${host_os} in
10028 aix*)
10029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
10030 $as_echo_n "checking for -bbigtoc option... " >&6; }
10031 if test "${gdb_cv_bigtoc+set}" = set; then :
10032 $as_echo_n "(cached) " >&6
10033 else
10035 case $GCC in
10036 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
10037 *) gdb_cv_bigtoc=-bbigtoc ;;
10038 esac
10040 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10042 /* end confdefs.h. */
10045 main ()
10047 int i;
10049 return 0;
10051 _ACEOF
10052 if ac_fn_c_try_link "$LINENO"; then :
10054 else
10055 gdb_cv_bigtoc=
10057 rm -f core conftest.err conftest.$ac_objext \
10058 conftest$ac_exeext conftest.$ac_ext
10061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
10062 $as_echo "$gdb_cv_bigtoc" >&6; }
10064 esac
10066 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10067 # used for the tests that follow. We set them back to REAL_CFLAGS and
10068 # REAL_CPPFLAGS later on.
10070 REAL_CFLAGS="$CFLAGS"
10071 REAL_CPPFLAGS="$CPPFLAGS"
10073 if test "${HAVE_X11}" = "yes"; then
10074 DEFS="$C_SWITCH_X_SITE $DEFS"
10075 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10076 LIBS="-lX11 $LIBS"
10077 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10078 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10080 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10081 # This is handled by LD_SWITCH_X_SITE_RPATH during the real build,
10082 # but it's more convenient here to set LD_RUN_PATH since this
10083 # also works on hosts that don't understand LD_SWITCH_X_SITE_RPATH.
10084 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10085 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10086 export LD_RUN_PATH
10089 if test "${opsys}" = "gnu-linux"; then
10090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
10091 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
10092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10093 /* end confdefs.h. */
10096 main ()
10098 XOpenDisplay ("foo");
10100 return 0;
10102 _ACEOF
10103 if ac_fn_c_try_link "$LINENO"; then :
10104 xgnu_linux_first_failure=no
10105 else
10106 xgnu_linux_first_failure=yes
10108 rm -f core conftest.err conftest.$ac_objext \
10109 conftest$ac_exeext conftest.$ac_ext
10110 if test "${xgnu_linux_first_failure}" = "yes"; then
10111 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
10112 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
10113 OLD_CPPFLAGS="$CPPFLAGS"
10114 OLD_LIBS="$LIBS"
10115 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
10116 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
10117 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
10118 LIBS="$LIBS -b i486-linuxaout"
10119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10120 /* end confdefs.h. */
10123 main ()
10125 XOpenDisplay ("foo");
10127 return 0;
10129 _ACEOF
10130 if ac_fn_c_try_link "$LINENO"; then :
10131 xgnu_linux_second_failure=no
10132 else
10133 xgnu_linux_second_failure=yes
10135 rm -f core conftest.err conftest.$ac_objext \
10136 conftest$ac_exeext conftest.$ac_ext
10137 if test "${xgnu_linux_second_failure}" = "yes"; then
10138 # If we get the same failure with -b, there is no use adding -b.
10139 # So take it out. This plays safe.
10140 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10141 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10142 CPPFLAGS="$OLD_CPPFLAGS"
10143 LIBS="$OLD_LIBS"
10144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10145 $as_echo "no" >&6; }
10146 else
10147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10148 $as_echo "yes" >&6; }
10150 else
10151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10152 $as_echo "no" >&6; }
10156 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10157 # header files included from there.
10158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
10159 $as_echo_n "checking for Xkb... " >&6; }
10160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10161 /* end confdefs.h. */
10162 #include <X11/Xlib.h>
10163 #include <X11/XKBlib.h>
10165 main ()
10167 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10169 return 0;
10171 _ACEOF
10172 if ac_fn_c_try_link "$LINENO"; then :
10173 emacs_xkb=yes
10174 else
10175 emacs_xkb=no
10177 rm -f core conftest.err conftest.$ac_objext \
10178 conftest$ac_exeext conftest.$ac_ext
10179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
10180 $as_echo "$emacs_xkb" >&6; }
10181 if test $emacs_xkb = yes; then
10183 $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
10187 for ac_func in XrmSetDatabase XScreenResourceString \
10188 XScreenNumberOfScreen
10189 do :
10190 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10191 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10192 eval as_val=\$$as_ac_var
10193 if test "x$as_val" = x""yes; then :
10194 cat >>confdefs.h <<_ACEOF
10195 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10196 _ACEOF
10199 done
10203 if test "${window_system}" = "x11"; then
10204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
10205 $as_echo_n "checking X11 version 6... " >&6; }
10206 if test "${emacs_cv_x11_version_6+set}" = set; then :
10207 $as_echo_n "(cached) " >&6
10208 else
10209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10210 /* end confdefs.h. */
10211 #include <X11/Xlib.h>
10213 main ()
10215 #if XlibSpecificationRelease < 6
10216 fail;
10217 #endif
10220 return 0;
10222 _ACEOF
10223 if ac_fn_c_try_link "$LINENO"; then :
10224 emacs_cv_x11_version_6=yes
10225 else
10226 emacs_cv_x11_version_6=no
10228 rm -f core conftest.err conftest.$ac_objext \
10229 conftest$ac_exeext conftest.$ac_ext
10232 if test $emacs_cv_x11_version_6 = yes; then
10233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
10234 $as_echo "6 or newer" >&6; }
10236 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
10239 $as_echo "#define HAVE_X_I18N 1" >>confdefs.h
10241 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
10242 ## XIM support.
10243 case "$opsys" in
10244 sol2-*) : ;;
10246 $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
10249 esac
10250 else
10251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
10252 $as_echo "before 6" >&6; }
10257 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
10258 HAVE_RSVG=no
10259 if test "${HAVE_X11}" = "yes" || test "${HAVE_NS}" = "yes"; then
10260 if test "${with_rsvg}" != "no"; then
10261 RSVG_REQUIRED=2.11.0
10262 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
10265 succeeded=no
10267 if test "$PKG_CONFIG" = "no" ; then
10269 else
10270 PKG_CONFIG_MIN_VERSION=0.9.0
10271 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
10273 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
10275 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5 &&
10276 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE" 2>&5` &&
10277 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE" 2>&5`; then
10278 edit_cflags="
10279 s,///*,/,g
10280 s/^/ /
10281 s/ -I/ $isystem/g
10282 s/^ //
10284 RSVG_CFLAGS=`$as_echo "$RSVG_CFLAGS" | sed -e "$edit_cflags"`
10285 RSVG_LIBS=`$as_echo "$RSVG_LIBS" | sed -e 's,///*,/,g'`
10286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$RSVG_CFLAGS' LIBS='$RSVG_LIBS'" >&5
10287 $as_echo "yes CFLAGS='$RSVG_CFLAGS' LIBS='$RSVG_LIBS'" >&6; }
10288 succeeded=yes
10289 else
10290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10291 $as_echo "no" >&6; }
10292 RSVG_CFLAGS=""
10293 RSVG_LIBS=""
10294 ## If we have a custom action on failure, don't print errors, but
10295 ## do set a variable so people can do so.
10296 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
10302 else
10303 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10304 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10308 if test $succeeded = yes; then
10309 HAVE_RSVG=yes
10310 else
10317 if test $HAVE_RSVG = yes; then
10319 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
10321 CFLAGS="$CFLAGS $RSVG_CFLAGS"
10322 LIBS="$RSVG_LIBS $LIBS"
10327 HAVE_IMAGEMAGICK=no
10328 if test "${HAVE_X11}" = "yes"; then
10329 if test "${with_imagemagick}" != "no"; then
10330 ## 6.2.8 is the earliest version known to work, but earlier versions
10331 ## might work - let us know if you find one.
10332 ## 6.0.7 does not work. See bug#7955.
10333 IMAGEMAGICK_MODULE="Wand >= 6.2.8"
10335 succeeded=no
10337 if test "$PKG_CONFIG" = "no" ; then
10339 else
10340 PKG_CONFIG_MIN_VERSION=0.9.0
10341 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
10343 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
10345 if $PKG_CONFIG --exists "$IMAGEMAGICK_MODULE" 2>&5 &&
10346 IMAGEMAGICK_CFLAGS=`$PKG_CONFIG --cflags "$IMAGEMAGICK_MODULE" 2>&5` &&
10347 IMAGEMAGICK_LIBS=`$PKG_CONFIG --libs "$IMAGEMAGICK_MODULE" 2>&5`; then
10348 edit_cflags="
10349 s,///*,/,g
10350 s/^/ /
10351 s/ -I/ $isystem/g
10352 s/^ //
10354 IMAGEMAGICK_CFLAGS=`$as_echo "$IMAGEMAGICK_CFLAGS" | sed -e "$edit_cflags"`
10355 IMAGEMAGICK_LIBS=`$as_echo "$IMAGEMAGICK_LIBS" | sed -e 's,///*,/,g'`
10356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$IMAGEMAGICK_CFLAGS' LIBS='$IMAGEMAGICK_LIBS'" >&5
10357 $as_echo "yes CFLAGS='$IMAGEMAGICK_CFLAGS' LIBS='$IMAGEMAGICK_LIBS'" >&6; }
10358 succeeded=yes
10359 else
10360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10361 $as_echo "no" >&6; }
10362 IMAGEMAGICK_CFLAGS=""
10363 IMAGEMAGICK_LIBS=""
10364 ## If we have a custom action on failure, don't print errors, but
10365 ## do set a variable so people can do so.
10366 IMAGEMAGICK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$IMAGEMAGICK_MODULE"`
10372 else
10373 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10374 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10378 if test $succeeded = yes; then
10379 HAVE_IMAGEMAGICK=yes
10380 else
10387 if test $HAVE_IMAGEMAGICK = yes; then
10389 $as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
10391 CFLAGS="$CFLAGS $IMAGEMAGICK_CFLAGS"
10392 LIBS="$IMAGEMAGICK_LIBS $LIBS"
10393 for ac_func in MagickExportImagePixels
10394 do :
10395 ac_fn_c_check_func "$LINENO" "MagickExportImagePixels" "ac_cv_func_MagickExportImagePixels"
10396 if test "x$ac_cv_func_MagickExportImagePixels" = x""yes; then :
10397 cat >>confdefs.h <<_ACEOF
10398 #define HAVE_MAGICKEXPORTIMAGEPIXELS 1
10399 _ACEOF
10402 done
10409 HAVE_GTK=no
10410 GTK_OBJ=
10411 if test "${with_gtk3}" = "yes"; then
10412 GLIB_REQUIRED=2.28
10413 GTK_REQUIRED=3.0
10414 GTK_MODULES="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10417 succeeded=no
10419 if test "$PKG_CONFIG" = "no" ; then
10420 pkg_check_gtk=no
10421 else
10422 PKG_CONFIG_MIN_VERSION=0.9.0
10423 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
10425 $as_echo_n "checking for $GTK_MODULES... " >&6; }
10427 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5 &&
10428 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES" 2>&5` &&
10429 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES" 2>&5`; then
10430 edit_cflags="
10431 s,///*,/,g
10432 s/^/ /
10433 s/ -I/ $isystem/g
10434 s/^ //
10436 GTK_CFLAGS=`$as_echo "$GTK_CFLAGS" | sed -e "$edit_cflags"`
10437 GTK_LIBS=`$as_echo "$GTK_LIBS" | sed -e 's,///*,/,g'`
10438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&5
10439 $as_echo "yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&6; }
10440 succeeded=yes
10441 else
10442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10443 $as_echo "no" >&6; }
10444 GTK_CFLAGS=""
10445 GTK_LIBS=""
10446 ## If we have a custom action on failure, don't print errors, but
10447 ## do set a variable so people can do so.
10448 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10454 else
10455 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10456 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10460 if test $succeeded = yes; then
10461 pkg_check_gtk=yes
10462 else
10463 pkg_check_gtk=no
10466 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
10467 as_fn_error "$GTK_PKG_ERRORS" "$LINENO" 5
10470 $as_echo "#define HAVE_GTK3 1" >>confdefs.h
10472 GTK_OBJ=emacsgtkfixed.o
10475 if test "$pkg_check_gtk" != "yes"; then
10476 HAVE_GTK=no
10477 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
10478 GLIB_REQUIRED=2.10
10479 GTK_REQUIRED=2.10
10480 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10483 succeeded=no
10485 if test "$PKG_CONFIG" = "no" ; then
10486 pkg_check_gtk=no
10487 else
10488 PKG_CONFIG_MIN_VERSION=0.9.0
10489 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
10491 $as_echo_n "checking for $GTK_MODULES... " >&6; }
10493 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5 &&
10494 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES" 2>&5` &&
10495 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES" 2>&5`; then
10496 edit_cflags="
10497 s,///*,/,g
10498 s/^/ /
10499 s/ -I/ $isystem/g
10500 s/^ //
10502 GTK_CFLAGS=`$as_echo "$GTK_CFLAGS" | sed -e "$edit_cflags"`
10503 GTK_LIBS=`$as_echo "$GTK_LIBS" | sed -e 's,///*,/,g'`
10504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&5
10505 $as_echo "yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&6; }
10506 succeeded=yes
10507 else
10508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10509 $as_echo "no" >&6; }
10510 GTK_CFLAGS=""
10511 GTK_LIBS=""
10512 ## If we have a custom action on failure, don't print errors, but
10513 ## do set a variable so people can do so.
10514 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10520 else
10521 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10522 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10526 if test $succeeded = yes; then
10527 pkg_check_gtk=yes
10528 else
10529 pkg_check_gtk=no
10532 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
10533 as_fn_error "$GTK_PKG_ERRORS" "$LINENO" 5
10538 if test x"$pkg_check_gtk" = xyes; then
10542 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
10543 CFLAGS="$CFLAGS $GTK_CFLAGS"
10544 LIBS="$GTK_LIBS $LIBS"
10545 GTK_COMPILES=no
10546 for ac_func in gtk_main
10547 do :
10548 ac_fn_c_check_func "$LINENO" "gtk_main" "ac_cv_func_gtk_main"
10549 if test "x$ac_cv_func_gtk_main" = x""yes; then :
10550 cat >>confdefs.h <<_ACEOF
10551 #define HAVE_GTK_MAIN 1
10552 _ACEOF
10553 GTK_COMPILES=yes
10555 done
10557 if test "${GTK_COMPILES}" != "yes"; then
10558 if test "$USE_X_TOOLKIT" != "maybe"; then
10559 as_fn_error "Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
10561 else
10562 HAVE_GTK=yes
10564 $as_echo "#define USE_GTK 1" >>confdefs.h
10566 GTK_OBJ="gtkutil.o $GTK_OBJ"
10567 USE_X_TOOLKIT=none
10568 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
10570 else
10571 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
10572 closing open displays. This is no problem if you just use
10573 one display, but if you use more than one and close one of them
10574 Emacs may crash." >&5
10575 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
10576 closing open displays. This is no problem if you just use
10577 one display, but if you use more than one and close one of them
10578 Emacs may crash." >&2;}
10579 sleep 3
10587 if test "${HAVE_GTK}" = "yes"; then
10589 if test "$with_toolkit_scroll_bars" != no; then
10590 with_toolkit_scroll_bars=yes
10593 HAVE_GTK_FILE_SELECTION=no
10594 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
10595 #include <gtk/gtk.h>
10597 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x""yes; then :
10598 HAVE_GTK_FILE_SELECTION=yes
10599 else
10600 HAVE_GTK_FILE_SELECTION=no
10603 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
10604 for ac_func in gtk_file_selection_new
10605 do :
10606 ac_fn_c_check_func "$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
10607 if test "x$ac_cv_func_gtk_file_selection_new" = x""yes; then :
10608 cat >>confdefs.h <<_ACEOF
10609 #define HAVE_GTK_FILE_SELECTION_NEW 1
10610 _ACEOF
10613 done
10618 for ac_func in gtk_widget_get_window gtk_widget_set_has_window \
10619 gtk_dialog_get_action_area gtk_widget_get_sensitive \
10620 gtk_widget_get_mapped gtk_adjustment_get_page_size \
10621 gtk_orientable_set_orientation \
10622 gtk_window_set_has_resize_grip
10623 do :
10624 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10625 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10626 eval as_val=\$$as_ac_var
10627 if test "x$as_val" = x""yes; then :
10628 cat >>confdefs.h <<_ACEOF
10629 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10630 _ACEOF
10633 done
10637 HAVE_DBUS=no
10638 DBUS_OBJ=
10639 if test "${with_dbus}" = "yes"; then
10641 succeeded=no
10643 if test "$PKG_CONFIG" = "no" ; then
10644 HAVE_DBUS=no
10645 else
10646 PKG_CONFIG_MIN_VERSION=0.9.0
10647 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
10649 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
10651 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5 &&
10652 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0" 2>&5` &&
10653 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0" 2>&5`; then
10654 edit_cflags="
10655 s,///*,/,g
10656 s/^/ /
10657 s/ -I/ $isystem/g
10658 s/^ //
10660 DBUS_CFLAGS=`$as_echo "$DBUS_CFLAGS" | sed -e "$edit_cflags"`
10661 DBUS_LIBS=`$as_echo "$DBUS_LIBS" | sed -e 's,///*,/,g'`
10662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$DBUS_CFLAGS' LIBS='$DBUS_LIBS'" >&5
10663 $as_echo "yes CFLAGS='$DBUS_CFLAGS' LIBS='$DBUS_LIBS'" >&6; }
10664 succeeded=yes
10665 else
10666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10667 $as_echo "no" >&6; }
10668 DBUS_CFLAGS=""
10669 DBUS_LIBS=""
10670 ## If we have a custom action on failure, don't print errors, but
10671 ## do set a variable so people can do so.
10672 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
10678 else
10679 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10680 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10684 if test $succeeded = yes; then
10685 HAVE_DBUS=yes
10686 else
10687 HAVE_DBUS=no
10690 if test "$HAVE_DBUS" = yes; then
10691 LIBS="$LIBS $DBUS_LIBS"
10693 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
10695 for ac_func in dbus_watch_get_unix_fd \
10696 dbus_validate_bus_name \
10697 dbus_validate_path \
10698 dbus_validate_interface \
10699 dbus_validate_member
10700 do :
10701 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10702 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10703 eval as_val=\$$as_ac_var
10704 if test "x$as_val" = x""yes; then :
10705 cat >>confdefs.h <<_ACEOF
10706 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10707 _ACEOF
10710 done
10712 DBUS_OBJ=dbusbind.o
10717 HAVE_GSETTINGS=no
10718 if test "${HAVE_X11}" = "yes" && test "${with_gsettings}" = "yes"; then
10720 succeeded=no
10722 if test "$PKG_CONFIG" = "no" ; then
10723 HAVE_GSETTINGS=no
10724 else
10725 PKG_CONFIG_MIN_VERSION=0.9.0
10726 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gio-2.0 >= 2.26" >&5
10728 $as_echo_n "checking for gio-2.0 >= 2.26... " >&6; }
10730 if $PKG_CONFIG --exists "gio-2.0 >= 2.26" 2>&5 &&
10731 GSETTINGS_CFLAGS=`$PKG_CONFIG --cflags "gio-2.0 >= 2.26" 2>&5` &&
10732 GSETTINGS_LIBS=`$PKG_CONFIG --libs "gio-2.0 >= 2.26" 2>&5`; then
10733 edit_cflags="
10734 s,///*,/,g
10735 s/^/ /
10736 s/ -I/ $isystem/g
10737 s/^ //
10739 GSETTINGS_CFLAGS=`$as_echo "$GSETTINGS_CFLAGS" | sed -e "$edit_cflags"`
10740 GSETTINGS_LIBS=`$as_echo "$GSETTINGS_LIBS" | sed -e 's,///*,/,g'`
10741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GSETTINGS_CFLAGS' LIBS='$GSETTINGS_LIBS'" >&5
10742 $as_echo "yes CFLAGS='$GSETTINGS_CFLAGS' LIBS='$GSETTINGS_LIBS'" >&6; }
10743 succeeded=yes
10744 else
10745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10746 $as_echo "no" >&6; }
10747 GSETTINGS_CFLAGS=""
10748 GSETTINGS_LIBS=""
10749 ## If we have a custom action on failure, don't print errors, but
10750 ## do set a variable so people can do so.
10751 GSETTINGS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gio-2.0 >= 2.26"`
10757 else
10758 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10759 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10763 if test $succeeded = yes; then
10764 HAVE_GSETTINGS=yes
10765 else
10766 HAVE_GSETTINGS=no
10769 if test "$HAVE_GSETTINGS" = "yes"; then
10771 $as_echo "#define HAVE_GSETTINGS 1" >>confdefs.h
10773 SETTINGS_CFLAGS="$GSETTINGS_CFLAGS"
10774 SETTINGS_LIBS="$GSETTINGS_LIBS"
10778 HAVE_GCONF=no
10779 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
10781 succeeded=no
10783 if test "$PKG_CONFIG" = "no" ; then
10784 HAVE_GCONF=no
10785 else
10786 PKG_CONFIG_MIN_VERSION=0.9.0
10787 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
10789 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
10791 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5 &&
10792 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13" 2>&5` &&
10793 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13" 2>&5`; then
10794 edit_cflags="
10795 s,///*,/,g
10796 s/^/ /
10797 s/ -I/ $isystem/g
10798 s/^ //
10800 GCONF_CFLAGS=`$as_echo "$GCONF_CFLAGS" | sed -e "$edit_cflags"`
10801 GCONF_LIBS=`$as_echo "$GCONF_LIBS" | sed -e 's,///*,/,g'`
10802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GCONF_CFLAGS' LIBS='$GCONF_LIBS'" >&5
10803 $as_echo "yes CFLAGS='$GCONF_CFLAGS' LIBS='$GCONF_LIBS'" >&6; }
10804 succeeded=yes
10805 else
10806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10807 $as_echo "no" >&6; }
10808 GCONF_CFLAGS=""
10809 GCONF_LIBS=""
10810 ## If we have a custom action on failure, don't print errors, but
10811 ## do set a variable so people can do so.
10812 GCONF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
10818 else
10819 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10820 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10824 if test $succeeded = yes; then
10825 HAVE_GCONF=yes
10826 else
10827 HAVE_GCONF=no
10830 if test "$HAVE_GCONF" = yes; then
10832 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
10834 SETTINGS_CFLAGS="$SETTINGS_CFLAGS $GCONF_CFLAGS"
10835 SETTINGS_LIBS="$SETTINGS_LIBS $GCONF_LIBS"
10839 if test "$HAVE_GSETTINGS" = "yes" || test "$HAVE_GCONF" = "yes"; then
10840 SAVE_CFLAGS="$CFLAGS"
10841 SAVE_LIBS="$LIBS"
10842 CFLAGS="$SETTINGS_CFLAGS $CFLAGS"
10843 LIBS="$SETTINGS_LIBS $LIBS"
10844 for ac_func in g_type_init
10845 do :
10846 ac_fn_c_check_func "$LINENO" "g_type_init" "ac_cv_func_g_type_init"
10847 if test "x$ac_cv_func_g_type_init" = x""yes; then :
10848 cat >>confdefs.h <<_ACEOF
10849 #define HAVE_G_TYPE_INIT 1
10850 _ACEOF
10853 done
10855 CFLAGS="$SAVE_CFLAGS"
10856 LIBS="$SAVE_LIBS"
10862 HAVE_LIBSELINUX=no
10863 LIBSELINUX_LIBS=
10864 if test "${with_selinux}" = "yes"; then
10865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
10866 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
10867 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then :
10868 $as_echo_n "(cached) " >&6
10869 else
10870 ac_check_lib_save_LIBS=$LIBS
10871 LIBS="-lselinux $LIBS"
10872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10873 /* end confdefs.h. */
10875 /* Override any GCC internal prototype to avoid an error.
10876 Use char because int might match the return type of a GCC
10877 builtin and then its argument prototype would still apply. */
10878 #ifdef __cplusplus
10879 extern "C"
10880 #endif
10881 char lgetfilecon ();
10883 main ()
10885 return lgetfilecon ();
10887 return 0;
10889 _ACEOF
10890 if ac_fn_c_try_link "$LINENO"; then :
10891 ac_cv_lib_selinux_lgetfilecon=yes
10892 else
10893 ac_cv_lib_selinux_lgetfilecon=no
10895 rm -f core conftest.err conftest.$ac_objext \
10896 conftest$ac_exeext conftest.$ac_ext
10897 LIBS=$ac_check_lib_save_LIBS
10899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
10900 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
10901 if test "x$ac_cv_lib_selinux_lgetfilecon" = x""yes; then :
10902 HAVE_LIBSELINUX=yes
10903 else
10904 HAVE_LIBSELINUX=no
10907 if test "$HAVE_LIBSELINUX" = yes; then
10909 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
10911 LIBSELINUX_LIBS=-lselinux
10916 HAVE_GNUTLS=no
10917 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY=no
10918 if test "${with_gnutls}" = "yes" ; then
10920 succeeded=no
10922 if test "$PKG_CONFIG" = "no" ; then
10923 HAVE_GNUTLS=no
10924 else
10925 PKG_CONFIG_MIN_VERSION=0.9.0
10926 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.6.6" >&5
10928 $as_echo_n "checking for gnutls >= 2.6.6... " >&6; }
10930 if $PKG_CONFIG --exists "gnutls >= 2.6.6" 2>&5 &&
10931 LIBGNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls >= 2.6.6" 2>&5` &&
10932 LIBGNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls >= 2.6.6" 2>&5`; then
10933 edit_cflags="
10934 s,///*,/,g
10935 s/^/ /
10936 s/ -I/ $isystem/g
10937 s/^ //
10939 LIBGNUTLS_CFLAGS=`$as_echo "$LIBGNUTLS_CFLAGS" | sed -e "$edit_cflags"`
10940 LIBGNUTLS_LIBS=`$as_echo "$LIBGNUTLS_LIBS" | sed -e 's,///*,/,g'`
10941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBGNUTLS_CFLAGS' LIBS='$LIBGNUTLS_LIBS'" >&5
10942 $as_echo "yes CFLAGS='$LIBGNUTLS_CFLAGS' LIBS='$LIBGNUTLS_LIBS'" >&6; }
10943 succeeded=yes
10944 else
10945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10946 $as_echo "no" >&6; }
10947 LIBGNUTLS_CFLAGS=""
10948 LIBGNUTLS_LIBS=""
10949 ## If we have a custom action on failure, don't print errors, but
10950 ## do set a variable so people can do so.
10951 LIBGNUTLS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnutls >= 2.6.6"`
10957 else
10958 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10959 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10963 if test $succeeded = yes; then
10964 HAVE_GNUTLS=yes
10965 else
10966 HAVE_GNUTLS=no
10969 if test "${HAVE_GNUTLS}" = "yes"; then
10971 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
10975 CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
10976 LIBS="$LIBGNUTLS_LIBS $LIBS"
10977 for ac_func in gnutls_certificate_set_verify_function
10978 do :
10979 ac_fn_c_check_func "$LINENO" "gnutls_certificate_set_verify_function" "ac_cv_func_gnutls_certificate_set_verify_function"
10980 if test "x$ac_cv_func_gnutls_certificate_set_verify_function" = x""yes; then :
10981 cat >>confdefs.h <<_ACEOF
10982 #define HAVE_GNUTLS_CERTIFICATE_SET_VERIFY_FUNCTION 1
10983 _ACEOF
10984 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY=yes
10986 done
10989 if test "${HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY}" = "yes"; then
10991 $as_echo "#define HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY 1" >>confdefs.h
10999 HAVE_XAW3D=no
11000 LUCID_LIBW=
11001 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
11002 if test "$with_xaw3d" != no; then
11003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
11004 $as_echo_n "checking for xaw3d... " >&6; }
11005 if test "${emacs_cv_xaw3d+set}" = set; then :
11006 $as_echo_n "(cached) " >&6
11007 else
11008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11009 /* end confdefs.h. */
11011 #include <X11/Intrinsic.h>
11012 #include <X11/Xaw3d/Simple.h>
11014 main ()
11018 return 0;
11020 _ACEOF
11021 if ac_fn_c_try_link "$LINENO"; then :
11022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XawScrollbarSetThumb in -lXaw3d" >&5
11023 $as_echo_n "checking for XawScrollbarSetThumb in -lXaw3d... " >&6; }
11024 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then :
11025 $as_echo_n "(cached) " >&6
11026 else
11027 ac_check_lib_save_LIBS=$LIBS
11028 LIBS="-lXaw3d $LIBS"
11029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11030 /* end confdefs.h. */
11032 /* Override any GCC internal prototype to avoid an error.
11033 Use char because int might match the return type of a GCC
11034 builtin and then its argument prototype would still apply. */
11035 #ifdef __cplusplus
11036 extern "C"
11037 #endif
11038 char XawScrollbarSetThumb ();
11040 main ()
11042 return XawScrollbarSetThumb ();
11044 return 0;
11046 _ACEOF
11047 if ac_fn_c_try_link "$LINENO"; then :
11048 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
11049 else
11050 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
11052 rm -f core conftest.err conftest.$ac_objext \
11053 conftest$ac_exeext conftest.$ac_ext
11054 LIBS=$ac_check_lib_save_LIBS
11056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
11057 $as_echo "$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
11058 if test "x$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" = x""yes; then :
11059 emacs_cv_xaw3d=yes
11060 else
11061 emacs_cv_xaw3d=no
11064 else
11065 emacs_cv_xaw3d=no
11067 rm -f core conftest.err conftest.$ac_objext \
11068 conftest$ac_exeext conftest.$ac_ext
11071 else
11072 emacs_cv_xaw3d=no
11074 if test $emacs_cv_xaw3d = yes; then
11075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
11076 $as_echo "yes; using Lucid toolkit" >&6; }
11077 USE_X_TOOLKIT=LUCID
11078 HAVE_XAW3D=yes
11079 LUCID_LIBW=-lXaw3d
11081 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
11083 else
11084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11085 $as_echo "no" >&6; }
11086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
11087 $as_echo_n "checking for libXaw... " >&6; }
11088 if test "${emacs_cv_xaw+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/Xaw/Simple.h>
11097 main ()
11101 return 0;
11103 _ACEOF
11104 if ac_fn_c_try_link "$LINENO"; then :
11105 emacs_cv_xaw=yes
11106 else
11107 emacs_cv_xaw=no
11109 rm -f core conftest.err conftest.$ac_objext \
11110 conftest$ac_exeext conftest.$ac_ext
11113 if test $emacs_cv_xaw = yes; then
11114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
11115 $as_echo "yes; using Lucid toolkit" >&6; }
11116 USE_X_TOOLKIT=LUCID
11117 LUCID_LIBW=-lXaw
11118 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
11119 as_fn_error "Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
11120 else
11121 as_fn_error "No X toolkit could be found.
11122 If you are sure you want Emacs compiled without an X toolkit, pass
11123 --with-x-toolkit=no
11124 to configure. Otherwise, install the development libraries for the toolkit
11125 that you want to use (e.g. Gtk+) and re-run configure." "$LINENO" 5
11130 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
11132 LIBXTR6=
11133 if test "${USE_X_TOOLKIT}" != "none"; then
11134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
11135 $as_echo_n "checking X11 toolkit version... " >&6; }
11136 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then :
11137 $as_echo_n "(cached) " >&6
11138 else
11139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11140 /* end confdefs.h. */
11141 #include <X11/Intrinsic.h>
11143 main ()
11145 #if XtSpecificationRelease < 6
11146 fail;
11147 #endif
11150 return 0;
11152 _ACEOF
11153 if ac_fn_c_try_link "$LINENO"; then :
11154 emacs_cv_x11_toolkit_version_6=yes
11155 else
11156 emacs_cv_x11_toolkit_version_6=no
11158 rm -f core conftest.err conftest.$ac_objext \
11159 conftest$ac_exeext conftest.$ac_ext
11162 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
11163 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
11165 $as_echo "6 or newer" >&6; }
11167 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
11169 LIBXTR6="-lSM -lICE"
11170 case "$opsys" in
11171 ## Use libw.a along with X11R6 Xt.
11172 unixware) LIBXTR6="$LIBXTR6 -lw" ;;
11173 esac
11174 else
11175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
11176 $as_echo "before 6" >&6; }
11179 OLDLIBS="$LIBS"
11180 if test x$HAVE_X11XTR6 = xyes; then
11181 LIBS="-lXt -lSM -lICE $LIBS"
11182 else
11183 LIBS="-lXt $LIBS"
11185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
11186 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
11187 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then :
11188 $as_echo_n "(cached) " >&6
11189 else
11190 ac_check_lib_save_LIBS=$LIBS
11191 LIBS="-lXmu $LIBS"
11192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11193 /* end confdefs.h. */
11195 /* Override any GCC internal prototype to avoid an error.
11196 Use char because int might match the return type of a GCC
11197 builtin and then its argument prototype would still apply. */
11198 #ifdef __cplusplus
11199 extern "C"
11200 #endif
11201 char XmuConvertStandardSelection ();
11203 main ()
11205 return XmuConvertStandardSelection ();
11207 return 0;
11209 _ACEOF
11210 if ac_fn_c_try_link "$LINENO"; then :
11211 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
11212 else
11213 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
11215 rm -f core conftest.err conftest.$ac_objext \
11216 conftest$ac_exeext conftest.$ac_ext
11217 LIBS=$ac_check_lib_save_LIBS
11219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
11220 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
11221 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x""yes; then :
11222 cat >>confdefs.h <<_ACEOF
11223 #define HAVE_LIBXMU 1
11224 _ACEOF
11226 LIBS="-lXmu $LIBS"
11230 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
11234 LIBXMU=-lXmu
11235 case $opsys in
11236 ## These systems don't supply Xmu.
11237 hpux* | aix4-2 )
11238 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU=
11240 esac
11243 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
11244 if test "${HAVE_X11}" = "yes"; then
11245 if test "${USE_X_TOOLKIT}" != "none"; then
11246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
11247 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
11248 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
11249 $as_echo_n "(cached) " >&6
11250 else
11251 ac_check_lib_save_LIBS=$LIBS
11252 LIBS="-lXext $LIBS"
11253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11254 /* end confdefs.h. */
11256 /* Override any GCC internal prototype to avoid an error.
11257 Use char because int might match the return type of a GCC
11258 builtin and then its argument prototype would still apply. */
11259 #ifdef __cplusplus
11260 extern "C"
11261 #endif
11262 char XShapeQueryExtension ();
11264 main ()
11266 return XShapeQueryExtension ();
11268 return 0;
11270 _ACEOF
11271 if ac_fn_c_try_link "$LINENO"; then :
11272 ac_cv_lib_Xext_XShapeQueryExtension=yes
11273 else
11274 ac_cv_lib_Xext_XShapeQueryExtension=no
11276 rm -f core conftest.err conftest.$ac_objext \
11277 conftest$ac_exeext conftest.$ac_ext
11278 LIBS=$ac_check_lib_save_LIBS
11280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
11281 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
11282 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then :
11283 cat >>confdefs.h <<_ACEOF
11284 #define HAVE_LIBXEXT 1
11285 _ACEOF
11287 LIBS="-lXext $LIBS"
11294 LIBXP=
11295 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif version 2.1" >&5
11297 $as_echo_n "checking for Motif version 2.1... " >&6; }
11298 if test "${emacs_cv_motif_version_2_1+set}" = set; then :
11299 $as_echo_n "(cached) " >&6
11300 else
11301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11302 /* end confdefs.h. */
11303 #include <Xm/Xm.h>
11305 main ()
11307 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
11308 int x = 5;
11309 #else
11310 Motif version prior to 2.1.
11311 #endif
11313 return 0;
11315 _ACEOF
11316 if ac_fn_c_try_compile "$LINENO"; then :
11317 emacs_cv_motif_version_2_1=yes
11318 else
11319 emacs_cv_motif_version_2_1=no
11321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
11324 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
11325 if test $emacs_cv_motif_version_2_1 = yes; then
11326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
11327 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
11328 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then :
11329 $as_echo_n "(cached) " >&6
11330 else
11331 ac_check_lib_save_LIBS=$LIBS
11332 LIBS="-lXp $LIBS"
11333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11334 /* end confdefs.h. */
11336 /* Override any GCC internal prototype to avoid an error.
11337 Use char because int might match the return type of a GCC
11338 builtin and then its argument prototype would still apply. */
11339 #ifdef __cplusplus
11340 extern "C"
11341 #endif
11342 char XpCreateContext ();
11344 main ()
11346 return XpCreateContext ();
11348 return 0;
11350 _ACEOF
11351 if ac_fn_c_try_link "$LINENO"; then :
11352 ac_cv_lib_Xp_XpCreateContext=yes
11353 else
11354 ac_cv_lib_Xp_XpCreateContext=no
11356 rm -f core conftest.err conftest.$ac_objext \
11357 conftest$ac_exeext conftest.$ac_ext
11358 LIBS=$ac_check_lib_save_LIBS
11360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
11361 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
11362 if test "x$ac_cv_lib_Xp_XpCreateContext" = x""yes; then :
11363 LIBXP=-lXp
11366 else
11367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
11368 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
11369 if test "${emacs_cv_lesstif+set}" = set; then :
11370 $as_echo_n "(cached) " >&6
11371 else
11372 # We put this in CFLAGS temporarily to precede other -I options
11373 # that might be in CFLAGS temporarily.
11374 # We put this in CPPFLAGS where it precedes the other -I options.
11375 OLD_CPPFLAGS=$CPPFLAGS
11376 OLD_CFLAGS=$CFLAGS
11377 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
11378 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
11379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11380 /* end confdefs.h. */
11381 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
11383 main ()
11385 int x = 5;
11387 return 0;
11389 _ACEOF
11390 if ac_fn_c_try_compile "$LINENO"; then :
11391 emacs_cv_lesstif=yes
11392 else
11393 emacs_cv_lesstif=no
11395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
11398 $as_echo "$emacs_cv_lesstif" >&6; }
11399 if test $emacs_cv_lesstif = yes; then
11400 # Make sure this -I option remains in CPPFLAGS after it is set
11401 # back to REAL_CPPFLAGS.
11402 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
11403 # have those other -I options anyway. Ultimately, having this
11404 # directory ultimately in CPPFLAGS will be enough.
11405 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
11406 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
11407 else
11408 CFLAGS=$OLD_CFLAGS
11409 CPPFLAGS=$OLD_CPPFLAGS
11412 ac_fn_c_check_header_mongrel "$LINENO" "Xm/BulletinB.h" "ac_cv_header_Xm_BulletinB_h" "$ac_includes_default"
11413 if test "x$ac_cv_header_Xm_BulletinB_h" = x""yes; then :
11415 else
11416 as_fn_error "Motif toolkit requested but requirements not found." "$LINENO" 5
11423 USE_TOOLKIT_SCROLL_BARS=no
11424 if test "${with_toolkit_scroll_bars}" != "no"; then
11425 if test "${USE_X_TOOLKIT}" != "none"; then
11426 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11427 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11429 HAVE_XAW3D=no
11430 USE_TOOLKIT_SCROLL_BARS=yes
11431 elif test "${HAVE_XAW3D}" = "yes" || test "${USE_X_TOOLKIT}" = "LUCID"; then
11432 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11434 USE_TOOLKIT_SCROLL_BARS=yes
11436 elif test "${HAVE_GTK}" = "yes"; then
11437 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11439 USE_TOOLKIT_SCROLL_BARS=yes
11440 elif test "${HAVE_NS}" = "yes"; then
11441 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11443 USE_TOOLKIT_SCROLL_BARS=yes
11447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11448 /* end confdefs.h. */
11450 #include <X11/Xlib.h>
11451 #include <X11/Xresource.h>
11453 main ()
11455 XIMProc callback;
11457 return 0;
11459 _ACEOF
11460 if ac_fn_c_try_compile "$LINENO"; then :
11461 HAVE_XIM=yes
11463 $as_echo "#define HAVE_XIM 1" >>confdefs.h
11465 else
11466 HAVE_XIM=no
11468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11471 if test "${with_xim}" != "no"; then
11473 $as_echo "#define USE_XIM 1" >>confdefs.h
11478 if test "${HAVE_XIM}" != "no"; then
11479 late_CFLAGS=$CFLAGS
11480 if test "$GCC" = yes; then
11481 CFLAGS="$CFLAGS --pedantic-errors"
11483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11484 /* end confdefs.h. */
11486 #include <X11/Xlib.h>
11487 #include <X11/Xresource.h>
11489 main ()
11491 Display *display;
11492 XrmDatabase db;
11493 char *res_name;
11494 char *res_class;
11495 XIMProc callback;
11496 XPointer *client_data;
11497 #ifndef __GNUC__
11498 /* If we're not using GCC, it's probably not XFree86, and this is
11499 probably right, but we can't use something like --pedantic-errors. */
11500 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
11501 char*, XIMProc, XPointer*);
11502 #endif
11503 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
11504 client_data);
11506 return 0;
11508 _ACEOF
11509 if ac_fn_c_try_compile "$LINENO"; then :
11510 emacs_cv_arg6_star=yes
11512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11513 if test "$emacs_cv_arg6_star" = yes; then
11514 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
11516 else
11517 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
11520 CFLAGS=$late_CFLAGS
11523 ### Start of font-backend (under any platform) section.
11524 # (nothing here yet -- this is a placeholder)
11525 ### End of font-backend (under any platform) section.
11527 ### Start of font-backend (under X11) section.
11528 if test "${HAVE_X11}" = "yes"; then
11530 succeeded=no
11532 if test "$PKG_CONFIG" = "no" ; then
11533 HAVE_FC=no
11534 else
11535 PKG_CONFIG_MIN_VERSION=0.9.0
11536 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
11538 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
11540 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5 &&
11541 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0" 2>&5` &&
11542 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0" 2>&5`; then
11543 edit_cflags="
11544 s,///*,/,g
11545 s/^/ /
11546 s/ -I/ $isystem/g
11547 s/^ //
11549 FONTCONFIG_CFLAGS=`$as_echo "$FONTCONFIG_CFLAGS" | sed -e "$edit_cflags"`
11550 FONTCONFIG_LIBS=`$as_echo "$FONTCONFIG_LIBS" | sed -e 's,///*,/,g'`
11551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$FONTCONFIG_CFLAGS' LIBS='$FONTCONFIG_LIBS'" >&5
11552 $as_echo "yes CFLAGS='$FONTCONFIG_CFLAGS' LIBS='$FONTCONFIG_LIBS'" >&6; }
11553 succeeded=yes
11554 else
11555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11556 $as_echo "no" >&6; }
11557 FONTCONFIG_CFLAGS=""
11558 FONTCONFIG_LIBS=""
11559 ## If we have a custom action on failure, don't print errors, but
11560 ## do set a variable so people can do so.
11561 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
11567 else
11568 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11569 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11573 if test $succeeded = yes; then
11574 HAVE_FC=yes
11575 else
11576 HAVE_FC=no
11580 ## Use -lXft if available, unless `--with-xft=no'.
11581 HAVE_XFT=maybe
11582 if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then
11583 with_xft="no";
11585 if test "x${with_xft}" != "xno"; then
11588 succeeded=no
11590 if test "$PKG_CONFIG" = "no" ; then
11591 HAVE_XFT=no
11592 else
11593 PKG_CONFIG_MIN_VERSION=0.9.0
11594 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
11596 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
11598 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5 &&
11599 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0" 2>&5` &&
11600 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0" 2>&5`; then
11601 edit_cflags="
11602 s,///*,/,g
11603 s/^/ /
11604 s/ -I/ $isystem/g
11605 s/^ //
11607 XFT_CFLAGS=`$as_echo "$XFT_CFLAGS" | sed -e "$edit_cflags"`
11608 XFT_LIBS=`$as_echo "$XFT_LIBS" | sed -e 's,///*,/,g'`
11609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$XFT_CFLAGS' LIBS='$XFT_LIBS'" >&5
11610 $as_echo "yes CFLAGS='$XFT_CFLAGS' LIBS='$XFT_LIBS'" >&6; }
11611 succeeded=yes
11612 else
11613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11614 $as_echo "no" >&6; }
11615 XFT_CFLAGS=""
11616 XFT_LIBS=""
11617 ## If we have a custom action on failure, don't print errors, but
11618 ## do set a variable so people can do so.
11619 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
11625 else
11626 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11627 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11631 if test $succeeded = yes; then
11633 else
11634 HAVE_XFT=no
11637 ## Because xftfont.c uses XRenderQueryExtension, we also
11638 ## need to link to -lXrender.
11639 HAVE_XRENDER=no
11640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
11641 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
11642 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
11643 $as_echo_n "(cached) " >&6
11644 else
11645 ac_check_lib_save_LIBS=$LIBS
11646 LIBS="-lXrender $LIBS"
11647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11648 /* end confdefs.h. */
11650 /* Override any GCC internal prototype to avoid an error.
11651 Use char because int might match the return type of a GCC
11652 builtin and then its argument prototype would still apply. */
11653 #ifdef __cplusplus
11654 extern "C"
11655 #endif
11656 char XRenderQueryExtension ();
11658 main ()
11660 return XRenderQueryExtension ();
11662 return 0;
11664 _ACEOF
11665 if ac_fn_c_try_link "$LINENO"; then :
11666 ac_cv_lib_Xrender_XRenderQueryExtension=yes
11667 else
11668 ac_cv_lib_Xrender_XRenderQueryExtension=no
11670 rm -f core conftest.err conftest.$ac_objext \
11671 conftest$ac_exeext conftest.$ac_ext
11672 LIBS=$ac_check_lib_save_LIBS
11674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
11675 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
11676 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x""yes; then :
11677 HAVE_XRENDER=yes
11680 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
11681 OLD_CPPFLAGS="$CPPFLAGS"
11682 OLD_CFLAGS="$CFLAGS"
11683 OLD_LIBS="$LIBS"
11684 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
11685 CFLAGS="$CFLAGS $XFT_CFLAGS"
11686 XFT_LIBS="-lXrender $XFT_LIBS"
11687 LIBS="$XFT_LIBS $LIBS"
11688 ac_fn_c_check_header_mongrel "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
11689 if test "x$ac_cv_header_X11_Xft_Xft_h" = x""yes; then :
11690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
11691 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
11692 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then :
11693 $as_echo_n "(cached) " >&6
11694 else
11695 ac_check_lib_save_LIBS=$LIBS
11696 LIBS="-lXft $XFT_LIBS $LIBS"
11697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11698 /* end confdefs.h. */
11700 /* Override any GCC internal prototype to avoid an error.
11701 Use char because int might match the return type of a GCC
11702 builtin and then its argument prototype would still apply. */
11703 #ifdef __cplusplus
11704 extern "C"
11705 #endif
11706 char XftFontOpen ();
11708 main ()
11710 return XftFontOpen ();
11712 return 0;
11714 _ACEOF
11715 if ac_fn_c_try_link "$LINENO"; then :
11716 ac_cv_lib_Xft_XftFontOpen=yes
11717 else
11718 ac_cv_lib_Xft_XftFontOpen=no
11720 rm -f core conftest.err conftest.$ac_objext \
11721 conftest$ac_exeext conftest.$ac_ext
11722 LIBS=$ac_check_lib_save_LIBS
11724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
11725 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
11726 if test "x$ac_cv_lib_Xft_XftFontOpen" = x""yes; then :
11727 HAVE_XFT=yes
11734 if test "${HAVE_XFT}" = "yes"; then
11736 $as_echo "#define HAVE_XFT 1" >>confdefs.h
11739 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
11740 else
11741 CPPFLAGS="$OLD_CPPFLAGS"
11742 CFLAGS="$OLD_CFLAGS"
11743 LIBS="$OLD_LIBS"
11744 fi # "${HAVE_XFT}" = "yes"
11745 fi # "$HAVE_XFT" != no
11746 fi # "x${with_xft}" != "xno"
11748 ## We used to allow building with FreeType and without Xft.
11749 ## However, the ftx font backend driver is not in good shape.
11750 if test "$HAVE_XFT" != "yes"; then
11751 HAVE_XFT=no
11752 HAVE_FREETYPE=no
11753 else
11755 succeeded=no
11757 if test "$PKG_CONFIG" = "no" ; then
11758 HAVE_FREETYPE=no
11759 else
11760 PKG_CONFIG_MIN_VERSION=0.9.0
11761 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype2" >&5
11763 $as_echo_n "checking for freetype2... " >&6; }
11765 if $PKG_CONFIG --exists "freetype2" 2>&5 &&
11766 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>&5` &&
11767 FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2" 2>&5`; then
11768 edit_cflags="
11769 s,///*,/,g
11770 s/^/ /
11771 s/ -I/ $isystem/g
11772 s/^ //
11774 FREETYPE_CFLAGS=`$as_echo "$FREETYPE_CFLAGS" | sed -e "$edit_cflags"`
11775 FREETYPE_LIBS=`$as_echo "$FREETYPE_LIBS" | sed -e 's,///*,/,g'`
11776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$FREETYPE_CFLAGS' LIBS='$FREETYPE_LIBS'" >&5
11777 $as_echo "yes CFLAGS='$FREETYPE_CFLAGS' LIBS='$FREETYPE_LIBS'" >&6; }
11778 succeeded=yes
11779 else
11780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11781 $as_echo "no" >&6; }
11782 FREETYPE_CFLAGS=""
11783 FREETYPE_LIBS=""
11784 ## If we have a custom action on failure, don't print errors, but
11785 ## do set a variable so people can do so.
11786 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
11792 else
11793 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11794 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11798 if test $succeeded = yes; then
11799 HAVE_FREETYPE=yes
11800 else
11801 HAVE_FREETYPE=no
11805 test "$HAVE_FREETYPE" = "no" && as_fn_error "libxft requires libfreetype" "$LINENO" 5
11808 HAVE_LIBOTF=no
11809 if test "${HAVE_FREETYPE}" = "yes"; then
11811 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
11813 if test "${with_libotf}" != "no"; then
11815 succeeded=no
11817 if test "$PKG_CONFIG" = "no" ; then
11818 HAVE_LIBOTF=no
11819 else
11820 PKG_CONFIG_MIN_VERSION=0.9.0
11821 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
11823 $as_echo_n "checking for libotf... " >&6; }
11825 if $PKG_CONFIG --exists "libotf" 2>&5 &&
11826 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf" 2>&5` &&
11827 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf" 2>&5`; then
11828 edit_cflags="
11829 s,///*,/,g
11830 s/^/ /
11831 s/ -I/ $isystem/g
11832 s/^ //
11834 LIBOTF_CFLAGS=`$as_echo "$LIBOTF_CFLAGS" | sed -e "$edit_cflags"`
11835 LIBOTF_LIBS=`$as_echo "$LIBOTF_LIBS" | sed -e 's,///*,/,g'`
11836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBOTF_CFLAGS' LIBS='$LIBOTF_LIBS'" >&5
11837 $as_echo "yes CFLAGS='$LIBOTF_CFLAGS' LIBS='$LIBOTF_LIBS'" >&6; }
11838 succeeded=yes
11839 else
11840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11841 $as_echo "no" >&6; }
11842 LIBOTF_CFLAGS=""
11843 LIBOTF_LIBS=""
11844 ## If we have a custom action on failure, don't print errors, but
11845 ## do set a variable so people can do so.
11846 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
11852 else
11853 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11854 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11858 if test $succeeded = yes; then
11859 HAVE_LIBOTF=yes
11860 else
11861 HAVE_LIBOTF=no
11864 if test "$HAVE_LIBOTF" = "yes"; then
11866 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
11868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
11869 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
11870 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then :
11871 $as_echo_n "(cached) " >&6
11872 else
11873 ac_check_lib_save_LIBS=$LIBS
11874 LIBS="-lotf $LIBS"
11875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11876 /* end confdefs.h. */
11878 /* Override any GCC internal prototype to avoid an error.
11879 Use char because int might match the return type of a GCC
11880 builtin and then its argument prototype would still apply. */
11881 #ifdef __cplusplus
11882 extern "C"
11883 #endif
11884 char OTF_get_variation_glyphs ();
11886 main ()
11888 return OTF_get_variation_glyphs ();
11890 return 0;
11892 _ACEOF
11893 if ac_fn_c_try_link "$LINENO"; then :
11894 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
11895 else
11896 ac_cv_lib_otf_OTF_get_variation_glyphs=no
11898 rm -f core conftest.err conftest.$ac_objext \
11899 conftest$ac_exeext conftest.$ac_ext
11900 LIBS=$ac_check_lib_save_LIBS
11902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
11903 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
11904 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x""yes; then :
11905 HAVE_OTF_GET_VARIATION_GLYPHS=yes
11906 else
11907 HAVE_OTF_GET_VARIATION_GLYPHS=no
11910 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
11912 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
11919 HAVE_M17N_FLT=no
11920 if test "${HAVE_LIBOTF}" = yes; then
11921 if test "${with_m17n_flt}" != "no"; then
11923 succeeded=no
11925 if test "$PKG_CONFIG" = "no" ; then
11926 HAVE_M17N_FLT=no
11927 else
11928 PKG_CONFIG_MIN_VERSION=0.9.0
11929 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
11931 $as_echo_n "checking for m17n-flt... " >&6; }
11933 if $PKG_CONFIG --exists "m17n-flt" 2>&5 &&
11934 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt" 2>&5` &&
11935 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt" 2>&5`; then
11936 edit_cflags="
11937 s,///*,/,g
11938 s/^/ /
11939 s/ -I/ $isystem/g
11940 s/^ //
11942 M17N_FLT_CFLAGS=`$as_echo "$M17N_FLT_CFLAGS" | sed -e "$edit_cflags"`
11943 M17N_FLT_LIBS=`$as_echo "$M17N_FLT_LIBS" | sed -e 's,///*,/,g'`
11944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$M17N_FLT_CFLAGS' LIBS='$M17N_FLT_LIBS'" >&5
11945 $as_echo "yes CFLAGS='$M17N_FLT_CFLAGS' LIBS='$M17N_FLT_LIBS'" >&6; }
11946 succeeded=yes
11947 else
11948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11949 $as_echo "no" >&6; }
11950 M17N_FLT_CFLAGS=""
11951 M17N_FLT_LIBS=""
11952 ## If we have a custom action on failure, don't print errors, but
11953 ## do set a variable so people can do so.
11954 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
11960 else
11961 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11962 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11966 if test $succeeded = yes; then
11967 HAVE_M17N_FLT=yes
11968 else
11969 HAVE_M17N_FLT=no
11972 if test "$HAVE_M17N_FLT" = "yes"; then
11974 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
11979 else
11980 HAVE_XFT=no
11981 HAVE_FREETYPE=no
11982 HAVE_LIBOTF=no
11983 HAVE_M17N_FLT=no
11986 ### End of font-backend (under X11) section.
11997 ### Use -lXpm if available, unless `--with-xpm=no'.
11998 HAVE_XPM=no
11999 LIBXPM=
12000 if test "${HAVE_X11}" = "yes"; then
12001 if test "${with_xpm}" != "no"; then
12002 ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
12003 if test "x$ac_cv_header_X11_xpm_h" = x""yes; then :
12004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
12005 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
12006 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then :
12007 $as_echo_n "(cached) " >&6
12008 else
12009 ac_check_lib_save_LIBS=$LIBS
12010 LIBS="-lXpm -lX11 $LIBS"
12011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12012 /* end confdefs.h. */
12014 /* Override any GCC internal prototype to avoid an error.
12015 Use char because int might match the return type of a GCC
12016 builtin and then its argument prototype would still apply. */
12017 #ifdef __cplusplus
12018 extern "C"
12019 #endif
12020 char XpmReadFileToPixmap ();
12022 main ()
12024 return XpmReadFileToPixmap ();
12026 return 0;
12028 _ACEOF
12029 if ac_fn_c_try_link "$LINENO"; then :
12030 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
12031 else
12032 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
12034 rm -f core conftest.err conftest.$ac_objext \
12035 conftest$ac_exeext conftest.$ac_ext
12036 LIBS=$ac_check_lib_save_LIBS
12038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
12039 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
12040 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x""yes; then :
12041 HAVE_XPM=yes
12047 if test "${HAVE_XPM}" = "yes"; then
12048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
12049 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
12050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12051 /* end confdefs.h. */
12052 #include "X11/xpm.h"
12053 #ifndef XpmReturnAllocPixels
12054 no_return_alloc_pixels
12055 #endif
12057 _ACEOF
12058 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12059 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then :
12060 HAVE_XPM=no
12061 else
12062 HAVE_XPM=yes
12064 rm -f conftest*
12067 if test "${HAVE_XPM}" = "yes"; then
12068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12069 $as_echo "yes" >&6; }
12070 else
12071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12072 $as_echo "no" >&6; }
12077 if test "${HAVE_XPM}" = "yes"; then
12079 $as_echo "#define HAVE_XPM 1" >>confdefs.h
12081 LIBXPM=-lXpm
12086 ### Use -ljpeg if available, unless `--with-jpeg=no'.
12087 HAVE_JPEG=no
12088 LIBJPEG=
12089 if test "${HAVE_X11}" = "yes"; then
12090 if test "${with_jpeg}" != "no"; then
12091 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
12092 if test "x$ac_cv_header_jerror_h" = x""yes; then :
12093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
12094 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
12095 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then :
12096 $as_echo_n "(cached) " >&6
12097 else
12098 ac_check_lib_save_LIBS=$LIBS
12099 LIBS="-ljpeg $LIBS"
12100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12101 /* end confdefs.h. */
12103 /* Override any GCC internal prototype to avoid an error.
12104 Use char because int might match the return type of a GCC
12105 builtin and then its argument prototype would still apply. */
12106 #ifdef __cplusplus
12107 extern "C"
12108 #endif
12109 char jpeg_destroy_compress ();
12111 main ()
12113 return jpeg_destroy_compress ();
12115 return 0;
12117 _ACEOF
12118 if ac_fn_c_try_link "$LINENO"; then :
12119 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
12120 else
12121 ac_cv_lib_jpeg_jpeg_destroy_compress=no
12123 rm -f core conftest.err conftest.$ac_objext \
12124 conftest$ac_exeext conftest.$ac_ext
12125 LIBS=$ac_check_lib_save_LIBS
12127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
12128 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
12129 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x""yes; then :
12130 HAVE_JPEG=yes
12138 if test "${HAVE_JPEG}" = "yes"; then
12139 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
12141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12142 /* end confdefs.h. */
12143 #include <jpeglib.h>
12144 version=JPEG_LIB_VERSION
12146 _ACEOF
12147 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12148 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then :
12149 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
12151 else
12152 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
12153 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
12154 HAVE_JPEG=no
12156 rm -f conftest*
12159 if test "${HAVE_JPEG}" = "yes"; then
12160 LIBJPEG=-ljpeg
12165 ### Use -lpng if available, unless `--with-png=no'.
12166 HAVE_PNG=no
12167 LIBPNG=
12168 if test "${HAVE_X11}" = "yes"; then
12169 if test "${with_png}" != "no"; then
12170 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
12171 # in /usr/include/libpng.
12172 for ac_header in png.h libpng/png.h
12173 do :
12174 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12175 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12176 eval as_val=\$$as_ac_Header
12177 if test "x$as_val" = x""yes; then :
12178 cat >>confdefs.h <<_ACEOF
12179 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12180 _ACEOF
12184 done
12186 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
12187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
12188 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
12189 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then :
12190 $as_echo_n "(cached) " >&6
12191 else
12192 ac_check_lib_save_LIBS=$LIBS
12193 LIBS="-lpng -lz -lm $LIBS"
12194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12195 /* end confdefs.h. */
12197 /* Override any GCC internal prototype to avoid an error.
12198 Use char because int might match the return type of a GCC
12199 builtin and then its argument prototype would still apply. */
12200 #ifdef __cplusplus
12201 extern "C"
12202 #endif
12203 char png_get_channels ();
12205 main ()
12207 return png_get_channels ();
12209 return 0;
12211 _ACEOF
12212 if ac_fn_c_try_link "$LINENO"; then :
12213 ac_cv_lib_png_png_get_channels=yes
12214 else
12215 ac_cv_lib_png_png_get_channels=no
12217 rm -f core conftest.err conftest.$ac_objext \
12218 conftest$ac_exeext conftest.$ac_ext
12219 LIBS=$ac_check_lib_save_LIBS
12221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
12222 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
12223 if test "x$ac_cv_lib_png_png_get_channels" = x""yes; then :
12224 HAVE_PNG=yes
12230 if test "${HAVE_PNG}" = "yes"; then
12232 $as_echo "#define HAVE_PNG 1" >>confdefs.h
12234 LIBPNG="-lpng -lz -lm"
12239 ### Use -ltiff if available, unless `--with-tiff=no'.
12240 HAVE_TIFF=no
12241 LIBTIFF=
12242 if test "${HAVE_X11}" = "yes"; then
12243 if test "${with_tiff}" != "no"; then
12244 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
12245 if test "x$ac_cv_header_tiffio_h" = x""yes; then :
12246 tifflibs="-lz -lm"
12247 # At least one tiff package requires the jpeg library.
12248 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
12249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
12250 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
12251 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then :
12252 $as_echo_n "(cached) " >&6
12253 else
12254 ac_check_lib_save_LIBS=$LIBS
12255 LIBS="-ltiff $tifflibs $LIBS"
12256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12257 /* end confdefs.h. */
12259 /* Override any GCC internal prototype to avoid an error.
12260 Use char because int might match the return type of a GCC
12261 builtin and then its argument prototype would still apply. */
12262 #ifdef __cplusplus
12263 extern "C"
12264 #endif
12265 char TIFFGetVersion ();
12267 main ()
12269 return TIFFGetVersion ();
12271 return 0;
12273 _ACEOF
12274 if ac_fn_c_try_link "$LINENO"; then :
12275 ac_cv_lib_tiff_TIFFGetVersion=yes
12276 else
12277 ac_cv_lib_tiff_TIFFGetVersion=no
12279 rm -f core conftest.err conftest.$ac_objext \
12280 conftest$ac_exeext conftest.$ac_ext
12281 LIBS=$ac_check_lib_save_LIBS
12283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
12284 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
12285 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x""yes; then :
12286 HAVE_TIFF=yes
12294 if test "${HAVE_TIFF}" = "yes"; then
12296 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
12298 LIBTIFF=-ltiff
12303 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
12304 HAVE_GIF=no
12305 LIBGIF=
12306 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
12307 ac_fn_c_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
12308 if test "x$ac_cv_header_gif_lib_h" = x""yes; then :
12309 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
12310 # Earlier versions can crash Emacs.
12311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
12312 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
12313 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then :
12314 $as_echo_n "(cached) " >&6
12315 else
12316 ac_check_lib_save_LIBS=$LIBS
12317 LIBS="-lgif $LIBS"
12318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12319 /* end confdefs.h. */
12321 /* Override any GCC internal prototype to avoid an error.
12322 Use char because int might match the return type of a GCC
12323 builtin and then its argument prototype would still apply. */
12324 #ifdef __cplusplus
12325 extern "C"
12326 #endif
12327 char EGifPutExtensionLast ();
12329 main ()
12331 return EGifPutExtensionLast ();
12333 return 0;
12335 _ACEOF
12336 if ac_fn_c_try_link "$LINENO"; then :
12337 ac_cv_lib_gif_EGifPutExtensionLast=yes
12338 else
12339 ac_cv_lib_gif_EGifPutExtensionLast=no
12341 rm -f core conftest.err conftest.$ac_objext \
12342 conftest$ac_exeext conftest.$ac_ext
12343 LIBS=$ac_check_lib_save_LIBS
12345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
12346 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
12347 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x""yes; then :
12348 HAVE_GIF=yes
12349 else
12350 HAVE_GIF=maybe
12357 if test "$HAVE_GIF" = yes; then
12358 LIBGIF=-lgif
12359 elif test "$HAVE_GIF" = maybe; then
12360 # If gif_lib.h but no libgif, try libungif.
12361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
12362 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
12363 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then :
12364 $as_echo_n "(cached) " >&6
12365 else
12366 ac_check_lib_save_LIBS=$LIBS
12367 LIBS="-lungif $LIBS"
12368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12369 /* end confdefs.h. */
12371 /* Override any GCC internal prototype to avoid an error.
12372 Use char because int might match the return type of a GCC
12373 builtin and then its argument prototype would still apply. */
12374 #ifdef __cplusplus
12375 extern "C"
12376 #endif
12377 char EGifPutExtensionLast ();
12379 main ()
12381 return EGifPutExtensionLast ();
12383 return 0;
12385 _ACEOF
12386 if ac_fn_c_try_link "$LINENO"; then :
12387 ac_cv_lib_ungif_EGifPutExtensionLast=yes
12388 else
12389 ac_cv_lib_ungif_EGifPutExtensionLast=no
12391 rm -f core conftest.err conftest.$ac_objext \
12392 conftest$ac_exeext conftest.$ac_ext
12393 LIBS=$ac_check_lib_save_LIBS
12395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
12396 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
12397 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x""yes; then :
12398 HAVE_GIF=yes
12399 else
12400 HAVE_GIF=no
12403 test "$HAVE_GIF" = yes && LIBGIF=-lungif
12406 if test "${HAVE_GIF}" = "yes"; then
12408 $as_echo "#define HAVE_GIF 1" >>confdefs.h
12414 if test "${HAVE_X11}" = "yes"; then
12415 MISSING=""
12416 WITH_NO=""
12417 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
12418 MISSING="libXpm" && WITH_NO="--with-xpm=no"
12419 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
12420 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
12421 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
12422 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
12423 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
12424 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
12425 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
12426 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
12428 if test "X${MISSING}" != X; then
12429 as_fn_error "The following required libraries were not found:
12430 $MISSING
12431 Maybe some development libraries/packages are missing?
12432 If you don't want to link with them give
12433 $WITH_NO
12434 as options to configure" "$LINENO" 5
12438 ### Use -lgpm if available, unless `--with-gpm=no'.
12439 HAVE_GPM=no
12440 LIBGPM=
12441 if test "${with_gpm}" != "no"; then
12442 ac_fn_c_check_header_mongrel "$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
12443 if test "x$ac_cv_header_gpm_h" = x""yes; then :
12444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
12445 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
12446 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then :
12447 $as_echo_n "(cached) " >&6
12448 else
12449 ac_check_lib_save_LIBS=$LIBS
12450 LIBS="-lgpm $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 Gpm_Open ();
12462 main ()
12464 return Gpm_Open ();
12466 return 0;
12468 _ACEOF
12469 if ac_fn_c_try_link "$LINENO"; then :
12470 ac_cv_lib_gpm_Gpm_Open=yes
12471 else
12472 ac_cv_lib_gpm_Gpm_Open=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_gpm_Gpm_Open" >&5
12479 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
12480 if test "x$ac_cv_lib_gpm_Gpm_Open" = x""yes; then :
12481 HAVE_GPM=yes
12488 if test "${HAVE_GPM}" = "yes"; then
12490 $as_echo "#define HAVE_GPM 1" >>confdefs.h
12492 LIBGPM=-lgpm
12501 GNUSTEP_CFLAGS=
12502 ### Use NeXTstep API to implement GUI.
12503 if test "${HAVE_NS}" = "yes"; then
12505 $as_echo "#define HAVE_NS 1" >>confdefs.h
12507 if test "${NS_IMPL_COCOA}" = "yes"; then
12509 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
12512 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
12514 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
12516 # See also .m.o rule in Makefile.in */
12517 # FIXME: are all these flags really needed? Document here why. */
12518 GNUSTEP_CFLAGS="-D_REENTRANT -fPIC -fno-strict-aliasing -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
12519 ## Extra CFLAGS applied to src/*.m files.
12520 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"
12522 # We also have mouse menus.
12523 HAVE_MENUS=yes
12524 OTHER_FILES=ns-app
12528 ### Use session management (-lSM -lICE) if available
12529 HAVE_X_SM=no
12530 LIBXSM=
12531 if test "${HAVE_X11}" = "yes"; then
12532 ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
12533 if test "x$ac_cv_header_X11_SM_SMlib_h" = x""yes; then :
12534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
12535 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
12536 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then :
12537 $as_echo_n "(cached) " >&6
12538 else
12539 ac_check_lib_save_LIBS=$LIBS
12540 LIBS="-lSM -lICE $LIBS"
12541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12542 /* end confdefs.h. */
12544 /* Override any GCC internal prototype to avoid an error.
12545 Use char because int might match the return type of a GCC
12546 builtin and then its argument prototype would still apply. */
12547 #ifdef __cplusplus
12548 extern "C"
12549 #endif
12550 char SmcOpenConnection ();
12552 main ()
12554 return SmcOpenConnection ();
12556 return 0;
12558 _ACEOF
12559 if ac_fn_c_try_link "$LINENO"; then :
12560 ac_cv_lib_SM_SmcOpenConnection=yes
12561 else
12562 ac_cv_lib_SM_SmcOpenConnection=no
12564 rm -f core conftest.err conftest.$ac_objext \
12565 conftest$ac_exeext conftest.$ac_ext
12566 LIBS=$ac_check_lib_save_LIBS
12568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
12569 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
12570 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x""yes; then :
12571 HAVE_X_SM=yes
12578 if test "${HAVE_X_SM}" = "yes"; then
12580 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
12582 LIBXSM="-lSM -lICE"
12583 case "$LIBS" in
12584 *-lSM*) ;;
12585 *) LIBS="$LIBXSM $LIBS" ;;
12586 esac
12591 ### Use libxml (-lxml2) if available
12592 HAVE_LIBXML2=no
12593 if test "${with_xml2}" != "no"; then
12594 ### I'm not sure what the version number should be, so I just guessed.
12596 succeeded=no
12598 if test "$PKG_CONFIG" = "no" ; then
12599 HAVE_LIBXML2=no
12600 else
12601 PKG_CONFIG_MIN_VERSION=0.9.0
12602 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.6.17" >&5
12604 $as_echo_n "checking for libxml-2.0 > 2.6.17... " >&6; }
12606 if $PKG_CONFIG --exists "libxml-2.0 > 2.6.17" 2>&5 &&
12607 LIBXML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 > 2.6.17" 2>&5` &&
12608 LIBXML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0 > 2.6.17" 2>&5`; then
12609 edit_cflags="
12610 s,///*,/,g
12611 s/^/ /
12612 s/ -I/ $isystem/g
12613 s/^ //
12615 LIBXML2_CFLAGS=`$as_echo "$LIBXML2_CFLAGS" | sed -e "$edit_cflags"`
12616 LIBXML2_LIBS=`$as_echo "$LIBXML2_LIBS" | sed -e 's,///*,/,g'`
12617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBXML2_CFLAGS' LIBS='$LIBXML2_LIBS'" >&5
12618 $as_echo "yes CFLAGS='$LIBXML2_CFLAGS' LIBS='$LIBXML2_LIBS'" >&6; }
12619 succeeded=yes
12620 else
12621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12622 $as_echo "no" >&6; }
12623 LIBXML2_CFLAGS=""
12624 LIBXML2_LIBS=""
12625 ## If we have a custom action on failure, don't print errors, but
12626 ## do set a variable so people can do so.
12627 LIBXML2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 > 2.6.17"`
12633 else
12634 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12635 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12639 if test $succeeded = yes; then
12640 HAVE_LIBXML2=yes
12641 else
12642 HAVE_LIBXML2=no
12645 if test "${HAVE_LIBXML2}" = "yes"; then
12646 LIBS="$LIBXML2_LIBS $LIBS"
12647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
12648 $as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
12649 if test "${ac_cv_lib_xml2_htmlReadMemory+set}" = set; then :
12650 $as_echo_n "(cached) " >&6
12651 else
12652 ac_check_lib_save_LIBS=$LIBS
12653 LIBS="-lxml2 $LIBS"
12654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12655 /* end confdefs.h. */
12657 /* Override any GCC internal prototype to avoid an error.
12658 Use char because int might match the return type of a GCC
12659 builtin and then its argument prototype would still apply. */
12660 #ifdef __cplusplus
12661 extern "C"
12662 #endif
12663 char htmlReadMemory ();
12665 main ()
12667 return htmlReadMemory ();
12669 return 0;
12671 _ACEOF
12672 if ac_fn_c_try_link "$LINENO"; then :
12673 ac_cv_lib_xml2_htmlReadMemory=yes
12674 else
12675 ac_cv_lib_xml2_htmlReadMemory=no
12677 rm -f core conftest.err conftest.$ac_objext \
12678 conftest$ac_exeext conftest.$ac_ext
12679 LIBS=$ac_check_lib_save_LIBS
12681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
12682 $as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
12683 if test "x$ac_cv_lib_xml2_htmlReadMemory" = x""yes; then :
12684 HAVE_LIBXML2=yes
12685 else
12686 HAVE_LIBXML2=no
12689 if test "${HAVE_LIBXML2}" = "yes"; then
12691 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
12693 else
12694 LIBXML2_LIBS=""
12695 LIBXML2_CFLAGS=""
12702 # If netdb.h doesn't declare h_errno, we must declare it by hand.
12703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
12704 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
12705 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then :
12706 $as_echo_n "(cached) " >&6
12707 else
12708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12709 /* end confdefs.h. */
12710 #include <netdb.h>
12712 main ()
12714 return h_errno;
12716 return 0;
12718 _ACEOF
12719 if ac_fn_c_try_link "$LINENO"; then :
12720 emacs_cv_netdb_declares_h_errno=yes
12721 else
12722 emacs_cv_netdb_declares_h_errno=no
12724 rm -f core conftest.err conftest.$ac_objext \
12725 conftest$ac_exeext conftest.$ac_ext
12727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
12728 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
12729 if test $emacs_cv_netdb_declares_h_errno = yes; then
12731 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
12735 # fmod, logb, and frexp are found in -lm on most systems.
12736 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
12737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
12738 $as_echo_n "checking for sqrt in -lm... " >&6; }
12739 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
12740 $as_echo_n "(cached) " >&6
12741 else
12742 ac_check_lib_save_LIBS=$LIBS
12743 LIBS="-lm $LIBS"
12744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12745 /* end confdefs.h. */
12747 /* Override any GCC internal prototype to avoid an error.
12748 Use char because int might match the return type of a GCC
12749 builtin and then its argument prototype would still apply. */
12750 #ifdef __cplusplus
12751 extern "C"
12752 #endif
12753 char sqrt ();
12755 main ()
12757 return sqrt ();
12759 return 0;
12761 _ACEOF
12762 if ac_fn_c_try_link "$LINENO"; then :
12763 ac_cv_lib_m_sqrt=yes
12764 else
12765 ac_cv_lib_m_sqrt=no
12767 rm -f core conftest.err conftest.$ac_objext \
12768 conftest$ac_exeext conftest.$ac_ext
12769 LIBS=$ac_check_lib_save_LIBS
12771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
12772 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
12773 if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
12774 cat >>confdefs.h <<_ACEOF
12775 #define HAVE_LIBM 1
12776 _ACEOF
12778 LIBS="-lm $LIBS"
12783 # Check for mail-locking functions in a "mail" library. Probably this should
12784 # have the same check as for liblockfile below.
12785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
12786 $as_echo_n "checking for maillock in -lmail... " >&6; }
12787 if test "${ac_cv_lib_mail_maillock+set}" = set; then :
12788 $as_echo_n "(cached) " >&6
12789 else
12790 ac_check_lib_save_LIBS=$LIBS
12791 LIBS="-lmail $LIBS"
12792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12793 /* end confdefs.h. */
12795 /* Override any GCC internal prototype to avoid an error.
12796 Use char because int might match the return type of a GCC
12797 builtin and then its argument prototype would still apply. */
12798 #ifdef __cplusplus
12799 extern "C"
12800 #endif
12801 char maillock ();
12803 main ()
12805 return maillock ();
12807 return 0;
12809 _ACEOF
12810 if ac_fn_c_try_link "$LINENO"; then :
12811 ac_cv_lib_mail_maillock=yes
12812 else
12813 ac_cv_lib_mail_maillock=no
12815 rm -f core conftest.err conftest.$ac_objext \
12816 conftest$ac_exeext conftest.$ac_ext
12817 LIBS=$ac_check_lib_save_LIBS
12819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
12820 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
12821 if test "x$ac_cv_lib_mail_maillock" = x""yes; then :
12822 have_mail=yes
12823 else
12824 have_mail=no
12827 if test $have_mail = yes; then
12828 LIBS_MAIL=-lmail
12829 LIBS="$LIBS_MAIL $LIBS"
12831 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
12833 else
12834 LIBS_MAIL=
12836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
12837 $as_echo_n "checking for maillock in -llockfile... " >&6; }
12838 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then :
12839 $as_echo_n "(cached) " >&6
12840 else
12841 ac_check_lib_save_LIBS=$LIBS
12842 LIBS="-llockfile $LIBS"
12843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12844 /* end confdefs.h. */
12846 /* Override any GCC internal prototype to avoid an error.
12847 Use char because int might match the return type of a GCC
12848 builtin and then its argument prototype would still apply. */
12849 #ifdef __cplusplus
12850 extern "C"
12851 #endif
12852 char maillock ();
12854 main ()
12856 return maillock ();
12858 return 0;
12860 _ACEOF
12861 if ac_fn_c_try_link "$LINENO"; then :
12862 ac_cv_lib_lockfile_maillock=yes
12863 else
12864 ac_cv_lib_lockfile_maillock=no
12866 rm -f core conftest.err conftest.$ac_objext \
12867 conftest$ac_exeext conftest.$ac_ext
12868 LIBS=$ac_check_lib_save_LIBS
12870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
12871 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
12872 if test "x$ac_cv_lib_lockfile_maillock" = x""yes; then :
12873 have_lockfile=yes
12874 else
12875 have_lockfile=no
12878 if test $have_lockfile = yes; then
12879 LIBS_MAIL=-llockfile
12880 LIBS="$LIBS_MAIL $LIBS"
12882 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
12884 else
12885 # If we have the shared liblockfile, assume we must use it for mail
12886 # locking (e.g. Debian). If we couldn't link against liblockfile
12887 # (no liblockfile.a installed), ensure that we don't need to.
12888 # Extract the first word of "liblockfile.so", so it can be a program name with args.
12889 set dummy liblockfile.so; ac_word=$2
12890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12891 $as_echo_n "checking for $ac_word... " >&6; }
12892 if test "${ac_cv_prog_liblockfile+set}" = set; then :
12893 $as_echo_n "(cached) " >&6
12894 else
12895 if test -n "$liblockfile"; then
12896 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
12897 else
12898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12899 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
12900 for as_dir in $as_dummy
12902 IFS=$as_save_IFS
12903 test -z "$as_dir" && as_dir=.
12904 for ac_exec_ext in '' $ac_executable_extensions; do
12905 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12906 ac_cv_prog_liblockfile="yes"
12907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12908 break 2
12910 done
12911 done
12912 IFS=$as_save_IFS
12914 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
12917 liblockfile=$ac_cv_prog_liblockfile
12918 if test -n "$liblockfile"; then
12919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
12920 $as_echo "$liblockfile" >&6; }
12921 else
12922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12923 $as_echo "no" >&6; }
12927 if test $ac_cv_prog_liblockfile = yes; then
12928 as_fn_error "Shared liblockfile found but can't link against it.
12929 This probably means that movemail could lose mail.
12930 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
12933 for ac_func in touchlock
12934 do :
12935 ac_fn_c_check_func "$LINENO" "touchlock" "ac_cv_func_touchlock"
12936 if test "x$ac_cv_func_touchlock" = x""yes; then :
12937 cat >>confdefs.h <<_ACEOF
12938 #define HAVE_TOUCHLOCK 1
12939 _ACEOF
12942 done
12949 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
12950 ## interlock access to the mail spool. The alternative is a lock file named
12951 ## /usr/spool/mail/$USER.lock.
12952 mail_lock=no
12953 case "$opsys" in
12954 aix4-2) mail_lock="lockf" ;;
12956 gnu|freebsd|netbsd|openbsd|darwin|irix6-5) mail_lock="flock" ;;
12958 ## On GNU/Linux systems, both methods are used by various mail programs.
12959 ## I assume most people are using newer mailers that have heard of flock.
12960 ## Change this if you need to.
12961 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
12962 ## configure gets the right answers, and that means *NOT* using flock.
12963 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
12964 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
12965 ## Debian maintainer hasn't provided a clean fix for Emacs.
12966 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
12967 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
12968 ## correct logic. -- fx
12969 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
12970 ## liblockfile is a Free Software replacement for libmail, used on
12971 ## Debian systems and elsewhere. -rfr.
12972 gnu-*)
12973 mail_lock="flock"
12974 if test $have_mail = yes || test $have_lockfile = yes; then
12975 test $ac_cv_header_maillock_h = yes && mail_lock=no
12978 esac
12980 BLESSMAIL_TARGET=
12981 case "$mail_lock" in
12982 flock)
12983 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
12986 lockf)
12987 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
12990 *) BLESSMAIL_TARGET="need-blessmail" ;;
12991 esac
12995 for ac_func in gethostname \
12996 rename closedir mkdir rmdir getrusage get_current_dir_name \
12997 random lrand48 logb frexp fmod rint cbrt setsid \
12998 strerror fpathconf select euidaccess getpagesize setlocale \
12999 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
13000 __fpending strsignal setitimer \
13001 sendto recvfrom getsockname getpeername \
13002 gai_strerror mkstemp getline getdelim fsync sync \
13003 difftime posix_memalign \
13004 getpwent endpwent getgrent endgrent \
13005 cfmakeraw cfsetspeed copysign __executable_start
13006 do :
13007 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13008 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13009 eval as_val=\$$as_ac_var
13010 if test "x$as_val" = x""yes; then :
13011 cat >>confdefs.h <<_ACEOF
13012 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13013 _ACEOF
13016 done
13019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unwind_init" >&5
13020 $as_echo_n "checking for __builtin_unwind_init... " >&6; }
13021 if test "${emacs_cv_func___builtin_unwind_init+set}" = set; then :
13022 $as_echo_n "(cached) " >&6
13023 else
13024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13025 /* end confdefs.h. */
13028 main ()
13030 __builtin_unwind_init ();
13032 return 0;
13034 _ACEOF
13035 if ac_fn_c_try_link "$LINENO"; then :
13036 emacs_cv_func___builtin_unwind_init=yes
13037 else
13038 emacs_cv_func___builtin_unwind_init=no
13040 rm -f core conftest.err conftest.$ac_objext \
13041 conftest$ac_exeext conftest.$ac_ext
13043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func___builtin_unwind_init" >&5
13044 $as_echo "$emacs_cv_func___builtin_unwind_init" >&6; }
13045 if test $emacs_cv_func___builtin_unwind_init = yes; then
13047 $as_echo "#define HAVE___BUILTIN_UNWIND_INIT 1" >>confdefs.h
13055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13056 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
13057 if test "${ac_cv_sys_largefile_source+set}" = set; then :
13058 $as_echo_n "(cached) " >&6
13059 else
13060 while :; do
13061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13062 /* end confdefs.h. */
13063 #include <sys/types.h> /* for off_t */
13064 #include <stdio.h>
13066 main ()
13068 int (*fp) (FILE *, off_t, int) = fseeko;
13069 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13071 return 0;
13073 _ACEOF
13074 if ac_fn_c_try_link "$LINENO"; then :
13075 ac_cv_sys_largefile_source=no; break
13077 rm -f core conftest.err conftest.$ac_objext \
13078 conftest$ac_exeext conftest.$ac_ext
13079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13080 /* end confdefs.h. */
13081 #define _LARGEFILE_SOURCE 1
13082 #include <sys/types.h> /* for off_t */
13083 #include <stdio.h>
13085 main ()
13087 int (*fp) (FILE *, off_t, int) = fseeko;
13088 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13090 return 0;
13092 _ACEOF
13093 if ac_fn_c_try_link "$LINENO"; then :
13094 ac_cv_sys_largefile_source=1; break
13096 rm -f core conftest.err conftest.$ac_objext \
13097 conftest$ac_exeext conftest.$ac_ext
13098 ac_cv_sys_largefile_source=unknown
13099 break
13100 done
13102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
13103 $as_echo "$ac_cv_sys_largefile_source" >&6; }
13104 case $ac_cv_sys_largefile_source in #(
13105 no | unknown) ;;
13107 cat >>confdefs.h <<_ACEOF
13108 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13109 _ACEOF
13111 esac
13112 rm -rf conftest*
13114 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13115 # in glibc 2.1.3, but that breaks too many other things.
13116 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13117 if test $ac_cv_sys_largefile_source != unknown; then
13119 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
13124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
13125 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
13126 if test "${ac_cv_func_getpgrp_void+set}" = set; then :
13127 $as_echo_n "(cached) " >&6
13128 else
13129 # Use it with a single arg.
13130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13131 /* end confdefs.h. */
13132 $ac_includes_default
13134 main ()
13136 getpgrp (0);
13138 return 0;
13140 _ACEOF
13141 if ac_fn_c_try_compile "$LINENO"; then :
13142 ac_cv_func_getpgrp_void=no
13143 else
13144 ac_cv_func_getpgrp_void=yes
13146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
13150 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
13151 if test $ac_cv_func_getpgrp_void = yes; then
13153 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
13158 # UNIX98 PTYs.
13159 for ac_func in grantpt
13160 do :
13161 ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt"
13162 if test "x$ac_cv_func_grantpt" = x""yes; then :
13163 cat >>confdefs.h <<_ACEOF
13164 #define HAVE_GRANTPT 1
13165 _ACEOF
13168 done
13171 # PTY-related GNU extensions.
13172 for ac_func in getpt
13173 do :
13174 ac_fn_c_check_func "$LINENO" "getpt" "ac_cv_func_getpt"
13175 if test "x$ac_cv_func_getpt" = x""yes; then :
13176 cat >>confdefs.h <<_ACEOF
13177 #define HAVE_GETPT 1
13178 _ACEOF
13181 done
13184 # Check this now, so that we will NOT find the above functions in ncurses.
13185 # That is because we have not set up to link ncurses in lib-src.
13186 # It's better to believe a function is not available
13187 # than to expect to find it in ncurses.
13188 # Also we need tputs and friends to be able to build at all.
13189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
13190 $as_echo_n "checking for library containing tputs... " >&6; }
13191 # Run a test program that contains a call to tputs, a call that is
13192 # never executed. This tests whether a pre-'main' dynamic linker
13193 # works with the library. It's too much trouble to actually call
13194 # tputs in the test program, due to portability hassles. When
13195 # cross-compiling, assume the test program will run if it links.
13197 # Maybe curses should be tried earlier?
13198 # See http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9736#35
13199 for tputs_library in '' tinfo ncurses terminfo termcap curses; do
13200 OLIBS=$LIBS
13201 if test -z "$tputs_library"; then
13202 LIBS_TERMCAP=
13203 msg='none required'
13204 else
13205 LIBS_TERMCAP=-l$tputs_library
13206 msg=$LIBS_TERMCAP
13207 LIBS="$LIBS_TERMCAP $LIBS"
13209 if test "$cross_compiling" = yes; then :
13210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13211 /* end confdefs.h. */
13213 extern void tputs (const char *, int, int (*)(int));
13214 int main (int argc, char **argv)
13216 if (argc == 10000)
13217 tputs (argv[0], 0, 0);
13218 return 0;
13221 _ACEOF
13222 if ac_fn_c_try_link "$LINENO"; then :
13224 else
13225 msg=no
13227 rm -f core conftest.err conftest.$ac_objext \
13228 conftest$ac_exeext conftest.$ac_ext
13229 else
13230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13231 /* end confdefs.h. */
13233 extern void tputs (const char *, int, int (*)(int));
13234 int main (int argc, char **argv)
13236 if (argc == 10000)
13237 tputs (argv[0], 0, 0);
13238 return 0;
13241 _ACEOF
13242 if ac_fn_c_try_run "$LINENO"; then :
13244 else
13245 msg=no
13247 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13248 conftest.$ac_objext conftest.beam conftest.$ac_ext
13251 LIBS=$OLIBS
13252 if test "X$msg" != Xno; then
13253 break
13255 done
13256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5
13257 $as_echo "$msg" >&6; }
13258 if test "X$msg" = Xno; then
13259 as_fn_error "The required function \`tputs' was not found in any library.
13260 The following libraries were tried (in order):
13261 libtinfo, libncurses, libterminfo, libtermcap, libcurses
13262 Please try installing whichever of these libraries is most appropriate
13263 for your system, together with its header files.
13264 For example, a libncurses-dev(el) or similar package." "$LINENO" 5
13267 ## Use termcap instead of terminfo?
13268 ## Only true for: freebsd < 40000, ms-w32, msdos, netbsd < 599002500.
13269 TERMINFO=yes
13270 ## FIXME? In the cases below where we unconditionally set
13271 ## LIBS_TERMCAP="-lncurses", this overrides LIBS_TERMCAP = -ltinfo,
13272 ## if that was found above to have tputs.
13273 ## Should we use the gnu* logic everywhere?
13274 case "$opsys" in
13275 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
13276 ## The ncurses library has been moved out of the System framework in
13277 ## Mac OS X 10.2. So if configure detects it, set the command-line
13278 ## option to use it.
13279 darwin) LIBS_TERMCAP="-lncurses" ;;
13281 gnu*) test -z "$LIBS_TERMCAP" && LIBS_TERMCAP="-lncurses" ;;
13283 freebsd)
13284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
13285 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
13286 if test "${emacs_cv_freebsd_terminfo+set}" = set; then :
13287 $as_echo_n "(cached) " >&6
13288 else
13289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13290 /* end confdefs.h. */
13291 #include <osreldate.h>
13293 main ()
13295 #if __FreeBSD_version < 400000
13296 fail;
13297 #endif
13300 return 0;
13302 _ACEOF
13303 if ac_fn_c_try_link "$LINENO"; then :
13304 emacs_cv_freebsd_terminfo=yes
13305 else
13306 emacs_cv_freebsd_terminfo=no
13308 rm -f core conftest.err conftest.$ac_objext \
13309 conftest$ac_exeext conftest.$ac_ext
13313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
13314 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
13316 if test $emacs_cv_freebsd_terminfo = yes; then
13317 LIBS_TERMCAP="-lncurses"
13318 else
13319 TERMINFO=no
13320 LIBS_TERMCAP="-ltermcap"
13324 netbsd)
13325 if test "x$LIBS_TERMCAP" != "x-lterminfo"; then
13326 TERMINFO=no
13327 LIBS_TERMCAP="-ltermcap"
13331 openbsd) LIBS_TERMCAP="-lncurses" ;;
13333 ## hpux: Make sure we get select from libc rather than from libcurses
13334 ## because libcurses on HPUX 10.10 has a broken version of select.
13335 ## We used to use -lc -lcurses, but this may be cleaner.
13336 ## FIXME? But TERMINFO = yes on hpux (it used to be explicitly
13337 # set that way, now it uses the default). Isn't this a contradiction?
13338 hpux*) LIBS_TERMCAP="-ltermcap" ;;
13340 esac
13342 TERMCAP_OBJ=tparam.o
13343 if test $TERMINFO = yes; then
13345 $as_echo "#define TERMINFO 1" >>confdefs.h
13347 TERMCAP_OBJ=terminfo.o
13353 # Do we have res_init, for detecting changes in /etc/resolv.conf?
13354 resolv=no
13355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13356 /* end confdefs.h. */
13357 #include <netinet/in.h>
13358 #include <arpa/nameser.h>
13359 #include <resolv.h>
13361 main ()
13363 return res_init();
13365 return 0;
13367 _ACEOF
13368 if ac_fn_c_try_link "$LINENO"; then :
13369 have_res_init=yes
13370 else
13371 have_res_init=no
13373 rm -f core conftest.err conftest.$ac_objext \
13374 conftest$ac_exeext conftest.$ac_ext
13375 if test "$have_res_init" = no; then
13376 OLIBS="$LIBS"
13377 LIBS="$LIBS -lresolv"
13378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
13379 $as_echo_n "checking for res_init with -lresolv... " >&6; }
13380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13381 /* end confdefs.h. */
13382 #include <netinet/in.h>
13383 #include <arpa/nameser.h>
13384 #include <resolv.h>
13386 main ()
13388 return res_init();
13390 return 0;
13392 _ACEOF
13393 if ac_fn_c_try_link "$LINENO"; then :
13394 have_res_init=yes
13395 else
13396 have_res_init=no
13398 rm -f core conftest.err conftest.$ac_objext \
13399 conftest$ac_exeext conftest.$ac_ext
13400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
13401 $as_echo "$have_res_init" >&6; }
13402 if test "$have_res_init" = yes ; then
13403 resolv=yes
13405 LIBS="$OLIBS"
13408 if test "$have_res_init" = yes; then
13410 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
13414 # Do we need the Hesiod library to provide the support routines?
13415 LIBHESIOD=
13416 if test "$with_hesiod" != no ; then
13417 # Don't set $LIBS here -- see comments above. FIXME which comments?
13418 ac_fn_c_check_func "$LINENO" "res_send" "ac_cv_func_res_send"
13419 if test "x$ac_cv_func_res_send" = x""yes; then :
13421 else
13422 ac_fn_c_check_func "$LINENO" "__res_send" "ac_cv_func___res_send"
13423 if test "x$ac_cv_func___res_send" = x""yes; then :
13425 else
13426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
13427 $as_echo_n "checking for res_send in -lresolv... " >&6; }
13428 if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
13429 $as_echo_n "(cached) " >&6
13430 else
13431 ac_check_lib_save_LIBS=$LIBS
13432 LIBS="-lresolv $LIBS"
13433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13434 /* end confdefs.h. */
13436 /* Override any GCC internal prototype to avoid an error.
13437 Use char because int might match the return type of a GCC
13438 builtin and then its argument prototype would still apply. */
13439 #ifdef __cplusplus
13440 extern "C"
13441 #endif
13442 char res_send ();
13444 main ()
13446 return res_send ();
13448 return 0;
13450 _ACEOF
13451 if ac_fn_c_try_link "$LINENO"; then :
13452 ac_cv_lib_resolv_res_send=yes
13453 else
13454 ac_cv_lib_resolv_res_send=no
13456 rm -f core conftest.err conftest.$ac_objext \
13457 conftest$ac_exeext conftest.$ac_ext
13458 LIBS=$ac_check_lib_save_LIBS
13460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
13461 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
13462 if test "x$ac_cv_lib_resolv_res_send" = x""yes; then :
13463 resolv=yes
13464 else
13465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
13466 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
13467 if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
13468 $as_echo_n "(cached) " >&6
13469 else
13470 ac_check_lib_save_LIBS=$LIBS
13471 LIBS="-lresolv $LIBS"
13472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13473 /* end confdefs.h. */
13475 /* Override any GCC internal prototype to avoid an error.
13476 Use char because int might match the return type of a GCC
13477 builtin and then its argument prototype would still apply. */
13478 #ifdef __cplusplus
13479 extern "C"
13480 #endif
13481 char __res_send ();
13483 main ()
13485 return __res_send ();
13487 return 0;
13489 _ACEOF
13490 if ac_fn_c_try_link "$LINENO"; then :
13491 ac_cv_lib_resolv___res_send=yes
13492 else
13493 ac_cv_lib_resolv___res_send=no
13495 rm -f core conftest.err conftest.$ac_objext \
13496 conftest$ac_exeext conftest.$ac_ext
13497 LIBS=$ac_check_lib_save_LIBS
13499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
13500 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
13501 if test "x$ac_cv_lib_resolv___res_send" = x""yes; then :
13502 resolv=yes
13511 if test "$resolv" = yes ; then
13512 RESOLVLIB=-lresolv
13513 else
13514 RESOLVLIB=
13516 ac_fn_c_check_func "$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
13517 if test "x$ac_cv_func_hes_getmailhost" = x""yes; then :
13519 else
13520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
13521 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
13522 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
13523 $as_echo_n "(cached) " >&6
13524 else
13525 ac_check_lib_save_LIBS=$LIBS
13526 LIBS="-lhesiod $RESOLVLIB $LIBS"
13527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13528 /* end confdefs.h. */
13530 /* Override any GCC internal prototype to avoid an error.
13531 Use char because int might match the return type of a GCC
13532 builtin and then its argument prototype would still apply. */
13533 #ifdef __cplusplus
13534 extern "C"
13535 #endif
13536 char hes_getmailhost ();
13538 main ()
13540 return hes_getmailhost ();
13542 return 0;
13544 _ACEOF
13545 if ac_fn_c_try_link "$LINENO"; then :
13546 ac_cv_lib_hesiod_hes_getmailhost=yes
13547 else
13548 ac_cv_lib_hesiod_hes_getmailhost=no
13550 rm -f core conftest.err conftest.$ac_objext \
13551 conftest$ac_exeext conftest.$ac_ext
13552 LIBS=$ac_check_lib_save_LIBS
13554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
13555 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
13556 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x""yes; then :
13557 hesiod=yes
13558 else
13565 if test x"$hesiod" = xyes; then
13567 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
13569 LIBHESIOD=-lhesiod
13574 # Do we need libresolv (due to res_init or Hesiod)?
13575 if test "$resolv" = yes ; then
13577 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
13579 LIBRESOLV=-lresolv
13580 else
13581 LIBRESOLV=
13585 # These tell us which Kerberos-related libraries to use.
13586 COM_ERRLIB=
13587 CRYPTOLIB=
13588 KRB5LIB=
13589 DESLIB=
13590 KRB4LIB=
13592 if test "${with_kerberos}" != no; then
13593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
13594 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
13595 if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
13596 $as_echo_n "(cached) " >&6
13597 else
13598 ac_check_lib_save_LIBS=$LIBS
13599 LIBS="-lcom_err $LIBS"
13600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13601 /* end confdefs.h. */
13603 /* Override any GCC internal prototype to avoid an error.
13604 Use char because int might match the return type of a GCC
13605 builtin and then its argument prototype would still apply. */
13606 #ifdef __cplusplus
13607 extern "C"
13608 #endif
13609 char com_err ();
13611 main ()
13613 return com_err ();
13615 return 0;
13617 _ACEOF
13618 if ac_fn_c_try_link "$LINENO"; then :
13619 ac_cv_lib_com_err_com_err=yes
13620 else
13621 ac_cv_lib_com_err_com_err=no
13623 rm -f core conftest.err conftest.$ac_objext \
13624 conftest$ac_exeext conftest.$ac_ext
13625 LIBS=$ac_check_lib_save_LIBS
13627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
13628 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
13629 if test "x$ac_cv_lib_com_err_com_err" = x""yes; then :
13630 have_com_err=yes
13631 else
13632 have_com_err=no
13635 if test $have_com_err = yes; then
13636 COM_ERRLIB=-lcom_err
13637 LIBS="$COM_ERRLIB $LIBS"
13639 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
13642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
13643 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
13644 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
13645 $as_echo_n "(cached) " >&6
13646 else
13647 ac_check_lib_save_LIBS=$LIBS
13648 LIBS="-lcrypto $LIBS"
13649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13650 /* end confdefs.h. */
13652 /* Override any GCC internal prototype to avoid an error.
13653 Use char because int might match the return type of a GCC
13654 builtin and then its argument prototype would still apply. */
13655 #ifdef __cplusplus
13656 extern "C"
13657 #endif
13658 char mit_des_cbc_encrypt ();
13660 main ()
13662 return mit_des_cbc_encrypt ();
13664 return 0;
13666 _ACEOF
13667 if ac_fn_c_try_link "$LINENO"; then :
13668 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
13669 else
13670 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
13672 rm -f core conftest.err conftest.$ac_objext \
13673 conftest$ac_exeext conftest.$ac_ext
13674 LIBS=$ac_check_lib_save_LIBS
13676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
13677 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
13678 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x""yes; then :
13679 have_crypto=yes
13680 else
13681 have_crypto=no
13684 if test $have_crypto = yes; then
13685 CRYPTOLIB=-lcrypto
13686 LIBS="$CRYPTOLIB $LIBS"
13688 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
13691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
13692 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
13693 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
13694 $as_echo_n "(cached) " >&6
13695 else
13696 ac_check_lib_save_LIBS=$LIBS
13697 LIBS="-lk5crypto $LIBS"
13698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13699 /* end confdefs.h. */
13701 /* Override any GCC internal prototype to avoid an error.
13702 Use char because int might match the return type of a GCC
13703 builtin and then its argument prototype would still apply. */
13704 #ifdef __cplusplus
13705 extern "C"
13706 #endif
13707 char mit_des_cbc_encrypt ();
13709 main ()
13711 return mit_des_cbc_encrypt ();
13713 return 0;
13715 _ACEOF
13716 if ac_fn_c_try_link "$LINENO"; then :
13717 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
13718 else
13719 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
13721 rm -f core conftest.err conftest.$ac_objext \
13722 conftest$ac_exeext conftest.$ac_ext
13723 LIBS=$ac_check_lib_save_LIBS
13725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
13726 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
13727 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x""yes; then :
13728 have_k5crypto=yes
13729 else
13730 have_k5crypto=no
13733 if test $have_k5crypto = yes; then
13734 CRYPTOLIB=-lk5crypto
13735 LIBS="$CRYPTOLIB $LIBS"
13737 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
13740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
13741 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
13742 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
13743 $as_echo_n "(cached) " >&6
13744 else
13745 ac_check_lib_save_LIBS=$LIBS
13746 LIBS="-lkrb5 $LIBS"
13747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13748 /* end confdefs.h. */
13750 /* Override any GCC internal prototype to avoid an error.
13751 Use char because int might match the return type of a GCC
13752 builtin and then its argument prototype would still apply. */
13753 #ifdef __cplusplus
13754 extern "C"
13755 #endif
13756 char krb5_init_context ();
13758 main ()
13760 return krb5_init_context ();
13762 return 0;
13764 _ACEOF
13765 if ac_fn_c_try_link "$LINENO"; then :
13766 ac_cv_lib_krb5_krb5_init_context=yes
13767 else
13768 ac_cv_lib_krb5_krb5_init_context=no
13770 rm -f core conftest.err conftest.$ac_objext \
13771 conftest$ac_exeext conftest.$ac_ext
13772 LIBS=$ac_check_lib_save_LIBS
13774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
13775 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
13776 if test "x$ac_cv_lib_krb5_krb5_init_context" = x""yes; then :
13777 have_krb5=yes
13778 else
13779 have_krb5=no
13782 if test $have_krb5=yes; then
13783 KRB5LIB=-lkrb5
13784 LIBS="$KRB5LIB $LIBS"
13786 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
13789 if test "${with_kerberos5}" = no; then
13790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
13791 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
13792 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
13793 $as_echo_n "(cached) " >&6
13794 else
13795 ac_check_lib_save_LIBS=$LIBS
13796 LIBS="-ldes425 $LIBS"
13797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13798 /* end confdefs.h. */
13800 /* Override any GCC internal prototype to avoid an error.
13801 Use char because int might match the return type of a GCC
13802 builtin and then its argument prototype would still apply. */
13803 #ifdef __cplusplus
13804 extern "C"
13805 #endif
13806 char des_cbc_encrypt ();
13808 main ()
13810 return des_cbc_encrypt ();
13812 return 0;
13814 _ACEOF
13815 if ac_fn_c_try_link "$LINENO"; then :
13816 ac_cv_lib_des425_des_cbc_encrypt=yes
13817 else
13818 ac_cv_lib_des425_des_cbc_encrypt=no
13820 rm -f core conftest.err conftest.$ac_objext \
13821 conftest$ac_exeext conftest.$ac_ext
13822 LIBS=$ac_check_lib_save_LIBS
13824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
13825 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
13826 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x""yes; then :
13827 have_des425=yes
13828 else
13829 have_des425=no
13832 if test $have_des425 = yes; then
13833 DESLIB=-ldes425
13834 LIBS="$DESLIB $LIBS"
13836 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
13838 else
13839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
13840 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
13841 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
13842 $as_echo_n "(cached) " >&6
13843 else
13844 ac_check_lib_save_LIBS=$LIBS
13845 LIBS="-ldes $LIBS"
13846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13847 /* end confdefs.h. */
13849 /* Override any GCC internal prototype to avoid an error.
13850 Use char because int might match the return type of a GCC
13851 builtin and then its argument prototype would still apply. */
13852 #ifdef __cplusplus
13853 extern "C"
13854 #endif
13855 char des_cbc_encrypt ();
13857 main ()
13859 return des_cbc_encrypt ();
13861 return 0;
13863 _ACEOF
13864 if ac_fn_c_try_link "$LINENO"; then :
13865 ac_cv_lib_des_des_cbc_encrypt=yes
13866 else
13867 ac_cv_lib_des_des_cbc_encrypt=no
13869 rm -f core conftest.err conftest.$ac_objext \
13870 conftest$ac_exeext conftest.$ac_ext
13871 LIBS=$ac_check_lib_save_LIBS
13873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
13874 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
13875 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x""yes; then :
13876 have_des=yes
13877 else
13878 have_des=no
13881 if test $have_des = yes; then
13882 DESLIB=-ldes
13883 LIBS="$DESLIB $LIBS"
13885 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
13889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
13890 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
13891 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
13892 $as_echo_n "(cached) " >&6
13893 else
13894 ac_check_lib_save_LIBS=$LIBS
13895 LIBS="-lkrb4 $LIBS"
13896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13897 /* end confdefs.h. */
13899 /* Override any GCC internal prototype to avoid an error.
13900 Use char because int might match the return type of a GCC
13901 builtin and then its argument prototype would still apply. */
13902 #ifdef __cplusplus
13903 extern "C"
13904 #endif
13905 char krb_get_cred ();
13907 main ()
13909 return krb_get_cred ();
13911 return 0;
13913 _ACEOF
13914 if ac_fn_c_try_link "$LINENO"; then :
13915 ac_cv_lib_krb4_krb_get_cred=yes
13916 else
13917 ac_cv_lib_krb4_krb_get_cred=no
13919 rm -f core conftest.err conftest.$ac_objext \
13920 conftest$ac_exeext conftest.$ac_ext
13921 LIBS=$ac_check_lib_save_LIBS
13923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
13924 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
13925 if test "x$ac_cv_lib_krb4_krb_get_cred" = x""yes; then :
13926 have_krb4=yes
13927 else
13928 have_krb4=no
13931 if test $have_krb4 = yes; then
13932 KRB4LIB=-lkrb4
13933 LIBS="$KRB4LIB $LIBS"
13935 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
13937 else
13938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
13939 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
13940 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
13941 $as_echo_n "(cached) " >&6
13942 else
13943 ac_check_lib_save_LIBS=$LIBS
13944 LIBS="-lkrb $LIBS"
13945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13946 /* end confdefs.h. */
13948 /* Override any GCC internal prototype to avoid an error.
13949 Use char because int might match the return type of a GCC
13950 builtin and then its argument prototype would still apply. */
13951 #ifdef __cplusplus
13952 extern "C"
13953 #endif
13954 char krb_get_cred ();
13956 main ()
13958 return krb_get_cred ();
13960 return 0;
13962 _ACEOF
13963 if ac_fn_c_try_link "$LINENO"; then :
13964 ac_cv_lib_krb_krb_get_cred=yes
13965 else
13966 ac_cv_lib_krb_krb_get_cred=no
13968 rm -f core conftest.err conftest.$ac_objext \
13969 conftest$ac_exeext conftest.$ac_ext
13970 LIBS=$ac_check_lib_save_LIBS
13972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
13973 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
13974 if test "x$ac_cv_lib_krb_krb_get_cred" = x""yes; then :
13975 have_krb=yes
13976 else
13977 have_krb=no
13980 if test $have_krb = yes; then
13981 KRB4LIB=-lkrb
13982 LIBS="$KRB4LIB $LIBS"
13984 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
13990 if test "${with_kerberos5}" != no; then
13991 for ac_header in krb5.h
13992 do :
13993 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
13994 if test "x$ac_cv_header_krb5_h" = x""yes; then :
13995 cat >>confdefs.h <<_ACEOF
13996 #define HAVE_KRB5_H 1
13997 _ACEOF
13998 ac_fn_c_check_member "$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
14000 if test "x$ac_cv_member_krb5_error_text" = x""yes; then :
14002 cat >>confdefs.h <<_ACEOF
14003 #define HAVE_KRB5_ERROR_TEXT 1
14004 _ACEOF
14008 ac_fn_c_check_member "$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
14010 if test "x$ac_cv_member_krb5_error_e_text" = x""yes; then :
14012 cat >>confdefs.h <<_ACEOF
14013 #define HAVE_KRB5_ERROR_E_TEXT 1
14014 _ACEOF
14021 done
14023 else
14024 for ac_header in des.h
14025 do :
14026 ac_fn_c_check_header_mongrel "$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
14027 if test "x$ac_cv_header_des_h" = x""yes; then :
14028 cat >>confdefs.h <<_ACEOF
14029 #define HAVE_DES_H 1
14030 _ACEOF
14032 else
14033 for ac_header in kerberosIV/des.h
14034 do :
14035 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
14036 if test "x$ac_cv_header_kerberosIV_des_h" = x""yes; then :
14037 cat >>confdefs.h <<_ACEOF
14038 #define HAVE_KERBEROSIV_DES_H 1
14039 _ACEOF
14041 else
14042 for ac_header in kerberos/des.h
14043 do :
14044 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
14045 if test "x$ac_cv_header_kerberos_des_h" = x""yes; then :
14046 cat >>confdefs.h <<_ACEOF
14047 #define HAVE_KERBEROS_DES_H 1
14048 _ACEOF
14052 done
14056 done
14060 done
14062 for ac_header in krb.h
14063 do :
14064 ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
14065 if test "x$ac_cv_header_krb_h" = x""yes; then :
14066 cat >>confdefs.h <<_ACEOF
14067 #define HAVE_KRB_H 1
14068 _ACEOF
14070 else
14071 for ac_header in kerberosIV/krb.h
14072 do :
14073 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
14074 if test "x$ac_cv_header_kerberosIV_krb_h" = x""yes; then :
14075 cat >>confdefs.h <<_ACEOF
14076 #define HAVE_KERBEROSIV_KRB_H 1
14077 _ACEOF
14079 else
14080 for ac_header in kerberos/krb.h
14081 do :
14082 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
14083 if test "x$ac_cv_header_kerberos_krb_h" = x""yes; then :
14084 cat >>confdefs.h <<_ACEOF
14085 #define HAVE_KERBEROS_KRB_H 1
14086 _ACEOF
14090 done
14094 done
14098 done
14101 for ac_header in com_err.h
14102 do :
14103 ac_fn_c_check_header_mongrel "$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
14104 if test "x$ac_cv_header_com_err_h" = x""yes; then :
14105 cat >>confdefs.h <<_ACEOF
14106 #define HAVE_COM_ERR_H 1
14107 _ACEOF
14111 done
14124 for ac_func in $ac_func_list
14125 do :
14126 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14127 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14128 eval as_val=\$$as_ac_var
14129 if test "x$as_val" = x""yes; then :
14130 cat >>confdefs.h <<_ACEOF
14131 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14132 _ACEOF
14135 done
14140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
14141 $as_echo_n "checking whether localtime caches TZ... " >&6; }
14142 if test "${emacs_cv_localtime_cache+set}" = set; then :
14143 $as_echo_n "(cached) " >&6
14144 else
14145 if test x$ac_cv_func_tzset = xyes; then
14146 if test "$cross_compiling" = yes; then :
14147 # If we have tzset, assume the worst when cross-compiling.
14148 emacs_cv_localtime_cache=yes
14149 else
14150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14151 /* end confdefs.h. */
14152 #include <time.h>
14153 char TZ_GMT0[] = "TZ=GMT0";
14154 char TZ_PST8[] = "TZ=PST8";
14155 main()
14157 time_t now = time ((time_t *) 0);
14158 int hour_GMT0, hour_unset;
14159 if (putenv (TZ_GMT0) != 0)
14160 exit (1);
14161 hour_GMT0 = localtime (&now)->tm_hour;
14162 unsetenv("TZ");
14163 hour_unset = localtime (&now)->tm_hour;
14164 if (putenv (TZ_PST8) != 0)
14165 exit (1);
14166 if (localtime (&now)->tm_hour == hour_GMT0)
14167 exit (1);
14168 unsetenv("TZ");
14169 if (localtime (&now)->tm_hour != hour_unset)
14170 exit (1);
14171 exit (0);
14173 _ACEOF
14174 if ac_fn_c_try_run "$LINENO"; then :
14175 emacs_cv_localtime_cache=no
14176 else
14177 emacs_cv_localtime_cache=yes
14179 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14180 conftest.$ac_objext conftest.beam conftest.$ac_ext
14183 else
14184 # If we lack tzset, report that localtime does not cache TZ,
14185 # since we can't invalidate the cache if we don't have tzset.
14186 emacs_cv_localtime_cache=no
14189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
14190 $as_echo "$emacs_cv_localtime_cache" >&6; }
14191 if test $emacs_cv_localtime_cache = yes; then
14193 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
14197 if test "x$HAVE_TIMEVAL" = xyes; then
14198 for ac_func in gettimeofday
14199 do :
14200 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
14201 if test "x$ac_cv_func_gettimeofday" = x""yes; then :
14202 cat >>confdefs.h <<_ACEOF
14203 #define HAVE_GETTIMEOFDAY 1
14204 _ACEOF
14207 done
14209 if test $ac_cv_func_gettimeofday = yes; then
14210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday can accept two arguments" >&5
14211 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
14212 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then :
14213 $as_echo_n "(cached) " >&6
14214 else
14215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14216 /* end confdefs.h. */
14218 #ifdef TIME_WITH_SYS_TIME
14219 #include <sys/time.h>
14220 #include <time.h>
14221 #else
14222 #ifdef HAVE_SYS_TIME_H
14223 #include <sys/time.h>
14224 #else
14225 #include <time.h>
14226 #endif
14227 #endif
14229 main ()
14231 struct timeval time;
14232 gettimeofday (&time, 0);
14234 return 0;
14236 _ACEOF
14237 if ac_fn_c_try_compile "$LINENO"; then :
14238 emacs_cv_gettimeofday_two_arguments=yes
14239 else
14240 emacs_cv_gettimeofday_two_arguments=no
14242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_gettimeofday_two_arguments" >&5
14245 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
14246 if test $emacs_cv_gettimeofday_two_arguments = no; then
14248 $as_echo "#define GETTIMEOFDAY_ONE_ARGUMENT 1" >>confdefs.h
14254 ok_so_far=yes
14255 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
14256 if test "x$ac_cv_func_socket" = x""yes; then :
14258 else
14259 ok_so_far=no
14262 if test $ok_so_far = yes; then
14263 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
14264 if test "x$ac_cv_header_netinet_in_h" = x""yes; then :
14266 else
14267 ok_so_far=no
14272 if test $ok_so_far = yes; then
14273 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
14274 if test "x$ac_cv_header_arpa_inet_h" = x""yes; then :
14276 else
14277 ok_so_far=no
14282 if test $ok_so_far = yes; then
14284 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
14288 if test -f /usr/lpp/X11/bin/smt.exp; then
14290 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
14294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
14295 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
14296 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
14297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14298 $as_echo "yes" >&6; }
14300 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
14302 else
14303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14304 $as_echo "no" >&6; }
14307 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
14308 if test "x$ac_cv_type_pid_t" = x""yes; then :
14310 else
14312 cat >>confdefs.h <<_ACEOF
14313 #define pid_t int
14314 _ACEOF
14318 for ac_header in vfork.h
14319 do :
14320 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
14321 if test "x$ac_cv_header_vfork_h" = x""yes; then :
14322 cat >>confdefs.h <<_ACEOF
14323 #define HAVE_VFORK_H 1
14324 _ACEOF
14328 done
14330 for ac_func in fork vfork
14331 do :
14332 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14333 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14334 eval as_val=\$$as_ac_var
14335 if test "x$as_val" = x""yes; then :
14336 cat >>confdefs.h <<_ACEOF
14337 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14338 _ACEOF
14341 done
14343 if test "x$ac_cv_func_fork" = xyes; then
14344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
14345 $as_echo_n "checking for working fork... " >&6; }
14346 if test "${ac_cv_func_fork_works+set}" = set; then :
14347 $as_echo_n "(cached) " >&6
14348 else
14349 if test "$cross_compiling" = yes; then :
14350 ac_cv_func_fork_works=cross
14351 else
14352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14353 /* end confdefs.h. */
14354 $ac_includes_default
14356 main ()
14359 /* By Ruediger Kuhlmann. */
14360 return fork () < 0;
14363 return 0;
14365 _ACEOF
14366 if ac_fn_c_try_run "$LINENO"; then :
14367 ac_cv_func_fork_works=yes
14368 else
14369 ac_cv_func_fork_works=no
14371 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14372 conftest.$ac_objext conftest.beam conftest.$ac_ext
14376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
14377 $as_echo "$ac_cv_func_fork_works" >&6; }
14379 else
14380 ac_cv_func_fork_works=$ac_cv_func_fork
14382 if test "x$ac_cv_func_fork_works" = xcross; then
14383 case $host in
14384 *-*-amigaos* | *-*-msdosdjgpp*)
14385 # Override, as these systems have only a dummy fork() stub
14386 ac_cv_func_fork_works=no
14389 ac_cv_func_fork_works=yes
14391 esac
14392 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
14393 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
14395 ac_cv_func_vfork_works=$ac_cv_func_vfork
14396 if test "x$ac_cv_func_vfork" = xyes; then
14397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
14398 $as_echo_n "checking for working vfork... " >&6; }
14399 if test "${ac_cv_func_vfork_works+set}" = set; then :
14400 $as_echo_n "(cached) " >&6
14401 else
14402 if test "$cross_compiling" = yes; then :
14403 ac_cv_func_vfork_works=cross
14404 else
14405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14406 /* end confdefs.h. */
14407 /* Thanks to Paul Eggert for this test. */
14408 $ac_includes_default
14409 #include <sys/wait.h>
14410 #ifdef HAVE_VFORK_H
14411 # include <vfork.h>
14412 #endif
14413 /* On some sparc systems, changes by the child to local and incoming
14414 argument registers are propagated back to the parent. The compiler
14415 is told about this with #include <vfork.h>, but some compilers
14416 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
14417 static variable whose address is put into a register that is
14418 clobbered by the vfork. */
14419 static void
14420 #ifdef __cplusplus
14421 sparc_address_test (int arg)
14422 # else
14423 sparc_address_test (arg) int arg;
14424 #endif
14426 static pid_t child;
14427 if (!child) {
14428 child = vfork ();
14429 if (child < 0) {
14430 perror ("vfork");
14431 _exit(2);
14433 if (!child) {
14434 arg = getpid();
14435 write(-1, "", 0);
14436 _exit (arg);
14442 main ()
14444 pid_t parent = getpid ();
14445 pid_t child;
14447 sparc_address_test (0);
14449 child = vfork ();
14451 if (child == 0) {
14452 /* Here is another test for sparc vfork register problems. This
14453 test uses lots of local variables, at least as many local
14454 variables as main has allocated so far including compiler
14455 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
14456 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
14457 reuse the register of parent for one of the local variables,
14458 since it will think that parent can't possibly be used any more
14459 in this routine. Assigning to the local variable will thus
14460 munge parent in the parent process. */
14461 pid_t
14462 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
14463 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
14464 /* Convince the compiler that p..p7 are live; otherwise, it might
14465 use the same hardware register for all 8 local variables. */
14466 if (p != p1 || p != p2 || p != p3 || p != p4
14467 || p != p5 || p != p6 || p != p7)
14468 _exit(1);
14470 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
14471 from child file descriptors. If the child closes a descriptor
14472 before it execs or exits, this munges the parent's descriptor
14473 as well. Test for this by closing stdout in the child. */
14474 _exit(close(fileno(stdout)) != 0);
14475 } else {
14476 int status;
14477 struct stat st;
14479 while (wait(&status) != child)
14481 return (
14482 /* Was there some problem with vforking? */
14483 child < 0
14485 /* Did the child fail? (This shouldn't happen.) */
14486 || status
14488 /* Did the vfork/compiler bug occur? */
14489 || parent != getpid()
14491 /* Did the file descriptor bug occur? */
14492 || fstat(fileno(stdout), &st) != 0
14496 _ACEOF
14497 if ac_fn_c_try_run "$LINENO"; then :
14498 ac_cv_func_vfork_works=yes
14499 else
14500 ac_cv_func_vfork_works=no
14502 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14503 conftest.$ac_objext conftest.beam conftest.$ac_ext
14507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
14508 $as_echo "$ac_cv_func_vfork_works" >&6; }
14511 if test "x$ac_cv_func_fork_works" = xcross; then
14512 ac_cv_func_vfork_works=$ac_cv_func_vfork
14513 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
14514 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
14517 if test "x$ac_cv_func_vfork_works" = xyes; then
14519 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
14521 else
14523 $as_echo "#define vfork fork" >>confdefs.h
14526 if test "x$ac_cv_func_fork_works" = xyes; then
14528 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
14533 for ac_func in snprintf
14534 do :
14535 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
14536 if test "x$ac_cv_func_snprintf" = x""yes; then :
14537 cat >>confdefs.h <<_ACEOF
14538 #define HAVE_SNPRINTF 1
14539 _ACEOF
14542 done
14545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
14546 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
14547 if test "${emacs_cv_langinfo_codeset+set}" = set; then :
14548 $as_echo_n "(cached) " >&6
14549 else
14550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14551 /* end confdefs.h. */
14552 #include <langinfo.h>
14554 main ()
14556 char* cs = nl_langinfo(CODESET);
14558 return 0;
14560 _ACEOF
14561 if ac_fn_c_try_link "$LINENO"; then :
14562 emacs_cv_langinfo_codeset=yes
14563 else
14564 emacs_cv_langinfo_codeset=no
14566 rm -f core conftest.err conftest.$ac_objext \
14567 conftest$ac_exeext conftest.$ac_ext
14570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
14571 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
14572 if test $emacs_cv_langinfo_codeset = yes; then
14574 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
14578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
14579 $as_echo_n "checking for mbstate_t... " >&6; }
14580 if test "${ac_cv_type_mbstate_t+set}" = set; then :
14581 $as_echo_n "(cached) " >&6
14582 else
14583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14584 /* end confdefs.h. */
14585 $ac_includes_default
14586 # include <wchar.h>
14588 main ()
14590 mbstate_t x; return sizeof x;
14592 return 0;
14594 _ACEOF
14595 if ac_fn_c_try_compile "$LINENO"; then :
14596 ac_cv_type_mbstate_t=yes
14597 else
14598 ac_cv_type_mbstate_t=no
14600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
14603 $as_echo "$ac_cv_type_mbstate_t" >&6; }
14604 if test $ac_cv_type_mbstate_t = yes; then
14606 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
14608 else
14610 $as_echo "#define mbstate_t int" >>confdefs.h
14614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
14615 $as_echo_n "checking for C restricted array declarations... " >&6; }
14616 if test "${emacs_cv_c_restrict_arr+set}" = set; then :
14617 $as_echo_n "(cached) " >&6
14618 else
14619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14620 /* end confdefs.h. */
14621 void fred (int x[__restrict]);
14623 main ()
14627 return 0;
14629 _ACEOF
14630 if ac_fn_c_try_compile "$LINENO"; then :
14631 emacs_cv_c_restrict_arr=yes
14632 else
14633 emacs_cv_c_restrict_arr=no
14635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
14638 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
14639 if test "$emacs_cv_c_restrict_arr" = yes; then
14641 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
14646 # Set up the CFLAGS for real compilation, so we can substitute it.
14647 CFLAGS="$REAL_CFLAGS"
14648 CPPFLAGS="$REAL_CPPFLAGS"
14650 ## Hack to detect a buggy GCC version.
14651 if test "x$GCC" = xyes \
14652 && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
14653 && test x"`echo $CFLAGS | grep '\-O[23]'`" != x \
14654 && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then
14655 as_fn_error "GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
14658 version=$PACKAGE_VERSION
14660 ### Specify what sort of things we'll be editing into Makefile and config.h.
14661 ### Use configuration here uncanonicalized to avoid exceeding size limits.
14664 ## Unused?
14686 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
14687 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
14688 ## end of LIBX_BASE, but nothing ever set it.
14693 ## Used in lwlib/Makefile.in.
14695 S_FILE="\$(srcdir)/${opsysfile}"
14705 cat >>confdefs.h <<_ACEOF
14706 #define EMACS_CONFIGURATION "${canonical}"
14707 _ACEOF
14710 cat >>confdefs.h <<_ACEOF
14711 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
14712 _ACEOF
14715 cat >>confdefs.h <<_ACEOF
14716 #define config_opsysfile "${opsysfile}"
14717 _ACEOF
14720 XMENU_OBJ=
14721 XOBJ=
14722 FONT_OBJ=
14723 if test "${HAVE_X_WINDOWS}" = "yes" ; then
14725 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
14727 XMENU_OBJ=xmenu.o
14728 XOBJ="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
14729 FONT_OBJ=xfont.o
14730 if test "$HAVE_XFT" = "yes"; then
14731 FONT_OBJ="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
14732 elif test "$HAVE_FREETYPE" = "yes"; then
14733 FONT_OBJ="$FONT_OBJ ftfont.o ftxfont.o"
14741 WIDGET_OBJ=
14742 MOTIF_LIBW=
14743 if test "${USE_X_TOOLKIT}" != "none" ; then
14744 WIDGET_OBJ=widget.o
14746 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
14748 if test "${USE_X_TOOLKIT}" = "LUCID"; then
14750 $as_echo "#define USE_LUCID 1" >>confdefs.h
14752 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
14754 $as_echo "#define USE_MOTIF 1" >>confdefs.h
14756 MOTIF_LIBW=-lXm
14757 case "$opsys" in
14758 gnu-linux)
14759 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
14760 MOTIF_LIBW="$MOTIF_LIBW -lXpm"
14763 unixware)
14764 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
14765 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
14766 MOTIF_LIBW="MOTIF_LIBW -lXimp"
14769 aix4-2)
14770 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
14771 MOTIF_LIBW="$MOTIF_LIBW -li18n"
14773 esac
14774 MOTIF_LIBW="$MOTIF_LIBW $LIBXP"
14779 TOOLKIT_LIBW=
14780 case "$USE_X_TOOLKIT" in
14781 MOTIF) TOOLKIT_LIBW="$MOTIF_LIBW" ;;
14782 LUCID) TOOLKIT_LIBW="$LUCID_LIBW" ;;
14783 none) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW="$GTK_LIBS" ;;
14784 esac
14787 if test "$USE_X_TOOLKIT" = "none"; then
14788 LIBXT_OTHER="\$(LIBXSM)"
14789 OLDXMENU_TARGET="really-oldXMenu"
14790 else
14791 LIBXT_OTHER="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
14792 OLDXMENU_TARGET="really-lwlib"
14796 ## The X Menu stuff is present in the X10 distribution, but missing
14797 ## from X11. If we have X10, just use the installed library;
14798 ## otherwise, use our own copy.
14799 if test "${HAVE_X11}" = "yes" ; then
14801 $as_echo "#define HAVE_X11 1" >>confdefs.h
14804 if test "$USE_X_TOOLKIT" = "none"; then
14805 OLDXMENU="\${oldXMenudir}/libXMenu11.a"
14806 else
14807 OLDXMENU="\${lwlibdir}/liblw.a"
14809 LIBXMENU="\$(OLDXMENU)"
14810 LIBX_OTHER="\$(LIBXT) \$(LIBX_EXTRA)"
14811 OLDXMENU_DEPS="\${OLDXMENU} ../src/\${OLDXMENU}"
14812 else
14813 ## For a syntactically valid Makefile; not actually used for anything.
14814 ## See comments in src/Makefile.in.
14815 OLDXMENU=nothing
14816 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
14817 if test "${HAVE_X_WINDOWS}" = "yes"; then
14818 LIBXMENU="-lXMenu"
14819 else
14820 LIBXMENU=
14822 LIBX_OTHER=
14823 OLDXMENU_DEPS=
14826 if test "$HAVE_GTK" = "yes" || test "$HAVE_MENUS" != "yes"; then
14827 OLDXMENU_TARGET=
14828 OLDXMENU=nothing
14829 LIBXMENU=
14830 OLDXMENU_DEPS=
14839 if test "${HAVE_MENUS}" = "yes" ; then
14841 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
14845 if test "${GNU_MALLOC}" = "yes" ; then
14847 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
14851 RALLOC_OBJ=
14852 if test "${REL_ALLOC}" = "yes" ; then
14854 $as_echo "#define REL_ALLOC 1" >>confdefs.h
14857 test "$system_malloc" != "yes" && RALLOC_OBJ=ralloc.o
14861 if test "$opsys" = "cygwin"; then
14862 CYGWIN_OBJ="sheap.o"
14863 ## Cygwin differs because of its unexec().
14864 PRE_ALLOC_OBJ=
14865 POST_ALLOC_OBJ=lastfile.o
14866 else
14867 CYGWIN_OBJ=
14868 PRE_ALLOC_OBJ=lastfile.o
14869 POST_ALLOC_OBJ=
14875 # Configure gnulib here, now that we know LIBS.
14887 LIBC_FATAL_STDERR_=1
14888 export LIBC_FATAL_STDERR_
14890 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
14891 # for constant arguments. Useless!
14892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
14893 $as_echo_n "checking for working alloca.h... " >&6; }
14894 if test "${ac_cv_working_alloca_h+set}" = set; then :
14895 $as_echo_n "(cached) " >&6
14896 else
14897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14898 /* end confdefs.h. */
14899 #include <alloca.h>
14901 main ()
14903 char *p = (char *) alloca (2 * sizeof (int));
14904 if (p) return 0;
14906 return 0;
14908 _ACEOF
14909 if ac_fn_c_try_link "$LINENO"; then :
14910 ac_cv_working_alloca_h=yes
14911 else
14912 ac_cv_working_alloca_h=no
14914 rm -f core conftest.err conftest.$ac_objext \
14915 conftest$ac_exeext conftest.$ac_ext
14917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
14918 $as_echo "$ac_cv_working_alloca_h" >&6; }
14919 if test $ac_cv_working_alloca_h = yes; then
14921 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
14925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
14926 $as_echo_n "checking for alloca... " >&6; }
14927 if test "${ac_cv_func_alloca_works+set}" = set; then :
14928 $as_echo_n "(cached) " >&6
14929 else
14930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14931 /* end confdefs.h. */
14932 #ifdef __GNUC__
14933 # define alloca __builtin_alloca
14934 #else
14935 # ifdef _MSC_VER
14936 # include <malloc.h>
14937 # define alloca _alloca
14938 # else
14939 # ifdef HAVE_ALLOCA_H
14940 # include <alloca.h>
14941 # else
14942 # ifdef _AIX
14943 #pragma alloca
14944 # else
14945 # ifndef alloca /* predefined by HP cc +Olibcalls */
14946 char *alloca ();
14947 # endif
14948 # endif
14949 # endif
14950 # endif
14951 #endif
14954 main ()
14956 char *p = (char *) alloca (1);
14957 if (p) return 0;
14959 return 0;
14961 _ACEOF
14962 if ac_fn_c_try_link "$LINENO"; then :
14963 ac_cv_func_alloca_works=yes
14964 else
14965 ac_cv_func_alloca_works=no
14967 rm -f core conftest.err conftest.$ac_objext \
14968 conftest$ac_exeext conftest.$ac_ext
14970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
14971 $as_echo "$ac_cv_func_alloca_works" >&6; }
14973 if test $ac_cv_func_alloca_works = yes; then
14975 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
14977 else
14978 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
14979 # that cause trouble. Some versions do not even contain alloca or
14980 # contain a buggy version. If you still want to use their alloca,
14981 # use ar to extract alloca.o from them instead of compiling alloca.c.
14987 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
14989 $as_echo "#define C_ALLOCA 1" >>confdefs.h
14992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 'alloca.c' needs Cray hooks" >&5
14993 $as_echo_n "checking whether 'alloca.c' needs Cray hooks... " >&6; }
14994 if test "${ac_cv_os_cray+set}" = set; then :
14995 $as_echo_n "(cached) " >&6
14996 else
14997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14998 /* end confdefs.h. */
14999 #if defined CRAY && ! defined CRAY2
15000 webecray
15001 #else
15002 wenotbecray
15003 #endif
15005 _ACEOF
15006 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15007 $EGREP "webecray" >/dev/null 2>&1; then :
15008 ac_cv_os_cray=yes
15009 else
15010 ac_cv_os_cray=no
15012 rm -f conftest*
15015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
15016 $as_echo "$ac_cv_os_cray" >&6; }
15017 if test $ac_cv_os_cray = yes; then
15018 for ac_func in _getb67 GETB67 getb67; do
15019 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15020 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15021 eval as_val=\$$as_ac_var
15022 if test "x$as_val" = x""yes; then :
15024 cat >>confdefs.h <<_ACEOF
15025 #define CRAY_STACKSEG_END $ac_func
15026 _ACEOF
15028 break
15031 done
15034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
15035 $as_echo_n "checking stack direction for C alloca... " >&6; }
15036 if test "${ac_cv_c_stack_direction+set}" = set; then :
15037 $as_echo_n "(cached) " >&6
15038 else
15039 if test "$cross_compiling" = yes; then :
15040 ac_cv_c_stack_direction=0
15041 else
15042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15043 /* end confdefs.h. */
15044 $ac_includes_default
15046 find_stack_direction (int *addr, int depth)
15048 int dir, dummy = 0;
15049 if (! addr)
15050 addr = &dummy;
15051 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
15052 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
15053 return dir + dummy;
15057 main (int argc, char **argv)
15059 return find_stack_direction (0, argc + !argv + 20) < 0;
15061 _ACEOF
15062 if ac_fn_c_try_run "$LINENO"; then :
15063 ac_cv_c_stack_direction=1
15064 else
15065 ac_cv_c_stack_direction=-1
15067 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15068 conftest.$ac_objext conftest.beam conftest.$ac_ext
15072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
15073 $as_echo "$ac_cv_c_stack_direction" >&6; }
15074 cat >>confdefs.h <<_ACEOF
15075 #define STACK_DIRECTION $ac_cv_c_stack_direction
15076 _ACEOF
15084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
15085 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
15086 if test "${ac_cv_c_bigendian+set}" = set; then :
15087 $as_echo_n "(cached) " >&6
15088 else
15089 ac_cv_c_bigendian=unknown
15090 # See if we're dealing with a universal compiler.
15091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15092 /* end confdefs.h. */
15093 #ifndef __APPLE_CC__
15094 not a universal capable compiler
15095 #endif
15096 typedef int dummy;
15098 _ACEOF
15099 if ac_fn_c_try_compile "$LINENO"; then :
15101 # Check for potential -arch flags. It is not universal unless
15102 # there are at least two -arch flags with different values.
15103 ac_arch=
15104 ac_prev=
15105 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
15106 if test -n "$ac_prev"; then
15107 case $ac_word in
15108 i?86 | x86_64 | ppc | ppc64)
15109 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
15110 ac_arch=$ac_word
15111 else
15112 ac_cv_c_bigendian=universal
15113 break
15116 esac
15117 ac_prev=
15118 elif test "x$ac_word" = "x-arch"; then
15119 ac_prev=arch
15121 done
15123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15124 if test $ac_cv_c_bigendian = unknown; then
15125 # See if sys/param.h defines the BYTE_ORDER macro.
15126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15127 /* end confdefs.h. */
15128 #include <sys/types.h>
15129 #include <sys/param.h>
15132 main ()
15134 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
15135 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
15136 && LITTLE_ENDIAN)
15137 bogus endian macros
15138 #endif
15141 return 0;
15143 _ACEOF
15144 if ac_fn_c_try_compile "$LINENO"; then :
15145 # It does; now see whether it defined to BIG_ENDIAN or not.
15146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15147 /* end confdefs.h. */
15148 #include <sys/types.h>
15149 #include <sys/param.h>
15152 main ()
15154 #if BYTE_ORDER != BIG_ENDIAN
15155 not big endian
15156 #endif
15159 return 0;
15161 _ACEOF
15162 if ac_fn_c_try_compile "$LINENO"; then :
15163 ac_cv_c_bigendian=yes
15164 else
15165 ac_cv_c_bigendian=no
15167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15171 if test $ac_cv_c_bigendian = unknown; then
15172 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
15173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15174 /* end confdefs.h. */
15175 #include <limits.h>
15178 main ()
15180 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
15181 bogus endian macros
15182 #endif
15185 return 0;
15187 _ACEOF
15188 if ac_fn_c_try_compile "$LINENO"; then :
15189 # It does; now see whether it defined to _BIG_ENDIAN or not.
15190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15191 /* end confdefs.h. */
15192 #include <limits.h>
15195 main ()
15197 #ifndef _BIG_ENDIAN
15198 not big endian
15199 #endif
15202 return 0;
15204 _ACEOF
15205 if ac_fn_c_try_compile "$LINENO"; then :
15206 ac_cv_c_bigendian=yes
15207 else
15208 ac_cv_c_bigendian=no
15210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15214 if test $ac_cv_c_bigendian = unknown; then
15215 # Compile a test program.
15216 if test "$cross_compiling" = yes; then :
15217 # Try to guess by grepping values from an object file.
15218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15219 /* end confdefs.h. */
15220 short int ascii_mm[] =
15221 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
15222 short int ascii_ii[] =
15223 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
15224 int use_ascii (int i) {
15225 return ascii_mm[i] + ascii_ii[i];
15227 short int ebcdic_ii[] =
15228 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
15229 short int ebcdic_mm[] =
15230 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
15231 int use_ebcdic (int i) {
15232 return ebcdic_mm[i] + ebcdic_ii[i];
15234 extern int foo;
15237 main ()
15239 return use_ascii (foo) == use_ebcdic (foo);
15241 return 0;
15243 _ACEOF
15244 if ac_fn_c_try_compile "$LINENO"; then :
15245 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
15246 ac_cv_c_bigendian=yes
15248 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
15249 if test "$ac_cv_c_bigendian" = unknown; then
15250 ac_cv_c_bigendian=no
15251 else
15252 # finding both strings is unlikely to happen, but who knows?
15253 ac_cv_c_bigendian=unknown
15257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15258 else
15259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15260 /* end confdefs.h. */
15261 $ac_includes_default
15263 main ()
15266 /* Are we little or big endian? From Harbison&Steele. */
15267 union
15269 long int l;
15270 char c[sizeof (long int)];
15271 } u;
15272 u.l = 1;
15273 return u.c[sizeof (long int) - 1] == 1;
15276 return 0;
15278 _ACEOF
15279 if ac_fn_c_try_run "$LINENO"; then :
15280 ac_cv_c_bigendian=no
15281 else
15282 ac_cv_c_bigendian=yes
15284 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15285 conftest.$ac_objext conftest.beam conftest.$ac_ext
15290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
15291 $as_echo "$ac_cv_c_bigendian" >&6; }
15292 case $ac_cv_c_bigendian in #(
15293 yes)
15294 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
15295 ;; #(
15297 ;; #(
15298 universal)
15300 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
15302 ;; #(
15304 as_fn_error "unknown endianness
15305 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
15306 esac
15309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
15310 $as_echo_n "checking for inline... " >&6; }
15311 if test "${ac_cv_c_inline+set}" = set; then :
15312 $as_echo_n "(cached) " >&6
15313 else
15314 ac_cv_c_inline=no
15315 for ac_kw in inline __inline__ __inline; do
15316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15317 /* end confdefs.h. */
15318 #ifndef __cplusplus
15319 typedef int foo_t;
15320 static $ac_kw foo_t static_foo () {return 0; }
15321 $ac_kw foo_t foo () {return 0; }
15322 #endif
15324 _ACEOF
15325 if ac_fn_c_try_compile "$LINENO"; then :
15326 ac_cv_c_inline=$ac_kw
15328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15329 test "$ac_cv_c_inline" != no && break
15330 done
15333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
15334 $as_echo "$ac_cv_c_inline" >&6; }
15336 case $ac_cv_c_inline in
15337 inline | yes) ;;
15339 case $ac_cv_c_inline in
15340 no) ac_val=;;
15341 *) ac_val=$ac_cv_c_inline;;
15342 esac
15343 cat >>confdefs.h <<_ACEOF
15344 #ifndef __cplusplus
15345 #define inline $ac_val
15346 #endif
15347 _ACEOF
15349 esac
15352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtold conforms to C99" >&5
15353 $as_echo_n "checking whether strtold conforms to C99... " >&6; }
15354 if test "${gl_cv_func_c99_strtold+set}" = set; then :
15355 $as_echo_n "(cached) " >&6
15356 else
15357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15358 /* end confdefs.h. */
15359 /* On HP-UX before 11.23, strtold returns a struct instead of
15360 long double. Reject implementations like that, by requiring
15361 compatibility with the C99 prototype. */
15362 #include <stdlib.h>
15363 static long double (*p) (char const *, char **) = strtold;
15364 static long double
15365 test (char const *nptr, char **endptr)
15367 long double r;
15368 r = strtold (nptr, endptr);
15369 return r;
15372 main ()
15374 return test ("1.0", NULL) != 1 || p ("1.0", NULL) != 1;
15376 return 0;
15378 _ACEOF
15379 if ac_fn_c_try_link "$LINENO"; then :
15380 gl_cv_func_c99_strtold=yes
15381 else
15382 gl_cv_func_c99_strtold=no
15384 rm -f core conftest.err conftest.$ac_objext \
15385 conftest$ac_exeext conftest.$ac_ext
15387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_c99_strtold" >&5
15388 $as_echo "$gl_cv_func_c99_strtold" >&6; }
15389 if test $gl_cv_func_c99_strtold = yes; then
15391 $as_echo "#define HAVE_C99_STRTOLD 1" >>confdefs.h
15396 GNULIB_CHDIR=0;
15397 GNULIB_CHOWN=0;
15398 GNULIB_CLOSE=0;
15399 GNULIB_DUP=0;
15400 GNULIB_DUP2=0;
15401 GNULIB_DUP3=0;
15402 GNULIB_ENVIRON=0;
15403 GNULIB_EUIDACCESS=0;
15404 GNULIB_FACCESSAT=0;
15405 GNULIB_FCHDIR=0;
15406 GNULIB_FCHOWNAT=0;
15407 GNULIB_FDATASYNC=0;
15408 GNULIB_FSYNC=0;
15409 GNULIB_FTRUNCATE=0;
15410 GNULIB_GETCWD=0;
15411 GNULIB_GETDOMAINNAME=0;
15412 GNULIB_GETDTABLESIZE=0;
15413 GNULIB_GETGROUPS=0;
15414 GNULIB_GETHOSTNAME=0;
15415 GNULIB_GETLOGIN=0;
15416 GNULIB_GETLOGIN_R=0;
15417 GNULIB_GETPAGESIZE=0;
15418 GNULIB_GETUSERSHELL=0;
15419 GNULIB_GROUP_MEMBER=0;
15420 GNULIB_ISATTY=0;
15421 GNULIB_LCHOWN=0;
15422 GNULIB_LINK=0;
15423 GNULIB_LINKAT=0;
15424 GNULIB_LSEEK=0;
15425 GNULIB_PIPE=0;
15426 GNULIB_PIPE2=0;
15427 GNULIB_PREAD=0;
15428 GNULIB_PWRITE=0;
15429 GNULIB_READ=0;
15430 GNULIB_READLINK=0;
15431 GNULIB_READLINKAT=0;
15432 GNULIB_RMDIR=0;
15433 GNULIB_SETHOSTNAME=0;
15434 GNULIB_SLEEP=0;
15435 GNULIB_SYMLINK=0;
15436 GNULIB_SYMLINKAT=0;
15437 GNULIB_TTYNAME_R=0;
15438 GNULIB_UNISTD_H_NONBLOCKING=0;
15439 GNULIB_UNISTD_H_SIGPIPE=0;
15440 GNULIB_UNLINK=0;
15441 GNULIB_UNLINKAT=0;
15442 GNULIB_USLEEP=0;
15443 GNULIB_WRITE=0;
15444 HAVE_CHOWN=1;
15445 HAVE_DUP2=1;
15446 HAVE_DUP3=1;
15447 HAVE_EUIDACCESS=1;
15448 HAVE_FACCESSAT=1;
15449 HAVE_FCHDIR=1;
15450 HAVE_FCHOWNAT=1;
15451 HAVE_FDATASYNC=1;
15452 HAVE_FSYNC=1;
15453 HAVE_FTRUNCATE=1;
15454 HAVE_GETDTABLESIZE=1;
15455 HAVE_GETGROUPS=1;
15456 HAVE_GETHOSTNAME=1;
15457 HAVE_GETLOGIN=1;
15458 HAVE_GETPAGESIZE=1;
15459 HAVE_GROUP_MEMBER=1;
15460 HAVE_LCHOWN=1;
15461 HAVE_LINK=1;
15462 HAVE_LINKAT=1;
15463 HAVE_PIPE=1;
15464 HAVE_PIPE2=1;
15465 HAVE_PREAD=1;
15466 HAVE_PWRITE=1;
15467 HAVE_READLINK=1;
15468 HAVE_READLINKAT=1;
15469 HAVE_SETHOSTNAME=1;
15470 HAVE_SLEEP=1;
15471 HAVE_SYMLINK=1;
15472 HAVE_SYMLINKAT=1;
15473 HAVE_UNLINKAT=1;
15474 HAVE_USLEEP=1;
15475 HAVE_DECL_ENVIRON=1;
15476 HAVE_DECL_FCHDIR=1;
15477 HAVE_DECL_FDATASYNC=1;
15478 HAVE_DECL_GETDOMAINNAME=1;
15479 HAVE_DECL_GETLOGIN_R=1;
15480 HAVE_DECL_GETPAGESIZE=1;
15481 HAVE_DECL_GETUSERSHELL=1;
15482 HAVE_DECL_SETHOSTNAME=1;
15483 HAVE_DECL_TTYNAME_R=1;
15484 HAVE_OS_H=0;
15485 HAVE_SYS_PARAM_H=0;
15486 REPLACE_CHOWN=0;
15487 REPLACE_CLOSE=0;
15488 REPLACE_DUP=0;
15489 REPLACE_DUP2=0;
15490 REPLACE_FCHOWNAT=0;
15491 REPLACE_FTRUNCATE=0;
15492 REPLACE_GETCWD=0;
15493 REPLACE_GETDOMAINNAME=0;
15494 REPLACE_GETLOGIN_R=0;
15495 REPLACE_GETGROUPS=0;
15496 REPLACE_GETPAGESIZE=0;
15497 REPLACE_ISATTY=0;
15498 REPLACE_LCHOWN=0;
15499 REPLACE_LINK=0;
15500 REPLACE_LINKAT=0;
15501 REPLACE_LSEEK=0;
15502 REPLACE_PREAD=0;
15503 REPLACE_PWRITE=0;
15504 REPLACE_READ=0;
15505 REPLACE_READLINK=0;
15506 REPLACE_RMDIR=0;
15507 REPLACE_SLEEP=0;
15508 REPLACE_SYMLINK=0;
15509 REPLACE_TTYNAME_R=0;
15510 REPLACE_UNLINK=0;
15511 REPLACE_UNLINKAT=0;
15512 REPLACE_USLEEP=0;
15513 REPLACE_WRITE=0;
15514 UNISTD_H_HAVE_WINSOCK2_H=0;
15515 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
15518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_dm_mode in struct stat" >&5
15519 $as_echo_n "checking for st_dm_mode in struct stat... " >&6; }
15520 if test "${ac_cv_struct_st_dm_mode+set}" = set; then :
15521 $as_echo_n "(cached) " >&6
15522 else
15523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15524 /* end confdefs.h. */
15526 #include <sys/types.h>
15527 #include <sys/stat.h>
15529 main ()
15531 struct stat s; s.st_dm_mode;
15533 return 0;
15535 _ACEOF
15536 if ac_fn_c_try_compile "$LINENO"; then :
15537 ac_cv_struct_st_dm_mode=yes
15538 else
15539 ac_cv_struct_st_dm_mode=no
15541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_st_dm_mode" >&5
15544 $as_echo "$ac_cv_struct_st_dm_mode" >&6; }
15546 if test $ac_cv_struct_st_dm_mode = yes; then
15548 $as_echo "#define HAVE_ST_DM_MODE 1" >>confdefs.h
15553 ac_fn_c_check_decl "$LINENO" "strmode" "ac_cv_have_decl_strmode" "$ac_includes_default"
15554 if test "x$ac_cv_have_decl_strmode" = x""yes; then :
15555 ac_have_decl=1
15556 else
15557 ac_have_decl=0
15560 cat >>confdefs.h <<_ACEOF
15561 #define HAVE_DECL_STRMODE $ac_have_decl
15562 _ACEOF
15565 GNULIB__EXIT=0;
15566 GNULIB_ATOLL=0;
15567 GNULIB_CALLOC_POSIX=0;
15568 GNULIB_CANONICALIZE_FILE_NAME=0;
15569 GNULIB_GETLOADAVG=0;
15570 GNULIB_GETSUBOPT=0;
15571 GNULIB_GRANTPT=0;
15572 GNULIB_MALLOC_POSIX=0;
15573 GNULIB_MBTOWC=0;
15574 GNULIB_MKDTEMP=0;
15575 GNULIB_MKOSTEMP=0;
15576 GNULIB_MKOSTEMPS=0;
15577 GNULIB_MKSTEMP=0;
15578 GNULIB_MKSTEMPS=0;
15579 GNULIB_POSIX_OPENPT=0;
15580 GNULIB_PTSNAME=0;
15581 GNULIB_PTSNAME_R=0;
15582 GNULIB_PUTENV=0;
15583 GNULIB_RANDOM=0;
15584 GNULIB_RANDOM_R=0;
15585 GNULIB_REALLOC_POSIX=0;
15586 GNULIB_REALPATH=0;
15587 GNULIB_RPMATCH=0;
15588 GNULIB_SETENV=0;
15589 GNULIB_STRTOD=0;
15590 GNULIB_STRTOLL=0;
15591 GNULIB_STRTOULL=0;
15592 GNULIB_SYSTEM_POSIX=0;
15593 GNULIB_UNLOCKPT=0;
15594 GNULIB_UNSETENV=0;
15595 GNULIB_WCTOMB=0;
15596 HAVE__EXIT=1;
15597 HAVE_ATOLL=1;
15598 HAVE_CANONICALIZE_FILE_NAME=1;
15599 HAVE_DECL_GETLOADAVG=1;
15600 HAVE_GETSUBOPT=1;
15601 HAVE_GRANTPT=1;
15602 HAVE_MKDTEMP=1;
15603 HAVE_MKOSTEMP=1;
15604 HAVE_MKOSTEMPS=1;
15605 HAVE_MKSTEMP=1;
15606 HAVE_MKSTEMPS=1;
15607 HAVE_POSIX_OPENPT=1;
15608 HAVE_PTSNAME=1;
15609 HAVE_PTSNAME_R=1;
15610 HAVE_RANDOM=1;
15611 HAVE_RANDOM_H=1;
15612 HAVE_RANDOM_R=1;
15613 HAVE_REALPATH=1;
15614 HAVE_RPMATCH=1;
15615 HAVE_SETENV=1;
15616 HAVE_DECL_SETENV=1;
15617 HAVE_STRTOD=1;
15618 HAVE_STRTOLL=1;
15619 HAVE_STRTOULL=1;
15620 HAVE_STRUCT_RANDOM_DATA=1;
15621 HAVE_SYS_LOADAVG_H=0;
15622 HAVE_UNLOCKPT=1;
15623 HAVE_DECL_UNSETENV=1;
15624 REPLACE_CALLOC=0;
15625 REPLACE_CANONICALIZE_FILE_NAME=0;
15626 REPLACE_MALLOC=0;
15627 REPLACE_MBTOWC=0;
15628 REPLACE_MKSTEMP=0;
15629 REPLACE_PTSNAME_R=0;
15630 REPLACE_PUTENV=0;
15631 REPLACE_RANDOM_R=0;
15632 REPLACE_REALLOC=0;
15633 REPLACE_REALPATH=0;
15634 REPLACE_SETENV=0;
15635 REPLACE_STRTOD=0;
15636 REPLACE_UNSETENV=0;
15637 REPLACE_WCTOMB=0;
15641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
15642 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
15643 if test "${gl_cv_have_include_next+set}" = set; then :
15644 $as_echo_n "(cached) " >&6
15645 else
15646 rm -rf conftestd1a conftestd1b conftestd2
15647 mkdir conftestd1a conftestd1b conftestd2
15648 cat <<EOF > conftestd1a/conftest.h
15649 #define DEFINED_IN_CONFTESTD1
15650 #include_next <conftest.h>
15651 #ifdef DEFINED_IN_CONFTESTD2
15652 int foo;
15653 #else
15654 #error "include_next doesn't work"
15655 #endif
15657 cat <<EOF > conftestd1b/conftest.h
15658 #define DEFINED_IN_CONFTESTD1
15659 #include <stdio.h>
15660 #include_next <conftest.h>
15661 #ifdef DEFINED_IN_CONFTESTD2
15662 int foo;
15663 #else
15664 #error "include_next doesn't work"
15665 #endif
15667 cat <<EOF > conftestd2/conftest.h
15668 #ifndef DEFINED_IN_CONFTESTD1
15669 #error "include_next test doesn't work"
15670 #endif
15671 #define DEFINED_IN_CONFTESTD2
15673 gl_save_CPPFLAGS="$CPPFLAGS"
15674 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
15675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15676 /* end confdefs.h. */
15677 #include <conftest.h>
15678 _ACEOF
15679 if ac_fn_c_try_compile "$LINENO"; then :
15680 gl_cv_have_include_next=yes
15681 else
15682 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
15683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15684 /* end confdefs.h. */
15685 #include <conftest.h>
15686 _ACEOF
15687 if ac_fn_c_try_compile "$LINENO"; then :
15688 gl_cv_have_include_next=buggy
15689 else
15690 gl_cv_have_include_next=no
15692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15696 CPPFLAGS="$gl_save_CPPFLAGS"
15697 rm -rf conftestd1a conftestd1b conftestd2
15700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
15701 $as_echo "$gl_cv_have_include_next" >&6; }
15702 PRAGMA_SYSTEM_HEADER=
15703 if test $gl_cv_have_include_next = yes; then
15704 INCLUDE_NEXT=include_next
15705 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
15706 if test -n "$GCC"; then
15707 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
15709 else
15710 if test $gl_cv_have_include_next = buggy; then
15711 INCLUDE_NEXT=include
15712 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
15713 else
15714 INCLUDE_NEXT=include
15715 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
15721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
15722 $as_echo_n "checking whether system header files limit the line length... " >&6; }
15723 if test "${gl_cv_pragma_columns+set}" = set; then :
15724 $as_echo_n "(cached) " >&6
15725 else
15726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15727 /* end confdefs.h. */
15729 #ifdef __TANDEM
15730 choke me
15731 #endif
15733 _ACEOF
15734 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15735 $EGREP "choke me" >/dev/null 2>&1; then :
15736 gl_cv_pragma_columns=yes
15737 else
15738 gl_cv_pragma_columns=no
15740 rm -f conftest*
15744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
15745 $as_echo "$gl_cv_pragma_columns" >&6; }
15746 if test $gl_cv_pragma_columns = yes; then
15747 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
15748 else
15749 PRAGMA_COLUMNS=
15768 if test $gl_cv_have_include_next = yes; then
15769 gl_cv_next_getopt_h='<'getopt.h'>'
15770 else
15771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
15772 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
15773 if test "${gl_cv_next_getopt_h+set}" = set; then :
15774 $as_echo_n "(cached) " >&6
15775 else
15777 if test $ac_cv_header_getopt_h = yes; then
15780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15781 /* end confdefs.h. */
15782 #include <getopt.h>
15784 _ACEOF
15785 case "$host_os" in
15786 aix*) gl_absname_cpp="$ac_cpp -C" ;;
15787 *) gl_absname_cpp="$ac_cpp" ;;
15788 esac
15790 case "$host_os" in
15791 mingw*)
15792 gl_dirsep_regex='[/\\]'
15795 gl_dirsep_regex='\/'
15797 esac
15798 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
15800 gl_header_literal_regex=`echo 'getopt.h' \
15801 | sed -e "$gl_make_literal_regex_sed"`
15802 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
15803 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
15804 s|^/[^/]|//&|
15808 gl_cv_next_getopt_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15809 sed -n "$gl_absolute_header_sed"`'"'
15810 else
15811 gl_cv_next_getopt_h='<'getopt.h'>'
15816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
15817 $as_echo "$gl_cv_next_getopt_h" >&6; }
15819 NEXT_GETOPT_H=$gl_cv_next_getopt_h
15821 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
15822 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15823 gl_next_as_first_directive='<'getopt.h'>'
15824 else
15825 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15826 gl_next_as_first_directive=$gl_cv_next_getopt_h
15828 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H=$gl_next_as_first_directive
15833 if test $ac_cv_header_getopt_h = yes; then
15834 HAVE_GETOPT_H=1
15835 else
15836 HAVE_GETOPT_H=0
15840 gl_replace_getopt=
15842 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
15843 for ac_header in getopt.h
15844 do :
15845 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
15846 if test "x$ac_cv_header_getopt_h" = x""yes; then :
15847 cat >>confdefs.h <<_ACEOF
15848 #define HAVE_GETOPT_H 1
15849 _ACEOF
15851 else
15852 gl_replace_getopt=yes
15855 done
15859 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
15860 for ac_func in getopt_long_only
15861 do :
15862 ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
15863 if test "x$ac_cv_func_getopt_long_only" = x""yes; then :
15864 cat >>confdefs.h <<_ACEOF
15865 #define HAVE_GETOPT_LONG_ONLY 1
15866 _ACEOF
15868 else
15869 gl_replace_getopt=yes
15871 done
15875 if test -z "$gl_replace_getopt"; then
15876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
15877 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
15878 if test "${gl_cv_func_getopt_posix+set}" = set; then :
15879 $as_echo_n "(cached) " >&6
15880 else
15882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15883 /* end confdefs.h. */
15884 #include <unistd.h>
15886 main ()
15888 int *p = &optreset; return optreset;
15890 return 0;
15892 _ACEOF
15893 if ac_fn_c_try_link "$LINENO"; then :
15894 gl_optind_min=1
15895 else
15896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15897 /* end confdefs.h. */
15898 #include <getopt.h>
15900 main ()
15902 return !getopt_clip;
15904 return 0;
15906 _ACEOF
15907 if ac_fn_c_try_compile "$LINENO"; then :
15908 gl_optind_min=1
15909 else
15910 gl_optind_min=0
15912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15914 rm -f core conftest.err conftest.$ac_objext \
15915 conftest$ac_exeext conftest.$ac_ext
15917 gl_save_CPPFLAGS=$CPPFLAGS
15918 CPPFLAGS="$CPPFLAGS -DOPTIND_MIN=$gl_optind_min"
15919 if test "$cross_compiling" = yes; then :
15920 case "$host_os" in
15921 mingw*) gl_cv_func_getopt_posix="guessing no";;
15922 darwin* | aix*) gl_cv_func_getopt_posix="guessing no";;
15923 *) gl_cv_func_getopt_posix="guessing yes";;
15924 esac
15926 else
15927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15928 /* end confdefs.h. */
15930 #include <unistd.h>
15931 #include <stdlib.h>
15932 #include <string.h>
15935 main ()
15938 static char program[] = "program";
15939 static char a[] = "-a";
15940 static char foo[] = "foo";
15941 static char bar[] = "bar";
15942 char *argv[] = { program, a, foo, bar, NULL };
15943 int c;
15945 optind = OPTIND_MIN;
15946 opterr = 0;
15948 c = getopt (4, argv, "ab");
15949 if (!(c == 'a'))
15950 return 1;
15951 c = getopt (4, argv, "ab");
15952 if (!(c == -1))
15953 return 2;
15954 if (!(optind == 2))
15955 return 3;
15957 /* Some internal state exists at this point. */
15959 static char program[] = "program";
15960 static char donald[] = "donald";
15961 static char p[] = "-p";
15962 static char billy[] = "billy";
15963 static char duck[] = "duck";
15964 static char a[] = "-a";
15965 static char bar[] = "bar";
15966 char *argv[] = { program, donald, p, billy, duck, a, bar, NULL };
15967 int c;
15969 optind = OPTIND_MIN;
15970 opterr = 0;
15972 c = getopt (7, argv, "+abp:q:");
15973 if (!(c == -1))
15974 return 4;
15975 if (!(strcmp (argv[0], "program") == 0))
15976 return 5;
15977 if (!(strcmp (argv[1], "donald") == 0))
15978 return 6;
15979 if (!(strcmp (argv[2], "-p") == 0))
15980 return 7;
15981 if (!(strcmp (argv[3], "billy") == 0))
15982 return 8;
15983 if (!(strcmp (argv[4], "duck") == 0))
15984 return 9;
15985 if (!(strcmp (argv[5], "-a") == 0))
15986 return 10;
15987 if (!(strcmp (argv[6], "bar") == 0))
15988 return 11;
15989 if (!(optind == 1))
15990 return 12;
15992 /* Detect MacOS 10.5, AIX 7.1 bug. */
15994 static char program[] = "program";
15995 static char ab[] = "-ab";
15996 char *argv[3] = { program, ab, NULL };
15997 optind = OPTIND_MIN;
15998 opterr = 0;
15999 if (getopt (2, argv, "ab:") != 'a')
16000 return 13;
16001 if (getopt (2, argv, "ab:") != '?')
16002 return 14;
16003 if (optopt != 'b')
16004 return 15;
16005 if (optind != 2)
16006 return 16;
16009 return 0;
16012 _ACEOF
16013 if ac_fn_c_try_run "$LINENO"; then :
16014 gl_cv_func_getopt_posix=yes
16015 else
16016 gl_cv_func_getopt_posix=no
16018 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16019 conftest.$ac_objext conftest.beam conftest.$ac_ext
16022 CPPFLAGS=$gl_save_CPPFLAGS
16025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
16026 $as_echo "$gl_cv_func_getopt_posix" >&6; }
16027 case "$gl_cv_func_getopt_posix" in
16028 *no) gl_replace_getopt=yes ;;
16029 esac
16032 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
16033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
16034 $as_echo_n "checking for working GNU getopt function... " >&6; }
16035 if test "${gl_cv_func_getopt_gnu+set}" = set; then :
16036 $as_echo_n "(cached) " >&6
16037 else
16038 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
16039 # optstring is necessary for programs like m4 that have POSIX-mandated
16040 # semantics for supporting options interspersed with files.
16041 # Also, since getopt_long is a GNU extension, we require optind=0.
16042 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
16043 # so take care to revert to the correct (non-)export state.
16044 gl_awk_probe='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
16045 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
16046 xx) gl_had_POSIXLY_CORRECT=exported ;;
16047 x) gl_had_POSIXLY_CORRECT=yes ;;
16048 *) gl_had_POSIXLY_CORRECT= ;;
16049 esac
16050 POSIXLY_CORRECT=1
16051 export POSIXLY_CORRECT
16052 if test "$cross_compiling" = yes; then :
16053 case $host_os:$ac_cv_have_decl_optreset in
16054 *-gnu*:* | mingw*:*) gl_cv_func_getopt_gnu=no;;
16055 *:yes) gl_cv_func_getopt_gnu=no;;
16056 *) gl_cv_func_getopt_gnu=yes;;
16057 esac
16059 else
16060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16061 /* end confdefs.h. */
16062 #include <getopt.h>
16063 #include <stddef.h>
16064 #include <string.h>
16066 #include <stdlib.h>
16067 #if defined __MACH__ && defined __APPLE__
16068 /* Avoid a crash on MacOS X. */
16069 #include <mach/mach.h>
16070 #include <mach/mach_error.h>
16071 #include <mach/thread_status.h>
16072 #include <mach/exception.h>
16073 #include <mach/task.h>
16074 #include <pthread.h>
16075 /* The exception port on which our thread listens. */
16076 static mach_port_t our_exception_port;
16077 /* The main function of the thread listening for exceptions of type
16078 EXC_BAD_ACCESS. */
16079 static void *
16080 mach_exception_thread (void *arg)
16082 /* Buffer for a message to be received. */
16083 struct {
16084 mach_msg_header_t head;
16085 mach_msg_body_t msgh_body;
16086 char data[1024];
16087 } msg;
16088 mach_msg_return_t retval;
16089 /* Wait for a message on the exception port. */
16090 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
16091 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
16092 if (retval != MACH_MSG_SUCCESS)
16093 abort ();
16094 exit (1);
16096 static void
16097 nocrash_init (void)
16099 mach_port_t self = mach_task_self ();
16100 /* Allocate a port on which the thread shall listen for exceptions. */
16101 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
16102 == KERN_SUCCESS) {
16103 /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
16104 if (mach_port_insert_right (self, our_exception_port, our_exception_port,
16105 MACH_MSG_TYPE_MAKE_SEND)
16106 == KERN_SUCCESS) {
16107 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
16108 for us. */
16109 exception_mask_t mask = EXC_MASK_BAD_ACCESS;
16110 /* Create the thread listening on the exception port. */
16111 pthread_attr_t attr;
16112 pthread_t thread;
16113 if (pthread_attr_init (&attr) == 0
16114 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
16115 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
16116 pthread_attr_destroy (&attr);
16117 /* Replace the exception port info for these exceptions with our own.
16118 Note that we replace the exception port for the entire task, not only
16119 for a particular thread. This has the effect that when our exception
16120 port gets the message, the thread specific exception port has already
16121 been asked, and we don't need to bother about it.
16122 See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
16123 task_set_exception_ports (self, mask, our_exception_port,
16124 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
16129 #elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
16130 /* Avoid a crash on native Windows. */
16131 #define WIN32_LEAN_AND_MEAN
16132 #include <windows.h>
16133 #include <winerror.h>
16134 static LONG WINAPI
16135 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
16137 switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
16139 case EXCEPTION_ACCESS_VIOLATION:
16140 case EXCEPTION_IN_PAGE_ERROR:
16141 case EXCEPTION_STACK_OVERFLOW:
16142 case EXCEPTION_GUARD_PAGE:
16143 case EXCEPTION_PRIV_INSTRUCTION:
16144 case EXCEPTION_ILLEGAL_INSTRUCTION:
16145 case EXCEPTION_DATATYPE_MISALIGNMENT:
16146 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
16147 case EXCEPTION_NONCONTINUABLE_EXCEPTION:
16148 exit (1);
16150 return EXCEPTION_CONTINUE_SEARCH;
16152 static void
16153 nocrash_init (void)
16155 SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
16157 #else
16158 /* Avoid a crash on POSIX systems. */
16159 #include <signal.h>
16160 /* A POSIX signal handler. */
16161 static void
16162 exception_handler (int sig)
16164 exit (1);
16166 static void
16167 nocrash_init (void)
16169 #ifdef SIGSEGV
16170 signal (SIGSEGV, exception_handler);
16171 #endif
16172 #ifdef SIGBUS
16173 signal (SIGBUS, exception_handler);
16174 #endif
16176 #endif
16180 main ()
16183 int result = 0;
16185 nocrash_init();
16187 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
16188 and fails on MacOS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
16189 OSF/1 5.1, Solaris 10. */
16191 static char conftest[] = "conftest";
16192 static char plus[] = "-+";
16193 char *argv[3] = { conftest, plus, NULL };
16194 opterr = 0;
16195 if (getopt (2, argv, "+a") != '?')
16196 result |= 1;
16198 /* This code succeeds on glibc 2.8, mingw,
16199 and fails on MacOS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
16200 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
16202 static char program[] = "program";
16203 static char p[] = "-p";
16204 static char foo[] = "foo";
16205 static char bar[] = "bar";
16206 char *argv[] = { program, p, foo, bar, NULL };
16208 optind = 1;
16209 if (getopt (4, argv, "p::") != 'p')
16210 result |= 2;
16211 else if (optarg != NULL)
16212 result |= 4;
16213 else if (getopt (4, argv, "p::") != -1)
16214 result |= 6;
16215 else if (optind != 2)
16216 result |= 8;
16218 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
16220 static char program[] = "program";
16221 static char foo[] = "foo";
16222 static char p[] = "-p";
16223 char *argv[] = { program, foo, p, NULL };
16224 optind = 0;
16225 if (getopt (3, argv, "-p") != 1)
16226 result |= 16;
16227 else if (getopt (3, argv, "-p") != 'p')
16228 result |= 32;
16230 /* This code fails on glibc 2.11. */
16232 static char program[] = "program";
16233 static char b[] = "-b";
16234 static char a[] = "-a";
16235 char *argv[] = { program, b, a, NULL };
16236 optind = opterr = 0;
16237 if (getopt (3, argv, "+:a:b") != 'b')
16238 result |= 64;
16239 else if (getopt (3, argv, "+:a:b") != ':')
16240 result |= 64;
16242 /* This code dumps core on glibc 2.14. */
16244 static char program[] = "program";
16245 static char w[] = "-W";
16246 static char dummy[] = "dummy";
16247 char *argv[] = { program, w, dummy, NULL };
16248 optind = opterr = 1;
16249 if (getopt (3, argv, "W;") != 'W')
16250 result |= 128;
16252 return result;
16255 return 0;
16257 _ACEOF
16258 if ac_fn_c_try_run "$LINENO"; then :
16259 gl_cv_func_getopt_gnu=yes
16260 else
16261 gl_cv_func_getopt_gnu=no
16263 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16264 conftest.$ac_objext conftest.beam conftest.$ac_ext
16267 case $gl_had_POSIXLY_CORRECT in
16268 exported) ;;
16269 yes) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;}; POSIXLY_CORRECT=1 ;;
16270 *) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;} ;;
16271 esac
16274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
16275 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
16276 if test "$gl_cv_func_getopt_gnu" = "no"; then
16277 gl_replace_getopt=yes
16285 REPLACE_GETOPT=0
16288 if test -n "$gl_replace_getopt"; then :
16290 REPLACE_GETOPT=1
16295 if test $REPLACE_GETOPT = 1; then
16297 GETOPT_H=getopt.h
16299 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
16305 ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
16306 if test "x$ac_cv_have_decl_getenv" = x""yes; then :
16307 ac_have_decl=1
16308 else
16309 ac_have_decl=0
16312 cat >>confdefs.h <<_ACEOF
16313 #define HAVE_DECL_GETENV $ac_have_decl
16314 _ACEOF
16317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
16318 $as_echo_n "checking for unsigned long long int... " >&6; }
16319 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
16320 $as_echo_n "(cached) " >&6
16321 else
16322 ac_cv_type_unsigned_long_long_int=yes
16323 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
16324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16325 /* end confdefs.h. */
16327 /* For now, do not test the preprocessor; as of 2007 there are too many
16328 implementations with broken preprocessors. Perhaps this can
16329 be revisited in 2012. In the meantime, code should not expect
16330 #if to work with literals wider than 32 bits. */
16331 /* Test literals. */
16332 long long int ll = 9223372036854775807ll;
16333 long long int nll = -9223372036854775807LL;
16334 unsigned long long int ull = 18446744073709551615ULL;
16335 /* Test constant expressions. */
16336 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
16337 ? 1 : -1)];
16338 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
16339 ? 1 : -1)];
16340 int i = 63;
16342 main ()
16344 /* Test availability of runtime routines for shift and division. */
16345 long long int llmax = 9223372036854775807ll;
16346 unsigned long long int ullmax = 18446744073709551615ull;
16347 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
16348 | (llmax / ll) | (llmax % ll)
16349 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
16350 | (ullmax / ull) | (ullmax % ull));
16352 return 0;
16355 _ACEOF
16356 if ac_fn_c_try_link "$LINENO"; then :
16358 else
16359 ac_cv_type_unsigned_long_long_int=no
16361 rm -f core conftest.err conftest.$ac_objext \
16362 conftest$ac_exeext conftest.$ac_ext
16365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
16366 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
16367 if test $ac_cv_type_unsigned_long_long_int = yes; then
16369 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
16375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
16376 $as_echo_n "checking for long long int... " >&6; }
16377 if test "${ac_cv_type_long_long_int+set}" = set; then :
16378 $as_echo_n "(cached) " >&6
16379 else
16380 ac_cv_type_long_long_int=yes
16381 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
16382 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
16383 if test $ac_cv_type_long_long_int = yes; then
16384 if test "$cross_compiling" = yes; then :
16386 else
16387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16388 /* end confdefs.h. */
16389 #include <limits.h>
16390 #ifndef LLONG_MAX
16391 # define HALF \
16392 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
16393 # define LLONG_MAX (HALF - 1 + HALF)
16394 #endif
16396 main ()
16398 long long int n = 1;
16399 int i;
16400 for (i = 0; ; i++)
16402 long long int m = n << i;
16403 if (m >> i != n)
16404 return 1;
16405 if (LLONG_MAX / 2 < m)
16406 break;
16408 return 0;
16410 return 0;
16412 _ACEOF
16413 if ac_fn_c_try_run "$LINENO"; then :
16415 else
16416 ac_cv_type_long_long_int=no
16418 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16419 conftest.$ac_objext conftest.beam conftest.$ac_ext
16425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
16426 $as_echo "$ac_cv_type_long_long_int" >&6; }
16427 if test $ac_cv_type_long_long_int = yes; then
16429 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
16438 gl_cv_c_multiarch=no
16439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16440 /* end confdefs.h. */
16441 #ifndef __APPLE_CC__
16442 not a universal capable compiler
16443 #endif
16444 typedef int dummy;
16446 _ACEOF
16447 if ac_fn_c_try_compile "$LINENO"; then :
16449 arch=
16450 prev=
16451 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
16452 if test -n "$prev"; then
16453 case $word in
16454 i?86 | x86_64 | ppc | ppc64)
16455 if test -z "$arch" || test "$arch" = "$word"; then
16456 arch="$word"
16457 else
16458 gl_cv_c_multiarch=yes
16461 esac
16462 prev=
16463 else
16464 if test "x$word" = "x-arch"; then
16465 prev=arch
16468 done
16471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16472 if test $gl_cv_c_multiarch = yes; then
16473 APPLE_UNIVERSAL_BUILD=1
16474 else
16475 APPLE_UNIVERSAL_BUILD=0
16482 if test $ac_cv_type_long_long_int = yes; then
16483 HAVE_LONG_LONG_INT=1
16484 else
16485 HAVE_LONG_LONG_INT=0
16489 if test $ac_cv_type_unsigned_long_long_int = yes; then
16490 HAVE_UNSIGNED_LONG_LONG_INT=1
16491 else
16492 HAVE_UNSIGNED_LONG_LONG_INT=0
16497 if test $ac_cv_header_wchar_h = yes; then
16498 HAVE_WCHAR_H=1
16499 else
16500 HAVE_WCHAR_H=0
16504 if test $ac_cv_header_inttypes_h = yes; then
16505 HAVE_INTTYPES_H=1
16506 else
16507 HAVE_INTTYPES_H=0
16511 if test $ac_cv_header_sys_types_h = yes; then
16512 HAVE_SYS_TYPES_H=1
16513 else
16514 HAVE_SYS_TYPES_H=0
16527 if test $gl_cv_have_include_next = yes; then
16528 gl_cv_next_stdint_h='<'stdint.h'>'
16529 else
16530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
16531 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
16532 if test "${gl_cv_next_stdint_h+set}" = set; then :
16533 $as_echo_n "(cached) " >&6
16534 else
16536 if test $ac_cv_header_stdint_h = yes; then
16539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16540 /* end confdefs.h. */
16541 #include <stdint.h>
16543 _ACEOF
16544 case "$host_os" in
16545 aix*) gl_absname_cpp="$ac_cpp -C" ;;
16546 *) gl_absname_cpp="$ac_cpp" ;;
16547 esac
16549 case "$host_os" in
16550 mingw*)
16551 gl_dirsep_regex='[/\\]'
16554 gl_dirsep_regex='\/'
16556 esac
16557 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
16559 gl_header_literal_regex=`echo 'stdint.h' \
16560 | sed -e "$gl_make_literal_regex_sed"`
16561 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
16562 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
16563 s|^/[^/]|//&|
16567 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16568 sed -n "$gl_absolute_header_sed"`'"'
16569 else
16570 gl_cv_next_stdint_h='<'stdint.h'>'
16575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
16576 $as_echo "$gl_cv_next_stdint_h" >&6; }
16578 NEXT_STDINT_H=$gl_cv_next_stdint_h
16580 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16581 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16582 gl_next_as_first_directive='<'stdint.h'>'
16583 else
16584 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16585 gl_next_as_first_directive=$gl_cv_next_stdint_h
16587 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
16592 if test $ac_cv_header_stdint_h = yes; then
16593 HAVE_STDINT_H=1
16594 else
16595 HAVE_STDINT_H=0
16599 if test $ac_cv_header_stdint_h = yes; then
16600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
16601 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
16602 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
16603 $as_echo_n "(cached) " >&6
16604 else
16605 gl_cv_header_working_stdint_h=no
16606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16607 /* end confdefs.h. */
16610 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
16611 #include <stdint.h>
16612 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
16613 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
16614 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
16615 #endif
16618 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16619 included before <wchar.h>. */
16620 #include <stddef.h>
16621 #include <signal.h>
16622 #if HAVE_WCHAR_H
16623 # include <stdio.h>
16624 # include <time.h>
16625 # include <wchar.h>
16626 #endif
16629 #ifdef INT8_MAX
16630 int8_t a1 = INT8_MAX;
16631 int8_t a1min = INT8_MIN;
16632 #endif
16633 #ifdef INT16_MAX
16634 int16_t a2 = INT16_MAX;
16635 int16_t a2min = INT16_MIN;
16636 #endif
16637 #ifdef INT32_MAX
16638 int32_t a3 = INT32_MAX;
16639 int32_t a3min = INT32_MIN;
16640 #endif
16641 #ifdef INT64_MAX
16642 int64_t a4 = INT64_MAX;
16643 int64_t a4min = INT64_MIN;
16644 #endif
16645 #ifdef UINT8_MAX
16646 uint8_t b1 = UINT8_MAX;
16647 #else
16648 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
16649 #endif
16650 #ifdef UINT16_MAX
16651 uint16_t b2 = UINT16_MAX;
16652 #endif
16653 #ifdef UINT32_MAX
16654 uint32_t b3 = UINT32_MAX;
16655 #endif
16656 #ifdef UINT64_MAX
16657 uint64_t b4 = UINT64_MAX;
16658 #endif
16659 int_least8_t c1 = INT8_C (0x7f);
16660 int_least8_t c1max = INT_LEAST8_MAX;
16661 int_least8_t c1min = INT_LEAST8_MIN;
16662 int_least16_t c2 = INT16_C (0x7fff);
16663 int_least16_t c2max = INT_LEAST16_MAX;
16664 int_least16_t c2min = INT_LEAST16_MIN;
16665 int_least32_t c3 = INT32_C (0x7fffffff);
16666 int_least32_t c3max = INT_LEAST32_MAX;
16667 int_least32_t c3min = INT_LEAST32_MIN;
16668 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
16669 int_least64_t c4max = INT_LEAST64_MAX;
16670 int_least64_t c4min = INT_LEAST64_MIN;
16671 uint_least8_t d1 = UINT8_C (0xff);
16672 uint_least8_t d1max = UINT_LEAST8_MAX;
16673 uint_least16_t d2 = UINT16_C (0xffff);
16674 uint_least16_t d2max = UINT_LEAST16_MAX;
16675 uint_least32_t d3 = UINT32_C (0xffffffff);
16676 uint_least32_t d3max = UINT_LEAST32_MAX;
16677 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
16678 uint_least64_t d4max = UINT_LEAST64_MAX;
16679 int_fast8_t e1 = INT_FAST8_MAX;
16680 int_fast8_t e1min = INT_FAST8_MIN;
16681 int_fast16_t e2 = INT_FAST16_MAX;
16682 int_fast16_t e2min = INT_FAST16_MIN;
16683 int_fast32_t e3 = INT_FAST32_MAX;
16684 int_fast32_t e3min = INT_FAST32_MIN;
16685 int_fast64_t e4 = INT_FAST64_MAX;
16686 int_fast64_t e4min = INT_FAST64_MIN;
16687 uint_fast8_t f1 = UINT_FAST8_MAX;
16688 uint_fast16_t f2 = UINT_FAST16_MAX;
16689 uint_fast32_t f3 = UINT_FAST32_MAX;
16690 uint_fast64_t f4 = UINT_FAST64_MAX;
16691 #ifdef INTPTR_MAX
16692 intptr_t g = INTPTR_MAX;
16693 intptr_t gmin = INTPTR_MIN;
16694 #endif
16695 #ifdef UINTPTR_MAX
16696 uintptr_t h = UINTPTR_MAX;
16697 #endif
16698 intmax_t i = INTMAX_MAX;
16699 uintmax_t j = UINTMAX_MAX;
16701 #include <limits.h> /* for CHAR_BIT */
16702 #define TYPE_MINIMUM(t) \
16703 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
16704 #define TYPE_MAXIMUM(t) \
16705 ((t) ((t) 0 < (t) -1 \
16706 ? (t) -1 \
16707 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
16708 struct s {
16709 int check_PTRDIFF:
16710 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
16711 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
16712 ? 1 : -1;
16713 /* Detect bug in FreeBSD 6.0 / ia64. */
16714 int check_SIG_ATOMIC:
16715 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
16716 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
16717 ? 1 : -1;
16718 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
16719 int check_WCHAR:
16720 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
16721 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
16722 ? 1 : -1;
16723 /* Detect bug in mingw. */
16724 int check_WINT:
16725 WINT_MIN == TYPE_MINIMUM (wint_t)
16726 && WINT_MAX == TYPE_MAXIMUM (wint_t)
16727 ? 1 : -1;
16729 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
16730 int check_UINT8_C:
16731 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
16732 int check_UINT16_C:
16733 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
16735 /* Detect bugs in OpenBSD 3.9 stdint.h. */
16736 #ifdef UINT8_MAX
16737 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
16738 #endif
16739 #ifdef UINT16_MAX
16740 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
16741 #endif
16742 #ifdef UINT32_MAX
16743 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
16744 #endif
16745 #ifdef UINT64_MAX
16746 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
16747 #endif
16748 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
16749 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
16750 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
16751 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
16752 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
16753 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
16754 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
16755 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
16756 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
16757 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
16758 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
16762 main ()
16766 return 0;
16768 _ACEOF
16769 if ac_fn_c_try_compile "$LINENO"; then :
16770 if test "$cross_compiling" = yes; then :
16771 gl_cv_header_working_stdint_h=yes
16773 else
16774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16775 /* end confdefs.h. */
16778 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
16779 #include <stdint.h>
16782 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16783 included before <wchar.h>. */
16784 #include <stddef.h>
16785 #include <signal.h>
16786 #if HAVE_WCHAR_H
16787 # include <stdio.h>
16788 # include <time.h>
16789 # include <wchar.h>
16790 #endif
16793 #include <stdio.h>
16794 #include <string.h>
16795 #define MVAL(macro) MVAL1(macro)
16796 #define MVAL1(expression) #expression
16797 static const char *macro_values[] =
16799 #ifdef INT8_MAX
16800 MVAL (INT8_MAX),
16801 #endif
16802 #ifdef INT16_MAX
16803 MVAL (INT16_MAX),
16804 #endif
16805 #ifdef INT32_MAX
16806 MVAL (INT32_MAX),
16807 #endif
16808 #ifdef INT64_MAX
16809 MVAL (INT64_MAX),
16810 #endif
16811 #ifdef UINT8_MAX
16812 MVAL (UINT8_MAX),
16813 #endif
16814 #ifdef UINT16_MAX
16815 MVAL (UINT16_MAX),
16816 #endif
16817 #ifdef UINT32_MAX
16818 MVAL (UINT32_MAX),
16819 #endif
16820 #ifdef UINT64_MAX
16821 MVAL (UINT64_MAX),
16822 #endif
16823 NULL
16827 main ()
16830 const char **mv;
16831 for (mv = macro_values; *mv != NULL; mv++)
16833 const char *value = *mv;
16834 /* Test whether it looks like a cast expression. */
16835 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
16836 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
16837 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
16838 || strncmp (value, "((int)"/*)*/, 6) == 0
16839 || strncmp (value, "((signed short)"/*)*/, 15) == 0
16840 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
16841 return mv - macro_values + 1;
16843 return 0;
16846 return 0;
16848 _ACEOF
16849 if ac_fn_c_try_run "$LINENO"; then :
16850 gl_cv_header_working_stdint_h=yes
16852 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16853 conftest.$ac_objext conftest.beam conftest.$ac_ext
16858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
16862 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
16864 if test "$gl_cv_header_working_stdint_h" = yes; then
16865 STDINT_H=
16866 else
16867 for ac_header in sys/inttypes.h sys/bitypes.h
16868 do :
16869 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16870 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16871 eval as_val=\$$as_ac_Header
16872 if test "x$as_val" = x""yes; then :
16873 cat >>confdefs.h <<_ACEOF
16874 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16875 _ACEOF
16879 done
16881 if test $ac_cv_header_sys_inttypes_h = yes; then
16882 HAVE_SYS_INTTYPES_H=1
16883 else
16884 HAVE_SYS_INTTYPES_H=0
16887 if test $ac_cv_header_sys_bitypes_h = yes; then
16888 HAVE_SYS_BITYPES_H=1
16889 else
16890 HAVE_SYS_BITYPES_H=0
16896 if test $APPLE_UNIVERSAL_BUILD = 0; then
16899 for gltype in ptrdiff_t size_t ; do
16900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
16901 $as_echo_n "checking for bit size of $gltype... " >&6; }
16902 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
16903 $as_echo_n "(cached) " >&6
16904 else
16905 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
16906 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16907 included before <wchar.h>. */
16908 #include <stddef.h>
16909 #include <signal.h>
16910 #if HAVE_WCHAR_H
16911 # include <stdio.h>
16912 # include <time.h>
16913 # include <wchar.h>
16914 #endif
16916 #include <limits.h>"; then :
16918 else
16919 result=unknown
16922 eval gl_cv_bitsizeof_${gltype}=\$result
16925 eval ac_res=\$gl_cv_bitsizeof_${gltype}
16926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16927 $as_echo "$ac_res" >&6; }
16928 eval result=\$gl_cv_bitsizeof_${gltype}
16929 if test $result = unknown; then
16930 result=0
16932 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
16933 cat >>confdefs.h <<_ACEOF
16934 #define BITSIZEOF_${GLTYPE} $result
16935 _ACEOF
16937 eval BITSIZEOF_${GLTYPE}=\$result
16938 done
16944 for gltype in sig_atomic_t wchar_t wint_t ; do
16945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
16946 $as_echo_n "checking for bit size of $gltype... " >&6; }
16947 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
16948 $as_echo_n "(cached) " >&6
16949 else
16950 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
16951 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16952 included before <wchar.h>. */
16953 #include <stddef.h>
16954 #include <signal.h>
16955 #if HAVE_WCHAR_H
16956 # include <stdio.h>
16957 # include <time.h>
16958 # include <wchar.h>
16959 #endif
16961 #include <limits.h>"; then :
16963 else
16964 result=unknown
16967 eval gl_cv_bitsizeof_${gltype}=\$result
16970 eval ac_res=\$gl_cv_bitsizeof_${gltype}
16971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16972 $as_echo "$ac_res" >&6; }
16973 eval result=\$gl_cv_bitsizeof_${gltype}
16974 if test $result = unknown; then
16975 result=0
16977 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
16978 cat >>confdefs.h <<_ACEOF
16979 #define BITSIZEOF_${GLTYPE} $result
16980 _ACEOF
16982 eval BITSIZEOF_${GLTYPE}=\$result
16983 done
16988 for gltype in sig_atomic_t wchar_t wint_t ; do
16989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
16990 $as_echo_n "checking whether $gltype is signed... " >&6; }
16991 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
16992 $as_echo_n "(cached) " >&6
16993 else
16994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16995 /* end confdefs.h. */
16997 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16998 included before <wchar.h>. */
16999 #include <stddef.h>
17000 #include <signal.h>
17001 #if HAVE_WCHAR_H
17002 # include <stdio.h>
17003 # include <time.h>
17004 # include <wchar.h>
17005 #endif
17007 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
17009 main ()
17013 return 0;
17015 _ACEOF
17016 if ac_fn_c_try_compile "$LINENO"; then :
17017 result=yes
17018 else
17019 result=no
17021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17022 eval gl_cv_type_${gltype}_signed=\$result
17025 eval ac_res=\$gl_cv_type_${gltype}_signed
17026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17027 $as_echo "$ac_res" >&6; }
17028 eval result=\$gl_cv_type_${gltype}_signed
17029 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17030 if test "$result" = yes; then
17031 cat >>confdefs.h <<_ACEOF
17032 #define HAVE_SIGNED_${GLTYPE} 1
17033 _ACEOF
17035 eval HAVE_SIGNED_${GLTYPE}=1
17036 else
17037 eval HAVE_SIGNED_${GLTYPE}=0
17039 done
17042 gl_cv_type_ptrdiff_t_signed=yes
17043 gl_cv_type_size_t_signed=no
17044 if test $APPLE_UNIVERSAL_BUILD = 0; then
17047 for gltype in ptrdiff_t size_t ; do
17048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
17049 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
17050 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
17051 $as_echo_n "(cached) " >&6
17052 else
17053 eval gl_cv_type_${gltype}_suffix=no
17054 eval result=\$gl_cv_type_${gltype}_signed
17055 if test "$result" = yes; then
17056 glsufu=
17057 else
17058 glsufu=u
17060 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
17061 case $glsuf in
17062 '') gltype1='int';;
17063 l) gltype1='long int';;
17064 ll) gltype1='long long int';;
17065 i64) gltype1='__int64';;
17066 u) gltype1='unsigned int';;
17067 ul) gltype1='unsigned long int';;
17068 ull) gltype1='unsigned long long int';;
17069 ui64)gltype1='unsigned __int64';;
17070 esac
17071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17072 /* end confdefs.h. */
17074 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17075 included before <wchar.h>. */
17076 #include <stddef.h>
17077 #include <signal.h>
17078 #if HAVE_WCHAR_H
17079 # include <stdio.h>
17080 # include <time.h>
17081 # include <wchar.h>
17082 #endif
17084 extern $gltype foo;
17085 extern $gltype1 foo;
17087 main ()
17091 return 0;
17093 _ACEOF
17094 if ac_fn_c_try_compile "$LINENO"; then :
17095 eval gl_cv_type_${gltype}_suffix=\$glsuf
17097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17098 eval result=\$gl_cv_type_${gltype}_suffix
17099 test "$result" != no && break
17100 done
17102 eval ac_res=\$gl_cv_type_${gltype}_suffix
17103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17104 $as_echo "$ac_res" >&6; }
17105 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17106 eval result=\$gl_cv_type_${gltype}_suffix
17107 test "$result" = no && result=
17108 eval ${GLTYPE}_SUFFIX=\$result
17109 cat >>confdefs.h <<_ACEOF
17110 #define ${GLTYPE}_SUFFIX $result
17111 _ACEOF
17113 done
17119 for gltype in sig_atomic_t wchar_t wint_t ; do
17120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
17121 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
17122 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
17123 $as_echo_n "(cached) " >&6
17124 else
17125 eval gl_cv_type_${gltype}_suffix=no
17126 eval result=\$gl_cv_type_${gltype}_signed
17127 if test "$result" = yes; then
17128 glsufu=
17129 else
17130 glsufu=u
17132 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
17133 case $glsuf in
17134 '') gltype1='int';;
17135 l) gltype1='long int';;
17136 ll) gltype1='long long int';;
17137 i64) gltype1='__int64';;
17138 u) gltype1='unsigned int';;
17139 ul) gltype1='unsigned long int';;
17140 ull) gltype1='unsigned long long int';;
17141 ui64)gltype1='unsigned __int64';;
17142 esac
17143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17144 /* end confdefs.h. */
17146 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17147 included before <wchar.h>. */
17148 #include <stddef.h>
17149 #include <signal.h>
17150 #if HAVE_WCHAR_H
17151 # include <stdio.h>
17152 # include <time.h>
17153 # include <wchar.h>
17154 #endif
17156 extern $gltype foo;
17157 extern $gltype1 foo;
17159 main ()
17163 return 0;
17165 _ACEOF
17166 if ac_fn_c_try_compile "$LINENO"; then :
17167 eval gl_cv_type_${gltype}_suffix=\$glsuf
17169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17170 eval result=\$gl_cv_type_${gltype}_suffix
17171 test "$result" != no && break
17172 done
17174 eval ac_res=\$gl_cv_type_${gltype}_suffix
17175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17176 $as_echo "$ac_res" >&6; }
17177 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17178 eval result=\$gl_cv_type_${gltype}_suffix
17179 test "$result" = no && result=
17180 eval ${GLTYPE}_SUFFIX=\$result
17181 cat >>confdefs.h <<_ACEOF
17182 #define ${GLTYPE}_SUFFIX $result
17183 _ACEOF
17185 done
17189 if test $BITSIZEOF_WINT_T -lt 32; then
17190 BITSIZEOF_WINT_T=32
17193 STDINT_H=stdint.h
17196 if test -n "$STDINT_H"; then
17197 GL_GENERATE_STDINT_H_TRUE=
17198 GL_GENERATE_STDINT_H_FALSE='#'
17199 else
17200 GL_GENERATE_STDINT_H_TRUE='#'
17201 GL_GENERATE_STDINT_H_FALSE=
17208 GNULIB_IMAXABS=0;
17209 GNULIB_IMAXDIV=0;
17210 GNULIB_STRTOIMAX=0;
17211 GNULIB_STRTOUMAX=0;
17212 HAVE_DECL_IMAXABS=1;
17213 HAVE_DECL_IMAXDIV=1;
17214 HAVE_DECL_STRTOIMAX=1;
17215 HAVE_DECL_STRTOUMAX=1;
17216 REPLACE_STRTOIMAX=0;
17217 INT32_MAX_LT_INTMAX_MAX=1;
17218 INT64_MAX_EQ_LONG_MAX='defined _LP64';
17219 PRI_MACROS_BROKEN=0;
17220 PRIPTR_PREFIX=__PRIPTR_PREFIX;
17221 UINT32_MAX_LT_UINTMAX_MAX=1;
17222 UINT64_MAX_EQ_ULONG_MAX='defined _LP64';
17238 if test $gl_cv_have_include_next = yes; then
17239 gl_cv_next_inttypes_h='<'inttypes.h'>'
17240 else
17241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
17242 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
17243 if test "${gl_cv_next_inttypes_h+set}" = set; then :
17244 $as_echo_n "(cached) " >&6
17245 else
17247 if test $ac_cv_header_inttypes_h = yes; then
17250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17251 /* end confdefs.h. */
17252 #include <inttypes.h>
17254 _ACEOF
17255 case "$host_os" in
17256 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17257 *) gl_absname_cpp="$ac_cpp" ;;
17258 esac
17260 case "$host_os" in
17261 mingw*)
17262 gl_dirsep_regex='[/\\]'
17265 gl_dirsep_regex='\/'
17267 esac
17268 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
17270 gl_header_literal_regex=`echo 'inttypes.h' \
17271 | sed -e "$gl_make_literal_regex_sed"`
17272 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17273 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17274 s|^/[^/]|//&|
17278 gl_cv_next_inttypes_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17279 sed -n "$gl_absolute_header_sed"`'"'
17280 else
17281 gl_cv_next_inttypes_h='<'inttypes.h'>'
17286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
17287 $as_echo "$gl_cv_next_inttypes_h" >&6; }
17289 NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
17291 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17292 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17293 gl_next_as_first_directive='<'inttypes.h'>'
17294 else
17295 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17296 gl_next_as_first_directive=$gl_cv_next_inttypes_h
17298 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive
17310 case "$host_os" in
17311 mingw*)
17312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5
17313 $as_echo_n "checking for 64-bit off_t... " >&6; }
17314 if test "${gl_cv_type_off_t_64+set}" = set; then :
17315 $as_echo_n "(cached) " >&6
17316 else
17317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17318 /* end confdefs.h. */
17319 #include <sys/types.h>
17320 int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1];
17323 main ()
17327 return 0;
17329 _ACEOF
17330 if ac_fn_c_try_compile "$LINENO"; then :
17331 gl_cv_type_off_t_64=yes
17332 else
17333 gl_cv_type_off_t_64=no
17335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5
17339 $as_echo "$gl_cv_type_off_t_64" >&6; }
17340 if test $gl_cv_type_off_t_64 = no; then
17341 WINDOWS_64_BIT_OFF_T=1
17342 else
17343 WINDOWS_64_BIT_OFF_T=0
17345 WINDOWS_64_BIT_ST_SIZE=1
17348 WINDOWS_64_BIT_OFF_T=0
17349 WINDOWS_64_BIT_ST_SIZE=0
17351 esac
17354 GNULIB_FCHMODAT=0;
17355 GNULIB_FSTAT=0;
17356 GNULIB_FSTATAT=0;
17357 GNULIB_FUTIMENS=0;
17358 GNULIB_LCHMOD=0;
17359 GNULIB_LSTAT=0;
17360 GNULIB_MKDIRAT=0;
17361 GNULIB_MKFIFO=0;
17362 GNULIB_MKFIFOAT=0;
17363 GNULIB_MKNOD=0;
17364 GNULIB_MKNODAT=0;
17365 GNULIB_STAT=0;
17366 GNULIB_UTIMENSAT=0;
17367 HAVE_FCHMODAT=1;
17368 HAVE_FSTATAT=1;
17369 HAVE_FUTIMENS=1;
17370 HAVE_LCHMOD=1;
17371 HAVE_LSTAT=1;
17372 HAVE_MKDIRAT=1;
17373 HAVE_MKFIFO=1;
17374 HAVE_MKFIFOAT=1;
17375 HAVE_MKNOD=1;
17376 HAVE_MKNODAT=1;
17377 HAVE_UTIMENSAT=1;
17378 REPLACE_FSTAT=0;
17379 REPLACE_FSTATAT=0;
17380 REPLACE_FUTIMENS=0;
17381 REPLACE_LSTAT=0;
17382 REPLACE_MKDIR=0;
17383 REPLACE_MKFIFO=0;
17384 REPLACE_MKNOD=0;
17385 REPLACE_STAT=0;
17386 REPLACE_UTIMENSAT=0;
17391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
17392 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
17393 if test "${gl_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
17394 $as_echo_n "(cached) " >&6
17395 else
17396 rm -f conftest.sym conftest.file
17397 echo >conftest.file
17398 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
17399 if test "$cross_compiling" = yes; then :
17400 case "$host_os" in
17401 # Guess yes on glibc systems.
17402 *-gnu*) gl_cv_func_lstat_dereferences_slashed_symlink="guessing yes" ;;
17403 # If we don't know, assume the worst.
17404 *) gl_cv_func_lstat_dereferences_slashed_symlink="guessing no" ;;
17405 esac
17407 else
17408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17409 /* end confdefs.h. */
17410 $ac_includes_default
17412 main ()
17414 struct stat sbuf;
17415 /* Linux will dereference the symlink and fail, as required by
17416 POSIX. That is better in the sense that it means we will not
17417 have to compile and use the lstat wrapper. */
17418 return lstat ("conftest.sym/", &sbuf) == 0;
17421 return 0;
17423 _ACEOF
17424 if ac_fn_c_try_run "$LINENO"; then :
17425 gl_cv_func_lstat_dereferences_slashed_symlink=yes
17426 else
17427 gl_cv_func_lstat_dereferences_slashed_symlink=no
17429 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17430 conftest.$ac_objext conftest.beam conftest.$ac_ext
17433 else
17434 # If the 'ln -s' command failed, then we probably don't even
17435 # have an lstat function.
17436 gl_cv_func_lstat_dereferences_slashed_symlink="guessing no"
17438 rm -f conftest.sym conftest.file
17441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
17442 $as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
17443 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
17444 *yes)
17446 cat >>confdefs.h <<_ACEOF
17447 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
17448 _ACEOF
17451 esac
17454 GNULIB_MKTIME=0;
17455 GNULIB_NANOSLEEP=0;
17456 GNULIB_STRPTIME=0;
17457 GNULIB_TIMEGM=0;
17458 GNULIB_TIME_R=0;
17459 HAVE_DECL_LOCALTIME_R=1;
17460 HAVE_NANOSLEEP=1;
17461 HAVE_STRPTIME=1;
17462 HAVE_TIMEGM=1;
17463 REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
17464 REPLACE_MKTIME=GNULIB_PORTCHECK;
17465 REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
17466 REPLACE_TIMEGM=GNULIB_PORTCHECK;
17471 GNULIB_PTHREAD_SIGMASK=0;
17472 GNULIB_RAISE=0;
17473 GNULIB_SIGNAL_H_SIGPIPE=0;
17474 GNULIB_SIGPROCMASK=0;
17475 GNULIB_SIGACTION=0;
17476 HAVE_POSIX_SIGNALBLOCKING=1;
17477 HAVE_PTHREAD_SIGMASK=1;
17478 HAVE_RAISE=1;
17479 HAVE_SIGSET_T=1;
17480 HAVE_SIGINFO_T=1;
17481 HAVE_SIGACTION=1;
17482 HAVE_STRUCT_SIGACTION_SA_SIGACTION=1;
17484 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=1;
17486 HAVE_SIGHANDLER_T=1;
17487 REPLACE_PTHREAD_SIGMASK=0;
17488 REPLACE_RAISE=0;
17495 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
17496 #include <signal.h>
17497 /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */
17498 #include <sys/types.h>
17501 if test "x$ac_cv_type_sigset_t" = x""yes; then :
17503 cat >>confdefs.h <<_ACEOF
17504 #define HAVE_SIGSET_T 1
17505 _ACEOF
17507 gl_cv_type_sigset_t=yes
17508 else
17509 gl_cv_type_sigset_t=no
17512 if test $gl_cv_type_sigset_t != yes; then
17513 HAVE_SIGSET_T=0
17518 if test $ac_cv_header_sys_socket_h = no; then
17519 for ac_header in ws2tcpip.h
17520 do :
17521 ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
17522 if test "x$ac_cv_header_ws2tcpip_h" = x""yes; then :
17523 cat >>confdefs.h <<_ACEOF
17524 #define HAVE_WS2TCPIP_H 1
17525 _ACEOF
17529 done
17533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
17534 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
17535 if test "${ac_cv_header_stdbool_h+set}" = set; then :
17536 $as_echo_n "(cached) " >&6
17537 else
17538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17539 /* end confdefs.h. */
17541 #include <stdbool.h>
17542 #ifndef bool
17543 "error: bool is not defined"
17544 #endif
17545 #ifndef false
17546 "error: false is not defined"
17547 #endif
17548 #if false
17549 "error: false is not 0"
17550 #endif
17551 #ifndef true
17552 "error: true is not defined"
17553 #endif
17554 #if true != 1
17555 "error: true is not 1"
17556 #endif
17557 #ifndef __bool_true_false_are_defined
17558 "error: __bool_true_false_are_defined is not defined"
17559 #endif
17561 struct s { _Bool s: 1; _Bool t; } s;
17563 char a[true == 1 ? 1 : -1];
17564 char b[false == 0 ? 1 : -1];
17565 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
17566 char d[(bool) 0.5 == true ? 1 : -1];
17567 /* See body of main program for 'e'. */
17568 char f[(_Bool) 0.0 == false ? 1 : -1];
17569 char g[true];
17570 char h[sizeof (_Bool)];
17571 char i[sizeof s.t];
17572 enum { j = false, k = true, l = false * true, m = true * 256 };
17573 /* The following fails for
17574 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
17575 _Bool n[m];
17576 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
17577 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
17578 /* Catch a bug in an HP-UX C compiler. See
17579 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
17580 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
17582 _Bool q = true;
17583 _Bool *pq = &q;
17586 main ()
17589 bool e = &s;
17590 *pq |= q;
17591 *pq |= ! q;
17592 /* Refer to every declared value, to avoid compiler optimizations. */
17593 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
17594 + !m + !n + !o + !p + !q + !pq);
17597 return 0;
17599 _ACEOF
17600 if ac_fn_c_try_compile "$LINENO"; then :
17601 ac_cv_header_stdbool_h=yes
17602 else
17603 ac_cv_header_stdbool_h=no
17605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
17608 $as_echo "$ac_cv_header_stdbool_h" >&6; }
17609 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
17610 if test "x$ac_cv_type__Bool" = x""yes; then :
17612 cat >>confdefs.h <<_ACEOF
17613 #define HAVE__BOOL 1
17614 _ACEOF
17621 REPLACE_NULL=0;
17622 HAVE_WCHAR_T=1;
17625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
17626 $as_echo_n "checking for wchar_t... " >&6; }
17627 if test "${gt_cv_c_wchar_t+set}" = set; then :
17628 $as_echo_n "(cached) " >&6
17629 else
17630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17631 /* end confdefs.h. */
17632 #include <stddef.h>
17633 wchar_t foo = (wchar_t)'\0';
17635 main ()
17639 return 0;
17641 _ACEOF
17642 if ac_fn_c_try_compile "$LINENO"; then :
17643 gt_cv_c_wchar_t=yes
17644 else
17645 gt_cv_c_wchar_t=no
17647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
17650 $as_echo "$gt_cv_c_wchar_t" >&6; }
17651 if test $gt_cv_c_wchar_t = yes; then
17653 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
17658 GNULIB_DPRINTF=0;
17659 GNULIB_FCLOSE=0;
17660 GNULIB_FDOPEN=0;
17661 GNULIB_FFLUSH=0;
17662 GNULIB_FGETC=0;
17663 GNULIB_FGETS=0;
17664 GNULIB_FOPEN=0;
17665 GNULIB_FPRINTF=0;
17666 GNULIB_FPRINTF_POSIX=0;
17667 GNULIB_FPURGE=0;
17668 GNULIB_FPUTC=0;
17669 GNULIB_FPUTS=0;
17670 GNULIB_FREAD=0;
17671 GNULIB_FREOPEN=0;
17672 GNULIB_FSCANF=0;
17673 GNULIB_FSEEK=0;
17674 GNULIB_FSEEKO=0;
17675 GNULIB_FTELL=0;
17676 GNULIB_FTELLO=0;
17677 GNULIB_FWRITE=0;
17678 GNULIB_GETC=0;
17679 GNULIB_GETCHAR=0;
17680 GNULIB_GETDELIM=0;
17681 GNULIB_GETLINE=0;
17682 GNULIB_OBSTACK_PRINTF=0;
17683 GNULIB_OBSTACK_PRINTF_POSIX=0;
17684 GNULIB_PCLOSE=0;
17685 GNULIB_PERROR=0;
17686 GNULIB_POPEN=0;
17687 GNULIB_PRINTF=0;
17688 GNULIB_PRINTF_POSIX=0;
17689 GNULIB_PUTC=0;
17690 GNULIB_PUTCHAR=0;
17691 GNULIB_PUTS=0;
17692 GNULIB_REMOVE=0;
17693 GNULIB_RENAME=0;
17694 GNULIB_RENAMEAT=0;
17695 GNULIB_SCANF=0;
17696 GNULIB_SNPRINTF=0;
17697 GNULIB_SPRINTF_POSIX=0;
17698 GNULIB_STDIO_H_NONBLOCKING=0;
17699 GNULIB_STDIO_H_SIGPIPE=0;
17700 GNULIB_TMPFILE=0;
17701 GNULIB_VASPRINTF=0;
17702 GNULIB_VFSCANF=0;
17703 GNULIB_VSCANF=0;
17704 GNULIB_VDPRINTF=0;
17705 GNULIB_VFPRINTF=0;
17706 GNULIB_VFPRINTF_POSIX=0;
17707 GNULIB_VPRINTF=0;
17708 GNULIB_VPRINTF_POSIX=0;
17709 GNULIB_VSNPRINTF=0;
17710 GNULIB_VSPRINTF_POSIX=0;
17711 HAVE_DECL_FPURGE=1;
17712 HAVE_DECL_FSEEKO=1;
17713 HAVE_DECL_FTELLO=1;
17714 HAVE_DECL_GETDELIM=1;
17715 HAVE_DECL_GETLINE=1;
17716 HAVE_DECL_OBSTACK_PRINTF=1;
17717 HAVE_DECL_SNPRINTF=1;
17718 HAVE_DECL_VSNPRINTF=1;
17719 HAVE_DPRINTF=1;
17720 HAVE_FSEEKO=1;
17721 HAVE_FTELLO=1;
17722 HAVE_PCLOSE=1;
17723 HAVE_POPEN=1;
17724 HAVE_RENAMEAT=1;
17725 HAVE_VASPRINTF=1;
17726 HAVE_VDPRINTF=1;
17727 REPLACE_DPRINTF=0;
17728 REPLACE_FCLOSE=0;
17729 REPLACE_FDOPEN=0;
17730 REPLACE_FFLUSH=0;
17731 REPLACE_FOPEN=0;
17732 REPLACE_FPRINTF=0;
17733 REPLACE_FPURGE=0;
17734 REPLACE_FREOPEN=0;
17735 REPLACE_FSEEK=0;
17736 REPLACE_FSEEKO=0;
17737 REPLACE_FTELL=0;
17738 REPLACE_FTELLO=0;
17739 REPLACE_GETDELIM=0;
17740 REPLACE_GETLINE=0;
17741 REPLACE_OBSTACK_PRINTF=0;
17742 REPLACE_PERROR=0;
17743 REPLACE_POPEN=0;
17744 REPLACE_PRINTF=0;
17745 REPLACE_REMOVE=0;
17746 REPLACE_RENAME=0;
17747 REPLACE_RENAMEAT=0;
17748 REPLACE_SNPRINTF=0;
17749 REPLACE_SPRINTF=0;
17750 REPLACE_STDIO_READ_FUNCS=0;
17751 REPLACE_STDIO_WRITE_FUNCS=0;
17752 REPLACE_TMPFILE=0;
17753 REPLACE_VASPRINTF=0;
17754 REPLACE_VDPRINTF=0;
17755 REPLACE_VFPRINTF=0;
17756 REPLACE_VPRINTF=0;
17757 REPLACE_VSNPRINTF=0;
17758 REPLACE_VSPRINTF=0;
17760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
17761 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
17762 if test "${ac_cv_struct_tm+set}" = set; then :
17763 $as_echo_n "(cached) " >&6
17764 else
17765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17766 /* end confdefs.h. */
17767 #include <sys/types.h>
17768 #include <time.h>
17771 main ()
17773 struct tm tm;
17774 int *p = &tm.tm_sec;
17775 return !p;
17777 return 0;
17779 _ACEOF
17780 if ac_fn_c_try_compile "$LINENO"; then :
17781 ac_cv_struct_tm=time.h
17782 else
17783 ac_cv_struct_tm=sys/time.h
17785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
17788 $as_echo "$ac_cv_struct_tm" >&6; }
17789 if test $ac_cv_struct_tm = sys/time.h; then
17791 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
17795 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
17796 #include <$ac_cv_struct_tm>
17799 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
17801 cat >>confdefs.h <<_ACEOF
17802 #define HAVE_STRUCT_TM_TM_ZONE 1
17803 _ACEOF
17808 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
17810 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
17812 else
17813 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
17815 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
17816 ac_have_decl=1
17817 else
17818 ac_have_decl=0
17821 cat >>confdefs.h <<_ACEOF
17822 #define HAVE_DECL_TZNAME $ac_have_decl
17823 _ACEOF
17825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
17826 $as_echo_n "checking for tzname... " >&6; }
17827 if test "${ac_cv_var_tzname+set}" = set; then :
17828 $as_echo_n "(cached) " >&6
17829 else
17830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17831 /* end confdefs.h. */
17832 #include <time.h>
17833 #if !HAVE_DECL_TZNAME
17834 extern char *tzname[];
17835 #endif
17838 main ()
17840 return tzname[0][0];
17842 return 0;
17844 _ACEOF
17845 if ac_fn_c_try_link "$LINENO"; then :
17846 ac_cv_var_tzname=yes
17847 else
17848 ac_cv_var_tzname=no
17850 rm -f core conftest.err conftest.$ac_objext \
17851 conftest$ac_exeext conftest.$ac_ext
17853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
17854 $as_echo "$ac_cv_var_tzname" >&6; }
17855 if test $ac_cv_var_tzname = yes; then
17857 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
17863 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
17865 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then :
17867 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
17874 ac_fn_c_check_decl "$LINENO" "strtoimax" "ac_cv_have_decl_strtoimax" "$ac_includes_default"
17875 if test "x$ac_cv_have_decl_strtoimax" = x""yes; then :
17876 ac_have_decl=1
17877 else
17878 ac_have_decl=0
17881 cat >>confdefs.h <<_ACEOF
17882 #define HAVE_DECL_STRTOIMAX $ac_have_decl
17883 _ACEOF
17887 ac_fn_c_check_decl "$LINENO" "strtoumax" "ac_cv_have_decl_strtoumax" "$ac_includes_default"
17888 if test "x$ac_cv_have_decl_strtoumax" = x""yes; then :
17889 ac_have_decl=1
17890 else
17891 ac_have_decl=0
17894 cat >>confdefs.h <<_ACEOF
17895 #define HAVE_DECL_STRTOUMAX $ac_have_decl
17896 _ACEOF
17900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
17901 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
17902 if test "${ac_cv_header_stat_broken+set}" = set; then :
17903 $as_echo_n "(cached) " >&6
17904 else
17905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17906 /* end confdefs.h. */
17907 #include <sys/types.h>
17908 #include <sys/stat.h>
17910 #if defined S_ISBLK && defined S_IFDIR
17911 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
17912 #endif
17914 #if defined S_ISBLK && defined S_IFCHR
17915 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
17916 #endif
17918 #if defined S_ISLNK && defined S_IFREG
17919 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
17920 #endif
17922 #if defined S_ISSOCK && defined S_IFREG
17923 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
17924 #endif
17926 _ACEOF
17927 if ac_fn_c_try_compile "$LINENO"; then :
17928 ac_cv_header_stat_broken=no
17929 else
17930 ac_cv_header_stat_broken=yes
17932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
17935 $as_echo "$ac_cv_header_stat_broken" >&6; }
17936 if test $ac_cv_header_stat_broken = yes; then
17938 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
17944 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
17945 if test "x$ac_cv_type_mode_t" = x""yes; then :
17947 else
17949 cat >>confdefs.h <<_ACEOF
17950 #define mode_t int
17951 _ACEOF
17963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
17964 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
17965 if test "${ac_cv_c_restrict+set}" = set; then :
17966 $as_echo_n "(cached) " >&6
17967 else
17968 ac_cv_c_restrict=no
17969 # The order here caters to the fact that C++ does not require restrict.
17970 for ac_kw in __restrict __restrict__ _Restrict restrict; do
17971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17972 /* end confdefs.h. */
17973 typedef int * int_ptr;
17974 int foo (int_ptr $ac_kw ip) {
17975 return ip[0];
17978 main ()
17980 int s[1];
17981 int * $ac_kw t = s;
17982 t[0] = 0;
17983 return foo(t)
17985 return 0;
17987 _ACEOF
17988 if ac_fn_c_try_compile "$LINENO"; then :
17989 ac_cv_c_restrict=$ac_kw
17991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17992 test "$ac_cv_c_restrict" != no && break
17993 done
17996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
17997 $as_echo "$ac_cv_c_restrict" >&6; }
17999 case $ac_cv_c_restrict in
18000 restrict) ;;
18001 no) $as_echo "#define restrict /**/" >>confdefs.h
18003 *) cat >>confdefs.h <<_ACEOF
18004 #define restrict $ac_cv_c_restrict
18005 _ACEOF
18007 esac
18011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
18012 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
18013 if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then :
18014 $as_echo_n "(cached) " >&6
18015 else
18016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18017 /* end confdefs.h. */
18018 #include <time.h>
18021 main ()
18023 static struct timespec x; x.tv_sec = x.tv_nsec;
18025 return 0;
18027 _ACEOF
18028 if ac_fn_c_try_compile "$LINENO"; then :
18029 gl_cv_sys_struct_timespec_in_time_h=yes
18030 else
18031 gl_cv_sys_struct_timespec_in_time_h=no
18033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
18036 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
18038 TIME_H_DEFINES_STRUCT_TIMESPEC=0
18039 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
18040 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
18041 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
18042 TIME_H_DEFINES_STRUCT_TIMESPEC=1
18043 else
18044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
18045 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
18046 if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then :
18047 $as_echo_n "(cached) " >&6
18048 else
18049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18050 /* end confdefs.h. */
18051 #include <sys/time.h>
18054 main ()
18056 static struct timespec x; x.tv_sec = x.tv_nsec;
18058 return 0;
18060 _ACEOF
18061 if ac_fn_c_try_compile "$LINENO"; then :
18062 gl_cv_sys_struct_timespec_in_sys_time_h=yes
18063 else
18064 gl_cv_sys_struct_timespec_in_sys_time_h=no
18066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
18069 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
18070 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
18071 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
18072 else
18073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
18074 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
18075 if test "${gl_cv_sys_struct_timespec_in_pthread_h+set}" = set; then :
18076 $as_echo_n "(cached) " >&6
18077 else
18078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18079 /* end confdefs.h. */
18080 #include <pthread.h>
18083 main ()
18085 static struct timespec x; x.tv_sec = x.tv_nsec;
18087 return 0;
18089 _ACEOF
18090 if ac_fn_c_try_compile "$LINENO"; then :
18091 gl_cv_sys_struct_timespec_in_pthread_h=yes
18092 else
18093 gl_cv_sys_struct_timespec_in_pthread_h=no
18095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
18098 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
18099 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
18100 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
18119 if test $gl_cv_have_include_next = yes; then
18120 gl_cv_next_time_h='<'time.h'>'
18121 else
18122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
18123 $as_echo_n "checking absolute name of <time.h>... " >&6; }
18124 if test "${gl_cv_next_time_h+set}" = set; then :
18125 $as_echo_n "(cached) " >&6
18126 else
18128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18129 /* end confdefs.h. */
18130 #include <time.h>
18132 _ACEOF
18133 case "$host_os" in
18134 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18135 *) gl_absname_cpp="$ac_cpp" ;;
18136 esac
18138 case "$host_os" in
18139 mingw*)
18140 gl_dirsep_regex='[/\\]'
18143 gl_dirsep_regex='\/'
18145 esac
18146 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
18148 gl_header_literal_regex=`echo 'time.h' \
18149 | sed -e "$gl_make_literal_regex_sed"`
18150 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18151 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18152 s|^/[^/]|//&|
18156 gl_cv_next_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18157 sed -n "$gl_absolute_header_sed"`'"'
18161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
18162 $as_echo "$gl_cv_next_time_h" >&6; }
18164 NEXT_TIME_H=$gl_cv_next_time_h
18166 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18167 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18168 gl_next_as_first_directive='<'time.h'>'
18169 else
18170 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18171 gl_next_as_first_directive=$gl_cv_next_time_h
18173 NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
18180 ac_fn_c_check_decl "$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "$ac_includes_default"
18181 if test "x$ac_cv_have_decl_localtime_r" = x""yes; then :
18182 ac_have_decl=1
18183 else
18184 ac_have_decl=0
18187 cat >>confdefs.h <<_ACEOF
18188 #define HAVE_DECL_LOCALTIME_R $ac_have_decl
18189 _ACEOF
18194 if false; then
18195 GL_COND_LIBTOOL_TRUE=
18196 GL_COND_LIBTOOL_FALSE='#'
18197 else
18198 GL_COND_LIBTOOL_TRUE='#'
18199 GL_COND_LIBTOOL_FALSE=
18202 gl_cond_libtool=false
18203 gl_libdeps=
18204 gl_ltlibdeps=
18205 gl_m4_base='m4'
18215 gl_source_base='lib'
18218 if test $ac_cv_func_alloca_works = no; then
18222 # Define an additional variable used in the Makefile substitution.
18223 if test $ac_cv_working_alloca_h = yes; then
18224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
18225 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
18226 if test "${gl_cv_rpl_alloca+set}" = set; then :
18227 $as_echo_n "(cached) " >&6
18228 else
18230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18231 /* end confdefs.h. */
18233 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
18234 Need own alloca
18235 #endif
18237 _ACEOF
18238 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18239 $EGREP "Need own alloca" >/dev/null 2>&1; then :
18240 gl_cv_rpl_alloca=yes
18241 else
18242 gl_cv_rpl_alloca=no
18244 rm -f conftest*
18248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
18249 $as_echo "$gl_cv_rpl_alloca" >&6; }
18250 if test $gl_cv_rpl_alloca = yes; then
18252 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
18254 ALLOCA_H=alloca.h
18255 else
18256 ALLOCA_H=
18258 else
18259 ALLOCA_H=alloca.h
18262 if test -n "$ALLOCA_H"; then
18263 GL_GENERATE_ALLOCA_H_TRUE=
18264 GL_GENERATE_ALLOCA_H_FALSE='#'
18265 else
18266 GL_GENERATE_ALLOCA_H_TRUE='#'
18267 GL_GENERATE_ALLOCA_H_FALSE=
18296 $as_echo "#define HAVE_DUP2 1" >>confdefs.h
18299 if test $HAVE_DUP2 = 1; then
18300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5
18301 $as_echo_n "checking whether dup2 works... " >&6; }
18302 if test "${gl_cv_func_dup2_works+set}" = set; then :
18303 $as_echo_n "(cached) " >&6
18304 else
18305 if test "$cross_compiling" = yes; then :
18306 case "$host_os" in
18307 mingw*) # on this platform, dup2 always returns 0 for success
18308 gl_cv_func_dup2_works="guessing no" ;;
18309 cygwin*) # on cygwin 1.5.x, dup2(1,1) returns 0
18310 gl_cv_func_dup2_works="guessing no" ;;
18311 linux*) # On linux between 2008-07-27 and 2009-05-11, dup2 of a
18312 # closed fd may yield -EBADF instead of -1 / errno=EBADF.
18313 gl_cv_func_dup2_works="guessing no" ;;
18314 freebsd*) # on FreeBSD 6.1, dup2(1,1000000) gives EMFILE, not EBADF.
18315 gl_cv_func_dup2_works="guessing no" ;;
18316 haiku*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC.
18317 gl_cv_func_dup2_works="guessing no" ;;
18318 *) gl_cv_func_dup2_works="guessing yes" ;;
18319 esac
18320 else
18321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18322 /* end confdefs.h. */
18324 #include <unistd.h>
18325 #include <fcntl.h>
18326 #include <errno.h>
18328 main ()
18330 int result = 0;
18331 #ifdef FD_CLOEXEC
18332 if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1)
18333 result |= 1;
18334 #endif
18335 if (dup2 (1, 1) == 0)
18336 result |= 2;
18337 #ifdef FD_CLOEXEC
18338 if (fcntl (1, F_GETFD) != FD_CLOEXEC)
18339 result |= 4;
18340 #endif
18341 close (0);
18342 if (dup2 (0, 0) != -1)
18343 result |= 8;
18344 /* Many gnulib modules require POSIX conformance of EBADF. */
18345 if (dup2 (2, 1000000) == -1 && errno != EBADF)
18346 result |= 16;
18347 return result;
18350 return 0;
18353 _ACEOF
18354 if ac_fn_c_try_run "$LINENO"; then :
18355 gl_cv_func_dup2_works=yes
18356 else
18357 gl_cv_func_dup2_works=no
18359 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18360 conftest.$ac_objext conftest.beam conftest.$ac_ext
18365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5
18366 $as_echo "$gl_cv_func_dup2_works" >&6; }
18367 case "$gl_cv_func_dup2_works" in
18368 *yes) ;;
18370 REPLACE_DUP2=1
18372 esac
18376 if test $HAVE_DUP2 = 0 || test $REPLACE_DUP2 = 1; then
18385 gl_LIBOBJS="$gl_LIBOBJS dup2.$ac_objext"
18394 GNULIB_DUP2=1
18406 # Persuade glibc <stdlib.h> to declare getloadavg().
18409 gl_save_LIBS=$LIBS
18411 # getloadvg is present in libc on glibc >= 2.2, MacOS X, FreeBSD >= 2.0,
18412 # NetBSD >= 0.9, OpenBSD >= 2.0, Solaris >= 7.
18413 HAVE_GETLOADAVG=1
18414 ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
18415 if test "x$ac_cv_func_getloadavg" = x""yes; then :
18417 else
18418 gl_func_getloadavg_done=no
18420 # Some systems with -lutil have (and need) -lkvm as well, some do not.
18421 # On Solaris, -lkvm requires nlist from -lelf, so check that first
18422 # to get the right answer into the cache.
18423 # For kstat on solaris, we need to test for libelf and libkvm to force the
18424 # definition of SVR4 below.
18425 if test $gl_func_getloadavg_done = no; then
18426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
18427 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
18428 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then :
18429 $as_echo_n "(cached) " >&6
18430 else
18431 ac_check_lib_save_LIBS=$LIBS
18432 LIBS="-lelf $LIBS"
18433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18434 /* end confdefs.h. */
18436 /* Override any GCC internal prototype to avoid an error.
18437 Use char because int might match the return type of a GCC
18438 builtin and then its argument prototype would still apply. */
18439 #ifdef __cplusplus
18440 extern "C"
18441 #endif
18442 char elf_begin ();
18444 main ()
18446 return elf_begin ();
18448 return 0;
18450 _ACEOF
18451 if ac_fn_c_try_link "$LINENO"; then :
18452 ac_cv_lib_elf_elf_begin=yes
18453 else
18454 ac_cv_lib_elf_elf_begin=no
18456 rm -f core conftest.err conftest.$ac_objext \
18457 conftest$ac_exeext conftest.$ac_ext
18458 LIBS=$ac_check_lib_save_LIBS
18460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
18461 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
18462 if test "x$ac_cv_lib_elf_elf_begin" = x""yes; then :
18463 LIBS="-lelf $LIBS"
18466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
18467 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
18468 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
18469 $as_echo_n "(cached) " >&6
18470 else
18471 ac_check_lib_save_LIBS=$LIBS
18472 LIBS="-lkvm $LIBS"
18473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18474 /* end confdefs.h. */
18476 /* Override any GCC internal prototype to avoid an error.
18477 Use char because int might match the return type of a GCC
18478 builtin and then its argument prototype would still apply. */
18479 #ifdef __cplusplus
18480 extern "C"
18481 #endif
18482 char kvm_open ();
18484 main ()
18486 return kvm_open ();
18488 return 0;
18490 _ACEOF
18491 if ac_fn_c_try_link "$LINENO"; then :
18492 ac_cv_lib_kvm_kvm_open=yes
18493 else
18494 ac_cv_lib_kvm_kvm_open=no
18496 rm -f core conftest.err conftest.$ac_objext \
18497 conftest$ac_exeext conftest.$ac_ext
18498 LIBS=$ac_check_lib_save_LIBS
18500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
18501 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
18502 if test "x$ac_cv_lib_kvm_kvm_open" = x""yes; then :
18503 LIBS="-lkvm $LIBS"
18506 # Check for the 4.4BSD definition of getloadavg.
18507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
18508 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
18509 if test "${ac_cv_lib_util_getloadavg+set}" = set; then :
18510 $as_echo_n "(cached) " >&6
18511 else
18512 ac_check_lib_save_LIBS=$LIBS
18513 LIBS="-lutil $LIBS"
18514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18515 /* end confdefs.h. */
18517 /* Override any GCC internal prototype to avoid an error.
18518 Use char because int might match the return type of a GCC
18519 builtin and then its argument prototype would still apply. */
18520 #ifdef __cplusplus
18521 extern "C"
18522 #endif
18523 char getloadavg ();
18525 main ()
18527 return getloadavg ();
18529 return 0;
18531 _ACEOF
18532 if ac_fn_c_try_link "$LINENO"; then :
18533 ac_cv_lib_util_getloadavg=yes
18534 else
18535 ac_cv_lib_util_getloadavg=no
18537 rm -f core conftest.err conftest.$ac_objext \
18538 conftest$ac_exeext conftest.$ac_ext
18539 LIBS=$ac_check_lib_save_LIBS
18541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
18542 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
18543 if test "x$ac_cv_lib_util_getloadavg" = x""yes; then :
18544 LIBS="-lutil $LIBS" gl_func_getloadavg_done=yes
18549 if test $gl_func_getloadavg_done = no; then
18550 # There is a commonly available library for RS/6000 AIX.
18551 # Since it is not a standard part of AIX, it might be installed locally.
18552 gl_getloadavg_LIBS=$LIBS
18553 LIBS="-L/usr/local/lib $LIBS"
18554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
18555 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
18556 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then :
18557 $as_echo_n "(cached) " >&6
18558 else
18559 ac_check_lib_save_LIBS=$LIBS
18560 LIBS="-lgetloadavg $LIBS"
18561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18562 /* end confdefs.h. */
18564 /* Override any GCC internal prototype to avoid an error.
18565 Use char because int might match the return type of a GCC
18566 builtin and then its argument prototype would still apply. */
18567 #ifdef __cplusplus
18568 extern "C"
18569 #endif
18570 char getloadavg ();
18572 main ()
18574 return getloadavg ();
18576 return 0;
18578 _ACEOF
18579 if ac_fn_c_try_link "$LINENO"; then :
18580 ac_cv_lib_getloadavg_getloadavg=yes
18581 else
18582 ac_cv_lib_getloadavg_getloadavg=no
18584 rm -f core conftest.err conftest.$ac_objext \
18585 conftest$ac_exeext conftest.$ac_ext
18586 LIBS=$ac_check_lib_save_LIBS
18588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
18589 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
18590 if test "x$ac_cv_lib_getloadavg_getloadavg" = x""yes; then :
18591 LIBS="-lgetloadavg $LIBS" gl_func_getloadavg_done=yes
18592 else
18593 LIBS=$gl_getloadavg_LIBS
18598 # Set up the replacement function if necessary.
18599 if test $gl_func_getloadavg_done = no; then
18600 HAVE_GETLOADAVG=0
18602 # Solaris has libkstat which does not require root.
18603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
18604 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
18605 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
18606 $as_echo_n "(cached) " >&6
18607 else
18608 ac_check_lib_save_LIBS=$LIBS
18609 LIBS="-lkstat $LIBS"
18610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18611 /* end confdefs.h. */
18613 /* Override any GCC internal prototype to avoid an error.
18614 Use char because int might match the return type of a GCC
18615 builtin and then its argument prototype would still apply. */
18616 #ifdef __cplusplus
18617 extern "C"
18618 #endif
18619 char kstat_open ();
18621 main ()
18623 return kstat_open ();
18625 return 0;
18627 _ACEOF
18628 if ac_fn_c_try_link "$LINENO"; then :
18629 ac_cv_lib_kstat_kstat_open=yes
18630 else
18631 ac_cv_lib_kstat_kstat_open=no
18633 rm -f core conftest.err conftest.$ac_objext \
18634 conftest$ac_exeext conftest.$ac_ext
18635 LIBS=$ac_check_lib_save_LIBS
18637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
18638 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
18639 if test "x$ac_cv_lib_kstat_kstat_open" = x""yes; then :
18640 cat >>confdefs.h <<_ACEOF
18641 #define HAVE_LIBKSTAT 1
18642 _ACEOF
18644 LIBS="-lkstat $LIBS"
18648 test $ac_cv_lib_kstat_kstat_open = yes && gl_func_getloadavg_done=yes
18650 # AIX has libperfstat which does not require root
18651 if test $gl_func_getloadavg_done = no; then
18652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perfstat_cpu_total in -lperfstat" >&5
18653 $as_echo_n "checking for perfstat_cpu_total in -lperfstat... " >&6; }
18654 if test "${ac_cv_lib_perfstat_perfstat_cpu_total+set}" = set; then :
18655 $as_echo_n "(cached) " >&6
18656 else
18657 ac_check_lib_save_LIBS=$LIBS
18658 LIBS="-lperfstat $LIBS"
18659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18660 /* end confdefs.h. */
18662 /* Override any GCC internal prototype to avoid an error.
18663 Use char because int might match the return type of a GCC
18664 builtin and then its argument prototype would still apply. */
18665 #ifdef __cplusplus
18666 extern "C"
18667 #endif
18668 char perfstat_cpu_total ();
18670 main ()
18672 return perfstat_cpu_total ();
18674 return 0;
18676 _ACEOF
18677 if ac_fn_c_try_link "$LINENO"; then :
18678 ac_cv_lib_perfstat_perfstat_cpu_total=yes
18679 else
18680 ac_cv_lib_perfstat_perfstat_cpu_total=no
18682 rm -f core conftest.err conftest.$ac_objext \
18683 conftest$ac_exeext conftest.$ac_ext
18684 LIBS=$ac_check_lib_save_LIBS
18686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_perfstat_perfstat_cpu_total" >&5
18687 $as_echo "$ac_cv_lib_perfstat_perfstat_cpu_total" >&6; }
18688 if test "x$ac_cv_lib_perfstat_perfstat_cpu_total" = x""yes; then :
18689 cat >>confdefs.h <<_ACEOF
18690 #define HAVE_LIBPERFSTAT 1
18691 _ACEOF
18693 LIBS="-lperfstat $LIBS"
18697 test $ac_cv_lib_perfstat_perfstat_cpu_total = yes && gl_func_getloadavg_done=yes
18700 if test $gl_func_getloadavg_done = no; then
18701 ac_fn_c_check_header_mongrel "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
18702 if test "x$ac_cv_header_sys_dg_sys_info_h" = x""yes; then :
18703 gl_func_getloadavg_done=yes
18705 $as_echo "#define DGUX 1" >>confdefs.h
18707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
18708 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
18709 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then :
18710 $as_echo_n "(cached) " >&6
18711 else
18712 ac_check_lib_save_LIBS=$LIBS
18713 LIBS="-ldgc $LIBS"
18714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18715 /* end confdefs.h. */
18717 /* Override any GCC internal prototype to avoid an error.
18718 Use char because int might match the return type of a GCC
18719 builtin and then its argument prototype would still apply. */
18720 #ifdef __cplusplus
18721 extern "C"
18722 #endif
18723 char dg_sys_info ();
18725 main ()
18727 return dg_sys_info ();
18729 return 0;
18731 _ACEOF
18732 if ac_fn_c_try_link "$LINENO"; then :
18733 ac_cv_lib_dgc_dg_sys_info=yes
18734 else
18735 ac_cv_lib_dgc_dg_sys_info=no
18737 rm -f core conftest.err conftest.$ac_objext \
18738 conftest$ac_exeext conftest.$ac_ext
18739 LIBS=$ac_check_lib_save_LIBS
18741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
18742 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
18743 if test "x$ac_cv_lib_dgc_dg_sys_info" = x""yes; then :
18744 cat >>confdefs.h <<_ACEOF
18745 #define HAVE_LIBDGC 1
18746 _ACEOF
18748 LIBS="-ldgc $LIBS"
18760 if test "x$gl_save_LIBS" = x; then
18761 GETLOADAVG_LIBS=$LIBS
18762 else
18763 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$gl_save_LIBS!!"`
18765 LIBS=$gl_save_LIBS
18768 # Test whether the system declares getloadavg. Solaris has the function
18769 # but declares it in <sys/loadavg.h>, not <stdlib.h>.
18770 for ac_header in sys/loadavg.h
18771 do :
18772 ac_fn_c_check_header_mongrel "$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default"
18773 if test "x$ac_cv_header_sys_loadavg_h" = x""yes; then :
18774 cat >>confdefs.h <<_ACEOF
18775 #define HAVE_SYS_LOADAVG_H 1
18776 _ACEOF
18780 done
18782 if test $ac_cv_header_sys_loadavg_h = yes; then
18783 HAVE_SYS_LOADAVG_H=1
18784 else
18785 HAVE_SYS_LOADAVG_H=0
18787 ac_fn_c_check_decl "$LINENO" "getloadavg" "ac_cv_have_decl_getloadavg" "#if HAVE_SYS_LOADAVG_H
18788 # include <sys/loadavg.h>
18789 #endif
18790 #include <stdlib.h>
18792 if test "x$ac_cv_have_decl_getloadavg" = x""yes; then :
18794 else
18795 HAVE_DECL_GETLOADAVG=0
18799 if test $HAVE_GETLOADAVG = 0; then
18808 gl_LIBOBJS="$gl_LIBOBJS getloadavg.$ac_objext"
18811 # Figure out what our getloadavg.c needs.
18813 # On HPUX9, an unprivileged user can get load averages this way.
18814 if test $gl_func_getloadavg_done = no; then
18815 for ac_func in pstat_getdynamic
18816 do :
18817 ac_fn_c_check_func "$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
18818 if test "x$ac_cv_func_pstat_getdynamic" = x""yes; then :
18819 cat >>confdefs.h <<_ACEOF
18820 #define HAVE_PSTAT_GETDYNAMIC 1
18821 _ACEOF
18822 gl_func_getloadavg_done=yes
18824 done
18828 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
18829 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
18830 # Irix 4.0.5F has the header but not the library.
18831 if test $gl_func_getloadavg_done = no && test "$ac_cv_lib_elf_elf_begin" = yes \
18832 && test "$ac_cv_lib_kvm_kvm_open" = yes; then
18833 gl_func_getloadavg_done=yes
18835 $as_echo "#define SVR4 1" >>confdefs.h
18839 if test $gl_func_getloadavg_done = no; then
18840 ac_fn_c_check_header_mongrel "$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
18841 if test "x$ac_cv_header_inq_stats_cpustats_h" = x""yes; then :
18842 gl_func_getloadavg_done=yes
18844 $as_echo "#define UMAX 1" >>confdefs.h
18847 $as_echo "#define UMAX4_3 1" >>confdefs.h
18854 if test $gl_func_getloadavg_done = no; then
18855 ac_fn_c_check_header_mongrel "$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
18856 if test "x$ac_cv_header_sys_cpustats_h" = x""yes; then :
18857 gl_func_getloadavg_done=yes; $as_echo "#define UMAX 1" >>confdefs.h
18864 if test $gl_func_getloadavg_done = no; then
18865 for ac_header in mach/mach.h
18866 do :
18867 ac_fn_c_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
18868 if test "x$ac_cv_header_mach_mach_h" = x""yes; then :
18869 cat >>confdefs.h <<_ACEOF
18870 #define HAVE_MACH_MACH_H 1
18871 _ACEOF
18875 done
18879 for ac_header in nlist.h
18880 do :
18881 ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
18882 if test "x$ac_cv_header_nlist_h" = x""yes; then :
18883 cat >>confdefs.h <<_ACEOF
18884 #define HAVE_NLIST_H 1
18885 _ACEOF
18886 ac_fn_c_check_member "$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
18888 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x""yes; then :
18890 cat >>confdefs.h <<_ACEOF
18891 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
18892 _ACEOF
18897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18898 /* end confdefs.h. */
18899 #include <nlist.h>
18901 main ()
18903 struct nlist x;
18904 #ifdef HAVE_STRUCT_NLIST_N_UN_N_NAME
18905 x.n_un.n_name = "";
18906 #else
18907 x.n_name = "";
18908 #endif
18910 return 0;
18912 _ACEOF
18913 if ac_fn_c_try_link "$LINENO"; then :
18915 $as_echo "#define N_NAME_POINTER 1" >>confdefs.h
18918 rm -f core conftest.err conftest.$ac_objext \
18919 conftest$ac_exeext conftest.$ac_ext
18923 done
18931 GNULIB_GETLOADAVG=1
18942 if test $REPLACE_GETOPT = 1; then
18951 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
18961 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
18966 GNULIB_GL_UNISTD_H_GETOPT=1
18974 REPLACE_GETOPT=0
18977 if test -n "$gl_replace_getopt"; then :
18979 REPLACE_GETOPT=1
18984 if test $REPLACE_GETOPT = 1; then
18986 GETOPT_H=getopt.h
18988 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
18994 if test $REPLACE_GETOPT = 1; then
19003 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
19013 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
19018 GNULIB_GL_UNISTD_H_GETOPT=1
19027 if test $ac_cv_func_lstat = yes; then
19029 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
19030 *no)
19031 REPLACE_LSTAT=1
19033 esac
19034 else
19035 HAVE_LSTAT=0
19038 if test $REPLACE_LSTAT = 1; then
19047 gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext"
19059 GNULIB_LSTAT=1
19071 if test $APPLE_UNIVERSAL_BUILD = 1; then
19072 # A universal build on Apple MacOS X platforms.
19073 # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode.
19074 # But we need a configuration result that is valid in both modes.
19075 gl_cv_func_working_mktime=no
19077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
19078 $as_echo_n "checking for working mktime... " >&6; }
19079 if test "${gl_cv_func_working_mktime+set}" = set; then :
19080 $as_echo_n "(cached) " >&6
19081 else
19082 if test "$cross_compiling" = yes; then :
19083 gl_cv_func_working_mktime=no
19084 else
19085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19086 /* end confdefs.h. */
19087 /* Test program from Paul Eggert and Tony Leneis. */
19088 #include <limits.h>
19089 #include <stdlib.h>
19090 #include <time.h>
19092 #ifdef HAVE_UNISTD_H
19093 # include <unistd.h>
19094 #endif
19096 #ifndef HAVE_ALARM
19097 # define alarm(X) /* empty */
19098 #endif
19100 /* Work around redefinition to rpl_putenv by other config tests. */
19101 #undef putenv
19103 static time_t time_t_max;
19104 static time_t time_t_min;
19106 /* Values we'll use to set the TZ environment variable. */
19107 static char *tz_strings[] = {
19108 (char *) 0, "TZ=GMT0", "TZ=JST-9",
19109 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
19111 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
19113 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
19114 Based on a problem report from Andreas Jaeger. */
19115 static int
19116 spring_forward_gap ()
19118 /* glibc (up to about 1998-10-07) failed this test. */
19119 struct tm tm;
19121 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
19122 instead of "TZ=America/Vancouver" in order to detect the bug even
19123 on systems that don't support the Olson extension, or don't have the
19124 full zoneinfo tables installed. */
19125 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
19127 tm.tm_year = 98;
19128 tm.tm_mon = 3;
19129 tm.tm_mday = 5;
19130 tm.tm_hour = 2;
19131 tm.tm_min = 0;
19132 tm.tm_sec = 0;
19133 tm.tm_isdst = -1;
19134 return mktime (&tm) != (time_t) -1;
19137 static int
19138 mktime_test1 (time_t now)
19140 struct tm *lt;
19141 return ! (lt = localtime (&now)) || mktime (lt) == now;
19144 static int
19145 mktime_test (time_t now)
19147 return (mktime_test1 (now)
19148 && mktime_test1 ((time_t) (time_t_max - now))
19149 && mktime_test1 ((time_t) (time_t_min + now)));
19152 static int
19153 irix_6_4_bug ()
19155 /* Based on code from Ariel Faigon. */
19156 struct tm tm;
19157 tm.tm_year = 96;
19158 tm.tm_mon = 3;
19159 tm.tm_mday = 0;
19160 tm.tm_hour = 0;
19161 tm.tm_min = 0;
19162 tm.tm_sec = 0;
19163 tm.tm_isdst = -1;
19164 mktime (&tm);
19165 return tm.tm_mon == 2 && tm.tm_mday == 31;
19168 static int
19169 bigtime_test (int j)
19171 struct tm tm;
19172 time_t now;
19173 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
19174 now = mktime (&tm);
19175 if (now != (time_t) -1)
19177 struct tm *lt = localtime (&now);
19178 if (! (lt
19179 && lt->tm_year == tm.tm_year
19180 && lt->tm_mon == tm.tm_mon
19181 && lt->tm_mday == tm.tm_mday
19182 && lt->tm_hour == tm.tm_hour
19183 && lt->tm_min == tm.tm_min
19184 && lt->tm_sec == tm.tm_sec
19185 && lt->tm_yday == tm.tm_yday
19186 && lt->tm_wday == tm.tm_wday
19187 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
19188 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
19189 return 0;
19191 return 1;
19194 static int
19195 year_2050_test ()
19197 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
19198 ignoring leap seconds. */
19199 unsigned long int answer = 2527315200UL;
19201 struct tm tm;
19202 time_t t;
19203 tm.tm_year = 2050 - 1900;
19204 tm.tm_mon = 2 - 1;
19205 tm.tm_mday = 1;
19206 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
19207 tm.tm_isdst = -1;
19209 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
19210 instead of "TZ=America/Vancouver" in order to detect the bug even
19211 on systems that don't support the Olson extension, or don't have the
19212 full zoneinfo tables installed. */
19213 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
19215 t = mktime (&tm);
19217 /* Check that the result is either a failure, or close enough
19218 to the correct answer that we can assume the discrepancy is
19219 due to leap seconds. */
19220 return (t == (time_t) -1
19221 || (0 < t && answer - 120 <= t && t <= answer + 120));
19225 main ()
19227 int result = 0;
19228 time_t t, delta;
19229 int i, j;
19230 int time_t_signed_magnitude = (time_t) ~ (time_t) 0 < (time_t) -1;
19231 int time_t_signed = ! ((time_t) 0 < (time_t) -1);
19233 /* This test makes some buggy mktime implementations loop.
19234 Give up after 60 seconds; a mktime slower than that
19235 isn't worth using anyway. */
19236 alarm (60);
19238 time_t_max = (! time_t_signed
19239 ? (time_t) -1
19240 : ((((time_t) 1 << (sizeof (time_t) * CHAR_BIT - 2)) - 1)
19241 * 2 + 1));
19242 time_t_min = (! time_t_signed
19243 ? (time_t) 0
19244 : time_t_signed_magnitude
19245 ? ~ (time_t) 0
19246 : ~ time_t_max);
19248 delta = time_t_max / 997; /* a suitable prime number */
19249 for (i = 0; i < N_STRINGS; i++)
19251 if (tz_strings[i])
19252 putenv (tz_strings[i]);
19254 for (t = 0; t <= time_t_max - delta; t += delta)
19255 if (! mktime_test (t))
19256 result |= 1;
19257 if (! (mktime_test ((time_t) 1)
19258 && mktime_test ((time_t) (60 * 60))
19259 && mktime_test ((time_t) (60 * 60 * 24))))
19260 result |= 2;
19262 for (j = 1; ; j <<= 1)
19263 if (! bigtime_test (j))
19264 result |= 4;
19265 else if (INT_MAX / 2 < j)
19266 break;
19267 if (! bigtime_test (INT_MAX))
19268 result |= 8;
19270 if (! irix_6_4_bug ())
19271 result |= 16;
19272 if (! spring_forward_gap ())
19273 result |= 32;
19274 if (! year_2050_test ())
19275 result |= 64;
19276 return result;
19278 _ACEOF
19279 if ac_fn_c_try_run "$LINENO"; then :
19280 gl_cv_func_working_mktime=yes
19281 else
19282 gl_cv_func_working_mktime=no
19284 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19285 conftest.$ac_objext conftest.beam conftest.$ac_ext
19290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_mktime" >&5
19291 $as_echo "$gl_cv_func_working_mktime" >&6; }
19293 if test $gl_cv_func_working_mktime = no; then
19294 REPLACE_MKTIME=1
19295 else
19296 REPLACE_MKTIME=0
19299 if test $REPLACE_MKTIME = 1; then
19308 gl_LIBOBJS="$gl_LIBOBJS mktime.$ac_objext"
19319 GNULIB_MKTIME=1
19330 LIB_PTHREAD_SIGMASK=
19333 if test $ac_cv_func_pthread_sigmask = yes; then
19335 else
19336 HAVE_PTHREAD_SIGMASK=0
19337 REPLACE_PTHREAD_SIGMASK=1
19343 if test $HAVE_PTHREAD_SIGMASK = 1; then
19346 if test -z "$LIB_PTHREAD_SIGMASK"; then
19347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask works without -lpthread" >&5
19348 $as_echo_n "checking whether pthread_sigmask works without -lpthread... " >&6; }
19349 if test "${gl_cv_func_pthread_sigmask_in_libc_works+set}" = set; then :
19350 $as_echo_n "(cached) " >&6
19351 else
19353 if test "$cross_compiling" = yes; then :
19355 case "$host_os" in
19356 freebsd* | hpux* | solaris | solaris2.[2-9]*)
19357 gl_cv_func_pthread_sigmask_in_libc_works="guessing no";;
19359 gl_cv_func_pthread_sigmask_in_libc_works="guessing yes";;
19360 esac
19362 else
19363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19364 /* end confdefs.h. */
19366 #include <pthread.h>
19367 #include <signal.h>
19368 #include <stddef.h>
19369 int main ()
19371 sigset_t set;
19372 sigemptyset (&set);
19373 return pthread_sigmask (1729, &set, NULL) != 0;
19375 _ACEOF
19376 if ac_fn_c_try_run "$LINENO"; then :
19377 gl_cv_func_pthread_sigmask_in_libc_works=no
19378 else
19379 gl_cv_func_pthread_sigmask_in_libc_works=yes
19381 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19382 conftest.$ac_objext conftest.beam conftest.$ac_ext
19387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_in_libc_works" >&5
19388 $as_echo "$gl_cv_func_pthread_sigmask_in_libc_works" >&6; }
19389 case "$gl_cv_func_pthread_sigmask_in_libc_works" in
19390 *no)
19391 REPLACE_PTHREAD_SIGMASK=1
19393 $as_echo "#define PTHREAD_SIGMASK_INEFFECTIVE 1" >>confdefs.h
19396 esac
19399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask returns error numbers" >&5
19400 $as_echo_n "checking whether pthread_sigmask returns error numbers... " >&6; }
19401 if test "${gl_cv_func_pthread_sigmask_return_works+set}" = set; then :
19402 $as_echo_n "(cached) " >&6
19403 else
19405 gl_save_LIBS="$LIBS"
19406 LIBS="$LIBS $LIB_PTHREAD_SIGMASK"
19407 if test "$cross_compiling" = yes; then :
19408 case "$host_os" in
19409 cygwin*)
19410 gl_cv_func_pthread_sigmask_return_works="guessing no";;
19412 gl_cv_func_pthread_sigmask_return_works="guessing yes";;
19413 esac
19415 else
19416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19417 /* end confdefs.h. */
19419 #include <pthread.h>
19420 #include <signal.h>
19421 #include <stddef.h>
19422 int main ()
19424 sigset_t set;
19425 sigemptyset (&set);
19426 if (pthread_sigmask (1729, &set, NULL) == -1)
19427 return 1;
19428 return 0;
19430 _ACEOF
19431 if ac_fn_c_try_run "$LINENO"; then :
19432 gl_cv_func_pthread_sigmask_return_works=yes
19433 else
19434 gl_cv_func_pthread_sigmask_return_works=no
19436 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19437 conftest.$ac_objext conftest.beam conftest.$ac_ext
19440 LIBS="$gl_save_LIBS"
19443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_return_works" >&5
19444 $as_echo "$gl_cv_func_pthread_sigmask_return_works" >&6; }
19445 case "$gl_cv_func_pthread_sigmask_return_works" in
19446 *no)
19447 REPLACE_PTHREAD_SIGMASK=1
19449 $as_echo "#define PTHREAD_SIGMASK_FAILS_WITH_ERRNO 1" >>confdefs.h
19452 esac
19454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask unblocks signals correctly" >&5
19455 $as_echo_n "checking whether pthread_sigmask unblocks signals correctly... " >&6; }
19456 if test "${gl_cv_func_pthread_sigmask_unblock_works+set}" = set; then :
19457 $as_echo_n "(cached) " >&6
19458 else
19460 case "$host_os" in
19461 irix*)
19462 gl_cv_func_pthread_sigmask_unblock_works="guessing no";;
19464 gl_cv_func_pthread_sigmask_unblock_works="guessing yes";;
19465 esac
19466 gl_save_LIBS="$LIBS"
19467 LIBS="$LIBS $LIBMULTITHREAD"
19468 if test "$cross_compiling" = yes; then :
19470 else
19471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19472 /* end confdefs.h. */
19474 #include <pthread.h>
19475 #include <signal.h>
19476 #include <stdio.h>
19477 #include <stdlib.h>
19478 #include <unistd.h>
19479 static volatile int sigint_occurred;
19480 static void
19481 sigint_handler (int sig)
19483 sigint_occurred++;
19485 int main ()
19487 sigset_t set;
19488 int pid = getpid ();
19489 char command[80];
19490 signal (SIGINT, sigint_handler);
19491 sigemptyset (&set);
19492 sigaddset (&set, SIGINT);
19493 if (!(pthread_sigmask (SIG_BLOCK, &set, NULL) == 0))
19494 return 1;
19495 sprintf (command, "sh -c 'sleep 1; kill -%d %d' &", SIGINT, pid);
19496 if (!(system (command) == 0))
19497 return 2;
19498 sleep (2);
19499 if (!(sigint_occurred == 0))
19500 return 3;
19501 if (!(pthread_sigmask (SIG_UNBLOCK, &set, NULL) == 0))
19502 return 4;
19503 if (!(sigint_occurred == 1)) /* This fails on IRIX. */
19504 return 5;
19505 return 0;
19507 _ACEOF
19508 if ac_fn_c_try_run "$LINENO"; then :
19510 else
19511 gl_cv_func_pthread_sigmask_unblock_works=no
19513 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19514 conftest.$ac_objext conftest.beam conftest.$ac_ext
19517 LIBS="$gl_save_LIBS"
19520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_unblock_works" >&5
19521 $as_echo "$gl_cv_func_pthread_sigmask_unblock_works" >&6; }
19522 case "$gl_cv_func_pthread_sigmask_unblock_works" in
19523 *no)
19524 REPLACE_PTHREAD_SIGMASK=1
19526 $as_echo "#define PTHREAD_SIGMASK_UNBLOCK_BUG 1" >>confdefs.h
19529 esac
19532 if test $HAVE_PTHREAD_SIGMASK = 0 || test $REPLACE_PTHREAD_SIGMASK = 1; then
19541 gl_LIBOBJS="$gl_LIBOBJS pthread_sigmask.$ac_objext"
19544 if test $HAVE_PTHREAD_SIGMASK = 1; then
19546 $as_echo "#define HAVE_PTHREAD_SIGMASK 1" >>confdefs.h
19556 GNULIB_PTHREAD_SIGMASK=1
19565 if test $ac_cv_func_readlink = no; then
19566 HAVE_READLINK=0
19567 else
19568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
19569 $as_echo_n "checking whether readlink signature is correct... " >&6; }
19570 if test "${gl_cv_decl_readlink_works+set}" = set; then :
19571 $as_echo_n "(cached) " >&6
19572 else
19573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19574 /* end confdefs.h. */
19575 #include <unistd.h>
19576 /* Cause compilation failure if original declaration has wrong type. */
19577 ssize_t readlink (const char *, char *, size_t);
19579 main ()
19583 return 0;
19585 _ACEOF
19586 if ac_fn_c_try_compile "$LINENO"; then :
19587 gl_cv_decl_readlink_works=yes
19588 else
19589 gl_cv_decl_readlink_works=no
19591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
19594 $as_echo "$gl_cv_decl_readlink_works" >&6; }
19595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
19596 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
19597 if test "${gl_cv_func_readlink_works+set}" = set; then :
19598 $as_echo_n "(cached) " >&6
19599 else
19600 # We have readlink, so assume ln -s works.
19601 ln -s conftest.no-such conftest.link
19602 ln -s conftest.link conftest.lnk2
19603 if test "$cross_compiling" = yes; then :
19604 case "$host_os" in
19605 # Guess yes on glibc systems.
19606 *-gnu*) gl_cv_func_readlink_works="guessing yes" ;;
19607 # If we don't know, assume the worst.
19608 *) gl_cv_func_readlink_works="guessing no" ;;
19609 esac
19611 else
19612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19613 /* end confdefs.h. */
19614 #include <unistd.h>
19617 main ()
19619 char buf[20];
19620 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
19622 return 0;
19624 _ACEOF
19625 if ac_fn_c_try_run "$LINENO"; then :
19626 gl_cv_func_readlink_works=yes
19627 else
19628 gl_cv_func_readlink_works=no
19630 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19631 conftest.$ac_objext conftest.beam conftest.$ac_ext
19634 rm -f conftest.link conftest.lnk2
19636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
19637 $as_echo "$gl_cv_func_readlink_works" >&6; }
19638 case "$gl_cv_func_readlink_works" in
19639 *yes)
19640 if test "$gl_cv_decl_readlink_works" != yes; then
19641 REPLACE_READLINK=1
19646 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
19648 REPLACE_READLINK=1
19650 esac
19653 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
19662 gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
19673 GNULIB_READLINK=1
19690 if test $gl_cv_have_include_next = yes; then
19691 gl_cv_next_signal_h='<'signal.h'>'
19692 else
19693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
19694 $as_echo_n "checking absolute name of <signal.h>... " >&6; }
19695 if test "${gl_cv_next_signal_h+set}" = set; then :
19696 $as_echo_n "(cached) " >&6
19697 else
19699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19700 /* end confdefs.h. */
19701 #include <signal.h>
19703 _ACEOF
19704 case "$host_os" in
19705 aix*) gl_absname_cpp="$ac_cpp -C" ;;
19706 *) gl_absname_cpp="$ac_cpp" ;;
19707 esac
19709 case "$host_os" in
19710 mingw*)
19711 gl_dirsep_regex='[/\\]'
19714 gl_dirsep_regex='\/'
19716 esac
19717 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
19719 gl_header_literal_regex=`echo 'signal.h' \
19720 | sed -e "$gl_make_literal_regex_sed"`
19721 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19722 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19723 s|^/[^/]|//&|
19727 gl_cv_next_signal_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19728 sed -n "$gl_absolute_header_sed"`'"'
19732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
19733 $as_echo "$gl_cv_next_signal_h" >&6; }
19735 NEXT_SIGNAL_H=$gl_cv_next_signal_h
19737 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
19738 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19739 gl_next_as_first_directive='<'signal.h'>'
19740 else
19741 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19742 gl_next_as_first_directive=$gl_cv_next_signal_h
19744 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H=$gl_next_as_first_directive
19750 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
19751 # then choke on 'volatile sig_atomic_t'. C99 requires that it compile.
19752 ac_fn_c_check_type "$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
19753 #include <signal.h>
19756 if test "x$ac_cv_type_volatile_sig_atomic_t" = x""yes; then :
19758 else
19759 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=0
19768 ac_fn_c_check_type "$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
19769 #include <signal.h>
19772 if test "x$ac_cv_type_sighandler_t" = x""yes; then :
19774 else
19775 HAVE_SIGHANDLER_T=0
19781 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
19782 /* <sys/types.h> is not needed according to POSIX, but the
19783 <sys/socket.h> in i386-unknown-freebsd4.10 and
19784 powerpc-apple-darwin5.5 required it. */
19785 #include <sys/types.h>
19786 #if HAVE_SYS_SOCKET_H
19787 # include <sys/socket.h>
19788 #elif HAVE_WS2TCPIP_H
19789 # include <ws2tcpip.h>
19790 #endif
19793 if test "x$ac_cv_type_socklen_t" = x""yes; then :
19795 else
19796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
19797 $as_echo_n "checking for socklen_t equivalent... " >&6; }
19798 if test "${gl_cv_socklen_t_equiv+set}" = set; then :
19799 $as_echo_n "(cached) " >&6
19800 else
19801 # Systems have either "struct sockaddr *" or
19802 # "void *" as the second argument to getpeername
19803 gl_cv_socklen_t_equiv=
19804 for arg2 in "struct sockaddr" void; do
19805 for t in int size_t "unsigned int" "long int" "unsigned long int"; do
19806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19807 /* end confdefs.h. */
19808 #include <sys/types.h>
19809 #include <sys/socket.h>
19811 int getpeername (int, $arg2 *, $t *);
19813 main ()
19815 $t len;
19816 getpeername (0, 0, &len);
19818 return 0;
19820 _ACEOF
19821 if ac_fn_c_try_compile "$LINENO"; then :
19822 gl_cv_socklen_t_equiv="$t"
19824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19825 test "$gl_cv_socklen_t_equiv" != "" && break
19826 done
19827 test "$gl_cv_socklen_t_equiv" != "" && break
19828 done
19832 if test "$gl_cv_socklen_t_equiv" = ""; then
19833 as_fn_error "Cannot find a type to use in place of socklen_t" "$LINENO" 5
19835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
19836 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
19838 cat >>confdefs.h <<_ACEOF
19839 #define socklen_t $gl_cv_socklen_t_equiv
19840 _ACEOF
19845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
19846 $as_echo_n "checking for ssize_t... " >&6; }
19847 if test "${gt_cv_ssize_t+set}" = set; then :
19848 $as_echo_n "(cached) " >&6
19849 else
19850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19851 /* end confdefs.h. */
19852 #include <sys/types.h>
19854 main ()
19856 int x = sizeof (ssize_t *) + sizeof (ssize_t);
19857 return !x;
19859 return 0;
19861 _ACEOF
19862 if ac_fn_c_try_compile "$LINENO"; then :
19863 gt_cv_ssize_t=yes
19864 else
19865 gt_cv_ssize_t=no
19867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
19870 $as_echo "$gt_cv_ssize_t" >&6; }
19871 if test $gt_cv_ssize_t = no; then
19873 $as_echo "#define ssize_t int" >>confdefs.h
19878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdalign.h" >&5
19879 $as_echo_n "checking for working stdalign.h... " >&6; }
19880 if test "${gl_cv_header_working_stdalign_h+set}" = set; then :
19881 $as_echo_n "(cached) " >&6
19882 else
19883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19884 /* end confdefs.h. */
19885 #include <stdalign.h>
19886 #include <stddef.h>
19888 /* Test that alignof yields a result consistent with offsetof.
19889 This catches GCC bug 52023
19890 <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023>. */
19891 #ifdef __cplusplus
19892 template <class t> struct alignof_helper { char a; t b; };
19893 # define ao(type) offsetof (alignof_helper<type>, b)
19894 #else
19895 # define ao(type) offsetof (struct { char a; type b; }, b)
19896 #endif
19897 char test_double[ao (double) % _Alignof (double) == 0 ? 1 : -1];
19898 char test_long[ao (long int) % _Alignof (long int) == 0 ? 1 : -1];
19899 char test_alignof[alignof (double) == _Alignof (double) ? 1 : -1];
19901 /* Test _Alignas only on platforms where gnulib can help. */
19902 #if \
19903 (__GNUC__ || __IBMC__ || __IBMCPP__ \
19904 || 0x5110 <= __SUNPRO_C || 1300 <= _MSC_VER)
19905 int alignas (8) alignas_int = 1;
19906 char test_alignas[_Alignof (alignas_int) == 8 ? 1 : -1];
19907 #endif
19910 main ()
19914 return 0;
19916 _ACEOF
19917 if ac_fn_c_try_compile "$LINENO"; then :
19918 gl_cv_header_working_stdalign_h=yes
19919 else
19920 gl_cv_header_working_stdalign_h=no
19922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdalign_h" >&5
19925 $as_echo "$gl_cv_header_working_stdalign_h" >&6; }
19927 if test $gl_cv_header_working_stdalign_h = yes; then
19928 STDALIGN_H=''
19929 else
19930 STDALIGN_H='stdalign.h'
19934 if test -n "$STDALIGN_H"; then
19935 GL_GENERATE_STDALIGN_H_TRUE=
19936 GL_GENERATE_STDALIGN_H_FALSE='#'
19937 else
19938 GL_GENERATE_STDALIGN_H_TRUE='#'
19939 GL_GENERATE_STDALIGN_H_FALSE=
19944 STDARG_H=''
19945 NEXT_STDARG_H='<stdarg.h>'
19946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
19947 $as_echo_n "checking for va_copy... " >&6; }
19948 if test "${gl_cv_func_va_copy+set}" = set; then :
19949 $as_echo_n "(cached) " >&6
19950 else
19952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19953 /* end confdefs.h. */
19954 #include <stdarg.h>
19956 main ()
19959 #ifndef va_copy
19960 void (*func) (va_list, va_list) = va_copy;
19961 #endif
19964 return 0;
19966 _ACEOF
19967 if ac_fn_c_try_compile "$LINENO"; then :
19968 gl_cv_func_va_copy=yes
19969 else
19970 gl_cv_func_va_copy=no
19972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_va_copy" >&5
19976 $as_echo "$gl_cv_func_va_copy" >&6; }
19977 if test $gl_cv_func_va_copy = no; then
19978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19979 /* end confdefs.h. */
19980 #if defined _AIX && !defined __GNUC__
19981 AIX vaccine
19982 #endif
19984 _ACEOF
19985 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19986 $EGREP "vaccine" >/dev/null 2>&1; then :
19987 gl_aixcc=yes
19988 else
19989 gl_aixcc=no
19991 rm -f conftest*
19993 if test $gl_aixcc = yes; then
19994 STDARG_H=stdarg.h
20003 if test $gl_cv_have_include_next = yes; then
20004 gl_cv_next_stdarg_h='<'stdarg.h'>'
20005 else
20006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdarg.h>" >&5
20007 $as_echo_n "checking absolute name of <stdarg.h>... " >&6; }
20008 if test "${gl_cv_next_stdarg_h+set}" = set; then :
20009 $as_echo_n "(cached) " >&6
20010 else
20012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20013 /* end confdefs.h. */
20014 #include <stdarg.h>
20016 _ACEOF
20017 case "$host_os" in
20018 aix*) gl_absname_cpp="$ac_cpp -C" ;;
20019 *) gl_absname_cpp="$ac_cpp" ;;
20020 esac
20022 case "$host_os" in
20023 mingw*)
20024 gl_dirsep_regex='[/\\]'
20027 gl_dirsep_regex='\/'
20029 esac
20030 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
20032 gl_header_literal_regex=`echo 'stdarg.h' \
20033 | sed -e "$gl_make_literal_regex_sed"`
20034 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20035 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20036 s|^/[^/]|//&|
20040 gl_cv_next_stdarg_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20041 sed -n "$gl_absolute_header_sed"`'"'
20045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdarg_h" >&5
20046 $as_echo "$gl_cv_next_stdarg_h" >&6; }
20048 NEXT_STDARG_H=$gl_cv_next_stdarg_h
20050 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20051 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20052 gl_next_as_first_directive='<'stdarg.h'>'
20053 else
20054 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20055 gl_next_as_first_directive=$gl_cv_next_stdarg_h
20057 NEXT_AS_FIRST_DIRECTIVE_STDARG_H=$gl_next_as_first_directive
20062 if test "$gl_cv_next_stdarg_h" = '""'; then
20063 gl_cv_next_stdarg_h='"///usr/include/stdarg.h"'
20064 NEXT_STDARG_H="$gl_cv_next_stdarg_h"
20066 else
20068 saved_as_echo_n="$as_echo_n"
20069 as_echo_n=':'
20070 if test "${gl_cv_func___va_copy+set}" = set; then :
20071 $as_echo_n "(cached) " >&6
20072 else
20074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20075 /* end confdefs.h. */
20076 #include <stdarg.h>
20078 main ()
20081 #ifndef __va_copy
20082 error, bail out
20083 #endif
20086 return 0;
20088 _ACEOF
20089 if ac_fn_c_try_compile "$LINENO"; then :
20090 gl_cv_func___va_copy=yes
20091 else
20092 gl_cv_func___va_copy=no
20094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20097 as_echo_n="$saved_as_echo_n"
20099 if test $gl_cv_func___va_copy = yes; then
20101 $as_echo "#define va_copy __va_copy" >>confdefs.h
20103 else
20106 $as_echo "#define va_copy gl_va_copy" >>confdefs.h
20112 if test -n "$STDARG_H"; then
20113 GL_GENERATE_STDARG_H_TRUE=
20114 GL_GENERATE_STDARG_H_FALSE='#'
20115 else
20116 GL_GENERATE_STDARG_H_TRUE='#'
20117 GL_GENERATE_STDARG_H_FALSE=
20125 # Define two additional variables used in the Makefile substitution.
20127 if test "$ac_cv_header_stdbool_h" = yes; then
20128 STDBOOL_H=''
20129 else
20130 STDBOOL_H='stdbool.h'
20133 if test -n "$STDBOOL_H"; then
20134 GL_GENERATE_STDBOOL_H_TRUE=
20135 GL_GENERATE_STDBOOL_H_FALSE='#'
20136 else
20137 GL_GENERATE_STDBOOL_H_TRUE='#'
20138 GL_GENERATE_STDBOOL_H_FALSE=
20142 if test "$ac_cv_type__Bool" = yes; then
20143 HAVE__BOOL=1
20144 else
20145 HAVE__BOOL=0
20152 STDDEF_H=
20153 if test $gt_cv_c_wchar_t = no; then
20154 HAVE_WCHAR_T=0
20155 STDDEF_H=stddef.h
20157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
20158 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
20159 if test "${gl_cv_decl_null_works+set}" = set; then :
20160 $as_echo_n "(cached) " >&6
20161 else
20162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20163 /* end confdefs.h. */
20164 #include <stddef.h>
20165 int test[2 * (sizeof NULL == sizeof (void *)) -1];
20168 main ()
20172 return 0;
20174 _ACEOF
20175 if ac_fn_c_try_compile "$LINENO"; then :
20176 gl_cv_decl_null_works=yes
20177 else
20178 gl_cv_decl_null_works=no
20180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
20183 $as_echo "$gl_cv_decl_null_works" >&6; }
20184 if test $gl_cv_decl_null_works = no; then
20185 REPLACE_NULL=1
20186 STDDEF_H=stddef.h
20189 if test -n "$STDDEF_H"; then
20190 GL_GENERATE_STDDEF_H_TRUE=
20191 GL_GENERATE_STDDEF_H_FALSE='#'
20192 else
20193 GL_GENERATE_STDDEF_H_TRUE='#'
20194 GL_GENERATE_STDDEF_H_FALSE=
20197 if test -n "$STDDEF_H"; then
20206 if test $gl_cv_have_include_next = yes; then
20207 gl_cv_next_stddef_h='<'stddef.h'>'
20208 else
20209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
20210 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
20211 if test "${gl_cv_next_stddef_h+set}" = set; then :
20212 $as_echo_n "(cached) " >&6
20213 else
20215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20216 /* end confdefs.h. */
20217 #include <stddef.h>
20219 _ACEOF
20220 case "$host_os" in
20221 aix*) gl_absname_cpp="$ac_cpp -C" ;;
20222 *) gl_absname_cpp="$ac_cpp" ;;
20223 esac
20225 case "$host_os" in
20226 mingw*)
20227 gl_dirsep_regex='[/\\]'
20230 gl_dirsep_regex='\/'
20232 esac
20233 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
20235 gl_header_literal_regex=`echo 'stddef.h' \
20236 | sed -e "$gl_make_literal_regex_sed"`
20237 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20238 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20239 s|^/[^/]|//&|
20243 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20244 sed -n "$gl_absolute_header_sed"`'"'
20248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
20249 $as_echo "$gl_cv_next_stddef_h" >&6; }
20251 NEXT_STDDEF_H=$gl_cv_next_stddef_h
20253 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20254 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20255 gl_next_as_first_directive='<'stddef.h'>'
20256 else
20257 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20258 gl_next_as_first_directive=$gl_cv_next_stddef_h
20260 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
20279 if test $gl_cv_have_include_next = yes; then
20280 gl_cv_next_stdio_h='<'stdio.h'>'
20281 else
20282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
20283 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
20284 if test "${gl_cv_next_stdio_h+set}" = set; then :
20285 $as_echo_n "(cached) " >&6
20286 else
20288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20289 /* end confdefs.h. */
20290 #include <stdio.h>
20292 _ACEOF
20293 case "$host_os" in
20294 aix*) gl_absname_cpp="$ac_cpp -C" ;;
20295 *) gl_absname_cpp="$ac_cpp" ;;
20296 esac
20298 case "$host_os" in
20299 mingw*)
20300 gl_dirsep_regex='[/\\]'
20303 gl_dirsep_regex='\/'
20305 esac
20306 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
20308 gl_header_literal_regex=`echo 'stdio.h' \
20309 | sed -e "$gl_make_literal_regex_sed"`
20310 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20311 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20312 s|^/[^/]|//&|
20316 gl_cv_next_stdio_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20317 sed -n "$gl_absolute_header_sed"`'"'
20321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
20322 $as_echo "$gl_cv_next_stdio_h" >&6; }
20324 NEXT_STDIO_H=$gl_cv_next_stdio_h
20326 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20327 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20328 gl_next_as_first_directive='<'stdio.h'>'
20329 else
20330 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20331 gl_next_as_first_directive=$gl_cv_next_stdio_h
20333 NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
20339 GNULIB_FSCANF=1
20340 GNULIB_SCANF=1
20341 GNULIB_FGETC=1
20342 GNULIB_GETC=1
20343 GNULIB_GETCHAR=1
20344 GNULIB_FGETS=1
20345 GNULIB_FREAD=1
20348 GNULIB_FPRINTF=1
20349 GNULIB_PRINTF=1
20350 GNULIB_VFPRINTF=1
20351 GNULIB_VPRINTF=1
20352 GNULIB_FPUTC=1
20353 GNULIB_PUTC=1
20354 GNULIB_PUTCHAR=1
20355 GNULIB_FPUTS=1
20356 GNULIB_PUTS=1
20357 GNULIB_FWRITE=1
20373 if test $gl_cv_have_include_next = yes; then
20374 gl_cv_next_stdlib_h='<'stdlib.h'>'
20375 else
20376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
20377 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
20378 if test "${gl_cv_next_stdlib_h+set}" = set; then :
20379 $as_echo_n "(cached) " >&6
20380 else
20382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20383 /* end confdefs.h. */
20384 #include <stdlib.h>
20386 _ACEOF
20387 case "$host_os" in
20388 aix*) gl_absname_cpp="$ac_cpp -C" ;;
20389 *) gl_absname_cpp="$ac_cpp" ;;
20390 esac
20392 case "$host_os" in
20393 mingw*)
20394 gl_dirsep_regex='[/\\]'
20397 gl_dirsep_regex='\/'
20399 esac
20400 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
20402 gl_header_literal_regex=`echo 'stdlib.h' \
20403 | sed -e "$gl_make_literal_regex_sed"`
20404 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20405 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20406 s|^/[^/]|//&|
20410 gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20411 sed -n "$gl_absolute_header_sed"`'"'
20415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
20416 $as_echo "$gl_cv_next_stdlib_h" >&6; }
20418 NEXT_STDLIB_H=$gl_cv_next_stdlib_h
20420 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20421 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20422 gl_next_as_first_directive='<'stdlib.h'>'
20423 else
20424 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20425 gl_next_as_first_directive=$gl_cv_next_stdlib_h
20427 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
20437 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
20445 $as_echo "#define my_strftime nstrftime" >>confdefs.h
20454 if test "$ac_cv_have_decl_strtoimax" != yes; then
20455 HAVE_DECL_STRTOIMAX=0
20458 if test $ac_cv_func_strtoimax = yes; then
20459 HAVE_STRTOIMAX=1
20460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtoimax works" >&5
20461 $as_echo_n "checking whether strtoimax works... " >&6; }
20462 if test "${gl_cv_func_strtoimax+set}" = set; then :
20463 $as_echo_n "(cached) " >&6
20464 else
20465 if test "$cross_compiling" = yes; then :
20466 case "$host_os" in
20467 # Guess no on AIX 5.
20468 aix5*) gl_cv_func_strtoimax="guessing no" ;;
20469 # Guess yes otherwise.
20470 *) gl_cv_func_strtoimax="guessing yes" ;;
20471 esac
20473 else
20474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20475 /* end confdefs.h. */
20477 #include <errno.h>
20478 #include <string.h>
20479 #include <inttypes.h>
20480 int main ()
20482 if (sizeof (intmax_t) > sizeof (int))
20484 const char *s = "4294967295";
20485 char *p;
20486 intmax_t res;
20487 errno = 0;
20488 res = strtoimax (s, &p, 10);
20489 if (p != s + strlen (s))
20490 return 1;
20491 if (errno != 0)
20492 return 2;
20493 if (res != (intmax_t) 65535 * (intmax_t) 65537)
20494 return 3;
20496 else
20498 const char *s = "2147483647";
20499 char *p;
20500 intmax_t res;
20501 errno = 0;
20502 res = strtoimax (s, &p, 10);
20503 if (p != s + strlen (s))
20504 return 1;
20505 if (errno != 0)
20506 return 2;
20507 if (res != 2147483647)
20508 return 3;
20510 return 0;
20513 _ACEOF
20514 if ac_fn_c_try_run "$LINENO"; then :
20515 gl_cv_func_strtoimax=yes
20516 else
20517 gl_cv_func_strtoimax=no
20519 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20520 conftest.$ac_objext conftest.beam conftest.$ac_ext
20525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strtoimax" >&5
20526 $as_echo "$gl_cv_func_strtoimax" >&6; }
20527 case "$gl_cv_func_strtoimax" in
20528 *no) REPLACE_STRTOIMAX=1 ;;
20529 esac
20530 else
20531 HAVE_STRTOIMAX=0
20534 if test $HAVE_STRTOIMAX = 0 || test $REPLACE_STRTOIMAX = 1; then
20543 gl_LIBOBJS="$gl_LIBOBJS strtoimax.$ac_objext"
20546 ac_fn_c_check_decl "$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
20547 if test "x$ac_cv_have_decl_strtoll" = x""yes; then :
20548 ac_have_decl=1
20549 else
20550 ac_have_decl=0
20553 cat >>confdefs.h <<_ACEOF
20554 #define HAVE_DECL_STRTOLL $ac_have_decl
20555 _ACEOF
20565 GNULIB_STRTOIMAX=1
20575 if test "$ac_cv_have_decl_strtoumax" != yes; then
20576 HAVE_DECL_STRTOUMAX=0
20579 if test $ac_cv_func_strtoumax = no; then
20588 gl_LIBOBJS="$gl_LIBOBJS strtoumax.$ac_objext"
20591 ac_fn_c_check_decl "$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
20592 if test "x$ac_cv_have_decl_strtoull" = x""yes; then :
20593 ac_have_decl=1
20594 else
20595 ac_have_decl=0
20598 cat >>confdefs.h <<_ACEOF
20599 #define HAVE_DECL_STRTOULL $ac_have_decl
20600 _ACEOF
20610 GNULIB_STRTOUMAX=1
20618 if test $ac_cv_func_symlink = no; then
20619 HAVE_SYMLINK=0
20620 else
20621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symlink handles trailing slash correctly" >&5
20622 $as_echo_n "checking whether symlink handles trailing slash correctly... " >&6; }
20623 if test "${gl_cv_func_symlink_works+set}" = set; then :
20624 $as_echo_n "(cached) " >&6
20625 else
20626 if test "$cross_compiling" = yes; then :
20627 case "$host_os" in
20628 # Guess yes on glibc systems.
20629 *-gnu*) gl_cv_func_symlink_works="guessing yes" ;;
20630 # If we don't know, assume the worst.
20631 *) gl_cv_func_symlink_works="guessing no" ;;
20632 esac
20634 else
20635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20636 /* end confdefs.h. */
20637 #include <unistd.h>
20640 main ()
20642 int result = 0;
20643 if (!symlink ("a", "conftest.link/"))
20644 result |= 1;
20645 if (symlink ("conftest.f", "conftest.lnk2"))
20646 result |= 2;
20647 else if (!symlink ("a", "conftest.lnk2/"))
20648 result |= 4;
20649 return result;
20652 return 0;
20654 _ACEOF
20655 if ac_fn_c_try_run "$LINENO"; then :
20656 gl_cv_func_symlink_works=yes
20657 else
20658 gl_cv_func_symlink_works=no
20660 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20661 conftest.$ac_objext conftest.beam conftest.$ac_ext
20664 rm -f conftest.f conftest.link conftest.lnk2
20666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_symlink_works" >&5
20667 $as_echo "$gl_cv_func_symlink_works" >&6; }
20668 case "$gl_cv_func_symlink_works" in
20669 *yes) ;;
20671 REPLACE_SYMLINK=1
20673 esac
20676 if test $HAVE_SYMLINK = 0 || test $REPLACE_SYMLINK = 1; then
20685 gl_LIBOBJS="$gl_LIBOBJS symlink.$ac_objext"
20693 GNULIB_SYMLINK=1
20715 if test $gl_cv_have_include_next = yes; then
20716 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
20717 else
20718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
20719 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
20720 if test "${gl_cv_next_sys_stat_h+set}" = set; then :
20721 $as_echo_n "(cached) " >&6
20722 else
20724 if test $ac_cv_header_sys_stat_h = yes; then
20727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20728 /* end confdefs.h. */
20729 #include <sys/stat.h>
20731 _ACEOF
20732 case "$host_os" in
20733 aix*) gl_absname_cpp="$ac_cpp -C" ;;
20734 *) gl_absname_cpp="$ac_cpp" ;;
20735 esac
20737 case "$host_os" in
20738 mingw*)
20739 gl_dirsep_regex='[/\\]'
20742 gl_dirsep_regex='\/'
20744 esac
20745 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
20747 gl_header_literal_regex=`echo 'sys/stat.h' \
20748 | sed -e "$gl_make_literal_regex_sed"`
20749 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20750 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20751 s|^/[^/]|//&|
20755 gl_cv_next_sys_stat_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20756 sed -n "$gl_absolute_header_sed"`'"'
20757 else
20758 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
20763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
20764 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
20766 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
20768 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20769 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20770 gl_next_as_first_directive='<'sys/stat.h'>'
20771 else
20772 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20773 gl_next_as_first_directive=$gl_cv_next_sys_stat_h
20775 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
20787 if test $WINDOWS_64_BIT_ST_SIZE = 1; then
20789 $as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
20793 ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
20794 #include <sys/stat.h>
20796 if test "x$ac_cv_type_nlink_t" = x""yes; then :
20798 else
20800 $as_echo "#define nlink_t int" >>confdefs.h
20818 if test $gl_cv_have_include_next = yes; then
20819 gl_cv_next_sys_types_h='<'sys/types.h'>'
20820 else
20821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/types.h>" >&5
20822 $as_echo_n "checking absolute name of <sys/types.h>... " >&6; }
20823 if test "${gl_cv_next_sys_types_h+set}" = set; then :
20824 $as_echo_n "(cached) " >&6
20825 else
20827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20828 /* end confdefs.h. */
20829 #include <sys/types.h>
20831 _ACEOF
20832 case "$host_os" in
20833 aix*) gl_absname_cpp="$ac_cpp -C" ;;
20834 *) gl_absname_cpp="$ac_cpp" ;;
20835 esac
20837 case "$host_os" in
20838 mingw*)
20839 gl_dirsep_regex='[/\\]'
20842 gl_dirsep_regex='\/'
20844 esac
20845 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
20847 gl_header_literal_regex=`echo 'sys/types.h' \
20848 | sed -e "$gl_make_literal_regex_sed"`
20849 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20850 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20851 s|^/[^/]|//&|
20855 gl_cv_next_sys_types_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20856 sed -n "$gl_absolute_header_sed"`'"'
20860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_types_h" >&5
20861 $as_echo "$gl_cv_next_sys_types_h" >&6; }
20863 NEXT_SYS_TYPES_H=$gl_cv_next_sys_types_h
20865 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20866 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20867 gl_next_as_first_directive='<'sys/types.h'>'
20868 else
20869 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20870 gl_next_as_first_directive=$gl_cv_next_sys_types_h
20872 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H=$gl_next_as_first_directive
20895 if test $ac_cv_have_decl_localtime_r = no; then
20896 HAVE_DECL_LOCALTIME_R=0
20900 if test $ac_cv_func_localtime_r = yes; then
20901 HAVE_LOCALTIME_R=1
20902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
20903 $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
20904 if test "${gl_cv_time_r_posix+set}" = set; then :
20905 $as_echo_n "(cached) " >&6
20906 else
20907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20908 /* end confdefs.h. */
20909 #include <time.h>
20911 main ()
20913 /* We don't need to append 'restrict's to the argument types,
20914 even though the POSIX signature has the 'restrict's,
20915 since C99 says they can't affect type compatibility. */
20916 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
20917 if (ptr) return 0;
20918 /* Check the return type is a pointer.
20919 On HP-UX 10 it is 'int'. */
20920 *localtime_r (0, 0);
20922 return 0;
20925 _ACEOF
20926 if ac_fn_c_try_compile "$LINENO"; then :
20927 gl_cv_time_r_posix=yes
20928 else
20929 gl_cv_time_r_posix=no
20931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
20935 $as_echo "$gl_cv_time_r_posix" >&6; }
20936 if test $gl_cv_time_r_posix = yes; then
20937 REPLACE_LOCALTIME_R=0
20938 else
20939 REPLACE_LOCALTIME_R=1
20941 else
20942 HAVE_LOCALTIME_R=0
20945 if test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1; then
20954 gl_LIBOBJS="$gl_LIBOBJS time_r.$ac_objext"
20965 GNULIB_TIME_R=1
20985 if test $gl_cv_have_include_next = yes; then
20986 gl_cv_next_unistd_h='<'unistd.h'>'
20987 else
20988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
20989 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
20990 if test "${gl_cv_next_unistd_h+set}" = set; then :
20991 $as_echo_n "(cached) " >&6
20992 else
20994 if test $ac_cv_header_unistd_h = yes; then
20997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20998 /* end confdefs.h. */
20999 #include <unistd.h>
21001 _ACEOF
21002 case "$host_os" in
21003 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21004 *) gl_absname_cpp="$ac_cpp" ;;
21005 esac
21007 case "$host_os" in
21008 mingw*)
21009 gl_dirsep_regex='[/\\]'
21012 gl_dirsep_regex='\/'
21014 esac
21015 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
21017 gl_header_literal_regex=`echo 'unistd.h' \
21018 | sed -e "$gl_make_literal_regex_sed"`
21019 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21020 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21021 s|^/[^/]|//&|
21025 gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21026 sed -n "$gl_absolute_header_sed"`'"'
21027 else
21028 gl_cv_next_unistd_h='<'unistd.h'>'
21033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
21034 $as_echo "$gl_cv_next_unistd_h" >&6; }
21036 NEXT_UNISTD_H=$gl_cv_next_unistd_h
21038 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21039 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21040 gl_next_as_first_directive='<'unistd.h'>'
21041 else
21042 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21043 gl_next_as_first_directive=$gl_cv_next_unistd_h
21045 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
21050 if test $ac_cv_header_unistd_h = yes; then
21051 HAVE_UNISTD_H=1
21052 else
21053 HAVE_UNISTD_H=0
21063 gl_gnulib_enabled_dosname=false
21064 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36=false
21065 gl_gnulib_enabled_pathmax=false
21066 gl_gnulib_enabled_sigprocmask=false
21067 gl_gnulib_enabled_stat=false
21068 gl_gnulib_enabled_strtoll=false
21069 gl_gnulib_enabled_strtoull=false
21070 gl_gnulib_enabled_verify=false
21071 func_gl_gnulib_m4code_dosname ()
21073 if ! $gl_gnulib_enabled_dosname; then
21074 gl_gnulib_enabled_dosname=true
21077 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36 ()
21079 if ! $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
21082 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36=true
21085 func_gl_gnulib_m4code_pathmax ()
21087 if ! $gl_gnulib_enabled_pathmax; then
21091 gl_gnulib_enabled_pathmax=true
21094 func_gl_gnulib_m4code_sigprocmask ()
21096 if ! $gl_gnulib_enabled_sigprocmask; then
21100 if test $gl_cv_type_sigset_t = yes; then
21101 ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask"
21102 if test "x$ac_cv_func_sigprocmask" = x""yes; then :
21103 gl_cv_func_sigprocmask=1
21107 if test -z "$gl_cv_func_sigprocmask"; then
21108 HAVE_POSIX_SIGNALBLOCKING=0
21111 if test $HAVE_POSIX_SIGNALBLOCKING = 0; then
21120 gl_LIBOBJS="$gl_LIBOBJS sigprocmask.$ac_objext"
21131 GNULIB_SIGPROCMASK=1
21137 gl_gnulib_enabled_sigprocmask=true
21140 func_gl_gnulib_m4code_stat ()
21142 if ! $gl_gnulib_enabled_stat; then
21146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
21147 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
21148 if test "${gl_cv_func_stat_dir_slash+set}" = set; then :
21149 $as_echo_n "(cached) " >&6
21150 else
21151 if test "$cross_compiling" = yes; then :
21152 case $host_os in
21153 mingw*) gl_cv_func_stat_dir_slash="guessing no";;
21154 *) gl_cv_func_stat_dir_slash="guessing yes";;
21155 esac
21156 else
21157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21158 /* end confdefs.h. */
21159 #include <sys/stat.h>
21162 main ()
21164 struct stat st; return stat (".", &st) != stat ("./", &st);
21166 return 0;
21168 _ACEOF
21169 if ac_fn_c_try_run "$LINENO"; then :
21170 gl_cv_func_stat_dir_slash=yes
21171 else
21172 gl_cv_func_stat_dir_slash=no
21174 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21175 conftest.$ac_objext conftest.beam conftest.$ac_ext
21179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
21180 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
21181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
21182 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
21183 if test "${gl_cv_func_stat_file_slash+set}" = set; then :
21184 $as_echo_n "(cached) " >&6
21185 else
21186 touch conftest.tmp
21187 # Assume that if we have lstat, we can also check symlinks.
21188 if test $ac_cv_func_lstat = yes; then
21189 ln -s conftest.tmp conftest.lnk
21191 if test "$cross_compiling" = yes; then :
21192 case "$host_os" in
21193 # Guess yes on glibc systems.
21194 *-gnu*) gl_cv_func_stat_file_slash="guessing yes" ;;
21195 # If we don't know, assume the worst.
21196 *) gl_cv_func_stat_file_slash="guessing no" ;;
21197 esac
21199 else
21200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21201 /* end confdefs.h. */
21202 #include <sys/stat.h>
21205 main ()
21207 int result = 0;
21208 struct stat st;
21209 if (!stat ("conftest.tmp/", &st))
21210 result |= 1;
21211 #if HAVE_LSTAT
21212 if (!stat ("conftest.lnk/", &st))
21213 result |= 2;
21214 #endif
21215 return result;
21218 return 0;
21220 _ACEOF
21221 if ac_fn_c_try_run "$LINENO"; then :
21222 gl_cv_func_stat_file_slash=yes
21223 else
21224 gl_cv_func_stat_file_slash=no
21226 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21227 conftest.$ac_objext conftest.beam conftest.$ac_ext
21230 rm -f conftest.tmp conftest.lnk
21232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
21233 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
21234 case $gl_cv_func_stat_dir_slash in
21235 *no) REPLACE_STAT=1
21237 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
21239 esac
21240 case $gl_cv_func_stat_file_slash in
21241 *no) REPLACE_STAT=1
21243 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
21245 esac
21247 if test $REPLACE_STAT = 1; then
21256 gl_LIBOBJS="$gl_LIBOBJS stat.$ac_objext"
21268 GNULIB_STAT=1
21274 gl_gnulib_enabled_stat=true
21275 if test $REPLACE_STAT = 1; then
21276 func_gl_gnulib_m4code_dosname
21278 if test $REPLACE_STAT = 1; then
21279 func_gl_gnulib_m4code_pathmax
21281 if test $REPLACE_STAT = 1; then
21282 func_gl_gnulib_m4code_verify
21286 func_gl_gnulib_m4code_strtoll ()
21288 if ! $gl_gnulib_enabled_strtoll; then
21292 if test "$ac_cv_type_long_long_int" = yes; then
21293 for ac_func in strtoll
21294 do :
21295 ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
21296 if test "x$ac_cv_func_strtoll" = x""yes; then :
21297 cat >>confdefs.h <<_ACEOF
21298 #define HAVE_STRTOLL 1
21299 _ACEOF
21302 done
21304 if test $ac_cv_func_strtoll = no; then
21305 HAVE_STRTOLL=0
21309 if test $HAVE_STRTOLL = 0; then
21318 gl_LIBOBJS="$gl_LIBOBJS strtoll.$ac_objext"
21329 GNULIB_STRTOLL=1
21335 gl_gnulib_enabled_strtoll=true
21338 func_gl_gnulib_m4code_strtoull ()
21340 if ! $gl_gnulib_enabled_strtoull; then
21344 if test "$ac_cv_type_unsigned_long_long_int" = yes; then
21345 for ac_func in strtoull
21346 do :
21347 ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
21348 if test "x$ac_cv_func_strtoull" = x""yes; then :
21349 cat >>confdefs.h <<_ACEOF
21350 #define HAVE_STRTOULL 1
21351 _ACEOF
21354 done
21356 if test $ac_cv_func_strtoull = no; then
21357 HAVE_STRTOULL=0
21361 if test $HAVE_STRTOULL = 0; then
21370 gl_LIBOBJS="$gl_LIBOBJS strtoull.$ac_objext"
21381 GNULIB_STRTOULL=1
21387 gl_gnulib_enabled_strtoull=true
21390 func_gl_gnulib_m4code_verify ()
21392 if ! $gl_gnulib_enabled_verify; then
21393 gl_gnulib_enabled_verify=true
21396 if test $REPLACE_GETOPT = 1; then
21397 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36
21399 if test $REPLACE_LSTAT = 1; then
21400 func_gl_gnulib_m4code_dosname
21402 if test $REPLACE_LSTAT = 1; then
21403 func_gl_gnulib_m4code_stat
21405 if test $HAVE_PTHREAD_SIGMASK = 0 || test $REPLACE_PTHREAD_SIGMASK = 1; then
21406 func_gl_gnulib_m4code_sigprocmask
21408 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
21409 func_gl_gnulib_m4code_stat
21411 if { test $HAVE_STRTOIMAX = 0 || test $REPLACE_STRTOIMAX = 1; } && test $ac_cv_type_long_long_int = yes; then
21412 func_gl_gnulib_m4code_strtoll
21414 if test $HAVE_STRTOIMAX = 0 || test $REPLACE_STRTOIMAX = 1; then
21415 func_gl_gnulib_m4code_verify
21417 if test $ac_cv_func_strtoumax = no && test $ac_cv_type_unsigned_long_long_int = yes; then
21418 func_gl_gnulib_m4code_strtoull
21420 if test $ac_cv_func_strtoumax = no; then
21421 func_gl_gnulib_m4code_verify
21424 if $gl_gnulib_enabled_dosname; then
21425 gl_GNULIB_ENABLED_dosname_TRUE=
21426 gl_GNULIB_ENABLED_dosname_FALSE='#'
21427 else
21428 gl_GNULIB_ENABLED_dosname_TRUE='#'
21429 gl_GNULIB_ENABLED_dosname_FALSE=
21432 if $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
21433 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE=
21434 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE='#'
21435 else
21436 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE='#'
21437 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE=
21440 if $gl_gnulib_enabled_pathmax; then
21441 gl_GNULIB_ENABLED_pathmax_TRUE=
21442 gl_GNULIB_ENABLED_pathmax_FALSE='#'
21443 else
21444 gl_GNULIB_ENABLED_pathmax_TRUE='#'
21445 gl_GNULIB_ENABLED_pathmax_FALSE=
21448 if $gl_gnulib_enabled_sigprocmask; then
21449 gl_GNULIB_ENABLED_sigprocmask_TRUE=
21450 gl_GNULIB_ENABLED_sigprocmask_FALSE='#'
21451 else
21452 gl_GNULIB_ENABLED_sigprocmask_TRUE='#'
21453 gl_GNULIB_ENABLED_sigprocmask_FALSE=
21456 if $gl_gnulib_enabled_stat; then
21457 gl_GNULIB_ENABLED_stat_TRUE=
21458 gl_GNULIB_ENABLED_stat_FALSE='#'
21459 else
21460 gl_GNULIB_ENABLED_stat_TRUE='#'
21461 gl_GNULIB_ENABLED_stat_FALSE=
21464 if $gl_gnulib_enabled_strtoll; then
21465 gl_GNULIB_ENABLED_strtoll_TRUE=
21466 gl_GNULIB_ENABLED_strtoll_FALSE='#'
21467 else
21468 gl_GNULIB_ENABLED_strtoll_TRUE='#'
21469 gl_GNULIB_ENABLED_strtoll_FALSE=
21472 if $gl_gnulib_enabled_strtoull; then
21473 gl_GNULIB_ENABLED_strtoull_TRUE=
21474 gl_GNULIB_ENABLED_strtoull_FALSE='#'
21475 else
21476 gl_GNULIB_ENABLED_strtoull_TRUE='#'
21477 gl_GNULIB_ENABLED_strtoull_FALSE=
21480 if $gl_gnulib_enabled_verify; then
21481 gl_GNULIB_ENABLED_verify_TRUE=
21482 gl_GNULIB_ENABLED_verify_FALSE='#'
21483 else
21484 gl_GNULIB_ENABLED_verify_TRUE='#'
21485 gl_GNULIB_ENABLED_verify_FALSE=
21488 # End of code from modules
21498 gltests_libdeps=
21499 gltests_ltlibdeps=
21509 gl_source_base='tests'
21510 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
21512 gl_module_indicator_condition=$gltests_WITNESS
21523 LIBGNU_LIBDEPS="$gl_libdeps"
21525 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
21529 case "$opsys" in
21530 aix4-2) LD_SWITCH_SYSTEM_TEMACS="-Wl,-bnodelcsect" ;;
21532 darwin)
21533 ## The -headerpad option tells ld (see man page) to leave room at the
21534 ## end of the header for adding load commands. Needed for dumping.
21535 ## 0x690 is the total size of 30 segment load commands (at 56
21536 ## each); under Cocoa 31 commands are required.
21537 if test "$HAVE_NS" = "yes"; then
21538 libs_nsgui="-framework AppKit"
21539 headerpad_extra=6C8
21540 else
21541 libs_nsgui=
21542 headerpad_extra=690
21544 LD_SWITCH_SYSTEM_TEMACS="-fno-pie -prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
21546 ## This is here because src/Makefile.in did some extra fiddling around
21547 ## with LD_SWITCH_SYSTEM. The cpp logic was:
21548 ## #ifndef LD_SWITCH_SYSTEM
21549 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
21550 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
21551 ## not using gcc, darwin.
21552 ## Because this was done in src/Makefile.in, the resulting part of
21553 ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link).
21554 ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS,
21555 ## rather than LD_SWITCH_SYSTEM.
21556 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
21557 LD_SWITCH_SYSTEM_TEMACS="-X $LD_SWITCH_SYSTEM_TEMACS"
21560 ## LD_SWITCH_X_SITE_RPATH is a -rpath option saying where to
21561 ## find X at run-time.
21562 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at the
21563 ## point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_RPATH
21564 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
21565 ## had different values in configure (in ac_link) and src/Makefile.in.
21566 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
21567 gnu*) LD_SWITCH_SYSTEM_TEMACS="\$(LD_SWITCH_X_SITE_RPATH)" ;;
21569 *) LD_SWITCH_SYSTEM_TEMACS= ;;
21570 esac
21572 if test "$NS_IMPL_GNUSTEP" = "yes"; then
21573 LD_SWITCH_SYSTEM_TEMACS="${LD_SWITCH_SYSTEM_TEMACS} -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES} -lgnustep-gui -lgnustep-base -lobjc -lpthread"
21579 LD_FIRSTFLAG=
21580 ORDINARY_LINK=
21581 case "$opsys" in
21582 ## gnu: GNU needs its own crt0.
21583 aix4-2|cygwin|darwin|gnu|hpux*|irix6-5|sol2*|unixware) ORDINARY_LINK=yes ;;
21585 ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the
21586 ## library search parth, i.e. it won't search /usr/lib for libc and
21587 ## friends. Using -nostartfiles instead avoids this problem, and
21588 ## will also work on earlier NetBSD releases.
21589 netbsd|openbsd) LD_FIRSTFLAG="-nostartfiles" ;;
21591 ## powerpc*: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
21592 ## MkLinux/LinuxPPC needs this.
21593 ## s390x-* only supports opsys = gnu-linux so it can be added here.
21594 gnu-*)
21595 case "$canonical" in
21596 powerpc*|s390x-*) LD_FIRSTFLAG="-nostdlib" ;;
21597 esac
21599 esac
21602 if test "x$ORDINARY_LINK" = "xyes"; then
21604 LD_FIRSTFLAG=""
21606 $as_echo "#define ORDINARY_LINK 1" >>confdefs.h
21609 ## The system files defining neither ORDINARY_LINK nor LD_FIRSTFLAG are:
21610 ## freebsd, gnu-* not on powerpc*|s390x*.
21611 elif test "x$GCC" = "xyes" && test "x$LD_FIRSTFLAG" = "x"; then
21613 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
21614 ## places that are difficult to figure out at make time. Fortunately,
21615 ## these same versions allow you to pass arbitrary flags on to the
21616 ## linker, so there is no reason not to use it as a linker.
21618 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from
21619 ## searching for libraries in its internal directories, so we have to
21620 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below).
21621 LD_FIRSTFLAG="-nostdlib"
21624 ## FIXME? What setting of EDIT_LDFLAGS should this have?
21625 test "$NS_IMPL_GNUSTEP" = "yes" && LD_FIRSTFLAG="-rdynamic"
21630 ## FIXME? The logic here is not precisely the same as that above.
21631 ## There is no check here for a pre-defined LD_FIRSTFLAG.
21632 ## Should we only be setting LIB_GCC if LD ~ -nostdlib?
21633 LIB_GCC=
21634 if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
21636 case "$opsys" in
21637 freebsd|netbsd|openbsd) LIB_GCC= ;;
21639 gnu-*)
21640 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
21641 ## build on ARM EABI under GNU/Linux. (Bug#5518)
21642 case $host_cpu in
21643 arm*)
21644 LIB_GCC="-lgcc_s"
21647 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
21648 ## immediately undefine it again and redefine it to empty.
21649 ## Was the C_SWITCH_X_SITE part really necessary?
21650 ## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
21651 LIB_GCC=
21653 esac
21656 ## Ask GCC where to find libgcc.a.
21657 *) LIB_GCC=`$CC -print-libgcc-file-name 2> /dev/null` ;;
21658 esac
21662 ## If we're using X11/GNUstep, define some consequences.
21663 if test "$HAVE_X_WINDOWS" = "yes" || test "$HAVE_NS" = "yes"; then
21665 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
21668 $as_echo "#define HAVE_MOUSE 1" >>confdefs.h
21675 #### Report on what we decided to do.
21676 #### Report GTK as a toolkit, even if it doesn't use Xt.
21677 #### It makes printing result more understandable as using GTK sets
21678 #### toolkit_scroll_bars to yes by default.
21679 if test "${HAVE_GTK}" = "yes"; then
21680 USE_X_TOOLKIT=GTK
21683 echo "
21684 Configured for \`${canonical}'.
21686 Where should the build process find the source code? ${srcdir}
21687 What operating system file should Emacs use?
21688 \`${opsysfile}'
21689 What compiler should emacs be built with? ${CC} ${CFLAGS}
21690 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
21691 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
21692 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
21693 What window system should Emacs use? ${window_system}
21694 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
21696 if test -n "${x_includes}"; then
21697 echo " Where do we find X Windows header files? ${x_includes}"
21698 else
21699 echo " Where do we find X Windows header files? Standard dirs"
21701 if test -n "${x_libraries}"; then
21702 echo " Where do we find X Windows libraries? ${x_libraries}"
21703 else
21704 echo " Where do we find X Windows libraries? Standard dirs"
21707 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
21708 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
21709 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
21710 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
21711 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
21712 echo " Does Emacs use -lpng? ${HAVE_PNG}"
21713 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
21714 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
21716 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
21717 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
21718 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
21719 echo " Does Emacs use GSettings? ${HAVE_GSETTINGS}"
21720 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
21721 echo " Does Emacs use -lgnutls? ${HAVE_GNUTLS}"
21722 echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
21724 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
21725 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
21726 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
21727 echo " Does Emacs use -lxft? ${HAVE_XFT}"
21729 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
21730 echo
21732 if test -n "${EMACSDATA}"; then
21733 echo " Environment variable EMACSDATA set to: $EMACSDATA"
21735 if test -n "${EMACSDOC}"; then
21736 echo " Environment variable EMACSDOC set to: $EMACSDOC"
21739 if test $USE_XASSERTS = yes; then
21740 echo " Compiling with asserts turned on."
21741 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
21744 echo
21746 if test "$HAVE_NS" = "yes"; then
21747 echo
21748 echo "You must run \"${MAKE-make} install\" in order to test the built application.
21749 The installed application will go to nextstep/Emacs.app and can be
21750 run or moved from there."
21751 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
21752 echo "The application will be fully self-contained."
21753 else
21754 echo "The lisp resources for the application will be installed under ${prefix}.
21755 You may need to run \"${MAKE-make} install\" with sudo. The application will fail
21756 to run if these resources are not installed."
21758 echo
21761 if test "${opsys}" = "cygwin"; then
21762 case `uname -r` in
21763 1.5.*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: building Emacs on Cygwin 1.5 is not supported." >&5
21764 $as_echo "$as_me: WARNING: building Emacs on Cygwin 1.5 is not supported." >&2;}
21765 echo
21767 esac
21770 # Remove any trailing slashes in these variables.
21771 test "${prefix}" != NONE &&
21772 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
21773 test "${exec_prefix}" != NONE &&
21774 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
21776 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"
21778 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"
21781 opt_makefile=test/automated/Makefile
21783 if test -f $srcdir/${opt_makefile}.in; then
21784 SUBDIR_MAKEFILES="$SUBDIR_MAKEFILES $opt_makefile"
21785 ac_config_files="$ac_config_files test/automated/Makefile"
21790 opt_makefile=admin/unidata/Makefile
21792 if test -f $srcdir/${opt_makefile}.in; then
21793 SUBDIR_MAKEFILES="$SUBDIR_MAKEFILES $opt_makefile"
21794 ac_config_files="$ac_config_files admin/unidata/Makefile"
21799 SUBDIR_MAKEFILES_IN=`echo " ${SUBDIR_MAKEFILES}" | sed -e 's| | $(srcdir)/|g' -e 's|Makefile|Makefile.in|g'`
21803 ac_config_commands="$ac_config_commands mkdirs"
21806 ac_config_commands="$ac_config_commands epaths"
21809 ac_config_commands="$ac_config_commands gdbinit"
21812 cat >confcache <<\_ACEOF
21813 # This file is a shell script that caches the results of configure
21814 # tests run on this system so they can be shared between configure
21815 # scripts and configure runs, see configure's option --config-cache.
21816 # It is not useful on other systems. If it contains results you don't
21817 # want to keep, you may remove or edit it.
21819 # config.status only pays attention to the cache file if you give it
21820 # the --recheck option to rerun configure.
21822 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21823 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21824 # following values.
21826 _ACEOF
21828 # The following way of writing the cache mishandles newlines in values,
21829 # but we know of no workaround that is simple, portable, and efficient.
21830 # So, we kill variables containing newlines.
21831 # Ultrix sh set writes to stderr and can't be redirected directly,
21832 # and sets the high bit in the cache file unless we assign to the vars.
21834 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21835 eval ac_val=\$$ac_var
21836 case $ac_val in #(
21837 *${as_nl}*)
21838 case $ac_var in #(
21839 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
21840 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
21841 esac
21842 case $ac_var in #(
21843 _ | IFS | as_nl) ;; #(
21844 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
21845 *) { eval $ac_var=; unset $ac_var;} ;;
21846 esac ;;
21847 esac
21848 done
21850 (set) 2>&1 |
21851 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21852 *${as_nl}ac_space=\ *)
21853 # `set' does not quote correctly, so add quotes: double-quote
21854 # substitution turns \\\\ into \\, and sed turns \\ into \.
21855 sed -n \
21856 "s/'/'\\\\''/g;
21857 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21858 ;; #(
21860 # `set' quotes correctly as required by POSIX, so do not add quotes.
21861 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21863 esac |
21864 sort
21866 sed '
21867 /^ac_cv_env_/b end
21868 t clear
21869 :clear
21870 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21871 t end
21872 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21873 :end' >>confcache
21874 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21875 if test -w "$cache_file"; then
21876 test "x$cache_file" != "x/dev/null" &&
21877 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
21878 $as_echo "$as_me: updating cache $cache_file" >&6;}
21879 cat confcache >$cache_file
21880 else
21881 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
21882 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21885 rm -f confcache
21887 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21888 # Let make expand exec_prefix.
21889 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21891 DEFS=-DHAVE_CONFIG_H
21893 ac_libobjs=
21894 ac_ltlibobjs=
21895 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21896 # 1. Remove the extension, and $U if already installed.
21897 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21898 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
21899 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21900 # will be set to the directory where LIBOBJS objects are built.
21901 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21902 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
21903 done
21904 LIBOBJS=$ac_libobjs
21906 LTLIBOBJS=$ac_ltlibobjs
21909 if test -n "$EXEEXT"; then
21910 am__EXEEXT_TRUE=
21911 am__EXEEXT_FALSE='#'
21912 else
21913 am__EXEEXT_TRUE='#'
21914 am__EXEEXT_FALSE=
21917 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21918 as_fn_error "conditional \"AMDEP\" was never defined.
21919 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21921 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21922 as_fn_error "conditional \"am__fastdepCC\" was never defined.
21923 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21925 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
21926 as_fn_error "conditional \"GL_COND_LIBTOOL\" was never defined.
21927 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21929 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
21930 as_fn_error "conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
21931 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21934 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
21935 as_fn_error "conditional \"GL_GENERATE_STDINT_H\" was never defined.
21936 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21938 if test -z "${GL_GENERATE_STDALIGN_H_TRUE}" && test -z "${GL_GENERATE_STDALIGN_H_FALSE}"; then
21939 as_fn_error "conditional \"GL_GENERATE_STDALIGN_H\" was never defined.
21940 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21942 if test -z "${GL_GENERATE_STDARG_H_TRUE}" && test -z "${GL_GENERATE_STDARG_H_FALSE}"; then
21943 as_fn_error "conditional \"GL_GENERATE_STDARG_H\" was never defined.
21944 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21946 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
21947 as_fn_error "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
21948 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21950 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
21951 as_fn_error "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
21952 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21954 if test -z "${gl_GNULIB_ENABLED_dosname_TRUE}" && test -z "${gl_GNULIB_ENABLED_dosname_FALSE}"; then
21955 as_fn_error "conditional \"gl_GNULIB_ENABLED_dosname\" was never defined.
21956 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21958 if test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE}" && test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE}"; then
21959 as_fn_error "conditional \"gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36\" was never defined.
21960 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21962 if test -z "${gl_GNULIB_ENABLED_pathmax_TRUE}" && test -z "${gl_GNULIB_ENABLED_pathmax_FALSE}"; then
21963 as_fn_error "conditional \"gl_GNULIB_ENABLED_pathmax\" was never defined.
21964 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21966 if test -z "${gl_GNULIB_ENABLED_sigprocmask_TRUE}" && test -z "${gl_GNULIB_ENABLED_sigprocmask_FALSE}"; then
21967 as_fn_error "conditional \"gl_GNULIB_ENABLED_sigprocmask\" was never defined.
21968 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21970 if test -z "${gl_GNULIB_ENABLED_stat_TRUE}" && test -z "${gl_GNULIB_ENABLED_stat_FALSE}"; then
21971 as_fn_error "conditional \"gl_GNULIB_ENABLED_stat\" was never defined.
21972 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21974 if test -z "${gl_GNULIB_ENABLED_strtoll_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoll_FALSE}"; then
21975 as_fn_error "conditional \"gl_GNULIB_ENABLED_strtoll\" was never defined.
21976 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21978 if test -z "${gl_GNULIB_ENABLED_strtoull_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoull_FALSE}"; then
21979 as_fn_error "conditional \"gl_GNULIB_ENABLED_strtoull\" was never defined.
21980 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21982 if test -z "${gl_GNULIB_ENABLED_verify_TRUE}" && test -z "${gl_GNULIB_ENABLED_verify_FALSE}"; then
21983 as_fn_error "conditional \"gl_GNULIB_ENABLED_verify\" was never defined.
21984 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21987 gl_libobjs=
21988 gl_ltlibobjs=
21989 if test -n "$gl_LIBOBJS"; then
21990 # Remove the extension.
21991 sed_drop_objext='s/\.o$//;s/\.obj$//'
21992 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
21993 gl_libobjs="$gl_libobjs $i.$ac_objext"
21994 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
21995 done
21997 gl_LIBOBJS=$gl_libobjs
21999 gl_LTLIBOBJS=$gl_ltlibobjs
22003 gltests_libobjs=
22004 gltests_ltlibobjs=
22005 if test -n "$gltests_LIBOBJS"; then
22006 # Remove the extension.
22007 sed_drop_objext='s/\.o$//;s/\.obj$//'
22008 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
22009 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
22010 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
22011 done
22013 gltests_LIBOBJS=$gltests_libobjs
22015 gltests_LTLIBOBJS=$gltests_ltlibobjs
22019 : ${CONFIG_STATUS=./config.status}
22020 ac_write_fail=0
22021 ac_clean_files_save=$ac_clean_files
22022 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22023 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
22024 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
22025 as_write_fail=0
22026 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
22027 #! $SHELL
22028 # Generated by $as_me.
22029 # Run this file to recreate the current configuration.
22030 # Compiler output produced by configure, useful for debugging
22031 # configure, is in config.log if it exists.
22033 debug=false
22034 ac_cs_recheck=false
22035 ac_cs_silent=false
22037 SHELL=\${CONFIG_SHELL-$SHELL}
22038 export SHELL
22039 _ASEOF
22040 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
22041 ## -------------------- ##
22042 ## M4sh Initialization. ##
22043 ## -------------------- ##
22045 # Be more Bourne compatible
22046 DUALCASE=1; export DUALCASE # for MKS sh
22047 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22048 emulate sh
22049 NULLCMD=:
22050 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
22051 # is contrary to our usage. Disable this feature.
22052 alias -g '${1+"$@"}'='"$@"'
22053 setopt NO_GLOB_SUBST
22054 else
22055 case `(set -o) 2>/dev/null` in #(
22056 *posix*) :
22057 set -o posix ;; #(
22058 *) :
22060 esac
22064 as_nl='
22066 export as_nl
22067 # Printing a long string crashes Solaris 7 /usr/bin/printf.
22068 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
22069 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
22070 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
22071 # Prefer a ksh shell builtin over an external printf program on Solaris,
22072 # but without wasting forks for bash or zsh.
22073 if test -z "$BASH_VERSION$ZSH_VERSION" \
22074 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
22075 as_echo='print -r --'
22076 as_echo_n='print -rn --'
22077 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
22078 as_echo='printf %s\n'
22079 as_echo_n='printf %s'
22080 else
22081 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
22082 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
22083 as_echo_n='/usr/ucb/echo -n'
22084 else
22085 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
22086 as_echo_n_body='eval
22087 arg=$1;
22088 case $arg in #(
22089 *"$as_nl"*)
22090 expr "X$arg" : "X\\(.*\\)$as_nl";
22091 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
22092 esac;
22093 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
22095 export as_echo_n_body
22096 as_echo_n='sh -c $as_echo_n_body as_echo'
22098 export as_echo_body
22099 as_echo='sh -c $as_echo_body as_echo'
22102 # The user is always right.
22103 if test "${PATH_SEPARATOR+set}" != set; then
22104 PATH_SEPARATOR=:
22105 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
22106 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
22107 PATH_SEPARATOR=';'
22112 # IFS
22113 # We need space, tab and new line, in precisely that order. Quoting is
22114 # there to prevent editors from complaining about space-tab.
22115 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22116 # splitting by setting IFS to empty value.)
22117 IFS=" "" $as_nl"
22119 # Find who we are. Look in the path if we contain no directory separator.
22120 case $0 in #((
22121 *[\\/]* ) as_myself=$0 ;;
22122 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22123 for as_dir in $PATH
22125 IFS=$as_save_IFS
22126 test -z "$as_dir" && as_dir=.
22127 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22128 done
22129 IFS=$as_save_IFS
22132 esac
22133 # We did not find ourselves, most probably we were run as `sh COMMAND'
22134 # in which case we are not to be found in the path.
22135 if test "x$as_myself" = x; then
22136 as_myself=$0
22138 if test ! -f "$as_myself"; then
22139 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22140 exit 1
22143 # Unset variables that we do not need and which cause bugs (e.g. in
22144 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
22145 # suppresses any "Segmentation fault" message there. '((' could
22146 # trigger a bug in pdksh 5.2.14.
22147 for as_var in BASH_ENV ENV MAIL MAILPATH
22148 do eval test x\${$as_var+set} = xset \
22149 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
22150 done
22151 PS1='$ '
22152 PS2='> '
22153 PS4='+ '
22155 # NLS nuisances.
22156 LC_ALL=C
22157 export LC_ALL
22158 LANGUAGE=C
22159 export LANGUAGE
22161 # CDPATH.
22162 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22165 # as_fn_error ERROR [LINENO LOG_FD]
22166 # ---------------------------------
22167 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
22168 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22169 # script with status $?, using 1 if that was 0.
22170 as_fn_error ()
22172 as_status=$?; test $as_status -eq 0 && as_status=1
22173 if test "$3"; then
22174 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
22175 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
22177 $as_echo "$as_me: error: $1" >&2
22178 as_fn_exit $as_status
22179 } # as_fn_error
22182 # as_fn_set_status STATUS
22183 # -----------------------
22184 # Set $? to STATUS, without forking.
22185 as_fn_set_status ()
22187 return $1
22188 } # as_fn_set_status
22190 # as_fn_exit STATUS
22191 # -----------------
22192 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
22193 as_fn_exit ()
22195 set +e
22196 as_fn_set_status $1
22197 exit $1
22198 } # as_fn_exit
22200 # as_fn_unset VAR
22201 # ---------------
22202 # Portably unset VAR.
22203 as_fn_unset ()
22205 { eval $1=; unset $1;}
22207 as_unset=as_fn_unset
22208 # as_fn_append VAR VALUE
22209 # ----------------------
22210 # Append the text in VALUE to the end of the definition contained in VAR. Take
22211 # advantage of any shell optimizations that allow amortized linear growth over
22212 # repeated appends, instead of the typical quadratic growth present in naive
22213 # implementations.
22214 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
22215 eval 'as_fn_append ()
22217 eval $1+=\$2
22219 else
22220 as_fn_append ()
22222 eval $1=\$$1\$2
22224 fi # as_fn_append
22226 # as_fn_arith ARG...
22227 # ------------------
22228 # Perform arithmetic evaluation on the ARGs, and store the result in the
22229 # global $as_val. Take advantage of shells that can avoid forks. The arguments
22230 # must be portable across $(()) and expr.
22231 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
22232 eval 'as_fn_arith ()
22234 as_val=$(( $* ))
22236 else
22237 as_fn_arith ()
22239 as_val=`expr "$@" || test $? -eq 1`
22241 fi # as_fn_arith
22244 if expr a : '\(a\)' >/dev/null 2>&1 &&
22245 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22246 as_expr=expr
22247 else
22248 as_expr=false
22251 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22252 as_basename=basename
22253 else
22254 as_basename=false
22257 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22258 as_dirname=dirname
22259 else
22260 as_dirname=false
22263 as_me=`$as_basename -- "$0" ||
22264 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22265 X"$0" : 'X\(//\)$' \| \
22266 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22267 $as_echo X/"$0" |
22268 sed '/^.*\/\([^/][^/]*\)\/*$/{
22269 s//\1/
22272 /^X\/\(\/\/\)$/{
22273 s//\1/
22276 /^X\/\(\/\).*/{
22277 s//\1/
22280 s/.*/./; q'`
22282 # Avoid depending upon Character Ranges.
22283 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22284 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22285 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22286 as_cr_digits='0123456789'
22287 as_cr_alnum=$as_cr_Letters$as_cr_digits
22289 ECHO_C= ECHO_N= ECHO_T=
22290 case `echo -n x` in #(((((
22291 -n*)
22292 case `echo 'xy\c'` in
22293 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
22294 xy) ECHO_C='\c';;
22295 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
22296 ECHO_T=' ';;
22297 esac;;
22299 ECHO_N='-n';;
22300 esac
22302 rm -f conf$$ conf$$.exe conf$$.file
22303 if test -d conf$$.dir; then
22304 rm -f conf$$.dir/conf$$.file
22305 else
22306 rm -f conf$$.dir
22307 mkdir conf$$.dir 2>/dev/null
22309 if (echo >conf$$.file) 2>/dev/null; then
22310 if ln -s conf$$.file conf$$ 2>/dev/null; then
22311 as_ln_s='ln -s'
22312 # ... but there are two gotchas:
22313 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22314 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22315 # In both cases, we have to default to `cp -p'.
22316 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22317 as_ln_s='cp -p'
22318 elif ln conf$$.file conf$$ 2>/dev/null; then
22319 as_ln_s=ln
22320 else
22321 as_ln_s='cp -p'
22323 else
22324 as_ln_s='cp -p'
22326 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22327 rmdir conf$$.dir 2>/dev/null
22330 # as_fn_mkdir_p
22331 # -------------
22332 # Create "$as_dir" as a directory, including parents if necessary.
22333 as_fn_mkdir_p ()
22336 case $as_dir in #(
22337 -*) as_dir=./$as_dir;;
22338 esac
22339 test -d "$as_dir" || eval $as_mkdir_p || {
22340 as_dirs=
22341 while :; do
22342 case $as_dir in #(
22343 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
22344 *) as_qdir=$as_dir;;
22345 esac
22346 as_dirs="'$as_qdir' $as_dirs"
22347 as_dir=`$as_dirname -- "$as_dir" ||
22348 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22349 X"$as_dir" : 'X\(//\)[^/]' \| \
22350 X"$as_dir" : 'X\(//\)$' \| \
22351 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22352 $as_echo X"$as_dir" |
22353 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22354 s//\1/
22357 /^X\(\/\/\)[^/].*/{
22358 s//\1/
22361 /^X\(\/\/\)$/{
22362 s//\1/
22365 /^X\(\/\).*/{
22366 s//\1/
22369 s/.*/./; q'`
22370 test -d "$as_dir" && break
22371 done
22372 test -z "$as_dirs" || eval "mkdir $as_dirs"
22373 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
22376 } # as_fn_mkdir_p
22377 if mkdir -p . 2>/dev/null; then
22378 as_mkdir_p='mkdir -p "$as_dir"'
22379 else
22380 test -d ./-p && rmdir ./-p
22381 as_mkdir_p=false
22384 if test -x / >/dev/null 2>&1; then
22385 as_test_x='test -x'
22386 else
22387 if ls -dL / >/dev/null 2>&1; then
22388 as_ls_L_option=L
22389 else
22390 as_ls_L_option=
22392 as_test_x='
22393 eval sh -c '\''
22394 if test -d "$1"; then
22395 test -d "$1/.";
22396 else
22397 case $1 in #(
22398 -*)set "./$1";;
22399 esac;
22400 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
22401 ???[sx]*):;;*)false;;esac;fi
22402 '\'' sh
22405 as_executable_p=$as_test_x
22407 # Sed expression to map a string onto a valid CPP name.
22408 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22410 # Sed expression to map a string onto a valid variable name.
22411 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22414 exec 6>&1
22415 ## ----------------------------------- ##
22416 ## Main body of $CONFIG_STATUS script. ##
22417 ## ----------------------------------- ##
22418 _ASEOF
22419 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
22421 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22422 # Save the log message, to keep $0 and so on meaningful, and to
22423 # report actual input values of CONFIG_FILES etc. instead of their
22424 # values after options handling.
22425 ac_log="
22426 This file was extended by emacs $as_me 24.1.50, which was
22427 generated by GNU Autoconf 2.65. Invocation command line was
22429 CONFIG_FILES = $CONFIG_FILES
22430 CONFIG_HEADERS = $CONFIG_HEADERS
22431 CONFIG_LINKS = $CONFIG_LINKS
22432 CONFIG_COMMANDS = $CONFIG_COMMANDS
22433 $ $0 $@
22435 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22438 _ACEOF
22440 case $ac_config_files in *"
22441 "*) set x $ac_config_files; shift; ac_config_files=$*;;
22442 esac
22444 case $ac_config_headers in *"
22445 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
22446 esac
22449 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22450 # Files that config.status was made for.
22451 config_files="$ac_config_files"
22452 config_headers="$ac_config_headers"
22453 config_commands="$ac_config_commands"
22455 _ACEOF
22457 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22458 ac_cs_usage="\
22459 \`$as_me' instantiates files and other configuration actions
22460 from templates according to the current configuration. Unless the files
22461 and actions are specified as TAGs, all are instantiated by default.
22463 Usage: $0 [OPTION]... [TAG]...
22465 -h, --help print this help, then exit
22466 -V, --version print version number and configuration settings, then exit
22467 --config print configuration, then exit
22468 -q, --quiet, --silent
22469 do not print progress messages
22470 -d, --debug don't remove temporary files
22471 --recheck update $as_me by reconfiguring in the same conditions
22472 --file=FILE[:TEMPLATE]
22473 instantiate the configuration file FILE
22474 --header=FILE[:TEMPLATE]
22475 instantiate the configuration header FILE
22477 Configuration files:
22478 $config_files
22480 Configuration headers:
22481 $config_headers
22483 Configuration commands:
22484 $config_commands
22486 Report bugs to the package provider."
22488 _ACEOF
22489 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22490 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
22491 ac_cs_version="\\
22492 emacs config.status 24.1.50
22493 configured by $0, generated by GNU Autoconf 2.65,
22494 with options \\"\$ac_cs_config\\"
22496 Copyright (C) 2009 Free Software Foundation, Inc.
22497 This config.status script is free software; the Free Software Foundation
22498 gives unlimited permission to copy, distribute and modify it."
22500 ac_pwd='$ac_pwd'
22501 srcdir='$srcdir'
22502 INSTALL='$INSTALL'
22503 MKDIR_P='$MKDIR_P'
22504 AWK='$AWK'
22505 test -n "\$AWK" || AWK=awk
22506 _ACEOF
22508 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22509 # The default lists apply if the user does not specify any file.
22510 ac_need_defaults=:
22511 while test $# != 0
22513 case $1 in
22514 --*=*)
22515 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22516 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22517 ac_shift=:
22520 ac_option=$1
22521 ac_optarg=$2
22522 ac_shift=shift
22524 esac
22526 case $ac_option in
22527 # Handling of the options.
22528 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22529 ac_cs_recheck=: ;;
22530 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22531 $as_echo "$ac_cs_version"; exit ;;
22532 --config | --confi | --conf | --con | --co | --c )
22533 $as_echo "$ac_cs_config"; exit ;;
22534 --debug | --debu | --deb | --de | --d | -d )
22535 debug=: ;;
22536 --file | --fil | --fi | --f )
22537 $ac_shift
22538 case $ac_optarg in
22539 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22540 esac
22541 as_fn_append CONFIG_FILES " '$ac_optarg'"
22542 ac_need_defaults=false;;
22543 --header | --heade | --head | --hea )
22544 $ac_shift
22545 case $ac_optarg in
22546 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22547 esac
22548 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
22549 ac_need_defaults=false;;
22550 --he | --h)
22551 # Conflict between --help and --header
22552 as_fn_error "ambiguous option: \`$1'
22553 Try \`$0 --help' for more information.";;
22554 --help | --hel | -h )
22555 $as_echo "$ac_cs_usage"; exit ;;
22556 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22557 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22558 ac_cs_silent=: ;;
22560 # This is an error.
22561 -*) as_fn_error "unrecognized option: \`$1'
22562 Try \`$0 --help' for more information." ;;
22564 *) as_fn_append ac_config_targets " $1"
22565 ac_need_defaults=false ;;
22567 esac
22568 shift
22569 done
22571 ac_configure_extra_args=
22573 if $ac_cs_silent; then
22574 exec 6>/dev/null
22575 ac_configure_extra_args="$ac_configure_extra_args --silent"
22578 _ACEOF
22579 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22580 if \$ac_cs_recheck; then
22581 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22582 shift
22583 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
22584 CONFIG_SHELL='$SHELL'
22585 export CONFIG_SHELL
22586 exec "\$@"
22589 _ACEOF
22590 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22591 exec 5>>config.log
22593 echo
22594 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22595 ## Running $as_me. ##
22596 _ASBOX
22597 $as_echo "$ac_log"
22598 } >&5
22600 _ACEOF
22601 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22603 # INIT-COMMANDS
22605 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22606 GCC="$GCC" CPPFLAGS="$CPPFLAGS"
22608 _ACEOF
22610 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22612 # Handling of arguments.
22613 for ac_config_target in $ac_config_targets
22615 case $ac_config_target in
22616 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
22617 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22618 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22619 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
22620 "lib-src/Makefile") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile" ;;
22621 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
22622 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
22623 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
22624 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
22625 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
22626 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
22627 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
22628 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
22629 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
22630 "test/automated/Makefile") CONFIG_FILES="$CONFIG_FILES test/automated/Makefile" ;;
22631 "admin/unidata/Makefile") CONFIG_FILES="$CONFIG_FILES admin/unidata/Makefile" ;;
22632 "mkdirs") CONFIG_COMMANDS="$CONFIG_COMMANDS mkdirs" ;;
22633 "epaths") CONFIG_COMMANDS="$CONFIG_COMMANDS epaths" ;;
22634 "gdbinit") CONFIG_COMMANDS="$CONFIG_COMMANDS gdbinit" ;;
22636 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
22637 esac
22638 done
22641 # If the user did not use the arguments to specify the items to instantiate,
22642 # then the envvar interface is used. Set only those that are not.
22643 # We use the long form for the default assignment because of an extremely
22644 # bizarre bug on SunOS 4.1.3.
22645 if $ac_need_defaults; then
22646 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22647 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22648 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22651 # Have a temporary directory for convenience. Make it in the build tree
22652 # simply because there is no reason against having it here, and in addition,
22653 # creating and moving files from /tmp can sometimes cause problems.
22654 # Hook for its removal unless debugging.
22655 # Note that there is a small window in which the directory will not be cleaned:
22656 # after its creation but before its name has been assigned to `$tmp'.
22657 $debug ||
22659 tmp=
22660 trap 'exit_status=$?
22661 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22663 trap 'as_fn_exit 1' 1 2 13 15
22665 # Create a (secure) tmp directory for tmp files.
22668 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22669 test -n "$tmp" && test -d "$tmp"
22670 } ||
22672 tmp=./conf$$-$RANDOM
22673 (umask 077 && mkdir "$tmp")
22674 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
22676 # Set up the scripts for CONFIG_FILES section.
22677 # No need to generate them if there are no CONFIG_FILES.
22678 # This happens for instance with `./config.status config.h'.
22679 if test -n "$CONFIG_FILES"; then
22681 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
22682 ac_cs_awk_getline=:
22683 ac_cs_awk_pipe_init=
22684 ac_cs_awk_read_file='
22685 while ((getline aline < (F[key])) > 0)
22686 print(aline)
22687 close(F[key])'
22688 ac_cs_awk_pipe_fini=
22689 else
22690 ac_cs_awk_getline=false
22691 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
22692 ac_cs_awk_read_file='
22693 print "|#_!!_#|"
22694 print "cat " F[key] " &&"
22695 '$ac_cs_awk_pipe_init
22696 # The final `:' finishes the AND list.
22697 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
22699 ac_cr=`echo X | tr X '\015'`
22700 # On cygwin, bash can eat \r inside `` if the user requested igncr.
22701 # But we know of no other shell where ac_cr would be empty at this
22702 # point, so we can use a bashism as a fallback.
22703 if test "x$ac_cr" = x; then
22704 eval ac_cr=\$\'\\r\'
22706 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
22707 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22708 ac_cs_awk_cr='\r'
22709 else
22710 ac_cs_awk_cr=$ac_cr
22713 echo 'BEGIN {' >"$tmp/subs1.awk" &&
22714 _ACEOF
22716 # Create commands to substitute file output variables.
22718 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
22719 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
22720 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
22721 echo "_ACAWK" &&
22722 echo "_ACEOF"
22723 } >conf$$files.sh &&
22724 . ./conf$$files.sh ||
22725 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
22726 rm -f conf$$files.sh
22729 echo "cat >conf$$subs.awk <<_ACEOF" &&
22730 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
22731 echo "_ACEOF"
22732 } >conf$$subs.sh ||
22733 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
22734 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
22735 ac_delim='%!_!# '
22736 for ac_last_try in false false false false false :; do
22737 . ./conf$$subs.sh ||
22738 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
22740 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
22741 if test $ac_delim_n = $ac_delim_num; then
22742 break
22743 elif $ac_last_try; then
22744 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
22745 else
22746 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22748 done
22749 rm -f conf$$subs.sh
22751 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22752 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
22753 _ACEOF
22754 sed -n '
22756 s/^/S["/; s/!.*/"]=/
22759 s/^[^!]*!//
22760 :repl
22761 t repl
22762 s/'"$ac_delim"'$//
22763 t delim
22766 s/\(.\{148\}\)..*/\1/
22767 t more1
22768 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
22771 b repl
22772 :more1
22773 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22776 s/.\{148\}//
22777 t nl
22778 :delim
22780 s/\(.\{148\}\)..*/\1/
22781 t more2
22782 s/["\\]/\\&/g; s/^/"/; s/$/"/
22785 :more2
22786 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22789 s/.\{148\}//
22790 t delim
22791 ' <conf$$subs.awk | sed '
22792 /^[^""]/{
22794 s/\n//
22796 ' >>$CONFIG_STATUS || ac_write_fail=1
22797 rm -f conf$$subs.awk
22798 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22799 _ACAWK
22800 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
22801 for (key in S) S_is_set[key] = 1
22802 FS = "\a"
22803 \$ac_cs_awk_pipe_init
22806 line = $ 0
22807 nfields = split(line, field, "@")
22808 substed = 0
22809 len = length(field[1])
22810 for (i = 2; i < nfields; i++) {
22811 key = field[i]
22812 keylen = length(key)
22813 if (S_is_set[key]) {
22814 value = S[key]
22815 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
22816 len += length(value) + length(field[++i])
22817 substed = 1
22818 } else
22819 len += 1 + keylen
22821 if (nfields == 3 && !substed) {
22822 key = field[2]
22823 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
22824 \$ac_cs_awk_read_file
22825 next
22828 print line
22830 \$ac_cs_awk_pipe_fini
22831 _ACAWK
22832 _ACEOF
22833 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22834 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
22835 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
22836 else
22838 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
22839 || as_fn_error "could not setup config files machinery" "$LINENO" 5
22840 _ACEOF
22842 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22843 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22844 # trailing colons and then remove the whole line if VPATH becomes empty
22845 # (actually we leave an empty line to preserve line numbers).
22846 if test "x$srcdir" = x.; then
22847 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22848 s/:*\$(srcdir):*/:/
22849 s/:*\${srcdir}:*/:/
22850 s/:*@srcdir@:*/:/
22851 s/^\([^=]*=[ ]*\):*/\1/
22852 s/:*$//
22853 s/^[^=]*=[ ]*$//
22857 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22858 fi # test -n "$CONFIG_FILES"
22860 # Set up the scripts for CONFIG_HEADERS section.
22861 # No need to generate them if there are no CONFIG_HEADERS.
22862 # This happens for instance with `./config.status Makefile'.
22863 if test -n "$CONFIG_HEADERS"; then
22864 cat >"$tmp/defines.awk" <<\_ACAWK ||
22865 BEGIN {
22866 _ACEOF
22868 # Transform confdefs.h into an awk script `defines.awk', embedded as
22869 # here-document in config.status, that substitutes the proper values into
22870 # config.h.in to produce config.h.
22872 # Create a delimiter string that does not exist in confdefs.h, to ease
22873 # handling of long lines.
22874 ac_delim='%!_!# '
22875 for ac_last_try in false false :; do
22876 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
22877 if test -z "$ac_t"; then
22878 break
22879 elif $ac_last_try; then
22880 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
22881 else
22882 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22884 done
22886 # For the awk script, D is an array of macro values keyed by name,
22887 # likewise P contains macro parameters if any. Preserve backslash
22888 # newline sequences.
22890 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22891 sed -n '
22892 s/.\{148\}/&'"$ac_delim"'/g
22893 t rset
22894 :rset
22895 s/^[ ]*#[ ]*define[ ][ ]*/ /
22896 t def
22898 :def
22899 s/\\$//
22900 t bsnl
22901 s/["\\]/\\&/g
22902 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22903 D["\1"]=" \3"/p
22904 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
22906 :bsnl
22907 s/["\\]/\\&/g
22908 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22909 D["\1"]=" \3\\\\\\n"\\/p
22910 t cont
22911 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
22912 t cont
22914 :cont
22916 s/.\{148\}/&'"$ac_delim"'/g
22917 t clear
22918 :clear
22919 s/\\$//
22920 t bsnlc
22921 s/["\\]/\\&/g; s/^/"/; s/$/"/p
22923 :bsnlc
22924 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
22925 b cont
22926 ' <confdefs.h | sed '
22927 s/'"$ac_delim"'/"\\\
22928 "/g' >>$CONFIG_STATUS || ac_write_fail=1
22930 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22931 for (key in D) D_is_set[key] = 1
22932 FS = "\a"
22934 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
22935 line = \$ 0
22936 split(line, arg, " ")
22937 if (arg[1] == "#") {
22938 defundef = arg[2]
22939 mac1 = arg[3]
22940 } else {
22941 defundef = substr(arg[1], 2)
22942 mac1 = arg[2]
22944 split(mac1, mac2, "(") #)
22945 macro = mac2[1]
22946 prefix = substr(line, 1, index(line, defundef) - 1)
22947 if (D_is_set[macro]) {
22948 # Preserve the white space surrounding the "#".
22949 print prefix "define", macro P[macro] D[macro]
22950 next
22951 } else {
22952 # Replace #undef with comments. This is necessary, for example,
22953 # in the case of _POSIX_SOURCE, which is predefined and required
22954 # on some systems where configure will not decide to define it.
22955 if (defundef == "undef") {
22956 print "/*", prefix defundef, macro, "*/"
22957 next
22961 { print }
22962 _ACAWK
22963 _ACEOF
22964 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22965 as_fn_error "could not setup config headers machinery" "$LINENO" 5
22966 fi # test -n "$CONFIG_HEADERS"
22969 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
22970 shift
22971 for ac_tag
22973 case $ac_tag in
22974 :[FHLC]) ac_mode=$ac_tag; continue;;
22975 esac
22976 case $ac_mode$ac_tag in
22977 :[FHL]*:*);;
22978 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
22979 :[FH]-) ac_tag=-:-;;
22980 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22981 esac
22982 ac_save_IFS=$IFS
22983 IFS=:
22984 set x $ac_tag
22985 IFS=$ac_save_IFS
22986 shift
22987 ac_file=$1
22988 shift
22990 case $ac_mode in
22991 :L) ac_source=$1;;
22992 :[FH])
22993 ac_file_inputs=
22994 for ac_f
22996 case $ac_f in
22997 -) ac_f="$tmp/stdin";;
22998 *) # Look for the file first in the build tree, then in the source tree
22999 # (if the path is not absolute). The absolute path cannot be DOS-style,
23000 # because $ac_f cannot contain `:'.
23001 test -f "$ac_f" ||
23002 case $ac_f in
23003 [\\/$]*) false;;
23004 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23005 esac ||
23006 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
23007 esac
23008 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
23009 as_fn_append ac_file_inputs " '$ac_f'"
23010 done
23012 # Let's still pretend it is `configure' which instantiates (i.e., don't
23013 # use $as_me), people would be surprised to read:
23014 # /* config.h. Generated by config.status. */
23015 configure_input='Generated from '`
23016 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
23017 `' by configure.'
23018 if test x"$ac_file" != x-; then
23019 configure_input="$ac_file. $configure_input"
23020 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
23021 $as_echo "$as_me: creating $ac_file" >&6;}
23023 # Neutralize special characters interpreted by sed in replacement strings.
23024 case $configure_input in #(
23025 *\&* | *\|* | *\\* )
23026 ac_sed_conf_input=`$as_echo "$configure_input" |
23027 sed 's/[\\\\&|]/\\\\&/g'`;; #(
23028 *) ac_sed_conf_input=$configure_input;;
23029 esac
23031 case $ac_tag in
23032 *:-:* | *:-) cat >"$tmp/stdin" \
23033 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
23034 esac
23036 esac
23038 ac_dir=`$as_dirname -- "$ac_file" ||
23039 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23040 X"$ac_file" : 'X\(//\)[^/]' \| \
23041 X"$ac_file" : 'X\(//\)$' \| \
23042 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23043 $as_echo X"$ac_file" |
23044 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23045 s//\1/
23048 /^X\(\/\/\)[^/].*/{
23049 s//\1/
23052 /^X\(\/\/\)$/{
23053 s//\1/
23056 /^X\(\/\).*/{
23057 s//\1/
23060 s/.*/./; q'`
23061 as_dir="$ac_dir"; as_fn_mkdir_p
23062 ac_builddir=.
23064 case "$ac_dir" in
23065 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23067 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
23068 # A ".." for each directory in $ac_dir_suffix.
23069 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
23070 case $ac_top_builddir_sub in
23071 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23072 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23073 esac ;;
23074 esac
23075 ac_abs_top_builddir=$ac_pwd
23076 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23077 # for backward compatibility:
23078 ac_top_builddir=$ac_top_build_prefix
23080 case $srcdir in
23081 .) # We are building in place.
23082 ac_srcdir=.
23083 ac_top_srcdir=$ac_top_builddir_sub
23084 ac_abs_top_srcdir=$ac_pwd ;;
23085 [\\/]* | ?:[\\/]* ) # Absolute name.
23086 ac_srcdir=$srcdir$ac_dir_suffix;
23087 ac_top_srcdir=$srcdir
23088 ac_abs_top_srcdir=$srcdir ;;
23089 *) # Relative name.
23090 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23091 ac_top_srcdir=$ac_top_build_prefix$srcdir
23092 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23093 esac
23094 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23097 case $ac_mode in
23100 # CONFIG_FILE
23103 case $INSTALL in
23104 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23105 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23106 esac
23107 ac_MKDIR_P=$MKDIR_P
23108 case $MKDIR_P in
23109 [\\/$]* | ?:[\\/]* ) ;;
23110 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
23111 esac
23112 _ACEOF
23114 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23115 # If the template does not know about datarootdir, expand it.
23116 # FIXME: This hack should be removed a few years after 2.60.
23117 ac_datarootdir_hack=; ac_datarootdir_seen=
23118 ac_sed_dataroot='
23119 /datarootdir/ {
23123 /@datadir@/p
23124 /@docdir@/p
23125 /@infodir@/p
23126 /@localedir@/p
23127 /@mandir@/p'
23128 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
23129 *datarootdir*) ac_datarootdir_seen=yes;;
23130 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23131 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23132 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23133 _ACEOF
23134 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23135 ac_datarootdir_hack='
23136 s&@datadir@&$datadir&g
23137 s&@docdir@&$docdir&g
23138 s&@infodir@&$infodir&g
23139 s&@localedir@&$localedir&g
23140 s&@mandir@&$mandir&g
23141 s&\\\${datarootdir}&$datarootdir&g' ;;
23142 esac
23143 _ACEOF
23145 # Neutralize VPATH when `$srcdir' = `.'.
23146 # Shell code in configure.ac might set extrasub.
23147 # FIXME: do we really want to maintain this feature?
23148 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23149 ac_sed_extra="$ac_vpsub
23150 $extrasub
23151 _ACEOF
23152 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23154 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23155 s|@configure_input@|$ac_sed_conf_input|;t t
23156 s&@top_builddir@&$ac_top_builddir_sub&;t t
23157 s&@top_build_prefix@&$ac_top_build_prefix&;t t
23158 s&@srcdir@&$ac_srcdir&;t t
23159 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23160 s&@top_srcdir@&$ac_top_srcdir&;t t
23161 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23162 s&@builddir@&$ac_builddir&;t t
23163 s&@abs_builddir@&$ac_abs_builddir&;t t
23164 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23165 s&@INSTALL@&$ac_INSTALL&;t t
23166 s&@MKDIR_P@&$ac_MKDIR_P&;t t
23167 $ac_datarootdir_hack
23169 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
23170 if $ac_cs_awk_getline; then
23171 $AWK -f "$tmp/subs.awk"
23172 else
23173 $AWK -f "$tmp/subs.awk" | $SHELL
23174 fi >$tmp/out \
23175 || as_fn_error "could not create $ac_file" "$LINENO" 5
23177 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23178 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23179 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23180 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23181 which seems to be undefined. Please make sure it is defined." >&5
23182 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23183 which seems to be undefined. Please make sure it is defined." >&2;}
23185 rm -f "$tmp/stdin"
23186 case $ac_file in
23187 -) cat "$tmp/out" && rm -f "$tmp/out";;
23188 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
23189 esac \
23190 || as_fn_error "could not create $ac_file" "$LINENO" 5
23194 # CONFIG_HEADER
23196 if test x"$ac_file" != x-; then
23198 $as_echo "/* $configure_input */" \
23199 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
23200 } >"$tmp/config.h" \
23201 || as_fn_error "could not create $ac_file" "$LINENO" 5
23202 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
23203 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
23204 $as_echo "$as_me: $ac_file is unchanged" >&6;}
23205 else
23206 rm -f "$ac_file"
23207 mv "$tmp/config.h" "$ac_file" \
23208 || as_fn_error "could not create $ac_file" "$LINENO" 5
23210 else
23211 $as_echo "/* $configure_input */" \
23212 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
23213 || as_fn_error "could not create -" "$LINENO" 5
23215 # Compute "$ac_file"'s index in $config_headers.
23216 _am_arg="$ac_file"
23217 _am_stamp_count=1
23218 for _am_header in $config_headers :; do
23219 case $_am_header in
23220 $_am_arg | $_am_arg:* )
23221 break ;;
23223 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23224 esac
23225 done
23226 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
23227 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23228 X"$_am_arg" : 'X\(//\)[^/]' \| \
23229 X"$_am_arg" : 'X\(//\)$' \| \
23230 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
23231 $as_echo X"$_am_arg" |
23232 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23233 s//\1/
23236 /^X\(\/\/\)[^/].*/{
23237 s//\1/
23240 /^X\(\/\/\)$/{
23241 s//\1/
23244 /^X\(\/\).*/{
23245 s//\1/
23248 s/.*/./; q'`/stamp-h$_am_stamp_count
23251 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
23252 $as_echo "$as_me: executing $ac_file commands" >&6;}
23254 esac
23257 case $ac_file$ac_mode in
23258 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
23259 # Autoconf 2.62 quotes --file arguments for eval, but not when files
23260 # are listed without --file. Let's play safe and only enable the eval
23261 # if we detect the quoting.
23262 case $CONFIG_FILES in
23263 *\'*) eval set x "$CONFIG_FILES" ;;
23264 *) set x $CONFIG_FILES ;;
23265 esac
23266 shift
23267 for mf
23269 # Strip MF so we end up with the name of the file.
23270 mf=`echo "$mf" | sed -e 's/:.*$//'`
23271 # Check whether this is an Automake generated Makefile or not.
23272 # We used to match only the files named `Makefile.in', but
23273 # some people rename them; so instead we look at the file content.
23274 # Grep'ing the first line is not enough: some people post-process
23275 # each Makefile.in and add a new line on top of each file to say so.
23276 # Grep'ing the whole file is not good either: AIX grep has a line
23277 # limit of 2048, but all sed's we know have understand at least 4000.
23278 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
23279 dirpart=`$as_dirname -- "$mf" ||
23280 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23281 X"$mf" : 'X\(//\)[^/]' \| \
23282 X"$mf" : 'X\(//\)$' \| \
23283 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
23284 $as_echo X"$mf" |
23285 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23286 s//\1/
23289 /^X\(\/\/\)[^/].*/{
23290 s//\1/
23293 /^X\(\/\/\)$/{
23294 s//\1/
23297 /^X\(\/\).*/{
23298 s//\1/
23301 s/.*/./; q'`
23302 else
23303 continue
23305 # Extract the definition of DEPDIR, am__include, and am__quote
23306 # from the Makefile without running `make'.
23307 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23308 test -z "$DEPDIR" && continue
23309 am__include=`sed -n 's/^am__include = //p' < "$mf"`
23310 test -z "am__include" && continue
23311 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23312 # When using ansi2knr, U may be empty or an underscore; expand it
23313 U=`sed -n 's/^U = //p' < "$mf"`
23314 # Find all dependency output files, they are included files with
23315 # $(DEPDIR) in their names. We invoke sed twice because it is the
23316 # simplest approach to changing $(DEPDIR) to its actual value in the
23317 # expansion.
23318 for file in `sed -n "
23319 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23320 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23321 # Make sure the directory exists.
23322 test -f "$dirpart/$file" && continue
23323 fdir=`$as_dirname -- "$file" ||
23324 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23325 X"$file" : 'X\(//\)[^/]' \| \
23326 X"$file" : 'X\(//\)$' \| \
23327 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
23328 $as_echo X"$file" |
23329 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23330 s//\1/
23333 /^X\(\/\/\)[^/].*/{
23334 s//\1/
23337 /^X\(\/\/\)$/{
23338 s//\1/
23341 /^X\(\/\).*/{
23342 s//\1/
23345 s/.*/./; q'`
23346 as_dir=$dirpart/$fdir; as_fn_mkdir_p
23347 # echo "creating $dirpart/$file"
23348 echo '# dummy' > "$dirpart/$file"
23349 done
23350 done
23353 "mkdirs":C)
23354 for dir in etc lisp ; do
23355 test -d ${dir} || mkdir ${dir}
23356 done
23358 "epaths":C)
23359 echo creating src/epaths.h
23360 ${MAKE-make} epaths-force
23362 "gdbinit":C)
23363 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
23364 echo creating src/.gdbinit
23365 echo source $srcdir/src/.gdbinit > src/.gdbinit
23369 esac
23370 done # for ac_tag
23373 as_fn_exit 0
23374 _ACEOF
23375 ac_clean_files=$ac_clean_files_save
23377 test $ac_write_fail = 0 ||
23378 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
23381 # configure is writing to config.log, and then calls config.status.
23382 # config.status does its own redirection, appending to config.log.
23383 # Unfortunately, on DOS this fails, as config.log is still kept open
23384 # by configure, so config.status won't be able to write to it; its
23385 # output is simply discarded. So we exec the FD to /dev/null,
23386 # effectively closing config.log, so it can be properly (re)opened and
23387 # appended to by config.status. When coming back to configure, we
23388 # need to make the FD available again.
23389 if test "$no_create" != yes; then
23390 ac_cs_success=:
23391 ac_config_status_args=
23392 test "$silent" = yes &&
23393 ac_config_status_args="$ac_config_status_args --quiet"
23394 exec 5>/dev/null
23395 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23396 exec 5>>config.log
23397 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23398 # would make configure fail if this is the last instruction.
23399 $ac_cs_success || as_fn_exit $?
23401 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
23402 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
23403 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}